The diagonal and its consequences
R is uncountable
Statement
Cantor's theorem. The set is uncountable.
In other words, there is no bijection from onto : the infinity of the reals is strictly larger than that of the integers. Cantor published this result in 1874, then in 1891 gave the proof that became famous, the diagonal argument.
It is enough to deal with the interval , because if it is uncountable, then , which contains it, is uncountable as well.
The diagonal argument
Proof by contradiction. Suppose is countable. Then there is an enumeration of all its elements. Write the proper decimal expansion of each, denoting by the -th digit after the decimal point of :
| Rank | Decimal expansion | Diagonal digit |
|---|---|---|
Constructing the escaping real. We build a number in by requiring its -th decimal digit to be different from :
In the example,
Contradiction. The real number does belong to . Yet, for every , it differs from in the -th decimal place, so . The enumeration, supposed to contain all the elements, misses one: it does not exist. The interval is uncountable, and so is .
Why the digits and
This choice is not cosmetic. The same real number can have two decimal expansions, such as
If the digits and were allowed in the construction, the number obtained could coincide with some despite having a different expansion, and the argument would collapse. By using only and , we avoid any sequence ending in infinitely many s or s: the expansion of is proper, and the digit-by-digit comparison is legitimate.
The general form: Cantor's theorem
The same argument, applied to indicator functions, gives a much stronger result:
For any set , there is no surjection from onto the set of its subsets.
Proof. Let . Set . If had a preimage , then , which is contradictory. The set therefore has no preimage, and is not surjective.
Starting from , we thus obtain a strictly increasing sequence of infinities: there is no largest cardinal.
Classic pitfall
Objecting "just add to the list." This misreads the reasoning: we are not constructing a number missing from one particular list, we are showing that every enumeration misses one. Adding produces a new enumeration, to which the same procedure will immediately apply a new escaping number.

