Chapter I
Sizes of Infinity
Set theory grew out of real analysis. Studying where a Fourier series could misbehave, Georg Cantor was led in the 1870s to think about infinite sets of points as objects in their own right, and to ask how big they are. His answer was to compare sets by pairing their elements. The even numbers pair perfectly with all whole numbers (, , …), so they are the same size, even though one is a part of the other. So are the fractions, which can be listed cleverly.
But the real numbers cannot. In 1891 Cantor gave the diagonal argument. Take any list of real numbers and build a new one that differs from the first in its first digit, from the second in its second, and so on. It cannot be on the list. There are strictly more real numbers than whole numbers, and the same idea shows there is no largest infinity at all. Leopold Kronecker is said to have called Cantor a "corrupter of youth", while Hilbert declared that "no one shall expel us from the paradise that Cantor has created."
Chapter II
Paradise Lost
Cantor asked the natural next question: is there any infinity between the whole numbers and the real numbers? He conjectured not, the continuum hypothesis, and could not prove it.
Worse was coming. Frege and others had assumed that any property defines a set, the set of things having it. In 1902 Bertrand Russell wrote to Frege about the set of all sets that do not contain themselves. If it contains itself, it does not, and if it does not, it does. Frege, whose second volume was at the printer, added an appendix admitting that the foundation of his work had collapsed. Ernst Zermelo had found the same paradox in Göttingen and not published it.
Chapter III
Axioms and a Feud
Zermelo's response was to replace "any property defines a set" with careful axioms saying which sets exist. In 1904 he made explicit a principle mathematicians had used without noticing: the axiom of choice, that one can always pick an element from each of any collection of non-empty sets. The French analysts Borel, Baire and Lebesgue attacked it for asserting the existence of objects nobody could construct, and when Banach and Tarski later used it to cut a ball into finitely many pieces and reassemble them into two balls of the same size, the objection seemed vindicated. The axiom stayed because too much of mathematics needs it. With Abraham Fraenkel's refinements, Zermelo's system became ZFC, the standard foundation of mathematics today.
Chapter IV
A Closer Look: Listing the Fractions, and Failing to List the Reals
It seems obvious that there are more fractions than whole numbers: between any two whole numbers lie infinitely many fractions. Cantor showed it is false. Arrange all positive fractions in a grid, numerator along the rows and denominator along the columns, and walk it diagonal by diagonal:
Skip any fraction already seen in lower terms (like ), and every positive fraction receives a position in one list. So the fractions are countable: exactly as numerous as the whole numbers.
The real numbers are different. Suppose someone claims to list every infinite sequence of 0s and 1s (each real number between 0 and 1 has a binary expansion):
| position | sequence |
|---|---|
| 1 | 0 1 1 0 1 … |
| 2 | 1 1 0 0 1 … |
| 3 | 0 0 0 1 1 … |
| 4 | 1 0 1 1 0 … |
Read down the diagonal (0, 1, 0, 1, …) and flip every digit to get . This new sequence differs from the first entry in position 1, from the second in position 2, from the th in position . It is on no line of the list. Every attempted list misses something, so the reals are uncountable, a strictly larger infinity.
The same diagonal trick, turned on sets and their subsets, proves there is no largest infinity. Turned on formulas and proofs, it gives Gödel's incompleteness theorem. Turned on programs, it gives the unsolvability of the halting problem. Few arguments in mathematics have travelled further.
Chapter V
A Question Without an Answer
Hilbert put the continuum hypothesis first on his 1900 list of problems. The answer came in two halves. In 1938 Kurt Gödel showed it cannot be disproved from ZFC. In 1963 Paul Cohen, an analyst new to logic, invented forcing, a method for building new models of set theory, and showed it cannot be proved either. The most natural question about infinity is independent of the axioms, just as the parallel postulate was independent of Euclid's others. Whether it nonetheless has a true answer is argued to this day. Meanwhile the effort to secure mathematics from paradox led to metamathematics, and to Gödel's discovery of limits no foundation can escape.