Cramer--Hadamard bound for a consistent integer subsystem
ProvedSmaleNinth.integer_subsystem_solution_boundLet be an integer, let and have all entries bounded by in absolute value, and let be any set of row indices. If the subsystem
has a real solution , then it has a real solution with
In words: a consistent system of linear equations with integer data of size at most admits a solution whose entries are bounded by an explicit quantity depending only on the number of variables and on -- the number of equations does not appear. The classical proof selects a maximal linearly independent set of rows of , which defines the same solution set, then a set of linearly independent columns; setting the remaining coordinates to zero leaves a square nonsingular integer system, and Cramer's rule expresses each coordinate as a quotient of two integer determinants. The denominator is a nonzero integer, so at least in absolute value, while the permutation expansion bounds the numerator by .
The hypothesis is stated as the existence of the particular solution , so the assertion is genuinely about consistency and not about solvability of an arbitrary system; no rationality or integrality of is claimed, and none holds in general.
import Definitions.Def_Polyhedron open Matrix LinearOptimization
theorem SmaleNinth.integer_subsystem_solution_bound {m n : ℕ} (U : ℕ) (hU : 1 ≤ U)
(A : Matrix (Fin m) (Fin n) ℤ) (b : Fin m → ℤ) (I : Finset (Fin m))
(hA : ∀ i j, |A i j| ≤ (U : ℤ)) (hb : ∀ i, |b i| ≤ (U : ℤ))
(x : Fin n → ℝ)
(hx : ∀ i ∈ I, (A.map (Int.cast : ℤ → ℝ)).mulVec x i = (b i : ℝ)) :
∃ y : Fin n → ℝ,
(∀ i ∈ I, (A.map (Int.cast : ℤ → ℝ)).mulVec y i = (b i : ℝ)) ∧
(∀ j, |y j| ≤ (n.factorial : ℝ) * (U : ℝ) ^ n) := by
sorry