User:IssaRice/Computability and logic/Diagonalization lemma (Yanofsky method): Difference between revisions

From Machinelearning
No edit summary
No edit summary
Line 7: Line 7:
That means that e.g. each element of <math>\mathit{Lind}^0</math> is not a sentence, but rather a set of sentences that are all provably equivalent. But every sentence is either true or false, so doesn't this mean <math>\mathit{Lind}^0</math> has just two element, <math>[\top]_{\sim}</math> and <math>[\bot]_{\sim}</math> (i.e. the class of true sentences and the class of false sentences)? No! That's because even if two sentences are both true, our theory may be unable to prove that it is so! That's the whole point of Gödel's first incompleteness theorem, which shows us that there can be true sentences (such as the famous "I am not provable" sentence <math>G</math>) which are not provable (so that even though <math>G</math> is true, <math>G \notin [2+2=5]_\sim</math>).
That means that e.g. each element of <math>\mathit{Lind}^0</math> is not a sentence, but rather a set of sentences that are all provably equivalent. But every sentence is either true or false, so doesn't this mean <math>\mathit{Lind}^0</math> has just two element, <math>[\top]_{\sim}</math> and <math>[\bot]_{\sim}</math> (i.e. the class of true sentences and the class of false sentences)? No! That's because even if two sentences are both true, our theory may be unable to prove that it is so! That's the whole point of Gödel's first incompleteness theorem, which shows us that there can be true sentences (such as the famous "I am not provable" sentence <math>G</math>) which are not provable (so that even though <math>G</math> is true, <math>G \notin [2+2=5]_\sim</math>).


In the paper, Yanofsky toggles fluidly between thinking of a formula like <math>\mathcal B(x)</math> as a formula vs a set of formulas whose representative is <math>\mathcal B(x)</math> (i.e. the class <math>[\mathcal B(x)]_\sim</math>).
In the paper, Yanofsky toggles fluidly between thinking of a formula like <math>\mathcal B(x)</math> as a formula vs a set of formulas whose representative is <math>\mathcal B(x)</math> (i.e. the class <math>[\mathcal B(x)]_\sim</math>). To avoid confusion, we will take care to always denote sets of formulas using the equivalence class notation <math>[-]_\sim</math>.


Acknowledgments: Thanks to Rupert McCallum for helping me work through the proof.
Acknowledgments: Thanks to Rupert McCallum for helping me work through the proof.

Revision as of 20:46, 27 July 2021

This page is just a rewritten version of the proof of the diagonalization lemma from Yanofsky's paper. There are some parts I found difficult to understand/gaps that I thought should be filled, so this version will hopefully be much more complete.

Theorem (Diagonalization lemma). Let be some nice theory (I don't remember the exact conditions, but Peano Arithmetic or Robinson Arithmetic would work). For any single-place formula with as its only free variable, there exists a sentence (closed formula) such that .

Proof. We will use what's called the wikipedia:Lindenbaum–Tarski algebra in our proof, which the Yanofsky paper just calls Lindenbaum classes. The idea is to define an equivalence an equivalence relation on formulas, so that iff our theory can prove that and are logically equivalent. In other words, we define iff . This is easily verified to be an equivalence relation. One twist is that it doesn't make sense to compare two formulas with differing arity. For instance, what does it even mean to say "2+2=5" and "x+5=7" are or are not provably equivalent? For this reason, we make a separate equivalence relation for each arity, and so we end up with separate quotients for each arity. For , we let be the set of Lindenbaum classes of formulas with free variables.

That means that e.g. each element of is not a sentence, but rather a set of sentences that are all provably equivalent. But every sentence is either true or false, so doesn't this mean has just two element, and (i.e. the class of true sentences and the class of false sentences)? No! That's because even if two sentences are both true, our theory may be unable to prove that it is so! That's the whole point of Gödel's first incompleteness theorem, which shows us that there can be true sentences (such as the famous "I am not provable" sentence ) which are not provable (so that even though is true, ).

In the paper, Yanofsky toggles fluidly between thinking of a formula like as a formula vs a set of formulas whose representative is (i.e. the class ). To avoid confusion, we will take care to always denote sets of formulas using the equivalence class notation .

Acknowledgments: Thanks to Rupert McCallum for helping me work through the proof.

See also