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.
- 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.
- 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.
- 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.
- 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.
- 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 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.
- Assume that some planar graph needs five colors.
- Among all such graphs, choose one with the fewest vertices, and call it .
- By the unavoidability theorem, contains a configuration from the list.
- The program has checked that is reducible. We delete or contract part of and get a smaller planar graph , which has a four-coloring by the choice of .
- Reducibility means that this four-coloring of can be changed and extended to all of . So has a four-coloring, which contradicts step 1.
The smallest case of step 5 shows the idea. If had a vertex with at most three neighbors, we would delete , four-color the rest, and give a color that its at most three neighbors do not use. So a vertex of degree at most 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.
- Alphabet concept
- Arity concept
- Boolean function concept
- Countermodel concept
- Definition by recursion concept
- Effectively decidable set concept
- Formal language concept
- Function concept
- Graph colouring definition
- Induction on well-formed formulas concept
- Mathematical statement definition
- Natural numbers object
- Peano axioms concept
- Planar graph definition
- Proposition concept
- Propositional letter concept
- Set concept
- String concept
- Tuple concept
- Signature concept
- K-colourable graph definition
- Logical connective definition
- Connectives in mathematical language concept
- Successor function definition
- Conjunction definition
- Disjunction definition
- Material implication definition
- Principle of bivalence concept
- Predicate concept
- Predicate definition
- Chromatic number definition
- Addition of natural numbers definition
- Conditional statements concept
- The successor function is injective statement
- Zero is not a successor statement
- Term concept
- Biconditional definition
- Negation concept
- Negation definition
- Atomic formula concept
- Quantifiers in mathematical writing concept
- Order on the natural numbers definition
- Four colour theorem statement
- Truth table concept
- Material implication concept
- Conjunction concept
- Disjunction concept
- Negating mathematical statements concept
- Tautology concept
- Biconditional concept
- Universal quantifier concept
- Universal quantifier definition
- Existential quantifier definition
- Logical equivalence concept
- Proof of the law of excluded middle by a truth table proof
- Logical connective concept
- Existential quantifier concept
- Well-formed formula concept
- Law of excluded middle statement
- Proof of the double negation law by a truth table proof
- Propositional formula definition
- Propositional formula concept
- Double negation law statement
- Formal system concept
- Proof of unique readability by counting brackets proof
- Unique readability theorem statement
- Proof of the negation of a universal statement proof
- Truth valuation concept
- Negation of a universal statement statement
- Counterexample concept
- Logical consequence concept
- Rule of inference concept
- Modus ponens concept
- Mathematical proof concept
- Proof by contradiction concept
- Direct proof concept
- Mathematical induction concept
- Proof of the commutativity of addition by induction proof
- Proof of strong induction from ordinary induction proof
- Proof by cases concept
- Commutativity of addition statement
- Strong induction statement
- Proof of the well-ordering principle from strong induction proof
- Well-ordering principle statement
- Minimal counterexample concept
- Computer-assisted proof concept
- The computer-assisted proof of the four color theorem example
Further reading
- Web https://en.wikipedia.org/wiki/Four_color_theorem, History
- Web https://en.wikipedia.org/wiki/Four_color_theorem, Summary of proof ideas
- Web https://en.wikipedia.org/wiki/Computer-assisted_proof, Theorems proved with the help of computer programs
About this page
| Tag | 17BMQS5PTG |
|---|---|
| URI | m2://17BMQS5PTG |
| Aliases | appel-haken-proof, the-computer-assisted-proof-of-the-four-colour-theorem |
| Kind | example |
| Writing | W0 stub |
| MSC | 05C15, 00A35 |
| Instance of | Computer-assisted proof |
| Part of | Rigor and the acceptance of proofs |
| Uses | Computer-assisted proof, Four colour theorem, Minimal counterexample, Planar graph |
| Changed | 23 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.
| Date | Change | Field | By |
|---|---|---|---|
| 2026-11-17 | add | the whole node | tamnd |
| 2026-11-23 | change | the field aliases | tamnd |
| 2026-11-23 | change | the section Example | tamnd |
| 2026-11-23 | change | the explanation L1 | tamnd |
| 2026-11-23 | change | the explanation L2 | tamnd |
| 2026-11-23 | change | the section Remarks | tamnd |
| 2026-11-23 | change | the field name | tamnd |
What links here
No page links to this page yet.