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