Abstract 1 Introduction 2 Preliminaries 3 𝗩𝗣=?𝗩𝗡𝗣 and its Analogue over 𝗥 and 𝗥+ 4 Non-Universality of Width-2 ABPs over 𝗥 and 𝗥+ 5 Low Depth Formulas to Low Width ABPs over 𝗥 and 𝗥+ 6 Width-2 ABPs for -𝟎 Bivariate Polynomials over 𝗥+ 7 Conclusion and Open Problems References

VP, VNP and Algebraic Branching Programs over Min-Plus Semirings

Balagopal Komarath ORCID Department of Computer Science and Engineering, IIT Gandhinagar, India    Harshil Mittal ORCID Department of Computer Science and Engineering, IIT Madras, Chennai, India    Jayalal Sarma ORCID Department of Computer Science and Engineering, IIT Madras, Chennai, India
Abstract

Arithmetic circuit complexity studies the complexity of computing polynomials using only arithmetic operations such as addition, multiplication, subtraction, and division. Polynomials over rings of integers model counting problems. Similarly, polynomials over semirings such as tropical semirings model optimization problems. Circuits over semirings then model so called pure algorithms, algorithms that only use the operations in the semiring.

In this paper, we do a complexity-theoretic study of the power and limitations of circuits (which represent dynamic programs) over semirings:

  • We define 𝖵𝖭𝖯 over min-plus semirings, which can faithfully represent problems such as computing min-weight perfect matchings and min-weight Hamiltonian cycles where we have efficiently verifiable certificates. Unlike over rings, we complement the values in the certificate for free as complementation is impossible over min-plus semirings. We prove a dichotomy theorem that states that if we only complement logarithmically many values, this class is same as 𝖵𝖯 over min-plus semirings. If we complement super-logarithmically many values, then 𝖵𝖭𝖯𝖵𝖯.

  • We consider constant-width ABPs (which are also called incremental dynamic programs that are restricted to use only a constant number of registers) and show that even simple problems like computing the min-weight 2-edge-matching is impossible with width 2 (or 2 registers). However, with width 3 (or 3 registers), such programs can compute everything. More generally, we show that constant-depth formulas are efficiently simulated by constant-width ABPs.

  • We show that an exponential hypercube sum (min in the semiring) over even provably weak models such as width-2 ABPs and products of linear forms are the same as 𝖵𝖭𝖯.

Keywords and phrases:
Min-plus semirings, Pure dynamic programming, Incremental dynamic programming, Registers, Algebraic branching programs, ABP width, Circuit depth, Algebraic formulas
Category:
Track A: Algorithms, Complexity and Games
Funding:
Harshil Mittal: Institute postdoctoral fellowship from IIT Madras
Copyright and License:
[Uncaptioned image] © Balagopal Komarath, Harshil Mittal, and Jayalal Sarma; licensed under Creative Commons License CC-BY 4.0
2012 ACM Subject Classification:
Theory of computation Algebraic complexity theory
Related Version:
Full Version: https://arxiv.org/pdf/2605.09551 [15]
Acknowledgements:
We thank Dhara Thakkar for helpful discussions during the initial phase of this work. The first author would like to thank Bireswar Das and Anuj Tawari for helpful discussions related to tropical circuits. The second author is also grateful to the anonymous reviewers of his PhD thesis [8] (which contained a preliminary version of some part of the work presented herein, and it was done while the second author was a PhD student at IIT Gandhinagar).
Editors:
Sayan Bhattacharya, Danupon Nanongkai, Michael Benedikt, and Gabriele Puppis

1 Introduction

Arithmetic circuit complexity studies the complexity of computing polynomials using only addition and multiplication over an underlying field 𝔽. The central open problem in arithmetic circuit complexity is an analogue of the 𝖯 vs 𝖭𝖯 problem called the 𝖵𝖯𝔽 vs 𝖵𝖭𝖯𝔽 problem. The class 𝖵𝖯𝔽 consists of polynomial-families111More precisely, polynomial-families with polynomially-bounded degree & number of variables. over any field 𝔽 that can be computed by polynomial-sized arithmetic circuits (using operations + and ×), and the class 𝖵𝖭𝖯𝔽 consists of families expressible as an exponential size hyper-cube sum over families in 𝖵𝖯𝔽. Here, the exponential size hyper-cube sum is the analogue of the quantifier over exponentially many certificates that are verifiable in 𝖯 that defines 𝖭𝖯. It is also known that assuming the generalized Riemann Hypothesis, over the field of complex numbers , separating VP from VNP is necessary to separate 𝖯 from 𝖭𝖯 as well.

A natural generalization of arithmetic circuits is to allow semi-rings instead of rings. Such circuits computing over Boolean semi-rings (see [24]) and (min,+)-semi-rings over the natural numbers, which model an interesting subset of algorithms for optimization problems, (see Jukna [10]) have been studied. For example, several graph minimization problems take as input an n-vertex graph G with costs (often reals or non-negative reals, i.e., from or 0) associated to its edges (we may assume that missing edges of G are present with a cost of ), and the goal is to minimize a certain linear function of costs of edges in H over all subgraphs H of G satisfying a certain property Π. That is, such a problem aims to compute:

minH:H is a subgraph of G satisfying Π(eE(H)cecost(e)+de),

where ce’s and de’s are constants (i.e., independent of input edge costs) from or 0. In particular, for many natural optimization problems, such as Shortest s-t Path, Minimum Perfect Matching, Minimum Spanning Tree and Minimum Hamiltonian Cycle problems, the property Π is that the subgraph H of G is an s-t path, a perfect matching, a spanning tree and a Hamiltonian cycle of G respectively, all ce’s are 1 and all de’s are 0. When all ce’s are non-negative integers (i.e., from ), we can model the problem equivalently as the computation of the following polynomial function over min-plus semiring 𝖱:=({},,) or 𝖱+:=(0{},,), where (i.e., semiring’s addition) denotes the minimum operation and (i.e., semiring’s multiplication) denotes the usual addition, and the value substituted for variable xe is the input cost(e) assigned to edge eE(G):

H:H is a subgraph of G satisfying Π(eE(H)dexexexece times)

Therefore, it is interesting to study the complexity of computing these polynomials using models that use only min and + operations.

1.1 Pure (𝐦𝐢𝐧,+) DP algorithms as Circuits

Many problems of the above form admit polynomial-time dynamic programming (DP) algorithms. For example, Shortest s-t Path problem can be solved in 𝒪(n3) time using Bellman-Ford algorithm [1]. When edge costs are non-negative, this algorithm can be formulated as a DP. The DP table has entries 𝕋(v,)’s for all vV(G),[n], where 𝕋(v,) is the minimum cost of any s-to-v path of length in graph G, and it is computed using the recurrence 𝕋(v,)=minuV(G){v}(𝕋(u,1)+cost({u,v})). This algorithm can also be viewed as a circuit (over 𝖱+) of size 𝒪(n3) and depth 𝒪(n) as follows: For each [n], the circuit has a layer consisting of gates computing 𝕋(v,)’s for all vV(G). The vth of these gates is a (i.e., min) gate which is fed outputs of gates computing (𝕋(u,1)+cost({u,v}))’s for all uV(G){v}. The uth of these gates is a (i.e., +) gate which is fed 𝕋(u,1) (already computed by a lower layer) and the variable x{u,v}. More generally, polynomial-time pure (min,+) DP algorithms (i.e., ones using only min and + operations) can be viewed as polynomial-sized circuits over the corresponding min-plus semiring. So, lower bounds on size of (,)-circuits to compute a polynomial can be viewed as lower bounds on time needed by pure (min,+) DP algorithms to solve the corresponding problem.

In 2015, Jukna showed that the polynomials corresponding to Minimum Perfect Matching problem on bipartite graphs (i.e., Permanent polynomial) and Minimum Spanning Tree problem need 2Ω(n) sized circuits using only and 0 as constants over 𝖱+ [10]. So, although these problems can be solved in polynomial-time using Edmond’s blossom algorithm (which works on non-bipartite graphs too) [14] and Borụvka’s or Kruskal’s or Prim’s algorithm [19, 16, 20] respectively, no pure (min,+) DP algorithm using only and 0 as constants can solve them in polynomial (even sub-exponential) time over 𝖱+. In 1982, Jerrum and Snir showed that any circuit computing permanent needs n(2n11) many ’s over 𝖱 and 𝖱+ [9]. So, even if pure (min,+) DP algorithms are allowed to use an unlimited number of min operations (i.e., contribution of min’s to overall runtime is ignored), these algorithms remain less powerful than general algorithms.

