Cantor's Diagonal Argument
Cantor's Diagonal Argument
Recall that. . . A set S is nite i there is a bijection between S and {1, 2, . . . , n} for some positive integer n, and innite otherwise. (I.e., if it makes sense to count its elements.) Two sets have the same cardinality i there is a bijection between them. (Bijection, remember, means function that is one-to-one and onto.) A set S is called countably innite if there is a bijection between S and N. That is, you can label the elements of S 1, 2, . . . so that each positive integer is used exactly once as a label. Why countably innite? Such a set is countable because you can count it (via the labeling just mentioned). Unlike a nite set, you never stop counting. But at least the elements can be put in correspondence with N. On the other hand, not all innite sets are countably innite. In fact, there are innitely many sizes of innite sets. Georg Cantor proved this astonishing fact in 1895 by showing that the the set of real numbers is not countable. That is, it is impossible to construct a bijection between N and R. In fact, its impossible to construct a bijection between N and the interval [0, 1] (whose cardinality is the same as that of R). Heres Cantors proof. Suppose that f : N [0, 1] is any function. Make a table of values of f , where the 1st row contains the decimal expansion of f (1), the 2nd row contains the decimal expansion of f (2), . . . the nth row contains the decimal expansion of f (n), . . . Perhaps f (1) = /10, f (2) = 37/99, f (3) = 1/7, f (4) = 2/2, f (5) = 3/8, so that the table starts out like this. n 1 2 3 4 5 . . . f (n) 1 5 7 3 8 5 1 0 0 0
0 0 0 0 0 . . .
. . . . .
3 3 1 7 3
1 7 4 0 7
4 3 2 7 5
9 7 7 6 0
2 3 1 7 0
6 7 4 8 0
5 3 2 1 0
3 7 8 1 0
Of course, only part of the table can be shown on a piece of paper it goes on forever down and to the right. Can f possibly be onto? That is, can every number in [0, 1] appear somewhere in the table? In fact, the answer is no there are lots and lots of numbers that cant possibly appear! For example, lets highlight the digits in the main diagonal of the table.
n 1 2 3 4 5 . . .
0 0 0 0 0 . . .
. . . . .
3 3 1 7 3
1 7 4 0 7
4 3 2 7 5
f (n) 1 5 7 3 8 5 1 0 0 0
9 7 7 6 0
2 3 1 7 0
6 7 4 8 0
5 3 2 1 0
3 7 8 1 0
The highlighed digits are 0.37210 . . . . Suppose that we add 1 to each of these digits, to get the number 0.48321 . . . . Now, this number cant be in the table. Why not? Because it diers from f (1) in its rst digit; it diers from f (2) in its second digit; ... it diers from f (n) in its nth digit; ... So it cant equal f (n) for any n that is, it cant appear in the table. This looks like a trick, but in fact there are lots of numbers that are not in the table. For example, we could subtract 1 from each of the highlighted digits (changing 0s to 9s), getting 0.26109 by the same argument, this number isnt in the table. Or we could subtract 3 from the odd-numbered digits and add 4 to the even-numbered digits. Or we could even highlight a dierent set of digits: n 1 2 3 4 5 . . . f (n) 1 5 7 3 8 5 1 0 0 0
0 0 0 0 0 . . .
. . . . .
3 3 1 7 3
1 7 4 0 7
4 3 2 7 5
9 7 7 6 0
2 3 1 7 0
6 7 4 8 0
5 3 2 1 0
3 7 8 1 0
As long as we highlight at least one digit in each row and at most one digit in each column, we can change each the digits to get another number not in the table. Here, if we add 1 to all the highlighted digits, we end up with 0.42981 . . . theres a real number that does not equal f (n) for any positive integer n. What is the point of all this? Precisely that the function f cant possibly be onto there will always be (innitely many!) missing values. Therefore, there does not exist a bijection between N and [0, 1].
If S is a set, then the power set P (S ) is dened as the set of all subsets of S . For example, if S = {1, 3, 4}, then P (S ) = {}, {1}, {3}, {4}, {1, 3}, {1, 4}, {3, 4}, {1, 3, 4} . 2
When S is nite, its not hard to see that |P (S )| = 2|S | : (because to choose a subset R of S , you need to decide whether each element of S does or does not belong to R). In the above example, |S | = 3 and |P (S )| = 8 = 23 . What about innite sets? Using a version of Cantors argument, it is possible to prove the following theorem: Theorem 1. For every set S , |S | < |P (S )|. Proof. Let f : S P (S ) be any function and dene X = {s S | s f (s)}. For example, if S = {1, 2, 3, 4}, then perhaps f (1) = {1, 3}, f (2) = {1, 3, 4}, f (3) = {} and f (4) = {2, 4}. In this case X does not contain 1 (because 1 f (1)), X does contain 2 (because 2 f (2)), X does contain 2 (because 3 f (3)), and X does not contain 2 (because 4 f (4)), so X = {2, 3}. Now, is it possible that X = f (s) for some s S ? If so, then either s belongs to X or it doesnt. But by the very denition of X , if s belongs to X then it doesnt belong to X , and if it doesnt then it does. This situation is impossible so X cannot equal f (s) for any s. But, just as in the original diagonal argument, this proves that f cannot be onto. For example, the set P (N) whose elements are sets of positive integers has more elements than N itself; that is, it is not countably innite. As a consequence of this result, the sequence of innite sets N, P (N), P (P (N)), P (P (P (N))), . . . must keep increasing in cardinality. That is, there are innitely many dierent sizes of innity!