Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion LeanPool/CutoffRigidity.lean
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@ Copyright (c) 2026 Djalil Chafaï. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Djalil Chafaï
-/

module

public import LeanPool.CutoffRigidity.ConvexInteractionTheorem
public import LeanPool.CutoffRigidity.EuclideanGaussianSplitting
public import LeanPool.CutoffRigidity.Friedrichs.FormContraction
public import LeanPool.CutoffRigidity.Friedrichs.DiffusionConservativity
public import LeanPool.CutoffRigidity.Friedrichs.DiffusionTransitionKernel
public import LeanPool.CutoffRigidity.Friedrichs.DiffusionPositivity
public import LeanPool.CutoffRigidity.GaussianTransport.RiemannianLowerBound
public import LeanPool.CutoffRigidity.RiemannianSplitting.Extra.SplitPotential
Expand Down Expand Up @@ -37,7 +39,12 @@ Main declarations: `CutoffRigidity.normalized_convexInteraction_theorem`,
`CutoffRigidity.Riemann.Diff.diffusion_resolvent_one`,
`CutoffRigidity.Riemann.Diff.diffusion_semigroup_one`,
`CutoffRigidity.Riemann.Diff.diffusion_semigroup_mapsTo_zero_one`,
`CutoffRigidity.Riemann.Diff.diffusion_semigroup_preserves_integral`
`CutoffRigidity.Riemann.Diff.diffusion_semigroup_preserves_integral`,
`CutoffRigidity.L2Kernel.HasContinuousRepresentatives.locally_bounded`,
`CutoffRigidity.Riemann.Diff.diffusionTransitionKernel_integral`,
`CutoffRigidity.Riemann.Diff.diffusionTransitionKernel_add`,
`CutoffRigidity.Riemann.Diff.diffusionTransitionKernel_markov`,
`CutoffRigidity.Riemann.Diff.diffusionTransitionKernel_invariant`
Tags: curvature, spectral-gap, gaussian-factorization, gibbs-measures
MSC: 60J60, 47D07, 53C21
-/
138 changes: 138 additions & 0 deletions LeanPool/CutoffRigidity/Friedrichs/ContinuousRepresentatives.lean
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
/-
Copyright (c) 2026 Djalil Chafaï. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Djalil Chafaï
-/

-- Adapted from CutoffRigidity/Riemann/DiffKer1.lean and DiffKer2.lean for Lean Pool.

module

public import Mathlib.MeasureTheory.Function.L2Space
public import Mathlib.MeasureTheory.Measure.OpenPos
import Mathlib.Analysis.Normed.Operator.Banach
import Mathlib.MeasureTheory.Function.ConvergenceInMeasure
import Mathlib.Topology.ContinuousMap.Compact

/-! # Continuous representatives of the range of an L² operator -/

@[expose] public section

open Filter MeasureTheory Set
open scoped Topology

namespace CutoffRigidity.L2Kernel

variable {X : Type*} [TopologicalSpace X] [MeasurableSpace X]
{μ : Measure X}

/-- An operator has continuous representatives if every vector in its range has one. -/
def HasContinuousRepresentatives (T : (X →₂[μ] ℝ) →L[ℝ] (X →₂[μ] ℝ)) : Prop :=
∀ u, ∃ f : C(X, ℝ), (T u : X → ℝ) =ᵐ[μ] f

namespace HasContinuousRepresentatives

variable {T : (X →₂[μ] ℝ) →L[ℝ] (X →₂[μ] ℝ)}

/-- A continuous version of an output vector. Under full support it is unique. -/
noncomputable def representative (h : HasContinuousRepresentatives T) (u : X →₂[μ] ℝ) :
C(X, ℝ) := Classical.choose (h u)

/-- The chosen continuous version is a representative of the original vector. -/
theorem ae_representative (h : HasContinuousRepresentatives T) (u : X →₂[μ] ℝ) :
(T u : X → ℝ) =ᵐ[μ] h.representative u :=
Classical.choose_spec (h u)

variable [μ.IsOpenPosMeasure]

