arXiv:2608.22290cs.CCAug 2026

Manuscript Offprint

arXiv:2608.22290

Approximate counting of vertices of 0/1 polytopes: a stronger hardness result

Heng Guo, Mark Jerrum

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

We show that approximately counting the vertices of a bounded 0/1 polytope, presented as a system of rational linear inequalities, is, informally speaking, NP-hard. In particular, there is no FPRAS for this problem unless RP=NP\mathbf{RP} = \mathbf{NP}. The proof is by a reduction from approximately counting homomorphisms from a given graph to a particular four-vertex graph. The main proof ideas were found using GPT-5.6 Sol Ultra.

1 Introduction

We are interested in counting vertices of a polytope defined by linear inequalities Ax≤bAx \leq b. We concentrate on 0/1 polytopes, namely polytopes all of whose vertices belong to {0,1}n\{0,1\}^n. The polytope is presented by its defining inequalities, rather than by a list of its vertices.

Problem: #VERTICES OF A 0/1 POLYTOPE.

Instance: An m×nm \times n rational matrix A∈Qm×nA \in \mathbb{Q}^{m \times n} and a vector b∈Qmb \in \mathbb{Q}^m.

Promise: The inequalities Ax≤bAx \leq b define a bounded 0/1 polytope PP.

Output: The number v(P)v(P) of vertices of PP.

It is not known at the time of writing whether there is a polynomial-time algorithm to test whether a given pair (A,b)(A, b) defines a 0/1-polytope, so we include a promise to this effect.

We allow the polytope to be empty, in which case v(P)=0v(P) = 0. An FPRAS for #VERTICES OF A 0/1 POLYTOPE is a randomised algorithm that, given an instance and a parameter 0<ε≤10 < \varepsilon \leq 1, outputs a non-negative random value ZZ such that

Pr⁡[(1−ε)v(P)≤Z≤(1+ε)v(P)]≥34,\Pr\left[(1-\varepsilon)v(P)\leq Z\leq(1+\varepsilon)v(P)\right]\geq \frac{3}{4},

and runs in time polynomial in the encoding length of (A,b)(A,b) and in ε−1\varepsilon^{-1}.

As with the theory of NP-completeness, we may gain evidence for the non-existence of an FPRAS for a given counting problem using a suitable notion of reduction. In this application,

∗^{*}This work was supported by the UK Engineering and Physical Sciences Research Council grant number UKRI 2771.

the appropriate notion is AP-reduction, short for (polynomial-time) Approximation-Preserving reduction. In this paper, our reductions are actually parsimonious, that is to say, they preserve the number of solutions exactly. As an efficient parsimonious reduction would meet any reasonable definition of approximation-preserving reduction, we do not provide an exact definition of AP-reduction here. For a precise definition of concepts used in this paper and a general introduction to the complexity of approximate counting, refer to Dyer, Goldberg, Greenhill and Jerrum [1].

Our main result is the following.

Theorem 1. #VERTICES OF A 0/1 POLYTOPE is hard for #P under AP-reductions. In particular, there is no FPRAS for #VERTICES OF A 0/1 POLYTOPE unless RP=NP\mathbf{RP} = \mathbf{NP}.

A counting problem Π\Pi is said to “hard for #P\#P under AP-reductions” if, for every counting problem Π′∈#P\Pi' \in \#P, there is an AP-reduction from Π′\Pi' to Π\Pi. Some explanatory comments on the statement of this theorem follow later in the section. For the time being, we merely highlight the conclusion that, under a standard complexity-theoretic assumption, there is no polynomial-time algorithm (even a randomised one) that approximates the number of vertices of a 0/1-polytope.

The proof of Theorem 1 is via an AP-reduction from a hard graph homomorphism counting problem. A homomorphism from a graph GG to a graph HH is a function σ:V(G)→V(H)\sigma: V(G) \to V(H) such that, for all pairs of vertices u,v∈V(G)u, v \in V(G), it is the case that {u,v}∈E(G)\{u, v\} \in E(G) implies {σ(u),σ(v)}∈E(H)\{\sigma(u), \sigma(v)\} \in E(H). We denote the set of all homomorphisms from GG to HH by Hom(G,H)\text{Hom}(G, H). For any fixed undirected graph HH, the homomorphisms-to-HH counting problem is defined as follows.

Problem: #HOM(H).

Instance: An undirected graph G.

