arXiv:2609.07960cs.CCSep 2026

Manuscript Offprint

arXiv:2609.07960

Accelerating Fourier--Motzkin elimination: redundancy removal and the choice of variable elimination order

Shashaank Khanna

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

Abstract

Fourier-Motzkin elimination computes an inequality description of the projection of a polyhedron onto a subset of its coordinates by eliminating one variable at a time. It is used in several areas of optimisation and computer science, and it is a standard way of obtaining the entropic constraints of a causal structure, where the marginalisation over the latent variables produces such a projection. Its limitation is the growth of the intermediate systems of inequalities, which can be doubly exponential in the number of eliminated variables even though the projection itself grows only as a single exponential. In practice the computational overload of the method therefore depends on two choices: how the redundant inequalities are removed after each step, and the order in which the variables are eliminated. We consider both. We first show, by an explicit example, that Imbert's redundancy test cannot be interleaved with redundancy removal by linear programming. We show that the two methods, however, can be combined soundly if the derivation records used by Imbert's test are re-initialised after every step at which linear programming is used. We then propose a rule for choosing the elimination order of the variables that gives a significant computational advantage, however, at the cost of increased resource usage. We demonstrate this advantage on some random polytopes, where the rule reduces the running time by factors of between 6 and 25 compared with the same elimination under a fixed order. For entropic descriptions of causal structures, with more than 250 inequalities and more than 100 variables to eliminate, our rule keeps the number of inequalities handled at each step one to two orders of magnitude lower than a fixed order.

1 Introduction

Fourier-Motzkin [1, 2] elimination computes the projection of a polyhedron by one variable at a time. Each step replaces the current system of inequalities by one in which the chosen variable no longer appears and whose solution set is the projection of the previous solution set along that variable. The method is simple to implement and it is used in integer programming [3, 4], in robust optimisation [5, 6], in the integration of polynomials over polyhedra [7, 8], in compiler optimisation [9], in circuit design [10], and in the conversion between the vertex and the half-space descriptions of a polytope [11].

Beyond the above applications, Fourier-Motzkin elimination is also used in the projection of an entropic polyhedral cone, corresponding to a causal structure, onto a subset of its variables. A causal structure is a directed acyclic graph over observed and latent nodes, and one of the basic questions about it is which correlations of the observed variables it allows [35, 28, 25].

One approach to this question works with entropies rather than probabilities [12, 13, 14, 15, 16]. The entropies of all the subsets of the variables satisfy Shannon's inequalities together with the conditional-independence equalities implied by the graph, and the entropic constraints on the observed variables alone are obtained by eliminating every entropy coordinate that involves a latent variable. This elimination is the projection of a polyhedral cone onto a subset of its coordinates.

The limitation of Fourier–Motzkin (FM) elimination is well known. Eliminating a variable from a system of mm inequalities can produce up to m2/4m^2/4 inequalities, so dd successive eliminations can produce a number of inequalities that is doubly exponential in dd [17, 18], even though the projection itself grows only as a single exponential (Lemma 2 below; see also [20]). Almost all of the inequalities produced are therefore redundant, i.e., implied by the others, and any implementation has to remove the redundant inequalities as it goes. Its running time then depends strongly on the order in which the variables are eliminated [18, 21].

The systems we need to project are often large. For e.g., a causal structure with four observed and three latent nodes already leads to a system of several hundred inequalities, and if from that system, say, 112 of the 127 entropy coordinates have to be eliminated (like in Section 5), standard Fourier–Motzkin elimination becomes computationally very expensive, often intractable. To our knowledge, the entropic characterisations that have been computed so far concern structures with fewer nodes than this, and the cost of the elimination is what stands in the way of larger ones. In this work we consider the two choices on which the method depends in practice: how the redundant inequalities are removed, and in which order the variables are eliminated.

Two redundancy tests are in common use. The first solves one linear programme (LP) per inequality and decides its redundancy exactly, but each LP involves the whole of the current system. The second, due to Imbert [22, 23], inspects only the way each inequality was derived; it costs almost nothing, but detects only some of the all the redundancies. Since the two tests have complementary strengths, it is natural to apply Imbert's test after each elimination step and then the LP test to whatever inequalities survive. Our first result is that such a combination is not sound (Proposition 2): we give a simple system of four inequalities in four variables for which the above combination deletes every inequality of the projection. The reason is that Imbert's test certifies redundancy with respect to the complete set of inequalities generated by the elimination, whose record it uses in the next step, while the LP test removes members of this set itself, possibly including the one that makes the certificate valid. We then show that the two tests can be combined in any pattern, provided that the derivation records used by Imbert's test are re-initialised after every step at which the LP test is applied (Theorem 2); the block alternation used in our code is a special case.

Our second result concerns the elimination order. The usual greedy rule eliminates the variable that produces the fewest inequalities. This count though includes the redundant inequalities, and on our instances the rule was much slower than a random order. We propose instead to eliminate every remaining variable tentatively, to prune each of the resulting systems by deleting any redundancies, and to keep the variable that leaves the fewest inequalities (Algorithm 2). The tentative eliminations are independent of one another, so they run in parallel, and the order found is itself worth keeping, since replaying it later costs a single ordinary run. On some random polytopes the rule reduced the wall-clock running time by factors of between 6 and 25 relative to the same elimination under a fixed order, and on some causal-structure instances, each with more than 250 inequalities and more than 100 variables to eliminate, it kept the number of inequalities handled at each step one to two orders of magnitude lower (Section 6) than compared to a fixed order of elimination of the variables.

The paper is organised as follows. Section 2 recalls the FM elimination step, illustrates it on some small examples, and states its correctness and the two growth bounds; the longer proofs are stated in Appendix A. Section 3 describes the two redundancy tests, gives the example showing that they cannot be interleaved, and gives the condition under which they can be combined. Section 4 presents the rule for choosing the elimination order. Section 5 describes the systems arising from causal structures, Section 6 reports the computational results and Section 7 concludes the paper.

References (33)