Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Corollary (1.10) — a lower bound on one-sided quotients gives membership in ∂f(x)

Proved
ClarkeGradients.MaxFunctions.mem_generalizedGradient_of_le_limsup

by mikedeng1 · Sep 27, 2026 · Mathlib 0df444a (Lean v4.33.1)

generalized-gradientnonsmooth-analysisp2o-batch-p100bp2o-gran-per-chapterp2o-plan-paperp2o-v1

Let f:Rn→Rf:\mathbb R^n\to\mathbb Rf:Rn→R be locally Lipschitz and x,ζ∈Rnx,\zeta\in\mathbb R^nx,ζ∈Rn. If for every v∈Rnv\in\mathbb R^nv∈Rn

ζ⋅v≤lim sup⁡δ↓0f(x+δv)−f(x)δ,\zeta\cdot v\le\limsup_{\delta\downarrow 0}\frac{f(x+\delta v)-f(x)}{\delta},ζ⋅v≤δ↓0limsup​δf(x+δv)−f(x)​,

then ζ∈∂f(x)\zeta\in\partial f(x)ζ∈∂f(x).

This criterion is how the inclusion (2.2) in the proof of Theorem (2.1) is obtained: the generalized gradients of the active pieces g(⋅,u)g(\cdot,u)g(⋅,u), u∈M(x)u\in M(x)u∈M(x), are shown to lie in ∂f(x)\partial f(x)∂f(x).

Formalization Note The upper limit is Filter.limsup in R\mathbb RR along N>(0)\mathcal N_{>}(0)N>​(0); it is a genuine upper limit because the quotient is bounded for locally Lipschitz fff (the hypothesis hf, the §1 standing assumption).

Preamble
import Mathlib
import Definitions.Def_ClarkeGradients_Shared_LipschitzOnBounded
import Definitions.Def_ClarkeGradients_Shared_generalizedGradient

open Filter Topology
Formal statement
namespace ClarkeGradients.MaxFunctions

/-- Clarke (1975), Corollary (1.10): for locally Lipschitz `f`, if
`ζ · v ≤ limsup_{δ ↓ 0} [f(x + δv) - f(x)] / δ` for all `v ∈ ℝⁿ`, then `ζ ∈ ∂f(x)`. -/
theorem mem_generalizedGradient_of_le_limsup {n : ℕ} (f : EuclideanSpace ℝ (Fin n) → ℝ)
    (hf : Shared.LipschitzOnBounded f) (x ζ : EuclideanSpace ℝ (Fin n))
    (h : ∀ v : EuclideanSpace ℝ (Fin n),
      inner ℝ ζ v ≤ limsup (fun δ : ℝ => (f (x + δ • v) - f x) / δ) (𝓝[>] (0 : ℝ))) :
    ζ ∈ Shared.generalizedGradient f x := by sorry

end ClarkeGradients.MaxFunctions
Source
Clarke, Generalized gradients and applications, Trans. Amer. Math. Soc. 205 (1975), p. 249, Corollary (1.10)
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

This statement uses two definitions that are imported from other files and whose code is not shown:

  • LipschitzOnBounded(f)\mathrm{LipschitzOnBounded}(f)LipschitzOnBounded(f): its name suggests that fff is Lipschitz on every bounded set.
  • ∂f(x)\partial f(x)∂f(x) (generalizedGradient f x): a subset of Rn\mathbb{R}^nRn.

The data are:

  • a natural number nnn;
  • a function f:Rn→Rf : \mathbb{R}^n \to \mathbb{R}f:Rn→R satisfying LipschitzOnBounded(f)\mathrm{LipschitzOnBounded}(f)LipschitzOnBounded(f);
  • points x,ζ∈Rnx, \zeta \in \mathbb{R}^nx,ζ∈Rn (Euclidean space).

The hypothesis is that for every direction v∈Rnv \in \mathbb{R}^nv∈Rn,

⟨ζ,v⟩  ≤  lim sup⁡δ→0+f(x+δv)−f(x)δ.\langle \zeta, v\rangle \;\le\; \limsup_{\delta \to 0^+} \frac{f(x + \delta v) - f(x)}{\delta}.⟨ζ,v⟩≤δ→0+limsup​δf(x+δv)−f(x)​.

Here ⟨⋅,⋅⟩\langle \cdot,\cdot\rangle⟨⋅,⋅⟩ is the standard inner product, and the lim sup⁡\limsuplimsup is taken as δ→0\delta \to 0δ→0 through strictly positive values. Under this hypothesis the statement concludes that ζ∈∂f(x)\zeta \in \partial f(x)ζ∈∂f(x).

The lim sup⁡\limsuplimsup is the real-valued lim sup⁡\limsuplimsup of Mathlib, defined as the infimum of all aaa such that the quotient is eventually ≤a\le a≤a. It is not an extended-real limit.

Degenerate cases:

  • Default value of the limsup. If, for some vvv, the quotient is not eventually bounded above, or it tends to −∞-\infty−∞, the lim sup⁡\limsuplimsup takes the default value 000. For that vvv the hypothesis then reads ⟨ζ,v⟩≤0\langle \zeta, v\rangle \le 0⟨ζ,v⟩≤0. If fff is Lipschitz near xxx, the quotient is bounded and this case does not arise. Whether LipschitzOnBounded\mathrm{LipschitzOnBounded}LipschitzOnBounded guarantees that depends on its unseen definition.
  • Direction v=0v = 0v=0. Both sides are 000, so this direction imposes no constraint.
  • Case n=0n = 0n=0. The only direction is v=0v = 0v=0, so the hypothesis is automatically true. The statement then asserts that the single point 000 belongs to ∂f(x)\partial f(x)∂f(x).
Human review
  • Endorsed by Shuze Chen · Sep 27, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Sep 27, 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