Skip to content

coq-community/graph-theory

Repository files navigation

Graph Theory

Docker CI Chat Contributing Code of Conduct Zulip DOI

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).

Meta

Building and installation instructions

To 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

Documentation

This project contains:

  • a general purpose Coq library about graph theory:
    • directed graphs, simple graphs, multigraphs
    • paths, trees, forests, isomorphism, connected components, etc.
    • minors and tree decompositions
    • Menger's theorem and some of its corollaries (Hall's marriage theorem and König's theorem)
    • the excluded-minor characterisation of treewidth at most two graphs (as those excluding K4 as a minor)
  • soundness and completeness of an axiomatization of isomorphism of two-pointed treewidth-two (2p) multigraphs:
    • isomorphisms up to label-equivalence and edge-flipping for multigraphs
    • 2p graphs form a 2p algebra and thus also a 2pdom algebra
    • every K4-free graph can be represented by a 2p-term
    • 2pdom axioms are complete w.r.t. graph isomorphism for connected 2p graphs.
  • a proof of Wagner's theorem (planarity of K5 and K3,3 graphs) based on combinatorial hypermaps
  • two proofs of the weak perfect graph theorem (WPGT):
    • one proof based on Lovasz's replication lemma
    • one proof based on a matrix rank argument

Additional information on the contents of individual files is available at the project website.