It may be worth noting that the depth-reduction for circuits by Valiant, Skyum, Berkowitz and Rackoff [23] has a semiring independent formulation (see Theorem 51 in [10]) by Jukna.

1.2 Incremental (𝐦𝐢𝐧,+) DP algorithms as ABPs

The DP corresponding to Bellman-Ford algorithm is an incremental (min,+) algorithm, i.e., each + operation has the input cost of an edge as one of its two arguments. That is, the corresponding (,) circuit (described earlier) is skew, i.e., each gate has an input variable as one of its two inputs. So, as skew circuits are equivalent to algebraic branching programs, this algorithm can be viewed as a width 𝒪(n) ABP (over 𝖱+) of size 𝒪(n3) consisting of 𝒪(n) layers. Lower bounds on ABP size to compute a polynomial over min-plus semirings can be viewed as lower bounds on time needed by incremental (min,+) DPs to solve the corresponding problem.

1.3 𝒘-Register Incremental (𝐦𝐢𝐧,+) DPs as Width-𝒘 ABPs

We can restrict every round/phase of the incremental DP algorithm to compute only a few (i.e., w) table entries using the w table entries computed in the previous round. Such algorithms can be viewed as width-w ABPs (i.e., ABPs wherein every layer has w nodes) over 𝖱 or 𝖱+. Over fields, it is known that constant width ABPs can be efficiently simulated using formulas (see, for example, Proposition 7.1 in [3]); the same proof also works over 𝖱 and 𝖱+. So, for any constant w1, w-register incremental (min,+) DP algorithms can be efficiently simulated using memoization-free (min,+) DP algorithms.

In 1988, Ben-Or & Cleve also showed that width-3 ABPs can efficiently simulate (and so, are computationally equivalent to) formulas over fields [4]. However, their construction is such that it works with additive inverses of polynomials; so, it does not work as is over semirings 𝖱 and 𝖱+.

1.4 Memoization-free Pure (𝐦𝐢𝐧,+) DP algorithms as Formulas

A DP algorithm typically relies on the optimal substructure and overlapping subproblems properties of the problem to trade-off space for time. The first one says that the optimum solution of an instance can be found by combining optimum solutions for sub-instances. The second one says that the optimum solution of the same sub-instance may be needed to compute optimum solutions for multiple larger instances, and so memoization (i.e., storing its value so that it is readily available whenever needed, instead of recomputing it when needed) helps. Consider memoization-free pure (min,+) DP algorithms, i.e., pure (min,+) DPs wherein we restrict that the overlapping subproblems structure of the problem is not allowed to be exploited (i.e., any table entry computed in a round can be used to update only one other table entry in the next round). Such algorithms can be viewed as formulas (i.e., circuits wherein every gate has fan-out 1) over 𝖱 or 𝖱+. Valiant [22] showed that ABPs can efficiently simulate formulas over fields; this proof also works over 𝖱 and 𝖱+. So, incremental (min,+) DPs can efficiently simulate memoization-free (min,+) DPs.

In 1974, Brent showed that over rings, the depth of any formula can be reduced to logarithmic with only a polynomial size blow-up [2]. In Appendix A.3 in full version [15] of this paper, we explain how his proof can be adapted to also work over 𝖱+.

1.5 Related Work

Jukna showed that there are polynomials that require exponential size for circuits [10] and there are polynomials computable by poly-size circuits but require super-polynomial size ABPs [11]. Mahajan, Nimbhorkar, and Tawari [17] showed lower bounds for constant-depth formulas with certain restrictions on fan-in computing the shortest path polynomial. Kluk and Nederlof [13] showed that for any k1, there is a graph on k𝒪(1) vertices such that any (min,+)/(max,+) circuit computing the corresponding Independent Set (resp. Travelling Salesman and Directed Spanning Tree) polynomial needs Ω(2k) (resp. 2Ω(kloglogk)) gates.

1.6 Our Results

Our main goal is to understand the computational power of all the four models discussed in the introduction and to establish a complexity-theoretic framework to study pure algorithms for optimization problems over (min,+) semirings.

Efficient Verifiability.

In Boolean and arithmetic complexity, the classes 𝖭𝖯 and 𝖵𝖭𝖯 capture all efficiently verifiable problems. We define a complexity class in the (min,+) semiring setting that is a natural analogue of these classes. The straight-forward extension of the definition of 𝖵𝖭𝖯 to semirings do not work as we can show that 𝖵𝖭𝖯=𝖵𝖯 with this definition. In Section 3, we define an analogue of VNP over 𝖱 and 𝖱+. Our definition allows summand to be a polynomial in complements of hypercube variables (apart from the original variables and hypercube variables); we discuss how, unlike fields, such a relaxation strengthens the obvious definition (i.e., without complements) over 𝖱 and 𝖱+. Intuitively, this happens because providing complemented bits compensates for the inability of a pure (min,+) DP/circuit over 𝖱 and 𝖱+ to flip a bit (i.e., convert 0 and to and 0 respectively) on its own.

We have the following verifier-based interpretation of 𝖵𝖭𝖯 over min-plus semirings: For any f𝖵𝖭𝖯, there exists g𝖵𝖯 such that f(X) is the minimum (i.e., ) of g(X,Y,Y¯) over all -0 substitutions of Y variables. Given any substitution X of input variables X and a constant c, suppose our goal is to check whether f(X)c. When f(X)c, there is an -0 substitution Y of Y variables that attained the minimum, i.e., for which g(X,Y,Y¯)=f(X)c. View this substitution Y (and its complement Y¯) as a “certificate”. Also, if f(X)>c, then no matter what certificate (i.e., -0 substitution Y of Y variables) is given, we always have g(X,Y,Y¯)f(X)>c. This way, we can view polynomial-sized circuit/polynomial-time pure (min,+) DP computing g as a “verifier”. As such verifiers cannot flip bits, we restrict certificates to also contain flipped values of all bits.

We analyze the relationship between VP𝖱(or 𝖱+) and VNP𝖱(or 𝖱+) as the number of hypercube variables allowed to be complemented is varied in VNP𝖱(or 𝖱+)’s definition. We show the following dichotomy theorem (the super-script denotes the number of complemented hyper-cube variables):

Theorem 1.

For semirings S=𝖱 or S=𝖱+, 𝖵𝖯S𝖵𝖭𝖯S[r(n)] when r(n)=ω(logn), and 𝖵𝖯S=𝖵𝖭𝖯S[r(n)] when r(n)=𝒪(logn), where r(n) denotes the number of hypercube variables allowed to be complemented in the definition of 𝖵𝖭𝖯S.

Also, in Remark 7 in full version [15] of this paper, we discuss that the analysis involved in the proof of the above theorem also shows that 𝖵𝖯𝖱(or 𝖱+) and 𝖵𝖭𝖯𝖱(or 𝖱+)[r(n)] cannot be exponentially separated when r(n)=o(n); in contrast, these are exponentially separated when r(n)=Ω(n).

Similar to the case of fields, 𝖵𝖭𝖯𝖱(or 𝖱+) contains the permanent and Hamiltonian cycle families. However, unlike fields (of characteristic 2), a result by Grochow [7] implies that Hamiltonian cycle cannot be obtained as an efficient projection of permanent over 𝖱+; so, permanent is not 𝖵𝖭𝖯𝖱+ complete.

ABP width as a resource.

A famous result in arithmetic circuit complexity by Ben-Or and Cleve shows that poly-size formulas and width-3 ABPs have the same computational power. The proof of this theorem has two main parts. First, Brent [2] proved that any formula of size s has an equivalent formula of depth O(logs). Second, Ben-Or and Cleve [4] proved that a formula of depth-d can be simulated by width-3 ABPs of size O(exp(d)).

