Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 1.8 — fη′(x0)=max⁡g∈G(x0)(g,η)f'_\eta(x_0) = \max_{g \in G(x_0)} (g,\eta)fη′​(x0​)=maxg∈G(x0​)​(g,η)

Proved
ShorNonsmooth.Subdiff.dirDeriv_eq_max_subgradient

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

convex-analysisdirectional-derivativep2o-batch-b23ap2o-gran-per-chapterp2o-plan-bookp2o-v1subgradient

Let M⊆EnM \subseteq E_nM⊆En​, let fff be convex on MMM, and let x0x_0x0​ be an interior point of MMM. Then for every direction η∈En\eta \in E_nη∈En​ the one-sided directional derivative fη′(x0)=lim⁡t→0+(f(x0+tη)−f(x0))/tf'_\eta(x_0) = \lim_{t\to 0+} (f(x_0+t\eta) - f(x_0))/tfη′​(x0​)=limt→0+​(f(x0​+tη)−f(x0​))/t exists and is finite, and

fη′(x0)=max⁡g∈G(x0)(g,η),f'_\eta(x_0) = \max_{g \in G(x_0)} (g, \eta),fη′​(x0​)=g∈G(x0​)max​(g,η),

where G(x0)G(x_0)G(x0​) is the subdifferential of fff at x0x_0x0​ and the maximum is attained.

This max formula identifies the directional derivative with the support function of the subdifferential; it is the main tool for computing subdifferentials of composite functions.

Formalization Note The conclusion is that some real ddd is the right-hand limit and is the greatest element of {(g,η):g∈G(x0)}\{(g,\eta) : g \in G(x_0)\}{(g,η):g∈G(x0​)} (IsGreatest), so the maximum is attained and no sSup junk value can enter.

Preamble
import Mathlib
import Definitions.Def_ShorNonsmooth_Subdiff_Subdifferential
import Definitions.Def_ShorNonsmooth_Subdiff_DirDeriv
Formal statement
namespace ShorNonsmooth.Subdiff

/-- Shor (1985), p. 9, Theorem 1.8 (formula (1.5)): a convex function `f` with domain `M` has, at
every interior point `x₀` of `M` and in every direction `η`, a (finite, one-sided) directional
derivative `f′_η(x₀)`, and `f′_η(x₀) = max_{g ∈ G(x₀)} (g, η)`, the maximum being attained. -/
theorem dirDeriv_eq_max_subgradient {n : ℕ}
    (M : Set (EuclideanSpace ℝ (Fin n))) (f : EuclideanSpace ℝ (Fin n) → ℝ)
    (hf : ConvexOn ℝ M f) (x₀ : EuclideanSpace ℝ (Fin n)) (hx₀ : x₀ ∈ interior M)
    (η : EuclideanSpace ℝ (Fin n)) :
    ∃ d : ℝ, HasOneSidedDirDeriv f x₀ η d ∧
      IsGreatest ((fun g => inner ℝ g η) '' subdifferential M f x₀) d := by sorry

end ShorNonsmooth.Subdiff
Source
Shor, Minimization Methods for Non-Differentiable Functions, Springer 1985, p. 9, Theorem 1.8 (formula (1.5))
Human review
  • Endorsed by Shuze Chen · Oct 2, 2026

    Confirmed by the moderator at approval.

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