Nonstrict LMI theorem of alternatives
ProvedConvexOptimization.lmi_nonstrict_alternativeTheorem of alternatives for a nonstrict linear matrix inequality — exercise 5.44 of Boyd & Vandenberghe.
Let be symmetric real matrices, write , and assume the constraint qualification
Then exactly one of the following is feasible:
Passing from the strict inequality to the nonstrict moves the strictness to the other side — the certificate now has and drops the requirement — and it costs an extra hypothesis: without the displayed constraint qualification the two systems are only weak alternatives, and both can fail.
This is the version the proof of the S-procedure actually uses (B&V §B.4, where the cross-reference points at example 5.14, the strict variant, while the system being treated is nonstrict).
Formalization Note is (-(G + ∑ i, x i • F i)).PosSemidef; the constraint qualification is the explicit hypothesis hCQ, part of the statement rather than a background assumption. Source: B&V §5.9.4, p. 271, exercise 5.44.
import Mathlib open scoped RealInnerProductSpace ENNReal open MeasureTheory
theorem ConvexOptimization.lmi_nonstrict_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)
(hCQ : ∀ v : Fin n → ℝ, (∑ i, v i • F i).PosSemidef → ∑ i, v i • F i = 0) :
(∃ x : Fin n → ℝ, (-(G + ∑ i, x i • F i)).PosSemidef) ↔
¬∃ Z : Matrix (Fin nn) (Fin nn) ℝ, Z.PosSemidef ∧
(∀ 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. Additionally assume the constraint-qualification hypothesis: for every (unrestricted in sign), if the combination is positive semidefinite then is the zero matrix (note this concludes that the combination matrix vanishes, not that itself is zero). The theorem asserts the equivalence:
Compared with the strict variant in this file: feasibility on the left is nonstrict (positive semidefinite rather than definite), while on the right the requirement is dropped and the trace condition is strengthened to the strict inequality . Positive semidefiniteness includes symmetry. Edge cases: for the left side holds vacuously and the only is with , so both sides are true; for the constraint-qualification hypothesis is trivially satisfied (the empty combination is ), the left side reads " is positive semidefinite", and the trace conditions on are vacuous.
Confirmed by the mission captain (proposal self-audit).