Sheet 21 of 22
What Gödel’s theorems do and do not say
Needs sheet 09 for soundness and completeness, and sheet 20 for the diagonal trick.
In 1931 Kurt Gödel, then in his mid-twenties, published a paper in the journal Monatshefte für Mathematik und Physik. Its results have since been said to prove the limits of reason, the existence of God, the non-existence of God, the failure of artificial intelligence, the incoherence of the law, and that no one can really know anything. They show none of these. What they do show is astonishing enough. It requires care to state, and it deserves it.
21.1 The background
In the first years of the twentieth century mathematics had a crisis of confidence, with Russell’s set (sheet 20) as the most visible symptom. In the 1920s David Hilbert proposed a way out. Put all of mathematics into a formal system, with axioms and rules that a machine could check. Then prove by simple, undeniable means that this system could never produce a contradiction. Mathematics would then be secured for good.
Definition
Formal system. A precisely specified language with axioms and rules of inference, set out so that it can be mechanically checked whether a given sequence of formulas is a proof. The technical term for this checkable property is effectively axiomatised.
Definition
Consistent. A system is consistent when it does not prove a contradiction: there is no A with both A and ¬A provable.
Definition
Negation complete. A system is negation complete when, for every sentence A in its language, it proves A or it proves ¬A.
Watch out for the word “complete”. On sheet 09, a logic is complete if it proves every valid formula. That is a different property. Gödel proved first-order logic complete in that first sense in his 1929 dissertation. Two years later, he proved theories of arithmetic incomplete in the second sense. The two results are compatible, and they are often confused because of the shared word.
21.2 The theorems
Rule
First incompleteness theorem. Any consistent, effectively axiomatised formal system that can express a modest amount of arithmetic is negation incomplete. There is a sentence G in its language such that it proves neither G nor ¬G.
Rule
Second incompleteness theorem. No such system can prove its own consistency, provided that consistency is expressed in the standard way as a sentence of the system.
(Gödel used a slightly stronger assumption than consistency, called ω-consistency. In 1936 J. Barkley Rosser found a sentence which needs only plain consistency. The statement above is the version usually given today.)
Every clause matters. Consistent: an inconsistent system proves everything, so it isn’t incomplete. Effectively axiomatised: if you allow “all true sentences of arithmetic” as your axioms, you get a complete system, and no one can tell you what the axioms are. Modest amount of arithmetic: the system must be able to handle addition and multiplication of natural numbers.
21.3 The idea of the proof
Gödel’s central trick was to make arithmetic talk about itself.
Step 1: code everything. Assign each symbol a number. A formula then gets a number by a fixed scheme, and a proof, as a sequence of formulas, gets one too. Now, statements about formulas become statements about numbers.
Step 2: define “provable”. “Is the code of a proof of the formula coded by y” is a mechanical check, so it can be expressed as an arithmetical relation between two numbers. This gives a formula Prov(y), which says “the formula with code y is provable in the system”.
Step 3: diagonalise. A construction, close in spirit to the Russell and liar arguments on sheet 20, produces a sentence G that the system can show equivalent to ¬Prov(⌜G⌝), where ⌜G⌝ is the code of G. So G says, in effect, “I am not provable in this system.” Note that it’s not provable, and not false. That is the difference between a paradox and a theorem.
Step 4: reason. Suppose the system proves G. Then a proof exists, so the system, which can verify any specific proof, proves Prov(⌜G⌝). But proving G also gives ¬Prov(⌜G⌝). That’s a contradiction, so if the system is consistent, it does not prove G. A somewhat more delicate argument handles ¬G.
And now look at what G says. It says that it’s not provable, and we’ve just shown that it isn’t, on the assumption that the system is consistent. So if the system is consistent, G is true of the natural numbers and is unprovable in the system.
Step 5: the second theorem. The argument of Step 4 can be carried out inside the system. So the system proves “if I am consistent, then G”. If it could also prove “I am consistent”, then it would prove G, and the first theorem forbids that.
There’s a shorter route that connects to computing. In 1936 Alan Turing proved that no program can decide in general whether programs halt. If a consistent, effectively axiomatised system proved all the truths of arithmetic, you could decide halting by searching through all proofs. So no such system exists. This is one way to see that incompleteness is really about the limits of mechanical procedures.
21.4 What is not being said
Torkel Franzén’s Gödel’s Theorem: An Incomplete Guide to Its Use and Abuse (2005) is the standard corrective, and the following list owes a good deal to it.
Counterexample
”There are mathematical truths that can never be proved.” The theorem says unprovable in this system. Add G as a new axiom, and it’s trivially provable in the bigger system. That system has a new Gödel sentence. So no single system of this kind captures everything. It doesn’t follow that any particular truth can’t be proved in any way.
Counterexample
”Every system is incomplete.” Only those meeting the conditions. Presburger arithmetic, with addition but no multiplication, is complete and decidable (Mojżesz Presburger, 1929). So is the first-order theory of the real numbers, as shown by Alfred Tarski. Both are fully formal systems, and each is an important part of mathematics. The power to express both addition and multiplication is what opens the door.
Counterexample
”Mathematics might be inconsistent, then.” The second theorem says that a system can’t prove its own consistency. That is weak evidence of anything. Suppose it could: an inconsistent system proves everything, so such a proof wouldn’t reassure you. Gerhard Gentzen proved the consistency of Peano arithmetic in 1936, using a principle of transfinite induction which goes beyond that system. So there’s a proof, and one needs to decide how much to trust the extra principle. Most mathematicians have no doubts about arithmetic.
Counterexample
”So the law, or a national constitution, or any system of belief, must be incomplete or inconsistent.” These are not formal systems in the required sense. They don’t have mechanically checkable proofs, nor do they express arithmetic in the relevant way. They may very well have gaps, but Gödel has nothing to say about it.
Counterexample
”Therefore human minds are not machines.” The argument, due to J. R. Lucas (1961) and later Roger Penrose in The Emperor’s New Mind (1989), says that for any machine, we can see its Gödel sentence is true and the machine cannot. But we can only see it’s true if we know that the machine is consistent. Could you tell that for a system the size of your own mind? Most logicians think the argument falls short, though it has had careful defenders. Gödel himself drew a more cautious disjunctive conclusion: either the mind surpasses every machine, or there are arithmetical problems that it can’t solve.
Counterexample
”Truth is relative” or “Nothing is certain.” Gödel’s own theorems are proved, by rigorous argument, with complete certainty. They use a sharp concept of truth in arithmetic. It’s strange to cite them in support of doubt about the concepts they rely on.
21.5 What it did change
Hilbert’s programme, in its original form, could not work. The simple means Hilbert wanted were formalisable in arithmetic, so they couldn’t prove arithmetic consistent, let alone all of mathematics. Mathematicians went on working and most of them never needed to care. Yet some undecidable sentences turned out to be natural.
- The continuum hypothesis, on the size of the real numbers, can’t be settled by the standard axioms of set theory. Gödel showed in 1940 that it can’t be refuted, and Paul Cohen showed in 1963 that it can’t be proved.
- Goodstein’s theorem is an innocent statement about sequences of numbers, proved unprovable in Peano arithmetic by Laurie Kirby and Jeff Paris in 1982, though it’s true.
- The Paris-Harrington theorem of 1977 gave a natural combinatorial statement with the same property.
The moral is smaller than the legend. Proof is relative to axioms, and no fixed set of axioms exhausts arithmetic. You have to keep adding principles. Deciding which new ones are right is a matter of judgement, and it is where people come back in.
Peter Smith’s An Introduction to Gödel’s Theorems (2007) is the place to go next, if you want the details, and Ernest Nagel and James Newman’s Gödel’s Proof (1958) is a shorter classic.
Try to break this
Consider this claim: “A computer can’t ever do mathematics, because Gödel showed that there are truths no computer can prove.” Write down exactly which step fails. Then consider: is there anything a person can prove and a machine cannot, if you allow the machine to add new axioms just as a person would?
21.6 Exercises
Does the first theorem apply to Presburger arithmetic? Why or why not?
Answer
No. It’s consistent and effectively axiomatised, but it can’t express multiplication, so it lacks the needed arithmetic. It is in fact complete.
What is the difference between “
Gis not provable in this system” and “Gis false”?Answer
Gsays the first, and the liar sentence is the analogue of the second. Since being unprovable and being false are different, no paradox arises, and we get an unprovable truth, assuming consistency.A system proves its own consistency. What can you conclude about it (assuming it meets the other conditions)?
Answer
That it’s inconsistent. By the second theorem a consistent one couldn’t. An inconsistent one can prove anything, including that sentence.
Someone says: “Add
Gas an axiom and you’ve fixed incompleteness.” What’s the reply?Answer
The new system meets the same conditions, so it has its own Gödel sentence. The process can be repeated without end, and the incompleteness remains at each stage.
Which of the following are true? (a) First-order logic is complete. (b) Peano arithmetic is negation complete. (c) The set of all true sentences of arithmetic is consistent and negation complete. (d) That set is effectively axiomatised.
Answer
(a) True, in the sense of sheet 09. (b) False, if it is consistent. (c) True: for each sentence, it or its negation is true. (d) False, and that’s the lesson of the theorem.
Why does Step 3 use “not provable” and not “not true”?
Answer
Provability in the system can be expressed in arithmetic, because it is a mechanical matter. By Tarski’s theorem, truth for arithmetic can’t be defined in arithmetic. A sentence saying “I am not true” would produce the liar paradox, and that is exactly what Tarski’s argument uses to show it can’t be formed.