One of the striking results in the arithmetic circuits over fields is that of Brent’s depth reduction that shows that any size s formula can be simulated by size sO(1) formula of depth O(logs). In Appendix A.3 in full version [15] of this paper, we adapt it to work over semiring 𝖱+. In the original proof, there is a critical a step that needs a polynomial to have additive inverse; so, this step does not work as is over min-plus semirings. Over 𝖱+, we circumvent this difficulty by making use of absorption in a certain way (see Appendix A.3 in full version [15] of this paper for details). We leave the case of 𝖱 as an open problem.

Proposition 2 (Brent’s Depth reduction for Formulas over 𝖱+).

Any size s formula over 𝖱+ can be simulated by a size s𝒪(1) formula of depth 𝒪(logs).

It remains to investigate the power of constant width ABPs over semirings. First, we exhibit a simple polynomial that width-2 ABPs cannot compute.

Theorem 3 (Non-universality of Width-2 ABPs).

No width-2 ABP can compute (x1y1)(x2y2)(x3y3) over 𝖱 and 𝖱+.

So, 2-register incremental (min,+) DPs cannot compute (even with unlimited runtime), for example, minimum weight 2-matching of K4 (i.e., complete graph on four vertices), or minimum weight shortest path of K2,3 (i.e., complete bipartite graph with parts of sizes two and three) from one vertex s of the two-sized part to its other vertex t; see Figure 1.

Refer to caption
Figure 1: : The left image shows K4 and its three 2-matchings highlighted in red, blue and green. The right image shows K2,3 and its three s-to-t paths highlighted in red, blue and green.

This impossibility is proved using a cut-and-paste argument that is similar to some lower bounds for monotone arithmetic circuit models. We analyze how the paths producing the required monomials intersect with each other; at an intersection point, their sub-paths are patched together to identify a new path which produces a problematic monomial. For monotone arithmetic circuits, the problematic monomial can be any monomial that does not divide any monomial in the polynomial since the model does not allow cancellations. However, this is not sufficient for (min,+) semirings as monomials can be cancelled by absorption (e.g., x(xy)=x over 𝖱+, x2y2(xy)=x2y2 over both 𝖱 and 𝖱+). Over these semirings, to prove that a monomial is problematic, we have to show that the value of the monomial is less than the polynomial’s value for some substitution of the variables by constants. Indeed, this is what we do in our impossibility proof. This polynomial has also been used to prove impossibility results for restricted width-2 ABPs over fields [21].

In contrast, we show that 3-register incremental (min,+) DPs can compute any polynomial. We prove the more general result:

Theorem 4 (Low Depth Formulas to low Width ABPs).

For any p1, consider any depth 2p alternating formula C of size s over 𝖱 or 𝖱+. Then, there is a width (2p+1) ABP of size 𝒪(ps) that simulates the formula C.

Note that all polynomials are computable by formulas of depth 2. By substituting p=1 in the above theorem, we conclude that width-3 ABPs can compute any polynomial. In particular, minimum weight 2-matching of Kn and minimum weight shortest s-to-t path of K2,n have poly-size width-3 ABPs because the corresponding polynomials are sparse (i.e., have polynomial-sized formulas). This illustrates a stark contrast between power of 2-register and 3-register incremental (min,+) DPs.

Interpreted for arbitrary p, the above results shows that any memoization-free alternating (min,+) DP algorithm that is highly parallelized (i.e., consists of only a few update rounds) can be efficiently simulated using an incremental (min,+) DP algorithm that updates only a few table entries per round.

Combined with a known DP algorithm for Shortest Path problem based on merging equal-length subpaths, Theorem 4 gives the following corollary (see details in Section 5):

Corollary 5 (Width-reduction for ABPs).

Any ABP of size s over 𝖱 or 𝖱+ can be converted into an equivalent width (2p+1) ABP of size s𝒪(ps1p) for any p. So, in particular, any ABP over 𝖱 or 𝖱+ can be converted into an equivalent logarithmic width ABP with a quasi-polynomial blow-up in its size.

We compare Corollary 5 with ABP width-reduction over fields in this paper’s full version [15].

In Section 6, we show that despite their non-universality, 2-register incremental (min,+) DP algorithms can at least compute all -0 bivariate polynomials (i.e., every monomial has coefficient or 0) over 𝖱+ efficiently. The proof of this result crucially relies on absorption properties of semirings.

Theorem 6 (Width-2 ABPs for -0 Bivariate polynomials over 𝖱+).

Any -0 bivariate polynomial f over 𝖱+ is computable by a size 𝒪(degree(f)) width-2 ABP.

Over fields, Bringmann, Ikenmeyer, and Zuiddam [3] showed that exponential hyper-cube sum over very weak models such as width-2 ABPs or products of linear forms are the same as 𝖵𝖭𝖯. In sections 3.3 and 3.4, we show that these results hold over semirings as well.

1.7 Proof Outlines

In Section 4, we show that width-2 ABPs cannot compute (x1y1)(x2y2)(x3y3) over 𝖱 and 𝖱+. A high level description of this proof is as follows: First, we show that any ABP computing the above polynomial must have three paths, one for each monomial, such that each of these three paths contains both variables of the corresponding monomial exactly once each and no variable from the other two monomials. Then, we traverse the ABP from left-to-right and mark a layer based on the first variable occurrence amongst the edges of these three paths. Next, we traverse further to mark another layer based on the first variable occurrence amongst the edges of the remaining two paths. At this marked layer, we analyze the possible orientations of edges from the three paths entering into and exiting from it. For each possibility, we show a way to patch sub-paths from two of the three paths to form a new path; further, we analyze the possible weights of this new path and for each possibility, we show that the weight of this new path takes a value strictly lesser than the value taken by (x1y1)(x2y2)(x3y3) for some choice of variable substitution, which is a contradiction. We make this argument precise in the proof of Theorem 3.

In Section 5, we show how to simulate any size s depth 2p alternating formula using a width (2p+1) ABP of size 𝒪(ps) over 𝖱 and 𝖱+. A high-level description of this proof is as follows: We associate a carefully chosen format matrix with each of the 2p levels of the formula. Moving bottom-to-top, we describe how to obtain width (2p+1) ABPs that computes the outputs of nodes in any level i (in format associated with level i) using the width (2p+1) ABPs already built to compute outputs of nodes in level i1 (in format associated with level i1). We make this construction precise in the proof of Theorem 4.

In Section 6, we show that despite their non-universality, width-2 ABPs can at least compute all -0 (i.e., all monomials have coefficients or 0) bivariate polynomials over 𝖱+. A high level description of this proof is as follows: If a monomial has both a higher x power and a higher y power than another monomial, then the former monomial always (i.e., for any possible variable subsitution) takes larger values than (and so, can be safely absorbed into) the latter monomial. After such absorptions, the monomials that remain are such that the higher their x powers, the lower their y powers. We construct a width-2 ABP that has all x’s along the top level and all y’s along the bottom level. The two levels are joined by suitably placed bridges. Any source-to-sink path first covers up some region of the bottom level, takes a bridge to jump to the top level, and then covers up some region of the top level. The earlier it takes the bridge jump, the lower its weight’s y power and higher its weight’s x power. Similarly, the later it takes the bridge jump, the higher its weight’s y power and lower its weight’s x power. This enables us to have a path for each monomial. We make this construction idea precise in the proof of Theorem 6.

2 Preliminaries

Let S be a set equipped with addition (denoted as +) and multiplication (denoted as ) operations. Then, (S,+,) is called a semiring if i) (S,+) is a commutative monoid, ii) (S,) is a monoid, iii) multiplying (from either side) the additive identity with any element of S gives back the additive identity, and iv) multiplication (from either side) distributes over addition. Based on the definition of monoid, the first and second conditions together can be alternatively put as follows: i) S is closed under + and , ii) both + and are associative, iii) + is commutative, and iv) there exist additive and multiplicative identities. Semirings generalize rings (which, in turn, generalize fields by allowing elements to not have multiplicative inverses) by allowing elements to not have additive inverses.

Min-plus semirings 𝗥 and 𝗥+.

