Documentation

CslibFrontier.Computability.Complexity.Problems.GeneralIntegerProgramming.Coordinate

Coordinate bounds for integer programs #

IntegerProgram.unitCoeffs represents a signed coordinate vector in the coefficient-list layout of integer programs. IntegerProgram.sum_unitCoeffs evaluates it. The zero-one hardness and rational denominator-clearing reductions use these vectors to constrain individual coordinates.

A list of n integer coefficients, zero except for entry j, which has value s.

theorem Cslib.Complexity.IntegerProgram.sum_unitCoeffs {n j : ℕ} (hj : j < n) (s : ℤ) (x : Fin n → ℤ) :
∑ k : Fin n, (unitCoeffs n j s).getD (↑k) 0 * x k = s * x ⟨j, hj⟩

Evaluation of a signed coordinate vector.