{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Statement\n\nThere is a finite signature $L$ with the following property.\nThe set of valid first-order [[sentences|DKFGQTRYZE]] of $L$, that is, of the $L$-sentences true in every $L$-structure, is not a [[computable set|PPGD5KW8JC]].\nEquivalently, no algorithm decides, for an arbitrary $L$-sentence, whether it is valid in [[first-order logic|086QKPF0A6]].\n\n## Remarks\n\nChurch proved the result in 1936 with the lambda calculus, and Turing proved it independently with [[Turing machines|758EYCN27B]].\nIn Turing's approach, one builds from each Turing machine $M$ a sentence $\\varphi_M$ that is valid exactly when $M$ halts on the empty input.\nA decision procedure for validity would then solve the [[halting problem|Z7TN2B35B0]], which is impossible.\n\nThe theorem gives a negative answer to Hilbert's Entscheidungsproblem.\nIt holds for every signature that contains a binary relation symbol.\nIt fails for signatures with only unary relation symbols: monadic first-order logic is decidable.\n\nBy [[Gödel's completeness theorem|WQ1ZE255SF]], the valid sentences are exactly the provable ones, so they form a computably enumerable set.\nSo validity is semi-decidable but not decidable.\n\n## Explanations\n\n### L1 human\n\nThe theorem says that there is no general mechanical method to decide whether a first-order sentence is logically true.\nA computer can list all proofs and so confirm every valid sentence eventually, but it cannot always confirm that a sentence is not valid.\n\n### L2 human\n\nChurch's theorem is the first-order counterpart of the undecidability of the halting problem.\nIt is the reason why automated theorem provers can only search for proofs, and may run forever.\nDecidable fragments, such as monadic logic, and decidable theories, such as [[Presburger arithmetic|B66JYY3K58]], are therefore valuable in computer science.\n",
  "commit": "547b6eddb8f2feb8d579f2d633d22a27b7e132fc",
  "front": {
    "about": [
      "086QKPF0A6"
    ],
    "kind": "statement",
    "msc": [
      "03B25",
      "03D35",
      "03B10"
    ],
    "name": "Church's theorem on undecidability of first-order logic",
    "role": "theorem",
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Entscheidungsproblem"
      }
    ],
    "tag": "VA6BNNY2YC",
    "uses": [
      "086QKPF0A6",
      "DKFGQTRYZE",
      "PPGD5KW8JC",
      "758EYCN27B",
      "Z7TN2B35B0",
      "WQ1ZE255SF"
    ]
  },
  "kind": "statement",
  "link": "https://math2.tamnd.com/node/VA6BNNY2YC/",
  "links": [
    {
      "field": "about",
      "target": "086QKPF0A6"
    },
    {
      "field": "uses",
      "target": "086QKPF0A6"
    },
    {
      "field": "uses",
      "target": "DKFGQTRYZE"
    },
    {
      "field": "uses",
      "target": "PPGD5KW8JC"
    },
    {
      "field": "uses",
      "target": "758EYCN27B"
    },
    {
      "field": "uses",
      "target": "Z7TN2B35B0"
    },
    {
      "field": "uses",
      "target": "WQ1ZE255SF"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/VA6BNNY2YC.md",
  "msc": [
    "03B25",
    "03D35",
    "03B10"
  ],
  "name": "Church's theorem on undecidability of first-order logic",
  "prov": null,
  "role": "theorem",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/VA6/VA6BNNY2YC.md",
  "status": null,
  "tag": "VA6BNNY2YC",
  "uri": "m2://VA6BNNY2YC",
  "url": "https://math2.tamnd.com/wiki/churchs-theorem-on-undecidability-of-first-order-logic/",
  "writing": {
    "tag": "VA6BNNY2YC",
    "kind": "statement",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      },
      {
        "what": "a source with a locator",
        "have": 0,
        "want": 1
      }
    ]
  }
}
