Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 5.1, p. 22 — under directional calmness of (VP), a local minimizer of a bilevel program satisfies the directional KKT condition

Proved
DirKKTBilevel.VP.theorem_5_1

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

bilevel-programmingdirectional-calmnesskktnecessary-optimality-conditionsp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1

Consider the bilevel program

(BP)min⁡x,y F(x,y)s.t.y∈S(x), G(x,y)≤0,\text{(BP)}\qquad\min_{x,y}\ F(x,y)\quad\text{s.t.}\quad y\in S(x),\ G(x,y)\le0,(BP)x,ymin​ F(x,y)s.t.y∈S(x), G(x,y)≤0,

where S(x)S(x)S(x) is the solution set of the lower level program min⁡yf(x,y)\min_y f(x,y)miny​f(x,y) s.t. g(x,y)≤0g(x,y)\le0g(x,y)≤0, and F,f:Rn×Rm→RF,f:\mathbb R^n\times\mathbb R^m\to\mathbb RF,f:Rn×Rm→R, g:Rn×Rm→Rpg:\mathbb R^n\times\mathbb R^m\to\mathbb R^pg:Rn×Rm→Rp, G:Rn×Rm→RqG:\mathbb R^n\times\mathbb R^m\to\mathbb R^qG:Rn×Rm→Rq are continuously differentiable. Let V(x)=inf⁡y{f(x,y)∣g(x,y)≤0}V(x)=\inf_y\{f(x,y)\mid g(x,y)\le0\}V(x)=infy​{f(x,y)∣g(x,y)≤0} be the value function.

Let (xˉ,yˉ)(\bar x,\bar y)(xˉ,yˉ​) be a local minimizer of (BP). Suppose that

  1. VVV is directionally Lipschitz continuous and directionally differentiable at xˉ\bar xxˉ in direction uuu;
  2. (u,v)∈C(xˉ,yˉ)(u,v)\in C(\bar x,\bar y)(u,v)∈C(xˉ,yˉ​), the critical cone of (VP);
  3. (VP) is calm at (xˉ,yˉ)(\bar x,\bar y)(xˉ,yˉ​) in direction (u,v)(u,v)(u,v).

Then the directional KKT condition holds: there exist λV∈R\lambda_V\in\mathbb RλV​∈R, λg∈Rp\lambda_g\in\mathbb R^pλg​∈Rp, λG∈Rq\lambda_G\in\mathbb R^qλG​∈Rq such that

0∈∇F(xˉ,yˉ)+λV∇f(xˉ,yˉ)+λV ∂(−V)(xˉ;u)×{0}+∇g(xˉ,yˉ)Tλg+∇G(xˉ,yˉ)TλG,0\in\nabla F(\bar x,\bar y)+\lambda_V\nabla f(\bar x,\bar y)+\lambda_V\,\partial(-V)(\bar x;u)\times\{0\}+\nabla g(\bar x,\bar y)^T\lambda_g+\nabla G(\bar x,\bar y)^T\lambda_G,0∈∇F(xˉ,yˉ​)+λV​∇f(xˉ,yˉ​)+λV​∂(−V)(xˉ;u)×{0}+∇g(xˉ,yˉ​)Tλg​+∇G(xˉ,yˉ​)TλG​, λV≥0,0≤λg⊥g(xˉ,yˉ),λg⊥∇g(xˉ,yˉ)(u,v),0≤λG⊥G(xˉ,yˉ),λG⊥∇G(xˉ,yˉ)(u,v).\lambda_V\ge0,\quad 0\le\lambda_g\perp g(\bar x,\bar y),\quad \lambda_g\perp\nabla g(\bar x,\bar y)(u,v),\quad 0\le\lambda_G\perp G(\bar x,\bar y),\quad \lambda_G\perp\nabla G(\bar x,\bar y)(u,v).λV​≥0,0≤λg​⊥g(xˉ,yˉ​),λg​⊥∇g(xˉ,yˉ​)(u,v),0≤λG​⊥G(xˉ,yˉ​),λG​⊥∇G(xˉ,yˉ​)(u,v).

Here ∂(−V)(xˉ;u)\partial(-V)(\bar x;u)∂(−V)(xˉ;u) is the directional limiting subdifferential of −V-V−V. The theorem gives a KKT-type necessary condition for bilevel programs under a calmness condition required only in a critical direction, which is weaker than the classical (nondirectional) calmness that the value-function approach otherwise needs.

