Logic

The sentence that says it has no proof

Number every sentence and every proof, and a formal system can talk about itself. Then the diagonal is available one more time, and what it builds is a sentence that is true exactly when it is unprovable.

Worth reading first: A list that cannot contain itself.

A formal system for arithmetic is a finite list of axioms and a mechanical rule for what counts as a proof. Gödel’s theorem is that any such system, if it is consistent and can express ordinary arithmetic, has a true sentence it cannot prove.

The diagonal, and the row built to be off the listA table of rows of ones and zeros with the diagonal marked, and beneath it the row obtained by flipping every diagonal entry.φ10110101000φ21101010000φ30011111000φ41010100000φ50001001000φ60111110000φ71110011001φ8010100000110011001neweach row is a sentence, and whether it says yes to each numbered question; the markedsquares are the diagonalthe row underneath is the sentence that answers each question the opposite way to theone asked about it — so the answers cannot all be given by a sentence on the list
Fig. 1 The table the argument needs: sentences down the side, numbered questions across, and a mark where the sentence answers yes. The row underneath answers each question the opposite way to the sentence asked about it — and it is not any of the rows, for the reason the last two essays established.

The construction is the diagonal a third time, and the reason it produces something new is a single technical step that has nothing to do with logic.

The step that makes it possible

A formal system is a system of symbols. Its sentences are strings; its proofs are lists of strings obeying rules; and none of that is arithmetic. So a system about numbers cannot obviously say anything about itself.

Arithmetisation removes that obstacle. Assign a number to every symbol, then to every string, then to every list of strings, in a way that can be decoded — Gödel used products of prime powers, and any injective encoding does. Now every sentence has a number, every proof has a number, and the relation

the list with number pp is a proof of the sentence with number ss

is a relation between two whole numbers. Crucially, it is a checkable one: given pp and ss, decoding and verifying each step is a finite mechanical procedure with no judgement in it.

And a checkable relation between whole numbers is expressible in arithmetic. That is the hard technical content of the theorem — showing that the syntactic notion of proof can be written as an arithmetic formula — and it is where nearly all of Gödel’s 1931 paper goes. Once it is done, the system can state facts about its own proofs, because those facts are now facts about numbers, and the system is about numbers.

That is the whole of what makes the theorem possible. A system rich enough to describe checkable relations between numbers is rich enough to describe itself.

The table, and the diagonal on it

With arithmetisation in hand, lay out a table.

Rows are sentences with one free variable — properties of numbers, in effect. Columns are numbers. The entry at row FF, column nn records whether the system proves F(n)F(n).

The rows and the columns are now indexed by the same thing, because every row is a sentence and every sentence has a number. That is exactly the arrangement Russell’s table had and Cantor’s did not, and it is the arrangement in which the diagonal produces something that has to be a row and cannot be.

Read the diagonal: for each sentence FF, does the system prove FF applied to FF’s own number? Now build a sentence GG that says, of each FF, the opposite of what the diagonal says. Since GG is itself a sentence with a number, ask what GG says about itself.

It says: this sentence is not provable.

The diagonal, and the row built to be off the listA table of rows of ones and zeros with the diagonal marked, and beneath it the row obtained by flipping every diagonal entry.φ1011010100000φ2110101000001φ3001111100001φ4101010000010φ5000100100011φ6011111000011100110neweach row is a sentence, and whether it says yes to each numbered question; the markedsquares are the diagonalthe row underneath is the sentence that answers each question the opposite way to theone asked about it — so the answers cannot all be given by a sentence on the list
Fig. 2 A wider window on the provability table. The construction does not depend on the size or on what the rows actually say — it depends only on the rows and columns being indexed by the same thing, so that a row can be asked about itself.

Why that finishes the argument

Suppose the system proves GG. Then GG is provable. But GG says it is not provable, so the system has proved something false — and a system that proves a false arithmetic statement proves everything, which is inconsistency.

Suppose instead the system disproves GG, that is, proves ¬G¬G. Then the system proves GG is provable”. If the system is consistent and its proofs are checkable, that in turn means a proof of GG exists, so the system proves both GG and ¬G¬G — inconsistent again.

