ConceptComplete

Gödel Numbering and Representability

Gödel's incompleteness theorems rely on encoding syntactic objects (formulas, proofs) as natural numbers, enabling a formal system to "talk about itself." This self-reference is achieved through Gödel numbering and the representability of computable functions in arithmetic.


Gödel Numbering

Definition6.1Gödel Numbering

A Gödel numbering is an effective injective map \ulcorner \cdot \urcorner from the set of expressions (terms, formulas, proofs) of a formal system to the natural numbers. Each expression φ\varphi is assigned a unique Gödel number φN\ulcorner \varphi \urcorner \in \mathbb{N}, and the map is chosen so that basic syntactic operations (substitution, checking well-formedness) correspond to computable functions on Gödel numbers.

Definition6.2Representability

A function f:NkNf: \mathbb{N}^k \to \mathbb{N} is representable in a theory TT if there exists a formula φ(x1,,xk,y)\varphi(x_1, \ldots, x_k, y) such that for all n1,,nkNn_1, \ldots, n_k \in \mathbb{N}: Tφ(n1,,nk,f(n1,,nk))T \vdash \varphi(\underline{n_1}, \ldots, \underline{n_k}, \underline{f(n_1, \ldots, n_k)}) and Ty(φ(n1,,nk,y)y=f(n1,,nk))T \vdash \forall y \, (\varphi(\underline{n_1}, \ldots, \underline{n_k}, y) \to y = \underline{f(n_1, \ldots, n_k)}), where m\underline{m} denotes the numeral for mm.

ExampleAddition is Representable

In Peano Arithmetic, addition is represented by the formula φ(x,y,z)(x+y=z)\varphi(x, y, z) \equiv (x + y = z). For any m,nm, n: PA m+n=m+n\vdash \underline{m} + \underline{n} = \underline{m+n} and PA z(m+n=zz=m+n)\vdash \forall z \, (\underline{m} + \underline{n} = z \to z = \underline{m+n}).


The Diagonal Lemma

Definition6.3Diagonal Lemma (Fixed-Point Lemma)

For any formula ψ(x)\psi(x) with one free variable, there exists a sentence σ\sigma such that Tσψ(σ)T \vdash \sigma \leftrightarrow \psi(\ulcorner \sigma \urcorner). Here TT is any theory extending Robinson arithmetic QQ. The sentence σ\sigma effectively "says of itself" that ψ\psi holds of its Gödel number.

RemarkSelf-Reference

The diagonal lemma is the formal counterpart of self-referential statements like "this sentence is not provable." It is the technical engine behind both incompleteness theorems and Tarski's undefinability theorem. The construction uses Gödel numbering and the representability of substitution.