0% found this document useful (0 votes)
232 views28 pages

Cardinality

This document discusses cardinality, or the size of sets. It begins by defining cardinality for finite sets as the number of elements in the set. For infinite sets, cardinality is defined using bijections between sets. Sets have the same cardinality if there exists a bijection between them. The cardinality of the natural numbers N is given the symbol א0. A set is countably infinite if its cardinality equals that of N, and countable if it is either finite or countably infinite. Cantor showed that some infinite sets have larger cardinalities than N, demonstrating sizes of infinity beyond countable.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
0% found this document useful (0 votes)
232 views28 pages

Cardinality

This document discusses cardinality, or the size of sets. It begins by defining cardinality for finite sets as the number of elements in the set. For infinite sets, cardinality is defined using bijections between sets. Sets have the same cardinality if there exists a bijection between them. The cardinality of the natural numbers N is given the symbol א0. A set is countably infinite if its cardinality equals that of N, and countable if it is either finite or countably infinite. Cantor showed that some infinite sets have larger cardinalities than N, demonstrating sizes of infinity beyond countable.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 28

Chapter VIII

Cardinality

...it’s very much like your trying to reach Infinity. You know that it’s there, but you
just don’t know where—but just because you can never reach it doesn’t mean that it’s
not worth looking for. Norton Juster, The Phantom Tollbooth

In the very first chapter of this book, we defined the cardinality of a finite set to
equal the number of its elements. Thus, for instance, the sets {a, b, c} and {1, 2, 3}
have the same cardinality, which is 3. For infinite sets we cannot define the cardinality
to be the number of elements, because such sets do not have any (finite) number of
elements.
However, there is a reason we do not just define the cardinality of an infinite set
to be the symbol ∞; there is a better way to measure the size of sets! This came as
a shock to mathematicians in the late 1800’s, who expected all infinite sets to have
the same size. This theory was developed by Cantor, who showed that the set of real
numbers R has bigger cardinality than N. In this chapter, we develop Cantor’s theory
of cardinality, which has become an important part of modern mathematics.

215
216 CHAPTER VIII. CARDINALITY

28 Definitions regarding cardinality


In this section, we will define what it means for two sets to have the same cardinality,
discuss what it means for sets to have the same size as the natural numbers, and
prove some basic facts about cardinality.

28.A How do we measure the size of sets?


The first question we must answer is: How do we measure the size of a set? For finite
sets we simply count out the elements. For instance, if S = {68, 5, 39291, 90}, then
we just count off each element, and we see that |S| = 4. Another way to think about
counting is forming a bijection
f : {1, 2, 3, 4} → S
given by
f (1) = 68, f (2) = 5, f (3) = 39291, and f (4) = 90.
Intuitively, we can think of sets having the same “size” if there is a bijection between
them. This motivates the following definition.

Definition 28.1. Let S and T be sets. We say that S and T have the same
cardinality if there exists a bijection f : S → T . If this holds, we write |S| = |T |.
If there is no bijection from S to T , we say that they have different cardinal-
ities and write |S| =6 |T |.

Remark 28.2. We will prove, shortly, that this relation is an equivalence relation,
which will justify our use of an equality sign for the relation. N
The following are some examples and nonexamples of sets with the same cardi-
nality.
Example 28.3. (1) Consider the three sets A = {a, b, c, d, e, f }, B = {1, 2, 3, 4, 5, 6},
and C = {0, 1, 2, 3, 4, 5}. It is easy to construct a bijection from A to B (since both
sets have exactly six elements). So |A| = |B|. There are also bijections from A to C,
and from B to C (since C also has six elements), so |A| = |C|, and |B| = |C|.
(2) Let S = {1, 2, 3} and T = N. There is no bijection from S to T (since T has
more than 3 elements). Thus |S| = 6 |T |.
(3) It can be tricky when working with infinite sets to tell whether they have the
same cardinality. For instance, does N have the same cardinality as 2N? The answer
is yes! There is a bijection f : N → 2N, given by f (n) = 2n. In other words,
f (1) = 2, f (2) = 4, f (3) = 6, f (4) = 8, . . .
is a bijection from N to 2N. Thus, we do have
|N| = |2N|. △
The following example is so important that we’ll call it a theorem.
28. DEFINITIONS REGARDING CARDINALITY 217

Theorem 28.4. The cardinalities of N and Z are the same.

Proof. We need to construct a bijection f : N → Z; or, in other words, we need to


“count” the elements of Z using the natural numbers. The idea is to first count 0, and
then successively count the positive and negative integers, as in the following table

n 1 2 3 4 5 6 7 8 9 10
f (n) 0 1 −1 2 −2 3 −3 4 −4 5
which yields the needed bijection between N and Z.

