MathLabs
TheoremProved

Cantor's theorem: the reals are uncountable

Statement

The interval [0,1][0,1] (and hence R\mathbb{R}) is uncountable: there is no way to list all of its elements as a sequence x1,x2,x3,…x_1, x_2, x_3, \ldots indexed by the natural numbers.

Why is it true?

This is the first proof that infinite sets come in different sizes: the natural numbers and the reals are both infinite, but one infinity is strictly bigger. It underlies why most real numbers cannot be described by any finite formula, and it is the ancestor of the diagonal arguments used throughout logic and computer science (e.g. the halting problem).

Proof sketch

Suppose, for contradiction, that [0,1][0,1] were countable: every real number in it appears exactly once in some enumeration x1,x2,x3,…x_1, x_2, x_3, \ldots. Write each in decimal form as xn=0.dn1dn2dn3…x_n = 0.d_{n1}d_{n2}d_{n3}\ldots, choosing the expansion that does not end in an infinite string of 9's when a number has two representations.

Now build a new number yy digit by digit, one digit at a time, by looking down the diagonal of this list: y=0.e1e2e3…y = 0.e_1e_2e_3\ldots, where the nn-th digit is defined by en={5dnn≠56dnn=5e_n=\begin{cases}5 & d_{nn}\neq5\\6 & d_{nn}=5\end{cases}. Restricting the choice to {5,6}\{5,6\} guarantees yy never ends in all 0's or all 9's, so its decimal expansion is unique and unambiguous.

For every index nn, the number yy differs from xnx_n at the nn-th decimal digit by construction (en≠dnne_n\neq d_{nn}), so y≠xn ∀ny\neq x_n\ \forall n. Since yy's digits are all 55 or 66, y∈[0,1]y\in[0,1].

But then yy is a real number in [0,1][0,1] that is not equal to any xnx_n in the supposedly complete list — a contradiction, since the list was assumed to contain every element of [0,1][0,1]. Therefore no enumeration of [0,1][0,1] can exist, and [0,1][0,1] (hence the larger set R\mathbb{R}) is uncountable.

Topics that use this theorem

Step-by-step proofs

No step-by-step proof yet for this theorem.

References

  1. Morris Kline (1980). Mathematics: The Loss of Certainty
  2. Maryna Viazovska (2016). The sphere packing problem in dimension 8 · arXiv:1603.04246
  3. DeepMind (2024). AI solves IMO problems at silver medal level