Analysis Introduction and Logic Notes
Analysis Introduction and Logic Notes
+ x = x.
Then
0
= 0 + 0
=
2
0
+ 0 = 0,
i.e. 0 = 0
.
The proof that the multiplicative identity is unique is similar
3
.
Theorem 1.2 For every x R, x 0 = 0.
Proof:
x 0 = x(0 + 0) = x0 + x0 (1.3)
so 0 = x0 + (x0) = (x0 + x0) + (x0) = x0 + (x0 x0) = x0. (1.4)
(We are writing a b for a + (b), of course.)
Theorem 1.3 x = (1)x
Proof: See Exercise 11.
Exercise 7 Prove that if a + x = x for some x, then a = 0. Note that with this result we
could conclude immediately from Equation 1.3 that x0 = 0.
Exercise 8 Prove that if 1 and 1
.
Exercise 9 Justify the two steps in equation 1.3 and the four steps in equation 1.4.
2
Why is 0 + 0
= 0
+ 0?
3
See Exercise 8.
10 CHAPTER 1. AXIOMS OF THE REAL NUMBER SYSTEM
Exercise 10 Prove: (1)(1) = 1. Justify every step. Hint: what does (1) stand for?
Exercise 11 Prove: x = (1)x. [Hint: show that (1)x is the additive inverse to x.]
Exercise 12 Prove (x) = x. [Hint: what does (x) denote?]
1.3.2 The Order Axioms
The above axioms, A1-A4, and M1-M5, together with the requirement that there are at least
two elements (i.e. that 0 = 1), make R a eld. R is actually a complete ordered eld.
We will discuss completeness in Section 1.5. To obtain an ordered eld, we need to require
an additional set of axioms, about the order relations among the elements, as follows: There
is a binary relation
4
, on R with the following properties:
1. For every x and y, x y and y x implies x = y.
2. For every x and y, either x y or y x.
These rst two axioms together are called the Axiom of Trichotomy (because there
are three possible relationships between x and y.)
3. For every x, y, and z, x y and y z implies x z.
4. For every x, y, and z, y z implies x + y x + z.
5. For every x, y, and z, y z and 0 x implies xy xz.
We shall often used a strengthened version of Order Axiom 4, which we now prove.
Theorem 1.4 For all x, y and z, if y < z then
x + y < x + z.
4
The reader who wishes a precise denition of relation will nd one in Section 1.7
1.3. PROPERTIES OF R, THE REAL NUMBERS: 11
Proof: From Order Axiom 4, under the hypotheses of the theorem, x + y x + z. If
x + y = x + z, by adding the additive inverse of x to both sides, using Associativity,
Commutivity and Identity, we obtain
5
y = z.
But this contradicts the hypothesis of the theorem. Hence our supposition that x+y = x+z
was false, and that together with x + y x + z implies that
x + y < x + z. QED
The corresponding multiplicative theorem is the following
Theorem 1.5 For all x, y and z, if y < z and x > 0 then
xy < xz.
Proof: The hypotheses of the theorem and Order Axiom 5 imply that xy xz. But if
xy = xz, since x = 0, we can multiply both sides by 1/x and obtain
y = z,
a contradiction. Hence xy = xz, and the theorem is proved.
Theorem 1.6 For all x,
x < 0 x > 0.
Proof:
x < 0
implies
x + (x) < 0 + (x)
implies
0 < x,
by Additive Inverse, Theorem 1.4, and Additive Identity.
5
Provide the details!
12 CHAPTER 1. AXIOMS OF THE REAL NUMBER SYSTEM
Conversely, if 0 < x, then
0 + x < x + x
which implies
x < 0,
again by Theorem 1.4, Additive Identity, and Additive Inverse.
Exercise 13 Prove that under the asssumption that a eld has at least two elements, then
0 = 1.
Exercise 14 Verify that the set {0} satises all the axioms for an ordered eld, except for
0 = 1. Note: just exactly what plays the role of 1, the multiplicative identity?
Exercise 15 Prove: 0 < 1. [In light of the preceding exercise, note that you MUST use
0 = 1. Why?]
Exercise 16 Prove: a < b b < a. [Hint: Make use of Theorem 1.4.]
Exercise 17 Prove: if a > 0 and b > 0 then a < b a
2
< b
2
.
Exercise 18 Prove that for any x, x
2
0.
Exercise 19 Prove that a eld has no zero-divisors, i.e. if ab = 0 then either a = 0 or b = 0.
1.3.3 Open and Closed Intervals; Absolute value; The Triangle
Inequality
Denition 1.2 If a and b are real numbers, and a < b, we write [a, b] to denote the set of
xs for which
a x b. We write (a, b) to denote the set of xs for which a < x < b. Intervals of
the form [a, b] are called closed intervals and intervals of the form (a, b) are called open
intervals for reasons which will become clear when we study the topology of the real numbers
in Chapter 9. It is also possible to have half-closed, half-open intervals. Note that closed
intervals contain their endpoints, while open intervals do not. We shall also write (a, )
to denote the set of xs for which a < x and similarly (, a] to denote the set of xs for
which x a.
1.3. PROPERTIES OF R, THE REAL NUMBERS: 13
Denition 1.3 By the absolute value of x, denoted |x|, we mean
|x| =
x, if x 0.
x, if x < 0.
Theorem 1.7 The following are properties of absolute value:
1. For all x, if x = 0 then |x| > 0. If x = 0 then |x| = 0.
2. |xy| = |x||y| for all real numbers x and y.
3. |x| x |x|, for all x.
Proof: (1) By cases: if x > 0, then |x| = x > 0. If x < 0, |x| = x > 0. From the denition,
|0| = 0.
(2) also proved by cases. See Exercise 23.
(3) By cases: if x > 0, |x| = x < 0 < x = |x|.
If x < 0, |x| = x < 0 < x = |x|.
If x = 0, |x| = x = |x|.
In all three cases, then, |x| x |x|.
The following will be needed literally dozens of times throughout the book. Needless to
say, it is very important!
Theorem 1.8 For all real numbers x and M,
|x| M M x M.
Proof: Suppose |x| M. Then by Exercise 16 above, M |x|, and by Theorem 1.7,
M |x| x |x| M.
Conversely, suppose M x M. Then M x, which implies that x M. But
x M by assumption. Then since |x| = x or |x| = x, and in either case, x M, it
follows
6
that |x| M.
Because the theorem above is so important, we give an example, and then have several
homework problems which involve it.
6
The interested reader may wish to note that the form of this reasoning, so called on the horns of a
dilemma, is: [p r, q r, p q] r.
14 CHAPTER 1. AXIOMS OF THE REAL NUMBER SYSTEM
Example 2 Find the set of ys for which |y L| . This is used heavily in our study of
limits, in Chapter 2.
By the theorem above,
y L ,
which is equivalent to
L y L + .
So, the set of ys is the interval [L, L+]. This reasoning will be used frequently throughout
the book.
A similar theorem holds for strict inequalities:
Theorem 1.9 For all real numbers x and M,
|x| < M M < x < M.
The proof is similar to the proof above.
Exercise 20 Prove Theorem 1.9.
Exercise 21 Find the set of xs for which |x 3| 4.
Exercise 22 Find the set of ys for which |y L| < .
Exercise 23 Prove |xy| = |x||y|, for all x, y R.
Theorem 1.10 (Triangle Inequality) For all real numbers x, y,
|x + y| |x| + |y|.
Proof: [We call this triangle inequality because of the geometric interpretation when
x and y are vectors in R
2
. This will have nothing to do with our proof, however.]
|x| x |x| from Theorem 1.7
1.4. SUPREMA AND INFIMA: SUPS AND INFS 15
and
|y| y |y|.
Adding these two double inequalities yields
(|x| + |y|) = |x| |y| x + y |x| + |y|
But then
|x + y| |x| + |y| from Theorem 1.8
QED
1.4 Suprema and Inma: sups and infs
Denition 1.4 A set is non-empty if it possesses at least one element. The empty set,
denoted , is the set consisting of no elements. More on this in Section 1.7
Denition 1.5 A non-empty set E is said to be bounded above if there exists an M such
that for every x E,
x M.
Denition 1.6 A non-empty set E is said to be bounded below if there exists an N such
that for every x E,
x N.
Denition 1.7 A non-empty set E is said to be bounded if there exists M, N such that
for every x E,
N x M.
It is obvious from the denitions that a set E is bounded if and only if E is bounded
above and E is bounded below.
Example 3 [0, 1] is bounded above, by 10, for example. [0, 1] is also bounded above by 1.
It is bounded below by 10. Therefore, [0, 1] is bounded as well.
Example 4 [0, ) is bounded below (by 0), but not bounded above. For suppose [0, )
were bounded above by M, say. Then M +1 [0, ) implies M +1 M, a contradiction.
7
7
To what, exactly?
16 CHAPTER 1. AXIOMS OF THE REAL NUMBER SYSTEM
Example 5 (, ) is neither bounded below nor bounded above.
Example 6 {q Q : q
2
< 2} is bounded, as it is contained in the interval [100, 100].
Denition 1.8 M is an upper bound for the non-empty set E if
x M for all x E.
Denition 1.9 L is the least upper bound for the non-empty set E if
1. L is an upper bound for E.
2. If M is any upper bound for E, L M. That is, of all the upper bounds for E, L is
the smallest.
We denote L is the least upper bound for E by
L = l.u.b. E
or
L = sup E,
where sup is an abbreviation for the latin: supremum.
Example 7 10 is an upper bound for {3, 6, 9}.
Example 8 23 is also an upper bound for {3, 6, 9}.
Example 9 sup{3, 6, 9} = 9.
In the above examples, things are simple, because for a nite set E, sup E = max E.
Example 10 10 is an upper bound for (0, 1).
Example 11 23 is also an upper bound for (0, 1).
1.4. SUPREMA AND INFIMA: SUPS AND INFS 17
Example 12 1 is the least upper bound for (0, 1). That is, sup(0, 1) = 1.
This last example is the rst non-obvious one. Certainly, 1 is an upper bound for (0, 1),
since (0, 1) = {x : 0 < x < 1}.
8
So property (1) of the denition of least upper bound is
satised. To show property (2), we must show that if M is any upper bound for (0, 1), then
1 M. We claim that no number less than 1 can be an upper bound for (0, 1). Clearly if
x 0 then x cannot be an upper bound for (0, 1). If 0 < r < 1 then 0 < r <
1+r
2
< 1, which
implies that r is not an upper bound for (0, 1). (Precisely why?) Since every number less
than 1 is not an upper bound for (0, 1), then if M is an upper bound for (0, 1), then M 1.
This establishes property (2). It follows that 1 is the least upper bound for (0, 1), i.e.,
sup(0, 1) = 1.
More Examples
Example 13 sup(0, ) does not exist, because (0, ) is not bounded above.
Example 14 sup{0, 1/2, 2/3, 3/4, . . .} = 1. The proof for this will have to wait until after
we introduce the Axiom of Completeness.
Denition 1.10 M is an lower bound for the non-empty set E if
x M for all x E.
Denition 1.11 G is the greatest lower bound for the non-empty set E if
1. G is a lower bound for E.
2. If M is any lower bound for E, G M, that is, of all the lower bounds for E, G is
the largest.
We denote G is the greatest lower bound for E by
G = g.l.b. E
8
The set-builder notation is dened and discussed in Section 1.7.
18 CHAPTER 1. AXIOMS OF THE REAL NUMBER SYSTEM
or
G = inf E,
where inf is an abbreviation for the latin: inmum.
Example 15 1 is an lower bound for {3, 6, 9}.
Example 16 -23 is also an lower bound for {3, 6, 9}.
Example 17 inf{3, 6, 9} = 3.
In the above examples, things are simple, again because for a nite set E, inf E = min E.
Theorem 1.11 (Approximation Property for Suprema) Let E be a non-empty set bounded
above, and suppose there exists s = sup E. Then for every > 0 there is an element of E in
the interval (s , s].
Proof: If s E, the theorem is trivially true. If s E, suppose to the contrary that in the
interval (s , s) there is no element of E. Since s E, s is therefore also an upper
bound for E, contradicting the hypothesis that s was the least.
Corollary 1.12 (Approximation Property for Inma) Let E be a non-empty set bounded
below, and suppose there exists t = inf E. Then for every > 0 there is an element of E in
the interval [t, t + ).
Proof: See Exercise 31.
Denition 1.12 Let E = . Then E = {e : e E}.
Exercise 24 Determine sup{.3, .33, .333, .3333, . . .}. No need for a proof at this time.
Exercise 25 A set E is bounded if and only if there exists an M so that |x| M for all
x E.
1.5. AXIOM OF COMPLETENESS 19
Exercise 26 M is an upper bound for the set E if and only if M is a lower bound for the
set E.
Exercise 27 E is bounded above if and only if E is bounded below.
Exercise 28 E is bounded if and only if E is bounded.
Exercise 29 Is the empty set bounded? Proof?
Exercise 30 sup E = inf{E}. This shows that any result we obtain about sups can be
translanted to a result about infs, and conversely.
Exercise 31 Prove the Approximation Property for Inma.
Exercise 32 Prove: A B = inf B inf A sup A sup B, for A and B bounded,
non-empty sets.
Exercise 33 a. sup[a, b] = sup(a, b) = b.
b. inf[a, b] = inf(a, b) = a.
Exercise 34 Let E be a non-empty set bounded above. Let F = {x : x is an upper bound
for the set E}. Suppose inf F and sup E exist. Prove: inf F = sup E.
1.5 Axiom of Completeness
We have one nal axiom which we need to assume about R, which will distinguish R from Q,
the ordered eld of rational numbers. This property is called completeness. We shall see
that it is an essential property of the real number system, one which allows us to conclude
that Cauchy sequences converge, that the Intermediate Value Theorem is true, the Extremal
properties for continuous functions, etc., a great variety of properties and theorems all of
which are consequences of the completeness of the real number system.
Axiom of Completeness: Every non-empty set of real numbers E which is bounded
above has a supremum.
20 CHAPTER 1. AXIOMS OF THE REAL NUMBER SYSTEM
The Axiom of Completeness cannot be proved, in the context of the real numbers. It must
be assumed, which is what we do with all axioms. The Completeness Axiom is what distin-
guishes the real number eld from the eld of rational numbers, which is a subeld of the
real numbers. The rational numbers presented some trouble to the ancient Greek mathe-
maticians. They came to understand that there were lengths that could be constructed from
rational numbers, but which themselves were not rational: They knew that the diagonal of
a square of side length 1 was of a length which was not a rational number.
9
The Greeks tried to operate within the eld of rational numbers, but were led outside it
(as we saw, with the construction of
2 = p/q, for some integers p, q. After dividing out any common factors, we may assume that p and q
contain no common factors. Then squaring both sides,
p
2
= 2q
2
.
Then p
2
is an even number (because it is a multiple of 2), which implies that p is an even number (since the
square of an odd number is odd), so
p = 2k
for some integer k, so
2q
2
= p
2
= (2k)
2
= 4k
2
,
and after dividing both sides by 2,
q
2
= 2k
2
which implies that q must be even (reasoning as we did, above, with p). But that is a contradiction, because
then p and q have a common factor, 2. So, there cannot be such a p and q, i.e.
2 is not rational.
1.6. PROPERTIES OF N, THE NATURAL NUMBERS: 21
{e : e E} is non-empty, and bounded above by M. By the Axiom of Completeness,
E has a least upper bound, say L. It is routine to verify then that L is the greatest lower
bound for E.
Exercise 35 Give an alternate proof of the Completeness Axiom for infs, based on the
following ideas: Let E be a non-empty set bounded below by L.
a. Let F = {x R : x is a lower bound for E}. Prove sup F exists. Let f = sup F.
b. Using the Approximation Property for sups, prove that if e E and e < f, then there
exists f
F, e < f
2 M.
To establish (1), note
15
that 0 < q
2
< 2 =0 <
q
2
<
2, so that q E =q <
2.
To establish (2), let M <
2,
or
q
2
< 2
which implies
q E.
But then M cannot be an upper bound for E since M < q. This establishes (2).
16
Example 22 Let E = {
1
2
,
2
3
,
3
4
, . . .}. Then
sup E = 1.
To see this, we reason as we did above:
Clearly 1 is an upper bound for E. If r < 1, by the Archimedean property there exists an
n N such that 1/n < 1 r. Then
r < 1 1/n =
n 1
n
E,
i.e. r is not an upper bound for E. Therefore, 1 is the least upper bound for E, i.e. sup E = 1.
Exercise 42 Prove the density of the irrationals: For all real numbers a, b where a < b,
there exists an irrational c such that a < c < b. (Hint: the product of a rational and an
irrational is irrational).
15
We prove this in Section 17.
16
We are using the form of proof:
p =q
is equivalent to
q =p.
28 CHAPTER 1. AXIOMS OF THE REAL NUMBER SYSTEM
Exercise 43 Prove: if E is bounded and non-empty, and s = sup E E, then for every
> 0, there exist x, y E such that 0 < |x y| < .
Exercise 44 Give an example of a bounded, non-empty set E such that the property in
Problem 43 above does not hold.
1.7 Sets, Relations, Functions
Denition 1.13 A set is a collection of elements, usually here, real numbers, or natural
numbers.
We occasionally use the set-builder notation, where a set is dened by some property P(x),
A = {x R : P(x)}.
For example:
A = {x R : x
2
1}
is way of dening the set A as the collection of all real numbers whose square is less than or
equal to 1, i.e.
A = [1, 1].
Why would we use the set-builder notation when we have a simpler way of dening the
set A? It is because the property P(x) which characterizes the elements of A may not be so
simple, as, for example, A = {x R : x
3
+ x
2
3x 1}.
We say A is a subset of B, and write
A B
if every element of A is also an element of B, i.e.
x[x A =x B].
1.7. SETS, RELATIONS, FUNCTIONS 29
A = B if and only if A B and B A, that is, two sets are equal if and only if they have
precisely the same elements:
x[x A x B].
will be the symbol for the empty set, the set which consists of no elements.
17
Denition 1.14 The cartesian product of two sets A and B, denoted A B, is the set
of all ordered pairs of the form (a, b), where a is an element of A, and B is an element of
B:
AB = {(a, b) : a A, b B}.
Denition 1.15 A relation R on a set A is a subset of AA.
Example 23 The relation L = < on R is the subset of RR:
L = {(x, y) : x < y},
which is the set in the cartesian plane of all points which lie above the principal diagonal:
y = x.
Thus, for example, (1, 3) L and (2, 5) L but (6, 4) L.
Denition 1.16 An equivalence relation R on a set A is a relation R on a set A with
three properties:
a. For every a A, aRa. [Reexivity]
b. For every a, b A, aRb =bRa. [Symmetry]
c. For every a, b, and c A, aRb and bRc imply aRc. [Transitivity]
Exercise 45 Prove that the relation aRb if and only if b a is a multiple of 9 is an
equivalence relation on N .
17
The careful reader will have noted that by use of the word the when attached to empty set, we are
presuming that there are not possibly two dierent empty sets. This follows from the property above that
two sets are the same (equal) if they have exactly the same elements. Thus, two empty sets are the same,
because they have exactly the same elements.
30 CHAPTER 1. AXIOMS OF THE REAL NUMBER SYSTEM
Denition 1.17 A function f : A B is a subset of AB with the following properties:
a. For every a A there exists a b B such that
(a, b) f.
b. If (a, b
1
) f and (a, b
2
) f then b
1
= b
2
. (This expresses the single-valuedness of the
function.)
We shall also use the word mapping interchangeably for the name function, especially
as in f is a mapping from A to B.
Denition 1.18 The range of f is the collection of elements of B that are images of
elements of A:
range of f = {b B : (a)[(a, b) f]}.
Denition 1.19 The domain of f is the collection of elements of A.
domain of f = {a A : (b)[(a, b) f]}.
Denition 1.20 A function f : A B is called onto or onto B (and denoted f :
A
onto
B) if every element of B is in the range of f:
(b B)(a A)(a, b) f.
Denition 1.21 A function f is called one-to-one, denoted 1 1, if
f(x) = f(y) =x = y,
i.e. two dierent elements in the domain of f do not correspond to the same element in the
range.
Denition 1.22 Let f be a function, f : A B. The inverse of f, denoted f
1
, is the set
f
1
= {(b, a) : (a, b) f}.
Theorem 1.20 If f is a 1-1 function from A onto B, then the inverse of f is a 1-1 function
from B onto A.
1.8. CARDINALITY: COUNTABLE AND UNCOUNTABLE SETS 31
Proof: See Exercise 48.
Exercise 46 Let A = {a, b, c}, B = {0, 1}. Compute A B. Construct and exhibit a
function f : A B. Can you construct a function from A into B which is 1-1? Why (or
why not)?
Exercise 47 The function f(x) = x
2
does not have an inverse as yet, as we have dened
it, because x
2
is not one-to-one, at least on the domain which is understood, namely
(, ). However, if we restrict the domain of f to [0, ), it is easy to see that in this
case x
2
is a one-to-one function, so an inverse is possible to dene. The inverse of x
2
:
f
1
= {(x
2
, x) : x [0, )} = {(y,
y) : y [0, )}
from which it is seen that the inverse to x
2
is the function
x. Verify that
x is a 1-1
function on [0, ).
Exercise 48 Prove Theorem 1.20.
Exercise 49 Dene the relation between sets: A B if and only if there exists a function
f : A B which is 1-1 and onto. Then prove that is an equivalence relation on the class
of all sets.
1.8 Cardinality: Countable and Uncountable Sets
Denition 1.23 Two sets A and B are called cardinally equivalent if there exists a
function f : A B which is both 1-1 and onto.
Informally, we think of A and B being of the same size when they are cardinally equivalent.
18
18
Cardinal equivalence is an equivalence relation on the class of all sets. The Fundamental Theorem of
Equivalence Relations states that an equivalence relation on a set A partitions A into disjoint subsets called
equivalence classes. Bertrand Russell dened cardinal number as the equivalence class of all sets which
are equivalent under this equivalence relation. The cardinal number 3 was then the equivalence class
consisting of all sets with exactly three elements. The equivalence class 3 then embodied the property of
three-ness.
32 CHAPTER 1. AXIOMS OF THE REAL NUMBER SYSTEM
Denition 1.24 A set A is called nite if there exists an n N and a 1-1 function f
whose domain is A and whose range is contained in the set {1, 2, . . . , n}, for some n N .
Note: this allows the empty set to be nite.
(Equivalently: the nite sets are the ones which are either empty, or cardinally equivalent
to the initial segments {1, 2, . . . , n} of the natural numbers.)
Denition 1.25 A set A which is not nite is called innite.
There are two dierent kinds of innite sets:
Denition 1.26 An innite set A which is cardinally equivalent to N is called countably
innite or denumerable. A set which is either denumerable or nite will be called count-
able.
Denition 1.27 An innite set which is not countably innite is called uncountable.
Theorem 1.21 (Cantors Diagonalization Theorem) The real numbers in (0, 1) are
uncountable.
Proof: Let A = (0, 1). Suppose instead that A were countable. Then there would exist a
1-1 function g : N
onto
A. We list the range of g, as follows:
g(1) = 0.a
11
a
12
a
13
. . .
g(2) = 0.a
21
a
22
a
23
. . .
g(3) = 0.a
31
a
32
a
33
. . .
. . .
where the as are the decimal expansions of the elements of A which are so enumerated by
the function g.
We now construct a number b (0, 1) such that b range(g), a contradiction.
Dene a sequence {b
1
, b
2
, . . .} by
b
k
=
5 if a
kk
= 6
6 if a
kk
= 6
1.8. CARDINALITY: COUNTABLE AND UNCOUNTABLE SETS 33
Note that b
k
= a
kk
, for each k = 1, 2, . . . .
Now consider the number
b = 0.b
1
b
2
b
3
. . . =
b
1
10
+
b
2
10
2
+
b
3
10
3
+ . . . .
Clearly, 0.5 < b < 0.7, so b (0, 1). But b was constructed so that b disagrees with each
element in the range of g: If b = g(k) for some k,
g(k) = 0.a
k1
a
k2
a
k3
. . .
then b
k
= a
kk
, so b = g(k) after all! This contradicts the assumption that A is a countably
innite set, hence A is uncountable.
The Cantor Diagonal Argument has been applied in areas of mathematics as diverse from
Real Analysis as to prove that The Halting Problem is recursively unsolvable
19
, and to prove
Godels Incompleteness Theorem, that no system of logic suciently powerful to express
arithmetic of natural numbers (e.g. what it is to be a prime number, multiplication, etc.)
can express in an algorithmic way all the provable sentences (i.e. the Theorems) and only
the provable sentences. (More precisely, the set of provable sentences in formal logic is a
recursively enumerable, not recursive
20
.) set.)
Theorem 1.22 A subset of a countably innite set is either countably innite or nite.
Proof: Suppose A B, B countably innite, and A is not nite. We prove A is countably
innite by induction:
Since B was assumed countably innite, there exists a 1-1 function g : N
onto
B. Let
b
k
= g(k), k = 1, 2, . . .
and we construct the mapping: N A by choosing in order, k = 1, 2, . . . , those b
k
which
are in A as well. Here are the details:
Consider the set
E = {k N : b
k
A}
19
There is no computer program that can decide, for every computer program, and each possible input to
the program, whether or not that program with that input will ever terminate.
20
Cf, Martin Davis, Computability and Unsolvability, McGraw-Hill, New York, 1958.
34 CHAPTER 1. AXIOMS OF THE REAL NUMBER SYSTEM
which is a non-empty set of natural numbers (since A is assumed not nite.) By the Well-
Ordering Principle, the set has a least element, call it j
1
. Now suppose that
j
1
< j
2
< . . . < j
n
have been chosen so that
b
j
k
A, k = 1, 2, . . . , n
and for any m, 1 m j
n
, if m {j
1
, j
2
, . . . , j
n
}, then b
m
A.
Now consider
{k > j
n
: b
k
A}
which is non-empty, because A was innite, and which also has a least element by the
Well-Ordering Principle. Call it j
n+1
. Then b
j
n+1
A.
Thus we have constructed a sequence
j
1
< j
2
< . . .
such that b
j
k
A for every k, and b
m
A if m {j
1
, j
2
, . . .} .
Let f : N A be dened by
f(n) = b
jn
.
It follows
21
that f is 1-1 and onto A, proving that A is a countable set.
Corollary 1.23 : The real numbers, R, are an uncountable set.
Proof: (0, 1) R.
Theorem 1.24 The union of countably innitely many countably innite sets is countably
innite. (Colloquially: the denumerable union of denumerable sets is denumerable.)
Proof: Suppose A
1
, A
2
, . . . are the countably innite sets. In light of the previous theorem,
we may assume that all the A
i
s are disjoint, for if not, extending them to be disjoint sets
only increases the number of elements in their union.
22
21
Provide the details. See Exercise 54.
22
This extension could be accomplished, for example, by replacing the set A
i
by the new set
A
i
= A
i
i = {(a, i) : a A
i
}.
1.8. CARDINALITY: COUNTABLE AND UNCOUNTABLE SETS 35
To prove that
B =
i=1
A
i
is countably innite, it suces to nd an enumerating function f : N B which is 1-1
and onto. This will be accomplished if we nd a way of listing all the elements of all the
A
i
s. What we need is a function which provides a mapping from N to N N which is
itself 1-1 and onto. Once we have this, the remainder of the construction is quite easy.
For the moment, however, let us enumerate each of the A
i
, as follows:
A
1
= {a
11
, a
12
, a
13
, . . .}
A
2
= {a
21
, a
22
, a
23
, . . .}
A
3
= {a
31
, a
32
, a
33
, . . .}
. . .
To be more specic, since each A
k
was assumed to be countably innite, there exists a
g
k
: N A
k
which is 1-1 and onto. Then let a
k,j
= g
k
(j), j = 1, 2, . . . .
Lemma 1.25 : There is a function h : N N N which is 1-1 and onto.
Proof: Let m be any positive integer. Then m can be written as a power of 2 times an
odd integer, and in only one way:
m = 2
r1
(2s 1), where r 1 and s 1.
Now dene h(m) = (r, s), and observe that h
1
(r, s) = 2
r1
(2s1) is a 1-1 onto function:
N N N . It follows that h is the desired mapping.
To complete the proof of the theorem, dene f : N B as follows:
f(m) = g
r
(s)
where h(m) = (r, s). Since g
r
(s) = g
r
(s
) if and only if r = r
and s = s
it follows that f is
1-1 because h is.
Then
A
i
A
j
= if i = j
since (a, i) = (a, j) if i = j.
36 CHAPTER 1. AXIOMS OF THE REAL NUMBER SYSTEM
Now, let x A
i
. Then x A
k
for some k. Then x = g
k
(l) for some l, and hence
x = f(2
k1
(2l 1)), which shows that f is onto.
Corollary 1.26 The nite union of countably innite sets is countably innite.
Proof: This follows from Theorem 1.22, when we recognize that the nite union of
countably innite sets can be identied with a subset of the countably innite union of
countably innite sets.
Corollary 1.27 The countably innite or nite union of countably innite or nite sets is
countably innite or nite.
Proof: Suppose the sets are A
1
, A
2
, . . . . If the number of A
i
is nite, say i = 1, 2, . . . , n,
then let A
k
= {(1, k)} for k > n. In light of Theorem 1.22 we may now assume that the
number of A
k
is countably innite.
If any A
k
is a nite set, say A
k
= {a
k1
, . . . , a
kn
}, then extend A
k
to an innite set
A
k
= {a
k1
, . . . , a
kn
, (k, n + 1), (k, n + 2), . . .} and again in light of Theorem 1.22 we may
assume that A
k
is a countably innite set.
Since the countably innite union of countably innite sets is countably innite, the
result follows.
Corollary 1.28 The set Z of all integers, positive or negative, or 0, is a countably innite
set.
Proof: Z can be identied as the union of three sets, a copy of the positive integers,
a copy of the negative integers, and the set consisting of 0. It follows from the previous
corollary that Z is countably innite.
Corollary 1.29 The set Q of all rational numbers is countably innite.
Proof: The set Q can be written as the union of three sets, the positive rationals, the
negative rationals, and the set consisting of 0. Q
+
, the positive rationals, can be identied
as a subset of the set of all ordered pairs of natural numbers: (m, n). Identify (m, n) with
the rational number m/n, and observe that (2m, 2n) is also identied with the same rational
1.8. CARDINALITY: COUNTABLE AND UNCOUNTABLE SETS 37
number. Thus, Q
+
can be identied with a subset of N N , and hence by the previous
remarks in the previous corollaries, is a countably innite set. The rest of the proof follows
as in the case of Z.
Exercise 50 Without using Corollary 1.28, prove directly from the denition that Z is a
countable set.
Exercise 51 Construct a function f : R R\
23
{0} which is 1-1 and onto.
Exercise 52 Construct a function f : R R\N which is 1-1 and onto.
Exercise 53 Construct a function f : (0, 1) R which is 1-1 and onto.
Exercise 54 Complete the proof of Theorem 1.22 by performing the following steps:
a. Prove that j
k
= j(k), k = 1, 2, . . . is a 1-1 function.
b. Conclude that f is therefore 1-1.
c. Prove that f is onto A.
23
A\B is the set A B
c
.