NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Formalizing the Face Lattice of Polyhedra

Xavier Allamigeon, Ricardo D. Katz, Pierre-Yves Strub

TL;DR

This paper presents the first complete formalization of the face lattice of polyhedra using the Coq proof assistant. By leveraging Coq’s "canonical structures" to automatically handle the messy transitions between different mathematical representations, the authors successfully proved fundamental combinatorial properties of polyhedra and provided a formal proof of Balinski’s Theorem on polytope connectivity.

What Problem Does This Paper Address?

In the world of mathematical optimization and geometry, polyhedra are everywhere—think of the feasible regions in linear programming. The "faces" of these polyhedra (vertices, edges, facets) form a hierarchical structure called a face lattice. While mathematicians have understood these structures for decades, translating that knowledge into a "formal proof" (one verified by a computer for absolute correctness) is notoriously difficult.

The core challenge is representation. A single polyhedron can be described by infinitely many different systems of linear inequalities. While a human mathematician can fluidly switch between these systems or ignore the specific representation altogether, a proof assistant like Coq usually requires the user to manually prove that every transformation is valid. This "representation tax" often makes formalizing even "obvious" geometric theorems a grueling task.

Methods

The authors built their work on top of the Coq proof assistant and the Mathematical Components (MathComp) library. Their approach features several technical innovations:

  • Quotient Types: They defined a "polyhedron" type that is independent of its specific inequality system. This allows the user to reason about polyhedra as sets of points rather than just matrices and vectors.
  • Canonical Structures: This is the paper's "secret sauce." They designed a mechanism in Coq that automatically detects the context of a proof and introduces the most appropriate representation of a polyhedron or face. This makes the resulting proof scripts much shorter and closer to how a human would write a textbook proof.
  • Library of Primitives: They implemented foundational algorithms like Fourier-Motzkin elimination (for projections) and formalized the construction of convex hulls and affine hulls.
  • The "Base" Strategy: To handle the recursive nature of faces (a face of a face is also a face of the original polyhedron), they introduced a way to fix an "ambient representation" locally, simplifying the logic needed to traverse the lattice.

Datasets

As a paper focused on formal logic and mathematical verification, there are no traditional datasets. Instead, the "output" is a suite of Coq source files. The code is open-source and available in the Coq-Polyhedra repository on GitHub.

Key Insights and Ideas

  • Automation of Trivialities: By using Coq’s type inference system to handle representation switching, the authors showed that formal verification doesn't have to be bogged down by "administrative" lemmas.
  • Geometric vs. Combinatorial: The paper bridges the gap between the geometric definition of a face (points that minimize a linear function) and the combinatorial definition (subsets of inequalities turned into equalities).
  • The Vertex Figure: The authors formalized the "vertex figure"—a geometric construction that "slices" a polytope near a vertex. This was a crucial tool for proving high-level connectivity theorems.

Key Results

The authors successfully formalized several landmark results in polyhedral theory:

  • Lattice Properties: They proved that the faces of a polyhedron form a finite, graded, atomistic, and coatomistic lattice. This means the hierarchy of faces is well-behaved and follows strict structural rules.
  • The Diamond Property: They proved that any interval of height two in the face lattice of a polytope is isomorphic to a "diamond" (four elements ordered in a specific way), a fundamental result in combinatorics.
  • Minkowski’s Theorem: They provided a formal proof that every compact polyhedron is the convex hull of its vertices.
  • Balinski’s Theorem: The crowning achievement of the paper is a formal proof that the adjacency graph of a $d$-dimensional polytope remains connected even if you remove $d-1$ vertices.

Limitations and Future Work

While the paper covers the structural foundations, it leaves some areas for future exploration:

  • Quantitative Theory: The current formalization doesn't yet cover "f-vector theory" (which deals with the number of faces of each dimension) or the Upper Bound Theorem.
  • Computational Efficiency: The library is designed for proving theorems, not necessarily for high-performance geometric computation. The authors suggest that future work could involve "reflection tactics"—using these formal proofs to create verified, efficient algorithms that can compute the face lattice of a given polyhedron directly within Coq.
  • Broader Ordered Structures: The authors noted a need for better general-purpose libraries in Coq for handling sublattices and lattice morphisms, which would benefit formalizations beyond just geometry.

Summary updated

BibTeX
@inproceedings{allamigeon2022formalizing,
  author = {Xavier Allamigeon and Ricardo D. Katz and Pierre-Yves Strub},
  title = {{Formalizing the Face Lattice of Polyhedra}},
  booktitle = {Log. Methods Comput. Sci},
  year = {2022},
  url = {https://openreview.net/forum?id=6QCZ1xJPZW},
}

Loading related content...

Figure