We use 𝖱 and 𝖱+ to denote the semirings ({},,) and (0{},,) respectively, where is the set of all real numbers, 0 is the set of all non-negative real numbers, denotes the minimum operation (which serves as the semirings’ addition operation), and denotes usual addition (which serves as the semirings’ multiplication operation). The multiplicative and additive identities of 𝖱 and 𝖱+ are 0 and respectively. Note that 𝖱 and 𝖱+ are idempotent, i.e., aa=a for all a𝖱 (or 𝖱+). For any variable x and any integer d0, we use xd to denote xxxd times.

Polynomials over 𝗥 and 𝗥+.

An n-variate polynomial f(x1,,xn) over min-plus semiring S (=𝖱 or 𝖱+) is of the form a1,,anca1,,anx1a1x2a2xnan (where the coefficients ca1,,an’s are elements of S, and only finitely many of them are ), which naturally defines a function from Sn to S as follows: For every (s1,,sn)Sn, the corresponding function maps (s1,,sn) to f(x1=s1,,xn=sn), i.e., polynomial f’s value upon substituting variables x1,,xn as s1,,sn respectively. For any two polynomials f and g over S, if the value taken by g is always (i.e., for each possible substitution of the variables from S) at least the value taken by f, then fg defines the same function as f. So, g can be absorbed into f, i.e., we shall treat f and fg as same. For example, x(xy)=x over 𝖱+ (but not 𝖱), and x2y2(xy)=x2y2 over both 𝖱 and 𝖱+. This is because min{x,x+y}=x for all x,y𝖱+, and min{2x,2y,x+y}=min{2x,2y} for all x,y𝖱 (or 𝖱+). Also, if two polynomials f and g over S define the same function from Sn to S, we shall treat them as equivalent to each other with respect to computation; that is, if a computational model (e.g., formula, circuit, ABP) computes g, then we shall also say that it computes f, and vice versa.

It may be worth noting that the above examples can be generalized to get the following identities: i) For any polynomials f and g over 𝖱+, we have f=f(fg), and ii) for any polynomials f1,,fk over 𝖱 (or 𝖱+) and any integer 0, we have (f1fk)=f1fk. In the second identity, any other term f1t1fktk (where t1++tk=) in multinomial expansion of LHS gets absorbed into f1fk. So, for instance, degree complete homogeneous symmetric polynomial, degree power sum symmetric polynomial and th power of degree 1 elementary/complete homogeneous symmetric polynomial over 𝖱 (or 𝖱+) define the same function.

Due to space limitations, we omit adding more preliminaries here; see full version [15] of this paper for preliminaries related to p-families and p-projections, ABPs and their weak, weakest & general models, and permanent & Hamiltonian cycle families over min-plus semirings.

It may be worth noting that as described in [5], any univariate polynomial over 𝖱 can be written as a product of linear factors based on its tropical roots/break points, i.e., points at which slope of the univariate polynomial (viewed as a function) changes; equivalently, these are the points where the minimum is attained by at least two monomials. See Figure 12 in full version [15] of this paper for an example. So, any univariate polynomial over 𝖱 can be computed using a weak/general width-1 ABP. Also, any univariate polynomial can be computed by a weakest width-2 ABP (see Figure 13 in full version [15] of this paper). In this paper, we mostly work with weakest ABPs (except in Section 3.4, which considers general ABPs).

3 𝗩𝗣=?𝗩𝗡𝗣 and its Analogue over 𝗥 and 𝗥+

Recall that over any field 𝔽, the class 𝖵𝖭𝖯𝔽 consists of all p-families expressible as a hypercube sum over a family in 𝖵𝖯𝔽 using polynomially-many hypercube variables which take Boolean values 0 and 1. Note that the additive and multiplicative identities of 𝖱 and 𝖱+ are and 0 respectively. So, an obvious attempt to define 𝖵𝖭𝖯 over 𝖱 and 𝖱+ would be to keep the same definition except that the hypercube variables take Boolean values and 0 (instead of 0 and 1). That is, 𝖵𝖭𝖯𝖱(or 𝖱+) would consist of all p-families (fn)n1 for which there exists a p-family (gn)n1𝖵𝖯𝖱(or 𝖱+) and polynomials p(n) & q(n) such that fn(X)=y1,,yq(n){,0}gp(n)(X,y1,,yq(n)), where y1,,yq(n) are hypercube variables. Now, view gp(n) as a polynomial in y1,,yq(n) whose coefficients are polynomials in X. That is, gp(n) is of the form a1,,aq(n)ha1,,aq(n)(X)y1a1yq(n)aq(n) for some polynomials ha1,,aq(n)’s in X. Plugging this gp(n)’s expression in fn’s expression,

fn(X)=y1,,yq(n){,0}(a1,,aq(n)ha1,,aq(n)(X)y1a1yq(n)aq(n)).

Changing the order of the two summations (i.e., actually, two minimums), we get

fn(X)=a1,,aq(n)ha1,,aq(n)(X)(y1,,yq(n){,0}y1a1yq(n)aq(n))=0=a1,,aq(n)ha1,,aq(n)(X)=gp(n)(X,0,,0),

which has polynomial-sized circuit; so, this definition of 𝖵𝖭𝖯𝖱(or 𝖱+) makes it coincide with 𝖵𝖯𝖱(or 𝖱+).

3.1 Allowing Complements of Hypercube variables

Over any field 𝔽, suppose that we modify the definition of 𝖵𝖭𝖯𝔽 to say that the hypercube sum’s summand is allowed to be a polynomial in the complements of hypercube variables (apart from the original variables and hypercube variables), where the complement y¯ of any hypercube variable y takes values 0 and 1 when y takes values 1 and 0 respectively. However, since y¯=1y for any hypercube variable y, this modified definition of 𝖵𝖭𝖯𝔽 is same as its original definition. Now, let us mimic this modification over 𝖱 and 𝖱+ as follows: Define 𝖵𝖭𝖯𝖱(or 𝖱+) to consist of those p-families (fn)n1 for which there exists a p-family (gn)n1𝖵𝖯𝖱(or 𝖱+) and polynomials p(n) & q(n) such that fn(X)=y1,,yq(n){,0}gp(n)(X,y1,,yq(n),y1¯,,yq(n)¯), where the complement y¯ of any hypercube variable y takes values and 0 when y takes values 0 and respectively. Unlike fields (where y¯=1y), y¯ cannot be realized as a polynomial expression in y over 𝖱 and 𝖱+. So, it is conceivable that this modified definition may strictly strengthen the obvious definition of 𝖵𝖭𝖯𝖱(or 𝖱+) attempted above (i.e., separate it from 𝖵𝖯𝖱(or 𝖱+)). To show that this is indeed true, we prove that the permanent family (which needs 2Ω(nlogn) sized circuits over 𝖱 and 𝖱+ [9] and so, 𝖵𝖯𝖱(or 𝖱+)) satisfies this definition as follows: Recall that permn:=σSn1inxi,σ(i). Note that every map σ from [n] to [n] can be specified by a -0 matrix of size n×logn, where for every 1in, its ith row indicates binary encoding of i’s image under σ. Also, all permutations (i.e., bijective maps) correspond to those such matrices wherein all rows are distinct. So, we write

permn=Y{,0}n×logn[All rows of Yare distinct]i=1n(t=1nxi,t[(Yi,1,,Yi,logn) isthe binary encoding of t])=Y{,0}n×logn(1u<vnw=1logn[Yu,wYv,w])i=1n(t=1nxi,tw=1logn[Yi,w=tw]),

where for every 1tn, (t1,,tlogn) denotes the binary encoding of t, and [] denotes the indicator function (i.e., it takes values 0 and when the statement enclosed within [] is true and false respectively). Thus, we get the following expression for permn:
Y{,0}n×logn(1u<vnw=1logn(Yu,w¯Yv,wYu,wYv,w¯))i=1n(t=1nxi,tw=1logn(twYi,wtw¯Yi,w¯))This has n𝒪(1) sized formula, as desired.

3.2 Spectrum of number of Complementable Hypercube variables – A Dichotomy Theorem

