Discrete Mathematics and Combinatorics

The Four Color Theorem Explained for Nonspecialists

What the theorem really claims, why five colors are easy to prove, and how computers helped settle the case of four.

Key takeaways

  • Four colors suffice for any planar map whose regions are each connected, with neighbors defined by a shared length of border.
  • Regions that touch only at isolated points may share a color.
  • Maps become graphs by placing a vertex in each region and joining neighbors, which turns the claim into one about planar graphs.
  • A short argument proves that five colors suffice, but the step to four required a large computer-checked case analysis.
  • Later proofs simplified the analysis, and one was fully verified inside a proof assistant.

The four color theorem says that the regions of any map drawn on a flat sheet or a globe can be colored with at most four colors so that regions sharing a stretch of border always receive different colors. You never need a fifth, however many regions there are or however oddly they are shaped.

It took more than a century from the first recorded question to an accepted proof. That proof, completed in 1976 by Kenneth Appel and Wolfgang Haken, relied on a computer to check more cases than anyone could verify by hand, which started a debate about what a proof is for.

What the statement does and does not say

Two conditions matter.

First, each region must be in one piece. If a country has a detached territory that must match its color, the theorem no longer applies, and such maps can require more colors.

Second, neighbors share a border segment. Four slices of a pie meet at the center, but opposite slices touch only at that point, so two colors are enough for them.

The theorem also says "at most four". Many maps need only two or three. A chessboard needs two. Some maps do need four: picture a central region surrounded by an odd ring, say five regions, each touching the center and its two ring neighbors. The ring alone needs three colors, because an odd loop cannot alternate between two. The center touches all of them and needs a fourth.

From maps to graphs

Mark one point in each region. Join two points by a line through their shared border. The result is a graph, a set of vertices (points) joined by edges (lines), and it can be drawn with no crossings. Such graphs are called planar; see planar graphs and Kuratowski's theorem.

Coloring the map is now coloring the vertices so that joined vertices differ. The theorem reads: every planar graph without loops can be properly colored with four colors.

A tempting shortcut goes wrong here. It is true that five regions cannot all border one another, since the graph with five mutually joined vertices cannot be drawn without crossings. That does not prove the theorem. A graph can need five colors without containing five mutual neighbors, so the global structure has to be controlled.

A question from 1852

In 1852 Francis Guthrie, while coloring a map of the counties of England, wondered whether four colors always suffice. His brother Frederick passed the question to the mathematician Augustus De Morgan, who mentioned it in a letter to William Rowan Hamilton. Arthur Cayley brought it to wider notice in 1878.

In 1879 Alfred Kempe published a proof that was accepted for about eleven years. In 1890 Percy Heawood found a flaw in it. Heawood showed that Kempe's methods did establish that five colors are enough, and the question of four stayed open.

The road to four colors
1852 Francis Guthrie raises the question 1879 Alfred Kempe publishes a proof 1890 Percy Heawood finds the flaw and proves five 1976 Appel and Haken announce a computer-assisted proof 1996 Robertson, Sanders, Seymour and Thomas announce a simpler one 2005 Georges Gonthier completes a formal verification 1852 Francis Guthrie raises the question 1879 Alfred Kempe publishes a proof 1890 Percy Heawood finds the flaw and proves five 1976 Appel and Haken announce a computer-assisted proof 1996 Robertson, Sanders, Seymour and Thomas announce a simpler one 2005 Georges Gonthier completes a formal verification

Six colors are easy

Counting with Euler's formula shows that every finite planar simple graph has a vertex with at most five neighbors. That gives a quick proof for six colors, by induction.

  1. Find a vertex v with at most five neighbors.
  2. Remove it. The smaller graph is still planar, so by induction it can be colored with six colors.
  3. Put v back. Its neighbors use at most five colors, so one is free.

Kempe's chains and five colors

For five colors the only problem is a vertex v whose five neighbors use all five colors. Label the neighbors in order around v with colors 1, 2, 3, 4, 5.

Look at the vertices colored 1 or 3 that can be reached from the first neighbor through vertices of those two colors. This is a Kempe chain. Swapping colors 1 and 3 throughout the chain keeps the coloring proper. If the chain does not reach the third neighbor, then after swapping, color 1 is free for v.