Remark 28.5. The previous proof was very informal. First, we didn’t prove that
the function f is injective and surjective. We’ll leave that as an exercise to be verified
later.
Second, the definition of the function f is sloppy. To be more precise we should
define f as a piecewise function on n ∈ N by the rule
(
n/2 if n is even,
f (n) =
−(n − 1)/2 if n is odd.

Amazingly, it turns out that this function can be expressed by a (somewhat com-
plicated) single formula
1 + (−1)n (2n − 1)
f (n) = .
4
(It is not expected that a student would be able to come up with this formula without
a lot of help!) Note that the inverse of this function is given in Example 27.12. N

Advice 28.6. To prove that two sets have the same cardinality you are required
to find a bijection between the two sets. In general there are usually lots of
different bijections. Try to look for a simple one.

We end this subsection with one more example.

Example 28.7. We will prove that the open interval A = (0, 1) and the open interval
B = (1, 4) have the same cardinality. We thus want to construct a bijection between
these two sets. The most obvious option would be to stretch by a factor of 3 and
then shift right by 1. So we define g : (0, 1) → (1, 4) by the rule

g(x) = 1 + 3x.

It is straightforward to check that g is a function from A to B, and that g is both


one-to-one and onto. △
218 CHAPTER VIII. CARDINALITY

28.B Basic results and a picture


In the previous subsection, we defined what it means for two sets to have the same
cardinality. To really justify that definition, we should show that the relation of
“having the same cardinality” is an equivalence relation on sets.

Theorem 28.8. The relation of “having the same cardinality” as given in Def-
inition 28.1 is an equivalence relation on the collection of sets.

Proof. We first prove this relation is reflexive. Let X be any set. The identity function
idX : X → X is a bijection. Thus X is related to X.
Next, we prove this relation is symmetric. Let X and Y be any sets, and assume
X relates to Y . In other words, assume there is a bijection f : X → Y . Then f has
an inverse function f −1 : Y → X which is also a bijection. Hence Y relates to X.
Finally, we prove transitivity. Let X, Y , and Z be any sets, and assume there
are bijections f : X → Y and g : Y → Z. The composite function g ◦ f : X → Z is a
bijection, as needed.

The equivalence classes of this equivalence relation are precisely the collections of
sets with the same cardinality.
The observant reader will have noticed that we defined when two sets S and T have
the same cardinality, |S| = |T |, but that we have not defined what the cardinality
of an individual set is. Mathematicians solve this problem by choosing a (special)
transversal of this equivalence relation; the representatives in the transversal are the
cardinal numbers. Thus, the cardinality of a set, denoted |S|, is a special element of
the equivalence class of S under the relation “having the same cardinality.” There
are specific symbols used to represent the cardinality of a set. For finite sets, that
symbol is just the actual size of the set. Thus, we still have |{2, 79, −4}| = 3.
For infinite sets things are much more complicated. (Did you expect otherwise?)
The smallest infinite cardinal |N| is written as ℵ0 (read as “aleph-nought”). The next
infinite cardinal is ℵ1 , and so forth. The diagram below gives some perspective to this
chain. (We put question marks in places where we do not yet have any examples.)

28.C Definition of countable sets


The easiest infinite set to understand is the set of natural numbers. Its cardinality
is given a special symbol |N| = ℵ0 . We think of the natural numbers as “counting
numbers” which motivates the following definition.

Definition 28.9. A set S is countably infinite if |S| = |N|.


A set is countable if it is either finite or countably infinite.

The following are some examples and nonexamples involving these definitions.
28. DEFINITIONS REGARDING CARDINALITY 219

Example 28.10. (1) The empty set is countable, since it is finite. It is not countably
infinite (since it isn’t infinite).
(2) The set {1, 2, 93828283928} is countable and finite, but not infinite, and hence
not countably infinite.
(3) Theorem 28.4 tells us that the integers are a countably infinite set. Similarly,
Example 28.3 tells us that 2N is a countably infinite set.
(4) The set {n2 : n ∈ Z} is infinite. We will see shortly that it is countably
infinite.
(5) Are there any sets which are infinite but not countably infinite? These would
be sets which occur strictly above ℵ0 in the diagram below. We will prove in Section 30
that, yes, there are such sets! △

Cardinalities Examples
.. ..
. .
ℵ2 ?
Infinite
ℵ1 ?
ℵ0 N, 2N, Z, . . .
.. ..
. .
2 {1, 2}, {1, 3}, . . .
Finite
1 {1}, {2}, . . .

0 ∅

Advice 28.11. To show that a set A is countably infinite, you just need to
arrange its elements in a nonrepeating, infinite list

A = {a1 , a2 , a3 , . . .}.

This is precisely what we did when we proved that Z is countably infinite, we put
its elements in the list 0, 1, −1, 2, −2, 3, −3, . . ..

Warning 28.12. If you are proving that a set is countably infinite by putting
its elements into a list, then do not skip elements and do not repeat elements.
Otherwise, you didn’t really create a bijection.

Question: Which of the following lists proves that Z is countably infinite?


(a) {0, 1, 2, 3, . . .}.
(b) {0, 1, 0, −1, 0, 2, 0, −2, . . .}.
(c) {1, 0, 2, −1, 3, −2, 4, −3, . . .}.
220 CHAPTER VIII. CARDINALITY

Answer: Only (c) works. The list in (a) skips the negative integers. (However,
it does prove that the nonnegative integers are countably infinite.) The list in (b)
repeats 0. Of the choices, only (c) lists every integer exactly once, hence gives the
bijection with N.

28.D Subsets of countable sets


Many operations involving countable sets yield new countable sets. One of the most
useful results is the following:

Theorem 28.13. Any infinite subset of a countably infinite set is countably


infinite.

Proof. Let A be a countably infinite set. We can write the elements of A in an infinite
list a1 , a2 , a3 , . . .. Let B be an infinite subset of A.
Let n1 be the smallest natural number with an1 ∈ B, which exists since B 6= ∅ as
B is infinite. Put b1 = an1 .
Next let n2 be the smallest natural number with n2 > n1 and an2 ∈ B, which
exists since B − {b1 } = 6 ∅ as B is infinite. Put b2 = an2 .
Repeating this process (by induction) we create an infinite list b1 , b2 , . . .. Clearly
there are no repetitions in this list. This new list covers every element of B because
we can also prove (by induction) that ni ≥ i for each i ∈ N; hence, we have worked
all the way through the list of elements of A.

Corollary 28.14. Any subset of a countable set is countable.

Proof. We leave this as an exercise for students.

Example 28.15. Not every subset of N is countably infinite. For instance {3, 7, 19}
is a subset but not countably infinite.
However, every infinite subset of N is countably infinite by Theorem 28.13. For
instance, since there are infinitely many primes (by Theorem 19.14), then we know
that the set of all primes
{2, 3, 5, 7, 11, 13, 17, . . .}
is countably infinite.
Is S = {x3 : x ∈ Z} = {. . . , −27, −8, −1, 0, 1, 8, 27, 64, . . .} countably infinite?
Yes! First, it is an infinite set since f (x) = x3 is a strictly increasing function. As S
is an infinite subset of the countably infinite set Z, we know S is countably infinite
by Theorem 28.13. △

Example 28.16. Is |2Z| = ℵ0 ? Yes, since 2Z is an infinite subset of the countably


infinite set Z.
28. DEFINITIONS REGARDING CARDINALITY 221

Alternatively, you could create an explicit bijection f : N → 2Z, although this is


more difficult. We see that we can list the elements of 2Z as 0, 2, −2, 4, −4, 6, −6, . . ..
From this pattern, one possible bijection is given by the rule

1 + (−1)n (2n − 1)
f (n) = . △
2

28.E Exercises
Exercise 28.1. Declare whether the following statements are true or false, with
proof/reason or counterexample:
(a) All finite sets have the same cardinality.
(b) If f : A → B is a function between two sets, then |f | = |A| (thinking of f as a
set of ordered pairs).
(c) Every subset of N is countably infinite.
(d) Every subset of an infinite set has cardinality ℵ0 .
(e) If f : A → B is a surjective function then |f | = |B| (thinking of f as a set of
ordered pairs).

Exercise 28.2. Define h : (0, ∞) → (0, 1) by the rule


x
h(x) = .
x+1
Verify that h is a bijection. What does this say about the cardinality of these open
intervals?

Exercise 28.3. Prove that the set of those natural numbers with exactly one digit
equal to 7 is countably infinite. For instance, the number 103792 has exactly one of
its digits equal to 7, while 8772 has two digits equal to seven.

Exercise 28.4. Consider the set

S = {x ∈ Z : x = a2 + b2 for some a, b ∈ Z}.

Prove that |S| = |N|.

Exercise 28.5. Prove that the function in Theorem 28.4 is a bijection. (See the
remark following the theorem for a formal definition of the function. The Pasting
Together Theorem might be helpful.)

Exercise 28.6. Prove that |R| = |(0, 1)|. (Hint: Consider the tangent function.
Alternatively, use Exercise 28.2 in pieces.)

Exercise 28.7. Prove Corollary 28.14.


222 CHAPTER VIII. CARDINALITY

29 More examples of countable sets


Usually a combination of two countable sets is countable. For instance, in this sec-
tion we will prove that unions of countable sets are countable, as well as Cartesian
products. Finally, we will show that Q is countably infinite.

29.A Unions

Theorem 29.1. If S and T are countable sets, then S ∪ T is countable.

Proof. Let T ′ = T − S. Notice that S ∪ T = S ∪ T ′ . Also since T is countable so is T ′ ,


by Corollary 28.14. Thus, to prove the theorem, it suffices to work with T ′ in place
of T . The benefit of working with T ′ instead of T is that S ∩ T ′ = S ∩ (T − S) = ∅;
i.e., S and T ′ are disjoint.
We will prove the case when S and T ′ are both countably infinite, leaving the
other cases as an exercise for the student.
So assume that S and T ′ are countably infinite. Thus, we can write the elements
of S in an infinite list s1 , s2 , s3 , . . .. Similarly list the elements of T ′ as t1 , t2 , t3 , . . .. We
need to list the elements of S ∪ T ′ in an infinite list, which is easy to do by interlacing
the two lists, as
s1 , t1 , s2 , t2 , s3 , t3 , . . .
There is no repetition in this list, since S ∩ T ′ = ∅ and the two original lists have no
repetitions. Also this new list contains each of the elements of S ∪ T ′ = S ∪ T .

Advice 29.2. The type of argument used in the first paragraph of the proof
above is referred to as reducing to a simpler situation. For instance, in the proof
above we could say there that we reduced to the case where the two sets are
disjoint.
After a reduction, mathematicians will simply assert that they now need
only consider the simpler situation. For example, after the first paragraph of
the proof above, we could simply say “We thus may assume S ∩ T = ∅.” This is
because we would recognize that, after replacing T by T ′ , this situation actually
occurs.

29.B Products
Taking a union is not the only operation we can do with two sets. Another operation
is intersection. When we intersect two sets, the cardinality can get much smaller.
There is a third operation: the Cartesian product. Cantor came up with a very
clever method for showing that the product of two countably infinite sets is still
countably infinite. Thus we have:
29. MORE EXAMPLES OF COUNTABLE SETS 223

Theorem 29.3. If A and B are countably infinite sets, then A × B is as well.

Proof. Without loss of generality, we just need to show that N × N is countably


infinite. Consider the following diagram:

(1, 1) (1, 2) (1, 3) · · ·

(2, 1) (2, 2) (2, 3) · · ·

(3, 1) (3, 2) (3, 3) · · ·


.. .. .. . .
. . . .

Travel along each arrow, starting at the smallest arrow, and passing to the next
smallest arrow. This allows us to list the elements of N × N as

(1, 1), (2, 1), (1, 2), (3, 1), (2, 2), (1, 3), . . . ,

according to when we pass through each ordered pair. We will hit each ordered pair
exactly once.

Remark 29.4. The bijection f : N × N → N described in Theorem 29.3 was only


described implicitly because the idea of the proof is much more important than the
details. However, we can explicitly describe the function. It is given by the rule

(m + n − 1)(m + n − 2)
f (m, n) = + n.
2

The first term (m+n−1)(m+n−2)


2
is the size of the triangle covered by the previous arrows,
and the last term n counts how far along the current arrow we have travelled. (The
details of proving that f is a bijection are left to the overmotivated reader!)
There are other ways of showing |N × N| = |N|. For instance, we could show that
the function g : N × N → N given by the rule

g(m, n) = 2m−1 (2n − 1)

is also a bijection. (Proving that g is a bijection requires the lemma that every natural
number can be written as a unique power of 2 times a unique odd integer.)
There are many other options. For instance, we could have used arrows pointing
down and to the left, instead of up and to the right. Alternatively, we could have
“snaked” back and forth along each finite diagonal. N

29.C Rational numbers


We are almost ready to describe the cardinality of Q. First, let’s deal with the positive
rational numbers Q+ .
224 CHAPTER VIII. CARDINALITY

Theorem 29.5. The set Q+ is countably infinite.

Proof. Put the elements of Q+ into a diagram as below. (We put fractions which are
not in lowest terms as light gray.)

1 2 3 4
1 1 1 1
···
1 2 3 4
2 2 2 2
···
1 2 3 4
3 3 3 3
···
1 2 3 4
4 4 4 4
···
.. .. .. .. ..
. . . . .

Now, we just list the elements as before, skipping over the elements in light gray,
since they will be counted when they are in lowest terms. This counting procedure
never repeats elements (since we skip those fractions not in lowest terms), and con-
tinues forever since Q+ is infinite (since N is a subset; in other words, the top row of
the diagram is infinite).

Remark 29.6. Here is an alternative proof of Theorem 29.5. Define a function


f : Q+ → N × N by sending a rational number a/b (written in lowest terms) to the
ordered pair (a, b). The map f is injective, but not surjective. The set im(f ) is
infinite, and a subset of the countably infinite set N × N. Thus im(f ) is countably
infinite. But f is a bijection from Q+ to im(f ), hence Q+ is countably infinite. N

Corollary 29.7. The set Q is countably infinite.

Proof sketch. We have Q = Q+ ∪ Q− ∪ {0}. We know Q+ is countable by Theorem


29.5. By the same reasoning, Q− is countable. Also, {0} is finite, hence countable. By
Theorem 29.1, the union of two countable sets is countable, so Q+ ∪ {0} is countable.
Applying Theorem 29.1 again, we find that Q = (Q+ ∪ {0}) ∪ Q− is countable. It is
also infinite, hence countably infinite.

We finish with one more example of how to show a set is countably infinite.

Example 29.8. Let S = {(i, j) ∈ N × N : i ≥ j}. This set is pictured below. We


will prove that S is countably infinite.
29. MORE EXAMPLES OF COUNTABLE SETS 225

(1, 1) (1, 2) (1, 3) (1, 4) (1, 5) · · ·

(2, 1) (2, 2) (2, 3) (2, 4) (2, 5) · · ·

(3, 1) (3, 2) (3, 3) (3, 4) (3, 5) · · ·

(4, 1) (4, 2) (4, 3) (4, 4) (4, 5) · · ·

(5, 1) (5, 2) (5, 3) (5, 4) (5, 5) · · ·


.. .. .. .. .. . .
. . . . . .

First, the set S is infinite, since the left column is infinite. Since S ⊆ N × N and
N × N is countably infinite, we know that S is countably infinite by Theorem 28.13.
Alternatively, we can list the elements of S by using the “up arrow” argument
from earlier. (We can’t list the elements of S by going down columns, but could we
list the elements of S by traveling across the successive rows?) △

29.D Exercises
Exercise 29.1. Finish the proof of Theorem 29.1.
(Hint: There are two unfinished cases: (a) both S and T ′ are finite, or (b) one of
them is finite and the other infinite.)

Exercise 29.2. Prove that {0, 1} × N is countably infinite. (Hint: Use theorems in
the section.)

Exercise 29.3. Let A and B be countable sets. Prove that A × B is countable. (How
is this different from what was proved in Theorem 29.3?)

Exercise 29.4. Let n ≥ 2 be an integer, and let A1 , A2 , . . . , An be countable sets.


Prove that A1 × A2 × · · · × An is countable. (Hint: Induction.)

Exercise 29.5. Prove |Z × N| = |Q|.

S 29.6. Prove that if A1 , A2 , . . . are pairwise disjoint, countably infinite sets,


Exercise
then ∞i=1 Ai is countably infinite. (Hint: Not induction. Think about “up S arrow”
arguments. Alternatively, you could construct a bijection from N × N to ∞ i=1 Ai .)

Exercise 29.7. Prove that the set of all finite subsets of N is countably infinite.
226 CHAPTER VIII. CARDINALITY

30 Uncountable sets
The results of this section will be centered around the following definition.

Definition 30.1. A set S which is not countable is said to be uncountable.

We can think of the uncountable sets as those sets which are bigger than the
countably infinite sets, as in the following figure.
Cardinalities Examples

..
.

Uncountable ℵ2
Infinite
ℵ1

Countably Infinite ℵ0 N, 2N, Z, Q, N × N . . .

..
.

Countable 2 {1, 2}, {1, 3}, . . .


Finite
1 {1}, {2}, . . .

0 ∅

As is evident from this diagram, we still don’t have any examples of uncountable
sets. In this section we will see that there are many examples.

30.A How big is R?


Before we can talk about how big the set of real numbers is, we need to explain more
precisely what a real number is. We usually think of real numbers as infinite decimal
expansions. For instance:

1 = 1.00000 . . .

2 = 1.41421 . . .
π
− = −0.24166 . . .
13
6 24
e − = −3.42609 . . .
7

However, real numbers do not always have unique infinite decimal expansions. If a
30. UNCOUNTABLE SETS 227

number ends in repeating 9’s, we can shift up and end in repeating 0’s. For example,
0.99999 . . . = 1.00000 . . .
8.3929999 . . . = 8.3930000 . . .
−3928.83829999 . . . = −3928.83830000 . . .
To avoid nonuniqueness issues, we will always avoid writing decimal expansions which
end in repeating 9’s.
Our goal now is to show that R is uncountable. From a previous homework
problem we know that |(0, 1)| = |R|, so it suffices to show that (0, 1) is uncountable.
(This set is easier to work with.) We know that (0, 1) is infinite, so to prove that it
is uncountable we must show that there does not exist any bijection f : N → (0, 1).
Cantor’s trick to do this is to show that every function f : N → (0, 1) is not surjective,
using what is now commonly called a “diagonalization argument.” Before we give the
technical proof, we demonstrate the idea with an example.
Suppose f : N → (0, 1) is the function
f (1) = 0.29838293 . . .
f (2) = 0.43828183 . . .
f (3) = 0.73826261 . . .
f (4) = 0.20030000 . . .
f (5) = 0.73724892 . . .
..
.
Our goal is to prove that f is not surjective. Thus, we must find some element
x ∈ (0, 1) that f does not map to. We will construct x digit by digit, so that it
doesn’t match any of the numbers on our list.
First, we want x to be different from f (1) = 0.29838293 . . .. We can make sure this
is true by guaranteeing that the first digit (past the decimal point) of x is different
from the first digit of f (1). So, let’s change that first 2 to a 4, and put
x = 0.4 . . . .
Notice that no matter what we do with the rest of the digits of x, it will not match
f (1).
Second, we want x to be different from f (2) = 0.43828183 . . .. They do match on
their first digit, but we can make their second digits different by changing the 3 to a
4. So we put
x = 0.44 . . .
and it will not equal f (1) or f (2).
Third, we want x to be different from f (3) = 0.73826261 . . .. It already is different
because of our choice of the first two digits, but we probably should continue the
pattern we’ve already come up with, to make sure that the third digit is different. So
we change the 8 to a 4, and put
x = 0.444 . . .
228 CHAPTER VIII. CARDINALITY

and we have x 6= f (1), f (2), f (3).


For the fourth number, f (4) = 0.20030000 . . ., we change the 3 to a 4, and put

x = 0.4444 . . .

and we have x 6= f (1), f (2), f (3), f (4).


For the fifth number, f (5) = 0.73724892 . . ., we need to change the fifth digit 4,
so we change it to 7. Put
x = 0.44447 . . . .
In general, we look at the nth digit of f (n), and change it to a 4, unless it is already
a 4, in which case we change it to a 7. We place that new digit in the appropriate
place in x. After all of these changes, x cannot match any number on our list, so f
is not surjective.

Remark 30.2. If we start with a different list of numbers, the number x we construct
will be different (depending on that list). N

To make this work more easily, define the digit change function

dig : {0, 1, 2, 3, 4, 5, 6, 7, 8, 9} → {4, 7}

by the rule (
4 if i 6= 4
dig(i) =
7 if i = 4.
Note that because the digit change function does not use 9’s, we don’t need to worry
about x ending in repeating 9’s.

Remark 30.3. There are many other digit change functions we could have used. This
is just one option. Because there are so many different options, you should always tell
your reader which digit change function you are using by giving the definition. N

We are now prepared to give the formal proof that (0, 1) is uncountable. As
discussed above, the technique used in this proof is known as Cantor’s diagonalization
argument.

Theorem 30.4. The set (0, 1) is uncountable.

Proof. Let f : N → (0, 1) be any function. We will show that f is not surjective.
Write f (n) using a decimal expansion f (n) = 0.d1,n d2,n d3,n . . . (which doesn’t
end in repeating 9’s). Let x ∈ (0, 1) be the number with decimal expansion x =
0.x1 x2 x3 . . . where xn = dig(dn,n ). In other words, the nth digit of x is the digit
change of the nth digit of f (n). Hence x 6= f (n) for each n ∈ N. Therefore f is not
surjective, as x is not in the image.
30. UNCOUNTABLE SETS 229

Corollary 30.5. The set R is uncountable.

The cardinality of R is called the continuum, and we write |R| = c. You might
ask: Where does c fit in the chain of cardinalities? Is it just one step up from ℵ0 ?
The answer is strange. It depends on the axioms you use! Some mathemati-
cians do assume c = ℵ1 ; this assumption is called the continuum hypothesis. Most
mathematicians simply do not worry about this question.
We have already seen that |(0, 1)| = |R|, so (0, 1) also has continuum cardinality.
Here are some more examples of sets with continuum cardinality.
(1) Any open interval (a, b) with a, b ∈ R. (We can also replace a with −∞, or b
with ∞.)
(2) Any half-open interval [a, b) with a, b ∈ R. (We can replace b with ∞.)
(3) Any half-open interval (a, b] with a, b ∈ R. (We can replace a with −∞.)
(4) Any closed interval [a, b] with a, b ∈ R.
To give the idea behind how to prove these facts, we will show that (0, 1] has
continuum cardinality.

Proof. We define a piecewise bijection f : (0, 1] → (0, 1). Let S = {1/n : n ∈ N} (


(0, 1]. Now, define f by the rule
(
x if x ∈
/S
f (x) =
1/(n + 1) if x = 1/n ∈ S.

It is easy to see that f is a bijection from (0, 1] − S to the set (0, 1) − S (as it is
essentially the identity function on this set). It is also a bijection from S → (0, 1) ∩ S.
By pasting together, we have a bijection.

We end this section with one last result which can be used to tell whether a set is
uncountable.

Theorem 30.6. Let A and B be sets, with A ⊆ B. If A is uncountable, then B


is uncountable.

Proof. This is the contrapositive of Theorem 28.13, after noting that A and B must
be infinite.

Example 30.7. Any subset S ⊆ R such that (0, 1) ⊆ S is uncountable, by the


previous theorem. In a later section we will show that any such subset has continuum
cardinality.
There are lots of subsets of R which are not uncountable. Can you list some? △
230 CHAPTER VIII. CARDINALITY

30.B Exercises
Exercise 30.1. Let a, b ∈ R with a < b. Construct a bijection f : (0, 1) → (a, b), and
prove it is a bijection. (This shows that bounded open intervals all have the same
cardinality.)

Exercise 30.2. Prove that the interval [0, 1) has continuum cardinality, by creating
a bijection [0, 1) → (0, 1).

Exercise 30.3. Prove that the interval [0, 1] has continuum cardinality.

Exercise 30.4. Prove that the irrational numbers are uncountable. (Hint: Theorem
29.1 may be useful, along with contradiction.) Find a subset of the irrational numbers
which is countably infinite.

Exercise 30.5. Prove or disprove: The set C of complex numbers is uncountable.


(Extra: Can you find exactly what the cardinality of C is?)

Exercise 30.6. We defined a product of two sets A and B to be the collection of


ordered pairs from A and B.
Let A1 , A2 , A3 , . . . be sets. Define the product ∞
Q
i=1 Ai = A1 × A2 × A3 × · · · to
be the set of ordered sequences

{(a1 , a2 , a3 , . . .) : ai ∈ Ai for each integer i ≥ 1}.

We showed previously thatQ a finite product of countable sets is countable. Show


that the countable product ∞ i=1 {0, 1} = {0, 1}×{0, 1}×{0, 1}×· · · is not countable.
(Hint: (1) This product is the set of infinite sequences of 0’s and 1’s. (2) Use Cantor’s
diagonalization argument.)
31. INJECTIONS AND CARDINALITIES 231

31 Injections and cardinalities


In the previous section we proved the amazing fact that R is not a countable set. Thus,
we might expect that |N| < |R|. We have only defined when cardinalities are equal.
In this section we give a method for determining inequalities between cardinalities.

31.A Injections vs. bijections


Let S and T be arbitrary sets. We would like to think of S as “smaller” than T if we
can fit S inside T . However, consider the set N which sits properly inside Z. These
sets have the same cardinality! Thus, we have to be extra careful about whether
cardinalities are strictly smaller or not.
One way to think about fitting S inside another set T is to use an injection.
This motivates the following definitions (which will only fully be justified in the next
section).

Definition 31.1. Let A and B be sets. If there is an injection f : A → B, we


write |A| ≤ |B|. If there is an injection but no bijection from A to B, then we
write |A| < |B|.

The following are some examples of these definitions in action.


Example 31.2. (1) What is the relation between the sets S = {1, 3, 5} and T =
{2, 4, 6, 8}? There is an injection from S to T but no bijection (since S has three
elements, but T has four elements). Thus |S| < |T |.
(2) What is the relation between the sets 2N and N? The map f : 2N → N defined
by the rule f (x) = x is an injective function. Hence, |2N| ≤ |N|. However, both sets
are countably infinite, so in fact there is a (different) bijective function between the
sets, so we have |2N| = |N|.
(3) What is the relation between the sets N and R? The map N → R sending each
natural number to itself is an injective function. Hence |N| ≤ |R|. In the previous
section we proved that R is uncountable, so there is no bijection between these sets.
Hence, we have the strict inequality |N| < |R|. △

Advice 31.3. We can think of injections as giving only “half” of the information
needed to construct a bijection, which is why we only get an inequality ≤.

You might recall that in our tower of cardinalities (found at the beginning of the
previous section) we had an infinite list of infinite cardinalities ℵ0 < ℵ1 < ℵ2 < . . ..
But so far, we have only found two types of infinite cardinalities; the countably infinite
sets, and the sets of continuum size. In our next theorem we will prove that for any
set S we have |S| < |P(S)|. Thus, we have an infinite chain of increasing infinite
cardinalities
|N| < |P(N)| < |P(P(N))| < . . . .
232 CHAPTER VIII. CARDINALITY

When S is a finite set, say |S| = n, then we know |S| < |P(S)| because n < 2n .
But how does this process work when S is an infinite set? In that situation we
cannot simply count elements. Rather, we must prove that there is no bijection
g : S → P(S). Our approach will be similar to how we showed R is not countable.
Start with an arbitrary function g : S → P(S), and show that g is not surjective
by finding some set B ∈ P(S) which is not in the image of g. The hardest part is
constructing B. We will give an explicit example (using finite sets), and then give
the formal proof for arbitrary sets.
Fix S = {1, 2, 3}. Hence
P(S) = {∅, {1}, {2}, {3}, {1, 2}, {1, 3}, {2, 3}, {1, 2, 3}}.
Consider the function g : S → P(S) given by g(1) = {2}, g(2) = ∅, and g(3) =
{1, 2, 3}. We want to find a set B ∈ P(S) that we can prove is not equal to g(1),
g(2), or g(3). Of course, we could just pick one of the other five sets not in the image
of g in this case; but we want to come up with a method that will work for any set S.
So, we ask the question: Is x ∈ g(x)?
• Is 1 ∈ g(1) = {2}? The answer is no.
• Is 2 ∈ g(2) = ∅? The answer is no.
• Is 3 ∈ g(3) = {1, 2, 3}? The answer is yes.
We construct B ∈ P(S) by the following rule: If the answer to the question “Is
x ∈ g(x)?” is no then we put x ∈ B, but if the answer is yes then we leave x out of
B. Using the answers we had above, we see that B = {1, 2}.
Notice that B will not equal g(x) because if x ∈ g(x) then x ∈ / B, and vice versa.
Indeed, we see that
• 1∈ / g(1) but 1 ∈ B.
• 2∈ / g(2) but 2 ∈ B.
• 3 ∈ g(3) but 3 ∈ / B.
This forces B to be different from any element in the image.
One more example is in order, to test our understanding. Suppose that S =
{1, 2, 3} as above, and suppose h : S → P(S) is the function defined by the rule
h(1) = {2, 3}, h(2) = {2}, h(3) = {2, 3}. If we follow the same pattern as above,
asking the question “Is x ∈ h(x)?” and using the answers to define B, what set B do
we get? (Before looking at the answer, try this construction yourself.)
Answer: The set is {1}.
Remark 31.4. The set B is sometimes called the barber set. This is because there
is some connection with the following paradox: There lives a barber in a small town
who always obeys the rule that he will shave everyone in town who doesn’t shave
themselves, but if they shave themselves he will not shave them.
Does the barber shave himself? If he does, then he cannot shave himself by his
own rule. But if he doesn’t, then he must shave himself by his rule.
One way to resolve the paradox is to assume instead the barber does not live in
the town. This corresponds, roughly, to the fact that B is not in the image of the
function. N
We are now ready to prove the theorem in general.
31. INJECTIONS AND CARDINALITIES 233

Theorem 31.5. If S is a set, then |S| < |P(S)|.

Proof. Let S be any set. First, we prove that |S| ≤ |P(S)|, so we need to find an
injective function f : S → P(S). Define f by the rule f (s) = {s}. To prove that f
is injective, let a, b ∈ S and assume f (a) = f (b). Hence {a} = {b}. Therefore a = b,
since sets are equal exactly when they have the same elements.
Next, let g : S → P(S) be an arbitrary function. We will show that g is never
surjective, and hence there is no bijection between S and P(S). Define the (barber)
set as
B = {x ∈ S : x ∈ / g(x)}.
This is a subset of S, hence an element of P(S). We will show that B is not in the
image of g.
Let s ∈ S be arbitrary. There are two cases.
Case 1: Assume s ∈ g(s). In this case s ∈/ B, hence g(s) 6= B.
Case 2: Assume s ∈ / g(s). Then s ∈ B, hence g(s) 6= B.
In every case B 6= g(s). Since s ∈ S was arbitrary, this means B cannot be in the
image (since it does not equal any element of the image).

31.B How big is P(N)?


We now know that |N| < |P(N)|, but exactly how big is P(N)? In the next section
we will prove it has continuum cardinality. However, we currently have the tools to
find another set with the same cardinality. For the rest of this section, given a set S
we let F(S) be the set of all functions from S to {0, 1}.

Theorem 31.6. If S is any set, then |P(S)| = |F(S)|.

Proof. We must construct a bijection between the two sets P(S) and F(S). The
map is this: send a subset A ⊆ S to its characteristic function, χA : S → {0, 1}. In
other words, we define f : P(S) → F(S) by the rule

f (A) = χA .

We first show that f is injective. Let A, B ∈ P(S) and assume f (A) = f (B). We
then have χA = χB . Plugging in an arbitrary element s ∈ S, we have χA (s) = χB (s).
The left-hand side is 1 when s ∈ A and 0 otherwise, and similarly for the right-hand
side. Thus, s ∈ A if and only if s ∈ B. In other words A = B.
Finally, we show that f is surjective. Let ϕ : S → {0, 1} be any function. Put
A = {s ∈ S : ϕ(s) = 1}. We then check directly that ϕ = χA . (They have the same
domain and codomain, and the same rule.) Hence ϕ = f (A), so f is surjective.
234 CHAPTER VIII. CARDINALITY

Corollary 31.7. The set F(N) is uncountable.

Proof. The equality |P(N)| = |F(N)| follows from the previous theorem. We also
know |N| < |P(N)|, hence F(N) is uncountable.

Remark 31.8. In Exercise 30.6, you proved that ∞


Q
i=1 {0, 1} is uncountable. The
corollary above gives an easier way to see this, since functions N → {0, 1} can be
thought of as infinite sequences of 0’s and 1’s. N

31.C Exercises
Exercise 31.1. Answer each of the following true or false problems, proving your
answer.
(a) Every uncountable set has the same cardinality as (0, 1).
(b) Let A and B be sets. If A ⊆ B, then |A| ≤ |B|.
(c) For sets A and B, if A ( B, then |A| < |B|.
(d) Given sets A, B, and C, if A ⊆ B ⊆ C and both A and C are countably infinite,
then B is countably infinite.
(e) No subset of R has smaller cardinality than R.
(f) For sets S and T , if |S| < |T | and S is finite, then T is infinite.
(g) For sets S and T , if |S| < |T | and S is countable, then T is uncountable.
(h) For sets S and T , if |S| < |T | and S is countably infinite, then T is uncountable.
(i) For any set S, there exists another set T such that |S| < |T |.

Exercise 31.2. Let S = {a, b, c, d, e} and let g : S → P(S) be defined by the rule
g(a) = {b, d}, g(b) = {a, c, e}, g(c) = {a, c, d, e}, g(d) = ∅, g(e) = {e}. List the
elements of the barber set B = {s ∈ S : s ∈/ g(s)}. Why is it not in the image of g?

Exercise 31.3. Find a set with cardinality bigger than that of R. Then find a set
with cardinality bigger than that.

Exercise 31.4. Theorem 27.5 says that for finite sets A and B, if |A| = |B| and
f : A → B is a function, then f is injective if and only if f is surjective. Prove that
this fails for infinite sets, by proving the following:
(a) Find an infinite set S and a function f : S → S that is injective but not surjec-
tive.
(b) Find an infinite set S and a function g : S → S that is surjective but not
injective.
In both parts prove that the function you construct has the requisite properties.

Exercise 31.5. Let A and B be sets with f : A → B a bijection. Define a new map
g : P(A) → P(B) by the rule g(S) = {f (s) : s ∈ S}, where S ⊆ A is an arbitrary
element of P(A). Prove that g is a bijection.
Conclude that if |A| = |B| then |P(A)| = |P(B)|.
31. INJECTIONS AND CARDINALITIES 235

Exercise 31.6. Define a function f : R → P(Q) by the rule

f (x) = {q ∈ Q : q ≤ x}.

Prove that f is injective. (Hint: For any two real numbers x < y, there is a rational
number strictly between them. See Exercise 11.6.)
Using this injection, in conjunction with the previous exercise, derive the inequal-
ity |R| ≤ |P(N)|.

Exercise 31.7. Let A and B be nonempty sets. Prove that there exists an injection
f : A → B if and only if there exists a surjection g : B → A. (Hint: For the backwards
direction, given a surjection g : B → A define a function f : A → B by the rule f (a) =
one of the elements which mapped to a.)
236 CHAPTER VIII. CARDINALITY

32 The Schröder–Bernstein Theorem


Let a, b ∈ R. If we know a ≤ b and b ≤ a, then we must have a = b. In other words,
the “less than or equal to” relation on the real numbers is antisymmetric.
We have used a similar notation for cardinalities, and it is natural to ask whether
or not this relation is antisymmetric. In other words, given sets A and B, if we know
|A| ≤ |B| and |B| ≤ |A|, must we have |A| = |B|? The answer is yes, and this result
is called the Schröder–Bernstein Theorem.

Theorem 32.1 (Schröder–Bernstein Theorem). Let A and B be arbitrary sets.


If |A| ≤ |B| and |B| ≤ |A|, then |A| = |B|.

Remark 32.2. The story of how this theorem came to be is long and somewhat
convoluted. Cantor was the first to state the theorem, but apparently he had no
proof. The first proof (that we know of) was found by Dedekind, but he did not
publish his work at the time.
Schröder announced a proof, which was later shown to have an error. Finally, in
1897, Bernstein (who was only 19 years old, and a student of Cantor) presented a
proof. At nearly the same time Schröder independently found an error free proof as
well. Hence, these two mathematicians have their names attached to the theorem. N

32.A Sketching the proof using genealogy


Here we will sketch the main ideas of the proof. The proof is a direct one. Given sets
A and B, assume that |A| ≤ |B| and that |B| ≤ |A|. In other words, we assume that
we have two injective functions f : A → B and g : B → A. Our goal is to show that
|A| = |B|, in other words we need to create a bijection h : A → B.
The main idea of the proof is that we partition both A and B into four pieces,
and create a bijection between those pieces which, by the Pasting Together Theorem,
will give us the bijection h:

A=A1 ∪ A2 ∪ A3 ∪ A4
    
 h h h h
yh y 1 y 2 y 3 y 4
B=B1 ∪ B2 ∪ B3 ∪B4 .

The only information we have available comes from the two maps f and g that
we have given to us. We must somehow use the maps f and g to make any progress
on this problem. We might ask how these maps behave. Fix some element a0 ∈ A.
Applying f , we have a new element f (a0 ) ∈ B. We call this new element b0 . We can
think of a0 as the parent of b0 , because a0 gives rise to b0 (through the function f ).
We also call b0 the child of a0 .
32. THE SCHRÖDER–BERNSTEIN THEOREM 237

A B

a0 b0

There are some very important facts we need to know about this parent-child
relationship. First, every element in A is the parent of exactly one child in B because
f is a function. Second, it may be the case that some element of B is parentless,
because f may not be surjective. Third, every element in B which actually is a child
has exactly one parent in A, because f is injective.
We can also talk about elements of B having children, using the function g, and
the same facts we mentioned in the previous paragraph are still true.
Does b0 have a child? Yes! We can pass back over to A by applying the map g to
b0 . Set a1 = g(b0 ) ∈ A, which is the child of b0 . There are two cases.
Case 1: a0 = a1 .

A B

a0 b0

In this case, the maps f and g just send a0 and b0 back and forth to each other. Note
that a0 is its own grandparent! It seems very natural that in this case we would want
a0 and b0 to correspond under h.
Case 2: a0 6= a1 .

A B

a0
a1 b0

We can now repeat the parent-to-child process. Let b1 = f (a1 ) ∈ B which is the child
of a1 . Is it possible that b1 = b0 ? No! We have b0 = f (a0 ) 6= f (a1 ) = b1 , because f is
injective and a0 6= a1 .
Similarly, let a2 = g(b1 ) ∈ A which is the child of b1 . We see that a1 = g(b0 ) 6=
g(b1 ) = a2 , because g is injective and b0 6= b1 . However, we cannot tell whether a0 and
a2 are the same or different, so we again have two cases. We will separately consider
when a0 = a2 and when a0 6= a2 .
Case 2A: a0 = a2 . We picture this situation as follows:
238 CHAPTER VIII. CARDINALITY

A B

a0
a1 b0
b1

In this case, applying f and g sends the points a0 , b0 , a1 , b1 in a loop. (Here, each
element in the loop is its own great-great-grandparent.) It seems natural for a0 and
b0 to correspond, and for a1 and b1 to correspond, under h.
Case 2B: a0 6= a2 .
A B

a0
a1 b0
a2 b1

At this point it is recommended that the readers work out for themselves that if
we let b2 = f (a2 ), then b2 is different from b0 and b1 (by injectivity of f ). Similarly,
if we let a3 = g(b2 ), then the readers should show that a3 is different from a1 and a2
(by injectivity of g). Again we have two cases: a3 could equal a0 and we have a loop,
or it is a new element.
In general, for n ≥ 0, define bn = f (an ) to be the child of an , and define an+1 =
g(bn ) to be the child of bn . Working by induction one can prove that there are exactly
two options. First, these elements can end up in a loop with an+1 = a0 , where
a0 , a1 , a2 , . . . , an are distinct elements of A and b0 , b1 , b2 , . . . , bn are distinct elements
of B. The second option is that there is no loop, and so we have an infinite chain
of descendants: a0 , a1 , a2 , . . . are distinct elements of A and b0 , b1 , b2 , . . . are distinct
elements of B.
A B
a0
a1 b0
a2 b1
.. b2
. .. ..
. .

Our discussion has concentrated on passing from a parent to a child, but we can,
sometimes, reverse the process. Remember that elements can have at most one parent
(because f and g are injective). So, if our chain of descendants ends in a loop, then
when we go “backwards” up through the ancestors, we just cycle backwards through
the loop.
What happens in the case where an element a0 had a nonlooping chain of descen-
dants? If a0 has no parent, we can say that a0 is an ultimate ancestor, and we have
the entire chain of descendants and ancestors.
32. THE SCHRÖDER–BERNSTEIN THEOREM 239

However, if a0 does have a parent b−1 ∈ B, then our chain can be extended:

A B
a0 b−1
a1 b0
a2 b1
.. b2
. .. ..
. .

In this case, b−1 6= bn for any n ≥ 0, as depicted in the picture above. This is because
g(b−1 ) = a0 6= an+1 = g(bn ) and g is injective.
It is possible that b−1 has no parent, and hence is the ultimate ancestor at which
the chain stops. On the other hand b−1 could have a parent a−1 , and a similar
argument shows that a−1 does not equal any of a0 , a1 , a2 , . . ..
In total, we see that there are four types for the chain of descendants and ancestors
of an element:
(1) The chain forms a finite loop (of the type described above).
(2) The chain never loops and has an ultimate ancestor in A.
(3) The chain never loops and has an ultimate ancestor in B.
(4) The chain never loops and has no ultimate ancestor. (Thus, it is doubly infinite.)
We are now ready to describe a partition of A. We put A = A1 ∪ A2 ∪ A3 ∪ A4 where

Ai = {a ∈ A : the chain of ancestors and descendants of a is of type i}.

Similarly, we put B = B1 ∪ B2 ∪ B3 ∪ B4 where

Bi = {b ∈ B : the chain of ancestors and descendants of b is of type i}.

Technically {A1 , A2 , A3 , A4 } is sometimes not a partition, because some of the


parts could be empty. However, if Ai is empty then so is Bi (and conversely). Thus,
if one of these sets is empty, then we can just drop that case from consideration. In
the remainder of the proof we will treat each case as if it occurs, leaving the contrary
option unstated.

32.B Defining h piecewise


Now that we have a partition of A and B, to construct a bijection h : A → B it
suffices to construct a bijection hi : Ai → Bi for i = 1, 2, 3, 4. Each of the cases is
slightly different.
Case 1: Defining h1 : A1 → B1 . In this case every element a0 ∈ A1 belongs to
a loop of the form

a0 7→ b0 7→ a1 7→ b1 7→ · · · 7→ an 7→ bn 7→ a0 .

The element b0 = f (a0 ) belongs to the same loop, and hence b0 ∈ B1 . We define
h 1 = f | A 1 : A1 → B 1 .
240 CHAPTER VIII. CARDINALITY

We need to show that h1 is a bijection. First, it is injective because f is injective


(and the restriction of an injective function is still injective). Second, to show that
h1 is surjective, start by letting b ∈ B1 be arbitrary. By definition of B1 , we know
that b lives in a loop, and so has a parent a ∈ A1 . Thus h1 (a) = f (a) = b.
Case 2: Defining h2 : A2 → B2 . In this case every element has an ultimate
ancestor in A. We define h2 = f |A2 : A2 → B2 . Nearly the same argument as in the
previous case shows that h2 is a bijection.
Case 3: Defining h3 : A3 → B3 . In this case every element has an ultimate
ancestor in B. Here we cannot define h3 as f |A3 , because this function would not be
surjective. (We would miss the ultimate ancestors.)
However, just like in case 2, we can show that g|B3 : B3 → A3 is a bijection. Hence,
it has an inverse function and we let h3 equal that inverse,
h3 = (g|B3 )−1 : A3 → B3 .
Case 4: Defining h4 : A4 → B4 . We leave it to the reader to show that h4 = f |A4
is a function from A4 → B4 , and is a bijection. (The argument is very similar to case
1 and case 2.)

32.C Examples
The Schröder–Bernstein theorem is not only beautiful symbolically, but also quite
useful because it is sometimes very easy to describe injections back-and-forth between
two sets A and B, yet it may be difficult to describe a bijection. Here are some
standard examples.
Example 32.3. We will prove that the closed interval [3, 10] has the same cardinality
as (0, 1).
Define f : [3, 10] → (0, 1) by the rule f (x) = (x − 2)/10. This is a linear function
with f (3) = 1/10 and f (10) = 8/10. So it maps [3, 10] into the interval [1/10, 8/10] ⊆
(0, 1) injectively.
On the other hand, the map g : (0, 1) → [3, 10] given by g(x) = x + 3 is also an
injection.
By the Schröder–Bernstein theorem, we are done. △
This next example is so important that we will call it a theorem.

Theorem 32.4. |P(N)| = |R|.

Proof. In Exercise 31.6, we proved that |R| ≤ |P(N)|. (For an alternate proof of this
inequality, see Exercise 32.5 below.) By the Schröder–Bernstein theorem, it suffices
to now prove |P(N)| ≤ |R|.
Define f : P(N) → R by the rule f (A) = 0.χA (1)χA (2)χA (3) . . .. (For instance, if
A = {1, 3, 4, 7, 9, . . .} then f (A) = 0.101100101 . . . ∈ R.) It just remains to show that
this function is injective. Let A, B ⊆ N be arbitrary, and assume f (A) = f (B). Thus
0.χA (1)χA (2)χA (3) . . . = 0.χB (1)χB (2)χB (3) . . . .
32. THE SCHRÖDER–BERNSTEIN THEOREM 241

Since neither decimal expansion involves repeating 9’s, the two expansions are equal.
Hence χA (n) = χB (n) for each n ∈ N. This means that A and B have exactly the
same elements so A = B, which finishes showing that f is an injective function.

32.D Exercises
Exercise 32.1. Let X, Y , and Z be sets. Prove that if X ⊆ Y ⊆ Z and |X| = |Z|,
then |X| = |Y | as well.

Exercise 32.2. Prove that [5, 16) and (0, ∞) have the same cardinalities.

Exercise 32.3. Given sets A and B, prove that if there is an injection f : A → B


and a surjection g : A → B, then |A| = |B|. (Hint: A previous homework exercise
might be useful.)

Exercise 32.4. Complete the proof in case 2 (of Subsection 32.B) of the Schröder–
Bernstein theorem, by showing that f |A2 is a function from A2 to B2 , and also that
it is bijective.

Exercise 32.5. In Exercise 31.6 we showed that |R| ≤ |P(N)|. Here is another way
to do that.
Define a function f : (0, 1) → P(N), by sending (the decimal expansion of) a real
number 0.a1 a2 a3 . . . (not ending in repeating 9’s) to the set

{a1 , 10a2 , 100a3 , . . .} − {0} ⊆ N.

(For instance, 0.03193 . . . maps to {0, 30, 100, 9000, 30000, . . .} − {0}.) Prove that this
is an injective function.
242 CHAPTER VIII. CARDINALITY

You might also like