Strict LMI theorem of alternatives
ProvedConvexOptimization.lmi_strict_alternativeTheorem of alternatives for a strict linear matrix inequality — example 5.14 of Boyd & Vandenberghe.
Let be symmetric real matrices and write . Then exactly one of the following two systems is feasible:
They are strong alternatives — never both feasible, never both infeasible.
The second system is a certificate that no makes negative definite: a nonzero positive semidefinite orthogonal to every and non-negatively paired with . This is the semidefinite instance of the conic theorem of alternatives, obtained by taking to be the positive semidefinite cone, and it is the tool that reduces feasibility questions about LMIs — ubiquitous in control theory — to a search for such a .
Formalization Note is written (-(G + ∑ i, x i • F i)).PosDef and as Z.PosSemidef; the trace pairings use (F i * Z).trace. The statement is an iff between the first system and the negation of the second. Source: B&V §5.9.4, example 5.14, pp. 270–271.
import Mathlib open scoped RealInnerProductSpace ENNReal open MeasureTheory
theorem ConvexOptimization.lmi_strict_alternative {n nn : ℕ}
(F : Fin n → Matrix (Fin nn) (Fin nn) ℝ) (hF : ∀ i, (F i).IsSymm)
(G : Matrix (Fin nn) (Fin nn) ℝ) (hG : G.IsSymm) :
(∃ x : Fin n → ℝ, (-(G + ∑ i, x i • F i)).PosDef) ↔
¬∃ Z : Matrix (Fin nn) (Fin nn) ℝ, Z.PosSemidef ∧ Z ≠ 0 ∧
(∀ i, ((F i) * Z).trace = 0) ∧ 0 ≤ (G * Z).trace := by
sorry
Read-back
What the Lean code literally says, in plain math · claude-fable-5
Theorem. Fix natural numbers , ; matrices and , all real and each assumed symmetric. With no further hypotheses (no boundedness, no constraint qualification), the theorem asserts the equivalence:
Mathlib's positive (semi)definiteness includes the symmetry requirement; . Note the trace inequality on the alternative side is nonstrict () and the alternative explicitly requires . Edge cases: for , positive definiteness is vacuously true (any works, e.g. the left side holds), and the only matrix is , so is unsatisfiable and the right side is also vacuously true — the biconditional holds degenerately. For the sum is empty, the left side reads " is positive definite", and the trace conditions are vacuous.
Confirmed by the mission captain (proposal self-audit).