Math 2.0

Mathematical logic and foundations Definition

Gödel numbering

Builds on Well-formed formulaComputable functionComputable set

Definition

Let Σ\Sigma be a countable alphabet whose symbols are listed effectively, and let Σ∗\Sigma^* be the set of finite strings over Σ\Sigma. A Gödel numbering of Σ∗\Sigma^* is a map ⌜⋅⌝ ⁣:Σ∗→ℕ\ulcorner \cdot \urcorner \colon \Sigma^* \to \N such that:

  1. ⌜⋅⌝\ulcorner \cdot \urcorner is injective;
  2. ⌜⋅⌝\ulcorner \cdot \urcorner is computable;
  3. the set of codes {⌜w⌝:w∈Σ∗}\set{\ulcorner w \urcorner : w \in \Sigma^*} is a computable set, and the inverse map from codes to strings is computable.

For a formal language, a Gödel numbering of its formulas or proofs is the restriction of a Gödel numbering of its strings of symbols.

Remarks

Example: give the symbols injective codes c(s)≥1c(s) \ge 1, and let p1=2,p2=3,p3=5,…p_1 = 2, p_2 = 3, p_3 = 5, \ldots be the primes. Set ⌜s1s2⋯sn⌝=p1c(s1)p2c(s2)⋯pnc(sn)\ulcorner s_1 s_2 \cdots s_n \urcorner = p_1^{c(s_1)} p_2^{c(s_2)} \cdots p_n^{c(s_n)}. By unique factorization the map is injective, and the exponents of a number can be found by trial division, so all three clauses hold.

Non-example: the map that sends each string to its length is computable but fails clause 1, since different strings of the same length get the same number.

The code of a formula φ\varphi is written ⌜φ⌝\ulcorner \varphi \urcorner, and in a theory of arithmetic its numeral is also written ⌜φ⌝\ulcorner \varphi \urcorner. Any two Gödel numberings are related by a computable bijection between their sets of codes.

Reading path

To understand this page from the ground up, read these 4 pages in order. The foundations come first.

Show the path as a graph
Each page uses the pages above it. The colour of the bar on a box shows how strong the evidence is, and the box also gives it as text. The list has the same pages.
  • no evidence level
  1. Computable function concept
  2. Computable set concept
  3. Well-formed formula concept
  4. Gödel numbering definition

Further reading

  1. Web https://en.wikipedia.org/wiki/Gödel_numbering
About this page
Tag7RP93F2W47
URIm2://7RP93F2W47
Kinddefinition
WritingW0 stub
MSC03F40
DefinesGödel numbering
UsesWell-formed formula, Computable function, Computable set
Changed2 November 2026

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • a source with a locator (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

No page links to this page yet.