6

To quote wikipedia:

Löb's theorem states that in any formal system that includes 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.

Now what I don't understand is the following: why isn't the sentence

"if P is provable in PA then P is true"

always provable/true? If a formula is provable it must be by definition true, no? As in: suppose I tell you that the Riemann hypothesis is provable, then you can conclude that the Riemann hypothesis is true, no? Or is there a subtle difference between provability and trueness? I am quite confused and really not familiar with this topic. I came about the paradox through Scott Aaronson's book "Quantum Computing since Democritus" but I found the explanation of the paradox a bit on the short side...

  • It is true (assuming the axioms of PA are true and the inference rules of PA are sound) that if a sentence is provable in PA, then it is true. So, in particular, the analogue of Löb's theorem for truth holds (under the above assumption): if the sentence "P" provable in PA implies P is true, then the sentence P is true. But notice that Löb's theorem says something different. Löb's theorem says that if the sentence "P" provable in PA implies P is provable in PA, then P is provable in PA (hence in particular P is true). – Pilcrow Feb 06 '24 at 16:40
  • "If a formula is provable it must be by definition true, no? As in: suppose I tell you that the Riemann hypothesis is provable, then you can conclude that the Riemann hypothesis is true, no? Or is there a subtle difference between provability and trueness?" You seem to be confusing "provability implies truth" with "provability is equivalent to truth" here. – Pilcrow Feb 06 '24 at 16:43
  • @Pilcrow: I don't think that's the case. This is the property of Soundness, I believe. – MSIS Feb 07 '24 at 03:53

5 Answers5

16

Say that the formal system is $\sf PA + \lnot Con(PA).$ Then the system proves every statement is provable in $\sf PA$, but surely it doesn't prove every statement (unless it is inconsistent, which by Godel's theorem would mean $\sf PA$ is inconsistent).

There is a name for the property "if something is provable in $\sf PA$ then it is true". When this holds we say "$\sf PA$ is sound". Soundness is a stronger property than consistency, so, since $\sf PA$ can't even prove its own consistency, it certainly can't prove its own soundness (in fact, it can't even express its own soundness as a single sentence... the schema "$\operatorname{Prov}(\ulcorner \varphi \urcorner)\to \varphi$" at the center of Lob's theorem is the best we can do, but that's a more technical issue).

So, when we conclude from a proof that something is true, we are assuming the soundness of the system we proved it in. Lob's theorem essentially says that we can't prove anything nontrivial regarding the soundness of a system within the system itself.


Addition in response to the comments.

There is certainly a subtle difference between provability and truth. First, neither of these things is something that you can really talk about in an absolute sense. Provability of a given sentence is relative to a particular axiomatic system (e.g. $\sf PA$), and means there is a formal proof the sentence using the axioms and rule of inference. Truth is relative to a particular interpretation of the language the sentence is written in.

For instance, $2+2=4$ is provable in $\sf PA$ (essentially by using the associative property: $(1+1)+(1+1) = 1+1+1+1$, though the exact details are somewhat implementation dependent). And it is also true when we interpret the language of arithmetic in the usual way, as being about $\mathbb N$ with addition and multiplication and $1$ and $0$ meaning what they usually mean.

Relative to a given interpretation, every sentence is either true or false and not both. However, the provability side is not so simple. In a given axiomatic system, a sentence can be provably true, provably false, neither or both.

The "both" option is clearly undesirable... a system where that never happens is called "consistent". As for the "neither" option - which is perhaps undesirable but less catastrophic - a system where that never happens (i.e. every sentence is either provably true or provably false) is called "complete".

There is also the question of how proof in some system relates to truth in some interpretation. When a system only proves true statements relative to a given interpretation, it is called sound (relative to that interpretation). So a sound and complete system would be one where proof and truth align perfectly. It is also something that the incompleteness theorem says we can't have for arithmetic, provided that the axioms of the proof system can be determined algorithmically. Note also no inconsistent system can be sound, since a statement can't be both true and false.

So with all that said, there's one more big layer to the question, and that's that we're not just interested in $\sf PA$ here, but what $\sf PA$ can prove about $\sf PA$. For that to make sense, we need to be able to encode stuff about formal sentences and proofs into the language of arithmetic. This is a big project, but should be plausible given that formal proofs (when the axioms are computably decidable) are computably checkable, and what is a computer doing but a bunch of arithmetic. So we can define in the language of arithmetic a predicate $\sf Prov_{PA}$ where $\sf Prov_{PA}(\ulcorner \varphi\urcorner)$ means that the statement $\varphi$, encoded by the number $\ulcorner \varphi \urcorner$ is provable in $\sf PA.$

What's less clear is the status of truth. When we look at a statement, we determine its truth inductively: first we understand whether an atomic statement like $2+2=5$ is true, then we work up to more complicated statements, like $\varphi \land \psi$ being true iff both $\varphi$ and $\psi$ are true. And finally $\exists x\varphi(x)$ being true if there's some number out there such that $\varphi(n)$ is true. Can we make some induction like that work inside arithmetic itself via some clever encoding? The answer is "almost, but no". The "no" is called Tarski's theorem and is related to the Liar paradox (and I won't even go into the "almost" since I'm already including a lot here and it's out of scope).

