Gödel, Rosser, and Incompleteness

How arithmetic represents proofs, how diagonalization produces an undecidable sentence, and what the two incompleteness theorems establish.

Modern logic · Part 8Historical questions · mathematical ideas

Why can effective arithmetic fail to decide a sentence without being inconsistent?

Explain Rosser's bounded proof-code comparison and distinguish incompleteness, reflection, and the independence of Goodstein's theorem.

Selected landmarksSeries timeline ↗

Sufficiently strong, effectively axiomatized arithmetic theories face limits on completeness and internal consistency proofs under the relevant hypotheses.

Source: Gödel's Incompleteness Theorems

The completeness theorem establishes that first-order proof rules can capture semantic consequence. Every sentence true in all models of a theory is derivable from its axioms. It does not establish that the axioms decide every sentence.

Gödel's 1931 incompleteness theorem concerns that second question. Under suitable hypotheses, a theory of arithmetic cannot prove or refute every sentence in its language. Its strength is part of the reason: arithmetic can represent enough of the operations on expressions to make statements about formal proofs.

Portrait of Kurt Gödel around 1926
Kurt Gödel (1906–1978) Completeness, incompleteness, and effective axiomatization.
Sources and credit for Kurt Gödel

Unknown photographer, circa 1926, public domain, via Wikimedia Commons Image source · Public domain · Biographical dates

The argument is not a paradox caused by using an ambiguous sentence. It constructs an ordinary arithmetical formula by explicit syntactic methods.

Which theories are covered?

A standard modern formulation says that every consistent, computably enumerable first-order theory extending Robinson arithmetic QQ is incomplete. This is one precise sufficient arithmetic-strength condition; more general formulations use interpretations of arithmetic in other theories.

Each qualification matters.

The theory must be consistent: it cannot derive a contradiction. Its axioms must be effectively enumerable, so there is a mechanical way to generate them. And it must express enough arithmetic to represent the elementary computations used in coding syntax.

Peano arithmetic is a familiar example of the relevant strength. Very weak logical theories need not meet the arithmetic condition. The theory of the natural numbers with addition alone, studied by Presburger, is decidable and complete.

The complete theory Th⁡(N)\operatorname{Th}(\mathbb N), consisting of every first-order truth about the standard natural numbers, is also a useful comparison. It is complete by definition. It escapes the theorem because its axioms cannot be effectively enumerated.

The incompleteness result therefore concerns a particular combination of effectiveness, consistency, and expressive strength. Removing the hypotheses changes the question.

Encoding expressions by numbers

A finite alphabet can be assigned positive integer codes. A finite sequence of codes

a0,a1,…,aka_0,a_1,\ldots,a_k

can then be encoded, for example, by

2a03a1⋯pkak,2^{a_0}3^{a_1}\cdots p_k^{a_k},

where pkp_k is the corresponding prime. The exact coding is unimportant provided the relevant operations can be carried out effectively.

Formulas and proofs are finite arrangements of symbols, so they can receive numerical codes. Questions such as “Is this a well-formed formula?” and “Does this line follow from these earlier lines by a specified rule?” become questions about natural numbers.

For a suitably presented theory TT, one obtains a relation

Proof⁡T(p,n)\operatorname{Proof}_T(p,n)

meaning that pp codes a proof in TT of the formula coded by nn.

If the axioms are only computably enumerable rather than immediately decidable, proof certificates can include evidence of the stage at which an axiom was enumerated. The relation used for checking these enriched finite certificates can still be made effective in the required manner.

The key step is representability: the relevant coding relations can themselves be expressed by formulas of arithmetic. Arithmetic can consequently talk about proofs without introducing a new primitive object called “a proof.”

Provability is an arithmetical predicate

Define

Prov⁡T(n)≡∃p Proof⁡T(p,n).\operatorname{Prov}_T(n) \quad\equiv\quad \exists p\,\operatorname{Proof}_T(p,n).

This expresses that a proof of the sentence with code nn exists. The quantifier ranges over numbers; the numbers are being interpreted as possible codes.

The predicate is not an unrestricted truth predicate. It concerns whether a finite derivation exists in one specified formal system. A sentence can be true in the standard natural numbers without being provable in that system.

