← Back to Paradoxes

∞ Cantor's Diagonal Argument

Some infinities are bigger than others — and we can prove it

The Shocking Discovery (1891)

Georg Cantor proved something that seems impossible: you cannot list all real numbers between 0 and 1. Even with an infinitely long list, you'll always miss some.

This means the infinity of real numbers is strictly larger than the infinity of counting numbers. There are different sizes of infinity! The proof is elegant and visual — watch the diagonal argument unfold below.

The Diagonal Proof

Suppose we could list ALL real numbers...

Step 0: The Setup

Assume we have a complete list of ALL real numbers between 0 and 1.

Each number is written as an infinite decimal: 0.d₁d₂d₃d₄...

⚡ The Paradox

The diagonal argument constructs a number that differs from every number in the list — it disagrees with the 1st number in the 1st digit, the 2nd number in the 2nd digit, and so on.

This new number is a valid real number between 0 and 1, but it cannot appear anywhere in our "complete" list. Contradiction! Therefore, no such complete list can exist.

Conclusion: The real numbers are uncountably infinite — a larger infinity than the natural numbers.

ℵ₀

Countable Infinity

"Aleph-null" — the smallest infinity

Natural numbers: 1, 2, 3, 4...
Integers: ..., -2, -1, 0, 1, 2...
Rationals: 1/2, 3/4, 7/11...
𝔠

Uncountable Infinity

"Continuum" — strictly larger!

Real numbers: π, √2, 0.101001...
Points on a line segment
All possible infinite sequences

Interactive Diagonal Visualizer

Watch the diagonal argument animate in real-time

Listed Numbers
Diagonal Digits
New Number (differs from all)

Build Your Own Number List

Enter decimal numbers (0-1) and see the diagonal argument in action

Add numbers to see the diagonal argument applied to your list

Comparing Infinities

Visualizing why some infinities are larger than others

N
Natural Numbers
|N| = ℵ₀
<
R
Real Numbers
|R| = 2ℵ₀
Countable (ℵ₀): Can be listed 1, 2, 3... Finite representation
Uncountable (2ℵ₀): Cannot be listed! Overflows any list

The diagonal argument proves 2ℵ₀ > ℵ₀ — the reals truly overflow any countable listing

The Formal Proof

1
Assume (for contradiction) that all reals in [0,1] can be listed: r₁, r₂, r₃, ...
2
Write each rₙ as an infinite decimal: rₙ = 0.dₙ₁dₙ₂dₙ₃...
3
Construct a new number x = 0.x₁x₂x₃... where xₙ ≠ dₙₙ (the diagonal digits).
4
For each n: x differs from rₙ in the nth decimal place, so x ≠ rₙ.
Contradiction! x is a real in [0,1] but isn't in our "complete" list. Our assumption was false — the reals cannot be listed.
"The essence of mathematics lies in its freedom."
— Georg Cantor (1845-1918)

🔢 Infinity Hierarchy

Cantor proved there are infinitely many sizes of infinity: ℵ₀ < 2^ℵ₀ < 2^(2^ℵ₀) < ...

🖥️ Halting Problem

Turing used diagonalization to prove some problems are undecidable by any computer.

📐 Gödel's Theorems

Similar self-referential techniques prove mathematical systems are incomplete.

❓ Continuum Hypothesis

Is there an infinity between ℵ₀ and 𝔠? Proven independent of standard math axioms!

Why This Matters

Before Cantor, mathematicians assumed all infinities were the same. His diagonal argument shattered that intuition and revealed a rich structure in the infinite.

The technique itself — constructing an object that differs from everything in a list — became one of the most powerful tools in mathematics and computer science, used to prove limitations on computation, logic, and definability.

Cantor's work was controversial in his time; some mathematicians called it a "disease." Today, it's fundamental to our understanding of mathematics itself.