The mathematics behind the puzzle

Why four colors
are enough.

The four color theorem says that the regions of a planar map can be colored with at most four colors so that regions sharing an edge have different colors. The challenge is finding the arrangement.

What counts as a neighbor?

Two regions are neighbors when they share a boundary segment. Meeting at a single point is not enough. That is why the opposite squares of a checkerboard can have the same color.

The usual map formulation treats each region as connected. Color Theorem’s Voronoi cells satisfy this condition. The plane matters too: maps on surfaces with different topology are a different problem.

Sometimes you really need four

Four does not mean every map needs all four colors. A checkerboard needs only two. But in the map below, each of the four regions shares an edge with the other three. Every region must therefore have its own color.

ABCD
A map that needs four. A, B, C, and D are all neighbors of one another.
ABCD
The same relationships as a graph. Regions become vertices; a shared boundary becomes a connecting edge. The letters identify the corresponding regions.

The graph drawing rearranges the vertices to show the connections clearly. Its edges meet only at vertices, so it is planar even though every pair of vertices is connected.

How the proof is organized

Here is the structure of the computer-assisted argument, rather than a full proof.

  1. Assume a smallest counterexample. Suppose there is a planar map that cannot be colored with four colors, and choose one with as few regions as possible.
  2. Find an unavoidable configuration. A discharging argument shows that a map in the relevant class must contain one of a finite collection of local patterns.
  3. Show each pattern is reducible. Each pattern can be handled by a smaller problem and a way to extend its coloring. It therefore cannot occur in that smallest counterexample.
  4. Reach a contradiction. The counterexample must contain one of those patterns, but none can occur in it. The supposed counterexample does not exist.

Robertson, Sanders, Seymour, and Thomas used 633 configurations in their streamlined proof. Their researchers’ summary explains the unavoidable-set and reducibility arguments.

Why computers enter the story

The finite case analysis is extensive. A computer-assisted proof checks the required configurations systematically; that is different from generating many random maps and observing that four colors happen to work.

Georges Gonthier later formalized a proof in Coq. A proof assistant checks the logical derivations as well as the computations, making the connection between the formal theorem and the case analysis explicit. His computer-checked proof report describes the construction.

A short history

1852
Francis Guthrie raises the map-coloring question.
1976
Kenneth Appel and Wolfgang Haken announce the first proof, using computer-assisted case analysis.
1997
The journal publication of Robertson, Sanders, Seymour, and Thomas’s streamlined proof appears.
Formal verification
Gonthier’s Coq development gives a fully computer-checked formal proof.

Sources: Robin Thomas’s proof summary, the 1997 paper, and Gonthier’s report.

What the theorem means while you play

The theorem guarantees a suitable coloring exists for the game’s maps. It does not say that every partial coloring can be completed without revisiting earlier choices. If all four colors appear around a shape, try changing the surrounding arrangement.

Try the worked strategy example, or explore how the game generates its maps.

Ready for a map?

Four colors. One shared-edge rule.

Play Color Theorem