math-comp/fourcolor

Formal proof of the Four Color Theorem [maintainer=@ybertot]

249

stars

158

commits

Rocq Prover

primary language

Aug 20, 2026

updated

coq
coq-ci
four-color-theorem
mathcomp
ssreflect
Browse cluster: Formal Mathematics in Rocq/Coq

README

The Four Color Theorem

Docker CI Contributing Code of Conduct Zulip

This library contains a formal proof of the Four Color Theorem in Coq, along with the theories needed to support stating and then proving the Theorem. This includes an axiomatization of the setoid of classical real numbers, basic plane topology definitions, and a theory of combinatorial hypermaps.

Meta

Building and installation instructions

The easiest way to install the latest released version of The Four Color Theorem is via opam:

opam repo add coq-released https://coq.inria.fr/opam/released
opam install coq-fourcolor

If you are only interested in the formalization of real numbers, you can install it separately:

opam repo add coq-released https://coq.inria.fr/opam/released
opam install coq-fourcolor-reals

To instead build and install the whole project manually from the repository, do:

git clone https://github.com/coq-community/fourcolor.git
cd fourcolor
make   # or make -j <number-of-cores-on-your-machine> 
make install

Documentation

The Four Color Theorem (Appel & Haken, 1976) is a landmark result of graph theory.

The formal proof is based on the Mathematical Components library.

Contributors

proux01

43 commits

CohenCyril

28 commits

palmskog

23 commits

ggonthier

23 commits

math-comp/fourcolor

Formal proof of the Four Color Theorem [maintainer=@ybertot]

249

stars

158

commits

Rocq Prover

primary language

Aug 20, 2026

updated

coq
coq-ci
four-color-theorem
mathcomp
ssreflect
Browse cluster: Formal Mathematics in Rocq/Coq

README

The Four Color Theorem

Docker CI Contributing Code of Conduct Zulip

This library contains a formal proof of the Four Color Theorem in Coq, along with the theories needed to support stating and then proving the Theorem. This includes an axiomatization of the setoid of classical real numbers, basic plane topology definitions, and a theory of combinatorial hypermaps.

Meta

Building and installation instructions

The easiest way to install the latest released version of The Four Color Theorem is via opam:

opam repo add coq-released https://coq.inria.fr/opam/released
opam install coq-fourcolor

If you are only interested in the formalization of real numbers, you can install it separately:

opam repo add coq-released https://coq.inria.fr/opam/released
opam install coq-fourcolor-reals

To instead build and install the whole project manually from the repository, do:

git clone https://github.com/coq-community/fourcolor.git
cd fourcolor
make   # or make -j <number-of-cores-on-your-machine> 
make install

Documentation

The Four Color Theorem (Appel & Haken, 1976) is a landmark result of graph theory.

The formal proof is based on the Mathematical Components library.

Contributors

proux01

43 commits

CohenCyril

28 commits

palmskog

23 commits

ggonthier

23 commits

Languages

Rocq Prover

99.7%