Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

(3.7) — for finite continuous convex fff, f′(x;u)=max⁡{⟨u,x∗⟩∣x∗∈∂f(x)}f'(x;u) = \max\{\langle u, x^*\rangle \mid x^* \in \partial f(x)\}f′(x;u)=max{⟨u,x∗⟩∣x∗∈∂f(x)}

Proved
RockafellarMaxMono.Cyclic.dirDeriv_eq_max_subdiff

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

convex-analysisdirectional-derivativep2o-batch-p100bp2o-gran-per-chapterp2o-plan-paperp2o-v1

Let VVV be a real Banach space with dual V∗V^*V∗, and let f:V→Rf : V \to \mathbb{R}f:V→R be a convex function which is everywhere finite and continuous. Fix x∈Vx \in Vx∈V. Then ∂f(x)\partial f(x)∂f(x) is a nonempty weak* compact subset of V∗V^*V∗, and for every direction u∈Vu \in Vu∈V the one-sided directional derivative

f′(x;u)=lim⁡λ↓0f(x+λu)−f(x)λf'(x; u) = \lim_{\lambda \downarrow 0} \frac{f(x + \lambda u) - f(x)}{\lambda}f′(x;u)=λ↓0lim​λf(x+λu)−f(x)​

exists (as a real number) and satisfies

f′(x;u)=max⁡{ ⟨u,x∗⟩∣x∗∈∂f(x) },f'(x; u) = \max \{\, \langle u, x^* \rangle \mid x^* \in \partial f(x) \,\} ,f′(x;u)=max{⟨u,x∗⟩∣x∗∈∂f(x)},

the maximum being attained.

This is the max formula for the directional derivative, which Rockafellar cites from Moreau's lecture notes. In the proof of Theorem B it converts the inclusion ∂f(x)⊆∂g(x)\partial f(x) \subseteq \partial g(x)∂f(x)⊆∂g(x) into the inequality f′(x;u)≤g′(x;u)f'(x;u) \le g'(x;u)f′(x;u)≤g′(x;u) between directional derivatives.

Formalization Note The limit is taken along real λ→0\lambda \to 0λ→0 with λ>0\lambda > 0λ>0 (the filter 𝓝[>] 0). "max" is expressed as IsGreatest of the image set, so the maximum is attained. Weak* compactness is compactness of the image of ∂f(x)\partial f(x)∂f(x) under the identity map StrongDual ℝ V → WeakDual ℝ V. VVV is an arbitrary real Banach space because the proof applies the result on the dual space E∗E^*E∗.

Preamble
import Mathlib
import Definitions.Def_RockafellarMaxMono_Shared_Subdiff
open Filter Topology
Formal statement
namespace RockafellarMaxMono.Cyclic

theorem dirDeriv_eq_max_subdiff {V : Type*} [NormedAddCommGroup V] [NormedSpace ℝ V]
    [CompleteSpace V] (h : V → ℝ) (hconv : ConvexOn ℝ Set.univ h) (hcont : Continuous h)
    (x : V) :
    (Shared.subdiff (fun y => ((h y : ℝ) : EReal)) x).Nonempty ∧
    IsCompact (StrongDual.toWeakDual '' Shared.subdiff (fun y => ((h y : ℝ) : EReal)) x) ∧
    ∀ u : V, ∃ d : ℝ,
      Tendsto (fun t : ℝ => (h (x + t • u) - h x) / t) (𝓝[>] 0) (𝓝 d) ∧
      IsGreatest ((fun x' : StrongDual ℝ V => x' u) ''
        Shared.subdiff (fun y => ((h y : ℝ) : EReal)) x) d := by sorry

end RockafellarMaxMono.Cyclic
Source
Rockafellar, On the maximal monotonicity of subdifferential mappings, Pacific J. Math. 33 (1970), pp. 214–215, (3.7) (citing Moreau [3, p. 65])
Read-back

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

Setting.

  • VVV is a real Banach space: a complete real normed space. V∗V^*V∗ is its continuous dual.
  • h:V→Rh : V \to \mathbb{R}h:V→R is convex on all of VVV and continuous in the norm topology.
  • x∈Vx \in Vx∈V is arbitrary.
  • ∂h(x)⊆V∗\partial h(x) \subseteq V^*∂h(x)⊆V∗ is the result of applying the bundle's subdifferential operation to hhh at xxx, with hhh regarded as a function into the extended reals [−∞,+∞][-\infty, +\infty][−∞,+∞] (its values are all finite). That operation is imported from a separate definitions file whose code is not included here, so its exact meaning is not visible in this statement.

Conclusions. All three of the following hold:

  1. ∂h(x)\partial h(x)∂h(x) is nonempty.
  2. ∂h(x)\partial h(x)∂h(x) is compact in the weak-* topology on V∗V^*V∗. Formally, its image under the identity map from V∗V^*V∗ to V∗V^*V∗ equipped with the weak-* topology is compact.
  3. For every direction u∈Vu \in Vu∈V there is a real number ddd with two properties. First, the one-sided difference quotient converges to ddd:
lim⁡t→0, t>0h(x+tu)−h(x)t=d.\lim_{t \to 0,\ t > 0} \frac{h(x + t u) - h(x)}{t} = d .t→0, t>0lim​th(x+tu)−h(x)​=d.

Second, ddd is the greatest element of the set { x∗(u):x∗∈∂h(x) }\{\, x^*(u) : x^* \in \partial h(x) \,\}{x∗(u):x∗∈∂h(x)}. So this maximum is attained: some x∗∈∂h(x)x^* \in \partial h(x)x∗∈∂h(x) has x∗(u)=dx^*(u) = dx∗(u)=d, and every x∗∈∂h(x)x^* \in \partial h(x)x∗∈∂h(x) has x∗(u)≤dx^*(u) \le dx∗(u)≤d.

Degenerate cases.

  • The limit is taken only over t>0t > 0t>0, so the undefined quotient at t=0t = 0t=0 never enters.
  • For u=0u = 0u=0 the quotient is identically 000, so d=0d = 0d=0. The claim then says every element of ∂h(x)\partial h(x)∂h(x) takes the value 000 at 000, which is automatic.
  • If V={0}V = \{0\}V={0}, then V∗={0}V^* = \{0\}V∗={0}. The claim becomes ∂h(0)={0}\partial h(0) = \{0\}∂h(0)={0} (nonempty and compact) with d=0d = 0d=0.
Human review
  • Endorsed by Shuze Chen · Sep 28, 2026

    Confirmed by the moderator at approval.

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