So when wikipedia writes "if $\varphi$ is provable in $\sf PA$, then $\varphi$ is true" what they mean is the sentence $\sf Prov_{PA}(\ulcorner \varphi \urcorner)\to \varphi$ (i.e. the "is true" is not really there, what they mean is asserting the statement itself).

So, with all that background about a) the difference between proof and truth and b) the subtleties of $\sf PA$ talking about its own proofs, we can return to your question. Lob's theorem says the only instances of $\sf Prov_{PA}(\ulcorner \varphi \urcorner)\to \varphi$ that $\sf PA$ can prove are the trivial ones where $\sf PA$ already proves $\varphi$, i.e. in a sense, it has no insight into its own soundness. This shouldn't be that surprising in light of Godel's second incompleteness theorem (which is extremely related to / any easy corollary of Lob's theorem) which says that $\sf PA$ can't prove its own consistency.

(This was the purpose of my original example in the answer: $\sf PA + \lnot Con(PA)$ is a consistent extension of $\sf PA$ that proves its own inconsistency... so it can prove every instance of $\sf Prov_{PA+\lnot Con(PA)}(\ulcorner \varphi\urcorner)$, so any proof of an instance of $\sf Prov_{PA+\lnot Con(PA)}(\ulcorner \varphi\urcorner)\to \varphi$ would immediately lead to a proof of $\varphi$.)

