arXiv:2610.11913cs.LOOct 2026

Manuscript Offprint

arXiv:2610.11913

Formally Certifying the Vertex Set of a Polyhedron Faster than Informal Enumeration

Xavier Allamigeon, Yazid Id-Sahra, Pierre-Yves Strub

Xavier Allamigeon

Inria

CMAP, CNRS, École polytechnique,

Institut Polytechnique de Paris

France

xavier.allamigeon@inria.fr

Yazid Id-Sahra

École Normale Supérieure de Lyon

France

yazid.id-sahra@ens-lyon.fr

Pierre-Yves Strub

PQShield

France

pierre-yves.strub@pqshield.com

Abstract

The computation of the vertices of a polyhedron described by a system of linear inequalities is a central problem in polyhedral computation. It is a fundamental step in the conversion between H-representations, by linear inequalities, and V-representations, by vertices and extreme rays. This operation plays an important role both in the study of polyhedra and their combinatorics in mathematics and in applications to software and system verification.

We present a certificate-based approach for formally verifying the computation of the vertices of a polyhedron. Given an informally computed list of vertices, our method allows to certify in the proof assistant Rocq that the list is complete, or even exact. The cornerstone of the method is a new completeness criterion based on an abstract simplicial complex that generalizes a triangulation of the normal fan of the polyhedron. A significant advantage over previous approaches is that the usually expensive numerical computations are essentially reduced to membership tests to the polyhedron, while the other steps are cheap combinatorial tests.

We implement the certification method and prove its correctness in the proof assistant Rocq. We experiment with it on a variety of polyhedra, including Birkhoff polytopes, cross-polytopes, cubes, permutahedra, hypersimplices, and high-dimensional polytopes involved in the disproof of the Hirsch conjecture. Our experiments show that certification with the Rocq-to-OCaml extracted checker is typically 1.5x to over 5x faster than vertex enumeration by the state-of-the-art informal C implementation lrslib of the reverse search method.

1 Introduction

Minkowski–Weyl Theorem states that convex polyhedra, i.e., sets of RdR^{d} defined by finitely many linear inequalities, are precisely the convex hulls of finitely many points and rays (i.e., halflines). This statement establishes the existence of a double representation for polyhedra, by means of a system of linear inequalities (H-representation) or by a finite collection of points and rays (V-representation). Some operations over polyhedra, such as intersections of two polyhedra, or testing the membership of a point, can be straightforwardly done over H-representations. Other operations, such as projections, image under linear maps, or convex unions, are immediate over V-representations. This makes the computation of one representation from another a prominent problem in polyhedral computations, which appears in many applications. As an example, in applications to static analysis by abstract interpretation [Bagnara et al. 2008; Cousot and Halbwachs 1978], neural network verification [Müller et al. 2022; Tran et al. 2020], or dynamical system analysis [Guglielmi et al. 2017], it is generally acknowledged that the H- vs V-conversion is one of the main bottleneck steps; see e.g. [Maréchal et al. 2017; Singh et al. 2017].

In this setting, the computation of the vertices of a polyhedron, or even more specifically, of a polytope (i.e., a bounded polyhedron) plays a central role. Indeed, the vertex set of a polytope provides the smallest (inclusionwise) V-representation, and H- vs V-conversion problems for general polyhedra can be reduced to it (as we recall in Section 6). For this reason, the computation of the vertex set, commonly referred to as the vertex enumeration problem, is one of the most fundamental computational problems over polyhedra. It is also closely connected to long-standing questions in combinatorics and optimization involving graphs of polytopes and their diameters. In more details, the (vertex-edge) graph of a polytope is the graph whose vertices are the vertices of the polytope and whose edges are its one-dimensional faces. The diameter is the maximum graph distance between any two vertices. Diameters of graphs of polytopes provide lower bounds on the worst-case number of steps performed by the simplex method (as the latter actually traces a path to an optimal vertex in such graphs). The Hirsch conjecture asserted that the diameter of the vertex-edge graph of a d-dimensional polytope with n facets is at most n - d. Although this precise bound was disproved by Santos [2012], the central question remains whether polytope diameters admit a polynomial bound in n and d, which is known as the polynomial Hirsch conjecture. This provides an additional motivation for the development of formally verified methods computing vertex sets and vertex-edge graphs, especially in the context of an increasing use of computer-assisted and AI-assisted methods in the study of open problems.

