diff --git a/LeanPool/CutoffRigidity.lean b/LeanPool/CutoffRigidity.lean index 8395d16b1e..2bfaeb8620 100644 --- a/LeanPool/CutoffRigidity.lean +++ b/LeanPool/CutoffRigidity.lean @@ -3,12 +3,12 @@ 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.DiffusionPositivity public import LeanPool.CutoffRigidity.GaussianTransport.RiemannianLowerBound public import LeanPool.CutoffRigidity.RiemannianSplitting.Extra.SplitPotential @@ -28,7 +28,10 @@ Main declarations: `CutoffRigidity.normalized_convexInteraction_theorem`, `CutoffRigidity.Riemann.Diff.FormData.tendsto_euler`, `CutoffRigidity.Riemann.Diff.FormData.semigroup_integral_D`, `CutoffRigidity.Riemann.Diff.FormData.contraction_energy`, - `CutoffRigidity.Riemann.Diff.FormData.resolvent_fixed_of_comparison` + `CutoffRigidity.Riemann.Diff.FormData.resolvent_fixed_of_comparison`, + `CutoffRigidity.Riemann.Diff.diffFormData`, + `CutoffRigidity.Riemann.Diff.diffusion_resolvent_nonneg`, + `CutoffRigidity.Riemann.Diff.diffusion_semigroup_nonneg` Tags: curvature, spectral-gap, gaussian-factorization, gibbs-measures MSC: 60J60, 47D07, 53C21 -/ diff --git a/LeanPool/CutoffRigidity/Friedrichs/DiffusionForm.lean b/LeanPool/CutoffRigidity/Friedrichs/DiffusionForm.lean new file mode 100644 index 0000000000..4dee717a31 --- /dev/null +++ b/LeanPool/CutoffRigidity/Friedrichs/DiffusionForm.lean @@ -0,0 +1,95 @@ +/- +Copyright (c) 2026 Djalil Chafaï. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: Djalil Chafaï +-/ + +-- Modified for Lean Pool. + +module + +public import LeanPool.CutoffRigidity.Friedrichs.DiffusionTestFunctions +public import LeanPool.CutoffRigidity.Friedrichs.EnergyForm +import LeanPool.CutoffRigidity.RiemannianSplitting.Riemann.WeightedGradientRegularity + +/-! # The test-core energy form of the weighted diffusion generator -/ + +@[expose] public section + +open Bundle Filter MeasureTheory Set +open scoped ContDiff ENNReal InnerProductSpace Manifold NNReal Topology + +namespace CutoffRigidity.Riemann.Diff + +open CutCur + +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] + +omit [MeasurableSpace F] [BorelSpace F] in +/-- The gradient pairing of smooth compactly supported test functions is integrable. -/ +theorem integrable_carre {μ : Measure M} [IsFiniteMeasureOnCompacts μ] (a b : testSub F M) : + Integrable (fun x => carre F (a : M → ℝ) (b : M → ℝ) x) μ := by + have hs : MSmooth F (carre F (a : M → ℝ) (b : M → ℝ)) := WReg.msmooth_carre a.2.1 b.2.1 + exact hs.continuous.integrable_of_hasCompactSupport (hasCompactSupport_carre F _ a.2.2) + +variable {V : M → ℝ} (hV : MSmooth F V) {μ : Measure M} [IsFiniteMeasure μ] + (hμ : IsWeightedVolume F μ V) + +/-- The operator `A = -𝓛` on `D = C_c^∞(M) ⊂ L²(μ)`. -/ +noncomputable def diffA : (LinearMap.range (testToL2 F μ)) →ₗ[ℝ] (M →₂[μ] ℝ) := + (-((testToL2 F μ).comp (testGen F hV))).comp + (LinearEquiv.ofInjective (testToL2 F μ) (testToL2_injective F hV hμ)).symm.toLinearMap + +theorem diffA_toL2 (a : testSub F M) : + diffA F hV hμ ⟨testToL2 F μ a, a, rfl⟩ = -(testToL2 F μ (testGen F hV a)) := by + have : (⟨testToL2 F μ a, a, rfl⟩ : LinearMap.range (testToL2 F μ)) = + LinearEquiv.ofInjective (testToL2 F μ) (testToL2_injective F hV hμ) a := rfl + simp only [diffA, LinearMap.comp_apply, LinearEquiv.coe_coe, this, LinearEquiv.symm_apply_apply, + LinearMap.neg_apply] + +omit [MeasurableSpace F] [BorelSpace F] [MeasurableSpace M] [BorelSpace M] + [IsContMDiffRiemannianBundle 𝓘(ℝ, F) ∞ F (fun x : M ↦ TangentSpace 𝓘(ℝ, F) x)] in +private theorem carre_comm (f g : M → ℝ) (x : M) : carre F f g x = carre F g f x := by + simp only [carre, real_inner_comm] + +private theorem diffA_pairing (a b : testSub F M) : + inner ℝ (diffA F hV hμ ⟨testToL2 F μ a, a, rfl⟩) (testToL2 F μ b) = + ∫ x, carre F (a : M → ℝ) (b : M → ℝ) x ∂μ := by + rw [diffA_toL2, real_inner_comm, inner_testGen F hV hμ b a] + exact integral_congr_ae (Eventually.of_forall fun x ↦ carre_comm F _ _ x) + +/-- Form data of `-𝓛` on `L²(μ)`, with dense symmetric nonnegative core `C_c^∞(M)`. -/ +noncomputable def diffFormData : FormData (M →₂[μ] ℝ) where + D := LinearMap.range (testToL2 F μ) + dense := by + let : SigmaCompactSpace M := sigmaCompactSpace_of_finite_weightedVolume F hV hμ + exact dense_test F + A := diffA F hV hμ + symm := by + rintro ⟨_, a, rfl⟩ ⟨_, b, rfl⟩ + change inner ℝ (diffA F hV hμ ⟨testToL2 F μ a, a, rfl⟩) (testToL2 F μ b) = + inner ℝ (testToL2 F μ a) (diffA F hV hμ ⟨testToL2 F μ b, b, rfl⟩) + calc + _ = ∫ x, carre F (a : M → ℝ) (b : M → ℝ) x ∂μ := diffA_pairing F hV hμ a b + _ = ∫ x, carre F (b : M → ℝ) (a : M → ℝ) x ∂μ := + integral_congr_ae (Eventually.of_forall fun x ↦ carre_comm F _ _ x) + _ = _ := (diffA_pairing F hV hμ b a).symm.trans (real_inner_comm _ _) + nonneg := by + rintro ⟨_, a, rfl⟩ + change 0 ≤ inner ℝ (diffA F hV hμ ⟨testToL2 F μ a, a, rfl⟩) (testToL2 F μ a) + rw [diffA_pairing F hV hμ a a] + exact integral_nonneg fun x ↦ carre_nonneg F (a : M → ℝ) x + +/-- The core energy of the weighted diffusion generator is the integrated gradient pairing. -/ +theorem en_diffFormData (a b : testSub F M) : + let S := diffFormData F hV hμ + inner ℝ (S.opA ⟨testToL2 F μ a, a, rfl⟩) (testToL2 F μ b) = + ∫ x, carre F (a : M → ℝ) (b : M → ℝ) x ∂μ := + diffA_pairing F hV hμ a b + +end CutoffRigidity.Riemann.Diff diff --git a/LeanPool/CutoffRigidity/Friedrichs/DiffusionPositivity.lean b/LeanPool/CutoffRigidity/Friedrichs/DiffusionPositivity.lean new file mode 100644 index 0000000000..d17f94ebda --- /dev/null +++ b/LeanPool/CutoffRigidity/Friedrichs/DiffusionPositivity.lean @@ -0,0 +1,247 @@ +/- +Copyright (c) 2026 Djalil Chafaï. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: Djalil Chafaï +-/ + +-- Modified for Lean Pool. + +module + +public import LeanPool.CutoffRigidity.Friedrichs.DiffusionForm +public import LeanPool.CutoffRigidity.Friedrichs.FormContraction +import TauCeti.Analysis.SpecialFunctions.SmoothTransition +import TauCeti.Geometry.Manifold.Riemannian.Gradient.ChainRule +import TauCeti.MeasureTheory.Function.Lp.Order + +/-! # Smooth contractions and positivity of the weighted diffusion resolvent -/ + +@[expose] public section + +open Bundle Filter MeasureTheory Set +open scoped ContDiff ENNReal InnerProductSpace Manifold NNReal Topology + +namespace CutoffRigidity.Riemann.Diff + +open CutCur + +/-- A smooth nondecreasing `1`-Lipschitz function `τ` with `τ 0 = 0`, `τ s = s` for `s ≥ 0` and +`τ s > s` for `s < 0`. (Then `τ s - s` is a nonnegative smooth approximation of the negative part +which is strictly positive on `(-∞, 0)`.) -/ +theorem exists_posContraction : ∃ τ : ℝ → ℝ, ContDiff ℝ ∞ τ ∧ τ 0 = 0 ∧ + (∀ s, |deriv τ s| ≤ 1) ∧ (∀ s, 0 ≤ s → τ s = s) ∧ (∀ s, s ≤ τ s) ∧ + ∀ s, s < 0 → s < τ s := by + obtain ⟨bound, hbound⟩ := Real.smoothTransition.exists_forall_norm_deriv_le + let B := max bound 1 + have hBpos : 0 < B := zero_lt_one.trans_le (le_max_right _ _) + have hB (s : ℝ) : |deriv Real.smoothTransition s| ≤ B := + (Real.norm_eq_abs _ ▸ hbound s).trans (le_max_left _ _) + set τ : ℝ → ℝ := fun s => s + (1 - Real.smoothTransition (1 + s)) / B with hτ + have hsm : ContDiff ℝ ∞ τ := by + refine contDiff_id.add ?_ + exact (contDiff_const.sub (Real.smoothTransition.contDiff.comp + (contDiff_const.add contDiff_id))).div_const B + have hder : ∀ s, deriv τ s = 1 - deriv Real.smoothTransition (1 + s) / B := by + intro s + have h1 : HasDerivAt (fun s : ℝ => 1 + s) 1 s := (hasDerivAt_id s).const_add 1 + have transition := (Real.smoothTransition.contDiff (n := ⊤)).differentiable (by simp) + have h2 := (transition _).hasDerivAt.comp s h1 + have h3 : HasDerivAt (fun s : ℝ => s + (1 - Real.smoothTransition (1 + s)) / B) + (1 + (-(deriv Real.smoothTransition (1 + s) * 1)) / B) s := + (hasDerivAt_id s).add ((h2.const_sub 1).div_const B) + simp only [hτ] + rw [h3.deriv] + ring + have hd0 (s : ℝ) : 0 ≤ deriv Real.smoothTransition s := + Real.smoothTransition.monotone.deriv_nonneg + have hdB : ∀ s, deriv Real.smoothTransition s ≤ B := fun s => (le_abs_self _).trans (hB s) + refine ⟨τ, hsm, ?_, ?_, ?_, ?_, ?_⟩ + · simp [hτ, Real.smoothTransition.one] + · intro s + rw [hder s] + have h1 : deriv Real.smoothTransition (1 + s) / B ≤ 1 := by + rw [div_le_one hBpos]; exact hdB _ + have h2 : 0 ≤ deriv Real.smoothTransition (1 + s) / B := div_nonneg (hd0 _) hBpos.le + rw [abs_of_nonneg (by linarith)] + linarith + · intro s hs + simp [hτ, Real.smoothTransition.one_of_one_le (by linarith : 1 ≤ 1 + s)] + · intro s + have := Real.smoothTransition.le_one (1 + s) + simp only [hτ] + have : 0 ≤ (1 - Real.smoothTransition (1 + s)) / B := div_nonneg (by linarith) hBpos.le + linarith + · intro s hs + have := Real.smoothTransition.lt_one_of_lt_one (x := 1 + s) (by linarith) + simp only [hτ] + have : 0 < (1 - Real.smoothTransition (1 + s)) / B := div_pos (by linarith) hBpos + linarith + +section Lift +variable {M : Type} [MeasurableSpace M] + +theorem lipschitzWith_of_deriv_le {τ : ℝ → ℝ} (hτ : ContDiff ℝ ∞ τ) (h1 : ∀ s, |deriv τ s| ≤ 1) : + LipschitzWith 1 τ := by + apply lipschitzWith_of_nnNorm_deriv_le (hτ.differentiable (by simp)) + intro s + have := h1 s + rw [← NNReal.coe_le_coe] + simpa using this + +/-- The action of a smooth normal contraction on `L²(μ)`. -/ +noncomputable def liftLp {μ : Measure M} {τ : ℝ → ℝ} (hτ : ContDiff ℝ ∞ τ) (h0 : τ 0 = 0) + (h1 : ∀ s, |deriv τ s| ≤ 1) : (M →₂[μ] ℝ) → (M →₂[μ] ℝ) := + (lipschitzWith_of_deriv_le hτ h1).compLp h0 + +theorem lipschitzWith_liftLp {μ : Measure M} {τ : ℝ → ℝ} + (hτ : ContDiff ℝ ∞ τ) (h0 : τ 0 = 0) (h1 : ∀ s, |deriv τ s| ≤ 1) : + LipschitzWith 1 (liftLp (μ := μ) hτ h0 h1) := + (lipschitzWith_of_deriv_le hτ h1).lipschitzWith_compLp h0 + +theorem liftLp_norm_le {μ : Measure M} {τ : ℝ → ℝ} (hτ : ContDiff ℝ ∞ τ) (h0 : τ 0 = 0) + (h1 : ∀ s, |deriv τ s| ≤ 1) (u : M →₂[μ] ℝ) : ‖liftLp hτ h0 h1 u‖ ≤ ‖u‖ := by + have := (lipschitzWith_of_deriv_le hτ h1).norm_compLp_le h0 u + unfold liftLp + simpa using this + +theorem coeFn_liftLp {μ : Measure M} {τ : ℝ → ℝ} (hτ : ContDiff ℝ ∞ τ) (h0 : τ 0 = 0) + (h1 : ∀ s, |deriv τ s| ≤ 1) (u : M →₂[μ] ℝ) : + (liftLp hτ h0 h1 u : M → ℝ) =ᵐ[μ] fun x => τ (u x) := + (lipschitzWith_of_deriv_le hτ h1).coeFn_compLp h0 u + + +end Lift + +section Concrete + +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] + +variable {μ : Measure M} [IsFiniteMeasure μ] + +omit [MeasurableSpace F] [BorelSpace F] [MeasurableSpace M] [BorelSpace M] + [IsContMDiffRiemannianBundle 𝓘(ℝ, F) ∞ F (fun x : M ↦ TangentSpace 𝓘(ℝ, F) x)] in +/-- Chain rule for the gradient with a smooth real function. -/ +private theorem mgrad_comp_real {θ : ℝ → ℝ} (hθ : ContDiff ℝ ∞ θ) {f : M → ℝ} + (hf : MSmooth F f) (x : M) : + mgrad F (θ ∘ f) x = deriv θ (f x) • mgrad F f x := by + simp only [mgrad_eq_mgradient] + exact TauCeti.Manifold.mgradient_comp_deriv (hθ.differentiable (by simp) _) + ((hf x).mdifferentiableAt (by simp)) + +omit [MeasurableSpace F] [BorelSpace F] [MeasurableSpace M] [BorelSpace M] + [IsContMDiffRiemannianBundle 𝓘(ℝ, F) ∞ F (fun x : M ↦ TangentSpace 𝓘(ℝ, F) x)] in +private theorem carre_comp_self {θ : ℝ → ℝ} (hθ : ContDiff ℝ ∞ θ) {f : M → ℝ} (hf : MSmooth F f) + (x : M) : carre F (θ ∘ f) (θ ∘ f) x = deriv θ (f x) ^ 2 * carre F f f x := by + simp only [carre, mgrad_comp_real F hθ hf, real_inner_smul_left, real_inner_smul_right] + ring + +omit [MeasurableSpace F] [BorelSpace F] [MeasurableSpace M] [BorelSpace M] + [IsContMDiffRiemannianBundle 𝓘(ℝ, F) ∞ F (fun x : M ↦ TangentSpace 𝓘(ℝ, F) x)] in +/-- **Stability of `𝒟` under smooth normal contractions**: `θ ∘ f ∈ 𝒟` and +`Γ(θ∘f) = θ'(f)² Γ(f) ≤ Γ(f)`. -/ +theorem normalContraction_stable (θ : ℝ → ℝ) (hθ : ContDiff ℝ ∞ θ) (h0 : θ 0 = 0) + (h1 : ∀ s, |deriv θ s| ≤ 1) (f : M → ℝ) (hf : f ∈ testSub F M) : + θ ∘ f ∈ testSub F M ∧ ∀ x, carre F (θ ∘ f) (θ ∘ f) x ≤ carre F f f x := by + refine ⟨⟨hθ.contMDiff.comp hf.1, hf.2.comp_left h0⟩, fun x => ?_⟩ + rw [carre_comp_self F hθ hf.1] + have h2 : deriv θ (f x) ^ 2 ≤ 1 := by + simpa only [pow_two] using abs_le_one_iff_mul_self_le_one.mp (h1 (f x)) + exact mul_le_of_le_one_left (carre_nonneg F f x) h2 + +/-- The test function `τ ∘ a`. -/ +def compTest {τ : ℝ → ℝ} (hτ : ContDiff ℝ ∞ τ) (h0 : τ 0 = 0) (a : testSub F M) : testSub F M := + ⟨τ ∘ (a : M → ℝ), ⟨hτ.contMDiff.comp a.2.1, a.2.2.comp_left h0⟩⟩ + +omit [FiniteDimensional ℝ F] [MeasurableSpace F] [BorelSpace F] [IsManifold 𝓘(ℝ, F) ∞ M] + [RiemannianBundle (fun x : M ↦ TangentSpace 𝓘(ℝ, F) x)] + [IsContMDiffRiemannianBundle 𝓘(ℝ, F) ∞ F (fun x : M ↦ TangentSpace 𝓘(ℝ, F) x)] in +private theorem liftLp_testToL2 {τ : ℝ → ℝ} (hτ : ContDiff ℝ ∞ τ) (h0 : τ 0 = 0) + (h1 : ∀ s, |deriv τ s| ≤ 1) (a : testSub F M) : + liftLp (μ := μ) hτ h0 h1 (testToL2 F μ a) = testToL2 F μ (compTest F hτ h0 a) := by + apply Lp.ext + filter_upwards [coeFn_liftLp hτ h0 h1 (testToL2 F μ a), coeFn_testToL2 F μ a, + coeFn_testToL2 F μ (compTest F hτ h0 a)] with x h1 h2 h3 + rw [h1, h3, h2] + rfl + +variable {V : M → ℝ} (hV : MSmooth F V) + (hμ : IsWeightedVolume F μ V) + +theorem liftLp_mem_D {τ : ℝ → ℝ} (hτ : ContDiff ℝ ∞ τ) (h0 : τ 0 = 0) + (h1 : ∀ s, |deriv τ s| ≤ 1) (f : (diffFormData F hV hμ).Dom) : + ∃ g : (diffFormData F hV hμ).Dom, + (diffFormData F hV hμ).emb g = liftLp hτ h0 h1 ((diffFormData F hV hμ).emb f) := by + change (diffFormData F hV hμ).D at f + obtain ⟨_, a, rfl⟩ := f + exact ⟨⟨testToL2 F μ (compTest F hτ h0 a), _, rfl⟩, (liftLp_testToL2 F hτ h0 h1 a).symm⟩ + +theorem liftLp_en_le {τ : ℝ → ℝ} (hτ : ContDiff ℝ ∞ τ) (h0 : τ 0 = 0) + (h1 : ∀ s, |deriv τ s| ≤ 1) (f g : (diffFormData F hV hμ).Dom) + (hg : (diffFormData F hV hμ).emb g = liftLp hτ h0 h1 ((diffFormData F hV hμ).emb f)) : + inner ℝ ((diffFormData F hV hμ).opA g) ((diffFormData F hV hμ).emb g) ≤ + inner ℝ ((diffFormData F hV hμ).opA f) ((diffFormData F hV hμ).emb f) := by + change (diffFormData F hV hμ).D at f + obtain ⟨_, a, rfl⟩ := f + have hg' : g = ⟨testToL2 F μ (compTest F hτ h0 a), _, rfl⟩ := + Subtype.ext (hg.trans (liftLp_testToL2 F hτ h0 h1 a)) + have e1 := en_diffFormData F hV hμ (compTest F hτ h0 a) (compTest F hτ h0 a) + have e2 := en_diffFormData F hV hμ a a + have e3 : ∫ x, carre F (compTest F hτ h0 a : M → ℝ) (compTest F hτ h0 a : M → ℝ) x ∂μ ≤ + ∫ x, carre F (a : M → ℝ) (a : M → ℝ) x ∂μ := by + refine integral_mono (integrable_carre F (μ := μ) (compTest F hτ h0 a) (compTest F hτ h0 a)) + (integrable_carre F (μ := μ) a a) (fun x => ?_) + have := (normalContraction_stable F τ hτ h0 h1 (a : M → ℝ) a.2).2 x + exact this + subst g + exact e1.le.trans (e3.trans e2.ge) + +/-- The Friedrichs resolvent of the nonnegative weighted diffusion operator preserves positivity. -/ +theorem diffusion_resolvent_nonneg {parameter : ℝ} (hparameter : 0 < parameter) + (g : M →₂[μ] ℝ) (hg : 0 ≤ᵐ[μ] g) : + 0 ≤ᵐ[μ] (diffFormData F hV hμ).resolvent parameter g := by + obtain ⟨τ, hτ, hzero, hderiv, _, hle, hlt⟩ := exists_posContraction + let S := diffFormData F hV hμ + let transform := liftLp (μ := μ) hτ hzero hderiv + let u := S.resolvent parameter g + have hcontinuous : Continuous transform := (lipschitzWith_liftLp hτ hzero hderiv).continuous + have hcore (f : S.Dom) : ∃ v : S.Dom, S.emb v = transform (S.emb f) ∧ + inner ℝ (S.opA v) (S.emb v) ≤ inner ℝ (S.opA f) (S.emb f) := by + obtain ⟨v, hv⟩ := liftLp_mem_D F hV hμ hτ hzero hderiv f + exact ⟨v, hv, liftLp_en_le F hV hμ hτ hzero hderiv f v hv⟩ + have hforce : 0 ≤ inner ℝ g (transform u - u) := by + rw [L2.inner_def] + apply integral_nonneg_of_ae + filter_upwards [hg, Lp.coeFn_sub (transform u) u, coeFn_liftLp hτ hzero hderiv u] + with x hx hsub hcomp + rw [hsub, Pi.sub_apply, hcomp] + exact mul_nonneg (sub_nonneg.mpr (hle (u x))) hx + have hfixed : transform u = u := + S.resolvent_fixed_of_comparison hcontinuous hcore hparameter g + (liftLp_norm_le hτ hzero hderiv u) hforce + change 0 ≤ᵐ[μ] u + filter_upwards [coeFn_liftLp hτ hzero hderiv u] with x hx + change 0 ≤ u x + change transform u x = τ (u x) at hx + rw [hfixed] at hx + exact le_of_not_gt fun hneg ↦ (hlt (u x) hneg).ne hx + +/-- Euler convergence transfers positivity from the weighted resolvents to the semigroup. -/ +theorem diffusion_semigroup_nonneg (time : ℝ≥0) (g : M →₂[μ] ℝ) (hg : 0 ≤ᵐ[μ] g) : + 0 ≤ᵐ[μ] (diffFormData F hV hμ).semigroup time g := by + let S := diffFormData F hV hμ + refine (Lp.coeFn_nonneg _).mpr + (S.semigroup_mapsTo (Ici 0) isClosed_Ici ?_ time ((Lp.coeFn_nonneg g).mp hg)) + intro parameter hparameter u hu + change 0 ≤ parameter • S.resolvent parameter u + exact smul_nonneg hparameter.le + ((Lp.coeFn_nonneg _).mp (diffusion_resolvent_nonneg F hV hμ hparameter u + ((Lp.coeFn_nonneg u).mpr hu))) + +end Concrete + +end CutoffRigidity.Riemann.Diff diff --git a/LeanPool/CutoffRigidity/Friedrichs/DiffusionTestFunctions.lean b/LeanPool/CutoffRigidity/Friedrichs/DiffusionTestFunctions.lean new file mode 100644 index 0000000000..ec940cc743 --- /dev/null +++ b/LeanPool/CutoffRigidity/Friedrichs/DiffusionTestFunctions.lean @@ -0,0 +1,192 @@ +/- +Copyright (c) 2026 Djalil Chafaï. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: Djalil Chafaï +-/ + +-- Modified for Lean Pool. + +module + +public import LeanPool.CutoffRigidity.RiemannianSplitting.Riemann.EigenLinear +public import LeanPool.CutoffRigidity.RiemannianSplitting.Riemann.WeightedIBPGlobal +public import LeanPool.CutoffRigidity.RiemannianSplitting.Riemann.WeightedSupport +import TauCeti.Geometry.Manifold.Riemannian.Gradient.Basic +import TauCeti.Geometry.Manifold.Riemannian.Laplacian +public import Mathlib.Geometry.Manifold.SmoothApprox +public import Mathlib.MeasureTheory.Function.ContinuousMapDense + +/-! # Smooth compactly supported test functions in the weighted Hilbert space -/ + +@[expose] public section + +open Bundle Filter MeasureTheory Set Manifold +open TauCeti.Manifold +open scoped ContDiff ENNReal InnerProductSpace Manifold NNReal Topology + +namespace CutoffRigidity.Riemann.Diff + +open CutCur + +variable (F : Type) [NormedAddCommGroup F] [InnerProductSpace ℝ F] + (M : Type) [EMetricSpace M] [ChartedSpace F M] + +/-- `𝒟 = C_c^∞(M)`: smooth functions with compact support. -/ +def testSub : Submodule ℝ (M → ℝ) where + carrier := {f | MSmooth F f ∧ HasCompactSupport f} + add_mem' := fun {_ _} hf hg => ⟨hf.1.add hg.1, hf.2.add hg.2⟩ + zero_mem' := ⟨contMDiff_const, HasCompactSupport.zero⟩ + smul_mem' := fun c _ hf ↦ ⟨(contMDiff_const (c := c)).mul hf.1, hf.2.smul_left⟩ + +variable {M} + +theorem mem_testSub {f : M → ℝ} : f ∈ testSub F M ↔ MSmooth F f ∧ HasCompactSupport f := Iff.rfl + +theorem testSub_continuous (f : testSub F M) : Continuous (f : M → ℝ) := f.2.1.continuous + +variable [MeasurableSpace M] [BorelSpace M] + +theorem testSub_memLp (f : testSub F M) (μ : Measure M) [IsFiniteMeasure μ] : + MemLp (f : M → ℝ) 2 μ := + (testSub_continuous F f).memLp_of_hasCompactSupport f.2.2 + +/-- The embedding `𝒟 → L²(μ)`. -/ +noncomputable def testToL2 (μ : Measure M) [IsFiniteMeasure μ] : + testSub F M →ₗ[ℝ] (M →₂[μ] ℝ) where + toFun f := (testSub_memLp F f μ).toLp (f : M → ℝ) + map_add' f g := MemLp.toLp_add (testSub_memLp F f μ) (testSub_memLp F g μ) + map_smul' c f := MemLp.toLp_const_smul c (testSub_memLp F f μ) + +theorem testToL2_apply (μ : Measure M) [IsFiniteMeasure μ] (f : testSub F M) : + testToL2 F μ f = (testSub_memLp F f μ).toLp (f : M → ℝ) := rfl + +theorem coeFn_testToL2 (μ : Measure M) [IsFiniteMeasure μ] (f : testSub F M) : + (testToL2 F μ f : M → ℝ) =ᵐ[μ] f := + MemLp.coeFn_toLp (testSub_memLp F f μ) + +section Generator + +variable [FiniteDimensional ℝ F] [IsManifold 𝓘(ℝ, F) ∞ M] + [RiemannianBundle (fun x : M ↦ TangentSpace 𝓘(ℝ, F) x)] + [IsContMDiffRiemannianBundle 𝓘(ℝ, F) ∞ F (fun x : M ↦ TangentSpace 𝓘(ℝ, F) x)] + +variable [MeasurableSpace F] [BorelSpace F] in +theorem testToL2_injective {V : M → ℝ} (hV : MSmooth F V) {μ : Measure M} [IsFiniteMeasure μ] + (hμ : IsWeightedVolume F μ V) : Function.Injective (testToL2 F μ) := by + have := isOpenPosMeasure_of_weighted F hV hμ + intro f g hfg + apply Subtype.ext + have h1 := coeFn_testToL2 F μ f + have h2 := coeFn_testToL2 F μ g + rw [hfg] at h1 + exact (testSub_continuous F f).ae_eq_iff_eq μ (testSub_continuous F g) |>.1 + (h1.symm.trans h2) + +omit [MeasurableSpace M] [BorelSpace M] in +/-- The weighted generator is local, so it preserves compact support. -/ +theorem hasCompactSupport_mgenerator (V : M → ℝ) {f : M → ℝ} + (hfc : HasCompactSupport f) : HasCompactSupport (mgenerator F V f) := by + have laplacian : HasCompactSupport (mlaplacian F f) := by + rw [mlaplacian_eq_laplaceBeltrami] + exact hfc.laplaceBeltrami 𝓘(ℝ, F) + have drift : HasCompactSupport (fun x ↦ inner ℝ (mgrad F V x) (mgrad F f x)) := by + simpa only [← mgrad_eq_mgradient, real_inner_comm] using + hfc.inner_mgradient (I := 𝓘(ℝ, F)) (mgrad F V) + exact laplacian.sub drift + +omit [MeasurableSpace M] [BorelSpace M] in +/-- `𝓛` as a linear endomorphism of `𝒟`. -/ +noncomputable def testGen {V : M → ℝ} (hV : MSmooth F V) : testSub F M →ₗ[ℝ] testSub F M where + toFun f := ⟨fun x => mgenerator F V (f : M → ℝ) x, WReg.msmooth_mgenerator F hV f.2.1, + hasCompactSupport_mgenerator F V f.2.2⟩ + map_add' f g := Subtype.ext (funext fun x => mgenerator_add F f.2.1 g.2.1 x) + map_smul' c f := Subtype.ext (funext fun x => mgenerator_const_mul F c f.2.1 x) + +omit [MeasurableSpace M] [BorelSpace M] in +theorem testGen_apply {V : M → ℝ} (hV : MSmooth F V) (f : testSub F M) (x : M) : + (testGen F hV f : M → ℝ) x = mgenerator F V (f : M → ℝ) x := rfl + +end Generator + +/-- The `L²` inner product of test functions is the integral of their product. -/ +theorem inner_testToL2 (μ : Measure M) [IsFiniteMeasure μ] (f g : testSub F M) : + inner ℝ (testToL2 F μ f) (testToL2 F μ g) = ∫ x, (f : M → ℝ) x * (g : M → ℝ) x ∂μ := by + rw [MeasureTheory.L2.inner_def] + refine integral_congr_ae ?_ + filter_upwards [coeFn_testToL2 F μ f, coeFn_testToL2 F μ g] with x h1 h2 + rw [h1, h2] + simp [mul_comm] + +section Green + +variable [FiniteDimensional ℝ F] [MeasurableSpace F] [BorelSpace F] [IsManifold 𝓘(ℝ, F) ∞ M] + [RiemannianBundle (fun x : M ↦ TangentSpace 𝓘(ℝ, F) x)] + [IsContMDiffRiemannianBundle 𝓘(ℝ, F) ∞ F (fun x : M ↦ TangentSpace 𝓘(ℝ, F) x)] + +/-- **Green's formula on test functions**: `⟪f, -𝓛g⟫ = ∫ Γ(f,g) dμ`. -/ +theorem inner_testGen {V : M → ℝ} (hV : MSmooth F V) {μ : Measure M} [IsFiniteMeasure μ] + (hμ : IsWeightedVolume F μ V) (f g : testSub F M) : + inner ℝ (testToL2 F μ f) (-(testToL2 F μ (testGen F hV g))) = + ∫ x, carre F (f : M → ℝ) (g : M → ℝ) x ∂μ := by + rw [inner_neg_right, inner_testToL2] + have := weightedIBP_of_isWeightedVolume F hV hμ (f : M → ℝ) (g : M → ℝ) f.2.1 g.2.1 f.2.2 + rw [this] + rfl + +end Green + +variable [FiniteDimensional ℝ F] [IsManifold 𝓘(ℝ, F) ∞ M] + +omit [MeasurableSpace M] [BorelSpace M] in +/-- A continuous compactly supported function can be uniformly approximated by test functions. -/ +theorem exists_test_approx [SigmaCompactSpace M] {g : M → ℝ} + (hg : Continuous g) (hgc : HasCompactSupport g) {δ : ℝ} (hδ : 0 < δ) : + ∃ h : testSub F M, ∀ x, |(h : M → ℝ) x - g x| < δ := by + obtain ⟨h, hh1, hh2⟩ := hg.exists_contMDiff_approx (I := 𝓘(ℝ, F)) (n := ⊤) + (ε := fun _ => δ) continuous_const (fun _ => hδ) + refine ⟨⟨⇑h, h.contMDiff, ?_⟩, fun x => by simpa [Real.dist_eq] using hh1 x⟩ + refine hgc.mono' ?_ + exact hh2.trans subset_closure + +variable [SigmaCompactSpace M] + +/-- **Density of test functions in `L²(μ)`** (`μ` finite). -/ +theorem dense_test {μ : Measure M} [IsFiniteMeasure μ] : DenseRange (testToL2 F μ) := by + have : LocallyCompactSpace M := ChartedSpace.locallyCompactSpace F M + have : μ.Regular := inferInstance + rw [Metric.denseRange_iff] + intro u r hr + have hu : MemLp (u : M → ℝ) 2 μ := Lp.memLp u + obtain ⟨g, hgCompact, hgNear, hgContinuous, hgMem⟩ := + hu.exists_hasCompactSupport_eLpNorm_sub_le + (p := 2) (by norm_num) (ε := ENNReal.ofReal (r / 4)) (by positivity) + let gLp := hgMem.toLp g + have nearContinuous : dist u gLp ≤ r / 4 := by + rw [Lp.dist_edist, ← Lp.toLp_coeFn u hu] + change (edist (hu.toLp (u : M → ℝ)) (hgMem.toLp g)).toReal ≤ r / 4 + rw [Lp.edist_toLp_toLp, ← ENNReal.toReal_ofReal (by positivity : 0 ≤ r / 4)] + exact ENNReal.toReal_mono ENNReal.ofReal_ne_top hgNear + let mass : ℝ := ↑(measureUnivNNReal μ ^ (2 : ℝ≥0∞).toReal⁻¹) + have massNonneg : 0 ≤ mass := NNReal.coe_nonneg _ + have massPlusPos : 0 < mass + 1 := add_pos_of_nonneg_of_pos massNonneg zero_lt_one + let δ := (r / 4) / (mass + 1) + have δPos : 0 < δ := div_pos (by positivity) massPlusPos + obtain ⟨h, hh⟩ := exists_test_approx F hgContinuous hgCompact δPos + have nearSmooth : dist gLp (testToL2 F μ h) ≤ r / 4 := by + rw [dist_eq_norm] + have pointwise : ∀ᵐ x ∂μ, ‖(gLp - testToL2 F μ h) x‖ ≤ δ := by + filter_upwards [Lp.coeFn_sub gLp (testToL2 F μ h), MemLp.coeFn_toLp hgMem, + coeFn_testToL2 F μ h] with x hSub hg hSmooth + rw [hSub, Pi.sub_apply, hg, hSmooth, Real.norm_eq_abs, abs_sub_comm] + exact (hh x).le + calc + _ ≤ mass * δ := Lp.norm_le_of_ae_bound δPos.le pointwise + _ ≤ (mass + 1) * δ := + mul_le_mul_of_nonneg_right (le_add_of_nonneg_right zero_le_one) δPos.le + _ = r / 4 := mul_div_cancel₀ _ massPlusPos.ne' + refine ⟨h, ?_⟩ + have bound := (dist_triangle u gLp (testToL2 F μ h)).trans + (add_le_add nearContinuous nearSmooth) + linarith only [bound, hr] + +end CutoffRigidity.Riemann.Diff diff --git a/LeanPool/CutoffRigidity/Imports.lean b/LeanPool/CutoffRigidity/Imports.lean index c789843d79..3900406820 100644 --- a/LeanPool/CutoffRigidity/Imports.lean +++ b/LeanPool/CutoffRigidity/Imports.lean @@ -52,6 +52,9 @@ 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.DiffusionForm +public import LeanPool.CutoffRigidity.Friedrichs.DiffusionPositivity +public import LeanPool.CutoffRigidity.Friedrichs.DiffusionTestFunctions public import LeanPool.CutoffRigidity.Friedrichs.EnergyForm public import LeanPool.CutoffRigidity.Friedrichs.FormContraction public import LeanPool.CutoffRigidity.Friedrichs.FormSublevels diff --git a/LeanPool/projects/cutoff-rigidity.yaml b/LeanPool/projects/cutoff-rigidity.yaml index a4adfabec8..58b751ac1a 100644 --- a/LeanPool/projects/cutoff-rigidity.yaml +++ b/LeanPool/projects/cutoff-rigidity.yaml @@ -14,7 +14,10 @@ summary: >- Friedrichs resolvent and its strongly continuous contraction semigroup. The closed energy inherits energy-decreasing maps from the operator core. A variational comparison criterion gives fixed points of these maps on - resolvent vectors. + resolvent vectors. On a smooth weighted Riemannian manifold with finite + weighted volume, the negative diffusion generator on smooth compactly + supported functions has a symmetric nonnegative dense core in L². + Its Friedrichs resolvent and semigroup preserve almost-everywhere nonnegativity. branch: probability theory entry_module: LeanPool.CutoffRigidity authors: @@ -45,6 +48,9 @@ main_declarations: - CutoffRigidity.Riemann.Diff.FormData.semigroup_integral_D - CutoffRigidity.Riemann.Diff.FormData.contraction_energy - CutoffRigidity.Riemann.Diff.FormData.resolvent_fixed_of_comparison +- CutoffRigidity.Riemann.Diff.diffFormData +- CutoffRigidity.Riemann.Diff.diffusion_resolvent_nonneg +- CutoffRigidity.Riemann.Diff.diffusion_semigroup_nonneg main_results: - declaration: CutoffRigidity.normalized_convexInteraction_theorem informal: >- @@ -106,6 +112,20 @@ main_results: If such a map does not increase the norm of a Friedrichs resolvent vector and the forcing term has nonnegative pairing with its displacement, the map fixes that vector. +- declaration: CutoffRigidity.Riemann.Diff.diffFormData + informal: >- + The negative weighted diffusion generator on the smooth compactly supported + core is densely defined, symmetric and nonnegative in L² of the finite + weighted measure. Its core energy is the integrated gradient pairing. +- declaration: CutoffRigidity.Riemann.Diff.diffusion_resolvent_nonneg + informal: >- + For every positive resolvent parameter, the Friedrichs resolvent of + the weighted diffusion generator sends nonnegative L² functions to + nonnegative L² functions, up to almost-everywhere equality. +- declaration: CutoffRigidity.Riemann.Diff.diffusion_semigroup_nonneg + informal: >- + At every nonnegative time, the Friedrichs semigroup for the same + weighted diffusion generator preserves almost-everywhere nonnegativity. tags: - curvature - spectral-gap