Formalization Note The inclusion "0∈…0\in\dots0∈…" is stated as the existence of ξ∈∂(−V)(xˉ;u)\xi\in\partial(-V)(\bar x;u)ξ∈∂(−V)(xˉ;u) making the sum zero. The value function is EReal-valued, and "directionally Lipschitz" includes finiteness of VVV on xˉ+Vε,δ(u)\bar x+\mathcal V_{\varepsilon,\delta}(u)xˉ+Vε,δ​(u) (Definition 2.4 is written for real-valued maps); directional differentiability is that of the real function VVV on that neighbourhood, with value V′(xˉ;u)V'(\bar x;u)V′(xˉ;u), which also enters the critical cone. The pair (x,y)(x,y)(x,y) lives in the Euclidean product WithLp 2 (E n × E m); ∇g(xˉ,yˉ)Tλg=∑i(λg)i∇gi(xˉ,yˉ)\nabla g(\bar x,\bar y)^T\lambda_g=\sum_i(\lambda_g)_i\nabla g_i(\bar x,\bar y)∇g(xˉ,yˉ​)Tλg​=∑i​(λg​)i​∇gi​(xˉ,yˉ​), and each ⊥\perp⊥ is an inner product (with the sign conditions, equivalent to componentwise complementarity). The paper obtains the result by applying Theorem 3.1 to (VP).

Preamble
import Mathlib
import Definitions.Def_DirKKTBilevel_VP_Model

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

/-- Theorem 5.1, p. 22: let `(x̄, ȳ)` be a local minimizer of (BP), let `V` be directionally
Lipschitz continuous and directionally differentiable at `x̄` in direction `u` (with
`V'(x̄; u) = dV`), let `(u, v) ∈ C(x̄, ȳ)`, and let (VP) be calm at `(x̄, ȳ)` in direction `(u, v)`.
Then the directional KKT condition holds: there are `λ_V, λ_g, λ_G` and `ξ ∈ ∂(−V)(x̄; u)` with
`0 = ∇F + λ_V∇f + λ_V(ξ, 0) + ∇gᵀλ_g + ∇Gᵀλ_G` at `(x̄, ȳ)`, `λ_V ≥ 0`,
`0 ≤ λ_g ⊥ g(x̄, ȳ)`, `λ_g ⊥ ∇g(x̄, ȳ)(u, v)`, `0 ≤ λ_G ⊥ G(x̄, ȳ)`, `λ_G ⊥ ∇G(x̄, ȳ)(u, v)`. -/
theorem theorem_5_1 {n m p q : ℕ} (F f : Z n m → ℝ) (g : Z n m → E p) (G : Z n m → E q)
    (hF : ContDiff ℝ 1 F) (hf : ContDiff ℝ 1 f) (hg : ContDiff ℝ 1 g) (hG : ContDiff ℝ 1 G)
    (x : E n) (y : E m) (u : E n) (v : E m) (dV : ℝ)
    (hmin : IsLocalMinBP F f g G x y)
    (hLip : DirLipschitzAtEReal (valueFn f g) x u)
    (hdiff : HasDirDerivAt (fun x' => (valueFn f g x').toReal) x u dV)
    (hcrit : criticalConeVP F f g G x y dV (WithLp.toLp 2 (u, v)))
    (hcalm : IsCalmDirVP F f g G x y (WithLp.toLp 2 (u, v))) :
    ∃ (lV : ℝ) (lg : E p) (lG : E q) (ξ : E n),
      ξ ∈ dirSubdiff (fun x' => -(valueFn f g x')) x u ∧
      gradient F (WithLp.toLp 2 (x, y)) + lV • gradient f (WithLp.toLp 2 (x, y))
          + lV • (WithLp.toLp 2 (ξ, 0) : Z n m)
          + ∑ i, lg i • gradient (fun z => g z i) (WithLp.toLp 2 (x, y))
          + ∑ j, lG j • gradient (fun z => G z j) (WithLp.toLp 2 (x, y)) = 0 ∧
      0 ≤ lV ∧
      (∀ i, 0 ≤ lg i) ∧ ∑ i, lg i * g (WithLp.toLp 2 (x, y)) i = 0 ∧
      ∑ i, lg i * fderiv ℝ (fun z => g z i) (WithLp.toLp 2 (x, y)) (WithLp.toLp 2 (u, v)) = 0 ∧
      (∀ j, 0 ≤ lG j) ∧ ∑ j, lG j * G (WithLp.toLp 2 (x, y)) j = 0 ∧
      ∑ j, lG j * fderiv ℝ (fun z => G z j) (WithLp.toLp 2 (x, y)) (WithLp.toLp 2 (u, v)) = 0 := by sorry

end DirKKTBilevel.VP
Source
Bai, Ye, Directional necessary optimality conditions for bilevel programs, arXiv:2004.01783v3, p. 22, Theorem 5.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