aiqbench analysis
This work explores modal logic systems as decision procedures for Peano arithmetic's provability predicate, specifically addressing the limitations of standard K4 logic in proving Gödel's second incompleteness theorem without explicit premises. The analysis clarifies how formal constraints on self-referential consistency statements differ when moving from material conditionals to strict logical derivations within arithmetic frameworks.
Modal logic as a decision procedure for the PA provability predicate

From LessWrong
Full textGödel's second incompleteness theorem in English
Consider a formal system that can do Peano arithmetic. We'll call it .
has a predicate representing provability in .
It also has a statement representing its own consistency. Using the provability predicate, you can write the claim "there's no proof of 0=1".
Gödel's second incompleteness theorem says that if is in fact consistent, then it cannot prove itself consistent. This sentence in asserting the consistency of is not provable.
Gödel's second incompleteness theorem in PA
Let be the provability predicate, so that says P is provable.
The second incompleteness theorem, expressed as a theorem:
does prove this. (That is, it proves a material conditional, with the premise above the line as the antecedent, and the conclusion below the line as the consequent.)
I previously posted about translating sentences about provability.
We start by translating notation: is , is 0=1.
In my previous post I wrote about , a system of modal logic that includes the basic axioms we expect to hold of a provability predicate.
The second incompleteness theorem, in the form above, was not a theorem of .
What we could prove in was a conditional that includes the Gödel sentence in the premises:
That makes sense, because you do use the Gödel sentence to prove the incompleteness theorem.
But the way I sold was that it mechanizes metamathematics. What's cool about it is it has a decision procedure based on the semantics.
But doesn't give us a decision procedure for statements about provability in . We can tell because Gödel's second theorem is a theorem, but its translation into modal logic is not a theorem. So just translating from to modal logic and running the decision procedure doesn't work.
Deciding statements about provability
We can decide statements about provability in with modal logic. We do it by adding Löb's theorem as an axiom schema. For every sentence P, this is an axiom:
Adding those axioms to , the resulting modal logic is called , for Gödel and Löb.
, like , is decidable. Unlike , proves every statement about provability that proves.
We'll have to get more precise about that. (Is "the twin prime conjecture is provable" a statement about provability?)
Interpreting as
We'll start by getting more precise about interpreting sentences as sentences. I think of interpreting as a little find-and-replace script: replace with 0=1, replace each with . But we also have to replace "sentence letters", elementary symbols of the modal logic, with sentences. For example, the letter G with the complex Gödel statement we constructed in .
The usual way to think about an interpretation is not as a program but as a function: an interpretation of a modal logic sentence is a mapping from all the sentence letters to sentences of .
A sentence is a theorem of if and only if, under every interpretation, the resulting sentence is a theorem of .
is decidable, so any question about provability that can be written in modal logic can be decided.
Full text under the publisher's open licence · 544 words