All Chapters

The Missing Chapter

Cantor's Different Infinities

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

An extension of Jordan Ellenberg's "How Not to Be Wrong"

Chapter 52

The Hotel That's Always Full (and Always Has Room)

There's a hotel with infinitely many rooms, and every single one is occupied. A new guest walks in. The night manager doesn't even blink. "No problem," she says. And she's right.

This is Hilbert's Hotel, the thought experiment dreamed up by the German mathematician David Hilbert in a 1924 lecture, and it's the place where your intuitions about infinity go to die.1 The trick is simple: ask the guest in room 1 to move to room 2, the guest in room 2 to move to room 3, and so on. Everyone moves up one room. Room 1 is now free. The new guest checks in.

"But wait," you say, "the hotel was full." Yes. And it still is. Every guest still has a room. It's just that infinity plus one is still infinity. That's not a paradox — it's a property.

Now things get wilder. A bus pulls up with infinitely many new guests. The night manager barely looks up from her crossword. "Everyone in the hotel, please move to double your room number." Guest in room 1 goes to room 2, guest in room 2 goes to room 4, guest in room 3 goes to room 6. Now all the odd-numbered rooms are empty — infinitely many of them — and the bus passengers file in. Infinity plus infinity equals infinity.

You might start to think infinity can swallow anything. And if you're only dealing with the kind of infinity that counts things — one, two, three, four, on and on — you'd be right. This is countable infinity, the size of the natural numbers, and Hilbert's Hotel demonstrates its central weirdness: a countably infinite set can absorb countably infinite additions without getting any bigger.2

What makes this more than a party trick is the rigorous notion hiding behind it. Two sets have the same size — mathematicians say the same cardinality — if you can match up their elements one-to-one, with nothing left over on either side. Finite sets work just as you'd expect: five chairs, five people, everyone sits down. But infinite sets break the intuition that "the whole is greater than the part." The even numbers can be matched one-to-one with all the natural numbers (just pair n with 2n), so these two sets have the same cardinality — even though one is a proper subset of the other. Galileo noticed this paradox in 1638 and threw up his hands; Cantor, two centuries later, picked it up and built a theory.3

🏨 Hilbert's Hotel

The hotel starts full. Try adding guests and watch the room-shifting algorithm in action.

All rooms occupied. The hotel is full.

Georg Cantor looked at all this in the 1870s and asked the question that would upend mathematics, ruin his career, and change our understanding of the infinite forever: are there bigger infinities?

· · ·
Chapter 52

The Diagonal That Changed Everything

Cantor's stroke of genius came in 1891, and it's one of the most beautiful arguments in all of mathematics.4 It goes like this:

Suppose someone claims they've made a complete list of all real numbers between 0 and 1. Each number is an infinite decimal — 0.314159…, 0.271828…, 0.500000…, and so on. The list is infinitely long, with a first entry, a second entry, a third, stretching on forever. Every real number between 0 and 1, they say, appears somewhere on this list.

Cantor says: I can build a number that's not on your list.

Here's how. Look at the first digit of the first number on the list. If it's a 3, write down a 7 instead. (Any different digit will do — just change it.) Now look at the second digit of the second number. Change that too. The third digit of the third number — change it. Keep going forever, walking down the diagonal of this infinite grid of digits.

The number you build — call it d — differs from the first number in its first digit, from the second number in its second digit, from the nth number in its nth digit. So d isn't equal to any number on the list. But d is a perfectly good real number between 0 and 1. Therefore the list was incomplete. Any list is incomplete. The real numbers between 0 and 1 cannot be put in a list.