While our first attempt to define 𝖵𝖭𝖯𝖱(or 𝖱+) allowed no hypercube variable to be complemented, the modified definition above allowed all the polynomially-many hypercube variables to be complemented. Between these two extremes, lies a spectrum of definitions based on how many hypercube variables are allowed to be complemented. For any function r(n), let 𝖵𝖭𝖯𝖱(or 𝖱+)[r(n)] denote the class corresponding to the definition that allows r(n) many hypercube variables to be complemented. We analyze how the relationship between 𝖵𝖯𝖱(or 𝖱+) and 𝖵𝖭𝖯𝖱(or 𝖱+)[r(n)] changes as r(n) is varied. In particular, we show the following dichotomy theorem.

Theorem 1. [Restated, see original statement.]

For semirings S=𝖱 or S=𝖱+, 𝖵𝖯S𝖵𝖭𝖯S[r(n)] when r(n)=ω(logn), and 𝖵𝖯S=𝖵𝖭𝖯S[r(n)] when r(n)=𝒪(logn), where r(n) denotes the number of hypercube variables allowed to be complemented in the definition of 𝖵𝖭𝖯S.

First, we show that 𝖵𝖯𝖱(or 𝖱+)𝖵𝖭𝖯𝖱(or 𝖱+)[r(n)] when r(n)=ω(logn) as follows: Consider the family (fn)n1 defined as fn:=permβ(n), where β(n) denotes the function for which β(n)log(β(n))=r(n). As described earlier, permβ(n) can be written as a hypercube sum using β(n)log(β(n)) hypercube variables and their complements. Also, permβ(n) needs 2Ω(β(n)log(β(n)))=2ω(logn)=nω(1) sized circuits over 𝖱 and 𝖱+ [9]. Therefore, (fn)n1𝖵𝖭𝖯𝖱(or 𝖱+)[r(n)]𝖵𝖯𝖱(or 𝖱+), as desired.

Next, we show that 𝖵𝖯𝖱(or 𝖱+)=𝖵𝖭𝖯𝖱(or 𝖱+)[r(n)] when r(n)=𝒪(logn) as follows: Consider any family (fn)n1𝖵𝖭𝖯𝖱(or 𝖱+)[r(n)]. Then, there exists a family (gn)n1𝖵𝖯𝖱(or 𝖱+) and polynomials p(n) & q(n) such that fn(X)=y1,,yq(n){,0}gp(n)(X,y1,,yq(n),y1¯,,yclog(n)¯). Now, view gp(n)(X,y1,,yq(n),y1¯,,yclog(n)¯) as a polynomial in y1,,yq(n), y1¯,, yclog(n)¯ whose coefficients are polynomials in X. That is, gp(n) is of the following form:

a¯=(a1,,aq(n))q(n)b¯=(b1,,bclog(n))clog(n)ha¯,b¯(X)i=1q(n)yiaij=1clog(n)(yj¯)bj,

for some polynomials ha1,,aq(n),b1,,bclog(n)’s in X. Also, any summand wherein some hypercube variable and its complement both have a positive power vanishes. That is, if both ai and bi are >0 for some 1iclog(n), then the summand evaluates to . This is because for such a summand, yiai= when yi=, and (yi¯)bi= when yi=0. So, all such summands can be safely dropped. So, we are left with only those summands wherein for each 1iclog(n), only one of yi and yi¯ appears. Thus, we can express gp(n)(X,y1,,yq(n),y1¯,,yclog(n)¯) in the following form:

σ¯=(σ1,,σclog(n)){comp, not-comp}clog(n)λ¯=(λ1,,λq(n))q(n)h~σ¯,λ¯(X)i=1clog(n)(σi(yi))λij=clog(n)+1q(n)yjλj,

for some polynomials h~’s in X, and where for each 1iclog(n), σi(yi):=yi when σi=not-comp, and σi(yi):=yi¯ when σi=comp. Next, plugging the above expression of gp(n) in the expression of fn, and then changing the order of the two summations (i.e., actually, two minimums), we get the following expression for fn(X):

σ¯,λ¯h~σ¯,λ¯(X)y1,,yq(n){,0}i=1clog(n)(σi(yi))λij=clog(n)+1q(n)yjλjAσ¯,λ¯.

Note that Aσ¯,λ¯=0 because the summand corresponding to yi=σi(0) for all 1iclog(n) and yj=0 for all clog(n)+1jq(n) is 0; here, for each 1iclog(n), σi(0) is defined as 0 when σi= not-comp, and when σi= comp. So, we get

fn(X)=σ¯(λ¯h~σ¯,λ¯(X)). (1)

For every σ¯{comp, not-comp}clog(n), let gp(n)|Φσ¯ denote the polynomial obtained from gp(n) by substituting yi as σi(0) for all 1iclog(n) and yj as 0 for all clog(n)<jq(n). Then, note that

σ¯gp(n)|Φσ¯=σ¯(σ¯,λ¯h~σ¯,λ¯(X)i=1clog(n)(σi(σi(0)))λi)=(σ¯(λ¯h~σ¯,λ¯(X)))corresponding to σ¯=σ¯(Some summands corresponding to σ¯σ¯ may survive. However, any such summandmust have already appeared in the previousterm and so, it can be safely ignored.)=σ¯(λ¯h~σ¯,λ¯(X)). (2)

Therefore, using (1) and (2), we get fn(X)=σ¯gp(n)|Φσ¯. So, as gp(n)|Φσ¯ has an n𝒪(1) sized circuit for each σ¯{comp, not-comp}clog(n), it follows that fn(X) can be computed by a circuit of size 2clog(n)n𝒪(1)=n𝒪(1). Thus, we have (fn)n1𝖵𝖯𝖱(or 𝖱+), as desired.

3.3 𝗩𝗡𝗣𝗥(or 𝗥+) via Hypercube sum over Width-2 ABPs

The proof of 𝖵𝖯𝖵𝖭𝖥 (and so, 𝖵𝖭𝖯=𝖵𝖭𝖥) over fields in [18] works almost as is over 𝖱 and 𝖱+ too (explained in Appendix A.5 in full version [15] of this paper). For any p-family (fn)n1𝖵𝖯𝖱(or 𝖱+), this proof converts circuit computing fn into an equivalent polynomial-sized multiplicatively disjoint circuit Cn, expresses fn as the sum of values of parse trees of Cn, and then re-expresses this sum in terms of indicator variables (which serve as hypercube variables) to go over all subgraphs of Cn, using certain indicators to ensure that only the summands corresponding to parse trees survive. This gives

fn(X)=p¯{,0}|V(Cn)|a¯{,0}|E(Cn)|gn(X,p¯,a¯,p¯¯,a¯¯)

where pvvV(Cn), a(u,v)(u,v)E(Cn) are hypercube variables,

gn:=((u,v)E(Cn)B(u,v))proot(u is a  gateCu)(u is a  gateDu)(urootEu)(uleaves(Cn)Au),

Let (u) (respectively r(u)) be the left child (resp. right child) of u in the circuit Cn.

B(u,v):=a(u,v)¯a(u,v)pupv,Cu:=pu¯pua((u),u)a(r(u),u)
Du:=pu¯pu(a((u),u)a(r(u),u)¯a(r(u),u)a((u),u)¯),
Eu:=pu¯puv:(u,v)E(Cn)a(u,v)andAu:=pu¯label(u)pu.

As B(u,v)’s, Cu’s, Du’s, Eu’s and Au’s have polynomial-sized formulas, so does gn. In full version [15] of this paper, we show that each of these also has a polynomial-sized width-2 ABP. Then, concatenating (to get the product of) all these polynomially-many width-2 ABPs would give a polynomial-sized width-2 ABP that computes gn, thereby strengthening 𝖵𝖭𝖯𝖱(or 𝖱+)=𝖵𝖭𝖥𝖱(or 𝖱+) to 𝖵𝖭𝖯𝖱(or 𝖱+)=𝖵𝖭𝖡𝖯𝟤𝖱(or 𝖱+), where 𝖵𝖭𝖡𝖯𝟤𝖱(or 𝖱+) consists of families expressible as hypercube sum over a family with polynomial-sized width-2 ABPs over 𝖱 (or 𝖱+).

3.4 𝗩𝗡𝗣𝗥+ via Hypercube sum over general Width-1 ABPs

