KKT sufficiency for convex problems
ProvedConvexOptimization.kkt_sufficient_for_convexThe KKT conditions are sufficient for optimality in a convex problem — no constraint qualification needed.
Let and be convex and differentiable on , with gradient fields and , and consider the constraints and . Suppose the triple satisfies the KKT conditions:
Then is feasible and minimizes over the feasible set.
This is the easy half of the KKT characterization, and the half that needs no Slater point: whenever a solver returns a primal–dual triple satisfying these equations, optimality is certified outright. The convexity hypotheses enter only through the fact that the stationarity condition makes a global minimizer of the convex function .
Formalization Note The hypotheses are packaged in the mission's IsKKTPoint predicate; the gradient fields are explicit arguments tied to , by HasGradientAt, and convexity is stated on Set.univ because the problem is in total-function form. The conclusion is a conjunction of feasibility and IsMinOn. Source: B&V §5.5.3, p. 244.
import Mathlib import Definitions.Def_ConvexOptimization_lagrangeDuality import Definitions.Def_ConvexOptimization_IsKKTPoint open scoped RealInnerProductSpace ENNReal open MeasureTheory
theorem ConvexOptimization.kkt_sufficient_for_convex {n mm p : ℕ}
(f₀ : EuclideanSpace ℝ (Fin n) → ℝ) (hf₀ : ConvexOn ℝ Set.univ f₀)
(fc : Fin mm → EuclideanSpace ℝ (Fin n) → ℝ)
(hfc : ∀ i, ConvexOn ℝ Set.univ (fc i))
(a : Fin p → EuclideanSpace ℝ (Fin n)) (b : Fin p → ℝ)
(f₀' : EuclideanSpace ℝ (Fin n) → EuclideanSpace ℝ (Fin n))
(hf₀' : ∀ x, HasGradientAt f₀ (f₀' x) x)
(fc' : Fin mm → EuclideanSpace ℝ (Fin n) → EuclideanSpace ℝ (Fin n))
(hfc' : ∀ i x, HasGradientAt (fc i) (fc' i x) x)
(xs : EuclideanSpace ℝ (Fin n)) (lam : Fin mm → ℝ) (nu : Fin p → ℝ)
(hkkt : IsKKTPoint fc a b f₀' fc' xs lam nu) :
xs ∈ feasibleSet fc a b ∧ IsMinOn f₀ (feasibleSet fc a b) xs := by
sorry
Read-back
What the Lean code literally says, in plain math · claude-fable-5
Theorem. Fix implicit and assume: (a) is convex on all of ; (b) each is convex on all of ; (c) satisfies: has gradient at every point of ; (d) for each , satisfies: has gradient at every ; (e) the point , and multipliers , , form a KKT point with respect to the data , which unfolds to the conjunction: for all ; for all ; for all ; for all ; and the vector equation in . (No sign condition on ; no linear-independence condition on the .) The conclusion is the conjunction: is feasible (i.e. lies in — which in fact restates the first two KKT clauses) and for every feasible . This is the sufficiency direction only (KKT global constrained minimality); nothing is claimed in the converse direction. Edge cases: with the KKT condition reduces to and the conclusion to unconstrained global minimality of .
Confirmed by the mission captain (proposal self-audit).