(A small technical footnote that purists will insist on: when we change each digit, we should avoid producing a number that ends in all 9s, since 0.4999… equals 0.5000… and we don't want our "new" number to secretly be on the list after all. The standard trick is to only ever change digits to, say, 1 or 2 — safe choices that dodge the issue entirely.)

"I see it, but I don't believe it." — Georg Cantor, in a letter to Richard Dedekind, 18775
d₁ d₂ d₃ d₄ d₅ r₁ = 0. r₂ = 0. r₃ = 0. r₄ = 0. r₅ = 0. 3 1 4 1 5 2 7 1 8 2 5 0 0 0 0 8 4 6 2 0 9 9 3 7 8 d = 0. 4 8 1 3 9
The diagonal argument: the red diagonal digits are each changed (+1) to build the green number d, which differs from every row and therefore can't be on the list.

This is the diagonal argument, and it's a proof by contradiction so clean you can explain it at a dinner party. (I have. The reactions range from "that's beautiful" to "that can't be right" to "please stop talking about infinity, the food's getting cold.") The real numbers between 0 and 1 are uncountable — there are strictly more of them than there are natural numbers.

🔢 Diagonal Argument Visualizer

Watch the diagonal number get constructed step by step. Each diagonal digit is changed to produce a number not on the list.

Click "Step" to walk through the diagonal argument.

Let that sink in. Both the natural numbers and the real numbers are infinite. But the real numbers are more infinite. Cantor had discovered that infinity comes in sizes.

Now, you might try to wriggle out of this. "What if I just add d to the list? Then you'll need a new diagonal number, and I'll add that one too, and we'll keep going." But that misses the point. The proof doesn't say "here's one number you forgot." It says: for any possible list, no matter how cleverly you construct it, there will always be real numbers it doesn't include. It's not that your bookkeeping was sloppy. It's that the task is impossible. The reals are too numerous to be corralled into a countable sequence, the way ocean water is too vast to be captured in jars, no matter how many jars you bring.

· · ·
Chapter 52

Counting the Uncountable

Cantor gave these infinities names. The size of the natural numbers — the smallest infinity — he called ℵ₀ (aleph-null, using the first letter of the Hebrew alphabet, because why not go big with your notation when your subject is literally infinite). The size of the real numbers he called c, for "continuum." And his theorem proved that c > ℵ₀.

But how much bigger? Is c the next infinity after ℵ₀, or are there infinities lurking in between? This question — "Is there an infinity between ℵ₀ and c?" — became known as the continuum hypothesis, and it would haunt mathematics for over a century.6

CH: There is no set whose cardinality is strictly between that of the integers (ℵ₀) and the real numbers (c).

In other words, c = ℵ₁ — the continuum is the very next infinity after countable infinity.

Cantor believed it was true but could never prove it. It became the first of Hilbert's famous 23 unsolved problems in 1900.

In 1940, Kurt Gödel showed that the continuum hypothesis is consistent with the standard axioms of set theory (ZFC). You can assume it's true, and you'll never reach a contradiction. Then in 1963, Paul Cohen developed an entirely new technique called forcing and proved the opposite: you can also assume it's false without contradiction.7

Together, Gödel and Cohen proved that the continuum hypothesis is independent of ZFC. It can be neither proved nor disproved from the standard axioms of mathematics. This isn't a matter of us not being clever enough — it's that the axioms genuinely don't decide the question, the way that the rules of chess don't determine whether your first move should be e4 or d4.

If you find that unsettling, you're in good company. Mathematics is supposed to be the land of definite answers, where things are either true or false. The independence of the continuum hypothesis tells us that even mathematics has genuine choices — places where the road forks and you have to pick which mathematics you want to do.8

· · ·
Chapter 52

Infinities All the Way Up

Here's where it gets truly vertiginous. Cantor didn't just prove that the reals are bigger than the naturals — he proved a general theorem that works for any set at all.

Cantor's Theorem

For any set S, the power set P(S) — the set of all subsets of S — is strictly larger than S. Always. No exceptions.

To get a feel for why, start small. The set {a, b} has four subsets: {}, {a}, {b}, {a, b}. The set {a, b, c} has eight subsets. In general, a set with n elements has 2n subsets — always more than n itself. Cantor's theorem says this strict inequality persists even when the sets are infinite. The power set of the natural numbers has the same cardinality as the reals (that's 2ℵ₀ = c). But now take the power set of the reals. That's bigger still. And the power set of that. And so on, forever.

ℵ₀ countable c continuum = 2ℵ₀ 2c power set of reals < <
The infinite hierarchy of infinities: each power set is strictly larger than the last. There is no biggest infinity.

