Skip to content
ContentLora

    Tip: press / anywhere to search.

    Explainer

    Computer-assisted proofs: from the four colour theorem to SAT solvers

    A computer-assisted proof uses a computer to do part of the work, often checking more cases than any person could. A landmark early example is Appel and Haken's 1976 proof of the four colour theorem.[1] Running code is not the same as proving it correct, so later work rechecked such proofs in proof assistants: the four colour theorem in Coq (2005) and the Kepler conjecture in HOL Light and Isabelle.[2][3][4] SAT solvers now settle combinatorial problems with machine-checkable proofs; one, from 2016, is almost 200 terabytes in size.[5]

    Editor reviewedUpdated Explainer16 claims · 81% primaryMathematics research, Computing
    Reading level: 2 passages differ; the rest is the same for everyone.

    This page is part of the mathematics crash course. It follows proof assistants explained and Lean and mathlib. Each section offers a beginner and an expert version.

    The first computer proofs

    In 1954 Martin Davis programmed a decision method for additive arithmetic into the Johniac computer at the Institute for Advanced Study. It proved that the sum of two even numbers is even.[6] By 2008 Thomas Hales could list computer proofs in many fields, including the nonexistence of a projective plane of order 10, the Lorenz strange attractor and the double-bubble problem.[7]

    The four colour theorem

    The theorem says that any flat map can be coloured with four colours so that neighbouring regions always differ.[8] Francis Guthrie posed it in 1852. Alfred Kempe’s 1879 solution was accepted for about ten years before someone found the mistake.[9]

    In 1976 Kenneth Appel and Wolfgang Haken proved the theorem, with a computer doing much of the work. A cleaner revised proof followed in 1995.[1] Both proofs left a nagging doubt. People could check the written part by reading it, but not the computer code, and running a program again and again doesn’t catch a programmer’s mistake.[2]

    Georges Gonthier’s team settled the doubt by formalising the whole proof, not just its code, in the Coq proof assistant. They finished in 2005.[3]

    The theorem concerns colouring simple planar maps so that adjacent regions differ.[8] In the 1995 proof by Robertson, Sanders, Seymour and Thomas, which revised Appel and Haken’s 1976 argument, the 633 reducible configuration maps are the only link between the computer reducibility check and the main argument.[1][10] The objection was methodological: the textual part could be refereed, but the code could not, and repeated runs give no protection against programmer error.[2] Gonthier’s Coq development removed that gap by formalising the entire proof, not just its code.[3]

    The Kepler conjecture and Flyspeck

    The Kepler conjecture is about dense sphere packings. The Flyspeck project completed a formal proof of it using the HOL Light and Isabelle proof assistants. Its official published account, by Thomas Hales and co-authors, was posted in 2015.[4]

    SAT solvers and giant certificates

    SAT solvers are programs for the satisfiability problem (SAT), a classic NP-complete problem.[11] In 2016 Marijn Heule, Oliver Kullmann and Victor Marek used SAT solvers on a question Ronald Graham had offered a prize for. Can the whole numbers be split into two groups so that neither group contains a Pythagorean triple (a² + b² = c²)? The answer is no.[12]

    The computation took about two days on an 800-core cluster. Its proof of almost 200 terabytes was checked, and a 68-gigabyte certificate lets anyone rebuild it.[5]

    The Boolean Pythagorean triples result used Cube-and-Conquer, a hybrid of look-ahead and CDCL solving.[12] Its authors produced an unsatisfiability proof in the DRAT format, almost 200 terabytes in size, and verified it. They released a 68-gigabyte compressed certificate from which the DRAT proof can be rebuilt and rechecked.[5]

    Computer proof meets formal proof

    Some recent results combine large computations with formal verification. In 2024 the Busy Beaver Challenge settled the fifth busy beaver number, BB(5) = 47,176,870, with a proof written in Coq that enumerates and decides every relevant five-state Turing machine.[13][14] See BB(5) settled. AI systems such as AlphaProof also write formal proofs in Lean;[15] see AI for mathematics.

    For whether every proof should be checked this way, see the debate page on formalising proofs. For the theory of what computers can decide at all, see Turing machines and the halting problem.

    Next in the crash course

    More in Mathematics research

    Developing in AI & Computing

    Questions readers ask

    What is a computer-assisted proof?

    A proof in which a computer carries out part of the argument, for example checking a huge number of cases. The 1976 proof of the four colour theorem is the classic example.[1]

    Why were mathematicians uneasy about the four colour proof?

    Both the 1976 proof and its 1995 revision combined an argument people could check by reading with computer code they could not. Running code many times does not catch programmer error.[2]

    Was the four colour theorem ever fully checked?

    Yes. Georges Gonthier's team formalised the entire proof, not just its code, in the Coq proof assistant, finishing in 2005.[3]

    What is the difference between a computer-assisted proof and a formal proof?

    In a computer-assisted proof, a program does part of the work but the program itself may be unchecked. In a formal proof every step, including the computer's, is checked back to the axioms by a proof assistant.[16][2]

    How large can a computer proof be?

    The 2016 proof of the Boolean Pythagorean triples problem produced a verified proof of almost 200 terabytes, compressed into a 68-gigabyte certificate that others can use to rebuild and check it.[5]

    Sources

    · 16 claims from 8 publishers

    Each numbered claim is a statement we checked against the sources listed with it. Tap a number in the text to see its sources in place.

    1. [1]

      Kenneth Appel and Wolfgang Haken proved the four colour theorem in 1976 with a computer doing part of the proof, and Robertson, Sanders, Seymour and Thomas published a revised proof in 1995. confirmedas of 2008-12-01

    2. [2]

      Both the 1976 and 1995 four colour proofs combined a written argument that could be checked by inspection with computer code that could not, and running code repeatedly does not guard against programmer error. confirmedas of 2008-12-01

    3. [3]

      Georges Gonthier's team, which used the Coq proof assistant, formalised the entire proof of the four colour theorem, not just its computer code, completing it in 2005. confirmedas of 2008-12-01

    4. [4]

      The Flyspeck project produced a formal proof of the Kepler conjecture on dense sphere packings, using the HOL Light and Isabelle proof assistants; a 2015 paper by Hales and co-authors is the project's official published account. reportedas of 2015-01-09

    5. [5]

      The Boolean Pythagorean triples problem was solved on an 800-core cluster in about two days, producing a verified DRAT proof almost 200 terabytes in size and a compressed 68-gigabyte certificate from which anyone can reconstruct the proof for checking. reportedas of 2016-05-03

    6. [6]

      In 1954 Martin Davis programmed the Presburger algorithm for additive arithmetic into the Johniac computer at the Institute for Advanced Study, which proved that the sum of two even numbers is even. confirmedas of 2008-12-01

      • Formal Proof · Notices of the American Mathematical Society (Thomas C. Hales) · Primary source · 2008-12-01 · Box: Early Milestones, 1954 (retrieved 2026-11-22)
    7. [7]

      Hales listed computer proofs in many fields by 2008, including the nonexistence of a projective plane of order 10, the strange attractor of the Lorenz equations, the double-bubble problem and the optimality of the Leech lattice. confirmedas of 2008-12-01

      • Formal Proof · Notices of the American Mathematical Society (Thomas C. Hales) · Primary source · 2008-12-01 · p. 1370 (retrieved 2026-11-22)
      • Formal Proof · Notices of the American Mathematical Society (Thomas C. Hales) · Primary source · 2008-12-01 · p. 1370 (retrieved 2026-11-22)
    8. [8]

      The four colour theorem states that the regions of any simple planar map can be coloured with only four colours so that any two adjacent regions have different colours. confirmedas of 2008-12-01

    9. [9]

      Francis Guthrie posed the four colour problem in 1852, and Alfred Kempe's 1879 solution was found to be wrong only about ten years later. confirmedas of 2008-12-01

    10. [10]

      The four colour proof relies on a list of 633 reducible configuration maps, which are the only link between its computer reducibility check and the main argument. confirmedas of 2008-12-01

    11. [11]

      A problem is NP-complete if it is in NP and a quick algorithm for it could be used to solve all other NP problems quickly; satisfiability (SAT), the travelling salesman, bin packing and knapsack problems (in their decision versions) are well-known examples. confirmedas of 2026-11-22

    12. [12]

      In 2016 Marijn Heule, Oliver Kullmann and Victor Marek used SAT solvers to prove that the natural numbers cannot be split into two parts with no Pythagorean triple in either part, settling a problem for which Ronald Graham had offered a prize. reportedas of 2016-05-03

    13. [13]

      On 2 July 2024 the Busy Beaver Challenge announced that, after two years of collaboration, it had proved BB(5) = 47,176,870 with a proof written in the Coq proof assistant. confirmedas of 2024-07-02

    14. [14]

      The proof enumerates the 5-state Turing machines (reduced by symmetries to about 180 million) and runs programs called deciders that recognise specific behaviours to decide whether each halts; a handful of hard machines are proved individually. confirmedas of 2024-07-02

    15. [15]

      Google DeepMind describes AlphaProof as a system that trains itself to prove mathematical statements in the formal language Lean, coupling a pre-trained language model with the AlphaZero reinforcement learning algorithm. confirmedas of 2024-07-25

    16. [16]

      A formal proof is one in which every logical inference has been checked all the way back to the fundamental axioms of mathematics. confirmedas of 2008-12-01

      • Formal Proof · Notices of the American Mathematical Society (Thomas C. Hales) · Primary source · 2008-12-01 · p. 1371 (retrieved 2026-11-22)
    Revision history (1)
    1. Page created.

    Created Nov 22, 2026. Last reviewed by an editor on Nov 22, 2026. Next scheduled review: Sep 6, 2027.

    Cite this page

    "Computer-assisted proofs: from the four colour theorem to SAT solvers." ContentLora, updated Nov 22, 2026. https://contentlora.com/explain/computer-assisted-proofs-explained

    Spotted an error? Suggest a correction or emailcorrections@contentlora.com.