The state-of-the-art approaches to the vertex enumeration problem are the double description method [Motzkin et al. 1953] and the more recent reverse-search method [Avis and

Fukuda 1992]. The double description method takes a system of n linear inequalities, and incrementally computes (minimal) V-representations of the polyhedra defined by the first k inequalities for k=1,…,nk = 1, \ldots, n. Despite being very simple to implement, the major drawback of this approach is that the intermediate polyhedra may have very large (e.g., exponentially large) V-representations compared to that of the final polyhedron. The reverse-search approach is based on the simplex method. It relies on the fact that every vertex corresponds to at least one basis in the sense of the simplex method. It then enumerates all such bases, by reversing the path followed by the simplex method. In non-degenerate situations, i.e., when every vertex corresponds to exactly one simplex basis, the reverse-search method is linear in the number of vertices (up to polynomial factor in the dimension d of the ambient space and the number n of defining inequalities). This applies in particular to simple polytopes, which form a “dense” class in the sense that any polytope can be made simple by an arbitrarily small generic perturbation of its defining inequalities. Another advantage of the reverse-search method is that it can be implemented in a memoryless way, and can be parallelized [Avis and Jordan 2018]. The double description and the reverse-search methods have proofread and highly optimized implementations, respectively the C libraries cddlib and lrslib, which are interfaced to various programming languages (e.g., Rust, Julia, Python) and are widely used in mathematical software (e.g., SageMath, Polymake or OSCAR).

Contribution. We present a certification method for checking that an informally computed list of vertices contains or is equal to the vertex set of a polytope. In addition, it can certify that an informally computed graph is the vertex-edge graph of the polytope. The method takes as input a description of the polytope by inequalities as well as a certificate that is built from the output of the reverse-search method C library lrslib.

The main novelty of our method is the way the completeness of the informal list of vertices is verified. It makes use of the normal fan of the polytope, which is a collection of cones called normal cones, each cone corresponding to a face of the polytope. A basic fact is that the list is complete if and only if the normal cones of the candidate vertices cover the whole space RdR^d. In order to check this covering property, we incorporate in the certificate an abstract simplicial complex, i.e., a collection of subsets of [n]:={1,…,n}[n] := \{1, \ldots, n\} (where nn is the number of defining inequalities), which define elementary (conical) tiles contained in these normal cones. These tiles act as a relaxation of a triangulation of the normal cones, in the sense that they are allowed to overlap and may have arbitrary dimension. We establish an odd-covering criterion (Theorem 4) which guarantees that the tiles cover RdR^d under a purely combinatorial condition on the abstract simplicial complex and the existence of a (generic) vector covered by an odd number of tiles. As a result, most of the certificate can be checked combinatorially, while the numerical computations are reduced to the verification that candidate vertices belong to the polytope (a rather unavoidable step), and that a given vector is oddly covered.

We implement the certificate checker in the proof assistant Rocq and formally prove its correctness up to two ingredients: the odd-covering criterion (Theorem 4) and the correctness statement for vertex-edge graph certification (Theorems 13 and 14). Both involve topological and homological arguments that are not yet available in the Rocq mathematical libraries we use in our development. We therefore provide self-contained pen-and-paper proofs of these results in the present paper and leave their formalization for future work. The correctness of the checker is proved by using proof-oriented types, and relies on the libraries Mathematical Components and Coq-Polyhedra for the formalization of the mathematical notions used (fields, vector spaces, polyhedra, faces, etc). This “high-level” implementation of the checker is then proved to be equivalent to a “low-level” one. The latter involves types made for efficient computations, such as persistent arrays, native binary integers, and the multiprecision arithmetics provided by the Rocq library bignums.

We experiment the resulting checker on several classical families of polytopes, namely Birkhoff polytopes, cross-polytopes, cubes, (dual) cyclic polytopes, permutahedra and hypersimplices. Cross-polytopes put aside, each class exhibits an exponentially (or subexponentially) growing number of vertices as the dimension scales up, which make them relevant test cases. We also consider the 20- and 23-dimensional polytopes provided as counterexamples to the Hirsch conjecture by [Matschke et al. 2015].

We report on two execution modes of the checker. In the first one, the checker runs inside Rocq using its bytecode virtual machine through the tactics vm_compute, as in the previous work of Allamigeon et al. [2023] on the graph certification problem. On their benchmark instances, our method improves the graph certification time by a factor ranging from 15 to 1000. To give an order of magnitude, we are now able to verify each of the two counterexamples to the Hirsch conjecture, including the violation of the Hirsch bound, in resp. 30 and 70 seconds on a standard laptop, compared to more than an hour in their work. In the second execution mode, the checker is obtained through Rocq extraction mechanism to OCaml code, which we compile to native code. We directly compare its performance to that of lrslib. We find that the vertex set certification time is typically 1.5x to over 5x (and up to 50x) faster than the vertex enumeration time. This demonstrates that our certification method could be used on top of lrslib in order to provide a formal guarantee at an acceptable overhead.

