Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Itô cutoff functions and derivative vectors

Definition
KLSModular_LevyStochCalc_Brownian_ItoCutoff

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

functional-inequalitiesklskls-conjecturekls-modularlog-concavemodule-contextvendored-levystochcalc

Vendored from the upstream LevyStochCalc library at https://github.com/cgarryZA/LevyStochCalc, commit 984dbf0b790031eac05d56fe5a84b65e15e1e932 (Apache-2.0). For f:(Fin n→R)→Rf : (\mathrm{Fin}\,n \to \mathbb{R}) \to \mathbb{R}f:(Finn→R)→R and radius kkk, cutoffFun f k multiplies fff by the smooth box cutoff boxCut k; gradVec g z records the first Fréchet derivative of ggg at zzz on the coordinate vectors, and hessVec g z records the corresponding second derivative coordinates. The auxiliary theorem energy_lt_top_of_bounded states that a pointwise bounded real integrand has finite L2L^2L2 energy, expressed as an ENNReal double integral over ω\omegaω and s∈[0,T]s \in [0,T]s∈[0,T] for every T>0T>0T>0.

Original module imports

import LevyStochCalc.Brownian.VectorItoFormula
import LevyStochCalc.Brownian.SmoothCutoff
import LevyStochCalc.Brownian.ItoLocality
import LevyStochCalc.Probability.ExitTime

Original declaration excerpt

Shown in the original module context.

noncomputable def cutoffFun (f : (Fin n → ℝ) → ℝ) (k : ℝ) : (Fin n → ℝ) → ℝ :=
  fun z => f z * boxCut k z

Module navigation

Direct project imports: LevyStochCalc/Brownian/VectorItoFormula, LevyStochCalc/Brownian/SmoothCutoff, LevyStochCalc/Brownian/ItoLocality, LevyStochCalc/Probability/ExitTime.

Theorems in source order:

  • IsVectorItoVersion.itoFormula_localise

Project result: The KLS conjecture.

Original module · LevyStochCalc.Brownian.ItoCutoff · Frozen source 408915f.

Definition code
import Definitions.Def_KLSModular_LevyStochCalc_Brownian_VectorItoFormula
import Definitions.Def_KLSModular_LevyStochCalc_Brownian_SmoothCutoff
import Definitions.Def_KLSModular_LevyStochCalc_Brownian_ItoLocality
import Definitions.Def_KLSModular_LevyStochCalc_Probability_ExitTime

/-
Copyright (c) 2026 Christian Garry. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Christian Garry
-/
-- Vendored from https://github.com/cgarryZA/LevyStochCalc at commit 984dbf0b790031eac05d56fe5a84b65e15e1e932 (upstream path LevyStochCalc/Brownian/ItoCutoff.lean; Apache-2.0; provenance in formalization/vendor/vendor-lock.json of the KLS repository)
namespace LevyStochCalc
open scoped Topology
section Cutoff
variable {n : ℕ}
/-- The product of `f` with the smooth box cutoff of radius `k`. -/
noncomputable def cutoffFun (f : (Fin n → ℝ) → ℝ) (k : ℝ) : (Fin n → ℝ) → ℝ :=
  fun z => f z * boxCut k z
/-- The coordinates of the first derivative, as a vector. -/
noncomputable def gradVec (g : (Fin n → ℝ) → ℝ) (z : Fin n → ℝ) : Fin n → ℝ :=
  fun p => fderiv ℝ g z (Pi.single p 1)
/-- The coordinates of the second derivative, as a vector. -/
noncomputable def hessVec (g : (Fin n → ℝ) → ℝ) (z : Fin n → ℝ) : Fin n × Fin n → ℝ :=
  fun pq => fderiv ℝ (fderiv ℝ g) z (Pi.single pq.1 1) (Pi.single pq.2 1)
end Cutoff
namespace Brownian
namespace Ito
open MeasureTheory ProbabilityTheory LevyStochCalc.Brownian.Multidim LevyStochCalc.Probability
open scoped NNReal ENNReal
universe u
section Bounded
variable {Ω : Type u} [MeasurableSpace Ω] {P : Measure Ω} [IsProbabilityMeasure P]
/-- A pointwise bounded integrand has finite energy on every window. -/
theorem energy_lt_top_of_bounded {K : Ω → ℝ → ℝ} {M : ℝ} (hM : ∀ ω s, |K ω s| ≤ M) :
    ∀ T : ℝ, 0 < T → ∫⁻ ω, ∫⁻ s in Set.Icc (0 : ℝ) T,
      (‖K ω s‖₊ : ℝ≥0∞) ^ 2 ∂volume ∂P < ⊤ := by
  intro T _hT
  have hpt : ∀ (ω : Ω) (s : ℝ),
      (‖K ω s‖₊ : ℝ≥0∞) ^ 2 ≤ ((Real.toNNReal M : ℝ≥0) : ℝ≥0∞) ^ 2 := by
    intro ω s
    have h0 : (0 : ℝ) ≤ M := le_trans (abs_nonneg _) (hM ω s)
    have h1 : ‖K ω s‖₊ ≤ Real.toNNReal M := by
      rw [← NNReal.coe_le_coe, coe_nnnorm, Real.coe_toNNReal M h0]
      simpa [Real.norm_eq_abs] using hM ω s
    exact pow_le_pow_left' (by exact_mod_cast h1) 2
  calc ∫⁻ ω, ∫⁻ s in Set.Icc (0 : ℝ) T, (‖K ω s‖₊ : ℝ≥0∞) ^ 2 ∂volume ∂P
      ≤ ∫⁻ _ω : Ω, ∫⁻ _s in Set.Icc (0 : ℝ) T,
          ((Real.toNNReal M : ℝ≥0) : ℝ≥0∞) ^ 2 ∂volume ∂P :=
        MeasureTheory.lintegral_mono fun ω => MeasureTheory.lintegral_mono fun s => hpt ω s
    _ < ⊤ := by
        simp only [MeasureTheory.lintegral_const, MeasureTheory.Measure.restrict_apply_univ,
          Real.volume_Icc, measure_univ, mul_one]
        exact ENNReal.mul_lt_top (ENNReal.pow_lt_top ENNReal.coe_lt_top) ENNReal.ofReal_lt_top
end Bounded
end Ito
end Brownian
end LevyStochCalc
Source
Lean source: https://github.com/cgarryZA/LevyStochCalc/blob/984dbf0b790031eac05d56fe5a84b65e15e1e932/LevyStochCalc/Brownian/ItoCutoff.lean#L35-L257 (repository human-ai-mathematics/kls-lean, commit 408915f, module `LevyStochCalc.Brownian.ItoCutoff`, definition bundle `KLSModular_LevyStochCalc_Brownian_ItoCutoff`; the repository is private at upload time). Vendored from https://github.com/cgarryZA/LevyStochCalc at commit 984dbf0b790031eac05d56fe5a84b65e15e1e932 (Apache-2.0; upstream copyright notice retained in the Lean text).

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