It is also necessary to distinguish an external statement that TT proves AA from the internal arithmetical formula saying that AA is provable. The relation between them depends on the chosen coding and on the arithmetic available in TT.

Confusing those levels can make the incompleteness argument look either trivial or contradictory. Its force comes from carefully connecting them, not from treating them as the same relation.

How the diagonal lemma produces self-reference

Let F(x)F(x) be a formula with one free numerical variable. The diagonal lemma produces a sentence GG such that an appropriate arithmetic proves

G↔F(⌜G⌝),G\leftrightarrow F(\ulcorner G\urcorner),

where ⌜G⌝\ulcorner G\urcorner is a numeral for the code of GG.

The mechanism is syntactic substitution. There is an effective function that takes the code of a one-variable formula and returns the code of the sentence obtained by substituting the formula's own code into its free position.

Using a formula representing that substitution function, define a new formula that applies FF to the result of self-substitution. Substitute the code of this new formula into itself. The resulting sentence is GG. The representability of substitution proves that its argument is exactly the code of GG.

This sketch omits the bookkeeping needed to express the coding function in the chosen arithmetic, but identifies the mathematical operation that makes the construction work. It is not an appeal to an English sentence mysteriously able to refer to itself.

Taking

F(x)≡¬Prov⁡T(x)F(x)\equiv\neg\operatorname{Prov}_T(x)

gives a Gödel sentence satisfying

T⊢G↔¬Prov⁡T(⌜G⌝).T\vdash G\leftrightarrow \neg\operatorname{Prov}_T(\ulcorner G\urcorner).

The sentence has been built to express its own unprovability in TT.

Why the Gödel sentence cannot be proved

Suppose TT proved GG. There would then be a particular finite proof, with a particular numerical code pp.

The elementary arithmetic of proof checking allows TT to verify that this code is a proof of GG, and hence to prove

Prov⁡T(⌜G⌝).\operatorname{Prov}_T(\ulcorner G\urcorner).

But the fixed-point equivalence and the assumed proof of GG also give

¬Prov⁡T(⌜G⌝).\neg\operatorname{Prov}_T(\ulcorner G\urcorner).

Thus TT would be inconsistent. Under consistency, GG is not provable.

In the standard natural-number interpretation of the coding, this means that no actual finite proof of GG exists. To conclude that GG is true, one more point matters: the fixed-point equivalence can already be proved in QQ, whose axioms are true in N\mathbb N. That equivalence therefore holds in N\mathbb N, even if the larger theory TT has false arithmetical theorems. Since Prov⁡T(⌜G⌝)\operatorname{Prov}_T(\ulcorner G\urcorner) is false there, GG is true. We used the soundness of the elementary base and the consistency of TT, not an inference from consistency to soundness. See Avigad's fixed-point construction and incompleteness proof, sections 4.5–4.6.

The statement that GG is true but unprovable should not replace the proof. The important content lies in effectiveness, representability, and the carefully specified provability predicate.

Why Rosser's refinement matters

Showing that TT cannot prove GG is not yet enough to show that GG is undecidable in TT. One must also exclude a proof of ¬G\neg G.

Gödel's original argument used omega-consistency. Informally, omega-consistency excludes a theory that proves an existential numerical assertion while proving, for each standard numeral separately, that it is not a witness.

In the present setting, a proof of ¬G\neg G would yield the assertion that some proof of GG exists. Yet consistency allows the theory to reject each particular standard number as such a proof. Omega-consistency rules out this combination.

In 1936, J. Barkley Rosser modified the self-referential sentence so that ordinary consistency suffices. His construction compares proofs of a sentence with proofs of its negation with sufficiently small numerical codes. The finite comparison provides leverage in both directions without requiring Gödel's stronger original hypothesis.

It is therefore appropriate to distinguish “Gödel's 1931 theorem” from the common modern formulation using only consistency. The latter incorporates Rosser's refinement.

Rosser's comparison, in both directions

The comparison can be made explicit. To keep the internal arithmetic straightforward, take a consistent computably enumerable extension TT of PA with an ordinary decidable proof-certificate relation. The fixed-point lemma produces a sentence RR satisfying