So a consistent system neither proves GG nor disproves it. And GG says it is unprovable, which — given that the system is consistent, and therefore does not prove it — is true.

There is a true sentence of arithmetic that the system does not prove.

The fixed-point lemma, which is the reusable part

The sentence GG looks like a trick and it is an instance of a general fact worth stating on its own, because it is what the rest of the subject actually uses.

Fixed-point lemma. For any property PP expressible in the system, there is a sentence SS such that the system proves SP(nS)S \leftrightarrow P(n_S), where nSn_S is SS’s own number.

In words: for any nameable property of sentences, there is a sentence asserting that it has that property. Take PP to be is not provable and SS is Gödel’s GG. Take PP to be is provable and SS is Henkin’s sentence, which asserts its own provability and — for reasons that took until 1955 to settle — is provable. Take PP to be is false and out comes the liar sentence, which is where the whole family comes from and which shows that truth cannot be one of the properties expressible in the system, on pain of contradiction.

That last one is Tarski’s theorem and it is a genuine bonus. Provability is expressible — it is a checkable relation on numbers — and truth is not, and the liar sentence is the proof: if truth were expressible, the fixed-point lemma would hand over a sentence asserting its own falsity, and there is no consistent answer.

So the same construction, pointed at three different properties, gives incompleteness, a curiosity, and the inexpressibility of truth. The construction is the object worth having; GG is one of its outputs.

Does this set contain that one — and the row that is missingA membership table with the diagonal marked, and beneath it the complement of the diagonal, which is not among the rows.S1S2S3S4S5S6S1S2S3S4S5S6Rthe sets that do not contain themselvesrow i, column j is marked when set i contains set j — the diagonal asks whether a set containsitselfthe row beneath is the complement of the diagonal, and it is not one of the rows above it
Fig. 3 The same arrangement stripped of interpretation: a table whose rows and columns are the same objects, its diagonal, and the row built to disagree with the diagonal everywhere. Whether this produces a discovery, a contradiction or an unprovable sentence depends entirely on what the rows are taken to be.

The three things it does not say

The theorem is misquoted more than any other in mathematics, and the misquotations are all weakenings or wild overstatements of the same thing.

It does not say there are unknowable truths. GG is not mysterious. It is a specific sentence, it is true, and the argument above is a proof that it is true. What the argument uses is an assumption — that the system is consistent — which is not available inside the system. Step outside, assume consistency, and GG is settled. Nothing is beyond knowledge; something is beyond a particular system.

It does not say mathematics is uncertain or incomplete in an everyday sense. No theorem anybody cares about was thrown into doubt in 1931 and none has been since. What was refuted is a specific programme — Hilbert’s proposal to establish, by finite means, that a formal system for all of mathematics is complete and consistent — and the refutation is of the programme rather than of the mathematics.

It does not apply to every formal system. A system too weak to express arithmetic can be complete. The theory of the real numbers as an ordered field is complete and decidable, by Tarski’s theorem; so is Presburger arithmetic, which has addition and not multiplication. The hypothesis “can express arithmetic” is doing real work, and dropping it changes everything.

That third point is worth an extra sentence because it is the one that makes the theorem informative rather than merely grim. Multiplication is where it starts. Addition alone is safe; addition with multiplication is not. Something about the interaction of the two operations supplies enough expressive power for a system to encode its own syntax, and that is a surprisingly sharp boundary for such a sweeping-sounding result.

The second theorem, which is worse

Gödel’s second theorem takes the same construction one step further, and it is the one that ended Hilbert’s programme.

The whole argument above — if the system is consistent, then GG is unprovable — is itself a piece of finite reasoning, and it can be arithmetised like everything else. So the system can prove the sentence asserting if this system is consistent, then GG.

Now suppose the system could prove its own consistency. Then it could prove the antecedent, hence prove GG, which the first theorem says it cannot. So it cannot prove its own consistency.

No consistent system that can express arithmetic can prove itself consistent.