If it does reach the third neighbor, the chain together with v forms a closed loop that separates the second neighbor from the fourth. A chain of colors 2 and 4 starting at the second neighbor cannot cross that loop in a planar drawing. So swap 2 and 4 on that chain, and color 2 becomes free for v.

Kempe tried to handle four colors by making two such swaps at once. Heawood showed that the two swaps can interfere with each other.

Where unavoidable patterns come from

A neat bookkeeping trick shows how one can know that certain patterns must appear. Keep adding edges to a planar graph until every face, including the outer one, is a triangle. A coloring of the enlarged graph also colors the original, so it is enough to handle such triangulations, with V ≥ 4 for the case of interest.

Give each vertex a charge of 6 minus its number of neighbors. A triangulation has 3V − 6 edges, and the numbers of neighbors add to twice that, by the handshaking lemma. So:

total charge = 6V − 2·(3V − 6) = 12

The total is positive, whatever the map. Therefore some vertex has fewer than six neighbors.

Now move charge between nearby vertices according to fixed rules, without changing the total. Something must still end up positive. By examining how a vertex can keep positive charge, you find that one of a specific list of local arrangements has to be present. This method is called discharging, and well-chosen rules produce the list of unavoidable patterns.

The shape of the proof for four

The successful strategy extends Kempe's ideas. Suppose some planar map needed five colors, and take a smallest one. Then show two things.

  • Unavoidability. There is a finite list of local patterns such that every candidate smallest counterexample must contain at least one of them.
  • Reducibility. None of the patterns can occur in a smallest counterexample, because any coloring of a smaller map can be adjusted to cover the pattern too.

Together these are a contradiction. It is a giant proof by cases, and the challenge is that the list has to be long. Heinrich Heesch did much of the groundwork on how to find and test such patterns.

Appel and Haken, at the University of Illinois, with computing help from John Koch, produced an unavoidable set of well over a thousand reducible configurations. Checking them used a very large amount of computer time by the standards of the day, and the supporting hand analysis was itself long and intricate.

Is a computer proof a proof?

Some mathematicians objected that no person could read the whole argument and that it gave little insight into why four is the right number. Others replied that carefully checked computation is no less reliable than long calculation by hand, and perhaps more so.

Between the mid-1990s and 2005 the evidence strengthened. Neil Robertson, Daniel Sanders, Paul Seymour and Robin Thomas gave a new proof with a set of 633 configurations and a simpler method, still using computers. Georges Gonthier then verified a full proof in the Coq proof assistant, a program that checks every logical step. Trust now rests on a small core of checking software and on the correctness of the formal statement, a theme explored in formalized landmarks.

No short proof readable without computer help is generally accepted as of the mid-2020s. Claims of one appear from time to time, and they deserve the usual scrutiny.

Other surfaces and practical meaning

Oddly, some harder-looking surfaces were easier to settle. On a torus, the surface of a ring doughnut, every map can be colored with seven colors, and some maps need all seven. Heawood gave a formula for the number needed on surfaces with more holes, and the proof that maps really require that many was completed by Gerhard Ringel and J. W. T. Youngs in the 1960s. The Klein bottle is an exception, needing at most six.

Mapmakers rarely depend on the theorem, since they have other reasons for choosing colors and are happy to use more. Its value lies in the methods it inspired and in the questions it raised about computation. There is also a polynomial-time procedure for four-coloring a planar graph, yet deciding whether three colors suffice for a planar graph is NP-complete.

Common misconceptions

  • Any map can be four-colored, including ones with disconnected countries. Only connected regions are covered.
  • Regions meeting at a corner must differ. They need not.
  • Five regions cannot all touch, so the theorem is obvious. That fact is true but far from sufficient.
  • The computer merely tried many maps. It checked a finite list of configurations that a mathematical argument shows is enough for all maps, which is very different from testing examples.

Written for 4Mathematics with AI writing tools and not reviewed line by line by a person. Check anything you rely on against a textbook or primary source. Report an error.

Keep reading

All 45 articles in Discrete Mathematics and Combinatorics →

Latest news on this topic