KKT identities at the normalized optimum
ProvedConvexOptimization.lowner_john_unit_ball_kktThe optimality (KKT) conditions of the minimum-volume covering ellipsoid problem, written at the normalized optimum where the extremal ellipsoid is the Euclidean unit ball.
Let and suppose the pair — that is, the closed unit ball — is the Löwner–John ellipsoid of . Then there exist multipliers with
Here denotes the rank-one outer product, the identity, and the dimension. The first identity is stationarity of the objective, the second stationarity in the centre variable, the third is complementary slackness — a multiplier may be nonzero only at a contact point, one with lying on the boundary sphere — and the last is the trace of the first combined with complementary slackness.
These are exactly John's decomposition of the identity: the contact points, weighted by , form an isotropic system whose second-moment matrix is the identity and whose barycentre is the origin. Because the Löwner–John ellipsoid is affinely equivariant, every configuration can be brought to this normalized position, so these identities are the general optimality conditions written in the coordinates that make them cleanest. They are the sole input to the rounding step.
Formalization Note The outer product is Mathlib's Matrix.vecMulVec, and is written with the dot product ⬝ᵥ on Fin n → ℝ; the identity matrix appears as (1 : Matrix (Fin n) (Fin n) ℝ). No full-dimensionality hypothesis is required, since it follows from the unit ball being extremal. Source: Boyd & Vandenberghe §8.4.1, the KKT conditions of problem (8.12) after normalization.
import Mathlib import Definitions.Def_ConvexOptimization_ellipsoidBody import Definitions.Def_ConvexOptimization_IsLownerJohn open scoped RealInnerProductSpace ENNReal open MeasureTheory
theorem ConvexOptimization.lowner_john_unit_ball_kkt {nn m : ℕ} (x : Fin m → Fin nn → ℝ)
(hopt : IsLownerJohn (1 : Matrix (Fin nn) (Fin nn) ℝ) 0 (Set.range x)) :
∃ lam : Fin m → ℝ, (∀ i, 0 ≤ lam i) ∧
(∑ i, lam i • Matrix.vecMulVec (x i) (x i)) = (1 : Matrix (Fin nn) (Fin nn) ℝ) ∧
(∑ i, lam i • x i) = 0 ∧
(∀ i, lam i * (1 - x i ⬝ᵥ x i) = 0) ∧
(∑ i, lam i) = (nn : ℝ) := by
sorry
Read-back
What the Lean code literally says, in plain math · claude-fable-5
Theorem. For all and every family of points , assume the specific pair — identity matrix, zero offset — satisfies the Löwner–John predicate for ; unfolded, this hypothesis says: (a) is symmetric and positive definite (true; vacuously for ), (b) every point lies in the closed Euclidean unit ball, , and (c) every symmetric positive-definite together with any offset whose body contains all the has . The conclusion asserts the existence of multipliers satisfying all five of: (1) for every ; (2) , where is the outer-product matrix (Mathlib's ; entry equals ); (3) , the zero vector; (4) complementary slackness for every (so for each , either or ); (5) , the dimension cast to . Edge cases: for all sums are zero, so (2) would demand and (5) would demand , impossible for — but for , the hypothesis itself is unsatisfiable (the empty set is contained in bodies of arbitrarily large determinant), so the statement is vacuous there. For : is the unique matrix, (2)–(4) are trivial, and (5) reads , which with (1) forces . More generally, for any point family for which is not determinant-maximal among containing bodies, the hypothesis fails and the theorem asserts nothing.
Confirmed by the mission captain (proposal self-audit).