What is the four color theorem (any map can be colored with four colors)?
Also called: Four colour theorem, Four color problem, 4CT
In one minute
The four color theorem is a theorem in mathematics saying that four colors are always enough to color any map so that countries sharing a border line get different colors.
Countries that touch only at a point don’t count as neighbors, and every country must be in one piece (no exclaves). Some maps have four countries that all touch one another, so three colors are sometimes not enough.
The question was asked in 1852, and an 1879 “proof” turned out to be wrong 11 years later. In 1976 it was proved by having a computer check about 1,500 patterns of how countries can sit together, but no one could check that by hand, and the proof was disputed. In 2005 it was also checked by software that checks proofs line by line (Coq). In 2026, a fast way to 4-color even huge maps was announced.
A common mix-up
“Since four colors are enough, coloring the countries one by one will always fit in four colors.”
It is true that every map has some way to be colored with four colors. But if you color countries one after another as they come, you can get stuck. For example, if the five countries around one country have already used up all four colors, there is no color left for it. Then you have to go back and change colors you already used. The theorem says that “a good coloring with four colors always exists”; it doesn’t tell you how to find it. How to find such a coloring quickly for large maps has long been studied, and in 2026 a method was announced that its authors say can’t be made any faster.
Explained in pictures
Free to use in lessons, slides and posts with credit (CC BY 4.0).
Free to use in lessons, slides and posts with credit (CC BY 4.0).
Free to use in lessons, slides and posts with credit (CC BY 4.0).
Free to use in lessons, slides and posts with credit (CC BY 4.0).
You’re free to use these figures in lessons, slides and posts if you credit Naru News (naru.news). CC BY 4.0.
Think of it like this
Putting chatty pairs in different rooms
Say that at a camp you want to put certain pairs, who end up talking all night if they sleep side by side, in different rooms. Make each person a dot and join each “not in the same room” pair with a line, and you get a diagram of connections. If you think of rooms as colors, it becomes the problem of coloring the dots so that dots joined by a line get different colors.
A map can be turned into the same kind of diagram. Make each country a dot and join neighboring countries with a line. A diagram made from a map this way can be drawn on paper without any lines crossing. The four color theorem can then be restated as: “if a diagram of connections can be drawn without lines crossing, its dots can be split into four rooms (four colors).” Mathematicians often think about it in this form.
But the analogy breaks down in places. The “not together” pairs among people can’t always be drawn without lines crossing. For example, if 5 people must all be kept apart from one another, joining all 5 with lines always makes some lines cross however you draw it, and you need 5 rooms. Four is enough only when the diagram can be drawn without crossing lines, as with one made from a flat map.
Key points
What does “neighboring” mean? What about exclaves?
In the four color theorem, two countries count as neighbors only when they share a stretch of border line. Countries that touch at just one point don’t count. For example, in a map where 8 countries meet at a single point in the middle, like a round pizza cut into 8 slices, points don’t count, so two colors taken in turn are enough. If points counted, all 8 countries would touch one another, and 8 colors would be needed.
The other condition is that every country is in one piece. If you allow exclaves, parts of a country that lie apart from the rest, you can make maps that four colors can’t handle. For example, if one country is split between two places so that 5 countries all touch one another, 5 colors are needed. If every country may be split into up to two pieces, you can even make a map of 12 countries in which every two of them touch, so maps that need 12 colors are known.
Aren’t three colors enough? Is five easier?
Some maps can’t be done with three colors. If three countries surround a country in the middle and also touch one another, each of the four countries touches the other three. To give every two of them different colors, you need four. So “four” can’t be lowered any further.
On the other hand, in 1890 Heawood proved that five colors are always enough. Getting from there down to four took another 86 years.
Who came up with the question, and when?
It began in 1852. Francis Guthrie in Britain, coloring a map of the counties of England, noticed that four colors were enough and wondered whether that was true of every map. His brother Frederick passed the question on to his professor, De Morgan, and on October 23 of that year De Morgan described it in a letter to the mathematician Hamilton.
In 1878, Cayley asked at the London Mathematical Society whether the question had been solved, and the next year he published a paper explaining what made it hard. From the 1852 question to 2026, 174 years have passed.
What was wrong with Kempe’s proof?
In 1879, Kempe published a proof that used a trick of swapping colors. The core of his idea lives on in today’s proofs, so let’s follow it step by step. The proof checks maps in order, starting from those with fewer countries (mathematical induction: if it holds for maps with one country fewer, it holds for this map too, so the cases fall like dominoes). First, every map has a country with 5 or fewer neighbors. Try to give every country 6 or more neighbors, and on a flat map something always breaks down somewhere (this follows from Euler’s formula, a rule about the numbers of points, lines and areas). Merge that country into one of its neighbors to get a map with one country fewer, suppose that map can be colored with four colors, and then put the country back. If it has 3 or fewer neighbors, they use at most 3 colors, so a color is left for it. A country with 4 neighbors can be handled the same way with a trick that makes two opposite neighbors share a color.
The trouble is a country with 5 neighbors that use all four colors between them. Kempe looked at a connected cluster of countries whose colors alternate between two colors as they touch one another (a Kempe chain). For example, a “1 and 3” chain is a cluster of countries colored 1 and 3 that touch one after another. Swap 1 and 3 throughout the cluster, and no two neighbors end up with the same color, because any country touching the cluster from outside has a color that is neither 1 nor 3. Also, on a flat map, if a “1 and 3” chain goes all the way around something, a “2 and 4” chain can’t link its inside to its outside (two chains whose color pairs don’t overlap, like “1 and 3” and “2 and 4,” can’t cross). Kempe sorted out how the chains could be arranged and argued that swaps made one after another would free up one color.
But the first swap can also change the colors of some countries in another chain that the next swap was going to use, which changes how that chain is connected (it may break apart, for example), so the swaps can’t always be done one after the other. It took 11 years to notice this mistake; Heawood pointed it out in 1890. Even so, Kempe’s idea of swapping colors has been used in every correct proof since.
Today’s proofs no longer try to settle things with a single country with 5 neighbors. Instead they prepare many bigger “reducible” shapes (set patterns of how several countries sit together). If you show that every map contains at least one shape from the list (the list is “unavoidable”) and that each shape can be removed and put back after coloring (it is “reducible”), it follows that four colors are enough.
Why was the 1976 proof disputed?
In 1976, Appel and Haken built an unavoidable list of about 1,500 shapes and proved the theorem by having a computer check that each one of them was reducible. The computing took about 1,200 hours, and the details came out in two papers in 1977.
Much of this proof was left to the computer, and no one could follow its thousands of checks by hand. The part meant for people to read was also very long and complicated. Other mathematicians found it hard to check, and the proof was disputed.
In 1996–1997, four mathematicians, Robertson, Sanders, Seymour and Thomas, gave a simpler proof along the same lines. The list shrank to 633 shapes, and the rules used to show that a listed shape is always present went from more than 300 down to 32. Even so, checking that the shapes are reducible still needs a computer. Every correct proof known today uses a computer.
What does it mean that it was checked in Coq?
Coq (now called Rocq) is software that has a computer check mathematical proofs (a proof assistant). Lean is the same kind of software. It checks, line by line, whether a proof written in a fixed format is correct, and rejects it if even one step breaks the rules.
Georges Gonthier and his colleagues rewrote the proof of Robertson and the others in Coq’s language, all of it, including the parts that had been computer calculations, and finished checking it in 2005. Back in 2000, they had proved part of Robertson and the others’ programs correct, but that left a question: was the description of what the programs check (the specification) itself correct? So they decided to rewrite not just the programs but the whole proof.
With a check like this, a skeptic no longer has to read through the entire proof. But a person still has to read the definitions to make sure that the theorem written in Coq really says what the four color theorem says. So Gonthier and his colleagues built the statement from only about 40 lines setting out points and countries in the plane and about 100 lines of rules for real numbers, instead of relying on about 5,000 lines of intricate definitions. “Neighboring” is defined exactly in mathematical terms too (roughly, sharing a border line), so countries touching only at a point are not neighbors.
What’s new in the 2026 announcement?
The four color theorem shows that four colors are possible, but actually coloring a big map needs a step-by-step method (an algorithm). The method Robertson and the others gave in 1996 finds one reducible shape, makes the map only a little smaller, and searches again, over and over. Each round takes work in proportion to the size of the map, and it is repeated a number of times in proportion to the number of countries, so the work grew with the square of the number of countries. Ten times as many countries meant about 100 times the work.
In 2026, six researchers from the University of Copenhagen, the Technical University of Denmark, Japan’s National Institute of Informatics, the University of Tokyo and Simon Fraser University showed that every map has many places where it can be made smaller, set apart from one another, in numbers that grow in proportion to the number of countries. Such a place is either a reducible shape or a ring of 5 or fewer countries that splits the map into an inside and an outside. Earlier proofs looked for shapes where countries with fewer than 6 neighbors gather; this work showed that such places exist even in wide parts where, like a honeycomb, every country has about 6 neighbors.That lets them use many places at once and remove a fixed fraction of the map each round, so far fewer rounds are needed than when shrinking it a little at a time. Their first paper gave a method whose work grows almost in proportion to the number of countries (only a little more than in proportion), and it won the Best Paper Award at FOCS 2026, an international conference on theoretical computer science.
In a second paper (posted in October 2026), they found a better way to store the data for swapping colors quickly and brought the work down to grow in direct proportion to the number of countries. With ten times as many countries, the work is only about ten times as much. The researchers call this method optimal, meaning it can’t be made any faster. Any method has to color every country at least once, so it takes work in proportion to the number of countries.
Computers are still essential in this research. Among other things, more than 8,200 shapes were checked to be reducible with programs written in C++, and on a computer with 256 cores all the checks ran within a couple of hours. The programs are public so that anyone can run them. The paper’s acknowledgments also say that an AI (Google’s Gemini) helped cross-check the step-by-step descriptions against the programs and caught a few elementary mistakes.
Check yourself
Q1In the four color theorem, when do two countries on a map count as “neighbors” that must get different colors?
Answer and explanation
Answer: B When the two touch along a border line
The theorem counts two countries as neighbors only when they share a border line. Countries that touch at just one point don’t count. If points counted, a map like a pizza cut into 8 slices would need 8 colors. Two countries that each touch the same third country but don’t touch each other may have the same color.
More on this → Key points: What does “neighboring” mean? What about exclaves?
Q2The “proof” of the four color theorem that Kempe published in 1879 was found to be wrong 11 years later. What was the mistake?
Answer and explanation
Answer: A Missing that a swap can change another chain too
Kempe looked at a chain of countries whose colors alternate between two colors (a Kempe chain) and swapped the colors inside it, trying to free up a color around a country with 5 neighbors. But the first swap could also change the colors of some countries in another chain that the next swap was going to use, changing how that chain was connected, so the next swap could no longer be used. Swapping over a whole chain never gives two neighbors the same color. Countries with 4 neighbors were handled correctly by Kempe’s idea; the trouble was countries with 5 neighbors.
More on this → Key points: What was wrong with Kempe’s proof?
Q3With the method that Robertson and his colleagues gave in 1996 for coloring a map with four colors, 10 times as many countries meant about 100 times the work. Why did the work grow that much?
Answer and explanation
Answer: C Each round, it removed a few countries and searched again
The 1996 method found one reducible shape, made the map only a little smaller, and searched again, over and over. Each round took work in proportion to the size of the map and was repeated a number of times in proportion to the number of countries, so the work grew with the square of the number of countries: 10 times the countries meant about 100 times the work. The 2026 method uses many places where the map can be made smaller at once and removes a fixed fraction of the map each round, so 10 times the countries takes only about 10 times the work. Both methods color with four colors.
More on this → Key points: What’s new in the 2026 announcement?
Related terms
- Graph theory
- Graph coloring
- Kempe chain
- Computer-assisted proof
- Formal verification
- Lean
- Proof assistant
- Autoformalization
- Algorithm
- Prime number
- Millennium Prize Problems
Sources and how we checked
- Georges Gonthier, “Formal Proof—The Four-Color Theorem” (Notices of the AMS 55(11), December 2008: the statement [the regions of any simple planar map can be colored with only four colors so that adjacent regions differ], a simple map being one whose regions are connected open sets and two regions being adjacent when their closures share a point that is not a corner [a point in the closures of at least three regions], Guthrie’s 1852 puzzle and his brother’s professor De Morgan, the error in Kempe’s 1879 solution, the induction on the size of the map, every cubic map having a face with fewer than 6 sides because the average is below 6, the digon, triangle and square cases, Kempe chains in the pentagon case and the error that inverting one chain can scramble others so consecutive inversions are not always possible, chains not crossing by planarity, larger reducible configurations and unavoidability, the 633 configurations of Robertson et al., the 2000 proof of part of the code leaving the question of whether the specification was correct, the whole proof formalized in 2005, the use of Coq, B. Werner’s contributions, formal verification sparing the skeptic from reading the complete proof while the definitions must still be checked, and the statement resting on about 40 lines of topology and about 100 lines of real-number axioms rather than 5,000 lines of combinatorics; read November 23, 2026)
- Robin Thomas, “The Four Color Theorem” (Georgia Tech; a page by one of the authors of the Robertson et al. proof: adjacency meaning a common boundary segment, not just a point, Guthrie noticing in 1852 that four colors sufficed for a map of the counties of England, Kempe’s 1879 “proof” and Heawood’s discovery of its error 11 years later, the problems with the Appel–Haken proof [the computer part cannot be checked by hand, and the hand-checkable part is so complicated that no one is known to have verified it in full], the 633 reducible configurations, 32 discharging rules instead of the more than 300 of Appel and Haken, and the quadratic four-coloring algorithm; read November 23, 2026)
- MacTutor History of Mathematics, “The four colour theorem” (University of St Andrews: Francis Guthrie’s question passed on by his brother Frederick to De Morgan, who wrote to Hamilton on October 23, 1852, Cayley’s question to the London Mathematical Society in 1878 and his 1879 paper, Kempe’s 1879 proof and Kempe chains, Heawood showing the error in 1890 and proving that five colours suffice, Appel and Haken’s unavoidable set of about 1,500 configurations, about 1,200 hours of computer time and two articles in 1977, and the initial worries about a proof that relied on a computer; read November 23, 2026)
- Eric W. Weisstein, “Four-Color Theorem” (MathWorld: regions sharing a boundary arc get different colors, contact at only finitely many boundary points not counting as adjacency, Guthrie’s 1852 conjecture, the fallacious proofs of Kempe and Tait, the shorter proof by Robertson et al., and the December 2004 announcement by Gonthier and Werner of a formal verification of the Robertson et al. proof in Coq. The maps in the figures [the four-colored example, four mutually touching countries, the pizza cut into 8, the exclave map needing 5 colors, and the countries with 3 and 5 neighbors], the 86 years from 1890 to 1976 and the 174 years from 1852 to 2026 were made or computed for this page; read November 23, 2026)
- Eric W. Weisstein, “Empire Problem” (MathWorld: coloring maps whose countries may consist of up to m separate regions, the case m = 1 being the four color theorem, 12 colors being necessary for m = 2, and Heawood showing in 1890 that 6m colors suffice; read November 23, 2026)
- Yuta Inoue, Ken-ichi Kawarabayashi, Atsuyuki Miyashita, Bojan Mohar, Carsten Thomassen and Mikkel Thorup, “The Four Color Theorem with Linearly Many Reducible Configurations and Near-Linear Time Coloring” (arXiv:2603.24880, first posted March 2026; read in version 3 of October 2026: to appear in FOCS’26; the abstract [improving the 1996 quadratic-time algorithm of Robertson et al. to near-linear time, every planar triangulation containing linearly many pairwise non-touching reducible configurations or obstructing cycles, the known proofs showing only one, reductions found in “flat” parts where the curvature is zero rather than only where it is positive, the old proofs shrinking the problem by an additive constant for a quadratic total, and O(n log n) time]; the introduction [Guthrie’s 1852 conjecture, Appel and Haken’s 1976 proof, the combinatorial curvature 6 − d(v), the 1,482 configurations of Appel and Haken and the 633 of Robertson et al., more than 8,200 D-reducible configurations, all correct proofs using computers to check finite cases, Kempe’s 1879 proof and Heawood finding its mistake 11 years later in 1890, the C++ code and inputs on GitHub, and all computer checks running within a couple of hours on a 256-core computer]; Kempe changes having been used in all later correct proofs; the acknowledgment [Gemini helping cross-check the pseudocode against the C++ code and catching a few elementary mistakes]; and the authors’ affiliations; read November 23, 2026)
- Yuta Inoue et al. (the same six authors), “Four-Coloring Planar Graphs in Linear Time” (arXiv:2610.39753, October 29, 2026: improving the O(n log n) algorithm of the previous paper [FOCS’26] to O(n), which is optimal, by carrying out the O(log n) Kempe changes in O(n) total time with a new data structure, the previous paper resting on a new graph-theoretic understanding and this one on data-structure design; read November 23, 2026)
- University of Copenhagen, “Breakthrough: Danish researchers find efficient solution to famous 174-year-old mathematical headache” (EurekAlert!, November 17, 2026: the six researchers’ affiliations, the first paper being selected for FOCS 2026 and receiving its Best Paper Award, Guthrie’s 1852 question, the 1976 proof being controversial because it relied heavily on computer calculations that others found hard to verify, the earlier algorithm being quadratic so that ten times as many regions take about 100 times as long versus about ten times with the new one, and the 174 years of effort; read November 23, 2026)
- FOCS 2026 official page (the IEEE Symposium on Foundations of Computer Science, held November 8–11, 2026, in New York; viewed November 23, 2026)
- Lean FRO, “Lean” (official Lean website: Lean as a proof assistant; viewed November 23, 2026)
- The Rocq Prover, “About” (the Rocq Prover having formerly been known as the Coq Proof Assistant; viewed November 23, 2026)
AI wrote this page from the sources above, and a different AI checked it against the text of those sources (November 23, 2026). A person with a master’s degree in science and a Japanese high-school science teaching license also read and checked it before publishing. Numbers are as of that date. If anything was hard to follow, you spot a mistake, or there’s a term you’d like explained, please write to [email protected].
Glossary
- AI agent
- AI alignment
- Alignment faking
- Artificial general intelligence (AGI)
- Artificial intelligence (AI)
- Backdoor
- Benchmark
- Chain of thought (CoT)
- Context window
- Data poisoning
- Deep learning
- Deepfake
- Diffusion model
- Embedding
- Emergent misalignment
- Evaluation awareness
- Fine-tuning
- Formal verification
- Generalization
- Generative adversarial network (GAN)
- Generative AI
- Goodhart’s law
- Gradual disempowerment
- Hallucination
- Hyperparameter
- Intelligence explosion
- Interpretability
- Jailbreaking
- Large language model (LLM)
- Latent space
- Machine learning
- Mixture of experts (MoE)
- Neural network
- Neuralese
- Overfitting
- Parameter
- Persona vectors
- Pre-training
- Prompt
- Prompt injection
- Reasoning model
- Recursive language model (RLM)
- Recursive self-improvement (RSI)
- Red teaming
- Reinforcement learning (RL)
- Retrieval-augmented generation (RAG)
- Reward hacking
- Reward model
- Shutdown resistance
- Sleeper agent
- Subliminal learning
- Superintelligence (ASI)
- System prompt
- Technological singularity
- Time horizon
- Token
- Transfer learning
- Transformer
- Accretion disk
- Black hole
- Black hole star
- Cosmic birefringence
- Event horizon
- Event Horizon Telescope (EHT)
- General relativity
- GPS
- Gravitational lensing
- Gravitational singularity
- Gravitational wave
- James Webb Space Telescope (JWST)
- Lagrange point
- Long-period radio transient (LPT)
- Neutron star
- Pulsar
- Quasar
- Sagittarius A*
- Space data center
- Spacetime
- Special relativity
- Speed of light
- Supermassive black hole
- White dwarf
- Autoformalization
- Formal proof
- You are hereFour color theorem
- Generalized Riemann Hypothesis (GRH)
- Lean
- Millennium Prize Problems
- Prime number
- Riemann Hypothesis
- VP ≠ VNP conjecture
- Zeta function
