The previous lesson exhibited several uncountable sets: Cantor space , Baire space , the power set and the real line . This lesson shows that they all have the same cardinality, called the cardinality of the continuum. The proofs are applications of the Cantor–Bernstein theorem: in each case, two injections are easy to write down, while an explicit bijection would be cumbersome. Along the way, we introduce two codings used throughout computability theory: the join of two sequences, and the coding of a sequence of sequences by a single one.
A set has the cardinality of the continuum if .
5.1 Codings inside Cantor space
.
The inclusion gives one injection. For the other, a function is coded by writing each value in unary, ones, followed by a zero as a separator.
To , associate the sequence
where is the string of ones. Formally, if and only if for some , where is the position of the -th zero. The sequence has infinitely many zeros, at the positions , and is recovered from it: and is the number of ones between two consecutive zeros. So is injective, and Theorem 2.3 applies.
The map is a bijection from onto the set of sequences with infinitely many zeros, but it is not surjective onto : the sequences with finitely many zeros, such as , are not codes. This is why Cantor–Bernstein is used.
- The join of is the sequence defined by and .
- The coding of a sequence of elements of is the sequence defined by , where is Cantor’s pairing function.
The maps and are bijections from and from onto . Hence .
Every is for exactly one pair, namely and , since every integer is even or odd, and not both. Similarly, since is a bijection (Proposition 3.7), every is for exactly one sequence, namely .
In computability theory, is the canonical way of giving two sets as a single oracle, and the way of giving a sequence of sets; the set is the -th column of .
5.2 The real line
The sets , , , and are pairwise equipotent.
We have by characteristic functions, by Proposition 5.2, and , and are pairwise equipotent by Exercise 2.7. It remains to show , and we give two injections.
From to . Let , which lies in . If , let be the least position where they differ, say and . Then
since the terms at positions contribute at most each to the difference. So is injective.
From to . For , let , which is or . By induction on , : this holds for since , and the inductive step is the definition of . Hence the bits determine every , and therefore , since . So is injective.
By Theorem 2.3, .
The sequence is the binary expansion of that does not end with infinitely many ones. The map is not surjective: the sequences ending with infinitely many ones are missed. The map uses base so that distinct sequences cannot produce the same number, which would happen in base , where and both represent .
, and .
Fix a bijection , given by the theorem. Then and are bijections onto , by Proposition 5.4. Finally is in bijection with .
Cantor found this result in 1877, and wrote to Dedekind that he could see it but did not believe it: the plane has no more points than the line. No such bijection is a homeomorphism, by Brouwer’s theorem on the invariance of dimension (1911), which we admit; cardinality ignores topology.
5.3 Removing a countable set
If is countable, then . The same holds for and every set of the cardinality of the continuum.
Through the bijection of Proposition 5.4, we may work in , with a countable subset of it. The set of first coordinates is countable, as an image of (Corollary 3.4). By Theorem 4.2, there is . Then is an injection of into . The inclusion is an injection in the other direction, and Theorem 2.3 concludes. The last sentence follows by transporting through a bijection.
The sets of irrational numbers and of transcendental numbers have the cardinality of the continuum.
They are the complements in of the countable sets and of the algebraic numbers (Example 3.13).
5.4 Cantor space and the Cantor set
Cantor space and the real line have the same cardinality, but they are different as ordered or topological spaces. In the lexicographic order on , defined by if at the first position where and differ, the sequences and have nothing strictly between them, whereas between two real numbers there is always a third. The relevant geometric picture of is a subset of the line.
Let , and let be obtained from by removing the open middle third of each of its intervals, so that and is a union of closed intervals of length . The Cantor set is . It is the set of real numbers of having a ternary expansion with digits and only, and the map is a bijection from onto , which preserves the lexicographic order. With the product topology on , it is a homeomorphism; this explains the name of Cantor space. We admit these facts, which belong to a course on topology.
5.5 The continuum hypothesis
By Proposition 3.5, every infinite set has cardinality at least , and . Cantor conjectured that there is nothing in between.
The continuum hypothesis is the statement: every infinite subset of is either countable or of the cardinality of the continuum.
The question remained open for decades, and was the first of the problems listed by Hilbert in 1900. Its status is now known, and we admit it.
The continuum hypothesis can be neither proved nor refuted from the axioms of ZFC, provided these axioms are consistent. Gödel showed in 1938 that it holds in the constructible universe , so that it cannot be refuted; Cohen showed in 1963, by the method of forcing, that it cannot be proved. Forcing has since become a central tool of set theory, and effective versions of it are used in computability theory to build sets with prescribed properties.
For sets of reals with a simple definition, the question has a positive answer. Cantor and Bendixson showed that every uncountable closed subset of contains a copy of the Cantor set, hence has the cardinality of the continuum; this was extended to Borel sets by Alexandrov and Hausdorff, and to analytic sets by Suslin. We admit these results; they are proved in Kechris’ book.
5.6 Exercises
Show that , and that the set of all binary relations on has the cardinality of the continuum.
Solution
A bijection induces a bijection between the power sets, by taking images. A binary relation on is a subset of , so the set of relations is , equipotent to and hence to by Theorem 5.5.
Show that the set of continuous functions has the cardinality of the continuum.
Solution
Constant functions give an injection of . Conversely, a continuous function is determined by its values on , since every real number is a limit of rational numbers. Fixing a bijection , the map is therefore an injection into , which has the cardinality of the continuum by Corollary 5.6. Conclude by Theorem 2.3.
Show that the set of all functions has a cardinality strictly greater than that of .
Solution
The characteristic functions of subsets of give an injection of into the set of all functions. By Theorem 4.6, . (In fact , since a function is a subset of , which is equipotent to .)
Give an explicit bijection between and the set of sequences with infinitely many zeros, using the coding of Proposition 5.2. Deduce another proof that .
Solution
The set of sequences with finitely many zeros is countably infinite: each of them is for a finite binary string , and there are infinitely many. Let be an enumeration of without repetition. The sequences , for , are pairwise distinct and have infinitely many zeros. Define by , , and for the other sequences. It is injective on each of the three pieces, whose images , and are disjoint and cover ; so is a bijection onto the set of sequences with infinitely many zeros. Then is a bijection from onto .
5.7 Notes and references
The equipotence of the line and the plane is in Cantor’s paper of 1878, after an exchange of letters with Dedekind in 1877. The continuum hypothesis is formulated in the same paper. Gödel’s and Cohen’s results are presented in Kunen’s and Jech’s textbooks on set theory; the perfect set property for closed, Borel and analytic sets is in Kechris’ book.
- G. Cantor, Ein Beitrag zur Mannigfaltigkeitslehre, Journal für die reine und angewandte Mathematik 84 (1878), 242–258.
- K. Gödel, The consistency of the axiom of choice and of the generalized continuum-hypothesis, Proceedings of the National Academy of Sciences 24 (1938), 556–557.
- P. J. Cohen, The independence of the continuum hypothesis, Proceedings of the National Academy of Sciences 50 (1963), 1143–1148.
- K. Kunen, Set Theory: An Introduction to Independence Proofs, North-Holland, 1980.
- T. Jech, Set Theory, 3rd millennium edition, Springer, 2003.
- A. S. Kechris, Classical Descriptive Set Theory, Graduate Texts in Mathematics 156, Springer, 1995.