Chapter I
Hilbert's Programme
The paradoxes of set theory raised a frightening possibility: that mathematics itself might be inconsistent, a contradiction waiting to be derived. David Hilbert proposed a way to settle the matter for good. Write all of mathematics in a formal system, as Principia Mathematica had begun to do. Then treat that system as a mathematical object, a game with finitely many rules on strings of symbols, and prove with the simplest, most indubitable reasoning that the game can never produce a contradiction. He also wanted a mechanical procedure to decide the truth of any mathematical statement, the Entscheidungsproblem.
Not everyone accepted the premise. L. E. J. Brouwer, whose fixed-point theorem helped found algebraic topology, had turned against classical mathematics. His intuitionism accepted only what could be constructed, and denied that every statement about an infinite collection must be either true or false. The dispute turned personal. In 1928 Hilbert, gravely ill and fearing for the future of mathematics, had Brouwer removed from the editorial board of the leading journal.
Chapter II
Gödel
The answer came from a quiet 25-year-old in Vienna. In 1931 Kurt Gödel showed how to encode formulas and proofs as numbers, so that statements about provability become statements of arithmetic. Then he built a statement that says, in effect, "this statement is not provable". If the system is consistent, the statement is true and unprovable. Any consistent formal system rich enough for arithmetic is therefore incomplete. A second theorem followed: such a system cannot prove its own consistency. Hilbert's central goal, a finitary proof that mathematics is safe, was impossible.
It was not the end of the programme but a change of question. In 1936 Gerhard Gentzen proved arithmetic consistent after all, by assuming a principle of transfinite induction arithmetic cannot prove. Four decades later, Jeff Paris and Leo Harrington found a natural statement about colouring finite sets that is true but unprovable in ordinary arithmetic. Incompleteness reached everyday mathematics.
Chapter III
A Closer Look: How a Sentence Can Talk About Itself
Gödel's first incompleteness theorem rests on building an arithmetic statement that says "I am not provable". Here is the idea in four steps.
Numbering. Give every symbol a code number, and encode any string of symbols as a single number, for example as a product of primes with the codes as exponents. Formulas, and whole proofs, become numbers.
Proof as arithmetic. Checking whether a sequence of formulas is a valid proof is mechanical: each line must be an axiom or follow from earlier lines by a rule. So " is the code of a proof of the formula with code " can be expressed as an ordinary, if enormous, arithmetic relation between and . Then "the formula with code is provable", written , is a formula of arithmetic.
Self-reference. A diagonal construction, like Cantor's, produces a sentence with
where is 's own code number. asserts its own unprovability. (The philosopher W. V. O. Quine gave an everyday analogue: "yields falsehood when preceded by its quotation" yields falsehood when preceded by its quotation.)
The trap. If the system proved , it would prove a statement asserting that is unprovable, which is false. A consistent system cannot do that. So if the system is consistent, is unprovable, and since that is exactly what says, is true. A true, unprovable sentence.
The second theorem follows by formalising this very argument inside the system: "if I am consistent, then " is provable. If the system could also prove its own consistency, it would prove , which is impossible. Adding as a new axiom does not help, because the stronger system has its own Gödel sentence. Incompleteness cannot be patched.
Chapter IV
Proofs by Machine
Gödel's encoding of proofs as numbers had a second consequence: checking a proof is a mechanical operation. Within five years that insight became the theory of computation. About seventy years later it became practical. Proof assistants now check proofs down to the axioms. Georges Gonthier formalised the four colour theorem in 2005, and in 2022 a Lean collaboration verified a new theorem that Peter Scholze himself had doubts about. Hilbert's hope of certainty from inside failed, but his idea of mechanically checkable proof has become everyday practice.