Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proof of Theorem 5.2, p. 25 — ∂(f − V)((x̄,ȳ);(u,v)) = ∇f(x̄,ȳ) + ∂(−V)(x̄;u) × {0}

Proved
DirKKTBilevel.VP.dir_sum_rule

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

directional-subdifferentialp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1sum-rulevalue-function

Let f:Rn×Rm→Rf:\mathbb R^n\times\mathbb R^m\to\mathbb Rf:Rn×Rm→R be continuously differentiable, g:Rn×Rm→Rpg:\mathbb R^n\times\mathbb R^m\to\mathbb R^pg:Rn×Rm→Rp, and 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} the value function. Suppose V(xˉ)V(\bar x)V(xˉ) is finite. Then for every yˉ∈Rm\bar y\in\mathbb R^myˉ​∈Rm and every direction (u,v)(u,v)(u,v),

∂(f−V)((xˉ,yˉ);(u,v))=∇f(xˉ,yˉ)+∂(−V)(xˉ;u)×{0},\partial(f-V)\big((\bar x,\bar y);(u,v)\big)=\nabla f(\bar x,\bar y)+\partial(-V)(\bar x;u)\times\{0\},∂(f−V)((xˉ,yˉ​);(u,v))=∇f(xˉ,yˉ​)+∂(−V)(xˉ;u)×{0},

where ∂(⋅)(⋅ ;⋅)\partial(\cdot)(\cdot\,;\cdot)∂(⋅)(⋅;⋅) is the directional limiting subdifferential and (f−V)(x,y)=f(x,y)−V(x)(f-V)(x,y)=f(x,y)-V(x)(f−V)(x,y)=f(x,y)−V(x).

The directional subdifferential of the difficult constraint f−Vf-Vf−V of (VP) thus splits into a gradient and the directional subdifferential of −V-V−V in the xxx-variable alone. This is how the multiplier condition of Theorem 3.1, applied to (VP), becomes the condition of Theorem 5.1.

Formalization Note The paper uses this identity inside the proof of Theorem 5.2, where VVV is assumed directionally Lipschitz; only finiteness of V(xˉ)V(\bar x)V(xˉ) is assumed here, which is weaker. The difference f−Vf-Vf−V is computed in EReal.

Preamble
import Mathlib
import Definitions.Def_DirKKTBilevel_VP_Model

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

/-- Proof of Theorem 5.2, p. 25 (citing [28, Theorem 5.6]): for continuously differentiable `f`
and finite `V(x̄)`, `∂(f − V)((x̄, ȳ); (u, v)) = ∇f(x̄, ȳ) + ∂(−V)(x̄; u) × {0}`. -/
theorem dir_sum_rule {n m p : ℕ} (f : Z n m → ℝ) (g : Z n m → E p) (hf : ContDiff ℝ 1 f)
    (x : E n) (y : E m) (u : E n) (v : E m)
    (hVbot : valueFn f g x ≠ ⊥) (hVtop : valueFn f g x ≠ ⊤) :
    dirSubdiff (fun z : Z n m => (f z : EReal) - valueFn f g (WithLp.ofLp z).1)
        (WithLp.toLp 2 (x, y)) (WithLp.toLp 2 (u, v)) =
      {w | ∃ ξ ∈ dirSubdiff (fun x' => -(valueFn f g x')) x u,
        w = gradient f (WithLp.toLp 2 (x, y)) + WithLp.toLp 2 (ξ, 0)} := by sorry

end DirKKTBilevel.VP
Source
Bai, Ye, Directional necessary optimality conditions for bilevel programs, arXiv:2004.01783v3, p. 25, proof of Theorem 5.2 (citing [28, Theorem 5.6])
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