Over 𝖱+, we show that each of B(u,v)’s, Cu’s, Du’s, Eu’s and Au’s (as in the previous subsection) are also expressible as hypercube sum over product of constant many linear forms; due to space limitations here, we present this proof in full version [15] of this paper. Then, multiplying all these expressions together would give a way to express gn (and so, also fn) as a hypercube sum over product of polynomially-many linear forms, thereby strengthening 𝖵𝖭𝖯𝖱+=𝖵𝖭𝖥𝖱+ to 𝖵𝖭𝖯𝖱+=𝖵𝖭𝖡𝖯𝟣𝗀𝖱+, where 𝖵𝖭𝖡𝖯𝟣𝗀𝖱+ consists of families expressible as hypercube sum over a family with polynomial-sized width-1 general (i.e., edge labels can be linear forms) ABPs over 𝖱+.

3.5 Hamiltionian Cycle family in 𝗩𝗡𝗣𝗥(or 𝗥+)

In full version [15] of this paper, we show that the Hamiltonian cycle family (HCn)n1 belongs to 𝖵𝖭𝖯𝖱(or 𝖱+); due to space limitations, we omit this proof here.

In 2015, Grochow proved that over any totally ordered semiring, Hamiltonian cycle family cannot be obtained as a monotone affine p-projection of the permanent family (see Theorem 4.2 in [7]). So, in particular, 𝖱+, (HCn)n1 cannot be obtained as a p-projection of (permn)n1 over 𝖱+. Therefore, since (HCn)n1𝖵𝖭𝖯𝖱+, it follows that (permn)n1 is not 𝖵𝖭𝖯𝖱+ hard under p-projections.

4 Non-Universality of Width-2 ABPs over 𝗥 and 𝗥+

Theorem 3 (Non-universality of Width-2 ABPs). [Restated, see original statement.]

No width-2 ABP can compute (x1y1)(x2y2)(x3y3) over 𝖱 and 𝖱+.

Proof.

For the sake of contradiction, assume that there is a width-2 ABP Γ that computes i=13(xiyi) over 𝖱 (or 𝖱+). Assume that no edge of Γ is labelled . This is safe because any source-to-sink path containing an edge labelled contributes nothing (i.e., contributes , which is the additive identity) to the sum of weights of all source-to-sink paths. First, we show the following lemma; due to space limitations here, its proof is presented in full version [15] of this paper.

Lemma 1.

For each 1i3, there is a source-to-sink path Pi in Γ that has exactly one xi, exactly one yi and none of the other four variables (proved for i=1 below, and similar argument holds for i=2 and i=3 too).

Amongst the edges that appear in E(P1)E(P2)E(P3), consider a first (moving from left to right) edge that is labelled by an indeterminate. Without loss of generality, assume that this edge belongs to path P1, and it is labelled by x1. Also, let i and i+1 denote the indices of the layers containing the tail and head of this edge respectively. This edge has four possible orientations, i.e., top level of layer i to top level of layer i+1, top level of layer i to bottom level of layer i+1, bottom level of layer i to top level of layer i+1, and bottom level of layer i to bottom level of layer i+1 (see Figure 2). Next, amongst the edges that appear in E(P2)E(P3) after layer i, consider a first (again, moving from left to right) edge that is labelled by an indeterminate. Without loss of generality, assume that this edge belongs to path P2, and it is labelled by x2. Also, let j and j+1 denote the indices of the layers containing the tail and head of this edge respectively. Assume that this edge is directed from top level of layer j to top level of layer j+1 (see Figure 3); the cases corresponding to the other three orientations of this edge can be analyzed in a similar way.

Refer to caption
Figure 2: First indeterminate-labelled edge from P1, P2, P3 (w.l.o.g., assumed to be from P1 and labelled x1) and its four possible orientations.
Refer to caption
Figure 3: First indeterminate-labelled edge from P2, P3 (w.l.o.g., assumed to be from P2 and labelled x2).

Consider the following two cases: 1) ji and 2) j=i. We present the proof for Case 1 now, and we present the proof of Case 2 in Appendix A.4 in full version [15] of this paper; its analysis is similar to that of Case 1. First, we show that the edge of P1 from layer j1 to layer j must have its head at the bottom level of layer j. Suppose not. That is, assume that P1’s edge from layer j1 to layer j has its head at top level (see Figure 4). Then, P2’s portion from layers j has no variable, and P1’s portion from layers j has either zero or one y1. So, concatenating P2’s portion from layers j with P1’s portion from layers j gives a source-to-sink path in Γ whose weight is of the form c or cy1 for some c (or 0). We derive a contradiction in both cases as follows: In the former case, (x1y1)(x2y2)(x3y3)c. Substituting x1=x2=x3=c+1 and y1=y2=y3=0 gives c+1c. In the latter case, (x1y1)(x2y2)(x3y3)cy1. Substituting x1=x2=x3=c+1 and y1=y2=y3=0 gives c+1c. This proves that the edge of P1 from layer j1 to layer j has its head at bottom level of layer j.

Refer to caption
Figure 4: This figure is with reference to the argument showing (by contradiction) that P1’s edge from layer j1 to layer j must have its head at bottom level of layer j.

Next, consider the edge of P1 from layer j to layer j+1. Its tail is same as the head of the edge of P1 from layer j1 to layer j (which, as argued above, is at the bottom level of layer j). We show that the head of this edge must be at the bottom level of layer j+1. Suppose not. That is, assume that the edge of P1 from layer j to layer j+1 is directed from bottom level to top level (see Figure 5). Then, P2’s portion from layers j+1 has one x2, and P1’s portion from layers j+1 has either zero or one y1. So, concatenating P2’s portion from layers j+1 with P1’s portion from layers j+1 gives a source-to-sink path in Γ whose weight is of the form cx2 or cx2y1 for some c (or 0). We derive a contradiction in both cases as follows: In the former case, (x1y1)(x2y2)(x3y3)cx2. Substituting x1=x2=x3=0 and y1=y2=y3=c+1 gives c+1c. In the latter case, (x1y1)(x2y2)(x3y3)cx2y1. Substituting y1=x2=y3=0 and y2=x1=x3=c+1 gives c+1c. This proves that the edge of P1 from layer j to layer j+1 has its head at bottom level of layer j+1.

Refer to caption
Figure 5: This figure is with reference to the argument showing (by contradiction) that P1’s edge from layer j to layer j+1 must have its head at bottom level of layer j+1.

Now, consider the edge of P3 from layer j to layer j+1. This edge must be different from the edge joining the top level of layer j to the top level of layer j+1; this is because the latter edge is labelled with x2, which does not belong to P3. Also, we show that this edge cannot be directed from bottom level of layer j to top level of layer j+1. Suppose not (see Figure 6). Then, P2’s portion from layers j+1 has one y2, and P3’s portion from layers j+1 has no variables or one x3 or one y3. So, concatenating P3’s portion from layers j+1 with P2’s portion from layers j+1 gives a source-to-sink path in Γ whose weight is of the form cy2 or cy2x3 or cy2y3 for some c (or 0). We derive a contradiction in these three cases as follows: In the first case, (x1y1)(x2y2)(x3y3)cy2. Substituting x1=x2=x3=c+1 and y1=y2=y3=0 gives c+1c. In the second case, (x1y1)(x2y2)(x3y3)cy2x3. Substituting x1=y2=x3=0 and x2=y1=y3=c+1 gives c+1c. In the third case, (x1y1)(x2y2)(x3y3)cy2y3. Substituting y1=y2=y3=0 and x1=x2=x3=c+1 gives c+1c.

Refer to caption
Figure 6: This figure is with reference to the argument showing (by contradiction) that P3’s edge from layer j to layer j+1 cannot be directed from bottom level of layer j to top level of layer j+1.

