5
On the Size of Sets

The size of a finite set can be measured simply by counting; for example, the size of the set is because it has elements, and the size of the sets and is . Clearly, the size of is bigger than the size of . Moreover, the sets and have the same size. Can the concept of “size” be extended to infinite sets? Is there a way, which does not involve counting, of showing that two sets have the same size? Georg Cantor was the first mathematician to seriously address and answer these questions. Cantor found a way to measure the size of any infinite set. He first observed that two sets and have the same size if there is a one-to-one correspondence between and , that is, there is a way of evenly matching the elements in with the elements in . In other words, Cantor observed that and have the same size if there is a bijection .

The arrow diagram in Figure 5.1 represents a bijection. As a result, we can use this bijection to construct the following one-to-one correspondence (5.1) between the sets and :

(5.1)

Hence, the function allows us to set up a pairing between the elements in and the elements in such that each element in is matched with exactly one element in , and each element in is thereby matched with exactly one element in . Cantor observed that we can now conclude, without counting, that the sets and have the same size.


Figure 5.1. Arrow diagram of a bijection

For another illustration, let , and let be defined by . As is a bijection, we obtain the following one-to-one correspondence between the set of natural numbers and the set of even natural numbers:

Therefore, each natural number corresponds to the even number , and each even natural number is thereby matched with . The bijection specifies a one-to-one match-up between the elements in and the elements in . Cantor concluded that the sets and have the same size.

After discovering how to determine if two infinite sets have the same size, Cantor proved that the set of rational numbers has the same size as the set of natural numbers. As a result, Cantor then conjectured that the set of real numbers also has the same size as . It came as a complete surprise to Georg Cantor when, in 1874, he discovered that these two infinite sets have different sizes. In fact, Cantor showed that the set of real numbers is much larger than the set of natural numbers. This unexpected result would have an enormous impact on the future of mathematics.

When Cantor first presented his new research on the size of infinite sets, some of his contemporaries actually refused to acknowledge his discoveries. Moreover, Henri Poincaré referred to Cantor’s work as a “grave disease” that would infect mathematics. Nevertheless, Cantor and his important ideas would eventually be recognized. In 1904, the Royal Society presented Cantor with its prestigious Sylvester Medal for his “brilliant” mathematical research. David Hilbert, a very influential mathematician, described Cantor’s work as

the finest product of mathematical genius and one of the supreme achievements of purely intellectual human activity.

In this chapter, we shall investigate Cantor’s early work in set theory. First, we will formally define and examine the notion of a finite set, and then we will classify sets into two categories: sets whose elements can be enumerated in a sequence indexed by the natural numbers (countable sets) and those sets for which it is impossible to so enumerate all of their elements (uncountable sets). We will also examine Cantor’s fundamental definitions and theorems on the cardinality (size) of sets.

5.1 Finite Sets

A set is infinite, of course, if it is not finite. Moreover, a set is finite if it has at most many elements for some natural number . The next definition is just a mathematical rewording of this notion.

Definition 5.1.1. A set is finite if and only if there is a one-to-one function for some natural number .

It follows, vacuously, that the empty set is finite. Now that we have a formal definition of a finite set, we can now use the Well-Ordering Principle 4.4.13 to precisely define the notion of the “number of elements” in a finite set.

Definition 5.1.2. Suppose that is a finite set. Let be the least natural number such that there is a one-to-one function . Then is the number of elements in the set , and we write .

In particular, we have that (see Remark 3.3.7 and the paragraph just prior to Definition 3.3.17).

Theorem 5.1.3. Let be finite and let . If is one-to-one, then is onto .

Proof. Let be a finite set. If , then and any function is vacuously onto . So now assume that . Let and let be one-to-one. Suppose, to the contrary, that is not onto . Let be so that . Because , there is an such that . Since , we have either or . If , then and is one-to-one. As , we conclude that , which is a contradiction. If , then define the function by

Since is one-to-one, it follows that is also one-to-one. Moreover, because , we conclude that , which is again a contradiction.

Corollary 5.1.4. If is finite and , then there is a bijection .

Proof. Suppose that is finite and let . By Definition 5.1.2 there exists a one-to-one function . Theorem 5.1.3 implies that is a bijection.

Theorem 5.1.5. Let be one-to-one where is a finite set. Then is onto .

Proof. Let be one-to-one where is finite. Let be such that . By Definition 5.1.2, let be one-to-one. Theorems 3.3.19 and 5.1.3 imply that is a bijection. To prove that is onto , let . Since , there exists an such that . So , and thus, as is one-to-one. Hence, is onto .

