From d20fd36ed6b83dcc16667a2d6c7a5b2e48b35711 Mon Sep 17 00:00:00 2001 From: Vasily Ilin Date: Sat, 28 Nov 2026 11:04:32 +0000 Subject: [PATCH] Port transition kernels for the weighted diffusion semigroup --- LeanPool/CutoffRigidity.lean | 9 +- .../Friedrichs/ContinuousRepresentatives.lean | 138 +++++++++++ .../Friedrichs/DiffusionTransitionKernel.lean | 122 +++++++++ .../Friedrichs/TransitionKernel.lean | 233 ++++++++++++++++++ LeanPool/CutoffRigidity/Imports.lean | 3 + LeanPool/projects/cutoff-rigidity.yaml | 27 +- 6 files changed, 530 insertions(+), 2 deletions(-) create mode 100644 LeanPool/CutoffRigidity/Friedrichs/ContinuousRepresentatives.lean create mode 100644 LeanPool/CutoffRigidity/Friedrichs/DiffusionTransitionKernel.lean create mode 100644 LeanPool/CutoffRigidity/Friedrichs/TransitionKernel.lean diff --git a/LeanPool/CutoffRigidity.lean b/LeanPool/CutoffRigidity.lean index d7c803cb09..809629df37 100644 --- a/LeanPool/CutoffRigidity.lean +++ b/LeanPool/CutoffRigidity.lean @@ -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 @@ -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 -/ diff --git a/LeanPool/CutoffRigidity/Friedrichs/ContinuousRepresentatives.lean b/LeanPool/CutoffRigidity/Friedrichs/ContinuousRepresentatives.lean new file mode 100644 index 0000000000..8039eb6a57 --- /dev/null +++ b/LeanPool/CutoffRigidity/Friedrichs/ContinuousRepresentatives.lean @@ -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 diff --git a/LeanPool/CutoffRigidity/Friedrichs/DiffusionTransitionKernel.lean b/LeanPool/CutoffRigidity/Friedrichs/DiffusionTransitionKernel.lean new file mode 100644 index 0000000000..bff7ce2ccd --- /dev/null +++ b/LeanPool/CutoffRigidity/Friedrichs/DiffusionTransitionKernel.lean @@ -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 diff --git a/LeanPool/CutoffRigidity/Friedrichs/TransitionKernel.lean b/LeanPool/CutoffRigidity/Friedrichs/TransitionKernel.lean new file mode 100644 index 0000000000..337e641ffd --- /dev/null +++ b/LeanPool/CutoffRigidity/Friedrichs/TransitionKernel.lean @@ -0,0 +1,233 @@ +/- +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/DiffKer3.lean through DiffKer5.lean for Lean Pool. + +module + +public import LeanPool.CutoffRigidity.Friedrichs.ContinuousRepresentatives +import Mathlib.Analysis.InnerProductSpace.Dual +import Mathlib.MeasureTheory.Integral.Bochner.Set +public import Mathlib.Probability.Kernel.Composition.Comp + +/-! # A Markov kernel from a conservative L² operator with continuous representatives -/ + +public section + +open Filter MeasureTheory ProbabilityTheory Set +open scoped ENNReal + +namespace CutoffRigidity.L2Kernel.HasContinuousRepresentatives + +section Indicator + +variable {X : Type*} [MeasurableSpace X] {μ : Measure X} [IsFiniteMeasure μ] + +/-- The L² vector represented by a measurable set's indicator function. -/ +noncomputable def indicatorVector {A : Set X} (hA : MeasurableSet A) : X →₂[μ] ℝ := + indicatorConstLp 2 hA (measure_ne_top μ A) (1 : ℝ) + +/-- An indicator vector is represented by the corresponding indicator almost everywhere. -/ +theorem ae_indicatorVector {A : Set X} (hA : MeasurableSet A) : + (indicatorVector (μ := μ) hA : X → ℝ) =ᵐ[μ] A.indicator (fun _ => 1) := + indicatorConstLp_coeFn + +/-- A measurable set's indicator vector is nonnegative almost everywhere. -/ +theorem indicatorVector_nonneg {A : Set X} (hA : MeasurableSet A) : + 0 ≤ᵐ[μ] (indicatorVector (μ := μ) hA : X → ℝ) := by + filter_upwards [ae_indicatorVector (μ := μ) hA] with y hy + rw [hy] + exact Set.indicator_nonneg (fun _ _ => zero_le_one) y + +end Indicator + +variable {X : Type*} [TopologicalSpace X] [T2Space X] [LocallyCompactSpace X] + [MeasurableSpace X] [BorelSpace X] {μ : Measure X} [μ.IsOpenPosMeasure] + {T : (X →₂[μ] ℝ) →L[ℝ] (X →₂[μ] ℝ)} (h : HasContinuousRepresentatives T) + +private noncomputable def evalContinuous (x : X) : (X →₂[μ] ℝ) →L[ℝ] ℝ := + let evaluation : (X →₂[μ] ℝ) →ₗ[ℝ] ℝ := ((ContinuousMap.evalCLM ℝ x).toLinearMap).comp h.lift + let bounds := h.locally_bounded (isCompact_singleton (x := x)) + evaluation.mkContinuous (Classical.choose bounds) fun u => + Classical.choose_spec bounds u x (mem_singleton x) + +/-- The L² density obtained by Riesz representation of point evaluation. -/ +noncomputable def density (x : X) : X →₂[μ] ℝ := + (InnerProductSpace.toDual ℝ (X →₂[μ] ℝ)).symm (evalContinuous h x) + +/-- Pairing with the density gives the value of the continuous representative. -/ +theorem inner_density (x : X) (u : X →₂[μ] ℝ) : + inner ℝ (h.density x) u = h.representative u x := + InnerProductSpace.toDual_symm_apply + +omit [T2Space X] [LocallyCompactSpace X] [BorelSpace X] in +/-- If the operator preserves nonnegativity, its continuous representative is nonnegative. -/ +theorem representative_nonneg + (positive : ∀ u : X →₂[μ] ℝ, 0 ≤ᵐ[μ] u → 0 ≤ᵐ[μ] (T u : X → ℝ)) + (u : X →₂[μ] ℝ) (hu : 0 ≤ᵐ[μ] u) (x : X) : + 0 ≤ h.representative u x := by + have hAE : ∀ᵐ y ∂μ, 0 ≤ h.representative u y := by + filter_upwards [positive u hu, h.ae_representative u] with y hPos hRep + exact hRep ▸ hPos + have hClosed : IsClosed {y | 0 ≤ h.representative u y} := + isClosed_le continuous_const (h.representative u).continuous + have hUniv : {y | 0 ≤ h.representative u y} = univ := by + apply (hClosed.ae_eq_univ_iff_eq (μ := μ)).mp + filter_upwards [hAE] with y hy + simp [hy] + change x ∈ {y | 0 ≤ h.representative u y} + rw [hUniv] + exact mem_univ x + +/-- The Riesz density of a positive operator has nonnegative values almost everywhere. -/ +theorem density_nonneg + (positive : ∀ u : X →₂[μ] ℝ, 0 ≤ᵐ[μ] u → 0 ≤ᵐ[μ] (T u : X → ℝ)) (x : X) : + 0 ≤ᵐ[μ] (h.density x : X → ℝ) := by + let p := h.density x + let q := Lp.negPart p + have hq : 0 ≤ᵐ[μ] (q : X → ℝ) := by + filter_upwards [Lp.coeFn_negPart_eq_max p] with y hy + exact hy.symm ▸ le_max_right _ _ + have hPair : inner ℝ p q = -∫ y, q y ^ 2 ∂μ := by + rw [L2.inner_def, ← integral_neg] + refine integral_congr_ae ?_ + filter_upwards [Lp.coeFn_negPart_eq_max p] with y hy + change q y = max (-p y) 0 at hy + simp only [RCLike.inner_apply, conj_trivial, hy] + rcases le_total (p y) 0 with hy' | hy' + · rw [max_eq_left (neg_nonneg.mpr hy'), neg_mul, neg_sq, pow_two] + · simp [max_eq_right (neg_nonpos.mpr hy')] + have hPos : 0 ≤ inner ℝ p q := h.inner_density x q ▸ h.representative_nonneg positive q hq x + have hIntegral : ∫ y, q y ^ 2 ∂μ = 0 := + le_antisymm (neg_nonneg.mp (hPair ▸ hPos)) (integral_nonneg fun _ => sq_nonneg _) + have hZero : (fun y => q y ^ 2) =ᵐ[μ] 0 := + (integral_eq_zero_iff_of_nonneg (fun y => sq_nonneg (q y)) + (Lp.memLp q).integrable_sq).mp hIntegral + filter_upwards [hZero, Lp.coeFn_negPart_eq_max p] with y hy hqy + have hq0 : q y = 0 := by simpa using hy + have hLe : -p y ≤ 0 := (le_max_left _ (0 : ℝ)).trans_eq (hqy.symm.trans hq0) + exact neg_nonpos.mp hLe + +variable [IsFiniteMeasure μ] + +private noncomputable def measureAt (x : X) : Measure X := + μ.withDensity fun y => ENNReal.ofReal (h.density x y) + +private theorem measureAt_apply + (positive : ∀ u : X →₂[μ] ℝ, 0 ≤ᵐ[μ] u → 0 ≤ᵐ[μ] (T u : X → ℝ)) + (x : X) {A : Set X} (hA : MeasurableSet A) : + h.measureAt x A = ENNReal.ofReal (h.representative (indicatorVector hA) x) := by + rw [measureAt, withDensity_apply _ hA] + have hi : Integrable (h.density x : X → ℝ) (μ.restrict A) := + ((Lp.memLp _).integrable one_le_two).restrict + rw [← ofReal_integral_eq_lintegral_ofReal hi (ae_restrict_of_ae (h.density_nonneg positive x))] + congr 1 + rw [← h.inner_density, real_inner_comm, indicatorVector, L2.inner_indicatorConstLp_one] + +/-- The kernel representing a positive operator whose outputs have continuous representatives. -/ +noncomputable def kernel + (positive : ∀ u : X →₂[μ] ℝ, 0 ≤ᵐ[μ] u → 0 ≤ᵐ[μ] (T u : X → ℝ)) : + Kernel X X where + toFun := h.measureAt + measurable' := by + refine Measure.measurable_of_measurable_coe _ fun A hA => ?_ + simp_rw [h.measureAt_apply positive _ hA] + exact ENNReal.measurable_ofReal.comp + (h.representative (indicatorVector hA)).continuous.measurable + +/-- The kernel applied to a measurable set equals the continuous output of that set's indicator. -/ +theorem kernel_apply + (positive : ∀ u : X →₂[μ] ℝ, 0 ≤ᵐ[μ] u → 0 ≤ᵐ[μ] (T u : X → ℝ)) + (x : X) {A : Set X} (hA : MeasurableSet A) : + h.kernel positive x A = ENNReal.ofReal (h.representative (indicatorVector hA) x) := + h.measureAt_apply positive x hA + +/-- Every transition measure is absolutely continuous with respect to the reference measure. -/ +theorem kernel_ac + (positive : ∀ u : X →₂[μ] ℝ, 0 ≤ᵐ[μ] u → 0 ≤ᵐ[μ] (T u : X → ℝ)) (x : X) : + h.kernel positive x ≪ μ := + withDensity_absolutelyContinuous _ _ + +/-- Integrating an L² vector against the kernel gives its continuous output. -/ +theorem kernel_integral + (positive : ∀ u : X →₂[μ] ℝ, 0 ≤ᵐ[μ] u → 0 ≤ᵐ[μ] (T u : X → ℝ)) + (x : X) (u : X →₂[μ] ℝ) : + Integrable (u : X → ℝ) (h.kernel positive x) ∧ + (∫ y, u y ∂h.kernel positive x) = h.representative u x := by + let p := h.density x + have hMeas : Measurable fun y => (p y).toNNReal := + (Lp.stronglyMeasurable p).measurable.real_toNNReal + change Integrable (u : X → ℝ) (μ.withDensity fun y => (p y).toNNReal) ∧ + (∫ y, u y ∂μ.withDensity (fun z => (p z).toNNReal)) = h.representative u x + have hProd : Integrable (fun y => p y * u y) μ := + (Lp.memLp p).integrable_mul (Lp.memLp u) + have hAE : (fun y => (p y).toNNReal • u y) =ᵐ[μ] fun y => p y * u y := by + filter_upwards [h.density_nonneg positive x] with y hy + change 0 ≤ p y at hy + rw [NNReal.smul_def, smul_eq_mul, Real.coe_toNNReal _ hy] + refine ⟨?_, ?_⟩ + · rw [integrable_withDensity_iff_integrable_smul hMeas] + exact hProd.congr hAE.symm + · rw [integral_withDensity_eq_integral_smul hMeas, integral_congr_ae hAE, ← h.inner_density, + L2.inner_def] + simp only [RCLike.inner_apply, conj_trivial, mul_comm, p] + +/-- Composition of positive operators with continuous representatives is represented by the +composition of their kernels, in transition order. -/ +theorem kernel_comp_eq {S U : (X →₂[μ] ℝ) →L[ℝ] (X →₂[μ] ℝ)} + (hS : HasContinuousRepresentatives S) (hU : HasContinuousRepresentatives U) + (hEq : U = S * T) + (posS : ∀ u : X →₂[μ] ℝ, 0 ≤ᵐ[μ] u → 0 ≤ᵐ[μ] (S u : X → ℝ)) + (posT : ∀ u : X →₂[μ] ℝ, 0 ≤ᵐ[μ] u → 0 ≤ᵐ[μ] (T u : X → ℝ)) + (posU : ∀ u : X →₂[μ] ℝ, 0 ≤ᵐ[μ] u → 0 ≤ᵐ[μ] (U u : X → ℝ)) : + hU.kernel posU = (h.kernel posT) ∘ₖ (hS.kernel posS) := by + ext x A hA + rw [Kernel.comp_apply' _ _ _ hA, hU.kernel_apply posU x hA] + simp_rw [h.kernel_apply posT _ hA] + let u := indicatorVector (μ := μ) hA + have hRep := h.ae_representative u + have hRep' := (hS.kernel_ac posS x) hRep + have hIntegral := hS.kernel_integral posS x (T u) + rw [← ofReal_integral_eq_lintegral_ofReal (hIntegral.1.congr hRep') + (ae_of_all _ (h.representative_nonneg posT u (indicatorVector_nonneg hA)))] + rw [← integral_congr_ae hRep', hIntegral.2] + congr 1 + apply congrArg (fun f : C(X, ℝ) => f x) + apply hU.representative_eq + rw [hEq, mul_apply_eq_comp] + exact hS.ae_representative (T u) + +/-- If the positive operator fixes one, its kernel is Markov. -/ +theorem kernel_markov + (positive : ∀ u : X →₂[μ] ℝ, 0 ≤ᵐ[μ] u → 0 ≤ᵐ[μ] (T u : X → ℝ)) + (one : T (Lp.const 2 μ (1 : ℝ)) = Lp.const 2 μ (1 : ℝ)) : + IsMarkovKernel (h.kernel positive) := by + refine ⟨fun x => ⟨?_⟩⟩ + rw [h.kernel_apply positive x MeasurableSet.univ] + have hOne : h.representative (indicatorVector MeasurableSet.univ) = ContinuousMap.const X 1 := by + apply h.representative_eq + rw [indicatorVector, indicatorConstLp_univ, one] + exact Lp.coeFn_const 2 μ 1 + simp [hOne] + +/-- If the operator preserves the reference integral, the kernel preserves the reference measure. -/ +theorem kernel_invariant + (positive : ∀ u : X →₂[μ] ℝ, 0 ≤ᵐ[μ] u → 0 ≤ᵐ[μ] (T u : X → ℝ)) + (invariant : ∀ u : X →₂[μ] ℝ, (∫ y, T u y ∂μ) = ∫ y, u y ∂μ) : + μ.bind (h.kernel positive) = μ := by + ext A hA + rw [Measure.bind_apply hA (Kernel.aemeasurable _)] + simp_rw [h.kernel_apply positive _ hA] + let u := indicatorVector (μ := μ) hA + have hRep := h.ae_representative u + have hi : Integrable (h.representative u) μ := ((Lp.memLp (T u)).integrable one_le_two).congr hRep + rw [← ofReal_integral_eq_lintegral_ofReal hi + (ae_of_all _ (h.representative_nonneg positive u (indicatorVector_nonneg hA)))] + rw [← integral_congr_ae hRep, invariant, integral_congr_ae (ae_indicatorVector hA)] + rw [integral_indicator_const _ hA] + simp [Measure.real, ENNReal.ofReal_toReal (measure_ne_top μ A)] + +end CutoffRigidity.L2Kernel.HasContinuousRepresentatives diff --git a/LeanPool/CutoffRigidity/Imports.lean b/LeanPool/CutoffRigidity/Imports.lean index afd7338175..bcfd76d803 100644 --- a/LeanPool/CutoffRigidity/Imports.lean +++ b/LeanPool/CutoffRigidity/Imports.lean @@ -52,10 +52,12 @@ public import LeanPool.CutoffRigidity.EuclideanMollificationStrongLimit public import LeanPool.CutoffRigidity.EuclideanMollifiedCompactness public import LeanPool.CutoffRigidity.EuclideanWeakHessianEstimates public import LeanPool.CutoffRigidity.FirstEigenspaceAffineCoordinates +public import LeanPool.CutoffRigidity.Friedrichs.ContinuousRepresentatives public import LeanPool.CutoffRigidity.Friedrichs.DiffusionConservativity public import LeanPool.CutoffRigidity.Friedrichs.DiffusionForm public import LeanPool.CutoffRigidity.Friedrichs.DiffusionPositivity public import LeanPool.CutoffRigidity.Friedrichs.DiffusionTestFunctions +public import LeanPool.CutoffRigidity.Friedrichs.DiffusionTransitionKernel public import LeanPool.CutoffRigidity.Friedrichs.EnergyForm public import LeanPool.CutoffRigidity.Friedrichs.FormContraction public import LeanPool.CutoffRigidity.Friedrichs.FormSublevels @@ -64,6 +66,7 @@ public import LeanPool.CutoffRigidity.Friedrichs.PositiveContraction public import LeanPool.CutoffRigidity.Friedrichs.Resolvent public import LeanPool.CutoffRigidity.Friedrichs.SemigroupDerivative public import LeanPool.CutoffRigidity.Friedrichs.SemigroupPowers +public import LeanPool.CutoffRigidity.Friedrichs.TransitionKernel public import LeanPool.CutoffRigidity.GaussianTransport.LowerBound public import LeanPool.CutoffRigidity.GaussianTransport.MomentComparison public import LeanPool.CutoffRigidity.GaussianTransport.Projection diff --git a/LeanPool/projects/cutoff-rigidity.yaml b/LeanPool/projects/cutoff-rigidity.yaml index 14a22df150..f6d2c09690 100644 --- a/LeanPool/projects/cutoff-rigidity.yaml +++ b/LeanPool/projects/cutoff-rigidity.yaml @@ -20,7 +20,9 @@ summary: >- Its Friedrichs resolvent and semigroup preserve almost-everywhere nonnegativity. On a complete connected manifold the constant one has zero closed energy. The semigroup fixes it, preserves functions between zero and one almost - everywhere, and preserves the integral against the weighted volume. + everywhere, and preserves the integral against the weighted volume. Given + continuous representatives of the positive-time L² outputs, the semigroup + is represented by Markov kernels that compose and preserve weighted volume. branch: probability theory entry_module: LeanPool.CutoffRigidity authors: @@ -59,6 +61,11 @@ main_declarations: - CutoffRigidity.Riemann.Diff.diffusion_semigroup_one - CutoffRigidity.Riemann.Diff.diffusion_semigroup_mapsTo_zero_one - 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 main_results: - declaration: CutoffRigidity.normalized_convexInteraction_theorem informal: >- @@ -155,6 +162,24 @@ main_results: informal: >- On the same complete connected manifold, integration against the finite weighted volume is invariant under the semigroup on every L² vector. +- declaration: CutoffRigidity.L2Kernel.HasContinuousRepresentatives.locally_bounded + informal: >- + For a bounded L² operator with continuous range representatives, on a + locally compact Hausdorff space with full-support measure, the supremum + on any compact set of an output representative is bounded by a constant + times the norm of the input. +- declaration: CutoffRigidity.Riemann.Diff.diffusionTransitionKernel_integral + informal: >- + Assuming continuous representatives at positive times, integration against + the weighted Friedrichs transition recovers the continuous L² output. +- declaration: CutoffRigidity.Riemann.Diff.diffusionTransitionKernel_add + informal: Under the same regularity input, the transition kernels compose in time. +- declaration: CutoffRigidity.Riemann.Diff.diffusionTransitionKernel_markov + informal: >- + On a complete connected manifold, these kernels have probability + transitions at every nonnegative time. +- declaration: CutoffRigidity.Riemann.Diff.diffusionTransitionKernel_invariant + informal: Weighted volume is invariant under these kernels on a complete connected manifold. tags: - curvature - spectral-gap