Thus, the edge of P3 from layer j to layer j+1 has its head at the bottom level of layer j+1. Also, as proved earlier, the edge of P1 from layer j to layer j+1 has its head at the bottom level of layer j+1. Now, see Figure 7. Note that P1’s portion from layers j+1 has zero or one y1. Also, P3’s portion from layers j+1 has i) no variables, or ii) one x3, or iii) one y3. So, concatenating P1’s portion from layers j+1 with P3’s portion from layers j+1 gives a source-to-sink path in Γ whose weight is of the form c, cx3, cy3, cy1, cy1x3 or cy1y3 for some c (or 0). We derive a contradiction in these six cases as follows: In the first case, (x1y1)(x2y2)(x3y3)c. Substituting x1=x2=x3=0 and y1=y2=y3=c+1 gives c+1c. In the second case, (x1y1)(x2y2)(x3y3)cx3. Substituting x1=x2=x3=0 and y1=y2=y3=c+1 gives c+1c. In the third case, (x1y1)(x2y2)(x3y3)cy3. Substituting x1=x2=x3=c+1 and y1=y2=y3=0 gives c+1c. In the fourth case, (x1y1)(x2y2)(x3y3)cy1. Substituting x1=x2=x3=c+1 and y1=y2=y3=0 gives c+1c. In the fifth case, (x1y1)(x2y2)(x3y3)cy1x3. Substituting y1=x2=x3=0 and x1=y2=y3=c+1 gives c+1c. In the sixth case, (x1y1)(x2y2)(x3y3)cy1y3. Substituting y1=y2=y3=0 & x1=x2=x3=c+1 gives c+1c. This proves Theorem 3.

Refer to caption
Figure 7: This figure is with reference to the last paragraph in the proof of Theorem 3.

5 Low Depth Formulas to Low Width ABPs over 𝗥 and 𝗥+

Theorem 4 (Low Depth Formulas to low Width ABPs). [Restated, see original statement.]

For any p1, consider any depth 2p alternating formula C of size s over 𝖱 or 𝖱+. Then, there is a width (2p+1) ABP of size 𝒪(ps) that simulates the formula C.

So, in particular, logarithmic depth alternating formulas can be efficiently simulated using logarithmic width ABPs. We present the proof of Theorem 4 below.

Proof.

Moving bottom-to-top in the formula C, we number the levels as 1,,2p, and let s1,,s2p denote the fan-in’s of gates in these levels respectively (see Figure 8). For each 1i2p, define the format matrix Mi(f) (associated with Level i) as follows222The non- values are highlighted in red for clarity.:

Refer to caption
Figure 8: The depth 2p alternating formula C in Theorem 4. The levels are 1,2,,2p (moving bottom-to-top), and fan-in’s of gates in these levels are s1,,s2p respectively.

Observe the following format conversions:

  • Using M1(f) once to get M1(fx) (for any variable/constant x):

    (f0...0.........0)M1(f)(x000)=(fx0...0.........0)M1(fx)
  • For every 2i2p,

    • Using Mi(f) and Mi1(g) once each to get Mi(fg):

      where first matrix in LHS is obtained by permuting columns 2,,2p+2i of Mi(f), second matrx in LHS is transpose of Mi1(g), and the matrix in RHS is Mi(fg).

    • Using Mi(f) and Mi1(g) once each to get Mi(fg):

      where first matrix in LHS is Mi(f), the matrix in RHS is Mi(fg), and second matrix in LHS is obtained from Mi1(g) by changing Col1 to Col1Col2, scaling Col2 by , permuting columns 2,,2p+3i, and permuting rows 1,,2p+2i; due to space limitations here, more details about this part are presented in full version [15] of this paper.

Now, we describe how the above format conversions lead to the desired construction. First, for each Level 1 gate, repeatedly use M1(f)-to-M1(fx) conversion to get a sequence of 𝒪(s1) (2p+1)×(2p+1) matrices that compute its output in M1 format. Next, for each Level 2 gate, repeatedly use M2(f)-and-M1(g)-to-M2(fg) conversion to get a sequence of 𝒪(s1s2) matrices that compute its output in M2 format. Next, for each Level 3 gate, repeatedly use M3(f)-and-M2(g)-to-M3(fg) conversion to get a seqeunce of 𝒪(s1s2s3) matrices that computes its output in M3 format. Continuing this process, we finally get a sequence of 𝒪(s1s2s2p)=𝒪(s) matrices that compute the output of the top gate (i.e., Level 2p gate) in M2p format. To get ABP size, we put an extra multiplicative factor of 𝒪(p) as each matrix here has 𝒪(p) non- entries; so, there are 𝒪(p) edges between any two layers of the width (2p+1) ABP so constructed. This proves Theorem 4.

It is known that Shortest s-t Path polynomial over 𝖭:=({},,) has a depth 2p alternating formula of size n𝒪(pn1p) (see Section 3.2 in [17]). The corresponding pure (min,+) DP is as follows: For all vertices i,j and lengths <n, it stores 𝕋(i,j,), i.e., minimum cost of any i-to-j path that uses edges. To compute 𝕋(i,j,)’s, it uses the following recurrence:
𝕋(i,j,)=mink1,,kr1V(G){𝕋(i,k1,r)+𝕋(k1,k2,r)++𝕋(kr2,kr1,r)+𝕋(kr1,j,r)},

where r:=n1p. In the corresponding formula, every min (i.e., ) gate has fan-in 𝒪(nr1), every + (i.e., ) gate has fan-in 𝒪(r) and depth of the circuit is 2p. So, the overall formula size is n𝒪(pn1p).

This DP works because the optimal path can be obtained by guessing r1 vertices at which the path would be broken if it were to be divided into r equal length sub-paths, and then combining optimal paths of lengths /r each between all pairs of consecutive guessed vertices (computed earlier by the DP). This may be problematic if these optimal paths share common vertices (and so, their merger gives a walk, instead of a path). It is not an issue over 𝖭 (and also, 𝖱+) because when all costs are non-negative, an optimal path can be recovered from an optimal walk by skipping its portion between first and last appearances of any vertex (i.e., skipping cycles within the walk). Over 𝖱, we cannot say the same as a skipped cycle may have negative cost (and so, its removal from the walk increases the total cost); nevertheless, we can still use the same DP for acyclic graphs (as then, walks are same as paths) or more generally, graphs containing only non-negative cycles.

Now, as the polynomial computed by any size s ABP over 𝖱 or 𝖱+ can be seen as a projection of Shortest Path polynomial of a size s acyclic graph, we can use the above DP to simulate the ABP by a depth 2p alternating formula of size s𝒪(ps1p). Then, using Theorem 4, this formula can be simulated by a width (2p+1) ABP of size s𝒪(ps1p). So, we get the following corollary:

Corollary 5 (Width-reduction for ABPs). [Restated, see original statement.]

Any ABP of size s over 𝖱 or 𝖱+ can be converted into an equivalent width (2p+1) ABP of size s𝒪(ps1p) for any p. So, in particular, any ABP over 𝖱 or 𝖱+ can be converted into an equivalent logarithmic width ABP with a quasi-polynomial blow-up in its size.

6 Width-2 ABPs for -𝟎 Bivariate Polynomials over 𝗥+

Theorem 6 (Width-2 ABPs for -0 Bivariate polynomials over 𝖱+). [Restated, see original statement.]

Any -0 bivariate polynomial f over 𝖱+ is computable by a size 𝒪(degree(f)) width-2 ABP.

Proof.

Let xa1yb1,xa2yb2,,xayb denote the coefficient 0 monomials of f, listed in non-increasing order of x powers (i.e., a1a2a). Suppose that ai=aj (say =a) for some 1i<j. Then, consider the ith and jth monomials, i.e., xaybi and xaybj respectively. If bibj, then xaybixaybj for all possible substitutions of x and y from 𝖱+ and thus, the ith monomial can be safely dropped (i.e., it gets absorbed into the jth monomial). Similarly, if bj>bi, then xaybjxaybi for all possible substitutions of x and y from 𝖱+ and thus, the jth monomial can be safely dropped (i.e., it gets absorbed into the ith monomial). So, after exhaustively making such absorptions, we safely assume that a1>a2>>a. Next, let us analyze the relative order of magnitudes of y powers. Suppose that bibj for some 1i<j. Then, consider the ith and jth monomials, i.e., xaiybi and xajybj respectively. Since bibj and ai>aj, xaiybixajybj for all possible substitutions of x and y from 𝖱+ and thus, the ith monomial can be safely dropped (i.e., it gets absorbed into the jth monomial). So, after exhaustively making such absorptions, we safely assume that b1<b2<<b. Due to space limitations here, we present the remaining proof in full version [15] of this paper.

