Löb's theorem

In mathematical logic, Löb's theorem states that in Peano arithmetic (PA) (or any formal system including PA), for any formula P, if it is provable in PA that "if P is provable in PA then P is true", then P is provable in PA. If Prov(P) means that the formula P is provable, we may express this more formally as

If
${\displaystyle {\mathit {PA}}\vdash {\mathrm {Prov} (P)\rightarrow P}}$
then
${\displaystyle {\mathit {PA}}\vdash P}$.

An immediate corollary (the contrapositive) of Löb's theorem is that, if P is not provable in PA, then "if P is provable in PA, then P is true" is not provable in PA. For example, "If ${\displaystyle 1+1=3}$ is provable in PA, then ${\displaystyle 1+1=3}$" is not provable in PA.[1]

Löb's theorem is named for Martin Hugo Löb, who formulated it in 1955.[2] It is related to Curry's paradox.[3]

Löb's theorem in provability logic

Provability logic abstracts away from the details of encodings used in Gödel's incompleteness theorems by expressing the provability of ${\displaystyle \phi }$ in the given system in the language of modal logic, by means of the modality .

Then we can formalize Löb's theorem by the axiom

${\displaystyle \Box (\Box P\rightarrow P)\rightarrow \Box P,}$

known as axiom GL, for Gödel–Löb. This is sometimes formalized by means of the inference rule:

If
${\displaystyle \vdash \Box P\rightarrow P}$
then
${\displaystyle \vdash P}$.

The provability logic GL that results from taking the modal logic K4 (or K, since the axiom schema 4, ${\displaystyle \Box A\rightarrow \Box \Box A}$, then becomes redundant) and adding the above axiom GL is the most intensely investigated system in provability logic.

Modal proof of Löb's theorem

Löb's theorem can be proved within modal logic using only some basic rules about the provability operator (the K4 system) plus the existence of modal fixed points.

Modal formulas

We will assume the following grammar for formulas:

1. If ${\displaystyle X}$ is a propositional variable, then ${\displaystyle X}$ is a formula.
2. If ${\displaystyle K}$ is a propositional constant, then ${\displaystyle K}$ is a formula.
3. If ${\displaystyle A}$ is a formula, then ${\displaystyle \Box A}$ is a formula.
4. If ${\displaystyle A}$ and ${\displaystyle B}$ are formulas, then so are ${\displaystyle \neg A}$, ${\displaystyle A\rightarrow B}$, ${\displaystyle A\wedge B}$, ${\displaystyle A\vee B}$, and ${\displaystyle A\leftrightarrow B}$

A modal sentence is a modal formula[definition needed] that contains no propositional variables. We use ${\displaystyle \vdash A}$ to mean ${\displaystyle A}$ is a theorem.

Modal fixed points

If ${\displaystyle F(X)}$ is a modal formula with only one propositional variable ${\displaystyle X}$, then a modal fixed point of ${\displaystyle F(X)}$ is a sentence ${\displaystyle \Psi }$ such that

${\displaystyle \vdash \Psi \leftrightarrow F(\Box \Psi )}$

We will assume the existence of such fixed points for every modal formula with one free variable. This is of course not an obvious thing to assume, but if we interpret ${\displaystyle \Box }$ as provability in Peano Arithmetic, then the existence of modal fixed points follows from the diagonal lemma.

Modal rules of inference

In addition to the existence of modal fixed points, we assume the following rules of inference for the provability operator ${\displaystyle \Box }$, known as Hilbert–Bernays provability conditions:

1. (necessitation) From ${\displaystyle \vdash A}$ conclude ${\displaystyle \vdash \Box A}$: Informally, this says that if A is a theorem, then it is provable.
2. (internal necessitation) ${\displaystyle \vdash \Box A\rightarrow \Box \Box A}$: If A is provable, then it is provable that it is provable.
3. (box distributivity) ${\displaystyle \vdash \Box (A\rightarrow B)\rightarrow (\Box A\rightarrow \Box B)}$: This rule allows you to do modus ponens inside the provability operator. If it is provable that A implies B, and A is provable, then B is provable.

Proof of Löb's theorem

Much of the proof does not make use of the assumption ${\displaystyle \Box P\to P}$, so for ease of understanding, the proof below is subdivided to leave the parts depending on ${\displaystyle \Box P\to P}$ until the end.

Let ${\displaystyle P}$ be any modal sentence.

