Löb’s Lemma: an easier approach to Löb’s Theorem

Related to: Löb’s Theorem for implicit reasoning in natural language: Löbian party invitations

tl;dr: Löb’s Theorem is much easier to grok if you separate the parts of the proof that use the assumption from the parts that don’t. The parts that don’t use can be extracted as a stand-alone result, which I hereby dub “Löb’s Lemma”.

Here’s how it works.

Key properties of and

Here is some standard notation. In short, is our symbol for talking about what PA can prove, and is shorthand for PA’s symbols for talking about what (a copy of) PA can prove.

  • 1+1=2” means “Peano Arithmetic (PA) can prove that 1+1=2”. No parentheses are needed; the “” applies to the whole line that follows it. Also, does not stand for an expression in PA; it’s a symbol we use to talk about what PA can prove.

  • ” basically means the same thing. More precisely, it stands for a numerical expression within PA that can be translated as saying ” 1+1=2″. This translation is possible because of something called a Gödel numbering which allows PA to talk about a (numerically encoded version of) itself.

  • ” is short for “” in cases where “” is just a single character of text.

  • ” means “PA, along with X as an additional axiom/​assumption, can prove Y”. In this post we don’t have any analogous notation for .

The proofs here will use the following standard properties of and (source: Wikipedia), which respectively stand for provability and provability encoded within arithmetic.

  1. (necessitation) From , conclude . Informally, this says that if A can be proven, then it can be proven that it can be proven (by just writing out and checking the proof within arithmetic). Note that from we cannot conclude , because still means “PA can prove”, and not “PA+X can prove”.

  2. (internal necessitation) . If A is provable, then it is provable that it is provable (basically the same as the previous point).

  3. (box distributivity) . This rule allows one to apply modus ponens inside the provability operator. If it is provable that A implies B, and A is provable, then B is provable.

  4. (deduction theorem) From , conclude : if assuming is enough to prove , then it’s possible to prove under no assumptions that .

Point 4 is helpful and pretty intuitive, but for whatever reason isn’t used in the main Wikipedia article on Löb’s Theorem.

Löb’s Lemma

Claim: Assume and are any statements satisfying . Then .

Intuition: By assumption, the sentence is equivalent to saying “If this sentence is provable, then ”. Intuitively, has very little content, except for the part at the end, so it makes sense that boils down to nothing more than in terms of logical equivalence.

Reminder: this does not use the assumption from Löb’s Theorem at all.

Proof:

Let’s do the forward implication first:

  1. by internal necessitation ().

  2. using box distributivity on the assumption,
    with and .

  3. from 1 and 2 by box distributivity.

  4. from 3 by the deduction theorem.

Now for the backwards implication, which isn’t needed for Löb’s Theorem, but is handy anyway:

  1. is a tautology.

  2. by box distributivity on 1.

  3. by box distributivity on the assumption.

  4. by 2 and 3.

I like this result because both directions of the proof are fairly short, it doesn’t use the assumption at all, and the conclusion itself is also fairly intuitive. The statement just turns out to have no content except for itself, from the perspective of writing proofs.

Löb’s Theorem, now in just 6 lines

If you can remember Löb’s Lemma, you can write a very straightforward proof of Löb’s Theorem in just 6 lines:

Claim: If is any sentence such that , then

Proof:

Let be any sentence satisfying , which exists by the existence of modal fixed points (or by the Diagonal Lemma).

  1. by Löb’s Lemma.

  2. by assumption.

  3. by 1 and 2 combined.

  4. by 3 and the defining property of

  5. by necessitation.

  6. by 3 and 5.

«mic drop»