Corollary 5.1.6. Let be one-to-one and not onto . Then is infinite.

The following theorem confirms that two finite sets have the same number of elements if and only if there exists a one-to-one correspondence between the two sets.

Theorem 5.1.7. Let and be finite sets. Then there is a bijection if and only if .

Proof. See Exercise 4.

Recall that . Since the identity function from to is one-to-one, we see from Definition 5.1.2 that .

Theorem 5.1.8. For all natural numbers , we have that .

Proof. We prove that is an inductive set. As , we see that and hence, . Let . Thus, . Let and let be one-to-one. So . To prove that , suppose to the contrary that . Therefore, () . Since is one-to-one, it clearly follows that is one-to-one. As , we have that . It now follows from () that . Because and is one-to-one, Theorem 5.1.3 implies that is onto . Since , it follows that for some . This contradicts the fact that is one-to-one. Therefore, and so .

Corollary 5.1.9 (Pigeonhole Principle). Let and be natural numbers and let be a function. If , then is not one-to-one.

Theorem 5.1.10. The set is an infinite set.

Proof. Suppose is finite. Thus, there is a one-to-one function for some . Since is one-to-one, the restriction is also one-to-one, and this contradicts Corollary 5.1.9.

Corollary 5.1.11. If is one-to-one, then is an infinite set.

Proof. See Exercise 21.

The pigeonhole principle implies a “dual” version involving surjections.

Lemma 5.1.12. If and where and , then is not onto .

Proof. Let where and are natural numbers. Suppose, to the contrary, that is onto . We can therefore define the function by

(5.2)

We now show that is one-to-one. Let and be such that . Hence, . By the definition (5.2) of , we have that . So is one-to-one, which contradicts Corollary 5.1.9, because .

Theorem 5.1.13. If is finite and is onto , then is one-to-one.

Proof. Let be finite and be onto . Also, let be such that . Assume where , , and . So and for some . Let . Thus, (see Exercise 13) and is onto . Since and , there is a function that is onto (see Exercise 14), contradicting Lemma 5.1.12, as . Therefore, is one-to-one.

Theorem 5.1.14. If is a finite set, then is finite.

Proof. We will use proof by induction. Let

If , then and is finite. Hence, . Let . To prove that , let be such that . So is nonempty. Let . Thus, (see Exercise 13). As , we conclude that is finite. By Corollary 5.1.4, there exists a bijection where . Define by

(5.3)

To prove that is one-to-one, suppose that with and . Thus, for some . There are two cases to consider: and . If , then and , by (5.3). Because , we conclude that . So since is one-to-one. If , then (5.3) implies that and . As , (5.3) asserts that . So . Hence, because is one-to-one. It therefore follows that . Since is one-to-one and , we have that is finite. Thus, and the proof is complete.

Exercises 5.1

1. In our proof of Theorem 5.1.3, under the case that , we did not show that the function is one-to-one. Complete the proof by proving that is one-to-one.
2. Suppose that the set is finite and . Prove that is finite.
4. Using Exercise 3 and Corollary 5.1.4, prove Theorem 5.1.7.
23. Using Exercise 7, modify the proof of Theorem 5.1.14 to show that if , then .

Exercise Notes: For Exercise 6, apply Exercise 18 on page 109. For Exercise 7, use Theorems 5.1.7 and 5.1.8. For Exercise 9, if , then (see Theorems 4.1.6 and 4.1.10). To prove is onto , apply Theorem 4.4.13 to prove that for all , if , then for some and . Note: if , then . For Exercise 10, use Exercise 9. For Exercise 12, apply Exercise 11. For Exercise 16, let for . Since is onto , each the set is nonempty and has a least element. For Exercise 17, use Corollary 5.1.4. For Exercise 18, apply Exercises 1617. For Exercise 20, apply Exercise 9. For Exercise 21, recall Theorem 3.3.19. For Exercise 22, the result is true vacuously if . For Exercise 23, note that if , then Exercise 12 on page 108 and Theorem 4.4.11(1) imply that for a .

5.2 Countable Sets

Recall that is the set of natural numbers. A set is countable if it has the same size as some subset of . In other words, a set is countable if there is a one-to-one correspondence between the set and a subset of . Our next definition captures this concept in mathematical terms.

Definition 5.2.1. A set is countable if and only if there exists a one-to-one function .

So by Definition 5.1.1, every finite set is countable (as , for all ). Every subset of is also countable, since the identity function is one-to-one, where for all . Thus, in particular, the set of natural numbers is countable. One can also show that the set of integers and the set of rational numbers are countable (see Exercises 4 and 5). We will prove in Section 5.3 that the set of real numbers is not countable.

