Log-concavity and Approximate Counting for Totally Unimodular Polytopes
Jonathan Leake, Maryam Mohammadi Yekta
Abstract
We present a new lower bound on the number of lattice points of all totally unimodular polytopes, generalizing previous lower bounds on contingency tables, integer flows, and beyond. Our bound is based on the Gurvits capacity convex optimization problem, and thus our result implies an efficient deterministic algorithm for approximate counting of the lattice points up to an explicit exponential factor. We achieve our bounds by showing that the associated generating polynomials fit into a new general class of log-concave polynomials called VLC (“variable-wise log-concavity”). This also implies a conjecture of Ferroni and Higashitani on the evaluations of the Ehrhart polynomials of unimodular polytopes. The essential ingredient for these results is the resolution of Barvinok’s log-concavity conjecture for contingency tables on lines, which was proven using ChatGPT 6 Astra. We conjecture a generalization of Barvinok’s conjecture, which we believe will lead to stronger and more general bounds.
1 Introduction
Totally unimodular polytopes are integral polytopes defined by a totally unimodular constraint matrix; concretely, a convex polytope Q is totally unimodular (TU) if there exists a totally unimodular matrix M (i.e., all minors are in {−1,0,+1}) and an integral vector b such that Q={y≥0:My=b}. Such polytopes have a wide range of applications, with their lattice points often representing integer solutions to various combinatorial problems. These applications include job assignments, contingency tables, bipartite matchings, bipartite independent sets, network flows, routing configurations, and beyond.
In this paper, we address two natural questions for such polytopes:
How can we estimate the number of lattice points of such a polytope Q?
How does the number of lattice points of Q vary with the choice of b?
Answers to both of these questions arise by proving log-concavity properties of generating functions associated to totally unimodular polytopes.
Given a totally unimodular polytope Q={y≥0:My=b}, there is a natural generating function for its lattice points based on the choice of b. Concretely, if M is m×n and has columns a1,…,an then
PM(x)=j=1∏n1−xaj1
is a generating function with the property that the xb coefficient of PM(x) is precisely the number of lattice points of Q. Both of the above questions then become questions about PM: how can we estimate the coefficients of PM, and how can we understand how the coefficients of PM relate to one another?
To address these questions, we prove that truncations of PM satisfy a certain natural log-concavity property called VLC. This property says that, after applying coefficient extractions and positive evaluations to all but one variable of PM, the coefficients of the remaining polynomial are log-concave. This generalizes various notions of log-concave polynomials (strongly log-concave [Gur09], completely log-concave [ALOV24], Lorentzian [BH20], etc.) which have had widespread applications in mathematics and computer science.
The fact that truncations of PM are VLC is then based on the underlying main technical result of the paper: that the coefficients of PM are log-concave along any rational line. This says in fact that as b moves along any line, the number of lattice points of Q forms a log-concave sequence. Barvinok originally asked a more general question of this form for the case of contingency tables [Bar07], and we resolve this line version here for all TU polytopes. This gives a nice answer to question 2, while the full strength of Barvinok's question for TU polytopes is still open Theorem 1.7.
The VLC property then enables us also to answer question 1. The Gurvits capacity method was originally developed to give a simple proof of the van der Waerden conjecture for permanents in [Gur08]. This technique implies a deterministic simply exponential approximation algorithm for non-negative matrix permanents as well. Since this original work, the capacity method has seen numerous applications to bounding and deterministically approximating various other combinatorial quantities. The general idea is to use log-concavity properties of a given generating function to approximate its coefficients by an associated convex optimization problem. The VLC property is then tailor-made precisely to allow the Gurvits capacity method to work as usual, and thus we can apply this method to PM and related generating functions.
1.1 Our Results
We now formally answer question 1: how can we estimate the number of lattice points of a TU polytope? We give two results in this direction. The first gives general bounds for all TU polytopes, and the second gives simply exponential bounds in a slightly restricted regime.
Theorem 1.1 (Theorem 4.5). Let M be an m×n totally unimodular matrix with columns a1,…,an. For all b∈Zm such that #{y∈Z≥0n∣My=b}<∞, we have
Corollary 1.2 (Theorem 4.6). Let M be an m×n totally unimodular matrix with columns a1,…,an and max{m,n}≥3. For all b∈Zm satisfying ∥b∥1≥6m⋅log(max{m,n}) and such that #{y∈Z≥0n∣My=b}<∞, we have
E≥#{y∈Z≥0n∣My=b}≥e−∥b∥1E,
where E is as in Theorem 1.1.
Theorem 1.1 and Theorem 1.2 can also be made algorithmic, using the maximum-entropy optimization framework of [SV14].
Theorem 1.3 (see Section 5). There is a deterministic algorithm (based on the ellipsoid algorithm) which, given an m×n totally unimodular matrix M, a vector b∈Zm such that {y∈Z≥0n∣My=b} is nonempty, and an ϵ∈(0,1), computes A such that A−ϵ≤logE≤A+ϵ in time polynomial in m, n, log(1+∥b∥1), and logϵ1. Here E is defined as in Theorem 1.1.
The proofs of Theorem 1.1 and Theorem 1.2 are then based on our answer to question 2: how does the number of lattice points of a TU polytope vary with b? The following result answers this by generalizing a question of Barvinok [Bar07] on the log-concavity of the counts of contingency tables with various marginals. Our result in fact holds for unimodular polytopes, which are defined like totally unimodular polytopes except that the defining matrix M is only required to be unimodular.
Theorem 1.4 (Theorem 3.1). Let M be an m×n (not necessarily totally) unimodular matrix. For all b,b−,b+∈Zm such that b=2b−+b+, we have
We note that Theorem 1.4 immediately implies a recent conjecture for TU polytopes on the log-concavity of Ehrhart evaluations. This conjecture comes from [FH24], where the authors in fact make the conjecture for all IDP lattice polytopes (though this is now false in general by [Fer26]). Recall that, given a lattice polytope P, the Ehrhart polynomial EP(t) is the unique polynomial such that EP(k)=#(kP∩Zn) for all k∈Z≥0.
Corollary 1.5 (Conjecture 1.2 of [FH24]). For all (not necessarily totally) unimodular polytopes P, we have EP(k)2≥EP(k−1)⋅EP(k+1) for all k∈Z≥1.
Beyond our main results, we can also prove slightly stronger results under further restrictions. We give various bounds in Section 4, and we give one such result here to demonstrate the sort of thing we can achieve.
Theorem 1.6 (Theorem 4.14). Let M be an m×n totally unimodular matrix with columns a1,…,an such that ai=0 for all i∈[n], and let si be the sum of the first i rows of M for i∈[m]. If si≥0 for all i∈[m] (for example, if M has only 0/1 entries) then for all b∈Zm we have
Theorem 1.4 is in fact based upon a stronger coefficient-wise positivity result (Theorem 3.1) which follows from the bijective proof which we give in Section 3. This theorem raises an open question, which is the natural generalization of Barvinok's question in [Bar07].
Question 1.7. Let M∈Zm×n be a unimodular matrix and μ a probability distribution on Zm (perhaps with finite support) such that its mean is b∈Zm. Is it that case that
#{y∈Z≥0n∣My=b}≥a∈Zm∏#{y∈Z≥0n∣My=a}μ(a)?
Note that for functions/distributions over Rm, Theorem 1.7 would immediately follow from Theorem 1.4. However, for functions/distributions over Zm, convexity on lines does not imply global convexity in general.
We believe that a positive answer to Theorem 1.7 would enable us to obtain stronger capacity bounds (hopefully simply exponential) in general, using the following idea. Currently, most capacity bounds are proved inductively on each variable of a given polynomial or generating series. Because of this, the bounds often depend on distances of the desired marginals or degree vector (e.g. the b vector) to the boundary of the Newton polyhedron in the coordinate directions. The coordinate direction distance can be very bad for general TU polytopes, and so we need to adapt the application of the capacity bounds to handle this.
Given the inequalities of Theorem 1.7, it is perhaps possible that this capacity induction argument may be able to be exchanged with a geometric argument related to distances to the boundary of the Newton polyhedron in any choice of directions. This would yield much better bounds and approximation factors, if possible.
1.3 Previous and Related Work
Bounding and approximately counting lattice points in totally unimodular polytopes has attracted considerable attention. A variety of bounds and approximation algorithms, both randomized and deterministic, are known for important classes of such polytopes. On the randomized side, fully polynomial randomized approximation schemes (FPRASs) have been obtained for bipartite perfect matchings [JSV04], binary contingency tables [BBV07], and nonnegative integer contingency tables under restrictions such as a fixed number of rows or sufficiently large margins [CD03, DKM97, Mor02]. Related results apply to cell-bounded contingency tables with a fixed number of rows and to integral flows with sufficiently large tight capacities [CDR10]. For certain classes of smooth margins, a randomized approximation algorithm runs in time quasipolynomial in the total sum of the table entries [BLSY10]. More recently, rapid mixing of the natural swap chain was established for binary contingency tables with arbitrary feasible margins [FQW26].
On the deterministic side, matrix scaling and polynomial capacity methods give polynomial-time exponential approximations for counting bipartite perfect matchings [LSW00, Gur06, Gur08], with subsequent improvements [GS14, AR25]. Recent preprints obtain a subexponential approximation factor [KLM26] and a (1+ε)n approximation factor for every fixed ε>0 [DJ26], where n is the number of vertices on each side of the bipartition. Convex optimization and polynomial capacity methods also give (often simply) exponential estimates for contingency tables [Bar09, Bar10, Gur15, BLP23] and integer flows [Bar09, LM26, LMY26]. Computationally efficient asymptotic formulas are available in suitable smooth-margin regimes [BH12]. For contingency tables with a fixed number of rows, deterministic fully polynomial-time approximation schemes (FPTASs) are known [GKM +11], with improved running times in the two-row case [AH21].
Beyond these special classes, other positive results include polynomial-time exact counting in fixed dimension [Bar94], exact counting methods for nonnegative totally unimodular systems with a fixed number of equations [Mou00], algebraic methods for computing counting polynomials for unimodular systems [DS03], and maximum-entropy Gaussian approximations under well-roundedness assumptions [BH10].
In contrast, no fully polynomial randomized or deterministic approximation scheme is known for arbitrary totally unimodular polytopes; such an algorithm would in particular yield an FPRAS for counting independent sets in bipartite graphs [GJ23]. This motivates seeking weaker approximation guarantees that apply uniformly to all bounded TU polytopes, which is what we prove here.
1.4 AI Declaration
The AI tool we specifically used was ChatGPT 6 Astra. The authors have verified and take full responsibility for everything written in the paper.
Before the first draft. The resolution of Barvinok's conjecture/question on the log-concavity on lines of the contingency tables counts (Theorem 1.4) was the main AI input to this paper. We generalized this result to all TU polytopes with upper and lower entrywise bounds on the counted lattice points (Theorem 3.1), and in fact the AI suggested in a remark that this should be possible. Beyond that, the literature review and much of the associated parts of the introduction were written with the help of AI.
After the first draft. We used AI to check for errors or to make suggestions on the flow or style of the paper. From this we fixed a number of errors which were mostly minor; the main issue that was fixed here were proofs regarding limiting arguments for capacity and for sequences of Laurent polynomials and series. In particular Theorem 4.11 and the surrounding results were added at this point. Additionally, AI also suggested a way to improve the bound in Theorem 1.1 via Theorem 4.3. We also originally had referenced [SV14, SV19] as the way to prove algorithmic efficiency in Theorem 1.3, but we had left out the details. We used AI to fill in those details, and now we have the proof of Theorem 1.3 in Section 5. Further, AI also found that the central-fiber argument in our (AI-assisted) proof of Theorem 1.4 has a direct antecedent in the graph-orientation argument of [CI20]. Finally, AI also suggested many changes to the structure, ordering, and content of the introduction and title. We took many of those suggestions, and then wrote the new introduction ourselves.
2 VLC Laurent polynomials
Gurvits' capacity function has been widely used to obtain lower bounds for various interesting combinatorial quantities. The underlying idea of these results is that if a (Laurent) polynomial has a certain log-concavity property, then one could use the theory of log-concave polynomials to derive lower bounds for its coefficients. However, currently studied log-concavity properties (e.g., Lorentzian, denormalized/dually Lorentzian, etc.) are all conditions which are too strong to apply to TU polytopes in general.
Thus, in Section 2.1 we introduce a class of Laurent polynomials with weaker log-concavity properties, for which capacity lower bounds are still applicable. We further explore basic properties of this class throughout Section 2.2. We then turn our focus to unimodular and totally unimodular (TU) matrices in Section 3 and prove that the cardinalities of the fibers of a unimodular polytope are log-concave along lines.
2.1 Definition and capacity bounds
There are two key steps in proving capacity bounds for a denormalized Lorentzian polynomial p: first that any evaluation of p in all but one variable is a univariate polynomial with log-concave coefficients, and second that [xiαi]p satisfies the first condition for any i,αi. We will take these two properties and define a new class of Laurent polynomials. Capacity lower bounds then naturally extend to this class.
Recall that a sequence {ak}k∈Z of non-negative numbers is said to be log-concave if it has no internal zeros and ak2≥ak−1⋅ak+1 for any valid index k. A Laurent polynomial is a sum p(x)=∑α∈Znpαxα with a finite support, where the support of p denoted by supp(p) is the set {α∈Zn:pα=0}. We further say that a univariate Laurent polynomial p(x)=∑k∈Zpkxk has a log-concave coefficient sequence if {pk}k∈Z is a log-concave sequence.
and for any n≥2, let VLCn contain all n-variate Laurent polynomials p(x1,⋯,xn)=∑α∈Znpαxα with non-negative coefficients such that:
• Evaluating p at any n−1 variables with positive real numbers belongs to VLC1,
• [xiαi]p is in VLCn−1 for any i∈[n] and αi∈Z.
Equivalently, p(x1,⋯,xn)∈R≥0[x,x−1] is an element of VLCn if for any S⊆[n] and any α∈ZS, any positive evaluation of [∏i∈Sxiαi]p in all but one variable has log-concave coefficients. In a sense, the coefficients of p are log-concave after applying certain variable-wise operations, hence the name VLC.
More generally, we will say that a polynomial p(x1,⋯,xn) is VLC if it belongs to VLCn.
Lorentzian polynomials and denormalized Lorentzian polynomials are both subclasses of VLC (see [BH20, §3.1]). In fact, this class of Laurent polynomials is crafted in a way that the capacity bound for the coefficients of denormalized Lorentzian Polynomials extends naturally to VLC Laurent polynomials.
Proposition 2.2. Suppose p(x1,⋯,xn)∈VLCn and α∈Zn, then:
where βi is either a lower bound or an upper bound for Degiα(p), the set of degrees of xi appearing in [xi+1αi+1⋯xnαn]p.
Proof. The proof is done by induction over the number of variables of p. For n = 1, the proof follows from the case for denormalized Lorentzian Laurent polynomials by [LMY26, Lemma 4.20] (see also [BLP23, Lemma 5.7]). Note that the homogenization of the polynomial ∑k∈Zakxk is denormalized Lorentzian iff {ak}k∈Z is a log-concave sequence, i.e. ∑k∈Zakxk is VLC.
The proof is then completed by the induction hypothesis for [xnαn]p.
2.2 Examples and properties
As mentioned before, any denormalized Lorentzian polynomial is VLC. It is easy to see that any “shift” of a denormalized Lorentzian polynomial is also VLC, i.e. xαp(x) is VLC if p is denormalized Lorentzian. However, the class of VLC Laurent polynomials contains a much larger set of Laurent polynomials. The following is an example of a Laurent polynomial that is not necessarily denormalized Lorentzian but is VLC:
Example 2.3. Let n,k∈Z≥0 and b∈{0,±1}n, then:
p(x1,⋯,xn)=t=0∑kxt⋅b
is VLC. We proceed by induction on n. If n=1, the statement is trivial since the coefficients sequence of p is the all ones sequence. Now suppose n≥2 and assume the statement holds for n−1. Let us check both of the conditions of Theorem 2.1 for p.
First evaluate p at all but one variable, say xi. It is easy to check that the coefficients of the polynomial p(x)∣xj=rj∀j=i form a geometric sequence and thus are log-concave. Furthermore, if bi=0, the Laurent polynomial [xiαi]p(x) is either the zero polynomial or just a monomial and is VLC. If bi=0 however,
[xiαi]p is really a Laurent polynomial in n−1 variables which is VLC by the induction hypothesis.
As another example, suppose b1,b2∈{0,1}n, then the series:
q(x)=t=0∑kxt⋅b1⋅t=0∑kxt⋅b2
can also be shown to be VLC by basic algebra and some extra effort. We have refrained from including the details of this proof for brevity. One could see that this polynomial is indeed VLC by Theorem 3.8.
For general b,b1,b2, the supports of the Laurent polynomials p and q in Theorem 2.3 need not be M-convex. Thus, neither is necessarily a denormalized Lorentzian Laurent polynomial. This raises the question of characterizing the support of an VLC Laurent polynomial.
Proposition 2.4. If p(x)=∑α∈Znpαxα is an VLC Laurent polynomial, then its support is a finite saturated set.
S⊆Zn is called a saturated set if S=conv(S)∩Zn, where conv(S) is the convex hull of S.
Before proving this proposition, let us recall a well-known fact about newt(p) := conv(supp(p)), also known as the Newton polytope of p.
Fact 2.5 ([AO17, Fact 2.18], see also [LMY26, Lemma 4.15]). If p is a nonzero Laurent polynomial (or a Laurent series with a nonempty domain of convergence and a closed Newton polyhedron) with nonnegative coefficients, then capα(p)>0 iff α∈newt(p).
Proof of Theorem 2.4. It suffices to show that pα>0 for any α∈newt(p)∩Zn. By Theorem 2.5, for any such α, capα(p)>0. Thus, by Theorem 2.2, we have:
One would hope that any finite saturated set would be the support of some VLC Laurent polynomial, but this is not the case. For instance, the set S={(0,0),(1,0),(2,1)} is a saturated set, but the polynomial p(x,y)=a+bx+cx2y is not VLC no matter the choice of a,b,c>0. This is because evaluating y at a large enough r>0 breaks log-concavity of the sequence a,b,cr. We currently do not have a necessary and sufficient condition for a set S to arise the support of an VLC Laurent polynomial.
Proposition 2.6. The class of VLC Laurent polynomials is closed under scaling variables.
Proof. We proceed by induction on the number of variables. If p(x)=∑k∈Zpkxk has a log-concave coefficient sequence, then so does p(cx)=∑k∈Zckpkxk, and the induction basis holds.
Let n≥2 and let p(x1,⋯,xn) be an VLC Laurent polynomial and let c>0. We want to show that q(x)=p(cx1,x2,⋯,xn) is also an VLC Laurent polynomial. Any evaluation of q at all but the variable xi where i=1 has log-concave coefficients, since:
q(x)xj=rj,j=i=p(x)x1=cr1,xj=rjj=i,1.
If q is evaluated at all but variables except x1, then:
where pk is the coefficient of x1k in p(x1,r2,⋯,rn). Since p is VLC, the sequence {pk}k∈Z is log-concave, and therefore, so is the sequence {ckpk}k∈Z. Hence any evaluation of q in n−1 variables has log-concave coefficients.
Furthermore, we know that [xiα]p is an VLC Laurent polynomial in n−1 variables for any α∈Z and i∈[n]. By the induction hypothesis, for any i=1, the Laurent polynomial [xiα]q=([xiα]p)(cx1,⋯,xi−1,xi+1,⋯,xn) is VLC as well. Lastly, [x1α]q=cα[x1α]p is VLC too and and we are done.
Proposition 2.7. If a sequence {pi(x)}i≥0 of VLCn Laurent polynomials converges coefficient-wise to a Laurent polynomial p(x) such that supp(pi)⊆supp(p) for all i≥0, then p∈VLCn.
Proof. Proceed with induction on n. The statement for n=1 follows from the fact that the limit of any log-concave sequence is a log-concave sequence. Let n≥2. Suppose r2,⋯,rn>0. Then:
p(x1,r2,⋯,rn)=i→∞limpi(x1,r2,⋯,rn),
since each pi(x1,r2,⋯,rn) has a log-concave coefficient sequence, the coefficient sequence of p(x1,r2,⋯,rn) is log-concave as well. Moreover, for any α∈Z, j∈[n]:
[xjα]p=i→∞lim[xjα]pi.
Since supp([xjα]pi)⊆supp([xjα]p) for all i≥0, [xjα]p is VLCn−1 by the induction hypothesis, finishing the proof.
3 Unimodular and Totally unimodular (TU) polytopes
The goal of this section is to prove the following log-concavity statement:
where M is an m×n unimodular matrix and b+,b−,2b++b−∈Zm,w∈R>0n are given vectors. Recall that a matrix M is said to be unimodular if all of its non-singular rank(M) × rank(M) submatrices have determinant ±1. We will provide an AI-assisted proof that this sequence is log-concave for any M and b in Section 3.1. In Section 3.2, we will use this log-concavity statement to show that ∑0≤y≤kxMy is an VLC Laurent polynomial for any TU matrix M. We will then derive capacity bounds for #{y∈Z≥0n:My=b,y≤k} using this Laurent polynomial in Section 4.
3.1 Mid point log-concavity for unimodular polytopes
The ideas and proofs in this section follow an AI assisted argument for midpoint log-concavity of contingency tables with tweaks to prove what we require for our purposes. In particular, the proofs of Theorem 3.1, Theorem 3.2 and Theorem 3.3 are AI-assisted. We note that the pair-decomposition and induction used in Theorem 3.2 and Theorem 3.3 generalize the argument from Section 5 of [CI20] from graph orientations to lattice points in boxes subject to unimodular linear constraints.
For any unimodular matrix M∈Zm×n and any vectors b,a,k1,k2 of proper dimensions, Define:
When the choice of the matrix M is clear from context, we will omit M from the notation in all of the definitions above. Note that if E(M,a)=0, then we must have Ma∈(2Z)m. We aim to prove the following theorem:
Theorem 3.1. Suppose b,b+,b− are integer vectors such that b=2b++b−. Then for any k1,k2:
T(b,k1,k2;w)2−T(b+,k1,k2;w)⋅T(b−,k1,k2;w)
is a Laurent polynomial in w with nonnegative coefficients.
In fact, we will explicitly express the coefficients of T(b,k1,k2;w)2−T(b+,k1,k2;w). T(b−,k1,k2;w) in terms of B(k1,k2)(b), B(k1,k2)(b+) and B(k1,k2)(b−) and prove that these coefficients are non-negative using Theorem 3.2, Theorem 3.3 and Theorem 3.4. We then use Theorem 3.1 to prove that the Ehrhart of a unimodular polytope has log-concave evaluations, see Theorem 3.5. We explain why our methods do not work for a general IDP polytope in Theorem 3.6.
where for any number r∈R, we define (r)+=0 if r<0 and (r)+=r otherwise. The following facts are easy to check:
x=m+p,
y=m+a−p,
2p=a+x−y so Mp=2Ma and further pi∈{0,ai}, thus p∈E(a),
2m=x+y−a, so Mm=b−2Ma. Moreover k1≤m≤k2−a. Thus m∈B(k1,k2−a)(b−2Ma)∩Zn.
Let: φ(x,y)=(a,p,m). Then φ is a bijection between the desired sets by 1 through 4.
Lemma 3.3. Given integer vectors k1≤k2 and b with proper dimensions, define k:=k2+k1. If Mk is even, then we have:
B(k1,k2)(b)≤B(k1,k2)(2Mk).
Proof. Proof is done by induction over ∣k2−k1∣. Suppose ∣k2−k1∣=0, i.e. k2=k1. Then B(k1,k2)(2Mk)=1, and B(k1,k2)(b) is either zero or one, depending on whether Mk1=b or not. Thus the base case holds.
The term a=0 contributes B(k1,k2)(b) and B(k1,k2)(2Mk) to the right hand sides of the first and the second identity respectively. By moving these terms to the left hand side, we get:
This conclusion completes the proof except for the case that B(k1,k2)(2Mk)=0 and B(k1,k2)(b)=1. However, B(k1,k2)(2Mk) is a nonempty polytope since 2k∈B(k1,k2)(2Mk), and therefore has at least one vertex which is integral by Theorem 3.4. Thus B(k1,k2)(2Mk)≥1 for any k, fixing the issue.
Lemma 3.4. Suppose M∈Zm×n is a unimodular matrix and b∈Zm, k1,k2∈Zn. If the polytope B(k1,k2)(b)={y:My=b,k1≤y≤k2} is nonempty, then all of its vertices are integral.
Proof. Let r=rank(M) and fix y∗ to be a vertex of B(k1,k2)(M,b). We say that a constraint k1,i≤yi or yi≤k2,i is active at y∗ if it holds with equality for y∗. The equality constraints My∗=b are automatically active.
Without loss of generality, assume that the first r rows of M are linearly independent, and let M[r] be the submatrix of M containing these r rows, and let b[r] be the vector b restricted to its first r entries.
Note that the normal vectors of the active constraints of Bk1,k2(b) at y∗ must span Rn. Otherwise there will exist some v∈Rn orthogonal to all of the active constraints. Therefore, any point y∗±ϵv belongs to P for small enough ϵ∈R≥0, contradicting the assumption that y∗ is a vertex of M.
So in addition to the r constraints of M[r] that are automatically active at y∗, there are (at least) n−r constraints of k1≤y≤k2 that are active at y∗ and are linearly independent together with the equality constraints of M[r]. After permuting the columns of M, assume that yi=di for i∈[n−r] where di∈{k1,i,k2,i}. For simplicity, let A be the submatrix of the first n−r columns of M[r] and B its last r columns, so that M[r]=[AB]. We know that y∗ satisfies:
In particular, we must have detB=0. Since B is a non-singular r×r submatrix of M, its determinant is either +1 or −1 and B−1 is an integer matrix. Thus:
yj∗=[B−1(b[r]−Ad)]j∈Z,∀j∈{n−r+1,⋯,n}
and y∗ is an integer point.
We now have all the tools to prove Theorem 3.1.
Proof of Theorem 3.1. Expand T(b,k1,k2;w)2−T(b+,k1,k2;w)⋅T(b−,k1,k2;w):
where the min, max are taken coordinate-wise. For each i, if αi≤k1,i+k2,i then the i-th coordinate of max{k1,α−k2} is k1,i and the i-th coordinate of min{k2,α−k1} is αi−k1,i. If αi≥k1,i+k2,i then the i-th coordinate of max{k1,α−k2} is αi−k2,i and the i-th coordinate of min{k2,α−k1} is k2,i. Thus max{k1,α−k2}+min{k2,α−k1}=α.
it follows from Theorem 3.3 that all the coefficients of T(b,k1,k2;w)2−T(b+,k1,k2;w)⋅T(b−,k1,k2;w) are nonnegative.
Corollary 3.5. Let M∈Zm×n be a unimodular matrix and b∈Zm. Suppose P={y∈R≥0n:My=b} is a bounded polytope. Then EP(t)2≥EP(t−1)⋅EP(t+1) for all t∈Z≥1.
Remark 3.6. We remark that if M is unimodular and b∈Zm, k1,k2∈Zn are given, the polytope B(k1,k2)(M,b) is indeed IDP. However, not all IDP polytopes are obtained this way. Furthermore, Theorem 3.4 is not generally correct for an arbitrary IDP polytope. In particular, with the added assumption that M has full row rank, one can show that M is unimodular iff B(k1,k2)(b) has integral vertices for any choice of b,k1,k2. Thus, the proof of Theorem 3.1 does not extend to IDP polytopes. In fact, Theorem 3.5 fails for general IDP polytopes, see [Fer26].
3.2 Solution Laurent polynomials of TU matrices
Suppose M∈{0,±1}m×n is a totally unimodular matrix. For any b∈Zm, we want to find a lower bound for #{y∈Z≥0n:My=b}. We encode these quantities as coefficients of a Laurent polynomial and prove that this Laurent polynomial is VLC. We will then use Theorem 2.2 to obtain lower bounds for its coefficients in Section 4.
Suppose a1,⋯,an∈Zm are the columns of M. For any integer vector k∈Z≥0n, define the k-solution Laurent polynomial of M to be:
where B(k1,k2)(b)=#{y∈Zn:My=b,k1≤y≤k2}, as defined in Section 3.1.
The goal of this section is to prove that PM,k is VLC for any TU matrix M and k∈Zn. See Theorem 3.9 on why we cannot prove a similar statement for unimodular matrices.
Let us first derive a simpler equivalent condition for PM,k to be VLC. For the sake of simplicity, if M is an m×n matrix and S⊆[m], we denote by MS the submatrix of M consisting of the rows indexed by S.
Proposition 3.7. Suppose M is a TU matrix. Then PM,k is VLC if and only if the following condition holds:
Choose an arbitrary subset S⊆[m] of the rows of M. Let B=MS and A=M[m]∖S. Further choose an arbitrary b∈Z∣S∣. Then any positive evaluation of the Laurent polynomial ∑0≤y≤kxAy in all but one variable has log-concave coefficients.
Proof. By Theorem 2.1, PM,k is VLC if for any S⊆[m] and b∈Z∣S∣, any positive evaluation of [xSb]pM,k in all but one variable has log-concave coefficients. We can write:
Theorem 3.7 already reveals the connection between VLC properties of k-solution Laurent polynomials of TU matrices and midpoint log-concavity for TU polytopes. The following proposition completes this connection.
Proposition 3.8. Suppose [AB] is a TU matrix and assume A is an m×n matrix. Then any positive evaluation of ∑0≤y≤kxAy in all but one variable has log-concave coefficients.
Proof. Without loss of generality, evaluate ∑0≤y≤kxAy in all but the last variable, and let q(x) be the resulting Laurent polynomial. It remains to check that {[xβ]q}β∈Z is a log-concave sequence.
Let a(1),a(2),⋯,a(m) be the rows of A, and suppose we are evaluating p at y1=r1,⋯,ym−1=rm−1. Then:
Let M be the matrix that is obtained by by appending a row of en+mT=[0⋯01] row to the end of [BA0−id], i.e. M=BAen+mT0−id. By basic properties of TU matrices, M is TU. Then we can rewrite:
Observe that this sequence does not have any internal zeros. This is because given any integer vectors β1,β2, the set {d:My=d for some β1≤y≤β2} is convex, and if d is an integer vector in this set, then β1≤y≤β2, My=d has an integer solution by Theorem 3.4.
Thus, this sequence is log-concave due to Theorem 3.1 and because 2b0β=
b0β−1+b0β+1.
Remark 3.9. Suppose M is a general unimodular matrix. To prove that PM,k is VLC, we need to show that ∑0≤y≤kBy=bxAy is VLC for every partition of the rows of M into two submatrices A and B. However, the proof of Theorem 3.8 does not always for unimodular matrices since BAen+mT0id does not necessarily remain unimodular.
Corollary 3.10. By Theorem 3.7 and Theorem 3.8, the k-solution Laurent polynomial of any TU matrix is VLC for any k≥0.
4 Capacity bounds for lattice points of TU polytopes
With Theorem 3.10 at our disposal, we can use Theorem 2.2 to derive capacity bounds for B(0,k)(M,b) based on capb(PM,k) and Degib(PM,k). In this section, we will focus on finding explicit bounds for the set Degib(PM,k) based on M, b and k. We look at general TU matrices in Section 4.1 and find a simply exponential lower bound for B(M,b):=#{y∈Z≥0n:My=b}. In Section 4.2, we look at two special classes of TU matrices and find another lower bound for BM(b).
First, let us find an alternate characterization for both minDegib(PM,k) and maxDegib(PM,k) using LP strong duality. For any matrix M∈Rm×n, let m(i) be the i-th row of M and let M[i+1,m] denote the submatrix of M consisting of the rows i+1,⋯,m. Further define si to be the sum of the first i rows of M. In particular, if b∈Rm is a vector, then b[i+1,m] is the restriction of b to its i+1,⋯,m-th entries.
Proposition 4.1. Let M be an m×n TU matrix and k∈Zn. For any i∈[m−1]:
since M is a TU matrix, a tight upper bound for this set would be the solution to the LP problem:
max{m(i)Ty:M[i+1,m]y=b[i+1,m],0≤y≤k}.
(P)
The dual of this LP is:
min{b[i+1,m]Tw+kTz:(M[i+1,m])Tw+z≥m(i),z≥0}.
(D)
By strong LP duality, the objective value of (P) and (D) are equal, completing the first part of the proof. The argument for minDegib(PM,k) is similar.
Computing the optimal values of the LPs in Theorem 4.1 for all i∈[m−1] can be computationally costly. Instead, we evaluate the objective functions of these LPs at feasible points, getting weaker bounds for Degib(PM,k). We can use this looser bound to obtain a capacity lower bound for B(0,k)(M,b) by Theorem 2.2. We will look at two different sets of feasible points for these LPs. First, we will let w=0 and adjust z accordingly to find a feasible point. This way we get capacity lower bounds for any TU matrix M, which are stated in Section 4.1. Second, we will let z=0 and adjust w accordingly. In case a feasible w exists, we can find an alternate capacity lower bound for B(0,k)(M,b), see Section 4.2. In particular, we find a lower bound for B(0,k)(M,b) when M has non-negative partial row sums and recover a lower bound for the number of lattice points of a flow polytope already presented in [LM26] and [LMY26].
4.1 General capacity bounds for TU polytopes
As proven in Theorem 3.10, the k-solution Laurent polynomial of any TU matrix is VLC. Thus we can obtain a lower bound for B(0,k)(M,b) using Theorem 2.2:
Theorem 4.2. For any m×n TU matrix M and any integer vectors k∈Zn, b∈Zm we have:
and for any vector v∈Rn, both (v)+,(v)− are applied coordinate-wise. It is easy to check that the pair w=0,z=(m(i))+ satisfy (M[i+1,m])Tw+z≥m(i),z≥0. It follows from Theorem 4.1 that γi is indeed an upper bound for Degib(PM,k) for any i∈[m−1]. Similarly, w=0,z=−(m(i))− is a feasible point for (M[i+1,m])Tw−z≤m(i),z≥0, implying that αi is a lower bound for Degib(PM,k) for any i∈[m−1].
It is also easy to check that αm,γm are bounds for Degmb(PM,k), since:
Let us assume that the fiber {y∈Z≥0n:My=b} is finite. Then there should exist some k such that any y in this fiber satisfies y≤k. For such a k, the bound of Theorem 4.2 becomes a bound for B(M,b)=#{y∈Z≥0n:My=b}. Through the rest of this section, we will explore the properties of TU matrices M with finite fibers and prove capacity bounds for B(M,b).
Lemma 4.3. Suppose M is an m×n TU matrix and the fiber {y∈Z≥0n:My=b} is nonempty and finite for some integer vector b. Then any point of this fiber satisfies yi≤∥b∥1 for any i∈[n].
Proof. In fact, we can prove that any point y of P={y:My=b,y≥0} satisfies yi≤∥b∥1.
We know that the polyhedron P is bounded since M is TU and {y∈Z≥0n:My=b} is finite. So P is the convex hull of its vertices and by convexity, it suffices to show that any vertex y∗ of {y:My=b,y≥0} satisfies yi≤∥b∥1.
Let r=rank(M) and let y∗ be a vertex of P. The columns of M indexed by supp(y∗):={i∈[n]:yi∗=0} are linearly independent. Otherwise, there would exist a nonzero vector v supported on supp(y∗) with Mv=0, so that y∗±εv∈P for sufficiently small ε>0, contradicting the fact that y∗ is a vertex.
Let B be a set of r linearly independent columns of M containing supp(y∗) (B is also known as the basis of vertex y∗ in linear programming). Then yi=0 for i∈/B. Let M:,B be the submatrix of M containing the columns indexed by B. M:,B still has rank r, so choose a R⊆[m] with ∣R∣=r such that the submatrix of M:,B containing the rows indexed by R is invertible. Let this r×r submatrix be MR,B.
Restricting My∗=b to the rows in R and columns in B gives us that MR,ByB∗=br, thus yB=MR,B−1bR. Since M is TU, MR,B−1 is TU as well, and any entry of MR,B−1 belongs to {0,±1}. Consequently, for each i∈B we have:
yi≤j∈R∑∣bj∣≤∥b∥1.
The same bound holds for i∈/B because yi=0.
Corollary 4.4. Suppose M∈{0,±1}m×n is a TU matrix. Let r=rank(M) and c=∥b∥1. Then:
If ∥b∥1 is reasonably large so that m+mlog(1+n∥b∥1)=O(∥b∥1), one could rewrite the bound of Theorem 4.5 as a simply exponential bound in ∥b∥1. The following corollary establishes a bound for ∥b∥1 that gives us such a simply exponential bound for B(M,b).
Corollary 4.6. Suppose m,n are positive integers satisfying max{m,n}≥3. Given a TU matrix M∈{0,±1}m×n with finite fibers and some b∈Zm satisfying ∥b∥1≥6m⋅log(max{m,n}), we have:
B(M,b)≥capb(PM,∥b∥1⋅1)⋅exp(−∥b∥1)
Proof. Apply Theorem 4.5 to M and b. We just have to check that:
∥b∥1≥m+mlog(1+n∥b∥1),
or the following stronger inequality:
∥b∥1−mlog(∥b∥1)≥m+mlog(2)+mlog(n)
The function z↦z−mlog(z) is increasing for z>m, therefore it suffices to check the above inequality for ∥b∥1=6m⋅log(q) where q=max{m,n}. Now we only need to show that:
6logq≥1+log(2)+log(q)+log(6qlogq),
or equivalently that 5logq≥1+log(2)+log(6qlogq). Exponentiate both hand sides of this inequality to get the equivalent statement q4≥12elogq, which holds for any q≥3.
4.2 Special cases: non-negative partial row sums
In Section 4.1, we employed capacity bounds for VLC polynomials stated in Theorem 2.2 alongside the dual characterization of maxDegib(PM,k) and Degib(PM,k) to find capacity bounds for B(M,b) when M is a general TU matrix. Specifically, we use feasible points with w=0 for the dual LPs of Theorem 4.1.
In this section, rather than placing all of the weight of the choice of the feasible points on z by taking w=0, we will instead let z=0∈Zn and search for a feasible w∈Rm−i. This will not be always possible, however if that M has non-negative partial row sums and the sum of all of its rows is the 0 vector, such a w always exists. In this case, we obtain a lower bound for B(M,b) stated in Theorem 4.12. We can slightly improve this bound when M is the incidence matrix of a directed acyclic graph to recover [LMY26, Theorem 1.1], see Theorem 4.13. Lastly, we will state a lower bound for B(M,b) when M is a TU matrix with non-negative partial row sums in Theorem 4.14.
Theorem 4.7. Suppose M∈{0,±1}m×n and is a TU matrix and k∈Zn. Let si=m(1)+⋯+m(i) be the sum of the first i rows of M for i∈[m]. Assume that si≥0 for any i∈[m−1] and sm=0. Then:
Proof. If b∈/supp(PM,k), then capb(PM,k)=0 by Theorem 2.4 and Theorem 2.5, and the statement is trivial. Otherwise if there exists 0≤y≤k satisfying My=b, we should have σm=0 since sm=0.
Let i∈[m−1]. Since m(i)+⋯+m(m)=sm−si−1≤0, the vector w=−1∈Zm−i satisfies:
(M[i+1,m])Tw≥m(i).
So −b[i+1,m]T1=σi−σm=σi is an upper bound for the set Degib(PM,k) by Theorem 4.1. Moreover, m(m)=−s(m−1)≤0, thus 0 is an upper bound for the set of degrees of xm appearing in PM,k(x). By Theorem 2.2, we get:
We can apply Theorem 4.7 with a large enough k to bound B(M,b). In fact, we can take the limit of the bound of Theorem 4.7 as k→∞, by which we mean that every entry of k tends to infinity. If the lower bound converges as k→∞, we get a bound for B(M,b).
Lemma 4.8. Suppose M is an m×n TU matrix such that si≥0 for any i∈[m]. If M does not have an all zeros column, then all the fibers {y∈Z≥0n:My=b} are finite.
Proof. Suppose not, and let {y∈Z≥0n:My=b} be infinite. Then by Dickson's lemma, there exists two distinct integer vectors z≥y satisfying My=Mz=b. Thus, there exists some nonzero vector v∈R≥0n satisfying Mv=0. Let j∈[n] be an index such that vj>0. We have:
[1i0m−i]TMv=s(i)Tv=0,∀i∈[m]
where 1i∈Zi is the all ones vector and 0m−i∈Zm−i the all zeros vector. Note that s(i),v≥0, so we must have s(i),j=0 for any i∈[m]. That is:
s(1),j=s(2),j=⋯=s(m),j,
which means that the j-th column of M is a zero column, contradicting our assumption.
Similar to the terminology of [LMY26], for a Laurent series f(x) with nonnegative coefficients, we define its domain of convergence as Ωf={x>0:f(x) converges}, and define its capacity as capα(f)=infx∈Ωfxαf(x). If we define f(x)=∞ for any x∈/Ωf, this definition of capacity agrees with the earlier definition capα(f)=infx>0xαf(x).
Let a1,⋯,an be the columns of M and define:
PM(y):=y≥0∑xMy=j=1∏nℓ≥0∑xℓaj.
Suppose M is an m×n TU matrix and has finite fibers, i.e. {y∈Z≥0n:My=b} is finite for any b∈Zm. This holds, for example, when M has non-negative partial row sums and no zero columns (see Theorem 4.8). Then PM is a well defined Laurent series with the domain of convergence Ω={x∈R>0m:xaj<1∀j∈[n]}. Moreover, Ω is a nonempty set. By Motzkin's transposition theorem [Gul10, Theorem 7.17], there exists some w such that wTaj>0 for any j∈[n] since M has finite fibers. It follows that e−rw∈Ω for any r>0. More precisely, the domain of convergence of each ∑ℓ≥0xℓaj is open and contains e−rw.
Lemma 4.9 ([LMY26, Proposition 6.4]). Suppose f1(x),⋯,fn(x) are all Laurent series with non-negative coefficients. Let Ωi=∅ be the domain of convergence of fi, and suppose ∩i=1nintΩi=∅. Then:
In fact, after taking the natural logarithm of both hand sides, the two programs are Fenchel primal-dual.
In our case, this implies a particularly nice expression for the capacity of PM. We can also obtain a conceptually similar expression for the capacity of PM,k, which we discuss below.
Corollary 4.10. Fix an m×n TU matrix M with finite fibers and an integer vector b∈Zm. Letting B(M,b)={y∈R≥0n:My=b}, we have
capb(PM)=s∈B(M,b)supj=1∏nsjsj(sj+1)sj+1.
Proof. Let a1,⋯,an∈Zm be the columns of M. By Theorem 4.9 we can write:
One can see that capsjaj(∑ℓ≥0xℓaj)=capsj(∑ℓ≥0xℓ) by a change of variables. We further have capsj(∑ℓ≥0xℓ)=sjsj(sj+1)sj+1 by [LMY26, Example 4.16], completing the proof.
We note that there is a similar expression for Theorem 4.10 in the case of the polytope B0,k(M,b)={y∈Rn:My=b,0≤y≤k}. In that case, the capacity of PM,k is the sup over s∈B0,k(M,b) of the product of eH{0,…,kj}(sj), where H{0,…,kj}(sj) is the entropy of the entropy-maximizing distribution on {0,…,kj} with expectation sj (Note that this is precisely what is given in Theorem 4.10, for the geometric distribution on Z≥0 with expectation sj.)
Now we can use Theorem 4.9 to prove that capacity is continuous under limiting k→∞.
Lemma 4.11. Let M be an m×n TU matrix with finite fibers and fix b∈Zm. Then:
k→∞limcapb(PM,k)=capbPM.
Proof. Observe that PM(x)≥PM,k1(x)≥PM,k2(x) for any x>0 and k1≥k2 (for x∈/Ω, let PM(x)=∞), so capb(PM)≥capb(PM,k)≥0 for any k. Since capb(PM,k) is monotone in k, the limit limk→∞capb(PM,k) exists and capb(PM)≥limk→∞capb(PM,k).
For the other direction of the proof, let a1,⋯,an∈Zm be the columns of M. By Theorem 4.9 and Theorem 2.5:
Note that in the expression for capb(PM,k), we can take the supremum to be over B(M,b) instead of B(0,k)(M,b) because for any s∈B(M,b)∖B0,k(M,b), the corresponding product of capacities on the right hand side is zero.
Similar to the proof of Theorem 4.10, write capsjaj(∑ℓ=0kjxℓaj)=capsj(∑ℓ=0kjxℓ). Therefore, for any choice of s≥0 such that Ms=b we have:
capb(PM,k)≥j=1∏ncapsjℓ=0∑kjxℓ,
By [BLP23, Lemma 5.5], limkj→∞capsj(∑ℓ=0kjxℓ)=capsj(∑ℓ≥0xℓ). Send kj→∞ for all j∈[n] and write:
k→∞limcapb(PM,k)≥j=1∏ncapsj(ℓ≥0∑xℓ),
Note that this is true for any choice of s∈B(M,b), so:
Using Theorem 4.11, we conclude the following corollary:
Corollary 4.12. Suppose M∈{0,±1}m×n is a TU matrix with no zero columns and k∈Zn. Let si=m(1)+⋯+m(i) be the sum of the first i rows of M for i∈[m]. Assume that si≥0 for any i∈[m−1] and sm=0. Then:
We remark that we took a different approach in Section 4.1 when working with general TU matrices. This is because it is not clear whether the lower bound of Theorem 4.2 converges as k→∞, or if it converges, whether it converges to a non-zero number.
We will explore two applications of Theorem 4.12. We will apply it to incidence matrices of directed acyclic graphs, and to TU matrices with non-negative partial row sums.
When M is the incidence matrix of a directed acyclic graph G, B(M,b) is called the Kostant partition function for integer flows of G. We refer to [Hum08] for a more extensive study of these quantities. The following is not a direct corollary of Theorem 4.12, but follows the same steps with a slightly different choice of feasible points for Theorem 4.1.
Corollary 4.13 ([LMY26, Theorem 1.1], see also [LM26]). Let G=([n],E) be a directed acyclic graph with edges directed from the larger to the smaller vertex. For each i∈[n], let Gi be the undirected induced subgraph of G on vertices [i,n], and denote by Ci the connected component of i in Gi. Then:
where M∈{0,±1}n×∣E∣ is the incidence matrix of G and σi=∑j∈Cibj.
Proof. When G is a directed acyclic graph with edges being directed from the larger vertices to smaller vertices, its incidence graph M has non-negative partial row sums and the sum of all its rows is the zero vector. In fact, for each i∈[n], since there are no edges going into Ci, we have ∑j∈Cim(j)≤0, that is:
−(M[i+1,n])T1Ci\{i}=−j∈Ci\{i}∑m(j)≥m(i),
where 1Ci∖{i} is the indicator vector of the set Ci∖{i}. Similar to Theorem 4.7 and by Theorem 2.2, we get:
where σi=∑j∈Cibj. Now send k→∞, similar to the proof of Theorem 4.12.
Lastly, we find a capacity bound for the cardinalities of fibers of TU matrices with nonnegative partial row sums.
Corollary 4.14. Suppose M is an m×n TU matrix satisfying si≥0 for all i∈[m] (e.g. M only has 0,1 entries). Assume further that M does not have an all zero column. Then:
Proof. Let A=[M−JM], where J has 1s in the anti-diagonal and is zero everywhere else (that is, for any matrix B with proper dimensions, JB reverses the order of the rows of B). A is TU and satisfies the assumptions of Theorem 4.12. So by this corollary:
We prove the algorithmic assertion of Theorem 1.3 using the interiority and ellipsoid argument of [SV14] (see Sections 5,6 of the arXiv version). We verify the necessary bounds directly for our Laurent polynomials, rather than applying their statements for 0/1 configurations verbatim. Throughout this section we assume M is full row-rank, but this is without loss of generality since one can always remove linearly dependent rows of M without changing the lattice point counts or the value of the capacity (up to consistency of b).
Let M∈Zm×n be TU with columns a1,…,an, let b∈Zm and k∈Z≥0n, and write
p(x)=PM,k(x)=j=1∏nℓ=0∑kjxℓaj,E=capb(p).
We show that a deterministic algorithm can approximate logE to additive error 2−q in time polynomial in
m,n,q=logϵ1,log(1+∥b∥∞),log(1+∥k∥∞),
as long as E=0. All inputs are binary encoded and running time is measured in bit operations.
Finally, for Theorem 1.3, set K=∥b∥1 and kj=K before performing any reductions. This gives the stated dependence on log(1+∥b∥1).
Reduction to b in the interior. The Newton polytope of p is the zonotope Z=M[0,k]; i.e. the sum of the line segments defined by kjaj for j∈[n].
Let F be the smallest face of Z containing b. Minimizing and maximizing each coordinate over Q={y∈Rn:My=b,0≤y≤k} identifies the set of coordinates forced to equal either 0 and kj. Thus we can remove these columns of M,k to obtain M′,k′, and up to translation the zonotope M′[0,k′] is equal to F. Restricting to F and the associated variables preserves the corresponding coefficient and the value of the capacity by a standard optimization argument. Additionally, b is in the relative interior of the Newton polytope of the new polynomial, up to the same translation between M′[0,k′] and F. Thus we may WLOG assume that b is in the interior of Z.
Finally, note that this removal of columns may decrease the rank of M. Thus, we again remove linearly dependent rows of M at this point to account for this.
Bounding box for the minimizer. By Theorem 5.1 (see below), each facet inequality of Z can be written with normal u as
u⊤y≤h,u∈{0,+1,−1}m,h∈Z.
Since b is in the interior of Z, its slack in each inequality is at least one. Consequently,
B2(b,m1)⊆Z.
Now set Φ(z)=logp(ez)−b⊤z, noting that logcapb(p)=infz∈RmΦ(z). Every nonzero coefficient of p is a positive integer, and so
Φ(z)≥α∈Zmax(α−b)⊤z≥m∥z∥2.
Thus Φ attains its minimum on Rm, and every minimizer z∗ satisfies
∥z∗∥2≤m⋅logp(1)=mj=1∑nlog(kj+1).
In particular, we may optimize over [−R,R]m, where
R=mj=1∑nlog(kj+1).
This is the interiority-based bounding argument of [SV14], with logp(1) replacing the logarithm of the number of configurations.
Lemma 5.1. Let M be an m×n totally unimodular matrix of rank m with columns a1,…,an, fix k∈Z>0n, and define the zonotope Z=M[0,k]=∑j=1naj[0,kj]. Then the normal vectors of the facets of Z can be chosen to have entries in {0,+1,−1}.
Proof. Let F be some facet of Z with normal vector u. By [McM71], every facet of the zonotope Z is parallel to a Minkowski sum of some subset of the segments {a1[0,k1],…,an[0,kn]}. Thus F is parallel to span {aj:u⊤aj=0}. WLOG by reindexing let a1,…,am−1 span the (m−1)-dimensional space parallel to F, and let C be the m×(m−1) submatrix of the corresponding columns of M, so that u∈kerC⊤. Define vi=(−1)i+1detCi for all i∈[m], where Ci is the matrix C with row i missing. A straightforward computation shows that v⊤aj=0 for all j∈[m−1] (duplicate a given column of C and take determinant), and thus ±v can be chosen as the normal vector of F. Since M, and thus C, is TU, this implies the desired result.
Approximate evaluation. We show that, for rational z and 0<τ<1, the objective
can be evaluated to additive error τ in time polynomial in the input length, the encoding length of z, and logτ1. The dot products are computed exactly using rational arithmetic. To evaluate HN, use HN(0)=logN and, for t=0, the geometric-series identity
This avoids forming exponentials with large positive arguments.
We describe the precision needed to evaluate either ℓ(s), where s∈{∣t∣,N∣t∣}, to error 2−q. Let B be the binary encoding length of the nonzero rational number t. Since s≥∣t∣≥2−B, we have
u:=1−e−s≥21min{s,1}≥2−B−1.
If s≥q+3, then
∣ℓ(s)∣≤2e−s≤2−q−2,
so returning zero suffices. Otherwise 0<s<q+3. Approximate e−s to absolute error η=2−(B+q+4) via Taylor expansion; note that s is of magnitude O(q) and requires O(B+q) fractional bits. Now subtract this approximation from 1 to obtain u, which implies ∣u−u∣≤η≤2u and thus u≥2u. Therefore by the mean value theorem, for some c between u and u we have
∣logu−logu∣≤∣u−u∣⋅(logt)′(c)≤η⋅u2≤2−q−2.
Approximate logu to an additional error of 2−q−2 via Taylor expansion of log(1−t), by first scaling the argument u to the interval [21,1]. This gives the required approximation to ℓ(s).
The rational term (N−1)max{t,0} has encoding length polynomial in B+logN, and errors in the two logarithms add without amplification. Thus HN(t) is computable to error 21−q in time polynomial in B, logN, q. Taking
q=⌈log2τ4n⌉
bounds the error in each term of the sum defining Φ(z) by 2nτ; the cases t=0 are evaluated to the same or better accuracy. Exact rational summation produces a rational V satisfying ∣V−Φ(z)∣≤2τ<τ.
Approximate gradients. Approximate gradients then follow from finite differences, which we now show. First, since b∈M[0,k], let y∈[0,k] be such that ∑i=1nyiai=b. For fixed k and t, the first and second derivatives of Hk+1 are the mean and variance of the distribution μ supported on {0,…,k} with probabilities μℓ∝eℓt. Since μ is supported on {0,…,k}, this implies
For coordinatewise gradient error δ, evaluate Φ(z) and Φ(z+hei), so that
∂ziΦ(z)−hΦ(z+hei)−Φ(z)≤2Hh.
Approximating Φ(z) by V0 and Φ(z+hei) by Vi within error τ (as described above) then implies hVi−V0 is within error h2τ. This implies
∂ziΦ(z)−hVi−V0≤2Hh+h2τ
Taking h=4Hδ and τ=8δh=32Hδ2, this implies an overall error of 2Hh+h2τ=8δ+4δ<δ. Note that H is polynomial in m and k, and thus logτ1 depends polynomially on logm, log(1+∥k∥1), and logδ1.
The algorithm. We now apply the approximate-oracle ellipsoid implementation of Section 6.2 (of the arXiv version) of [SV14] (see also Theorem 2.13), using the preceding bounds on the search region and the Lipschitz constant L of Φ. The value and gradient oracles established above provide its required numerical approximations. The number of oracle calls and the required number of accuracy bits are polynomial in the input length and logϵ1. Since our oracles run in time polynomial in these quantities and the encoding length of the query point, the resulting algorithm finds z∘ satisfying
Φ(z∘)≤minΦ+2ϵ
in polynomial bit complexity. Evaluating Φ(z∘) to additive error 2ϵ then gives a rational A with ∣A−logE∣≤ϵ.
We note that although the total running time stated in [SV14] depends polynomially on ϵ1, its ellipsoid iteration bound depends only polynomially on logϵ1 (see Section 6.2, immediately before Lemma 6.3). The worse dependence comes from the approximate-counting oracle used there. Our value and gradient oracles instead run in time polynomial in the number of requested accuracy bits, so the same optimization framework gives polynomial dependence on logϵ1 in our setting.
Acknowledgements
Both authors acknowledge the support of the Natural Sciences and Engineering Research Council of Canada (NSERC), [funding reference number RGPIN-2023-03726]. Cette recherche a été partiellement financée par le Conseil de recherches en sciences naturelles et en génie du Canada (CRSNG), [numéro de référence RGPIN-2023-03726].
References
[AH21] Tzvi Alon and Nir Halman, A faster FPTAS for counting two-rowed contingency tables, Discrete Applied Mathematics 303 (2021), 161–170.
[ALOV24] Nima Anari, Kuikui Liu, Shayan Oveis Gharan, and Cynthia Vinzant, Log-concave polynomials III: Mason's ultra-log-concavity conjecture for independent sets of matroids, Proc. Amer. Math. Soc. 152 (2024), no. 5, 1969–1981.
[AO17] Nima Anari and Shayan Oveis Gharan, A generalization of permanent inequalities and applications in counting and optimization, Proceedings of the 49th Annual ACM SIGACT Symposium on Theory of Computing, 2017, pp. 384–396.
[AR25] Nima Anari and Alireza Rezaei, A tight analysis of Bethe approximation for permanent, SIAM Journal on Computing 54 (2025), no. 4, FOCS19–81–FOCS19–101.
[Bar94] Alexander I. Barvinok, A polynomial time algorithm for counting integral points in polyhedra when the dimension is fixed, Mathematics of Operations Research 19 (1994), no. 4, 769–779.
[Bar07] Alexander Barvinok, Brunn–Minkowski inequalities for contingency tables and integer flows, Advances in Mathematics 211 (2007), 105–122.
[Bar09] ___ , Asymptotic estimates for the number of contingency tables, integer flows, and volumes of transportation polytopes, International Mathematics Research Notices 2009 (2009), no. 2, 348–385.
[Bar10] ___ , On the number of matrices and a random matrix with prescribed row and column sums and 0-1 entries, Advances in Mathematics 224 (2010), no. 1, 316–339.
[BBV07] Ivona Bezáková, Nayantara Bhatnagar, and Eric Vigoda, Sampling binary contingency tables with a greedy start, Random Structures & Algorithms 30 (2007), no. 1–2, 168–205.
[BH10] Alexander Barvinok and J. A. Hartigan, Maximum entropy Gaussian approximations for the number of integer points and volumes of polytopes, Advances in Applied Mathematics 45 (2010), no. 2, 252–289.
[BH12] ___ , An asymptotic formula for the number of non-negative integer matrices with prescribed row and column sums, Transactions of the American Mathematical Society 364 (2012), no. 8, 4323–4368.
[BH20] Petter Brändén and June Huh, Lorentzian polynomials, Ann. of Math. (2) 192 (2020), no. 3, 821–891.
[BLP23] Petter Brändén, Jonathan Leake, and Igor Pak, Lower bounds for contingency tables via Lorentzian polynomials, Israel J. Math. 253 (2023), no. 1, 43–90.
[BLSY10] Alexander Barvinok, Zur Luria, Alex Samorodnitsky, and Alexander Yong, An approximation algorithm for counting contingency tables, Random Structures & Algorithms 37 (2010), no. 1, 25–66.
[CD03] Mary Cryan and Martin Dyer, A polynomial-time algorithm to approximately count contingency tables when the number of rows is constant, Journal of Computer and System Sciences 67 (2003), no. 2, 291–310.
[CDR10] Mary Cryan, Martin Dyer, and Dana Randall, Approximately counting integral flows and cell-bounded contingency tables, SIAM Journal on Computing 39 (2010), no. 7, 2683–2703.
[CI20] Péter Csikvári and András Imolay, Covers, orientations and factors, The Electronic Journal of Combinatorics 27 (2020), no. 3, Paper No. 3.25.
[DJ26] Dingding Dong and Vishesh Jain, A deterministic (1+ε)n approximation for the permanent of a nonnegative matrix, 2026.
[DKM97] Martin Dyer, Ravi Kannan, and John Mount, Sampling contingency tables, Random Structures Algorithms 10 (1997), no. 4, 487–506.
[DS03] Jesús A. De Loera and Bernd Sturmfels, Algebraic unimodular counting, Mathematical Programming 96 (2003), no. 2, 183–203.
[Fer26] Luis Ferroni, Unimodality shenanigans in ehrhart theory, arXiv (2026).
[FH24] Luis Ferroni and Akihiro Higashitani, Examples and counterexamples in Ehrhart theory, EMS Surveys in Mathematical Sciences (2024), Published online first.
[FQW26] Weibo Fu, Qian Qin, and Guanyang Wang, Spectral gap for the binary fixed-margin swap chain, 2026.
[GJ23] Heng Guo and Mark Jerrum, Counting vertices of integral polytopes defined by facets, Discrete & Computational Geometry 70 (2023), 975–990.
[GKM +11] Parikshit Gopalan, Adam Klivans, Raghu Meka, Daniel Štefankovič, Santosh Vempala, and Eric Vigoda, An FPTAS for #knapsack and related counting problems, 2011 IEEE 52nd Annual Symposium on Foundations of Computer Science (FOCS), IEEE, 2011, pp. 817–826.
[GS14] Leonid Gurvits and Alex Samorodnitsky, Bounds on the permanent and some applications, 2014 IEEE 55th Annual Symposium on Foundations of Computer Science, FOCS 2014, IEEE Computer Society, 2014, pp. 90–99.
[Gul10] Osman Guler, Foundations of optimization, Graduate Texts in Mathematics, vol. 258, Springer, New York, 2010. MR 2680744
[Gur06] Leonid Gurvits, The van der Waerden conjecture for mixed discriminants, Adv. Math. 200 (2006), no. 2, 435–454.
[Gur08] ___ , Van der Waerden/Schrijver-Valiant like conjectures and stable (aka hyperbolic) homogeneous polynomials: one theorem for all, Electron. J. Combin. 15 (2008), no. 1, Research Paper 66, 26, With a corrigendum.
[Gur09] ___ , On multivariate Newton-like inequalities, 61–78.
[Gur15] ___ , Boolean matrices with prescribed row/column sums and stable homogeneous polynomials: combinatorial and algorithmic applications, Inform. and Comput. 240 (2015), 42–55.
[Hum08] James E. Humphreys, Representations of semisimple Lie algebras in the BGG category O, Graduate Studies in Mathematics, vol. 94, American Mathematical Society, Providence, RI, 2008.
[JSV04] Mark Jerrum, Alistair Sinclair, and Eric Vigoda, A polynomial-time approximation algorithm for the permanent of a matrix with non-negative entries, Journal of the ACM 51 (2004), no. 4, 671–697.
[KLM26] Sergei Kudria, Jason Luo, and Mahbod Majid, Subexponential approximation of the permanent in deterministic polynomial time, 2026.
[LM26] Jonathan Leake and Alejandro H. Morales, Capacity bounds on integral flows and the Kostant partition function, Advances in Applied Mathematics 175 (2026), 103002.
[LMY26] Jonathan Leake and Maryam Mohammadi Yekta, New bounds for integer flows and verma modules, via denormalized lorentzian laurent series, arXiv (2026).
[LSW00] Nathan Linial, Alex Samorodnitsky, and Avi Wigderson, A deterministic strongly polynomial algorithm for matrix scaling and approximate permanents, Combinatorica 20 (2000), no. 4, 545–568.
[McM71] Peter McMullen, On zonotopes, Transactions of the American Mathematical Society 159 (1971), 91–109.
[Mor02] B. J. Morris, Improved bounds for sampling contingency tables, Random Structures & Algorithms 21 (2002), 135–146.
[Mou00] John Mount, Fast unimodular counting, Combinatorics, Probability and Computing 9 (2000), no. 3, 277–285.
[SV14] Mohit Singh and Nisheeth K. Vishnoi, Entropy, optimization and counting, Proceedings of the Forty-Sixth Annual ACM Symposium on Theory of Computing, STOC '14, Association for Computing Machinery, 2014, pp. 50–59.
[SV19] Damian Straszak and Nisheeth K. Vishnoi, Maximum entropy distributions: Bit complexity and stability, Proceedings of the Thirty-Second Conference on Learning Theory (Alina Beygelzimer and Daniel Hsu, eds.), Proceedings of Machine Learning Research, vol. 99, PMLR, 2019, pp. 2861–2891.