T⊢R↔∀p(Proof⁡T(p,⌜R⌝)→∃q≤p Proof⁡T(q,⌜¬R⌝)).T\vdash R\leftrightarrow \forall p\Bigl(\operatorname{Proof}_T(p,\ulcorner R\urcorner) \to\exists q\leq p\,\operatorname{Proof}_T(q,\ulcorner\neg R\urcorner)\Bigr).

It says that every proof of RR has a proof of ¬R\neg R with no larger code. The ordering is on numerical codes, not on the number of lines in a derivation.

Suppose TT proved RR with code p0p_0. Consistency excludes any proof of ¬R\neg R. In particular, each of the finitely many codes q≤p0q\leq p_0 fails its proof check. The theory can verify those finite calculations and also verify that p0p_0 proves RR. It therefore proves the failure of the displayed condition, hence ¬R\neg R: a contradiction.

Now suppose TT proved ¬R\neg R with code q0q_0. Consistency excludes a proof of RR. For each p<q0p<q_0, the theory can verify that pp is not a proof of RR; these are finitely many checks. For every p≥q0p\geq q_0, the known proof code q0q_0 supplies the witness demanded by the conditional. Combining the bounded and unbounded cases, TT proves the displayed universal condition and thus RR: again a contradiction.

Both directions use consistency plus finite verifications. The second direction avoids having to infer an external witness from an arbitrary existential theorem of TT. That is the mechanism behind Rosser's improvement. The same central result can be obtained over substantially weaker arithmetical bases; the PA setting here makes the comparison easy to follow. See Rosser's 1936 paper for the original refinement.

The second incompleteness theorem

The second theorem concerns the internal statement

Con⁡(T)≡¬Prov⁡T(⌜0=1⌝).\operatorname{Con}(T) \quad\equiv\quad \neg\operatorname{Prov}_T(\ulcorner 0=1\urcorner).

For an appropriately strong, consistent, effectively axiomatized theory equipped with its standard provability predicate, TT does not prove this sentence.

The argument requires more than the first theorem's informal interpretation. The theory must be able to formalize enough reasoning about its own proofs. Standard derivability conditions describe how the provability predicate interacts with theorems, implication, and iterated provability.

For example, it must support an internal version of the fact that proofs of A→BA\to B and AA can be combined into a proof of BB. Later work by Hilbert, Bernays, and Löb clarified this internal analysis.

Under the standard conditions, the theory can formalize the reasoning that its own consistency implies the unprovability represented by the Gödel sentence. If TT proved its consistency, it would consequently prove a sentence excluded by the first theorem.

The reference to the standard consistency statement matters. An arbitrary formula labeled “consistency” need not express the same property, and unusual provability predicates require separate analysis.

What this means for Hilbert's program

If a proposed finitary consistency proof can be formalized inside TT, then it would give an internal proof of Con⁡(T)\operatorname{Con}(T). The second theorem shows why this is impossible under the relevant hypotheses.

The conclusion does not exclude relative consistency proofs. A stronger theory may prove that a weaker theory is consistent. Gentzen's analysis of arithmetic, for example, makes the strength of a transfinite-induction principle explicit.

Nor does the theorem say that every mathematical question is undecidable in every theory. Particular problems may be settled by existing axioms. Some theories are complete. Others become stronger when new axioms are added, although any resulting effective theory satisfying the hypotheses again has undecidable sentences.

Incompleteness therefore creates a continuing question about the choice and justification of principles. It does not identify one final axiom whose addition completes all effective arithmetic.

From self-reference to ordinary-looking mathematics

The first incompleteness argument constructs a sentence by coding proofs. Later independence results showed that limitations of PA also arise in statements formulated as concrete combinatorics or numerical processes.

A Goodstein sequence begins by expressing a natural number in hereditary base notation: the base is used again in the exponents, and recursively in their exponents. Increase every occurrence of the base by one, then subtract one. Repeat with successively larger bases until zero is reached.

For example, 4=224=2^2 becomes 33−1=263^3-1=26. Expressing 26=2⋅32+2⋅3+226=2\cdot3^2+2\cdot3+2 in hereditary base 33 and changing to base 44 gives 2⋅42+2⋅4+2−1=412\cdot4^2+2\cdot4+2-1=41. The numerical values can grow even though the process eventually terminates.

