Documentation

CslibFrontier.Computability.Complexity.Problems.GeneralIntegerProgramming.Hardness

NP-completeness of integer inequality feasibility #

The reduction from zero-one equality programming replaces each equality by its two inequalities and imposes 0 ≤ x j ≤ 1. The target allows arbitrary integer assignments; the added rows force exactly the Boolean assignments needed by the source problem.

This proves the integer-coefficient feasibility problem in Goldreich, Exercise 2.23, printed p. 110 / PDF p. 135 of the December 2006 draft. The native multitape model uses a unary dimension and signed-binary coefficient lists; the encoding is IntegerProgram.enc. The source leaves its reasonable instance encoding implicit. This does not define rational-coefficient inputs or certify a denominator-clearing algorithm.

Main results #

Convert zero-one equalities into unrestricted integer inequalities: the encoded source length is the unary target dimension; each equality has both signs, and every variable has upper bound one and lower bound zero.

theorem Cslib.Complexity.IntegerProgram.satisfies_ofZeroOne_iff (C : List ZeroOneIP.Equation) (x : Fin (ofZeroOne C).numVars → ℤ) :
(∀ c ∈ (ofZeroOne C).constraints, ∑ j : Fin (ofZeroOne C).numVars, c.coeffs.getD (↑j) 0 * x j ≤ c.rhs) ↔ (∀ (j : Fin (ofZeroOne C).numVars), 0 ≤ x j ∧ x j ≤ 1) ∧ ∀ c ∈ C, ∑ j : Fin (ofZeroOne C).numVars, ↑(c.coeffs.getD (↑j) 0) * x j = ↑c.rhs

The Boolean bounds and original equalities enforced by ofZeroOne.

Correctness of the zero-one-to-integer-inequality reduction.

Integer inequality feasibility is NP-complete, with unrestricted integer unknowns, unary dimension and signed-binary integer coefficients Goldreich, Exercise 2.23.