Four Color Theorem: Coloring Maps With Minimum Colors

simulator beginner ~8 min
Loading simulation...
4 colors suffice — for any planar map

The four color theorem guarantees that any map on a plane or sphere can be colored with at most 4 colors such that no two adjacent regions share the same color. This was the first major theorem proved with computer assistance.

Formula

χ(G) ≤ 4 for any planar graph G (four color theorem)
Heawood number H(g) = floor((7 + sqrt(1 + 48g)) / 2) for surfaces of genus g
For planar graphs: E ≤ 3V − 6 (Euler's formula consequence)

How Many Colors Do You Need?

Take any map — political boundaries, random regions, abstract patterns. Try to color it so no two neighboring regions share the same color. How many colors do you need? The four color theorem, one of the most famous results in mathematics, guarantees that four colors always suffice for any map on a flat surface. This seemingly simple statement took over a century to prove.

A Conjecture That Stumped Mathematicians

In 1852, Francis Guthrie noticed that four colors seemed sufficient when coloring a map of English counties. His brother passed the question to Augustus De Morgan, and the four color conjecture was born. For 124 years, the best mathematicians attacked the problem. Five colors were proved sufficient in 1890, but closing the gap from five to four seemed impossibly hard.

The Computer-Assisted Proof

In 1976, Kenneth Appel and Wolfgang Haken finally proved the theorem — but their proof required a computer to check 1,936 configurations. This was the first major theorem proved by computer, and it sparked heated debate: is a proof you can't verify by hand really a proof? Today, computer-assisted proofs are commonplace, but the four color theorem was the trailblazer.

Graph Theory and Beyond

The four color theorem is really about graph coloring — assigning colors to vertices of a planar graph so no adjacent vertices share a color. This connects to scheduling problems, register allocation in compilers, frequency assignment in telecommunications, and Sudoku puzzles. On surfaces of higher genus (torus, Klein bottle), more colors may be needed — up to 7 on a torus.

FAQ

What is the four color theorem?

The four color theorem states that any map on a flat surface (or sphere) can be colored using at most four colors so that no two adjacent regions share the same color. 'Adjacent' means sharing a border segment, not just a single point.

Why was the four color theorem so hard to prove?

Conjectured in 1852, it took 124 years to prove. Appel and Haken's 1976 proof required checking 1,936 reducible configurations by computer — making it the first major theorem to rely on computer-assisted proof, sparking philosophical debate about what constitutes a mathematical proof.

Can some maps be colored with fewer than 4 colors?

Yes. Many maps need only 2 or 3 colors. A checkerboard pattern needs 2. The theorem states 4 is the maximum you'll ever need, but many specific maps require fewer.

Does the four color theorem work on a torus?

No — a torus (doughnut surface) requires up to 7 colors. The Heawood conjecture (proved in 1968 for all surfaces except the sphere) gives the chromatic number for surfaces of different genus. Interestingly, the torus case was proved before the planar case.

Sources

Embed

<iframe src="https://homo-deus.com/lab/topology/topological-map/embed" width="100%" height="400" frameborder="0"></iframe>
View source on GitHub