/-- With full support a continuous representative is determined by the output vector. -/
theorem representative_eq (h : HasContinuousRepresentatives T)
{u : X →₂[μ] ℝ} {f : C(X, ℝ)} (hf : (T u : X → ℝ) =ᵐ[μ] f) :
h.representative u = f :=
DFunLike.coe_injective <| Measure.eq_of_ae_eq ((h.ae_representative u).symm.trans hf)
(h.representative u).continuous f.continuous

/-- Taking continuous representatives is linear when the measure has full support. -/
noncomputable def lift (h : HasContinuousRepresentatives T) : (X →₂[μ] ℝ) →ₗ[ℝ] C(X, ℝ) where
toFun := h.representative
map_add' u v := by
apply h.representative_eq
rw [map_add]
filter_upwards [Lp.coeFn_add (T u) (T v), h.ae_representative u, h.ae_representative v]
with x hAdd hu hv
simpa only [Pi.add_apply, ContinuousMap.add_apply, hu, hv] using hAdd
map_smul' c u := by
apply h.representative_eq
rw [map_smul]
filter_upwards [Lp.coeFn_smul c (T u), h.ae_representative u] with x hMul hu
simpa only [Pi.smul_apply, ContinuousMap.smul_apply, RingHom.id_apply, hu] using hMul

@[simp] theorem lift_apply (h : HasContinuousRepresentatives T) (u : X →₂[μ] ℝ) :
h.lift u = h.representative u := rfl

variable [BorelSpace X]

private noncomputable def restrictLift (h : HasContinuousRepresentatives T) (K : Set X) :
(X →₂[μ] ℝ) →ₗ[ℝ] C(K, ℝ) where
toFun u := (h.lift u).comp ⟨Subtype.val, continuous_subtype_val⟩
map_add' u v := by
rw [map_add]
rfl
map_smul' c u := by
rw [map_smul]
rfl

private theorem continuous_restrictLift (h : HasContinuousRepresentatives T)
{K : Set X} (hClosed : IsClosed K) [CompactSpace K] (hK : K ⊆ closure (interior K)) :
Continuous (h.restrictLift K) := by
classical
refine LinearMap.continuous_of_seq_closed_graph _ fun u f g hu hg => ?_
obtain ⟨subsequence, hSubsequence, hLimit⟩ :=
(tendstoInMeasure_of_tendsto_Lp ((T.continuous.tendsto f).comp hu)).exists_seq_tendsto_ae
have hAll := ae_all_iff.2 fun n => h.ae_representative (u n)
have hPoint : ∀ᵐ x ∂μ, ∀ hx : x ∈ K, g ⟨x, hx⟩ = h.representative f x := by
filter_upwards [hLimit, hAll, h.ae_representative f] with x hx hRep hf hxK
have hEval := ((ContinuousMap.evalCLM ℝ (⟨x, hxK⟩ : K)).continuous.tendsto g).comp
(hg.comp hSubsequence.tendsto_atTop)
have hx' : Tendsto (fun n => h.representative (u (subsequence n)) x) atTop
(𝓝 (h.representative f x)) := by
simpa only [Function.comp_apply, hRep, hf] using hx
exact tendsto_nhds_unique hEval hx'
let gExtension (x : X) := if hx : x ∈ K then g ⟨x, hx⟩ else 0
have hCont : ContinuousOn gExtension K := by
rw [continuousOn_iff_continuous_domRestrict]
have hEq : K.domRestrict gExtension = g := by
funext x
simp [gExtension, x.property]
rw [hEq]
exact g.continuous
have hAE : gExtension =ᵐ[μ.restrict K] h.representative f := by
filter_upwards [ae_restrict_of_ae hPoint, ae_restrict_mem hClosed.measurableSet] with x hx hxK
simpa [gExtension, hxK] using hx hxK
have hEq := Measure.eqOn_of_ae_eq hAE hCont (h.representative f).continuous.continuousOn hK
ext x
simpa [restrictLift, gExtension, x.property] using hEq x.property