There is no biggest infinity. No matter how mind-bogglingly large an infinite set you've got, its power set is bigger. It's infinities all the way up, an endless staircase with no top floor. Hilbert's Hotel has rooms for every natural number, but it cannot accommodate the real numbers — no clever room-shuffling trick will work, because there are simply too many of them.

The proof of Cantor's theorem uses a beautiful self-referential trick: assume you do have a one-to-one mapping f from S to P(S). Now consider the set T = {x ∈ S : x ∉ f(x)} — the set of all elements that are not in the subset they're mapped to. T is a subset of S, so it must be f(y) for some y. But is y in T? If yes, then by definition y ∉ f(y) = T — contradiction. If no, then y ∉ T = f(y), so y should be in T — contradiction again. This is the same self-referential DNA as the diagonal argument, just wearing a different outfit.9

· · ·
Chapter 52

The Man Who Saw Too Much

The story of infinity's different sizes is also, unavoidably, the story of the man who discovered them — and what the discovery cost him.

Georg Cantor was born in St. Petersburg in 1845 and spent most of his career at the University of Halle, which was not exactly the center of the mathematical universe.10 He wanted a position in Berlin, the top mathematics department in Germany, but that was the domain of Leopold Kronecker, who thought Cantor's work on infinity was not just wrong but dangerous.

Kronecker was a finitist — he believed that only finite mathematical objects were legitimate. "God made the integers," Kronecker famously declared. "All else is the work of man."11 Cantor's infinite hierarchies were, to Kronecker, a corruption of mathematics, a "disease" from which mathematics would one day recover. He actively blocked Cantor's papers, undermined his career, and turned colleagues against him.

1874 First proof: reals are uncountable 1884 First major depressive episode 1891 Diagonal argument published 1900 CH is Hilbert's Problem #1 1918 Dies in sanatorium Cantor's life: breakthroughs and breakdowns ← Kronecker's active opposition →
Cantor's breakthroughs and breakdowns were deeply intertwined — his most profound work happened alongside devastating personal attacks from Kronecker.

Cantor suffered his first major depressive episode in 1884. The episodes recurred throughout his life, and he spent increasing amounts of time in the Halle Nervenklinik — a sanatorium. Between bouts of illness, he continued to work, but the continuum hypothesis remained stubbornly out of reach. He died in the sanatorium on January 6, 1918, malnourished, during the food shortages of World War I.

The tragedy is that Cantor was right about everything except the solvability of his favorite problem. The continuum hypothesis wasn't proved or disproved in his lifetime because it couldn't be — but he had no way of knowing that. He spent decades banging his head against a wall that Gödel and Cohen would later prove was unbreakable.

Today, Cantor's work is the foundation of modern set theory, a cornerstone of mathematics as fundamental as Euclid's geometry. David Hilbert said it plainly: "No one shall expel us from the paradise that Cantor has created."2 Kronecker's finitism is a historical curiosity. Cantor's infinities are the air we breathe.

· · ·
Chapter 52

Why It Matters (Even If You Never Meet an Uncountable Set at Brunch)

You might reasonably ask: who cares? When am I going to need to know that there are more real numbers than integers?

The answer is that Cantor's work isn't really about counting things. It's about the limits of systematic procedures. The reason the real numbers are uncountable is that they contain too much information to be captured by any algorithm that ticks through them one at a time. This is the same insight that led Alan Turing, a few decades later, to prove that some problems are uncomputable — there are questions that no computer program can answer, no matter how clever or how long you let it run. Turing's argument is essentially Cantor's diagonal argument in a new setting.12

Here's the connection made concrete. Turing wanted to know: is there a program that can look at any other program and decide whether it will eventually stop or run forever? (This is the halting problem.) He proved the answer is no — and the proof is diagonal. Suppose such a decider program H exists. Feed H a description of itself, modified so that it does the opposite of whatever H predicts. If H says "halts," the modified program loops forever; if H says "loops," it halts. Contradiction. The logical skeleton is identical to Cantor's: construct something that disagrees with every entry on the supposed "complete list."

Every time a computer scientist talks about the limits of computation, every time a logician explores the boundaries of formal proof, every time a mathematician encounters a set that can't be well-ordered without the axiom of choice — they're living in the world Cantor built. He asked a simple question: can you list all the real numbers? The answer was no. And that "no" echoed through all of twentieth-century mathematics, shaping logic, computation, and our understanding of what it means for something to be true.

