Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Pointwise Legendre First Variation

Proved
FunctionalInequalities.Analysis.hasDerivAt_legendre_add_smul_of_dualDifferentiable_readable

by Lazyfill · Oct 26, 2026 · Mathlib 0df444a (Lean v4.33.1)

functional-inequalitieskls-conjecturekls-modularkls-readablelog-concave

This is a pointwise first-variation formula for the Legendre transform under a bounded continuous perturbation.

Let EEE be a finite-dimensional real inner-product space and let ϕ:E→R‾\phi:E\to\overline{\mathbb{R}}ϕ:E→R be a proper lower-semicontinuous potential. Let yyy lie in the interior of the finite domain of ϕ∗\phi^*ϕ∗, and assume q↦(ϕ∗(q)).toRealq\mapsto(\phi^*(q)).toRealq↦(ϕ∗(q)).toReal is differentiable at yyy. Let b:E→Rb:E\to\mathbb{R}b:E→R be continuous and assume ∣b∣|b|∣b∣ is bounded above. Then the map

t⟼(ϕ+tb)∗(y).toRealt\longmapsto\bigl(\phi+t b\bigr)^*(y).toRealt⟼(ϕ+tb)∗(y).toReal

has derivative at 000 equal to

−b(∇(ϕ∗).toReal(y)).-b\bigl(\nabla(\phi^*).toReal(y)\bigr).−b(∇(ϕ∗).toReal(y)).

Here (ϕ+tb)(z)(\phi+t b)(z)(ϕ+tb)(z) denotes ϕ(z)+(tb(z):R‾)\phi(z)+(t b(z):\overline{\mathbb{R}})ϕ(z)+(tb(z):R). No differentiability or global finiteness of ϕ\phiϕ is assumed.

Original Lean declaration header

Within namespace FunctionalInequalities.Analysis. Shown in its original module context. Proof omitted.

theorem hasDerivAt_legendre_add_smul_of_dualDifferentiable
    {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E]
    [FiniteDimensional ℝ E]
    (φ : E → EReal) (hφ : ProperPotential φ)
    (hlsc : LowerSemicontinuous φ) (y : E)
    (hy : y ∈ interior {q : E | legendre φ q ≠ ⊤})
    (hd : DifferentiableAt ℝ (fun q => (legendre φ q).toReal) y)
    (b : E → ℝ) (hb : Continuous b)
    (hbounded : BddAbove (Set.range fun z : E => |b z|)) :
    HasDerivAt
      (fun t : ℝ =>
        (legendre (fun z : E => φ z + ((t * b z : ℝ) : EReal)) y).toReal)
      (-b (gradient (fun q => (legendre φ q).toReal) y)) 0

Module navigation

Module: Analysis/Convex/LegendreVariation/Derivative.

Definition modules: Analysis/Convex/Legendre.

Supporting theorems: exists_delta_nearMaximizer_norm_sub_gradient_lt, exists_legendre_maximizer_with_gradient_identity, legendre_bounded_perturbation_finite_curve.

Previous: exists_delta_nearMaximizer_norm_sub_gradient_lt.

Source excerpt, lines 245–257 · Frozen source 408915f.

Preamble
import Definitions.Def_KLSModular_FunctionalInequalities_Analysis_Convex_LegendreVariation_Derivative

set_option autoImplicit false
set_option relaxedAutoImplicit false
Formal statement

theorem FunctionalInequalities.Analysis.hasDerivAt_legendre_add_smul_of_dualDifferentiable_readable
    {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E]
    [FiniteDimensional ℝ E]
    (φ : E → EReal) (hφ : ProperPotential φ)
    (hlsc : LowerSemicontinuous φ) (y : E)
    (hy : y ∈ interior {q : E | legendre φ q ≠ ⊤})
    (hd : DifferentiableAt ℝ (fun q => (legendre φ q).toReal) y)
    (b : E → ℝ) (hb : Continuous b)
    (hbounded : BddAbove (Set.range fun z : E => |b z|)) :
    HasDerivAt
      (fun t : ℝ =>
        (legendre (fun z : E => φ z + ((t * b z : ℝ) : EReal)) y).toReal)
      (-b (gradient (fun q => (legendre φ q).toReal) y)) 0 := by sorry
Source
Lean source: https://github.com/human-ai-mathematics/kls-lean/blob/408915f/formalization/FunctionalInequalities/Analysis/Convex/LegendreVariation/Derivative.lean#L242-L436 (repository human-ai-mathematics/kls-lean, commit 408915f, module `FunctionalInequalities.Analysis.Convex.LegendreVariation.Derivative`, declaration `FunctionalInequalities.Analysis.hasDerivAt_legendre_add_smul_of_dualDifferentiable`; the repository is private at upload time).

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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me