Documentation

CslibFrontier.Foundations.LinearAlgebra.Matrix.IntegerSolution

Small integer solutions of equality and inequality systems #

If an integer equality system has a nonnegative integer solution, it has one of explicitly bounded size. Split variables and slack variables give the corresponding bound for inequalities. This is a mathematical step toward NP membership of integer programming, not the NP-completeness statements of Arora–Barak or Goldreich.

The proof minimizes a positive radix-weighted objective over integer solutions. Columns at large coordinates must be independent: a bounded integer dependence would permit both signs of a feasible move, contradicting minimality and uniqueness of bounded radix expansions. The remaining coordinates contribute a bounded right-hand side; the existing rational basic-solution bound then bounds the independent coordinates as well. This gives an original, loose explicit bound with polynomial binary length, rather than the sharper classical constants.

Main results #

An explicit bound for nonnegative integer solutions of an m × n integer equality system with coefficients and right-hand side bounded by B. Its logarithm is polynomial in m, n and log₂ B.

theorem Matrix.exists_nonneg_int_mulVec_eq_le {m : Type u_1} {n : Type u_2} [Fintype m] [Fintype n] {A : Matrix m n ℤ} {b : m → ℤ} {B : ℕ} (hA : ∀ (i : m) (j : n), |A i j| ≤ ↑B) (hb : ∀ (i : m), |b i| ≤ ↑B) {x₀ : n → ℤ} (hx₀ : 0 ≤ x₀) (hAx₀ : A.mulVec x₀ = b) :
∃ (x : n → ℤ), 0 ≤ x ∧ A.mulVec x = b ∧ ∀ (j : n), x j ≤ ↑(nonnegIntSolutionBound (Fintype.card m) (Fintype.card n) B)

Small nonnegative integer solutions, with arbitrary finite row and column types. This is the equality-form small-solution step toward integer programming in NP, not a complexity-class membership assertion. The solution is integral and has the original right-hand side, with no scaling factor.

Polynomial upper bound for the binary length of nonnegIntSolutionBound m n B, where L = B.size. Set k = n² + 2 + n(m + 2(n + L + 1) + 3); the bound is k + n² + 2 + n(m + 2(2L + n + k + 1) + 3).

The equality-form integer small-solution bound has polynomial binary length, including zero rows, zero columns and zero coefficient bound.

theorem Matrix.exists_int_mulVec_le_abs_le {m : Type u_1} {n : Type u_2} [Fintype m] [Fintype n] {A : Matrix m n ℤ} {b : m → ℤ} {B : ℕ} (hA : ∀ (i : m) (j : n), |A i j| ≤ ↑B) (hb : ∀ (i : m), |b i| ≤ ↑B) {x₀ : n → ℤ} (hx₀ : A.mulVec x₀ ≤ b) :
∃ (x : n → ℤ), A.mulVec x ≤ b ∧ ∀ (j : n), |x j| ≤ ↑(nonnegIntSolutionBound (Fintype.card m) (2 * Fintype.card n + Fintype.card m) (B + 1))

Small integer solutions of inequalities. This is the integer small-solution step toward NP membership, not an NP membership assertion. A feasible integer system has a solution whose absolute coordinates are bounded by the nonnegative equality bound after splitting variables and introducing slacks.