Colouring the countries of a map so that neighbouring countries receive different colours is the oldest problem of graph theory that is still taught in every introductory course. Replacing each country by a point and each common border by an edge turns a map into a planar graph, and the question becomes how many colours a proper vertex colouring of a planar graph needs.
The Five Colour Theorem is the strongest colouring bound for planar graphs that has a short, human-checkable proof. This mission formalizes it exactly as it is stated and proved in R. Diestel's textbook Graph Theory (6th edition, 2025), Proposition 5.1.2, together with the planar-graph results of Chapter 4 on which that proof rests.
All graphs are finite and simple. A straight line segment is a set for distinct points of . An arc (Diestel's polygonal arc) is a subset of that is a union of finitely many straight line segments and is homeomorphic to ; the images of and are its endpoints, and the arc minus its endpoints is its interior . A polygon is a finite union of segments homeomorphic to the unit circle . For an open set , two points of are equivalent if they are linked by an arc inside ; the equivalence classes are the regions of .
A plane graph consists of a finite set of vertices and a finite set of edges such that every edge is an arc between two vertices, different edges have different sets of endpoints, and the interior of an edge contains no vertex and no point of any other edge. Two vertices are adjacent when some edge is an arc between them; this is the abstract graph of . The faces of are the regions of , where also denotes the point set . A plane triangulation is a plane graph each of whose faces, including the unbounded one, has as frontier the point set of a triangle of .
An abstract graph is planar if it is isomorphic to the abstract graph of a plane graph. A graph is -colourable if there is a map with whenever and are adjacent.
The goal fixes no constant other than the number of colours in the source statement; the stronger Four Colour Theorem is out of scope.
The Five Colour Theorem is the standard entry point to colouring of graphs on surfaces. Its ingredients — Euler's formula, the edge bound , and Kempe-chain recolouring — are reused throughout topological graph theory: the edge bound yields the non-planarity of and , degeneracy bounds and list-colouring results for planar graphs, and Kempe chains reappear in the proof of the Four Colour Theorem and in edge-colouring arguments.
The mathematics is classical and fully proved. What this mission adds is a machine-checked development of Diestel's own setting: polygonal arcs, regions and faces, Euler's formula and its corollaries, and the Five Colour Theorem, all stated against the textbook's definitions. These statements are reusable by any later mission on planar graphs that adopts the same definitions, including later missions in this book series.
The combinatorial core is short: a vertex of degree at most exists by Euler's formula, and the case of five differently coloured neighbours is resolved by swapping colours along a two-coloured component. The obstacle is topological. The swap only works because a path between two neighbours of , together with , forms a cycle that separates the remaining two neighbours; this is an instance of the Jordan Curve Theorem, and making it rigorous requires the cyclic order of edges around a vertex and a careful count of faces. Euler's formula itself needs the statement that an edge on a cycle lies on the frontier of exactly two faces. None of this follows from combinatorics alone, and an approach that treats planarity as a purely combinatorial hypothesis (for instance, assuming ) does not prove the stated theorem.
The plane is ℝ × ℝ with its product topology, which coincides with the Euclidean topology. Because Mathlib equips ℝ × ℝ with the sup metric, the unit circle is defined explicitly as . Arcs are polygonal, as in Diestel; a homeomorphism is encoded as a topological embedding of unitInterval with range . Regions are defined, as in the source, by linkage through arcs, not via connected components. Counts of vertices, edges and faces use Nat.card, which is on an infinite type, so finiteness of the face set is part of what Euler's formula asserts. Connectedness uses Mathlib's SimpleGraph.Connected, which includes non-emptiness, matching Diestel's convention. The goal is stated for an abstract SimpleGraph on a finite type, with planarity meaning isomorphism to the abstract graph of a plane graph, and colourability is Mathlib's SimpleGraph.Colorable 5.
Planarity is never replaced by a combinatorial surrogate such as an edge bound or a rotation system: each such surrogate would make the goal a different theorem.
A complete development needs the polygonal Jordan curve theorem and the face structure of plane graphs (Diestel, Lemmas 4.1.2, 4.2.1, 4.2.2 and Proposition 4.2.4), which Mathlib does not provide in this form; these are reusable for every planar-graph result in Diestel's Chapter 4. Contributions of intermediate lemmas from Sections 4.1–4.2 as sketches, and alternative proofs of the goal (for example following the second proof in Diestel, Section 5.1), are welcome.
namespace DiestelGraphTheory
theorem five_colour_theorem {V : Type*} [Finite V] (G : SimpleGraph V) (hG : IsPlanar G) :
G.Colorable 5 := by sorry
end DiestelGraphTheoryLet be a finite simple graph. If is planar, i.e. isomorphic to the abstract graph of a plane graph whose edges are polygonal arcs, then is -colourable: there is a map
This is the strongest colouring bound for planar graphs with a short proof; the Four Colour Theorem improves to .
Formalization Note -colourability is Mathlib's SimpleGraph.Colorable 5. The vertex type is assumed finite, as are all graphs in Diestel.
No open leaves. Every sub-goal is proved or awaiting decomposition.