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. More formally, if Prov(P) means that the formula P is provable, then
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 is provable in PA, then " is not provable in PA.[note 1]
Löb's theorem is named for Martin Hugo Löb, who formulated it in 1955.
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 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
known as axiom GL, for Gödel–Löb. This is sometimes formalized by means of an inference rule that infers
The provability logic GL that results from taking the modal logic K4 (or K, since the axiom schema 4, , 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.
We will assume the following grammar for formulas:
- If is a propositional variable, then is a formula.
- If is a propositional constant, then is a formula.
- If is a formula, then is a formula.
- If and are formulas, then so are , , , , and
A modal sentence is a modal formula that contains no propositional variables. We use to mean is a theorem.
Modal fixed points
If is a modal formula with only one propositional variable , then a modal fixed point of is a sentence such that
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 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 , known as Hilbert–Bernays provability conditions:
- (necessitation) From conclude : Informally, this says that if A is a theorem, then it is provable.
- (internal necessitation) : If A is provable, then it is provable that it is provable.
- (box distributivity) : 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
- Assume that there is a modal sentence such that .
Roughly speaking, it is a theorem that if is provable, then it is, in fact true.
This is a claim of soundness.
- From the existence of modal fixed points for every formula (in particular, the formula ) it follows there exists a sentence such that .
- From 2, it follows that .
- From the necessitation rule, it follows that .
- From 4 and the box distributivity rule, it follows that .
- Applying the box distributivity rule with and gives us .
- From 5 and 6, it follows that .
- From the internal necessitation rule, it follows that .
- From 7 and 8, it follows that .
- From 1 and 9, it follows that .
- From 2, it follows that .
- From 10 and 11, it follows that
- From 12 and the necessitation rule, it follows that .
- From 13 and 10, it follows that .
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 is provable in PA, then " is not provable in PA, as is not provable in PA (as it is false).
- "If is provable in PA, then " is provable in PA, as is any statement of the form "If X, then ".
- "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 first believing that P is true.
Gödel's second incompleteness theorem follows from Löb's theorem by substituting the false statement 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) for any formula A(p) modalized in p can be derived. Thus in normal modal logic, Löb's axiom is equivalent to the conjunction of the axiom schema 4, , and the existence of modal fixed points.
- Unless PA is inconsistent (in which case every statement is provable, including ).
- Smullyan, Raymond M., (1986) Logicians who reason about themselves, Proceedings of the 1986 conference on Theoretical aspects of reasoning about knowledge, Monterey (CA), Morgan Kaufmann Publishers Inc., San Francisco (CA), pp. 341-352
- Per Lindström (June 2006). "Note on Some Fixed Point Constructions in Provability Logic". Journal of Philosophical Logic. 35 (3): 225–230. doi:10.1007/s10992-005-9013-8.
- Boolos, George S. (1995). The Logic of Provability. Cambridge University Press. ISBN 978-0-521-48325-4.
- Löb, Martin (1955), "Solution of a Problem of Leon Henkin", Journal of Symbolic Logic, 20 (2): 115–118, JSTOR 2266895
- Hinman, P. (2005). Fundamentals of Mathematical Logic. A K Peters. ISBN 978-1-56881-262-5.
- Verbrugge, Rineke (L.C.) (1 January 2016). "Provability Logic". The Stanford Encyclopedia of Philosophy. Retrieved 6 April 2016.