The bottom line is even if we take it for granted that $\sf PA$ is sound with respect to the usual interpretation of arithmetic (most do), there's no reason to expect $\sf PA$ to have this kind of insight into itself. Lob's (and Godel's and Tarski's) theorems are all limitative results about this precise sort of thing.

  • You completely lost me at the first paragraph... "Then the system proves every statement is provable in PA" why? "but surely it doesn't prove every statement (unless it is consitent, which by Godel's theorem would mean PA is consistent)." why? I do not understand any of the conclusions made here :(. – G. Bellaard Feb 05 '24 at 15:55
  • 3
    @G.Bellaard Godel's second incompleteness theorem says that, if $PA$ is consistent, then $PA$ can't prove $Con(PA)$. Take a step back: saying "$T$ doesn't prove $\varphi$" is exactly the same as saying "$T+\neg\varphi$ is consistent." So in particular, $PA+\neg Con(PA)$ is consistent. Now this is admittedly a very strange theory, and its models are quite tricky to visualize at first, but it is consistent; models of $PA+\neg Con(PA)$ are basically just really weird (semi)rings in which some Diophantine equations we expect to have no solutions, have solutions. (cont'd) – Noah Schweber Feb 05 '24 at 15:59
  • 2
    @G.Bellaard The point is that even if we're assuming that a given theory $S$ is consistent, we can't conclude that everything $S$ proves is true; the consistent-but-incorrect theory $PA+\neg Con(PA)$ is evidence of this. What's really going on here is that the word "true" in the previous sentence is more loaded than we expect; when we say that $PA+\neg Con(PA)$ proves something which is not true, what we mean at an "object level" is that there is a theorem of $PA+\neg Con(PA)$ which does not hold in the structure we are particularly interested in (namely $\mathbb{N}$). (cont'd) – Noah Schweber Feb 05 '24 at 16:00
  • 2
    On a more "meta" level, because of the special role played by this particular structure in mathematics, facts about $\mathbb{N}$ can often be translated into facts about logic/mathematics in general. And when so translated, $\neg Con(PA)$ turns into a statement which our metatheory (under mild assumptions) disproves. But that doesn't mean that the theory $PA+\neg Con(PA)$ was inconsistent; think by analogy of how Euclidean geometry is false about the world we live in (which is more-or-less spherical) but is still perfectly consistent. – Noah Schweber Feb 05 '24 at 16:03
  • @G.Bellaard Had a bad typo in there that's fixed now. The answer to the first question is "the principle of explosion"... if a system is inconsistent then it proves everything (and PA can prove the principle of explosion holds in general). I think Noah's comments cover the second question, but feel free to ask a follow-up. – spaceisdarkgreen Feb 05 '24 at 16:03
  • This might be too much to ask for, but can you edit your answer to reflect these additional comments? I am still quite lost.... Is it obvious why " Soundness is a stronger property than consistency"? And honestly, at this point I don't even know what the definition of "true" is? – G. Bellaard Feb 05 '24 at 16:07
  • @G.Bellaard Would be willing to expand it but would need to know a bit more where you are confused. Did you understand the second and third paragraphs? First paragraph is really just substantiating them with an explicit example. – spaceisdarkgreen Feb 05 '24 at 16:11
  • I don't think so then? I can't even see that the first paragraph is an example for the second and third paragraphs... As I said, i don't even know what "true" means anymore? – G. Bellaard Feb 05 '24 at 16:13
  • @G.Bellaard ok, I think I can make an addition. – spaceisdarkgreen Feb 05 '24 at 16:14
  • @G.Bellaard Okay, wrote more than I planned to and turned into kind of a core dump, but hopefully the extra background is useful and doesn't take too much focus off the question – spaceisdarkgreen Feb 05 '24 at 19:58
  • @G.Bellaard Also now I see there now there are a couple other answers, one of which covers the most pertinent conceptual stuff I added in a more efficient way (i should refresh more!), so I guess my now-deleted advice to leave the question open was good. – spaceisdarkgreen Feb 05 '24 at 20:04
  • I think it will take some time to appreciate the long answer you've given, which I'm very thankful for. Sadly, at the moment it feels as if I've only gained more confusion. Let me ask one more question: "PA+¬Con(PA) is a consistent extension of PA that proves its own inconsistency" how can a system both be consistent and prove its own inconsistency? – G. Bellaard Feb 05 '24 at 20:22
  • @G.Bellaard (Read Blass's and see if it helps.) A system can be consistent, and also wrong (i.e. not sound). It doesn't prove any contradictions, it just proves some statements that are wrong. (It's clear here that it's wrong since we included as an axiom an incorrect statement, that PA is inconsistent. However, this doesn't generate any inconsistencies because PA can't prove the correct statement that PA is consistent.) – spaceisdarkgreen Feb 05 '24 at 20:29
8

If you prove the Riemann hypothesis, then before believing that the Riemann hypothesis is true, I'd ask you what assumptions (axioms) you used in the proof. If you used any false assumptions, I won't believe that RH is true. If you used only true assumptions (and your proof was carefully checked) then I'd believe that RH is true.

In the case at hand, you're discussing the situation where the axioms used are PA. Since I know that those axioms are true, your proof would convince me that RH is true.

Unlike me, PA doesn't "know" that all of the axioms of PA are true. In fact, the concept of "true" can't even be expressed in the language of PA; this is an instance of Tarski's "undefinability of truth" theorem. The language of PA can express the concept of "consistent", but PA can't prove that PA is consistent; this is an instance Gödel's second incompleteness theorem.

The bottom line here is that PA cannot imitate ("formalize") the argument above whereby your proof of RH would convince me that RH is true. In this respect, I'm smarter than PA! Even though I know that everything proved by PA is true, PA can't even express that knowledge, and can't prove that "0=1" isn't provable in PA (even though it can express the latter).

Let's come back to Löb's theorem. The point of the preceding explanation is that, although I know (and, better yet, you found it obvious) that "If PA proves $p$ then $p$ is true", that knowledge is beyond the proof capabilities of PA (even for the special case where $p$ is "0=1"). So the hypothesis in Löb's theorem, that "If PA proves $p$ then $p$ is true" is provable in PA, is nontrivial; it's not always correct. [To be accurate, I shouldn't use the word "true" where PA-provability is under discussion, because of Tarski's theorem. The sentence in quotation marks should be simply "If PA proves $p$ then $p$."]

Indeed, Gödel's second incompleteness theorem tells us that this hypothesis fails when $p$ is "0=1". Löb upgrades this by saying that this hypothesis "almost always" fails; the only sentences $p$ for which it holds are those that PA by itself could prove.

Andreas Blass
  • 71,833
  • 1
    Can you clarify why the hypothesis fails for the formula "0=1" in steps? – G. Bellaard Feb 05 '24 at 22:53
  • 1
    @G.Bellaard: If $p$ is "0=1", then "$p$ is provable in PA" is equivalent to "PA is inconsistent" (since PA proves $0\neq1$). And "$p$ is true" is simply false. So the implication "If $p$ is provable in PA then $p$ is true" is equivalent to "$p$ is not provable in PA" which is equivalent to "PA is consistent." So finally, the hypothesis of Löb's theorem, namely that "If $p$ is provable in PA then $p$ is true" is provable in PA, says that PA can prove its own consistency. That contradicts Gödel's second incompleteness theorem, so Löb's hypothesis is not satisfied in this case. – Andreas Blass Feb 05 '24 at 23:07
  • Thank you, for some reason your comment suddenly made (some) things click and now I feel dumb for not getting it immediately from the other comments. – G. Bellaard Feb 05 '24 at 23:17
  • What makes an assumption "true"? My understanding was that any statement could be an axiom to a system, as long as it doesn't cause inconsistency. – BlueRaja - Danny Pflughoeft Feb 06 '24 at 04:39
  • @BlueRaja-DannyPflughoeft As long as you're dealing only with axiom systems, you could use any axioms you want and explore their consequences. An axiom could be 2+2=5, and the system could still be consistent (as long as it didn't include too many facts from ordinary arithmetic). But if you want your axioms to be useful, then you'd better not assume 2+2=5. As for your question "What makes an axiom "true"?" I think you already know the answer if you see a significant difference between axioms like 2+2=5 and axioms like 2+2=4. – Andreas Blass Feb 06 '24 at 15:27
  • @BlueRaja-DannyPflughoeft There is definitely something that is different between 2+2=5 and 2+2=4, regardless of axiomatic systems. Proof: Ancient people agree with that, and they don't know about axiomatic systems. "True" is just the name for that thing. We use axiomatic systems to approximate that thing, but we can't do it perfectly. If you are a really pure formalist you may disagree with that, in which case "true" just means "provable in the metalogic when interpreted with the standard model". – Trebor Feb 07 '24 at 06:35
  • @BlueRaja-DannyPflughoeft: Trebor's last sentence is false. "True" never means "provable in ... [blah blah]" whether or not you are a formalist. Pure formalism is self-contradictory because you need to believe in the (platonic) existence of a model of TC in order to believe that any useful formal system works at all. The bare minimum that any normal mathematician must believe is the existence of a model of TC and typically also induction, which is equivalent to believing in the (platonic) existence of a model of PA, which we call ℕ. Then there is obviously a notion of arithmetical truth. – user21820 Feb 07 '24 at 08:13
5

The question suggests that the distinction between expressibility of truth and provability ought to be addressed. It may conceptually add some light to the present discussion to take into consideration Tarski's theorem of undefinability of a truth predicate. This highly significant theorem had been formulated before Gödel's incompleteness theorems, however, was overshadowed by them.

Recall that a truth predicate tells a statement is true whenever it is true, and a provability predicate tells a statement is provable whenever it is provable. The crucial point here is that though no truth predicate can be intra-lingually encoded for a large class of formal languages, a smaller class among them can encode provability for themselves.

A plain proof of Tarski's theorem in essentials is given by Bruno Poizat in his A Course in Model Theory: An Introduction to Contemporary Mathematical Logic (2000, Springer-Verlag, p. 123). I record it here for future reference, if needed:

Theorem 7.9 (Tarski's Theorem). The set of codes of true sentences of arithmetic is not definable by an arithmetic formula.

Proof. Suppose that there is a formula $V(x)$, in one free variable $x$, such that the numbers $n$ satisfying it are exactly the codes of true sentences.

The set $A$ of codes of formulas whose only free variable is $x$ is definable, as is the function $\phi$ that sends the pair $(n, m)$, where $n$ is in $A$, to the code of the sentence obtained by replacing the variable $x$ by the number $m$ in the formula coded by $n$.

Now let $V(x, y)$ denote the formula $V(\phi(x, y))$; we can see that this formula is satisfied by those pairs $(n, m)$ for which $n$ is the code of a formula having $x$ as its only free variable, such that the sentence obtained from it by replacing $x$ with $m$ is true.

Now let $n_{o}$ be the code of the formula $\neg V(x, x)$; we cannot avoid the following dilemma:

• If $V(no, no)$ is true, then $\neg V(no, no)$ is true.

• If $V(n_{o}, n_{o})$ is false, then $\neg V(n_{o}, n_{o})$ is false.

Another aspect of Löb's theorem worth a remark is that Hilbert–Bernays provability conditions are assumed.

For a “soft” discussion on the theorem in a broader setting, I'd recommend the philosopher Graham Priest's article Löb’s Theorem and Curry’s Paradox.

Tankut Beygu
  • 2,331
3

In essence, Löb's theorem deals with a pretty mind-bending idea in formal logic. You're right to think, "If something is provable, then it's true, right?" But here's the kicker: in the world of formal systems like PA (Peano Arithmetic), saying "if P is provable, then P is true" isn't as straightforward as it sounds.

This isn't just about proving specific statements like a math problem; it's about the system trying to talk about its own proofs. Löb's theorem shows that for a statement to be provable in PA, PA itself must prove that "if this statement is provable, then it's true." It's a bit like the system needing to check its own work before it can confidently say something is true.

The twist is, due to Gödel's incompleteness theorems, a system can't outright prove its own consistency (or, in simpler terms, can't 100% back up its own reliability). So, when we're in the realm of statements about the system's own proofs, things get trickier.

In casual terms, it's like saying, "If I can show my work is always right, then this particular piece of work is right." But the catch is proving that first part – showing your work is always right, especially when your work involves checking your own work! Löb's theorem navigates these tricky waters, showing us the limitations and capabilities of formal systems in proving statements about themselves.

  • 1
    “Lob’s theorem shows that for a statement to be provable in…”. No, it shows the converse of that. This direction is true, but easy (if PA proves P, of course it proves “if P is provable, then P”). – spaceisdarkgreen Feb 06 '24 at 01:20
2

To answer the specific question you asked, consider the formula

$\phi:=Prov (\ulcorner 0=1 \urcorner) \to 0=1$.

Given that $\neg A$ is defined as $A \to 0=1$ in $\sf PA$, it follows that $\phi$ is just saying $\neg Prov (0=1)$. The only way that could be is if $\sf PA$ is consistent, since the Principle of Explosion holds.

So, if $\sf PA$ proves $\sf \phi$, then it has proven its own consistency, which contradicts Gödel’s Second Incompleteness Theorem. This is why soundness cannot be proven for arbitrary formulas in theories at least as strong as $\sf PA$.

PW_246
  • 1,256
  • So $\phi$ is an example of a formula that is true but can not be proven, yes? But how does that show that "if P is provable in PA then P is true" is not obviously true? Can you give an example of a formula that can be proven but is false? That would convince me of the nontriviality. – G. Bellaard Feb 05 '24 at 21:53
  • While it is true for $\sf PA$ specifically that if it proves a formula $\psi$, then $\psi$ is true, as others have mentioned, that doesn’t hold for an arbitrary theory $\sf T$ that proves $\sf PA$. Such is the case when $\sf T=\sf PA + \neg Con(\sf PA)$ since such a system is consistent, but it proves that it is inconsistent since it proves both $\sf PA$ and $\neg Con(\sf PA)$. – PW_246 Feb 05 '24 at 23:11