Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Nonnegative Directional Second Derivative at an Upper Touch

Proved
FunctionalInequalities.Analysis.directional_second_deriv_nonneg_readable

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

functional-inequalitieskls-conjecturekls-modularkls-readablelog-concave

This technical lemma concerns a convex function u:Rn→Ru:\mathbb R^n\to\mathbb Ru:Rn→R and a test function ψ\psiψ. If uuu is convex, ψ∈C2\psi\in C^2ψ∈C2 at x0x_0x0​, u(x0)=ψ(x0)u(x_0)=\psi(x_0)u(x0​)=ψ(x0​), and u≤ψu\le\psiu≤ψ almost everywhere in a neighborhood of x0x_0x0​, then every direction v∈Rnv\in\mathbb R^nv∈Rn satisfies

0≤D2ψ(x0)[v,v].0\le D^2\psi(x_0)[v,v].0≤D2ψ(x0​)[v,v].

The result is a one-dimensional directional form of the positive-semidefinite Hessian conclusion used by the public touching lemma.

Original Lean declaration header

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

private lemma directional_second_deriv_nonneg
    {n : ℕ} {u ψ : EuclideanSpace ℝ (Fin n) → ℝ}
    (hconv : ConvexOn ℝ univ u) {x₀ : EuclideanSpace ℝ (Fin n)}
    (hψ : ContDiffAt ℝ 2 ψ x₀) (hcontact : u x₀ = ψ x₀)
    (htouch : ∀ᶠ x in 𝓝 x₀, u x ≤ ψ x)
    (v : EuclideanSpace ℝ (Fin n)) :
    0 ≤ bilinearIteratedFDerivTwo ℝ ψ x₀ v v

Module navigation

Module: Analysis/Convex/Viscosity.

Next: posSemidef_hessianMatrix_of_upper_touch.

Source excerpt, lines 26–32 · Frozen source 408915f.

Preamble
import Definitions.Def_KLSModular_FunctionalInequalities_Analysis_Convex_Viscosity

open Set Metric Filter
open scoped RealInnerProductSpace Topology
Formal statement
 lemma FunctionalInequalities.Analysis.directional_second_deriv_nonneg_readable
    {n : ℕ} {u ψ : EuclideanSpace ℝ (Fin n) → ℝ}
    (hconv : ConvexOn ℝ univ u) {x₀ : EuclideanSpace ℝ (Fin n)}
    (hψ : ContDiffAt ℝ 2 ψ x₀) (hcontact : u x₀ = ψ x₀)
    (htouch : ∀ᶠ x in 𝓝 x₀, u x ≤ ψ x)
    (v : EuclideanSpace ℝ (Fin n)) :
    0 ≤ bilinearIteratedFDerivTwo ℝ ψ x₀ v v := by sorry
Source
Lean source: https://github.com/human-ai-mathematics/kls-lean/blob/408915f/formalization/FunctionalInequalities/Analysis/Convex/Viscosity.lean#L26-L145 (repository human-ai-mathematics/kls-lean, commit 408915f, module `FunctionalInequalities.Analysis.Convex.Viscosity`, declaration `_private.FunctionalInequalities.Analysis.Convex.Viscosity.0.FunctionalInequalities.Analysis.directional_second_deriv_nonneg`; 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