Definition 5.2.2. A set is countably infinite if it is countable and infinite.

For example, the set is countably infinite as it is countable and infinite by Theorem 5.1.10. When one can prove that a set is countable and it is clear that it is infinite, then we can conclude that the set is countably infinite.

Theorem 5.2.3. Suppose that and are sets where is countable. If there is an injection , then is countable.

Proof. Let and be sets where is countable. Let be one-to-one. We shall prove that is countable. Since is countable, there is a one-to-one function . Thus, by Theorem 3.3.19, is an injection. We conclude that is countable.

Theorem 5.2.4. If is a countable set and , then is countable.

Proof. Assume that is a countable set and . Let be the identity function, that is, for all . Since is one-to-one, Theorem 5.2.3 implies that is countable.

Theorem 5.2.5. If and are countable sets, then is countable.

Proof. Let and be countable. So there are one-to-one functions and . Now define the function by

(5.4)

for each . We prove that is one-to-one. Let and be in and assume . We shall prove that . First, because , we cannot have and . To see this, suppose that and . So, as , we infer that from (5.4); but this is impossible because a natural number cannot be both even and odd. Similarly, we cannot have and . Hence, either and are both in , or they are both in . If and are in , then . Thus, and so , because is one-to-one. If and are in , then . We conclude that . Since is one-to-one, we have . Therefore, is one-to-one and is countable.

One can prove by mathematical induction, using Theorem 5.2.5, that a finite union of countable sets is also countable. We will not do this here, because we will soon prove a more general result (see Corollary 5.2.10).

Our next result demonstrates that every countably infinite set can be put into a one-to-one correspondence with the set of natural numbers.

Theorem 5.2.6. If is countably infinite, then there is a bijection .

Proof. Let be a countably infinite set. Thus, there exists a one-to-one function . Since is not finite, the range of must be an infinite subset of . Let . So is a bijection. Hence, is also a bijection, via Theorem 3.3.18. Because is an infinite set of natural numbers, there is a bijection by Exercise 13. Let . Theorems 3.3.19 and 3.3.20 now imply that is a bijection.

Corollary 5.2.7. A set is countably infinite if and only if there is a bijection .

Proof. If is countably infinite, then Theorem 5.2.6 implies that there exists a bijection . Conversely, suppose that is a bijection. Since is one-to-one, is infinite by Corollary 5.1.11. As is onto , Theorem 3.3.18 asserts the existence of the inverse function that is one-to-one. Hence, is countable and infinite.

Theorem 5.2.8. If is a countably infinite set, then there exists an enumeration of all the elements in such that each element in appears in this enumeration exactly once.

Proof. Assume that is countably infinite. Thus, by Theorem 5.2.6, there is a bijection . For each , let . Since is one-to-one and onto , it follows that the enumeration lists every element in exactly once.

Theorem 5.2.8 implies that each countably infinite set is also denumerable; that is, we can list the elements of a denumerable set in the same way that we list the natural numbers, namely, . We will soon show that it is impossible to list all of the real numbers in such a manner. In other words, is not denumerable.

Theorem 5.2.9 (AC). If is such that is countable for each , then is countable.

Proof. Suppose that is a set of countable sets. Because each is countable, the axiom of choice implies that for every there is a one-to-one function . In other words, by the axiom of choice, there is a choice function for the indexed function where each is the set of all the one-to-one functions of the form .

Now let be a one-to-one function (see Exercise 9, page 116). Define the function by

for all . To prove that is one-to-one, assume that where and are in . Let be the least natural number such that , and also let be the least such that . Since , we have . Because is one-to-one, it follows that and . Thus, and so , as is one-to-one. Therefore, is one-to-one and is countable.

We can now prove that a countable union of countable sets is also countable. Therefore, countable sets can be used to construct many more countable sets.

Corollary 5.2.10 (AC). Let be countable and suppose that each is also countable. Then is countable.

Proof. Let be as in the statement of the corollary. Thus, there is a one-to-one function . If , then is countable. So assume and let be fixed. Consider the indexed set defined by

for each . Therefore, is countable for every , and . Theorem 5.2.9 now implies that is countable.

Since a finite set is countable, Corollary 5.2.10 implies that a finite union of countable sets is also countable.

Corollary 5.2.11 (AC). If the indexed set is such that is countable and is countable for each , then is countable.

Let be a set and let be a natural number. Recalling Definition 3.3.6, we have that . The set can be viewed as the set of all sequences of elements in of length .

Theorem 5.2.12. Let be a countable set. Then is countable, for all .

