User:IssaRice/Computability and logic/Diagonalization lemma

From Machinelearning

Rogers's fixed point theorem

Let be a total computable function. Then there exists an index such that .

Diagonalization lemma

(semantic version)

Let be a formula with one free variable. Then there exists a sentence such that iff .

Define to be where . In other words, given a number , the function finds the formula with that Godel number, then diagonalizes it (i.e. substitutes the Godel number of the formula into the formula itself).