{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Definition\n\nLet $\\Sigma$ be a countable alphabet whose symbols are listed effectively, and let $\\Sigma^*$ be the set of finite strings over $\\Sigma$.\nA *Gödel numbering* of $\\Sigma^*$ is a map $\\ulcorner \\cdot \\urcorner \\colon \\Sigma^* \\to \\N$ such that:\n\n1. $\\ulcorner \\cdot \\urcorner$ is injective;\n2. $\\ulcorner \\cdot \\urcorner$ is computable;\n3. the set of codes $\\set{\\ulcorner w \\urcorner : w \\in \\Sigma^*}$ is a [[computable set|PPGD5KW8JC]], and the inverse map from codes to strings is computable.\n\nFor a formal language, a Gödel numbering of its [[formulas|HYJ10AF6RT]] or proofs is the restriction of a Gödel numbering of its strings of symbols.\n\n## Remarks\n\nExample: give the symbols injective codes $c(s) \\ge 1$, and let $p_1 = 2, p_2 = 3, p_3 = 5, \\ldots$ be the primes.\nSet $\\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)}$.\nBy unique factorization the map is injective, and the exponents of a number can be found by trial division, so all three clauses hold.\n\nNon-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.\n\nThe code of a formula $\\varphi$ is written $\\ulcorner \\varphi \\urcorner$, and in a theory of arithmetic its numeral is also written $\\ulcorner \\varphi \\urcorner$.\nAny two Gödel numberings are related by a computable bijection between their sets of codes.\n",
  "commit": "5fc425f97f1f6b11da5892c2948ef8c5d8805665",
  "front": {
    "defines": "MFJXPAF0R0",
    "kind": "definition",
    "msc": [
      "03F40"
    ],
    "name": "Gödel numbering",
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Gödel_numbering"
      }
    ],
    "tag": "7RP93F2W47",
    "uses": [
      "HYJ10AF6RT",
      "KZSB5E471K",
      "PPGD5KW8JC"
    ]
  },
  "kind": "definition",
  "link": "https://math2.tamnd.com/node/7RP93F2W47/",
  "links": [
    {
      "field": "defines",
      "target": "MFJXPAF0R0"
    },
    {
      "field": "uses",
      "target": "HYJ10AF6RT"
    },
    {
      "field": "uses",
      "target": "KZSB5E471K"
    },
    {
      "field": "uses",
      "target": "PPGD5KW8JC"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/7RP93F2W47.md",
  "msc": [
    "03F40"
  ],
  "name": "Gödel numbering",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/7RP/7RP93F2W47.md",
  "status": null,
  "tag": "7RP93F2W47",
  "uri": "m2://7RP93F2W47",
  "url": "https://math2.tamnd.com/wiki/godel-numbering-definition/",
  "writing": {
    "tag": "7RP93F2W47",
    "kind": "definition",
    "level": "W0",
    "next": [
      {
        "what": "a source with a locator",
        "have": 0,
        "want": 1
      }
    ]
  }
}
