original link: https://web.archive.org/web/20160319050228/http://lesswrong.com/lw/t6/the_cartoon_guide_to_l%C3%B6bs_theorem/
current LW link: https://www.lesswrong.com/posts/ALCnqX6Xx8bpFMZq3/the-cartoon-guide-to-loeb-s-theorem
This page gives spoilers for the puzzle!
This pages states the puzzle and gives the solution.
Notation
Precedence:
 has high precedence, so e.g. has high precedence, so e.g. means means , and , and means means . .
 is a metalogical notion and has low precedence, so is a metalogical notion and has low precedence, so means means . .
Translating the puzzle using logic notation
Löb's theorem shows that if  , then
, then  .
.
The deduction theorem says that if  , then
, then  .
.
Applying the deduction theorem to Löb's theorem gives us  .
.
When translating to logic notation, it becomes obvious that the application of the deduction theorem is illegitimate, because we don't actually have  . This is the initial answer that Larry D'Anna gives in comments.
. This is the initial answer that Larry D'Anna gives in comments.
But now, suppose we define  , and walk through the proof of Löb's theorem for this new theory
, and walk through the proof of Löb's theorem for this new theory  . Then we would obtain the following implication: if
. Then we would obtain the following implication: if  , then
, then  . But clearly,
. But clearly,  since
 since  is one of the axioms of
 is one of the axioms of  . Therefore by modus ponens, we have
. Therefore by modus ponens, we have  , i.e.
, i.e.  . Now we can apply the deduction theorem to obtain
. Now we can apply the deduction theorem to obtain  . This means that our "Löb's theorem" for
. This means that our "Löb's theorem" for  must be incorrect (note: the proof is correct for
 must be incorrect (note: the proof is correct for  , which is why Löb's theorem is a theorem; it's just incorrect for
, which is why Löb's theorem is a theorem; it's just incorrect for  ), and somewhere in the ten-step proof is an error.
), and somewhere in the ten-step proof is an error.
Translating the Löb's theorem back to logic
http://yudkowsky.net/assets/44/LobsTheorem.pdf
Since the solution to the puzzle refers back to the proof of Löb's theorem, we first translate the proof from the cartoon version back to logic:
 by construction of by construction of 
 by hypothesis by hypothesis
 
 
 
 
 
 
 
 
Repeating the proof of Löb's theorem for modified theory
We now repeat the proof of Löb's theorem for  to see where the error is.
 to see where the error is.
 by construction of by construction of 
 because because is one of the axioms of is one of the axioms of 
 
 
 
 
 
So far, everything is fine. But can we assert  ? For
? For  , we had the following:
, we had the following:
- A1: For each sentence  , if , if then then 
We need the following:
- A1′: For each sentence  , if , if then then 
Since  has more axioms than
 has more axioms than  , we know that
, we know that  can prove everything that
 can prove everything that  can. Thus, compared to A1, both the antecedent and consequent of A1′ are stronger, so A1′ does not necessarily follow from A1.
 can. Thus, compared to A1, both the antecedent and consequent of A1′ are stronger, so A1′ does not necessarily follow from A1.
Suppose we take  in A1′ to be
 in A1′ to be  . Then we obtain
. Then we obtain
- If  then then 
Other ways we might try to get step 8 to work:
 
- if  , then , then -- i think this is the one about which Larry says "ARGH WHAT ARE YOU DOING" -- i think this is the one about which Larry says "ARGH WHAT ARE YOU DOING"
But can we prove that we can never get step 8 for  ? Well, this is exactly what the puzzle statement does -- it assumes the proof goes through, and derives an absurdity! (? actually, i'm not sure this is actually a contradiction. If we assume PA is consistent, then it seems to be a contradiction. I think this is the point nate soares and alex flint are trying to make in the comments. but we can re-word the puzzle to say one should find the first error.)
? Well, this is exactly what the puzzle statement does -- it assumes the proof goes through, and derives an absurdity! (? actually, i'm not sure this is actually a contradiction. If we assume PA is consistent, then it seems to be a contradiction. I think this is the point nate soares and alex flint are trying to make in the comments. but we can re-word the puzzle to say one should find the first error.)
Other questions to answer
- does  in in still mean provability about still mean provability about , or about itself? , or about itself?
- are we removing a layer or adding one?
- can't  prove everything prove everything can? yes, but this doesn't mean we can substitute implications automatically because the consequent also gets stronger can? yes, but this doesn't mean we can substitute implications automatically because the consequent also gets stronger