Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proof of Theorem 4.2, p. 8 — −∇f(x*) ∈ L_Ω(x*)° iff the KKT condition holds at x*

Proved
StrictCQ.AGP.kkt_iff_neg_gradient_mem_polar

by mikedeng1 · Oct 9, 2026 · Mathlib 0df444a (Lean v4.33.1)

farkaskktlinearized-conep2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1

Let x∗x^*x∗ be a feasible point of (1.1) and f:Rn→Rf:\mathbb R^n\to\mathbb Rf:Rn→R an objective. Then

−∇f(x∗)∈LΩ(x∗)∘-\nabla f(x^*)\in L_\Omega(x^*)^\circ−∇f(x∗)∈LΩ​(x∗)∘

if and only if the KKT condition holds at x∗x^*x∗ for fff: there are λ∈Rm\lambda\in\mathbb R^mλ∈Rm and μ∈R+p\mu\in\mathbb R^p_+μ∈R+p​, with μj=0\mu_j=0μj​=0 whenever gj(x∗)≠0g_j(x^*)\neq0gj​(x∗)=0, such that ∇f(x∗)+∑iλi∇hi(x∗)+∑jμj∇gj(x∗)=0\nabla f(x^*)+\sum_i\lambda_i\nabla h_i(x^*)+\sum_j\mu_j\nabla g_j(x^*)=0∇f(x∗)+∑i​λi​∇hi​(x∗)+∑j​μj​∇gj​(x∗)=0.

The paper reads "the KKT condition holds" as membership of −∇f(x∗)-\nabla f(x^*)−∇f(x∗) in LΩ(x∗)∘L_\Omega(x^*)^\circLΩ​(x∗)∘ (pp. 5, 8); this theorem connects that reading with the multiplier form used throughout the mission. It is Farkas' lemma for the cone generated by the active gradients.

Formalization Note The gradient of fff at x∗x^*x∗ is Mathlib's gradient; no differentiability of fff is assumed because only the vector ∇f(x∗)\nabla f(x^*)∇f(x∗) enters.

Preamble
import Mathlib
import Definitions.Def_StrictCQ_AGP_Setting

open Filter Topology InnerProductSpace
Formal statement
namespace StrictCQ.AGP

/-- Proof of Theorem 4.2, p. 8: at a feasible `xs`, KKT holds for `f` iff `-∇f(xs) ∈ L_Ω(xs)°`. -/
theorem kkt_iff_neg_gradient_mem_polar {n m p : ℕ} (C : Constraints n m p)
    (f : EuclideanSpace ℝ (Fin n) → ℝ) (xs : EuclideanSpace ℝ (Fin n))
    (hxs : xs ∈ C.feasible) :
    -gradient f xs ∈ polar (C.linCone xs) ↔ C.IsKKT f xs := by sorry

end StrictCQ.AGP
Source
Andreani, Martínez, Ramos & Silva, Strict constraint qualifications and sequential optimality conditions for constrained optimization, Optimization Online 5197 (version of November 12, 2015), p. 8, proof of Theorem 4.2 (and p. 5, (3.6)–(3.8))
Human review
  • Endorsed by Shuze Chen · Oct 10, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 10, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me