Contents / Mathematical Logic / Incompleteness and Independence
Chapter 7
Incompleteness and Independence
Godel's incompleteness theorems, proof theory, forcing, and independence results in set theory.
Introduction
In 1928 Hilbert asked for a formal system for mathematics that would be consistent (it proves no contradiction), complete (it decides every sentence of its language), and decidable (an algorithm tells theorems from non-theorems), together with a finitary proof that it is consistent. Gödel's two theorems of 1931 destroyed the second and fourth demands at once, and Church and Turing finished off the third.
The argument is not a paradox and not a trick. It is a calculation. Syntax — formulas, substitution, proofs — is finite combinatorics, so it can be coded by numbers; a theory that can do elementary arithmetic can therefore talk about its own syntax; and once a theory can talk about its own proofs, a fixed-point construction hands it a sentence asserting its own unprovability. Everything in this chapter is a consequence of that one loop: code the syntax, represent the coding, diagonalise.
We build the loop in order. The first two sections do the labour nobody quotes — Gödel numbering, and the representability of recursive functions in a theory as weak as Robinson arithmetic — and end with the diagonal lemma, proved. The next two sections cash it in: the first incompleteness theorem with its hypotheses stated exactly (Gödel's -consistency, Rosser's improvement to bare consistency), then the second theorem via the Hilbert–Bernays–Löb derivability conditions, and Löb's theorem, which subsumes it. Tarski's undefinability of truth is the same diagonal argument with "provable" replaced by "true", and it explains why the first two theorems could not have been repaired by better axioms. The last two sections ask what remains: Gentzen's consistency proof for and the ordinal that measures it, and independence as a general phenomenon — Goodstein's theorem and Paris–Harrington in arithmetic, the continuum hypothesis in set theory.
Notation. Throughout, is the language of arithmetic with , the successor , , and . is Robinson arithmetic and is Peano arithmetic. denotes a theory in (or one interpreting it) that is consistent and recursively axiomatised unless said otherwise. means is derivable in , and that it is not. is the standard model, and says is true of the actual natural numbers.
7.1Coding Syntax as Arithmetic
A formal proof is a finite string of finite strings of symbols. Nothing about it is infinitary, so nothing about it resists being coded by a number — the same way a text file is a number in a machine. Gödel's first move is to fix such a coding and then check, laboriously, that the syntactic relations we care about become arithmetic relations of the codes.
Definition 7.1 (Gödel numbering). Fix an injective assignment of a positive integer to each symbol of . The Gödel number of a finite string is
where is the -th prime. A finite sequence of strings is coded the same way one level up, as . A Gödel numbering is any such coding that is injective and for which the decoding operations — length, -th entry, concatenation — are primitive recursive.
Unique factorisation is what makes this work: from the number you recover the exponents, hence the symbols, hence the string. Any other effective coding would do as well, and nothing below depends on the choice; prime powers are simply the coding for which the verifications are easiest to write down.
Notation. The code is a number. To feed it to a formula of we need a term, and we use the numeral with occurrences of . We follow the standard abuse and write inside a formula when the numeral is meant.
Pitfall. The distinction between the number and the numeral looks like pedantry and is not. lives in the metatheory, where we count; is a string of symbols inside the theory. The map — the code of the numeral of — is itself a primitive recursive function, and the derivability condition (D3) in the section on the second theorem is exactly the statement that the theory knows this map. Confusing the two makes the whole subject look circular, which it is not.
Definition 7.2 (Primitive recursive relation). The primitive recursive functions are the least class containing the zero function, the successor and the projections, and closed under composition and under primitive recursion, that is, definitions of the form and . A relation is primitive recursive when its characteristic function is. Primitive recursive functions are computable, and the class is closed under bounded quantification and bounded search.
Theorem 7.3 (Arithmetisation of syntax). Let be a theory whose set of axiom codes is primitive recursive. Then each of the following relations of codes is primitive recursive:
- , , — " codes a term, a formula, a sentence";
- — the function returning the code of the result of substituting the numeral of for the variable coded by in the formula coded by ;
- — " codes a derivation in whose last line is the formula coded by ".
Proof. Sketch, with the shape of the induction given honestly. Each clause is a finite check on the decoded string, and the decoding operations are primitive recursive by unique factorisation. For : a formula is built in finitely many steps from atomic formulas, so codes a formula exactly when there exists a code of a construction sequence each of whose entries is atomic or is obtained from earlier entries by , or . The bound is crude but explicit — every entry of a construction sequence for decodes to a substring of — and bounded existential quantification keeps us inside the primitive recursive class. is a primitive recursion on the length of the formula. For : must code a sequence whose every entry is either in , or a logical axiom (a decidable syntactic pattern), or follows from two earlier entries by modus ponens — a conjunction of bounded checks on the entries of , and is primitive recursive by hypothesis. The full verification is a long but entirely mechanical list; Boolos–Jeffrey–Burgess carries it out in detail, and nothing in it is more subtle than the case above.∎
The hypothesis on is where "recursively axiomatisable" earns its keep, and it is a genuine restriction: it says the axioms can be recognised, so that a purported proof can be checked. It is satisfied by , , and every theory a mathematician actually writes down — including theories with infinitely many axioms, since an axiom scheme is recognisable by pattern. It fails, deliberately, for the theory whose axioms are all true sentences of arithmetic, and the section on Tarski's undefinability explains why that failure is unavoidable.
Definition 7.4 (The provability predicate). For as above, fix an -formula defining the proof relation and set
We abbreviate by , read " is provable in ". The consistency statement is .
Pitfall. is decidable; is not. The unbounded is the whole difficulty of the subject. Checking a proof is mechanical; searching for one is not — the search halts on theorems and runs forever otherwise. Every asymmetry in this chapter, including the fact that the two halves of the first theorem need different hypotheses, traces back to that single unbounded quantifier.
Definition 7.5 ( and formulas). A (bounded) formula is one all of whose quantifiers are bounded, of the form or . A formula is one of the form with bounded; a formula is the negation of one. A sentence asserts that a search terminates; a sentence asserts that one never does.
By the theorem above, is and is . That classification is not bookkeeping — it is what the next theorem acts on.
Theorem 7.6 ( -completeness of ). Let be a sentence. If then — and hence for every theory extending .
Proof. First, for a bounded sentence. proves every true atomic sentence and , and decides every and correctly, by an induction carried out in the metatheory on and using the recursion axioms for and and the axiom . The connectives follow at once, and a bounded quantifier is a finite disjunction over , which can assemble because it proves . So decides every bounded sentence, and decides it correctly.
Now let be true, with bounded. Then is a true bounded sentence for some witness , so by the previous paragraph, and existential generalisation gives .∎
Intuition. -completeness says a theory as weak as cannot miss a finite fact. If a proof really exists, or a computation really does halt, then the witness is a concrete number and exhibiting it is a finite calculation. No induction is needed: you are not reasoning about all numbers, only checking one. This is why incompleteness cannot be dodged by choosing a weaker theory — weakness does not protect you from what a single witness forces.
Example 7.7 (Coding a short string and a one-line derivation). Using and , compute the Gödel number of the string , and say what number codes the one-line derivation consisting of that formula alone.
Solution. The string has three symbols, with codes , so
The one-line sequence containing just this formula is coded one level up as .
Sanity check: the second number is absurdly large, and that is exactly the point. Nothing in the argument asks these numbers to be small, only that they exist and that the arithmetic relating them is primitive recursive. □
Example 7.8 (Where sits, and what that buys). Classify in the arithmetical hierarchy, and read off what its negation would force.
Solution. is , that is, : one universal quantifier over a bounded matrix, so .
Its negation is therefore , and Theorem -completeness of applies to it: if (extending ) were inconsistent, then would prove , since a concrete contradiction supplies a concrete witness. Inconsistency is always eventually detectable; it is consistency — the side — that resists certification. Every theorem in this chapter lives on that asymmetry. □
7.2Representability and the Diagonal Lemma
Coding syntax was a statement about the metatheory: we, outside, can compute with codes. Incompleteness needs more. The theory itself must be able to reason about those computations, and "able to" has a precise meaning.
Definition 7.9 (Robinson arithmetic ). is the finitely axiomatised -theory with axioms
is together with the induction scheme , one instance for each -formula (possibly with parameters).
is very weak. It does not prove , nor that is transitive; it has no induction at all. That weakness is deliberate. Everything below holds for , so incompleteness applies to every theory that interprets — which is essentially every foundational theory ever proposed, and many that were designed to be modest.
Definition 7.10 (Representability). Let . A relation is representable in if there is a formula with
A function is representable if there is a formula such that for all ,
The second clause — that proves the value is unique — is what makes a representable function usable inside a derivation.
Intuition. Definability and representability are different demands. Definability asks that a formula pick out the right set in the standard model: a fact about . Representability asks that the theory settle each instance by proof, one numeral at a time. A theory can define a relation it knows almost nothing about; it can only represent a relation whose every instance it can check. That is why representability is the property the diagonal lemma needs, and why it is available already in .
Theorem 7.11 (Representability of the recursive functions). Every recursive (total computable) function is representable in , and every recursive relation is representable in . Consequently all of , and from Theorem Arithmetisation of syntax are representable in and in every theory extending it.
Proof. Sketch; the one genuinely non-obvious ingredient is isolated as a lemma below. Argue by induction on the generation of the recursive functions. The zero function, successor and projections are represented by , and . Composition is handled by composing the representing formulas and existentially quantifying the intermediate values, the uniqueness clause carrying through. Primitive recursion and minimisation are the real work: to represent defined by recursion, one must speak inside of the finite sequence of previous values, and has no sequence variables and no exponentiation. Gödel's -function supplies the missing coding, and the rest is bookkeeping: express "there is a sequence coded by that starts correctly, obeys the recursion at each step, and has as its -th entry", and check the two clauses of representability using -completeness for the positive half and the -axioms for the negative half. For minimisation, is represented by " and for all ", which is a bounded condition once the witness is named.∎
Lemma 7.12 (Gödel's -function). Define , the remainder of on division by . Then for every finite sequence of natural numbers there exist with for all . Moreover is definable in using only and .
Proof. Let and put . The moduli for are pairwise coprime: a common prime divisor of and with would divide their difference , and (else ), so ; but , so divides , hence — a contradiction. Each satisfies , so by the Chinese remainder theorem there is with for every , and then as required. Definability is immediate: iff , which uses nothing but , and .∎
The -function is the whole reason incompleteness needs multiplication. With alone one gets Presburger arithmetic, which is consistent, complete and decidable — a standing reminder that the hypotheses of the first theorem are not decoration. Multiplication is what lets a first-order arithmetic theory encode finite sequences, and encoding finite sequences is what lets it encode proofs.
Pitfall. Presburger arithmetic is complete, and the theory of real closed fields (Tarski) is complete and decidable even though it is about an uncountable structure. Neither contradicts Gödel. Both fail the hypothesis "strong enough to represent the recursive functions": Presburger cannot multiply, and the reals cannot single out the integers. "Sufficiently strong" is a precise condition — interpreting — not a vague gesture at size.
The fixed point
Everything is now in place for the construction that generates every theorem in this chapter.
Lemma 7.13 (Diagonal lemma). Let . For every -formula with exactly one free variable there is a sentence such that
Proof. Let be the function on codes defined by
that is: given the code of a formula with one free variable, substitute the numeral of its own code for that variable and return the code of the result. Set for not coding such a formula. Substitution and the numeral map are primitive recursive by Theorem Arithmetisation of syntax, so is recursive, and by Theorem Representability of the recursive functions there is a formula representing it in ; in particular, for every ,
Now put
let , and define , i.e. . By the definition of , . Instantiating at gives
Reasoning inside : if holds, then since holds, the universal statement applied to yields . Conversely, if holds, then for any with we have and so ; that is exactly . Hence .∎
Intuition. The lemma is often glossed as " says of itself that ". Literally, says nothing about itself: it is a sentence about numbers, asserting a numerical relation between and whatever picks out. The self-reference is achieved, not assumed — it comes from the arithmetic fact that maps to the code of the very sentence built from . Self-reference here is a computed coincidence of codes, not a semantic loop, which is why it produces theorems instead of paradoxes.
Pitfall. The diagonal lemma needs no assumption about whatsoever — not that it is , not that it is a provability predicate, not that it is true of anything. Applied to " is provable" it gives a sentence asserting its own provability (Henkin's sentence, which by Löb's theorem is provable); applied to " is not provable" it gives Gödel's; applied to " is not true" it gives Tarski's. The theorem is the machine; the choice of is the input.
Example 7.15 (A sentence asserting its own refutability). Apply the diagonal lemma to , where is the recursive function sending to . What does the resulting sentence say, and what does consistency force about it?
Solution. The lemma gives with : "I am refutable".
Suppose . Then by the equivalence . That alone is not yet a contradiction — a theory can wrongly claim a proof exists — but if is -sound this claim is true, so as well, contradicting consistency. Hence .
Suppose instead . Then a proof of exists, so is a true sentence and proves it by Theorem -completeness of ; the equivalence then gives , contradicting consistency.
Sanity check: so is another independent sentence, and note the asymmetry — the first half needed soundness, the second needed only consistency. This is the same asymmetry Rosser's trick removes in the next section. □
Example 7.16 (Why representability, not definability, is the hypothesis). Where exactly would the proof of the diagonal lemma break if merely defined in rather than representing it in ?
Solution. The proof uses the displayed line inside a derivation: both directions of the final equivalence are established by reasoning in . Mere definability gives only , a fact about the standard model that may be unable to prove. We would then obtain — a semantic fixed point, enough for Tarski's undefinability theorem, which is a purely semantic result — but not the derivability we need for Gödel's theorems.
Sanity check: this matches the division of labour later in the chapter. Tarski's theorem will need only the semantic version and no assumption of recursive axiomatisability; Gödel's needs the provable version and therefore . □
7.3The First Incompleteness Theorem
Apply the diagonal lemma to . The result is a sentence with
the Gödel sentence of : "there is no proof of me in ". Both halves of incompleteness now follow, but — and this is the point most statements of the theorem blur — they do not follow from the same hypothesis.
Definition 7.17 ( -consistency and -soundness). is -consistent if there is no formula with and for every . is -sound if every sentence it proves is true in .
Every -consistent theory is consistent, and every -sound theory is -consistent; neither implication reverses.
Intuition. -inconsistency is a theory talking itself into a witness it cannot name: it proves "something has property " while refuting of , of , of , and so on forever. Such a theory is not contradictory — no single derivation exposes the clash, because exposing it would take infinitely many. It simply has no standard model: its "witness" must be a nonstandard element, sitting beyond every numeral. The extra strength Gödel needed for half of his theorem is precisely the ruling out of this situation.
Theorem 7.18 (Gödel's first incompleteness theorem). Let be a recursively axiomatised theory extending , and let be its Gödel sentence.
- If is consistent, then .
- If is -consistent, then .
Hence an -consistent, recursively axiomatised is incomplete: is neither provable nor refutable in . If in addition is sound, is true in .
Proof. (1) Suppose . Then some finite derivation exists, so for the number coding it, holds in . This is a true bounded statement, so by Theorem -completeness of , whence . But the fixed point gives , and by assumption, so . Thus proves both and its negation, so is inconsistent. Contrapositively, consistency gives . Note what this half used: only -completeness and consistency.
(2) Suppose . By the fixed point, , i.e. . Now is in particular consistent (being -consistent), so by part (1) ; therefore no number codes a proof of , so for every the bounded sentence is true, and proves each of them by -completeness. So proves together with the refutation of every numerical instance — exactly -inconsistency. Contrapositively, -consistency gives .
Truth. If is consistent then by (1) there is genuinely no -proof of ; that is precisely what asserts, so . (Consistency alone suffices for the truth claim; soundness is not needed for it, only for knowing that is consistent in the first place.)∎
Gödel's asymmetry bothered him, and Rosser removed it four years later by replacing "there is no proof of me" with a sentence that compares proofs against refutations.
Theorem 7.19 (Rosser's improvement). Let be a recursively axiomatised, consistent theory extending . Let be a fixed point, obtained from the diagonal lemma, of
so that . Then and . Consistency alone suffices; no -consistency is required.
Proof. The Rosser sentence says: "for any proof of me, some earlier proof refutes me."
Suppose , with a derivation coded by . Since is consistent, , so no codes a refutation; in particular is a true bounded sentence and proves it. Also . Instantiating the fixed point at gives , contradicting the bounded sentence just proved. So .
Suppose instead , with a derivation coded by . By the fixed point, . By consistency , so no codes a proof of ; proves the trichotomy , so split on it. For : each of the finitely many instances is true and hence provable, killing that case. For : the witness satisfies and , so the clause fails, killing that case too. Both cases are refuted in , contradicting consistency. So .∎
Remark. The bounded quantifier is the entire trick. It converts an unbounded claim about the existence of a refutation — which a theory can assert without justification — into a finite comparison of two proof codes, and finite comparisons are decided correctly by . Rosser bought bare consistency with a bounded quantifier.
Corollary 7.20 (Essential incompleteness). No consistent, recursively axiomatised theory extending is complete. In particular, adding (or ) as a new axiom does not help: the theory is again consistent, recursively axiomatised and extends , so it has its own independent sentence .
Proof. Immediate from Theorem Rosser's improvement applied to the theory in question. For the second sentence, note that has a primitive recursive axiom set (the axioms of plus one more), so the hypotheses transfer verbatim; the resulting is a different sentence, because it is built from a different provability predicate.∎
Corollary 7.21 (True arithmetic is not axiomatisable). , the set of all sentences true in the standard model, is not recursively axiomatisable, and the set of its codes is not recursively enumerable.
Proof. is consistent, complete and extends . If it were recursively axiomatisable it would contradict Corollary Essential incompleteness. For the second claim: were the set of codes recursively enumerable, it would itself serve as a recursive axiomatisation (a theory can be axiomatised by a recursively enumerable set, since one can replace it by a recursive one — Craig's trick — listing each axiom repeated as a conjunction of growing length).∎
Example 7.23 (Both and are consistent). Take , assumed consistent and sound. Show that is consistent, and describe what its models look like.
Solution. By the theorem, . A theory that does not prove is consistent with — otherwise would give by reductio. So is consistent and, by completeness, has a model .
cannot be : is true, so fails in the standard model. In there is an element satisfying , and is not any — for each concrete , refutes . So is a nonstandard element, a "proof" of infinite length.
Sanity check: the theory is consistent but not -consistent, precisely as part (2) of the theorem predicts — it asserts a witness while refuting every numeral. Consistency and having a standard model are different properties, and this example is the cleanest place to see the gap. □
Pitfall. "Gödel proved there are true statements that cannot be proved" — full stop — is not the theorem. Unprovability is always relative to a theory. is unprovable in and entirely provable in , and in , and in ordinary informal mathematics. There is no sentence that is unprovable simpliciter; every Gödel sentence is a sentence about a particular theory and dies with it.
Pitfall. Incompleteness is not a statement about "weird" self-referential sentences only. The next sections exhibit consistency statements, and then Goodstein's theorem and the Paris–Harrington principle: combinatorial statements, formulated without any reference to provability, that are independent of for exactly the reasons this section developed.
7.4The Second Incompleteness Theorem and Löb
Part (1) of the first theorem is an argument of a very particular kind: it is finitary, short, and about codes. A theory strong enough to formalise arithmetic is strong enough to formalise that argument. What comes out the other side is the second incompleteness theorem — but only if the provability predicate behaves, inside , the way provability behaves outside it. The three conditions that pin this down are due to Hilbert and Bernays and were streamlined by Löb.
Definition 7.24 (Hilbert–Bernays–Löb derivability conditions). A provability predicate satisfies the derivability conditions if for all sentences , :
- (D1) if then ;
- (D2) ;
- (D3) .
(D1) is -completeness in disguise, and holds for any . (D2) says knows that its own proofs are closed under modus ponens: given codes of proofs of and of , concatenating them and appending one line yields a proof of , and that concatenation is a provably total recursive operation. (D3) is the delicate one: must prove the formalised -completeness — that any true sentence, in particular, is provable. Verifying (D3) requires induction and so is available in but not in .
Pitfall. The second theorem, unlike the first, is intensional: it depends on how is written, not merely on which set of sentences is. Feferman exhibited a perfectly good definition of the axioms of whose associated consistency statement is provable in — it fails (D3) for the natural provability predicate. The derivability conditions are therefore part of the statement of the theorem, not background hygiene, and " cannot prove its own consistency" is shorthand for " cannot prove the consistency statement built from a provability predicate satisfying D1–D3".
Theorem 7.25 (Gödel's second incompleteness theorem). Let be recursively axiomatised with a provability predicate satisfying (D1)–(D3). If is consistent, then
Proof. The heart is the formalisation of part (1) of the first incompleteness theorem, which we do in the -calculus. Write for , so , and let be the Gödel sentence, .
Claim: . From the fixed point, is not what we want; instead argue inside as follows. By (D1) applied to the fixed point, , and (D2) gives . By (D3), . Now proves that from and one gets , using (D2) on the tautology together with (D1). Chaining these, ; contrapositively , and the fixed point turns the consequent into . This proves the claim.
Now suppose . Then modus ponens with the claim yields , contradicting part (1) of Theorem Gödel's first incompleteness theorem, which needed only the consistency of . Hence .
What is being taken on trust. Only the derivability conditions themselves, whose verification for is a long induction over the formalised proof predicate rather than a conceptual difficulty; given (D1)–(D3), the argument above is complete as written.∎
Intuition. The second theorem is the first theorem, read by the theory instead of by us. We concluded "if is consistent then is unprovable, hence true". can follow that same reasoning about itself and reach "if I am consistent then ". What cannot do is discharge the antecedent. A consistent theory understands perfectly well what its own consistency would imply; it simply has no way to establish it.
Löb arrived at a strictly more general fact while answering a question of Henkin: what happens to a sentence that asserts its own provability? The answer turned out to govern the whole -calculus.
Theorem 7.26 (Löb's theorem). Let satisfy (D1)–(D3), and let be any sentence. If
Proof. Assume . Apply the diagonal lemma to , obtaining a sentence with
From (1), , so by (D1) and (D2),
Chaining these gives , and (D3) supplies , so
Composing (2) with the hypothesis yields , which by (1) is . Then (D1) gives , and (2) gives ; the hypothesis finally yields .∎
Corollary 7.27 (Gödel II from Löb). If satisfies (D1)–(D3) and is consistent, then .
Proof. Take in Löb's theorem. Then is exactly . If , Löb gives , i.e. is inconsistent.∎
Remark. Löb's theorem answers Henkin's question at once: a sentence with satisfies , so . The self-asserting sentence is provable, while the self-denying one is independent. Read in modal terms, Löb's theorem is the axiom that distinguishes the provability logic from ordinary modal logics; Solovay's completeness theorem says proves exactly the schemes of that verifies.
Example 7.28 ( is consistent). Show this, and explain why it does not show that might be inconsistent.
Solution. By the second theorem , so as in the previous section is consistent and has a model . In there is an element that believes codes a proof of . Since is in fact consistent, no standard number does, so is nonstandard.
Why this is not alarming: the sentence is and false, and a consistent theory may perfectly well prove false sentences — it merely cannot be -sound while doing so. The model has a "proof of " of nonstandard length, which is not a proof at all in the metatheory's sense, because it has no last line reachable by finitely many steps.
Sanity check: the theory proves its own inconsistency and is consistent. That pair of facts is the sharpest possible warning that " proves " and " is true" are different properties. □
Example 7.29 (Reflection is genuinely stronger). Define and . Is this chain strictly increasing? Does it ever reach a complete theory?
Solution. Each is recursively axiomatised, extends , and is consistent (if is consistent then, being true in , so is , so the extension has a model). By the second theorem , so the inclusion is strict for every .
It never reaches completeness. The union is still recursively axiomatised — to check an axiom, find the it came from — so Corollary Essential incompleteness applies to it, and the process can be continued into the transfinite. Turing and Feferman studied exactly these iterations along ordinal notations.
Sanity check: this confirms that incompleteness is not a shortage of axioms that a determined mathematician could fix. Every effective repair is itself incomplete, and the repairs pile up along the ordinals rather than terminating. □
Pitfall. "Gödel proved we can never know whether mathematics is consistent" overstates the theorem twice. First, the theorem is about what proves, not about what we can know: is provable — in , and by Gentzen's finitary-plus- argument in the next section. Second, the limitation is self-reference, not difficulty. What no consistent theory can do is certify itself; certifying a weaker theory is routine, and that is the shape all real consistency proofs take.
7.5Tarski's Undefinability of Truth
Gödel's theorems say that provability in a theory outruns the theory. Tarski's theorem, proved with the same diagonal machine, says something sharper and purely semantic: truth in cannot even be expressed in the language of . Historically this came first in Tarski's thinking and is the cleaner statement, and it explains why incompleteness was never going to be repairable by cleverer axioms.
Definition 7.30 (Definability of a set of numbers). A set is definable in if there is an -formula with one free variable such that for every ,
A formula is a truth predicate for if for every -sentence ,
Equivalently, defines the set .
The displayed biconditional is Tarski's T-scheme, the minimal thing anyone would demand of a notion of truth: "snow is white" is true if and only if snow is white. The theorem says no formula of arithmetic can satisfy it for all of arithmetic.
Theorem 7.31 (Tarski's undefinability of truth). There is no -formula such that for every -sentence . Equivalently, is not definable in .
Proof. Suppose such a existed. The semantic form of the diagonal lemma — the version established in the second example of the section on representability, which needs only that is definable in , and no assumption about any theory — applied to yields a sentence with
But the T-scheme for gives . Combining, , which is false outright — is a structure and every sentence has exactly one truth value in it. The assumption is untenable.∎
Intuition. The sentence is the liar, "I am not true", built without any appeal to natural language. The liar in English is a puzzle because English is vague about what "true" means. Here nothing is vague: every formula of has a definite truth value in , so a formula satisfying the T-scheme would give the liar a definite truth value too, and the liar has none available. The contradiction therefore does not fall on the liar; it falls on the assumption that truth was definable. Gödel's theorem is what you get by making the same move with a predicate that is definable — provability — in which case no contradiction results and a genuine independent sentence appears instead.
Corollary 7.32 (Truth and provability come apart definably). For any consistent, recursively axiomatised , the set is definable in (indeed by a formula), while is not definable at all. Hence the two sets differ, and no recursively axiomatised theory proves all and only the truths.
Proof. Definability of the theorem set is Definition The provability predicate together with Theorem Arithmetisation of syntax; undefinability of the truth set is Tarski's theorem. Two sets one of which is definable and the other not are certainly different sets.∎
That corollary re-derives the first incompleteness theorem — in weaker form, since it gives no explicit independent sentence and needs the soundness of to know the difference goes the informative way — from a purely semantic fact. It is worth seeing the three statements in one line: is not recursively enumerable (Corollary True arithmetic is not axiomatisable), not definable (Tarski), while provability is both.
Theorem 7.33 (Partial truth predicates exist). For each there is a formula such that for every sentence , . Truth is definable level by level, but not uniformly across all levels.
Proof. Sketch. Satisfaction for bounded formulas is a recursive relation of the code and the assignment — evaluating a formula on given numbers is a terminating computation — so it is definable by a (indeed ) formula using the -function of Lemma Gödel's -function to code assignments. Prefixing alternating quantifier blocks to this base case defines -truth by a formula. The construction cannot be made uniform in : a single formula covering every level would satisfy the full T-scheme, contradicting Tarski.∎
Remark. This is the precise sense in which Tarski's theorem is a hierarchy theorem rather than a prohibition. Each level of the arithmetical hierarchy has its truth defined one level up, so the hierarchy is strict and does not collapse. Truth for the whole language sits, so to speak, at level — outside the language. Tarski's own resolution was exactly this: the truth predicate for a language belongs to a strictly richer metalanguage.
Example 7.34 (Why the liar does not break arithmetic). contains a sentence saying "I am not provable in " and no sentence saying "I am not true". Explain the difference in one sentence of mathematics, not of philosophy.
Solution. Because is an actual -formula while is not, the diagonal lemma can be applied to and cannot be applied to .
Running the argument anyway shows what the difference costs. With provability: satisfies , and both sides can be true, since genuinely fails to prove . No contradiction — we learn that is incomplete. With truth: would satisfy and the T-scheme would force to agree with , leaving no truth value. A contradiction — we learn that does not exist.
Sanity check: the asymmetry is exactly that provability, unlike truth, is a property of codes and can therefore be underdetermined without being incoherent. □
Example 7.35 (Definable but not by any single formula). Show that the set is definable, and reconcile this with Tarski's theorem.
Solution. By Theorem Partial truth predicates exist there is a formula defining -truth; conjoin it with the (recursive, hence definable) predicate " codes a sentence" to define the displayed set.
There is no tension. Tarski forbids one formula that works for every sentence of ; he permits a different formula at each syntactic level, of increasing quantifier complexity. The truth predicate for sentences is itself , hence is not a truth predicate for sentences, and so on up.
Sanity check: if these level-by-level predicates could be assembled into one, the arithmetical hierarchy would collapse to a finite level — and it does not, precisely because Tarski's theorem forbids the assembly. □
Pitfall. Undefinability of truth is not a claim that arithmetic sentences lack truth values, nor that truth is subjective, nor that is somehow incoherent. Every -sentence has a perfectly definite truth value in . What the theorem denies is that the collection of those values can be captured by a formula of the same language. It is a statement about expressive resources, not about reality.
7.6Proof Theory and Ordinal Analysis
Gödel's second theorem says a theory cannot certify itself. It does not say nothing can certify it. Gentzen proved in 1936 from a base so weak it is uncontroversially finitary, plus exactly one transfinite principle: induction up to the ordinal . Proof theory is the discipline that grew out of measuring, for each theory, how much of that principle is needed — and the measurement turns out to be an ordinal.
Definition 7.36 (Sequent calculus and the cut rule). A sequent asserts that the conjunction of implies the disjunction of . Besides axioms and one left and one right rule per connective, the calculus has the cut rule
The formula , which appears in the premises and not in the conclusion, is the cut formula: it is the formal counterpart of proving a lemma and then using it.
Theorem 7.37 (Gentzen's Hauptsatz, cut elimination). Every derivation in the sequent calculus for first-order logic can be transformed into a cut-free derivation of the same end-sequent. Consequently a cut-free derivation has the subformula property: every formula occurring in it is a subformula of the end-sequent.
Proof. Sketch of the standard double induction, with the measures named. Given a topmost cut, one pushes it upwards past the rules that introduced the cut formula, replacing a cut on or by cuts on the smaller formulas , , . The measure is the pair (degree of the cut formula, height of the derivation above the cut), ordered lexicographically, and each reduction step lowers it. Two cases are not mere bookkeeping: contraction on the cut formula forces a duplication of an entire subderivation, which is why the height can grow while the degree falls, and a cut on a quantified formula substitutes a term that may be large. Both are handled by the lexicographic ordering, since degree strictly falls in each. Iterating the reduction terminates — for propositional logic in elementary time, and in general with a tower-of-exponentials blow-up in size, which is unavoidable. The subformula property is then immediate by inspection of the remaining rules, each of which has every premise formula a subformula of its conclusion.∎
Corollary 7.38 (Consistency of pure logic). The empty sequent is not derivable in the sequent calculus for pure first-order logic.
Proof. If it were derivable, it would have a cut-free derivation by the Hauptsatz. By the subformula property, every formula in that derivation is a subformula of the end-sequent, which has none. So the derivation consists only of axioms containing no formulas at all — impossible, since every axiom contains one.∎
The same strategy applied to runs into the induction rule, which does not eliminate. Gentzen's answer was to keep the reduction procedure and attach an ordinal to every derivation, so that the procedure decreases the ordinal even when it increases the size.
Definition 7.39 (Cantor normal form and ). Every ordinal has a unique Cantor normal form
with positive integers. The exponents are strictly smaller than itself except in the degenerate case , and the ordinal is the least for which that case occurs; equivalently,
Below every ordinal therefore has a Cantor normal form whose exponents are strictly smaller than it, so the notation bottoms out and each such ordinal has a finite description: a finite tree of natural numbers. Comparison of two notations is primitive recursive.
Intuition. is countable, and in fact recursive: you can write a short program that decides which of two notations below it is larger. Nothing about it is mysteriously large in the sense of cardinality. What is large is its well-ordering strength — the assertion that there is no infinite descending sequence of notations below is a genuinely powerful combinatorial principle, and it is exactly the surplus that lacks.
Definition 7.40 (Transfinite induction up to ). , for a recursive ordinal notation system, is the scheme
one instance for each formula . Equivalently: the notations below admit no infinite strictly descending sequence.
Theorem 7.41 (Gentzen's consistency proof). , where is primitive recursive arithmetic — a finitary base theory with no unbounded quantifier induction.
Proof. Sketch; the ordinal assignment is the content and we state its properties rather than construct it. Assign to each -derivation an ordinal notation , built from the nesting of cuts and induction inferences in ; the assignment is primitive recursive. Gentzen gives a reduction procedure applying to any derivation of the empty sequent, such that again derives the empty sequent and . Suppose derived a contradiction, that is, the empty sequent; iterating the reduction from that derivation produces an infinite strictly descending sequence of notations below , contradicting . All of this — the assignment, the reduction, the checking of each step — is primitive recursive; the only non-finitary ingredient is the well-foundedness assumption itself.∎
Theorem 7.42 ( is exactly right). for every , but .
Proof. Sketch. The positive half is Gentzen's second paper: for each fixed one proves inside by an induction whose complexity grows with the height of 's notation, using ordinary induction on a formula built by the "jump" operation . The negative half follows from Theorem Gentzen's consistency proof plus Gödel's second theorem: is interpretable in , so if proved it would prove , which it does not.∎
Definition 7.43 (Proof-theoretic ordinal). The proof-theoretic ordinal of a theory is the least recursive ordinal such that , over a weak base such as , proves ; equivalently (for the theories in use) the supremum of the ordinals whose well-ordering can prove.
The two theorems above say , and this is the model for the whole subject. A selection of the known values:
| theory | proof-theoretic ordinal |
|---|---|
| , | |
| , | |
| , the Feferman–Schütte ordinal | |
| the Bachmann–Howard ordinal | |
| , the Takeuti–Feferman–Buchholz ordinal | |
| unknown; far beyond current notation systems |
Pitfall. Gentzen's proof is often dismissed as circular — "he assumed induction to prove induction". He did not. proves for every and nothing beyond, while Gentzen uses and no unbounded induction otherwise. The assumption is strictly stronger in one direction and strictly weaker in others, which is why the proof is informative rather than trivial — and why Gödel's second theorem guarantees in advance that any such proof must use something lacks.
Example 7.44 (Comparing two notations below ). Which is larger, or ? Give the general rule your answer uses.
Solution. Compare Cantor normal forms lexicographically, term by term, first on exponents and then on coefficients. The leading exponent is in both, so compare leading coefficients: . Hence is larger, and the remaining terms are irrelevant — any tail is absorbed by a larger leading term, since .
Sanity check: this is exactly the comparison a primitive recursive program performs on the finite trees coding these notations, which is what Definition Cantor normal form and claimed. The ordinals are infinite; the decision procedure is finite. □
Example 7.45 (Consistency strength is not interpretability). and are both consistent. Which has the larger proof-theoretic strength, and what does the other one show?
Solution. is strictly stronger than : it proves a sentence cannot, and its own consistency statement is again unprovable in it, so the tower continues.
is consistent but proves a false sentence, so it is not -sound and, in the ordering by true consequences, it is not an advance on at all — it is a detour into a theory with only nonstandard models. Consistency strength orders theories by what they can certify, and certifying a falsehood earns nothing.
Sanity check: this is why proof theorists measure theories by ordinals and by consequences rather than by mere consistency. Consistency alone is too coarse to tell a stronger theory from a wrong one. □
7.7Independence as a Phenomenon
Gödel sentences are engineered. The obvious objection to them — that they are logicians' artefacts, and that no statement a working mathematician would write down is independent — survived until 1977, when Paris and Harrington produced a purely combinatorial sentence about finite sets that cannot prove, and Kirby and Paris did the same for a statement about elementary number sequences. This section collects the concrete independent statements of arithmetic, then turns to set theory, where independence is the normal condition of the subject rather than an exotic incident.
Definition 7.46 (Independence). A sentence is independent of a theory if and . Equivalently, by the completeness theorem, there is a model of and a model of .
Intuition. The model-theoretic reading is the useful one. Proving independence is never a matter of searching for proofs and failing; it is a matter of building two worlds in which holds and differs. In arithmetic, the two worlds are and a nonstandard model, and the work goes into showing cannot exclude the latter. In set theory, both worlds have to be built from a given one, which is what Gödel's constructible universe and Cohen's forcing are for.
Goodstein sequences
Definition 7.47 (Hereditary base- notation and the Goodstein sequence). Write in base , then rewrite every exponent in base , and repeat until only numbers remain: this is the hereditary base- representation. For example hereditarily in base .
Let be the number obtained by replacing every occurrence of in that representation by . The Goodstein sequence starting at is
Example 7.48 (The Goodstein sequence starting at 4). Compute the first several terms.
Solution. Hereditarily in base , . Bump to base 3 and subtract one: . Hereditarily in base 3, ; bump and subtract: . Continuing,
at bases The sequence keeps climbing; it first reaches at base , a number with over a hundred million digits.
Sanity check: bumping the base multiplies by a large factor while subtracting one removes almost nothing, so growth is exactly what a first look predicts — which is why the theorem below is surprising. □
Theorem 7.50 (Goodstein's theorem). For every starting value , the Goodstein sequence reaches after finitely many steps.
Proof. Replace by throughout the hereditary base- representation of , obtaining an ordinal — every such representation is a Cantor normal form with exponents built the same way, so this is well defined. Base-bumping does not change the ordinal: replacing every by and then every by gives what replacing every by gave. Subtracting strictly decreases it, since it strictly decreases the finite data at the bottom of the normal form while leaving the higher terms alone. So is a strictly descending sequence of ordinals below . By — Definition Transfinite induction up to — no such sequence is infinite, so the process halts, and it can only halt at .∎
Theorem 7.51 (Kirby–Paris). Goodstein's theorem is not provable in (assuming consistent). Over a weak base it implies , and proves it.
Proof. Sketch of the direction that matters, resting on the previous section. The proof above is a faithful translation: Goodstein's theorem is, over , equivalent to the well-foundedness of the notations below , because the ordinal attached to ranges over all such notations as varies and the sequence of steps mirrors the descent exactly. By Theorem is exactly right, does not prove that well-foundedness; by Theorem Gentzen's consistency proof, that well-foundedness yields . So a -proof of Goodstein's theorem would give , contradicting Theorem Gödel's second incompleteness theorem.∎
Paris–Harrington
Definition 7.52 (The strengthened finite Ramsey principle). Write for the -element subsets of . The Paris–Harrington principle states: for all there is such that for every colouring of with colours there is a homogeneous set with and, additionally, — the set is relatively large.
The only difference from the finite Ramsey theorem, which proves comfortably, is the clause . That single extra demand pushes the growth rate of the least such past every function can prove total.
Theorem 7.53 (Paris–Harrington). is true in but not provable in . Over it is equivalent to the -consistency of — the statement that every sentence proves is true.
Proof. Sketch. Truth follows from the infinite Ramsey theorem by a compactness argument. For unprovability, the function is shown to dominate every -provably total function: one checks that lets one build, inside a nonstandard model, an initial segment closed under all -provably recursive functions, which is then a model of — so proves and more. The equivalence with -consistency is Paris and Harrington's original indicator-function argument.∎
Remark. Goodstein and Paris–Harrington are both statements asserting that a process terminates, and both fail in for the same underlying reason: their termination requires a well-ordering of type , and 's provably total functions are exactly those with growth rate below the level of the fast-growing hierarchy. Independence in arithmetic is, in every known natural case, a statement about growth rates.
Independence in set theory
The arithmetic examples above are all independent of and provable in — they are settled once a little set theory is allowed. Set theory itself has independent statements that no natural strengthening settles, and the first of them is the oldest open problem on Hilbert's list.
Definition 7.54 (The continuum hypothesis). is the statement : every infinite set of reals is either countable or of the same cardinality as .
Theorem 7.55 (Independence of ). If is consistent, then so are (Gödel, 1938) and (Cohen, 1963). Hence is independent of .
Proof. Sketch of the strategy only; the machinery is developed in the set-theory chapter Independence & Forcing. Both halves build a model. Gödel's half restricts: the constructible universe , obtained by iterating the definable power set along the ordinals, is an inner model of in which — indeed — holds, by a condensation argument. Cohen's half extends: starting from a countable transitive model , one adds new reals using a partial order of finite conditions whose countable chain condition guarantees no cardinal is collapsed, so the extension satisfies and fails. Note the relative form of the conclusion: neither half proves consistent — by Gödel's second theorem nothing in could — both only transport a model into another model.∎
Remark. Chapter Independence & Forcing in the set-theory subject develops all of this properly: forcing posets, dense sets, generic filters and the Rasiowa–Sikorski lemma, -names and the forcing theorem, the condensation lemma and in , cardinal preservation under ccc forcing, and the large cardinal hierarchy that measures consistency strength above . Read it for the machinery; what belongs here is only the observation that the machinery answers a question of the same kind as Gödel's — and that it, too, is a relative consistency result resting on Gödel's second theorem for its shape.
Pitfall. "Independent" does not mean "meaningless", "unknowable" or "neither true nor false". is a definite statement about the standard universe of sets, on which set theorists hold and argue for positions; it is simply not settled by the particular axiom list . Compare and Goodstein's theorem: the theorem is independent of and unambiguously true, as its two-line proof using shows. Independence is a relation between a sentence and a theory, never a property of the sentence alone.
Example 7.56 (Independence from a theory is not independence from a stronger one). List, for each of , , Goodstein's theorem and , a theory that settles it — or say that none is known.
Solution. and : both are proved in (trivially for the second, and for the first by the claim inside the proof of the second incompleteness theorem, ); both are proved in , which has a model of to hand.
Goodstein's theorem. Proved in , and in .
: no accepted theory settles it. Large cardinal axioms do not — forcing can change while preserving them — and the candidate axioms that do settle it, such as (giving ) or forcing axioms like (giving ), are exactly what is under debate.
Sanity check: the arithmetic examples climb a single ladder of consistency strength and are settled a rung or two up; does not sit on that ladder at all, since large cardinals raise consistency strength without deciding it. The two kinds of independence are genuinely different phenomena. □
- "There are true statements that cannot be proved." Only relative to a fixed theory. is unprovable in and provable in , and every concrete independent statement in this chapter is proved somewhere — usually one rung up the consistency ladder.
- Forgetting the hypotheses. Incompleteness needs consistent, recursively axiomatised, and interpreting . Drop the second and is a complete "theory"; drop the third and Presburger arithmetic and the theory of real closed fields are complete and decidable. Neither is a counterexample.
- Confusing consistency with -consistency. Gödel's original second half needed -consistency, and the gap is real: is consistent but not -consistent. Rosser's sentence is what reduces the hypothesis to bare consistency, by comparing proof codes with a bounded quantifier.
- Treating the second theorem as extensional. " cannot prove its own consistency" depends on the provability predicate satisfying (D1)–(D3). Feferman's example shows that a differently formulated consistency statement for is provable in .
- Thinking Gentzen contradicts Gödel. Gentzen proves from , a theory that is not contained in . Gödel's second theorem forbids only a proof inside , and in fact predicts that any correct proof must use exactly such extra strength.
- Reading Tarski as scepticism about truth. Undefinability says no -formula satisfies the T-scheme for all -sentences. Every arithmetic sentence still has a definite truth value, and truth is definable level by level in the arithmetical hierarchy.
- Assuming self-reference is essential. Goodstein's theorem and the Paris–Harrington principle mention no codes and no provability. They are independent of because of growth rates, and they are the standing refutation of the idea that incompleteness only touches sentences built to be awkward.
- Confusing independence with undecidability. A sentence is independent of a theory; a set (or a decision problem) is undecidable. is independent of ; the halting problem is undecidable. The two words describe different objects and the coincidence of everyday usage is unfortunate.