1. Apply the existence of modal fixed points to the formula ${\displaystyle F(X)=X\rightarrow P}$. It then follows that there exists a sentence ${\displaystyle \Psi }$ such that
${\displaystyle \vdash \Psi \leftrightarrow (\Box \Psi \rightarrow P)}$.
2. ${\displaystyle \vdash \Psi \rightarrow (\Box \Psi \rightarrow P)}$, from 1.
3. ${\displaystyle \vdash \Box (\Psi \rightarrow (\Box \Psi \rightarrow P))}$, from 2 by the necessitation rule.
4. ${\displaystyle \vdash \Box \Psi \rightarrow \Box (\Box \Psi \rightarrow P)}$, from 3 and the box distributivity rule.
5. ${\displaystyle \vdash \Box (\Box \Psi \rightarrow P)\rightarrow (\Box \Box \Psi \rightarrow \Box P)}$, by applying the box distributivity rule with ${\displaystyle A=\Box \Psi }$ and ${\displaystyle B=P}$.
6. ${\displaystyle \vdash \Box \Psi \rightarrow (\Box \Box \Psi \rightarrow \Box P)}$, from 4 and 5.
7. ${\displaystyle \vdash \Box \Psi \rightarrow \Box \Box \Psi }$, from 6 by the internal necessitation rule.
8. ${\displaystyle \vdash \Box \Psi \rightarrow \Box P}$, from 6 and 7.

Now comes the part of the proof where the hypothesis is used.

9. Assume that ${\displaystyle \vdash \Box P\rightarrow P}$. Roughly speaking, it is a theorem that if ${\displaystyle P}$ is provable, then it is, in fact true. This is a claim of soundness.
10. ${\displaystyle \vdash \Box \Psi \rightarrow P}$, from 8 and 9.
11. ${\displaystyle \vdash (\Box \Psi \rightarrow P)\rightarrow \Psi }$, from 1.
12. ${\displaystyle \vdash \Psi }$, from 10 and 11.
13. ${\displaystyle \vdash \Box \Psi }$, from 12 by the necessitation rule.
14. ${\displaystyle \vdash P}$, from 13 and 10.

1. Since ${\displaystyle {\mathit {PA}}\vdash {\mathrm {Prov} _{PA}(P)\rightarrow P}}$ by assumption, we also have ${\displaystyle {\mathit {PA}}\vdash {\neg P\rightarrow \neg \mathrm {Prov} _{PA}(P)}}$, which implies ${\displaystyle \{{\mathit {PA}},\neg P\}\vdash {\neg \mathrm {Prov} _{PA}(P)}}$.
2. Now, the hybrid theory ${\displaystyle \{{\mathit {PA}},\neg P\}}$ can reason as follows:
1. Suppose ${\displaystyle \{{\mathit {PA}},\neg P\}}$ is inconsistent, then PA proves ${\displaystyle \neg P\to \bot {}}$, which is the same as ${\displaystyle P}$.
2. However, ${\displaystyle \{{\mathit {PA}},\neg P\}}$ already knows that ${\displaystyle \neg \mathrm {Prov} _{PA}(P)}$, a contradiction.
3. Therefore, ${\displaystyle \{{\mathit {PA}},\neg P\}}$ is consistent.
3. By Godel's second incompleteness theorem, this implies ${\displaystyle \{{\mathit {PA}},\neg P\}}$ is inconsistent.
4. Thus, PA proves ${\displaystyle \neg P\to \bot {}}$, which is the same as ${\displaystyle P}$.

Examples

An immediate corollary of Löb's theorem is that, if P is not provable in PA, then "if P is provable in PA, then P is true" is not provable in PA. Given we know PA is consistent (but PA does not know PA is consistent), here are some simple examples:

• "If ${\displaystyle 1+1=3}$ is provable in PA, then ${\displaystyle 1+1=3}$" is not provable in PA, as ${\displaystyle 1+1=3}$ is not provable in PA (as it is false).
• "If ${\displaystyle 1+1=2}$ is provable in PA, then ${\displaystyle 1+1=2}$" is provable in PA, as is any statement of the form "If X, then ${\displaystyle 1+1=2}$".
• "If the strengthened finite Ramsey theorem is provable in PA, then the strengthened finite Ramsey theorem is true" is not provable in PA, as "The strengthened finite Ramsey theorem is true" is not provable in PA (despite being true).

In Doxastic logic, Löb's theorem shows that any system classified as a reflexive "type 4" reasoner must also be "modest": such a reasoner can never believe "my belief in P would imply that P is true", without also believing that P is true.[4]

Gödel's second incompleteness theorem follows from Löb's theorem by substituting the false statement ${\displaystyle \bot }$ for P.

Converse: Löb's theorem implies the existence of modal fixed points

Not only does the existence of modal fixed points imply Löb's theorem, but the converse is valid, too. When Löb's theorem is given as an axiom (schema), the existence of a fixed point (up to provable equivalence) ${\displaystyle p\leftrightarrow A(p)}$ for any formula A(p) modalized in p can be derived.[5] Thus in normal modal logic, Löb's axiom is equivalent to the conjunction of the axiom schema 4, ${\displaystyle (\Box A\rightarrow \Box \Box A)}$, and the existence of modal fixed points.

Notes

1. ^ Unless PA is inconsistent (in which case every statement is provable, including ${\displaystyle 1+1=3}$).
2. ^
3. ^ Neel, Krishnaswami. "Löb's theorem is (almost) the Y combinator". Semantic Domain. Retrieved 9 April 2024.
4. ^
5. ^