Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Weak Third Derivatives of the Hessian

Proved
FunctionalInequalities.Analysis.exists_weak_third_derivative_readable

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

functional-inequalitieskls-conjecturekls-modularkls-readableletwin2026log-concave

This formalizes a weak local regularity statement associated with Theorem 2.5 of Letwin (arXiv:2607.24164v1).

For u,V:Rn→Ru,V:\mathbb{R}^n\to\mathbb{R}u,V:Rn→R, assume uuu is C1C^1C1 and convex, ∇u\nabla u∇u is globally Lipschitz, VVV is C1C^1C1 and convex, and −u+V∘∇u-u+V\circ\nabla u−u+V∘∇u is Lipschitz. Assume also that K>0K>0K>0, that almost everywhere

Hu≻0,log⁡det⁡Hu=−u+V(∇u),KI−Hu⪰0,H_u\succ0, \qquad \log\det H_u=-u+V(\nabla u), \qquad KI-H_u\succeq0,Hu​≻0,logdetHu​=−u+V(∇u),KI−Hu​⪰0,

and that for some D∈RD\in\mathbb{R}D∈R,

u(x+h)+u(x−h)−2u(x)≤D∥h∥2u(x+h)+u(x-h)-2u(x)\le D\|h\|^2u(x+h)+u(x−h)−2u(x)≤D∥h∥2

for all x,hx,hx,h. Then there exists a tensor T(x,k,i,j)T(x,k,i,j)T(x,k,i,j) such that every Hessian entry Hu(x)ijH_u(x)_{ij}Hu​(x)ij​ has weak derivative T(x,k,i,j)T(x,k,i,j)T(x,k,i,j) in the coordinate direction eke_kek​, and each such derivative belongs locally to L2L^2L2 on every compact set. This is a technical weak-derivative conclusion and does not assert classical third derivatives.

Original Lean declaration header

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

theorem exists_weak_third_derivative {n : ℕ} {u V : EuclideanSpace ℝ (Fin n) → ℝ}
    (hu : ContDiff ℝ 1 u) (hconv : ConvexOn ℝ univ u) {G : NNReal}
    (hG : LipschitzWith G (gradient u)) (hV : ContDiff ℝ 1 V) (hVc : ConvexOn ℝ univ V)
    {LF : NNReal} (hF : LipschitzWith LF (fun x => -u x + V (gradient u x))) {K : ℝ} (hK : 0 < K)
    (hdata : ∀ᵐ x ∂(volume : Measure (EuclideanSpace ℝ (Fin n))),
      (hessianMatrix u x).PosDef ∧
      Real.log (hessianMatrix u x).det = -u x + V (gradient u x) ∧
      (K • (1 : Matrix (Fin n) (Fin n) ℝ) - hessianMatrix u x).PosSemidef)
    {D : ℝ} (hw : ∀ x h, u (x + h) + u (x - h) - 2 * u x ≤ D * ‖h‖ ^ 2) :
    ∃ T : EuclideanSpace ℝ (Fin n) → Fin n → Fin n → Fin n → ℝ, ∀ k i j,
      HasWeakDerivAlong (fun x => hessianMatrix u x i j) (fun x => T x k i j)
          (EuclideanSpace.basisFun (Fin n) ℝ k) ∧
        ∀ S : Set (EuclideanSpace ℝ (Fin n)), IsCompact S →
          MemLp (fun x => T x k i j) 2 ((volume : Measure (EuclideanSpace ℝ (Fin n))).restrict S)

Module navigation

Module: Analysis/Convex/HessianRegularity.

Definition modules: Analysis/BakryEmery/HessianOperator, Analysis/Operator/Coordinates, Analysis/WeakDerivative/Basic.

Supporting theorems: exists_hasWeakDerivAlong_of_forall_cutoff, exists_hasWeakDerivAlong_of_sq_difference_le, exists_hessian_cutoff_sq_difference_bound, memLp_cutoff_mul_hessianMatrix_entry, norm_hessianMatrix_entry_le_of_lipschitz_gradient.

Source excerpt, lines 18–31 · Frozen source 408915f.

Preamble
import Definitions.Def_KLSModular_FunctionalInequalities_Analysis_Convex_HessianRegularity

open MeasureTheory Set Filter
open FunctionalInequalities.Probability.Stein
Formal statement

theorem FunctionalInequalities.Analysis.exists_weak_third_derivative_readable {n : ℕ} {u V : EuclideanSpace ℝ (Fin n) → ℝ}
    (hu : ContDiff ℝ 1 u) (hconv : ConvexOn ℝ univ u) {G : NNReal}
    (hG : LipschitzWith G (gradient u)) (hV : ContDiff ℝ 1 V) (hVc : ConvexOn ℝ univ V)
    {LF : NNReal} (hF : LipschitzWith LF (fun x => -u x + V (gradient u x))) {K : ℝ} (hK : 0 < K)
    (hdata : ∀ᵐ x ∂(volume : Measure (EuclideanSpace ℝ (Fin n))),
      (hessianMatrix u x).PosDef ∧
      Real.log (hessianMatrix u x).det = -u x + V (gradient u x) ∧
      (K • (1 : Matrix (Fin n) (Fin n) ℝ) - hessianMatrix u x).PosSemidef)
    {D : ℝ} (hw : ∀ x h, u (x + h) + u (x - h) - 2 * u x ≤ D * ‖h‖ ^ 2) :
    ∃ T : EuclideanSpace ℝ (Fin n) → Fin n → Fin n → Fin n → ℝ, ∀ k i j,
      HasWeakDerivAlong (fun x => hessianMatrix u x i j) (fun x => T x k i j)
          (EuclideanSpace.basisFun (Fin n) ℝ k) ∧
        ∀ S : Set (EuclideanSpace ℝ (Fin n)), IsCompact S →
          MemLp (fun x => T x k i j) 2 ((volume : Measure (EuclideanSpace ℝ (Fin n))).restrict S) := by sorry
Source
Source: Letwin, The KLS constant is O(log^(1/4) n) (arXiv:2607.24164v1), Theorem 2.5. Lean source: https://github.com/human-ai-mathematics/kls-lean/blob/408915f/formalization/FunctionalInequalities/Analysis/Convex/HessianRegularity.lean#L15-L51 (repository human-ai-mathematics/kls-lean, commit 408915f, module `FunctionalInequalities.Analysis.Convex.HessianRegularity`, declaration `FunctionalInequalities.Analysis.exists_weak_third_derivative`; 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