Graph Theory [maintainers=@chdoc,@damien-pous]
Rocq Prover
45
478 commits
updated May 6, 2026
A library of formalized graph theory results, including various standard results from the literature (e.g., Menger's Theorem, Hall's Marriage Theorem, the excluded minor characterization of treewidth-two graphs, and Wagner's Theorem) as well as some more recent results arising from the study of relation algebra within the ERC CoVeCe project (e.g., soundness and completeness of an axiomatization of graph isomorphism).
GraphTheoryTo manually build and install the whole project, including Wagner's theorem which requires the Coq proof of the Four-Color Theorem, do:
git clone https://github.com/coq-community/graph-theory.git
cd graph-theory
make # or make -j <number-of-cores-on-your-machine>
make install
However, the easiest way to install released versions of Graph Theory libraries selectively is via opam:
opam repo add coq-released https://coq.inria.fr/opam/released
opam install coq-graph-theory # core library
opam install coq-graph-theory-planar # planarity results depending on coq-fourcolor
This project contains:
2p) multigraphs:
Additional information on the contents of individual files is available at the project website.
Rocq Prover
99.7%
Graph Theory [maintainers=@chdoc,@damien-pous]
Rocq Prover
45
478 commits
updated May 6, 2026
A library of formalized graph theory results, including various standard results from the literature (e.g., Menger's Theorem, Hall's Marriage Theorem, the excluded minor characterization of treewidth-two graphs, and Wagner's Theorem) as well as some more recent results arising from the study of relation algebra within the ERC CoVeCe project (e.g., soundness and completeness of an axiomatization of graph isomorphism).
GraphTheoryTo manually build and install the whole project, including Wagner's theorem which requires the Coq proof of the Four-Color Theorem, do:
git clone https://github.com/coq-community/graph-theory.git
cd graph-theory
make # or make -j <number-of-cores-on-your-machine>
make install
However, the easiest way to install released versions of Graph Theory libraries selectively is via opam:
opam repo add coq-released https://coq.inria.fr/opam/released
opam install coq-graph-theory # core library
opam install coq-graph-theory-planar # planarity results depending on coq-fourcolor
This project contains:
2p) multigraphs:
Additional information on the contents of individual files is available at the project website.
Rocq Prover
99.7%