Proof. Let be countable. Thus, there is a one-to-one function . Let . We shall prove that is inductive. Since (see Remark 3.3.7), the set is countable. Thus, . Let . Therefore, is countable. So let be one-to-one. By Exercise 9 on page 116, there is a one-to-one function . Define by

for all . We will now prove that is one-to-one, and thus conclude that is countable. Let and . Assume that . Therefore,

Because is one-to-one, we conclude that

Since and are one-to-one, we infer that and . Thus, by Lemma 3.3.5, . So is one-to-one. Therefore, .

By applying Theorem 2.1.3, one can show that the following class is a set:

So for every function , where , we have that . Clearly,

(5.5)

Theorem 5.2.13 (AC). Let be a countable set. Then is countable.

Proof. If is countable, Theorem 5.2.12 asserts that is countable, for every . Equation (5.5) and Theorem 5.2.9 thus imply that is countable.

Corollary 5.2.14 (AC). If is countable, then the set of all finite subsets of is also countable.

Proof. Let be set of all finite subsets of . Define the function by . Exercise 17 on page 116 implies that is onto . Hence, is countable by Theorem 5.2.13 and Exercise 10.

Remark 5.2.15. With a little more work, one can prove Theorem 5.2.13 (and Corollary 5.2.14) without appealing to the axiom of choice. We outline two such proofs below. The first proof is inspired by the proof of Theorem 5.2.12, and the second proof applies the fundamental theorem of arithmetic (see [1, Theorem 4.7.7]).

1. Suppose that and are one-to-one functions. By the Recursion Theorem 4.2.1, one obtains the indexed function , where for all , such that
(1) (recall that );
(2) for all .

One can prove that each is one-to-one by induction. Clearly, is one-to-one. In the inductive step, one applies the argument used in the proof of Theorem 5.2.12. One now “glues the functions together” by defining by

One can now prove that is one-to-one and thus, is countable.

2. Let be one-to-one. One must first prove that is countable. To do this, define by

where is the -th prime. By the fundamental theorem of arithmetic, the function is one-to-one. Hence, is countable. Since , define by . Therefore, if , then (see Theorem 3.3.10). As is one-to-one, it follows that is one-to-one. Therefore, because is countable, Theorem 5.2.3 implies that is countable.

Exercises 5.2

2. Let and be as in Exercise 1. Define an injection .
4. Conclude from Exercise 3 that set of integers is countable.
5. Let be one-to-one (see Exercise 9 on page 116). Using , show that the set of positive rational numbers is countable. Conclude that the set of negative rational numbers is countable and the set is countable.
11. (AC) Let be an infinite set and let . By Theorem 3.3.24, there exists a function such that for all . One can show (see Theorem 6.2.3) that there is a function such that

Prove that is one-to-one.

13. Let be infinite and be the least element in . Define by

By the recursion theorem, there is a function such that

(1) ,
(2) , for all .

Show that for each . Conclude, from Exercise 14 on page 108, that is an increasing, one-to-one function. Prove that for each there is an so that . Prove that and that is a bijection.

15. A real number is said to be algebraic if for some (see Exercise 14). For , let . Since a polynomial in has only finitely many roots, each set is finite. Let be the set of all algebraic numbers, that is, . Prove that is countable.

Exercise Notes: For Exercise 5, first assume each is in reduced form. For Exercise 6, first review the three Theorems 3.3.183.3.20. For Exercise 8, let for each . Because is onto , each is nonempty and has a least element. For Exercise 10, use Exercises 89. For Exercise 12, modify the proof of Theorem 5.2.12. For Exercise 13, show that for every and , if , then . Now use induction. To prove that , one can apply Theorem 4.4.13. For Exercise 14, apply Theorem 5.2.13 with Exercises 4 and 10. For Exercise 15, use Exercise 14 and Corollary 5.2.11.

5.3 Uncountable Sets

In Section 5.2, we established the existence of many countable sets. One might begin to believe that all sets are countable. Are there sets that are not countable? We will soon prove that such sets exist. First, we identify a slightly easier way to say that a set is “not countable.”

Definition 5.3.1. A set is uncountable if it is not countable, that is, if there is no one-to-one function .

Cantor was the first mathematician to prove that an uncountable set exists. In his proof, Cantor introduced a new and powerful proof technique that is often identified as a Cantor’s diagonal argument. This argument has had a profound influence on mathematics ever since its introduction. In particular, diagonal arguments now frequently appear in mathematical logic and in computability theory. The proof of our next theorem illustrates Cantor’s diagonal argument.