The termination argument associates to each hereditary expression an ordinal by replacing the base with ω\omega. A base change leaves the associated ordinal unchanged; subtracting one strictly decreases it. There is no infinite descending sequence of these ordinals. This uses an appropriate well-foundedness principle below ε0\varepsilon_0, not the false assertion that the numerical values themselves decrease.

Goodstein proved termination in 1944. Kirby and Paris proved in 1982 that the uniform statement that every such sequence terminates is not provable in PA. Each particular standard starting value nevertheless has a finite terminating computation, whose steps can in principle be verified in PA. The gap is between all individual finite instances and one universal theorem. Their original paper establishes this specific independence result; Gödel's general theorem alone does not identify it.

Paris and Harrington's earlier strengthening of the finite Ramsey theorem supplied another natural combinatorial example. Such results connected incompleteness with ordinary mathematical statements and with the ordinal analysis of arithmetic. They changed what an independence theorem could look like, without making every difficult numerical problem independent.

Reflection and Löb's theorem

The second theorem also belongs to a wider study of reflection: principles saying that provable sentences are true. For an arithmetical sentence AA, the local reflection assertion is

Prov⁡T(⌜A⌝)→A.\operatorname{Prov}_T(\ulcorner A\urcorner)\to A.

Löb's 1955 theorem says that, under the usual derivability conditions, if TT proves this implication, then TT already proves AA. Taking AA to be 0=10=1 yields the standard second incompleteness conclusion for consistent TT. The theorem is about an internal proof of reflection. An external mathematician may reason about the reliability of TT in a stronger metatheory without thereby producing such an internal proof.

This distinction explains why adding a reflection principle can strengthen a theory. The added principle expresses a new commitment about the old proof system; it is not automatically available just because the old system can encode its derivations.

Boundaries of the result

Gödel's theorems do not by themselves prove that human reasoning exceeds every machine. Such an argument would require additional premises about human consistency, mathematical knowledge, and which formal system is being compared with which human capacities.

They also do not establish the independence of every difficult statement. The continuum hypothesis required particular model constructions; its independence does not follow merely from the existence of some undecidable sentence.

Tarski's undefinability theorem addresses a related but distinct boundary: sufficiently rich arithmetic cannot define its own full standard truth predicate in the required way. Provability and truth must remain separate even when both are studied through arithmetization.

The effectiveness condition now becomes a subject in its own right. What exactly can an algorithm compute, and how can one prove the nonexistence of an algorithm for a given task? The next note follows Church, Turing, Kleene, Post, and the development of computability theory.

Check your understanding: Can a consistent theory prove that one of its proofs exists when none does?

Assume PA is consistent and use its standard provability predicate. What happens in T=PA+¬Con⁡(PA)T=\mathrm{PA}+\neg\operatorname{Con}(\mathrm{PA})?

Answer. The second incompleteness theorem implies that TT is consistent: otherwise the deduction theorem and classical reasoning would give a PA proof of Con⁡(PA)\operatorname{Con}(\mathrm{PA}). Yet TT asserts that a PA proof of 0=10=1 exists. No standard finite proof does exist under the assumption. A model of TT must therefore supply a nonstandard number that it regards as such a proof. Consistency alone does not guarantee that all existential arithmetical theorems are true in N\mathbb N.

Sources and further reading

  • Kurt Gödel, “Über formal unentscheidbare Sätze der Principia Mathematica und verwandter Systeme I” (1931).
  • David Hilbert and Paul Bernays, Grundlagen der Mathematik, volume II (1939); Martin H. Löb, “Solution of a Problem of Leon Henkin” (1955).
  • Alfred Tarski, the work on truth and definability collected in Logic, Semantics, Metamathematics.
  • Gödel's Incompleteness Theorems, for precise hypotheses, historical formulations, and common misinterpretations.
  • J. Barkley Rosser, “Extensions of Some Theorems of Gödel and Church” (1936), for the consistency-only refinement.
  • Jeremy Avigad, Computability and Incompleteness (2007), sections 4.3–4.6, for representability in QQ, the fixed-point lemma, and the separate consistency and omega-consistency arguments.
  • Laurie Kirby and Jeff Paris, “Accessible Independence Results for Peano Arithmetic” (1982), for the independence of the general Goodstein termination statement.