/-- On each compact set in a locally compact Hausdorff space, continuous representatives satisfy a
uniform bound by the input vector norm. -/
theorem locally_bounded [T2Space X] [LocallyCompactSpace X]
(h : HasContinuousRepresentatives T) {K : Set X} (hK : IsCompact K) :
∃ C : ℝ, ∀ (u : X →₂[μ] ℝ) (x : X), x ∈ K →
‖h.representative u x‖ ≤ C * ‖u‖ := by
obtain ⟨L, hL, hKL⟩ := exists_compact_superset hK
let K' := closure (interior L)
have hK' : IsCompact K' := hL.of_isClosed_subset isClosed_closure
(closure_minimal interior_subset hL.isClosed)
let : CompactSpace K' := isCompact_iff_compactSpace.1 hK'
have hRegular : K' ⊆ closure (interior K') :=
closure_mono (interior_maximal subset_closure isOpen_interior)
let bound : (X →₂[μ] ℝ) →L[ℝ] C(K', ℝ) :=
⟨h.restrictLift K', h.continuous_restrictLift isClosed_closure hRegular⟩
refine ⟨‖bound‖, fun u x hx => ?_⟩
have hx' : x ∈ K' := subset_closure (hKL hx)
calc
‖h.representative u x‖ ≤ ‖bound u‖ := ContinuousMap.norm_coe_le_norm (bound u) (⟨x, hx'⟩ : K')
_ ≤ ‖bound‖ * ‖u‖ := bound.le_opNorm u

end HasContinuousRepresentatives
end CutoffRigidity.L2Kernel
122 changes: 122 additions & 0 deletions LeanPool/CutoffRigidity/Friedrichs/DiffusionTransitionKernel.lean
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
/-
Copyright (c) 2026 Djalil Chafaï. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Djalil Chafaï
-/

-- Adapted from CutoffRigidity/Riemann/DiffKer2.lean through DiffKer5.lean for Lean Pool.

module

public import LeanPool.CutoffRigidity.Friedrichs.DiffusionConservativity
public import LeanPool.CutoffRigidity.Friedrichs.TransitionKernel
import LeanPool.CutoffRigidity.RiemannianSplitting.Riemann.WeightedSupport

/-! # Transition kernels of the weighted Friedrichs semigroup

This construction takes positive-time continuous representatives as input. It realizes the
operators as Markov kernels and transports their composition and invariance laws.
-/

public section

open Bundle MeasureTheory ProbabilityTheory
open scoped ContDiff Manifold NNReal

namespace CutoffRigidity.Riemann.Diff

open CutCur L2Kernel

variable (F : Type) [NormedAddCommGroup F] [InnerProductSpace ℝ F] [FiniteDimensional ℝ F]
[MeasurableSpace F] [BorelSpace F]
{M : Type} [EMetricSpace M] [ChartedSpace F M] [IsManifold 𝓘(ℝ, F) ∞ M]
[RiemannianBundle (fun x : M => TangentSpace 𝓘(ℝ, F) x)]
[IsContMDiffRiemannianBundle 𝓘(ℝ, F) ∞ F (fun x : M => TangentSpace 𝓘(ℝ, F) x)]
[MeasurableSpace M] [BorelSpace M]
{V : M → ℝ} (hV : MSmooth F V) {μ : Measure M} [IsFiniteMeasure μ]
(hμ : IsWeightedVolume F μ V)

/-- The regularity input for obtaining a kernel from the weighted L² semigroup. -/
abbrev HasContinuousDiffusion : Prop :=
∀ t : ℝ≥0, t ≠ 0 → HasContinuousRepresentatives ((diffFormData F hV hμ).semigroup t)

variable (regular : HasContinuousDiffusion F hV hμ)

/-- The transition kernel given by continuous representatives at positive time and identity at
zero. -/
noncomputable def diffusionTransitionKernel (t : ℝ≥0) : Kernel M M := by
let : LocallyCompactSpace M := ChartedSpace.locallyCompactSpace F M
let : μ.IsOpenPosMeasure := isOpenPosMeasure_of_weighted F hV hμ
exact if ht : t = 0 then Kernel.id else
(regular t ht).kernel (diffusion_semigroup_nonneg F hV hμ t)

/-- Zero time gives the identity kernel. -/
@[simp] theorem diffusionTransitionKernel_zero :
diffusionTransitionKernel F hV hμ regular 0 = Kernel.id := by
simp [diffusionTransitionKernel]

/-- Positive-time transitions are absolutely continuous with respect to weighted volume. -/
theorem diffusionTransitionKernel_ac {t : ℝ≥0} (ht : t ≠ 0) (x : M) :
diffusionTransitionKernel F hV hμ regular t x ≪ μ := by
let : LocallyCompactSpace M := ChartedSpace.locallyCompactSpace F M
let : μ.IsOpenPosMeasure := isOpenPosMeasure_of_weighted F hV hμ
rw [diffusionTransitionKernel, dite_eq_right ht]
exact (regular t ht).kernel_ac _ x

/-- Integrating an L² vector against a positive-time transition recovers the continuous output. -/
theorem diffusionTransitionKernel_integral {t : ℝ≥0} (ht : t ≠ 0) (x : M) (u : M →₂[μ] ℝ) :
Integrable (u : M → ℝ) (diffusionTransitionKernel F hV hμ regular t x) ∧
(∫ y, u y ∂diffusionTransitionKernel F hV hμ regular t x) =
(regular t ht).representative u x := by
let : LocallyCompactSpace M := ChartedSpace.locallyCompactSpace F M
let : μ.IsOpenPosMeasure := isOpenPosMeasure_of_weighted F hV hμ
rw [diffusionTransitionKernel, dite_eq_right ht]
exact (regular t ht).kernel_integral _ x u

/-- The transition kernels satisfy the Chapman–Kolmogorov composition law. -/
theorem diffusionTransitionKernel_add (s t : ℝ≥0) :
diffusionTransitionKernel F hV hμ regular (s + t) =
diffusionTransitionKernel F hV hμ regular t ∘ₖ diffusionTransitionKernel F hV hμ regular s :=
by
let : LocallyCompactSpace M := ChartedSpace.locallyCompactSpace F M
let : μ.IsOpenPosMeasure := isOpenPosMeasure_of_weighted F hV hμ
by_cases hs : s = 0
· subst s
rw [zero_add, diffusionTransitionKernel_zero, Kernel.comp_id]
by_cases ht : t = 0
· subst t
rw [add_zero, diffusionTransitionKernel_zero, Kernel.id_comp]
have hst : s + t ≠ 0 := fun heq => hs (add_eq_zero.mp heq).1
simp only [diffusionTransitionKernel, dite_eq_right hs, dite_eq_right ht, dite_eq_right hst]
exact (regular t ht).kernel_comp_eq (regular s hs) (regular (s + t) hst)
((diffFormData F hV hμ).semigroup_add s t) _ _ _

variable [IsRiemannianManifold 𝓘(ℝ, F) M] [ConnectedSpace M] [CompleteSpace M]

/-- Every transition of the conservative weighted semigroup is a probability kernel. -/
theorem diffusionTransitionKernel_markov (t : ℝ≥0) :
IsMarkovKernel (diffusionTransitionKernel F hV hμ regular t) := by
let : LocallyCompactSpace M := ChartedSpace.locallyCompactSpace F M
let : μ.IsOpenPosMeasure := isOpenPosMeasure_of_weighted F hV hμ
by_cases ht : t = 0
· subst t
rw [diffusionTransitionKernel_zero]
infer_instance
rw [diffusionTransitionKernel, dite_eq_right ht]
exact (regular t ht).kernel_markov _ (diffusion_semigroup_one F hV hμ t)

/-- Weighted volume is invariant under every transition. -/
theorem diffusionTransitionKernel_invariant (t : ℝ≥0) :
μ.bind (diffusionTransitionKernel F hV hμ regular t) = μ := by
let : LocallyCompactSpace M := ChartedSpace.locallyCompactSpace F M
let : μ.IsOpenPosMeasure := isOpenPosMeasure_of_weighted F hV hμ
by_cases ht : t = 0
· subst t
rw [diffusionTransitionKernel_zero]
ext A hA
rw [Measure.bind_apply hA (Kernel.aemeasurable _)]
simp [Kernel.id_apply, hA]
rw [diffusionTransitionKernel, dite_eq_right ht]
exact (regular t ht).kernel_invariant _ (diffusion_semigroup_preserves_integral F hV hμ t)

end CutoffRigidity.Riemann.Diff
Loading
Loading