Some infinities are bigger than others. It sounds like a line from a novel — and in fact John Green used it in The Fault in Our Stars, though the mathematical claim in the book (that there are more numbers between 0 and 2 than between 0 and 1) is actually false: both intervals have exactly the same cardinality, c.13 But the spirit is right. The real mathematical reality is stranger and more beautiful than the literary metaphor. There isn't just a bigger infinity. There's a bigger infinity than that. And another one above it. The staircase never ends. And the man who discovered it paid for the vision with his sanity, his career, and his life — but not with his legacy. That endures, uncountably.

Notes & References

  1. David Hilbert introduced the hotel thought experiment in a 1924 lecture and it was popularized in George Gamow's One Two Three… Infinity (Viking Press, 1947). Hilbert never published it in a paper; it entered the mathematical folklore through lecture notes and retellings.
  2. Hilbert's "paradise" quote comes from his 1926 paper "Über das Unendliche" (Mathematische Annalen, vol. 95, pp. 161–190). The original German: "Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können."
  3. Galileo discussed this paradox in Discorsi e dimostrazioni matematiche (1638), noting that the square numbers can be put in one-to-one correspondence with all positive integers even though "most" integers are not squares. He concluded that concepts like "greater," "less," and "equal" simply don't apply to infinite quantities — a defensible position, but not the one Cantor chose.
  4. Cantor first proved the uncountability of the reals in 1874 using a nested-intervals argument. The diagonal argument — more elegant and more general — appeared in "Über eine elementare Frage der Mannigfaltigkeitslehre," Jahresbericht der Deutschen Mathematiker-Vereinigung, vol. 1 (1891), pp. 75–78.
  5. The quote comes from a letter dated June 29, 1877, in which Cantor told Dedekind that he had proved the points of a line could be put in one-to-one correspondence with the points of a plane — an equally counterintuitive result about infinity. See Joseph Dauben, Georg Cantor: His Mathematics and Philosophy of the Infinite (Harvard UP, 1979), p. 55.
  6. The continuum hypothesis was the first problem on Hilbert's famous list, presented at the International Congress of Mathematicians in Paris, 1900. See Jeremy Gray, The Hilbert Challenge (Oxford UP, 2000).
  7. Paul Cohen's forcing technique appeared in "The Independence of the Continuum Hypothesis," Proceedings of the National Academy of Sciences, vol. 50 (1963), pp. 1143–1148, and vol. 51 (1964), pp. 105–110. He won the Fields Medal in 1966 for this work.
  8. For a philosophical treatment of independence results and mathematical pluralism, see Joel David Hamkins, "The Set-Theoretic Multiverse," Review of Symbolic Logic, vol. 5, no. 3 (2012), pp. 416–449.
  9. The self-referential structure connecting Cantor's theorem, Russell's paradox, Gödel's incompleteness theorems, and Turing's halting problem is beautifully explored in Douglas Hofstadter's Gödel, Escher, Bach (Basic Books, 1979).
  10. Dauben, Georg Cantor, chapters 1–3. For a shorter biographical treatment, see also the entry on Cantor in the Stanford Encyclopedia of Philosophy.
  11. Kronecker's remark is often quoted but its precise origins are murky. It is usually attributed to a lecture or conversation around 1886. See Harold Edwards, "Kronecker's Views on the Foundations of Mathematics," in The History of Modern Mathematics, ed. David Rowe and John McCleary (Academic Press, 1989).
  12. Turing's 1936 paper "On Computable Numbers, with an Application to the Entscheidungsproblem" (Proceedings of the London Mathematical Society, series 2, vol. 42, pp. 230–265) explicitly uses a diagonal construction to prove the existence of uncomputable numbers.
  13. John Green, The Fault in Our Stars (Dutton, 2012). The character Hazel says "some infinities are bigger than other infinities," which is true, but the specific claim that there are more numbers between 0 and 2 than between 0 and 1 is not — the function f(x) = 2x is a bijection between the two intervals. Green has acknowledged the mathematical imprecision in interviews.