That is why the consistency results this field does have are all relative — this system is consistent if that one is, as with the disc that settles the parallel postulate. There is no bottom to the chain and there is not going to be one. Gentzen proved arithmetic consistent in 1936, by an argument using induction up to a particular infinite ordinal; the proof is correct and it uses a principle arithmetic itself cannot justify, which is exactly what the second theorem says it must.

What “consistent” is doing in the statement

Every version of the theorem carries the hypothesis if the system is consistent, and it is not a formality.

An inconsistent system proves everything, including GG and ¬G¬G, so it is complete in the literal sense of leaving no sentence undecided. Completeness on its own is therefore worthless — it is trivially available, at the cost of being worthless in every other way — and what the theorem says is that completeness and consistency cannot both be had, not that completeness is unattainable.

That framing is worth adopting because it makes the result a trade rather than a defeat. A system may be consistent and incomplete, which is the ordinary situation and is what arithmetic is; or complete and inconsistent, which is useless; or too weak to express arithmetic, in which case both are available and the system cannot say much. Three options, and mathematics picked the first without much difficulty.

The original 1931 paper needed a slightly stronger hypothesis than consistency — Gödel called it ω-consistency — for the second half of the argument. Rosser removed it in 1936 with a cleverer sentence, one that says for every proof of me there is a shorter proof of my negation, and plain consistency suffices for that. The improvement is technical and is worth a mention only because it is the kind of detail that gets flattened out of popular accounts, and because it shows the theorem was sharpened rather than merely repeated.

What a proof system can and cannot be

A tableau for (p → q) → ((q → r) → (p → r))A branching tree of formulas, each branch ending in a contradiction or in a description of a counterexample.¬((p → q) → ((q → r) → (p → r)))p → q¬((q → r) → (p → r))¬pq → r¬(p → r)¬qp¬r×rp¬r×qq → r¬(p → r)¬q×rp¬r×assume the formula false, then take it apart: (p → q) → ((q → r) → (p → r))every branch closes, so the assumption is impossible — the formula is valid
Fig. 4 A propositional tableau, which always finishes and always decides. Nothing like Gödel’s theorem applies here — propositional logic is complete, decidable, and provably consistent — and the reason is that it cannot express arithmetic.

It is worth putting the levels side by side, because the theorem is often heard as applying to logic generally, and it does not.

Propositional logic is complete and decidable. Every valid formula has a proof, every tableau finishes, and the truth table settles anything.

First-order logic is complete — Gödel proved that too, in 1929, and it is a different theorem with a confusingly similar name. Every logically valid sentence has a proof. What is lost is decidability: there is no procedure that always halts and reports whether a sentence is valid.

First-order arithmetic, meaning logic plus axioms for the numbers, is where incompleteness bites. Here valid and provable still coincide for pure logic, but the axioms fail to pin down the numbers, and true-in-the-numbers is strictly more than provable-from-the-axioms.

Those are three different situations and the third is the only one the incompleteness theorem is about. The distinction between the completeness theorem and the incompleteness theorem — same author, two years apart — is that the first is about logical consequence and the second is about a particular subject matter.

A tableau for ((p ∨ q) ∧ ¬p) → qA branching tree of formulas, each branch ending in a contradiction or in a description of a counterexample.¬(((p ∨ q) ∧ ¬p) → q)(p ∨ q) ∧ ¬p¬qp ∨ q¬pp×q×assume the formula false, then take it apart: ((p ∨ q) ∧ ¬p) → qevery branch closes, so the assumption is impossible — the formula is valid
Fig. 5 Another finite, finished proof. The contrast worth holding: at this level every question has an answer and the answer is reachable by a procedure that stops. One step up in expressive power, neither of those survives.

Why the picture is a table and not a proof

This is the one essay in this field whose figures cannot be the argument, and it is worth saying so plainly rather than pretending otherwise.

The tables above show the arrangement — rows and columns indexed by the same thing, a diagonal, a constructed row that cannot be one of the rows. That arrangement is genuinely what the proof uses, and the figures assert it on the instance they draw: the built row differs from row nn at column nn, checked for every drawn row.

