Basic solutions and small integer solutions of linear systems #
A nonnegative solution of A *ᵥ x = b over a linearly ordered field can be moved along kernel
directions until no nonzero kernel vector of A is supported inside its support: it becomes a
basic solution. For an integer matrix this pins the solution down as the unique solution of the
Gram system of its support columns, so Cramer's rule writes it as p / d with integers p and
d that are determinants of integer matrices; Mathlib's Matrix.det_le bounds them. The usual
reduction of A *ᵥ x ≤ b to equality form with nonnegative variables, and of a Farkas certificate
(Matrix.not_exists_mulVec_le_iff) to a nonnegative solution of [Aᵀ; bᵀ] y = (0, -1), give
bounds of the same form for inequality systems and for certificates of infeasibility. These are
the size bounds behind the membership of rational linear-programming feasibility in NP ∩ coNP
(Cslib.Complexity.LPFeasibility.mem_NP, Cslib.Complexity.LPFeasibility.mem_coNP).
Matrix.det_le is the bound |det M| ≤ (card n)! * c ^ card n from the Leibniz expansion rather
than Hadamard's inequality. It is weaker by a factor of at most (card n)!, still polynomial in
bit length, which is all the complexity bounds need.
Main results #
Matrix.exists_nonneg_mulVec_eq_forall_mulVec_eq_zero: existence of basic solutions.Matrix.exists_int_nonneg_mulVec_eq: an integer systemA *ᵥ x = bwith a nonnegative solution has one of the formp / dwith0 ≤ p,0 < dandp j, d ≤ (card n)! * (card m * B ^ 2 + 1) ^ card n,Bbounding the entries.Matrix.exists_int_mulVec_le: forA *ᵥ x ≤ b, a solutionp / dwith|p j|and0 < dat most(2 * card n + card m)! * (card m * (B + 1) ^ 2 + 1) ^ (2 * card n + card m).Matrix.exists_int_farkas_certificate: an infeasible integer systemA *ᵥ x ≤ bhas an integer Farkas certificatey ≥ 0,y ᵥ* A = 0,y ⬝ᵥ b < 0withy i ≤ (card m)! * ((card n + 1) * (B + 1) ^ 2 + 1) ^ card m.
References #
- [Sch86], Sections 3.2 and 10.1
Basic solutions. A nonnegative solution of A *ᵥ x = b can be replaced by one whose
support lies in that of x and carries no nonzero kernel vector of A, so the columns of A on
its support are linearly independent.
Small basic solutions. If an integer system A *ᵥ x = b with entries of absolute value at
most B has a nonnegative solution over some linearly ordered field, then it has a nonnegative
rational solution p / d with p and d integers bounded by
(card n)! * (card m * B ^ 2 + 1) ^ card n.
Small solutions of integer inequality systems. If A *ᵥ x ≤ b, with integer entries of
absolute value at most B, has a solution over some linearly ordered field, then it has a
rational solution p / d with p and d integers of absolute value at most
(2 * card n + card m)! * (card m * (B + 1) ^ 2 + 1) ^ (2 * card n + card m).
Small Farkas certificates. If A *ᵥ x ≤ b, with integer entries of absolute value at most
B, has no solution over a linearly ordered field, then an integer vector y ≥ 0 with
y ᵥ* A = 0 and y ⬝ᵥ b < 0 certifies it, with entries at most
(card m)! * ((card n + 1) * (B + 1) ^ 2 + 1) ^ card m.