Basic solutions of standard-form polyhedra via basis columns
ProvedLinearOptimization.lp_standard_form_basic_iff(Theorem 2.4) Consider the constraints and and assume that the matrix has linearly independent rows. A vector is a basic solution if and only if we have , and there exist indices such that:
- (a) The columns are linearly independent;
- (b) If , then .
import Mathlib.LinearAlgebra.LinearIndependent.Defs import Definitions.Def_BasicSolution open Matrix /-- **B&T Theorem 2.4 (p. 53).** Characterization of basic solutions of the standard-form system: under the book's explicit hypothesis that the rows of `A` are linearly independent, `x` is a basic solution iff `Ax = b` and the nonzero coordinates of `x` live inside some basis `B` (injective basic indices with linearly independent basic columns). -/
theorem LinearOptimization.lp_standard_form_basic_iff {m n : ℕ} (A : Matrix (Fin m) (Fin n) ℝ)
(b : Fin m → ℝ) (hA : LinearIndependent ℝ (fun i => A i))
(x : Fin n → ℝ) :
IsBasicSolution (stdFormSystem A b) x ↔
A.mulVec x = b ∧ ∃ B : Fin m ↪ Fin n, IsStdBasis A B ∧
∀ j, j ∉ Set.range B → x j = 0 := by
sorry
Read-back
What the Lean code literally says, in plain math · claude-fable-5
Let be a real matrix, , and assume the rows of (the family ) are linearly independent over (this forces and, when , excludes zero rows and repeated rows). For any , the theorem asserts an if and only if: is a basic solution of the standard-form constraint system (the equality constraints together with the sign constraints ; "basic solution" means all equality constraints are active at and some -element set of constraints from the combined family is active at with linearly independent coefficient vectors) iff and there exists an injection such that the columns of selected by are linearly independent and for every column index outside the range of . Note the right-hand side does not assert , and the sign constraints enter the left-hand side only through activity (), not satisfaction.
Confirmed by the mission captain (proposal self-audit).