What they cannot show is that the arrangement is available for a formal system, which is the arithmetisation step and which is a page of careful encoding rather than a picture. Nor can they show that the constructed sentence is expressible in the system’s own language, which is the other half.

So the honest description is: the figures show the shape of the argument, on a finite table where the shape can be checked, and the two facts that make the shape apply to arithmetic are not drawable and are stated. That is a weaker claim than this collection usually makes, and making it is better than drawing something suggestive and letting it look like more.

The truth table of p ↔ ¬pA grid with one row per assignment of truth values, and the value of the formula beside it.pp ↔ ¬pFFTFp ↔ ¬p — 2 assignments, 0 of them satisfyingfalse in every row: the formula is unsatisfiable
Fig. 6 The liar sentence, as far as a truth table can take it: a formula asserting its own negation, false in every row. In propositional logic that is merely an unsatisfiable formula and nothing follows. What makes the same shape dangerous one level up is that a system able to express its own syntax can build a sentence standing in that relation to itself, rather than merely a formula about a letter.

The figure is the right place to see how little the propositional case has to say. p¬pp \leftrightarrow ¬p is a formula with a variable in it, and the variable can simply be given a value; both values fail, and the formula is unsatisfiable, and that is the end of the matter. There is no paradox because there is no self-reference — pp does not denote this formula, it denotes a truth value.

Everything Gödel’s construction adds is the machinery for making pp denote the formula it occurs in. That machinery is arithmetisation plus the fixed-point lemma, and once it exists, an unsatisfiable formula becomes a sentence with a truth value that the system cannot reach.

A tableau for (p → (q → r)) → ((p → q) → (p → r))A branching tree of formulas, each branch ending in a contradiction or in a description of a counterexample.¬((p → (q → r)) → ((p → q) → (p → r)))p → (q → r)¬((p → q) → (p → r))¬pp → q¬(p → r)¬pp¬r×qp¬r×q → rp → q¬(p → r)¬q¬pp¬r×q×r¬pp¬r×qp¬r×assume the formula false, then take it apart: (p → (q → r)) → ((p → q) → (p → r))every branch closes, so the assumption is impossible — the formula is valid
Fig. 7 One of the standard axioms of propositional logic, proved by a method that does not have it as an axiom. At this level a proof system can be checked against something outside itself; the whole of Gödel’s result is that arithmetic has no such outside available from inside.

What is actually independent

A reader who has followed the argument may reasonably feel that GG is a contrivance — a sentence built to defeat the system, of no interest in itself. That was the standard reaction for forty years and it turned out to be wrong.

There are natural statements — about ordinary finite combinatorics, of the kind somebody might have asked without ever hearing of this subject — that are true and not provable in arithmetic. The Paris–Harrington theorem of 1977 is a strengthening of Ramsey’s theorem of exactly that kind, and Goodstein’s theorem is another: a statement about sequences of whole numbers, provable using infinite ordinals and not provable without them.

That changes the character of the result. Incompleteness is not a curiosity confined to self-referential sentences; it reaches statements nobody constructed for the purpose. The next essay is one of them, and it is drawable in a way this one is not.

The boundary this essay stays inside

There is a second reading of everything above, in which the system is a machine, the sentences are programs, and the unprovable statement is a question no procedure answers. That reading is real, it is due to Turing five years later, and it is a different subject with a different rule — its claims are about what can be computed and at what cost, measured on a named machine.

This field takes only what it needs of it, which is nothing: the argument above is about provability in a formal system, and every step of it is a statement about sentences and derivations rather than about procedures. The two subjects share a diagonal and share very little else, and it is worth keeping the shared move separate from the two conclusions it produces.

What links here

Computed from the collection, not written here: the essays that point at this one.

Reads more easily once this is understood

Essays that name this one as worth reading first.

Named objects

A dashed tag is an object no other essay names yet.

ArithmetisationConsistencyDiagonal argumentFixed pointFormal systemIncompletenessProvabilitySelf referenceUndecidable sentence