Theorem 5.3.2. Let be the set of all the functions . Then is uncountable.

Proof. Let be as stated in the theorem. We will prove that is uncountable. Suppose, for a contradiction, that the set is countable. Because is infinite (see Exercise 8), Theorem 5.2.8 implies that there is an enumeration

(5.6)

of all the functions in ; that is, every function in appears in the list (5.6). Define the function by

(5.7)

for each . As , we see that . Since every function in is in the list (5.6), we conclude that the function appears in this list. Hence, there is an such that . Therefore, for all . So, in particular, (. Since , either or . If , then by (5.7). Thus, () implies that , a contradiction. If , then by (5.7). Again, () implies that , which is a contradiction. Therefore, is uncountable.

Where is the diagonal?

Are you wondering why the technique used in the proof of Theorem 5.3.2 is referred to as a diagonal argument? To answer this inquiry, we shall now revisit this proof. Given a function , there is a way of writing the values of as an infinite sequence of terms from the set . For example, suppose if is even and if is odd. So

and we can represent as follows: . Furthermore, if is represented by

then . Consider the list (5.6) of all the functions in . Let us represent each in this list as an infinite sequence; that is, let

Using this notation, we can rewrite the list of functions (5.6) in the following vertical form:

In the proof of Theorem 5.3.2, a function was defined so that is not equal to any function in the list (5.8). This is done by going down this list and assigning a value to that is different from the diagonal value for each appearing in (5.8). To illustrate this idea, let us give some specific values to the entries that can appear in the diagonal of (5.8). Suppose , , , , , and . Thus, (5.8) becomes

We have put the function below the infinite list (5.9) where the values of are determined by applying definition (5.7), in the proof of Theorem 5.3.2. For example, to evaluate we see that , and so by (5.7). Thus, , and we are thereby assured that . Now we evaluate . Since , we obtain the value . Hence, and . Again, because , we conclude that and . Continuing in this manner we construct a function that is different from every function in the list (5.9). This is the clever diagonal argument that Cantor introduced to mathematics.

Theorem 5.3.3. Let and be sets. If is uncountable and is a one-to-one function, then is uncountable.

Proof. Let be an uncountable set, and let be a one-to-one function. Suppose, for a contradiction, that is countable. Since is one-to-one, Theorem 5.2.3 thus implies that is a countable set, contradicting the fact that is uncountable. Therefore, is uncountable.

Before proving our next lemma, we make a simple observation. Whenever , we have that for all . We can thus use to define a real number by means of an infinite decimal expansion. Let for each . Then we have the real number given by . For example, suppose that , , , , , then

Decimal expansions that possess only the digits 0 and/or 1 are, in fact, unique; that is, if a real number has a decimal expansion consisting of 0’s and/or 1’s, then it has only one such expansion.

Lemma 5.3.4. There is a one-to-one function .

Proof. Let . For each let us define , for all . So for every . Define the function by

(5.10)

for each . Let and be functions in . Assume . We shall prove that . Because , we conclude from (5.10) that

Since such decimal expansions are unique, we have that for all . Hence, for all , by . Thus, and is one-to-one.

We can now present and prove Cantor’s classic theorem.

Theorem 5.3.5 (Cantor). The set of real numbers is uncountable.

Proof. By Lemma 5.3.4, let be one-to-one. By Theorem 5.3.2, is uncountable. So Theorem 5.3.3 implies that is uncountable.

Exercises 5.3

1. Let be uncountable. Prove that is uncountable for any nonempty set .
8. Let be as in Theorem 5.3.2, and let () be a finite list of functions in . Using the argument in the proof of Theorem 5.3.2, define a new function that is not in the list (). Conclude that is infinite.
9. Suppose that someone claims that the set of real numbers in the interval is countable and that all of these real numbers can be enumerated as in (5.11), where each such real number is represented by an infinite decimal expansion:

You must show that this claim is false. Using Cantor’s diagonal argument, define a decimal expansion for a real number in that does not appear in the list (5.11). In order to ensure uniqueness, your expansion should not contain the digits 0 or 9. Identify the first four digits in the decimal expansion of . Prove that for all .

10. Let . Theorem 5.2.4 and Exercise 5 on page 123 imply that is countable. We can thus enumerate all of the elements in in a list (, by Theorem 5.2.8. Since each of these rational numbers has an infinite decimal expansion , one can define a real number that is not in the list () just as in Exercise 9. Is a rational number? Justify your answer.
11. A real number that is not algebraic is said to be a transcendental number (see page 124, Exercise 15). Let be the set of all transcendental numbers. Show that is uncountable.

Exercise Notes: For Exercise 3, apply Exercise 5 on page 123 and Exercise 2. For Exercise 9, if the decimal expansion of does not contain a 0 or 9, then will have a unique decimal representation. Thus, if the decimal expansions of and in have different digits in at least one decimal place, then . For Exercise 11, use Exercise 15 on page 124 and Exercise 2.

5.4 Cardinality

In set theory, the cardinality of a set is a measure of how many elements are in the set. The set has 11 elements, and so the cardinality of is 11. Thus, (see Definition 5.1.2). The cardinality of an infinite set will also be denoted by . In this section, we shall present Cantor’s method for measuring the size of an infinite set without the use of numbers. There are infinite sets, as we will see, where one of these sets has cardinality much larger than that of some other infinite set. Therefore, it is possible for one infinite set to have “many more” elements than another infinite set.

What does it mean to say that two sets have the same cardinality, that is, the same size? Cantor discovered a mathematically precise and simple answer to this question.

Definition 5.4.1. For sets and , we say that has the same cardinality as , denoted by , if there is a bijection .

Remark 5.4.2. The expression looks like an equation; however, the assertion should be viewed only as an abbreviation for the statement “ has the same cardinality as .” In other words, means that “there is a function that is one-to-one and onto .” When and are finite sets, Theorem 5.1.7 implies that if and only if .

The relationship , given in Definition 5.4.1, is reflexive, symmetric, and transitive (see Exercises 45).

Theorem 5.4.3. Let be a set. Then .

Proof. For each , define by . Define the function by for each . Then is one-to-one and onto (see Exercise 10).

Corollary 5.4.4. .

Theorem 5.4.5. If , then .

Proof. Suppose that . Thus, there is a bijection . Consider the function defined by for every . Exercise 15 on page 68 shows that is one-to-one. To show that is onto , assume that . Let . Since is onto , Exercise 13 on page 68 shows that . Therefore, is a bijection.

Theorem 5.4.5 shows that the power set operation “preserves” cardinality. Our next theorem identifies three other such operations.

Theorem 5.4.6. Suppose that and .

Proof. Assume that and . Let and be bijections.

(3) We have that and are bijections. Let . Thus, . Observe that . Define by

for each . To prove that is one-to-one, let and . Assume that . Thus, for all . Hence,

(see Remark 3.3.11 on page 61). Since is one-to-one, we conclude that

(5.12)

We now show that for all . Let . Thus, . Letting in (5.12), we obtain since by Theorem 3.3.18. So , and hence, is one-to-one. To prove that is onto , let . Then and (see Exercise 20). Therefore, the function is a bijection.

In a similar manner, one can prove the next theorem (see Exercises 2325).

Theorem 5.4.7. For all sets , , , and , we have the following:

The proofs of our next two corollaries apply Theorems 5.4.6 and  5.4.7.

Corollary 5.4.8. .

Proof. Let . It is easy to show that () . Thus,

Therefore, (see Exercise 5).

Corollary 5.4.9. .

Proof. Theorems 5.2.5 and 5.2.6 imply that () . Note that . We prove that as follows:

Therefore, .

Using our cardinality notation, we will now restate some of the results that were previously established about two countably infinite sets.

Theorem 5.4.10 (Cantor). and .

Proof. Exercises 4 and 5 on page 123 imply that and are countably infinite. By Theorem 5.2.6, there are bijections and . Therefore, and .

What does it mean to say that one set has smaller cardinality than another set? Cantor found a simple answer to this question as well.

Definition 5.4.11. A set has cardinality strictly less than that of a set , denoted by , if there is a one-to-one function and there is no function that is both one-to-one and onto .

Theorem 5.4.12 (Cantor). .

Proof. Let be defined by . This function is one-to-one. We now show that there is no function that is one-to-one and onto . Suppose, for a contradiction, there is such a bijection . Hence, is one-to-one by Theorem 3.3.18, and therefore, is countable. This contradicts Theorem 5.3.5. Thus, .

After proving Theorem 5.4.12, Cantor asked the following question: Is there a set of real numbers whose cardinality is strictly between the cardinality of and the cardinality of ? In 1878, Georg Cantor announced a conjecture that is now called the continuum hypothesis.

Continuum Hypothesis. There is no set such that .

The continuum hypothesis proclaims that every set of real numbers is either countable or has the same cardinality as the set . Cantor struggled to resolve this conjecture, without success, for much of his career. The problem persisted and became one of the most important unsolved mathematical problems of the twentieth century. It was only after Cantor’s death that it was shown to be an unsolvable problem. The contributions of Kurt Gödel in 1940 and Paul Cohen in 1963 showed that the continuum hypothesis cannot be proven or refuted using the axioms in .

Recall that for every set , the power set is the set of all subsets of . For example, if , then and observe that (see Definition 5.1.2). In fact, one can prove that if is a finite set with many elements, then has many elements (see Exercise 23, page 116). Thus, whenever is a finite set; however, what happens when the set is infinite? Georg Cantor answered this intriguing question as well, using his diagonal argument.

Theorem 5.4.13 (Cantor). Let be any set. Then .

Proof. Let be a set. Let be defined by for all . It is easy to show that is one-to-one. We must show that there is no one-to-one function that is also onto . Suppose, for a contradiction, that there exists a bijection . Observe that for all . Let . Clearly, and thus, . As is onto , there is an such that . There are two cases to consider, namely, either or . If , then the definition of implies that . Since , we have that , which is a contradiction. If , then the definition of implies that . Because , we conclude that , which is again a contradiction. Thus, there is no bijection . Therefore, .

Definition 5.4.14. Let and be sets. Then has cardinality less than or equal to , denoted by , if there is an injection .

Theorem 5.4.15. If , then .

Proof. Assume . So there is a one-to-one function . Define by for all . Exercise 15 on page 68 shows that is one-to-one. Therefore, .

Theorem 5.4.15 shows that the power set operation “preserves inequality,” and its proof involves only a slight modification of the proof of Theorem 5.4.5. The following theorem identifies other set operations that also “preserve” the notion of inequality given by Definition 5.4.14. The proof can be obtained by appropriately modifying the proof of Theorem 5.4.6 (see Exercises 2830).

Theorem 5.4.16. Suppose that and .

We will soon present the Schröder–Bernstein Theorem, which is very useful for proving many results about cardinality. The theorem states that if there are functions and that are both one-to-one, then there exists a function that is one-to-one and onto . The theorem sounds very reasonable; however, a proof that does not depend on the axiom of choice was seen as quite challenging and even eluded the brilliant Georg Cantor.

The following lemma, illustrated in Figure 5.2, will be used in our proof of the Schröder–Bernstein Theorem.


Figure 5.2. Illustration of Lemma 
5.4.17 where satisfies

Lemma 5.4.17. Let and be functions. Then there exists an that satisfies the identity

(5.13)

Proof. Let and . Define the function by

Therefore, by the definition of , for each we have that and () . So, if a set satisfies , then () would imply that the set satisfies , and thus, (5.13) holds.

Claim 1. Let and . If , then .

Proof. See Exercise 32. (Claim 1)  

Consider the set . Since , we see that , and so is nonempty. Let . Clearly, and .

Claim 2. .

Proof. Let . Because , we see that . So, by Claim 1. Since , we infer that . Thus, for every . Hence, ; that is, . We now prove that . As , Claim 1 implies that . So . Thus, ; that is, . Therefore, . (Claim 2)  

Since , we conclude that satisfies (5.13). (Lemma)

Figure 5.2 depicts the set in Lemma 5.4.17 and the identity (5.13). This figure may also help the reader to better understand the proof of the following theorem, which is named for Ernst Schröder and Felix Bernstein. The proof depends only on (at most) the first seven Zermelo–Fraenkel axioms.

Theorem 5.4.18 (Schröder–Bernstein). Let and be any two sets. Suppose that and . Then .

Proof. Assume that and . So, there are one-to-one functions and . By Lemma 5.4.17, there is an (see Figure 5.2) satisfying

(5.14)

Since is one-to-one, Theorems 3.2.7 and 3.3.15 imply that is a one-to-one function such that . As , Equation (5.14) implies that . Define the function by

(5.15)

We will soon prove that is one-to-one and onto .

Claim 1. .

Proof. Clearly, . Since is one-to-one, Exercise 5 on page 68 implies that . Thus, by (5.14), we have that . (Claim 1)  

Claim 2. The function is one-to-one.

Proof. Let and . Assume that . The definition (5.15) of yields three key cases: (1) and are both in , (2) and are both in , or (3) and . The argument in case (3) will cover the fourth case: and .

(1) If and , then by (5.15). Therefore, because is one-to-one.

(2) If and , then by (5.15). Since the function is one-to-one, we have .

(3) If and , then we obtain . Thus, . Claim 1 implies that . Therefore, case (3) is impossible. (Claim 2)  

Claim 3. The function is onto .

Proof. Let . Hence, either (1) or (2) . We consider these two cases as follows:

(1) If , then for some . From the definition (5.15) of , it follows that .

(2) If , then (5.14) implies that . Thus, () for some . By applying the function to both sides of (), we obtain . Therefore, as . (Claim 3)  

Since is a bijection, we see that .(Theorem)

Given sets and , sometimes one can easily define one-to-one functions and ; yet it may be very difficult to specify a one-to-one function from onto . In this situation, one can apply the Schröder–Bernstein Theorem to conclude that such a function does exist and thereby conclude that and have the same cardinality.

Lemma 5.4.19. Let be the set of rational numbers and let be the set of real numbers. Then .

Proof. For , let . Let be defined by for each . To prove that is one-to-one, let and . Assume that . We shall prove that . Assume, for a contradiction, that . Without loss of generality, we can assume that . Since the rational numbers are dense in , there is a such that . Thus, and . Therefore, , which is a contradiction. So and is one-to-one.

Theorem 5.4.20. .

Proof. By Theorem 5.4.10, we have that . Hence, by Theorem 5.4.5, we see that . Lemma 5.4.19 allows us to now conclude that . Moreover, Corollary 5.4.4 states that , and Lemma 5.3.4 implies that . Thus, . Therefore, by the Schröder–Bernstein Theorem 5.4.18, we have that .

Our next corollary shows that the real line has the same cardinality as the plane .

Corollary 5.4.21. .

Proof. By Corollary 5.4.9, . Thus, by Theorem 5.4.20 and Theorem 5.4.6(2).

Theorem 5.4.20 allows us to reformulate the continuum hypothesis:

For every infinite set , Theorem 5.4.13 asserts that . So CH can be viewed is a special case of the Generalized Continuum Hypothesis (GCH):

The combined work of Kurt Gödel and Paul Cohen also shows that the GCH cannot be proven or refuted using the axioms in .

Exercises 5.4

1. Let and let . Prove that .
2. Prove that .
11. Prove that the set is uncountable.
12. Using Theorem 5.4.18, prove that , where .
13. Let , and let be the function given by

The function is one-to-one. The proof of Theorem 5.4.13 shows that is not onto because the subset of defined by is not in the range of . Evaluate the set .

14. Let be onto , and let . Show that .
15. Suppose and . Prove that .
16. Suppose and . Prove that .
21. Recall that is the set of all functions from to (see Definition 3.3.6). Suppose is nonempty. Let and be distinct. Using a diagonal argument, show that there is no function that is onto . Now, find a one-to-one function . Conclude that .
26. Using Theorem 5.4.7 and Exercise 3, prove that Using Exercise 22, show that and .
27. Using Theorem 5.4.7 and Corollary 5.4.8, prove that

Conclude, using Exercise 22, that .

30. Prove Theorem 5.4.16(3). Hint: Let and let be one-to-one. Define by

Show that is a “left inverse for ”; that is, show that for all . Now replace the use of in the proof of Theorem 5.4.6(3) with the function and modify the proof appropriately.

33. Let , , and be as in Lemma 5.4.17. Show that if , then is onto and if , then is onto .
35. Let and . The functions defined by and defined by are both one-to-one. Let be . Show that . Now, using (5.15) as a guide, explicitly define a bijection .
37. Let and . Let be as defined in Exercise 36. Assume is one-to-one and satisfies . Prove .
38. Let , , and be as in the proof of Lemma 5.4.17. Now assume that is one-to-one and let be as in Exercise 36. Prove that .

Exercise Notes: For Exercise 12, use the inverse tangent function . For Exercise 21, review the proofs of Theorems 5.3.2 and 5.4.13. For Exercise 22, use Theorem 5.4.18. To show that , given , let be the set where is the function in Exercise 9 on page 116. For Exercise 23, if , then is in . For Exercise 24, let and . If , then let be defined by and let satisfy . For Exercise 25, if , then let be defined by . For Exercise 31, in the implication (), let be a left inverse for as in Exercise 30. The implication () uses the axiom of choice. For Exercise 32, see Exercise 3 on page 36 and Exercise 2 on page 68. For Exercise 34, merge the two infinite decimal expansions, each one not ending with repeating 9’s, into one expansion. Exercise 36 outlines a different proof of Lemma 5.4.17 when is one-to-one. Use the “double subset” strategy. For Exercise 37, since is one-to-one, Claim 1 (in the proof of Theorem 5.4.18) implies that . For Exercise 38, from the proof of Lemma 5.4.17, it follows from Exercise 37 that . One can show that and for all . For Exercise 39, review the proof of Lemma 5.4.17.

REMARK: Exercises 36, 37, and 39 imply that the set given in the proof of Lemma 5.4.17 equals the set in Exercise 36 when is one-to-one.