{
  "aliases": [
    "appel-haken-proof",
    "the-computer-assisted-proof-of-the-four-colour-theorem"
  ],
  "backlinks": null,
  "body": "\n## Example\n\nThe [[four color theorem|0M406JC8J1]] says that the vertices of every finite loopless [[planar graph|029JQEK15B]] can be colored with four colors so that adjacent vertices get different colors.\nKenneth Appel and Wolfgang Haken announced a proof in 1976, and they published it in 1977 in the *Illinois Journal of Mathematics*, in two parts.\nWe check that the proof is a [[computer-assisted proof|MC18C7BMFT]], and then we follow how mathematicians came to accept it.\n\n1. The first written reduction. The proof studies a [[minimal counterexample|JGRCNPKNGG]], a planar graph that needs five colors and has as few vertices as possible. A written argument, called discharging, shows that such a graph must contain at least one configuration from a fixed finite list. A list with this property is called an unavoidable set.\n2. The second written reduction. A configuration is called reducible when it cannot occur in a minimal counterexample. The reason is that a four-coloring of the smaller graph without the configuration would extend to the whole graph.\n3. The computer part. A program showed that each configuration of the unavoidable set is reducible. The set had more than a thousand configurations, and the checks took over a thousand hours of computer time.\n4. The conclusion. By step 1 a minimal counterexample must contain a configuration from the list, and by step 3 it cannot contain one. So no counterexample exists.\n5. Steps 1 and 2 are written proofs, and step 3 is a computation that no person could repeat by hand, so the proof is computer-assisted.\n\n## Remarks\n\nAcceptance took two decades and came in stages.\nAt first many mathematicians doubted a proof that no person could read in full, and the doubt was about the method as much as about this proof.\n\nThe written part had errors too.\nIn 1981 Ulrich Schmidt checked part of the discharging argument in his master's thesis and found an error in it.\nAppel and Haken corrected this error, and others that readers had found, in their 1989 book *Every Planar Map is Four Colorable*.\n\nNeil Robertson, Daniel Sanders, Paul Seymour and Robin Thomas announced a new proof in 1996 and published it in 1997.\nIt follows the same plan with an unavoidable set of $633$ configurations and with its own programs.\nIn 2005 Georges Gonthier, with Benjamin Werner, checked a proof in the Coq proof assistant.\nAfter that check, a reader must trust only the small kernel of Coq and the formal statement of the theorem.\n\nSo a computer-assisted proof is accepted the way other proofs are: other people check it, over time, by independent means.\nThe example also shows that the written part of such a proof can fail, and that the program is not the only source of doubt.\nAlfred Kempe's incorrect proof of 1879 belongs to the history of the same theorem, and [[famous incorrect proofs|1CV4HTA6C8]] tells it.\n\n## Explanations\n\n### L1 human\n\nThe four color theorem says that four colors are enough for any map, if neighboring countries must get different colors.\nAppel and Haken proved it in 1976.\nThey showed that every map, however large, contains one of more than a thousand small patterns.\nThen a computer showed that none of these patterns can appear in a smallest map that needs five colors.\nNo person could check the computer's work by hand, so many mathematicians felt uneasy.\nOver the next thirty years others found and fixed small errors, wrote a new and simpler proof, and finally had the whole proof checked by a proof-checking program.\n\n### L2 human\n\nWe follow the logic of the proof as a [[proof by contradiction|0J0XBKG64S]].\n\n1. Assume that some planar graph needs five colors.\n2. Among all such graphs, choose one with the fewest vertices, and call it $G$.\n3. By the unavoidability theorem, $G$ contains a configuration $C$ from the list.\n4. The program has checked that $C$ is reducible. We delete or contract part of $C$ and get a smaller planar graph $G'$, which has a four-coloring by the choice of $G$.\n5. Reducibility means that this four-coloring of $G'$ can be changed and extended to all of $G$. So $G$ has a four-coloring, which contradicts step 1.\n\nThe smallest case of step 5 shows the idea.\nIf $G$ had a vertex $v$ with at most three neighbors, we would delete $v$, four-color the rest, and give $v$ a color that its at most three neighbors do not use.\nSo a vertex of degree at most $3$ is a reducible configuration, and the program handles hundreds of larger ones in the same spirit.\n\nThe typical use of this pattern is a theorem whose minimal counterexample is forced to contain one of many small structures.\nWatch out for the idea that the computer proved the theorem alone.\nSteps 2, 3 and 5 rest on written arguments, and the error that Schmidt found was in the written part behind step 3.\n",
  "commit": "35d5da104f2b90e930cd762570f4d67e50027674",
  "front": {
    "aliases": [
      "appel-haken-proof",
      "the-computer-assisted-proof-of-the-four-colour-theorem"
    ],
    "audience": "research",
    "instance_of": [
      "MC18C7BMFT"
    ],
    "kind": "example",
    "msc": [
      "05C15",
      "00A35"
    ],
    "name": "The computer-assisted proof of the four color theorem",
    "sources": [
      {
        "locator": "History",
        "url": "https://en.wikipedia.org/wiki/Four_color_theorem"
      },
      {
        "locator": "Summary of proof ideas",
        "url": "https://en.wikipedia.org/wiki/Four_color_theorem"
      },
      {
        "locator": "Theorems proved with the help of computer programs",
        "url": "https://en.wikipedia.org/wiki/Computer-assisted_proof"
      }
    ],
    "tag": "17BMQS5PTG",
    "topics": [
      "1BTHSHST4M"
    ],
    "uses": [
      "MC18C7BMFT",
      "0M406JC8J1",
      "JGRCNPKNGG",
      "029JQEK15B"
    ]
  },
  "kind": "example",
  "link": "https://math2.tamnd.com/node/17BMQS5PTG/",
  "links": [
    {
      "field": "instance_of",
      "target": "MC18C7BMFT"
    },
    {
      "field": "topics",
      "target": "1BTHSHST4M"
    },
    {
      "field": "uses",
      "target": "MC18C7BMFT"
    },
    {
      "field": "uses",
      "target": "0M406JC8J1"
    },
    {
      "field": "uses",
      "target": "JGRCNPKNGG"
    },
    {
      "field": "uses",
      "target": "029JQEK15B"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/17BMQS5PTG.md",
  "msc": [
    "05C15",
    "00A35"
  ],
  "name": "The computer-assisted proof of the four color theorem",
  "prov": {
    "log": "https://github.com/tamnd/math2/blob/main/prov/17B/17BMQS5PTG.jsonl",
    "quarantine": null,
    "unchecked": null
  },
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/17B/17BMQS5PTG.md",
  "status": null,
  "tag": "17BMQS5PTG",
  "uri": "m2://17BMQS5PTG",
  "url": "https://math2.tamnd.com/wiki/the-computer-assisted-proof-of-the-four-color-theorem/",
  "writing": {
    "tag": "17BMQS5PTG",
    "kind": "example",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
