Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 3.1, p. 9 — directional KKT condition for (P) under directional calmness

Proved
DirKKTBilevel.VP.theorem_3_1

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

directional-calmnesskktnecessary-optimality-conditionsp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1variational-analysis

Let XXX be a finite-dimensional real inner product space, and consider

(P)min⁡z φ(z)s.t.ϕ(z)≤0,\text{(P)}\qquad \min_z\ \varphi(z)\quad\text{s.t.}\quad \phi(z)\le0,(P)zmin​ φ(z)s.t.ϕ(z)≤0,

with φ:X→R\varphi:X\to\mathbb Rφ:X→R and ϕ:X→Rq\phi:X\to\mathbb R^qϕ:X→Rq. Let zˉ\bar zzˉ be a local minimizer of (P). Suppose that

  1. φ\varphiφ is continuously differentiable at zˉ\bar zzˉ;
  2. ϕ\phiϕ is directionally Lipschitz and directionally differentiable at zˉ\bar zzˉ in direction uuu, with directional derivative ϕ′(zˉ;u)\phi'(\bar z;u)ϕ′(zˉ;u);
  3. u∈C(zˉ)u\in C(\bar z)u∈C(zˉ), i.e. ϕj′(zˉ;u)≤0\phi_j'(\bar z;u)\le0ϕj′​(zˉ;u)≤0 for every active jjj and ∇φ(zˉ)u≤0\nabla\varphi(\bar z)u\le0∇φ(zˉ)u≤0;
  4. (P) is calm at zˉ\bar zzˉ in direction uuu.

Then there is λ∈Rq\lambda\in\mathbb R^qλ∈Rq with 0≤λ⊥ϕ(zˉ)0\le\lambda\perp\phi(\bar z)0≤λ⊥ϕ(zˉ), λ⊥ϕ′(zˉ;u)\lambda\perp\phi'(\bar z;u)λ⊥ϕ′(zˉ;u), and

0∈∇φ(zˉ)+∂⟨λ,ϕ⟩(zˉ;u),0\in\nabla\varphi(\bar z)+\partial\langle\lambda,\phi\rangle(\bar z;u),0∈∇φ(zˉ)+∂⟨λ,ϕ⟩(zˉ;u),

where ∂(⋅)(zˉ;u)\partial(\cdot)(\bar z;u)∂(⋅)(zˉ;u) is the directional limiting subdifferential of Definition 2.6.

This is the paper's general directional KKT theorem; Theorem 5.1 is its application to the value-function reformulation of a bilevel program.

Formalization Note The paper states the result on Rn\mathbb R^nRn; here XXX is any finite-dimensional real inner product space, which is linearly isometric to some Rn\mathbb R^nRn, so nothing is gained or lost. It lets Theorem 5.1 apply this result on the Euclidean product Rn×Rm\mathbb R^n\times\mathbb R^mRn×Rm. "Continuously differentiable at zˉ\bar zzˉ" is ContDiffAt ℝ 1. The orthogonality relations are inner products, ∑jλjϕj(zˉ)=0\sum_j\lambda_j\phi_j(\bar z)=0∑j​λj​ϕj​(zˉ)=0 and ∑jλjϕj′(zˉ;u)=0\sum_j\lambda_j\phi_j'(\bar z;u)=0∑j​λj​ϕj′​(zˉ;u)=0. The direction uuu is not required to be nonzero, as in the paper.

Preamble
import Mathlib
import Definitions.Def_DirKKTBilevel_VP_Model

open Filter Topology
open NonconvexSplitting.Shared SetConstrSOC.Directional
Formal statement
namespace DirKKTBilevel.VP

/-- Theorem 3.1, p. 9: let `z` be a local minimizer of (P) `min obj` s.t. `con ≤ 0`, with `obj`
continuously differentiable at `z`, `con` directionally Lipschitz and directionally
differentiable at `z` in direction `u` (derivative `d = ϕ'(z; u)`), `u ∈ C(z)`, and (P) calm at
`z` in direction `u`. Then some `λ ∈ ℝ^q` has `0 ≤ λ ⊥ con(z)`, `λ ⊥ d` and
`0 ∈ ∇obj(z) + ∂⟨λ, con⟩(z; u)`. -/
theorem theorem_3_1 {X : Type*} [NormedAddCommGroup X] [InnerProductSpace ℝ X]
    [FiniteDimensional ℝ X] {q : ℕ} (obj : X → ℝ) (con : X → E q) (z u : X) (d : E q)
    (hfeas : ∀ j, con z j ≤ 0) (hmin : IsLocalMinOn obj {w | ∀ j, con w j ≤ 0} z)
    (hobj : ContDiffAt ℝ 1 obj z) (hLip : DirLipschitzAt con z u)
    (hdir : HasDirDerivAt con z u d) (hcrit : criticalCone obj con z u d)
    (hcalm : IsCalmDir obj con z u) :
    ∃ l : E q, (∀ j, 0 ≤ l j) ∧ ∑ j, l j * con z j = 0 ∧ ∑ j, l j * d j = 0 ∧
      ∃ ξ ∈ dirSubdiff (fun w => ((∑ j, l j * con w j : ℝ) : EReal)) z u,
        gradient obj z + ξ = 0 := by sorry

end DirKKTBilevel.VP
Source
Bai, Ye, Directional necessary optimality conditions for bilevel programs, arXiv:2004.01783v3, p. 9, Theorem 3.1
Human review
  • Endorsed by Shuze Chen · Oct 20, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 20, 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