Gödel numbering

A Gödel numbering is any way of assigning numbers to the formulas of a language. This is often useful in allowing sentences of a language to be self-referential. The number associated with a formula ϕ is called its Gödel number and is denoted ⌜⁢ϕ⁢⌝.

More formally, if ℒ is a language and 𝒢 is a surjectivepartial function from the terms of ℒ to the formulas over ℒ then 𝒢 is a Gödel numbering. ⌜⁢ϕ⁢⌝ may be any term t such that 𝒢⁢(t)=ϕ. Note that 𝒢 is not defined within ℒ (there is no formula or object of ℒ representing 𝒢), however properties of it (such as being in the domain of 𝒢, being a subformula, and so on) are.

Athough anything meeting the properties above is a Gödel numbering, depending on the specific language and usage, any of the following properties may also be desired (and can often be found if more effort is put into the numbering):