Math 2.0

Areas Reasoning and proof Rigor and the acceptance of proofs Example

The computer-assisted proof of the four color theorem

Builds on Computer-assisted proofFour colour theoremMinimal counterexamplePlanar graph

Example

The four color theorem says that the vertices of every finite loopless planar graph can be colored with four colors so that adjacent vertices get different colors. Kenneth Appel and Wolfgang Haken announced a proof in 1976, and they published it in 1977 in the Illinois Journal of Mathematics, in two parts. We check that the proof is a computer-assisted proof, and then we follow how mathematicians came to accept it.

  1. The first written reduction. The proof studies a minimal counterexample, 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.

Remarks

Acceptance took two decades and came in stages. At 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.

The written part had errors too. In 1981 Ulrich Schmidt checked part of the discharging argument in his master's thesis and found an error in it. Appel and Haken corrected this error, and others that readers had found, in their 1989 book Every Planar Map is Four Colorable.

Neil Robertson, Daniel Sanders, Paul Seymour and Robin Thomas announced a new proof in 1996 and published it in 1997. It follows the same plan with an unavoidable set of 633633 configurations and with its own programs. In 2005 Georges Gonthier, with Benjamin Werner, checked a proof in the Coq proof assistant. After that check, a reader must trust only the small kernel of Coq and the formal statement of the theorem.

So a computer-assisted proof is accepted the way other proofs are: other people check it, over time, by independent means. The example also shows that the written part of such a proof can fail, and that the program is not the only source of doubt. Alfred Kempe's incorrect proof of 1879 belongs to the history of the same theorem, and famous incorrect proofs tells it.

Going deeper

For a student

We follow the logic of the proof as a proof by contradiction.

  1. Assume that some planar graph needs five colors.
  2. Among all such graphs, choose one with the fewest vertices, and call it GG.
  3. By the unavoidability theorem, GG contains a configuration CC from the list.
  4. The program has checked that CC is reducible. We delete or contract part of CC and get a smaller planar graph G′G', which has a four-coloring by the choice of GG.
  5. Reducibility means that this four-coloring of G′G' can be changed and extended to all of GG. So GG has a four-coloring, which contradicts step 1.

The smallest case of step 5 shows the idea. If GG had a vertex vv with at most three neighbors, we would delete vv, four-color the rest, and give vv a color that its at most three neighbors do not use. So a vertex of degree at most 33 is a reducible configuration, and the program handles hundreds of larger ones in the same spirit.

The typical use of this pattern is a theorem whose minimal counterexample is forced to contain one of many small structures. Watch out for the idea that the computer proved the theorem alone. Steps 2, 3 and 5 rest on written arguments, and the error that Schmidt found was in the written part behind step 3.

Reading path

To understand this page from the ground up, read these 87 pages in order. The foundations come first. The path takes the proofs Proof of the commutativity of addition by induction, Proof of unique readability by counting brackets, Proof of the double negation law by a truth table, Proof of strong induction from ordinary induction, Proof of the negation of a universal statement, Proof of the well-ordering principle from strong induction, Proof of the law of excluded middle by a truth table.

  1. Alphabet concept
  2. Arity concept
  3. Boolean function concept
  4. Countermodel concept
  5. Definition by recursion concept
  6. Effectively decidable set concept
  7. Formal language concept
  8. Function concept
  9. Graph colouring definition
  10. Induction on well-formed formulas concept
  11. Mathematical statement definition
  12. Natural numbers object
  13. Peano axioms concept
  14. Planar graph definition
  15. Proposition concept
  16. Propositional letter concept
  17. Set concept
  18. String concept
  19. Tuple concept
  20. Signature concept
  21. K-colourable graph definition
  22. Logical connective definition
  23. Connectives in mathematical language concept
  24. Successor function definition
  25. Conjunction definition
  26. Disjunction definition
  27. Material implication definition
  28. Principle of bivalence concept
  29. Predicate concept
  30. Predicate definition
  31. Chromatic number definition
  32. Addition of natural numbers definition
  33. Conditional statements concept
  34. The successor function is injective statement
  35. Zero is not a successor statement
  36. Term concept
  37. Biconditional definition
  38. Negation concept
  39. Negation definition
  40. Atomic formula concept
  41. Quantifiers in mathematical writing concept
  42. Order on the natural numbers definition
  43. Four colour theorem statement
  44. Truth table concept
  45. Material implication concept
  46. Conjunction concept
  47. Disjunction concept
  48. Negating mathematical statements concept
  49. Tautology concept
  50. Biconditional concept
  51. Universal quantifier concept
  52. Universal quantifier definition
  53. Existential quantifier definition
  54. Logical equivalence concept
  55. Proof of the law of excluded middle by a truth table proof
  56. Logical connective concept
  57. Existential quantifier concept
  58. Well-formed formula concept
  59. Law of excluded middle statement
  60. Proof of the double negation law by a truth table proof
  61. Propositional formula definition
  62. Propositional formula concept
  63. Double negation law statement
  64. Formal system concept
  65. Proof of unique readability by counting brackets proof
  66. Unique readability theorem statement
  67. Proof of the negation of a universal statement proof
  68. Truth valuation concept
  69. Negation of a universal statement statement
  70. Counterexample concept
  71. Logical consequence concept
  72. Rule of inference concept
  73. Modus ponens concept
  74. Mathematical proof concept
  75. Proof by contradiction concept
  76. Direct proof concept
  77. Mathematical induction concept
  78. Proof of the commutativity of addition by induction proof
  79. Proof of strong induction from ordinary induction proof
  80. Proof by cases concept
  81. Commutativity of addition statement
  82. Strong induction statement
  83. Proof of the well-ordering principle from strong induction proof
  84. Well-ordering principle statement
  85. Minimal counterexample concept
  86. Computer-assisted proof concept
  87. The computer-assisted proof of the four color theorem example

Further reading

  1. Web https://en.wikipedia.org/wiki/Four_color_theorem, History
  2. Web https://en.wikipedia.org/wiki/Four_color_theorem, Summary of proof ideas
  3. Web https://en.wikipedia.org/wiki/Computer-assisted_proof, Theorems proved with the help of computer programs
About this page
Tag17BMQS5PTG
URIm2://17BMQS5PTG
Aliasesappel-haken-proof, the-computer-assisted-proof-of-the-four-colour-theorem
Kindexample
WritingW0 stub
MSC05C15, 00A35
Instance ofComputer-assisted proof
Part ofRigor and the acceptance of proofs
UsesComputer-assisted proof, Four colour theorem, Minimal counterexample, Planar graph
Changed23 November 2026, first written 17 November 2026

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • an inventory row: the row of the inventory that the node accounts for (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

History

Each change to this page, from its provenance log. A change by an agent names its run.

The changes to this page, the oldest first
DateChangeFieldBy
2026-11-17addthe whole nodetamnd
2026-11-23changethe field aliasestamnd
2026-11-23changethe section Exampletamnd
2026-11-23changethe explanation L1tamnd
2026-11-23changethe explanation L2tamnd
2026-11-23changethe section Remarkstamnd
2026-11-23changethe field nametamnd

What links here

No page links to this page yet.