[2025-10-22T15:43:30+01:00] User Prompt
"What are Gödel numbers?"
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.
| Step | Action | Purpose |
|---|---|---|
| 1. Symbol Codes | Assign each primitive symbol a unique integer code (e.g., 0→1, S→2, +→3, =→4, (→5, )→6, etc.). | Represent syntax numerically. |
| 2. String Encoding | For 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 Predicates | Define 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-Reference | Using diagonalization, construct G ≈ “G is not provable.” | Derive true-but-unprovable and unprovable-consistency results. |
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.
| Aspect | What Gödel Numbering Achieves |
|---|---|
| Self-reference | Makes it possible to construct statements that refer to their own provability. |
| Arithmetization of Syntax | Turns meta-mathematical talk into arithmetic facts. |
| Computability Legacy | Prefigures code-as-data, compilers, and the Halting Problem (Turing). |
| Foundational Impact | Enables Incompleteness Theorems; reshapes logic and philosophy of math. |