Gödel Numbers

[2025-10-22T15:43:30+01:00] User Prompt
"What are Gödel numbers?"

Definition

Gödel numbers are a systematic way to encode every symbol, formula, and proof of a formal logical system as a unique natural number. By arithmetizing syntax—assigning numbers to symbols and combining them via prime exponents—Gödel made it possible to express statements about proofs and formulas as statements within arithmetic. This device enabled the self-referential constructions behind the Incompleteness Theorems.

Why Gödel Invented Them

How the Numbering Works (Simplified)

StepActionPurpose
1. Symbol CodesAssign each primitive symbol a unique integer code (e.g., 0→1, S→2, +→3, =→4, (→5, )→6, etc.).Represent syntax numerically.
2. String EncodingFor a formula with codes a_1,...,a_n, define its Gödel number as 2^{a_1}·3^{a_2}·5^{a_3}·7^{a_4}·…Use unique prime factorization to ensure unique decoding.
3. Arithmetic PredicatesDefine predicates like Form(x), Proof(y,x), Prov(x) arithmetically (divisibility/exponents).Express “x is a formula,” “y proves x,” “x is provable.”
4. Self-ReferenceUsing diagonalization, construct G ≈ “G is not provable.”Derive true-but-unprovable and unprovable-consistency results.

Tiny Worked Example

Suppose we map S→2, (→5, 0→1, )→6. The string S(0) has code sequence [2,5,1,6]. Its Gödel number is 2^2 · 3^5 · 5^1 · 7^6. Because prime factorization is unique, we can recover the exact symbol string from the single integer.

Conceptual Significance

AspectWhat Gödel Numbering Achieves
Self-referenceMakes it possible to construct statements that refer to their own provability.
Arithmetization of SyntaxTurns meta-mathematical talk into arithmetic facts.
Computability LegacyPrefigures code-as-data, compilers, and the Halting Problem (Turing).
Foundational ImpactEnables Incompleteness Theorems; reshapes logic and philosophy of math.

Summary

References

  1. Davis, M. (Ed.). (1965). The Undecidable. Raven Press.
  2. Gödel, K. (1931). Über formal unentscheidbare Sätze der Principia Mathematica und verwandter Systeme I. Akademische Verlagsgesellschaft.
  3. Goldstein, R. (2005). Incompleteness: The proof and paradox of Kurt Gödel. W. W. Norton.
  4. Hofstadter, D. R. (1979). Gödel, Escher, Bach: An eternal golden braid. Basic Books.
  5. Nagel, E., & Newman, J. (1958). Gödel’s proof. New York University Press.