Output: ∣Hom(G,H)∣|Hom(G, H)|, the number of homomorphisms from G to H.

In §2 we present a (deterministic) polynomial-time parsimonious reduction from #HOM(H) to #VERTICES OF A 0/1 POLYTOPE, for the specific graph H4H_4 depicted in Figure 1. As #HOM( H4H_4) is known to be hard for #P under AP-reductions [4], Theorem 1 follows immediately, by transitivity of AP-reducibility.

As promised, here are some comments on the terminology used in, and the interpretation of, Theorem 1. In the literature on approximate counting, terminology such as “Π is #SAT-hard [under AP-reducibility]” appears. Since every problem in #P is parsimoniously reducible to #SAT (the problem of counting satisfying assignments of a CNF Boolean formula) these formulations are equivalent to the one used in Theorem 1.

At first sight, the conclusion in Theorem 1 looks rather weak. One might imagine that the existence of an FPRAS for #VERTICES OF A 0/1 POLYTOPE should lead to something more dramatic than RP=NP\mathbf{RP} = \mathbf{NP}, for example to RP=#P\mathbf{RP} = \# \mathbf{P} or the collapse of the polynomial hierarchy. However, Valiant and Vazirani [7] showed that every problem in #P can be approximated by a polynomial-time randomised Turing machine equipped with an NP-oracle. So whereas the complexity gap between existence and exact counting is expected to be huge, the gap is almost non-existent for approximate counting. For the same reason, the phrase “hard for NP under AP-reductions” used in [3] is equivalent to the formulation used Theorem 1, since (with a slight abuse of terminology) every problem in #P is AP-reducible to any NP-complete problem.

The standard definition of AP-reduction allows the algorithm performing the reduction to be randomised. However, the reductions used here are deterministic, so we can equally deduce that there is no polynomial-time deterministic approximation algorithm (technically FPTAS) for #VERTICES OF A 0/1 POLYTOPE unless P=NP\mathbf{P} = \mathbf{NP}. (The definition for FPTAS matches the one for FPRAS above, except that the word “randomised” is deleted, and the random variable Z becomes a deterministic value.) Of course, one needs to check that the reductions used to establish hardness results quoted in this paper are deterministic, but that is indeed the case.

A matrix AA is totally unimodular (TU) if every square submatrix of AA has determinant −1-1, 00 or 11. It is not difficult to verify that the vertices of the polytope defined by Ax≤bAx \leq b and 0≤x≤1\mathbf{0} \leq x \leq \mathbf{1}, where AA is TU, lie in {0,1}n\{0,1\}^n. Many 0/10/1-polytopes appearing in combinatorial optimisation arise in this way. One such is the bipartite independent set polytope. It follows that, restricted to TU instances, approximating #VERTICES OF A 0/10/1 POLYTOPE is as hard as approximating #BIS, the problem of counting independent sets in a bipartite graph. No FPRAS is known for #BIS and the same holds for the wide range of counting problems interreducible with #BIS via AP-reductions. At the same time, there is currently no evidence that #BIS is hard for #P under AP-reductions.

As well as observing that approximating #VERTICES OF A 0/1 POLYTOPE can be as hard as #BIS, Guo and Jerrum [3] showed that the generalisation to polytopes with vertices in {0,12,1}n\{0, \frac{1}{2}, 1\}^n is hard for #P under AP-reductions. Theorem 1 is a common strengthening of these two results.

Two prominent classes of TU matrices are network matrices and their transposes. As far as counting problems arising from transposes of network matrices are concerned we have a clear understanding: #BIS is an example in this class, and it is a hardest such under AP-reducibility. For network matrices our understanding is incomplete, and it is possible that all instances arising from these have an FPRAS [3]. We observe in the final section of this paper that the polytope Q(G)Q(G) used in the main reduction is not TU. Thus the approximation complexity of #VERTICES OF A 0/1 POLYTOPE when restricted to TU instances remains open. It could be #BIS-equivalent or maximally hard (or somewhere between these).

A related conjecture by Mihail and Vazirani [5] is that the edge expansion of any 0/1-polytope is at least 1, which implies rapid mixing of the simple random walks on the graph of the polytope. Our hardness result does not directly invalidate this conjecture, since the degrees of vertices can be exponentially large in the dimension of the ambient space. Nonetheless, this conjecture is recently found false by Yang [8], who constructed 0/1-polytopes with exponentially small edge expansion.