7 Conclusion and Open Problems

As mentioned earlier, the key question that motivated us to begin this work (but is still unresolved) is whether there is an analogue of Ben-Or & Cleve’s result [4] over min-plus semirings 𝖱 and 𝖱+. That is, can formulas be efficiently simulated using bounded-width ABPs over 𝖱 and 𝖱+? Jukna observed that the sub-semiring ({,0},,) is isomorphic to the Boolean semiring ({0,1},,) via the isomorphism 0 and 01 (see, for example, Lemma 7 in [10]). Using his observation, it can be argued that an analogue of Ben-or & Cleve’s result over min-plus semirings would imply that polynomial-sized monotone Boolean formulas can be simulated using polynomial-sized monotone bounded-width branching programs, i.e., m-𝖭𝖢1m-𝖡𝖶𝖡𝖯 thus refuting a conjecture of Grigni and Sipser [6], that 𝖬𝖺𝗃𝗈𝗋𝗂𝗍𝗒 function (which is known to belong to m-𝖭𝖢𝟣) does not belong to m-𝖡𝖶𝖡𝖯.

Another direction could be to build upon lower bound proof devised by Jukna and Schnitger in 2016 [12]. They showed that any ABP computing a polynomial f (over 𝖱 or 𝖱+) must have at least as many disjoint cuts333Subset of variable labelled edges that intersects every source-to-sink path. as the length444Smallest monomial degree in any polynomial defining the same function as f. of f; so, as size of each cut is at least the cover number555Smallest number of variables which when substituted as make f evaluate to . of f, the ABP’s size must be at least the product of length and cover number. Their proof works even for unbounded-width ABPs, but it gives only polynomial lower bounds. Strengthening their argument in the context of bounded-width ABPs to get stronger lower bounds is an interesting open problem.

Next, although we defined an analogue of the class 𝖵𝖭𝖯 over 𝖱 and 𝖱+, it remains to identify p-families complete for the class (if any) under p-projections. As discussed earlier, permanent family (permn)n1 cannot be 𝖵𝖭𝖯𝖱+ complete due to [7]; but, is it 𝖵𝖭𝖯𝖱-complete? Another potential candidate polynomial for 𝖵𝖭𝖯 over 𝖱 and 𝖱+ is the Hamiltonian cycle family (HCn)n1.

Also, our arguments for non-universality for width-2 ABPs (Theorem 3) works only for weakest width-2 ABPs. It would be interesting to generalize it to even more general width-2 ABPs. Further, while we showed 𝖵𝖭𝖯𝖱+=𝖵𝖭𝖡𝖯𝟣𝗀𝖱+, it is unclear if this hold true over 𝖱 as well. If yes, it would subsume the result that 𝖵𝖭𝖯𝖱=𝖵𝖭𝖡𝖯𝟤𝖱 as weakest width-2 ABPs can efficiently simulate general width-1 ABPs over 𝖱. This is because for any constant a𝖱{} and variable x, Q(ax) can be computed by scaling first row and second column of Q(x) by a and its multiplicative inverse (i.e., a) respectively, where the format matrix Q(f):=(f00) supports addition via Q(f)Q()Q(g)=Q(fg).

References

  • [1] Richard Bellman. On a routing problem. Quarterly of applied mathematics, 16(1):87–90, 1958.
  • [2] Richard P Brent. The parallel evaluation of general arithmetic expressions. Journal of the ACM (JACM), 21(2):201–206, 1974. doi:10.1145/321812.321815.
  • [3] Karl Bringmann, Christian Ikenmeyer, and Jeroen Zuiddam. On algebraic branching programs of small width. Journal of the ACM (JACM), 65(5):1–29, 2018. doi:10.1145/3209663.
  • [4] Richard Cleve. Computing algebraic formulas with a constant number of registers. In Proceedings of the twentieth annual ACM symposium on Theory of computing, pages 254–257, 1988.
  • [5] Shelby Cox. Notes on tropical language and applications. https://websites.umich.edu/˜spcox/notes_1.pdf.
  • [6] Michelangelo Grigni and Michael Sipser. Monotone complexity. In Proceedings of the London Mathematical Society Symposium on Boolean Function Complexity, pages 57–75, 1992.
  • [7] Joshua A Grochow. Monotone projection lower bounds from extended formulation lower bounds. Theory of Computing, 13(18):1–15, 2017. doi:10.4086/TOC.2017.V013A018.
  • [8] M Harshil. Diverse Solutions, Modifying Graph Eigenvalues and Bounded-Width ABPs. PhD thesis, Indian Institute of Technology Gandhinagar, 2025.
  • [9] Mark Jerrum and Marc Snir. Some exact complexity results for straight-line computations over semirings. Journal of the ACM (JACM), 29(3):874–897, 1982. doi:10.1145/322326.322341.
  • [10] Stasys Jukna. Lower bounds for tropical circuits and dynamic programs. Theory of Computing Systems, 57(1):160–194, 2015. doi:10.1007/S00224-014-9574-4.
  • [11] Stasys Jukna. Incremental versus non-incremental dynamic programming. Oper. Res. Lett., 46(3):278–281, 2018. doi:10.1016/J.ORL.2018.02.003.
  • [12] Stasys Jukna and Georg Schnitger. On the optimality of Bellman–Ford–Moore shortest path algorithm. Theoretical Computer Science, 628:101–109, 2016. doi:10.1016/J.TCS.2016.03.014.
  • [13] Kacper Kluk and Jesper Nederlof. Lower bounds on pure dynamic programming for connectivity problems on graphs of bounded path-width. arXiv preprint arXiv:2512.23121, 2025. doi:10.48550/arXiv.2512.23121.
  • [14] Vladimir Kolmogorov. Blossom V: a new implementation of a minimum cost perfect matching algorithm. Mathematical Programming Computation, 1(1):43–67, 2009. doi:10.1007/S12532-009-0002-8.
  • [15] Balagopal Komarath, Harshil Mittal, and Jayalal Sarma. Vp, vnp and algebraic branching programs over min-plus semirings, 2026. arXiv:2605.09551.
  • [16] Joseph B Kruskal. On the shortest spanning subtree of a graph and the traveling salesman problem. Proceedings of the American Mathematical society, 7(1):48–50, 1956.
  • [17] Meena Mahajan, Prajakta Nimbhorkar, and Anuj Tawari. Shortest path length with bounded-alternation (min,+) formulas. International Journal of Advances in Engineering Sciences and Applied Mathematics, 11(1):68–74, 2019.
  • [18] Guillaume Malod and Natacha Portier. Characterizing Valiant’s algebraic complexity classes. Journal of complexity, 24(1):16–38, 2008. doi:10.1016/J.JCO.2006.09.006.
  • [19] Jaroslav Nešetřil, Eva Milková, and Helena Nešetřilová. Otakar boruvka on minimum spanning tree problem translation of both the 1926 papers, comments, history. Discrete mathematics, 233(1-3):3–36, 2001. doi:10.1016/S0012-365X(00)00224-7.
  • [20] Robert Clay Prim. Shortest connection networks and some generalizations. The Bell System Technical Journal, 36(6):1389–1401, 1957.
  • [21] Chandan Saha, Ramprasad Saptharishi, and Nitin Saxena. The power of depth 2 circuits over algebras. In Ravi Kannan and K. Narayan Kumar, editors, IARCS Annual Conference on Foundations of Software Technology and Theoretical Computer Science, FSTTCS 2009, December 15-17, 2009, IIT Kanpur, India, volume 4 of LIPIcs, pages 371–382. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2009. doi:10.4230/LIPIcs.FSTTCS.2009.2333.
  • [22] Leslie G Valiant. Completeness classes in algebra. In Proceedings of the eleventh annual ACM symposium on Theory of computing, pages 249–261, 1979. doi:10.1145/800135.804419.
  • [23] LG Valiant, S Skyum, S Berkowitz, and C Rackoff. Fast parallel computation of polynomials using few processors. SIAM Journal on Computing, 12(4):641, 1983.
  • [24] Heribert Vollmer. Arithmetic Circuits, pages 173–214. Springer Berlin Heidelberg, Berlin, Heidelberg, 1999.