Related Work. The closest work to ours is that of Allamigeon et al. [2023], who provide a method for certifying the vertex-edge graph of a polytope and apply it to the formal verification of counterexamples to the Hirsch conjecture. Their method builds on the enumeration of lexicographically feasible bases (lex-feasible bases for short) performed by the reverse-search implementation lrslib. As explained in Section 4.3, we also use lex-feasible bases to construct our certificates, as a post-processing step applied to the output of lrslib. The performance gap between the two approaches can be explained from what is actually certified. As discussed in Section 4.3, the lex-feasible bases correspond to a particular triangulation of the normal cones called the lexicographic triangulation. The method of [Allamigeon et al. 2023] implicitly amounts to certifying that this specific triangulation is correct. In our implementation, we use the same lexicographic triangulation to generate the abstract simplicial complex contained in the certificate, but the checker does not verify that the complex represents the lexicographic triangulation. Instead, it only checks the weaker properties of the odd-covering criterion to certify the vertex-set and the graph correctness. This saves a substantial amount of numerical computations, most notably matrix-rank tests, as explained in Section 3. It also results in significantly smaller certificates, as reported in Section 5.3.

Out of the aforementioned work, we are not aware of any formally proven methods for computing or certifying vertex sets or vertex-edge graphs of polyhedra. To our knowledge, the majority of prior works that use formally verified polyhedral computations avoid dealing directly with H- vs V-representation problems, and reduce the verification of polyhedral operations to solving basic linear inequality problems such as infeasibility or logical implication problems. This is the approach followed by the Verified Polyhedra Library [Boulmé et al. 2018], where computational polyhedral operators are implemented in OCaml, and the verification of Farkas certificates (nonnegative combinations of linear inequalities) underlying to the correctness of the polyhedral computations done are discharged to Rocq. Similarly, the formally verified neural network prover Rocq-NN-Roll [Aleksandrov et al. 2026] relies on solving (in)feasibility problems over linear inequality systems. In practice, rather than exploiting a certification method, they directly do a formal proof of the Fourier–Motzkin elimination method.

Beyond the context of formal proof, the complexity of the certification problems related to H-/V-representations of polyhedra is an active topic where several questions remain unsolved. In more details, given a polytope PP described by some linear inequalities, and finite set V⊂RdV \subset \mathbb{R}^d of points, the complexity of deciding if V=vert(P)V = \text{vert}(P), or even V⊃vert(P)V \supset \text{vert}(P), is known to be in coNP. However, the membership to NP or, equivalently, the existence of a polynomial time certification method for the vertex-set exactness or completeness, is still an open question. We refer to [Kaibel and Pfetsch 2003], in which a broader discussion on the complexity status of problems related to H- vs V-representations can also be found. To our knowledge, Joswig and Ziegler [2004] is one of the few works to address vertex-set certification from an algorithmic perspective. Their completeness criterion is stated as the nontriviality of the (d−1)(d-1)th homology group over F2\mathbb{F}_2 (the field of order 2) of a crosscut complex generated by the sets of vertices incident to each facet. They propose to check this criterion by computing ranks of boundary matrices (of exponential size in the worst case). We are not aware of any implementation (even informal) of this approach. Our odd-covering criterion is also homological in nature, and we provide in Remark 1 an interpretation of the conditions of the criterion in terms of homology over F2\mathbb{F}_2.

Outline. The preliminary Section 2 introduces the key notions underlying to this work, such as polyhedra and their faces, normal cones and normal fans. Section 3 deals with the presentation and the proof of the odd-covering criterion. In Section 4, we present the certification method for vertex sets and vertex-edge graphs of polytopes (Section 4.1 and Section 4.2). We also show how a certificate can be systematically built from the output of the library lrslib, thus establishing the completeness of the certification method (Section 4.3). The formal proof of the method and its experimental evaluation are covered in Section 5. Proofs and extra statements are provided in appendix.

Source Code of the Formalization. The Rocq formalization is available in the repository https://github.com/Coq-Polyhedra/homology-checker. The README.md file describes how to compile it from dependencies, run the checker, and reproduce the experiments reported in Section 5 (a Dockerfile replaying the whole set of benchmarks is also provided in the directory benchmarks). Certificates can be built from the Rust generator provided in the repository https://github.com/Coq-Polyhedra/lrs-postprocess. The generator works from the output of a patched version of lrslib available in https://github.com/Coq-Polyhedra/lrslib.

Use of AI. Generative AI tools were used to assist the implementation, primarily in two specific contexts. First, they assisted in developing the Rust certificate generator, which lies outside the trusted computing base. Second, they were used to develop the refinement proofs bridging the low- and high-level certificate checkers (see Section 5.2), whose correctness is then checked by the proof assistant. AI-assisted tools were also used for minor supporting tasks, notably writing benchmark scripts or documentation, and producing the TikZ code of the pictures in the paper.

References (41)