Cantor's Diagonal Argument: Why Some Infinities Are Bigger
We present Cantor's diagonal argument proving that the real numbers are uncountable, explore its consequences for set theory, and examine how it forever changed our understanding of infinity.
The Theorem
Theorem (Cantor, 1891)
The set of real numbers is uncountable. That is, there is no surjection from onto .
In modern language: , or equivalently .
Countable vs. Uncountable
A set is countable if there exists a bijection (or is finite). Equivalently, the elements of can be listed as a sequence that exhausts the entire set.
Countable Sets
All can be listed in a sequence
Uncountable Sets
Cannot be listed in any sequence
The fact that is countable (proved by Cantor's earlier zig-zag argument) makes the uncountability of all the more surprising. Between any two rationals lies another rational, and between any two reals lies a rational — yet somehow the reals are "far more numerous."
The Diagonal Argument
We prove that even the interval is uncountable.
Proof (by contradiction)
Step 1 — Assume a listing exists.
Suppose is countable. Then we can list all its elements:
Write each in its decimal expansion (choosing the non-terminating form when there is ambiguity):
where each .
Step 2 — Construct a number not in the list.
Define a new real number by setting:
(The choice of and avoids complications with .)
Step 3 — Reach a contradiction.
The number differs from in the -th decimal place for every . Therefore for all , so .
But , contradicting the assumption that the list was exhaustive.
Why the Argument Works
The core logic is a self-referential diagonalization: we use the -th digit of the -th number to construct something that escapes the entire list. The "diagonal" comes from reading the entries — the main diagonal of the infinite matrix .
The diagonal method is a universal technique: wherever you have a complete enumeration of objects, the diagonal constructs something that cannot be in the enumeration. It appears in the proofs of the halting problem, Gödel's incompleteness theorems, and Russell's paradox.
Cantor's Theorem (General Version)
The diagonal argument generalizes far beyond the reals.
Cantor's Theorem
For every set , there is no surjection . In particular, .
Proof. Suppose is a surjection. Define the diagonal set:
Since is surjective, there exists with . Now:
- If , then by definition of , . Contradiction.
- If , then , so by definition. Contradiction.
Either way we reach a contradiction, so no surjection exists.
An Infinite Hierarchy of Infinities
Applying Cantor's theorem repeatedly:
In terms of cardinal numbers:
There is no "largest infinity" — the tower of power sets grows without bound.
The Continuum Hypothesis
Since , a natural question arises:
The Continuum Hypothesis (CH). There is no set with . Equivalently, .
Cantor believed this was true but could not prove it. Hilbert listed it as the first of his famous 23 problems in 1900. The resolution came in two stages:
- Gödel (1940) showed that CH is consistent with ZFC (cannot be disproved).
- Cohen (1963) showed that CH is independent of ZFC (cannot be proved either).
The continuum hypothesis is therefore undecidable within standard set theory — a stunning consequence of the diagonal method's legacy.
The Reals and the Power Set
Why does ? The key bijection is:
where a subset maps to its characteristic function , and a binary sequence maps to the real number . (This is a bijection up to a countable set of dyadic rationals, which does not affect cardinality.)
Applications of Diagonalization
Non-Computable Functions Exist
The set of all Turing machines is countable (each is described by a finite string). The set of all functions has cardinality , which is uncountable. Therefore most functions are not computable.
The Halting Problem
Turing's proof that no algorithm can decide whether an arbitrary program halts uses the same diagonal trick: assume a decider exists, and construct a program that contradicts the decider on its own input.
Gödel's Incompleteness
Gödel assigned numbers to formulas (Gödel numbering) and used a diagonal construction to build a sentence that says "I am not provable," leading to the First Incompleteness Theorem.
Historical Context
Georg Cantor published his first uncountability proof in 1874, using a different method (nested intervals). The elegant diagonal argument appeared in an 1891 paper, "Über eine elementare Frage der Mannigfaltigkeitslehre."
Cantor's work was revolutionary but fiercely opposed. Leopold Kronecker called him a "scientific charlatan," and Henri Poincaré described set theory as a "disease." Despite this, David Hilbert declared: "No one shall expel us from the paradise that Cantor has created."
Today, Cantor's ideas form the foundation of modern set theory, topology, measure theory, and mathematical logic.
Common Misconceptions
"The diagonal argument only works for decimal expansions." No — it works for any representation. The general Cantor theorem (for power sets) needs no decimals at all.
"You can defeat the argument by using a different listing." The argument works for any proposed listing. There is no clever enumeration that escapes the diagonal.
"Countable and uncountable are just different ways of being infinite." They reflect a genuine structural difference: you cannot pair up and one-to-one, no matter how hard you try.
Summary
References
- Cantor, G., "Über eine elementare Frage der Mannigfaltigkeitslehre," Jahresbericht der DMV, 1891.
- Halmos, P., Naive Set Theory, Springer, 1974.
- Enderton, H., Elements of Set Theory, Academic Press, 1977.
- Wikipedia — Cantor's diagonal argument
- Wikipedia — Cantor's theorem
- 3Blue1Brown — How many real numbers are there?