Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Directional stationarity at a local extremum

Proved
VectorSpaceOpt.gateaux_stationary_of_local_extremum

by wenxinzhang · Aug 25, 2026 · Mathlib 0df444a (Lean v4.33.1)

calculusgateaux-derivativelocal-extremumoptimization

Let XXX be a real normed space, f:X→Rf:X\to\mathbb Rf:X→R, and let x0,h∈Xx_0,h\in Xx0​,h∈X. Suppose x0x_0x0​ is a local minimum or a local maximum of fff. If the scalar function s↦f(x0+sh)s\mapsto f(x_0+s h)s↦f(x0​+sh) is differentiable at s=0s=0s=0 with derivative ddd, then

d=0.d=0.d=0.

This is the direction-by-direction form of the necessary condition for an extremum; it does not strengthen Gateaux differentiability to Fréchet differentiability. The result is the first milestone because it identifies the stationarity condition from which a first-variation identity must arise, while remaining reusable for functionals unrelated to the particular integral action in the mission goal.

Preamble
import Mathlib
Formal statement
namespace VectorSpaceOpt

/-- Luenberger, Chapter 7, §7.4, Theorem 1. -/
theorem gateaux_stationary_of_local_extremum
    {X : Type*} [NormedAddCommGroup X] [NormedSpace ℝ X]
    (f : X → ℝ) (x₀ h : X) (d : ℝ)
    (hext : IsLocalMin f x₀ ∨ IsLocalMax f x₀)
    (hdir : HasDerivAt (fun s : ℝ ↦ f (x₀ + s • h)) d 0) :
    d = 0 := by sorry

end VectorSpaceOpt
Source
David G. Luenberger, Optimization by Vector Space Methods, Wiley, 1969, public scan https://sites.science.oregonstate.edu/~show/old/142_Luenberger.pdf, Chapter 7, §7.4, Theorem 1, printed p. 178; physical PDF p. 198.

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