Extended-real convex potentials and Legendre transforms
DefinitionKLS408915f_FunctionalInequalities_Analysis_Convex_Legendrefunctional-inequalitieskls-408915fkls-conjecturelog-concave
For a real inner-product space and , ConvexPotential φ means that never equals and that its real epigraph is convex, while ProperPotential φ additionally requires at least one finite value. legendre φ y is the extended-real supremum , and lowerTruncate φ M is pointwise; the module includes order, convexity, semicontinuity, and truncation auxiliary results.
Superseded upload. This snapshot was replaced by the readable modular upload KLSModular_FunctionalInequalities_Analysis_Convex_Legendre: open the replacement. The replacement preserves the source snapshot and mathematical statement, with source-module imports and identifiers without a commit suffix. This historical node remains available for existing imports.
Definition code
import Mathlib.Analysis.Convex.Topology
import Mathlib.Analysis.InnerProductSpace.Continuous
import Mathlib.Analysis.Normed.Module.Convex
import Mathlib.Data.EReal.Operations
import Mathlib.Topology.Instances.EReal.Lemmas
import Mathlib.Topology.Semicontinuity.Basic
noncomputable section
namespace FunctionalInequalities
namespace Analysis
variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E]
/-- Convexity of an extended-real potential, expressed through its real epigraph. -/
def ConvexPotential (φ : E → EReal) : Prop :=
(∀ x, φ x ≠ ⊥) ∧ Convex ℝ {p : E × ℝ | φ p.1 ≤ (p.2 : EReal)}
/-- The actual extended-real Legendre transform; no selected maximizers are assumed. -/
def legendre (φ : E → EReal) (y : E) : EReal :=
⨆ x : E, (inner ℝ x y : EReal) - φ x
/-- A finite-value witness as well as exclusion of `-∞`, rather than a desired conclusion. -/
def ProperPotential (φ : E → EReal) : Prop :=
(∀ x, φ x ≠ ⊥) ∧ ∃ x, φ x ≠ ⊤
/-- The actual lower truncation in CEK equation (61). -/
def lowerTruncate (φ : E → EReal) (M : ℝ) : E → EReal :=
fun x => max (φ x) ((-M : ℝ) : EReal)
end Analysis
end FunctionalInequalities
Source
Lean source: https://github.com/human-ai-mathematics/kls-lean/blob/408915f/formalization/FunctionalInequalities/Analysis/Convex/Legendre.lean#L35-L105 (repository human-ai-mathematics/kls-lean, commit 408915f, module `FunctionalInequalities.Analysis.Convex.Legendre`, definition bundle `KLS408915f_FunctionalInequalities_Analysis_Convex_Legendre`; the repository is private at upload time).