Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Semidefinite Hessian at an Upper Touch

Proved
FunctionalInequalities.Analysis.posSemidef_hessianMatrix_of_upper_touch_readable

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

functional-inequalitieskls-conjecturekls-modularkls-readablelog-concave

Let u,ψ:Rn→Ru,\psi:\mathbb R^n\to\mathbb Ru,ψ:Rn→R, with uuu convex. If ψ∈C2\psi\in C^2ψ∈C2 at x0x_0x0​, u(x0)=ψ(x0)u(x_0)=\psi(x_0)u(x0​)=ψ(x0​), and u(x)≤ψ(x)u(x)\le\psi(x)u(x)≤ψ(x) in a neighborhood of x0x_0x0​, then the coordinate Hessian of ψ\psiψ at x0x_0x0​ is positive semidefinite:

hessianMatrix⁡(ψ)(x0)⪰0.\operatorname{hessianMatrix}(\psi)(x_0)\succeq0.hessianMatrix(ψ)(x0​)⪰0.

This is a pointwise viscosity touching principle for convex functions.

Original Lean declaration header

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

theorem posSemidef_hessianMatrix_of_upper_touch {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) :
    (hessianMatrix ψ x₀).PosSemidef

Module navigation

Module: Analysis/Convex/Viscosity.

Definition modules: Analysis/BakryEmery/HessianOperator.

Supporting theorems: directional_second_deriv_nonneg.

Previous: directional_second_deriv_nonneg · Next: hessianMatrix_quadratic.

Source excerpt, lines 149–152 · Frozen source 408915f.

Preamble
import Definitions.Def_KLSModular_FunctionalInequalities_Analysis_Convex_Viscosity

open Set Metric Filter
open scoped RealInnerProductSpace Topology
open FunctionalInequalities.Probability.Stein
Formal statement

theorem FunctionalInequalities.Analysis.posSemidef_hessianMatrix_of_upper_touch_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) :
    (hessianMatrix ψ x₀).PosSemidef := by sorry
Source
Lean source: https://github.com/human-ai-mathematics/kls-lean/blob/408915f/formalization/FunctionalInequalities/Analysis/Convex/Viscosity.lean#L147-L181 (repository human-ai-mathematics/kls-lean, commit 408915f, module `FunctionalInequalities.Analysis.Convex.Viscosity`, declaration `FunctionalInequalities.Analysis.posSemidef_hessianMatrix_of_upper_touch`; 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