Equivalent characterizations of linearly independent active constraints
ProvedLinearOptimization.lp_active_constraint_equiv(Theorem 2.2) Let be an element of and let be the set of indices of constraints that are active at . Then, the following are equivalent:
- (a) There exist vectors in the set , which are linearly independent.
- (b) The span of the vectors , , is all of , that is, every element of can be expressed as a linear combination of the vectors , .
- (c) The system of equations , , has a unique solution.
import Mathlib.LinearAlgebra.LinearIndependent.Defs import Mathlib.Data.List.TFAE import Definitions.Def_ActiveConstraints open Matrix /-- **B&T Theorem 2.2 (p. 48).** Equivalent characterizations of "there are `n` linearly independent constraints active at `x*`". In (c), `x*` itself solves the active system, so uniqueness is stated as "every solution equals `x*`". -/
theorem LinearOptimization.lp_active_constraint_equiv {ι : Type} [Fintype ι] {n : ℕ}
(C : ι → LinearConstraint n) (x' : Fin n → ℝ) :
List.TFAE
[ ∃ s : Finset ι, s.card = n ∧ (∀ i ∈ s, (C i).IsActiveAt x') ∧
LinearIndependent ℝ (fun i : s => (C i.1).a),
Submodule.span ℝ ((fun i => (C i).a) '' {i | (C i).IsActiveAt x'}) = ⊤,
∀ y : Fin n → ℝ,
(∀ i, (C i).IsActiveAt x' → (C i).a ⬝ᵥ y = (C i).b) → y = x' ] := by
sorry
Read-back
What the Lean code literally says, in plain math · claude-fable-5
Let be a finite type, linear constraints on (each has coefficient vector , right-hand side , and a // tag; "active at " means regardless of tag), and let be arbitrary — it is not assumed to satisfy any constraint. The theorem asserts that the following three statements are pairwise equivalent: (1) there exists a finite set of cardinality exactly such that every constraint in is active at and the vectors are linearly independent over ; (2) the linear span of the set of vectors is all of ; (3) is the unique solution of the active equations: every satisfying for every index whose constraint is active at must equal . Edge cases silently included: when all three are trivially true; when no constraint is active at , (2) demands and (3) demands that all of equals .
Confirmed by the mission captain (proposal self-audit).