diff --git a/lean/OAI/Geometry/RCD/Sobolev/BoundedPositiveTail.lean b/lean/OAI/Geometry/RCD/Sobolev/BoundedPositiveTail.lean new file mode 100644 index 0000000000000000000000000000000000000000..003a2fa4d6d7cb9adca49ea57d433bcf11df4edc --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/BoundedPositiveTail.lean @@ -0,0 +1,39 @@ +import OAI.Geometry.RCD.Sobolev.PositiveEnergyExcess + +namespace OAI + +/-! # A bounded L1 error controls the positive L2 tail -/ + +open Set MeasureTheory +noncomputable section +namespace RegularPointCoordinates + +theorem bounded_positive_tail_pointwise {a B : ℝ} (hB : 0 ≤ B) (ha : a ≤ B) : + (max (a-1) 0)^2 ≤ B*|a-1| := by + by_cases h : a ≤ 1 + · rw [max_eq_right (by linarith)] + simpa using mul_nonneg hB (abs_nonneg (a-1)) + · rw [max_eq_left (by linarith), abs_of_nonneg (by linarith)] + nlinarith + +theorem bounded_positive_tail_integral {X : Type*} [MeasurableSpace X] + (μ : Measure X) (S : Set X) {f : X → ℝ} {B : ℝ} + (hB : 0 ≤ B) (hf : AEStronglyMeasurable f (μ.restrict S)) + (hi : IntegrableOn (fun x => |f x-1|) S μ) + (hb : ∀ᵐ x ∂μ.restrict S, f x ≤ B) : + (∫ x in S, (max (f x-1) 0)^2 ∂μ) ≤ B*(∫ x in S, |f x-1| ∂μ) := by + have hmeas : AEStronglyMeasurable (fun x => (max (f x-1) 0)^2) (μ.restrict S) := by + exact (((hf.sub aestronglyMeasurable_const).sup aestronglyMeasurable_const).pow 2) + have hdom := hb.mono fun x hx => bounded_positive_tail_pointwise hB hx + have hint : IntegrableOn (fun x => (max (f x-1) 0)^2) S μ := + (hi.const_mul B).mono' hmeas (hdom.mono fun x hx => by + simpa only [Real.norm_eq_abs, abs_sq] using hx) + calc + _ ≤ ∫ x in S, B*|f x-1| ∂μ := integral_mono_ae hint (hi.const_mul B) hdom + _ = _ := integral_const_mul _ _ + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/BoundedPowerPairContinuity.lean b/lean/OAI/Geometry/RCD/Sobolev/BoundedPowerPairContinuity.lean new file mode 100644 index 0000000000000000000000000000000000000000..6abe371652dbe66d2260ac4a19eee61de13990de --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/BoundedPowerPairContinuity.lean @@ -0,0 +1,40 @@ +import OAI.Geometry.RCD.Sobolev.ClippedPositivePower + +namespace OAI + +/-! # Continuous L2 pairings representing bounded product powers -/ + +open Set Filter MeasureTheory +open scoped NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MeasurableSpace X] (μ : Measure X) + +def boundedPowerPair (A B : ℝ≥0) (n : ℕ) (f g : Lp ℝ 2 μ) : ℝ := + inner ℝ ((clipped_positive_power_lipschitz A n).compLp (clipped_positive_power_zero A n) f) + ((clipped_positive_power_lipschitz B n).compLp (clipped_positive_power_zero B n) g) + +theorem boundedPowerPair_continuous (A B : ℝ≥0) (n : ℕ) : + Continuous (fun fg : Lp ℝ 2 μ × Lp ℝ 2 μ => boundedPowerPair μ A B n fg.1 fg.2) := + (((clipped_positive_power_lipschitz A n).continuous_compLp + (clipped_positive_power_zero A n)).comp continuous_fst).inner + (((clipped_positive_power_lipschitz B n).continuous_compLp + (clipped_positive_power_zero B n)).comp continuous_snd) + +theorem boundedPowerPair_eq_integral (A B : ℝ≥0) (n : ℕ) (f g : Lp ℝ 2 μ) + (hf : ∀ᵐ x ∂μ, |f x| ≤ A) (hg : ∀ᵐ x ∂μ, |g x| ≤ B) : + boundedPowerPair μ A B n f g = ∫ x, (f x*g x)^(n+1) ∂μ := by + rw [boundedPowerPair,L2.inner_def] + apply integral_congr_ae + filter_upwards [(clipped_positive_power_lipschitz A n).coeFn_compLp + (clipped_positive_power_zero A n) f, + (clipped_positive_power_lipschitz B n).coeFn_compLp + (clipped_positive_power_zero B n) g,hf,hg] with x hx hy hfx hgx + simp only [Real.inner_apply,hx,hy,Function.comp_apply,clipReal_eq_self _ hfx, + clipReal_eq_self _ hgx,mul_pow] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/BoundedSetTestError.lean b/lean/OAI/Geometry/RCD/Sobolev/BoundedSetTestError.lean new file mode 100644 index 0000000000000000000000000000000000000000..27e9be707e66f2ddc855d579419ef7fcace00ca6 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/BoundedSetTestError.lean @@ -0,0 +1,39 @@ +import OAI.Geometry.RCD.Sobolev.BoundedTestCutoffError + +namespace OAI + +/-! # Integral error is controlled by the symmetric difference of test domains -/ + +open Set MeasureTheory +open scoped symmDiff +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MeasurableSpace X] + +theorem bounded_set_test_error (μ : Measure X) [IsFiniteMeasure μ] + {s t : Set X} (hs : MeasurableSet s) (ht : MeasurableSet t) + {f : X → ℝ} (hf : Integrable f μ) {B : ℝ} + (hb : ∀ᵐ x ∂μ, |f x|≤B) : + |(∫ x in s, f x ∂μ)-(∫ x in t, f x ∂μ)|≤B*μ.real (s ∆ t) := by + have hpoint : ∀ᵐ x ∂μ, ‖s.indicator f x-t.indicator f x‖≤ + B*(s ∆ t).indicator (fun _ => (1:ℝ)) x := by + filter_upwards [hb] with x hx + by_cases hxs : x∈s <;> by_cases hxt : x∈t + all_goals simp only [mem_symmDiff,hxs,hxt,and_self,and_false, + false_and,not_true_eq_false,not_false_eq_true,true_or,false_or,or_self, + indicator_of_mem,indicator_of_notMem,sub_self,sub_zero,zero_sub,norm_neg, + Real.norm_eq_abs,mul_one,mul_zero,abs_zero] + all_goals first | exact hx | exact le_refl 0 + have hd : Integrable (fun x => s.indicator f x-t.indicator f x) μ := + (hf.indicator hs).sub (hf.indicator ht) + have hi := (norm_integral_le_integral_norm (fun x => s.indicator f x-t.indicator f x)).trans + (integral_mono_ae hd.norm (((integrable_const (1:ℝ)).indicator (hs.symmDiff ht)).const_mul B) hpoint) + rw [integral_sub (hf.indicator hs) (hf.indicator ht),integral_indicator hs, + integral_indicator ht,integral_const_mul,integral_indicator (hs.symmDiff ht),setIntegral_const] at hi + simpa only [smul_eq_mul,mul_one,Real.norm_eq_abs] using hi + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/BoundedSquareLaplacian.lean b/lean/OAI/Geometry/RCD/Sobolev/BoundedSquareLaplacian.lean new file mode 100644 index 0000000000000000000000000000000000000000..88807ee88cc314bbda0332c8856403c3c8d79104 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/BoundedSquareLaplacian.lean @@ -0,0 +1,51 @@ +import OAI.Geometry.RCD.Sobolev.WeakLaplacianSquare + +namespace OAI + +/-! # Constructing the L² Laplacian of a bounded Lipschitz square -/ + +open Set Filter MeasureTheory +open scoped NNReal ENNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +/-- A bounded function with bounded weak gradient has an actual L² +square-Laplacian, with the exact carré-du-champ formula. -/ +theorem exists_weakLaplacian_square (f : SobolevSpace μ hQ) (d : Lp ℝ 2 μ) + (C L : ℝ≥0) (hf : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ f x| ≤ C) + (hgrad : ∀ᵐ x ∂μ, SobolevSpace.minimalSlope μ hQ f x ≤ L) + (hd : IsWeakLaplacian μ hQ f d) : + ∃ q : Lp ℝ 2 μ, IsWeakLaplacian μ hQ (SobolevSpace.square μ hQ f C) q ∧ + (q =ᵐ[μ] fun x => 2*(SobolevSpace.toLp μ hQ f x*d x+ + (SobolevSpace.minimalSlope μ hQ f x)^2)) := by + let F := SobolevSpace.toLp μ hQ f + let G := SobolevSpace.minimalSlope μ hQ f + have hF : MemLp F ∞ μ := memLp_top_of_bound (Lp.aestronglyMeasurable F) C + (by simpa only [Real.norm_eq_abs] using hf) + have hGs : MemLp (fun x => G x^2) 2 μ := by + apply (Lp.memLp G).of_le_mul (c := (L:ℝ)) ((Lp.aestronglyMeasurable G).pow 2) + filter_upwards [hgrad,(Lp.coeFn_nonneg _).mpr (SobolevSpace.minimalSlope_nonneg μ hQ f)] with x hx h0 + change |G x^2| ≤ (L:ℝ)*|G x| + change G x ≤ L at hx + change 0 ≤ G x at h0 + rw [abs_of_nonneg (sq_nonneg _),abs_of_nonneg h0] + nlinarith + have hprod : MemLp (fun x => F x*d x) 2 μ := by + simpa only [Pi.mul_apply,mul_comm] using! (Lp.memLp d).mul hF + have hQ2 : MemLp (fun x => 2*(F x*d x+G x^2)) 2 μ := by + simpa only [Pi.add_apply] using (hprod.add hGs).const_mul 2 + let q := hQ2.toLp (fun x => 2*(F x*d x+G x^2)) + have hq : q =ᵐ[μ] fun x => 2*(F x*d x+G x^2) := hQ2.coeFn_toLp + refine ⟨q,weakLaplacian_square μ hQ f d q C hf hd ?_,hq⟩ + filter_upwards [hq,localGamma_self μ hQ f] with x hqx hγ + rw [hqx,hγ] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/BoundedSquareVariation.lean b/lean/OAI/Geometry/RCD/Sobolev/BoundedSquareVariation.lean new file mode 100644 index 0000000000000000000000000000000000000000..9821fbd5e20523e709d60a6f1dee866445e1002f --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/BoundedSquareVariation.lean @@ -0,0 +1,55 @@ +import OAI.Geometry.RCD.Sobolev.BoundedLpSquare +import OAI.Geometry.RCD.Sobolev.InnerProductVariation + +namespace OAI + +/-! # Scalar differentiation of a bounded L² square against a varying weight -/ + +open Filter MeasureTheory +open scoped ENNReal Topology + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MeasurableSpace X] (μ : Measure X) + +/-- Pairing a bounded L² square with a bounded weight agrees with the +continuous weighted quadratic form. -/ +theorem inner_boundedLpSquare (f w : Lp ℝ 2 μ) (V : Lp ℝ ∞ μ) + (hV : V =ᵐ[μ] w) (C : ℝ) (hC : 0 ≤ C) (hf : ∀ᵐ x ∂μ, |f x| ≤ C) : + inner ℝ w (boundedLpSquare μ f C hC hf) = inner ℝ f (lpMultiplier μ V f) := by + simp only [L2.inner_def,Real.inner_apply] + apply integral_congr_ae + filter_upwards [hV,boundedLpSquare_coe μ f C hC hf,lpMultiplier_coe μ V f] with x hv hs hp + rw [hs,hp,hv] + ring + +/-- The derivative uses only L² derivatives of the two paths; boundedness +supplies the extra continuity required for the square. -/ +theorem boundedSquare_pairing_hasDerivAt {F W : ℝ → Lp ℝ 2 μ} {t C : ℝ} + {F' W' : Lp ℝ 2 μ} (hC : 0 ≤ C) (hb : ∀ s, ∀ᵐ x ∂μ, |F s x| ≤ C) + (hF : HasDerivAt F F' t) (hW : HasDerivAt W W' t) + (V : Lp ℝ ∞ μ) (hV : V =ᵐ[μ] W t) : + HasDerivAt (fun s => inner ℝ (W s) (boundedLpSquare μ (F s) C hC (hb s))) + (inner ℝ W' (boundedLpSquare μ (F t) C hC (hb t))+ + 2*inner ℝ F' (lpMultiplier μ V (F t))) t := by + apply hasDerivAt_inner_of_frozen hW (boundedLpSquare_continuousAt μ hC hF.continuousAt hb) + have hd := hF.inner ℝ ((lpMultiplier μ V).hasFDerivAt.comp_hasDerivAt t hF) + have he : inner ℝ (F t) (lpMultiplier μ V F') = inner ℝ F' (lpMultiplier μ V (F t)) := by + rw [lpMultiplier_inner_symm] + exact real_inner_comm _ _ + rw [he] at hd + have hfun : (fun s => inner ℝ (W t) (boundedLpSquare μ (F s) C hC (hb s))) = + (fun s => inner ℝ (F s) (lpMultiplier μ V (F s))) := by + funext s + exact inner_boundedLpSquare μ (F s) (W t) V hV C hC (hb s) + rw [hfun] + dsimp only [Function.comp_apply] at hd + convert! hd using 1 + ring + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/BoundedTestCutoffError.lean b/lean/OAI/Geometry/RCD/Sobolev/BoundedTestCutoffError.lean new file mode 100644 index 0000000000000000000000000000000000000000..62d6fa90d94df79628b88a886cf06cb02feea128 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/BoundedTestCutoffError.lean @@ -0,0 +1,53 @@ +import OAI.Geometry.RCD.Metric.MeasuredBallLaw +import OAI.Geometry.RCD.Sobolev.NestedBallCutoff + +namespace OAI + +/-! # The exact mass deficit controls bounded test localization -/ + +open Set Metric Filter MeasureTheory +open scoped Topology BoundedContinuousFunction +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MeasurableSpace X] [TopologicalSpace X] [OpensMeasurableSpace X] + +theorem bounded_test_cutoff_error (μ : Measure X) [IsFiniteMeasure μ] + {s : Set X} (hs : MeasurableSet s) (φ χ : X →ᵇ ℝ) + (hχ : ∀ x, 0≤χ x ∧ χ x≤1) (hχ0 : ∀ x, x∉s → χ x=0) : + |(∫ x in s, φ x ∂μ)-(∫ x, χ x*φ x ∂μ)|≤ + ‖φ‖*(μ.real s-(∫ x, χ x ∂μ)) := by + let I : X → ℝ := s.indicator (fun _ => 1) + have hI : Integrable I μ := (integrable_const (1:ℝ)).indicator hs + have hφ := φ.integrable (μ := μ) + have hp := (χ*φ).integrable (μ := μ) + have hd : ∀ x, 0≤I x-χ x := by + intro x + by_cases hx : x∈s + · simpa only [I,indicator_of_mem hx] using sub_nonneg.mpr (hχ x).2 + · simp only [I,indicator_of_notMem hx,hχ0 x hx,sub_self,le_refl] + have hpoint : ∀ x, ‖s.indicator (fun x => φ x) x-χ x*φ x‖≤‖φ‖*(I x-χ x) := by + intro x + have he : s.indicator (fun x => φ x) x-χ x*φ x=(I x-χ x)*φ x := by + by_cases hx : x∈s + · simp only [I,indicator_of_mem hx]; ring + · simp only [I,indicator_of_notMem hx,zero_sub,neg_mul] + rw [he,norm_mul,Real.norm_eq_abs,abs_of_nonneg (hd x),mul_comm] + exact mul_le_mul_of_nonneg_right (φ.norm_coe_le_norm x) (hd x) + have hi := (norm_integral_le_integral_norm + (s.indicator (fun x => φ x)-(fun x => χ x*φ x))).trans + (integral_mono_ae ((hφ.indicator hs).sub hp).norm + ((hI.sub (χ.integrable (μ := μ))).const_mul ‖φ‖) + (Eventually.of_forall hpoint)) + change ‖∫ x, s.indicator (fun x => φ x) x-χ x*φ x ∂μ‖≤ + ∫ x, ‖φ‖*(I x-χ x) ∂μ at hi + have hp' : Integrable (fun x => χ x*φ x) μ := hp + rw [integral_sub (hφ.indicator hs) hp',integral_indicator hs, + integral_const_mul,integral_sub hI (χ.integrable (μ := μ))] at hi + simpa only [I,integral_indicator hs,setIntegral_const,smul_eq_mul,mul_one, + Real.norm_eq_abs] using hi + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/BoundedTransverseTest.lean b/lean/OAI/Geometry/RCD/Sobolev/BoundedTransverseTest.lean new file mode 100644 index 0000000000000000000000000000000000000000..a7e17fceb5ee2ec6f7446bf727219fccff758a3a --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/BoundedTransverseTest.lean @@ -0,0 +1,89 @@ +import OAI.Geometry.RCD.Harmonic.TransversePositivePart + +namespace OAI + +/-! # The compact barrier uses an actual product of bounded Sobolev functions -/ + +open Set Filter MeasureTheory +open scoped NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) (Q : QuadraticCheegerEnergy μ) + +omit [BorelSpace X] [ProperSpace X] in +theorem bounded_positive_affine_bound (f g : SobolevSpace μ Q) (A B : ℝ≥0) + (hf : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ Q f x|≤A) + (hg : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ Q g x|≤B) (a : ℝ) : + ∀ᵐ x ∂μ, |SobolevSpace.toLp μ Q + ((f+a • g).upperPositivePart μ Q (le_refl (0:ℝ))) x|≤A+‖a‖₊*B := by + have hc : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ Q (f+a • g) x|≤A+‖a‖₊*B := by + simp only [map_add,map_smul] + filter_upwards [hf,hg,Lp.coeFn_add (SobolevSpace.toLp μ Q f) (a • SobolevSpace.toLp μ Q g), + Lp.coeFn_smul a (SobolevSpace.toLp μ Q g)] with x hx hy ha hs + rw [ha] + simp only [Pi.add_apply,hs,Pi.smul_apply,smul_eq_mul, + coe_nnnorm,Real.norm_eq_abs] + exact (abs_add_le _ _).trans (add_le_add hx (by rw [abs_mul]; exact mul_le_mul_of_nonneg_left hy (abs_nonneg _))) + filter_upwards [hc,(f+a • g).upperPositivePart_coe μ Q (le_refl (0:ℝ))] with x hx hy + rw [hy] + simp only [upperLevelPart,sub_zero] + rw [abs_of_nonneg (le_max_right _ _)] + exact max_le ((le_abs_self _).trans hx) (by positivity) + +theorem exists_bounded_transverse_test (w s η : SobolevSpace μ Q) (Ω : Set X) + (W S : X → ℝ) (A B E : ℝ≥0) + (hw : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ Q w x|≤A) + (hs : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ Q s x|≤B) + (he : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ Q η x|≤E) + (hW : SobolevSpace.toLp μ Q w =ᵐ[μ.restrict Ω] W) + (hS : SobolevSpace.toLp μ Q s =ᵐ[μ.restrict Ω] S) + (hη : SobolevSpace.toLp μ Q η =ᵐ[μ.restrict Ω] fun _ => (1:ℝ)) + (hww : localGamma μ Q w w =ᵐ[μ.restrict Ω] fun _ => (1:ℝ)) + (hsw : localGamma μ Q s w =ᵐ[μ.restrict Ω] fun _ => (0:ℝ)) (δ c : ℝ) : + ∃ f : SobolevSpace μ Q, + (SobolevSpace.toLp μ Q f =ᵐ[μ.restrict Ω] + fun x => max (W x+δ) 0*max (c-S x) 0) ∧ + (localGamma μ Q f w =ᵐ[μ.restrict Ω] + fun x => if -δ W x+δ := by + simp only [map_add,map_smul] + filter_upwards [hW,hη,ae_restrict_of_ae (Lp.coeFn_add (SobolevSpace.toLp μ Q w) + (δ • SobolevSpace.toLp μ Q η)),ae_restrict_of_ae (Lp.coeFn_smul δ (SobolevSpace.toLp μ Q η))] + with x hx hy ha hm + simp only [ha,Pi.add_apply,hm,Pi.smul_apply,smul_eq_mul,hx,hy,mul_one] + have hV : SobolevSpace.toLp μ Q (c • η-s) =ᵐ[μ.restrict Ω] fun x => c-S x := by + simp only [map_sub,map_smul] + filter_upwards [hS,hη,ae_restrict_of_ae (Lp.coeFn_sub (c • SobolevSpace.toLp μ Q η) + (SobolevSpace.toLp μ Q s)),ae_restrict_of_ae (Lp.coeFn_smul c (SobolevSpace.toLp μ Q η))] + with x hx hy ha hm + simp only [ha,Pi.sub_apply,hm,Pi.smul_apply,smul_eq_mul,hx,hy,mul_one] + filter_upwards [ae_restrict_of_ae (SobolevSpace.product_coe μ Q P T C D hP hT),hU,hV, + ae_restrict_of_ae ((w+δ • η).upperPositivePart_coe μ Q (le_refl (0:ℝ))), + ae_restrict_of_ae ((c • η-s).upperPositivePart_coe μ Q (le_refl (0:ℝ)))] + with x hx hu hv hp ht + rw [hx] + change SobolevSpace.toLp μ Q ((w+δ • η).upperPositivePart μ Q (le_refl (0:ℝ))) x * + SobolevSpace.toLp μ Q ((c • η-s).upperPositivePart μ Q (le_refl (0:ℝ))) x = _ + rw [hp,ht] + simp only [upperLevelPart,hu,hv,sub_zero] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/BoundedWeightIntegralLimit.lean b/lean/OAI/Geometry/RCD/Sobolev/BoundedWeightIntegralLimit.lean new file mode 100644 index 0000000000000000000000000000000000000000..9576d8035c7146c1eb38c355942996812bcf813f --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/BoundedWeightIntegralLimit.lean @@ -0,0 +1,34 @@ +import OAI.Geometry.RCD.Sobolev.WeightedEnergyWeightLimit + +namespace OAI + +/-! # Integrable pairings with uniformly bounded convergent weights -/ + +open Set Filter MeasureTheory +open scoped Topology NNReal +noncomputable section +namespace RegularPointCoordinates + +theorem bounded_weight_integral_tendsto {X : Type*} [MeasurableSpace X] + (μ : Measure X) (w : ℕ → X → ℝ) (v : X → ℝ) + (hw : ∀ k, AEStronglyMeasurable (w k) μ) {M : ℝ≥0} + (hM : ∀ k, ∀ᵐ x ∂μ, ‖w k x‖ ≤ M) + (hc : ∀ᵐ x ∂μ, Tendsto (fun k => w k x) atTop (𝓝 (v x))) + (f : X → ℝ) (hf : Integrable f μ) : + Tendsto (fun k => ∫ x, w k x*f x ∂μ) atTop (𝓝 (∫ x, v x*f x ∂μ)) := by + apply tendsto_integral_of_dominated_convergence (fun x => (M:ℝ)*|f x|) + · intro k + exact (hw k).mul hf.aestronglyMeasurable + · exact hf.abs.const_mul M + · intro k + filter_upwards [hM k] with x hx + rw [norm_mul,Real.norm_eq_abs (f x)] + exact mul_le_mul_of_nonneg_right hx (abs_nonneg _) + · filter_upwards [hc] with x hx + exact hx.mul_const _ + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/CanonicalHessianApproximation.lean b/lean/OAI/Geometry/RCD/Sobolev/CanonicalHessianApproximation.lean new file mode 100644 index 0000000000000000000000000000000000000000..cdcf9c0aac4084a303420804f578cdc8406280c3 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/CanonicalHessianApproximation.lean @@ -0,0 +1,91 @@ +import OAI.Geometry.RCD.Heat.CanonicalHeatHessian +import OAI.Geometry.RCD.Sobolev.BoundedHessianApproximationIndependence + +namespace OAI + +/-! # Every bounded regular gradient approximation has the canonical Hessian limit -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped Topology NNReal ENNReal +noncomputable section +namespace RegularPointCoordinates.NoncollapsedRCD +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] {K : ℝ} {n : ℕ} (hX : NoncollapsedRCD K n X) + (hn : 2 ≤ n) (p : X) [SeparableSpace X] + [IsLocallyFiniteMeasure (hausdorff n X)] [(hausdorff n X).Regular] + +include hn in +theorem hessian_limit_eq_canonical (hK : K ≤ 0) + (f : Lp ℝ 2 (hausdorff n X)) (A : ℝ≥0) + (hf : ∀ᵐ x ∂hausdorff n X, |f x| ≤ A) {a r : ℝ} (ha : 0 < a) (hr : 0 < r) + (u : ℕ → SobolevSpace (hausdorff n X) hX.quadratic) + (du : ℕ → Lp ℝ 2 (hausdorff n X)) + (hdu : ∀ k, IsWeakLaplacian (hausdorff n X) hX.quadratic (u k) (du k)) + (U : ℕ → X → ℝ) (L B : ℕ → ℝ≥0) + (hU : ∀ k, LipschitzWith (L k) (U k)) + (hu : ∀ k, SobolevSpace.toLp (hausdorff n X) hX.quadratic (u k) =ᵐ[hausdorff n X] U k) + (huB : ∀ k, ∀ᵐ x ∂hausdorff n X, |SobolevSpace.toLp (hausdorff n X) hX.quadratic (u k) x| ≤ B k) + (v : SobolevSpace (hausdorff n X) hX.quadratic) + (V : X → ℝ) (Lv Av : ℝ≥0) (hV : LipschitzWith Lv V) (hc : HasCompactSupport V) + (hv : SobolevSpace.toLp (hausdorff n X) hX.quadratic v =ᵐ[hausdorff n X] V) + (hAv : ∀ᵐ x ∂hausdorff n X, |SobolevSpace.toLp (hausdorff n X) hX.quadratic v x| ≤ Av) + {P : ℝ} (hP : 0 ≤ P) + (hgu : ∀ k, ∀ᵐ x ∂(hausdorff n X).restrict (closedBall p r), + localGamma (hausdorff n X) hX.quadratic (u k) (u k) x ≤ P) + (φ : X → ℝ) (hφ : AEStronglyMeasurable φ (hausdorff n X)) (D : ℝ≥0) + (hD : ∀ᵐ x ∂hausdorff n X, |φ x| ≤ D) + (hzero : ∀ x ∉ closedBall p r, φ x = 0) + (henergy : Tendsto (fun k => weightedGamma (hausdorff n X) hX.quadratic + (fun x => (φ x)^2) (u k-v) (u k-v)) atTop (𝓝 0)) + (WU UU : ℕ → SobolevSpace (hausdorff n X) hX.quadratic) + (hWU : ∀ k, SobolevSpace.toLp (hausdorff n X) hX.quadratic (WU k) + =ᵐ[(hausdorff n X).restrict (closedBall p r)] + localGamma (hausdorff n X) hX.quadratic (heatSobolev (hausdorff n X) hX.quadratic a ha f) (u k)) + (hUU : ∀ k, SobolevSpace.toLp (hausdorff n X) hX.quadratic (UU k) + =ᵐ[(hausdorff n X).restrict (closedBall p r)] localGamma (hausdorff n X) hX.quadratic (u k) (u k)) + (I J : Lp ℝ 1 ((hausdorff n X).restrict (closedBall p r))) + (hI : Tendsto (fun k => ∫ x in closedBall p r, + |φ x*localHessianAction (hausdorff n X) hX.quadratic + (heatSobolev (hausdorff n X) hX.quadratic a ha f) (u k) (u k) (WU k) (WU k) (UU k) x-I x| + ∂hausdorff n X) atTop (𝓝 0)) + (hcan : IsCanonicalHeatHessian (hausdorff n X) hX.quadratic + (heatSobolev (hausdorff n X) hX.quadratic a ha f) v p r φ J) : I=J := by + let m := hausdorff n X + let q := hX.quadratic + let w := heatSobolev m q a ha f + obtain ⟨uc,dc,Uc,Mc,Pc,huc,hdc,hUc,hrepc,hBc,hPc,hgc,hconv⟩ := + hX.compact_lipschitz_heat_directions hn p v V Lv Av hV hc hv hAv + obtain ⟨CW,CC,hCW,hCC,hJC⟩ := hcan + have hCWr (k : ℕ) : SobolevSpace.toLp m q (CW k) =ᵐ[m.restrict (closedBall p r)] + localGamma m q w (uc k) := by rw [huc k]; exact hCW k + have hCCr (k : ℕ) : SobolevSpace.toLp m q (CC k) =ᵐ[m.restrict (closedBall p r)] + localGamma m q (uc k) (uc k) := by rw [huc k]; exact hCC k + have hJCr : Tendsto (fun k => ∫ x in closedBall p r, + |φ x*localHessianAction m q w (uc k) (uc k) (CW k) (CW k) (CC k) x-J x| ∂m) + atTop (𝓝 0) := by simpa only [huc] using hJC + have hnconv : Tendsto (fun k => ‖uc k-v‖) atTop (𝓝 0) := by + simpa only [sub_self,norm_zero] using (hconv.sub (tendsto_const_nhds (x := v))).norm + have hD2 : ∀ᵐ x ∂m, ‖(φ x)^2‖ ≤ (D^2:ℝ≥0) := by + filter_upwards [hD] with x hx + simpa only [norm_pow,Real.norm_eq_abs,NNReal.coe_pow] using + pow_le_pow_left₀ (abs_nonneg _) hx 2 + have hEc : Tendsto (fun k => weightedGamma m q (fun x => (φ x)^2) + (uc k-v) (uc k-v)) atTop (𝓝 0) := by + apply squeeze_zero_norm (fun k => weightedGamma_norm_le m q hD2 (uc k-v) (uc k-v)) + simpa only [mul_zero] using (hnconv.const_mul ((D^2:ℝ≥0):ℝ)).mul hnconv + have hgu' (k : ℕ) : ∀ᵐ x ∂m.restrict (closedBall p r), + localGamma m q (u k) (u k) x ≤ max P Pc := + (hgu k).mono fun x hx => hx.trans (le_max_left _ _) + have hgc' (k : ℕ) : ∀ᵐ x ∂m.restrict (closedBall p r), + localGamma m q (uc k) (uc k) x ≤ max P Pc := + (ae_restrict_of_ae (hgc k)).mono fun x hx => hx.trans (le_max_right _ _) + exact hX.bounded_heat_hessian_approximation_independent hn p hK f A hf ha hr + u uc du dc hdu hdc U Uc L Mc B (fun _ => Av) hU hUc hu hrepc huB hBc + (hP.trans (le_max_left _ _)) hgu' hgc' φ hφ D hD hzero v henergy hEc + WU CW UU CC hWU hCWr hUU hCCr I J hI hJCr + +end RegularPointCoordinates.NoncollapsedRCD + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/CanonicalHessianConstantShift.lean b/lean/OAI/Geometry/RCD/Sobolev/CanonicalHessianConstantShift.lean new file mode 100644 index 0000000000000000000000000000000000000000..e72bb462929abed6c311c0c519225ad127746670 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/CanonicalHessianConstantShift.lean @@ -0,0 +1,92 @@ +import OAI.Geometry.RCD.Sobolev.CanonicalHessianApproximation + +namespace OAI + +/-! # Local constant shifts preserve the canonical Hessian direction -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped Topology NNReal +noncomputable section +namespace RegularPointCoordinates.NoncollapsedRCD +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] {K : ℝ} {n : ℕ} (hX : NoncollapsedRCD K n X) + (hn : 2 ≤ n) (p : X) [SeparableSpace X] + [IsLocallyFiniteMeasure (hausdorff n X)] [(hausdorff n X).Regular] + +include hn in +theorem canonical_hessian_locality_of_constant (hK : K ≤ 0) + (f : Lp ℝ 2 (hausdorff n X)) (A : ℝ≥0) + (hf : ∀ᵐ x ∂hausdorff n X, |f x| ≤ A) {s r : ℝ} (hs : 0 < s) (hr : 0 < r) + (v z : SobolevSpace (hausdorff n X) hX.quadratic) + (V Z : X → ℝ) (Lv Lz Av Az : ℝ≥0) + (hV : LipschitzWith Lv V) (hZ : LipschitzWith Lz Z) + (hVc : HasCompactSupport V) (hZc : HasCompactSupport Z) + (hv : SobolevSpace.toLp (hausdorff n X) hX.quadratic v =ᵐ[hausdorff n X] V) + (hz : SobolevSpace.toLp (hausdorff n X) hX.quadratic z =ᵐ[hausdorff n X] Z) + (hAv : ∀ᵐ x ∂hausdorff n X, |SobolevSpace.toLp (hausdorff n X) hX.quadratic v x| ≤ Av) + (hAz : ∀ᵐ x ∂hausdorff n X, |SobolevSpace.toLp (hausdorff n X) hX.quadratic z x| ≤ Az) + (c : ℝ) + (hvz : (fun x => SobolevSpace.toLp (hausdorff n X) hX.quadratic z x- + SobolevSpace.toLp (hausdorff n X) hX.quadratic v x) + =ᵐ[(hausdorff n X).restrict (closedBall p r)] fun _ => c) + (φ : X → ℝ) (hφ : AEStronglyMeasurable φ (hausdorff n X)) (D : ℝ≥0) + (hD : ∀ᵐ x ∂hausdorff n X, |φ x| ≤ D) (hφz : ∀ x∉closedBall p r, φ x=0) + (I J : Lp ℝ 1 ((hausdorff n X).restrict (closedBall p r))) + (hI : IsCanonicalHeatHessian (hausdorff n X) hX.quadratic + (heatSobolev (hausdorff n X) hX.quadratic s hs f) v p r φ I) + (hJ : IsCanonicalHeatHessian (hausdorff n X) hX.quadratic + (heatSobolev (hausdorff n X) hX.quadratic s hs f) z p r φ J) : I=J := by + let m := hausdorff n X + let q := hX.quadratic + let w := heatSobolev m q s hs f + obtain ⟨u,du,U,Lu,Pu,hu,hdu,hU,hur,huA,hPu,hgu,huc⟩ := + hX.compact_lipschitz_heat_directions hn p v V Lv Av hV hVc hv hAv + obtain ⟨y,dy,Y,Ly,Py,hy,hdy,hY,hyr,hyA,hPy,hgy,hyc⟩ := + hX.compact_lipschitz_heat_directions hn p z Z Lz Az hZ hZc hz hAz + obtain ⟨AU,UU,hAU,hUU,hIl⟩ := hI + obtain ⟨AY,YY,hAY,hYY,hJl⟩ := hJ + have hD2 : ∀ᵐ x ∂m, ‖(φ x)^2‖ ≤ (D^2:ℝ≥0) := by + filter_upwards [hD] with x hx + simpa only [norm_pow,Real.norm_eq_abs,NNReal.coe_pow] using pow_le_pow_left₀ (abs_nonneg _) hx 2 + let P := weightedGammaCLM m q (hφ.pow 2) hD2 + have hPc : Continuous (fun b : SobolevSpace m q => P (b-v) (b-v)) := by fun_prop + have hezero : P (z-v) (z-v)=0 := by + have hvz' : SobolevSpace.toLp m q (z-v) =ᵐ[m.restrict (closedBall p r)] fun _ => c := by + simp only [map_sub] + filter_upwards [hvz,ae_restrict_of_ae + (Lp.coeFn_sub (SobolevSpace.toLp m q z) (SobolevSpace.toLp m q v))] with x hx he + exact he.trans hx + change (∫ x, (φ x)^2*localGamma m q (z-v) (z-v) x ∂m)=0 + apply integral_eq_zero_of_ae + filter_upwards [(ae_restrict_iff' measurableSet_closedBall).mp hvz', + localGamma_zero_on_level m q (z-v) (z-v) c] with x hx hh + change (φ x)^2*localGamma m q (z-v) (z-v) x = (0:ℝ) + by_cases hm : x∈closedBall p r + · rw [hh (hx hm),mul_zero] + · rw [hφz x hm,zero_pow (by decide : (2:ℕ)≠0),zero_mul] + have huE : Tendsto (fun k => weightedGamma m q (fun x => (φ x)^2) (u k-v) (u k-v)) + atTop (𝓝 0) := by + have hh := (hPc.tendsto v).comp huc + change Tendsto (fun k => P (u k-v) (u k-v)) atTop (𝓝 0) + simpa only [Function.comp_apply,sub_self,map_zero,zero_apply] using! hh + have hyE : Tendsto (fun k => weightedGamma m q (fun x => (φ x)^2) (y k-v) (y k-v)) + atTop (𝓝 0) := by + change Tendsto (fun k => P (y k-v) (y k-v)) atTop (𝓝 0) + simpa only [Function.comp_apply,hezero] using! (hPc.tendsto z).comp hyc + exact hX.bounded_heat_hessian_approximation_independent hn p hK f A hf hs hr + u y du dy hdu hdy U Y Lu Ly (fun _ => Av) (fun _ => Az) hU hY hur hyr huA hyA + (hPu.trans (le_max_left Pu Py)) + (fun k => (ae_restrict_of_ae (hgu k)).mono fun x hx => hx.trans (le_max_left Pu Py)) + (fun k => (ae_restrict_of_ae (hgy k)).mono fun x hx => hx.trans (le_max_right Pu Py)) + φ hφ D hD hφz v huE hyE AU AY UU YY + (fun k => by simpa only [hu k] using hAU k) + (fun k => by simpa only [hy k] using hAY k) + (fun k => by simpa only [hu k] using hUU k) + (fun k => by simpa only [hy k] using hYY k) + I J (by simpa only [hu] using hIl) (by simpa only [hy] using hJl) + +end RegularPointCoordinates.NoncollapsedRCD + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/CanonicalHessianInnerPairing.lean b/lean/OAI/Geometry/RCD/Sobolev/CanonicalHessianInnerPairing.lean new file mode 100644 index 0000000000000000000000000000000000000000..7cfd32c4e8c035b42f1770acee9474bc34540a11 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/CanonicalHessianInnerPairing.lean @@ -0,0 +1,66 @@ +import OAI.Geometry.RCD.Sobolev.CanonicalHessianRestriction +import OAI.Geometry.RCD.Sobolev.CanonicalHessianLocality + +namespace OAI + +/-! # The same intrinsic Hessian pairing on a smaller supported law -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped Topology NNReal +noncomputable section +namespace RegularPointCoordinates.NoncollapsedRCD +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + {K : ℝ} {n : ℕ} (hX : NoncollapsedRCD K n X) (hn : 2 ≤ n) (p : X) + [SeparableSpace X] [IsLocallyFiniteMeasure (hausdorff n X)] [(hausdorff n X).Regular] + +include hn in +theorem canonical_hessian_inner_pairing (hK : K ≤ 0) + (f : Lp ℝ 2 (hausdorff n X)) (A : ℝ≥0) + (hf : ∀ᵐ x ∂hausdorff n X, |f x| ≤ A) {s r R : ℝ} + (hs : 0 < s) (hr : 0 < r) (hrR : r ≤ R) + (v z : SobolevSpace (hausdorff n X) hX.quadratic) + (V Z : X → ℝ) (Lv Lz Av Az : ℝ≥0) + (hV : LipschitzWith Lv V) (hZ : LipschitzWith Lz Z) + (hVc : HasCompactSupport V) (hZc : HasCompactSupport Z) + (hv : SobolevSpace.toLp (hausdorff n X) hX.quadratic v =ᵐ[hausdorff n X] V) + (hz : SobolevSpace.toLp (hausdorff n X) hX.quadratic z =ᵐ[hausdorff n X] Z) + (hAv : ∀ᵐ x ∂hausdorff n X, |SobolevSpace.toLp (hausdorff n X) hX.quadratic v x| ≤ Av) + (hAz : ∀ᵐ x ∂hausdorff n X, |SobolevSpace.toLp (hausdorff n X) hX.quadratic z x| ≤ Az) + (hvz : SobolevSpace.toLp (hausdorff n X) hX.quadratic v + =ᵐ[(hausdorff n X).restrict (closedBall p r)] + SobolevSpace.toLp (hausdorff n X) hX.quadratic z) + (ψ φ : X → ℝ) (hψ : AEStronglyMeasurable ψ (hausdorff n X)) + (hφ : AEStronglyMeasurable φ (hausdorff n X)) (B D : ℝ≥0) + (hB : ∀ᵐ x ∂hausdorff n X, |ψ x| ≤ B) + (hD : ∀ᵐ x ∂hausdorff n X, |φ x| ≤ D) + (hψone : ∀ x∈closedBall p r, ψ x=1) (hφz : ∀ x∉closedBall p r, φ x=0) + (J : Lp ℝ 1 ((hausdorff n X).restrict (closedBall p R))) + (I : Lp ℝ 1 ((hausdorff n X).restrict (closedBall p r))) + (hJ : IsCanonicalHeatHessian (hausdorff n X) hX.quadratic + (heatSobolev (hausdorff n X) hX.quadratic s hs f) v p R ψ J) + (hI : IsCanonicalHeatHessian (hausdorff n X) hX.quadratic + (heatSobolev (hausdorff n X) hX.quadratic s hs f) z p r φ I) + (ν : Measure X) (hν : ν ≪ hausdorff n X) + (hstay : ∀ᵐ x ∂ν, x∈closedBall p r) (hone : φ =ᵐ[ν] fun _ => 1) : + (∫ x in closedBall p r, I x ∂ν) = ∫ x in closedBall p R, J x ∂ν := by + let m := hausdorff n X + let q := hX.quadratic + obtain ⟨Jr,hJr,he⟩ := hJ.restrict_weight m q hrR hψ B hB hψone φ hφ D hD + have hsame := hX.canonical_hessian_locality hn p hK f A hf hs hr + v z V Z Lv Lz Av Az hV hZ hVc hZc hv hz hAv hAz hvz φ hφ D hD hφz Jr I hJr hI + rw [hsame] at he + have hsmall : ν.restrict (closedBall p r)=ν := Measure.restrict_eq_self_of_ae_mem hstay + have hlarge : ν.restrict (closedBall p R)=ν := Measure.restrict_eq_self_of_ae_mem + (hstay.mono fun _ hx => (closedBall_subset_closedBall hrR) hx) + have heν := (hν.restrict (closedBall p r)).ae_eq he + rw [hsmall] at heν + rw [hsmall,hlarge] + apply integral_congr_ae + filter_upwards [heν,hone] with x hx hφx + simpa only [hφx,one_mul] using hx + +end RegularPointCoordinates.NoncollapsedRCD + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/CanonicalHessianLocality.lean b/lean/OAI/Geometry/RCD/Sobolev/CanonicalHessianLocality.lean new file mode 100644 index 0000000000000000000000000000000000000000..1ce7967e485fd1777faf497ed69b9d280e880875 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/CanonicalHessianLocality.lean @@ -0,0 +1,91 @@ +import OAI.Geometry.RCD.Sobolev.CanonicalHessianApproximation + +namespace OAI + +/-! # Locality of the canonical Hessian in its compact Lipschitz direction -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped Topology NNReal +noncomputable section +namespace RegularPointCoordinates.NoncollapsedRCD +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] {K : ℝ} {n : ℕ} (hX : NoncollapsedRCD K n X) + (hn : 2 ≤ n) (p : X) [SeparableSpace X] + [IsLocallyFiniteMeasure (hausdorff n X)] [(hausdorff n X).Regular] + +include hn in +theorem canonical_hessian_locality (hK : K ≤ 0) + (f : Lp ℝ 2 (hausdorff n X)) (A : ℝ≥0) + (hf : ∀ᵐ x ∂hausdorff n X, |f x| ≤ A) {s r : ℝ} (hs : 0 < s) (hr : 0 < r) + (v z : SobolevSpace (hausdorff n X) hX.quadratic) + (V Z : X → ℝ) (Lv Lz Av Az : ℝ≥0) + (hV : LipschitzWith Lv V) (hZ : LipschitzWith Lz Z) + (hVc : HasCompactSupport V) (hZc : HasCompactSupport Z) + (hv : SobolevSpace.toLp (hausdorff n X) hX.quadratic v =ᵐ[hausdorff n X] V) + (hz : SobolevSpace.toLp (hausdorff n X) hX.quadratic z =ᵐ[hausdorff n X] Z) + (hAv : ∀ᵐ x ∂hausdorff n X, |SobolevSpace.toLp (hausdorff n X) hX.quadratic v x| ≤ Av) + (hAz : ∀ᵐ x ∂hausdorff n X, |SobolevSpace.toLp (hausdorff n X) hX.quadratic z x| ≤ Az) + (hvz : SobolevSpace.toLp (hausdorff n X) hX.quadratic v + =ᵐ[(hausdorff n X).restrict (closedBall p r)] SobolevSpace.toLp (hausdorff n X) hX.quadratic z) + (φ : X → ℝ) (hφ : AEStronglyMeasurable φ (hausdorff n X)) (D : ℝ≥0) + (hD : ∀ᵐ x ∂hausdorff n X, |φ x| ≤ D) (hφz : ∀ x∉closedBall p r, φ x=0) + (I J : Lp ℝ 1 ((hausdorff n X).restrict (closedBall p r))) + (hI : IsCanonicalHeatHessian (hausdorff n X) hX.quadratic + (heatSobolev (hausdorff n X) hX.quadratic s hs f) v p r φ I) + (hJ : IsCanonicalHeatHessian (hausdorff n X) hX.quadratic + (heatSobolev (hausdorff n X) hX.quadratic s hs f) z p r φ J) : I=J := by + let m := hausdorff n X + let q := hX.quadratic + let w := heatSobolev m q s hs f + obtain ⟨u,du,U,Lu,Pu,hu,hdu,hU,hur,huA,hPu,hgu,huc⟩ := + hX.compact_lipschitz_heat_directions hn p v V Lv Av hV hVc hv hAv + obtain ⟨y,dy,Y,Ly,Py,hy,hdy,hY,hyr,hyA,hPy,hgy,hyc⟩ := + hX.compact_lipschitz_heat_directions hn p z Z Lz Az hZ hZc hz hAz + obtain ⟨AU,UU,hAU,hUU,hIl⟩ := hI + obtain ⟨AY,YY,hAY,hYY,hJl⟩ := hJ + have hD2 : ∀ᵐ x ∂m, ‖(φ x)^2‖ ≤ (D^2:ℝ≥0) := by + filter_upwards [hD] with x hx + simpa only [norm_pow,Real.norm_eq_abs,NNReal.coe_pow] using pow_le_pow_left₀ (abs_nonneg _) hx 2 + let P := weightedGammaCLM m q (hφ.pow 2) hD2 + have hPc : Continuous (fun b : SobolevSpace m q => P (b-v) (b-v)) := by fun_prop + have hezero : P (z-v) (z-v)=0 := by + have hvz' : SobolevSpace.toLp m q (z-v) =ᵐ[m.restrict (closedBall p r)] fun _ => 0 := by + simp only [map_sub] + filter_upwards [hvz,ae_restrict_of_ae + (Lp.coeFn_sub (SobolevSpace.toLp m q z) (SobolevSpace.toLp m q v))] with x hx he + change SobolevSpace.toLp m q v x= SobolevSpace.toLp m q z x at hx + simp only [he,Pi.sub_apply,hx,sub_self] + change (∫ x, (φ x)^2*localGamma m q (z-v) (z-v) x ∂m)=0 + apply integral_eq_zero_of_ae + filter_upwards [(ae_restrict_iff' measurableSet_closedBall).mp hvz', + localGamma_zero_on_level m q (z-v) (z-v) 0] with x hx hh + change (φ x)^2*localGamma m q (z-v) (z-v) x = (0:ℝ) + by_cases hm : x∈closedBall p r + · rw [hh (hx hm),mul_zero] + · rw [hφz x hm,zero_pow (by decide : (2:ℕ)≠0),zero_mul] + have huE : Tendsto (fun k => weightedGamma m q (fun x => (φ x)^2) (u k-v) (u k-v)) + atTop (𝓝 0) := by + have hh := (hPc.tendsto v).comp huc + change Tendsto (fun k => P (u k-v) (u k-v)) atTop (𝓝 0) + simpa only [Function.comp_apply,sub_self,map_zero,zero_apply] using! hh + have hyE : Tendsto (fun k => weightedGamma m q (fun x => (φ x)^2) (y k-v) (y k-v)) + atTop (𝓝 0) := by + change Tendsto (fun k => P (y k-v) (y k-v)) atTop (𝓝 0) + simpa only [Function.comp_apply,hezero] using! (hPc.tendsto z).comp hyc + exact hX.bounded_heat_hessian_approximation_independent hn p hK f A hf hs hr + u y du dy hdu hdy U Y Lu Ly (fun _ => Av) (fun _ => Az) hU hY hur hyr huA hyA + (hPu.trans (le_max_left Pu Py)) + (fun k => (ae_restrict_of_ae (hgu k)).mono fun x hx => hx.trans (le_max_left Pu Py)) + (fun k => (ae_restrict_of_ae (hgy k)).mono fun x hx => hx.trans (le_max_right Pu Py)) + φ hφ D hD hφz v huE hyE AU AY UU YY + (fun k => by simpa only [hu k] using hAU k) + (fun k => by simpa only [hy k] using hAY k) + (fun k => by simpa only [hu k] using hUU k) + (fun k => by simpa only [hy k] using hYY k) + I J (by simpa only [hu] using hIl) (by simpa only [hy] using hJl) + +end RegularPointCoordinates.NoncollapsedRCD + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/CanonicalHessianMassBound.lean b/lean/OAI/Geometry/RCD/Sobolev/CanonicalHessianMassBound.lean new file mode 100644 index 0000000000000000000000000000000000000000..3af92daac2e20a68a5c833da45442069bd50d79c --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/CanonicalHessianMassBound.lean @@ -0,0 +1,106 @@ +import OAI.Geometry.RCD.Heat.CanonicalHeatHessian +import OAI.Geometry.RCD.Coordinates.BoundedRegularPrescribedHessian +import OAI.Geometry.RCD.Sobolev.ScalarBochnerConstruction +import OAI.Geometry.RCD.Sobolev.HessianL1MassBound + +namespace OAI + +/-! # The canonical Hessian is controlled by the prescribed full Bochner mass -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped Topology NNReal +noncomputable section +namespace RegularPointCoordinates.NoncollapsedRCD +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] {n : ℕ} (hX : NoncollapsedRCD 0 n X) (hn : 2 ≤ n) (p : X) + [SeparableSpace X] [IsLocallyFiniteMeasure (hausdorff n X)] [(hausdorff n X).Regular] + +include hn in +theorem canonical_hessian_young_bound + (w dw G : SobolevSpace (hausdorff n X) hX.quadratic) + (hw : IsWeakLaplacian (hausdorff n X) hX.quadratic w + (SobolevSpace.toLp (hausdorff n X) hX.quadratic dw)) + (W : X → ℝ) (Lw Aw Bw : ℝ≥0) (hW : LipschitzWith Lw W) + (hwr : SobolevSpace.toLp (hausdorff n X) hX.quadratic w =ᵐ[hausdorff n X] W) + (hwA : ∀ᵐ x ∂hausdorff n X, |SobolevSpace.toLp (hausdorff n X) hX.quadratic w x| ≤ Aw) + (hdB : ∀ᵐ x ∂hausdorff n X, |SobolevSpace.toLp (hausdorff n X) hX.quadratic dw x| ≤ Bw) + (hG : SobolevSpace.toLp (hausdorff n X) hX.quadratic G =ᵐ[hausdorff n X] + localGamma (hausdorff n X) hX.quadratic w w) + {r : ℝ} (hr : 0 < r) (σ : Measure X) [IsFiniteMeasure σ] + (hσ : IsMeasureLaplacianOn (hausdorff n X) hX.quadratic (ball p (2*r)) G + (bochnerGramSource (hausdorff n X) hX.quadratic 0 w w dw dw σ.toSignedMeasure)) + (v : SobolevSpace (hausdorff n X) hX.quadratic) (V : X → ℝ) (Lv Av : ℝ≥0) + (hV : LipschitzWith Lv V) (hVc : HasCompactSupport V) + (hv : SobolevSpace.toLp (hausdorff n X) hX.quadratic v =ᵐ[hausdorff n X] V) + (hAv : ∀ᵐ x ∂hausdorff n X, |SobolevSpace.toLp (hausdorff n X) hX.quadratic v x| ≤ Av) + (φ : X → ℝ) (hφ : AEStronglyMeasurable φ (hausdorff n X)) (D : ℝ≥0) + (hD : ∀ᵐ x ∂hausdorff n X, |φ x| ≤ D) + (J : Lp ℝ 1 ((hausdorff n X).restrict (closedBall p r))) + (hJ : IsCanonicalHeatHessian (hausdorff n X) hX.quadratic w v p r φ J) + {a : ℝ} (ha : 0 < a) : + 4*a*(∫ x in closedBall p r, |J x| ∂hausdorff n X) ≤ + 4*a^2*(hausdorff n X).real (closedBall p r)+((D:ℝ)*(Lv:ℝ)^2)^2*σ.real (closedBall p r) := by + let m := hausdorff n X + let q := hX.quadratic + obtain ⟨u,du,U,M,_P,hu,hdu,hU,hur,huA,_hP,_hgu,_hconv⟩ := + hX.compact_lipschitz_heat_directions hn p v V Lv Av hV hVc hv hAv + have hgu (k : ℕ) : ∀ᵐ x ∂m, localGamma m q (u k) (u k) x ≤ (Lv:ℝ)^2 := by + have ht : 0 < 1/((k:ℝ)+1) := by positivity + have hg := hX.heat_compact_slope_bdd 0 n hn hV hVc p (SobolevSpace.toLp m q v) + hv.symm (1/((k:ℝ)+1)) ht + have he : u k=heatSobolev m q (1/((k:ℝ)+1)) ht (SobolevSpace.toLp m q v) := by + rw [hu k] + simp only [heatH1,dite_eq_left ht] + rfl + rw [he] + filter_upwards [hg,localGamma_self m q _, + (Lp.coeFn_nonneg _).mpr (SobolevSpace.minimalSlope_nonneg m q _)] with x hx hs h0 + rw [hs] + have hx' : SobolevSpace.minimalSlope m q + (heatSobolev m q (1/((k:ℝ)+1)) ht (SobolevSpace.toLp m q v)) x ≤ Lv := by + simpa only [neg_zero,zero_mul,Real.exp_zero,mul_one] using hx + exact pow_le_pow_left₀ h0 hx' 2 + obtain ⟨A,B,hA,hB,hlim⟩ := hJ + have hAr (k : ℕ) : SobolevSpace.toLp m q (A k) =ᵐ[m.restrict (closedBall p r)] + localGamma m q w (u k) := by simpa only [hu k] using hA k + have hBr (k : ℕ) : SobolevSpace.toLp m q (B k) =ᵐ[m.restrict (closedBall p r)] + localGamma m q (u k) (u k) := by simpa only [hu k] using hB k + let F k x := φ x*localHessianAction m q w (u k) (u k) (A k) (A k) (B k) x + have hF (k : ℕ) : Integrable (F k) (m.restrict (closedBall p r)) := + ((localHessianAction_integrable m q w (u k) (u k) (A k) (A k) (B k)).bdd_mul hφ + (hD.mono fun x hx => by simpa only [Real.norm_eq_abs] using hx)).integrableOn + apply L1_limit_radon_young_bound m σ (isCompact_closedBall p r).measure_lt_top.ne + F hF J (by simpa only [F,hu] using hlim) ((D:ℝ)*(Lv:ℝ)^2) _ ha + intro k + obtain ⟨A',B',C',hA',hB',hC',hh⟩ := hX.bounded_regular_prescribed_hessian hn + (hX.scalarBochner_nonpositive 0 n hn le_rfl p) w dw hw W hW hwr hwA hdB G hG p hr σ hσ + (u k) (du k) (hdu k) (U k) (M k) Av (hU k) (hur k) (huA k) + (u k) (du k) (hdu k) (U k) (M k) Av (hU k) (hur k) (huA k) + have he := localHessianAction_congr_of_grams m q w (u k) (u k) (u k) (u k) + (A k) A' (A k) B' (B k) C' EventuallyEq.rfl EventuallyEq.rfl + (hAr k) hA' (hAr k) hB' (hBr k) hC' + filter_upwards [he,hh,ae_restrict_of_ae (hgu k),ae_restrict_of_ae hD, + ae_restrict_of_ae (localGamma_self m q (u k))] with x he hh hg hφx hself + have h0 : 0 ≤ localGamma m q (u k) (u k) x := by rw [hself]; positivity + have hsq := mul_le_mul_of_nonneg_left (pow_le_pow_left₀ h0 hg 2) + (ENNReal.toReal_nonneg (a := σ.rnDeriv m x)) + have hH : (localHessianAction m q w (u k) (u k) (A k) (A k) (B k) x)^2 ≤ + (σ.rnDeriv m x).toReal*((Lv:ℝ)^2)^2 := by + rw [he] + exact hh.trans (by simpa only [pow_two,mul_assoc] using hsq) + have hφsq : (φ x)^2 ≤ (D:ℝ)^2 := by + simpa only [sq_abs] using pow_le_pow_left₀ (abs_nonneg (φ x)) hφx 2 + dsimp only [F] + calc + _ = (φ x)^2*(localHessianAction m q w (u k) (u k) (A k) (A k) (B k) x)^2 := mul_pow _ _ _ + _ ≤ (φ x)^2*((σ.rnDeriv m x).toReal*((Lv:ℝ)^2)^2) := + mul_le_mul_of_nonneg_left hH (sq_nonneg _) + _ ≤ (D:ℝ)^2*((σ.rnDeriv m x).toReal*((Lv:ℝ)^2)^2) := + mul_le_mul_of_nonneg_right hφsq (mul_nonneg ENNReal.toReal_nonneg (sq_nonneg _)) + _ = _ := by ring + +end RegularPointCoordinates.NoncollapsedRCD + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/CanonicalHessianRestriction.lean b/lean/OAI/Geometry/RCD/Sobolev/CanonicalHessianRestriction.lean new file mode 100644 index 0000000000000000000000000000000000000000..72be159fbe2f41118f2813106f99c0c81ca7c31d --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/CanonicalHessianRestriction.lean @@ -0,0 +1,61 @@ +import OAI.Geometry.RCD.Heat.CanonicalHeatHessian +import OAI.Geometry.RCD.Sobolev.L1LimitLocalization + +namespace OAI + +/-! # Restricting the canonical Hessian to a smaller physical ball -/ + +open Set Filter MeasureTheory Metric +open scoped Topology NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) [μ.Regular] (Q : QuadraticCheegerEnergy μ) + +theorem IsCanonicalHeatHessian.restrict_weight + {w v : SobolevSpace μ Q} {p : X} {r R : ℝ} (hrR : r ≤ R) + {ψ : X → ℝ} (hψ : AEStronglyMeasurable ψ μ) (B : ℝ≥0) + (hB : ∀ᵐ x ∂μ, |ψ x| ≤ B) + (hψone : ∀ x∈closedBall p r, ψ x=1) + {J : Lp ℝ 1 (μ.restrict (closedBall p R))} + (hJ : IsCanonicalHeatHessian μ Q w v p R ψ J) + (φ : X → ℝ) (hφ : AEStronglyMeasurable φ μ) (D : ℝ≥0) + (hD : ∀ᵐ x ∂μ, |φ x| ≤ D) : + ∃ I : Lp ℝ 1 (μ.restrict (closedBall p r)), + IsCanonicalHeatHessian μ Q w v p r φ I ∧ + I =ᵐ[μ.restrict (closedBall p r)] fun x => φ x*J x := by + have hsub : closedBall p r⊆closedBall p R := closedBall_subset_closedBall hrR + have hJi : IntegrableOn (fun x => J x) (closedBall p R) μ := + memLp_one_iff_integrable.mp (Lp.memLp J) + have hJsmall := hJi.mono_set hsub + have hφJ : Integrable (fun x => φ x*J x) (μ.restrict (closedBall p r)) := + hJsmall.bdd_mul hφ.restrict ((ae_restrict_of_ae hD).mono fun x hx => by simpa only [Real.norm_eq_abs] using hx) + let I := hφJ.toL1 (fun x => φ x*J x) + have hIr : I =ᵐ[μ.restrict (closedBall p r)] fun x => φ x*J x := hφJ.coeFn_toL1 + obtain ⟨A,C,hA,hC,hlim⟩ := hJ + let u (k : ℕ) := heatH1 μ Q (1/(k+1:ℝ)) v + let F (k : ℕ) (x : X) := ψ x*localHessianAction μ Q w (u k) (u k) (A k) (A k) (C k) x + have hFi (k : ℕ) : Integrable (F k) μ := + (localHessianAction_integrable μ Q w (u k) (u k) (A k) (A k) (C k)).bdd_mul hψ + (hB.mono fun x hx => by simpa only [Real.norm_eq_abs] using hx) + have hlimsmall : Tendsto (fun k => ∫ x in closedBall p r, |F k x-J x| ∂μ) atTop (𝓝 0) := by + apply squeeze_zero (fun k => integral_nonneg fun x => abs_nonneg _) ?_ hlim + intro k + exact setIntegral_mono_set ((hFi k).integrableOn.sub hJi).abs + (Eventually.of_forall fun _ => abs_nonneg _) (Eventually.of_forall hsub) + have hweighted := integral_abs_bdd_mul_tendsto_zero (μ.restrict (closedBall p r)) F (fun x => J x) + (fun k => (hFi k).integrableOn) hJsmall hlimsmall φ hφ.restrict D (ae_restrict_of_ae hD) + refine ⟨I,?_,hIr⟩ + refine ⟨A,C,fun k => ae_restrict_of_ae_restrict_of_subset hsub (hA k), + fun k => ae_restrict_of_ae_restrict_of_subset hsub (hC k),?_⟩ + apply hweighted.congr' + refine Eventually.of_forall fun k => integral_congr_ae ?_ + filter_upwards [hIr,ae_restrict_mem measurableSet_closedBall] with x hx hm + dsimp only [F] + rw [hψone x hm,one_mul,hx] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/CenteredAffineSobolev.lean b/lean/OAI/Geometry/RCD/Sobolev/CenteredAffineSobolev.lean new file mode 100644 index 0000000000000000000000000000000000000000..1bde1b8da94262d6453720e7a801bb416a95ab32 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/CenteredAffineSobolev.lean @@ -0,0 +1,37 @@ +import OAI.Geometry.RCD.Coordinates.AffineFitPerturbation + +namespace OAI + +/-! # Sobolev representatives of the centered radial affine fits -/ + +open Set MeasureTheory +open scoped InnerProductSpace ENNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] + (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +def centeredAffineSobolev {n : ℕ} (u : Fin n → SobolevSpace μ hQ) + (η : SobolevSpace μ hQ) (v a : Euclidean n) : SobolevSpace μ hQ := + (-⟪v, a⟫_ℝ) • η + sobolevColumnMap μ hQ u a + +theorem centeredAffineSobolev_harmonic {n : ℕ} (u : Fin n → SobolevSpace μ hQ) + (η : SobolevSpace μ hQ) (v a : Euclidean n) (s : Set X) + (hu : ∀ i, IsSobolevHarmonicOn μ hQ s (u i)) (hη : IsSobolevHarmonicOn μ hQ s η) : + IsSobolevHarmonicOn μ hQ s (centeredAffineSobolev μ hQ u η v a) := + (hη.smul μ hQ (-⟪v, a⟫_ℝ)).add μ hQ (IsSobolevHarmonicOn.linearCombination μ hQ hu a) + +theorem centeredAffineSobolev_restrict {n : ℕ} (u : Fin n → SobolevSpace μ hQ) + (η : SobolevSpace μ hQ) (v a : Euclidean n) (s : Set X) (hs : μ s ≠ ∞) + (hη : SobolevSpace.restrictLp μ hQ s η = restrictedOne μ s hs) : + SobolevSpace.restrictLp μ hQ s (centeredAffineSobolev μ hQ u η v a) = + affineCoordinateMap μ hQ u s hs (-⟪v, a⟫_ℝ, a) := by + rw [centeredAffineSobolev, map_add, map_smul, hη, affineCoordinateMap_apply] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/CenteredHarmonicEnergy.lean b/lean/OAI/Geometry/RCD/Sobolev/CenteredHarmonicEnergy.lean new file mode 100644 index 0000000000000000000000000000000000000000..38019d78d3145d486b3dcf92a7b9afa74627bcd0 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/CenteredHarmonicEnergy.lean @@ -0,0 +1,30 @@ +import OAI.Geometry.RCD.Harmonic.CenteredHarmonicDirection + +namespace OAI + +/-! # Centering preserves the actual rescaled mixed energy -/ + +open Set MeasureTheory +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +omit [ProperSpace X] in +theorem rescaled_local_pairing_of_centering (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + (s : Set X) {r : ℝ} (hr : r ≠ 0) + (u v w z : SobolevSpace μ hQ) + (hw : ∀ q : SobolevSpace μ hQ, localGamma μ hQ w q =ᵐ[μ.restrict s] + fun x => r⁻¹*localGamma μ hQ u q x) + (hz : ∀ q : SobolevSpace μ hQ, localGamma μ hQ z q =ᵐ[μ.restrict s] + fun x => r⁻¹*localGamma μ hQ v q x) : + (fun x => r^2*localGamma μ hQ w z x) =ᵐ[μ.restrict s] localGamma μ hQ u v := by + filter_upwards [hw z,hz u,ae_restrict_of_ae (localGamma_comm μ hQ u z), + ae_restrict_of_ae (localGamma_comm μ hQ v u)] with x h1 h2 h3 h4 + rw [h1,h3,h2,h4] + field_simp + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/CenteredPoissonPinching.lean b/lean/OAI/Geometry/RCD/Sobolev/CenteredPoissonPinching.lean new file mode 100644 index 0000000000000000000000000000000000000000..3fb29c0cbab0eefeda0020d3e8ffae783e2a838f --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/CenteredPoissonPinching.lean @@ -0,0 +1,132 @@ +import OAI.Geometry.RCD.Harmonic.PinchingPairingRestriction +import OAI.Geometry.RCD.Harmonic.FullMassPinching + +namespace OAI + +/-! # Full Bochner mass from the centered Poisson pair estimates -/ + +open Set Metric MeasureTheory +open scoped NNReal ENNReal InnerProductSpace + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) [IsFiniteMeasureOnCompacts μ] (hQ : QuadraticCheegerEnergy μ) + +omit [BorelSpace X] [ProperSpace X] [IsFiniteMeasureOnCompacts μ] in +/-- A local scalar multiple of the common cutoff is the indicated constant. -/ +theorem local_cutoff_smul_representative (S : Set X) (eta : SobolevSpace μ hQ) + (heta : SobolevSpace.toLp μ hQ eta =ᵐ[μ.restrict S] fun _ => (1 : ℝ)) (c : ℝ) : + SobolevSpace.toLp μ hQ (c • eta) =ᵐ[μ.restrict S] fun _ => c := by + change SobolevSpace.toLpCLM μ hQ (c • eta) =ᵐ[μ.restrict S] _ + rw [map_smul] + filter_upwards [heta, ae_restrict_of_ae (Lp.coeFn_smul c (SobolevSpace.toLp μ hQ eta))] with x hx hc + change (c • SobolevSpace.toLp μ hQ eta) x = c + simp only [hc, Pi.smul_apply, smul_eq_mul, hx, mul_one] + +/-- Centering and exact frame changes preserve every input to the full +mass estimate. The mass tested here is the actual joint Poisson measure. -/ +theorem centered_poisson_directional_mass {n : ℕ} + (u : Fin n → SobolevSpace μ hQ) (f : Fin 2 → SobolevSpace μ hQ) + (eta : SobolevSpace μ hQ) (z delta b : Euclidean n) (c : ℝ) + (F N : Euclidean n ≃L[ℝ] Euclidean n) + (Hpair : Euclidean n →L[ℝ] SobolevSpace μ hQ) + (M : PositiveBilinearMeasure X (Euclidean (n + 2))) + {p : X} {r rho C κ beta P H D : ℝ} {L : ℝ≥0} + (chi : GoodLaplacianCutoff μ hQ p rho C) + (hrho : 0 < rho) (hroom : rho < r) + (hC : 0 ≤ C) (hκ : 0 ≤ κ) (hH : 0 ≤ H) (hD : 0 ≤ D) + (hvol : 0 < μ.real (ball p rho)) + (heta : SobolevSpace.toLp μ hQ eta =ᵐ[μ.restrict (closedBall p (2 * rho))] fun _ => (1 : ℝ)) + (hN : IsExactMeanNormalization μ hQ + ((centeredSobolevMap μ hQ u eta z).comp F.toContinuousLinearMap) + (ball p rho) measurableSet_ball N) + (G : ∀ v, LocalHarmonicEnergy μ hQ (sobolevColumnMap μ hQ (poissonSpan μ hQ u f)) M κ p r L v) + (hgradient : ∀ᵐ x ∂μ.restrict (closedBall p (2 * rho)), + localGamma μ hQ (f 1 - f 0 - (c • eta + centeredSobolevMap μ hQ u eta z (F b))) + (f 1 - f 0 - (c • eta + centeredSobolevMap μ hQ u eta z (F b))) x ≤ beta) + (hcoordinates : ∀ v, ∀ᵐ x ∂μ.restrict (closedBall p (2 * rho)), + localGamma μ hQ (centeredSobolevMap μ hQ u eta z (F (N v))) + (centeredSobolevMap μ hQ u eta z (F (N v))) x ≤ H * ‖v‖ ^ 2) + (hrep : ∀ v, SobolevSpace.toLp μ hQ (Hpair v) =ᵐ[μ.restrict (ball p rho)] + localGamma μ hQ (f 1 - f 0) (centeredSobolevMap μ hQ u eta z (F (N v)))) + (herror : ∀ v, ‖normalizeLocalL2 μ (ball p rho) (ne_of_lt (measure_ball_lt_top (μ := μ))) + (SobolevSpace.restrictLp μ hQ (ball p rho) (Hpair v) - + ⟪N.toContinuousLinearMap.adjoint delta, v⟫_ℝ • + restrictedOne μ (ball p rho) (ne_of_lt (measure_ball_lt_top (μ := μ))))‖ ≤ D * ‖v‖) + (hraw : + let a : Euclidean (n + 2) := EuclideanSpace.single (Fin.natAdd n (1 : Fin 2)) 1 - + EuclideanSpace.single (Fin.natAdd n (0 : Fin 2)) 1 + ⟪a, M.massOperator (ball p rho) a⟫_ℝ ≤ P) : + let v := poissonCoordinateLift (F (N (N.toContinuousLinearMap.adjoint delta))) + let Q := ((C / rho ^ 2) / 2 + κ) * μ.real (closedBall p (2 * rho)) + ⟪v, M.massOperator (ball p rho) v⟫_ℝ ≤ + 4 * (P + Q * beta) + 4 * (Q * H) * (D ^ 2 + beta) := by + let U := sobolevColumnMap μ hQ (poissonSpan μ hQ u f) + let A := (poissonCoordinateLiftLinear n).comp (F.toContinuousLinearMap.comp N.toContinuousLinearMap) + let a : Euclidean (n + 2) := EuclideanSpace.single (Fin.natAdd n (1 : Fin 2)) 1 - + EuclideanSpace.single (Fin.natAdd n (0 : Fin 2)) 1 + have ha : U a = f 1 - f 0 := by + rw [map_sub] + exact congrArg₂ HSub.hSub (poissonSpanMap_right μ hQ u f 1) (poissonSpanMap_right μ hQ u f 0) + have hA (v : Euclidean n) : U (A v) = sobolevColumnMap μ hQ u (F (N v)) := + poissonSpanMap_lift μ hQ u f (F (N v)) + have hAb : U (A (N.symm b)) = sobolevColumnMap μ hQ u (F b) := by + rw [hA, N.apply_symm_apply] + have hclosed : ball p rho ⊆ closedBall p (2 * rho) := + ball_subset_closedBall.trans (closedBall_subset_closedBall (by linarith)) + have heta' := ae_restrict_of_ae_restrict_of_subset hclosed heta + have hnormal : sobolevMeanGram μ hQ (U.comp A) (ball p rho) measurableSet_ball = + ContinuousLinearMap.id ℝ (Euclidean n) := by + have hcomp : U.comp A = (sobolevColumnMap μ hQ u).comp (F.toContinuousLinearMap.comp N.toContinuousLinearMap) := by + apply ContinuousLinearMap.ext + intro v + exact hA v + rw [hcomp] + exact uncentered_frame_normalization μ hQ u eta z F N _ measurableSet_ball heta' hN + have hgrad : ∀ᵐ x ∂μ.restrict (closedBall p (2 * rho)), + localGamma μ hQ (U (a - A (N.symm b))) (U (a - A (N.symm b))) x ≤ beta := by + have heq : U (a - A (N.symm b)) - + (f 1 - f 0 - (c • eta + centeredSobolevMap μ hQ u eta z (F b))) = + (c - ⟪z, F b⟫_ℝ) • eta := by + rw [map_sub, ha, hAb] + simp only [centeredSobolevMap_apply, centeredAffineSobolev] + module + have he := localGamma_self_eq_of_constant_difference μ hQ (closedBall p (2 * rho)) + (U (a - A (N.symm b))) (f 1 - f 0 - (c • eta + centeredSobolevMap μ hQ u eta z (F b))) + (c - ⟪z, F b⟫_ℝ) (by + rw [heq] + exact local_cutoff_smul_representative μ hQ _ eta heta _) + filter_upwards [he, hgradient] with x hx hb + exact hx.trans_le hb + have hcoord (v : Euclidean n) : ∀ᵐ x ∂μ.restrict (closedBall p (2 * rho)), + localGamma μ hQ (U (A v)) (U (A v)) x ≤ H * ‖v‖ ^ 2 := by + rw [hA] + have he := localGamma_self_eq_of_constant_difference μ hQ (closedBall p (2 * rho)) + (centeredSobolevMap μ hQ u eta z (F (N v))) (sobolevColumnMap μ hQ u (F (N v))) + (-⟪z, F (N v)⟫_ℝ) (centered_sobolev_constant_difference μ hQ _ u eta z (F (N v)) heta) + filter_upwards [he, hcoordinates v] with x hx hb + exact hx.symm.trans_le hb + have hpair (v : Euclidean n) : SobolevSpace.toLp μ hQ (Hpair v) =ᵐ[μ.restrict (ball p rho)] + localGamma μ hQ (U a) ((U.comp A) v) := by + rw [ContinuousLinearMap.comp_apply, ha, hA] + have he := localGamma_eq_of_constant_difference μ hQ (ball p rho) + (centeredSobolevMap μ hQ u eta z (F (N v))) (sobolevColumnMap μ hQ u (F (N v))) + (f 1 - f 0) (-⟪z, F (N v)⟫_ℝ) + (centered_sobolev_constant_difference μ hQ _ u eta z (F (N v)) heta') + filter_upwards [hrep v, he, + ae_restrict_of_ae (localGamma_comm μ hQ (f 1 - f 0) (centeredSobolevMap μ hQ u eta z (F (N v)))), + ae_restrict_of_ae (localGamma_comm μ hQ (sobolevColumnMap μ hQ u (F (N v))) (f 1 - f 0))] + with x h1 h2 h3 h4 + exact h1.trans (h3.trans (h2.trans h4)) + exact directional_mass_from_pairing_bounds μ hQ U A Hpair M a (N.symm b) + (N.toContinuousLinearMap.adjoint delta) chi hrho hroom hC hκ hH hD hvol + (ne_of_lt (measure_ball_lt_top (μ := μ))) (ne_of_gt (ENNReal.toReal_pos_iff.mp hvol).1) + hnormal G hgrad hcoord hpair herror hraw + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/ClippedPositivePower.lean b/lean/OAI/Geometry/RCD/Sobolev/ClippedPositivePower.lean new file mode 100644 index 0000000000000000000000000000000000000000..ded06b9d5c7265ba2292f906fcd19584aa6d6063 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/ClippedPositivePower.lean @@ -0,0 +1,37 @@ +import OAI.Geometry.RCD.Sobolev.PoissonLocality + +namespace OAI + +/-! # A globally Lipschitz extension of each bounded positive integer power -/ + +open MeasureTheory +open scoped NNReal +noncomputable section +namespace RegularPointCoordinates + +theorem clipped_positive_power_lipschitz (A : ℝ≥0) (n : ℕ) : + LipschitzWith ((n+1:ℕ)*A^n) (fun x : ℝ => (clipReal A x)^(n+1)) := by + apply LipschitzWith.of_dist_le_mul + intro x y + rw [Real.dist_eq] + have h₁ := abs_pow_sub_pow_le (clipReal A x) (clipReal A y) (n+1) + have hM : max |clipReal A x| |clipReal A y| ≤ A := + max_le (clipReal_abs_le _ _) (clipReal_abs_le _ _) + have hp := pow_le_pow_left₀ (le_max_of_le_left (abs_nonneg _)) hM n + have hd := (clipReal_lipschitz A).dist_le_mul x y + simp only [Real.dist_eq,NNReal.coe_one,one_mul] at hd + simp only [Nat.add_sub_cancel,Nat.cast_add,Nat.cast_one] at h₁ + calc + _ ≤ |clipReal A x-clipReal A y| *(n+1:ℝ)*(A:ℝ)^n := + h₁.trans (mul_le_mul_of_nonneg_left hp (by positivity)) + _ ≤ |x-y| *(n+1:ℝ)*(A:ℝ)^n := by gcongr + _ = _ := by push_cast; rw [Real.dist_eq]; ring + +theorem clipped_positive_power_zero (A : ℝ≥0) (n : ℕ) : + (clipReal A 0)^(n+1) = 0 := by rw [clipReal_zero]; simp + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/CoerciveOpenMapping.lean b/lean/OAI/Geometry/RCD/Sobolev/CoerciveOpenMapping.lean new file mode 100644 index 0000000000000000000000000000000000000000..e820c2d0b9a1359e42fc3d1055551657e840cd19 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/CoerciveOpenMapping.lean @@ -0,0 +1,174 @@ +import Mathlib.Analysis.Calculus.LocalExtr.Basic +import Mathlib.Analysis.Calculus.Deriv.Mul +import Mathlib.Analysis.InnerProductSpace.Calculus +import Mathlib.Analysis.SpecialFunctions.Sqrt +import Mathlib.LinearAlgebra.FiniteDimensional.Basic + +namespace OAI + +/-! # A quantitative open-image lemma for the finite coordinate maps + +Minimizing distance to the target plus a smooth distance penalty proves +local surjectivity from a uniform lower differential bound. This is the +finite-dimensional special case needed to pass openness to the limit. +-/ + +open Set Metric Filter +open scoped Topology InnerProductSpace + +noncomputable section +namespace RegularPointCoordinates + +variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] + [FiniteDimensional ℝ E] + +/-- A lower bound on every differential forces a definite ball in the image. +No injectivity or global inverse is required. -/ +theorem ball_subset_image_of_differential_bound {f : E → E} {x : E} {r M : ℝ} + (hr : 0 < r) (hM : 0 < M) + (hf : ContinuousOn f (closedBall x r)) + (hd : ∀ z ∈ ball x r, DifferentiableAt ℝ f z) + (hb : ∀ z ∈ ball x r, ∀ v, ‖v‖ ≤ M * ‖fderiv ℝ f z v‖) : + ball (f x) (r / (8*M)) ⊆ f '' closedBall x r := by + intro y hy + let a := 1 / (2*M) + let penalty : E → ℝ := fun z => Real.sqrt (‖z-x‖^2+(r/2)^2) + let q : E → ℝ := fun z => ‖f z-y‖+a*penalty z + have ha : 0 < a := by dsimp only [a]; positivity + have hp (z : E) : 0 < penalty z := Real.sqrt_pos.mpr (by positivity) + have hpnorm (z : E) : ‖z-x‖ ≤ penalty z := by + dsimp only [penalty] + exact Real.le_sqrt_of_sq_le (by nlinarith [sq_nonneg (r/2)]) + have hpc : Continuous penalty := by dsimp only [penalty]; fun_prop + have hqc : ContinuousOn q (closedBall x r) := + (hf.sub continuousOn_const).norm.add (continuousOn_const.mul hpc.continuousOn) + have hx : x ∈ closedBall x r := mem_closedBall_self hr.le + obtain ⟨z, hz, hmin⟩ := (isCompact_closedBall x r).exists_isMinOn ⟨x,hx⟩ hqc + have hqx : q x < a*r := by + have hp0 : penalty x = r/2 := by simp [penalty, Real.sqrt_sq (by linarith : 0≤r/2)] + have hxy : ‖f x-y‖ < r/(8*M) := by simpa only [mem_ball, dist_eq_norm, norm_sub_rev] using hy + dsimp only [q] + rw [hp0] + have he : r/(8*M) = a*r/4 := by dsimp only [a]; field_simp; ring + rw [he] at hxy + nlinarith + have hqz : q z < a*r := (hmin hx).trans_lt hqx + have hzi : z ∈ ball x r := by + have hlow : a*‖z-x‖ ≤ q z := by + dsimp only [q] + exact (mul_le_mul_of_nonneg_left (hpnorm z) ha.le).trans (le_add_of_nonneg_left (norm_nonneg _)) + rw [mem_ball, dist_eq_norm] + nlinarith + by_contra hnot + have hne : f z-y ≠ 0 := by + intro he + exact hnot ⟨z,hz,sub_eq_zero.mp he⟩ + let J := fderiv ℝ f z + have hJinj : Function.Injective J := by + apply (injective_iff_map_eq_zero J.toLinearMap).mpr + intro v hv + change J v = 0 at hv + have hh := hb z hzi v + change ‖v‖ ≤ M*‖J v‖ at hh + rw [hv, norm_zero, mul_zero] at hh + exact norm_eq_zero.mp (le_antisymm hh (norm_nonneg _)) + obtain ⟨v, hv⟩ := (LinearMap.surjective_of_injective (f := J.toLinearMap) hJinj) (y-f z) + change J v = y-f z at hv + have hvb : ‖v‖ ≤ M*‖f z-y‖ := by + have hh := hb z hzi v + change ‖v‖ ≤ M*‖J v‖ at hh + rw [hv, norm_sub_rev] at hh + exact hh + let c : ℝ → E := fun t => z+t • v + have hc : HasDerivAt c v 0 := by + simpa only [c, one_smul, id_eq] using ((hasDerivAt_id (0:ℝ)).smul_const v).const_add z + have hc0 : c 0 = z := by simp [c] + have hfc : HasDerivAt (fun t => f (c t)-y) (y-f z) 0 := by + have hdf : HasFDerivAt f J (c 0) := by simpa only [hc0] using (hd z hzi).hasFDerivAt + have hh := (hdf.comp_hasDerivAt 0 hc).sub_const y + simpa only [hv, Function.comp_def] using hh + have hnorm : HasDerivAt (fun t => ‖f (c t)-y‖) (-‖f z-y‖) 0 := by + have hh := hfc.norm_sq.sqrt (by simpa only [hc0] using pow_ne_zero 2 (norm_ne_zero_iff.mpr hne)) + simp only [hc0, ← neg_sub (f z) y, inner_neg_right, real_inner_self_eq_norm_sq, + Real.sqrt_sq (norm_nonneg _)] at hh + convert hh using 1 + field_simp [norm_ne_zero_iff.mpr hne] + have hpcd : HasDerivAt (fun t => penalty (c t)) + (⟪z-x,v⟫_ℝ / penalty z) 0 := by + have hh := ((hc.sub_const x).norm_sq.add_const ((r/2)^2)).sqrt + (by simp only [hc0]; positivity) + simpa only [penalty, hc0, mul_div_mul_left _ _ (by norm_num : (2:ℝ)≠0)] using hh + have hinner : ⟪z-x,v⟫_ℝ / penalty z ≤ ‖v‖ := by + apply (div_le_iff₀ (hp z)).mpr + calc + _ ≤ ‖z-x‖*‖v‖ := real_inner_le_norm _ _ + _ ≤ penalty z*‖v‖ := mul_le_mul_of_nonneg_right (hpnorm z) (norm_nonneg _) + _ = _ := mul_comm _ _ + have hloc : IsLocalMin q z := hmin.isLocalMin (closedBall_mem_nhds_of_mem hzi) + have hlocc : IsLocalMin (q ∘ c) 0 := + (show IsLocalMin q (c 0) by simpa only [hc0] using hloc).comp_continuous hc.continuousAt + have hqd := hnorm.add (hpcd.const_mul a) + have hzero := hlocc.hasDerivAt_eq_zero hqd + have hlt : -‖f z-y‖+a*(⟪z-x,v⟫_ℝ / penalty z) < 0 := by + have hstep := mul_le_mul_of_nonneg_left (hinner.trans hvb) ha.le + have he : a*M = 1/2 := by dsimp only [a]; field_simp + rw [← mul_assoc, he] at hstep + have hpos : 0 < ‖f z-y‖ := norm_pos_iff.mpr hne + nlinarith [he] + exact (ne_of_lt hlt) hzero + +/-- A uniform limit of maps with a uniform lower differential bound has +open image, provided the limit is continuous. -/ +theorem isOpen_image_of_uniform_limit_differential_bound + {O : Set E} (hO : IsOpen O) {f : ℕ → E → E} {H : E → E} + (hH : ContinuousOn H O) {M : ℝ} (hM : 0 < M) + (hd : ∀ i z, z ∈ O → DifferentiableAt ℝ (f i) z) + (hb : ∀ i z, z ∈ O → ∀ v, ‖v‖ ≤ M*‖fderiv ℝ (f i) z v‖) + {e : ℕ → ℝ} (he : Tendsto e atTop (𝓝 0)) + (herr : ∀ i z, z ∈ O → dist (f i z) (H z) ≤ e i) : + IsOpen (H '' O) := by + apply Metric.isOpen_iff.mpr + rintro _ ⟨x,hx,rfl⟩ + obtain ⟨s, hs, hball⟩ := Metric.isOpen_iff.mp hO x hx + let r := s/2 + have hr : 0 < r := by dsimp only [r]; positivity + have hK : closedBall x r ⊆ O := by + intro z hz + apply hball + have hh : dist z x ≤ r := hz + change dist z x < s + dsimp only [r] at hh + linarith + let R := r/(8*M) + have hR : 0 < R := by dsimp only [R]; positivity + refine ⟨R/2, by positivity, ?_⟩ + intro y hy + have hxy : dist y (H x) < R/2 := hy + have hgap : 0 < R-dist y (H x) := by linarith + have hclosed : IsClosed (H '' closedBall x r) := + ((isCompact_closedBall x r).image_of_continuousOn (hH.mono hK)).isClosed + apply Set.image_mono hK + apply hclosed.closure_subset + apply Metric.mem_closure_iff.mpr + intro ε hε + obtain ⟨i,hi⟩ := (he.eventually (gt_mem_nhds (lt_min hε hgap))).exists + have htarget : y ∈ ball (f i x) R := by + rw [mem_ball] + calc + dist y (f i x) ≤ dist y (H x)+dist (H x) (f i x) := dist_triangle _ _ _ + _ = dist y (H x)+dist (f i x) (H x) := by rw [dist_comm (H x)] + _ ≤ dist y (H x)+e i := add_le_add_right (herr i x hx) _ + _ < R := by linarith [lt_of_lt_of_le hi (min_le_right _ _)] + obtain ⟨z,hz,hzy⟩ := ball_subset_image_of_differential_bound hr hM + (fun z hz => (hd i z (hK hz)).continuousAt.continuousWithinAt) + (fun z hz => hd i z (hK (ball_subset_closedBall hz))) + (fun z hz => hb i z (hK (ball_subset_closedBall hz))) htarget + refine ⟨H z, ⟨z,hz,rfl⟩, ?_⟩ + rw [← hzy] + exact (herr i z (hK hz)).trans_lt (lt_of_lt_of_le hi (min_le_left _ _)) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/CoerciveQuadraticEnvelope.lean b/lean/OAI/Geometry/RCD/Sobolev/CoerciveQuadraticEnvelope.lean new file mode 100644 index 0000000000000000000000000000000000000000..7dad8a8377e20c837f0ee50caa88befd66239f6f --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/CoerciveQuadraticEnvelope.lean @@ -0,0 +1,36 @@ +import Mathlib + +namespace OAI + +/-! # Coercivity of a quadratic envelope with bounded sources -/ + +open Set Metric +namespace RegularPointCoordinates +variable {X Y : Type*} [MetricSpace X] + +theorem quadratic_envelope_coercive (p : X) {R t B A : ℝ} (hR : 0 ≤ R) + (ht : 0 < t) (point : Y → X) (F : Y → ℝ) (hF : ∀ a, F a ≤ B) + (hd : ∀ a, dist p (point a) ≤ R) (Φ : X → ℝ) + (hΦ : ∀ x, ∃ a, Φ x = dist x (point a) ^ 2 / 2 - t * F a + t * A) + (M : ℝ) : + ∃ L : ℝ, 0 ≤ L ∧ ∀ x, L ≤ dist p x → M ≤ Φ x := by + let L := R + |M| + t * |B| + t * |A| + 2 + refine ⟨L, by dsimp [L]; positivity, ?_⟩ + intro x hx + obtain ⟨a, ha⟩ := hΦ x + have htri := dist_triangle p (point a) x + have hda := hd a + rw [dist_comm (point a) x] at htri + have hFB : t * F a ≤ t * |B| := + mul_le_mul_of_nonneg_left ((hF a).trans (le_abs_self B)) ht.le + have hAA : -(t * |A|) ≤ t * A := by + nlinarith [mul_le_mul_of_nonneg_left (neg_abs_le A) ht.le] + have hMM := le_abs_self M + have hsq := sq_nonneg (dist x (point a) - 1) + dsimp [L] at hx + rw [ha] + nlinarith + +end RegularPointCoordinates + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/ColumnGradientValueBound.lean b/lean/OAI/Geometry/RCD/Sobolev/ColumnGradientValueBound.lean new file mode 100644 index 0000000000000000000000000000000000000000..108cd55b76869041a37a6fe476c7b859a585824a --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/ColumnGradientValueBound.lean @@ -0,0 +1,38 @@ +import OAI.Geometry.RCD.Sobolev.ContinuousLocalGradientBound +import OAI.Geometry.RCD.Harmonic.ColumnRepresentatives + +namespace OAI + +/-! # Pointwise oscillation of the actual coordinate directions -/ + +open Set Metric MeasureTheory +open scoped InnerProductSpace NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +omit [ProperSpace X] in +theorem NoncollapsedRCD.column_value_bound_of_gradient {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (hn : 2 ≤ n) + (u : Fin n → SobolevSpace (hausdorff n X) hX.quadratic) (v : X → Euclidean n) + (p : X) {R : ℝ} (hR : 0 < R) + (hv : ContinuousOn v (ball p (8*R))) + (hrep : ∀ i, SobolevSpace.toLp (hausdorff n X) hX.quadratic (u i) =ᵐ[ + (hausdorff n X).restrict (ball p (8*R))] fun x => v x i) + (z : Euclidean n) (L : ℝ≥0) + (hgrad : ∀ᵐ x ∂(hausdorff n X).restrict (ball p (8*R)), + localGamma (hausdorff n X) hX.quadratic + (sobolevColumnMap (hausdorff n X) hX.quadratic u z) + (sobolevColumnMap (hausdorff n X) hX.quadratic u z) x ≤ (L : ℝ)^2) : + ∀ x ∈ ball p R, |⟪v x-v p,z⟫_ℝ| ≤ (L : ℝ)*dist x p := by + have hb := hX.continuous_local_gradient_bound hn + (sobolevColumnMap (hausdorff n X) hX.quadratic u z) (fun x => ⟪v x,z⟫_ℝ) p hR L + (hv.inner continuousOn_const) + (sobolevColumnMap_representative (hausdorff n X) hX.quadratic u (ball p (8*R)) v hrep z) hgrad + simpa only [inner_sub_left] using hb + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/CompactBadAverage.lean b/lean/OAI/Geometry/RCD/Sobolev/CompactBadAverage.lean new file mode 100644 index 0000000000000000000000000000000000000000..af1186a006db15e24ce98152435cc183ac464cf0 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/CompactBadAverage.lean @@ -0,0 +1,74 @@ +import OAI.Geometry.RCD.Sobolev.FiniteDisjointIntegral +import Mathlib.MeasureTheory.Covering.Vitali +import Mathlib.MeasureTheory.Measure.Real + +namespace OAI + +/-! # The finite Vitali estimate for points with a large ball average + +This is the covering step of De Philippis--Gigli (2018), Proposition 3.2, +Step 2.1. The containing region and the radius cutoff remain explicit. +-/ + +open Set Metric MeasureTheory +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + +theorem compact_bad_average (μ : Measure X) {H Ω : Set X} (hH : IsCompact H) + {f : X → ℝ} (hf : IntegrableOn f Ω μ) + (hf0 : ∀ᵐ x ∂μ.restrict Ω, 0 ≤ f x) + (hfin : ∀ x r, μ (ball x r) ≠ ⊤) + {R D t : ℝ} (hD : 0 ≤ D) (ht : 0 ≤ t) + (hdoub : ∀ x r, 0 < r → r ≤ R → μ.real (ball x (5*r)) ≤ D*μ.real (ball x r)) + (hbad : ∀ x ∈ H, ∃ r : ℝ, 0 < r ∧ r ≤ R ∧ ball x r ⊆ Ω ∧ + t*μ.real (ball x r) ≤ ∫ y in ball x r, f y ∂μ) : + t*μ.real H ≤ D*∫ y in Ω, f y ∂μ := by + classical + choose r hr hR hΩ hav using (fun x : H => hbad x.1 x.2) + obtain ⟨I,hI⟩ := hH.elim_finite_subcover (fun x : H => ball x.1 (r x)) + (fun _ => isOpen_ball) (by + intro x hx + exact mem_iUnion_of_mem ⟨x,hx⟩ (mem_ball_self (hr ⟨x,hx⟩))) + obtain ⟨J,hJI,hdisj,hcover⟩ := Vitali.exists_disjoint_subfamily_covering_enlargement_ball + (I : Set H) (fun x => x.1) r R (fun x _ => hR x) 5 (by norm_num) + have hJ : J.Finite := I.finite_toSet.subset hJI + let ι := J + let : Fintype ι := hJ.fintype + let B : ι → Set X := fun i => ball i.1.1 (r i.1) + let E : ι → Set X := fun i => ball i.1.1 (5*r i.1) + have hcov : H ⊆ ⋃ i, E i := by + intro x hx + obtain ⟨i,hi,hxi⟩ := mem_iUnion₂.mp (hI hx) + obtain ⟨j,hj,hij⟩ := hcover i hi + exact mem_iUnion_of_mem (⟨j,hj⟩ : ι) (hij hxi) + have hEfin : μ (⋃ i, E i) ≠ ⊤ := by + simpa only [Set.mem_univ,iUnion_true] using + (measure_biUnion_ne_top (s := (Set.univ : Set ι)) (Set.toFinite _) + (fun i _ => hfin i.1.1 (5*r i.1))) + have hmass : μ.real H ≤ D*∑ i : ι, μ.real (B i) := by + calc + _ ≤ μ.real (⋃ i, E i) := measureReal_mono hcov hEfin + _ ≤ ∑ i, μ.real (E i) := measureReal_iUnion_fintype_le _ + _ ≤ ∑ i : ι, D*μ.real (B i) := + Finset.sum_le_sum (fun i _ => hdoub i.1.1 (r i.1) (hr i.1) (hR i.1)) + _ = _ := (Finset.mul_sum _ _ _).symm + have havsum : t*(∑ i : ι, μ.real (B i)) ≤ ∑ i : ι, ∫ y in B i, f y ∂μ := by + rw [Finset.mul_sum] + exact Finset.sum_le_sum (fun i _ => hav i.1) + have hisum : (∑ i : ι, ∫ y in B i, f y ∂μ) ≤ ∫ y in Ω, f y ∂μ := by + apply finite_disjoint_setIntegral_le μ (s := B) hf hf0 (fun _ => measurableSet_ball) + (fun i : ι => hΩ i.1) + intro i j hij + exact hdisj i.2 j.2 (fun h => hij (Subtype.ext h)) + calc + _ ≤ t*(D*∑ i : ι, μ.real (B i)) := mul_le_mul_of_nonneg_left hmass ht + _ = D*(t*∑ i : ι, μ.real (B i)) := by ring + _ ≤ D*∑ i : ι, ∫ y in B i, f y ∂μ := mul_le_mul_of_nonneg_left havsum hD + _ ≤ _ := mul_le_mul_of_nonneg_left hisum hD + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/CompactBochnerSobolevMeasure.lean b/lean/OAI/Geometry/RCD/Sobolev/CompactBochnerSobolevMeasure.lean new file mode 100644 index 0000000000000000000000000000000000000000..0ed36f06f8ea92fa44eabedb3159ec46b22bfbc3 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/CompactBochnerSobolevMeasure.lean @@ -0,0 +1,88 @@ +import OAI.Geometry.RCD.Sobolev.CompactBochnerTest +import OAI.Geometry.RCD.Sobolev.BochnerSourceFunctionals +import OAI.Geometry.RCD.Sobolev.PositiveSobolevTestMeasure + +namespace OAI + +/-! # The full Bochner measure on continuous Sobolev tests + +Positivity on continuous compact Sobolev tests gives a finite measure on each +interior ball. The formula retains the square of the L² Laplacian and the +gradient pairing, and hence needs no derivative of that Laplacian. +-/ + +open Set Filter Metric MeasureTheory +open scoped NNReal BoundedContinuousFunction CompactlySupported + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem NoncollapsedRCD.compact_bochner_sobolev_measure {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) [(hausdorff n X).Regular] (hn : 2 ≤ n) + {φ : X → ℝ} {L : ℝ≥0} (hφ : LipschitzWith L φ) (hs : HasCompactSupport φ) + (p : X) (u : SobolevSpace (hausdorff n X) hX.quadratic) + (hu : SobolevSpace.toLp (hausdorff n X) hX.quadratic u =ᵐ[hausdorff n X] φ) + (d : Lp ℝ 2 (hausdorff n X)) (hd : IsWeakLaplacian (hausdorff n X) hX.quadratic u d) + (G : SobolevSpace (hausdorff n X) hX.quadratic) + (hG : SobolevSpace.toLp (hausdorff n X) hX.quadratic G =ᵐ[hausdorff n X] + localGamma (hausdorff n X) hX.quadratic u u) {R : ℝ} (hR : 0 < R) : + ∃ σ : Measure X, IsFiniteMeasure σ ∧ + ∀ (ψ : SobolevSpace (hausdorff n X) hX.quadratic) (v : X → ℝ), + Continuous v → HasCompactSupport v → tsupport v ⊆ ball p R → + SobolevSpace.toLp (hausdorff n X) hX.quadratic ψ =ᵐ[hausdorff n X] v → + (∫ x, v x ∂σ) = + -(1 / 2 : ℝ) * energyForm (hausdorff n X) hX.quadratic G ψ - + K * inner ℝ (SobolevSpace.toLp (hausdorff n X) hX.quadratic ψ) + (SobolevSpace.toLp (hausdorff n X) hX.quadratic G) + + (∫ x, v x * (d x) ^ 2 ∂hausdorff n X) + + weightedGamma (hausdorff n X) hX.quadratic d u ψ := by + let := hX.separable + let := locallyFinite_of_finiteOnBounded (hausdorff n X) hX.finiteOnBounded + let μ := hausdorff n X + have huL := SobolevSpace.minimalSlope_le_lipschitz μ hX.quadratic u hφ hu + let H := SobolevSpace.toLp μ hX.quadratic G + let q := (-(1 / 2 : ℝ)) • G + let ρ := (-K) • H + let T := compactSobolevTestLift μ hX.quadratic (ball p (3 * R / 2)) + let J := (boundedIntegralFunctional μ (fun x => (d x) ^ 2) (Lp.memLp d).integrable_sq).comp + (compactSobolevTests μ hX.quadratic (ball p (3 * R / 2))).subtype + let Φ := (sobolevSourceFunctional μ hX.quadratic q ρ).comp T + J + + (gammaSourceFunctional μ hX.quadratic d u L huL).comp T + have hformula (b : compactSobolevTests μ hX.quadratic (ball p (3 * R / 2))) : Φ b = + -(1 / 2 : ℝ) * energyForm μ hX.quadratic G (T b) - + K * inner ℝ (SobolevSpace.toLp μ hX.quadratic (T b)) H + + (∫ x, (b : X →ᵇ ℝ) x * (d x) ^ 2 ∂μ) + weightedGamma μ hX.quadratic d u (T b) := by + change energyForm μ hX.quadratic ((-(1 / 2 : ℝ)) • G) (T b) + + inner ℝ ((-K) • H) (SobolevSpace.toLp μ hX.quadratic (T b)) + + (∫ x, (b : X →ᵇ ℝ) x * (d x) ^ 2 ∂μ) + weightedGamma μ hX.quadratic d u (T b) = _ + rw [energyForm_smul_left, real_inner_smul_left, real_inner_comm H] + ring + have hΦ (b : compactSobolevTests μ hX.quadratic (ball p (3 * R / 2))) (hb : 0 ≤ (b : X →ᵇ ℝ)) : + 0 ≤ Φ b := by + rw [hformula] + exact hX.compact_bochner_sobolev_test hn hφ hs p u hu d hd G hG (T b) (b : X →ᵇ ℝ).continuous.measurable + (compactSobolevTestLift_coe μ hX.quadratic _ b) ‖(b : X →ᵇ ℝ)‖₊ + (fun x => (b : X →ᵇ ℝ).norm_coe_le_norm x) (fun x => hb x) + obtain ⟨σ, hσ, hσrep⟩ := exists_positive_sobolev_test_measure μ hX.quadratic p hR Φ hΦ + refine ⟨σ, hσ, ?_⟩ + intro ψ v hv hvc hsup hrep + let cv : C_c(X, ℝ) := ⟨⟨v, hv⟩, hvc⟩ + let b : compactSobolevTests μ hX.quadratic (ball p R) := ⟨cv.toBoundedContinuousFunction, hvc, hsup, ψ, hrep⟩ + let b' : compactSobolevTests μ hX.quadratic (ball p (3 * R / 2)) := + ⟨cv.toBoundedContinuousFunction, hvc, hsup.trans (ball_subset_ball (by linarith)), ψ, hrep⟩ + have heq : T b' = ψ := by + apply Subtype.ext + apply Lp.ext + exact (compactSobolevTestLift_coe μ hX.quadratic _ b').trans hrep.symm + have hh := hσrep b + change (∫ x, v x ∂σ) = Φ b' at hh + rw [hformula, heq] at hh + exact hh + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/CompactBochnerTest.lean b/lean/OAI/Geometry/RCD/Sobolev/CompactBochnerTest.lean new file mode 100644 index 0000000000000000000000000000000000000000..3265d4a6beb7b114765d3b217d0fe6c6046acddc --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/CompactBochnerTest.lean @@ -0,0 +1,128 @@ +import OAI.Geometry.RCD.Sobolev.CompactEnergyDensity +import OAI.Geometry.RCD.Sobolev.BochnerSobolevLimit + +namespace OAI + +/-! # Bochner positivity for compact Lipschitz functions with L² Laplacian + +The mixed derivative is integrated by parts before taking the heat-time +limit. Only the L² Laplacian occurs in the resulting formula. +-/ + +open Set Filter MeasureTheory +open scoped NNReal Topology + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem NoncollapsedRCD.compact_bochner_sobolev_test {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) [(hausdorff n X).Regular] (hn : 2 ≤ n) + {φ : X → ℝ} {L : ℝ≥0} (hφ : LipschitzWith L φ) (hs : HasCompactSupport φ) + (p : X) (u : SobolevSpace (hausdorff n X) hX.quadratic) + (hu : SobolevSpace.toLp (hausdorff n X) hX.quadratic u =ᵐ[hausdorff n X] φ) + (d : Lp ℝ 2 (hausdorff n X)) (hd : IsWeakLaplacian (hausdorff n X) hX.quadratic u d) + (G : SobolevSpace (hausdorff n X) hX.quadratic) + (hG : SobolevSpace.toLp (hausdorff n X) hX.quadratic G =ᵐ[hausdorff n X] + localGamma (hausdorff n X) hX.quadratic u u) + (w : SobolevSpace (hausdorff n X) hX.quadratic) {v : X → ℝ} + (hv : Measurable v) (hw : SobolevSpace.toLp (hausdorff n X) hX.quadratic w =ᵐ[hausdorff n X] v) + (C : ℝ≥0) (hvb : ∀ x, |v x| ≤ C) (hv0 : ∀ x, 0 ≤ v x) : + 0 ≤ -(1 / 2 : ℝ) * energyForm (hausdorff n X) hX.quadratic G w - + K * inner ℝ (SobolevSpace.toLp (hausdorff n X) hX.quadratic w) + (SobolevSpace.toLp (hausdorff n X) hX.quadratic G) + + (∫ x, v x * (d x) ^ 2 ∂hausdorff n X) + + weightedGamma (hausdorff n X) hX.quadratic d u w := by + let := hX.separable + let := locallyFinite_of_finiteOnBounded (hausdorff n X) hX.finiteOnBounded + let μ := hausdorff n X + let M : ℝ≥0 := ⟨(L : ℝ) * Real.exp |K|, mul_nonneg L.coe_nonneg (Real.exp_pos _).le⟩ + let B := 4 * |K| * ((M : ℝ) * ‖u‖) ^ 2 + 8 * (M : ℝ) ^ 2 * ‖d‖ ^ 2 + have hB : 0 ≤ B := by dsimp only [B]; positivity + have hLM : (L : ℝ) ≤ M := by + change (L : ℝ) ≤ (L : ℝ) * Real.exp |K| + nlinarith [Real.one_le_exp (abs_nonneg K), L.coe_nonneg] + have huM : ∀ᵐ x ∂μ, SobolevSpace.minimalSlope μ hX.quadratic u x ≤ M := + (SobolevSpace.minimalSlope_le_lipschitz μ hX.quadratic u hφ hu).mono fun _ hx => hx.trans hLM + have hwC : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hX.quadratic w x| ≤ C := + hw.mono fun x hx => hx ▸ hvb x + have hw0 : 0 ≤ SobolevSpace.toLp μ hX.quadratic w := by + apply (Lp.coeFn_nonneg _).mp + exact hw.mono fun x hx => hx ▸ hv0 x + let s (k : ℕ) : ℝ := 1 / ((k : ℝ) + 1) + have hs0 (k : ℕ) : 0 < s k := by dsimp only [s]; positivity + have hs1 (k : ℕ) : s k ≤ 1 := by + dsimp only [s] + apply (div_le_one (by positivity)).mpr + linarith [Nat.cast_nonneg (α := ℝ) k] + let us (k : ℕ) := heatSobolev μ hX.quadratic (s k) (hs0 k) (SobolevSpace.toLp μ hX.quadratic u) + let ds (k : ℕ) := heatAt μ hX.quadratic (s k) d + let Ds (k : ℕ) := heatSobolevMap μ hX.quadratic (s k / 2) (half_pos (hs0 k)) + (-heatGeneratorAt μ hX.quadratic (s k - s k / 2) (SobolevSpace.toLp μ hX.quadratic u)) + have hDs (k : ℕ) : SobolevSpace.toLp μ hX.quadratic (Ds k) = ds k := + heatTail_laplacian_toLp μ hX.quadratic u d hd (hs0 k) + have hus (k : ℕ) : ∀ᵐ x ∂μ, SobolevSpace.minimalSlope μ hX.quadratic (us k) x ≤ M := + hX.heat_compact_uniform_slope hn hφ hs p _ hu.symm (hs0 k) (hs1 k) + have hconv : Tendsto us atTop (𝓝 u) := by + have ht := ((heatH1_continuous μ hX.quadratic u).tendsto 0).comp + (tendsto_one_div_add_atTop_nhds_zero_nat (𝕜 := ℝ)) + simpa only [heatH1_zero, Function.comp_def, heatH1, dite_eq_left (hs0 _), + lt_self_iff_false, dite_false, us, s] using ht + have hdconv : Tendsto ds atTop (𝓝 d) := by + have ht := ((heatAt_continuous μ hX.quadratic d).tendsto 0).comp + (tendsto_one_div_add_atTop_nhds_zero_nat (𝕜 := ℝ)) + simpa only [heatAt_zero, one_apply_eq_self, Function.comp_def, ds, s] using ht + have hex (k : ℕ) := hX.heat_compact_energy_density hn hφ hs p + (SobolevSpace.toLp μ hX.quadratic u) hu.symm (hs0 k) + choose Gs hGs hGsb using hex + have hGsΓ (k : ℕ) : SobolevSpace.toLp μ hX.quadratic (Gs k) =ᵐ[μ] + localGamma μ hX.quadratic (us k) (us k) := + (hGs k).trans (localGamma_self μ hX.quadratic (us k)).symm + have hE (k : ℕ) : energyForm μ hX.quadratic (Gs k) (Gs k) ≤ B := + hX.heat_compact_uniform_gamma_energy hn hφ hs p u hu d hd (hs0 k) (hs1 k) (Gs k) (hGs k) + have hb (k : ℕ) : energyForm μ hX.quadratic (Gs k) w + + 2 * K * inner ℝ (SobolevSpace.toLp μ hX.quadratic w) (SobolevSpace.toLp μ hX.quadratic (Gs k)) - + 2 * (∫ x, v x * (ds k x) ^ 2 ∂μ) - 2 * weightedGamma μ hX.quadratic (ds k) (us k) w ≤ 0 := by + have hboch := hX.heat_bochner_sobolev_test hn p _ (hs0 k) (Gs k) M (hGs k) (hus k) w C hw0 hwC + have hmix := weakLaplacian_mixed_identity_L2 μ hX.quadratic (us k) (Ds k) w C M hwC (hus k) + (heatTail_weak_laplacian μ hX.quadratic (s k) (hs0 k) (SobolevSpace.toLp μ hX.quadratic u)) + rw [hDs] at hmix + have hi : (∫ x, SobolevSpace.toLp μ hX.quadratic w x * (ds k x) ^ 2 ∂μ) = + ∫ x, v x * (ds k x) ^ 2 ∂μ := by + apply integral_congr_ae + exact hw.mono fun x hx => congrArg (fun a => a * (ds k x) ^ 2) hx + rw [hi] at hmix + change energyForm μ hX.quadratic (Gs k) w + + 2 * K * inner ℝ (SobolevSpace.toLp μ hX.quadratic w) (SobolevSpace.toLp μ hX.quadratic (Gs k)) + + 2 * weightedGamma μ hX.quadratic (SobolevSpace.toLp μ hX.quadratic w) (us k) (Ds k) ≤ 0 at hboch + linarith + have hlim := bochner_sobolev_limit μ hX.quadratic M hus huM hconv hdconv hGsΓ hG + hB hE w hv C hvb K hb + linarith + +theorem NoncollapsedRCD.compact_bochner_test {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) [(hausdorff n X).Regular] (hn : 2 ≤ n) + {φ : X → ℝ} {L : ℝ≥0} (hφ : LipschitzWith L φ) (hs : HasCompactSupport φ) + (p : X) (u : SobolevSpace (hausdorff n X) hX.quadratic) + (hu : SobolevSpace.toLp (hausdorff n X) hX.quadratic u =ᵐ[hausdorff n X] φ) + (d : Lp ℝ 2 (hausdorff n X)) (hd : IsWeakLaplacian (hausdorff n X) hX.quadratic u d) + (G : SobolevSpace (hausdorff n X) hX.quadratic) + (hG : SobolevSpace.toLp (hausdorff n X) hX.quadratic G =ᵐ[hausdorff n X] + localGamma (hausdorff n X) hX.quadratic u u) + (w : SobolevSpace (hausdorff n X) hX.quadratic) {v : X → ℝ} {A : ℝ≥0} + (hv : LipschitzWith A v) (hw : SobolevSpace.toLp (hausdorff n X) hX.quadratic w =ᵐ[hausdorff n X] v) + (C : ℝ≥0) (hvb : ∀ x, |v x| ≤ C) (hv0 : ∀ x, 0 ≤ v x) : + 0 ≤ -(1 / 2 : ℝ) * energyForm (hausdorff n X) hX.quadratic G w - + K * inner ℝ (SobolevSpace.toLp (hausdorff n X) hX.quadratic w) + (SobolevSpace.toLp (hausdorff n X) hX.quadratic G) + + (∫ x, v x * (d x) ^ 2 ∂hausdorff n X) + + weightedGamma (hausdorff n X) hX.quadratic d u w := by + exact hX.compact_bochner_sobolev_test hn hφ hs p u hu d hd G hG w + hv.continuous.measurable hw C hvb hv0 + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/CompactBoundaryLayerSequence.lean b/lean/OAI/Geometry/RCD/Sobolev/CompactBoundaryLayerSequence.lean new file mode 100644 index 0000000000000000000000000000000000000000..c1c7f32c9624b4d476c9c5d878ecb549c05cb5ee --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/CompactBoundaryLayerSequence.lean @@ -0,0 +1,72 @@ +import OAI.Geometry.RCD.Sobolev.CompactTestHarmonicLimits +import OAI.Geometry.RCD.Harmonic.HarmonicBoundaryLayer + +namespace OAI + +/-! # The same compactness subsequence retains the boundary-layer estimate -/ + +open Set Metric Filter MeasureTheory +open scoped Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +omit [ProperSpace X] in +theorem CompactHarmonicBoundaryLimit.difference_converges {K : ℝ} {n : ℕ} + {hX : NoncollapsedRCD K n X} + {p : ℕ → X} {r : ℕ → ℝ} {V : ℕ → X → Euclidean n} {S R : ℝ} {ψ : Euclidean n → ℝ} + (d : CompactHarmonicBoundaryLimit hX p r V S R ψ) + (hr : ∀ k, 0 SobolevSpace.toLp (hausdorff n X) hX.quadratic (d.target (d.subsequence k)) x- + SobolevSpace.toLp (hausdorff n X) hX.quadratic (d.boundary (d.subsequence k)) x := by + rw [map_sub] + exact Lp.coeFn_sub _ _ + filter_upwards [hk,ae_restrict_of_ae_restrict_of_subset hsub hrec,ae_restrict_of_ae he] with x hx hy hex + rw [hex] + rcases abs_le.mp hx with ⟨hx₀,hx₁⟩ + rcases abs_le.mp hy with ⟨hy₀,hy₁⟩ + exact abs_le.mpr ⟨by linarith,by linarith⟩ + +theorem CompactHarmonicBoundaryLimit.boundary_layer {K : ℝ} {n : ℕ} + {hX : NoncollapsedRCD K n X} (hn : 2≤n) + {p : ℕ → X} {r ε : ℕ → ℝ} {V : ℕ → X → Euclidean n} {S R : ℝ} {ψ : Euclidean n → ℝ} + (d : CompactHarmonicBoundaryLimit hX p r V S R ψ) + (hr : ∀ k, 0 min (Φ x) M - M) ∧ + HasCompactSupport (fun x => min (Φ x) M - M) ∧ + (∀ x, r < dist p x → min (Φ x) M - M = 0) ∧ + ∀ x ∈ closedBall p R, min (Φ x) M - M = Φ x - M := by + obtain ⟨L₀,hL₀⟩ := hlip (R+1) (by linarith) + let M := Φ p + (L₀ : ℝ) * (R+1) + 1 + obtain ⟨r,hr,hout⟩ := hcoerce M + obtain ⟨L₁,hL₁⟩ := hlip (r+1) (by linarith) + let f : X → ℝ := fun x => min (Φ x) M - M + have hfl : LipschitzOnWith L₁ f (closedBall p (r+1)) := by + apply LipschitzOnWith.of_dist_le_mul + intro x hx y hy + have hm := (LipschitzWith.id.min_const M).dist_le_mul (Φ x) (Φ y) + have he : dist (f x) (f y) = dist (min (Φ x) M) (min (Φ y) M) := by + simp only [f, Real.dist_eq] + congr 1 + ring + rw [he] + have hm' : dist (min (Φ x) M) (min (Φ y) M) ≤ dist (Φ x) (Φ y) := by + simpa only [id_eq,NNReal.coe_one,one_mul] using hm + exact hm'.trans (hL₁.dist_le_mul x hx y hy) + have hf0 (x : X) (hx : r < dist p x) : f x = 0 := by + dsimp [f] + rw [min_eq_right (hout x hx.le),sub_self] + obtain ⟨L,hL⟩ := lipschitz_of_ball_and_zero p hr hfl hf0 + refine ⟨M,r,L,hr,hL,?_,hf0,?_⟩ + · apply HasCompactSupport.intro (isCompact_closedBall p r) + intro x hx + apply hf0 x + simpa only [mem_closedBall,dist_comm,not_le] using hx + · intro x hx + have hx' : x ∈ closedBall p (R+1) := by + exact closedBall_subset_closedBall (by linarith) hx + have hp : p ∈ closedBall p (R+1) := mem_closedBall_self (by linarith) + have hdist : dist x p ≤ R := hx + have hh := hL₀.le_add_mul hx' hp + have hm : Φ x ≤ M := by + dsimp [M] + nlinarith [mul_le_mul_of_nonneg_left hdist L₀.coe_nonneg] + rw [min_eq_left hm] + +end RegularPointCoordinates + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/CompactCoreEnergyExtension.lean b/lean/OAI/Geometry/RCD/Sobolev/CompactCoreEnergyExtension.lean new file mode 100644 index 0000000000000000000000000000000000000000..e9f5a9a93e6944f4aedf714314048e59db4770c9 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/CompactCoreEnergyExtension.lean @@ -0,0 +1,63 @@ +import OAI.Geometry.RCD.Metric.PositiveCoreAELimit +import OAI.Geometry.RCD.Sobolev.IntervalEnergyWeightLimit +import OAI.Geometry.RCD.Sobolev.BoundedWeightIntegralLimit + +namespace OAI + +/-! # Extending the energy inequality to all compact Lipschitz tests + +The same Sobolev family is retained. Positivity and one uniform bound on +the test sequence allow dominated convergence in space and then time. +-/ + +open Set Filter MeasureTheory Metric +open scoped NNReal Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem NoncollapsedRCD.compact_core_energy_extension {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (hn : 2 ≤ n) [(hausdorff n X).Regular] + (z : X) {r a b s t : ℝ} (hsub : Icc s t ⊆ Ioo a b) + (u : Ioo a b → SobolevSpace (hausdorff n X) hX.quadratic) + (hu : AEStronglyMeasurable u (volume.comap Subtype.val)) + {C : ℝ} (hC : 0 ≤ C) (hb : ∀ q, ‖u q‖ ≤ C) + (F G : X → ℝ) (hF : Continuous F) (hG : Continuous G) + (hcore : ∀ ψ : SobolevSpace (hausdorff n X) hX.quadratic, + ψ ∈ compactLaplacianCore (hausdorff n X) hX.quadratic (ball z r) → + ∀ B : ℝ≥0, (∀ᵐ x ∂hausdorff n X, |SobolevSpace.toLp (hausdorff n X) hX.quadratic ψ x| ≤ B) → + (∀ᵐ x ∂hausdorff n X, 0 ≤ SobolevSpace.toLp (hausdorff n X) hX.quadratic ψ x) → + (∫ q in Icc s t, intervalExtension (fun τ => weightedGamma (hausdorff n X) hX.quadratic + (SobolevSpace.toLp (hausdorff n X) hX.quadratic ψ) (u τ) (u τ)) q) ≤ + 2*((∫ x in closedBall z r, SobolevSpace.toLp (hausdorff n X) hX.quadratic ψ x*G x + ∂hausdorff n X) - (∫ x in closedBall z r, + SobolevSpace.toLp (hausdorff n X) hX.quadratic ψ x*F x ∂hausdorff n X))) + (φ : X → ℝ) {L B : ℝ≥0} (hφ : LipschitzWith L φ) (hφc : HasCompactSupport φ) + (hφs : tsupport φ ⊆ ball z r) (hφ0 : ∀ x, 0 ≤ φ x) (hφB : ∀ x, |φ x| ≤ B) : + (∫ q in Icc s t, intervalExtension (fun τ => weightedGamma (hausdorff n X) hX.quadratic + φ (u τ) (u τ)) q) ≤ + 2*((∫ x in closedBall z r, φ x*G x ∂hausdorff n X) - + (∫ x in closedBall z r, φ x*F x ∂hausdorff n X)) := by + let μ := hausdorff n X + let Q := hX.quadratic + obtain ⟨v,hv,hvB,-,hvc⟩ := hX.positive_core_ae_limit hn isOpen_ball φ hφ hφc hφs hφ0 hφB + let w : ℕ → X → ℝ := fun k => SobolevSpace.toLp μ Q (v k) + have hw (k : ℕ) : AEStronglyMeasurable (w k) μ := Lp.aestronglyMeasurable _ + have hwb (k : ℕ) : ∀ᵐ x ∂μ, ‖w k x‖ ≤ B := + (hvB k).mono fun x hx => by simpa only [Real.norm_eq_abs] using hx.2 + have he := weighted_energy_interval_weight_tendsto μ Q w φ hw hwb hvc hsub u hu hC hb + have hp (f : X → ℝ) (hf : Continuous f) : + Tendsto (fun k => ∫ x in closedBall z r, w k x*f x ∂μ) atTop + (𝓝 (∫ x in closedBall z r, φ x*f x ∂μ)) := + bounded_weight_integral_tendsto (μ.restrict (closedBall z r)) w φ + (fun k => (hw k).restrict) (fun k => ae_restrict_of_ae (hwb k)) + (ae_restrict_of_ae hvc) f (hf.continuousOn.integrableOn_compact (isCompact_closedBall z r)) + apply le_of_tendsto_of_tendsto he (((hp G hG).sub (hp F hF)).const_mul 2) + exact Eventually.of_forall fun k => hcore (v k) (hv k) B + ((hvB k).mono fun _ hx => hx.2) ((hvB k).mono fun _ hx => hx.1) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/CompactCutoffSource.lean b/lean/OAI/Geometry/RCD/Sobolev/CompactCutoffSource.lean new file mode 100644 index 0000000000000000000000000000000000000000..988590aba9ca2295eea0548c392284df28c8de47 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/CompactCutoffSource.lean @@ -0,0 +1,74 @@ +import OAI.Geometry.RCD.Sobolev.MeasureLaplacianProduct + +namespace OAI + +/-! # Compact support of the full cutoff source -/ + +open Set MeasureTheory +open scoped BoundedContinuousFunction NNReal + +noncomputable section + +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +omit [MetricSpace X] [BorelSpace X] [ProperSpace X] in +/-- An integrable density vanishing off a measurable set has its whole +signed variation supported there. -/ +theorem signedDensity_variation_compl {f : X → ℝ} (hf : Integrable f μ) + {K : Set X} (hK : MeasurableSet K) (hs : ∀ᵐ x ∂μ, x ∉ K → f x = 0) : + (μ.withDensityᵥ f).variation Kᶜ = 0 := by + apply (VectorMeasure.variation_apply_eq_zero hK.compl).2 + intro s hsK hsm + rw [withDensityᵥ_apply hf hsm] + apply integral_eq_zero_of_ae + filter_upwards [ae_restrict_of_ae hs, ae_restrict_mem hsm] with x hx hxs + exact hx (hsK hxs) + +theorem cutoffSourceDensity_zero_off (g c : SobolevSpace μ hQ) (q : Lp ℝ 2 μ) + (χ : X →ᵇ ℝ) (hc : SobolevSpace.toLp μ hQ c =ᵐ[μ] χ) + {K : Set X} (hχ : ∀ x ∉ K, χ x = 0) + (hq : ∀ᵐ x ∂μ, x ∉ K → q x = 0) : + ∀ᵐ x ∂μ, x ∉ K → cutoffSourceDensity μ hQ g c q x = 0 := by + filter_upwards [hc, hq, localGamma_zero_on_level μ hQ c g 0, + localGamma_comm μ hQ g c] with x hcx hqx hz hcomm hx + have hc0 : SobolevSpace.toLp μ hQ c x = 0 := hcx.trans (hχ x hx) + simp only [cutoffSourceDensity, hqx hx, hcomm, hz hc0, mul_zero, add_zero] + +/-- Both the cutoff function and its full measure Laplacian have the +same support bound as the cutoff and its weak Laplacian. -/ +theorem cutoffMeasureSource_variation_compl (g c : SobolevSpace μ hQ) (q : Lp ℝ 2 μ) + (ν : SignedMeasure X) (χ : X →ᵇ ℝ) + (hc : SobolevSpace.toLp μ hQ c =ᵐ[μ] χ) + {K : Set X} (hK : MeasurableSet K) (hχ : ∀ x ∉ K, χ x = 0) + (hq : ∀ᵐ x ∂μ, x ∉ K → q x = 0) : + (cutoffMeasureSource μ hQ g c q ν χ).variation Kᶜ = 0 := by + have hw := signedSourceWeight_variation_compl ν χ hK hχ + have hd := signedDensity_variation_compl μ (cutoffSourceDensity_integrable μ hQ g c q) + hK (cutoffSourceDensity_zero_off μ hQ g c q χ hc hχ hq) + apply (VectorMeasure.variation_apply_eq_zero hK.compl).2 + intro s hs hsm + rw [cutoffMeasureSource, add_apply, + (VectorMeasure.variation_apply_eq_zero hK.compl).mp hw s hs hsm, + (VectorMeasure.variation_apply_eq_zero hK.compl).mp hd s hs hsm, add_zero] + +omit [ProperSpace X] [BorelSpace X] in +theorem cutoffProduct_zero_off (g c : SobolevSpace μ hQ) (χ : X →ᵇ ℝ) + (hc : SobolevSpace.toLp μ hQ c =ᵐ[μ] χ) (D : ℝ≥0) + (hg : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ g x| ≤ D) + {K : Set X} (hχ : ∀ x ∉ K, χ x = 0) : + ∀ᵐ x ∂μ, x ∉ K → + SobolevSpace.toLp μ hQ (SobolevSpace.product μ hQ g c D ‖χ‖₊) x = 0 := by + have hcb : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ c x| ≤ (‖χ‖₊ : ℝ) := by + filter_upwards [hc] with x hx + simpa only [hx, Real.norm_eq_abs, coe_nnnorm] using χ.norm_coe_le_norm x + filter_upwards [SobolevSpace.product_coe μ hQ g c D ‖χ‖₊ hg hcb, hc] with x hx hcx hKx + rw [hx, hcx, hχ x hKx, mul_zero] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/CompactEnergyDensity.lean b/lean/OAI/Geometry/RCD/Sobolev/CompactEnergyDensity.lean new file mode 100644 index 0000000000000000000000000000000000000000..47186a2fa4e9752299dc56674ad4e297e825eed4 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/CompactEnergyDensity.lean @@ -0,0 +1,111 @@ +import OAI.Geometry.RCD.Heat.HeatCompactUniform +import OAI.Geometry.RCD.Heat.HeatEnergyDensity +import OAI.Geometry.RCD.Sobolev.GammaL2Stability + +namespace OAI + +/-! # Energy densities for compact Lipschitz functions with L² Laplacian + +Heat approximation, the uniform energy estimate, and lower semicontinuity +construct the energy density in the Sobolev space itself. +-/ + +open Set Filter MeasureTheory +open scoped NNReal Topology ENNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem NoncollapsedRCD.compact_energy_density {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) [(hausdorff n X).Regular] (hn : 2 ≤ n) + {φ : X → ℝ} {L : ℝ≥0} (hφ : LipschitzWith L φ) (hs : HasCompactSupport φ) + (p : X) (u : SobolevSpace (hausdorff n X) hX.quadratic) + (hu : SobolevSpace.toLp (hausdorff n X) hX.quadratic u =ᵐ[hausdorff n X] φ) + (d : Lp ℝ 2 (hausdorff n X)) (hd : IsWeakLaplacian (hausdorff n X) hX.quadratic u d) : + ∃ G : SobolevSpace (hausdorff n X) hX.quadratic, + SobolevSpace.toLp (hausdorff n X) hX.quadratic G =ᵐ[hausdorff n X] + localGamma (hausdorff n X) hX.quadratic u u ∧ + (∀ᵐ x ∂hausdorff n X, |SobolevSpace.toLp (hausdorff n X) hX.quadratic G x| ≤ (L : ℝ) ^ 2) ∧ + energyForm (hausdorff n X) hX.quadratic G G ≤ + 4 * |K| * ((L : ℝ) * Real.exp |K| * ‖u‖) ^ 2 + + 8 * ((L : ℝ) * Real.exp |K|) ^ 2 * ‖d‖ ^ 2 := by + let := hX.separable + let := locallyFinite_of_finiteOnBounded (hausdorff n X) hX.finiteOnBounded + let μ := hausdorff n X + let M : ℝ≥0 := ⟨(L : ℝ) * Real.exp |K|, mul_nonneg L.coe_nonneg (Real.exp_pos _).le⟩ + let B := 4 * |K| * ((M : ℝ) * ‖u‖) ^ 2 + 8 * (M : ℝ) ^ 2 * ‖d‖ ^ 2 + have hB : 0 ≤ B := by dsimp only [B]; positivity + have hLM : (L : ℝ) ≤ M := by + change (L : ℝ) ≤ (L : ℝ) * Real.exp |K| + nlinarith [Real.one_le_exp (abs_nonneg K), L.coe_nonneg] + have huL := SobolevSpace.minimalSlope_le_lipschitz μ hX.quadratic u hφ hu + have huM : ∀ᵐ x ∂μ, SobolevSpace.minimalSlope μ hX.quadratic u x ≤ M := + huL.mono fun _ hx => hx.trans hLM + let s (k : ℕ) : ℝ := 1 / ((k : ℝ) + 1) + have hs0 (k : ℕ) : 0 < s k := by dsimp only [s]; positivity + have hs1 (k : ℕ) : s k ≤ 1 := by + dsimp only [s] + apply (div_le_one (by positivity)).mpr + linarith [Nat.cast_nonneg (α := ℝ) k] + let us (k : ℕ) := heatSobolev μ hX.quadratic (s k) (hs0 k) (SobolevSpace.toLp μ hX.quadratic u) + have hus (k : ℕ) : ∀ᵐ x ∂μ, SobolevSpace.minimalSlope μ hX.quadratic (us k) x ≤ M := + hX.heat_compact_uniform_slope hn hφ hs p _ hu.symm (hs0 k) (hs1 k) + have hconv : Tendsto us atTop (𝓝 u) := by + have ht := ((heatH1_continuous μ hX.quadratic u).tendsto 0).comp + (tendsto_one_div_add_atTop_nhds_zero_nat (𝕜 := ℝ)) + simpa only [heatH1_zero, Function.comp_def, heatH1, dite_eq_left (hs0 _), + lt_self_iff_false, dite_false, us, s] using ht + have hex (k : ℕ) := hX.heat_compact_energy_density hn hφ hs p + (SobolevSpace.toLp μ hX.quadratic u) hu.symm (hs0 k) + choose Gs hGs hGsb using hex + let hΓ := localGamma_memLp_of_bounded_gradient μ hX.quadratic u u M huM + let H := hΓ.toLp (localGamma μ hX.quadratic u u) + have hGs_eq (k : ℕ) : SobolevSpace.toLp μ hX.quadratic (Gs k) = + (localGamma_memLp_of_bounded_gradient μ hX.quadratic (us k) (us k) M (hus k)).toLp + (localGamma μ hX.quadratic (us k) (us k)) := by + apply Lp.ext + filter_upwards [hGs k, localGamma_self μ hX.quadratic (us k), + (localGamma_memLp_of_bounded_gradient μ hX.quadratic (us k) (us k) M (hus k)).coeFn_toLp] + with x hx hy hz + exact hx.trans (hy.symm.trans hz.symm) + have hGconv : Tendsto (fun k => SobolevSpace.toLp μ hX.quadratic (Gs k)) atTop (𝓝 H) := by + exact (gammaL2_tendsto μ hX.quadratic M hus huM hconv).congr' + (Eventually.of_forall fun k => (hGs_eq k).symm) + have hE (k : ℕ) : energyForm μ hX.quadratic (Gs k) (Gs k) ≤ B := + hX.heat_compact_uniform_gamma_energy hn hφ hs p u hu d hd (hs0 k) (hs1 k) (Gs k) (hGs k) + have henergy : energyLp μ H ≤ ENNReal.ofReal (B / 2) := by + apply (energyLp_le_liminf μ hGconv).trans + apply liminf_le_of_frequently_le' + apply Eventually.frequently + apply Eventually.of_forall + intro k + have hh := hE k + rw [energyForm_self] at hh + have he : energyLp μ (SobolevSpace.toLp μ hX.quadratic (Gs k)) = + ENNReal.ofReal (SobolevSpace.energy μ hX.quadratic (Gs k)) := + (ENNReal.ofReal_toReal (Gs k).property).symm + rw [he] + exact ENNReal.ofReal_le_ofReal (by linarith) + let G : SobolevSpace μ hX.quadratic := + ⟨H, ne_top_of_le_ne_top ENNReal.ofReal_ne_top henergy⟩ + refine ⟨G, hΓ.coeFn_toLp, ?_, ?_⟩ + · filter_upwards [hΓ.coeFn_toLp, localGamma_self μ hX.quadratic u, huL, + (Lp.coeFn_nonneg _).mpr (SobolevSpace.minimalSlope_nonneg μ hX.quadratic u)] + with x hx hy hL h0 + change |H x| ≤ (L : ℝ) ^ 2 + rw [hx, hy, abs_of_nonneg (sq_nonneg _)] + exact pow_le_pow_left₀ h0 hL 2 + · have he := ENNReal.toReal_mono ENNReal.ofReal_ne_top henergy + rw [ENNReal.toReal_ofReal (by positivity)] at he + change SobolevSpace.energy μ hX.quadratic G ≤ B / 2 at he + rw [energyForm_self] + change 2 * SobolevSpace.energy μ hX.quadratic G ≤ B + linarith + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/CompactEnergyHarmonic.lean b/lean/OAI/Geometry/RCD/Sobolev/CompactEnergyHarmonic.lean new file mode 100644 index 0000000000000000000000000000000000000000..3f608a91aa1ab25214fdc4c02317516afecde615 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/CompactEnergyHarmonic.lean @@ -0,0 +1,58 @@ +import OAI.Geometry.RCD.Sobolev.LocalLipschitzGreenTrace +import OAI.Geometry.RCD.Sobolev.GradientQuadraticEnergy +import OAI.Geometry.RCD.Sobolev.EnergyAffineRigidity + +namespace OAI + +/-! # Sharp compact-test energy variation forces the weak harmonic equation -/ + +open Set Filter MeasureTheory Metric InnerProductSpace Laplacian +open scoped Topology NNReal +noncomputable section +namespace RegularPointCoordinates + +theorem compact_energy_variation_harmonic {n : ℕ} {g ψ : Euclidean n → ℝ} + {S ρ M : ℝ} (hS : 0 g y+t*ψ y) z‖^2)≤ + M+t^2*(∫ z in ball 0 S, ‖fderiv ℝ ψ z‖^2)) : + (∫ z, g z*(Δ ψ) z)=0 := by + obtain ⟨L,hL⟩ := ContDiff.lipschitzWith_of_hasCompactSupport hψ.2.1 hψ.1 (by simp) + have hψlocal : ∀ W ⟨L,hL.lipschitzOnWith⟩ + have hgd := local_lipschitz_derivative hρS hg + have hψd := local_lipschitz_derivative hρS hψlocal + have hzero (A : Set (Euclidean n)) (hA : tsupport ψ⊆A) : + (∫ z in A, ‖fderiv ℝ ψ z‖^2)=∫ z, ‖fderiv ℝ ψ z‖^2 := by + apply setIntegral_eq_integral_of_forall_compl_eq_zero + intro z hz + rw [fderiv_of_notMem_tsupport ℝ (fun hx => hz (hA hx)),norm_zero,zero_pow (by decide : 2≠0)] + have henergy : (∫ z in ball 0 S, ‖fderiv ℝ ψ z‖^2)= + ∫ z in ball 0 ρ, ‖fderiv ℝ ψ z‖^2 := by + rw [hzero _ hψ.2.2,hzero _ hs] + have hcross : (∫ z in ball 0 ρ, inner ℝ (gradient g z) (gradient ψ z))=0 := by + apply energy_affine_rigidity (E := ∫ z in ball 0 ρ, ‖fderiv ℝ g z‖^2) + (M := M) (P := ∫ z in ball 0 ρ, ‖fderiv ℝ ψ z‖^2) + intro t + have hh := hvary t + rw [(gradient_quadratic_energy g ψ (ball 0 ρ) hgd.1 hψd.1 hgd.2 hψd.2 t).2.2, + henergy] at hh + exact hh + have hcrossall : (∫ z, inner ℝ (gradient g z) (gradient ψ z))=0 := by + rw [← hcross] + symm + apply setIntegral_eq_integral_of_forall_compl_eq_zero + intro z hz + have hz' : z∉tsupport ψ := fun hx => hz (hs hx) + simp only [gradient,fderiv_of_notMem_tsupport ℝ hz',map_zero,inner_zero_right] + have hgreen := local_lipschitz_green_trace hS hg hψ + rw [hcrossall] at hgreen + linarith only [hgreen] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/CompactFactorScaledEnergy.lean b/lean/OAI/Geometry/RCD/Sobolev/CompactFactorScaledEnergy.lean new file mode 100644 index 0000000000000000000000000000000000000000..38a6256c1fef657d1bad5c55ee14abea91546c99 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/CompactFactorScaledEnergy.lean @@ -0,0 +1,77 @@ +import OAI.Geometry.RCD.Sobolev.ScaledCompactFactorGradient +import OAI.Geometry.RCD.Heat.ScaledLogarithmSelfGamma +import OAI.Geometry.RCD.Heat.BoundedHeatMixedGramBounds +import OAI.Geometry.RCD.Metric.CompactFactorL2 + +namespace OAI + +/-! # Quantitative energy of the original compact heat factors + +The coefficient is independent of the scaling function, noise and compact +region. No derivative of a logarithmic extension remains in the conclusion. +-/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped NNReal ENNReal +noncomputable section +namespace RegularPointCoordinates.NoncollapsedRCD +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] {K : ℝ} {n : ℕ} (hX : NoncollapsedRCD K n X) + [(hausdorff n X).Regular] [SeparableSpace X] + [IsLocallyFiniteMeasure (hausdorff n X)] (hn : 2 ≤ n) (p : X) + +include hn p in +theorem compact_factor_scaled_energy : + ∃ C D : ℝ, 0 ≤ C ∧ 0 < D ∧ + ∀ {S : Set X} [CompactSpace S] (ν : Measure S) [IsProbabilityMeasure ν] + (ρ : X → ℝ) (hρ : Measurable ρ) (hρ0 : ∀ x, 0 ≤ ρ x) {B : ℝ≥0}, + (∀ᵐ x ∂hausdorff n X, |ρ x| ≤ B) → + ν.map Subtype.val=(hausdorff n X).withDensity (fun x => ENNReal.ofReal (ρ x)) → + ∀ (F : C(S,ℝ)), (∀ y, 0 < F y) → + ∀ {ε s δ : ℝ} (hε : 0 < ε), ε ≤ 1 → (hδ : 0 < δ) → (hδs : δ ≤ s) → s ≤ 1 → + ∀ (z : X) (R : ℝ), 0 ≤ R → (∀ y : S, dist z y ≤ R) → + ∀ (Ω : Set X), IsCompact Ω → + ∀ u : SobolevSpace (hausdorff n X) hX.quadratic, + (SobolevSpace.toLp (hausdorff n X) hX.quadratic u =ᵐ[hausdorff n X] + hX.compactHeatFactor hn p ν F (ε*s/2) + (div_pos (mul_pos hε (hδ.trans_le hδs)) (by norm_num))) → + ∀ᵐ x ∂(hausdorff n X).restrict Ω, + ε^2*localGamma (hausdorff n X) hX.quadratic u u x ≤ + (SobolevSpace.toLp (hausdorff n X) hX.quadratic u x)^2* + (Real.exp |K| *(4*C/δ+16*D*(R+dist z x)^2/δ^2)) := by + obtain ⟨C,D,hC,hD,hdata⟩ := hX.compact_heat_factor_scaled_gradient hn p + refine ⟨C,D,hC,hD,?_⟩ + intro S _ ν _ ρ hρ hρ0 B hB hν F hF ε s δ hε hε1 hδ hδs hs1 z R hR hdist Ω hΩ u hu + let μ := hausdorff n X + let Q := hX.quadratic + have ht : 0 < ε*s/2 := div_pos (mul_pos hε (hδ.trans_le hδs)) (by norm_num) + obtain ⟨P,q,_hq,hP,hgrad⟩ := hdata ν ρ hρ hρ0 hB hν F hF hε hε1 hδ hδs hs1 z R hR hdist Ω hΩ + obtain ⟨f,⟨A,hA⟩,he⟩ := hX.compact_heat_factor_L2 hn p ν ρ hρ hρ0 hB hν F + let hk := hX.canonicalHeatKernel_isContinuousHeatKernel hn p + have hpos (x : X) (_hx : x ∈ Ω) : 0 < kernelHeat μ Q hk (ε*s/2) f x := by + rw [← he _ ht x] + exact hX.compactHeatFactor_positive hn p ν F hF _ ht x + have heq : u=heatSobolev μ Q (ε*s/2) ht f := by + apply Subtype.ext + apply Lp.ext + filter_upwards [hu,kernelHeat_represents_L2 μ Q hk ht f] with x hx hy + exact hx.trans ((he _ ht x).trans hy) + obtain ⟨a,b,ha,hab,hrange⟩ := hX.bounded_heat_positive_range hn p f A hA ht hΩ hpos + have hurange : ∀ᵐ x ∂μ.restrict Ω, SobolevSpace.toLp μ Q u x ∈ Icc a b := by + rw [heq] + exact hrange + have hlog : SobolevSpace.toLp μ Q P =ᵐ[μ.restrict Ω] + fun x => ε*Real.log (SobolevSpace.toLp μ Q u x) := by + filter_upwards [hP,ae_restrict_of_ae hu] with x hx hy + rw [hy] + exact hx + have henergy := scaled_logarithm_self_gamma μ Q u P ha hab hε hurange hlog + filter_upwards [henergy,hgrad,ae_restrict_of_ae (localGamma_self μ Q P)] with x hx hg hs + rw [hx,hs] + exact mul_le_mul_of_nonneg_left hg (sq_nonneg _) + +end RegularPointCoordinates.NoncollapsedRCD + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/CompactGradientRepresentative.lean b/lean/OAI/Geometry/RCD/Sobolev/CompactGradientRepresentative.lean new file mode 100644 index 0000000000000000000000000000000000000000..a6b2863fb92bf76c405db0e4168906d79b5e8679 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/CompactGradientRepresentative.lean @@ -0,0 +1,48 @@ +import OAI.Geometry.RCD.Sobolev.BoundedGradientLipschitz + +namespace OAI + +/-! # Compact Lipschitz representatives from bounded weak gradients -/ + +open Set Filter Metric MeasureTheory TopologicalSpace +open scoped NNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem NoncollapsedRCD.compact_lipschitz_of_gradient {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (hn : 2 ≤ n) + (u : SobolevSpace (hausdorff n X) hX.quadratic) (L : ℝ≥0) + (hL : ∀ᵐ x ∂hausdorff n X, SobolevSpace.minimalSlope (hausdorff n X) hX.quadratic u x ≤ L) + (p : X) (R : ℝ) + (hz : ∀ᵐ x ∂hausdorff n X, R < dist p x → + SobolevSpace.toLp (hausdorff n X) hX.quadratic u x = 0) : + ∃ v : X → ℝ, LipschitzWith L v ∧ HasCompactSupport v ∧ + tsupport v ⊆ closedBall p R ∧ + SobolevSpace.toLp (hausdorff n X) hX.quadratic u =ᵐ[hausdorff n X] v := by + let μ := hausdorff n X + let := hX.separable + let := locallyFinite_of_finiteOnBounded μ hX.finiteOnBounded + let : μ.IsOpenPosMeasure := hX.openPos K n + obtain ⟨v, hv, hrep⟩ := hX.lipschitz_of_bounded_gradient K n hn + (SobolevSpace.minimalSlope_isRelaxed μ hX.quadratic u) L hL + have hzero : v =ᵐ[μ.restrict (closedBall p R)ᶜ] fun _ => 0 := by + apply (ae_restrict_iff' measurableSet_closedBall.compl).mpr + filter_upwards [hz, hrep] with x hx hr hxc + exact hr.symm.trans (hx (by simpa only [mem_compl_iff, mem_closedBall, not_le, dist_comm] using hxc)) + have heq := Measure.eqOn_open_of_ae_eq hzero isClosed_closedBall.isOpen_compl + hv.continuous.continuousOn continuous_const.continuousOn + have hs : tsupport v ⊆ closedBall p R := by + apply closure_minimal _ isClosed_closedBall + intro x hx + by_contra hnot + exact hx (heq hnot) + exact ⟨v, hv, (isCompact_closedBall p R).of_isClosed_subset (isClosed_tsupport _) hs, hs, hrep⟩ + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/CompactIntegralDerivative.lean b/lean/OAI/Geometry/RCD/Sobolev/CompactIntegralDerivative.lean new file mode 100644 index 0000000000000000000000000000000000000000..3ca9555f0f1900f05e8cabbb94e6444de7b71652 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/CompactIntegralDerivative.lean @@ -0,0 +1,48 @@ +import Mathlib.Analysis.Calculus.ParametricIntegral +import Mathlib.MeasureTheory.Function.LocallyIntegrable + +namespace OAI + +/-! # Differentiation on a compact spatial cylinder -/ + +open Set Filter MeasureTheory TopologicalSpace +open scoped Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [TopologicalSpace X] [T2Space X] + [MeasurableSpace X] [BorelSpace X] {μ : Measure X} [IsFiniteMeasureOnCompacts μ] + +theorem compact_integral_hasDerivAt {a b t : ℝ} (ht : t ∈ Ioo a b) + {Ω : Set X} (hΩ : IsCompact Ω) (F G : ℝ → X → ℝ) + (hF : ContinuousOn (Function.uncurry F) (Icc a b ×ˢ Ω)) + (hG : ContinuousOn (Function.uncurry G) (Icc a b ×ˢ Ω)) + (hder : ∀ s ∈ Ioo a b, ∀ x ∈ Ω, HasDerivAt (fun r => F r x) (G s x) s) : + HasDerivAt (fun s => ∫ x in Ω, F s x ∂μ) (∫ x in Ω, G t x ∂μ) t := by + have hFs (s : ℝ) (hs : s ∈ Icc a b) : ContinuousOn (F s) Ω := + hF.comp (continuous_const.prodMk continuous_id).continuousOn (fun x hx => ⟨hs,hx⟩) + have hGs (s : ℝ) (hs : s ∈ Icc a b) : ContinuousOn (G s) Ω := + hG.comp (continuous_const.prodMk continuous_id).continuousOn (fun x hx => ⟨hs,hx⟩) + obtain ⟨M,hM⟩ := (isCompact_Icc.prod hΩ).exists_bound_of_continuousOn hG + have hfin : IsFiniteMeasure (μ.restrict Ω) := ⟨by + rw [Measure.restrict_apply_univ] + exact hΩ.measure_lt_top⟩ + have hm : ∀ᶠ s in 𝓝 t, AEStronglyMeasurable (F s) (μ.restrict Ω) := by + filter_upwards [Ioo_mem_nhds ht.1 ht.2] with s hs + exact (hFs s (Ioo_subset_Icc_self hs)).aestronglyMeasurable hΩ.measurableSet + exact (hasDerivAt_integral_of_dominated_loc_of_deriv_le (Ioo_mem_nhds ht.1 ht.2) + hm ((hFs t (Ioo_subset_Icc_self ht)).integrableOn_compact hΩ) + ((hGs t (Ioo_subset_Icc_self ht)).aestronglyMeasurable hΩ.measurableSet) + (by + filter_upwards [ae_restrict_mem hΩ.measurableSet] with x hx + intro s hs + exact hM (s,x) ⟨Ioo_subset_Icc_self hs,hx⟩) + (integrable_const M) + (by + filter_upwards [ae_restrict_mem hΩ.measurableSet] with x hx + exact fun s hs => hder s hs x hx)).2 + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/CompactLaplacian.lean b/lean/OAI/Geometry/RCD/Sobolev/CompactLaplacian.lean new file mode 100644 index 0000000000000000000000000000000000000000..b5d3ce8a7a04a8632965d0ec94cc50071863fbf2 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/CompactLaplacian.lean @@ -0,0 +1,61 @@ +import OAI.Analysis.RCDHeat.ExistingAnalytic + +namespace OAI + +/-! +# Zero total mass of a compactly supported weak Laplacian + +A radial Sobolev cutoff supplies the test function equal to one on both +supports. Locality makes its energy pairing vanish. No constant global +Sobolev function or finiteness of the ambient measure is needed. +-/ + +open Set MeasureTheory +open scoped InnerProductSpace + +noncomputable section + +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) [IsFiniteMeasureOnCompacts μ] + (hQ : QuadraticCheegerEnergy μ) + +/-- The integral of a weak Laplacian vanishes when the function and source +are both supported in a fixed ball. -/ +theorem integral_weakLaplacian_eq_zero (u : SobolevSpace μ hQ) (q : Lp ℝ 2 μ) + (hd : IsWeakLaplacian μ hQ u q) (p : X) {R : ℝ} (hR : 0 < R) + (hu : ∀ᵐ x ∂μ, R < dist p x → SobolevSpace.toLp μ hQ u x = 0) + (hq : ∀ᵐ x ∂μ, R < dist p x → q x = 0) : + ∫ x, q x ∂μ = 0 := by + let η := radialSobolevCutoff μ hQ p hR + have hη : SobolevSpace.toLp μ hQ η =ᵐ[μ] radialCutoff p R := + radialSobolevCutoff_coe μ hQ p hR + have hgamma : localGamma μ hQ u η =ᵐ[μ] fun _ => 0 := by + filter_upwards [localGamma_zero_on_level μ hQ u η 0, + localGamma_zero_on_level μ hQ η u 1, localGamma_comm μ hQ u η, + hη, hu] with x hzu hzη hc he hx + by_cases hin : dist p x ≤ R + · exact hc.trans (hzη (he.trans (radialCutoff_eq_one p hR hin))) + · exact hzu (hx (lt_of_not_ge hin)) + have henergy : energyForm μ hQ u η = 0 := by + rw [← integral_localGamma_eq_energyForm] + exact (integral_congr_ae hgamma).trans (by simp) + have hinner : ⟪q, SobolevSpace.toLp μ hQ η⟫_ℝ = ∫ x, q x ∂μ := by + rw [L2.inner_def] + apply integral_congr_ae + filter_upwards [hη, hq] with x he hx + by_cases hin : dist p x ≤ R + · rw [he, radialCutoff_eq_one p hR hin] + simp + · rw [hx (lt_of_not_ge hin)] + simp + have he := hd η + rw [henergy, hinner] at he + linarith + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/CompactLipschitzLocalization.lean b/lean/OAI/Geometry/RCD/Sobolev/CompactLipschitzLocalization.lean new file mode 100644 index 0000000000000000000000000000000000000000..1a5b466ca0ecf31086b0bdc8e1acfe369aaa9ef3 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/CompactLipschitzLocalization.lean @@ -0,0 +1,64 @@ +import Mathlib + +namespace OAI + +/-! # Global Lipschitz bounds from one ball and vanishing outside it -/ + +open Set Metric +open scoped NNReal +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] + +theorem lipschitz_of_ball_and_zero (p : X) {R : ℝ} (hR : 0 ≤ R) + {f : X → ℝ} {L : ℝ≥0} (hf : LipschitzOnWith L f (closedBall p (R + 1))) + (hz : ∀ x, R < dist p x → f x = 0) : + ∃ C : ℝ≥0, LipschitzWith C f := by + let B : ℝ := |f p| + (L : ℝ) * (R + 1) + have hB : 0 ≤ B := by dsimp [B]; positivity + have hb (x : X) : |f x| ≤ B := by + by_cases hx : dist p x ≤ R + · have hxp : x ∈ closedBall p (R + 1) := by + rw [mem_closedBall, dist_comm]; linarith + have hpp : p ∈ closedBall p (R + 1) := mem_closedBall_self (by linarith) + have hh := (lipschitzOnWith_iff_dist_le_mul.mp hf) x hxp p hpp + rw [Real.dist_eq, dist_comm x p] at hh + have he := abs_add_le (f x - f p) (f p) + rw [sub_add_cancel] at he + dsimp [B] + nlinarith [mul_le_mul_of_nonneg_left hx L.coe_nonneg] + · rw [hz x (lt_of_not_ge hx), abs_zero] + exact hB + let C : ℝ≥0 := max L ⟨B,hB⟩ + have hLC : (L : ℝ) ≤ C := by exact_mod_cast le_max_left L (⟨B,hB⟩ : ℝ≥0) + have hBC : B ≤ C := by exact_mod_cast le_max_right L (⟨B,hB⟩ : ℝ≥0) + refine ⟨C, LipschitzWith.of_dist_le_mul fun x y => ?_⟩ + have hnear (a b : X) (ha : a ∈ closedBall p (R + 1)) + (hb : b ∈ closedBall p (R + 1)) : dist (f a) (f b) ≤ (C : ℝ) * dist a b := + ((lipschitzOnWith_iff_dist_le_mul.mp hf) a ha b hb).trans + (mul_le_mul_of_nonneg_right hLC dist_nonneg) + by_cases hx : x ∈ closedBall p (R + 1) + · by_cases hy : y ∈ closedBall p (R + 1) + · exact hnear x y hx hy + · have hyp : R + 1 < dist p y := by simpa [mem_closedBall,dist_comm] using hy + have hy0 := hz y (by linarith) + by_cases hxR : dist p x ≤ R + · have hxy : 1 ≤ dist x y := by linarith [dist_triangle p x y] + rw [hy0,Real.dist_eq,sub_zero] + exact (hb x).trans (hBC.trans (by nlinarith [C.coe_nonneg])) + · rw [hz x (lt_of_not_ge hxR),hy0,dist_self] + positivity + · have hxp : R + 1 < dist p x := by simpa [mem_closedBall,dist_comm] using hx + have hx0 := hz x (by linarith) + by_cases hyR : dist p y ≤ R + · have hxy : 1 ≤ dist x y := by + have hh := dist_triangle p y x + rw [dist_comm y x] at hh + linarith + rw [hx0,Real.dist_eq,zero_sub,abs_neg] + exact (hb y).trans (hBC.trans (by nlinarith [C.coe_nonneg])) + · rw [hx0,hz y (lt_of_not_ge hyR),dist_self] + positivity + +end RegularPointCoordinates + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/CompactLipschitzSobolevBound.lean b/lean/OAI/Geometry/RCD/Sobolev/CompactLipschitzSobolevBound.lean new file mode 100644 index 0000000000000000000000000000000000000000..6db8a8cf66f18d99261116f3a6cf914b3e05d61c --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/CompactLipschitzSobolevBound.lean @@ -0,0 +1,52 @@ +import OAI.Analysis.RCDHeat.ExistingAnalytic + +namespace OAI + +/-! # A uniform Sobolev bound from compact support and Lipschitz bounds -/ + +open Set Filter MeasureTheory +open scoped Topology NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) [IsFiniteMeasureOnCompacts μ] + (Q : QuadraticCheegerEnergy μ) + +theorem compact_lipschitz_sobolev_uniform_bound {s : Set X} (hs : IsCompact s) + (A L : ℝ≥0) : + ∃ C : ℝ, 0 ≤ C ∧ ∀ (u : SobolevSpace μ Q) (f : X → ℝ), + LipschitzWith L f → (∀ x, |f x| ≤ A) → (∀ x ∉ s, f x = 0) → + SobolevSpace.toLp μ Q u =ᵐ[μ] f → ‖u‖ ≤ C := by + let U : Lp ℝ 2 μ := indicatorConstLp 2 hs.measurableSet hs.measure_lt_top.ne (A:ℝ) + let V : Lp ℝ 2 μ := indicatorConstLp 2 hs.measurableSet hs.measure_lt_top.ne (L:ℝ) + have hU : U =ᵐ[μ] s.indicator (fun _ => (A:ℝ)) := indicatorConstLp_coeFn + have hV : V =ᵐ[μ] s.indicator (fun _ => (L:ℝ)) := indicatorConstLp_coeFn + refine ⟨‖U‖+‖V‖,by positivity,?_⟩ + intro u f hf hb hz he + have hv : ‖SobolevSpace.toLp μ Q u‖ ≤ ‖U‖ := by + apply Lp.norm_le_norm_of_ae_le + filter_upwards [he,hU] with x hx hux + rw [hx,hux,Real.norm_eq_abs,Real.norm_eq_abs] + by_cases hxs : x ∈ s + · simpa only [indicator_of_mem hxs,abs_of_nonneg A.coe_nonneg] using hb x + · simp only [indicator_of_notMem hxs,hz x hxs,abs_zero,le_refl] + have hd : ‖SobolevSpace.minimalSlope μ Q u‖ ≤ ‖V‖ := by + apply Lp.norm_le_norm_of_ae_le + filter_upwards [SobolevSpace.minimalSlope_le_lipschitz μ Q u hf he, + (Lp.coeFn_nonneg _).mpr (SobolevSpace.minimalSlope_nonneg μ Q u), + SobolevSpace.minimalSlope_zero_on_zero μ Q u,he,hV] with x hx hn hzero heq hvx + rw [Real.norm_eq_abs,abs_of_nonneg hn,hvx,Real.norm_eq_abs] + by_cases hxs : x ∈ s + · simpa only [indicator_of_mem hxs,abs_of_nonneg L.coe_nonneg] using hx + · rw [indicator_of_notMem hxs,abs_zero,hzero (heq.trans (hz x hxs))] + have hnorm := SobolevSpace.norm_sq μ Q u + rw [SobolevSpace.normSq,← SobolevSpace.minimalSlope_norm_sq] at hnorm + have hu := norm_nonneg (SobolevSpace.toLp μ Q u) + have hd0 := norm_nonneg (SobolevSpace.minimalSlope μ Q u) + nlinarith [norm_nonneg u,norm_nonneg U,norm_nonneg V] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/CompactLipschitzTests.lean b/lean/OAI/Geometry/RCD/Sobolev/CompactLipschitzTests.lean new file mode 100644 index 0000000000000000000000000000000000000000..b91a878431159da9ad4b758be72a4aa3355dffc7 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/CompactLipschitzTests.lean @@ -0,0 +1,93 @@ +import OAI.Geometry.RCD.Sobolev.LocalizedGradientPair +import OAI.Geometry.RCD.Sobolev.BoundaryMaximum +import Mathlib.Topology.ContinuousMap.CompactlySupported + +namespace OAI + +/-! # Compact Lipschitz tests and their Sobolev classes -/ + +open Set Filter MeasureTheory +open scoped NNReal BoundedContinuousFunction + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + +def compactLipschitzTests (Ω : Set X) : Submodule ℝ (X →ᵇ ℝ) where + carrier := {f | ∃ L : ℝ≥0, LipschitzWith L f ∧ HasCompactSupport ((f : X →ᵇ ℝ) : X → ℝ) ∧ tsupport f ⊆ Ω} + zero_mem' := ⟨0, LipschitzWith.const 0, HasCompactSupport.zero, by simp⟩ + add_mem' := by + rintro f g ⟨L, hL, hf, hs⟩ ⟨M, hM, hg, ht⟩ + refine ⟨L + M, hL.add hM, hf.add hg, ?_⟩ + exact (tsupport_add _ _).trans (union_subset hs ht) + smul_mem' := by + rintro c f ⟨L, hL, hf, hs⟩ + refine ⟨‖c‖₊ * L, (lipschitzWith_smul c).comp hL, hf.smul_left, ?_⟩ + exact (tsupport_smul_subset_right (fun _ => c) _).trans hs + +omit [MeasurableSpace X] [BorelSpace X] in +theorem compactLipschitzTests_sup_zero {Ω : Set X} (f : compactLipschitzTests Ω) : + (f : X →ᵇ ℝ) ⊔ 0 ∈ compactLipschitzTests Ω := by + obtain ⟨L, hL, hc, hs⟩ := f.property + have hsupport : tsupport ((f : X →ᵇ ℝ) ⊔ 0) ⊆ tsupport (f : X →ᵇ ℝ) := by + apply closure_mono + intro x hx + change max ((f : X →ᵇ ℝ) x) 0 ≠ 0 at hx + change (f : X →ᵇ ℝ) x ≠ 0 + intro hz + exact hx (by simp [hz]) + exact ⟨L, hL.max_const 0, + hc.of_isClosed_subset (isClosed_tsupport _) hsupport, hsupport.trans hs⟩ + +variable (μ : Measure X) [IsFiniteMeasureOnCompacts μ] (hQ : QuadraticCheegerEnergy μ) + +private def testSobolev (Ω : Set X) (f : compactLipschitzTests Ω) : SobolevSpace μ hQ := + SobolevSpace.ofLipschitzCompact μ hQ f.property.choose_spec.1 f.property.choose_spec.2.1 + +private theorem testSobolev_coe (Ω : Set X) (f : compactLipschitzTests Ω) : + SobolevSpace.toLp μ hQ (testSobolev μ hQ Ω f) =ᵐ[μ] ((f : X →ᵇ ℝ) : X → ℝ) := + SobolevSpace.ofLipschitzCompact_coe μ hQ _ _ + +/-- The lift is linear because its actual L² representative is the test. -/ +def compactTestSobolev (Ω : Set X) : compactLipschitzTests Ω →ₗ[ℝ] SobolevSpace μ hQ where + toFun := testSobolev μ hQ Ω + map_add' f g := by + apply Subtype.ext + apply Lp.ext + exact (testSobolev_coe μ hQ Ω (f + g)).trans + ((testSobolev_coe μ hQ Ω f).add (testSobolev_coe μ hQ Ω g) |>.symm.trans + (Lp.coeFn_add _ _).symm) + map_smul' c f := by + apply Subtype.ext + apply Lp.ext + exact (testSobolev_coe μ hQ Ω (c • f)).trans + ((testSobolev_coe μ hQ Ω f).const_smul c |>.symm.trans (Lp.coeFn_smul c _).symm) + +theorem compactTestSobolev_coe (Ω : Set X) (f : compactLipschitzTests Ω) : + SobolevSpace.toLp μ hQ (compactTestSobolev μ hQ Ω f) =ᵐ[μ] ((f : X →ᵇ ℝ) : X → ℝ) := + testSobolev_coe μ hQ Ω f + +/-- A local distribution of the form energy pairing plus a constant density. -/ +def compactTestEnergy (Ω : Set X) (q : SobolevSpace μ hQ) (a : ℝ) : + compactLipschitzTests Ω →ₗ[ℝ] ℝ where + toFun f := energyForm μ hQ q (compactTestSobolev μ hQ Ω f) + a * ∫ x, (f : X →ᵇ ℝ) x ∂μ + map_add' f g := by + rw [map_add, energyForm_add_right] + have hf : Integrable (f : X →ᵇ ℝ) μ := (f : X →ᵇ ℝ).continuous.integrable_of_hasCompactSupport f.property.choose_spec.2.1 + have hg : Integrable (g : X →ᵇ ℝ) μ := (g : X →ᵇ ℝ).continuous.integrable_of_hasCompactSupport g.property.choose_spec.2.1 + change _ + a * ∫ x, (f : X →ᵇ ℝ) x + (g : X →ᵇ ℝ) x ∂μ = _ + rw [integral_add hf hg] + ring + map_smul' c f := by + rw [map_smul, energyForm_smul_right] + change _ + a * ∫ x, c * (f : X →ᵇ ℝ) x ∂μ = _ + rw [integral_const_mul] + simp only [smul_eq_mul, RingHom.id_apply] + ring + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/CompactMeasureLaplacian.lean b/lean/OAI/Geometry/RCD/Sobolev/CompactMeasureLaplacian.lean new file mode 100644 index 0000000000000000000000000000000000000000..d0e7305d95205a7a3cee131441037050a47cb1c8 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/CompactMeasureLaplacian.lean @@ -0,0 +1,98 @@ +import OAI.Geometry.RCD.Heat.HeatKernelRows +import OAI.Geometry.RCD.Coordinates.WeightedBilinearMeasure + +namespace OAI + +/-! +# Compactly supported measure Laplacians and continuous Sobolev tests + +`IsMeasureLaplacian` records the distributional integration-by-parts identity +on continuous compactly supported Sobolev tests. It is a definition, not an +existence assumption. The cutoff argument extends this identity to arbitrary +continuous Sobolev representatives when the function and its full signed +Laplacian have compact support. In particular it applies to positive-time +kernel rows without removing singular mass. +-/ + +open Set MeasureTheory +open scoped InnerProductSpace BoundedContinuousFunction NNReal + +noncomputable section + +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +/-- The weak measure-valued Laplacian, tested on continuous compactly +supported Sobolev representatives. -/ +def IsMeasureLaplacian (u : SobolevSpace μ hQ) (ν : SignedMeasure X) : Prop := + ∀ (φ : SobolevSpace μ hQ) (v : X → ℝ), Continuous v → HasCompactSupport v → + SobolevSpace.toLp μ hQ φ =ᵐ[μ] v → + energyForm μ hQ u φ = -(∫ᵛ x, v x ∂<•ν) + +/-- Compact support of both the function and the full signed source allows +all continuous Sobolev representatives as tests. -/ +theorem IsMeasureLaplacian.test_continuous + {u : SobolevSpace μ hQ} {ν : SignedMeasure X} + (hν : IsMeasureLaplacian μ hQ u ν) (c : X) {R : ℝ} (hR : 0 < R) + (hu : ∀ᵐ x ∂μ, R < dist c x → SobolevSpace.toLp μ hQ u x = 0) + (hsν : ν.variation (Metric.closedBall c R)ᶜ = 0) + (φ : SobolevSpace μ hQ) {v : X → ℝ} (hv : Continuous v) + (hφ : SobolevSpace.toLp μ hQ φ =ᵐ[μ] v) : + energyForm μ hQ u φ = -(∫ᵛ x, v x ∂<•ν) := by + let η := radialCutoff c R + have hη : LipschitzWith _ η := radialCutoff_lipschitz c hR + have hsη : HasCompactSupport η := radialCutoff_hasCompactSupport c hR + have hbη (x : X) : |η x| ≤ ((1 : ℝ≥0) : ℝ) := by + rw [abs_of_nonneg (radialCutoff_bounds c R x).1] + exact (radialCutoff_bounds c R x).2 + have hnη (x : X) : 0 ≤ η x := (radialCutoff_bounds c R x).1 + let ψ := SobolevSpace.cutoffCLM μ hQ hη hsη hbη hnη φ + have hψ : SobolevSpace.toLp μ hQ ψ =ᵐ[μ] fun x => η x * v x := by + filter_upwards [SobolevSpace.cutoffCLM_coe μ hQ hη hsη hbη hnη φ, hφ] with x hx he + exact hx.trans (by rw [he]) + have hg : localGamma μ hQ u ψ =ᵐ[μ] localGamma μ hQ u φ := by + filter_upwards [localGamma_eq_on_eq μ hQ ψ φ u, + localGamma_comm μ hQ u ψ, localGamma_comm μ hQ u φ, + localGamma_zero_on_level μ hQ u ψ 0, localGamma_zero_on_level μ hQ u φ 0, + hψ, hφ, hu] with x he hc hc' hz hz' hx hx' hux + by_cases hin : dist c x ≤ R + · rw [hc, hc'] + apply he + rw [hx, hx'] + change radialCutoff c R x * v x = v x + rw [radialCutoff_eq_one c hR hin, one_mul] + · rw [hz (hux (lt_of_not_ge hin)), hz' (hux (lt_of_not_ge hin))] + have henergy : energyForm μ hQ u ψ = energyForm μ hQ u φ := by + rw [← integral_localGamma_eq_energyForm, ← integral_localGamma_eq_energyForm] + exact integral_congr_ae hg + have hae : (fun x => η x * v x) =ᵐ[ν.variation] v := by + have hm : ∀ᵐ x ∂ν.variation, x ∈ Metric.closedBall c R := + ae_iff.mpr hsν + filter_upwards [hm] with x hx + change radialCutoff c R x * v x = v x + rw [radialCutoff_eq_one c hR (by simpa only [Metric.mem_closedBall, dist_comm] using hx), one_mul] + have he := hν ψ (fun x => η x * v x) (hη.continuous.mul hv) hsη.mul_right hψ + rw [henergy, VectorMeasure.integral_congr_ae hae] at he + exact he + +variable [μ.Regular] {p : ℝ → X → X → ℝ} (hp : IsContinuousHeatKernel μ hQ p) + +/-- Integration by parts against the actual continuous heat-kernel row. -/ +theorem IsMeasureLaplacian.test_heatKernel + {u : SobolevSpace μ hQ} {ν : SignedMeasure X} + (hν : IsMeasureLaplacian μ hQ u ν) (c : X) {R : ℝ} (hR : 0 < R) + (hu : ∀ᵐ x ∂μ, R < dist c x → SobolevSpace.toLp μ hQ u x = 0) + (hsν : ν.variation (Metric.closedBall c R)ᶜ = 0) + {t : ℝ} (ht : 0 < t) (x : X) : + energyForm μ hQ u (heatKernelSobolev μ hQ hp t ht x) = + -(∫ᵛ z, p t x z ∂<•ν) := + hν.test_continuous μ hQ c hR hu hsν _ (hp.continuous_right t ht x) + (heatKernelSobolev_coe μ hQ hp ht x) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/CompactMixedEnergy.lean b/lean/OAI/Geometry/RCD/Sobolev/CompactMixedEnergy.lean new file mode 100644 index 0000000000000000000000000000000000000000..9d6e90eecce5d23ba07de0d68fd5b048104f63b9 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/CompactMixedEnergy.lean @@ -0,0 +1,50 @@ +import OAI.Geometry.RCD.Sobolev.CompactEnergyDensity +import OAI.Geometry.RCD.Sobolev.FiniteEnergyRepresentatives +import OAI.Geometry.RCD.Sobolev.WeakLaplacianDomain + +namespace OAI + +/-! # Sobolev representatives of mixed gradients of regular compact functions -/ + +open Set Filter MeasureTheory +open scoped NNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem NoncollapsedRCD.compact_mixed_energy {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) [(hausdorff n X).Regular] (hn : 2 ≤ n) (p : X) + (f g : SobolevSpace (hausdorff n X) hX.quadratic) + {φ ψ : X → ℝ} {L M : ℝ≥0} + (hφ : LipschitzWith L φ) (hcφ : HasCompactSupport φ) + (hf : SobolevSpace.toLp (hausdorff n X) hX.quadratic f =ᵐ[hausdorff n X] φ) + (hψ : LipschitzWith M ψ) (hcψ : HasCompactSupport ψ) + (hg : SobolevSpace.toLp (hausdorff n X) hX.quadratic g =ᵐ[hausdorff n X] ψ) + (df dg : Lp ℝ 2 (hausdorff n X)) + (hdf : IsWeakLaplacian (hausdorff n X) hX.quadratic f df) + (hdg : IsWeakLaplacian (hausdorff n X) hX.quadratic g dg) : + ∃ G : SobolevSpace (hausdorff n X) hX.quadratic, + SobolevSpace.toLp (hausdorff n X) hX.quadratic G =ᵐ[hausdorff n X] + localGamma (hausdorff n X) hX.quadratic f g := by + let μ := hausdorff n X + obtain ⟨A,hA,-,-⟩ := hX.compact_energy_density hn hφ hcφ p f hf df hdf + obtain ⟨B,hB,-,-⟩ := hX.compact_energy_density hn hψ hcψ p g hg dg hdg + have hab : SobolevSpace.toLp μ hX.quadratic (f+g) =ᵐ[μ] φ+ψ := by + simpa only [map_add] using (Lp.coeFn_add (SobolevSpace.toLp μ hX.quadratic f) + (SobolevSpace.toLp μ hX.quadratic g)).trans (hf.add hg) + obtain ⟨C,hC,-,-⟩ := hX.compact_energy_density hn (hφ.add hψ) (hcφ.add hcψ) + p (f+g) hab (df+dg) (hdf.add μ hX.quadratic hdg) + refine ⟨(1/2 : ℝ) • (C-A-B),?_⟩ + have h := polarized_energy_representative μ hX.quadratic (Ω := univ) f g A B C + (by simpa only [Measure.restrict_univ] using hA) + (by simpa only [Measure.restrict_univ] using hB) + (by simpa only [Measure.restrict_univ] using hC) + simpa only [Measure.restrict_univ] using h + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/CompactPointedTestRecovery.lean b/lean/OAI/Geometry/RCD/Sobolev/CompactPointedTestRecovery.lean new file mode 100644 index 0000000000000000000000000000000000000000..94150f4fd4bbf552d0bd4b53de781fbb4273cb4b --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/CompactPointedTestRecovery.lean @@ -0,0 +1,109 @@ +import OAI.Geometry.RCD.Sobolev.PointedTestRecovery +import OAI.Geometry.RCD.Sobolev.NestedBallCutoff + +namespace OAI + +/-! # Compactly supported recovery of Euclidean test functions -/ + +open Set Metric +open scoped NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [ProperSpace X] + +omit [ProperSpace X] in +private theorem bounded_product_lipschitz {f g : X → ℝ} {L M A B : ℝ≥0} + (hf : LipschitzWith L f) (hg : LipschitzWith M g) + (hA : ∀ x, |f x|≤A) (hB : ∀ x, |g x|≤B) : + LipschitzWith (B*L+A*M) (fun x => f x*g x) := by + apply LipschitzWith.of_dist_le_mul + intro x y + rw [Real.dist_eq] + have he : f x*g x-f y*g y=(f x-f y)*g x+f y*(g x-g y) := by ring + rw [he] + calc + _ ≤ |(f x-f y)*g x|+|f y*(g x-g y)| := abs_add_le _ _ + _ = |f x-f y| * |g x|+|f y| * |g x-g y| := by rw [abs_mul,abs_mul] + _ ≤ ((L:ℝ)*dist x y)*B+A*((M:ℝ)*dist x y) := by + gcongr + · simpa only [Real.dist_eq] using hf.dist_le_mul x y + · exact hB x + · exact hA y + · simpa only [Real.dist_eq] using hg.dist_le_mul x y + _ = (B*L+A*M:ℝ≥0)*dist x y := by push_cast; ring + +theorem compact_pointed_test_recovery_support {n : ℕ} {p : X} {r S ρ a b ε B : ℝ} + (hr : 0 χ x*F x,_,hprod,?_,?_,?_,?_,?_⟩ + · exact (nestedBallCutoff_hasCompactSupport p harbr).mul_right + · exact tsupport_mul_subset_left.trans (nestedBallCutoff_tsupport p harbr) + · intro x + rw [abs_mul] + exact (mul_le_mul (hχb x) (hFb x) (abs_nonneg _) (by positivity)).trans_eq (one_mul _) + · change r*((B+(M:ℝ)*ε)*(b*r-a*r)⁻¹+1*((M:ℝ)/r))≤M+(B+M*ε)/(b-a) + have hgap : b*r-a*r=(b-a)*r := by ring + rw [hgap] + apply le_of_eq + field_simp [hr.ne',(sub_pos.mpr hab).ne'] + ring + · intro x hx + change |χ x*F x-ψ (v x)|≤M*ε + by_cases hz : ψ (v x)=0 + · have he := hFe x hx + rw [hz,sub_zero] at he ⊢ + rw [abs_mul] + exact (mul_le_mul (hχb x) he (abs_nonneg _) (by positivity)).trans_eq (one_mul _) + · have hn : ‖v x‖<ρ := lt_of_not_ge (fun h => hz (hψ0 _ h)) + have hd := (abs_le.mp (hv.2.1 x p hx + (by simpa only [dist_self] using mul_nonneg hS hr.le))).1 + have ht := dist_triangle (v x) 0 (v p) + have hc := hv.1 + rw [dist_comm 0 (v p)] at ht + simp only [dist_zero_right] at ht hc + have hxa : dist p x≤a*r := by + rw [dist_comm] + apply (div_le_iff₀ hr).mp + linarith + rw [show χ x=1 from nestedBallCutoff_eq_one p harbr hxa,one_mul] + exact hFe x hx + + +/-- Compactly supported smooth tests on an open ball admit harmonic recovery. -/ +theorem compact_pointed_test_recovery {n : ℕ} {p : X} {r S ρ a b ε B : ℝ} + (hr : 0 hx (fun hh => hn ((ball_subset_ball (mul_le_mul_of_nonneg_right hcS (hr k))) hh)) + have hLp : (∫ x in U, (SobolevSpace.toLp μ hQ (u k) x)^2 ∂μ)=‖SobolevSpace.toLp μ hQ (u k)‖^2 := by + rw [setIntegral_eq_integral_of_ae_compl_eq_zero (hzU.mono fun x hx hn => by rw [hx hn]; norm_num), + lp_integral_square_eq_norm_square] + constructor + · rw [← hLp] + have hbnd : ∀ᵐ x ∂μ.restrict U, (SobolevSpace.toLp μ hQ (u k) x)^2≤(B+1)^2 := by + filter_upwards [hk] with x hx + have hnorm : |SobolevSpace.toLp μ hQ (u k) x|≤B+1 := by + calc _ = |(SobolevSpace.toLp μ hQ (u k) x-v k x)+v k x| := by congr 1; ring + _ ≤ |SobolevSpace.toLp μ hQ (u k) x-v k x|+|v k x| := abs_add_le _ _ + _ ≤ B+1 := by linarith [hv k x] + simpa only [sq_abs] using pow_le_pow_left₀ (abs_nonneg _) hnorm 2 + have hi := integral_mono_ae (((Lp.memLp (SobolevSpace.toLp μ hQ (u k))).restrict U).integrable_sq) + (integrable_const ((B+1)^2)) hbnd + simpa only [integral_const,Measure.real,Measure.restrict_apply_univ,smul_eq_mul,mul_comm] using hi + · have hint : (∫ x in U, localGamma μ hQ (u k) (u k) x ∂μ)=energyForm μ hQ (u k) (u k) := by + rw [supported_gamma_integral μ hQ (u k) (u k) U hzU,integral_localGamma_eq_energyForm] + have hi := integral_mono_ae (((localGamma_memL1 μ hQ (u k) (u k)).restrict (s := U)).const_mul (r k^2)) + (integrable_const (Q^2)) (ae_restrict_of_ae hkg) + rw [integral_const_mul,hint] at hi + simpa only [integral_const,Measure.real,Measure.restrict_apply_univ,smul_eq_mul,mul_comm] using hi + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/CompactRecoveryMixedEnergy.lean b/lean/OAI/Geometry/RCD/Sobolev/CompactRecoveryMixedEnergy.lean new file mode 100644 index 0000000000000000000000000000000000000000..5ca7400fc7f1f0b7228a1b2f3caff2a3db67e46e --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/CompactRecoveryMixedEnergy.lean @@ -0,0 +1,71 @@ +import OAI.Geometry.RCD.Sobolev.WeightedMixedEnergy + +namespace OAI + +/-! # Mixed energies of two actual compact test recoveries -/ + +open Set Metric Filter MeasureTheory +open scoped Topology BoundedContinuousFunction +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem NoncollapsedRCD.compact_recovery_mixed_energy {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (hn : 2≤n) {S : ℝ} (hS : 0 r k^2*((hausdorff n X).real (ball (p k) (S*r k)))⁻¹* + ∫ x in ball (p k) (S*r k), φ (V k x)*localGamma (hausdorff n X) hX.quadratic + (u k) (u k) x ∂hausdorff n X) atTop + (𝓝 ((volume.real (ball (0:Euclidean n) S))⁻¹*∫ z in ball 0 S, φ z*‖fderiv ℝ ψ z‖^2))) + (hqenergy : Tendsto (fun k => r k^2*((hausdorff n X).real (ball (p k) (S*r k)))⁻¹* + ∫ x in ball (p k) (S*r k), φ (V k x)*localGamma (hausdorff n X) hX.quadratic + (q k) (q k) x ∂hausdorff n X) atTop + (𝓝 ((volume.real (ball (0:Euclidean n) S))⁻¹*∫ z in ball 0 S, φ z*‖fderiv ℝ G z‖^2))) : + Tendsto (fun k => r k^2*((hausdorff n X).real (ball (p k) (S*r k)))⁻¹* + ∫ x in ball (p k) (S*r k), φ (V k x)*localGamma (hausdorff n X) hX.quadratic + (u k) (q k) x ∂hausdorff n X) atTop + (𝓝 ((volume.real (ball (0:Euclidean n) S))⁻¹* + ∫ z in ball 0 S, φ z*inner ℝ (gradient ψ z) (gradient G z))) := by + obtain ⟨ρ,hρ,hρs⟩ := exists_pos_lt_subset_ball hS (isClosed_tsupport φ) hs + let τ := (2*ρ+S)/3 + let R := (ρ+2*S)/3 + have hρτ : ρ<τ := by dsimp only [τ]; linarith [hρ.2] + have hτR : τ ae_restrict_of_ae hk) (hqb.mono fun _ hk => ae_restrict_of_ae hk) + φ hφ ((subset_tsupport φ).trans hρs) ?_ ?_ + · intro W _ hWS δ hδ + exact (huv δ hδ).mono fun k hk => ae_restrict_of_ae_restrict_of_subset + (ball_subset_ball (mul_le_mul_of_nonneg_right hWS.le (hr k).le)) hk + · intro W _ hWS δ hδ + exact (hqv δ hδ).mono fun k hk => ae_restrict_of_ae_restrict_of_subset + (ball_subset_ball (mul_le_mul_of_nonneg_right hWS.le (hr k).le)) hk + · intro δ hδ + exact (huenergy.eventually (Iio_mem_nhds (lt_add_of_pos_right _ hδ))).mono fun _ hk => hk.le + · intro δ hδ + exact (hqenergy.eventually (Iio_mem_nhds (lt_add_of_pos_right _ hδ))).mono fun _ hk => hk.le + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/CompactRestrictedLaw.lean b/lean/OAI/Geometry/RCD/Sobolev/CompactRestrictedLaw.lean new file mode 100644 index 0000000000000000000000000000000000000000..6883fc94dc84e4628db132cbd9ef1e916a6d47ac --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/CompactRestrictedLaw.lean @@ -0,0 +1,64 @@ +import OAI.Analysis.RCDHeat.HeatTest + +namespace OAI + +/-! # Probability laws on a measurable compact support + +The subtype law has the exact normalized restriction as its ambient law, +and an explicit bounded nonnegative density. Compactness is supplied only +where the heat-factor construction uses it. +-/ + +open Set Filter MeasureTheory +open scoped ENNReal NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MeasurableSpace X] + +theorem restricted_probability_law (μ : Measure X) (S : Set X) (hS : MeasurableSet S) + (hS0 : μ S ≠ 0) (hSf : μ S ≠ ∞) : + ∃ (ν : Measure S) (ρ : X → ℝ) (B : ℝ≥0), IsProbabilityMeasure ν ∧ + ν.map Subtype.val = uniformOn μ S ∧ Measurable ρ ∧ (∀ x, 0 ≤ ρ x) ∧ + (∀ x, |ρ x| ≤ B) ∧ + ν.map Subtype.val = μ.withDensity (fun x => ENNReal.ofReal (ρ x)) := by + let m := uniformOn μ S + let := uniformOn_probability μ S hS0 hSf + have hs : ∀ᵐ x ∂m, x ∈ S := uniformOn_ae_mem μ S hS + let ν : Measure S := m.comap Subtype.val + have hprob : IsProbabilityMeasure ν := + (MeasurableEmbedding.subtype_coe hS).isProbabilityMeasure_comap (by + simpa only [Subtype.range_coe] using hs) + have hmap : ν.map Subtype.val = m := by + rw [show ν = m.comap Subtype.val from rfl,map_comap_subtype_coe hS] + exact Measure.restrict_eq_self_of_ae_mem hs + let c : ℝ := (μ.real S)⁻¹ + have hc : 0 ≤ c := inv_nonneg.mpr measureReal_nonneg + let ρ : X → ℝ := S.indicator (fun _ => c) + have hmρ : Measurable ρ := measurable_const.indicator hS + have hpρ (x : X) : 0 ≤ ρ x := by + by_cases hx : x ∈ S <;> simp [ρ,hx,hc] + have hbρ (x : X) : |ρ x| ≤ (⟨c,hc⟩ : ℝ≥0) := by + rw [abs_of_nonneg (hpρ x)] + by_cases hx : x ∈ S <;> simp [ρ,hx,hc] + refine ⟨ν,ρ,⟨c,hc⟩,hprob,hmap,hmρ,hpρ,hbρ,?_⟩ + rw [hmap] + have he : (fun x => ENNReal.ofReal (ρ x)) = S.indicator (fun _ => (μ S)⁻¹) := by + funext x + by_cases hx : x ∈ S + · simp only [ρ,Set.indicator_of_mem hx,c,measureReal_def] + rw [ENNReal.ofReal_inv_of_pos (ENNReal.toReal_pos hS0 hSf),ENNReal.ofReal_toReal hSf] + · simp [ρ,hx] + rw [he,withDensity_indicator hS,withDensity_const] + rfl + +theorem restricted_law_integral {S : Set X} (μ : Measure X) (ν : Measure S) + (hν : ν.map Subtype.val = uniformOn μ S) (f : X → ℝ) (hf : Measurable f) : + (∫ a : S, f a ∂ν) = (μ.real S)⁻¹*(∫ x in S, f x ∂μ) := by + rw [← integral_map measurable_subtype_coe.aemeasurable hf.aestronglyMeasurable,hν] + simp only [uniformOn,integral_smul_measure,ENNReal.toReal_inv,measureReal_def,smul_eq_mul] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/CompactScalarPrimitive.lean b/lean/OAI/Geometry/RCD/Sobolev/CompactScalarPrimitive.lean new file mode 100644 index 0000000000000000000000000000000000000000..3827e819256ae84efc1b92b4b0d6fd92456329b8 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/CompactScalarPrimitive.lean @@ -0,0 +1,63 @@ +import Mathlib.MeasureTheory.Integral.IntervalIntegral.FundThmCalculus +import Mathlib.MeasureTheory.Function.LocallyIntegrable +import Mathlib.Analysis.Calculus.MeanValue + +namespace OAI + +/-! # Two primitives of a compact scalar second derivative + +Only continuity and compact support of the prescribed second derivative +are needed. Both primitives vanish at zero and have global Lipschitz bounds. +-/ + +open Set Filter MeasureTheory +open scoped NNReal Interval +noncomputable section +namespace RegularPointCoordinates + +theorem compact_scalar_two_primitives {ψ : ℝ → ℝ} (hc : Continuous ψ) + (hs : HasCompactSupport ψ) : + ∃ (Φ φ : ℝ → ℝ) (C D B E : ℝ≥0), + LipschitzWith C Φ ∧ LipschitzWith D φ ∧ Φ 0=0 ∧ φ 0=0 ∧ + (∀ a, HasDerivAt Φ (φ a) a) ∧ (∀ a, HasDerivAt φ (ψ a) a) ∧ + (∀ a, |φ a| ≤ B) ∧ (∀ a, |ψ a| ≤ E) ∧ + (∀ a, φ a=∫ s in 0..a, ψ s) ∧ (∀ a, Φ a=∫ s in 0..a, φ s) := by + let φ := fun a => ∫ s in 0..a, ψ s + let Φ := fun a => ∫ s in 0..a, φ s + have hi : Integrable ψ volume := hc.integrable_of_hasCompactSupport hs + let B : ℝ≥0 := ⟨∫ s, ‖ψ s‖,integral_nonneg fun _ => norm_nonneg _⟩ + obtain ⟨E,hE⟩ := hs.exists_bound_of_continuous hc + let En : ℝ≥0 := ⟨E,(norm_nonneg (ψ 0)).trans (hE 0)⟩ + have hdφ (a : ℝ) : HasDerivAt φ (ψ a) a := + intervalIntegral.integral_hasDerivAt_right (hc.intervalIntegrable _ _) + hc.aestronglyMeasurable.stronglyMeasurableAtFilter hc.continuousAt + have hφ : Continuous φ := continuous_iff_continuousAt.mpr fun a => (hdφ a).continuousAt + have hdΦ (a : ℝ) : HasDerivAt Φ (φ a) a := + intervalIntegral.integral_hasDerivAt_right (hφ.intervalIntegrable _ _) + hφ.aestronglyMeasurable.stronglyMeasurableAtFilter hφ.continuousAt + have hb (a : ℝ) : |φ a| ≤ B := by + calc + |φ a| = ‖φ a‖ := (Real.norm_eq_abs _).symm + _ ≤ ∫ s in Ι (0 : ℝ) a, ‖ψ s‖ := intervalIntegral.norm_integral_le_integral_norm_uIoc + _ ≤ ∫ s, ‖ψ s‖ := integral_mono_measure Measure.restrict_le_self + (Eventually.of_forall fun _ => norm_nonneg _) hi.norm + _ = B := rfl + have hlφ : LipschitzWith En φ := lipschitzWith_of_nnnorm_deriv_le + (fun a => (hdφ a).differentiableAt) (fun a => by + rw [(hdφ a).deriv] + exact NNReal.coe_le_coe.mp (hE a)) + have hlΦ : LipschitzWith B Φ := lipschitzWith_of_nnnorm_deriv_le + (fun a => (hdΦ a).differentiableAt) (fun a => by + rw [(hdΦ a).deriv] + apply NNReal.coe_le_coe.mp + simpa only [coe_nnnorm,Real.norm_eq_abs] using hb a) + refine ⟨Φ,φ,B,En,B,En,hlΦ,hlφ,?_,?_,hdΦ,hdφ,hb,?_,fun _ => rfl,fun _ => rfl⟩ + · exact intervalIntegral.integral_same + · exact intervalIntegral.integral_same + · intro a; exact hE a + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/CompactSobolevTests.lean b/lean/OAI/Geometry/RCD/Sobolev/CompactSobolevTests.lean new file mode 100644 index 0000000000000000000000000000000000000000..21ea159d9c87e3ec1f2770d7d45350384eb2c66f --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/CompactSobolevTests.lean @@ -0,0 +1,61 @@ +import OAI.Geometry.RCD.Sobolev.CompactLipschitzTests + +namespace OAI + +/-! # Continuous compact Sobolev tests and their canonical lift -/ + +open Set Filter MeasureTheory +open scoped BoundedContinuousFunction NNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +def compactSobolevTests (Ω : Set X) : Submodule ℝ (X →ᵇ ℝ) where + carrier := {v | HasCompactSupport ((v : X →ᵇ ℝ) : X → ℝ) ∧ tsupport v ⊆ Ω ∧ + ∃ u : SobolevSpace μ hQ, SobolevSpace.toLp μ hQ u =ᵐ[μ] ((v : X →ᵇ ℝ) : X → ℝ)} + zero_mem' := ⟨HasCompactSupport.zero, by simp, 0, by + simpa only [map_zero, BoundedContinuousFunction.coe_zero] using (Lp.coeFn_zero ℝ 2 μ)⟩ + add_mem' := by + rintro f g ⟨hf, hfs, u, hu⟩ ⟨hg, hgs, v, hv⟩ + refine ⟨hf.add hg, (tsupport_add _ _).trans (union_subset hfs hgs), u + v, ?_⟩ + exact (Lp.coeFn_add _ _).trans (hu.add hv) + smul_mem' := by + rintro c f ⟨hf, hfs, u, hu⟩ + refine ⟨hf.smul_left, (tsupport_smul_subset_right (fun _ => c) _).trans hfs, c • u, ?_⟩ + exact (Lp.coeFn_smul c _).trans (hu.const_smul c) + +private def sobolevTestLift (Ω : Set X) (v : compactSobolevTests μ hQ Ω) : SobolevSpace μ hQ := + v.property.2.2.choose + +omit [BorelSpace X] in +private theorem sobolevTestLift_coe (Ω : Set X) (v : compactSobolevTests μ hQ Ω) : + SobolevSpace.toLp μ hQ (sobolevTestLift μ hQ Ω v) =ᵐ[μ] ((v : X →ᵇ ℝ) : X → ℝ) := + v.property.2.2.choose_spec + +def compactSobolevTestLift (Ω : Set X) : compactSobolevTests μ hQ Ω →ₗ[ℝ] SobolevSpace μ hQ where + toFun := sobolevTestLift μ hQ Ω + map_add' f g := by + apply Subtype.ext + apply Lp.ext + exact (sobolevTestLift_coe μ hQ Ω (f + g)).trans + ((sobolevTestLift_coe μ hQ Ω f).add (sobolevTestLift_coe μ hQ Ω g) |>.symm.trans + (Lp.coeFn_add _ _).symm) + map_smul' c f := by + apply Subtype.ext + apply Lp.ext + exact (sobolevTestLift_coe μ hQ Ω (c • f)).trans + ((sobolevTestLift_coe μ hQ Ω f).const_smul c |>.symm.trans (Lp.coeFn_smul c _).symm) + +omit [BorelSpace X] in +theorem compactSobolevTestLift_coe (Ω : Set X) (v : compactSobolevTests μ hQ Ω) : + SobolevSpace.toLp μ hQ (compactSobolevTestLift μ hQ Ω v) =ᵐ[μ] ((v : X →ᵇ ℝ) : X → ℝ) := + sobolevTestLift_coe μ hQ Ω v + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/CompactTestHarmonicLimits.lean b/lean/OAI/Geometry/RCD/Sobolev/CompactTestHarmonicLimits.lean new file mode 100644 index 0000000000000000000000000000000000000000..58292a8f4b0dffd95a206eab70353d7ffc5a77f9 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/CompactTestHarmonicLimits.lean @@ -0,0 +1,83 @@ +import OAI.Geometry.RCD.Sobolev.CompactTestHarmonicReplacements +import OAI.Geometry.RCD.Harmonic.InnerHarmonicLimit + +namespace OAI + +/-! # Actual recovered boundary data and their classical harmonic limits -/ + +open Set Metric Filter MeasureTheory +open scoped Topology ContDiff NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +structure CompactHarmonicBoundaryLimit {K : ℝ} {n : ℕ} (hX : NoncollapsedRCD K n X) + (p : ℕ → X) (r : ℕ → ℝ) (V : ℕ → X → Euclidean n) (S R : ℝ) (ψ : Euclidean n → ℝ) where + shift : ℕ + boundary : ℕ → SobolevSpace (hausdorff n X) hX.quadratic + target : ℕ → SobolevSpace (hausdorff n X) hX.quadratic + energyConstant : ℝ + energy_nonneg : 0≤energyConstant + dirichlet : ∀ k, target k-boundary k∈SobolevSpace.dirichlet (hausdorff n X) hX.quadratic + (ball (p (k+shift)) (R*r (k+shift))) + harmonic : ∀ k, IsSobolevHarmonicOn (hausdorff n X) hX.quadratic + (ball (p (k+shift)) (R*r (k+shift))) (target k) + boundary_energy : ∀ k, r (k+shift)^2*energyForm (hausdorff n X) hX.quadratic (boundary k) (boundary k)≤ + energyConstant*(hausdorff n X).real (ball (p (k+shift)) (S*r (k+shift))) + recovery : ∀ δ : ℝ, 0<δ → ∀ᶠ k in atTop, + ∀ᵐ x ∂(hausdorff n X).restrict (ball (p (k+shift)) (S*r (k+shift))), + |SobolevSpace.toLp (hausdorff n X) hX.quadratic (boundary k) x-ψ (V (k+shift) x)|≤δ + subsequence : ℕ → ℕ + strictMono : StrictMono subsequence + value : Euclidean n → ℝ + measurable : Measurable value + continuous : ContinuousOn value (ball 0 R) + weak : EuclideanWeakHarmonicOn value R + smooth : ContDiffOn ℝ ∞ value (ball 0 R) + localLipschitz : ∀ W p (k+N)) (fun k => r (k+N)) (fun k => ε (k+N)) + (fun k => V (k+N)) (fun k => hr (k+N)) (fun k => hcurv (k+N)) + (fun k => hε (k+N)) (hεlim.comp (tendsto_add_atTop_nat N)) (fun k => hV (k+N)) + w (fun k => (hw k).2.1) (fun k => (hw k).2.2.2.1) + exact ⟨{ shift := N + boundary := u + target := w + energyConstant := E + energy_nonneg := hE + dirichlet := fun k => (hw k).1 + harmonic := fun k => (hw k).2.1 + boundary_energy := fun k => (hw k).2.2.2.2.2 + recovery := hu + subsequence := a + strictMono := ha + value := g + measurable := hgm + continuous := hgc + weak := hgw + smooth := hgs + localLipschitz := hgL + convergence := hconv }⟩ + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/CompactTestHarmonicReplacements.lean b/lean/OAI/Geometry/RCD/Sobolev/CompactTestHarmonicReplacements.lean new file mode 100644 index 0000000000000000000000000000000000000000..a7df6ae00dd66b80346fb636af12924ba3a29ea3 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/CompactTestHarmonicReplacements.lean @@ -0,0 +1,76 @@ +import OAI.Geometry.RCD.Harmonic.HarmonicReplacementFamily +import OAI.Geometry.RCD.Sobolev.CompactRecoveryGlobalBounds +import OAI.Geometry.RCD.Sobolev.SharpWeightedTestRecovery +import OAI.Geometry.RCD.Sobolev.SmoothRecoveryGradientBound + +namespace OAI + +/-! # Actual harmonic candidates built from prescribed Euclidean tests + +The recovered boundary values and harmonic replacements live in the +original Sobolev spaces. Both global L2 and rescaled energy bounds retain +the physical outer-ball normalization. +-/ + +open Set Metric Filter MeasureTheory +open scoped Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem NoncollapsedRCD.compact_test_harmonic_replacements {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (hn : 2≤n) {S R : ℝ} + (hS : 0 p (k+N)) (fun k => r (k+N)) + (fun k => hr (k+N)) (fun k => V (k+N)) (fun k => (u k).val) huz (hug c hc.le hcS) + obtain ⟨B,hB⟩ := hψ.2.1.exists_bound_of_continuous hψ.1.continuous + let μ := hausdorff n X + let : ∀ k, IsFiniteMeasure (μ.restrict (ball (p (k+N)) (S*r (k+N)))) := fun k => ⟨by + simpa only [Measure.restrict_apply_univ] using hX.finiteOnBounded _ isBounded_ball⟩ + have hbounds := compact_recovery_global_bounds μ hX.quadratic hcS.le + (fun k => p (k+N)) (fun k => r (k+N)) (fun k => (hr (k+N)).le) + (fun k => (u k).val) (fun k x => ψ (V (k+N) x)) + (fun k x => by simpa only [Real.norm_eq_abs] using hB (V (k+N) x)) + (huv 1 zero_lt_one) huz hub + obtain ⟨C,hC,M,w,hw⟩ := hX.harmonic_replacement_family hn hS hR hRS + (sq_nonneg (B+1)) (sq_nonneg Q) (fun k => p (k+N)) (fun k => r (k+N)) + (fun k => ε (k+N)) (fun k => V (k+N)) (fun k => hr (k+N)) + (fun k => hcurvR (k+N)) (fun k => hV (k+N)) + (hεlim.comp (tendsto_add_atTop_nat N)) (fun k => (u k).val) hbounds + refine ⟨C,Q^2,hC,sq_nonneg Q,M+N,(fun k => (u (k+M)).val),w,?_,?_⟩ + · intro k + simpa only [Nat.add_assoc] using hw k + · intro δ hδ + simpa only [Nat.add_assoc] using (tendsto_add_atTop_nat M).eventually (huv δ hδ) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/CompactTestPairing.lean b/lean/OAI/Geometry/RCD/Sobolev/CompactTestPairing.lean new file mode 100644 index 0000000000000000000000000000000000000000..f7e134b6a15806e8f7995e16a3ed0b1903dcf8fe --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/CompactTestPairing.lean @@ -0,0 +1,118 @@ +import OAI.Geometry.RCD.Coordinates.NormalizedPairing +import OAI.Geometry.RCD.Harmonic.LocalRadialDerivative +import Mathlib.Topology.ContinuousMap.BoundedCompactlySupported + +namespace OAI + +/-! # Compact Euclidean test functions on the actual rescaled spaces -/ + +open Set MeasureTheory +open scoped InnerProductSpace ENNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MeasurableSpace X] (μ : Measure X) + +def compactTestBound {n : ℕ} (ψ : Euclidean n → ℝ) (hc : Continuous ψ) (hs : HasCompactSupport ψ) : ℝ := + ‖ofCompactSupport ψ hc hs‖ + +theorem compactTestBound_nonneg {n : ℕ} (ψ : Euclidean n → ℝ) + (hc : Continuous ψ) (hs : HasCompactSupport ψ) : 0 ≤ compactTestBound ψ hc hs := norm_nonneg _ + +theorem compactTestBound_spec {n : ℕ} (ψ : Euclidean n → ℝ) + (hc : Continuous ψ) (hs : HasCompactSupport ψ) (x : Euclidean n) : + |ψ x| ≤ compactTestBound ψ hc hs := + (ofCompactSupport ψ hc hs).norm_coe_le_norm x + +def compactTestLp {n : ℕ} (s : Set X) (hfin : μ s ≠ ∞) + (V : X → Euclidean n) (hV : Measurable V) (ψ : Euclidean n → ℝ) + (hc : Continuous ψ) (hs : HasCompactSupport ψ) : Lp ℝ 2 (μ.restrict s) := by + let : IsFiniteMeasure (μ.restrict s) := + ⟨by simpa only [Measure.restrict_apply_univ] using hfin.lt_top⟩ + have hmem : MemLp (fun x => ψ (V x)) 2 (μ.restrict s) := + MemLp.of_bound (hc.measurable.comp hV).aestronglyMeasurable (compactTestBound ψ hc hs) + (Filter.Eventually.of_forall (fun x => compactTestBound_spec ψ hc hs (V x))) + exact hmem.toLp (fun x => ψ (V x)) + +theorem compactTestLp_coe {n : ℕ} (s : Set X) (hfin : μ s ≠ ∞) + (V : X → Euclidean n) (hV : Measurable V) (ψ : Euclidean n → ℝ) + (hc : Continuous ψ) (hs : HasCompactSupport ψ) : + compactTestLp μ s hfin V hV ψ hc hs =ᵐ[μ.restrict s] fun x => ψ (V x) := by + unfold compactTestLp + exact MemLp.coeFn_toLp _ + +theorem compactTestLp_normalized_norm {n : ℕ} (s : Set X) (hfin : μ s ≠ ∞) + (V : X → Euclidean n) (hV : Measurable V) (ψ : Euclidean n → ℝ) + (hc : Continuous ψ) (hs : HasCompactSupport ψ) : + ‖normalizeLocalL2 μ s hfin (compactTestLp μ s hfin V hV ψ hc hs)‖ ≤ + compactTestBound ψ hc hs := by + apply normalized_norm_le_of_bound μ s hfin _ (compactTestBound_nonneg ψ hc hs) + filter_upwards [compactTestLp_coe μ s hfin V hV ψ hc hs] with x hx + rw [hx] + exact compactTestBound_spec ψ hc hs (V x) + +theorem compactTest_one_pairing {n : ℕ} (s : Set X) (hfin : μ s ≠ ∞) + (V : X → Euclidean n) (hV : Measurable V) (ψ : Euclidean n → ℝ) + (hc : Continuous ψ) (hs : HasCompactSupport ψ) : + ⟪normalizeLocalL2 μ s hfin (compactTestLp μ s hfin V hV ψ hc hs), + normalizeLocalL2 μ s hfin (restrictedOne μ s hfin)⟫_ℝ = + (μ.real s)⁻¹ * ∫ x in s, ψ (V x) ∂μ := by + have hone : restrictedOne μ s hfin =ᵐ[μ.restrict s] fun _ => (1 : ℝ) := by + simpa only [restrictedOne, indicator_univ] using + (indicatorConstLp_coeFn (p := (2 : ℝ≥0∞)) (μ := μ.restrict s) + (hs := MeasurableSet.univ) (hμs := by simpa using hfin) (c := (1 : ℝ))) + simpa only [mul_one] using normalized_inner_of_representatives μ s hfin + (compactTestLp μ s hfin V hV ψ hc hs) (restrictedOne μ s hfin) + (fun x => ψ (V x)) (fun _ => (1 : ℝ)) (compactTestLp_coe μ s hfin V hV ψ hc hs) hone + +variable [MetricSpace X] [BorelSpace X] [ProperSpace X] (hQ : QuadraticCheegerEnergy μ) + +omit [BorelSpace X] [ProperSpace X] in +theorem compactTest_sobolev_pairing {n : ℕ} (s : Set X) (hfin : μ s ≠ ∞) + (V : X → Euclidean n) (hV : Measurable V) (ψ : Euclidean n → ℝ) + (hc : Continuous ψ) (hs : HasCompactSupport ψ) (w : SobolevSpace μ hQ) : + ⟪normalizeLocalL2 μ s hfin (compactTestLp μ s hfin V hV ψ hc hs), + normalizeLocalL2 μ s hfin (SobolevSpace.restrictLp μ hQ s w)⟫_ℝ = + (μ.real s)⁻¹ * ∫ x in s, ψ (V x) * SobolevSpace.toLp μ hQ w x ∂μ := + normalized_inner_of_representatives μ s hfin _ _ _ _ + (compactTestLp_coe μ s hfin V hV ψ hc hs) (SobolevSpace.restrictLp_coe μ hQ s w) + +omit [MetricSpace X] [BorelSpace X] [ProperSpace X] in +/-- Normalization preserves the full finite affine Euler identity. -/ +theorem normalized_euler_identity {n : ℕ} (s : Set X) (hfin : μ s ≠ ∞) + (w e d one : Lp ℝ 2 (μ.restrict s)) (u : Fin n → Lp ℝ 2 (μ.restrict s)) + (ell : Fin n → ℝ) (k a : ℝ) + (hid : a • d = w + ∑ j, ell j • u j + k • one + e) : + a • normalizeLocalL2 μ s hfin d = normalizeLocalL2 μ s hfin w + + ∑ j, ell j • normalizeLocalL2 μ s hfin (u j) + + k • normalizeLocalL2 μ s hfin one + normalizeLocalL2 μ s hfin e := by + have hh := congrArg (normalizeLocalL2 μ s hfin) hid + simpa only [normalizeLocalL2, smul_add, Finset.smul_sum, + smul_comm a, smul_comm k, smul_comm _ (‖restrictedOne μ s hfin‖⁻¹)] using hh + +/-- The normalized radial pairing is exactly the rescaled test integral +appearing in Ambrosio--Honda's weak gradient convergence. -/ +theorem compactTest_radial_pairing {n : ℕ} (s : Set X) (hfin : μ s ≠ ∞) + (V : X → Euclidean n) (hV : Measurable V) (ψ : Euclidean n → ℝ) + (hc : Continuous ψ) (hs : HasCompactSupport ψ) (f w : SobolevSpace μ hQ) + {B : ℝ} (hf : ∀ᵐ x ∂μ.restrict s, localGamma μ hQ f f x ≤ B) (a : ℝ) : + ⟪normalizeLocalL2 μ s hfin (compactTestLp μ s hfin V hV ψ hc hs), + a • normalizeLocalL2 μ s hfin (localRadialDerivative μ hQ s f hf w)⟫_ℝ = + (μ.real s)⁻¹ * ∫ x in s, ψ (V x) * (a * localGamma μ hQ f w x) ∂μ := by + have hg : (a • localRadialDerivative μ hQ s f hf w : Lp ℝ 2 (μ.restrict s)) =ᵐ[μ.restrict s] + fun x => a * localGamma μ hQ f w x := by + filter_upwards [Lp.coeFn_smul a (localRadialDerivative μ hQ s f hf w), + localRadialDerivative_representative μ hQ s f w hf] with x hs hg + simp only [hs, Pi.smul_apply, smul_eq_mul, hg] + have hh := normalized_inner_of_representatives μ s hfin + (compactTestLp μ s hfin V hV ψ hc hs) (a • localRadialDerivative μ hQ s f hf w) + (fun x => ψ (V x)) (fun x => a * localGamma μ hQ f w x) + (compactTestLp_coe μ s hfin V hV ψ hc hs) hg + simpa only [normalizeLocalL2, smul_comm a] using hh + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/CompactTimeWeakEquation.lean b/lean/OAI/Geometry/RCD/Sobolev/CompactTimeWeakEquation.lean new file mode 100644 index 0000000000000000000000000000000000000000..327bb6f6d4f080904d43392a1eaac360e8000517 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/CompactTimeWeakEquation.lean @@ -0,0 +1,43 @@ +import OAI.Geometry.RCD.Heat.CompactTimePairing +import Mathlib.MeasureTheory.Integral.IntervalIntegral.IntegrationByParts + +namespace OAI + +/-! # The weak time equation for compact spatial pairings -/ + +open Set MeasureTheory +open scoped Interval Topology +noncomputable section +namespace RegularPointCoordinates +variable {Y : Type*} [MetricSpace Y] [CompactSpace Y] + [MeasurableSpace Y] [BorelSpace Y] (μ : Measure Y) + +theorem compact_time_pairing_weak_equation (H D : ℝ → Y → ℝ) + (hH : ContinuousOn (Function.uncurry H) (Ioi 0 ×ˢ univ)) + (hD : ContinuousOn (Function.uncurry D) (Ioi 0 ×ˢ univ)) + (hd : ∀ t, 0 < t → ∀ y, HasDerivAt (fun s => H s y) (D t y) t) + (φ : Y → ℝ) (hφ : Integrable φ μ) {a b : ℝ} (ha : 0 < a) (hab : a ≤ b) + (θ θ' : ℝ → ℝ) (hθ : ContinuousOn θ (Icc a b)) + (hθ' : ContinuousOn θ' (Icc a b)) + (hder : ∀ t ∈ Ioo a b, HasDerivAt θ (θ' t) t) + (hθa : θ a = 0) (hθb : θ b = 0) : + (∫ t in a..b, θ t * ∫ y, φ y * D t y ∂μ) = + -(∫ t in a..b, θ' t * ∫ y, φ y * H t y ∂μ) := by + have hsub : Icc a b ×ˢ (univ : Set Y) ⊆ Ioi 0 ×ˢ univ := + fun q hq => ⟨ha.trans_le hq.1.1,hq.2⟩ + have hPH := compact_time_pairing_continuousOn μ H (hH.mono hsub) φ hφ + have hPD := compact_time_pairing_continuousOn μ D (hD.mono hsub) φ hφ + have he := intervalIntegral.integral_mul_deriv_eq_deriv_mul_of_hasDerivAt + (by simpa only [uIcc_of_le hab] using hθ) + (by simpa only [uIcc_of_le hab] using hPH) + (by simpa only [min_eq_left hab,max_eq_right hab] using hder) + (fun t ht => compact_time_pairing_hasDerivAt μ H D hH hD hd φ hφ + (ha.trans (by simpa only [min_eq_left hab] using ht.1))) + (hθ'.intervalIntegrable_of_Icc hab) (hPD.intervalIntegrable_of_Icc hab) + simpa only [hθa,hθb,zero_mul,sub_zero,zero_sub] using he + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/CompactTorsionMassBound.lean b/lean/OAI/Geometry/RCD/Sobolev/CompactTorsionMassBound.lean new file mode 100644 index 0000000000000000000000000000000000000000..7fe0f0d1e7edf3e4ffe16171ef3e58d2e328e5f9 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/CompactTorsionMassBound.lean @@ -0,0 +1,64 @@ +import OAI.Geometry.RCD.Sobolev.HarmonicSquareTestPositive +import OAI.Geometry.RCD.Harmonic.EuclideanHarmonicCompactExtension + +namespace OAI + +/-! # A compact torsion test bounds interior square mass by an annulus -/ + +open Set Metric MeasureTheory Laplacian +open scoped ContDiff +noncomputable section +namespace RegularPointCoordinates + +theorem euclidean_laplacian_continuous {n : ℕ} {f : Euclidean n → ℝ} + (hf : ContDiff ℝ 2 f) : Continuous (Δ f) := by + rw [laplacian_eq_sum_second_directional hf] + apply continuous_finsetSum + intro i _ + have hd : ContDiff ℝ 1 (fun x => fderiv ℝ f x (EuclideanSpace.single i 1)) := + (hf.fderiv_right (by norm_num)).clm_apply contDiff_const + exact (hd.continuous_fderiv (by norm_num)).clm_apply continuous_const + +theorem compact_torsion_mass_bound {n : ℕ} {f T : Euclidean n → ℝ} + {a b c B : ℝ} (hab : a≤b) + (hf : ContDiff ℝ 2 f) (hT : ContDiff ℝ 2 T) (hs : HasCompactSupport T) + (hTb : tsupport T⊆ball 0 b) (hT0 : ∀ x, 0≤T x) + (hh : ∀ x∈tsupport T, (Δ f) x=0) + (hcore : ∀ x∈ball (0:Euclidean n) a, (Δ T) x= -c) + (hupper : ∀ x, (Δ T) x≤B) : + c*(∫ x in ball (0:Euclidean n) a, (f x)^2)≤ + B*(∫ x in ball 0 b \ ball 0 a, (f x)^2) := by + have hfc : Continuous (fun x => (f x)^2) := hf.continuous.pow 2 + have hpc : Continuous (fun x => (f x)^2*(Δ T) x) := + hfc.mul (euclidean_laplacian_continuous hT) + have hfi : IntegrableOn (fun x => (f x)^2) (ball (0:Euclidean n) b) volume := + (hfc.continuousOn.integrableOn_compact (isCompact_closedBall _ _)).mono_set ball_subset_closedBall + have hpi : IntegrableOn (fun x => (f x)^2*(Δ T) x) (ball (0:Euclidean n) b) volume := + (hpc.continuousOn.integrableOn_compact (isCompact_closedBall _ _)).mono_set ball_subset_closedBall + have hpos : 0≤∫ x in ball (0:Euclidean n) b, (f x)^2*(Δ T) x := by + rw [setIntegral_eq_integral_of_forall_compl_eq_zero (fun x hx => ?_)] + · exact harmonic_square_test_nonneg hf hT hs hT0 hh + · rw [laplacian_eq_zero_of_notMem_tsupport T (fun ht => hx (hTb ht)),mul_zero] + have hinner : (∫ x in ball (0:Euclidean n) a, (f x)^2*(Δ T) x)= + -c*(∫ x in ball 0 a, (f x)^2) := by + rw [← integral_const_mul] + apply setIntegral_congr_fun measurableSet_ball + intro x hx + change (f x)^2*(Δ T) x= -c*(f x)^2 + rw [hcore x hx] + ring + have hann : (∫ x in ball (0:Euclidean n) b \ ball 0 a, (f x)^2*(Δ T) x)≤ + B*(∫ x in ball 0 b \ ball 0 a, (f x)^2) := by + rw [← integral_const_mul] + apply integral_mono_ae (hpi.mono_set sdiff_subset) ((hfi.mono_set sdiff_subset).const_mul B) + exact Filter.Eventually.of_forall fun x => by + simpa only [mul_comm B] using mul_le_mul_of_nonneg_left (hupper x) (sq_nonneg (f x)) + have hsplit := setIntegral_sdiff measurableSet_ball hpi (ball_subset_ball hab) + rw [hinner] at hsplit + linarith + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/ComposedGammaContinuity.lean b/lean/OAI/Geometry/RCD/Sobolev/ComposedGammaContinuity.lean new file mode 100644 index 0000000000000000000000000000000000000000..ce867b0fb6b6bff1a2bf776f3c666e255f63ec27 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/ComposedGammaContinuity.lean @@ -0,0 +1,51 @@ +import OAI.Geometry.RCD.Sobolev.ComposedGammaPairingVariation + +namespace OAI + +/-! # Continuity of a weighted nonlinear gradient square + +The weight only needs L² continuity, including at the initial heat time. +-/ + +open Filter MeasureTheory +open scoped NNReal Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +theorem composed_gamma_pairing_continuousAt {F : ℝ → SobolevSpace μ hQ} + {W : ℝ → Lp ℝ 2 μ} {t : ℝ} (hF : ContinuousAt F t) (hW : ContinuousAt W t) + (L : ℝ≥0) (hL : ∀ s, ∀ᵐ x ∂μ, SobolevSpace.minimalSlope μ hQ (F s) x≤L) + {b : ℝ → ℝ} {D : ℝ≥0} (hb : LipschitzWith D b) + (E : ℝ≥0) (hE : ∀ a, |b a|≤E) : + ContinuousAt (fun s => ∫ x, W s x*b (SobolevSpace.toLp μ hQ (F s) x)* + localGamma μ hQ (F s) (F s) x ∂μ) t := by + let G (s : ℝ) := (localGamma_memLp_of_bounded_gradient μ hQ (F s) (F s) + L (hL s)).toLp (localGamma μ hQ (F s) (F s)) + let Q (s : ℝ) := boundedScalarProduct μ (SobolevSpace.toLp μ hQ (F s)) (G s) hb E hE + have hGr (s : ℝ) : G s =ᵐ[μ] localGamma μ hQ (F s) (F s) := MemLp.coeFn_toLp _ + have hGb : ∀ᵐ x ∂μ, |G t x|≤(L^2:ℝ≥0) := by + filter_upwards [hGr t,localGamma_self μ hQ (F t),hL t, + (Lp.coeFn_nonneg _).mpr (SobolevSpace.minimalSlope_nonneg μ hQ (F t))] with x hg hs hl hn + rw [hg,hs,abs_of_nonneg (sq_nonneg _)] + exact pow_le_pow_left₀ hn hl 2 + have hQc : ContinuousAt Q t := boundedScalarProduct_continuousAt μ hb E (L^2) hE hGb + ((SobolevSpace.toLpCLM μ hQ).continuous.continuousAt.comp hF) + (gammaL2_continuousAt μ hQ L hL hF) + have hpair (s : ℝ) : inner ℝ (W s) (Q s) = + ∫ x, W s x*b (SobolevSpace.toLp μ hQ (F s) x)*localGamma μ hQ (F s) (F s) x ∂μ := by + rw [L2.inner_def] + apply integral_congr_ae + filter_upwards [boundedScalarProduct_coe μ (SobolevSpace.toLp μ hQ (F s)) (G s) hb E hE, + hGr s] with x hx hy + change Q s x = _ at hx + simp only [Real.inner_apply,hx,hy] + ring + simpa only [hpair] using hW.inner (𝕜:=ℝ) hQc + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/ComposedGammaPairingVariation.lean b/lean/OAI/Geometry/RCD/Sobolev/ComposedGammaPairingVariation.lean new file mode 100644 index 0000000000000000000000000000000000000000..b16410bc6b2fba7aac49a1beb3f696258545c0b1 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/ComposedGammaPairingVariation.lean @@ -0,0 +1,84 @@ +import OAI.Geometry.RCD.Sobolev.ComposedGammaVariation +import OAI.Geometry.RCD.Harmonic.BoundedScalarProduct + +namespace OAI + +/-! # Variation of a weighted nonlinear gradient square + +Only the original Sobolev path and the L² weight are differentiated. +-/ + +open Filter MeasureTheory +open scoped NNReal ENNReal Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +theorem composed_gamma_pairing_hasDerivAt {F : ℝ → SobolevSpace μ hQ} + {V : SobolevSpace μ hQ} {W : ℝ → Lp ℝ 2 μ} {W' : Lp ℝ 2 μ} {t : ℝ} + (hF : HasDerivAt F V t) (hW : HasDerivAt W W' t) + (L : ℝ≥0) (hL : ∀ s, ∀ᵐ x ∂μ, SobolevSpace.minimalSlope μ hQ (F s) x≤L) + (θ : Lp ℝ ∞ μ) (hθ : θ =ᵐ[μ] W t) (M : ℝ≥0) (hM : ∀ᵐ x ∂μ, |θ x|≤M) + {b db : ℝ → ℝ} {D J : ℝ≥0} (hb : LipschitzWith D b) + (hdb : LipschitzWith J db) (hd : ∀ a, HasDerivAt b (db a) a) + (E : ℝ≥0) (hE : ∀ a, |b a|≤E) : + HasDerivAt (fun s => ∫ x, W s x*b (SobolevSpace.toLp μ hQ (F s) x)* + localGamma μ hQ (F s) (F s) x ∂μ) + ((∫ x, W' x*b (SobolevSpace.toLp μ hQ (F t) x)*localGamma μ hQ (F t) (F t) x ∂μ)+ + (∫ x, W t x*db (SobolevSpace.toLp μ hQ (F t) x)* + SobolevSpace.toLp μ hQ V x*localGamma μ hQ (F t) (F t) x ∂μ)+ + 2*(∫ x, W t x*b (SobolevSpace.toLp μ hQ (F t) x)*localGamma μ hQ (F t) V x ∂μ)) t := by + let G (s : ℝ) := (localGamma_memLp_of_bounded_gradient μ hQ (F s) (F s) + L (hL s)).toLp (localGamma μ hQ (F s) (F s)) + let Q (s : ℝ) := boundedScalarProduct μ (SobolevSpace.toLp μ hQ (F s)) (G s) hb E hE + have hGr (s : ℝ) : G s =ᵐ[μ] localGamma μ hQ (F s) (F s) := MemLp.coeFn_toLp _ + have hQr (s : ℝ) : Q s =ᵐ[μ] fun x => b (SobolevSpace.toLp μ hQ (F s) x)* + localGamma μ hQ (F s) (F s) x := by + filter_upwards [boundedScalarProduct_coe μ (SobolevSpace.toLp μ hQ (F s)) (G s) hb E hE, + hGr s] with x hx hy + exact hx.trans (by rw [hy]) + have hGb : ∀ᵐ x ∂μ, |G t x|≤(L^2:ℝ≥0) := by + filter_upwards [hGr t,localGamma_self μ hQ (F t),hL t, + (Lp.coeFn_nonneg _).mpr (SobolevSpace.minimalSlope_nonneg μ hQ (F t))] with x hg hs hl hn + rw [hg,hs,abs_of_nonneg (sq_nonneg _)] + exact pow_le_pow_left₀ hn hl 2 + have hQc : ContinuousAt Q t := boundedScalarProduct_continuousAt μ hb E (L^2) hE hGb + ((SobolevSpace.toLpCLM μ hQ).continuous.continuousAt.comp hF.continuousAt) + (gammaL2_continuousAt μ hQ L hL hF.continuousAt) + have hpair (v : Lp ℝ 2 μ) (s : ℝ) : inner ℝ v (Q s) = + ∫ x, v x*b (SobolevSpace.toLp μ hQ (F s) x)*localGamma μ hQ (F s) (F s) x ∂μ := by + rw [L2.inner_def] + apply integral_congr_ae + filter_upwards [hQr s] with x hx + simp only [Real.inner_apply,hx] + ring + have hfixed := composed_gamma_hasDerivAt μ hQ hF L hL θ (W t) hθ M hM hb hdb hd E hE + have hfixed' : HasDerivAt (fun s => inner ℝ (W t) (Q s)) + ((∫ x, W t x*db (SobolevSpace.toLp μ hQ (F t) x)* + SobolevSpace.toLp μ hQ V x*localGamma μ hQ (F t) (F t) x ∂μ)+ + 2*(∫ x, W t x*b (SobolevSpace.toLp μ hQ (F t) x)*localGamma μ hQ (F t) V x ∂μ)) t := by + have hval : (fun s => inner ℝ (W t) (Q s)) = + (fun s => ∫ x, θ x*b (SobolevSpace.toLp μ hQ (F s) x)* + localGamma μ hQ (F s) (F s) x ∂μ) := by + funext s + rw [hpair] + exact integral_congr_ae (hθ.mono fun x hx => by dsimp only; rw [hx]) + rw [hval] + convert hfixed using 1 + congr 1 + · apply integral_congr_ae + filter_upwards [hθ] with x hx + rw [hx] + · congr 1 + apply integral_congr_ae + filter_upwards [hθ] with x hx + rw [hx] + have hh := hasDerivAt_inner_of_frozen hW hQc hfixed' + simpa only [hpair,add_assoc] using hh + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/ComposedGammaVariation.lean b/lean/OAI/Geometry/RCD/Sobolev/ComposedGammaVariation.lean new file mode 100644 index 0000000000000000000000000000000000000000..33408dce51d841a6dbbe62891d341245cb75fc7c --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/ComposedGammaVariation.lean @@ -0,0 +1,128 @@ +import OAI.Geometry.RCD.Coordinates.TwoFrozenPairingVariation +import OAI.Geometry.RCD.Harmonic.WeightedAffineComposition +import OAI.Geometry.RCD.Sobolev.GammaL2ContinuousAt +import OAI.Geometry.RCD.Harmonic.NonlinearPairingVariation + +namespace OAI + +/-! # Differentiating a scalar coefficient times a gradient square + +The coefficient and energy density are paired in L². Two frozen scalar +derivatives and a controlled mixed increment justify the variation. +-/ + +open Filter MeasureTheory Asymptotics +open scoped NNReal ENNReal Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +theorem composed_gamma_hasDerivAt {F : ℝ → SobolevSpace μ hQ} + {V : SobolevSpace μ hQ} {t : ℝ} (hF : HasDerivAt F V t) + (L : ℝ≥0) (hL : ∀ s, ∀ᵐ x ∂μ, SobolevSpace.minimalSlope μ hQ (F s) x≤L) + (θ : Lp ℝ ∞ μ) (w : Lp ℝ 2 μ) (hθ : θ =ᵐ[μ] w) + (M : ℝ≥0) (hM : ∀ᵐ x ∂μ, |θ x|≤M) + {b db : ℝ → ℝ} {D J : ℝ≥0} (hb : LipschitzWith D b) + (hdb : LipschitzWith J db) (hd : ∀ a, HasDerivAt b (db a) a) + (E : ℝ≥0) (hE : ∀ a, |b a|≤E) : + HasDerivAt (fun s => ∫ x, θ x*b (SobolevSpace.toLp μ hQ (F s) x)* + localGamma μ hQ (F s) (F s) x ∂μ) + ((∫ x, θ x*db (SobolevSpace.toLp μ hQ (F t) x)* + SobolevSpace.toLp μ hQ V x*localGamma μ hQ (F t) (F t) x ∂μ)+ + 2*(∫ x, θ x*b (SobolevSpace.toLp μ hQ (F t) x)* + localGamma μ hQ (F t) V x ∂μ)) t := by + let P (s : ℝ) := SobolevSpace.toLp μ hQ (F s) + let B (s : ℝ) := weightedAffineComposition μ θ w hb (P s) + let G (s : ℝ) := (localGamma_memLp_of_bounded_gradient μ hQ (F s) (F s) + L (hL s)).toLp (localGamma μ hQ (F s) (F s)) + have hGr (s : ℝ) : G s =ᵐ[μ] localGamma μ hQ (F s) (F s) := MemLp.coeFn_toLp _ + have hBr (s : ℝ) : B s =ᵐ[μ] fun x => θ x*b (P s x) := + weightedAffineComposition_coe μ θ w hθ hb (P s) + have hP : HasDerivAt P (SobolevSpace.toLp μ hQ V) t := + (SobolevSpace.toLpCLM μ hQ).hasFDerivAt.comp_hasDerivAt t hF + have hBig : (fun s => B s-B t) =O[𝓝 t] (fun s => s-t) := + (IsBigO.of_bound (‖lpMultiplier μ θ‖*D) (Eventually.of_forall fun s => + weightedAffineComposition_sub_norm_le μ θ w hb (P s) (P t))).trans hP.isBigO_sub + have hGc : ContinuousAt G t := gammaL2_continuousAt μ hQ L hL hF.continuousAt + let R := lpMultiplier μ θ (G t) + have hRr : R =ᵐ[μ] fun x => θ x*localGamma μ hQ (F t) (F t) x := by + filter_upwards [lpMultiplier_coe μ θ (G t),hGr t] with x hx hy + exact hx.trans (by rw [hy]) + have hRb : ∀ᵐ x ∂μ, |R x|≤(M*L^2:ℝ≥0) := by + filter_upwards [hRr,hM,hL t,localGamma_self μ hQ (F t), + (Lp.coeFn_nonneg _).mpr (SobolevSpace.minimalSlope_nonneg μ hQ (F t))] + with x hr hm hl hg hn + rw [hr,abs_mul,hg,abs_of_nonneg (sq_nonneg (SobolevSpace.minimalSlope μ hQ (F t) x))] + exact mul_le_mul hm (pow_le_pow_left₀ hn hl 2) (sq_nonneg _) M.coe_nonneg + have hRi : MemLp R ∞ μ := memLp_top_of_bound (Lp.aestronglyMeasurable R) (M*L^2) + (by simpa only [Real.norm_eq_abs,NNReal.coe_mul,NNReal.coe_pow] using hRb) + let η := hRi.toLp R + have hη : η =ᵐ[μ] R := hRi.coeFn_toLp + have hηb : ∀ᵐ x ∂μ, |η x|≤(M*L^2:ℝ≥0) := by + filter_upwards [hη,hRb] with x hx hy + exact hx ▸ hy + let T := lpMultiplier μ η ((centeredLipschitz hdb).compLp (sub_self _) (P t))+db 0 • R + have hfixed : HasDerivAt (fun s => weightedIntegralPotential μ η + (fun a => b a-b 0) (P s)) (inner ℝ T (SobolevSpace.toLp μ hQ V)) t := by + have hh := (weightedIntegralPotential_affine_hasFDerivAt μ η R hη (M*L^2) hηb + (fun a => (hd a).sub_const (b 0)) (sub_self _) hdb (P t)).comp_hasDerivAt t hP + simpa only [innerSL_apply_apply] using! hh + have hfun (s : ℝ) : inner ℝ (B s) (G t) = + weightedIntegralPotential μ η (fun a => b a-b 0) (P s)+b 0*inner ℝ w (G t) := by + change inner ℝ (lpMultiplier μ θ ((centeredLipschitz hb).compLp (sub_self _) (P s))+ + b 0 • w) (G t) = _ + rw [inner_add_left,real_inner_smul_left,←lpMultiplier_inner_symm,real_inner_comm] + rw [inner_compLp_eq_weightedPotential μ R (P s) η hη (centeredLipschitz hb) (sub_self _)] + have hleft : HasDerivAt (fun s => inner ℝ (B s) (G t)) + (inner ℝ T (SobolevSpace.toLp μ hQ V)) t := by + simpa only [hfun] using hfixed.add_const (b 0*inner ℝ w (G t)) + have hBt : ∀ᵐ x ∂μ, ‖B t x‖≤(M*E:ℝ≥0) := by + filter_upwards [hBr t,hM] with x hx hm + rw [hx,norm_mul,Real.norm_eq_abs,Real.norm_eq_abs] + exact mul_le_mul hm (hE _) (abs_nonneg _) M.coe_nonneg + have hright : HasDerivAt (fun s => inner ℝ (B t) (G s)) + (2*weightedGamma μ hQ (B t) (F t) V) t := by + have hh := ContinuousLinearMap.hasDerivAt_of_bilinear + (B := weightedGammaCLM μ hQ (Lp.aestronglyMeasurable (B t)) hBt) + (fun _ => hF) (fun _ => hF) + change HasDerivAt (fun s => weightedGamma μ hQ (B t) (F s) (F s)) + (weightedGamma μ hQ (B t) (F t) V+weightedGamma μ hQ (B t) V (F t)) t at hh + rw [weightedGamma_comm μ hQ (B t) V (F t)] at hh + have heq : (fun s => inner ℝ (B t) (G s)) = + (fun s => weightedGamma μ hQ (B t) (F s) (F s)) := by + funext s + exact (weightedGamma_eq_L2_inner μ hQ (F s) (F s) _ (B t)).symm + rw [heq] + convert hh using 1 + ring + have hder := hasDerivAt_inner_of_two_frozen hBig hGc hleft hright + have hval (s : ℝ) : inner ℝ (B s) (G s) = + ∫ x, θ x*b (P s x)*localGamma μ hQ (F s) (F s) x ∂μ := by + rw [L2.inner_def] + apply integral_congr_ae + filter_upwards [hBr s,hGr s] with x hx hy + simp only [Real.inner_apply,hx,hy] + have hprime : inner ℝ T (SobolevSpace.toLp μ hQ V) = + ∫ x, θ x*db (P t x)*SobolevSpace.toLp μ hQ V x* + localGamma μ hQ (F t) (F t) x ∂μ := by + rw [L2.inner_def] + apply integral_congr_ae + filter_upwards [Lp.coeFn_add (lpMultiplier μ η ((centeredLipschitz hdb).compLp (sub_self _) (P t))) + (db 0 • R), lpMultiplier_coe μ η ((centeredLipschitz hdb).compLp (sub_self _) (P t)), + (centeredLipschitz hdb).coeFn_compLp (sub_self _) (P t),Lp.coeFn_smul (db 0) R,hη,hRr] + with x ha hp hc hs hηx hr + change T x = _ at ha + simp only [Real.inner_apply,ha,Pi.add_apply,hp,hc,Function.comp_apply,hs, + Pi.smul_apply,smul_eq_mul,hηx,hr] + ring + have hcross : weightedGamma μ hQ (B t) (F t) V = + ∫ x, θ x*b (P t x)*localGamma μ hQ (F t) V x ∂μ := + integral_congr_ae ((hBr t).mono fun x hx => congrArg (fun a => a*localGamma μ hQ (F t) V x) hx) + simpa only [hval,hprime,hcross] using hder + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/ConditionalSelfPair.lean b/lean/OAI/Geometry/RCD/Sobolev/ConditionalSelfPair.lean new file mode 100644 index 0000000000000000000000000000000000000000..5d3ef9bd4de6c807ed441d58e9328f4596098dfb --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/ConditionalSelfPair.lean @@ -0,0 +1,66 @@ +import Mathlib.Probability.Kernel.Posterior + +namespace OAI + +/-! # The independent conditional self-coupling over a measurable observable -/ + +open Set Filter MeasureTheory ProbabilityTheory +open scoped ENNReal ProbabilityTheory +noncomputable section +namespace RegularPointCoordinates +variable {A Z : Type*} [MeasurableSpace A] [MeasurableSpace Z] + [StandardBorelSpace A] [Nonempty A] [MeasurableSpace.CountablyGenerated Z] + [MeasurableEq Z] + +def conditionalSelfPair (μ : Measure A) [IsFiniteMeasure μ] (f : A → Z) (hf : Measurable f) : + Measure (A×A) := + let η := (Kernel.deterministic f hf)†μ + (η ×ₖ η) ∘ₘ (μ.map f) + +omit [MeasurableSpace.CountablyGenerated Z] [MeasurableEq Z] in +theorem conditionalSelfPair_marginals (μ : Measure A) [IsFiniteMeasure μ] + (f : A → Z) (hf : Measurable f) : + (conditionalSelfPair μ f hf).map Prod.fst=μ ∧ + (conditionalSelfPair μ f hf).map Prod.snd=μ := by + let η := (Kernel.deterministic f hf)†μ + have hη : η ∘ₘ (μ.map f)=μ := by + simpa only [Measure.deterministic_comp_eq_map] using + (posterior_comp_self (κ:=Kernel.deterministic f hf) (μ:=μ)) + constructor + · rw [conditionalSelfPair,Measure.map_comp _ _ measurable_fst] + rw [←Kernel.fst_eq,Kernel.fst_prod] + exact hη + · rw [conditionalSelfPair,Measure.map_comp _ _ measurable_snd] + rw [←Kernel.snd_eq,Kernel.snd_prod] + exact hη + +instance conditionalSelfPair_finite (μ : Measure A) [IsFiniteMeasure μ] + (f : A → Z) (hf : Measurable f) : IsFiniteMeasure (conditionalSelfPair μ f hf) := by + unfold conditionalSelfPair + infer_instance + +theorem conditionalSelfPair_common (μ : Measure A) [IsFiniteMeasure μ] + (f : A → Z) (hf : Measurable f) : + ∀ᵐ z ∂conditionalSelfPair μ f hf, f z.1=f z.2 := by + let η := (Kernel.deterministic f hf)†μ + have hη : ∀ᵐ z ∂μ.map f, (η z).map f=Measure.dirac z := by + filter_upwards [deterministic_comp_posterior (μ:=μ) hf] with z hz + simpa only [Kernel.deterministic_comp_eq_map,Kernel.map_apply _ hf,Kernel.id_apply] using hz + change ∀ᵐ z ∂((η ×ₖ η) ∘ₘ (μ.map f)), f z.1=f z.2 + apply Measure.ae_comp_of_ae_ae (measurableSet_eq_fun (hf.comp measurable_fst) (hf.comp measurable_snd)) + filter_upwards [hη] with z hz + have hpoint : ∀ᵐ a ∂η z, f a=z := by + apply ae_of_ae_map (μ:=η z) (p:=fun a => a=z) hf.aemeasurable + rw [hz] + simp + rw [Kernel.prod_apply] + change ∀ᵐ p ∂(η z).prod (η z), f p.1=f p.2 + apply (Measure.ae_prod_iff_ae_ae (measurableSet_eq_fun (hf.comp measurable_fst) (hf.comp measurable_snd))).mpr + filter_upwards [hpoint] with a ha + exact hpoint.mono fun b hb => ha.trans hb.symm + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/ConstantLaplacianBochnerInput.lean b/lean/OAI/Geometry/RCD/Sobolev/ConstantLaplacianBochnerInput.lean new file mode 100644 index 0000000000000000000000000000000000000000..55222d7a7c9806b0e2b0838b1da9850012180466 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/ConstantLaplacianBochnerInput.lean @@ -0,0 +1,136 @@ +import OAI.Geometry.RCD.Sobolev.LocalBochnerInput +import OAI.Geometry.RCD.Sobolev.PoissonReplacement +import OAI.Geometry.RCD.Sobolev.ShiftedBochnerMeasure +import OAI.Geometry.RCD.Harmonic.FirstOrderLocalization + +namespace OAI + +/-! +# Local constant-Laplacian calculus on the required finite span + +The input is the local specialization of Gigli (2018), +Theorem 3.3.8, together with Han (2018), Proposition 3.2 and Theorem 3.3. +Local test regularity is as in Connell et al. (2021), Lemmas 2.6--2.7. +Only the span of n harmonic coordinates and two Poisson replacements is +used. The scalar shifted lower bound follows by expanding +`|Hess f - b g|² >= 0` and using `tr Hess f = Δf` on the noncollapsed +n-dimensional space. +-/ + +open Set Metric MeasureTheory +open scoped BigOperators NNReal + +noncomputable section + +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +/-- The actual local weak equation with a constant source. -/ +def IsConstantLaplacianOn (Ω : Set X) (f : SobolevSpace μ hQ) (c : ℝ) : Prop := + ∀ φ : SobolevSpace μ hQ, φ ∈ SobolevSpace.dirichlet μ hQ Ω → + energyForm μ hQ f φ = -c * ∫ x in Ω, SobolevSpace.toLp μ hQ φ x ∂μ + +omit [BorelSpace X] [ProperSpace X] in +theorem isConstantLaplacianOn_zero_iff (Ω : Set X) (f : SobolevSpace μ hQ) : + IsConstantLaplacianOn μ hQ Ω f 0 ↔ IsSobolevHarmonicOn μ hQ Ω f := by + simp only [IsConstantLaplacianOn, IsSobolevHarmonicOn, neg_zero, zero_mul] + +namespace IsConstantLaplacianOn + +omit [BorelSpace X] [ProperSpace X] in +theorem mono {S T : Set X} (hS : MeasurableSet S) (hst : S ⊆ T) + {f : SobolevSpace μ hQ} {c : ℝ} (hf : IsConstantLaplacianOn μ hQ T f c) : + IsConstantLaplacianOn μ hQ S f c := by + intro φ hφ + have hz := SobolevSpace.dirichlet_zero_off μ hQ S hS ⟨φ, hφ⟩ + have hz' := (ae_restrict_iff' hS.compl).mp hz + have hiS : (∫ x in S, SobolevSpace.toLp μ hQ φ x ∂μ) = + ∫ x, SobolevSpace.toLp μ hQ φ x ∂μ := + setIntegral_eq_integral_of_ae_compl_eq_zero hz' + have hiT : (∫ x in T, SobolevSpace.toLp μ hQ φ x ∂μ) = + ∫ x, SobolevSpace.toLp μ hQ φ x ∂μ := by + apply setIntegral_eq_integral_of_ae_compl_eq_zero + filter_upwards [hz'] with x hx hnot + exact hx (fun hs => hnot (hst hs)) + rw [hf φ (dirichlet_mono μ hQ hst hφ), hiT, hiS] + +omit [BorelSpace X] [ProperSpace X] in +theorem add {Ω : Set X} {f g : SobolevSpace μ hQ} {c d : ℝ} + (hf : IsConstantLaplacianOn μ hQ Ω f c) + (hg : IsConstantLaplacianOn μ hQ Ω g d) : + IsConstantLaplacianOn μ hQ Ω (f + g) (c + d) := by + intro φ hφ + rw [energyForm_add_left, hf φ hφ, hg φ hφ] + ring + +omit [BorelSpace X] [ProperSpace X] in +theorem smul {Ω : Set X} {f : SobolevSpace μ hQ} {c : ℝ} + (hf : IsConstantLaplacianOn μ hQ Ω f c) (a : ℝ) : + IsConstantLaplacianOn μ hQ Ω (a • f) (a * c) := by + intro φ hφ + rw [energyForm_smul_left, hf φ hφ] + ring + +omit [BorelSpace X] [ProperSpace X] in +theorem sub {Ω : Set X} {f g : SobolevSpace μ hQ} {c d : ℝ} + (hf : IsConstantLaplacianOn μ hQ Ω f c) + (hg : IsConstantLaplacianOn μ hQ Ω g d) : + IsConstantLaplacianOn μ hQ Ω (f - g) (c - d) := by + intro φ hφ + rw [energyForm_sub_left, hf φ hφ, hg φ hφ] + ring + +omit [BorelSpace X] [ProperSpace X] in +theorem sub_harmonic {Ω : Set X} {f g : SobolevSpace μ hQ} {c : ℝ} + (hf : IsConstantLaplacianOn μ hQ Ω f c) + (hg : IsConstantLaplacianOn μ hQ Ω g c) : + IsSobolevHarmonicOn μ hQ Ω (f - g) := by + apply (isConstantLaplacianOn_zero_iff μ hQ Ω (f - g)).mp + simpa only [sub_self] using hf.sub μ hQ hg + +omit [BorelSpace X] [ProperSpace X] in +theorem linearCombination {m : ℕ} {Ω : Set X} + {u : Fin m → SobolevSpace μ hQ} {c : Fin m → ℝ} + (hu : ∀ i, IsConstantLaplacianOn μ hQ Ω (u i) (c i)) (v : Euclidean m) : + IsConstantLaplacianOn μ hQ Ω (sobolevColumnMap μ hQ u v) (∑ i, v i * c i) := by + classical + rw [sobolevColumnMap_apply] + have hs : ∀ s : Finset (Fin m), IsConstantLaplacianOn μ hQ Ω + (∑ i ∈ s, v i • u i) (∑ i ∈ s, v i * c i) := by + intro s + induction s using Finset.induction_on with + | empty => + intro φ hφ + simp [energyForm] + | @insert i s hi ih => + simp only [Finset.sum_insert hi] + exact (hu i |>.smul μ hQ (v i)).add μ hQ ih + simpa using hs Finset.univ + +end IsConstantLaplacianOn + +/-- local Bochner calculus, restricted to the n+2 directions +used in the Poisson comparison. The volume in the trace correction is +restricted to the interior ball and hence is finite. -/ +def LocalConstantLaplacianBochnerInput {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) : Prop := + ∀ κ : ℝ, 0 ≤ κ → -κ ≤ K → ∀ (p : X) (r : ℝ), 0 < r → + ∀ (L : ℝ≥0) + (U : Euclidean (n + 2) →L[ℝ] SobolevSpace (hausdorff n X) hX.quadratic) + (ell : Euclidean (n + 2) →ₗ[ℝ] ℝ), + (∀ v, IsConstantLaplacianOn (hausdorff n X) hX.quadratic + (ball p (8 * r)) (U v) (ell v)) → + (∀ v, ∀ᵐ x ∂(hausdorff n X).restrict (ball p (8 * r)), + localGamma (hausdorff n X) hX.quadratic (U v) (U v) x ≤ + (L : ℝ) ^ 2 * ‖v‖ ^ 2) → + ∃ M : PositiveBilinearMeasure X (Euclidean (n + 2)), + (∀ v, Nonempty (LocalHarmonicEnergy (hausdorff n X) hX.quadratic U M κ p r L v)) ∧ + ShiftedBochnerLowerBound M ((hausdorff n X).restrict (ball p (2 * r))) ell n + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/ConstantLaplacianBochnerTest.lean b/lean/OAI/Geometry/RCD/Sobolev/ConstantLaplacianBochnerTest.lean new file mode 100644 index 0000000000000000000000000000000000000000..7303477511a29a8d66f32aa698ff698dec74481a --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/ConstantLaplacianBochnerTest.lean @@ -0,0 +1,58 @@ +import OAI.Geometry.RCD.Sobolev.ConstantSourceCancellation + +namespace OAI + +/-! # The local constant-Laplacian Bochner inequality -/ + +open Set MeasureTheory +open scoped NNReal + +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem NoncollapsedRCD.constant_laplacian_bochner_test {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) [(hausdorff n X).Regular] (hn : 2 ≤ n) + {φ : X → ℝ} {L : ℝ≥0} (hφ : LipschitzWith L φ) (hs : HasCompactSupport φ) + (p : X) (u : SobolevSpace (hausdorff n X) hX.quadratic) + (hu : SobolevSpace.toLp (hausdorff n X) hX.quadratic u =ᵐ[hausdorff n X] φ) + (d : Lp ℝ 2 (hausdorff n X)) (hd : IsWeakLaplacian (hausdorff n X) hX.quadratic u d) + {Ω : Set X} (hΩ : MeasurableSet Ω) (c : ℝ) + (hc : d =ᵐ[(hausdorff n X).restrict Ω] fun _ => c) + (G : SobolevSpace (hausdorff n X) hX.quadratic) + (hG : SobolevSpace.toLp (hausdorff n X) hX.quadratic G =ᵐ[hausdorff n X] + localGamma (hausdorff n X) hX.quadratic u u) + (w : SobolevSpace (hausdorff n X) hX.quadratic) {v : X → ℝ} {A : ℝ≥0} + (hv : LipschitzWith A v) (hw : SobolevSpace.toLp (hausdorff n X) hX.quadratic w =ᵐ[hausdorff n X] v) + (hvs : tsupport v ⊆ Ω) (C : ℝ≥0) (hvb : ∀ x, |v x| ≤ C) (hv0 : ∀ x, 0 ≤ v x) : + 0 ≤ -(1 / 2 : ℝ) * energyForm (hausdorff n X) hX.quadratic G w - + K * inner ℝ (SobolevSpace.toLp (hausdorff n X) hX.quadratic w) + (SobolevSpace.toLp (hausdorff n X) hX.quadratic G) := by + have h := hX.compact_bochner_test hn hφ hs p u hu d hd G hG w hv hw C hvb hv0 + have hcanc := constant_source_cancellation (hausdorff n X) hX.quadratic u d hd hΩ c hc w v hw hvs + linarith + +theorem NoncollapsedRCD.constant_laplacian_bochner_sobolev_test {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) [(hausdorff n X).Regular] (hn : 2 ≤ n) + {φ : X → ℝ} {L : ℝ≥0} (hφ : LipschitzWith L φ) (hs : HasCompactSupport φ) + (p : X) (u : SobolevSpace (hausdorff n X) hX.quadratic) + (hu : SobolevSpace.toLp (hausdorff n X) hX.quadratic u =ᵐ[hausdorff n X] φ) + (d : Lp ℝ 2 (hausdorff n X)) (hd : IsWeakLaplacian (hausdorff n X) hX.quadratic u d) + {Ω : Set X} (hΩ : MeasurableSet Ω) (c : ℝ) + (hc : d =ᵐ[(hausdorff n X).restrict Ω] fun _ => c) + (G : SobolevSpace (hausdorff n X) hX.quadratic) + (hG : SobolevSpace.toLp (hausdorff n X) hX.quadratic G =ᵐ[hausdorff n X] + localGamma (hausdorff n X) hX.quadratic u u) + (w : SobolevSpace (hausdorff n X) hX.quadratic) {v : X → ℝ} + (hv : Measurable v) (hw : SobolevSpace.toLp (hausdorff n X) hX.quadratic w =ᵐ[hausdorff n X] v) + (hvs : tsupport v ⊆ Ω) (C : ℝ≥0) (hvb : ∀ x, |v x| ≤ C) (hv0 : ∀ x, 0 ≤ v x) : + 0 ≤ -(1 / 2 : ℝ) * energyForm (hausdorff n X) hX.quadratic G w - + K * inner ℝ (SobolevSpace.toLp (hausdorff n X) hX.quadratic w) + (SobolevSpace.toLp (hausdorff n X) hX.quadratic G) := by + have h := hX.compact_bochner_sobolev_test hn hφ hs p u hu d hd G hG w hv hw C hvb hv0 + have hcanc := constant_source_cancellation (hausdorff n X) hX.quadratic u d hd hΩ c hc w v hw hvs + linarith + +end RegularPointCoordinates + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/ConstantSourceBochnerLimit.lean b/lean/OAI/Geometry/RCD/Sobolev/ConstantSourceBochnerLimit.lean new file mode 100644 index 0000000000000000000000000000000000000000..b14a049b54ca023d6fa3922c144471438651e3a7 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/ConstantSourceBochnerLimit.lean @@ -0,0 +1,90 @@ +import OAI.Geometry.RCD.Sobolev.QuadraticBochnerCutoffLimit + +namespace OAI + +/-! # Cutoff Bochner limits for an actual constant-source solution + +The two source terms cancel without an eikonal identity. This leaves the +energy density paired with the cutoff Laplacian, exactly the error already +controlled by the positive distance-source estimate. +-/ + +open Set Filter MeasureTheory Metric +open scoped Topology NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) (Q : QuadraticCheegerEnergy μ) + +theorem GoodLaplacianCutoff.constant_source_terms + {p : X} {r C b : ℝ} (χ : GoodLaplacianCutoff μ Q p r C) + (hb : 2*r < b) (u : SobolevSpace μ Q) (d : Lp ℝ 2 μ) + (hu : IsWeakLaplacian μ Q u d) (a : ℝ) + (hd : d =ᵐ[μ.restrict (ball p b)] fun _ => a) : + (∫ x, χ.weight x*(d x)^2 ∂μ)+weightedGamma μ Q d u χ.sobolev=0 := by + have hout (x : X) (hx : x ∉ ball p b) : 2*r < dist p x := by + have hh : b ≤ dist p x := by simpa only [mem_ball,dist_comm,not_lt] using hx + exact hb.trans_le hh + have hi : inner ℝ d (SobolevSpace.toLp μ Q χ.sobolev)=a*(∫ x, χ.weight x ∂μ) := by + rw [L2.inner_def,← integral_const_mul] + apply integral_congr_ae + filter_upwards [(ae_restrict_iff' measurableSet_ball).mp hd,χ.representative] with x hx hχ + simp only [Real.inner_apply,hχ] + by_cases hm : x∈ball p b + · rw [hx hm] + · rw [χ.zero x (hout x hm)] + ring + have henergy : energyForm μ Q u χ.sobolev= -a*(∫ x, χ.weight x ∂μ) := by + rw [hu,hi] + ring + have hsquare : (∫ x, χ.weight x*(d x)^2 ∂μ)=a^2*(∫ x, χ.weight x ∂μ) := by + rw [← integral_const_mul] + apply integral_congr_ae + filter_upwards [(ae_restrict_iff' measurableSet_ball).mp hd] with x hx + by_cases hm : x∈ball p b + · rw [hx hm] + ring + · rw [χ.zero x (hout x hm)] + ring + have hcross : weightedGamma μ Q d u χ.sobolev=a*energyForm μ Q u χ.sobolev := by + rw [← integral_localGamma_eq_energyForm,← integral_const_mul] + apply integral_congr_ae + filter_upwards [(ae_restrict_iff' measurableSet_ball).mp hd,χ.representative, + localGamma_comm μ Q u χ.sobolev,localGamma_zero_on_level μ Q χ.sobolev u 0] + with x hx hχ hcomm hlevel + change d x*localGamma μ Q u χ.sobolev x=a*localGamma μ Q u χ.sobolev x + by_cases hm : x∈ball p b + · rw [hx hm] + · rw [hcomm,hlevel (hχ.trans (χ.zero x (hout x hm)))] + ring + rw [hsquare,hcross,henergy] + ring + +theorem GoodLaplacianCutoff.constant_bochner_source_tendsto + [IsFiniteMeasureOnCompacts μ] + {p : X} {r C b : ℝ} (χ : GoodLaplacianCutoff μ Q p r C) + (hC : 0 ≤ C) (hb : 2*r < b) + (u : SobolevSpace μ Q) (d : Lp ℝ 2 μ) (hu : IsWeakLaplacian μ Q u d) (a : ℝ) + (hd : d =ᵐ[μ.restrict (ball p b)] fun _ => a) + (us ds Gs : ℕ → SobolevSpace μ Q) + (hds : ∀ k, IsWeakLaplacian μ Q (us k) (SobolevSpace.toLp μ Q (ds k))) + (hGs : ∀ k, SobolevSpace.toLp μ Q (Gs k) =ᵐ[μ] localGamma μ Q (us k) (us k)) + (L : ℝ≥0) + (hus : ∀ k, ∀ᵐ x ∂μ, SobolevSpace.minimalSlope μ Q (us k) x ≤ L) + (huL : ∀ᵐ x ∂μ, SobolevSpace.minimalSlope μ Q u x ≤ L) + (hconv : Tendsto us atTop (𝓝 u)) + (hdconv : Tendsto (fun k => SobolevSpace.toLp μ Q (ds k)) atTop (𝓝 d)) : + Tendsto (fun k => -(1/2:ℝ)*energyForm μ Q (Gs k) χ.sobolev- + weightedGamma μ Q (SobolevSpace.toLp μ Q χ.sobolev) (us k) (ds k)) atTop + (𝓝 ((1/2:ℝ)*weightedGamma μ Q χ.laplacian u u)) := by + have hlim := χ.bochner_source_tendsto μ Q hC u d us ds Gs hds hGs L hus huL hconv hdconv + have he := χ.constant_source_terms μ Q hb u d hu a hd + convert hlim using 1 + congr 1 + linarith only [he] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/ConstantSourceCancellation.lean b/lean/OAI/Geometry/RCD/Sobolev/ConstantSourceCancellation.lean new file mode 100644 index 0000000000000000000000000000000000000000..16f4f41d5ae8e60fbf35bd766e748b1ae0c6913c --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/ConstantSourceCancellation.lean @@ -0,0 +1,54 @@ +import OAI.Geometry.RCD.Sobolev.CompactBochnerTest + +namespace OAI + +/-! # Cancellation of the constant local Laplacian in the Bochner formula -/ + +open Set Filter MeasureTheory +open scoped NNReal + +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +theorem constant_source_cancellation (u : SobolevSpace μ hQ) (d : Lp ℝ 2 μ) + (hd : IsWeakLaplacian μ hQ u d) {Ω : Set X} (hΩ : MeasurableSet Ω) + (c : ℝ) (hc : d =ᵐ[μ.restrict Ω] fun _ => c) + (w : SobolevSpace μ hQ) (v : X → ℝ) + (hw : SobolevSpace.toLp μ hQ w =ᵐ[μ] v) (hs : tsupport v ⊆ Ω) : + (∫ x, v x * (d x) ^ 2 ∂μ) + weightedGamma μ hQ d u w = 0 := by + have hc' := (ae_restrict_iff' hΩ).mp hc + have hv0 (x : X) (hx : x ∉ Ω) : v x = 0 := + image_eq_zero_of_notMem_tsupport (fun hm => hx (hs hm)) + have hi : inner ℝ d (SobolevSpace.toLp μ hQ w) = c * ∫ x, v x ∂μ := by + rw [L2.inner_def, ← integral_const_mul] + apply integral_congr_ae + filter_upwards [hw, hc'] with x hx hcx + change SobolevSpace.toLp μ hQ w x * d x = c * v x + rw [hx] + by_cases hmem : x ∈ Ω + · rw [hcx hmem, mul_comm] + · rw [hv0 x hmem, zero_mul, mul_zero] + have hsq : (∫ x, v x * (d x) ^ 2 ∂μ) = c ^ 2 * ∫ x, v x ∂μ := by + rw [← integral_const_mul] + apply integral_congr_ae + filter_upwards [hc'] with x hx + by_cases hmem : x ∈ Ω + · rw [hx hmem, mul_comm] + · rw [hv0 x hmem, zero_mul, mul_zero] + have hm : weightedGamma μ hQ d u w = c * energyForm μ hQ u w := by + rw [← integral_localGamma_eq_energyForm, ← integral_const_mul] + apply integral_congr_ae + filter_upwards [hc', hw, localGamma_comm μ hQ u w, + localGamma_zero_on_level μ hQ w u 0] with x hx hwx hcomm hzero + change d x * localGamma μ hQ u w x = c * localGamma μ hQ u w x + by_cases hmem : x ∈ Ω + · rw [hx hmem] + · rw [hcomm, hzero (hwx.trans (hv0 x hmem)), mul_zero, mul_zero] + rw [hsq, hm, hd w, hi] + ring + +end RegularPointCoordinates + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/ContainingMassCutoffDifference.lean b/lean/OAI/Geometry/RCD/Sobolev/ContainingMassCutoffDifference.lean new file mode 100644 index 0000000000000000000000000000000000000000..68550c7fe04d493cf486a639991eaed993a336a7 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/ContainingMassCutoffDifference.lean @@ -0,0 +1,49 @@ +import OAI.Geometry.RCD.Sobolev.CutoffDifferenceEnergy + +namespace OAI + +/-! # The exact cutoff comparison in normalized physical units -/ + +open Set Filter MeasureTheory +open scoped NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +theorem containing_mass_cutoff_difference_energy (w q η : SobolevSpace μ hQ) + {v : X → ℝ} {L B A : ℝ≥0} (hv : LipschitzWith L v) + (hs : HasCompactSupport v) (hb : ∀ x, |v x|≤B) (hn : ∀ x, 0≤v x) + (hrep : SobolevSpace.toLp μ hQ η=ᵐ[μ] v) + (hgrad : ∀ᵐ x ∂μ, SobolevSpace.minimalSlope μ hQ η x≤A) + {Ω : Set X} (hsupp : tsupport v⊆Ω) {a r : ℝ} (hr : 0 hx (hsupp h)) + have hres (F : X → ℝ) : (∫ x, v x*F x ∂μ)=∫ x in Ω, v x*F x ∂μ := by + symm + exact setIntegral_eq_integral_of_forall_compl_eq_zero (fun x hx => by rw [hz x hx,zero_mul]) + have hres2 (F : X → ℝ) : (∫ x, (v x)^2*F x ∂μ)=∫ x in Ω, (v x)^2*F x ∂μ := by + symm + exact setIntegral_eq_integral_of_forall_compl_eq_zero (fun x hx => by rw [hz x hx,zero_pow (by decide : 2≠0),zero_mul]) + have hid := cutoff_difference_energy μ hQ w q η hv hs hb hn hrep hgrad hsupp hw + rw [hres2,hres2,hres2] at hid + have hc : (∫ x, v x*SobolevSpace.toLp μ hQ (w-q) x*localGamma μ hQ w η x ∂μ)= + ∫ x in Ω, v x*SobolevSpace.toLp μ hQ (w-q) x*localGamma μ hQ w η x ∂μ := by + simpa only [mul_assoc] using hres (fun x => SobolevSpace.toLp μ hQ (w-q) x*localGamma μ hQ w η x) + rw [hc] at hid + have he := congrArg (fun y : ℝ => r^2*m⁻¹*y) hid + convert he using 1 + field_simp [hr.ne'] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/ContainingMassCutoffErrors.lean b/lean/OAI/Geometry/RCD/Sobolev/ContainingMassCutoffErrors.lean new file mode 100644 index 0000000000000000000000000000000000000000..580228b8fe450bac6bd5f88c6d556e465496fbcc --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/ContainingMassCutoffErrors.lean @@ -0,0 +1,84 @@ +import OAI.Geometry.RCD.Sobolev.PoissonCutoffErrors +import OAI.Geometry.RCD.Metric.ContainingMassL2Error + +namespace OAI + +/-! # The cutoff errors need only normalized L2 convergence in value -/ + +open Set Filter MeasureTheory +open scoped Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MeasurableSpace X] + +theorem containing_mass_source_l2_error_tendsto (μ : ℕ → Measure X) + [∀ k, IsFiniteMeasure (μ k)] (m : ℕ → ℝ) (hmass : ∀ k, 0 < m k) + (hmass_le : ∀ k, (μ k).real univ ≤ m k) + (z v : ℕ → X → ℝ) (a : ℕ → ℝ) {A B : ℝ} (hA : 0≤A) + (ha : ∀ᶠ k in atTop, |a k|≤A) + (hv : ∀ᶠ k in atTop, ∀ᵐ x ∂μ k, |v k x|≤B) + (hzm : ∀ k, MemLp (z k) 2 (μ k)) + (hvm : ∀ k, AEStronglyMeasurable (v k) (μ k)) + (hz : Tendsto (fun k => (m k)⁻¹*∫ x, (z k x)^2 ∂μ k) atTop (𝓝 0)) : + Tendsto (fun k => a k*(m k)⁻¹* + ∫ x, (v k x)^2*z k x ∂μ k) atTop (𝓝 0) := by + have hb : ∀ᶠ k in atTop, ∀ᵐ x ∂μ k, |a k*(v k x)^2|≤A*B^2 := by + filter_upwards [ha,hv] with k hak hvk + filter_upwards [hvk] with x hvx + rw [abs_mul,abs_pow] + exact mul_le_mul hak (pow_le_pow_left₀ (abs_nonneg _) hvx 2) (sq_nonneg _) hA + have ht := l2_product_error_of_containing_mass μ m hmass hmass_le z (fun k x => a k*(v k x)^2) + hzm (fun k => ((hvm k).pow 2).const_mul (a k)) hb hz + convert ht using 1 + funext k + have he : (fun x => z k x*(a k*(v k x)^2))=fun x => a k*((v k x)^2*z k x) := by + funext x + ring + rw [he,integral_const_mul] + ring + + +variable [MetricSpace X] [BorelSpace X] [ProperSpace X] + +theorem containing_mass_gamma_l2_error_tendsto (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + (Ω : ℕ → Set X) [∀ k, IsFiniteMeasure (μ.restrict (Ω k))] + (m : ℕ → ℝ) (hmass : ∀ k, 0 < m k) + (hmass_le : ∀ k, μ.real (Ω k) ≤ m k) (r : ℕ → ℝ) (hr : ∀ k, 0≤r k) + (f g : ℕ → SobolevSpace μ hQ) (z v : ℕ → X → ℝ) + {M L B : ℝ} (hM : 0≤M) (hL : 0≤L) (hB : 0≤B) + (hf : ∀ᶠ k in atTop, ∀ᵐ x ∂μ.restrict (Ω k), r k^2*localGamma μ hQ (f k) (f k) x≤M^2) + (hg : ∀ᶠ k in atTop, ∀ᵐ x ∂μ.restrict (Ω k), r k^2*localGamma μ hQ (g k) (g k) x≤L^2) + (hv : ∀ᶠ k in atTop, ∀ᵐ x ∂μ.restrict (Ω k), |v k x|≤B) + (hzm : ∀ k, MemLp (z k) 2 (μ.restrict (Ω k))) + (hvm : ∀ k, AEStronglyMeasurable (v k) (μ.restrict (Ω k))) + (hz : Tendsto (fun k => (m k)⁻¹*∫ x in Ω k, (z k x)^2 ∂μ) atTop (𝓝 0)) : + Tendsto (fun k => r k^2*(m k)⁻¹* + ∫ x in Ω k, v k x*z k x*localGamma μ hQ (f k) (g k) x ∂μ) atTop (𝓝 0) := by + have hb : ∀ᶠ k in atTop, ∀ᵐ x ∂μ.restrict (Ω k), + |v k x*(r k^2*localGamma μ hQ (f k) (g k) x)|≤B*(M*L) := by + filter_upwards [hf,hg,hv] with k hfk hgk hvk + filter_upwards [scaled_gamma_bound μ hQ (f k) (g k) (hr k) hM hL hfk hgk,hvk] + with x hx hvx + rw [abs_mul] + exact mul_le_mul hvx hx (abs_nonneg _) hB + have ht := l2_product_error_of_containing_mass (fun k => μ.restrict (Ω k)) m hmass + (fun k => by simpa only [Measure.real,Measure.restrict_apply_univ] using hmass_le k) + z (fun k x => v k x*(r k^2*localGamma μ hQ (f k) (g k) x)) + hzm (fun k => (hvm k).mul + (((localGamma_memL1 μ hQ (f k) (g k)).restrict.aestronglyMeasurable).const_mul (r k^2))) + hb (by simpa only [Measure.real,Measure.restrict_apply_univ] using hz) + convert ht using 1 + funext k + have he : (fun x => z k x*(v k x*(r k^2*localGamma μ hQ (f k) (g k) x)))= + fun x => r k^2*(v k x*z k x*localGamma μ hQ (f k) (g k) x) := by + funext x + ring + rw [he,integral_const_mul] + ring + + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/ContainingMassPoissonComparison.lean b/lean/OAI/Geometry/RCD/Sobolev/ContainingMassPoissonComparison.lean new file mode 100644 index 0000000000000000000000000000000000000000..a60c3d0806ed5bc45f059e45645eb90f24e3d144 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/ContainingMassPoissonComparison.lean @@ -0,0 +1,79 @@ +import OAI.Geometry.RCD.Sobolev.ContainingMassCutoffDifference +import OAI.Geometry.RCD.Sobolev.ContainingMassCutoffErrors +import OAI.Geometry.RCD.Sobolev.PoissonStrongComparison +import OAI.Geometry.RCD.Sobolev.EnergyGapLimit + +namespace OAI + +/-! # Local strong gradient comparison from the actual Poisson equation + +Sharp recovery energies and the lower bound for the original function, +together with vanishing value error, force the cutoff gradient error to +vanish. The constant source and cutoff commutator are both retained. +-/ + +open Set Filter MeasureTheory +open scoped Topology NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem poisson_strong_cutoff_comparison_containing_mass (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + (Ω : ℕ → Set X) [∀ k, IsFiniteMeasure (μ.restrict (Ω k))] + (m : ℕ → ℝ) (hmass : ∀ k, 0 < m k) + (hmass_le : ∀ k, μ.real (Ω k) ≤ m k) (r : ℕ → ℝ) (hr : ∀ k, 0 (m k)⁻¹* + ∫ x in Ω k, (SobolevSpace.toLp μ hQ (w k-q k) x)^2 ∂μ) atTop (𝓝 0)) + (hq : Tendsto (fun k => r k^2*(m k)⁻¹*∫ x in Ω k, (v k x)^2*localGamma μ hQ (q k) (q k) x ∂μ) + atTop (𝓝 E)) + (hlower : ∀ δ : ℝ, 0<δ → ∀ᶠ k in atTop, + E-δ≤r k^2*(m k)⁻¹*∫ x in Ω k, (v k x)^2*localGamma μ hQ (w k) (w k) x ∂μ) : + Tendsto (fun k => r k^2*(m k)⁻¹*∫ x in Ω k, (v k x)^2*localGamma μ hQ (w k-q k) (w k-q k) x ∂μ) + atTop (𝓝 0) := by + let z : ℕ → X → ℝ := fun k x => SobolevSpace.toLp μ hQ (w k-q k) x + let S := fun k => a k*(m k)⁻¹*∫ x in Ω k, (v k x)^2*z k x ∂μ + let T := fun k => r k^2*(m k)⁻¹* + ∫ x in Ω k, v k x*z k x*localGamma μ hQ (w k) (η k) x ∂μ + have hvb : ∀ᶠ k in atTop, ∀ᵐ x ∂μ.restrict (Ω k), |v k x|≤(1:ℝ) := + Eventually.of_forall fun k => Eventually.of_forall (hb k) + have hzm (k : ℕ) : MemLp (z k) 2 (μ.restrict (Ω k)) := + (Lp.memLp (SobolevSpace.toLp μ hQ (w k-q k))).restrict (Ω k) + have hvm (k : ℕ) : AEStronglyMeasurable (v k) (μ.restrict (Ω k)) := + (hv k).continuous.aestronglyMeasurable + have hS : Tendsto S atTop (𝓝 0) := by + simpa only [S,Measure.real,Measure.restrict_apply_univ] using + containing_mass_source_l2_error_tendsto (fun k => μ.restrict (Ω k)) m hmass + (fun k => by simpa only [Measure.real,Measure.restrict_apply_univ] using hmass_le k) z v a hA ha hvb + hzm hvm (by simpa only [z,Measure.real,Measure.restrict_apply_univ] using hvalue) + have hT : Tendsto T atTop (𝓝 0) := + containing_mass_gamma_l2_error_tendsto μ hQ Ω m hmass hmass_le r (fun k => (hr k).le) + w η z v hM hL zero_le_one hwgrad hηgrad hvb hzm hvm hvalue + apply poisson_energy_gap_tendsto_zero (S := S) (T := T) _ _ hq hlower hS hT + · intro k + apply mul_nonneg (mul_nonneg (sq_nonneg _) (inv_nonneg.mpr (hmass k).le)) + apply integral_nonneg_of_ae + filter_upwards [ae_restrict_of_ae (localGamma_self μ hQ (w k-q k))] with x hx + exact mul_nonneg (sq_nonneg _) (hx ▸ sq_nonneg _) + · intro k + exact containing_mass_cutoff_difference_energy μ hQ (w k) (q k) (η k) (hv k) (hs k) + (B := 1) (hb k) (hn k) (hrep k) (hgrad k) (hsupp k) (hr k) (m k) (hw k) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/ContinuousAEEqOnTime.lean b/lean/OAI/Geometry/RCD/Sobolev/ContinuousAEEqOnTime.lean new file mode 100644 index 0000000000000000000000000000000000000000..30f3464c52ec7e1d9700271b57d0f3f0a3b5b357 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/ContinuousAEEqOnTime.lean @@ -0,0 +1,29 @@ +import OAI.Analysis.RCDHeat.DynamicalPlan +import Mathlib.Topology.Sequences + +namespace OAI + +/-! # One full-measure set for all times of continuous observables -/ + +open Set Filter MeasureTheory TopologicalSpace +noncomputable section +namespace RegularPointCoordinates +variable {A : Type*} [MeasurableSpace A] (μ : Measure A) + +theorem ae_eq_all_time_of_continuous (F G : A → Time → ℝ) + (hF : ∀ᵐ a ∂μ, Continuous (F a)) (hG : ∀ᵐ a ∂μ, Continuous (G a)) + (heq : ∀ t : Time, ∀ᵐ a ∂μ, F a t=G a t) : + ∀ᵐ a ∂μ, ∀ t : Time, F a t=G a t := by + have hseq : ∀ᵐ a ∂μ, ∀ k : ℕ, F a (denseSeq Time k)=G a (denseSeq Time k) := + ae_all_iff.mpr (fun k => heq (denseSeq Time k)) + filter_upwards [hF,hG,hseq] with a hf hg he + have hfun : F a=G a := Continuous.ext_on (denseRange_denseSeq Time) hf hg (by + rintro _ ⟨k,rfl⟩ + exact he k) + exact congrFun hfun + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/ContinuousDensityTestRigidity.lean b/lean/OAI/Geometry/RCD/Sobolev/ContinuousDensityTestRigidity.lean new file mode 100644 index 0000000000000000000000000000000000000000..cb21c95ddb6b621bcb4cfa3145576f86994f5102 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/ContinuousDensityTestRigidity.lean @@ -0,0 +1,67 @@ +import OAI.Geometry.RCD.Coordinates.EuclideanWeakHarmonicRegularity +import Mathlib.Topology.ContinuousMap.BoundedCompactlySupported +import Mathlib.Analysis.Calculus.BumpFunction.InnerProduct + +namespace OAI + +/-! # Continuous densities are determined by nonnegative compact tests -/ + +open Set Metric Filter MeasureTheory +open scoped Topology BoundedContinuousFunction +noncomputable section +namespace RegularPointCoordinates + +theorem continuous_nonpos_of_nonnegative_tests {n : ℕ} {Ω : Set (Euclidean n)} + (hΩ : IsOpen Ω) {f : Euclidean n → ℝ} (hf : ContinuousOn f Ω) + (ht : ∀ φ : Euclidean n →ᵇ ℝ, (∀ y, 0 ≤ φ y) → + HasCompactSupport (φ : Euclidean n → ℝ) → tsupport φ ⊆ Ω → + (∫ y, φ y*f y) = 0) : ∀ x ∈ Ω, f x ≤ 0 := by + intro x hx + by_contra hle + have hp : 0 < f x := lt_of_not_ge hle + have hn : ∀ᶠ y in 𝓝 x, y ∈ Ω ∧ 0 < f y := + Filter.Eventually.and (hΩ.mem_nhds hx) ((hf.continuousAt (hΩ.mem_nhds hx)).eventually + (eventually_gt_nhds hp)) + obtain ⟨δ,hδ,hball⟩ := Metric.mem_nhds_iff.mp hn + let χ : ContDiffBump x := ⟨δ/4,δ/2,by positivity,by linarith⟩ + have hs : tsupport (χ : Euclidean n → ℝ) ⊆ ball x δ := by + rw [χ.tsupport_eq] + exact closedBall_subset_ball (by dsimp only [χ]; linarith) + have hsΩ : tsupport (χ : Euclidean n → ℝ) ⊆ Ω := + fun y hy => (hball (hs hy)).1 + let φ : Euclidean n →ᵇ ℝ := ofCompactSupport χ χ.continuous χ.hasCompactSupport + have hc : Continuous (fun y => χ y*f y) := + continuous_mul_of_tsupport_subset hΩ hf χ.continuous hsΩ + have hnonneg (y : Euclidean n) : 0 ≤ χ y*f y := by + by_cases hy : χ y = 0 + · rw [hy,zero_mul] + · exact mul_nonneg χ.nonneg ((hball (hs (subset_tsupport χ hy))).2.le) + have hne : (fun y => χ y*f y) x ≠ 0 := by + dsimp only + rw [χ.one_of_mem_closedBall (mem_closedBall_self (by dsimp only [χ]; positivity)),one_mul] + exact hp.ne' + have hi := hc.integral_pos_of_hasCompactSupport_nonneg_nonzero (μ := volume) + χ.hasCompactSupport.mul_right hnonneg hne + have hz := ht φ (fun y => χ.nonneg) χ.hasCompactSupport hsΩ + exact (ne_of_gt hi) hz + +theorem continuous_zero_of_nonnegative_tests {n : ℕ} {Ω : Set (Euclidean n)} + (hΩ : IsOpen Ω) {f : Euclidean n → ℝ} (hf : ContinuousOn f Ω) + (ht : ∀ φ : Euclidean n →ᵇ ℝ, (∀ y, 0 ≤ φ y) → + HasCompactSupport (φ : Euclidean n → ℝ) → tsupport φ ⊆ Ω → + (∫ y, φ y*f y) = 0) : EqOn f 0 Ω := by + have hle := continuous_nonpos_of_nonnegative_tests hΩ hf ht + have hge := continuous_nonpos_of_nonnegative_tests hΩ hf.neg (fun φ hφ hφc hs => by + simp only [Pi.neg_apply,mul_neg,integral_neg,ht φ hφ hφc hs,neg_zero]) + intro x hx + have hl := hle x hx + have hg := hge x hx + change -f x ≤ 0 at hg + change f x = 0 + linarith + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/ContinuousDifferenceSpace.lean b/lean/OAI/Geometry/RCD/Sobolev/ContinuousDifferenceSpace.lean new file mode 100644 index 0000000000000000000000000000000000000000..902149a5a28422bd8ea00eca7980582cd0b8d8e2 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/ContinuousDifferenceSpace.lean @@ -0,0 +1,76 @@ +import Mathlib.Topology.ContinuousMap.Compact +import Mathlib.Topology.Algebra.Module.Basic + +namespace OAI + +/-! # The complete space of continuous differences + +A continuous function modulo additive constants is represented by its +pairwise differences. The inherited supremum norm is exactly the +oscillation norm needed for positive kernel contraction. +-/ + +open Set +noncomputable section +namespace RegularPointCoordinates +variable (X : Type*) [TopologicalSpace X] + +def continuousDifferenceSubmodule : Submodule ℝ C(X × X, ℝ) where + carrier := {d | ∀ x y z, d (x,z) = d (x,y) + d (y,z)} + zero_mem' := by simp + add_mem' := by + intro f g hf hg x y z + change f (x,z) + g (x,z) = f (x,y) + g (x,y) + (f (y,z) + g (y,z)) + rw [hf x y z,hg x y z] + ring + smul_mem' := by + intro a f hf x y z + change a * f (x,z) = a * f (x,y) + a * f (y,z) + rw [hf x y z,mul_add] + +instance continuousDifferenceSubmodule_closed : IsClosed (continuousDifferenceSubmodule X : Set C(X × X, ℝ)) := by + change IsClosed {d : C(X × X, ℝ) | ∀ x y z, d (x,z) = d (x,y) + d (y,z)} + simp_rw [ofPred_forall] + exact isClosed_iInter fun x => isClosed_iInter fun y => isClosed_iInter fun z => + isClosed_eq (continuous_eval_const (x,z)) + ((continuous_eval_const (x,y)).add (continuous_eval_const (y,z))) + +abbrev ContinuousDifference := continuousDifferenceSubmodule X + +def continuousDifference (f : C(X, ℝ)) : ContinuousDifference X := + ⟨⟨fun p => f p.1 - f p.2, + (f.continuous.comp continuous_fst).sub (f.continuous.comp continuous_snd)⟩, + fun _ _ _ => by dsimp; ring⟩ + +def differenceValue (d : ContinuousDifference X) (x₀ : X) : C(X, ℝ) := + ⟨fun x => d.val (x,x₀), d.val.continuous.comp (continuous_id.prodMk continuous_const)⟩ + +@[simp] theorem differenceValue_apply (d : ContinuousDifference X) (x₀ x : X) : + differenceValue X d x₀ x = d.val (x,x₀) := rfl + +theorem continuousDifference_diagonal (d : ContinuousDifference X) (x : X) : d.val (x,x)=0 := by + have h := d.property x x x + linarith + +theorem differenceValue_sub (d : ContinuousDifference X) (x₀ x y : X) : + differenceValue X d x₀ x - differenceValue X d x₀ y = d.val (x,y) := by + have h := d.property x y x₀ + change d.val (x,x₀) - d.val (y,x₀) = _ + linarith + +@[simp] theorem continuousDifference_value (d : ContinuousDifference X) (x₀ : X) : + continuousDifference X (differenceValue X d x₀) = d := by + apply Subtype.ext + apply ContinuousMap.ext + intro p + exact differenceValue_sub X d x₀ p.1 p.2 + +theorem ContinuousDifference.norm_le [CompactSpace X] {d : ContinuousDifference X} {C : ℝ} (hC : 0 ≤ C) + (h : ∀ x y, |d.val (x,y)| ≤ C) : ‖d‖ ≤ C := + (ContinuousMap.norm_le d.val hC).mpr fun p => h p.1 p.2 + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/ContinuousLocalGradientBound.lean b/lean/OAI/Geometry/RCD/Sobolev/ContinuousLocalGradientBound.lean new file mode 100644 index 0000000000000000000000000000000000000000..3c7e244701de7224cef6a4de8426746c53ccc121 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/ContinuousLocalGradientBound.lean @@ -0,0 +1,66 @@ +import OAI.Geometry.RCD.Sobolev.LocalGradientRepresentative +import OAI.Geometry.RCD.Sobolev.DirectionalGradientBound + +namespace OAI + +/-! # Gradient bounds for a prescribed continuous local representative -/ + +open Set Metric MeasureTheory +open scoped NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +omit [ProperSpace X] in +theorem NoncollapsedRCD.continuous_local_gradient_lipschitz {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (hn : 2 ≤ n) + (f : SobolevSpace (hausdorff n X) hX.quadratic) (v : X → ℝ) + (p : X) {R : ℝ} (hR : 0 < R) (L : ℝ≥0) + (hv : ContinuousOn v (ball p (8*R))) + (hrep : SobolevSpace.toLp (hausdorff n X) hX.quadratic f =ᵐ[ + (hausdorff n X).restrict (ball p (8*R))] v) + (hgrad : ∀ᵐ x ∂(hausdorff n X).restrict (ball p (8*R)), + localGamma (hausdorff n X) hX.quadratic f f x ≤ (L : ℝ)^2) : + LipschitzOnWith L v (ball p R) := by + let μ := hausdorff n X + let := hX.openPos K n + have hg : ∀ᵐ x ∂μ.restrict (ball p (8*R)), + SobolevSpace.minimalSlope μ hX.quadratic f x ≤ L := by + filter_upwards [hgrad,ae_restrict_of_ae (localGamma_self μ hX.quadratic f)] with x hx he + rw [he] at hx + nlinarith [L.coe_nonneg] + obtain ⟨w,hw,hwrep⟩ := hX.local_lipschitz_representative hn + (SobolevSpace.minimalSlope_isRelaxed μ hX.quadratic f) L hR hg + have hs : ball p R ⊆ ball p (8*R) := ball_subset_ball (by linarith) + have hvrep : SobolevSpace.toLp μ hX.quadratic f =ᵐ[μ.restrict (ball p R)] v := + ae_restrict_of_ae_restrict_of_subset hs hrep + have hwrep' : SobolevSpace.toLp μ hX.quadratic f =ᵐ[μ.restrict (ball p R)] w := + ae_restrict_of_ae_restrict_of_subset ball_subset_closedBall hwrep + have heq : Set.EqOn v w (ball p R) := by + apply Measure.eqOn_open_of_ae_eq (μ := μ) _ isOpen_ball (hv.mono hs) hw.continuous.continuousOn + exact hvrep.symm.trans hwrep' + intro x hx y hy + rw [heq hx,heq hy] + exact hw x y + +omit [ProperSpace X] in +theorem NoncollapsedRCD.continuous_local_gradient_bound {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (hn : 2 ≤ n) + (f : SobolevSpace (hausdorff n X) hX.quadratic) (v : X → ℝ) + (p : X) {R : ℝ} (hR : 0 < R) (L : ℝ≥0) + (hv : ContinuousOn v (ball p (8*R))) + (hrep : SobolevSpace.toLp (hausdorff n X) hX.quadratic f =ᵐ[ + (hausdorff n X).restrict (ball p (8*R))] v) + (hgrad : ∀ᵐ x ∂(hausdorff n X).restrict (ball p (8*R)), + localGamma (hausdorff n X) hX.quadratic f f x ≤ (L : ℝ)^2) : + ∀ x ∈ ball p R, |v x-v p| ≤ (L : ℝ)*dist x p := by + intro x hx + simpa only [Real.dist_eq] using + (hX.continuous_local_gradient_lipschitz hn f v p hR L hv hrep hgrad).dist_le_mul + x hx p (mem_ball_self hR) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/ContinuousPathMean.lean b/lean/OAI/Geometry/RCD/Sobolev/ContinuousPathMean.lean new file mode 100644 index 0000000000000000000000000000000000000000..c3926832bfa6c53ec3ebf4b9f30c3b2be7843dd7 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/ContinuousPathMean.lean @@ -0,0 +1,48 @@ +import OAI.Analysis.RCDHeat.CDSubplan +import Mathlib.MeasureTheory.Integral.Bochner.Basic +import Mathlib.Topology.Order.ProjIcc + +namespace OAI + +/-! # Endpoint extension of affine means of bounded continuous path tests -/ + +open Set Filter MeasureTheory +open scoped Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem continuous_path_mean (π : Measure C(Time,X)) [IsFiniteMeasure π] + (U : X → ℝ) (hU : Continuous U) (A : ℝ) (hA : ∀ x, |U x| ≤ A) : + Continuous (fun t : Time => ∫ γ, U (γ t) ∂π) := by + apply continuous_of_dominated (bound := fun _ => A) + · intro t + exact (hU.measurable.comp (measurable_path_eval t)).aestronglyMeasurable + · exact fun t => Eventually.of_forall fun γ => by simpa only [Real.norm_eq_abs] using hA (γ t) + · exact integrable_const A + · exact Eventually.of_forall fun γ => hU.comp γ.continuous + +theorem closed_time_affine (F : Time → ℝ) (hF : Continuous F) + (α β : ℝ) (hopen : ∀ t : Time, 0 < (t:ℝ) → (t:ℝ) < 1 → F t=α*(t:ℝ)+β) : + ∀ t : Time, F t=(1-(t:ℝ))*F 0+(t:ℝ)*F 1 := by + let E := IccExtend (show (0:ℝ) ≤ 1 by norm_num) F + have he : EqOn E (fun t => α*t+β) (Ioo (0:ℝ) 1) := by + intro t ht + simpa only [E,IccExtend,Function.comp_apply,projIcc_of_mem (show (0:ℝ) ≤ 1 by norm_num) + (show t ∈ Icc (0:ℝ) 1 from ⟨ht.1.le,ht.2.le⟩)] + using hopen ⟨t,ht.1.le,ht.2.le⟩ ht.1 ht.2 + have hec := he.closure hF.Icc_extend' (by fun_prop) + rw [closure_Ioo (by norm_num : (0:ℝ) ≠ 1)] at hec + have hall (t : Time) : F t=α*(t:ℝ)+β := by + simpa only [E,IccExtend,Function.comp_apply,projIcc_val] using hec t.property + intro t + rw [hall t,hall 0,hall 1] + change α*(t:ℝ)+β = (1-(t:ℝ))*(α*0+β)+(t:ℝ)*(α*1+β) + ring + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/ContinuousSobolevPairingBound.lean b/lean/OAI/Geometry/RCD/Sobolev/ContinuousSobolevPairingBound.lean new file mode 100644 index 0000000000000000000000000000000000000000..b0ee1af8a3be5b31d61c6c479bbbd222f9a6d512 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/ContinuousSobolevPairingBound.lean @@ -0,0 +1,87 @@ +import OAI.Geometry.RCD.Sobolev.ContinuousSobolevTestOrder + +namespace OAI + +/-! # From bounds on compact Sobolev pairings to pointwise bounds -/ + +open Set Filter MeasureTheory Metric +open scoped Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) [IsFiniteMeasureOnCompacts μ] [μ.IsOpenPosMeasure] + (Q : QuadraticCheegerEnergy μ) + +theorem continuous_sub_le_of_sobolev_pairings {Ω A : Set X} + (hΩ : IsOpen Ω) (hA : IsCompact A) (hΩA : Ω ⊆ A) + (f g : X → ℝ) (hf : ContinuousOn f A) (hg : ContinuousOn g A) (C : ℝ) + (htest : ∀ φ : SobolevSpace μ Q, + (∀ᵐ x ∂μ, x ∉ A → SobolevSpace.toLp μ Q φ x = 0) → + (∀ᵐ x ∂μ, |SobolevSpace.toLp μ Q φ x| ≤ 1) → + (∫ x in A, SobolevSpace.toLp μ Q φ x*f x ∂μ) - + (∫ x in A, SobolevSpace.toLp μ Q φ x*g x ∂μ) ≤ + C * ∫ x in A, |SobolevSpace.toLp μ Q φ x| ∂μ) : + ∀ x ∈ Ω, f x-g x ≤ C := by + have hnonpos := continuous_nonpos_of_sobolev_tests μ Q hΩ hΩA + ((hf.sub hg).sub continuousOn_const |>.mono hΩA) (f := fun x => f x-g x-C) ?_ + · intro x hx + have hh := hnonpos x hx + linarith + intro φ hφs hφ0 hφ1 + let Φ := SobolevSpace.toLp μ Q φ + have hsA : ∀ᵐ x ∂μ, x ∉ A → Φ x = 0 := by + filter_upwards [hφs] with x hx hnot + exact hx (fun hxΩ => hnot (hΩA hxΩ)) + have hiΦ : IntegrableOn Φ A μ := lp_integrableOn_of_finite μ Φ A hA.measure_lt_top.ne + obtain ⟨M,hM⟩ := hA.exists_bound_of_continuousOn hf + obtain ⟨N,hN⟩ := hA.exists_bound_of_continuousOn hg + have hiF : IntegrableOn (fun x => Φ x*f x) A μ := + hiΦ.mul_bdd (hf.aestronglyMeasurable hA.measurableSet) + (by filter_upwards [ae_restrict_mem hA.measurableSet] with x hx; exact hM x hx) + have hiG : IntegrableOn (fun x => Φ x*g x) A μ := + hiΦ.mul_bdd (hg.aestronglyMeasurable hA.measurableSet) + (by filter_upwards [ae_restrict_mem hA.measurableSet] with x hx; exact hN x hx) + have habs : (∫ x in A, |Φ x| ∂μ) = ∫ x in A, Φ x ∂μ := by + apply integral_congr_ae + filter_upwards [ae_restrict_of_ae hφ0] with x hx + exact abs_of_nonneg hx + have hh := htest φ hsA hφ1 + rw [habs] at hh + have he : (∫ x in A, Φ x*(f x-g x-C) ∂μ) = + (∫ x in A, Φ x*f x ∂μ) - (∫ x in A, Φ x*g x ∂μ) - + C*(∫ x in A, Φ x ∂μ) := by + calc + _ = ∫ x in A, (Φ x*f x-Φ x*g x)-C*Φ x ∂μ := by + apply integral_congr_ae + exact Eventually.of_forall fun x => by ring + _ = _ := by + have he1 := integral_sub (hiF.sub hiG) (hiΦ.const_mul C) + have he2 := integral_sub hiF hiG + simp only [Pi.sub_apply] at he1 he2 + rw [he1,he2,integral_const_mul] + change (∫ x in A, Φ x*(f x-g x-C) ∂μ) ≤ 0 + rw [he] + linarith + +theorem continuous_abs_sub_le_of_sobolev_pairings {Ω A : Set X} + (hΩ : IsOpen Ω) (hA : IsCompact A) (hΩA : Ω ⊆ A) + (f g : X → ℝ) (hf : ContinuousOn f A) (hg : ContinuousOn g A) (C : ℝ) + (htest : ∀ φ : SobolevSpace μ Q, + (∀ᵐ x ∂μ, x ∉ A → SobolevSpace.toLp μ Q φ x = 0) → + (∀ᵐ x ∂μ, |SobolevSpace.toLp μ Q φ x| ≤ 1) → + |(∫ x in A, SobolevSpace.toLp μ Q φ x*f x ∂μ) - + (∫ x in A, SobolevSpace.toLp μ Q φ x*g x ∂μ)| ≤ + C * ∫ x in A, |SobolevSpace.toLp μ Q φ x| ∂μ) : + ∀ x ∈ Ω, |f x-g x| ≤ C := by + have hu := continuous_sub_le_of_sobolev_pairings μ Q hΩ hA hΩA f g hf hg C + (fun φ hs hb => (le_abs_self _).trans (htest φ hs hb)) + have hl := continuous_sub_le_of_sobolev_pairings μ Q hΩ hA hΩA g f hg hf C + (fun φ hs hb => (le_abs_self _).trans (by simpa only [abs_sub_comm] using htest φ hs hb)) + intro x hx + exact abs_sub_le_iff.mpr ⟨hu x hx,hl x hx⟩ + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/ContinuousSobolevTestOrder.lean b/lean/OAI/Geometry/RCD/Sobolev/ContinuousSobolevTestOrder.lean new file mode 100644 index 0000000000000000000000000000000000000000..abf1ce67502e03f5598cc36a6bdfa651cbe8a4f6 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/ContinuousSobolevTestOrder.lean @@ -0,0 +1,92 @@ +import OAI.Analysis.RCDHeat.ExistingAnalytic +import OAI.Geometry.RCD.Coordinates.EuclideanWeakHarmonicRegularity + +namespace OAI + +/-! # Compact Sobolev tests detect the order of continuous functions + +Radial Lipschitz cutoffs suffice. Full support turns a positive value +into a strictly positive integral against one of these actual tests. +-/ + +open Set Filter MeasureTheory Metric +open scoped Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) [IsFiniteMeasureOnCompacts μ] [μ.IsOpenPosMeasure] + (Q : QuadraticCheegerEnergy μ) + +theorem continuous_nonpos_of_sobolev_tests {Ω s : Set X} (hΩ : IsOpen Ω) (hΩs : Ω ⊆ s) + {f : X → ℝ} (hf : ContinuousOn f Ω) + (htest : ∀ φ : SobolevSpace μ Q, + (∀ᵐ x ∂μ, x ∉ Ω → SobolevSpace.toLp μ Q φ x = 0) → + (∀ᵐ x ∂μ, 0 ≤ SobolevSpace.toLp μ Q φ x) → + (∀ᵐ x ∂μ, |SobolevSpace.toLp μ Q φ x| ≤ 1) → + (∫ x in s, SobolevSpace.toLp μ Q φ x*f x ∂μ) ≤ 0) : + ∀ x ∈ Ω, f x ≤ 0 := by + intro x hx + by_contra hn + have hp : 0 < f x := lt_of_not_ge hn + have he : ∀ᶠ y in 𝓝 x, y ∈ Ω ∧ 0 < f y := + Filter.Eventually.and (hΩ.mem_nhds hx) ((hf.continuousAt (hΩ.mem_nhds hx)).eventually + (eventually_gt_nhds hp)) + obtain ⟨δ,hδ,hball⟩ := Metric.mem_nhds_iff.mp he + let r := δ/4 + have hr : 0 < r := by dsimp only [r]; positivity + let χ := radialCutoff x r + have hχc : HasCompactSupport χ := radialCutoff_hasCompactSupport x hr + have hχL := radialCutoff_lipschitz x hr + have hχs : tsupport χ ⊆ closedBall x (2*r) := by + apply closure_minimal _ isClosed_closedBall + intro y hy + by_contra hnot + apply hy + exact radialCutoff_eq_zero x hr + (le_of_lt (by simpa only [mem_closedBall,not_le,dist_comm] using hnot)) + have hχδ : tsupport χ ⊆ ball x δ := + hχs.trans (closedBall_subset_ball (by dsimp only [r]; linarith)) + have hχΩ : tsupport χ ⊆ Ω := fun y hy => (hball (hχδ hy)).1 + have hχ0 (y : X) : 0 ≤ χ y := (radialCutoff_bounds x r y).1 + have hχ1 (y : X) : χ y ≤ 1 := (radialCutoff_bounds x r y).2 + let φ := radialSobolevCutoff μ Q x hr + have hφ : SobolevSpace.toLp μ Q φ =ᵐ[μ] χ := radialSobolevCutoff_coe μ Q x hr + have hzero (y : X) (hy : y ∉ Ω) : χ y = 0 := by + by_contra hne + exact hy (hχΩ (subset_tsupport χ hne)) + have hφs : ∀ᵐ y ∂μ, y ∉ Ω → SobolevSpace.toLp μ Q φ y = 0 := by + filter_upwards [hφ] with y hy hnot + rw [hy,hzero y hnot] + have hφ0 : ∀ᵐ y ∂μ, 0 ≤ SobolevSpace.toLp μ Q φ y := + hφ.mono fun y hy => hy.symm ▸ hχ0 y + have hφ1 : ∀ᵐ y ∂μ, |SobolevSpace.toLp μ Q φ y| ≤ 1 := by + filter_upwards [hφ] with y hy + rw [hy,abs_of_nonneg (hχ0 y)] + exact hχ1 y + have hc : Continuous (fun y => χ y*f y) := + continuous_mul_of_tsupport_subset hΩ hf hχL.continuous hχΩ + have hnonneg (y : X) : 0 ≤ χ y*f y := by + by_cases hy : χ y = 0 + · rw [hy,zero_mul] + · exact mul_nonneg (hχ0 y) (hball (hχδ (subset_tsupport χ hy))).2.le + have hne : χ x*f x ≠ 0 := by + have hxx : χ x = 1 := radialCutoff_eq_one x hr (by simp; exact hr.le) + rw [hxx,one_mul] + exact hp.ne' + have hpos := hc.integral_pos_of_hasCompactSupport_nonneg_nonzero + (μ := μ) hχc.mul_right hnonneg hne + have heq : (∫ y in s, SobolevSpace.toLp μ Q φ y*f y ∂μ) = ∫ y, χ y*f y ∂μ := by + calc + _ = ∫ y in s, χ y*f y ∂μ := integral_congr_ae (ae_restrict_of_ae (hφ.mul (EventuallyEq.refl _ _))) + _ = _ := setIntegral_eq_integral_of_ae_compl_eq_zero (Eventually.of_forall fun y hy => by + have hz : χ y = 0 := hzero y (fun hyΩ => hy (hΩs hyΩ)) + rw [hz,zero_mul]) + have hle := htest φ hφs hφ0 hφ1 + rw [heq] at hle + exact (not_lt_of_ge hle) hpos + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/ContinuousTimeCylinders.lean b/lean/OAI/Geometry/RCD/Sobolev/ContinuousTimeCylinders.lean new file mode 100644 index 0000000000000000000000000000000000000000..5a6b15a8b9d66a7a934bec29019d44120f55c3f4 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/ContinuousTimeCylinders.lean @@ -0,0 +1,49 @@ +import OAI.Geometry.RCD.Sobolev.GoodTimeExtension +import Mathlib.MeasureTheory.Constructions.BorelSpace.Basic + +namespace OAI + +/-! # Continuity and measurability from local Lipschitz time cylinders -/ + +open Set Filter MeasureTheory Metric +open scoped Topology NNReal +noncomputable section +namespace RegularPointCoordinates + +theorem goodTimeExtension_regular {X : Type*} [MetricSpace X] [MeasurableSpace X] + [BorelSpace X] (z : X) (N : Set ℝ) (G : ℝ → X → ℝ) + (hlocal : ∀ r : ℝ, 0 < r → ∀ δ : ℝ, 0 < δ → + ∃ L : ℝ≥0, LipschitzOnWith L (Function.uncurry (goodTimeExtension N G)) + (Ioo δ 1 ×ˢ closedBall z r)) : + ContinuousOn (Function.uncurry (goodTimeExtension N G)) (Ioo 0 1 ×ˢ univ) ∧ + Measurable (Function.uncurry (goodTimeExtension N G)) := by + have hc : ContinuousOn (Function.uncurry (goodTimeExtension N G)) (Ioo 0 1 ×ˢ univ) := by + intro q hq + let r := dist q.2 z+1 + have hr : 0 < r := by dsimp only [r]; positivity + have hδ : 0 < q.1/2 := half_pos hq.1.1 + obtain ⟨L,hL⟩ := hlocal r hr (q.1/2) hδ + have ht : q.1 ∈ Ioo (q.1/2) 1 := ⟨by linarith [hq.1.1],hq.1.2⟩ + have hx : q.2 ∈ ball z r := by simp only [mem_ball,r]; linarith + have hn : Ioo (q.1/2) 1 ×ˢ closedBall z r ∈ 𝓝 q := + prod_mem_nhds (isOpen_Ioo.mem_nhds ht) (closedBall_mem_nhds_of_mem hx) + exact ((hL.continuousOn q ⟨ht,ball_subset_closedBall hx⟩).continuousAt hn).continuousWithinAt + refine ⟨hc,?_⟩ + classical + have hm := hc.measurable_piecewise (g := fun _ => (0:ℝ)) continuousOn_const + (measurableSet_Ioo.prod MeasurableSet.univ) + have he : (Ioo (0:ℝ) 1 ×ˢ (univ : Set X)).piecewise + (Function.uncurry (goodTimeExtension N G)) (fun _ => 0) = + Function.uncurry (goodTimeExtension N G) := by + funext q + by_cases hq : q.1 ∈ Ioo (0:ℝ) 1 + · simp only [Set.piecewise,mem_prod,mem_univ,and_true,hq,ite_eq_left] + · simp only [Set.piecewise,mem_prod,mem_univ,and_true,hq, + Function.uncurry,goodTimeExtension,ite_false] + rwa [he] at hm + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/ConvexDifferenceSpace.lean b/lean/OAI/Geometry/RCD/Sobolev/ConvexDifferenceSpace.lean new file mode 100644 index 0000000000000000000000000000000000000000..3cc5716af19de9ba1bd44f96f42538ca372575a1 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/ConvexDifferenceSpace.lean @@ -0,0 +1,50 @@ +import Mathlib.Analysis.Convex.Topology +import Mathlib.Tactic + +namespace OAI + +/-! # The vector space generated by differences of a convex set -/ + +open Set +noncomputable section +namespace RegularPointCoordinates +variable {E : Type*} [AddCommGroup E] [Module ℝ E] + +/-- Every vector is one nonnegative multiple of a difference of two points. +This representation retains the points needed for the distance pairing. -/ +def convexDifferenceSpace (K : Set E) (hK : Convex ℝ K) (h0 : 0 ∈ K) : Submodule ℝ E where + carrier := {v | ∃ a : ℝ, 0 ≤ a ∧ ∃ x ∈ K, ∃ y ∈ K, v = a • (x-y)} + zero_mem' := ⟨0,le_rfl,0,h0,0,h0,by simp⟩ + add_mem' := by + rintro u v ⟨a,ha,x,hx,y,hy,rfl⟩ ⟨b,hb,z,hz,w,hw,rfl⟩ + by_cases hab : a+b=0 + · have ha0 : a=0 := by linarith + have hb0 : b=0 := by linarith + exact ⟨0,le_rfl,0,h0,0,h0,by simp [ha0,hb0]⟩ + have habpos : 0 ?_) i + · exact sub_nonneg.mpr hsum + · exact hw j + have hsum' : ∑ i, w' i = 1 := by + simp only [w',Fin.sum_univ_succ,Fin.cons_zero,Fin.cons_succ] + ring + have hv' : ∀ i ∈ (Finset.univ : Finset (Fin (m+1))), v' i ∈ K := by + intro i _ + exact Fin.cases h0 hv i + have hh := hK.sum_mem hw' hsum' hv' + simpa only [w',v',Fin.sum_univ_succ,Fin.cons_zero,Fin.cons_succ,smul_zero,zero_add] using hh + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/CorrectionInteriorEnergy.lean b/lean/OAI/Geometry/RCD/Sobolev/CorrectionInteriorEnergy.lean new file mode 100644 index 0000000000000000000000000000000000000000..d2b0602ddb3c6c97f72ed48d1c51849ceedb4ecf --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/CorrectionInteriorEnergy.lean @@ -0,0 +1,126 @@ +import OAI.Geometry.RCD.Sobolev.HarmonicGradientInput +import OAI.Geometry.RCD.Sobolev.WeakRadialCancellation + +namespace OAI + +/-! # Interior gradient control from the harmonic radial correction -/ + +open Set Metric MeasureTheory +open scoped ENNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem localGamma_add_self_le (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + (f g : SobolevSpace μ hQ) : + ∀ᵐ x ∂μ, localGamma μ hQ (f + g) (f + g) x ≤ + 2 * localGamma μ hQ f f x + 2 * localGamma μ hQ g g x := by + filter_upwards [localGamma_add_left μ hQ f g (f + g), + localGamma_add_right μ hQ f f g, localGamma_add_right μ hQ g f g, + localGamma_comm μ hQ f g, localGamma_self μ hQ f, localGamma_self μ hQ g, + localGamma_abs_le μ hQ f g] with x hl hr hs hc hf hg hb + rw [hl, hr, hs, ← hc, hf, hg] + have hu := (le_abs_self (localGamma μ hQ f g x)).trans hb + nlinarith [sq_nonneg (SobolevSpace.minimalSlope μ hQ f x - SobolevSpace.minimalSlope μ hQ g x)] + +omit [BorelSpace X] [ProperSpace X] in +theorem sobolev_restrict_norm_sq (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + (s : Set X) (f : SobolevSpace μ hQ) : + ‖SobolevSpace.restrictLp μ hQ s f‖ ^ 2 = + ∫ x in s, (SobolevSpace.toLp μ hQ f x) ^ 2 ∂μ := by + rw [l2_norm_sq_eq_integral] + apply integral_congr_ae + filter_upwards [SobolevSpace.restrictLp_coe μ hQ s f] with x hx + rw [hx] + +/-- The harmonic part is controlled by the interior gradient +estimate; the zero-boundary correction retains its full energy budget. +This supplies the radial W12 step without assuming bounded harmonic data. -/ +theorem correction_interior_energy {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (hgradient : LocalHarmonicL2GradientInput hX) + (hn : 2 ≤ n) {κ : ℝ} (hκ : 0 ≤ κ) : + ∃ C : ℝ, 1 ≤ C ∧ ∀ (p : X) (R : ℝ), 0 < R → -κ ≤ K * R ^ 2 → + ∀ (g h F : SobolevSpace (hausdorff n X) hX.quadratic), + IsSobolevHarmonicOn (hausdorff n X) hX.quadratic (ball p R) h → + IsSobolevHarmonicOn (hausdorff n X) hX.quadratic (ball p R) F → + ∀ {D I J : ℝ}, + energyForm (hausdorff n X) hX.quadratic (g - h) (g - h) ≤ D → + ‖SobolevSpace.restrictLp (hausdorff n X) hX.quadratic (ball p R) (g - F)‖ ^ 2 ≤ I → + ‖SobolevSpace.toLp (hausdorff n X) hX.quadratic (g - h)‖ ^ 2 ≤ J → + (∫ x in ball p (R / 2), localGamma (hausdorff n X) hX.quadratic (g - F) (g - F) x + ∂hausdorff n X) ≤ 2 * D + 4 * (C / R) ^ 2 * (I + J) := by + obtain ⟨C, hC, hpoint⟩ := hgradient hn κ (1 / 2) hκ (by norm_num) (by norm_num) + refine ⟨C, hC, ?_⟩ + intro p R hR hcurv g h F hh hF D I J hD hI hJ + let μ := hausdorff n X + let hQ := hX.quadratic + have hhF : IsSobolevHarmonicOn μ hQ (ball p R) (h - F) := by + simpa only [neg_one_smul, ← sub_eq_add_neg] using hh.add μ hQ (hF.smul μ hQ (-1)) + have hlocalJ : ‖SobolevSpace.restrictLp μ hQ (ball p R) (g - h)‖ ^ 2 ≤ J := by + rw [sobolev_restrict_norm_sq] + apply le_trans (setIntegral_le_integral (Lp.memLp + (SobolevSpace.toLp μ hQ (g - h))).integrable_sq (Filter.Eventually.of_forall fun _ => sq_nonneg _)) + rwa [lp_integral_square_eq_norm_square] + have hnorm : ‖SobolevSpace.restrictLp μ hQ (ball p R) (h - F)‖ ^ 2 ≤ 2 * (I + J) := by + have he : h - F = (g - F) - (g - h) := by abel + rw [he, map_sub] + have ht := norm_sub_le (SobolevSpace.restrictLp μ hQ (ball p R) (g - F)) + (SobolevSpace.restrictLp μ hQ (ball p R) (g - h)) + have ht2 := (sq_le_sq₀ (norm_nonneg _) + (add_nonneg (norm_nonneg _) (norm_nonneg _))).mpr ht + nlinarith [sq_nonneg (‖SobolevSpace.restrictLp μ hQ (ball p R) (g - F)‖ - + ‖SobolevSpace.restrictLp μ hQ (ball p R) (g - h)‖)] + have hmass : 0 < μ.real (ball p R) := ENNReal.toReal_pos + (ne_of_gt (hX.fullSupport p R hR)) (ne_of_lt (hX.finiteOnBounded _ isBounded_ball)) + have hmean : ∫ x in ball p R, (SobolevSpace.toLp μ hQ (h - F) x) ^ 2 ∂μ ≤ 2 * (I + J) := by + rwa [sobolev_restrict_norm_sq] at hnorm + have hgrad : ∀ᵐ x ∂μ.restrict (ball p (R / 2)), localGamma μ hQ (h - F) (h - F) x ≤ + (C / R) ^ 2 * ((μ.real (ball p R))⁻¹ * (2 * (I + J))) := by + have hp := hpoint p R hR hcurv (h - F) hhF + have he : (1 / 2 : ℝ) * R = R / 2 := by ring + rw [he] at hp + filter_upwards [hp] with x hx + exact hx.trans (mul_le_mul_of_nonneg_left (mul_le_mul_of_nonneg_left hmean + (inv_nonneg.mpr hmass.le)) (sq_nonneg _)) + have henergyH : (∫ x in ball p (R / 2), localGamma μ hQ (h - F) (h - F) x ∂μ) ≤ + 2 * (C / R) ^ 2 * (I + J) := by + let : IsFiniteMeasure (μ.restrict (ball p (R / 2))) := + ⟨by simpa only [Measure.restrict_apply_univ] using hX.finiteOnBounded (ball p (R / 2)) isBounded_ball⟩ + have hi := integral_mono_ae (localGamma_memL1 μ hQ (h - F) (h - F)).integrableOn + (integrable_const ((C / R) ^ 2 * ((μ.real (ball p R))⁻¹ * (2 * (I + J))))) hgrad + have hIJ : 0 ≤ I + J := by + linarith [sq_nonneg (‖SobolevSpace.restrictLp μ hQ (ball p R) (g - F)‖), + sq_nonneg (‖SobolevSpace.toLp μ hQ (g - h)‖)] + simp only [integral_const, smul_eq_mul, Measure.real, Measure.restrict_apply_univ] at hi + have hv := measureReal_mono (ball_subset_ball (show R / 2 ≤ R by linarith)) + (ne_of_lt (hX.finiteOnBounded (ball p R) isBounded_ball)) + apply hi.trans + calc + _ ≤ μ.real (ball p R) * ((C / R) ^ 2 * ((μ.real (ball p R))⁻¹ * (2 * (I + J)))) := + mul_le_mul_of_nonneg_right hv (by positivity) + _ = _ := by field_simp + have henergyG : (∫ x in ball p (R / 2), localGamma μ hQ (g - h) (g - h) x ∂μ) ≤ D := by + have hn : ∀ᵐ x ∂μ, 0 ≤ localGamma μ hQ (g - h) (g - h) x := by + filter_upwards [localGamma_self μ hQ (g - h)] with x hx + rw [hx]; positivity + apply le_trans (setIntegral_le_integral (localGamma_memL1 μ hQ (g - h) (g - h)) hn) + rwa [integral_localGamma_eq_energyForm] + have he : g - F = (g - h) + (h - F) := by abel + have hb := integral_mono_ae (μ := μ.restrict (ball p (R / 2))) + (localGamma_memL1 μ hQ (g - F) (g - F)).integrableOn + (((localGamma_memL1 μ hQ (g - h) (g - h)).integrableOn.const_mul 2).add + ((localGamma_memL1 μ hQ (h - F) (h - F)).integrableOn.const_mul 2)) + (ae_restrict_of_ae (by simpa only [he, Pi.add_apply] using localGamma_add_self_le μ hQ (g - h) (h - F))) + simp only [Pi.add_apply] at hb + rw [integral_add ((localGamma_memL1 μ hQ (g - h) (g - h)).integrableOn.const_mul 2) + ((localGamma_memL1 μ hQ (h - F) (h - F)).integrableOn.const_mul 2)] at hb + simp only [integral_const_mul] at hb + linarith + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/CountableCompactDomains.lean b/lean/OAI/Geometry/RCD/Sobolev/CountableCompactDomains.lean new file mode 100644 index 0000000000000000000000000000000000000000..1c7d51eedee766af8732db20d3f416b8c2bbeb98 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/CountableCompactDomains.lean @@ -0,0 +1,50 @@ +import OAI.Geometry.RCD.Sobolev.CountableLipschitzCompactness + +namespace OAI + +/-! # Simultaneous Lipschitz limits on distinct compact domains -/ + +open Set Filter +open scoped NNReal Topology +noncomputable section +namespace RegularPointCoordinates + +theorem countable_lipschitz_subsequence_on_compacts {Z : Type*} [MetricSpace Z] + (s : ℕ → Set Z) (hs : ∀ m, IsCompact (s m)) (f : ℕ → ℕ → Z → ℝ) + (L : ℕ → ℝ≥0) (A : ℕ → ℝ) + (hl : ∀ m k, LipschitzWith (L m) (f m k)) + (hb : ∀ m k z, z ∈ s m → |f m k z| ≤ A m) : + ∃ (g : ℕ → Z → ℝ) (a : ℕ → ℕ), StrictMono a ∧ + ∀ m, LipschitzWith (L m) (g m) ∧ (∀ z ∈ s m, |g m z| ≤ A m) ∧ + ∀ ε : ℝ, 0 < ε → ∀ᶠ k in atTop, ∀ z ∈ s m, + |f m (a k) z-g m z| < ε := by + classical + let (m : ℕ) : CompactSpace (s m) := isCompact_iff_compactSpace.mp (hs m) + obtain ⟨G,a,ha,hG⟩ := countable_uniform_lipschitz_subsequence + (Y := fun m => s m) (fun m k z => f m k z) L A + (fun m k => by simpa only [mul_one,Function.comp_def] using + (hl m k).comp (LipschitzWith.subtype_val (s m))) (fun m k z => hb m k z z.property) + let G0 : ℕ → Z → ℝ := fun m z => if h : z ∈ s m then G m ⟨z,h⟩ else 0 + have hG0 (m : ℕ) : LipschitzOnWith (L m) (G0 m) (s m) := by + intro x hx y hy + simpa only [G0,dite_eq_left hx,dite_eq_left hy,Subtype.edist_eq] using + (hG m).1 ⟨x,hx⟩ ⟨y,hy⟩ + choose g hg he using fun m => (hG0 m).extend_real + have heq (m : ℕ) (z : s m) : G m z = g m z := by + simpa only [G0,dite_eq_left z.property] using he m z.property + refine ⟨g,a,ha,?_⟩ + intro m + refine ⟨hg m,?_,?_⟩ + · intro z hz + rw [← heq m ⟨z,hz⟩] + exact (hG m).2.1 ⟨z,hz⟩ + · intro ε hε + filter_upwards [(Metric.tendstoUniformly_iff.mp (hG m).2.2) ε hε] with k hk + intro z hz + simpa only [Real.dist_eq,heq,abs_sub_comm] using hk ⟨z,hz⟩ + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/CountableLipschitzCompactness.lean b/lean/OAI/Geometry/RCD/Sobolev/CountableLipschitzCompactness.lean new file mode 100644 index 0000000000000000000000000000000000000000..f727bec6ed418d22031946bf9e813ee720566d0f --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/CountableLipschitzCompactness.lean @@ -0,0 +1,89 @@ +import OAI.Geometry.RCD.Sobolev.LipschitzCompactSubsequence + +namespace OAI + +/-! # One uniform-convergence subsequence for a countable family + +Each family has its own compact domain and Lipschitz bound. The product +of the Arzela--Ascoli compact sets supplies a single common subsequence. +-/ + +open Set Filter +open scoped NNReal Topology BoundedContinuousFunction +noncomputable section +namespace RegularPointCoordinates + +theorem countable_uniform_lipschitz_subsequence + {Y : ℕ → Type*} [∀ m, MetricSpace (Y m)] [∀ m, CompactSpace (Y m)] + (f : ∀ m, ℕ → Y m → ℝ) (L : ℕ → ℝ≥0) (A : ℕ → ℝ) + (hl : ∀ m k, LipschitzWith (L m) (f m k)) + (hb : ∀ m k y, |f m k y|≤A m) : + ∃ (g : ∀ m, Y m → ℝ) (a : ℕ → ℕ), StrictMono a ∧ + ∀ m, LipschitzWith (L m) (g m) ∧ (∀ y, |g m y|≤A m) ∧ + TendstoUniformly (fun k => f m (a k)) (g m) atTop := by + let F : ∀ m, ℕ → Y m →ᵇ ℝ := fun m k => + BoundedContinuousFunction.mkOfCompact ⟨f m k,(hl m k).continuous⟩ + have hc (m : ℕ) : IsCompact (closure (range (F m))) := by + apply BoundedContinuousFunction.arzela_ascoli (Icc (-(A m)) (A m)) + isCompact_Icc (range (F m)) + · rintro q y ⟨k,rfl⟩ + exact abs_le.mp (hb m k y) + · apply Metric.equicontinuous_of_continuity_modulus (fun r : ℝ => (L m:ℝ)*r) + (by simpa only [mul_zero] using + (show Continuous (fun r : ℝ => (L m:ℝ)*r) by fun_prop).tendsto (0:ℝ)) + rintro y z ⟨q,k,rfl⟩ + exact (hl m k).dist_le_mul y z + obtain ⟨g,_,a,ha,hlim⟩ := (isCompact_pi_infinite hc).tendsto_subseq + (fun k m => subset_closure (mem_range_self k)) + have hm (m : ℕ) : Tendsto (fun k => F m (a k)) atTop (𝓝 (g m)) := + ((continuous_apply m).tendsto g).comp hlim + have hp (m : ℕ) (y : Y m) : Tendsto (fun k => f m (a k) y) atTop (𝓝 (g m y)) := + ((BoundedContinuousFunction.lipschitz_eval_const y).continuous.tendsto (g m)).comp (hm m) + refine ⟨fun m => g m,a,ha,?_⟩ + intro m + refine ⟨?_,?_,BoundedContinuousFunction.tendsto_iff_tendstoUniformly.mp (hm m)⟩ + · apply LipschitzWith.of_dist_le_mul + intro y z + exact le_of_tendsto ((hp m y).dist (hp m z)) + (Eventually.of_forall fun k => (hl m (a k)).dist_le_mul y z) + · intro y + exact le_of_tendsto (hp m y).abs (Eventually.of_forall fun k => hb m (a k) y) + +theorem countable_lipschitz_subsequence_on_compact {Z : Type*} [MetricSpace Z] + {s : Set Z} (hs : IsCompact s) (f : ℕ → ℕ → Z → ℝ) + (L : ℕ → ℝ≥0) (A : ℕ → ℝ) + (hl : ∀ m k, LipschitzWith (L m) (f m k)) + (hb : ∀ m k z, z∈s → |f m k z|≤A m) : + ∃ (g : ℕ → Z → ℝ) (a : ℕ → ℕ), StrictMono a ∧ + ∀ m, LipschitzWith (L m) (g m) ∧ (∀ z∈s, |g m z|≤A m) ∧ + ∀ ε : ℝ, 0<ε → ∀ᶠ k in atTop, ∀ z∈s, |f m (a k) z-g m z|<ε := by + classical + let : CompactSpace s := isCompact_iff_compactSpace.mp hs + obtain ⟨G,a,ha,hG⟩ := countable_uniform_lipschitz_subsequence + (Y := fun _ => s) (fun m k z => f m k z) L A + (fun m k => by simpa only [mul_one,Function.comp_def] using + (hl m k).comp (LipschitzWith.subtype_val s)) (fun m k z => hb m k z z.property) + let G0 : ℕ → Z → ℝ := fun m z => if h:z∈s then G m ⟨z,h⟩ else 0 + have hG0 (m : ℕ) : LipschitzOnWith (L m) (G0 m) s := by + intro x hx y hy + simpa only [G0,dite_eq_left hx,dite_eq_left hy,Subtype.edist_eq] using + (hG m).1 ⟨x,hx⟩ ⟨y,hy⟩ + choose g hg he using fun m => (hG0 m).extend_real + have heq (m : ℕ) (z:s) : G m z=g m z := by + simpa only [G0,dite_eq_left z.property] using he m z.property + refine ⟨g,a,ha,?_⟩ + intro m + refine ⟨hg m,?_,?_⟩ + · intro z hz + rw [← heq m ⟨z,hz⟩] + exact (hG m).2.1 ⟨z,hz⟩ + · intro ε hε + filter_upwards [(Metric.tendstoUniformly_iff.mp (hG m).2.2) ε hε] with k hk + intro z hz + simpa only [Real.dist_eq,heq,abs_sub_comm] using hk ⟨z,hz⟩ + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/CoveredCoercivity.lean b/lean/OAI/Geometry/RCD/Sobolev/CoveredCoercivity.lean new file mode 100644 index 0000000000000000000000000000000000000000..8fb404c9ac9e6b8cb8fb7b2b166d12f50fd456e2 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/CoveredCoercivity.lean @@ -0,0 +1,105 @@ +import OAI.Geometry.RCD.Sobolev.LocalZeroSetCoercivity +import OAI.Geometry.RCD.Metric.FiniteCoverIntegral +import OAI.Geometry.RCD.Sobolev.DirichletPoincare + +namespace OAI + +/-! # Coercivity from uniformly large local zero sets + +Separated nets cover the whole working ball. Enlarged energy balls have +uniform overlap by the CD packing estimate, so their local inequalities +sum to one global energy bound with the square of the net radius. +-/ + +open Set Metric MeasureTheory +open scoped ENNReal NNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem NoncollapsedRCD.covered_zero_set_coercivity {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (hn : 2 ≤ n) : + ∃ C : ℝ, 0 < C ∧ ∀ (p : X) (R ρ : ℝ), 0 < R → 0 < ρ → ρ ≤ R → + -1 ≤ K*R^2 → ∀ w : SobolevSpace (hausdorff n X) hX.quadratic, + (∀ q : X, dist q p ≤ R → + (hausdorff n X).real (ball q ρ) ≤ + 2*(hausdorff n X).real (ball q ρ ∩ + {x | SobolevSpace.toLp (hausdorff n X) hX.quadratic w x = 0})) → + (∫ x in ball p R, (SobolevSpace.toLp (hausdorff n X) hX.quadratic w x)^2 + ∂hausdorff n X) ≤ C*ρ^2 * energyForm (hausdorff n X) hX.quadratic w w := by + classical + obtain ⟨C, hC, hlocal⟩ := hX.local_zero_set_coercivity hn (by norm_num : (0:ℝ)≤1) + obtain ⟨N, hN⟩ := hX.rescaled_separated_card hn (by norm_num : (0:ℝ)<16) + refine ⟨C*(N+1), by positivity, ?_⟩ + intro p R ρ hR hρ hρR hcurv w hhalf + have hcurvsmall (s : ℝ) (hs : 0 ≤ s) (hsR : s ≤ R) : -1 ≤ K*s^2 := by + by_cases hK : 0 ≤ K + · exact (by norm_num : (-1:ℝ)≤0).trans (mul_nonneg hK (sq_nonneg s)) + · have hh := mul_le_mul_of_nonpos_left ((sq_le_sq₀ hs hR.le).mpr hsR) + (le_of_not_ge hK) + linarith + have hcurvρ := hcurvsmall ρ hρ.le hρR + have hcurvhalf := hcurvsmall (ρ/2) (by positivity) (by linarith) + let μ := hausdorff n X + let u := SobolevSpace.toLp μ hX.quadratic w + let G := SobolevSpace.minimalSlope μ hX.quadratic w + let δ : ℝ≥0 := ⟨ρ/2, by positivity⟩ + let s := maximalPatchNet δ (closedBall p R) + have hs : (s : Set X) ⊆ closedBall p R := maximalPatchNet_subset _ _ + have hsep : (s : Set X).Pairwise (fun x y => ρ/2 ≤ dist x y) := + fun x hx y hy hxy => (maximalPatchNet_separated δ _ hx hy hxy).le + have hcover : ball p R ⊆ ⋃ q ∈ s, ball q ρ := by + intro x hx + obtain ⟨q, hq, hxq⟩ := maximalPatchNet_covers_bounded + (show δ ≠ 0 from ne_of_gt (show (0:ℝ≥0) < δ from (by change 0 < ρ/2; positivity))) + isBounded_closedBall x (ball_subset_closedBall hx) + exact mem_iUnion₂.mpr ⟨q, hq, hxq.trans_lt (by change ρ/2 < ρ; linarith)⟩ + have hoverlap (x : X) : (s.filter (fun q => x ∈ ball q (8*ρ))).card ≤ N+1 := by + have hnear (q : X) (hq : q ∈ s.filter (fun q => x ∈ ball q (8*ρ))) : + dist q x ≤ 16*(ρ/2) := by + have hqx := (Finset.mem_filter.mp hq).2 + rw [mem_ball, dist_comm] at hqx + linarith + exact (hN x (ρ/2) (by positivity) hcurvhalf _ + (hsep.mono (by intro q hq; exact (Finset.mem_filter.mp hq).1)) hnear).trans + (Nat.le_succ N) + have hu : Integrable (fun x => u x^2) μ := (Lp.memLp u).integrable_sq + have hG : Integrable (fun x => G x^2) μ := (Lp.memLp G).integrable_sq + have hbound (q : X) (hq : q ∈ s) : + (∫ x in ball q ρ, u x^2 ∂μ) ≤ C*ρ^2 * ∫ x in ball q (8*ρ), G x^2 ∂μ := by + have hz : u =ᵐ[μ.restrict (ball q ρ ∩ {x | u x = 0})] 0 := by + filter_upwards [ae_restrict_mem (measurableSet_ball.inter + ((Lp.stronglyMeasurable u).measurable (measurableSet_singleton 0)))] with x hx + exact hx.2 + have hh := hlocal q ρ hρ hcurvρ w (ball q ρ ∩ {x | u x = 0}) + (measurableSet_ball.inter ((Lp.stronglyMeasurable u).measurable (measurableSet_singleton 0))) + inter_subset_left (hhalf q (hs hq)) hz + have heq : (∫ x in ball q (8*ρ), localGamma μ hX.quadratic w w x ∂μ) = + ∫ x in ball q (8*ρ), G x^2 ∂μ := + integral_congr_ae (ae_restrict_of_ae (localGamma_self μ hX.quadratic w)) + rwa [heq] at hh + have he : (∫ x, G x^2 ∂μ) = energyForm μ hX.quadratic w w := by + rw [lp_integral_square_eq_norm_square] + exact (SobolevSpace.minimalSlope_norm_sq μ hX.quadratic w).trans + (energyForm_self μ hX.quadratic w).symm + calc + _ ≤ ∑ q ∈ s, ∫ x in ball q ρ, u x^2 ∂μ := + integral_le_sum_cover μ s _ (fun _ _ => measurableSet_ball) measurableSet_ball hcover + hu (fun x => sq_nonneg (u x)) + _ ≤ ∑ q ∈ s, C*ρ^2 * ∫ x in ball q (8*ρ), G x^2 ∂μ := + Finset.sum_le_sum hbound + _ = C*ρ^2 * ∑ q ∈ s, ∫ x in ball q (8*ρ), G x^2 ∂μ := + (Finset.mul_sum s _ _).symm + _ ≤ C*ρ^2 * ((N+1) * ∫ x, G x^2 ∂μ) := + mul_le_mul_of_nonneg_left + (sum_integral_le_overlap μ s _ (fun _ _ => measurableSet_ball) (N+1) hoverlap + hG (fun x => sq_nonneg (G x)) |>.trans_eq (by push_cast; rfl)) (by positivity) + _ = _ := by rw [he]; ring + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/CurvedCanonicalHessianMass.lean b/lean/OAI/Geometry/RCD/Sobolev/CurvedCanonicalHessianMass.lean new file mode 100644 index 0000000000000000000000000000000000000000..dbfef756ceeec4f605b88a81534f119854ea75f6 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/CurvedCanonicalHessianMass.lean @@ -0,0 +1,113 @@ +import OAI.Geometry.RCD.Heat.CanonicalHeatHessian +import OAI.Geometry.RCD.Coordinates.BoundedRegularPrescribedHessian +import OAI.Geometry.RCD.Sobolev.ScalarBochnerConstruction +import OAI.Geometry.RCD.Sobolev.HessianL1MassBound + +namespace OAI + +/-! # The canonical Hessian mass bound with nonpositive curvature -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped Topology NNReal +noncomputable section +namespace RegularPointCoordinates.NoncollapsedRCD +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] {K : ℝ} {n : ℕ} (hX : NoncollapsedRCD K n X) (hn : 2 ≤ n) (p : X) + [SeparableSpace X] [IsLocallyFiniteMeasure (hausdorff n X)] [(hausdorff n X).Regular] + +include hn in +theorem curved_canonical_hessian_young_bound (hK : K ≤ 0) + (w dw G : SobolevSpace (hausdorff n X) hX.quadratic) + (hw : IsWeakLaplacian (hausdorff n X) hX.quadratic w + (SobolevSpace.toLp (hausdorff n X) hX.quadratic dw)) + (W : X → ℝ) (Lw Aw Bw : ℝ≥0) (hW : LipschitzWith Lw W) + (hwr : SobolevSpace.toLp (hausdorff n X) hX.quadratic w =ᵐ[hausdorff n X] W) + (hwA : ∀ᵐ x ∂hausdorff n X, |SobolevSpace.toLp (hausdorff n X) hX.quadratic w x| ≤ Aw) + (hdB : ∀ᵐ x ∂hausdorff n X, |SobolevSpace.toLp (hausdorff n X) hX.quadratic dw x| ≤ Bw) + (hG : SobolevSpace.toLp (hausdorff n X) hX.quadratic G =ᵐ[hausdorff n X] + localGamma (hausdorff n X) hX.quadratic w w) + {r : ℝ} (hr : 0 < r) (σ : Measure X) [IsFiniteMeasure σ] + (hσ : IsMeasureLaplacianOn (hausdorff n X) hX.quadratic (ball p (2*r)) G + (bochnerGramSource (hausdorff n X) hX.quadratic K w w dw dw σ.toSignedMeasure)) + (v : SobolevSpace (hausdorff n X) hX.quadratic) (V : X → ℝ) (Lv Av : ℝ≥0) + (hV : LipschitzWith Lv V) (hVc : HasCompactSupport V) + (hv : SobolevSpace.toLp (hausdorff n X) hX.quadratic v =ᵐ[hausdorff n X] V) + (hAv : ∀ᵐ x ∂hausdorff n X, |SobolevSpace.toLp (hausdorff n X) hX.quadratic v x| ≤ Av) + (φ : X → ℝ) (hφ : AEStronglyMeasurable φ (hausdorff n X)) (D : ℝ≥0) + (hD : ∀ᵐ x ∂hausdorff n X, |φ x| ≤ D) + (J : Lp ℝ 1 ((hausdorff n X).restrict (closedBall p r))) + (hJ : IsCanonicalHeatHessian (hausdorff n X) hX.quadratic w v p r φ J) + {a : ℝ} (ha : 0 < a) : + 4*a*(∫ x in closedBall p r, |J x| ∂hausdorff n X) ≤ + 4*a^2*(hausdorff n X).real (closedBall p r)+((D:ℝ)*((Lv:ℝ)*Real.exp |K|)^2)^2*σ.real (closedBall p r) := by + let m := hausdorff n X + let q := hX.quadratic + obtain ⟨u,du,U,M,_P,hu,hdu,hU,hur,huA,_hP,_hgu,_hconv⟩ := + hX.compact_lipschitz_heat_directions hn p v V Lv Av hV hVc hv hAv + have hgu (k : ℕ) : ∀ᵐ x ∂m, localGamma m q (u k) (u k) x ≤ ((Lv:ℝ)*Real.exp |K|)^2 := by + have ht : 0 < 1/((k:ℝ)+1) := by positivity + have hg := hX.heat_compact_slope_bdd K n hn hV hVc p (SobolevSpace.toLp m q v) + hv.symm (1/((k:ℝ)+1)) ht + have he : u k=heatSobolev m q (1/((k:ℝ)+1)) ht (SobolevSpace.toLp m q v) := by + rw [hu k] + simp only [heatH1,dite_eq_left ht] + rfl + rw [he] + filter_upwards [hg,localGamma_self m q _, + (Lp.coeFn_nonneg _).mpr (SobolevSpace.minimalSlope_nonneg m q _)] with x hx hs h0 + rw [hs] + have ht1 : 1/((k:ℝ)+1) ≤ 1 := by + apply (div_le_one (by positivity : 0 < (k:ℝ)+1)).mpr + have hk : (0:ℝ) ≤ k := Nat.cast_nonneg k + linarith + have hexp : -K*(1/((k:ℝ)+1)) ≤ |K| := by + calc + _ ≤ |K| *(1/((k:ℝ)+1)) := mul_le_mul_of_nonneg_right (neg_le_abs K) ht.le + _ ≤ |K| := by simpa only [mul_one] using mul_le_mul_of_nonneg_left ht1 (abs_nonneg K) + have hlarge : (Lv:ℝ)*Real.exp (-K*(1/((k:ℝ)+1))) ≤ (Lv:ℝ)*Real.exp |K| := + mul_le_mul_of_nonneg_left (Real.exp_le_exp.mpr hexp) Lv.coe_nonneg + exact pow_le_pow_left₀ h0 (hx.trans hlarge) 2 + obtain ⟨A,B,hA,hB,hlim⟩ := hJ + have hAr (k : ℕ) : SobolevSpace.toLp m q (A k) =ᵐ[m.restrict (closedBall p r)] + localGamma m q w (u k) := by simpa only [hu k] using hA k + have hBr (k : ℕ) : SobolevSpace.toLp m q (B k) =ᵐ[m.restrict (closedBall p r)] + localGamma m q (u k) (u k) := by simpa only [hu k] using hB k + let F k x := φ x*localHessianAction m q w (u k) (u k) (A k) (A k) (B k) x + have hF (k : ℕ) : Integrable (F k) (m.restrict (closedBall p r)) := + ((localHessianAction_integrable m q w (u k) (u k) (A k) (A k) (B k)).bdd_mul hφ + (hD.mono fun x hx => by simpa only [Real.norm_eq_abs] using hx)).integrableOn + apply L1_limit_radon_young_bound m σ (isCompact_closedBall p r).measure_lt_top.ne + F hF J (by simpa only [F,hu] using hlim) ((D:ℝ)*((Lv:ℝ)*Real.exp |K|)^2) _ ha + intro k + obtain ⟨A',B',C',hA',hB',hC',hh⟩ := hX.bounded_regular_prescribed_hessian hn + (hX.scalarBochner_nonpositive K n hn hK p) w dw hw W hW hwr hwA hdB G hG p hr σ hσ + (u k) (du k) (hdu k) (U k) (M k) Av (hU k) (hur k) (huA k) + (u k) (du k) (hdu k) (U k) (M k) Av (hU k) (hur k) (huA k) + have he := localHessianAction_congr_of_grams m q w (u k) (u k) (u k) (u k) + (A k) A' (A k) B' (B k) C' EventuallyEq.rfl EventuallyEq.rfl + (hAr k) hA' (hAr k) hB' (hBr k) hC' + filter_upwards [he,hh,ae_restrict_of_ae (hgu k),ae_restrict_of_ae hD, + ae_restrict_of_ae (localGamma_self m q (u k))] with x he hh hg hφx hself + have h0 : 0 ≤ localGamma m q (u k) (u k) x := by rw [hself]; positivity + have hsq := mul_le_mul_of_nonneg_left (pow_le_pow_left₀ h0 hg 2) + (ENNReal.toReal_nonneg (a := σ.rnDeriv m x)) + have hH : (localHessianAction m q w (u k) (u k) (A k) (A k) (B k) x)^2 ≤ + (σ.rnDeriv m x).toReal*(((Lv:ℝ)*Real.exp |K|)^2)^2 := by + rw [he] + exact hh.trans (by simpa only [pow_two,mul_assoc] using hsq) + have hφsq : (φ x)^2 ≤ (D:ℝ)^2 := by + simpa only [sq_abs] using pow_le_pow_left₀ (abs_nonneg (φ x)) hφx 2 + dsimp only [F] + calc + _ = (φ x)^2*(localHessianAction m q w (u k) (u k) (A k) (A k) (B k) x)^2 := mul_pow _ _ _ + _ ≤ (φ x)^2*((σ.rnDeriv m x).toReal*(((Lv:ℝ)*Real.exp |K|)^2)^2) := + mul_le_mul_of_nonneg_left hH (sq_nonneg _) + _ ≤ (D:ℝ)^2*((σ.rnDeriv m x).toReal*(((Lv:ℝ)*Real.exp |K|)^2)^2) := + mul_le_mul_of_nonneg_right hφsq (mul_nonneg ENNReal.toReal_nonneg (sq_nonneg _)) + _ = _ := by ring + +end RegularPointCoordinates.NoncollapsedRCD + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/CurvedCanonicalShiftedHessian.lean b/lean/OAI/Geometry/RCD/Sobolev/CurvedCanonicalShiftedHessian.lean new file mode 100644 index 0000000000000000000000000000000000000000..88f13590da1e1398d9474132ae72960933ab7069 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/CurvedCanonicalShiftedHessian.lean @@ -0,0 +1,130 @@ +import OAI.Geometry.RCD.Coordinates.CurvedRegularShiftedHessian +import OAI.Geometry.RCD.Heat.HeatCompactUniform +import OAI.Geometry.RCD.Heat.CanonicalHeatHessian +import OAI.Geometry.RCD.Harmonic.GramL1Continuity +import OAI.Geometry.RCD.Sobolev.L1DifferenceLimit + +namespace OAI + +/-! # Shifted density controls the canonical Hessian error with curvature -/ + +open Set Filter MeasureTheory Metric +open scoped Topology NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem NoncollapsedRCD.canonical_shifted_hessian_young_curved {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) [(hausdorff n X).Regular] (hn : 2 ≤ n) (hK : K ≤ 0) + (w dw G : SobolevSpace (hausdorff n X) hX.quadratic) + (hw : IsWeakLaplacian (hausdorff n X) hX.quadratic w + (SobolevSpace.toLp (hausdorff n X) hX.quadratic dw)) + (W : X → ℝ) (L A B : ℝ≥0) (hW : LipschitzWith L W) + (hwr : SobolevSpace.toLp (hausdorff n X) hX.quadratic w =ᵐ[hausdorff n X] W) + (hA : ∀ᵐ x ∂hausdorff n X, |SobolevSpace.toLp (hausdorff n X) hX.quadratic w x| ≤ A) + (hB : ∀ᵐ x ∂hausdorff n X, |SobolevSpace.toLp (hausdorff n X) hX.quadratic dw x| ≤ B) + (hG : SobolevSpace.toLp (hausdorff n X) hX.quadratic G =ᵐ[hausdorff n X] + localGamma (hausdorff n X) hX.quadratic w w) + (p : X) {r : ℝ} (hr : 0 < r) (σ : Measure X) [IsFiniteMeasure σ] + (hσ : IsMeasureLaplacianOn (hausdorff n X) hX.quadratic (ball p (2*r)) G + (bochnerGramSource (hausdorff n X) hX.quadratic K w w dw dw σ.toSignedMeasure)) + (v : SobolevSpace (hausdorff n X) hX.quadratic) (V : X → ℝ) (Lv Av : ℝ≥0) + (hV : LipschitzWith Lv V) (hVc : HasCompactSupport V) + (hv : SobolevSpace.toLp (hausdorff n X) hX.quadratic v =ᵐ[hausdorff n X] V) + (hAv : ∀ᵐ x ∂hausdorff n X, |SobolevSpace.toLp (hausdorff n X) hX.quadratic v x| ≤ Av) + (φ : X → ℝ) (hφ : AEStronglyMeasurable φ (hausdorff n X)) (D : ℝ≥0) + (hD : ∀ᵐ x ∂hausdorff n X, |φ x| ≤ D) + (J : Lp ℝ 1 ((hausdorff n X).restrict (closedBall p r))) + (hJ : IsCanonicalHeatHessian (hausdorff n X) hX.quadratic w v p r φ J) (a : ℝ) : + 4*a*(∫ x in closedBall p r, |J x-φ x*localGamma (hausdorff n X) hX.quadratic v v x| + ∂hausdorff n X) ≤ 4*a^2*(hausdorff n X).real (closedBall p r)+ + ((D:ℝ)*((Lv:ℝ)*Real.exp |K|)^2)^2*(∫ x in closedBall p r, + (σ.rnDeriv (hausdorff n X) x).toReal- + 2*SobolevSpace.toLp (hausdorff n X) hX.quadratic dw x+(n:ℝ) ∂hausdorff n X) := by + let μ := hausdorff n X + let Q := hX.quadratic + let := hX.separable + let := locallyFinite_of_finiteOnBounded μ hX.finiteOnBounded + let S := closedBall p r + let : IsFiniteMeasure (μ.restrict S) := isFiniteMeasure_restrict.mpr (isCompact_closedBall p r).measure_lt_top.ne + obtain ⟨u,du,U,M,-,hu,hdu,hU,hur,huA,-,-,hconv⟩ := + hX.compact_lipschitz_heat_directions hn p v V Lv Av hV hVc hv hAv + have hgu (k : ℕ) : ∀ᵐ x ∂μ, localGamma μ Q (u k) (u k) x ≤ ((Lv:ℝ)*Real.exp |K|)^2 := by + have ht : 0 < 1/((k:ℝ)+1) := by positivity + have ht1 : 1/((k:ℝ)+1) ≤ 1 := by + apply (div_le_one (by positivity)).mpr + linarith [Nat.cast_nonneg (α := ℝ) k] + have hg := hX.heat_compact_uniform_slope hn hV hVc p + (SobolevSpace.toLp μ Q v) hv.symm ht ht1 + have he : u k=heatSobolev μ Q (1/((k:ℝ)+1)) ht (SobolevSpace.toLp μ Q v) := by + rw [hu k] + simp only [heatH1,dite_eq_left ht] + rfl + rw [he] + filter_upwards [hg,localGamma_self μ Q _, + (Lp.coeFn_nonneg _).mpr (SobolevSpace.minimalSlope_nonneg μ Q _)] with x hx hs h0 + rw [hs] + exact pow_le_pow_left₀ h0 hx 2 + obtain ⟨FG,GG,hFG,hGG,hlim⟩ := hJ + have hFGr k : SobolevSpace.toLp μ Q (FG k) =ᵐ[μ.restrict S] localGamma μ Q w (u k) := by + simpa only [hu k] using hFG k + have hGGr k : SobolevSpace.toLp μ Q (GG k) =ᵐ[μ.restrict S] localGamma μ Q (u k) (u k) := by + simpa only [hu k] using hGG k + let F k x := φ x*localHessianAction μ Q w (u k) (u k) (FG k) (FG k) (GG k) x + let H k x := φ x*localGamma μ Q (u k) (u k) x + have hF k : Integrable (F k) (μ.restrict S) := + ((localHessianAction_integrable μ Q w (u k) (u k) (FG k) (FG k) (GG k)).bdd_mul hφ + (hD.mono fun _ hx => by simpa only [Real.norm_eq_abs] using hx)).integrableOn + have hH k : Integrable (H k) (μ.restrict S) := + ((localGamma_memL1 μ Q (u k) (u k)).bdd_mul hφ + (hD.mono fun _ hx => by simpa only [Real.norm_eq_abs] using hx)).integrableOn + have hI : Integrable (fun x => φ x*localGamma μ Q v v x) (μ.restrict S) := + ((localGamma_memL1 μ Q v v).bdd_mul hφ + (hD.mono fun _ hx => by simpa only [Real.norm_eq_abs] using hx)).integrableOn + let I := hI.toL1 (fun x => φ x*localGamma μ Q v v x) + have hIr : I =ᵐ[μ.restrict S] fun x => φ x*localGamma μ Q v v x := hI.coeFn_toL1 + have hHl : Tendsto (fun k => ∫ x in S, |H k x-I x| ∂μ) atTop (𝓝 0) := by + have heq k : (∫ x in S, |H k x-I x| ∂μ)= + ∫ x in S, |φ x*(localGamma μ Q (u k) (u k) x-localGamma μ Q v v x)| ∂μ := by + apply integral_congr_ae + filter_upwards [hIr] with x hx + simp only [H,hx,mul_sub] + simpa only [heq] using weighted_gram_L1_tendsto μ Q (Ω := S) u v hconv φ hφ D hD + let c x := (σ.rnDeriv μ x).toReal-2*SobolevSpace.toLp μ Q dw x+(n:ℝ) + have hc : Integrable c (μ.restrict S) := + ((Measure.integrableOn_toReal_rnDeriv (μ := σ) (ν := μ) (measure_ne_top σ S)).sub + (((Lp.memLp (SobolevSpace.toLp μ Q dw)).restrict S).integrable (by norm_num) |>.const_mul 2)).add + (integrable_const (n:ℝ)) + have hb (k : ℕ) : ∀ᵐ x ∂μ.restrict S, (F k x-H k x)^2 ≤ ((D:ℝ)*((Lv:ℝ)*Real.exp |K|)^2)^2*c x := by + obtain ⟨A',B',hA',hB',hc0,hbound⟩ := hX.bounded_regular_shifted_hessian_curved hn hK w dw G hw W L A B hW hwr hA hB hG + p hr σ hσ (u k) (du k) (hdu k) (U k) (M k) Av (hU k) (hur k) (huA k) + have hsame := localHessianAction_congr_of_grams μ Q w (u k) (u k) (u k) (u k) + (FG k) A' (FG k) A' (GG k) B' EventuallyEq.rfl EventuallyEq.rfl + (hFGr k) hA' (hFGr k) hA' (hGGr k) hB' + filter_upwards [hbound,hc0,hsame,ae_restrict_of_ae (hgu k),ae_restrict_of_ae hD, + ae_restrict_of_ae (localGamma_self μ Q (u k))] with x hx hc0 he hg hφx hself + rw [← he] at hx + have h0 : 0 ≤ localGamma μ Q (u k) (u k) x := by rw [hself]; positivity + have hsq := mul_le_mul_of_nonneg_left (pow_le_pow_left₀ h0 hg 2) hc0 + have hφsq : (φ x)^2 ≤ (D:ℝ)^2 := by + simpa only [sq_abs] using pow_le_pow_left₀ (abs_nonneg (φ x)) hφx 2 + change (φ x*localHessianAction μ Q w (u k) (u k) (FG k) (FG k) (GG k) x- + φ x*localGamma μ Q (u k) (u k) x)^2 ≤ _ + rw [← mul_sub,mul_pow] + calc + _ ≤ (φ x)^2*(c x*(((Lv:ℝ)*Real.exp |K|)^2)^2) := mul_le_mul_of_nonneg_left (hx.trans hsq) (sq_nonneg _) + _ ≤ (D:ℝ)^2*(c x*(((Lv:ℝ)*Real.exp |K|)^2)^2) := mul_le_mul_of_nonneg_right hφsq (mul_nonneg hc0 (sq_nonneg _)) + _ = _ := by ring + have hfinal := L1_difference_density_young_bound (μ.restrict S) F H hF hH J I + (by simpa only [F,hu] using hlim) hHl c hc ((D:ℝ)*((Lv:ℝ)*Real.exp |K|)^2) a hb + have heq : (∫ x in S, |J x-I x| ∂μ) = ∫ x in S, |J x-φ x*localGamma μ Q v v x| ∂μ := by + apply integral_congr_ae + filter_upwards [hIr] with x hx + rw [hx] + simpa only [heq,measureReal_restrict_apply_univ] using hfinal + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/CutoffBochnerConvergence.lean b/lean/OAI/Geometry/RCD/Sobolev/CutoffBochnerConvergence.lean new file mode 100644 index 0000000000000000000000000000000000000000..f02d41258d7c4eec34863b36509c60c8b3172d5c --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/CutoffBochnerConvergence.lean @@ -0,0 +1,71 @@ +import OAI.Geometry.RCD.Sobolev.BochnerCutoffFlux +import OAI.Geometry.RCD.Sobolev.WeightedGammaJointLimit + +namespace OAI + +/-! # Stability of the full Bochner cutoff pairing under strong source limits -/ + +open Set Filter MeasureTheory +open scoped Topology NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) [IsFiniteMeasureOnCompacts μ] (Q : QuadraticCheegerEnergy μ) + +omit [ProperSpace X] [IsFiniteMeasureOnCompacts μ] in +theorem GoodLaplacianCutoff.source_square_tendsto + {p : X} {r C : ℝ} (χ : GoodLaplacianCutoff μ Q p r C) + {d : Lp ℝ 2 μ} {ds : ℕ → Lp ℝ 2 μ} (hd : Tendsto ds atTop (𝓝 d)) : + Tendsto (fun k => ∫ x, χ.weight x*(ds k x)^2 ∂μ) atTop + (𝓝 (∫ x, χ.weight x*(d x)^2 ∂μ)) := by + let V := boundedMultiplier μ χ.weight χ.weight.continuous.measurable 1 (fun x => by + rw [abs_of_nonneg (χ.bounds x).1]; exact (χ.bounds x).2) + have he (a : Lp ℝ 2 μ) : inner ℝ (lpMultiplier μ V a) a = + ∫ x, χ.weight x*(a x)^2 ∂μ := by + rw [L2.inner_def] + apply integral_congr_ae + filter_upwards [lpMultiplier_coe μ V a,boundedMultiplier_coe μ χ.weight + χ.weight.continuous.measurable 1 (fun x => by + rw [abs_of_nonneg (χ.bounds x).1]; exact (χ.bounds x).2)] with x hx hv + change V x=χ.weight x at hv + simp only [Real.inner_apply,hx,hv] + ring + have hh : Tendsto (fun k => inner ℝ (lpMultiplier μ V (ds k)) (ds k)) atTop + (𝓝 (inner ℝ (lpMultiplier μ V d) d)) := + (((lpMultiplier μ V).continuous.tendsto d).comp hd).inner hd + simpa only [he] using hh + +theorem GoodLaplacianCutoff.bochner_source_tendsto + {p : X} {r C : ℝ} (χ : GoodLaplacianCutoff μ Q p r C) (hC : 0 ≤ C) + (u : SobolevSpace μ Q) (d : Lp ℝ 2 μ) + (us ds Gs : ℕ → SobolevSpace μ Q) + (hds : ∀ k, IsWeakLaplacian μ Q (us k) (SobolevSpace.toLp μ Q (ds k))) + (hGs : ∀ k, SobolevSpace.toLp μ Q (Gs k) =ᵐ[μ] localGamma μ Q (us k) (us k)) + (L : ℝ≥0) + (hus : ∀ k, ∀ᵐ x ∂μ, SobolevSpace.minimalSlope μ Q (us k) x ≤ L) + (hu : ∀ᵐ x ∂μ, SobolevSpace.minimalSlope μ Q u x ≤ L) + (hconv : Tendsto us atTop (𝓝 u)) + (hdconv : Tendsto (fun k => SobolevSpace.toLp μ Q (ds k)) atTop (𝓝 d)) : + Tendsto (fun k => -(1/2:ℝ)*energyForm μ Q (Gs k) χ.sobolev- + weightedGamma μ Q (SobolevSpace.toLp μ Q χ.sobolev) (us k) (ds k)) atTop + (𝓝 ((1/2:ℝ)*weightedGamma μ Q χ.laplacian u u+ + (∫ x, χ.weight x*(d x)^2 ∂μ)+weightedGamma μ Q d u χ.sobolev)) := by + let P := weightedGammaCLM μ Q (Lp.aestronglyMeasurable χ.laplacian) + (C := ⟨C/r^2,div_nonneg hC (sq_nonneg r)⟩) + (by + simp only [Real.norm_eq_abs] + exact χ.laplacian_bound) + have hp : Tendsto (fun k => weightedGamma μ Q χ.laplacian (us k) (us k)) atTop + (𝓝 (weightedGamma μ Q χ.laplacian u u)) := by + exact ((P.continuous.clm_apply continuous_id).tendsto u).comp hconv + have hm := weightedGamma_joint_tendsto μ Q χ.sobolev L hus hu hconv hdconv + have hh := ((hp.const_mul (1/2:ℝ)).add (χ.source_square_tendsto μ Q hdconv)).add hm + apply hh.congr' + filter_upwards [] with k + exact (χ.bochner_source_identity μ Q (us k) (ds k) (Gs k) (hds k) (hGs k)).symm + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/CutoffDifferenceEnergy.lean b/lean/OAI/Geometry/RCD/Sobolev/CutoffDifferenceEnergy.lean new file mode 100644 index 0000000000000000000000000000000000000000..0d6b830ffc89c41fc1ac3e9930418e55e8c87b4b --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/CutoffDifferenceEnergy.lean @@ -0,0 +1,103 @@ +import OAI.Geometry.RCD.Harmonic.UnboundedCaccioppoli +import OAI.Geometry.RCD.Sobolev.GammaL2Bound +import OAI.Geometry.RCD.Sobolev.ConstantLaplacianBochnerInput + +namespace OAI + +/-! # Exact cutoff energy of a Poisson function minus a recovery + +The admissible test is the square of the actual Lipschitz cutoff times the +Sobolev difference. Neither Sobolev function needs a global value bound. +-/ + +open Set Filter MeasureTheory +open scoped NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +theorem cutoff_difference_energy (w q η : SobolevSpace μ hQ) + {v : X → ℝ} {L B A : ℝ≥0} (hv : LipschitzWith L v) + (hs : HasCompactSupport v) (hb : ∀ x, |v x|≤B) (hn : ∀ x, 0≤v x) + (hrep : SobolevSpace.toLp μ hQ η=ᵐ[μ] v) + (hgrad : ∀ᵐ x ∂μ, SobolevSpace.minimalSlope μ hQ η x≤A) + {Ω : Set X} (hsupp : tsupport v⊆Ω) {a : ℝ} + (hw : IsConstantLaplacianOn μ hQ Ω w a) : + (∫ x, (v x)^2*localGamma μ hQ (w-q) (w-q) x ∂μ)= + (∫ x, (v x)^2*localGamma μ hQ q q x ∂μ)- + (∫ x, (v x)^2*localGamma μ hQ w w x ∂μ)- + 2*a*(∫ x in Ω, (v x)^2*SobolevSpace.toLp μ hQ (w-q) x ∂μ)- + 4*∫ x, v x*SobolevSpace.toLp μ hQ (w-q) x*localGamma μ hQ w η x ∂μ := by + let z := w-q + let M := SobolevSpace.cutoffCLM μ hQ hv hs hb hn + have hvnorm : ∀ᵐ x ∂μ, ‖v x‖≤(B:ℝ) := + Eventually.of_forall fun x => by simpa only [Real.norm_eq_abs] using hb x + have hv2norm : ∀ᵐ x ∂μ, ‖(v x)^2‖≤(B:ℝ)^2 := + Eventually.of_forall fun x => by + simpa only [norm_pow,Real.norm_eq_abs] using pow_le_pow_left₀ (abs_nonneg _) (hb x) 2 + have hwi (f g : SobolevSpace μ hQ) : Integrable (fun x => (v x)^2*localGamma μ hQ f g x) μ := + (localGamma_memL1 μ hQ f g).bdd_mul (hv.continuous.aestronglyMeasurable.pow 2) hv2norm + have hΓ : MemLp (localGamma μ hQ w η) 2 μ := + (memLp_congr_ae (localGamma_comm μ hQ η w)).mp + (localGamma_memLp_of_bounded_gradient μ hQ η w A hgrad) + have hcross : Integrable (fun x => v x*SobolevSpace.toLp μ hQ z x*localGamma μ hQ w η x) μ := by + convert ((Lp.memLp (SobolevSpace.toLp μ hQ z)).integrable_mul hΓ).bdd_mul + hv.continuous.aestronglyMeasurable hvnorm using 1 + funext x + simp only [Pi.mul_apply] + ring + have htpoint : localGamma μ hQ w (M (M z))=ᵐ[μ] fun x => + (v x)^2*localGamma μ hQ w z x+ + 2*(v x*SobolevSpace.toLp μ hQ z x*localGamma μ hQ w η x) := by + filter_upwards [localGamma_cutoffCLM_right μ hQ (M z) η w hv hs hb hn hrep, + localGamma_cutoffCLM_right μ hQ z η w hv hs hb hn hrep, + SobolevSpace.cutoffCLM_coe μ hQ hv hs hb hn z] with x h1 h2 h3 + change localGamma μ hQ w (M (M z)) x=_ at h1 + change localGamma μ hQ w (M z) x=_ at h2 + change SobolevSpace.toLp μ hQ (M z) x=_ at h3 + rw [h1,h2,h3] + ring + have htest : energyForm μ hQ w (M (M z))= + (∫ x, (v x)^2*localGamma μ hQ w z x ∂μ)+ + 2*∫ x, v x*SobolevSpace.toLp μ hQ z x*localGamma μ hQ w η x ∂μ := by + rw [← integral_localGamma_eq_energyForm,integral_congr_ae htpoint, + integral_add (hwi w z) (hcross.const_mul 2),integral_const_mul] + have hsource := hw (M (M z)) (SobolevSpace.cutoffCLM_mem_dirichlet μ hQ hv hs hb hn hsupp (M z)) + have htval : SobolevSpace.toLp μ hQ (M (M z))=ᵐ[μ] fun x => + (v x)^2*SobolevSpace.toLp μ hQ z x := by + filter_upwards [SobolevSpace.cutoffCLM_coe μ hQ hv hs hb hn (M z), + SobolevSpace.cutoffCLM_coe μ hQ hv hs hb hn z] with x h1 h2 + change SobolevSpace.toLp μ hQ (M (M z)) x=_ at h1 + change SobolevSpace.toLp μ hQ (M z) x=_ at h2 + rw [h1,h2] + ring + rw [integral_congr_ae (ae_restrict_of_ae htval)] at hsource + have hpoint : (fun x => (v x)^2*localGamma μ hQ z z x)=ᵐ[μ] + fun x => (v x)^2*localGamma μ hQ q q x-(v x)^2*localGamma μ hQ w w x+ + 2*((v x)^2*localGamma μ hQ w z x) := by + filter_upwards [localGamma_sub_left μ hQ w q z, + localGamma_sub_left μ hQ w q w,localGamma_sub_left μ hQ w q q, + localGamma_comm μ hQ q z,localGamma_comm μ hQ z w,localGamma_comm μ hQ w q] + with x hz hzw hzq hqz hwz hwq + change localGamma μ hQ z z x=_ at hz + change localGamma μ hQ z w x=_ at hzw + change localGamma μ hQ z q x=_ at hzq + rw [hz,hqz,hzq,← hwz,hzw,hwq] + ring + have he : (∫ x, (v x)^2*localGamma μ hQ z z x ∂μ)= + (∫ x, (v x)^2*localGamma μ hQ q q x ∂μ)- + (∫ x, (v x)^2*localGamma μ hQ w w x ∂μ)+ + 2*∫ x, (v x)^2*localGamma μ hQ w z x ∂μ := by + rw [integral_congr_ae hpoint] + have hadd := integral_add ((hwi q q).sub (hwi w w)) ((hwi w z).const_mul 2) + simp only [Pi.sub_apply] at hadd + rw [hadd,integral_sub (hwi q q) (hwi w w),integral_const_mul] + change (∫ x, (v x)^2*localGamma μ hQ z z x ∂μ)=_ + linarith + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/CutoffEnergyBound.lean b/lean/OAI/Geometry/RCD/Sobolev/CutoffEnergyBound.lean new file mode 100644 index 0000000000000000000000000000000000000000..b0d8ead7f08398a77341395c8f8d4a05ea4dc477 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/CutoffEnergyBound.lean @@ -0,0 +1,53 @@ +import OAI.Geometry.RCD.Heat.HarmonicBochnerHeat + +namespace OAI + +/-! # Uniform bounds for the actual compact energy density -/ + +open Set MeasureTheory Filter +open scoped NNReal BoundedContinuousFunction + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] [FiniteDimensional ℝ E] + {U : E →L[ℝ] SobolevSpace μ hQ} {M : PositiveBilinearMeasure X E} + {κ : ℝ} {p : X} {r : ℝ} {L : ℝ≥0} {v : E} + +omit [ProperSpace X] [FiniteDimensional ℝ E] in +/-- The true Sobolev product inherits the original directional gradient +bound because the cutoff takes values in [0,1]. -/ +theorem LocalHarmonicEnergy.cutoffEnergy_bound + (G : LocalHarmonicEnergy μ hQ U M κ p r L v) + (χ : X →ᵇ ℝ) (hχ : ∀ z, 0 ≤ χ z ∧ χ z ≤ 1) + (c : SobolevSpace μ hQ) (hc : SobolevSpace.toLp μ hQ c =ᵐ[μ] χ) : + ∀ᵐ z ∂μ, |SobolevSpace.toLp μ hQ (G.cutoffEnergy μ hQ χ c) z| ≤ + (L : ℝ) ^ 2 * ‖v‖ ^ 2 := by + have hcb : ∀ᵐ z ∂μ, |SobolevSpace.toLp μ hQ c z| ≤ (‖χ‖₊ : ℝ) := by + filter_upwards [hc] with z hz + simpa only [hz, Real.norm_eq_abs, coe_nnnorm] using χ.norm_coe_le_norm z + have hp := SobolevSpace.product_coe μ hQ G.energy c (L ^ 2 * ‖v‖₊ ^ 2) ‖χ‖₊ G.bounded hcb + filter_upwards [hp, G.bounded, hc] with z hz hg hcz + change |SobolevSpace.toLp μ hQ (SobolevSpace.product μ hQ G.energy c _ _) z| ≤ _ + rw [hz, hcz, abs_mul] + have hχz : |χ z| ≤ 1 := by rw [abs_of_nonneg (hχ z).1]; exact (hχ z).2 + have hgb : |SobolevSpace.toLp μ hQ G.energy z| ≤ (L : ℝ) ^ 2 * ‖v‖ ^ 2 := by + simpa only [NNReal.coe_mul, NNReal.coe_pow, coe_nnnorm] using hg + exact (mul_le_mul hgb hχz (abs_nonneg _) (by positivity)).trans_eq (mul_one _) + +omit [ProperSpace X] [FiniteDimensional ℝ E] in +/-- The compact density vanishes off any region containing the cutoff. -/ +theorem LocalHarmonicEnergy.cutoffEnergy_zero_off + (G : LocalHarmonicEnergy μ hQ U M κ p r L v) + (χ : X →ᵇ ℝ) (c : SobolevSpace μ hQ) (hc : SobolevSpace.toLp μ hQ c =ᵐ[μ] χ) + {A : Set X} (hzero : ∀ z ∉ A, χ z = 0) : + ∀ᵐ z ∂μ, z ∉ A → SobolevSpace.toLp μ hQ (G.cutoffEnergy μ hQ χ c) z = 0 := + cutoffProduct_zero_off μ hQ G.energy c χ hc _ G.bounded hzero + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/CutoffEnergyCoreConvergence.lean b/lean/OAI/Geometry/RCD/Sobolev/CutoffEnergyCoreConvergence.lean new file mode 100644 index 0000000000000000000000000000000000000000..9d0d310506ecb429a71a46fd2de812dfe2f8bcf0 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/CutoffEnergyCoreConvergence.lean @@ -0,0 +1,57 @@ +import OAI.Geometry.RCD.Sobolev.NestedBallCutoff +import OAI.Geometry.RCD.Harmonic.HarmonicRecoveryStrong + +namespace OAI + +/-! # Strong weighted recovery controls the entire fixed core ball -/ + +open Set Metric Filter MeasureTheory +open scoped Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + +theorem cutoff_energy_core_convergence (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + {a b R : ℝ} (hab : a c k*∫ x in ball (p k) (R*r k), + (nestedBallCutoff (p k) (a*r k) (b*r k) x)^2*localGamma μ hQ (u k) (u k) x ∂μ) + atTop (𝓝 0)) : + Tendsto (fun k => c k*∫ x in ball (p k) (a*r k), localGamma μ hQ (u k) (u k) x ∂μ) + atTop (𝓝 0) := by + have hnonneg (k : ℕ) : ∀ᵐ x ∂μ, 0≤localGamma μ hQ (u k) (u k) x := by + filter_upwards [localGamma_self μ hQ (u k)] with x hx + rw [hx] + positivity + apply squeeze_zero (fun k => mul_nonneg (hc k) (integral_nonneg_of_ae (ae_restrict_of_ae (hnonneg k)))) + (fun k => ?_) hlim + let χ := nestedBallCutoff (p k) (a*r k) (b*r k) + have hi : Integrable (fun x => (χ x)^2*localGamma μ hQ (u k) (u k) x) μ := by + apply (localGamma_memL1 μ hQ (u k) (u k)).bdd_mul + ((nestedBallCutoff_lipschitz (p k) (mul_lt_mul_of_pos_right hab (hr k))).continuous.aestronglyMeasurable.pow 2) + exact Eventually.of_forall fun x => by + have hh := nestedBallCutoff_bounds (p k) (a*r k) (b*r k) x + change ‖(χ x)^2‖≤(1:ℝ) + rw [Real.norm_eq_abs,abs_of_nonneg (sq_nonneg _)] + dsimp only [χ] + nlinarith + have he : (∫ x in ball (p k) (a*r k), localGamma μ hQ (u k) (u k) x ∂μ)= + ∫ x in ball (p k) (a*r k), (χ x)^2*localGamma μ hQ (u k) (u k) x ∂μ := by + apply setIntegral_congr_fun measurableSet_ball + intro x hx + change localGamma μ hQ (u k) (u k) x=(χ x)^2*localGamma μ hQ (u k) (u k) x + rw [show χ x=1 from nestedBallCutoff_eq_one (p k) (mul_lt_mul_of_pos_right hab (hr k)) + (by simpa only [dist_comm] using hx.le)] + ring + apply mul_le_mul_of_nonneg_left _ (hc k) + rw [he] + apply setIntegral_mono_set hi.restrict + · exact (ae_restrict_of_ae (hnonneg k)).mono fun x hx => mul_nonneg (sq_nonneg _) hx + · exact Eventually.of_forall (ball_subset_ball (mul_le_mul_of_nonneg_right (hab.trans hbR).le (hr k).le)) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/CutoffErrorEstimates.lean b/lean/OAI/Geometry/RCD/Sobolev/CutoffErrorEstimates.lean new file mode 100644 index 0000000000000000000000000000000000000000..5ecd1577b815af98aa6047c03ad2540208cbe47c --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/CutoffErrorEstimates.lean @@ -0,0 +1,114 @@ +import OAI.Geometry.RCD.Sobolev.GoodLaplacianCutoff +import OAI.Geometry.RCD.Heat.HarmonicBochnerHeatSource + +namespace OAI + +/-! # Annular support and heat bounds for the cutoff error -/ + +open Set Metric MeasureTheory +open scoped NNReal InnerProductSpace BoundedContinuousFunction + +noncomputable section + +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +/-- The product-rule error lives only in the transition annulus. -/ +theorem GoodLaplacianCutoff.error_zero_off_annulus {p : X} {r C : ℝ} + (χ : GoodLaplacianCutoff μ hQ p r C) (g : SobolevSpace μ hQ) : + ∀ᵐ z ∂μ, z ∉ {z | r ≤ dist p z ∧ dist p z ≤ 2 * r} → + cutoffSourceDensity μ hQ g χ.sobolev χ.laplacian z = 0 := by + filter_upwards [χ.representative, χ.laplacian_locality, + localGamma_zero_on_level μ hQ χ.sobolev g 0, + localGamma_zero_on_level μ hQ χ.sobolev g 1, + localGamma_comm μ hQ g χ.sobolev] with z hz hq h0 h1 hc hnot + by_cases hin : dist p z < r + · have he : SobolevSpace.toLp μ hQ χ.sobolev z = 1 := + hz.trans (χ.one z (by simpa only [mem_ball, dist_comm] using hin)) + simp only [cutoffSourceDensity, hq (Or.inl hin), hc, h1 he, mul_zero, add_zero] + · have hout : 2 * r < dist p z := by + have hlow : r ≤ dist p z := le_of_not_gt hin + by_contra hh + exact hnot ⟨hlow, le_of_not_gt hh⟩ + have he : SobolevSpace.toLp μ hQ χ.sobolev z = 0 := hz.trans (χ.zero z hout) + simp only [cutoffSourceDensity, hq (Or.inr hout), hc, h0 he, mul_zero, add_zero] + +omit [MetricSpace X] [BorelSpace X] [ProperSpace X] in +/-- A kernel bound is needed only where the integrable error is supported. -/ +theorem abs_integral_mul_le_of_bound_on {f k : X → ℝ} (hf : Integrable f μ) + {S : Set X} {A : ℝ} (_hA : 0 ≤ A) + (hzero : ∀ᵐ z ∂μ, z ∉ S → f z = 0) (hk : ∀ z ∈ S, |k z| ≤ A) : + |∫ z, k z * f z ∂μ| ≤ A * ∫ z, |f z| ∂μ := by + have hb : ∀ᵐ z ∂μ, ‖k z * f z‖ ≤ A * |f z| := by + filter_upwards [hzero] with z hz + by_cases hin : z ∈ S + · rw [Real.norm_eq_abs, abs_mul] + exact mul_le_mul_of_nonneg_right (hk z hin) (abs_nonneg _) + · simp only [hz hin, mul_zero, norm_zero, abs_zero, le_refl] + have hh := norm_integral_le_of_norm_le (hf.abs.const_mul A) hb + simpa only [Real.norm_eq_abs, integral_const_mul] using hh + +/-- The cutoff error is controlled by a heat-kernel estimate on its +annulus and its finite L1 mass. -/ +theorem GoodLaplacianCutoff.heat_error_le {p : X} {r C : ℝ} + (χ : GoodLaplacianCutoff μ hQ p r C) (g : SobolevSpace μ hQ) + (k : X → ℝ) {A : ℝ} (hA : 0 ≤ A) + (hk : ∀ z, r ≤ dist p z → dist p z ≤ 2 * r → |k z| ≤ A) : + |∫ z, k z * cutoffSourceDensity μ hQ g χ.sobolev χ.laplacian z ∂μ| ≤ + A * ∫ z, |cutoffSourceDensity μ hQ g χ.sobolev χ.laplacian z| ∂μ := + abs_integral_mul_le_of_bound_on μ (cutoffSourceDensity_integrable μ hQ g χ.sobolev χ.laplacian) + hA (χ.error_zero_off_annulus μ hQ g) (fun z hz => hk z hz.1 hz.2) + +variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] [FiniteDimensional ℝ E] + {U : E →L[ℝ] SobolevSpace μ hQ} {M : PositiveBilinearMeasure X E} + {κ : ℝ} {p : X} {r : ℝ} {L : ℝ≥0} {v : E} + [μ.Regular] {k : ℝ → X → X → ℝ} (hk : IsContinuousHeatKernel μ hQ k) + +/-- Unit heat mass and the local gradient bound give a uniform upper +bound on the actual cutoff Gram, at every positive time. -/ +theorem LocalHarmonicEnergy.heatGram_le + (G : LocalHarmonicEnergy μ hQ U M κ p r L v) + (χ : X →ᵇ ℝ) (hχ : ∀ z, 0 ≤ χ z ∧ χ z ≤ 1) + (hχs : HasCompactSupport (χ : X → ℝ)) + (hχΩ : tsupport (χ : X → ℝ) ⊆ ball p (2 * r)) + {t : ℝ} (ht : 0 < t) (x : X) : + ⟪v, cutoffHeatGram μ hQ hk χ.continuous hχs U ht x 0 v⟫_ℝ ≤ + (L : ℝ) ^ 2 * ‖v‖ ^ 2 := by + let B : ℝ := (L : ℝ) ^ 2 * ‖v‖ ^ 2 + have hB : 0 ≤ B := mul_nonneg (sq_nonneg _) (sq_nonneg _) + have hbound : ∀ᵐ z ∂μ, + χ z * (SobolevSpace.minimalSlope μ hQ (U v) z) ^ 2 ≤ B := by + filter_upwards [G.bounded, (ae_restrict_iff' measurableSet_ball).mp G.representative, + localGamma_self μ hQ (U v)] with z hb hz hΓ + by_cases hin : z ∈ ball p (2 * r) + · have hg : (SobolevSpace.minimalSlope μ hQ (U v) z) ^ 2 ≤ B := by + rw [hz hin, hΓ] at hb + have hb' : |(SobolevSpace.minimalSlope μ hQ (U v) z) ^ 2| ≤ B := by + simpa only [NNReal.coe_mul, NNReal.coe_pow, coe_nnnorm, B] using hb + exact (le_abs_self _).trans hb' + exact (mul_le_mul_of_nonneg_right (hχ z).2 (sq_nonneg _)).trans (by simpa using hg) + · have hzero : χ z = 0 := by + by_contra hh + exact hin (hχΩ (subset_closure hh)) + simpa only [hzero, zero_mul] using hB + have hi : Integrable (fun z => (χ z * k t x z) * + (SobolevSpace.minimalSlope μ hQ (U v) z) ^ 2) μ := + ((Lp.memLp _).integrable_sq).bdd_mul + (χ.continuous.mul (hk.continuous_right t ht x)).aestronglyMeasurable + (Filter.Eventually.of_forall (cutoffHeatWeight_le μ hQ hk χ.continuous hχs ht x)) + rw [cutoffHeatGram_energy] + simp only [zero_mul, add_zero] + calc + _ ≤ ∫ z, k t x z * B ∂μ := by + apply integral_mono_ae hi ((hk.integrable t ht x).mul_const B) + filter_upwards [hbound] with z hz + nlinarith [hk.nonneg t ht x z] + _ = B := by rw [integral_mul_const, hk.mass_one t ht x, one_mul] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/CutoffErrorL1.lean b/lean/OAI/Geometry/RCD/Sobolev/CutoffErrorL1.lean new file mode 100644 index 0000000000000000000000000000000000000000..aec344ff504569c0b1073ca94a87909c05c56b29 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/CutoffErrorL1.lean @@ -0,0 +1,76 @@ +import OAI.Geometry.RCD.Sobolev.CutoffErrorEstimates + +namespace OAI + +/-! # Quantitative L1 control of the annular product-rule error -/ + +open Set Metric MeasureTheory +open scoped NNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) [IsFiniteMeasureOnCompacts μ] + (hQ : QuadraticCheegerEnergy μ) + +/-- The source is estimated on its actual support. Young's inequality +uses only the energy-gradient integral on the enclosing ball. -/ +theorem GoodLaplacianCutoff.error_L1_le {p : X} {ρ C R B : ℝ} + (χ : GoodLaplacianCutoff μ hQ p ρ C) (hρ : 0 < ρ) (hC : 0 ≤ C) + (hroom : 2 * ρ < R) (g : SobolevSpace μ hQ) + (hg : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ g x| ≤ B) : + (∫ x, |cutoffSourceDensity μ hQ g χ.sobolev χ.laplacian x| ∂μ) ≤ + (B * (C / ρ ^ 2) + (C / ρ) ^ 2) * μ.real (ball p R) + + ∫ x in ball p R, localGamma μ hQ g g x ∂μ := by + let S := ball p R + let f := cutoffSourceDensity μ hQ g χ.sobolev χ.laplacian + have : IsFiniteMeasure (μ.restrict S) := + ⟨by simpa only [S, Measure.restrict_apply_univ] using isBounded_ball.measure_lt_top⟩ + have hf : Integrable f μ := cutoffSourceDensity_integrable μ hQ _ _ _ + have hz : ∀ᵐ x ∂μ, x ∉ S → f x = 0 := by + filter_upwards [χ.error_zero_off_annulus μ hQ g] with x hx hn + apply hx + intro ha + have hd : dist x p < R := by rw [dist_comm]; exact ha.2.trans_lt hroom + exact hn hd + have heq : (∫ x, |f x| ∂μ) = ∫ x in S, |f x| ∂μ := by + symm + apply setIntegral_eq_integral_of_ae_compl_eq_zero + filter_upwards [hz] with x hx hn + rw [hx hn, abs_zero] + have hslope := SobolevSpace.minimalSlope_le_lipschitz μ hQ χ.sobolev + χ.lipschitz χ.representative + have hbound : ∀ᵐ x ∂μ.restrict S, + |f x| ≤ B * (C / ρ ^ 2) + (C / ρ) ^ 2 + localGamma μ hQ g g x := by + filter_upwards [ae_restrict_of_ae hg, ae_restrict_of_ae χ.laplacian_bound, + ae_restrict_of_ae (localGamma_abs_le μ hQ g χ.sobolev), + ae_restrict_of_ae (localGamma_self μ hQ g), ae_restrict_of_ae hslope, + ae_restrict_of_ae ((Lp.coeFn_nonneg _).mpr (SobolevSpace.minimalSlope_nonneg μ hQ g))] + with x hx hq hcross hself hs hsl0 + have hterm : |SobolevSpace.toLp μ hQ g x * χ.laplacian x| ≤ B * (C / ρ ^ 2) := by + rw [abs_mul] + exact mul_le_mul hx hq (abs_nonneg _) (le_trans (abs_nonneg _) hx) + have hs' : SobolevSpace.minimalSlope μ hQ χ.sobolev x ≤ C / ρ := by + simpa only [Real.coe_toNNReal (C / ρ) (div_nonneg hC hρ.le)] using hs + have hcross' := hcross.trans (mul_le_mul_of_nonneg_left hs' hsl0) + have hy := sq_nonneg (SobolevSpace.minimalSlope μ hQ g x - C / ρ) + have habs := abs_add_le (SobolevSpace.toLp μ hQ g x * χ.laplacian x) + (2 * localGamma μ hQ g χ.sobolev x) + dsimp only [f, cutoffSourceDensity] + simp only [abs_mul, show |(2 : ℝ)| = 2 by norm_num] at habs hterm + nlinarith only [hterm, hcross', hy, hself, habs] + rw [heq] + have hi := (integrable_const (μ := μ.restrict S) (B * (C / ρ ^ 2) + (C / ρ) ^ 2)).add + (localGamma_memL1 μ hQ g g).integrableOn + have hb := integral_mono_ae hf.abs.integrableOn hi hbound + change (∫ x in S, |f x| ∂μ) ≤ ∫ x in S, + (B * (C / ρ ^ 2) + (C / ρ) ^ 2) + localGamma μ hQ g g x ∂μ at hb + rw [integral_add (integrable_const _) (localGamma_memL1 μ hQ g g).integrableOn] at hb + simpa only [integral_const, smul_eq_mul, measureReal_restrict_apply_univ, S, mul_comm] using hb + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/CutoffErrorLocalization.lean b/lean/OAI/Geometry/RCD/Sobolev/CutoffErrorLocalization.lean new file mode 100644 index 0000000000000000000000000000000000000000..44c766d77e7187f09fa30218b2008044e4e98144 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/CutoffErrorLocalization.lean @@ -0,0 +1,69 @@ +import OAI.Geometry.RCD.Sobolev.RawCutoffError + +namespace OAI + +/-! # Local and global cutoff error comparisons -/ + +open Set MeasureTheory +open scoped ENNReal NNReal + +noncomputable section + +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +omit [ProperSpace X] in +/-- A cutoff between zero and one only decreases a local directional error. -/ +theorem cutoff_error_on_le (u : SobolevSpace μ hQ) (c : ℝ) (s : Set X) (hs : μ s ≠ ∞) + {χ : X → ℝ} (hχ : AEStronglyMeasurable χ μ) + (hχrange : ∀ x, 0 ≤ χ x ∧ χ x ≤ 1) : + (∫ x in s, χ x * |localGamma μ hQ u u x - c| ∂μ) ≤ + ∫ x in s, |localGamma μ hQ u u x - c| ∂μ := by + have hi : IntegrableOn (fun x => |localGamma μ hQ u u x - c|) s μ := + ((localGamma_memL1 μ hQ u u).integrableOn.sub (integrableOn_const hs)).abs + have hb : ∀ᵐ x ∂μ.restrict s, ‖χ x‖ ≤ ((1 : ℝ≥0) : ℝ) := + Filter.Eventually.of_forall fun x => by + rw [Real.norm_eq_abs, abs_of_nonneg (hχrange x).1] + exact (hχrange x).2 + apply integral_mono_ae (hi.bdd_mul hχ.restrict hb) hi + exact Filter.Eventually.of_forall fun x => mul_le_of_le_one_left (abs_nonneg _) (hχrange x).2 + +omit [ProperSpace X] in +/-- Finite support measure suffices for integrability of the cutoff error. -/ +theorem cutoff_error_integrable_of_finite_region (u : SobolevSpace μ hQ) (c : ℝ) + {s : Set X} (hs : μ s ≠ ∞) {χ : X → ℝ} + (hχ : AEStronglyMeasurable χ μ) (hχrange : ∀ x, 0 ≤ χ x ∧ χ x ≤ 1) + (hχzero : ∀ x ∉ s, χ x = 0) : + Integrable (fun x => χ x * |localGamma μ hQ u u x - c|) μ := by + have hb : ∀ᵐ x ∂μ, ‖χ x‖ ≤ ((1 : ℝ≥0) : ℝ) := + Filter.Eventually.of_forall fun x => by + rw [Real.norm_eq_abs, abs_of_nonneg (hχrange x).1] + exact (hχrange x).2 + have hsupp : Function.support χ ⊆ s := by + intro x hx + by_contra hn + exact hx (hχzero x hn) + have hi : Integrable χ μ := (integrableOn_iff_integrable_of_support_subset hsupp).mp + ((integrableOn_const hs (C := (1 : ℝ))).mono' hχ.restrict (ae_restrict_of_ae hb)) + exact weighted_direction_error_integrable μ hQ u c hχ hb hi + (Filter.Eventually.of_forall fun x => (hχrange x).1) + +omit [ProperSpace X] in +/-- Every local portion of a cutoff error is bounded by its total error. -/ +theorem cutoff_error_on_le_total (u : SobolevSpace μ hQ) (c : ℝ) + {s : Set X} (hs : μ s ≠ ∞) {χ : X → ℝ} + (hχ : AEStronglyMeasurable χ μ) (hχrange : ∀ x, 0 ≤ χ x ∧ χ x ≤ 1) + (hχzero : ∀ x ∉ s, χ x = 0) (t : Set X) : + (∫ x in t, χ x * |localGamma μ hQ u u x - c| ∂μ) ≤ + ∫ x, χ x * |localGamma μ hQ u u x - c| ∂μ := + setIntegral_le_integral + (cutoff_error_integrable_of_finite_region μ hQ u c hs hχ hχrange hχzero) + (Filter.Eventually.of_forall fun x => mul_nonneg (hχrange x).1 (abs_nonneg _)) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/CutoffGamma.lean b/lean/OAI/Geometry/RCD/Sobolev/CutoffGamma.lean new file mode 100644 index 0000000000000000000000000000000000000000..e49070bfd8ae74c45d5465e877dae9b7d57814df --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/CutoffGamma.lean @@ -0,0 +1,81 @@ +import OAI.Geometry.RCD.Sobolev.SobolevLevelChain + +namespace OAI + +/-! # Local product rule for arbitrary Sobolev cutoff products + +Pointwise locality allows the bounded product rule to be applied on each +finite value strip. No integrability of a third-order product is presumed. +-/ + +open Set Filter MeasureTheory +open scoped NNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +/-- Multiplication by a compactly supported nonnegative Lipschitz function +satisfies the local product rule even when the other factor is unbounded. -/ +theorem localGamma_cutoffCLM (f η h : SobolevSpace μ hQ) + {v : X → ℝ} {L B : ℝ≥0} (hv : LipschitzWith L v) + (hs : HasCompactSupport v) (hb : ∀ x, |v x| ≤ B) (hn : ∀ x, 0 ≤ v x) + (hrep : SobolevSpace.toLp μ hQ η =ᵐ[μ] v) : + localGamma μ hQ (SobolevSpace.cutoffCLM μ hQ hv hs hb hn f) h =ᵐ[μ] + fun x => v x*localGamma μ hQ f h x+ + SobolevSpace.toLp μ hQ f x*localGamma μ hQ η h x := by + let F (i : ℕ) : SobolevSpace μ hQ := SobolevSpace.compContraction μ hQ + (clipReal_lipschitz i) (clipReal_zero i) f + have hF (i : ℕ) : SobolevSpace.toLp μ hQ (F i) =ᵐ[μ] + fun x => clipReal i (SobolevSpace.toLp μ hQ f x) := + (clipReal_lipschitz i).coeFn_compLp (clipReal_zero i) _ + have hFb (i : ℕ) : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ (F i) x| ≤ (i : ℝ≥0) := by + filter_upwards [hF i] with x hx + rw [hx] + exact clipReal_abs_le _ _ + have hη : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ η x| ≤ B := by + filter_upwards [hrep] with x hx + rw [hx] + exact hb x + have hbounded (i : ℕ) : + localGamma μ hQ (SobolevSpace.cutoffCLM μ hQ hv hs hb hn (F i)) h =ᵐ[μ] + fun x => v x*localGamma μ hQ (F i) h x+ + SobolevSpace.toLp μ hQ (F i) x*localGamma μ hQ η h x := by + have heq : SobolevSpace.cutoffCLM μ hQ hv hs hb hn (F i) = + SobolevSpace.product μ hQ η (F i) B i := by + apply Subtype.ext + apply Lp.ext + filter_upwards [SobolevSpace.cutoffCLM_coe μ hQ hv hs hb hn (F i), + SobolevSpace.product_coe μ hQ η (F i) B i hη (hFb i),hrep] with x hc hp hr + exact hc.trans (hp.trans (by rw [hr])).symm + rw [heq] + filter_upwards [localGamma_product_left μ hQ η (F i) h B i hη (hFb i),hrep] + with x hp hr + simpa only [hr] using hp + have hlocal (i : ℕ) : ∀ᵐ x ∂μ, + |SobolevSpace.toLp μ hQ f x| ≤ (i:ℝ) → + localGamma μ hQ (SobolevSpace.cutoffCLM μ hQ hv hs hb hn f) h x = + v x*localGamma μ hQ f h x+SobolevSpace.toLp μ hQ f x*localGamma μ hQ η h x := by + filter_upwards [hF i,hbounded i,localGamma_eq_on_eq μ hQ (F i) f h, + SobolevSpace.cutoffCLM_coe μ hQ hv hs hb hn (F i), + SobolevSpace.cutoffCLM_coe μ hQ hv hs hb hn f, + localGamma_eq_on_eq μ hQ (SobolevSpace.cutoffCLM μ hQ hv hs hb hn (F i)) + (SobolevSpace.cutoffCLM μ hQ hv hs hb hn f) h] with x hf hp hfg hci hcf hc + intro hxi + have hval : SobolevSpace.toLp μ hQ (F i) x = SobolevSpace.toLp μ hQ f x := + hf.trans (clipReal_eq_self (i:ℝ≥0) hxi) + have hcv : SobolevSpace.toLp μ hQ (SobolevSpace.cutoffCLM μ hQ hv hs hb hn (F i)) x = + SobolevSpace.toLp μ hQ (SobolevSpace.cutoffCLM μ hQ hv hs hb hn f) x := by + rw [hci,hcf,hval] + rw [← hc hcv,hp,hval,hfg hval] + filter_upwards [ae_all_iff.mpr hlocal] with x hx + obtain ⟨i,hi⟩ := exists_nat_ge |SobolevSpace.toLp μ hQ f x| + exact hx i hi + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/CutoffGaugeEnergy.lean b/lean/OAI/Geometry/RCD/Sobolev/CutoffGaugeEnergy.lean new file mode 100644 index 0000000000000000000000000000000000000000..10b4affa4ba385c72beca12888102c147e3e5d2e --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/CutoffGaugeEnergy.lean @@ -0,0 +1,47 @@ +import OAI.Geometry.RCD.Metric.InwardLocality +import OAI.Analysis.RCDHeat.HeatFisher + +namespace OAI + +/-! # Exact energy transfer through a radial cutoff and constant gauge + +Tests supported on the inner ball see the original energy, independently +of the outer radial realization and the chosen additive constant. +-/ + +open Set Filter MeasureTheory Metric +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) (Q : QuadraticCheegerEnergy μ) + +theorem cutoff_gauge_weighted_energy (z : X) {r : ℝ} (hr : 0 < r) + (u w : SobolevSpace μ Q) (F : X → ℝ) (c : ℝ) + (hu : SobolevSpace.toLp μ Q u =ᵐ[μ] fun x => radialCutoff z r x*(F x-c)) + (hw : SobolevSpace.toLp μ Q w =ᵐ[μ.restrict (closedBall z r)] F) + (η : X → ℝ) (hη : ∀ᵐ x ∂μ, x ∉ closedBall z r → η x = 0) : + weightedGamma μ Q η u u = ∫ x in closedBall z r, η x*localGamma μ Q w w x ∂μ := by + have hdiff : SobolevSpace.toLp μ Q (u-w) =ᵐ[μ.restrict (closedBall z r)] fun _ => -c := by + rw [map_sub] + filter_upwards [ae_restrict_of_ae hu,hw, + ae_restrict_of_ae (Lp.coeFn_sub (SobolevSpace.toLp μ Q u) (SobolevSpace.toLp μ Q w)), + ae_restrict_mem measurableSet_closedBall] with x hux hwx hs hx + rw [hs] + change SobolevSpace.toLp μ Q u x-SobolevSpace.toLp μ Q w x = -c + rw [hux,hwx,radialCutoff_eq_one z hr (mem_closedBall'.mp hx),one_mul] + ring + have hg := localGamma_self_eq_of_constant_difference μ Q (closedBall z r) u w (-c) hdiff + have hz : ∀ᵐ x ∂μ, x ∉ closedBall z r → η x*localGamma μ Q u u x = 0 := by + filter_upwards [hη] with x hx hout + rw [hx hout,zero_mul] + change (∫ x, η x*localGamma μ Q u u x ∂μ) = _ + rw [← setIntegral_eq_integral_of_ae_compl_eq_zero hz] + apply integral_congr_ae + filter_upwards [hg] with x hx + rw [hx] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/CutoffIntegralLimit.lean b/lean/OAI/Geometry/RCD/Sobolev/CutoffIntegralLimit.lean new file mode 100644 index 0000000000000000000000000000000000000000..e0f5ec36a64700a132339e48182c3acda6653ae3 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/CutoffIntegralLimit.lean @@ -0,0 +1,97 @@ +import Mathlib.MeasureTheory.Integral.Bochner.Set +import Mathlib.Topology.UniformSpace.UniformConvergence + +namespace OAI + +/-! # Passing local cutoff integral limits to the whole space -/ + +open Set Filter MeasureTheory +open scoped Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MeasurableSpace X] (μ : Measure X) + +theorem integral_cutoff_error_le_tail {F φ : X → ℝ} {S : Set X} + (hF : Integrable F μ) (hφ : AEStronglyMeasurable φ μ) + (hφ01 : ∀ x, φ x ∈ Icc (0:ℝ) 1) (hone : ∀ x ∈ S, φ x=1) : + |(∫ x, F x ∂μ)-(∫ x, φ x*F x ∂μ)| ≤ ∫ x in Sᶜ, |F x| ∂μ := by + have hφb : ∀ᵐ x ∂μ, ‖φ x‖ ≤ (1:ℝ) := Eventually.of_forall fun x => by + rw [Real.norm_eq_abs,abs_of_nonneg (hφ01 x).1] + exact (hφ01 x).2 + have hi := hF.bdd_mul hφ hφb + rw [← integral_sub hF hi] + have he : (∫ x, F x-φ x*F x ∂μ)=∫ x in Sᶜ, F x-φ x*F x ∂μ := by + symm + apply setIntegral_eq_integral_of_forall_compl_eq_zero + intro x hx + have hm : x ∈ S := by simpa only [mem_compl_iff,not_not] using hx + rw [hone x hm,one_mul,sub_self] + rw [he] + calc + _ ≤ ∫ x in Sᶜ, |F x-φ x*F x| ∂μ := by simpa only [Real.norm_eq_abs] using norm_integral_le_integral_norm (μ := μ.restrict Sᶜ) (fun x => F x-φ x*F x) + _ ≤ ∫ x in Sᶜ, |F x| ∂μ := by + apply integral_mono_ae (hF.sub hi).abs.integrableOn hF.abs.integrableOn + exact Eventually.of_forall fun x => by + change |F x-φ x*F x| ≤ |F x| + rw [show F x-φ x*F x=(1-φ x)*F x by ring,abs_mul, + abs_of_nonneg (sub_nonneg.mpr (hφ01 x).2)] + exact mul_le_of_le_one_left (abs_nonneg _) (by linarith [(hφ01 x).1]) + +theorem exists_integral_limit_of_cutoffs (F φ : ℕ → X → ℝ) (S : ℕ → Set X) + (hF : ∀ k, Integrable (F k) μ) (hφ : ∀ N, AEStronglyMeasurable (φ N) μ) + (hφ01 : ∀ N x, φ N x ∈ Icc (0:ℝ) 1) (hone : ∀ N x, x ∈ S N → φ N x=1) + (hlocal : ∀ N, ∃ I : ℝ, Tendsto (fun k => ∫ x, φ N x*F k x ∂μ) atTop (𝓝 I)) + (htail : TendstoUniformly (fun N k => ∫ x in (S N)ᶜ, |F k x| ∂μ) (fun _ => 0) atTop) : + ∃ I : ℝ, Tendsto (fun k => ∫ x, F k x ∂μ) atTop (𝓝 I) := by + apply cauchySeq_tendsto_of_complete + rw [Metric.cauchySeq_iff] + intro e he + have he6 : 0 < e/6 := by positivity + obtain ⟨N,hN⟩ := ((Metric.tendstoUniformly_iff.mp htail) (e/6) he6).exists + obtain ⟨I,hI⟩ := hlocal N + obtain ⟨K,hK⟩ := Metric.tendsto_atTop.mp hI (e/6) he6 + refine ⟨K,?_⟩ + intro i hi j hj + have htail' (k : ℕ) : (∫ x in (S N)ᶜ, |F k x| ∂μ) < e/6 := by + have ht := hN k + rw [dist_zero_left,Real.norm_eq_abs,abs_of_nonneg (integral_nonneg fun _ => abs_nonneg _)] at ht + exact ht + have hiE := (integral_cutoff_error_le_tail μ (hF i) (hφ N) (hφ01 N) (hone N)).trans_lt (htail' i) + have hjE := (integral_cutoff_error_le_tail μ (hF j) (hφ N) (hφ01 N) (hone N)).trans_lt (htail' j) + have hiI := hK i hi + have hjI := hK j hj + rw [Real.dist_eq] at hiI hjI ⊢ + obtain ⟨hiL,hiR⟩ := abs_lt.mp hiE + obtain ⟨hjL,hjR⟩ := abs_lt.mp hjE + obtain ⟨hiIL,hiIR⟩ := abs_lt.mp hiI + obtain ⟨hjIL,hjIR⟩ := abs_lt.mp hjI + apply abs_lt.mpr + constructor <;> linarith + +theorem integral_tendsto_of_cutoffs (F φ : ℕ → X → ℝ) (S : ℕ → Set X) (I : ℝ) + (hF : ∀ k, Integrable (F k) μ) (hφ : ∀ N, AEStronglyMeasurable (φ N) μ) + (hφ01 : ∀ N x, φ N x ∈ Icc (0:ℝ) 1) (hone : ∀ N x, x ∈ S N → φ N x=1) + (hlocal : ∀ N, Tendsto (fun k => ∫ x, φ N x*F k x ∂μ) atTop (𝓝 I)) + (htail : TendstoUniformly (fun N k => ∫ x in (S N)ᶜ, |F k x| ∂μ) (fun _ => 0) atTop) : + Tendsto (fun k => ∫ x, F k x ∂μ) atTop (𝓝 I) := by + apply Metric.tendsto_atTop.mpr + intro e he + obtain ⟨N,hN⟩ := ((Metric.tendstoUniformly_iff.mp htail) (e/2) (half_pos he)).exists + obtain ⟨K,hK⟩ := Metric.tendsto_atTop.mp (hlocal N) (e/2) (half_pos he) + refine ⟨K,fun k hk => ?_⟩ + have htail' : (∫ x in (S N)ᶜ, |F k x| ∂μ) < e/2 := by + have h := hN k + rw [dist_zero_left,Real.norm_eq_abs,abs_of_nonneg (integral_nonneg fun _ => abs_nonneg _)] at h + exact h + have herr := (integral_cutoff_error_le_tail μ (hF k) (hφ N) (hφ01 N) (hone N)).trans_lt htail' + calc + _ ≤ dist (∫ x, F k x ∂μ) (∫ x, φ N x*F k x ∂μ)+ + dist (∫ x, φ N x*F k x ∂μ) I := dist_triangle _ _ _ + _ < e/2+e/2 := add_lt_add (by simpa only [Real.dist_eq] using herr) (hK k hk) + _ = e := by ring + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/CutoffLevelVariation.lean b/lean/OAI/Geometry/RCD/Sobolev/CutoffLevelVariation.lean new file mode 100644 index 0000000000000000000000000000000000000000..dcde4c71cf0b5507857b8c2ef7f4874e9cbf9bbe --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/CutoffLevelVariation.lean @@ -0,0 +1,137 @@ +import OAI.Geometry.RCD.Heat.HeatCutoffEnergy + +namespace OAI + +/-! # Differentiating the localized upper-level square + +The positive part need not be differentiable at the level. Its squared +L² norm has a quadratic remainder, including at that level. This supplies +the nonlinear time test used in the heat level-set iteration. +-/ + +open Set Filter MeasureTheory +open scoped NNReal Topology InnerProductSpace + +noncomputable section +namespace RegularPointCoordinates + +theorem upperLevelPart_square_remainder (k a b : ℝ) : + |(upperLevelPart k b)^2-(upperLevelPart k a)^2- + 2*upperLevelPart k a*(b-a)| ≤ (b-a)^2 := by + unfold upperLevelPart + by_cases ha : 0 ≤ a-k <;> by_cases hb : 0 ≤ b-k + · rw [max_eq_left ha,max_eq_left hb] + have he : (b-k)^2-(a-k)^2-2*(a-k)*(b-a) = (b-a)^2 := by ring + rw [he,abs_of_nonneg (sq_nonneg _)] + · rw [max_eq_left ha,max_eq_right (le_of_not_ge hb)] + apply abs_le.mpr + constructor <;> nlinarith [sq_nonneg (a-b),mul_nonpos_of_nonneg_of_nonpos ha (le_of_not_ge hb)] + · rw [max_eq_right (le_of_not_ge ha),max_eq_left hb] + simp only [zero_pow (by decide : (2:ℕ)≠0),sub_zero,mul_zero,zero_mul] + rw [abs_of_nonneg (sq_nonneg _)] + nlinarith + · rw [max_eq_right (le_of_not_ge ha),max_eq_right (le_of_not_ge hb)] + simp only [zero_pow (by decide : (2:ℕ)≠0),sub_zero,mul_zero,zero_mul,abs_zero] + exact sq_nonneg _ + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + (μ : Measure X) + +theorem cutoff_level_square_remainder + {χ : X → ℝ} {L B : ℝ≥0} (hχ : LipschitzWith L χ) + (hb : ∀ x, |χ x| ≤ B) {k : ℝ} (hk : 0 ≤ k) (f g : Lp ℝ 2 μ) : + let N := lpMultiplier μ (boundedMultiplier μ χ hχ.continuous.measurable B hb) + let P := (upperLevelPart_lipschitz k).compLp (upperLevelPart_zero hk) + |‖N (P g)‖^2-‖N (P f)‖^2-2*inner ℝ (N (N (P f))) (g-f)| ≤ + (B:ℝ)^2*‖g-f‖^2 := by + intro N P + have hN (u : Lp ℝ 2 μ) : N u =ᵐ[μ] fun x => χ x*u x := by + filter_upwards [lpMultiplier_coe μ + (boundedMultiplier μ χ hχ.continuous.measurable B hb) u, + boundedMultiplier_coe μ χ hχ.continuous.measurable B hb] with x hx hv + rw [hx,hv] + have hP (u : Lp ℝ 2 μ) : P u =ᵐ[μ] fun x => upperLevelPart k (u x) := + (upperLevelPart_lipschitz k).coeFn_compLp (upperLevelPart_zero hk) u + have hnn : N (N (P f)) =ᵐ[μ] fun x => χ x^2*upperLevelPart k (f x) := by + filter_upwards [hN (N (P f)),hN (P f),hP f] with x h1 h2 h3 + rw [h1,h2,h3] + ring + have hfi : Integrable (fun x => χ x^2*(upperLevelPart k (f x))^2) μ := by + apply (Lp.memLp (N (P f))).integrable_sq.congr + filter_upwards [hN (P f),hP f] with x h1 h2 + rw [h1,h2,mul_pow] + have hgi : Integrable (fun x => χ x^2*(upperLevelPart k (g x))^2) μ := by + apply (Lp.memLp (N (P g))).integrable_sq.congr + filter_upwards [hN (P g),hP g] with x h1 h2 + rw [h1,h2,mul_pow] + have hpi : Integrable (fun x => χ x^2*upperLevelPart k (f x)*(g x-f x)) μ := by + apply ((Lp.memLp (N (N (P f)))).integrable_mul (Lp.memLp (g-f))).congr + filter_upwards [hnn,Lp.coeFn_sub g f] with x h1 h2 + simp only [Pi.mul_apply,h1,h2,Pi.sub_apply] + have he : ‖N (P g)‖^2-‖N (P f)‖^2-2*inner ℝ (N (N (P f))) (g-f) = + ∫ x, χ x^2*((upperLevelPart k (g x))^2-(upperLevelPart k (f x))^2- + 2*upperLevelPart k (f x)*(g x-f x)) ∂μ := by + rw [cutoff_L2_norm_sq μ (P g) hχ hb,cutoff_L2_norm_sq μ (P f) hχ hb,L2.inner_def] + have h1 := integral_congr_ae ((hP g).mono fun x hx => + congrArg (fun z : ℝ => χ x^2*z^2) hx) + have h2 := integral_congr_ae ((hP f).mono fun x hx => + congrArg (fun z : ℝ => χ x^2*z^2) hx) + rw [h1,h2] + have hp : (∫ x, ⟪N (N (P f)) x,(g-f) x⟫_ℝ ∂μ) = + ∫ x, χ x^2*upperLevelPart k (f x)*(g x-f x) ∂μ := by + apply integral_congr_ae + filter_upwards [hnn,Lp.coeFn_sub g f] with x h1 h2 + simp only [Real.inner_apply,h1,h2,Pi.sub_apply] + rw [hp,← integral_const_mul,← integral_sub hgi hfi] + have hsub := integral_sub (hgi.sub hfi) (hpi.const_mul 2) + simp only [Pi.sub_apply] at hsub + rw [← hsub] + apply integral_congr_ae + exact Eventually.of_forall fun x => by ring + rw [he] + have hi : Integrable (fun x => χ x^2*((upperLevelPart k (g x))^2- + (upperLevelPart k (f x))^2-2*upperLevelPart k (f x)*(g x-f x))) μ := by + apply ((hgi.sub hfi).sub (hpi.const_mul 2)).congr + exact Eventually.of_forall fun x => by + simp only [Pi.sub_apply] + ring + calc + _ ≤ ∫ x, |χ x^2*((upperLevelPart k (g x))^2-(upperLevelPart k (f x))^2- + 2*upperLevelPart k (f x)*(g x-f x))| ∂μ := abs_integral_le_integral_abs + _ ≤ ∫ x, (B:ℝ)^2*(g-f) x^2 ∂μ := by + apply integral_mono_ae hi.abs ((Lp.memLp (g-f)).integrable_sq.const_mul _) + filter_upwards [Lp.coeFn_sub g f] with x hsub + rw [hsub,Pi.sub_apply,abs_mul,abs_of_nonneg (sq_nonneg _)] + have hc : χ x^2 ≤ (B:ℝ)^2 := by + simpa only [sq_abs] using (sq_le_sq₀ (abs_nonneg _) B.coe_nonneg).mpr (hb x) + exact (mul_le_mul_of_nonneg_left (upperLevelPart_square_remainder k (f x) (g x)) + (sq_nonneg _)).trans (mul_le_mul_of_nonneg_right hc (sq_nonneg _)) + _ = _ := by rw [integral_const_mul,integral_sq_Lp] + +theorem cutoff_level_square_hasFDerivAt + {χ : X → ℝ} {L B : ℝ≥0} (hχ : LipschitzWith L χ) + (hb : ∀ x, |χ x| ≤ B) {k : ℝ} (hk : 0 ≤ k) (f : Lp ℝ 2 μ) : + let N := lpMultiplier μ (boundedMultiplier μ χ hχ.continuous.measurable B hb) + let P := (upperLevelPart_lipschitz k).compLp (upperLevelPart_zero hk) + HasFDerivAt (fun g => ‖N (P g)‖^2) ((2:ℝ) • innerSL ℝ (N (N (P f)))) f := by + intro N P + rw [hasFDerivAt_iff_tendsto] + apply squeeze_zero (fun g => mul_nonneg (inv_nonneg.mpr (norm_nonneg _)) (norm_nonneg _)) + (fun g => ?_) (show Tendsto (fun g : Lp ℝ 2 μ => (B:ℝ)^2*‖g-f‖) (𝓝 f) (𝓝 0) by + have hc : Continuous (fun g : Lp ℝ 2 μ => (B:ℝ)^2*‖g-f‖) := + continuous_const.mul (continuous_id.sub continuous_const).norm + simpa only [sub_self,norm_zero,mul_zero] using hc.tendsto f) + have h := mul_le_mul_of_nonneg_left (cutoff_level_square_remainder μ hχ hb hk f g) + (inv_nonneg.mpr (norm_nonneg (g-f))) + have he : ‖g-f‖⁻¹*((B:ℝ)^2*‖g-f‖^2) = (B:ℝ)^2*‖g-f‖ := by + by_cases hz : ‖g-f‖ = 0 + · simp only [hz,inv_zero,zero_mul,mul_zero] + · field_simp + simpa only [smul_apply,innerSL_apply_apply,smul_eq_mul, + Real.norm_eq_abs,he] using h + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/CutoffLocalEnergyBound.lean b/lean/OAI/Geometry/RCD/Sobolev/CutoffLocalEnergyBound.lean new file mode 100644 index 0000000000000000000000000000000000000000..af767fdb9ee3f0346f9c018fa736b8c451e582de --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/CutoffLocalEnergyBound.lean @@ -0,0 +1,42 @@ +import OAI.Geometry.RCD.Sobolev.GoodLaplacianCutoff + +namespace OAI + +/-! # A local gradient cap bounds the full cutoff energy -/ + +open Set Filter Metric MeasureTheory +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) (Q : QuadraticCheegerEnergy μ) [IsFiniteMeasureOnCompacts μ] + +theorem GoodLaplacianCutoff.local_energy_le {p : X} {r C b L : ℝ} + (χ : GoodLaplacianCutoff μ Q p r C) (hb : 2*r c*χ x+SobolevSpace.toLp μ hQ f x*d x+ + 2*localGamma μ hQ f η x := by + let F := SobolevSpace.toLp μ hQ f + let M := SobolevSpace.cutoffCLM μ hQ hχ hs hb hn + have hηB : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ η x| ≤ B := hη.mono fun x hx => hx ▸ hb x + have hηG : ∀ᵐ x ∂μ, localGamma μ hQ η η x ≤ (L:ℝ)^2 := by + filter_upwards [localGamma_self μ hQ η,SobolevSpace.minimalSlope_le_lipschitz μ hQ η hχ hη, + (Lp.coeFn_nonneg _).mpr (SobolevSpace.minimalSlope_nonneg μ hQ η)] with x he hg h0 + rw [he] + exact pow_le_pow_left₀ h0 hg 2 + have hγ : MemLp (localGamma μ hQ f η) 2 μ := by + simpa only [Measure.restrict_univ] using + localGamma_memLp_two_of_bound μ hQ univ f η + (by simpa only [Measure.restrict_univ] using hηG) + have hFm : MemLp F ∞ μ := memLp_top_of_bound (Lp.aestronglyMeasurable F) A + (by simpa only [Real.norm_eq_abs] using hA) + have hχm : MemLp χ 2 μ := (memLp_congr_ae hη).mp (Lp.memLp _) + have hmQ : MemLp (fun x => c*χ x+F x*d x+2*localGamma μ hQ f η x) 2 μ := by + simpa only [Pi.add_apply,Pi.mul_apply,mul_comm] using! + ((hχm.const_mul c).add ((Lp.memLp d).mul hFm)).add (hγ.const_mul 2) + let q := hmQ.toLp _ + have hq : q =ᵐ[μ] fun x => c*χ x+F x*d x+2*localGamma μ hQ f η x := hmQ.coeFn_toLp + refine ⟨q,?_,hq⟩ + apply weakLaplacian_of_bounded_tests μ hQ + intro g D hg + let G := SobolevSpace.toLp μ hQ g + have hi : Integrable (fun x => χ x*localGamma μ hQ f g x) μ := + (localGamma_memL1 μ hQ f g).bdd_mul hχ.continuous.aestronglyMeasurable + (Eventually.of_forall fun x => by simpa only [Real.norm_eq_abs] using hb x) + have hj : Integrable (fun x => F x*localGamma μ hQ η g x) μ := + (localGamma_memL1 μ hQ η g).bdd_mul (Lp.aestronglyMeasurable F) + (by simpa only [Real.norm_eq_abs] using hA) + have hk : Integrable (fun x => G x*localGamma μ hQ f η x) μ := + (localGamma_memL1 μ hQ f η).bdd_mul (Lp.aestronglyMeasurable G) + (by simpa only [Real.norm_eq_abs] using hg) + have hχG : Integrable (fun x => χ x*G x) μ := (hχm.integrable_mul (Lp.memLp G)) + have hdFG : Integrable (fun x => F x*d x*G x) μ := by + convert ((Lp.memLp d).integrable_mul (Lp.memLp G)).bdd_mul (Lp.aestronglyMeasurable F) + (by simpa only [Real.norm_eq_abs] using hA) using 1 + funext x + change F x*d x*G x = F x*(d x*G x) + ring + have hform : energyForm μ hQ (M f) g = + (∫ x, χ x*localGamma μ hQ f g x ∂μ)+(∫ x, F x*localGamma μ hQ η g x ∂μ) := by + rw [← integral_localGamma_eq_energyForm,← integral_add hi hj] + exact integral_congr_ae (localGamma_cutoffCLM μ hQ f η g hχ hs hb hn hη) + have htest : energyForm μ hQ f (M g) = + (∫ x, χ x*localGamma μ hQ f g x ∂μ)+(∫ x, G x*localGamma μ hQ f η x ∂μ) := by + rw [← integral_localGamma_eq_energyForm,← integral_add hi hk] + exact integral_congr_ae (localGamma_cutoffCLM_right μ hQ g η f hχ hs hb hn hη) + have hconst : energyForm μ hQ f (M g) = -c*(∫ x, χ x*G x ∂μ) := by + rw [hf (M g) (SobolevSpace.cutoffCLM_mem_dirichlet μ hQ hχ hs hb hn hsupp g)] + congr 1 + rw [integral_congr_ae (ae_restrict_of_ae (SobolevSpace.cutoffCLM_coe μ hQ hχ hs hb hn g))] + apply setIntegral_eq_integral_of_ae_compl_eq_zero + exact Eventually.of_forall fun x hx => by + have hz : χ x = 0 := by + by_contra hne + exact hx (hsupp (subset_tsupport χ hne)) + rw [hz,zero_mul] + have heta : energyForm μ hQ η (SobolevSpace.product μ hQ f g A D) = + (∫ x, F x*localGamma μ hQ η g x ∂μ)+(∫ x, G x*localGamma μ hQ f η x ∂μ) := by + rw [← integral_localGamma_eq_energyForm,← integral_add hj hk] + apply integral_congr_ae + filter_upwards [localGamma_product_right μ hQ η f g A D hA hg, + localGamma_comm μ hQ η f] with x hp hc + rw [hp,hc] + have hsource : energyForm μ hQ η (SobolevSpace.product μ hQ f g A D) = + -(∫ x, F x*d x*G x ∂μ) := by + rw [hd,L2.inner_def] + simp only [Real.inner_apply] + congr 1 + apply integral_congr_ae + filter_upwards [SobolevSpace.product_coe μ hQ f g A D hA hg] with x hx + change d x*SobolevSpace.toLp μ hQ (SobolevSpace.product μ hQ f g A D) x = _ + rw [hx] + ring + have hinner : inner ℝ q G = c*(∫ x, χ x*G x ∂μ)+ + (∫ x, F x*d x*G x ∂μ)+2*(∫ x, G x*localGamma μ hQ f η x ∂μ) := by + rw [L2.inner_def] + simp only [Real.inner_apply] + have heq : (fun x => q x*G x) =ᵐ[μ] + fun x => c*(χ x*G x)+F x*d x*G x+2*(G x*localGamma μ hQ f η x) := by + filter_upwards [hq] with x hx + rw [hx] + ring + have hadd : Integrable (fun x => c*(χ x*G x)+F x*d x*G x) μ := by + simpa only [Pi.add_apply] using! (hχG.const_mul c).add hdFG + rw [integral_congr_ae heq,integral_add hadd (hk.const_mul 2), + integral_add (hχG.const_mul c) hdFG,integral_const_mul,integral_const_mul] + rw [hform] + change _ = -inner ℝ q G + rw [hinner] + linarith only [htest,hconst,heta,hsource] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/CutoffPoissonRepresentative.lean b/lean/OAI/Geometry/RCD/Sobolev/CutoffPoissonRepresentative.lean new file mode 100644 index 0000000000000000000000000000000000000000..63dd06cd40f0d87295cdb1995428c3d4e38af566 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/CutoffPoissonRepresentative.lean @@ -0,0 +1,81 @@ +import OAI.Geometry.RCD.Coordinates.CoordinateHeatInput +import OAI.Geometry.RCD.Sobolev.LocalizedPoissonRepresentative +import OAI.Geometry.RCD.Sobolev.PoissonCutoffSource + +namespace OAI + +/-! # Constructing the local representative of an actual Poisson solution -/ + +open Set Filter Metric MeasureTheory +open scoped NNReal ENNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +/-- Localizing the equation and integrating its actual two source terms +constructs a Lipschitz representative without a gradient premise on `f`. -/ +theorem NoncollapsedRCD.cutoff_poisson_representative {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) [(hausdorff n X).Regular] (hn : 2 ≤ n) + {ker : ℝ → X → X → ℝ} + (hk : IsContinuousHeatKernel (hausdorff n X) hX.quadratic ker) + (hg : HasCoordinateHeatBounds (hausdorff n X) ker) : + ∃ J : ℝ, 0 < J ∧ ∀ (p : X) (R T C : ℝ), 0 < R → -1 ≤ K*R^2 → + 0 < T → T ≤ 1 → T ≤ R^2 → 0 ≤ C → + ∀ (Ω : Set X) (f : SobolevSpace (hausdorff n X) hX.quadratic) (c : ℝ), + IsConstantLaplacianOn (hausdorff n X) hX.quadratic Ω f c → + ∀ (A : ℝ≥0), (∀ᵐ x ∂hausdorff n X, |SobolevSpace.toLp _ _ f x| ≤ A) → + ∀ χ : GoodLaplacianCutoff (hausdorff n X) hX.quadratic p R C, + closedBall p (2*R) ⊆ Ω → + ∃ v : X → ℝ, + LipschitzWith (Real.exp (|K| *T)*(A/Real.sqrt T+2*(|c|+A*(C/R^2))*Real.sqrt T)+ + (J/(R*(hausdorff n X).real (ball p R))* + (∫ z, |2*localGamma (hausdorff n X) hX.quadratic f χ.sobolev z| + ∂hausdorff n X))*T).toNNReal v ∧ + SobolevSpace.toLp _ _ f =ᵐ[(hausdorff n X).restrict (ball p (R/8))] v := by + obtain ⟨J,hJ,hrep⟩ := hX.localized_poisson_representative hn hk hg + refine ⟨J,hJ,?_⟩ + intro p R T C hR hcurv hT hT1 hTR hC Ω f c hf A hA χ hΩ + let μ := hausdorff n X + let : IsLocallyFiniteMeasure μ := locallyFinite_of_finiteOnBounded μ hX.finiteOnBounded + have habs (x : X) : |χ.weight x| ≤ (1:ℝ≥0) := by + rw [abs_of_nonneg (χ.bounds x).1] + exact (χ.bounds x).2 + let u := SobolevSpace.cutoffCLM μ hX.quadratic χ.lipschitz + (χ.hasCompactSupport μ hX.quadratic) habs (fun x => (χ.bounds x).1) f + have hu : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hX.quadratic u x| ≤ A := by + filter_upwards [SobolevSpace.cutoffCLM_coe μ hX.quadratic χ.lipschitz + (χ.hasCompactSupport μ hX.quadratic) habs (fun x => (χ.bounds x).1) f,hA] with x hx ha + change SobolevSpace.toLp μ hX.quadratic u x = _ at hx + rw [hx,abs_mul] + exact (mul_le_mul_of_nonneg_right (habs x) (abs_nonneg _)).trans (by simpa using ha) + obtain ⟨b,e,heq,hb,hei,herep,hes⟩ := + hf.cutoff_source_decomposition μ hX.quadratic f c A hA hR hC χ hΩ + let D : ℝ≥0 := ⟨|c|+A*(C/R^2),by positivity⟩ + obtain ⟨v,hv,huv⟩ := hrep p R T hR hcurv hT hT1 hTR u b e heq A D hu hb hei hes + have heint : (∫ z, |e z| ∂μ) = ∫ z, |2*localGamma μ hX.quadratic f χ.sobolev z| ∂μ := by + apply integral_congr_ae + filter_upwards [herep] with x hx + rw [hx] + refine ⟨v,?_,?_⟩ + · simpa only [heint,D,NNReal.coe_mk,μ] using! hv + · have hfu : SobolevSpace.toLp μ hX.quadratic f =ᵐ[μ.restrict (ball p (R/8))] + SobolevSpace.toLp μ hX.quadratic u := by + filter_upwards [ae_restrict_mem measurableSet_ball, + ae_restrict_of_ae (SobolevSpace.cutoffCLM_coe μ hX.quadratic χ.lipschitz + (χ.hasCompactSupport μ hX.quadratic) habs (fun x => (χ.bounds x).1) f)] with x hx he + have hxR : x ∈ ball p R := by + have hdist : dist x p < R/8 := hx + change dist x p < R + linarith + change SobolevSpace.toLp μ hX.quadratic u x = _ at he + rw [χ.one x hxR,one_mul] at he + exact he.symm + exact hfu.trans huv + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/CutoffProductEnergy.lean b/lean/OAI/Geometry/RCD/Sobolev/CutoffProductEnergy.lean new file mode 100644 index 0000000000000000000000000000000000000000..36f62638a82c2cd15156cd4431c03b98f1d41be9 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/CutoffProductEnergy.lean @@ -0,0 +1,76 @@ +import OAI.Geometry.RCD.Harmonic.UnboundedCaccioppoli + +namespace OAI + +/-! # Energy of a Lipschitz cutoff times an arbitrary Sobolev function -/ + +open Set Filter MeasureTheory +open scoped NNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +/-- The usual two-term product energy bound, with no boundedness hypothesis +on the Sobolev factor. -/ +theorem energy_cutoffCLM_le (u η : SobolevSpace μ hQ) + {v : X → ℝ} {L B A : ℝ≥0} (hv : LipschitzWith L v) + (hs : HasCompactSupport v) (hb : ∀ x, |v x| ≤ B) (hn : ∀ x, 0 ≤ v x) + (hrep : SobolevSpace.toLp μ hQ η =ᵐ[μ] v) + (hgrad : ∀ᵐ x ∂μ, |SobolevSpace.minimalSlope μ hQ η x| ≤ A) : + let z := SobolevSpace.cutoffCLM μ hQ hv hs hb hn u + energyForm μ hQ z z ≤ + 2*(∫ x, (SobolevSpace.toLp μ hQ η x)^2*(SobolevSpace.minimalSlope μ hQ u x)^2 ∂μ)+ + 2*∫ x, (SobolevSpace.toLp μ hQ u x)^2*(SobolevSpace.minimalSlope μ hQ η x)^2 ∂μ := by + intro z + have hη : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ η x| ≤ B := by + filter_upwards [hrep] with x hx + rw [hx] + exact hb x + have hi1 := bounded_square_weight_integrable μ (SobolevSpace.toLp μ hQ η) + (SobolevSpace.minimalSlope μ hQ u) hη + have hi2 : Integrable (fun x => (SobolevSpace.toLp μ hQ u x)^2* + (SobolevSpace.minimalSlope μ hQ η x)^2) μ := by + exact (bounded_square_weight_integrable μ (SobolevSpace.minimalSlope μ hQ η) + (SobolevSpace.toLp μ hQ u) hgrad).congr (Eventually.of_forall fun x => mul_comm _ _) + rw [← integral_localGamma_eq_energyForm,← integral_const_mul,← integral_const_mul, + ← integral_add (hi1.const_mul 2) (hi2.const_mul 2)] + apply integral_mono_ae (localGamma_memL1 μ hQ z z) + ((hi1.const_mul 2).add (hi2.const_mul 2)) + filter_upwards [localGamma_cutoffCLM μ hQ u η z hv hs hb hn hrep, + localGamma_cutoffCLM_right μ hQ u η u hv hs hb hn hrep, + localGamma_cutoffCLM_right μ hQ u η η hv hs hb hn hrep, + localGamma_self μ hQ u,localGamma_self μ hQ η, + localGamma_comm μ hQ η u,localGamma_abs_le μ hQ u η,hrep] with + x hz hu hη hsU hsE hc hγ hr + change localGamma μ hQ z z x ≤ _ + change localGamma μ hQ u z x = _ at hu + change localGamma μ hQ η z x = _ at hη + change localGamma μ hQ z z x = _ at hz + rw [hz,hu,hη,hsU,hsE,hc,← hr] + have habs : |SobolevSpace.toLp μ hQ η x * SobolevSpace.toLp μ hQ u x * + localGamma μ hQ u η x| ≤ + |SobolevSpace.toLp μ hQ η x| * SobolevSpace.minimalSlope μ hQ u x* + (|SobolevSpace.toLp μ hQ u x| * SobolevSpace.minimalSlope μ hQ η x) := by + calc + _ = (|SobolevSpace.toLp μ hQ η x| * |SobolevSpace.toLp μ hQ u x|)* + |localGamma μ hQ u η x| := by rw [abs_mul,abs_mul] + _ ≤ _ := by + have hh := mul_le_mul_of_nonneg_left hγ + (mul_nonneg (abs_nonneg (SobolevSpace.toLp μ hQ η x)) + (abs_nonneg (SobolevSpace.toLp μ hQ u x))) + nlinarith only [hh] + have hsq := sq_nonneg (|SobolevSpace.toLp μ hQ η x| * SobolevSpace.minimalSlope μ hQ u x- + |SobolevSpace.toLp μ hQ u x| * SobolevSpace.minimalSlope μ hQ η x) + simp only [sub_sq,mul_pow,sq_abs] at hsq + have hh := (le_abs_self _).trans habs + dsimp only [Pi.add_apply] + nlinarith only [hh,hsq] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/CutoffSourcePairing.lean b/lean/OAI/Geometry/RCD/Sobolev/CutoffSourcePairing.lean new file mode 100644 index 0000000000000000000000000000000000000000..29622bf5b62aa22ae41be74ac89b8f11fb95a75f --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/CutoffSourcePairing.lean @@ -0,0 +1,105 @@ +import OAI.Geometry.RCD.Sobolev.AveragedCutoffError +import OAI.Geometry.RCD.Metric.AverageMassInitial + +namespace OAI + +/-! # The full source difference in the actual three components -/ + +open Set Metric MeasureTheory Filter +open scoped InnerProductSpace NNReal BoundedContinuousFunction + +noncomputable section +namespace RegularPointCoordinates + +variable {X E : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + [NormedAddCommGroup E] [InnerProductSpace ℝ E] [FiniteDimensional ℝ E] + (μ : Measure X) [μ.Regular] [IsLocallyFiniteMeasure μ] (hQ : QuadraticCheegerEnergy μ) + {ker : ℝ → X → X → ℝ} (hk : IsContinuousHeatKernel μ hQ ker) + {U : E →L[ℝ] SobolevSpace μ hQ} {M : PositiveBilinearMeasure X E} + {κ : ℝ} {p : X} {r : ℝ} {L : ℝ≥0} {v : E} + (G : LocalHarmonicEnergy μ hQ U M κ p r L v) + {ρ C : ℝ} (χ : GoodLaplacianCutoff μ hQ p ρ C) + +include hk in +/-- The full averaged source is the positive mass, curvature density, +and actual product-rule error, with compatible representatives. -/ +theorem LocalHarmonicEnergy.average_source_components + {t : ℝ} (ht : 0 < t) (A : Set X) (hA : MeasurableSet A) + (hbounded : Bornology.IsBounded A) : + (∫ᵛ z, kernelAverage μ ker t A z ∂<•(G.cutoffSource μ hQ χ.weight χ.sobolev χ.laplacian)) = + 2 * ⟪v, cutoffAverageHeatMassAt μ hQ hk χ.weight.continuous + (χ.hasCompactSupport μ hQ) M A hA hbounded t v⟫_ℝ - + 2 * κ * (∫ z, kernelAverage μ ker t A z * + (χ.weight z * localGamma μ hQ (U v) (U v) z) ∂μ) + + ∫ z, kernelAverage μ ker t A z * + cutoffSourceDensity μ hQ G.energy χ.sobolev χ.laplacian z ∂μ := by + rw [cutoffAverageHeatMassAt_of_pos μ hQ hk χ.weight.continuous (χ.hasCompactSupport μ hQ) M A hA hbounded ht] + rw [G.average_cutoffSource μ hQ hk χ.weight (χ.hasCompactSupport μ hQ) χ.sobolev χ.laplacian ht A hA hbounded] + congr 2 + congr 1 + apply integral_congr_ae + exact Eventually.of_forall fun z => by ring + +include hk in +/-- Subtracting the pointwise source preserves the full positive-measure +term and gives the kernel difference against each absolutely continuous term. -/ +theorem LocalHarmonicEnergy.difference_source_components (hρ : 0 < ρ) + {t : ℝ} (ht : 0 < t) (A : Set X) (hA : MeasurableSet A) + (hbounded : Bornology.IsBounded A) (x : X) : + (∫ᵛ z, kernelAverage μ ker t A z ∂<•(G.cutoffSource μ hQ χ.weight χ.sobolev χ.laplacian)) - + (∫ᵛ z, ker t x z ∂<•(G.cutoffSource μ hQ χ.weight χ.sobolev χ.laplacian)) = + 2 * ⟪v, (cutoffAverageHeatMassAt μ hQ hk χ.weight.continuous + (χ.hasCompactSupport μ hQ) M A hA hbounded t - + cutoffHeatMassAt μ hQ hk χ.weight.continuous (χ.hasCompactSupport μ hQ) M t x) v⟫_ℝ - + 2 * κ * (∫ z, (kernelAverage μ ker t A z - ker t x z) * + (χ.weight z * localGamma μ hQ (U v) (U v) z) ∂μ) + + ∫ z, (kernelAverage μ ker t A z - ker t x z) * + cutoffSourceDensity μ hQ G.energy χ.sobolev χ.laplacian z ∂μ := by + let c := fun z => χ.weight z * localGamma μ hQ (U v) (U v) z + let d := cutoffSourceDensity μ hQ G.energy χ.sobolev χ.laplacian + have hc : Integrable c μ := (localGamma_memL1 μ hQ (U v) (U v)).bdd_mul + χ.weight.continuous.aestronglyMeasurable (Filter.Eventually.of_forall fun z => by + rw [Real.norm_eq_abs, abs_of_nonneg (χ.bounds z).1] + exact (χ.bounds z).2) + have hczero : ∀ᵐ z ∂μ, z ∉ closedBall p (2 * ρ) → c z = 0 := by + filter_upwards with z hz + have hχ := χ.zero z (by simpa only [mem_closedBall, dist_comm, not_le] using hz) + simp only [c, hχ, zero_mul] + have hd : Integrable d μ := cutoffSourceDensity_integrable μ hQ _ _ _ + have hdzero := χ.error_zero_off_outerBall μ hQ G.energy + have hsub (f : X → ℝ) (hf : Integrable f μ) + (hz : ∀ᵐ z ∂μ, z ∉ closedBall p (2 * ρ) → f z = 0) : + (∫ z, (kernelAverage μ ker t A z - ker t x z) * f z ∂μ) = + (∫ z, kernelAverage μ ker t A z * f z ∂μ) - ∫ z, ker t x z * f z ∂μ := by + simp_rw [sub_mul] + exact integral_sub + (continuous_mul_integrable_compact μ (kernelAverage_continuous μ hQ hk ht hA hbounded) + hf (isCompact_closedBall p (2 * ρ)) hz) + (continuous_mul_integrable_compact μ (hk.continuous_right t ht x) + hf (isCompact_closedBall p (2 * ρ)) hz) + have hqzero : ∀ᵐ z ∂μ, z ∉ closedBall p (2 * ρ) → χ.laplacian z = 0 := by + filter_upwards [χ.laplacian_locality] with z hz hn + exact hz (Or.inr (by simpa only [mem_closedBall, dist_comm, not_le] using hn)) + have hp := G.kernel_cutoffSource μ hQ hk χ.weight (χ.hasCompactSupport μ hQ) + χ.sobolev χ.representative χ.laplacian p (mul_pos (by norm_num) hρ) + (fun z hz => χ.zero z (by simpa only [mem_closedBall, dist_comm, not_le] using hz)) hqzero ht x + have hg : ⟪v, cutoffHeatGram μ hQ hk χ.weight.continuous + (χ.hasCompactSupport μ hQ) U ht x 0 v⟫_ℝ = ∫ z, ker t x z * c z ∂μ := by + rw [cutoffHeatGram_energy] + simp only [zero_mul, add_zero] + apply integral_congr_ae + filter_upwards [localGamma_self μ hQ (U v)] with z hz + dsimp only [c] + rw [hz] + ring + rw [hg] at hp + rw [G.average_source_components μ hQ hk χ ht A hA hbounded, hp, + cutoffHeatMassAt_of_pos μ hQ hk χ.weight.continuous (χ.hasCompactSupport μ hQ) M ht, + sub_apply, inner_sub_right, hsub c hc hczero, hsub d hd hdzero] + ring + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/DenseCoreGradientBound.lean b/lean/OAI/Geometry/RCD/Sobolev/DenseCoreGradientBound.lean new file mode 100644 index 0000000000000000000000000000000000000000..1087b4eccaee7baed3acec12370be6faac894af0 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/DenseCoreGradientBound.lean @@ -0,0 +1,95 @@ +import OAI.Geometry.RCD.Coordinates.RegularDirichletCore +import OAI.Geometry.RCD.Metric.IntegralSquareProduct +import OAI.Geometry.RCD.Sobolev.HessianActionLocality + +namespace OAI + +/-! # Recovering a gradient bound from tests in the dense regular core + +Integral Cauchy--Schwarz and continuity of the restricted energy form avoid +any extra regularity requirement on the gradient-pairing representative. +-/ + +open Set Filter MeasureTheory +open scoped NNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem NoncollapsedRCD.gradient_integral_le_of_core_tests {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (hn : 2≤n) + {Ω S : Set X} (hΩ : IsOpen Ω) (hS : MeasurableSet S) + (f : SobolevSpace (hausdorff n X) hX.quadratic) (D : X → ℝ) + (hD : Integrable D ((hausdorff n X).restrict S)) + (hD0 : ∀ᵐ x ∂(hausdorff n X).restrict S, 0≤D x) + (hbound : ∀ g : compactLaplacianCore (hausdorff n X) hX.quadratic Ω, + ∀ᵐ x ∂(hausdorff n X).restrict S, + (localGamma (hausdorff n X) hX.quadratic f g.val x)^2≤ + D x*localGamma (hausdorff n X) hX.quadratic g.val g.val x) + (v : SobolevSpace.dirichlet (hausdorff n X) hX.quadratic Ω) + (hv : SobolevSpace.toLp (hausdorff n X) hX.quadratic v.val + =ᵐ[(hausdorff n X).restrict S] SobolevSpace.toLp (hausdorff n X) hX.quadratic f) : + (∫ x in S, localGamma (hausdorff n X) hX.quadratic f f x ∂hausdorff n X)≤ + ∫ x in S, D x ∂hausdorff n X := by + let μ := hausdorff n X + let hQ := hX.quadratic + let w : X → ℝ := S.indicator (fun _ => 1) + have hw : AEStronglyMeasurable w μ := (measurable_const.indicator hS).aestronglyMeasurable + have hw1 : ∀ᵐ x ∂μ, ‖w x‖≤(1:ℝ≥0) := by + apply Eventually.of_forall + intro x + by_cases hx : x∈S <;> simp [w,hx] + let W := weightedGammaCLM μ hQ hw hw1 + have hW (a b : SobolevSpace μ hQ) : W a b=∫ x in S, localGamma μ hQ a b x ∂μ := by + change (∫ x, w x*localGamma μ hQ a b x ∂μ)=_ + rw [← integral_indicator hS] + apply integral_congr_ae + apply Eventually.of_forall + intro x + by_cases hx : x∈S <;> simp [w,hx] + let B := ∫ x in S, D x ∂μ + have hclosed : IsClosed {g : SobolevSpace.dirichlet μ hQ Ω | + (W f g.val)^2≤B*W g.val g.val} := by + have hj : Continuous (fun g : SobolevSpace.dirichlet μ hQ Ω => g.val) := + (SobolevSpace.dirichlet μ hQ Ω).subtypeL.continuous + exact isClosed_le (((W f).continuous.comp hj).pow 2) + (continuous_const.mul ((W.continuous.comp hj).clm_apply hj)) + have hinc : (regularDirichletCore μ hQ Ω : Set (SobolevSpace.dirichlet μ hQ Ω)) ⊆ + {g | (W f g.val)^2≤B*W g.val g.val} := by + intro g hg + change g.val∈compactLaplacianCore μ hQ Ω at hg + change (W f g.val)^2≤B*W g.val g.val + rw [hW,hW] + exact integral_sq_le_of_sq_le_product (μ.restrict S) hD + (localGamma_memL1 μ hQ g.val g.val).integrableOn + (localGamma_memL1 μ hQ f g.val).integrableOn hD0 + (by + filter_upwards [ae_restrict_of_ae (localGamma_self μ hQ g.val)] with x hx + rw [hx] + positivity) + (hbound ⟨g.val,hg⟩) + have hall := closure_minimal hinc hclosed + rw [(hX.regularDirichletCore_dense hn hΩ).closure_eq] at hall + have hineq := hall (mem_univ v) + change (W f v.val)^2≤B*W v.val v.val at hineq + have hfv := localGamma_pair_congr_ae μ hQ (f := f) (f' := f) EventuallyEq.rfl hv + have hvv := localGamma_pair_congr_ae μ hQ hv hv + rw [hW,hW,integral_congr_ae hfv,integral_congr_ae hvv] at hineq + have hnonneg : 0≤∫ x in S, localGamma μ hQ f f x ∂μ := by + apply integral_nonneg_of_ae + filter_upwards [ae_restrict_of_ae (localGamma_self μ hQ f)] with x hx + rw [hx] + positivity + have hB : 0≤B := integral_nonneg_of_ae hD0 + rcases eq_or_lt_of_le hnonneg with hz | hp + · rw [← hz] + exact hB + · exact (mul_le_mul_iff_left₀ hp).mp (by simpa only [pow_two] using hineq) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/DenseLipschitzUniformLimit.lean b/lean/OAI/Geometry/RCD/Sobolev/DenseLipschitzUniformLimit.lean new file mode 100644 index 0000000000000000000000000000000000000000..7630b098d2fb2cc72d1226ce79ceef5f507613af --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/DenseLipschitzUniformLimit.lean @@ -0,0 +1,52 @@ +import OAI.Geometry.RCD.Sobolev.LipschitzCompactSubsequence + +namespace OAI + +/-! # Uniform convergence from a dense set and common Lipschitz bounds -/ + +open Set Filter Metric +open scoped NNReal Topology +noncomputable section +namespace RegularPointCoordinates + +theorem dense_lipschitz_uniform_limit {Y : Type*} [MetricSpace Y] [CompactSpace Y] + (d : ℕ → Y) (hd : DenseRange d) (f : ℕ → Y → ℝ) (g : Y → ℝ) (L : ℝ≥0) + (hf : ∀ k, LipschitzWith L (f k)) (hg : LipschitzWith L g) + (hl : ∀ i, Tendsto (fun k => f k (d i)) atTop (𝓝 (g (d i)))) : + TendstoUniformly f g atTop := by + classical + apply Metric.tendstoUniformly_iff.mpr + intro ε hε + let η := ε/(2*(2*(L:ℝ)+1)) + have hη : 0 < η := by dsimp only [η]; positivity + have hηeq : (2*(L:ℝ)+1)*η = ε/2 := by + dsimp only [η] + field_simp + have hcover : (univ : Set Y) ⊆ ⋃ i, ball (d i) η := by + intro x _ + obtain ⟨i,hi⟩ := hd.exists_dist_lt x hη + exact mem_iUnion.mpr ⟨i,mem_ball.mpr (by simpa only [dist_comm] using hi)⟩ + obtain ⟨I,hI⟩ := isCompact_univ.elim_finite_subcover (fun i => ball (d i) η) + (fun _ => isOpen_ball) hcover + have he : ∀ᶠ k in atTop, ∀ i ∈ I, dist (f k (d i)) (g (d i)) < ε/2 := + (Filter.eventually_all_finset I).mpr fun i _ => + (Metric.tendsto_nhds.mp (hl i)) (ε/2) (by positivity) + filter_upwards [he] with k hk + intro x + obtain ⟨i,hi,hxi⟩ := mem_iUnion₂.mp (hI (mem_univ x)) + have hx : dist x (d i) < η := mem_ball.mp hxi + have h1 := (hf k).dist_le_mul x (d i) + have h2 := hg.dist_le_mul (d i) x + rw [dist_comm (d i) x] at h2 + have hLη := mul_le_mul_of_nonneg_left hx.le L.coe_nonneg + have htri := dist_triangle4 (f k x) (f k (d i)) (g (d i)) (g x) + have hierr := hk i hi + have hstrict : 2*(L:ℝ)*η < ε/2 := by nlinarith + rw [dist_comm (g x) (f k x)] + linarith + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/DenseTimeSequence.lean b/lean/OAI/Geometry/RCD/Sobolev/DenseTimeSequence.lean new file mode 100644 index 0000000000000000000000000000000000000000..3f35f4df9ea0e71057c1fad6a4390dd16e89cb75 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/DenseTimeSequence.lean @@ -0,0 +1,32 @@ +import Mathlib.Topology.Instances.Real.Lemmas +import Mathlib.Topology.MetricSpace.Pseudo.Defs + +namespace OAI + +/-! # A countable family dense in every subinterval of a closed time interval -/ + +open Set Metric +noncomputable section +namespace RegularPointCoordinates + +theorem exists_dense_time_sequence {δ : ℝ} (hδ : δ ≤ 1) : + ∃ s : ℕ → ℝ, (∀ i, s i ∈ Icc δ 1) ∧ + ∀ a b : ℝ, δ ≤ a → b ≤ 1 → a < b → ∃ i, a < s i ∧ s i < b := by + let : Nonempty (Icc δ (1:ℝ)) := ⟨⟨δ,le_rfl,hδ⟩⟩ + let d := TopologicalSpace.denseSeq (Icc δ (1:ℝ)) + have hd : DenseRange d := TopologicalSpace.denseRange_denseSeq _ + refine ⟨fun i => d i,fun i => (d i).property,?_⟩ + intro a b ha hb hab + let x : Icc δ (1:ℝ) := ⟨(a+b)/2,by constructor <;> linarith⟩ + obtain ⟨i,hi⟩ := hd.exists_dist_lt x (show 0 < (b-a)/2 by linarith) + rw [dist_comm] at hi + change dist (d i : ℝ) ((a+b)/2) < (b-a)/2 at hi + rw [Real.dist_eq] at hi + have h := abs_lt.mp hi + refine ⟨i,?_,?_⟩ <;> linarith + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/DifferentiableMeanRemainder.lean b/lean/OAI/Geometry/RCD/Sobolev/DifferentiableMeanRemainder.lean new file mode 100644 index 0000000000000000000000000000000000000000..98b156df55258cd91271e4460780bac82393ae83 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/DifferentiableMeanRemainder.lean @@ -0,0 +1,54 @@ +import OAI.Geometry.RCD.Sobolev.HarmonicEnergyCompactness +import Mathlib.Analysis.Calculus.FDeriv.Basic + +namespace OAI + +/-! # Differentiability controls probability means on shrinking balls -/ + +open Set Filter MeasureTheory Metric Asymptotics +open scoped Topology +noncomputable section +namespace RegularPointCoordinates + +theorem differentiable_mean_remainder {n : ℕ} {g : Euclidean n → ℝ} + {D : Euclidean n →L[ℝ] ℝ} {x : Euclidean n} (hd : HasFDerivAt g D x) + {A : ℝ} (hA : 0≤A) (r : ℕ → ℝ) (hr : ∀ k, 0 (∫ y, g y-g x-D (y-x) ∂(P k : Measure (Euclidean n)))/r k) + atTop (𝓝 0) := by + apply Metric.tendsto_nhds.mpr + intro ε hε + let δ := ε/(2*(A+1)) + have hδ : 0<δ := div_pos hε (by positivity) + have he : ∀ᶠ y in 𝓝 x, ‖g y-g x-D (y-x)‖≤δ*‖y-x‖ := + isLittleO_iff.mp (hasFDerivAt_iff_isLittleO.mp hd) hδ + obtain ⟨s,hspos,hse⟩ := Metric.mem_nhds_iff.mp he + have hsmall : ∀ᶠ k in atTop, A*r k A*r k) atTop (𝓝 0) := by + simpa only [mul_zero] using hrlim.const_mul A + exact hh.eventually (Iio_mem_nhds hspos) + filter_upwards [hsmall] with k hk + have hb : ∀ᵐ y ∂(P k : Measure (Euclidean n)), ‖g y-g x-D (y-x)‖≤δ*(A*r k) := by + filter_upwards [hs k] with y hy + have hys : y∈ball x s := hy.trans_lt hk + exact (hse hys).trans (mul_le_mul_of_nonneg_left (by simpa only [dist_eq_norm] using hy) hδ.le) + have hi := norm_integral_le_of_norm_le_const hb + simp only [Measure.real,measure_univ,ENNReal.toReal_one,mul_one] at hi + rw [Real.dist_eq,sub_zero,abs_div,abs_of_pos (hr k)] + have hib : |∫ y, g y-g x-D (y-x) ∂(P k : Measure (Euclidean n))|/r k≤δ*A := by + apply (div_le_iff₀ (hr k)).mpr + simpa only [Real.norm_eq_abs,mul_assoc] using hi + apply hib.trans_lt + have hδA : δ*A<ε := by + dsimp only [δ] + rw [div_mul_eq_mul_div] + apply (div_lt_iff₀ (by positivity : 0<2*(A+1))).mpr + nlinarith + exact hδA + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/DimensionalBochnerLimit.lean b/lean/OAI/Geometry/RCD/Sobolev/DimensionalBochnerLimit.lean new file mode 100644 index 0000000000000000000000000000000000000000..439ebd21ec402c8a06b67c492c6124f3987dfbac --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/DimensionalBochnerLimit.lean @@ -0,0 +1,44 @@ +import OAI.Geometry.RCD.Sobolev.EnergyDensityLimits +import OAI.Geometry.RCD.Sobolev.WeightedGammaJointLimit +import OAI.Geometry.RCD.Sobolev.WeightedL2SquareLimit + +namespace OAI + +/-! # Retaining the finite-dimensional correction in the Bochner limit -/ + +open Set Filter MeasureTheory +open scoped NNReal Topology + +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +theorem dimensional_bochner_sobolev_limit {us Gs : ℕ → SobolevSpace μ hQ} {u G : SobolevSpace μ hQ} + {ds : ℕ → Lp ℝ 2 μ} {d : Lp ℝ 2 μ} (L : ℝ≥0) + (hus : ∀ k, ∀ᵐ x ∂μ, SobolevSpace.minimalSlope μ hQ (us k) x ≤ L) + (hu : ∀ᵐ x ∂μ, SobolevSpace.minimalSlope μ hQ u x ≤ L) + (hconv : Tendsto us atTop (𝓝 u)) (hd : Tendsto ds atTop (𝓝 d)) + (hGs : ∀ k, SobolevSpace.toLp μ hQ (Gs k) =ᵐ[μ] localGamma μ hQ (us k) (us k)) + (hG : SobolevSpace.toLp μ hQ G =ᵐ[μ] localGamma μ hQ u u) + {B : ℝ} (hB : 0 ≤ B) (hE : ∀ k, energyForm μ hQ (Gs k) (Gs k) ≤ B) + (w : SobolevSpace μ hQ) {v : X → ℝ} (hv : Measurable v) (C : ℝ≥0) + (hC : ∀ x, |v x| ≤ C) (K N : ℝ) + (hb : ∀ k, energyForm μ hQ (Gs k) w + + 2 * K * inner ℝ (SobolevSpace.toLp μ hQ w) (SobolevSpace.toLp μ hQ (Gs k)) - + 2 * (1-1/N) * (∫ x, v x * (ds k x) ^ 2 ∂μ) - 2 * weightedGamma μ hQ (ds k) (us k) w ≤ 0) : + energyForm μ hQ G w + 2 * K * inner ℝ (SobolevSpace.toLp μ hQ w) (SobolevSpace.toLp μ hQ G) - + 2 * (1-1/N) * (∫ x, v x * (d x) ^ 2 ∂μ) - 2 * weightedGamma μ hQ d u w ≤ 0 := by + have h₁ := gamma_representatives_energy_tendsto μ hQ L hus hu hconv hGs hG hB hE w + have h₂ : Tendsto (fun k => inner ℝ (SobolevSpace.toLp μ hQ w) + (SobolevSpace.toLp μ hQ (Gs k))) atTop + (𝓝 (inner ℝ (SobolevSpace.toLp μ hQ w) (SobolevSpace.toLp μ hQ G))) := + tendsto_const_nhds.inner (gamma_representatives_tendsto μ hQ L hus hu hconv hGs hG) + have h₃ := weightedL2_square_tendsto μ hv C hC hd + have h₄ := weightedGamma_joint_tendsto μ hQ w L hus hu hconv hd + exact le_of_tendsto (((h₁.add (h₂.const_mul (2 * K))).sub + (h₃.const_mul (2*(1-1/N)))).sub (h₄.const_mul 2)) (Eventually.of_forall hb) + +end RegularPointCoordinates + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/DimensionalBochnerTest.lean b/lean/OAI/Geometry/RCD/Sobolev/DimensionalBochnerTest.lean new file mode 100644 index 0000000000000000000000000000000000000000..66fcd4955ae03096be00caedb5217c044faa9ec1 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/DimensionalBochnerTest.lean @@ -0,0 +1,112 @@ +import OAI.Geometry.RCD.Metric.LocalSignedMeasureOrder +import OAI.Geometry.RCD.Sobolev.FiniteDimensionalBochnerAE +import OAI.Geometry.RCD.Sobolev.BochnerMeasureIdentity +import OAI.Geometry.RCD.Coordinates.LaplacianCoordinateForm + +namespace OAI + +/-! # Recovering the dimensional density from the weak Bochner test inequality + +The only analytic input here is the scalar finite-dimensional Bochner test +inequality, as in Han, JGA 28 (2018), Theorem 3.3. The proof identifies its +absolutely continuous density while retaining the full positive measure. +-/ + +open Set Filter MeasureTheory +open scoped NNReal BoundedContinuousFunction + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MeasurableSpace X] (μ : Measure X) [SigmaFinite μ] + +omit [SigmaFinite μ] in +/-- A nonnegative finite signed measure has nonnegative density. -/ +theorem signed_rnDeriv_nonneg_of_nonneg (ν : SignedMeasure X) (hν : 0≤ν) : + ∀ᵐ x ∂μ, 0≤ν.rnDeriv μ x := by + have hp : 0≤[univ] ν := by simpa only [VectorMeasure.le_restrict_univ_iff_le] using hν + let σ := ν.toMeasureOfZeroLE univ MeasurableSet.univ hp + have hs : σ.toSignedMeasure=ν := ν.toMeasureOfZeroLE_toSignedMeasure hp + have h := signed_rnDeriv_toSignedMeasure μ σ + rw [hs] at h + filter_upwards [h] with x hx + rw [hx] + exact ENNReal.toReal_nonneg + +variable [MetricSpace X] [BorelSpace X] [ProperSpace X] [SecondCountableTopology X] + +omit [SigmaFinite μ] [ProperSpace X] [SecondCountableTopology X] in +/-- The test integral of the dimensional defect has its exact scalar form. -/ +theorem integral_dimensional_defect (σ : Measure X) [IsFiniteMeasure σ] + (d : Lp ℝ 2 μ) (N : ℝ) (q : X →ᵇ ℝ) : + (∫ᵛ x, q x ∂<•(N • σ.toSignedMeasure-μ.withDensityᵥ (fun x => (d x)^2))) = + N*(∫ x, q x ∂σ)-(∫ x, q x*(d x)^2 ∂μ) := by + have hd : Integrable (fun x => (d x)^2) μ := (Lp.memLp d).integrable_sq + rw [VectorMeasure.integral_sub_vectorMeasure + (PositiveBilinearMeasure.integrable_weight q _) + (PositiveBilinearMeasure.integrable_weight q _), + VectorMeasure.integral_smul_vectorMeasure,VectorMeasure.integral_toSignedMeasure, + integral_signedDensity μ hd] + rfl + +/-- Weak tests give the scalar dimensional density inequality on a compact +interior set. No absolute continuity of the full Bochner measure is used. -/ +theorem dimensional_bochner_density_of_tests (σ : Measure X) [IsFiniteMeasure σ] + (d : Lp ℝ 2 μ) (N : ℝ) {Ω S : Set X} (hS : MeasurableSet S) + (χ : X →ᵇ ℝ) {L : ℝ≥0} (hχ : LipschitzWith L χ) + (hχc : HasCompactSupport (χ : X → ℝ)) (hχΩ : tsupport χ ⊆ Ω) + (hχ0 : 0≤χ) (hχ1 : ∀ x∈S, χ x=1) + (htest : ∀ q : compactLipschitzTests Ω, 0≤(q : X →ᵇ ℝ) → + (∫ x, (q : X →ᵇ ℝ) x*(d x)^2 ∂μ)≤N*(∫ x, (q : X →ᵇ ℝ) x ∂σ)) : + ∀ᵐ x ∂μ.restrict S, (d x)^2≤N*(σ.rnDeriv μ x).toReal := by + have hd : Integrable (fun x => (d x)^2) μ := (Lp.memLp d).integrable_sq + let ν : SignedMeasure X := N • σ.toSignedMeasure-μ.withDensityᵥ (fun x => (d x)^2) + have hp : 0≤ν.restrict S := by + apply signedMeasure_nonneg_restrict_of_tests ν hS χ hχ hχc hχΩ hχ0 hχ1 + intro q hq + change 0≤∫ᵛ x, (q : X →ᵇ ℝ) x ∂<•(N • σ.toSignedMeasure-μ.withDensityᵥ (fun x => (d x)^2)) + rw [integral_dimensional_defect μ σ d N (q : X →ᵇ ℝ)] + exact sub_nonneg.mpr (htest q hq) + have hpos := signed_rnDeriv_nonneg_of_nonneg μ (ν.restrict S) hp + have hres := signed_rnDeriv_restrict μ ν hS + have hsub := SignedMeasure.rnDeriv_sub (N • σ.toSignedMeasure) + (μ.withDensityᵥ (fun x => (d x)^2)) μ + have hmul := SignedMeasure.rnDeriv_smul σ.toSignedMeasure μ N + filter_upwards [ae_restrict_of_ae hpos,ae_restrict_of_ae hres,ae_restrict_mem hS, + ae_restrict_of_ae hsub,ae_restrict_of_ae hmul, + ae_restrict_of_ae (signed_rnDeriv_toSignedMeasure μ σ), + ae_restrict_of_ae (signed_rnDeriv_density μ hd)] with x hp hr hx hs hm hσ hd + rw [hr,indicator_of_mem hx] at hp + change 0≤SignedMeasure.rnDeriv (N • σ.toSignedMeasure-μ.withDensityᵥ (fun x => (d x)^2)) μ x at hp + rw [hs] at hp + simp only [Pi.sub_apply] at hp + rw [hm] at hp + simp only [Pi.smul_apply,smul_eq_mul] at hp + rw [hσ,hd] at hp + exact sub_nonneg.mp hp + +/-- The actual linear Laplacian map and common full bilinear measure +therefore satisfy the pointwise finite-dimensional input used by the +quadratic-perturbation theorem. -/ +theorem dimensional_bilinear_density_of_tests {m : ℕ} + (M : PositiveBilinearMeasure X (Euclidean m)) (D : Euclidean m →L[ℝ] Lp ℝ 2 μ) + (N : ℝ) {Ω S : Set X} (hS : MeasurableSet S) + (χ : X →ᵇ ℝ) {L : ℝ≥0} (hχ : LipschitzWith L χ) + (hχc : HasCompactSupport (χ : X → ℝ)) (hχΩ : tsupport χ ⊆ Ω) + (hχ0 : 0≤χ) (hχ1 : ∀ x∈S, χ x=1) + (htest : ∀ a (q : compactLipschitzTests Ω), 0≤(q : X →ᵇ ℝ) → + (∫ x, (q : X →ᵇ ℝ) x*(D a x)^2 ∂μ)≤N*(∫ x, (q : X →ᵇ ℝ) x ∂M.measure a)) : + ∀ a, ∀ᵐ x ∂μ.restrict S, + (laplacianCoordinateForm μ D x a)^2≤N*bochnerRadonDensity μ M x a a := by + intro a + have hb := dimensional_bochner_density_of_tests μ (M.measure a) (D a) N + hS χ hχ hχc hχΩ hχ0 hχ1 (htest a) + filter_upwards [hb,ae_restrict_of_ae (laplacianCoordinateForm_rep μ D a), + ae_restrict_of_ae (bochnerRadonDensity_diagonal μ M a)] with x hx hd hm + rwa [hd,← hm] at hx + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/DimensionalCutoffLimit.lean b/lean/OAI/Geometry/RCD/Sobolev/DimensionalCutoffLimit.lean new file mode 100644 index 0000000000000000000000000000000000000000..1af01083ea09675aaebc7bcd844069bacbab2223 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/DimensionalCutoffLimit.lean @@ -0,0 +1,56 @@ +import OAI.Analysis.RCDHeat.ExistingAnalytic + +namespace OAI + +/-! # One-sided slopes from dimensional cutoff secants -/ + +open Set Filter +open scoped Topology +namespace RegularPointCoordinates + +theorem frequent_right_slope_of_limiting_secants {D G e : ℝ → ℝ} {t c g : ℝ} + (hc : 0 < c) (hG : Tendsto G atTop (𝓝 g)) (he : Tendsto e atTop (𝓝 0)) + (hsec : ∀ᶠ R : ℝ in atTop, + (D (t+Real.exp (-c*R))-D t)/Real.exp (-c*R) ≤ G R+e R) : + ∀ r, g < r → ∃ᶠ s in 𝓝[>] t, slope D t s < r := by + intro r hr + have hh := exp_neg_mul_tendsto_zero hc + have ht : Tendsto (fun R : ℝ => t+Real.exp (-c*R)) atTop (𝓝 t) := by simpa using hh.const_add t + have ht' : Tendsto (fun R : ℝ => t+Real.exp (-c*R)) atTop (𝓝[>] t) := + tendsto_nhdsWithin_iff.mpr ⟨ht,Eventually.of_forall fun R => by + exact lt_add_of_pos_right t (Real.exp_pos _)⟩ + have hlim : Tendsto (fun R => G R+e R) atTop (𝓝 g) := by simpa using hG.add he + apply ht'.frequently + apply Filter.Eventually.frequently + filter_upwards [hsec,hlim.eventually (Iio_mem_nhds hr)] with R hs hl + simpa only [slope_def_field,add_sub_cancel_left] using hs.trans_lt hl + +theorem frequent_slope_of_dimensional_cutoffs {D Q G : ℝ → ℝ} + {t b L C A H g : ℝ} (hb : 0 ≤ b) (hG : Tendsto G atTop (𝓝 g)) + (herr : ∀ᶠ R : ℝ in atTop, + |Q R-D (t+Real.exp (-(b+1)*R))| ≤ L*Real.exp (-(2*b+4)*R) ∧ + (Q R-D t)/(2*Real.exp (-(b+1)*R)) ≤ G R+ + (C*Real.exp (b*R))*(A*Real.exp (-(b+1)*R)+ + ((Real.exp (-(b+1)*R))⁻¹+2)*(H*Real.exp (-(2*b+4)*R)))) : + ∀ r, g < r → ∃ᶠ s in 𝓝[>] t, slope (fun v => D v/2) t s < r := by + have he := diagonal_polynomial_exponential_error hb 0 L 0 C A H + simp only [zero_mul,zero_add] at he + apply frequent_right_slope_of_limiting_secants (c := b+1) (by linarith) hG he + filter_upwards [herr] with R hR + have hh : 0 < Real.exp (-(b+1)*R) := Real.exp_pos _ + have hx : D (t+Real.exp (-(b+1)*R))-Q R ≤ L*Real.exp (-(2*b+4)*R) := by + linarith [(abs_le.mp hR.1).1] + have hs := div_le_div_of_nonneg_right hx (show 0 ≤ 2*Real.exp (-(b+1)*R) by positivity) + have hbase := hR.2 + calc + (D (t+Real.exp (-(b+1)*R))/2-D t/2)/Real.exp (-(b+1)*R) = + (Q R-D t)/(2*Real.exp (-(b+1)*R))+ + (D (t+Real.exp (-(b+1)*R))-Q R)/(2*Real.exp (-(b+1)*R)) := by ring + _ ≤ (G R+(C*Real.exp (b*R))*(A*Real.exp (-(b+1)*R)+ + ((Real.exp (-(b+1)*R))⁻¹+2)*(H*Real.exp (-(2*b+4)*R))))+ + L*Real.exp (-(2*b+4)*R)/(2*Real.exp (-(b+1)*R)) := add_le_add hbase hs + _ = _ := by ring + +end RegularPointCoordinates + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/DirectionalGradientBound.lean b/lean/OAI/Geometry/RCD/Sobolev/DirectionalGradientBound.lean new file mode 100644 index 0000000000000000000000000000000000000000..79e5ad1ca4daa2acf7cec4300a0728508306a705 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/DirectionalGradientBound.lean @@ -0,0 +1,77 @@ +import OAI.Geometry.RCD.Harmonic.GramDirectionalError +import OAI.Geometry.RCD.Coordinates.SplittingApproximation + +namespace OAI + +/-! # From component gradient bounds to every constant direction -/ + +open Set MeasureTheory +open scoped BigOperators + +noncomputable section + +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +/-- A finite family with uniformly bounded squared gradients gives the +corresponding bound on every linear combination. -/ +theorem gamma_column_le_of_diagonal_bounds {n : ℕ} (u : Fin n → SobolevSpace μ hQ) + (S : Set X) (B : ℝ) + (hb : ∀ i, ∀ᵐ x ∂μ.restrict S, localGamma μ hQ (u i) (u i) x ≤ B ^ 2) + (v : Euclidean n) : + ∀ᵐ x ∂μ.restrict S, + localGamma μ hQ (sobolevColumnMap μ hQ u v) (sobolevColumnMap μ hQ u v) x ≤ + ((n : ℝ) * B) ^ 2 * ‖v‖ ^ 2 := by + have hentry (i j : Fin n) : ∀ᵐ x ∂μ.restrict S, + |localGamma μ hQ (u i) (u j) x| ≤ B ^ 2 := by + filter_upwards [ae_restrict_of_ae (localGamma_abs_le μ hQ (u i) (u j)), + ae_restrict_of_ae (localGamma_self μ hQ (u i)), + ae_restrict_of_ae (localGamma_self μ hQ (u j)), hb i, hb j] + with x hxy hi hj hbi hbj + rw [hi] at hbi + rw [hj] at hbj + nlinarith [sq_nonneg (SobolevSpace.minimalSlope μ hQ (u i) x - + SobolevSpace.minimalSlope μ hQ (u j) x)] + have hall : ∀ᵐ x ∂μ.restrict S, ∀ i j : Fin n, + |localGamma μ hQ (u i) (u j) x| ≤ B ^ 2 := by + suffices hh : ∀ᵐ x ∂μ.restrict S, ∀ i ∈ (Finset.univ : Finset (Fin n)), + ∀ j ∈ (Finset.univ : Finset (Fin n)), + |localGamma μ hQ (u i) (u j) x| ≤ B ^ 2 by + simpa only [Finset.mem_univ, forall_true_left] using hh + exact (Filter.eventually_all_finset Finset.univ).mpr fun i _ => + (Filter.eventually_all_finset Finset.univ).mpr fun j _ => hentry i j + filter_upwards [hall, ae_restrict_of_ae (localGamma_column_pair μ hQ u v v)] with x hx he + rw [he] + have hterm (i j : Fin n) : (v i * v j) * localGamma μ hQ (u i) (u j) x ≤ + ‖v‖ ^ 2 * B ^ 2 := by + have hi : |v i| ≤ ‖v‖ := by simpa only [Real.norm_eq_abs] using PiLp.norm_apply_le v i + have hj : |v j| ≤ ‖v‖ := by simpa only [Real.norm_eq_abs] using PiLp.norm_apply_le v j + have hv : |v i * v j| ≤ ‖v‖ ^ 2 := by + rw [abs_mul, pow_two] + exact mul_le_mul hi hj (abs_nonneg _) (norm_nonneg _) + calc + _ ≤ |(v i * v j) * localGamma μ hQ (u i) (u j) x| := le_abs_self _ + _ = |v i * v j| * |localGamma μ hQ (u i) (u j) x| := abs_mul _ _ + _ ≤ _ := mul_le_mul hv (hx i j) (abs_nonneg _) (sq_nonneg _) + calc + _ ≤ ∑ _i : Fin n, ∑ _j : Fin n, ‖v‖ ^ 2 * B ^ 2 := + Finset.sum_le_sum fun i _ => Finset.sum_le_sum fun j _ => hterm i j + _ = _ := by simp; ring + +/-- The first-order splitting definition controls the gradient of every +constant direction, not merely the coordinate columns. -/ +theorem FirstOrderSplittingOn.directional_gradient {n : ℕ} {p : X} {r ε : ℝ} + {u : Fin n → SobolevSpace μ hQ} {w : X → Euclidean n} + (h : FirstOrderSplittingOn μ hQ p r ε u w) (v : Euclidean n) : + ∀ᵐ x ∂μ.restrict (Metric.ball p r), + localGamma μ hQ (sobolevColumnMap μ hQ u v) (sobolevColumnMap μ hQ u v) x ≤ + ((n : ℝ) * (1 + ε)) ^ 2 * ‖v‖ ^ 2 := + gamma_column_le_of_diagonal_bounds μ hQ u _ (1 + ε) h.gradient v + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/DirichletContractions.lean b/lean/OAI/Geometry/RCD/Sobolev/DirichletContractions.lean new file mode 100644 index 0000000000000000000000000000000000000000..5744122c162fe9f2c3c49d4084fe4d83e55fd91b --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/DirichletContractions.lean @@ -0,0 +1,89 @@ +import OAI.Geometry.RCD.Sobolev.DirichletPoisson + +namespace OAI + +/-! # Normal contractions in the genuine zero-boundary Sobolev space -/ + +open Set Filter MeasureTheory +open scoped Topology InnerProductSpace NNReal + +noncomputable section + +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] + (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +/-- A scalar normal contraction decreases the full Sobolev norm. -/ +theorem SobolevSpace.norm_compContraction_le {φ : ℝ → ℝ} + (hφ : LipschitzWith 1 φ) (hφ0 : φ 0 = 0) (f : SobolevSpace μ hQ) : + ‖SobolevSpace.compContraction μ hQ hφ hφ0 f‖ ≤ ‖f‖ := by + have hL := hφ.norm_compLp_le hφ0 (SobolevSpace.toLp μ hQ f) + simp only [NNReal.coe_one, one_mul] at hL + have he := SobolevSpace.energy_compContraction_le μ hQ hφ hφ0 f + have hn := SobolevSpace.norm_sq μ hQ (SobolevSpace.compContraction μ hQ hφ hφ0 f) + have hf := SobolevSpace.norm_sq μ hQ f + unfold SobolevSpace.normSq at hn hf + rw [SobolevSpace.compContraction_toLp] at hn + have hsq := (sq_le_sq₀ (norm_nonneg _) (norm_nonneg _)).mpr hL + nlinarith [norm_nonneg f, norm_nonneg (SobolevSpace.compContraction μ hQ hφ hφ0 f)] + +/-- Composition preserves the compactly supported Lipschitz core. -/ +theorem SobolevSpace.compContraction_mem_dirichletCore {φ : ℝ → ℝ} + (hφ : LipschitzWith 1 φ) (hφ0 : φ 0 = 0) (Ω : Set X) + (f : SobolevSpace μ hQ) (hf : f ∈ SobolevSpace.dirichletCore μ hQ Ω) : + SobolevSpace.compContraction μ hQ hφ hφ0 f ∈ + SobolevSpace.dirichletCore μ hQ Ω := by + rcases hf with ⟨g, C, hg, hgc, hgs, hgf⟩ + refine ⟨φ ∘ g, C, ?_, hgc.comp_left hφ0, + (tsupport_comp_subset hφ0 g).trans hgs, ?_⟩ + · simpa only [one_mul] using hφ.comp hg + · exact (hφ.coeFn_compLp hφ0 (SobolevSpace.toLp μ hQ f)).trans + (hgf.fun_comp φ) + +/-- Bounded energy and strong `L²` convergence suffice to retain membership +in the closed Dirichlet subspace. -/ +theorem SobolevSpace.mem_dirichlet_of_bounded_L2_limit (Ω : Set X) + {fs : ℕ → SobolevSpace μ hQ} {f : SobolevSpace μ hQ} {C : ℝ} + (hmem : ∀ i, fs i ∈ SobolevSpace.dirichlet μ hQ Ω) + (hbound : ∀ i, ‖fs i‖ ≤ C) + (hlim : Tendsto (fun i => SobolevSpace.toLp μ hQ (fs i)) atTop + (𝓝 (SobolevSpace.toLp μ hQ f))) : + f ∈ SobolevSpace.dirichlet μ hQ Ω := by + let K := SobolevSpace.dirichlet μ hQ Ω + change f ∈ K + rw [← K.orthogonal_orthogonal] + apply ((Kᗮ).mem_orthogonal' f).mpr + intro v hv + have ht := SobolevSpace.inner_tendsto_of_toLp_tendsto_bounded μ hQ hbound hlim v + have hz : (fun i => inner ℝ (fs i) v) = fun _ => 0 := by + funext i + exact K.inner_right_of_mem_orthogonal (hmem i) hv + rw [hz] at ht + exact tendsto_nhds_unique ht tendsto_const_nhds + +/-- The closed zero-boundary space is stable under every scalar normal +contraction. Strong continuity of composition in `H¹` is not assumed. -/ +theorem SobolevSpace.compContraction_mem_dirichlet {φ : ℝ → ℝ} + (hφ : LipschitzWith 1 φ) (hφ0 : φ 0 = 0) (Ω : Set X) + (f : SobolevSpace μ hQ) (hf : f ∈ SobolevSpace.dirichlet μ hQ Ω) : + SobolevSpace.compContraction μ hQ hφ hφ0 f ∈ + SobolevSpace.dirichlet μ hQ Ω := by + obtain ⟨fs, hfs, hlim⟩ := mem_closure_iff_seq_limit.mp hf + obtain ⟨C, hC⟩ := (Metric.isBounded_range_of_tendsto fs hlim).exists_norm_le + apply SobolevSpace.mem_dirichlet_of_bounded_L2_limit μ hQ Ω + (fs := fun i => SobolevSpace.compContraction μ hQ hφ hφ0 (fs i)) (C := C) + · intro i + exact (SobolevSpace.dirichletCore μ hQ Ω).le_topologicalClosure + (SobolevSpace.compContraction_mem_dirichletCore μ hQ hφ hφ0 Ω (fs i) (hfs i)) + · intro i + exact (SobolevSpace.norm_compContraction_le μ hQ hφ hφ0 (fs i)).trans + (hC (fs i) (mem_range_self i)) + · exact (hφ.continuous_compLp hφ0).continuousAt.tendsto.comp + ((SobolevSpace.toLpCLM μ hQ).continuous.continuousAt.tendsto.comp hlim) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/DirichletMaximum.lean b/lean/OAI/Geometry/RCD/Sobolev/DirichletMaximum.lean new file mode 100644 index 0000000000000000000000000000000000000000..3f498bb89dfa7c009525b5cf7ae797b933d81670 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/DirichletMaximum.lean @@ -0,0 +1,88 @@ +import OAI.Geometry.RCD.Sobolev.DirichletContractions + +namespace OAI + +/-! # Weak maximum principle for the constructed Dirichlet solutions -/ + +open Set Filter MeasureTheory +open scoped Topology InnerProductSpace NNReal + +noncomputable section + +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] + (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +/-- A Dirichlet solution of a nonnegative functional is nonnegative. The +proof uses the actual positive-part contraction and its energy inequality. -/ +theorem dirichlet_solution_nonneg (Ω : Set X) {P : ℝ} (hP : 0 ≤ P) + (hbound : ∀ f : SobolevSpace.dirichlet μ hQ Ω, + ‖SobolevSpace.toLp μ hQ f.val‖ ^ 2 ≤ P * energyForm μ hQ f.val f.val) + (F : SobolevSpace.dirichlet μ hQ Ω →L[ℝ] ℝ) + (hpositive : ∀ φ : SobolevSpace.dirichlet μ hQ Ω, + (∀ᵐ x ∂μ, 0 ≤ SobolevSpace.toLp μ hQ φ.val x) → 0 ≤ F φ) + (f : SobolevSpace.dirichlet μ hQ Ω) + (hsolve : ∀ φ : SobolevSpace.dirichlet μ hQ Ω, + energyForm μ hQ f.val φ.val = F φ) : + ∀ᵐ x ∂μ, 0 ≤ SobolevSpace.toLp μ hQ f.val x := by + let φ : ℝ → ℝ := fun x => max x 0 + have hφ : LipschitzWith 1 φ := + (LipschitzWith.id : LipschitzWith 1 (fun x : ℝ => x)).max_const 0 + have hφ0 : φ 0 = 0 := max_self 0 + let u := SobolevSpace.compContraction μ hQ hφ hφ0 f.val + have hu : u ∈ SobolevSpace.dirichlet μ hQ Ω := + SobolevSpace.compContraction_mem_dirichlet μ hQ hφ hφ0 Ω f.val f.property + let v : SobolevSpace.dirichlet μ hQ Ω := ⟨u - f.val, + (SobolevSpace.dirichlet μ hQ Ω).sub_mem hu f.property⟩ + have hucoe : SobolevSpace.toLp μ hQ u =ᵐ[μ] + fun x => max (SobolevSpace.toLp μ hQ f.val x) 0 := + hφ.coeFn_compLp hφ0 (SobolevSpace.toLp μ hQ f.val) + have hvnonneg : ∀ᵐ x ∂μ, 0 ≤ SobolevSpace.toLp μ hQ v.val x := by + filter_upwards [hucoe, Lp.coeFn_sub (SobolevSpace.toLp μ hQ u) + (SobolevSpace.toLp μ hQ f.val)] with x hx hvx + change 0 ≤ (SobolevSpace.toLp μ hQ (u - f.val)) x + rw [map_sub, hvx, Pi.sub_apply, hx] + exact sub_nonneg.mpr (le_max_left _ _) + have hF := hpositive v hvnonneg + have htest := hsolve v + have he := SobolevSpace.energy_compContraction_le μ hQ hφ hφ0 f.val + have he' : energyForm μ hQ u u ≤ energyForm μ hQ f.val f.val := by + rw [energyForm_self, energyForm_self] + exact mul_le_mul_of_nonneg_left he (by norm_num) + have hcomm := energyForm_comm μ hQ u f.val + have hvenergy : energyForm μ hQ v.val v.val ≤ 0 := by + change energyForm μ hQ (u - f.val) (u - f.val) ≤ 0 + change energyForm μ hQ f.val (u - f.val) = F v at htest + rw [energyForm_sub_right] at htest + simp only [energyForm_sub_left, energyForm_sub_right] + linarith + have hnorm := (hbound v).trans (mul_nonpos_of_nonneg_of_nonpos hP hvenergy) + have hlp : SobolevSpace.toLp μ hQ v.val = 0 := + norm_eq_zero.mp (sq_eq_zero_iff.mp (le_antisymm hnorm (sq_nonneg _))) + have hvzero : u - f.val = 0 := Subtype.ext hlp + have huf := sub_eq_zero.mp hvzero + rw [huf] at hucoe + filter_upwards [hucoe] with x hx + rw [hx] + exact le_max_right _ _ + +/-- The positive solution exists for every positive continuous source. -/ +theorem exists_nonnegative_dirichlet_solution (Ω : Set X) {P : ℝ} (hP : 0 ≤ P) + (hbound : ∀ f : SobolevSpace.dirichlet μ hQ Ω, + ‖SobolevSpace.toLp μ hQ f.val‖ ^ 2 ≤ P * energyForm μ hQ f.val f.val) + (F : SobolevSpace.dirichlet μ hQ Ω →L[ℝ] ℝ) + (hpositive : ∀ φ : SobolevSpace.dirichlet μ hQ Ω, + (∀ᵐ x ∂μ, 0 ≤ SobolevSpace.toLp μ hQ φ.val x) → 0 ≤ F φ) : + ∃ f : SobolevSpace.dirichlet μ hQ Ω, + (∀ φ : SobolevSpace.dirichlet μ hQ Ω, + energyForm μ hQ f.val φ.val = F φ) ∧ + (∀ᵐ x ∂μ, 0 ≤ SobolevSpace.toLp μ hQ f.val x) := by + obtain ⟨f, hf, _⟩ := existsUnique_dirichlet_solution μ hQ Ω hP hbound F + exact ⟨f, hf, dirichlet_solution_nonneg μ hQ Ω hP hbound F hpositive f hf⟩ + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/DirichletPoincare.lean b/lean/OAI/Geometry/RCD/Sobolev/DirichletPoincare.lean new file mode 100644 index 0000000000000000000000000000000000000000..98bac496fab2142671433413a7a6f2384828a424 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/DirichletPoincare.lean @@ -0,0 +1,101 @@ +import OAI.Geometry.RCD.Sobolev.DirichletPoisson + +namespace OAI + +/-! +# RCD coercivity for the actual zero-boundary Sobolev space + +A positive-measure exterior set gives the Poincare constant required by +the Dirichlet solver. The estimate is deduced from the existing RCD +transport proof of integral coercivity. +-/ + +open Set MeasureTheory +open scoped InnerProductSpace ENNReal + +noncomputable section + +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + +omit [MetricSpace X] [BorelSpace X] in +theorem lp_integral_square_eq_norm_square (μ : Measure X) (u : Lp ℝ 2 μ) : + (∫ x, (u x) ^ 2 ∂μ) = ‖u‖ ^ 2 := by + rw [← real_inner_self_eq_norm_sq] + simp only [L2.inner_def, Real.inner_apply, pow_two] + +/-- A bounded Dirichlet domain with positive-measure exterior has an +explicit finite Poincare constant. -/ +theorem NoncollapsedRCD.exists_dirichlet_poincare + (K : ℝ) (n : ℕ) (hn : 2 ≤ n) (hX : NoncollapsedRCD K n X) + (p : X) {R : ℝ} (hR : 0 ≤ R) (Ω B : Set X) + (hΩ : MeasurableSet Ω) (hB : MeasurableSet B) + (hΩ0 : hausdorff n X Ω ≠ 0) (hB0 : hausdorff n X B ≠ 0) + (hsΩ : Ω ⊆ Metric.closedBall p R) (hsB : B ⊆ Metric.closedBall p R) + (hBΩ : B ⊆ Ωᶜ) : + ∃ P : ℝ, 0 ≤ P ∧ + ∀ f : SobolevSpace.dirichlet (hausdorff n X) hX.quadratic Ω, + ‖SobolevSpace.toLp (hausdorff n X) hX.quadratic f.val‖ ^ 2 ≤ + P * energyForm (hausdorff n X) hX.quadratic f.val f.val := by + let μ := hausdorff n X + let P := μ.real Ω * (2 * R) ^ 2 * + (compressionBudget K n (2 * R) (max (μ Ω)⁻¹ (μ B)⁻¹)).toReal + refine ⟨P, by dsimp [P]; positivity, fun f => ?_⟩ + let u := SobolevSpace.toLp μ hX.quadratic f.val + let g := SobolevSpace.minimalSlope μ hX.quadratic f.val + have hz : u =ᵐ[μ.restrict Ωᶜ] 0 := + SobolevSpace.dirichlet_zero_off μ hX.quadratic Ω hΩ f + have hzB : u =ᵐ[μ.restrict B] 0 := + ae_restrict_of_ae_restrict_of_subset hBΩ hz + have hi := hX.dirichlet_integral_coercivity K n hn p hR hΩ hB hΩ0 hB0 hsΩ hsB + (SobolevSpace.minimalSlope_isRelaxed μ hX.quadratic f.val) hzB + have hu : (∫ x in Ω, (u x) ^ 2 ∂μ) = ‖u‖ ^ 2 := by + rw [setIntegral_eq_integral_of_ae_compl_eq_zero, lp_integral_square_eq_norm_square] + filter_upwards [(ae_restrict_iff' hΩ.compl).mp hz] with x hx hnot + simp [hx hnot] + have hg : (∫ x, (g x) ^ 2 ∂μ) = energyForm μ hX.quadratic f.val f.val := by + rw [lp_integral_square_eq_norm_square] + exact (SobolevSpace.minimalSlope_norm_sq μ hX.quadratic f.val).trans + (energyForm_self μ hX.quadratic f.val).symm + change (∫ x in Ω, (u x) ^ 2 ∂μ) ≤ P * (∫ x, (g x) ^ 2 ∂μ) at hi + rw [hu, hg] at hi + exact hi + +/-- The harmonic replacement exists for the genuine RCD Dirichlet form; +its coercivity is derived above, rather than supplied as an extra input. -/ +theorem NoncollapsedRCD.exists_dirichlet_harmonic_replacement + (K : ℝ) (n : ℕ) (hn : 2 ≤ n) (hX : NoncollapsedRCD K n X) + (p : X) {R : ℝ} (hR : 0 ≤ R) (Ω B : Set X) + (hΩ : MeasurableSet Ω) (hB : MeasurableSet B) + (hΩ0 : hausdorff n X Ω ≠ 0) (hB0 : hausdorff n X B ≠ 0) + (hsΩ : Ω ⊆ Metric.closedBall p R) (hsB : B ⊆ Metric.closedBall p R) + (hBΩ : B ⊆ Ωᶜ) (u : SobolevSpace (hausdorff n X) hX.quadratic) : + ∃ h : SobolevSpace (hausdorff n X) hX.quadratic, + h - u ∈ SobolevSpace.dirichlet (hausdorff n X) hX.quadratic Ω ∧ + IsSobolevHarmonicOn (hausdorff n X) hX.quadratic Ω h := by + obtain ⟨P, hP, hbound⟩ := hX.exists_dirichlet_poincare K n hn p hR Ω B + hΩ hB hΩ0 hB0 hsΩ hsB hBΩ + exact exists_harmonic_replacement (hausdorff n X) hX.quadratic Ω hP hbound u + +/-- Componentwise replacement constructs the full harmonic coordinate +column without assuming a harmonic solution as data. -/ +theorem NoncollapsedRCD.exists_dirichlet_harmonic_column + (K : ℝ) (n : ℕ) (hn : 2 ≤ n) (hX : NoncollapsedRCD K n X) + (p : X) {R : ℝ} (hR : 0 ≤ R) (Ω B : Set X) + (hΩ : MeasurableSet Ω) (hB : MeasurableSet B) + (hΩ0 : hausdorff n X Ω ≠ 0) (hB0 : hausdorff n X B ≠ 0) + (hsΩ : Ω ⊆ Metric.closedBall p R) (hsB : B ⊆ Metric.closedBall p R) + (hBΩ : B ⊆ Ωᶜ) (u : Fin n → SobolevSpace (hausdorff n X) hX.quadratic) : + ∃ h : Fin n → SobolevSpace (hausdorff n X) hX.quadratic, + ∀ a, h a - u a ∈ SobolevSpace.dirichlet (hausdorff n X) hX.quadratic Ω ∧ + IsSobolevHarmonicOn (hausdorff n X) hX.quadratic Ω (h a) := by + classical + exact Classical.axiomOfChoice fun a => + hX.exists_dirichlet_harmonic_replacement K n hn p hR Ω B hΩ hB hΩ0 hB0 hsΩ hsB hBΩ (u a) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/DirichletPoisson.lean b/lean/OAI/Geometry/RCD/Sobolev/DirichletPoisson.lean new file mode 100644 index 0000000000000000000000000000000000000000..7ef62be55564034e9ca1489e942252721ef92162 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/DirichletPoisson.lean @@ -0,0 +1,116 @@ +import OAI.Geometry.RCD.Harmonic.HarmonicGrams +import Mathlib.Analysis.InnerProductSpace.LaxMilgram + +namespace OAI + +/-! +# Dirichlet solutions from the canonical Cheeger energy + +The only quantitative premise is the Poincare estimate on the actual +zero-boundary Sobolev space. Lax--Milgram constructs the solution, including +the harmonic replacement of a given Sobolev function. +-/ + +open Set MeasureTheory +open scoped InnerProductSpace + +noncomputable section + +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] + (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +def sobolevEnergyForm : SobolevSpace μ hQ →L[ℝ] SobolevSpace μ hQ →L[ℝ] ℝ := + innerSL ℝ - (innerSL ℝ).bilinearComp + (SobolevSpace.toLpCLM μ hQ) (SobolevSpace.toLpCLM μ hQ) + +theorem sobolevEnergyForm_apply (f g : SobolevSpace μ hQ) : + sobolevEnergyForm μ hQ f g = energyForm μ hQ f g := rfl + +def dirichletEnergyForm (Ω : Set X) : + SobolevSpace.dirichlet μ hQ Ω →L[ℝ] + SobolevSpace.dirichlet μ hQ Ω →L[ℝ] ℝ := + (sobolevEnergyForm μ hQ).bilinearComp + (SobolevSpace.dirichlet μ hQ Ω).subtypeL + (SobolevSpace.dirichlet μ hQ Ω).subtypeL + +theorem dirichletEnergyForm_apply (Ω : Set X) + (f g : SobolevSpace.dirichlet μ hQ Ω) : + dirichletEnergyForm μ hQ Ω f g = energyForm μ hQ f.val g.val := rfl + +theorem dirichletEnergyForm_isCoercive (Ω : Set X) {P : ℝ} (hP : 0 ≤ P) + (hbound : ∀ f : SobolevSpace.dirichlet μ hQ Ω, + ‖SobolevSpace.toLp μ hQ f.val‖ ^ 2 ≤ P * energyForm μ hQ f.val f.val) : + IsCoercive (dirichletEnergyForm μ hQ Ω) := by + have hp : 0 < P + 1 := by linarith + refine ⟨(P + 1)⁻¹, inv_pos.mpr hp, fun f => ?_⟩ + have he : energyForm μ hQ f.val f.val = + ‖f‖ ^ 2 - ‖SobolevSpace.toLp μ hQ f.val‖ ^ 2 := by + simp only [energyForm, real_inner_self_eq_norm_sq, Submodule.norm_coe] + change (P + 1)⁻¹ * ‖f‖ * ‖f‖ ≤ energyForm μ hQ f.val f.val + calc + _ = ‖f‖ ^ 2 / (P + 1) := by ring + _ ≤ _ := (div_le_iff₀ hp).mpr (by nlinarith [hbound f]) + +/-- Existence and uniqueness for every continuous functional on the +zero-boundary Sobolev space. No solution is assumed. -/ +theorem existsUnique_dirichlet_solution (Ω : Set X) {P : ℝ} (hP : 0 ≤ P) + (hbound : ∀ f : SobolevSpace.dirichlet μ hQ Ω, + ‖SobolevSpace.toLp μ hQ f.val‖ ^ 2 ≤ P * energyForm μ hQ f.val f.val) + (F : SobolevSpace.dirichlet μ hQ Ω →L[ℝ] ℝ) : + ∃! f : SobolevSpace.dirichlet μ hQ Ω, + ∀ φ : SobolevSpace.dirichlet μ hQ Ω, energyForm μ hQ f.val φ.val = F φ := by + let hc := dirichletEnergyForm_isCoercive μ hQ Ω hP hbound + let e := hc.continuousLinearEquivOfBilin + let f := e.symm ((InnerProductSpace.toDual ℝ (SobolevSpace.dirichlet μ hQ Ω)).symm F) + have hf (φ : SobolevSpace.dirichlet μ hQ Ω) : energyForm μ hQ f.val φ.val = F φ := by + calc + _ = ⟪e f, φ⟫_ℝ := (hc.continuousLinearEquivOfBilin_apply f φ).symm + _ = F φ := by simp only [f, ContinuousLinearEquiv.apply_symm_apply, + InnerProductSpace.toDual_symm_apply] + refine ⟨f, hf, fun g hg => ?_⟩ + apply e.injective + apply ext_inner_right ℝ + intro φ + rw [hc.continuousLinearEquivOfBilin_apply, hc.continuousLinearEquivOfBilin_apply] + exact (hg φ).trans (hf φ).symm + +/-- The harmonic representative in a given affine Dirichlet class is +constructed from its boundary datum and the Poincare estimate. -/ +theorem exists_harmonic_replacement (Ω : Set X) {P : ℝ} (hP : 0 ≤ P) + (hbound : ∀ f : SobolevSpace.dirichlet μ hQ Ω, + ‖SobolevSpace.toLp μ hQ f.val‖ ^ 2 ≤ P * energyForm μ hQ f.val f.val) + (u : SobolevSpace μ hQ) : + ∃ h : SobolevSpace μ hQ, h - u ∈ SobolevSpace.dirichlet μ hQ Ω ∧ + IsSobolevHarmonicOn μ hQ Ω h := by + let F : SobolevSpace.dirichlet μ hQ Ω →L[ℝ] ℝ := + -((sobolevEnergyForm μ hQ u).comp (SobolevSpace.dirichlet μ hQ Ω).subtypeL) + obtain ⟨v, hv, _⟩ := existsUnique_dirichlet_solution μ hQ Ω hP hbound F + refine ⟨u + v.val, ?_, ?_⟩ + · simpa only [add_sub_cancel_left] using v.property + · intro φ hφ + have he := hv ⟨φ, hφ⟩ + change energyForm μ hQ v.val φ = -energyForm μ hQ u φ at he + rw [energyForm_add_left, he] + exact add_neg_cancel _ + +/-- The harmonic representative does not increase Dirichlet energy. -/ +theorem harmonic_replacement_energy_le (Ω : Set X) (u h : SobolevSpace μ hQ) + (hboundary : h - u ∈ SobolevSpace.dirichlet μ hQ Ω) + (hharm : IsSobolevHarmonicOn μ hQ Ω h) : + energyForm μ hQ h h ≤ energyForm μ hQ u u := by + have hz := hharm (h - u) hboundary + rw [energyForm_sub_right] at hz + have hs := energyForm_comm μ hQ h u + have hn : 0 ≤ energyForm μ hQ (h - u) (h - u) := by + rw [energyForm_self] + exact mul_nonneg (by norm_num) (SobolevSpace.energy_nonneg μ hQ (h - u)) + simp only [energyForm_sub_left, energyForm_sub_right] at hn + linarith + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/DirichletSobolevConstruction.lean b/lean/OAI/Geometry/RCD/Sobolev/DirichletSobolevConstruction.lean new file mode 100644 index 0000000000000000000000000000000000000000..ef907f630d4039201c2367a8e75da6616ce97b88 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/DirichletSobolevConstruction.lean @@ -0,0 +1,118 @@ +import OAI.Geometry.RCD.Coordinates.NormalizedSobolevMoment +import OAI.Geometry.RCD.Sobolev.DirichletSobolevInput + +namespace OAI + +/-! # The local Dirichlet Sobolev input from RCD transport and volume bounds -/ + +open Set Metric MeasureTheory +open scoped ENNReal + +noncomputable section +namespace RegularPointCoordinates + +private theorem scaled_power_bound {I V T C c p : ℝ} + (hI : 0 ≤ I) (hV : 0 < V) (hC : 0 < C) (hc : 0 < c) (hp : 0 < p) + (hscale : c^2*T = V) (hbound : c^p*I ≤ C*V) : + I^(2/p) ≤ C^(2/p)*T*V^(2/p-1) := by + have hlam : (c^p)^(2/p) = c^2 := by + rw [← Real.rpow_mul hc.le] + have he : p*(2/p) = 2 := by field_simp + rw [he, Real.rpow_two] + have hpow := Real.rpow_le_rpow + (mul_nonneg (Real.rpow_nonneg hc.le _) hI) hbound (by positivity : 0≤2/p) + rw [Real.mul_rpow (Real.rpow_nonneg hc.le _) hI, hlam, + Real.mul_rpow hC.le hV.le] at hpow + have hvpow : V^(2/p) = V^(2/p-1)*V := by + calc + _ = V^((2/p-1)+1) := by congr 1; ring + _ = V^(2/p-1)*V^((1:ℝ)) := Real.rpow_add hV _ _ + _ = _ := by rw [Real.rpow_one] + apply (mul_le_mul_iff_right₀ (sq_pos_of_pos hc)).mp + calc + _ ≤ C^(2/p)*V^(2/p) := hpow + _ = C^(2/p)*V^(2/p-1)*(c^2*T) := by rw [hscale, hvpow]; ring + _ = _ := by ring + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +/-- The superquadratic zero-boundary estimate required by the Poisson +construction is a consequence of actual RCD transport and finite covers. -/ +theorem NoncollapsedRCD.localDirichletSobolevInput {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) : LocalDirichletSobolevInput hX := by + intro hn + obtain ⟨p, C, hp, hC, hnormalized⟩ := hX.normalized_dirichlet_moment hn + obtain ⟨P, hP, hPoincare⟩ := hX.uniform_annular_coercivity hn + have hp0 : 0 < p := by linarith + refine ⟨p/2, C^(2/p), by linarith, Real.rpow_pos_of_pos hC _, ?_⟩ + intro x R hR hcurv hann w + have hcurv2 : -1 ≤ K*(2*R)^2 := by + by_cases hK : 0 ≤ K + · exact (by norm_num : (-1:ℝ)≤0).trans (mul_nonneg hK (sq_nonneg _)) + · have hh := mul_le_mul_of_nonpos_left (show (2*R)^2 ≤ (64*R)^2 by nlinarith) + (le_of_not_ge hK) + linarith + let μ := hausdorff n X + let u := SobolevSpace.toLp μ hX.quadratic w.val + let V := μ.real (ball x R) + let E := energyForm μ hX.quadratic w.val w.val + let I := ∫ y in ball x R, |u y|^p ∂μ + have hV : 0 < V := ENNReal.toReal_pos (hX.fullSupport x R hR).ne' + (hX.finiteOnBounded _ isBounded_ball).ne + have hE : 0 ≤ E := by + dsimp only [E] + rw [energyForm_self] + exact mul_nonneg (by norm_num) (SobolevSpace.energy_nonneg μ hX.quadratic w.val) + have hI : 0 ≤ I := integral_nonneg fun y => Real.rpow_nonneg (abs_nonneg (u y)) _ + have he : (1:ℝ)/(p/2) = 2/p := by field_simp + change (∫ y in ball x R, |u y|^(2*(p/2)) ∂μ)^(1/(p/2)) ≤ + (C^(2/p)*R^2*V^(1/(p/2)-1))*E + rw [show 2*(p/2) = p by ring, he] + change I^(2/p) ≤ (C^(2/p)*R^2*V^(2/p-1))*E + by_cases hEz : E = 0 + · have hl2 := hPoincare x R hR hcurv2 hann w + change ‖u‖^2 ≤ P*R^2*E at hl2 + rw [hEz, mul_zero] at hl2 + have huz : u = 0 := norm_eq_zero.mp (sq_eq_zero_iff.mp (le_antisymm hl2 (sq_nonneg _))) + have hu0 : u =ᵐ[μ] fun _ => 0 := huz ▸ Lp.coeFn_zero _ _ _ + have hIz : I = 0 := by + apply integral_eq_zero_of_ae + filter_upwards [ae_restrict_of_ae hu0] with y hy + simp only [hy, abs_zero, Real.zero_rpow hp0.ne', Pi.zero_apply] + rw [hIz, Real.zero_rpow (by positivity : (2/p:ℝ)≠0), hEz, mul_zero] + have hEpos : 0 < E := lt_of_le_of_ne hE (Ne.symm hEz) + let c := Real.sqrt (V/(R^2*E)) + have hc : 0 < c := Real.sqrt_pos.mpr (by positivity) + have hc2 : c^2 = V/(R^2*E) := Real.sq_sqrt (by positivity) + let v : SobolevSpace.dirichlet μ hX.quadratic (ball x R) := c • w + have hEv : energyForm μ hX.quadratic v.val v.val = c^2*E := by + change energyForm μ hX.quadratic (c • w.val) (c • w.val) = _ + rw [energyForm_smul_left, energyForm_smul_right] + ring + have hscale : c^2*(R^2*E) = V := by + rw [hc2] + exact div_mul_cancel₀ V (by positivity) + have hnormalize : R^2*energyForm μ hX.quadratic v.val v.val ≤ V := by + rw [hEv] + nlinarith [hscale] + obtain ⟨_, hvbound⟩ := hnormalized x R hR hcurv2 hann v hnormalize + have hvrep : SobolevSpace.toLp μ hX.quadratic v.val =ᵐ[μ] fun y => c*u y := by + change SobolevSpace.toLp μ hX.quadratic (c • w.val) =ᵐ[μ] _ + rw [map_smul] + exact Lp.coeFn_smul _ _ + have hmoment : c^p*I ≤ C*V := by + calc + _ = ∫ y in ball x R, |SobolevSpace.toLp μ hX.quadratic v.val y|^p ∂μ := by + rw [← integral_const_mul] + apply integral_congr_ae + filter_upwards [ae_restrict_of_ae hvrep] with y hy + rw [hy, abs_mul, abs_of_pos hc, Real.mul_rpow hc.le (abs_nonneg _)] + _ ≤ _ := hvbound + have hout := scaled_power_bound hI hV hC hc hp0 hscale hmoment + nlinarith only [hout] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/DirichletSobolevInput.lean b/lean/OAI/Geometry/RCD/Sobolev/DirichletSobolevInput.lean new file mode 100644 index 0000000000000000000000000000000000000000..6e3b69d20249fb38f8912eac6739336d5c8ec610 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/DirichletSobolevInput.lean @@ -0,0 +1,42 @@ +import OAI.Geometry.RCD.Coordinates.NormalizedDistancePoisson +import OAI.Geometry.RCD.Sobolev.AnnularPoincare + +namespace OAI + +/-! +# The local Sobolev input used by the Poisson construction + +Hajlasz--Koskela, *Sobolev met Poincare*, Mem. AMS 145 (2000), no.688, +Theorem5.1 (22)--(23), printed pp.22--23, and Remark3 give local normalized +Sobolev inequalities under local doubling and Poincare. The displayed +specialization uses the RCD local constants at bounded rescaled curvature. +Zero extension from B(r) and the positive annulus B(2r)\B(r) remove the +mean. Only one exponent strictly above two is needed, including n=2. + +Zero-boundary coercivity combines with the local Sobolev inequality. +-/ + +open Set Metric MeasureTheory + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +/-- A fixed superquadratic exponent and normalized zero-boundary Sobolev +constant for small balls with a definite exterior annulus. -/ +def LocalDirichletSobolevInput {K : ℝ} {n : ℕ} (hX : NoncollapsedRCD K n X) : Prop := + 2 ≤ n → ∃ d C : ℝ, 1 < d ∧ 0 < C ∧ ∀ (p : X) (r : ℝ), + 0 < r → -1 ≤ K * (64 * r) ^ 2 → + 2 * (hausdorff n X).real (ball p r) ≤ (hausdorff n X).real (ball p (2 * r)) → + ∀ φ : SobolevSpace.dirichlet (hausdorff n X) hX.quadratic (ball p r), + (∫ x in ball p r, |SobolevSpace.toLp (hausdorff n X) hX.quadratic φ.val x| ^ + (2 * d) ∂hausdorff n X) ^ (1 / d) ≤ + (C * r ^ 2 * ((hausdorff n X).real (ball p r)) ^ (1 / d - 1)) * + energyForm (hausdorff n X) hX.quadratic φ.val φ.val + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/DirichletTail.lean b/lean/OAI/Geometry/RCD/Sobolev/DirichletTail.lean new file mode 100644 index 0000000000000000000000000000000000000000..ca43cfd5d5bf9976614c054abae2c511ed22c7e7 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/DirichletTail.lean @@ -0,0 +1,42 @@ +import OAI.Geometry.RCD.Sobolev.DirichletContractions + +namespace OAI + +/-! # Absolute-value tails in the actual Dirichlet Sobolev space -/ + +open Set Filter MeasureTheory + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] + (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +/-- Cutting off the absolute value below a nonnegative level preserves +zero boundary values and does not increase Dirichlet energy. -/ +theorem exists_dirichlet_absolute_tail (Ω : Set X) + (w : SobolevSpace.dirichlet μ hQ Ω) {t : ℝ} (ht : 0 ≤ t) : + ∃ v : SobolevSpace.dirichlet μ hQ Ω, + (SobolevSpace.toLp μ hQ v.val =ᵐ[μ] + fun x => max (|SobolevSpace.toLp μ hQ w.val x|-t) 0) ∧ + energyForm μ hQ v.val v.val ≤ energyForm μ hQ w.val w.val := by + let φ : ℝ → ℝ := fun a => max (|a|-t) 0 + have hshift : LipschitzWith 1 (fun a : ℝ => |a|-t) := by + apply LipschitzWith.of_dist_le_mul + intro a b + simpa only [Real.dist_eq, NNReal.coe_one, one_mul, sub_sub_sub_cancel_right] + using abs_abs_sub_abs_le a b + have hφ : LipschitzWith 1 φ := hshift.max_const 0 + have hφ0 : φ 0 = 0 := by simp [φ, neg_nonpos.mpr ht] + let u := SobolevSpace.compContraction μ hQ hφ hφ0 w.val + refine ⟨⟨u, SobolevSpace.compContraction_mem_dirichlet μ hQ hφ hφ0 Ω + w.val w.property⟩, hφ.coeFn_compLp hφ0 (SobolevSpace.toLp μ hQ w.val), ?_⟩ + rw [energyForm_self, energyForm_self] + exact mul_le_mul_of_nonneg_left + (SobolevSpace.energy_compContraction_le μ hQ hφ hφ0 w.val) (by norm_num) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/DirichletTestRecoverySequence.lean b/lean/OAI/Geometry/RCD/Sobolev/DirichletTestRecoverySequence.lean new file mode 100644 index 0000000000000000000000000000000000000000..bc82b0d856e293f43deee7949d7d285ed1d8bc5a --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/DirichletTestRecoverySequence.lean @@ -0,0 +1,120 @@ +import OAI.Geometry.RCD.Sobolev.RecoveredTestEnergy +import OAI.Geometry.RCD.Sobolev.InteriorSmoothTestBounds +import OAI.Geometry.RCD.Coordinates.NormalizedUniformL2 +import OAI.Geometry.RCD.Sobolev.PoissonLocality + +namespace OAI + +/-! # Actual Dirichlet tests along a measured blow-up sequence + +The tests lie in the original zero-boundary Sobolev spaces, converge in +normalized L2 to the prescribed Euclidean test and have uniformly bounded +rescaled energy. No Sobolev convergence input is assumed. +-/ + +open Set Metric Filter MeasureTheory +open scoped Topology NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem NoncollapsedRCD.compact_test_recovery_sequence {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) {S ρ a b : ℝ} + (hρ : 0≤ρ) (hρa : ρ ((hausdorff n X).real (ball (p (k+N)) (S*r (k+N))))⁻¹* + ∫ x in ball (p (k+N)) (S*r (k+N)), + (SobolevSpace.toLp (hausdorff n X) hX.quadratic (w k).val x-ψ (v (k+N) x))^2 + ∂hausdorff n X) atTop (𝓝 0) := by + have hS : 0 μ.restrict (ball (p (k+N)) (S*r (k+N))) + let : ∀ k, IsFiniteMeasure (ν k) := fun k => + ⟨by simpa only [ν,Measure.restrict_apply_univ] using (hX.finiteOnBounded _ isBounded_ball)⟩ + have hmass (k : ℕ) : 0<(ν k).real univ := by + change 0<(μ.restrict (ball (p (k+N)) (S*r (k+N)))).real univ + rw [Measure.real,Measure.restrict_apply_univ] + exact ENNReal.toReal_pos (hX.fullSupport _ _ (mul_pos hS (hr (k+N)))).ne' + (hX.finiteOnBounded _ isBounded_ball).ne + let F := fun k x => SobolevSpace.toLp μ hX.quadratic (w k).val x-ψ (v (k+N) x) + have hFm (k : ℕ) : AEStronglyMeasurable (F k) (ν k) := + ((Lp.aestronglyMeasurable (SobolevSpace.toLp μ hX.quadratic (w k).val)).sub + (hψ.continuous.measurable.comp (hv (k+N)).measurable).aestronglyMeasurable).mono_measure + Measure.restrict_le_self + have hlim : ∀ η : ℝ, 0<η → ∀ᶠ k in atTop, ∀ᵐ x ∂ν k, |F k x|≤η := by + intro η hη + have ht := (hε.comp (tendsto_add_atTop_nat N)).const_mul (M:ℝ) + simp only [mul_zero] at ht + filter_upwards [ht.eventually (Iio_mem_nhds hη)] with k hk + exact (he k).mono fun x hx => hx.trans hk.le + simpa only [ν,Measure.real,Measure.restrict_apply_univ,F] using + normalized_sq_mean_tendsto_zero ν hmass F hFm hlim + +theorem NoncollapsedRCD.smooth_test_recovery_sequence {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) {S : ℝ} (hS : 0 ((hausdorff n X).real (ball (p (k+N)) (S*r (k+N))))⁻¹* + ∫ x in ball (p (k+N)) (S*r (k+N)), + (SobolevSpace.toLp (hausdorff n X) hX.quadratic (w k).val x-ψ (v (k+N) x))^2 + ∂hausdorff n X) atTop (𝓝 0) := by + obtain ⟨ρ,hρ,hρS,M,B,hψL,hψB,hψ0⟩ := hψ.metric_bounds hS + let a := (2*ρ+S)/3 + let b := (ρ+2*S)/3 + have hρa : ρ by + by_contra hn + exact hx (hs (subset_tsupport v hn)) + rw [positiveSquaredDistance, energyForm_add_left, energyForm_smul_left, hzero, mul_zero, + add_zero, hi] + exact hsource ψ v L hv hc (hs.trans (ball_subset_ball hrR)) hψ + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/DistancePoissonAbsoluteValues.lean b/lean/OAI/Geometry/RCD/Sobolev/DistancePoissonAbsoluteValues.lean new file mode 100644 index 0000000000000000000000000000000000000000..6256dbf1d94a63acff0c8145988b294d9035b218 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/DistancePoissonAbsoluteValues.lean @@ -0,0 +1,62 @@ +import OAI.Geometry.RCD.Sobolev.DistancePoissonDistanceValues + +namespace OAI + +/-! # Absolute squared-distance value errors under normalized compression -/ + +open Set Filter Metric MeasureTheory +open scoped Topology ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + {μ : Measure X} [IsFiniteMeasureOnCompacts μ] {Q : QuadraticCheegerEnergy μ} + {n : ℕ} {κ B J C : ℝ} {p : ℕ → X} {r : ℕ → ℝ} {hr : ∀ k, 0 (F.source k).real (ball (p k) (r k))/μ.real (ball (p k) (r k))) + atTop (𝓝 0)) + (ν : ℕ → Measure X) [∀ k, IsFiniteMeasure (ν k)] (Bν : ℕ → ℝ≥0∞) + (hBν : ∀ k, Bν k≠∞) (hν : ∀ k, ν k≤Bν k • μ) + (hs : ∀ k, ∀ᵐ x ∂ν k, x∈ball (p k) (r k/16)) + (hcompression : ∀ k, (Bν k).toReal*μ.real (ball (p k) (r k))≤Cν) : + Tendsto (fun k => (∫ x, |dist (p k) x^2/2-D.representative k x| ∂ν k)/(r k)^2) + atTop (𝓝 0) := by + let w k := ((r k)^2)⁻¹ • (F.datum k-F.replacement k) + have hi k : IntegrableOn (SobolevSpace.toLp μ Q (w k)) (ball (p k) (r k)) μ := by + let : IsFiniteMeasure (μ.restrict (ball (p k) (r k))) := + isFiniteMeasure_restrict.mpr measure_ball_lt_top.ne + exact ((Lp.memLp _).restrict (ball (p k) (r k))).integrable (by norm_num) + have hlarge k : ν k≤ENNReal.ofReal (Cν/μ.real (ball (p k) (r k))) • μ.restrict (ball (p k) (r k)) := + normalized_supported_compression μ (ν k) (hBν k) (hν k) + ((hs k).mono fun _ hx => ball_subset_ball (show r k/16≤r k by linarith [hr k]) hx) + (hV k) (hcompression k) + have hinput := F.normalized_value_L1_tendsto_zero hP hV hpoin hmass + have hlim := normalized_local_L1_domination μ (fun k => ball (p k) (r k)) ν + (fun k x => |SobolevSpace.toLp μ Q (w k) x|) hCν hV hlarge (fun k => (hi k).abs) + (by simpa only [abs_abs] using hinput) + apply hlim.congr' + apply Eventually.of_forall + intro k + have hac : ν k ≪ μ.restrict (ball (p k) (r k/16)) := + Measure.absolutelyContinuous_of_le_smul ((compression_iff_localized μ (ν k) (hs k) (Bν k)).mp (hν k)) + have he' : SobolevSpace.toLp μ Q (w k) =ᵐ[ν k] + fun x => (dist (p k) x^2/2-D.representative k x)/(r k)^2 := + hac.ae_eq (D.scaled_distance_error_ae k) + have he : (fun x => |SobolevSpace.toLp μ Q (w k) x|) =ᵐ[ν k] + fun x => |(dist (p k) x^2/2-D.representative k x)/(r k)^2| := by + filter_upwards [he'] with x hx + exact congrArg abs hx + dsimp only [w] + rw [integral_congr_ae he] + simp_rw [abs_div,abs_of_pos (sq_pos_of_pos (hr k))] + rw [integral_div] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/DistancePoissonBoundedMean.lean b/lean/OAI/Geometry/RCD/Sobolev/DistancePoissonBoundedMean.lean new file mode 100644 index 0000000000000000000000000000000000000000..627a8800ae5e4880becafeb1b79ade2d673902f0 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/DistancePoissonBoundedMean.lean @@ -0,0 +1,61 @@ +import OAI.Geometry.RCD.Transport.DistancePoissonOptimalMean +import OAI.Geometry.RCD.Metric.DominatedCompactProbability + +namespace OAI + +/-! # Poisson quadratic means for bounded ambient endpoint laws -/ + +open Set Filter Metric MeasureTheory TopologicalSpace +open scoped Topology NNReal ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + {K : ℝ} {n : ℕ} {hX : NoncollapsedRCD K n X} {hn : 2≤n} [SeparableSpace X] + [IsLocallyFiniteMeasure (hausdorff n X)] [(hausdorff n X).Regular] + {κ B J C : ℝ} {p : ℕ → X} {r : ℕ → ℝ} {hr : ∀ k, 0 γ 0)) (π.map (fun γ => γ 1)) + (π.map (fun γ => (γ 0,γ 1)))) + {Bπ : ℝ≥0∞} (hBπ : Bπ≠∞) (hcomp : ∀ t : Time, π.map (fun γ => γ t)≤Bπ • hausdorff n X) + (hs₀ : ∀ᵐ x ∂π.map (fun γ => γ 0), dist x (p k)≤r k/512) + (hs₁ : ∀ᵐ x ∂π.map (fun γ => γ 1), dist x (p k)≤r k/512) : + let Z t := ∫ γ, W.representative k (γ t) ∂π + ∀ (l h t : Time), 0<(l:ℝ) → (l:ℝ) γ t), dist x (p k)≤r k/512) : + ∀ᵐ x ∂π.map (fun γ => γ t), x∈S := by simpa only [S,mem_closedBall] using ht + obtain ⟨μ,ρ₀,C₀,hprob₀,hμ,hm₀,hp₀,hC₀,hd₀⟩ := dominated_supported_probability_law + m (π.map (fun γ => γ 0)) S hSm (hs 0 hs₀) hBπ (hcomp 0) + obtain ⟨ν,ρ₁,C₁,hprob₁,hν,hm₁,hp₁,hC₁,hd₁⟩ := dominated_supported_probability_law + m (π.map (fun γ => γ 1)) S hSm (hs 1 hs₁) hBπ (hcomp 1) + let := hprob₀ + let := hprob₁ + obtain ⟨a₀⟩ := nonempty_of_isProbabilityMeasure μ + obtain ⟨b₀⟩ := nonempty_of_isProbabilityMeasure ν + have hopt' : IsOptimalCoupling (μ.map Subtype.val) (ν.map Subtype.val) + (π.map (fun γ => (γ 0,γ 1))) := by rw [hμ,hν]; exact hopt + exact W.optimal_mean_estimate k p₀ a₀ b₀ hK hκ hBJ hr1 ρ₀ ρ₁ hm₀ hm₁ hp₀ hp₁ + hC₀ hC₁ hd₀ hd₁ + (fun y => by simpa only [S,mem_closedBall,dist_comm] using y.property) + (fun y => by simpa only [S,mem_closedBall,dist_comm] using y.property) + π hgeo hopt' hBπ hcomp + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/DistancePoissonBudget.lean b/lean/OAI/Geometry/RCD/Sobolev/DistancePoissonBudget.lean new file mode 100644 index 0000000000000000000000000000000000000000..e20365f103d0811630bb9a3eedebabfd2f5804c9 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/DistancePoissonBudget.lean @@ -0,0 +1,75 @@ +import OAI.Geometry.RCD.Sobolev.DistancePoissonLocalData +import OAI.Geometry.RCD.Sobolev.CutoffLocalEnergyBound +import OAI.Geometry.RCD.Harmonic.QuadraticMeanScaling + +namespace OAI + +/-! # Vanishing shifted-mass budgets for the actual distance replacements -/ + +open Set Filter Metric MeasureTheory +open scoped Topology NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + {μ : Measure X} [IsFiniteMeasureOnCompacts μ] {Q : QuadraticCheegerEnergy μ} + {n : ℕ} {κ B J C : ℝ} {p : ℕ → X} {r : ℕ → ℝ} {hr : ∀ k, 0 (χ.bounds x).1) u + exact sub_nonneg.mpr ((mul_nonpos_of_nonpos_of_nonneg hK hnon).trans + (mul_nonneg (div_nonneg hCχ (sq_nonneg _)) + (mul_nonneg (mul_nonneg hBJ (sq_nonneg _)) (measureReal_nonneg)))) + · dsimp only [W] + rw [he] + nlinarith only [mul_le_mul_of_nonneg_left hwm (neg_nonneg.mpr hK)] + +theorem DistancePoissonFamily.normalized_shifted_budget_tendsto_zero + {K A Cχ : ℝ} (hK : K≤0) (hCχ : 0≤Cχ) (hBJ : 0≤J+B/2) + (u : ℕ → SobolevSpace μ Q) + (χ : ∀ k, GoodLaplacianCutoff μ Q (p k) (12*(r k/512)) Cχ) + (hL : ∀ k, ∀ᵐ x ∂μ.restrict (ball (p k) (r k/16)), localGamma μ Q (u k) (u k) x≤(A*r k)^2) + (hV : ∀ k, 0<μ.real (ball (p k) (r k))) + (hr0 : Tendsto r atTop (𝓝 0)) + (hmass : Tendsto (fun k => (F.source k).real (ball (p k) (r k))/μ.real (ball (p k) (r k))) + atTop (𝓝 0)) : + Tendsto (fun k => ((Cχ/(12*(r k/512))^2)*((J+B/2)*(r k)^2*(F.source k).real (ball (p k) (r k)))- + K*weightedGamma μ Q (χ k).weight (u k) (u k))/μ.real (ball (p k) (r k))) atTop (𝓝 0) := by + let D := Cχ*(512/12:ℝ)^2*(J+B/2) + have hlim : Tendsto (fun k => D*((F.source k).real (ball (p k) (r k))/μ.real (ball (p k) (r k)))+ + (-K)*(A*r k)^2) atTop (𝓝 0) := by + simpa only [mul_zero,zero_pow (by norm_num : 2≠0),zero_add] using + (hmass.const_mul D).add (((hr0.const_mul A).pow 2).const_mul (-K)) + apply squeeze_zero (fun k => div_nonneg (F.shifted_budget_bound hK hCχ hBJ k (u k) (χ k) (hL k)).1 (hV k).le) _ hlim + intro k + have hh := div_le_div_of_nonneg_right + (F.shifted_budget_bound hK hCχ hBJ k (u k) (χ k) (hL k)).2 (hV k).le + convert hh using 1 + dsimp only [D] + field_simp [(hV k).ne'] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/DistancePoissonConstruction.lean b/lean/OAI/Geometry/RCD/Sobolev/DistancePoissonConstruction.lean new file mode 100644 index 0000000000000000000000000000000000000000..3ae79d521a564afe718b94cee6926281b9aad540 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/DistancePoissonConstruction.lean @@ -0,0 +1,97 @@ +import OAI.Geometry.RCD.Harmonic.DyadicDistanceReplacements +import OAI.Geometry.RCD.Sobolev.DirichletSobolevConstruction +import OAI.Geometry.RCD.Sobolev.GoodCutoffFromResolvent + +namespace OAI + +/-! # Uniform actual Poisson replacements for arbitrary distance sources + +Only one radius at each center is needed by the near-regular limit argument. +The same constants work simultaneously for every such center and source. +-/ + +open Set Metric MeasureTheory +open scoped NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +private theorem distance_curvature_lower {K r R : ℝ} (hr : 0≤r) (hrR : r≤R) + (hcurv : -1≤K*R^2) : -1≤K*r^2 := by + by_cases hK : 0≤K + · exact (by norm_num : (-1:ℝ)≤0).trans (mul_nonneg hK (sq_nonneg _)) + · have hsq : r^2≤R^2 := (sq_le_sq₀ hr (hr.trans hrR)).mpr hrR + exact hcurv.trans (mul_le_mul_of_nonpos_left hsq (le_of_not_ge hK)) + +theorem NoncollapsedRCD.uniform_distance_poisson_replacement {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (hn : 2≤n) {κ : ℝ} (hκ : 0≤κ) : + let _ := locallyFinite_of_finiteOnBounded (hausdorff n X) hX.finiteOnBounded + ∃ B J Cχ : ℝ, 0 ⟨hx.1, hx.2.trans (mul_le_mul_of_nonneg_right haB (sq_nonneg r))⟩ + · exact he.trans (mul_le_mul_of_nonneg_left (mul_le_mul_of_nonneg_right haB (sq_nonneg r)) hmass) + · exact hdens.trans (mul_le_mul_of_nonneg_right + (mul_le_mul_of_nonneg_right (add_le_add (le_refl J) + (div_le_div_of_nonneg_right haB (by norm_num : (0 : ℝ) ≤ 2))) + (sq_nonneg r)) hmass) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/DistancePoissonDistanceValues.lean b/lean/OAI/Geometry/RCD/Sobolev/DistancePoissonDistanceValues.lean new file mode 100644 index 0000000000000000000000000000000000000000..e316d023d938964389b9a96d89c61114c05ec15f --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/DistancePoissonDistanceValues.lean @@ -0,0 +1,85 @@ +import OAI.Geometry.RCD.Sobolev.DistancePoissonValueL1 +import OAI.Geometry.RCD.Sobolev.DistancePoissonRepresentative +import OAI.Geometry.RCD.Coordinates.NormalizedSupportedCompression + +namespace OAI + +/-! # Replacing compact Poisson values by the actual squared distance -/ + +open Set Filter Metric MeasureTheory +open scoped Topology ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + {μ : Measure X} [IsFiniteMeasureOnCompacts μ] {Q : QuadraticCheegerEnergy μ} + {n : ℕ} {κ B J C : ℝ} {p : ℕ → X} {r : ℕ → ℝ} {hr : ∀ k, 0 (dist (p k) x^2/2-D.representative k x)/(r k)^2 := by + have hq := positiveSquaredDistance_representative μ Q + (mul_nonneg (by norm_num : (0:ℝ)≤4) (hr k).le) (F.cutoff k) + filter_upwards [ae_restrict_of_ae hq,D.representative_local_eq k, + ae_restrict_mem measurableSet_ball, + ae_restrict_of_ae (Lp.coeFn_smul ((r k)^2)⁻¹ + (SobolevSpace.toLp μ Q (F.datum k-F.replacement k))), + ae_restrict_of_ae (Lp.coeFn_sub (SobolevSpace.toLp μ Q (F.datum k)) + (SobolevSpace.toLp μ Q (F.replacement k)))] with x hqx hDx hx hs hd + have hx4 : x∈ball (p k) (4*r k) := + ball_subset_ball (show r k/16≤4*r k by linarith [hr k]) hx + have hqx' : SobolevSpace.toLp μ Q (F.datum k) x=dist (p k) x^2/2 := + hqx.trans (positiveSquaredDistanceValue_on_ball μ Q (F.cutoff k) hx4) + rw [map_smul,hs,Pi.smul_apply,smul_eq_mul,map_sub,hd,Pi.sub_apply,hqx',← hDx] + ring + +theorem DistancePoissonMeanData.normalized_distance_mean_error {P Cν : ℝ} + (hP : 0≤P) (hCν : 0≤Cν) (hV : ∀ k, 0<μ.real (ball (p k) (r k))) + (hpoin : ∀ k, ∀ v : SobolevSpace.dirichlet μ Q (ball (p k) (r k)), + ‖SobolevSpace.toLp μ Q v.val‖^2≤P*(r k)^2*energyForm μ Q v.val v.val) + (hmass : Tendsto (fun k => (F.source k).real (ball (p k) (r k))/μ.real (ball (p k) (r k))) + atTop (𝓝 0)) + (ν : ℕ → Measure X) [∀ k, IsFiniteMeasure (ν k)] (Bν : ℕ → ℝ≥0∞) + (hBν : ∀ k, Bν k≠∞) (hν : ∀ k, ν k≤Bν k • μ) + (hs : ∀ k, ∀ᵐ x ∂ν k, x∈ball (p k) (r k/16)) + (hcompression : ∀ k, (Bν k).toReal*μ.real (ball (p k) (r k))≤Cν) : + Tendsto (fun k => ((∫ x, dist (p k) x^2/2 ∂ν k)- + (∫ x, D.representative k x ∂ν k))/(r k)^2) atTop (𝓝 0) := by + let w k := ((r k)^2)⁻¹ • (F.datum k-F.replacement k) + have hi k : IntegrableOn (SobolevSpace.toLp μ Q (w k)) (ball (p k) (r k)) μ := by + let : IsFiniteMeasure (μ.restrict (ball (p k) (r k))) := + isFiniteMeasure_restrict.mpr measure_ball_lt_top.ne + exact ((Lp.memLp _).restrict (ball (p k) (r k))).integrable (by norm_num) + have hlarge k : ν k≤ENNReal.ofReal (Cν/μ.real (ball (p k) (r k))) • μ.restrict (ball (p k) (r k)) := + normalized_supported_compression μ (ν k) (hBν k) (hν k) + ((hs k).mono fun _ hx => ball_subset_ball (show r k/16≤r k by linarith [hr k]) hx) + (hV k) (hcompression k) + have hlim := normalized_local_L1_domination μ (fun k => ball (p k) (r k)) ν + (fun k => SobolevSpace.toLp μ Q (w k)) hCν hV hlarge hi + (F.normalized_value_L1_tendsto_zero hP hV hpoin hmass) + apply hlim.congr' + apply Eventually.of_forall + intro k + have hac : ν k ≪ μ.restrict (ball (p k) (r k/16)) := + Measure.absolutelyContinuous_of_le_smul ((compression_iff_localized μ (ν k) (hs k) (Bν k)).mp (hν k)) + have he := hac.ae_eq (D.scaled_distance_error_ae k) + dsimp only [w] + rw [integral_congr_ae he] + have hq : Integrable (fun x => dist (p k) x^2/2) (ν k) := by + apply Integrable.of_bound (by fun_prop) ((r k)^2/2) + filter_upwards [hs k] with x hx + have hdist : dist (p k) x M k/V k) atTop (𝓝 0)) : + Tendsto (fun k => E k/((r k)^2*V k)) atTop (𝓝 0) := by + have hbound k : E k/((r k)^2*V k)≤C*(M k/V k) := by + calc + _ ≤ (C*(r k)^2*M k)/((r k)^2*V k) := + div_le_div_of_nonneg_right (hb k) (mul_nonneg (sq_nonneg _) (hV k).le) + _ = _ := by field_simp [(hr k).ne'] + apply squeeze_zero (fun k => div_nonneg (hE k) (mul_nonneg (sq_nonneg _) (hV k).le)) hbound + simpa only [mul_zero] using hM.const_mul C + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + {μ : Measure X} [IsFiniteMeasureOnCompacts μ] {Q : QuadraticCheegerEnergy μ} + {n : ℕ} {κ B J C : ℝ} {p : ℕ → X} {r : ℕ → ℝ} {hr : ∀ k, 0 (F.source k).real (ball (p k) (r k))/μ.real (ball (p k) (r k))) + atTop (𝓝 0)) : + Tendsto (fun k => (∫ x, (SobolevSpace.minimalSlope μ Q (F.datum k-F.replacement k) x)^2 ∂μ)/ + ((r k)^2*μ.real (ball (p k) (r k)))) atTop (𝓝 0) := by + apply radius_error_tendsto_zero r (fun k => μ.real (ball (p k) (r k))) + (fun k => (F.source k).real (ball (p k) (r k))) _ hr hV + (fun k => integral_nonneg fun _ => sq_nonneg _) + · intro k + exact (F.energy_error k).trans_eq (by ring) + · exact hM + +theorem DistancePoissonFamily.normalized_density_error_tendsto_zero + (hV : ∀ k, 0<μ.real (ball (p k) (r k))) + (hM : Tendsto (fun k => (F.source k).real (ball (p k) (r k))/μ.real (ball (p k) (r k))) + atTop (𝓝 0)) : + Tendsto (fun k => (∫ x in ball (p k) (r k), + |(1/2:ℝ)*localGamma μ Q (F.replacement k) (F.replacement k) x- + (1/2:ℝ)*localGamma μ Q (F.datum k) (F.datum k) x| ∂μ)/ + ((r k)^2*μ.real (ball (p k) (r k)))) atTop (𝓝 0) := by + apply radius_error_tendsto_zero r (fun k => μ.real (ball (p k) (r k))) + (fun k => (F.source k).real (ball (p k) (r k))) _ hr hV + (fun k => integral_nonneg fun _ => abs_nonneg _) (F.density_error) hM + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/DistancePoissonExtensions.lean b/lean/OAI/Geometry/RCD/Sobolev/DistancePoissonExtensions.lean new file mode 100644 index 0000000000000000000000000000000000000000..1d03d9bf08929677c63633e19e79a2f05f599c7c --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/DistancePoissonExtensions.lean @@ -0,0 +1,56 @@ +import OAI.Geometry.RCD.Sobolev.DistancePoissonGradient +import OAI.Geometry.RCD.Coordinates.LocalPoissonRegularExtension + +namespace OAI + +/-! # Actual compact extensions of the near-regular Poisson replacements -/ + +open Set Metric MeasureTheory +open scoped NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem NoncollapsedRCD.distance_poisson_family_extensions {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) [(hausdorff n X).Regular] (hn : 2≤n) + (hK : K≤0) (p₀ : X) {κ B : ℝ} (hκ : 0≤κ) : + let _ := locallyFinite_of_finiteOnBounded (hausdorff n X) hX.finiteOnBounded + ∃ A : ℝ, 0 (n:ℝ)+κ*(4*r k)^2) ∧ + (∀ᵐ x ∂(hausdorff n X).restrict (ball (p k) (r k/16)), + localGamma (hausdorff n X) hX.quadratic G.val G.val x≤(A*r k)^2) := by + let _ := locallyFinite_of_finiteOnBounded (hausdorff n X) hX.finiteOnBounded + dsimp only + obtain ⟨A,hA,hgrad⟩ := hX.distance_poisson_family_gradient hn hK p₀ hκ + refine ⟨A,hA,?_⟩ + intro p r hr J C F k hr1 hc + have hk : 0 (F.source k).real (ball (p k) (r k))/μ.real (ball (p k) (r k))) + atTop (𝓝 0)) : + Tendsto (fun k => ‖normalizeLocalL2 μ (ball (p k) (r k)) + (ne_of_lt ((measure_mono ball_subset_closedBall).trans_lt (isCompact_closedBall (p k) (r k)).measure_lt_top)) + (SobolevSpace.restrictLp μ Q (ball (p k) (r k)) + (((r k)^2)⁻¹ • (F.datum k-F.replacement k)))‖) atTop (𝓝 0) := by + apply normalized_dirichlet_error_tendsto_zero μ Q (fun k => ball (p k) (r k)) + (fun k => ne_of_lt ((measure_mono ball_subset_closedBall).trans_lt + (isCompact_closedBall (p k) (r k)).measure_lt_top)) hvol r + (fun k => B*((F.source k).real (ball (p k) (r k))/μ.real (ball (p k) (r k)))) + hP hr (fun k => F.datum k-F.replacement k) + · intro k + simpa only [datum,neg_sub] using (SobolevSpace.dirichlet μ Q (ball (p k) (r k))).neg_mem (F.boundary k) + · exact hpoin + · intro k + apply (F.energy_error k).trans_eq + field_simp [(hvol k).ne'] + · simpa only [mul_zero] using hmass.const_mul B + +end DistancePoissonFamily +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/DistancePoissonGradient.lean b/lean/OAI/Geometry/RCD/Sobolev/DistancePoissonGradient.lean new file mode 100644 index 0000000000000000000000000000000000000000..9f01990c8b66e65c7543dd5996af3c324ef4649b --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/DistancePoissonGradient.lean @@ -0,0 +1,107 @@ +import OAI.Geometry.RCD.Sobolev.DistancePoissonFamily +import OAI.Geometry.RCD.Sobolev.HarmonicGradientConstruction + +namespace OAI + +/-! # Uniform gradient bounds for the constructed distance Poisson sequence -/ + +open Set Metric MeasureTheory + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem DistancePoissonFamily.value_bound + {μ : Measure X} [IsFiniteMeasureOnCompacts μ] {Q : QuadraticCheegerEnergy μ} + {n : ℕ} {κ B J C : ℝ} {p : ℕ → X} {r : ℕ → ℝ} {hr : ∀ k, 0 hx.trans hcomp + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/DistancePoissonLocalData.lean b/lean/OAI/Geometry/RCD/Sobolev/DistancePoissonLocalData.lean new file mode 100644 index 0000000000000000000000000000000000000000..a4f47b15f2de3830770364f2f181bc232055cddc --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/DistancePoissonLocalData.lean @@ -0,0 +1,59 @@ +import OAI.Geometry.RCD.Sobolev.DistancePoissonErrors +import OAI.Geometry.RCD.Sobolev.PoissonSourceLocalization + +namespace OAI + +/-! # Source and energy data retained by the actual compact extensions -/ + +open Set Metric MeasureTheory +open scoped NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + {μ : Measure X} [IsFiniteMeasureOnCompacts μ] {Q : QuadraticCheegerEnergy μ} + {n : ℕ} {κ B J C : ℝ} {p : ℕ → X} {r : ℕ → ℝ} {hr : ∀ k, 0 (1/2:ℝ)*localGamma μ Q (F.datum k) (F.datum k) x) + =ᵐ[μ.restrict (ball (p k) (r k/16))] SobolevSpace.toLp μ Q (F.datum k)) ∧ + (∫ x in ball (p k) (r k/16), + |(1/2:ℝ)*localGamma μ Q u u x-(1/2:ℝ)*localGamma μ Q (F.datum k) (F.datum k) x| ∂μ)≤ + (J+B/2)*(r k)^2*(F.source k).real (ball (p k) (r k)) := by + have hsub : ball (p k) (r k/16)⊆ball (p k) (r k) := + ball_subset_ball (by linarith [hr k]) + refine ⟨positive_defect_mono μ Q hsub (F.datum k) (F.source k) + ((n:ℝ)+κ*(4*r k)^2) (F.defect k),?_,?_⟩ + · exact ae_restrict_of_ae_restrict_of_subset + (ball_subset_ball (show r k/16≤4*r k by linarith [hr k])) + (positiveSquaredDistance_energy_value μ Q (mul_nonneg (by norm_num) (hr k).le) + (F.cutoff k) (F.eikonal k)) + · have hΓ := localGamma_pair_congr_ae μ Q hu hu + calc + _ = ∫ x in ball (p k) (r k/16), + |(1/2:ℝ)*localGamma μ Q (F.replacement k) (F.replacement k) x- + (1/2:ℝ)*localGamma μ Q (F.datum k) (F.datum k) x| ∂μ := by + apply integral_congr_ae + filter_upwards [hΓ] with x hx + rw [hx] + _ ≤ ∫ x in ball (p k) (r k), + |(1/2:ℝ)*localGamma μ Q (F.replacement k) (F.replacement k) x- + (1/2:ℝ)*localGamma μ Q (F.datum k) (F.datum k) x| ∂μ := + setIntegral_mono_set + ((((localGamma_memL1 μ Q (F.replacement k) (F.replacement k)).const_mul (1/2:ℝ)).sub + ((localGamma_memL1 μ Q (F.datum k) (F.datum k)).const_mul (1/2:ℝ))).abs.integrableOn) + (Filter.Eventually.of_forall fun _ => abs_nonneg _) (Filter.Eventually.of_forall hsub) + _ ≤ _ := F.density_error k + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/DistancePoissonMeanData.lean b/lean/OAI/Geometry/RCD/Sobolev/DistancePoissonMeanData.lean new file mode 100644 index 0000000000000000000000000000000000000000..2572e1c8346e39546e073e1064dae8e4b32f093f --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/DistancePoissonMeanData.lean @@ -0,0 +1,89 @@ +import OAI.Geometry.RCD.Sobolev.DistancePoissonExtensions +import OAI.Geometry.RCD.Sobolev.DistancePoissonBudget +import OAI.Geometry.RCD.Sobolev.GoodCutoffFromResolvent + +namespace OAI + +/-! # Simultaneous compact extensions and cutoffs of the actual Poisson family -/ + +open Set Metric MeasureTheory Filter +open scoped Topology NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + {μ : Measure X} [IsFiniteMeasureOnCompacts μ] {Q : QuadraticCheegerEnergy μ} + {n : ℕ} {κ B J C : ℝ} {p : ℕ → X} {r : ℕ → ℝ} {hr : ∀ k, 0 (n:ℝ)+κ*(4*r k)^2 + gradient_le : ∀ k, ∀ᵐ x ∂μ.restrict (ball (p k) (r k/16)), + localGamma μ Q (extension k).val (extension k).val x≤(bound*r k)^2 + +theorem NoncollapsedRCD.distance_poisson_mean_data {K : ℝ} + (hX : NoncollapsedRCD K n X) [(hausdorff n X).Regular] (hn : 2≤n) + (hK : K≤0) (p₀ : X) (hκ : 0≤κ) + (F : DistancePoissonFamily (hausdorff n X) hX.quadratic n κ B J C p r hr) + (hscale : ∀ k, r k≤1 ∧ -1≤K*(64*r k)^2) : + let _ := locallyFinite_of_finiteOnBounded (hausdorff n X) hX.finiteOnBounded + Nonempty (DistancePoissonMeanData F) := by + let _ := locallyFinite_of_finiteOnBounded (hausdorff n X) hX.finiteOnBounded + dsimp only + obtain ⟨A,hA,hExt⟩ := hX.distance_poisson_family_extensions hn hK p₀ hκ (B := B) + obtain ⟨Cχ,hCχ,hcut⟩ := hX.goodCutoffInput hn + choose G d hd hGF hda hgrad using fun k => + hExt p r hr J C F k (hscale k).1 (hscale k).2 + have hχ k : Nonempty (GoodLaplacianCutoff (hausdorff n X) hX.quadratic + (p k) (12*(r k/512)) Cχ) := by + have hk := hr k + apply hcut (p k) (12*(r k/512)) (by positivity) + nlinarith only [(hscale k).2] + exact ⟨{ + bound := A + bound_pos := hA + cutoffConstant := Cχ + cutoff_one_le := hCχ + extension := G + laplacian := d + cutoff := fun k => Classical.choice (hχ k) + weak_laplacian := hd + replacement_eq := hGF + source_eq := hda + gradient_le := hgrad }⟩ + +namespace DistancePoissonMeanData +variable {F : DistancePoissonFamily μ Q n κ B J C p r hr} (D : DistancePoissonMeanData F) + +def budget (K : ℝ) (k : ℕ) : ℝ := + (D.cutoffConstant/(12*(r k/512))^2)*((J+B/2)*(r k)^2*(F.source k).real (ball (p k) (r k)))- + K*weightedGamma μ Q (D.cutoff k).weight (D.extension k).val (D.extension k).val + +theorem budget_nonneg {K : ℝ} (hK : K≤0) (hBJ : 0≤J+B/2) (k : ℕ) : + 0≤D.budget K k := + (F.shifted_budget_bound hK (zero_le_one.trans D.cutoff_one_le) hBJ k + (D.extension k).val (D.cutoff k) (D.gradient_le k)).1 + +theorem normalized_budget_tendsto_zero {K : ℝ} (hK : K≤0) (hBJ : 0≤J+B/2) + (hV : ∀ k, 0<μ.real (ball (p k) (r k))) (hr0 : Tendsto r atTop (𝓝 0)) + (hmass : Tendsto (fun k => (F.source k).real (ball (p k) (r k))/μ.real (ball (p k) (r k))) + atTop (𝓝 0)) : + Tendsto (fun k => D.budget K k/μ.real (ball (p k) (r k))) atTop (𝓝 0) := + F.normalized_shifted_budget_tendsto_zero hK (zero_le_one.trans D.cutoff_one_le) + hBJ (fun k => (D.extension k).val) D.cutoff D.gradient_le hV hr0 hmass + +end DistancePoissonMeanData +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/DistancePoissonMeanEstimate.lean b/lean/OAI/Geometry/RCD/Sobolev/DistancePoissonMeanEstimate.lean new file mode 100644 index 0000000000000000000000000000000000000000..956a6a51e9dc7d657f60d83b6239a9013289f4e2 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/DistancePoissonMeanEstimate.lean @@ -0,0 +1,86 @@ +import OAI.Geometry.RCD.Sobolev.DistancePoissonRepresentative +import OAI.Geometry.RCD.Sobolev.SmallRadiusPoissonMean + +namespace OAI + +/-! # Quantitative transport means of the constructed distance replacements -/ + +open Set Filter Metric MeasureTheory TopologicalSpace +open scoped Topology NNReal ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + {K : ℝ} {n : ℕ} {hX : NoncollapsedRCD K n X} {hn : 2≤n} [SeparableSpace X] + [IsLocallyFiniteMeasure (hausdorff n X)] [(hausdorff n X).Regular] + {κ B J C : ℝ} {p : ℕ → X} {r : ℕ → ℝ} {hr : ∀ k, 0 ENNReal.ofReal (ρ₀ x))) + (hν : ν.map Subtype.val=(hausdorff n X).withDensity (fun x => ENNReal.ofReal (ρ₁ x))) + (hS : ∀ y:S, dist (p k) y≤r k/512) (hT : ∀ y:T, dist (p k) y≤r k/512) + (j : ℕ → ℕ) (hj : StrictMono j) (Q₀ : Ioo (0:ℝ) 1 → ProbabilityMeasure X) + (hweak : ∀ t, Tendsto (fun i => D.interpolationLaw (D.index (j i)) t) atTop (𝓝 (Q₀ t))) + (π : Measure C(Time,X)) [IsProbabilityMeasure π] (hgeo : ∀ᵐ γ ∂π, IsGeodesic γ) + (hopt : IsOptimalCoupling (μ.map Subtype.val) (ν.map Subtype.val) + (π.map (fun γ => (γ 0,γ 1)))) + {Bπ : ℝ≥0∞} (hBπ : Bπ≠∞) (hcomp : ∀ t : Time, π.map (fun γ => γ t)≤Bπ • hausdorff n X) + (hD : MemLp (fun γ : C(Time,X) => dist (γ 0) (γ 1)) 2 π) + (hQeq : ∀ t : Ioo (0:ℝ) 1, (Q₀ t : Measure X)= + π.map (fun γ => γ (⟨t,t.property.1.le,t.property.2.le⟩ : Time))) : + let Z t := if ht : t∈Ioo (0:ℝ) 1 then ∫ x, W.representative k x ∂(Q₀ ⟨t,ht⟩ : Measure X) else 0 + ∀ l h, 0 (F.source k).real (ball (p k) (r k))/μ.real (ball (p k) (r k))) + atTop (𝓝 0)) : + Tendsto (fun k => (μ.real (ball (p k) (r k)))⁻¹* + ∫ x in ball (p k) (r k), + |SobolevSpace.toLp μ Q (((r k)^2)⁻¹ • (F.datum k-F.replacement k)) x| ∂μ) atTop (𝓝 0) := by + have hlim := (F.normalized_value_error_tendsto_zero hP hV hpoin hmass).pow 2 + simp_rw [normalized_sobolev_mean_sq] at hlim + simp only [zero_pow (by norm_num : 2≠0)] at hlim + apply normalized_l1_tendsto_of_l2 μ (fun k => ball (p k) (r k)) + (fun k => (μ.real (ball (p k) (r k)))⁻¹) (fun _ => by positivity) + (fun k => by rw [inv_mul_cancel₀ (hV k).ne']) + (fun k => SobolevSpace.toLp μ Q (((r k)^2)⁻¹ • (F.datum k-F.replacement k))) + _ (Eventually.of_forall fun k => (Lp.memLp _).integrable_sq.integrableOn) + (fun _ => measure_ball_lt_top.ne) hlim + intro k + let : IsFiniteMeasure (μ.restrict (ball (p k) (r k))) := + isFiniteMeasure_restrict.mpr measure_ball_lt_top.ne + exact ((Lp.memLp _).restrict (ball (p k) (r k))).integrable (by norm_num) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/DominatedTestConvergence.lean b/lean/OAI/Geometry/RCD/Sobolev/DominatedTestConvergence.lean new file mode 100644 index 0000000000000000000000000000000000000000..ff2421f86a05ac284bd72f8e5ec44c851ff25e83 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/DominatedTestConvergence.lean @@ -0,0 +1,67 @@ +import OAI.Geometry.RCD.Sobolev.FiniteMeasureCompactLipschitzDensity +import OAI.Geometry.RCD.Metric.DominatedProbabilityCompactness +import OAI.Geometry.RCD.Metric.ProbabilityDominationL1 + +namespace OAI + +/-! # Compact Lipschitz tests determine dominated probability limits -/ + +open Set Filter MeasureTheory TopologicalSpace +open scoped Topology ENNReal NNReal BoundedContinuousFunction CompactlySupported +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] [SeparableSpace X] + (σ : FiniteMeasure X) [(σ : Measure X).Regular] + +omit [SeparableSpace X] in +theorem dominated_test_cauchy (P : ℕ → ProbabilityMeasure X) + (hP : ∀ k, (P k : Measure X) ≤ σ) + (hT : ∀ (g : X →ᵇ ℝ) (L : ℝ≥0), LipschitzWith L g → HasCompactSupport g → + CauchySeq (fun k => ∫ x, g x ∂(P k : Measure X))) (f : X →ᵇ ℝ) : + CauchySeq (fun k => ∫ x, f x ∂(P k : Measure X)) := by + have hf : MemLp f 2 (σ : Measure X) := MemLp.of_bound f.continuous.aestronglyMeasurable ‖f‖ + (Eventually.of_forall f.norm_coe_le_norm) + rw [Metric.cauchySeq_iff] + intro ε hε + obtain ⟨g,L,hL,hgc,hgi,hclose⟩ := finite_measure_compact_lipschitz_L1 (σ : Measure X) hf + (ε := ε/4) (by positivity) + let G : C_c(X,ℝ) := ⟨⟨g,hL.continuous⟩,hgc⟩ + let b := G.toBoundedContinuousFunction + have hbc : CauchySeq (fun k => ∫ x, g x ∂(P k : Measure X)) := hT b L hL hgc + obtain ⟨N,hN⟩ := Metric.cauchySeq_iff.mp hbc (ε/2) (half_pos hε) + have he (k : ℕ) : dist (∫ x, f x ∂(P k : Measure X)) (∫ x, g x ∂(P k : Measure X)) < ε/4 := by + have hb := integral_difference_le_of_domination (σ : Measure X) (P k : Measure X) + (C := 1) (by simp) (by simpa using hP k) (hf.integrable (by norm_num)) hgi + have hb' : dist (∫ x, f x ∂(P k : Measure X)) (∫ x, g x ∂(P k : Measure X)) ≤ + ∫ x, |f x-g x| ∂(σ : Measure X) := by simpa using hb + exact hb'.trans_lt hclose + refine ⟨N,fun a ha b hb => ?_⟩ + have htri := dist_triangle4 (∫ x, f x ∂(P a : Measure X)) (∫ x, g x ∂(P a : Measure X)) + (∫ x, g x ∂(P b : Measure X)) (∫ x, f x ∂(P b : Measure X)) + rw [dist_comm (∫ x, g x ∂(P b : Measure X))] at htri + have := hN a ha b hb + have := he a + have := he b + linarith + +theorem dominated_probability_limit_of_test_cauchy (P : ℕ → ProbabilityMeasure X) + (hP : ∀ k, (P k : Measure X) ≤ σ) + (hT : ∀ (g : X →ᵇ ℝ) (L : ℝ≥0), LipschitzWith L g → HasCompactSupport g → + CauchySeq (fun k => ∫ x, g x ∂(P k : Measure X))) : + ∃ Q : ProbabilityMeasure X, Tendsto P atTop (𝓝 Q) ∧ (Q : Measure X) ≤ σ := by + obtain ⟨Q,j,hj,hlim⟩ := probability_subsequence_of_finite_dominator σ P hP + have hfull : Tendsto P atTop (𝓝 Q) := by + apply ProbabilityMeasure.tendsto_iff_forall_integral_tendsto.mpr + intro f + exact tendsto_nhds_of_cauchySeq_of_subseq (dominated_test_cauchy σ P hP hT f) + hj.tendsto_atTop (ProbabilityMeasure.tendsto_iff_forall_integral_tendsto.mp hlim f) + refine ⟨Q,hfull,?_⟩ + simpa using weak_probability_domination (σ : Measure X) P Q hfull (C := 1) (by simp) + (fun k => by simpa using hP k) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/DyadicBochnerMass.lean b/lean/OAI/Geometry/RCD/Sobolev/DyadicBochnerMass.lean new file mode 100644 index 0000000000000000000000000000000000000000..e0e05c27b14ffcdfe72804085b6933b6c80e41d2 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/DyadicBochnerMass.lean @@ -0,0 +1,79 @@ +import OAI.Geometry.RCD.Coordinates.PositiveBilinearMeasure + +namespace OAI + +/-! # The actual scaled Bochner masses and their Gaussian envelope -/ + +open Set Metric MeasureTheory +open scoped BigOperators InnerProductSpace + +noncomputable section + +namespace RegularPointCoordinates + +variable {X E : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [NormedAddCommGroup E] [InnerProductSpace ℝ E] [FiniteDimensional ℝ E] + +/-- The full positive Bochner measure on a fixed-root dyadic ball, with +the dimensional scaling used by the heat decrement. -/ +def dyadicBochnerMass (M : PositiveBilinearMeasure X E) (n : ℕ) + (p : X) (R : ℝ) (i : ℕ) : E →L[ℝ] E := + ((R / 2 ^ i) ^ 2 / (R / 2 ^ i) ^ n) • M.massOperator (ball p (R / 2 ^ i)) + +theorem dyadicBochnerMass_isPositive (M : PositiveBilinearMeasure X E) (n : ℕ) + (p : X) {R : ℝ} (hR : 0 ≤ R) (i : ℕ) : + (dyadicBochnerMass M n p R i).IsPositive := by + apply (M.massOperator_isPositive _ measurableSet_ball).smul_of_nonneg + exact div_nonneg (sq_nonneg _) (pow_nonneg (div_nonneg hR (by positivity)) _) + +theorem dyadicBochnerMass_inner (M : PositiveBilinearMeasure X E) (n : ℕ) + (p : X) (R : ℝ) (i : ℕ) (v : E) : + ⟪v, dyadicBochnerMass M n p R i v⟫_ℝ = + ((R / 2 ^ i) ^ 2 / (R / 2 ^ i) ^ n) * (M.measure v).real (ball p (R / 2 ^ i)) := by + simp only [dyadicBochnerMass, smul_apply, inner_smul_right, + M.measure_real v _ measurableSet_ball] + +omit [MetricSpace X] [BorelSpace X] in +/-- The fixed finite source has a single operator-norm bound for its total +mass in every direction. No absolute continuity is required. -/ +theorem bochner_total_mass_le (M : PositiveBilinearMeasure X E) (v : E) : + (M.measure v).real univ ≤ ‖M.massOperator univ‖ * ‖v‖ ^ 2 := by + rw [M.measure_real v univ MeasurableSet.univ] + calc + _ ≤ ‖v‖ * ‖M.massOperator univ v‖ := real_inner_le_norm _ _ + _ ≤ ‖v‖ * (‖M.massOperator univ‖ * ‖v‖) := + mul_le_mul_of_nonneg_left ((M.massOperator univ).le_opNorm v) (norm_nonneg _) + _ = _ := by ring + +/-- The actual positive mass envelope used in the cumulative comparison. -/ +def dyadicBochnerEnvelope (M : PositiveBilinearMeasure X E) (n : ℕ) + (p : X) (R : ℝ) (i : ℕ) : E →L[ℝ] E := + (3 / 4 : ℝ) ^ i • ContinuousLinearMap.id ℝ E + + ∑ j ∈ Finset.range (i + 1), (3 / 4 : ℝ) ^ (i - j) • dyadicBochnerMass M n p R j + +theorem dyadicBochnerEnvelope_isPositive (M : PositiveBilinearMeasure X E) (n : ℕ) + (p : X) {R : ℝ} (hR : 0 ≤ R) (i : ℕ) : + (dyadicBochnerEnvelope M n p R i).IsPositive := by + apply ContinuousLinearMap.IsPositive.add + · exact ContinuousLinearMap.isPositive_id.smul_of_nonneg (by positivity) + · apply ContinuousLinearMap.isPositive_sum + intro j _ + exact (dyadicBochnerMass_isPositive M n p hR j).smul_of_nonneg (by positivity) + +omit [BorelSpace X] in +theorem dyadicBochnerEnvelope_inner (M : PositiveBilinearMeasure X E) (n : ℕ) + (p : X) (R : ℝ) (i : ℕ) (v : E) : + ⟪v, dyadicBochnerEnvelope M n p R i v⟫_ℝ = + (3 / 4 : ℝ) ^ i * ‖v‖ ^ 2 + + ∑ j ∈ Finset.range (i + 1), (3 / 4 : ℝ) ^ (i - j) * + ⟪v, dyadicBochnerMass M n p R j v⟫_ℝ := by + simp only [dyadicBochnerEnvelope, add_apply, + smul_apply, ContinuousLinearMap.id_apply, + sum_apply, inner_add_right, inner_smul_right, + inner_sum, real_inner_self_eq_norm_sq] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/DyadicBochnerSmallness.lean b/lean/OAI/Geometry/RCD/Sobolev/DyadicBochnerSmallness.lean new file mode 100644 index 0000000000000000000000000000000000000000..c7ffd70b3b677bb5e320c9c5d2aaa20be98ef1ec --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/DyadicBochnerSmallness.lean @@ -0,0 +1,107 @@ +import OAI.Geometry.RCD.Heat.BochnerHeatSmallness +import OAI.Geometry.RCD.Heat.DyadicMeanStability + +namespace OAI + +/-! # Actual dyadic mass smallness from splitting and the cutoff -/ + +open Set Metric MeasureTheory +open scoped InnerProductSpace NNReal + +noncomputable section + +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +/-- The same full Bochner measure is small relative to the actual heat +metric at every sufficiently fine scale. The coefficient depends on the +fixed volume and cutoff constants, and is linear in the splitting error. -/ +theorem dyadic_bochner_mass_small {K : ℝ} (m : ℕ) + (hX : NoncollapsedRCD K (m + 1) X) [(hausdorff (m + 1) X).Regular] + {a : ℝ} (ha : 0 ≤ a) + (hBG : BallVolumeComparison (hausdorff (m + 1) X) (comparisonModelVolume m a)) + {ker : ℝ → X → X → ℝ} + (hk : IsContinuousHeatKernel (hausdorff (m + 1) X) hX.quadratic ker) + (u : Fin (m + 1) → SobolevSpace (hausdorff (m + 1) X) hX.quadratic) + (M : PositiveBilinearMeasure X (Euclidean (m + 1))) + (S : ℕ → Euclidean (m + 1) ≃L[ℝ] Euclidean (m + 1)) + {p : X} {R e V lambda C : ℝ} {L : ℝ≥0} + (G : ∀ v, LocalHarmonicEnergy (hausdorff (m + 1) X) hX.quadratic + (sobolevColumnMap (hausdorff (m + 1) X) hX.quadratic u) M |K| p (2 * R) L v) + (hR : 0 < R) (hlambda : 0 < lambda) (he : 0 ≤ e) (he1 : e ≤ 1) + (hV : 0 ≤ V) (hC : 0 ≤ C) (hcurv : |K| * R ^ 2 ≤ e) + (hscale : a * (3 * R) ≤ 1) + (hsmall : ((m + 1 : ℕ) : ℝ) ^ 2 * (normalizationVolumeRatio m * e) ≤ 1 / 64) + (hexact : ∀ i, IsExactMeanNormalization (hausdorff (m + 1) X) hX.quadratic + (sobolevColumnMap (hausdorff (m + 1) X) hX.quadratic u) + (ball p (R / 2 ^ i)) measurableSet_ball (S i)) + (hfirst : ∀ i, ∃ w : X → Euclidean (m + 1), + FirstOrderSplittingOn (hausdorff (m + 1) X) hX.quadratic p (R / 2 ^ i) e + (transformedColumn (hausdorff (m + 1) X) hX.quadratic u (S i)) w) + (hvol : ∀ i, (hausdorff (m + 1) X).real (ball p (R / 2 ^ i)) ≤ V * (R / 2 ^ i) ^ (m + 1)) + (hcut : ∀ s, 0 < s → -1 ≤ K * s ^ 2 → + Nonempty (GoodLaplacianCutoff (hausdorff (m + 1) X) hX.quadratic p s C)) + {ρ Ccut : ℝ} (χ : GoodLaplacianCutoff (hausdorff (m + 1) X) hX.quadratic p ρ Ccut) + (i : ℕ) (hi : 4 ≤ i) + (hclose : ‖(S i : Euclidean (m + 1) →L[ℝ] Euclidean (m + 1)).adjoint.comp + ((dyadicHeatGram (hausdorff (m + 1) X) hX.quadratic hk + (sobolevColumnMap (hausdorff (m + 1) X) hX.quadratic u) χ hR hlambda i : + Euclidean (m + 1) →L[ℝ] Euclidean (m + 1)).comp + (S i : Euclidean (m + 1) →L[ℝ] Euclidean (m + 1))) - + ContinuousLinearMap.id ℝ (Euclidean (m + 1))‖ ≤ 1 / 64) + (v : Euclidean (m + 1)) : + ⟪v, dyadicBochnerMass M (m + 1) p R i v⟫_ℝ ≤ + (V * (16 : ℝ) ^ (m + 1) * + (2 * C * ((m + 1 : ℕ) : ℝ) ^ 2 + 4 * (((m + 1 : ℕ) : ℝ) ^ 2 + 1))) * e * + ⟪v, dyadicHeatGram (hausdorff (m + 1) X) hX.quadratic hk + (sobolevColumnMap (hausdorff (m + 1) X) hX.quadratic u) χ hR hlambda i v⟫_ℝ := by + let μ := hausdorff (m + 1) X + let : IsFiniteMeasureOnCompacts μ := ⟨fun {_s} hs => hX.finiteOnBounded _ hs.isBounded⟩ + let s := R / (2 : ℝ) ^ i + have hs : 0 < s := div_pos hR (by positivity) + have hsR : s ≤ R := div_le_self hR.le (one_le_pow₀ (by norm_num)) + have heq : 16 * s = R / (2 : ℝ) ^ (i - 4) := by + have hp : (2 : ℝ) ^ i = 2 ^ (i - 4) * 16 := by + rw [show i = (i - 4) + 4 by omega, pow_add] + norm_num + dsimp only [s] + rw [hp] + field_simp + have hks : -1 ≤ K * s ^ 2 := by + have hsq := mul_le_mul_of_nonneg_left ((sq_le_sq₀ hs.le hR.le).mpr hsR) (abs_nonneg K) + have hklo := mul_le_mul_of_nonneg_right (neg_abs_le K) (sq_nonneg s) + linarith + let ψ := Classical.choice (hcut s hs hks) + have hlocal : ∀ w, LocalHarmonicEnergy μ hX.quadratic (sobolevColumnMap μ hX.quadratic u) + M |K| p (2 * s) L w := fun w => (G w).restrict μ hX.quadratic + (ball_subset_ball (by linarith : 2 * (2 * s) ≤ 2 * (2 * R))) + obtain ⟨w, hw⟩ := hfirst (i - 4) + have hheat (z : Euclidean (m + 1)) := + (relative_heat_mean_of_conjugated_norm μ hX.quadratic (sobolevColumnMap μ hX.quadratic u) + (ball p s) measurableSet_ball (S i) (hexact i) + (dyadicHeatGram μ hX.quadratic hk (sobolevColumnMap μ hX.quadratic u) χ hR hlambda i) + hclose z).1 + have hb := bochner_mass_small_relative_to_heat μ hX.quadratic u M hlocal (S (i - 4)) + (by simpa only [heq] using hw) (by simpa only [heq] using hexact (i - 4)) + hs hsR he he1 hC (abs_nonneg K) hcurv hV + (ENNReal.toReal_pos (ne_of_gt (hX.fullSupport p _ (by positivity))) + (ne_of_lt (hX.finiteOnBounded _ isBounded_ball))) + (by simpa only [heq] using hvol (i - 4)) ψ + (dyadicHeatGram μ hX.quadratic hk (sobolevColumnMap μ hX.quadratic u) χ hR hlambda i) + (dyadicHeatGram_isPositive μ hX.quadratic hk (sobolevColumnMap μ hX.quadratic u) χ hR hlambda i) + (fun z => by + simpa only [heq, dyadicMeanGram] using + dyadic_mean_four_le_two m hX ha hBG u S hR he hscale hsmall hexact hfirst i hi z) + (fun z => by + have hp := (dyadicHeatGram_isPositive μ hX.quadratic hk + (sobolevColumnMap μ hX.quadratic u) χ hR hlambda i).inner_nonneg_right z + nlinarith [hheat z]) v + simpa only [s, μ, ContinuousLinearEquiv.coe_coe, + dyadicBochnerMass_inner, M.measure_real v _ measurableSet_ball] using hb + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/DyadicPoissonL2Limit.lean b/lean/OAI/Geometry/RCD/Sobolev/DyadicPoissonL2Limit.lean new file mode 100644 index 0000000000000000000000000000000000000000..08ff7eb0f6c18291500d554e6911c12f67a7aa19 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/DyadicPoissonL2Limit.lean @@ -0,0 +1,75 @@ +import OAI.Geometry.RCD.Sobolev.DyadicPoissonValueError +import OAI.Geometry.RCD.Metric.DistanceSourceBudget + +namespace OAI + +/-! # Strong radial value convergence from the full dyadic source budget -/ + +open Set Metric MeasureTheory Filter +open scoped ENNReal Topology + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) [IsFiniteMeasureOnCompacts μ] (hQ : QuadraticCheegerEnergy μ) + +/-- A Euclidean lower volume bound converts the full-source mean-square +estimate to exactly the normalized source mass already known to be summable. -/ +theorem DyadicDistanceReplacements.value_error_le_normalized_mass + {n : ℕ} {κ r0 B J C : ℝ} {p : X} + {S : DyadicDistanceSources μ hQ n κ p r0} + (T : DyadicDistanceReplacements μ hQ S B J C) (i : ℕ) + {P nu : ℝ} (hP : 0 ≤ P) (hB : 0 ≤ B) (hnu : 0 < nu) + (hvol : nu * (distanceSourceRadius r0 i) ^ (n : ℝ) ≤ + μ.real (ball p (distanceSourceRadius r0 i))) + (hpoin : ∀ v : SobolevSpace.dirichlet μ hQ (ball p (distanceSourceRadius r0 i)), + ‖SobolevSpace.toLp μ hQ v.val‖ ^ 2 ≤ P * (distanceSourceRadius r0 i) ^ 2 * + energyForm μ hQ v.val v.val) : + ‖normalizeLocalL2 μ (ball p (distanceSourceRadius r0 i)) + (ne_of_lt ((measure_mono ball_subset_closedBall).trans_lt + (isCompact_closedBall p _).measure_lt_top)) + (SobolevSpace.restrictLp μ hQ (ball p (distanceSourceRadius r0 i)) + (((distanceSourceRadius r0 i) ^ 2)⁻¹ • (T.distanceDatum μ hQ i - T.replacement i)))‖ ^ 2 ≤ + (P * B / nu) * normalizedDistanceSourceMass μ hQ S i := by + have hr := distanceSourceRadius_pos S.radius_pos i + have hp := Real.rpow_pos_of_pos hr (n : ℝ) + have hvolpos := lt_of_lt_of_le (mul_pos hnu hp) hvol + have hb := T.normalized_value_error μ hQ i hP hvolpos hpoin + apply hb.trans + apply (mul_le_mul_of_nonneg_left + (div_le_div_of_nonneg_left (show 0 ≤ (S.source i).real (ball p (distanceSourceRadius r0 i)) from + measureReal_nonneg) (mul_pos hnu hp) hvol) (mul_nonneg hP hB)).trans_eq + unfold normalizedDistanceSourceMass + rw [Real.rpow_neg hr.le] + field_simp + +/-- The actual rescaled replacements converge in mean square to squared +distance when the full dyadic source masses are summable. -/ +theorem DyadicDistanceReplacements.value_error_tendsto_zero + {n : ℕ} {κ r0 B J C : ℝ} {p : X} + {S : DyadicDistanceSources μ hQ n κ p r0} + (T : DyadicDistanceReplacements μ hQ S B J C) + {P nu : ℝ} (hP : 0 ≤ P) (hB : 0 ≤ B) (hnu : 0 < nu) + (hvol : ∀ i, nu * (distanceSourceRadius r0 i) ^ (n : ℝ) ≤ + μ.real (ball p (distanceSourceRadius r0 i))) + (hpoin : ∀ i, ∀ v : SobolevSpace.dirichlet μ hQ (ball p (distanceSourceRadius r0 i)), + ‖SobolevSpace.toLp μ hQ v.val‖ ^ 2 ≤ P * (distanceSourceRadius r0 i) ^ 2 * + energyForm μ hQ v.val v.val) + (hmass : Summable (normalizedDistanceSourceMass μ hQ S)) : + Tendsto (fun i => ‖normalizeLocalL2 μ (ball p (distanceSourceRadius r0 i)) + (ne_of_lt ((measure_mono ball_subset_closedBall).trans_lt + (isCompact_closedBall p _).measure_lt_top)) + (SobolevSpace.restrictLp μ hQ (ball p (distanceSourceRadius r0 i)) + (((distanceSourceRadius r0 i) ^ 2)⁻¹ • (T.distanceDatum μ hQ i - T.replacement i)))‖) + atTop (𝓝 0) := by + apply squeeze_zero (fun _ => norm_nonneg _) + (fun i => Real.le_sqrt_of_sq_le + (T.value_error_le_normalized_mass μ hQ i hP hB hnu (hvol i) (hpoin i))) + simpa using ((tendsto_const_nhds (x := P * B / nu)).mul hmass.tendsto_atTop_zero).sqrt + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/DyadicPoissonValueError.lean b/lean/OAI/Geometry/RCD/Sobolev/DyadicPoissonValueError.lean new file mode 100644 index 0000000000000000000000000000000000000000..36cde92dc2d1ca6ba82287527ca6feb189438dec --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/DyadicPoissonValueError.lean @@ -0,0 +1,62 @@ +import OAI.Geometry.RCD.Coordinates.DyadicRadialFits +import OAI.Geometry.RCD.Coordinates.NormalizedDirichletError + +namespace OAI + +/-! # Mean-square value error of the actual dyadic Poisson replacements -/ + +open Set Metric MeasureTheory +open scoped ENNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) [IsFiniteMeasureOnCompacts μ] (hQ : QuadraticCheegerEnergy μ) + +/-- The source-energy estimate and Dirichlet Poincare give the exact +normalized squared-distance value error, including the full source mass. -/ +theorem DyadicDistanceReplacements.normalized_value_error + {n : ℕ} {κ r0 B J C : ℝ} {p : X} + {S : DyadicDistanceSources μ hQ n κ p r0} + (T : DyadicDistanceReplacements μ hQ S B J C) (i : ℕ) + {P : ℝ} (hP : 0 ≤ P) + (hvol : 0 < μ.real (ball p (distanceSourceRadius r0 i))) + (hpoin : ∀ v : SobolevSpace.dirichlet μ hQ (ball p (distanceSourceRadius r0 i)), + ‖SobolevSpace.toLp μ hQ v.val‖ ^ 2 ≤ P * (distanceSourceRadius r0 i) ^ 2 * + energyForm μ hQ v.val v.val) : + ‖normalizeLocalL2 μ (ball p (distanceSourceRadius r0 i)) + (ne_of_lt ((measure_mono ball_subset_closedBall).trans_lt + (isCompact_closedBall p _).measure_lt_top)) + (SobolevSpace.restrictLp μ hQ (ball p (distanceSourceRadius r0 i)) + (((distanceSourceRadius r0 i) ^ 2)⁻¹ • (T.distanceDatum μ hQ i - T.replacement i)))‖ ^ 2 ≤ + P * B * ((S.source i).real (ball p (distanceSourceRadius r0 i)) / + μ.real (ball p (distanceSourceRadius r0 i))) := by + let r := distanceSourceRadius r0 i + let Ω := ball p r + let H := T.distanceDatum μ hQ i - T.replacement i + have hr : 0 < r := distanceSourceRadius_pos S.radius_pos i + have hfin : μ Ω ≠ ∞ := ne_of_lt ((measure_mono ball_subset_closedBall).trans_lt + (isCompact_closedBall p r).measure_lt_top) + have hv0 : μ.real Ω ≠ 0 := hvol.ne' + have hdir : H ∈ SobolevSpace.dirichlet μ hQ Ω := by + simpa only [H, DyadicDistanceReplacements.distanceDatum, neg_sub] using (SobolevSpace.dirichlet μ hQ Ω).neg_mem (T.boundary i) + let E := B * ((S.source i).real Ω / μ.real Ω) + have henergy : (∫ x, (SobolevSpace.minimalSlope μ hQ H x) ^ 2 ∂μ) ≤ + E * r ^ 2 * μ.real Ω := by + have ht := T.energy_error i + change (∫ x, (SobolevSpace.minimalSlope μ hQ H x) ^ 2 ∂μ) ≤ + (S.source i).real Ω * (B * r ^ 2) at ht + apply ht.trans_eq + dsimp only [E] + field_simp [hv0] + have hb := normalized_dirichlet_error μ hQ Ω hfin hvol hr hP H hdir hpoin henergy + convert hb using 1 + dsimp only [E] + ring + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/DyadicRadialEnergy.lean b/lean/OAI/Geometry/RCD/Sobolev/DyadicRadialEnergy.lean new file mode 100644 index 0000000000000000000000000000000000000000..142490c83fdc21dec5fbc95c0252d68b58dd5b35 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/DyadicRadialEnergy.lean @@ -0,0 +1,226 @@ +import OAI.Geometry.RCD.Harmonic.DyadicCenteredRadial +import OAI.Geometry.RCD.Coordinates.FramedRadialEnergy +import OAI.Geometry.RCD.Sobolev.CenteredAffineSobolev +import OAI.Geometry.RCD.Coordinates.NormalizedFitEnergy +import OAI.Geometry.RCD.Sobolev.RadialEnergyVolume +import OAI.Geometry.RCD.Coordinates.FramedRadialValue +import OAI.Geometry.RCD.Harmonic.RadialValueVolume + +namespace OAI + +/-! # All-scale scalar radial value and energy estimates -/ + +open Set Metric MeasureTheory +open scoped ENNReal InnerProductSpace + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +/-- The same centered affine fit controls values of the genuine distance +radial derivative and gradients of its genuine Poisson counterpart. +Both errors use the same summable Poisson envelope and the same frame. -/ +theorem dyadic_radial_value_energy {K : ℝ} (m : ℕ) + (hX : NoncollapsedRCD K (m + 2) X) [IsFiniteMeasureOnCompacts (hausdorff (m + 2) X)] + (hhessian : LocalPoissonHessianInput hX) + {a κ r0 B J C A Cχ L δ : ℝ} {p : X} + (ha : 0 ≤ a) (hκ : 0 ≤ κ) (hK : -κ ≤ K) + (hB : 0 ≤ B) (hJ : 0 ≤ J) (hA : 0 ≤ A) (hCχ : 0 ≤ Cχ) + (hr01 : r0 ≤ 1) (hscale : a * (3 * r0) ≤ 1) + (hBG : BallVolumeComparison (hausdorff (m + 2) X) (comparisonModelVolume (m + 1) a)) + (S : DyadicDistanceSources (hausdorff (m + 2) X) hX.quadratic (m + 2) κ p r0) + (T : DyadicDistanceReplacements (hausdorff (m + 2) X) hX.quadratic S B J C) + (hP : Summable (normalizedPoissonDefect (hausdorff (m + 2) X) hX.quadratic S)) + (hquarter : ∀ t : ℝ, 0 < t → t ≤ r0 → + |(hausdorff (m + 2) X).real (ball p t) / (euclideanUnitVolume (m + 2) * t ^ (m + 2)) - 1| ≤ 1 / 4) + (u : Fin (m + 2) → SobolevSpace (hausdorff (m + 2) X) hX.quadratic) + (hbase : ∀ i j, ∀ᵐ x ∂(hausdorff (m + 2) X).restrict (ball p (distanceSourceRadius r0 i / 64)), + localGamma (hausdorff (m + 2) X) hX.quadratic (u j) (u j) x ≤ L ^ 2) + (F : ℕ → Euclidean (m + 2) ≃L[ℝ] Euclidean (m + 2)) + (v : ℕ → X → Euclidean (m + 2)) (hδ : 0 ≤ δ) + (hδ1 : radialNormalizationRestrictionConstant (m + 2) * δ ≤ 1) + (hsmall : ((m + 2 : ℕ) : ℝ) ^ 2 * (normalizationVolumeRatio (m + 1) * δ) ≤ 1 / 64) + (hexact : ∀ i, IsExactMeanNormalization (hausdorff (m + 2) X) hX.quadratic + (sobolevColumnMap (hausdorff (m + 2) X) hX.quadratic u) + (ball p (2 * distanceSourceRadius r0 i)) measurableSet_ball (F i)) + (hfirst : ∀ i, FirstOrderSplittingOn (hausdorff (m + 2) X) hX.quadratic p + (2 * distanceSourceRadius r0 i) δ (transformedColumn (hausdorff (m + 2) X) hX.quadratic u (F i)) (v i)) + (hmetric : ∀ i, IsPointedApproximation p 0 (distanceSourceRadius r0 i / 64) 4 δ + (fun x => (distanceSourceRadius r0 i / 64)⁻¹ • (v i x - v i p))) + (hf : ∀ i, ∀ᵐ x ∂(hausdorff (m + 2) X).restrict (ball p (distanceSourceRadius r0 i / 4)), + localGamma (hausdorff (m + 2) X) hX.quadratic (T.replacement i) (T.replacement i) x ≤ + (A * distanceSourceRadius r0 i) ^ 2) + (χ : ∀ i, GoodLaplacianCutoff (hausdorff (m + 2) X) hX.quadratic p (distanceSourceRadius r0 i / 64) Cχ) + {d : ℕ} (hd : 0 < d) + (hfit : ∀ i, HasNormalizedAffineImprovement hX u p (distanceSourceRadius r0 i / 64) ((1 / 2 : ℝ) ^ d)) + (hmean : LocalHarmonicL2MeanValueInput hX) {κ₀ ε : ℝ} (hκ₀ : 0 ≤ κ₀) + (V : X → Euclidean (m + 2)) + (hu : FirstOrderSplittingOn (hausdorff (m + 2) X) hX.quadratic p r0 ε u V) + (hcurv : ∀ i, -κ₀ ≤ K * (distanceSourceRadius r0 i / 64) ^ 2) + (hgradient : LocalHarmonicL2GradientInput hX) : + ∃ Cg D : ℝ, 1 ≤ Cg ∧ 0 < D ∧ ∀ b : Euclidean (m + 2), b ≠ 0 → + ∃ coeff : ℕ → Euclidean (m + 2), + ∃ g : ℕ → SobolevSpace (hausdorff (m + 2) X) hX.quadratic, + ∀ i, + let μ := hausdorff (m + 2) X + let s := distanceSourceRadius r0 i + let r := s / 64 + let E := pinchingEnvelope (7 / 8) (3 / 4) (radialFitQualitativeConstant (m + 2) Cχ * δ) + (normalizedPoissonDefect μ hX.quadratic S) i + let H := centeredAffineSobolev μ hX.quadratic u (χ i).sobolev (V p) (coeff i) + (SobolevSpace.toLp μ hX.quadratic (g i) =ᵐ[μ.restrict (ball p r)] + localGamma μ hX.quadratic (T.replacement i) (sobolevColumnMap μ hX.quadratic u b)) ∧ + ‖normalizeLocalL2 μ (ball p r) (ne_of_lt (hX.finiteOnBounded _ isBounded_ball)) + (dyadicRadialTarget hX T u hbase i b - SobolevSpace.restrictLp μ hX.quadratic (ball p r) H)‖ ≤ + D * r * ‖(F i).symm b‖ * Real.sqrt E ∧ + ‖normalizeLocalL2 μ (ball p r) (ne_of_lt (hX.finiteOnBounded _ isBounded_ball)) + (SobolevSpace.restrictLp μ hX.quadratic (ball p r) (g i - H))‖ ^ 2 ≤ + (2 * D ^ 2 + 8192 * (((m + 2 : ℕ) : ℝ) * 2) ^ 2 * B * + ((4 / (3 * euclideanUnitVolume (m + 2))) * (64 : ℝ) ^ (m + 2))) * + (r * ‖(F i).symm b‖) ^ 2 * E ∧ + (μ.real (ball p (r / 2)))⁻¹ * + (∫ x in ball p (r / 2), localGamma μ hX.quadratic (g i - H) (g i - H) x ∂μ) ≤ + radialEnergyConstant K (m + 2) Cg 1 A B J Cχ * + ((5 / 3 : ℝ) * ((1 / 2 : ℝ) ^ (m + 2))⁻¹ * D ^ 2 + + (4 / (3 * euclideanUnitVolume (m + 2))) * (128 : ℝ) ^ (m + 2)) * + ‖(F i).symm b‖ ^ 2 * E := by + let μ := hausdorff (m + 2) X + let hQ := hX.quadratic + let r : ℕ → ℝ := fun i => distanceSourceRadius r0 i / 64 + let E := pinchingEnvelope (7 / 8) (3 / 4) (radialFitQualitativeConstant (m + 2) Cχ * δ) + (normalizedPoissonDefect μ hQ S) + have hr (i : ℕ) : 0 < r i := div_pos (distanceSourceRadius_pos S.radius_pos i) (by norm_num) + have hrr (i : ℕ) : r i ≤ r0 := by + have h := distanceSourceRadius_outer_le S.radius_pos.le i + have hs := distanceSourceRadius_pos S.radius_pos i + dsimp only [r]; linarith + have hsub (i : ℕ) : ball p (r i) ⊆ ball p r0 := ball_subset_ball (hrr i) + have hδle : δ ≤ 1 := by + have hh := mul_le_mul_of_nonneg_right (radialNormalizationRestrictionConstant_ge_one (m + 2)) hδ + linarith + have hnormalized (i : ℕ) := (hfirst i).mono_error μ hQ hδ hδle + obtain ⟨Cg, hCg, henergy⟩ := framed_radial_fit_energy hX hhessian hgradient (by omega) hκ₀ + obtain ⟨D, hD, hfits⟩ := dyadic_centered_radial_estimate m hX hhessian ha hκ hK hB hJ hA hCχ + hr01 hscale hBG S T hP hquarter u hbase F v hδ hδ1 hsmall hexact hfirst hmetric hf χ hd hfit + hmean hκ₀ V hu hcurv + obtain ⟨_hEs, _hEsum, hEN⟩ := radial_fit_pinching_envelope_budget S hκ hCχ hδ hP + refine ⟨Cg, D, hCg, hD, ?_⟩ + intro b hb + obtain ⟨_c, coeff, _hfit, _hcenter, hvalues⟩ := hfits b hb + have hpair (i : ℕ) : + ∃ G : LocalHessianPairing μ hQ (ball p (r i)) (T.replacement i) (sobolevColumnMap μ hQ u b), + ∀ (H : SobolevSpace μ hQ) {I : ℝ}, IsSobolevHarmonicOn μ hQ (ball p (r i)) H → + ‖dyadicRadialTarget hX T u hbase i b - SobolevSpace.restrictLp μ hQ (ball p (r i)) H‖ ^ 2 ≤ I → + (∫ x in ball p (r i / 2), localGamma μ hQ (G.mixed - H) (G.mixed - H) x ∂μ) ≤ + radialEnergyConstant K (m + 2) Cg 1 A B J Cχ * + (I / (r i) ^ 2 + (distanceSourceRadius r0 i ^ ((m + 2 : ℕ) : ℝ) * + normalizedPoissonDefect μ hQ S i) * ‖(F i).symm b‖ ^ 2) := by + have hs := distanceSourceRadius_pos S.radius_pos i + have hsle : distanceSourceRadius r0 i ≤ r0 := by + have hh := distanceSourceRadius_outer_le S.radius_pos.le i + linarith + have hsubN : ball p (distanceSourceRadius r0 i / 4) ⊆ + ball p (2 * distanceSourceRadius r0 i) := ball_subset_ball (by linarith) + have hann := relative_volume_annulus (show 2 ≤ m + 2 by omega) (hr i) + (euclideanUnitVolume_pos (m + 2)) (hquarter _ (hr i) (hrr i)) + (hquarter (2 * r i) (by positivity) (by dsimp only [r]; linarith)) + simpa only [dyadicRadialTarget, r] using henergy hκ hK hB hJ hA (by norm_num : (0 : ℝ) ≤ 1) hCχ p S T i + (hsle.trans hr01) (hcurv i) u (F i) + (fun j => ((hnormalized i).harmonic j).mono μ hQ hsubN) + (fun j => ae_restrict_of_ae_restrict_of_subset hsubN ((hnormalized i).gradient j)) + (hf i) (χ i) hann.1 hann.2 (hbase i) b + choose G hG using hpair + refine ⟨coeff, fun i => (G i).mixed, ?_⟩ + intro i + have hri : 0 < r i := hr i + have hω : 0 < euclideanUnitVolume (m + 2) := euclideanUnitVolume_pos (m + 2) + dsimp only + let s := distanceSourceRadius r0 i + let H := centeredAffineSobolev μ hQ u (χ i).sobolev (V p) (coeff i) + have hη : SobolevSpace.restrictLp μ hQ (ball p (r i)) (χ i).sobolev = + restrictedOne μ (ball p (r i)) (ne_of_lt (hX.finiteOnBounded _ isBounded_ball)) := by + apply restrictLp_eq_one_of_representative + filter_upwards [ae_restrict_of_ae (χ i).representative, ae_restrict_mem measurableSet_ball] + with x hx hxr + exact hx.trans ((χ i).one x hxr) + have hrestrict := centeredAffineSobolev_restrict μ hQ u (χ i).sobolev (V p) (coeff i) + (ball p (r i)) (ne_of_lt (hX.finiteOnBounded _ isBounded_ball)) hη + have hH : IsSobolevHarmonicOn μ hQ (ball p (r i)) H := + centeredAffineSobolev_harmonic μ hQ u (χ i).sobolev (V p) (coeff i) _ + (fun j => (hu.harmonic j).mono μ hQ (hsub i)) ((χ i).harmonic_on_inner_ball μ hQ) + have hnorm : ‖normalizeLocalL2 μ (ball p (r i)) (ne_of_lt (hX.finiteOnBounded _ isBounded_ball)) + (dyadicRadialTarget hX T u hbase i b - SobolevSpace.restrictLp μ hQ (ball p (r i)) H)‖ ≤ + D * r i * ‖(F i).symm b‖ * Real.sqrt (E i) := by + rw [hrestrict] + exact hvalues i + refine ⟨(G i).mixed_rep, hnorm, ?_, ?_⟩ + · have hI := norm_sq_le_of_normalized_fit μ (ball p (r i)) + (ne_of_lt (hX.finiteOnBounded _ isBounded_ball)) (ne_of_gt (hX.fullSupport p _ (hr i))) + _ (by positivity : 0 ≤ D * r i * ‖(F i).symm b‖ * Real.sqrt (E i)) hnorm + have hgrad (j : Fin (m + 2)) : ∀ᵐ x ∂μ.restrict (ball p (r i)), + localGamma μ hQ (transformedColumn μ hQ u (F i) j) + (transformedColumn μ hQ u (F i) j) x ≤ (2 : ℝ) ^ 2 := by + have hsubN : ball p (r i) ⊆ ball p (2 * s) := by + apply ball_subset_ball + dsimp only [r, s] + linarith [distanceSourceRadius_pos S.radius_pos i] + simpa only [one_add_one_eq_two] using + ae_restrict_of_ae_restrict_of_subset hsubN ((hnormalized i).gradient j) + have hvalue := T.framed_value_transfer μ hQ i u (F i) hgrad b (G i) H (hbase i) hI + have houter := hquarter (r i) (hr i) (hrr i) + have hV := (quarter_volume_bounds (hr i) hω houter).1 + have hN := radial_testing_volume_ratio (distanceSourceRadius_pos S.radius_pos i) hω houter + have hmass : (S.source i).real (ball p s) ≤ s ^ ((m + 2 : ℕ) : ℝ) * + normalizedPoissonDefect μ hQ S i := by + rw [normalizedPoissonDefect_units] + have hn : 0 ≤ κ * s ^ 2 * μ.real (ball p s) := by positivity + exact le_add_of_nonneg_right hn + have hMP : (S.source i).real (ball p s) / μ.real (ball p (r i)) ≤ + ((4 / (3 * euclideanUnitVolume (m + 2))) * (64 : ℝ) ^ (m + 2)) * E i := by + calc + _ ≤ (s ^ ((m + 2 : ℕ) : ℝ) * normalizedPoissonDefect μ hQ S i) / + μ.real (ball p (r i)) := div_le_div_of_nonneg_right hmass hV.le + _ = (s ^ ((m + 2 : ℕ) : ℝ) / μ.real (ball p (r i))) * + normalizedPoissonDefect μ hQ S i := by ring + _ ≤ _ := mul_le_mul hN (hEN i).2 + (normalizedPoissonDefect_nonneg μ hQ S hκ i) (by positivity) + have hsr : 64 * r i = distanceSourceRadius r0 i := by dsimp only [r]; ring + have hh := radial_fit_value_volume_units (r := r i) hV + (sq_nonneg (((m + 2 : ℕ) : ℝ) * 2)) hB (hEN i).1 hMP + (by simpa only [hsr] using hvalue) + rw [normalizeLocalL2_norm_sq, ← l2_norm_sq_eq_integral] + exact hh + have hI := norm_sq_le_of_normalized_fit μ (ball p (r i)) + (ne_of_lt (hX.finiteOnBounded _ isBounded_ball)) (ne_of_gt (hX.fullSupport p _ (hr i))) + _ (by positivity : 0 ≤ D * r i * ‖(F i).symm b‖ * Real.sqrt (E i)) hnorm + have he := hG i H hH hI + have hW : 0 < μ.real (ball p (r i / 2)) := ENNReal.toReal_pos + (ne_of_gt (hX.fullSupport p _ (by positivity))) (ne_of_lt (hX.finiteOnBounded _ isBounded_ball)) + have hinnerle : r i / 2 ≤ r0 := (by linarith [hrr i, hr i]) + have houter := hquarter (r i) (hr i) (hrr i) + have hinner := hquarter (r i / 2) (by positivity) hinnerle + have hratio := radial_fraction_volume_ratio (hr i) (by norm_num : (0 : ℝ) < 1 / 2) + (euclideanUnitVolume_pos (m + 2)) houter + (by simpa only [show (1 / 2 : ℝ) * r i = r i / 2 by ring] using hinner) + have hNratio : s ^ ((m + 2 : ℕ) : ℝ) / μ.real (ball p (r i / 2)) ≤ + (4 / (3 * euclideanUnitVolume (m + 2))) * (128 : ℝ) ^ (m + 2) := by + obtain ⟨_, hlo, _⟩ := quarter_volume_bounds (by positivity : 0 < r i / 2) + (euclideanUnitVolume_pos (m + 2)) hinner + apply (div_le_iff₀ hW).mpr + have heq : (4 / (3 * euclideanUnitVolume (m + 2))) * (128 : ℝ) ^ (m + 2) * + ((3 / 4 : ℝ) * euclideanUnitVolume (m + 2) * (r i / 2) ^ (m + 2)) = s ^ ((m + 2 : ℕ) : ℝ) := by + have hri : r i / 2 = s / 128 := by dsimp only [r, s]; ring + rw [hri, Real.rpow_natCast, div_pow] + field_simp [(euclideanUnitVolume_pos (m + 2)).ne'] + rw [← heq] + exact mul_le_mul_of_nonneg_left hlo (by positivity) + exact radial_fit_energy_volume_units (hr i) hW (Real.rpow_nonneg (distanceSourceRadius_pos S.radius_pos i).le _) + (radialEnergyConstant_pos (G := Cg) (ε := 1) (A := A) hB hJ hCχ).le + (hEN i).1 (hEN i).2 hratio hNratio he + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/DyadicScalarBackground.lean b/lean/OAI/Geometry/RCD/Sobolev/DyadicScalarBackground.lean new file mode 100644 index 0000000000000000000000000000000000000000..7c406c1e2e8c13f9b89f389af6d66a8752bcfa5f --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/DyadicScalarBackground.lean @@ -0,0 +1,65 @@ +import OAI.Geometry.RCD.Sobolev.DyadicBochnerMass + +namespace OAI + +/-! # Absorbing scalar remainders into the actual dyadic mass envelope -/ + +open Set Metric +open scoped BigOperators InnerProductSpace + +noncomputable section +namespace RegularPointCoordinates + +variable {X E : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [NormedAddCommGroup E] [InnerProductSpace ℝ E] [FiniteDimensional ℝ E] + +/-- The geometric background retains every error decaying at least like 2⁻ⁱ. -/ +theorem dyadic_half_background_le (M : PositiveBilinearMeasure X E) (n : ℕ) + (x : X) {R : ℝ} (hR : 0 ≤ R) (i : ℕ) (v : E) : + (1 / 2 : ℝ) ^ i * ‖v‖ ^ 2 ≤ ⟪v, dyadicBochnerEnvelope M n x R i v⟫_ℝ := by + rw [dyadicBochnerEnvelope_inner] + have hp : (1 / 2 : ℝ) ^ i ≤ (3 / 4 : ℝ) ^ i := pow_le_pow_left₀ (by norm_num) (by norm_num) i + have hs : 0 ≤ ∑ j ∈ Finset.range (i + 1), (3 / 4 : ℝ) ^ (i - j) * + ⟪v, dyadicBochnerMass M n x R j v⟫_ℝ := by + apply Finset.sum_nonneg + intro j _ + exact mul_nonneg (by positivity) ((dyadicBochnerMass_isPositive M n x hR j).inner_nonneg_right v) + exact (mul_le_mul_of_nonneg_right hp (sq_nonneg ‖v‖)).trans (le_add_of_nonneg_right hs) + +/-- All polynomial scalar terms needed in the source comparison are +controlled by the same geometric background. -/ +theorem dyadic_scalar_background_bounds (M : PositiveBilinearMeasure X E) (n : ℕ) + (x : X) {R : ℝ} (hR : 0 < R) (hR1 : R ≤ 1) (i : ℕ) (v : E) : + ((R / (2 : ℝ) ^ i) / R) * ‖v‖ ^ 2 ≤ ⟪v, dyadicBochnerEnvelope M n x R i v⟫_ℝ ∧ + (R / (2 : ℝ) ^ i) ^ 2 * ‖v‖ ^ 2 ≤ R ^ 2 * ⟪v, dyadicBochnerEnvelope M n x R i v⟫_ℝ ∧ + ((R / (2 : ℝ) ^ i) ^ 2 + (R / (2 : ℝ) ^ i) * R) * ‖v‖ ^ 2 ≤ + 2 * R ^ 2 * ⟪v, dyadicBochnerEnvelope M n x R i v⟫_ℝ ∧ + ((R / (2 : ℝ) ^ i) ^ 2 + (R / (2 : ℝ) ^ i) * R ^ 2) * ‖v‖ ^ 2 ≤ + 2 * R ^ 2 * ⟪v, dyadicBochnerEnvelope M n x R i v⟫_ℝ := by + let r := R / (2 : ℝ) ^ i + let F := ⟪v, dyadicBochnerEnvelope M n x R i v⟫_ℝ + have hr : 0 < r := div_pos hR (by positivity) + have hrR : r ≤ R := div_le_self hR.le (one_le_pow₀ (by norm_num)) + have hh := dyadic_half_background_le M n x hR.le i v + have he : r / R = (1 / 2 : ℝ) ^ i := by + dsimp only [r] + rw [one_div_pow] + field_simp + have hfirst : (r / R) * ‖v‖ ^ 2 ≤ F := by simpa only [he, F] using hh + have hrad : r * R * ‖v‖ ^ 2 ≤ R ^ 2 * F := by + have h := mul_le_mul_of_nonneg_left hfirst (sq_nonneg R) + have hid : R ^ 2 * ((r / R) * ‖v‖ ^ 2) = r * R * ‖v‖ ^ 2 := by field_simp + rwa [hid] at h + have hsquare : r ^ 2 * ‖v‖ ^ 2 ≤ r * R * ‖v‖ ^ 2 := + mul_le_mul_of_nonneg_right (by nlinarith only [mul_le_mul_of_nonneg_left hrR hr.le]) (sq_nonneg ‖v‖) + have hsmall : r * R ^ 2 * ‖v‖ ^ 2 ≤ r * R * ‖v‖ ^ 2 := by + have hRsq : R ^ 2 ≤ R := by nlinarith + exact mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_left hRsq hr.le) (sq_nonneg ‖v‖) + refine ⟨hfirst, hsquare.trans hrad, ?_, ?_⟩ <;> dsimp only [r, F] at * <;> + nlinarith only [hrad, hsquare, hsmall] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/DyadicSubsolutionLevels.lean b/lean/OAI/Geometry/RCD/Sobolev/DyadicSubsolutionLevels.lean new file mode 100644 index 0000000000000000000000000000000000000000..9de53647729957f8a54417e91b4075a070f0aaec --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/DyadicSubsolutionLevels.lean @@ -0,0 +1,48 @@ +import OAI.Geometry.RCD.Coordinates.NormalizedLevelAlgebra + +namespace OAI + +/-! # A middle level for the potential term in the dyadic iteration -/ + +namespace RegularPointCoordinates + +theorem dyadic_middle_level_bounds {R : ℝ} (hR : 0 < R) (i : ℕ) : + let j := 1-(2^i:ℝ)⁻¹ + let h := 1-(2^(i+1):ℝ)⁻¹ + let k := (j+h)/2 + j < k ∧ k < h ∧ (h-k)⁻¹^2 = 16*4^i ∧ k/(k-j) ≤ 4*4^i := by + dsimp only + have hh := dyadic_level_gap_bounds hR i + have hp : (0:ℝ) < 2^i := by positivity + have hge : (1:ℝ) ≤ 2^i := one_le_pow₀ (by norm_num) + have hgap : (1-(2^(i+1):ℝ)⁻¹)-(1-(2^i:ℝ)⁻¹) = 1/(2*2^i) := by + rw [pow_succ] + field_simp + ring + have hhalf : (1-(2^(i+1):ℝ)⁻¹)-((1-(2^i:ℝ)⁻¹)+(1-(2^(i+1):ℝ)⁻¹))/2 = 1/(4*2^i) := by + calc + _ = ((1-(2^(i+1):ℝ)⁻¹)-(1-(2^i:ℝ)⁻¹))/2 := by ring + _ = (1/(2*2^i))/2 := by rw [hgap] + _ = _ := by ring + have hhalf' : ((1-(2^i:ℝ)⁻¹)+(1-(2^(i+1):ℝ)⁻¹))/2-(1-(2^i:ℝ)⁻¹) = 1/(4*2^i) := by + linarith only [hhalf] + refine ⟨by linarith [hh.2.1],by linarith [hh.2.1],?_,?_⟩ + · rw [hhalf] + have hf : (4:ℝ)^i = (2^i:ℝ)^2 := by rw [show (4:ℝ) = 2*2 by norm_num,mul_pow,pow_two] + rw [hf] + field_simp + ring + · rw [hhalf'] + have hk1 : ((1-(2^i:ℝ)⁻¹)+(1-(2^(i+1):ℝ)⁻¹))/2 ≤ 1 := by + have h0 : 0 ≤ (2^(i+1):ℝ)⁻¹ := by positivity + have h1 : 0 ≤ (2^i:ℝ)⁻¹ := by positivity + linarith + calc + _ ≤ 1/(1/(4*2^i)) := div_le_div_of_nonneg_right hk1 (by positivity) + _ = 4*(2^i:ℝ) := by field_simp + _ ≤ _ := mul_le_mul_of_nonneg_left (pow_le_pow_left₀ (by norm_num : (0:ℝ) ≤ 2) + (by norm_num : (2:ℝ) ≤ 4) i) (by norm_num) + +end RegularPointCoordinates + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/DyadicSupportCoercivity.lean b/lean/OAI/Geometry/RCD/Sobolev/DyadicSupportCoercivity.lean new file mode 100644 index 0000000000000000000000000000000000000000..a8e949848fd344796657793345b35110947963e0 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/DyadicSupportCoercivity.lean @@ -0,0 +1,72 @@ +import OAI.Geometry.RCD.Sobolev.CoveredCoercivity +import OAI.Geometry.RCD.Metric.DyadicVolumeLower + +namespace OAI + +/-! # Support-sensitive coercivity on dyadic scales + +A support set small compared with the CD lower volume of a dyadic ball +leaves a large zero set in every covering ball. The resulting coercivity +constant gains the square of that smaller radius. +-/ + +open Set Metric MeasureTheory +open scoped ENNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem NoncollapsedRCD.dyadic_support_coercivity {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (hn : 2 ≤ n) : + ∃ C D : ℝ, 0 < C ∧ 2 ≤ D ∧ ∀ (p : X) (R : ℝ), 0 < R → -1 ≤ K*R^2 → + ∀ (w : SobolevSpace (hausdorff n X) hX.quadratic) (A : Set X), + MeasurableSet A → A ⊆ ball p R → + (SobolevSpace.toLp (hausdorff n X) hX.quadratic w =ᵐ[ + (hausdorff n X).restrict Aᶜ] 0) → + ∀ k : ℕ, 2*D^(k+1)*(hausdorff n X).real A ≤ + (hausdorff n X).real (ball p R) → + (∫ x in ball p R, (SobolevSpace.toLp (hausdorff n X) hX.quadratic w x)^2 + ∂hausdorff n X) ≤ C*(R/2^k)^2 * + energyForm (hausdorff n X) hX.quadratic w w := by + obtain ⟨C, hC, hcover⟩ := hX.covered_zero_set_coercivity hn + obtain ⟨D, hD, hvol⟩ := hX.rescaled_dyadic_volume_lower hn + refine ⟨C, D, hC, hD, ?_⟩ + intro p R hR hcurv w A hA hsubA hz k hsize + let μ := hausdorff n X + let u := SobolevSpace.toLp μ hX.quadratic w + have hDpos : 0 < D := lt_of_lt_of_le (by norm_num) hD + have hpow : 0 < D^(k+1) := pow_pos hDpos _ + have hAfin : μ A ≠ ∞ := (hX.finiteOnBounded A (isBounded_ball.subset hsubA)).ne + apply hcover p R (R/2^k) hR (by positivity) + (div_le_self hR.le (one_le_pow₀ (by norm_num))) hcurv w + intro q hq + let B := ball q (R/2^k) \ A + have hqfin : μ (ball q (R/2^k)) ≠ ∞ := (hX.finiteOnBounded _ isBounded_ball).ne + have hzeroFin : μ (ball q (R/2^k) ∩ {x | u x = 0}) ≠ ∞ := + ne_top_of_le_ne_top hqfin (measure_mono inter_subset_left) + have hsmall : 2*μ.real A ≤ μ.real (ball q (R/2^k)) := by + have hv := hvol p R hR hcurv q hq k + change μ.real (ball p R) ≤ D^(k+1)*μ.real (ball q (R/2^k)) at hv + change 2*D^(k+1)*μ.real A ≤ μ.real (ball p R) at hsize + nlinarith + have hinter : μ.real (ball q (R/2^k) ∩ A) ≤ μ.real A := + measureReal_mono inter_subset_right hAfin + have hadd := measureReal_inter_add_sdiff (μ := μ) (s := ball q (R/2^k)) hA hqfin + have hBhalf : μ.real (ball q (R/2^k)) ≤ 2*μ.real B := by + dsimp only [B] + linarith + have hzglobal : ∀ᵐ x ∂μ, x ∉ A → u x = 0 := (ae_restrict_iff' hA.compl).mp hz + have hzero : B ≤ᵐ[μ] ball q (R/2^k) ∩ {x | u x = 0} := by + filter_upwards [hzglobal] with x hx hxB + exact ⟨hxB.1, hx hxB.2⟩ + have hBzero : μ.real B ≤ μ.real (ball q (R/2^k) ∩ {x | u x = 0}) := + ENNReal.toReal_mono hzeroFin (measure_mono_ae hzero) + exact hBhalf.trans (mul_le_mul_of_nonneg_left hBzero (by norm_num)) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/DyadicTailBound.lean b/lean/OAI/Geometry/RCD/Sobolev/DyadicTailBound.lean new file mode 100644 index 0000000000000000000000000000000000000000..004e46f93064787ca08d244f9925ac4cd7fc7272 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/DyadicTailBound.lean @@ -0,0 +1,78 @@ +import OAI.Geometry.RCD.Sobolev.DyadicSupportCoercivity +import OAI.Geometry.RCD.Sobolev.DirichletTail +import OAI.Geometry.RCD.Metric.L2LevelMeasure + +namespace OAI + +/-! # Dyadic distribution estimates from support-sensitive coercivity -/ + +open Set Metric MeasureTheory Filter +open scoped ENNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +/-- An absolute-value truncation turns the dyadic support estimate into +faster-than-quadratic decay of the level-set measures. -/ +theorem NoncollapsedRCD.dyadic_tail_bound {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (hn : 2 ≤ n) : + ∃ C D : ℝ, 0 < C ∧ 2 ≤ D ∧ ∀ (p : X) (R : ℝ), 0 < R → -1 ≤ K*R^2 → + ∀ w : SobolevSpace.dirichlet (hausdorff n X) hX.quadratic (ball p R), + ∀ (t : ℝ), 0 < t → ∀ k : ℕ, + 2*D^(k+1)*‖SobolevSpace.toLp (hausdorff n X) hX.quadratic w.val‖^2 ≤ + (hausdorff n X).real (ball p R)*t^2 → + t^2 * (hausdorff n X).real (ball p R ∩ + {x | 2*t < |SobolevSpace.toLp (hausdorff n X) hX.quadratic w.val x|}) ≤ + C*(R/2^k)^2 * energyForm (hausdorff n X) hX.quadratic w.val w.val := by + obtain ⟨C, D, hC, hD, hsupport⟩ := hX.dyadic_support_coercivity hn + refine ⟨C, D, hC, hD, ?_⟩ + intro p R hR hcurv w t ht k hsize + let μ := hausdorff n X + let u := SobolevSpace.toLp μ hX.quadratic w.val + let A := ball p R ∩ {x | t < |u x|} + have hA : MeasurableSet A := measurableSet_ball.inter + (measurableSet_lt measurable_const (Lp.stronglyMeasurable u).measurable.abs) + have hAfin : μ A ≠ ∞ := ne_top_of_le_ne_top + (hX.finiteOnBounded (ball p R) isBounded_ball).ne (measure_mono inter_subset_left) + have hlevel : ∀ᵐ x ∂μ.restrict A, t ≤ |u x| := + (ae_restrict_mem hA).mono (fun _ hx => hx.2.le) + have hMarkov := lp_level_measure_le μ u hAfin ht.le hlevel + have hAsmall : 2*D^(k+1)*μ.real A ≤ μ.real (ball p R) := by + have hm := mul_le_mul_of_nonneg_left hMarkov + (show 0 ≤ 2*D^(k+1) by positivity) + change 2*D^(k+1)*‖u‖^2 ≤ μ.real (ball p R)*t^2 at hsize + nlinarith [sq_pos_of_pos ht] + obtain ⟨v, hv, henergy⟩ := exists_dirichlet_absolute_tail μ hX.quadratic (ball p R) w ht.le + let z := SobolevSpace.toLp μ hX.quadratic v.val + have hz : z =ᵐ[μ.restrict Aᶜ] 0 := by + apply (ae_restrict_iff' hA.compl).mpr + have hzout := SobolevSpace.dirichlet_zero_off μ hX.quadratic (ball p R) measurableSet_ball v + filter_upwards [hv, (ae_restrict_iff' measurableSet_ball.compl).mp hzout] with x hx hxout hxA + by_cases hxball : x ∈ ball p R + · have hxlow : |u x| ≤ t := le_of_not_gt (fun h => hxA ⟨hxball, h⟩) + change z x = 0 + rw [show z x = max (|u x|-t) 0 from hx] + exact max_eq_right (sub_nonpos.mpr hxlow) + · exact hxout hxball + have hbound := hsupport p R hR hcurv v.val A hA inter_subset_left hz k hAsmall + rw [dirichlet_integral_square_eq_norm_square μ hX.quadratic measurableSet_ball v] at hbound + let B := ball p R ∩ {x | 2*t < |u x|} + have hB : MeasurableSet B := measurableSet_ball.inter + (measurableSet_lt measurable_const (Lp.stronglyMeasurable u).measurable.abs) + have hBfin : μ B ≠ ∞ := ne_top_of_le_ne_top + (hX.finiteOnBounded (ball p R) isBounded_ball).ne (measure_mono inter_subset_left) + have hBlevel : ∀ᵐ x ∂μ.restrict B, t ≤ |z x| := by + filter_upwards [ae_restrict_of_ae hv, ae_restrict_mem hB] with x hx hxB + rw [show z x = max (|u x|-t) 0 from hx, abs_of_nonneg (le_max_right _ _)] + have hh : 2*t < |u x| := hxB.2 + linarith [le_max_left (|u x|-t) 0] + exact (lp_level_measure_le μ z hBfin ht.le hBlevel).trans + (hbound.trans (mul_le_mul_of_nonneg_left henergy (by positivity))) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/EndpointLIntegralLimit.lean b/lean/OAI/Geometry/RCD/Sobolev/EndpointLIntegralLimit.lean new file mode 100644 index 0000000000000000000000000000000000000000..0622b06e94e549ca90e57f31e859ad2cfc427919 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/EndpointLIntegralLimit.lean @@ -0,0 +1,53 @@ +import OAI.Geometry.RCD.Sobolev.WeakEndpointWeights + +namespace OAI + +/-! # Nonnegative endpoint-weighted integrals under weak convergence -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped ENNReal Topology BoundedContinuousFunction +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem endpoint_weight_lintegral_eq + (ν : Measure X) (π : Measure C(Time,X)) (t : Time) + (hd : π.map (fun γ => γ t) ≤ (2 : ℝ≥0∞) • ν) + (φ : C(Time,X) →ᵇ ℝ) (hφ : ∀ γ, 0 ≤ φ γ) + {f : X → ℝ≥0∞} (hf : ∀ᵐ x ∂ν, f x ≠ ∞) + (hi : Integrable (fun x => (f x).toReal) ν) : + (∫⁻γ,ENNReal.ofReal (φ γ)*f (γ t) ∂π)= + ENNReal.ofReal (∫γ,φ γ*(f (γ t)).toReal ∂π) := by + have hif := integrable_endpoint_of_domination π ν t hd hi + have hib := hif.bdd_mul φ.continuous.measurable.aestronglyMeasurable + (Eventually.of_forall φ.norm_coe_le_norm) + rw [ofReal_integral_eq_lintegral_ofReal hib + (Eventually.of_forall fun γ => mul_nonneg (hφ γ) ENNReal.toReal_nonneg)] + apply lintegral_congr_ae + have hm : ∀ᵐ x ∂π.map (fun γ => γ t), f x ≠ ∞ := + hd.absolutelyContinuous.ae_le ((Measure.smul_absolutelyContinuous).ae_le hf) + filter_upwards [ae_of_ae_map (measurable_path_eval t).aemeasurable hm] with γ hγ + rw [ENNReal.ofReal_mul (hφ γ),ENNReal.ofReal_toReal hγ] + +theorem weak_endpoint_weight_lintegral + (ν : Measure X) [IsFiniteMeasure ν] [ν.WeaklyRegular] + (πs : ℕ → ProbabilityMeasure C(Time,X)) (π : ProbabilityMeasure C(Time,X)) + (hlim : Tendsto πs atTop (𝓝 π)) (t : Time) + (hds : ∀ j, (πs j : Measure C(Time,X)).map (fun γ => γ t) ≤ (2 : ℝ≥0∞) • ν) + (hd : (π : Measure C(Time,X)).map (fun γ => γ t) ≤ (2 : ℝ≥0∞) • ν) + (φ : C(Time,X) →ᵇ ℝ) (hφ : ∀ γ, 0 ≤ φ γ) + {f : X → ℝ≥0∞} (hf : ∀ᵐ x ∂ν, f x ≠ ∞) + (hi : Integrable (fun x => (f x).toReal) ν) : + Tendsto (fun j => ∫⁻γ,ENNReal.ofReal (φ γ)*f (γ t) ∂(πs j : Measure C(Time,X))) atTop + (𝓝 (∫⁻γ,ENNReal.ofReal (φ γ)*f (γ t) ∂(π : Measure C(Time,X)))) := by + simp_rw [endpoint_weight_lintegral_eq ν _ t (hds _) φ hφ hf hi, + endpoint_weight_lintegral_eq ν _ t hd φ hφ hf hi] + exact ENNReal.continuous_ofReal.continuousAt.tendsto.comp + (weak_endpoint_weight_integral ν πs π hlim t hds hd φ hi) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/EnergyAffineRigidity.lean b/lean/OAI/Geometry/RCD/Sobolev/EnergyAffineRigidity.lean new file mode 100644 index 0000000000000000000000000000000000000000..924b19fc9eb406c92303f584dfe6d11cc2710151 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/EnergyAffineRigidity.lean @@ -0,0 +1,19 @@ +import Mathlib.Tactic + +namespace OAI + +/-! # Exact cancellation of the recovery energy leaves a vanishing mixed term -/ + +namespace RegularPointCoordinates + +theorem energy_affine_rigidity {E M P B : ℝ} + (h : ∀ t : ℝ, E+2*t*B+t^2*P≤M+t^2*P) : B=0 := by + by_contra hb + have he : 2*((M-E+1)/(2*B))*B=M-E+1 := by + field_simp [hb] + have hh := h ((M-E+1)/(2*B)) + nlinarith + +end RegularPointCoordinates + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/EnergyDensityLimits.lean b/lean/OAI/Geometry/RCD/Sobolev/EnergyDensityLimits.lean new file mode 100644 index 0000000000000000000000000000000000000000..bcf36d87ad91c12aa1776cfb4f7d8068c33b53b1 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/EnergyDensityLimits.lean @@ -0,0 +1,69 @@ +import OAI.Geometry.RCD.Sobolev.GammaL2Stability +import OAI.Geometry.RCD.Sobolev.GammaLpNorm + +namespace OAI + +/-! # Weak energy convergence of bounded energy densities -/ + +open Set Filter MeasureTheory +open scoped NNReal Topology + +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +theorem gamma_representatives_tendsto + {us Gs : ℕ → SobolevSpace μ hQ} {u G : SobolevSpace μ hQ} (L : ℝ≥0) + (hus : ∀ k, ∀ᵐ x ∂μ, SobolevSpace.minimalSlope μ hQ (us k) x ≤ L) + (hu : ∀ᵐ x ∂μ, SobolevSpace.minimalSlope μ hQ u x ≤ L) + (hconv : Tendsto us atTop (𝓝 u)) + (hGs : ∀ k, SobolevSpace.toLp μ hQ (Gs k) =ᵐ[μ] localGamma μ hQ (us k) (us k)) + (hG : SobolevSpace.toLp μ hQ G =ᵐ[μ] localGamma μ hQ u u) : + Tendsto (fun k => SobolevSpace.toLp μ hQ (Gs k)) atTop (𝓝 (SobolevSpace.toLp μ hQ G)) := by + have hEq (k : ℕ) : SobolevSpace.toLp μ hQ (Gs k) = + (localGamma_memLp_of_bounded_gradient μ hQ (us k) (us k) L (hus k)).toLp + (localGamma μ hQ (us k) (us k)) := + Lp.ext ((hGs k).trans + (localGamma_memLp_of_bounded_gradient μ hQ (us k) (us k) L (hus k)).coeFn_toLp.symm) + have hEqG : SobolevSpace.toLp μ hQ G = + (localGamma_memLp_of_bounded_gradient μ hQ u u L hu).toLp (localGamma μ hQ u u) := + Lp.ext (hG.trans (localGamma_memLp_of_bounded_gradient μ hQ u u L hu).coeFn_toLp.symm) + simp_rw [hEq, hEqG] + exact gammaL2_tendsto μ hQ L hus hu hconv + +theorem gamma_representatives_energy_tendsto + {us Gs : ℕ → SobolevSpace μ hQ} {u G : SobolevSpace μ hQ} (L : ℝ≥0) + (hus : ∀ k, ∀ᵐ x ∂μ, SobolevSpace.minimalSlope μ hQ (us k) x ≤ L) + (hu : ∀ᵐ x ∂μ, SobolevSpace.minimalSlope μ hQ u x ≤ L) + (hconv : Tendsto us atTop (𝓝 u)) + (hGs : ∀ k, SobolevSpace.toLp μ hQ (Gs k) =ᵐ[μ] localGamma μ hQ (us k) (us k)) + (hG : SobolevSpace.toLp μ hQ G =ᵐ[μ] localGamma μ hQ u u) + {B : ℝ} (hB : 0 ≤ B) (hE : ∀ k, energyForm μ hQ (Gs k) (Gs k) ≤ B) + (w : SobolevSpace μ hQ) : + Tendsto (fun k => energyForm μ hQ (Gs k) w) atTop (𝓝 (energyForm μ hQ G w)) := by + obtain ⟨C, hC⟩ := (Metric.isBounded_range_of_tendsto us hconv).exists_norm_le + have hnorm (k : ℕ) : ‖SobolevSpace.toLp μ hQ (Gs k)‖ ≤ (L : ℝ) * C := by + have he : SobolevSpace.toLp μ hQ (Gs k) = + (localGamma_memLp_of_bounded_gradient μ hQ (us k) (us k) L (hus k)).toLp + (localGamma μ hQ (us k) (us k)) := + Lp.ext ((hGs k).trans + (localGamma_memLp_of_bounded_gradient μ hQ (us k) (us k) L (hus k)).coeFn_toLp.symm) + rw [he] + exact (gammaLp_norm_le μ hQ (us k) (us k) L (hus k) _).trans + (mul_le_mul_of_nonneg_left (hC (us k) (mem_range_self k)) L.coe_nonneg) + have hC0 : 0 ≤ C := (norm_nonneg _).trans (hC (us 0) (mem_range_self 0)) + have hbound (k : ℕ) : ‖Gs k‖ ≤ Real.sqrt (((L : ℝ) * C) ^ 2 + B) := by + have hs := SobolevSpace.norm_sq μ hQ (Gs k) + have he := hE k + rw [energyForm_self] at he + simp only [SobolevSpace.normSq] at hs + have hn := pow_le_pow_left₀ (norm_nonneg _) (hnorm k) 2 + have hsq := Real.sq_sqrt (show 0 ≤ ((L : ℝ) * C) ^ 2 + B by positivity) + nlinarith [norm_nonneg (Gs k), Real.sqrt_nonneg (((L : ℝ) * C) ^ 2 + B)] + exact SobolevSpace.energyForm_tendsto_of_toLp_tendsto_bounded μ hQ hbound + (gamma_representatives_tendsto μ hQ L hus hu hconv hGs hG) w + +end RegularPointCoordinates + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/EnergyGapLimit.lean b/lean/OAI/Geometry/RCD/Sobolev/EnergyGapLimit.lean new file mode 100644 index 0000000000000000000000000000000000000000..cc06c5fe1940a34c229acb29012e1613a8bc8ba4 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/EnergyGapLimit.lean @@ -0,0 +1,42 @@ +import OAI.Geometry.RCD.Sobolev.QuadraticEnergyLimit + +namespace OAI + +/-! # Vanishing nonnegative energy gaps from sharp one-sided bounds -/ + +open Filter +open scoped Topology +namespace RegularPointCoordinates + +theorem energy_gap_tendsto_zero {D E F e : ℕ → ℝ} {A : ℝ} + (hD : ∀ k, 0≤D k) (hid : ∀ k, D k=E k-F k+e k) + (hE : Tendsto E atTop (𝓝 A)) + (hF : ∀ δ : ℝ, 0<δ → ∀ᶠ k in atTop, A-δ≤F k) + (he : Tendsto e atTop (𝓝 0)) : Tendsto D atTop (𝓝 0) := by + apply Metric.tendsto_nhds.mpr + intro δ hδ + have hδ4 : 0<δ/4 := by positivity + have hEu := hE.eventually (Iio_mem_nhds (show A -2*S k-4*T k) + · intro k + rw [hid k] + ring + · exact hE + · exact hF + · convert ((hS.const_mul (-2)).sub (hT.const_mul 4)) using 1 + norm_num + +end RegularPointCoordinates + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/EuclideanBoundedHessian.lean b/lean/OAI/Geometry/RCD/Sobolev/EuclideanBoundedHessian.lean new file mode 100644 index 0000000000000000000000000000000000000000..cb5db787020f81d875b763037c555b36a4ffc082 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/EuclideanBoundedHessian.lean @@ -0,0 +1,65 @@ +import OAI.Geometry.RCD.Sobolev.EuclideanHarmonicHessianConstruction +import OAI.Geometry.RCD.Coordinates.NormalizedPairing + +namespace OAI + +/-! # Interior Hessian control for bounded, unnormalized harmonic functions -/ + +open Set Metric MeasureTheory +open scoped ContDiff +noncomputable section +namespace RegularPointCoordinates + +theorem euclidean_bounded_harmonic_hessian {n : ℕ} (hn : 0 < n) : + ∃ C : ℝ, 0 < C ∧ ∀ (f : Euclidean n → ℝ) (S M : ℝ), + 0 < S → 0 < M → ContDiff ℝ 2 f → + InnerProductSpace.HarmonicOnNhd f (ball 0 S) → + (∀ x ∈ ball 0 S, |f x| ≤ M) → + ∀ z ∈ ball (0 : Euclidean n) (S/2), + ‖fderiv ℝ (fderiv ℝ f) z‖ ≤ C*M/S^2 := by + obtain ⟨C,hC,hbound⟩ := euclideanHarmonicHessianInput hn + refine ⟨C,hC,?_⟩ + intro f S M hS hM hf hh hb z hz + let F : Euclidean n → ℝ := fun x => M⁻¹ • f x + have hF : ContDiff ℝ 2 F := hf.const_smul _ + let : IsFiniteMeasure (volume.restrict (ball (0 : Euclidean n) S)) := + ⟨by simpa only [Measure.restrict_apply_univ] using + (measure_ball_lt_top (μ := (volume : Measure (Euclidean n))) (x := 0) (r := S))⟩ + have hpoint : ∀ᵐ x ∂volume.restrict (ball (0 : Euclidean n) S), |F x| ≤ 1 := by + filter_upwards [ae_restrict_mem measurableSet_ball] with x hx + dsimp only [F,smul_eq_mul] + rw [abs_mul,abs_of_pos (inv_pos.mpr hM)] + calc + M⁻¹*|f x| ≤ M⁻¹*M := mul_le_mul_of_nonneg_left (hb x hx) (inv_nonneg.mpr hM.le) + _ = 1 := inv_mul_cancel₀ hM.ne' + have hLp : MemLp F 2 (volume.restrict (ball (0 : Euclidean n) S)) := by + apply MemLp.of_bound hF.continuous.aestronglyMeasurable 1 + simpa only [Real.norm_eq_abs] using hpoint + have hnormalized : ‖normalizeLocalL2 volume (ball (0 : Euclidean n) S) measure_ball_ne_top + (hLp.toLp F)‖ ≤ 1 := by + apply normalized_norm_le_of_bound volume _ _ _ zero_le_one + filter_upwards [hLp.coeFn_toLp,hpoint] with x hx hb' + rwa [hx] + let w : EuclideanHarmonicModel n S := { + value := F + harmonic := hh.const_smul + memLp := hLp + normalized := hnormalized } + have he : ‖fderiv ℝ (fderiv ℝ F) z‖ = M⁻¹*‖fderiv ℝ (fderiv ℝ f) z‖ := by + rw [← norm_iteratedFDeriv_one (f := fderiv ℝ F),norm_iteratedFDeriv_fderiv] + change ‖iteratedFDeriv ℝ 2 (fun x => M⁻¹ • f x) z‖ = _ + rw [iteratedFDeriv_const_smul_apply' hf.contDiffAt,norm_smul,Real.norm_eq_abs, + abs_of_pos (inv_pos.mpr hM),← norm_iteratedFDeriv_fderiv,norm_iteratedFDeriv_one] + have hhess := hbound S hS w z hz + change ‖fderiv ℝ (fderiv ℝ F) z‖ ≤ C/S^2 at hhess + rw [he] at hhess + have hresult := (div_le_iff₀ hM).mp (by simpa only [div_eq_inv_mul] using hhess) + calc + _ ≤ (C/S^2)*M := by simpa only [div_eq_inv_mul] using hresult + _ = _ := by ring + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/EuclideanConstantEnergyRigidity.lean b/lean/OAI/Geometry/RCD/Sobolev/EuclideanConstantEnergyRigidity.lean new file mode 100644 index 0000000000000000000000000000000000000000..ba90b36857f2b15c3236aa65a213f5cb43d59b2a --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/EuclideanConstantEnergyRigidity.lean @@ -0,0 +1,118 @@ +import OAI.Geometry.RCD.Sobolev.EuclideanDirectionalLaplacian + +namespace OAI + +/-! # Local rigidity of harmonic functions with constant gradient norm -/ + +open Set Metric InnerProductSpace Laplacian +open scoped ContDiff BigOperators Topology +noncomputable section +namespace RegularPointCoordinates + +theorem laplacian_finite_sum {n : ℕ} {ι : Type*} (s : Finset ι) + (f : ι → Euclidean n → ℝ) (hf : ∀ i ∈ s, ContDiff ℝ 2 (f i)) (x : Euclidean n) : + (Δ (fun y => ∑ i ∈ s, f i y)) x = ∑ i ∈ s, (Δ (f i)) x := by + classical + induction s using Finset.induction_on with + | empty => simp + | @insert i s hi ih => + have hfi := hf i (Finset.mem_insert_self i s) + have hfs : ∀ j ∈ s, ContDiff ℝ 2 (f j) := fun j hj => hf j (Finset.mem_insert_of_mem hj) + have hc : ContDiff ℝ 2 (fun y => ∑ j ∈ s, f j y) := ContDiff.sum hfs + simp only [Finset.sum_insert hi] + change (Δ (f i + fun y => ∑ j ∈ s, f j y)) x = _ + rw [hfi.contDiffAt.laplacian_add hc.contDiffAt, ih hfs] + +theorem harmonic_constant_energy_second_directional_zero {n : ℕ} + {f : Euclidean n → ℝ} (hf : ContDiff ℝ 3 f) {Ω : Set (Euclidean n)} + (hΩ : IsOpen Ω) (hh : HarmonicOnNhd f Ω) {C : ℝ} + (he : ∀ y ∈ Ω, ‖fderiv ℝ f y‖^2 = C) {x : Euclidean n} (hx : x ∈ Ω) + (i j : Fin n) : + fderiv ℝ (fun y => fderiv ℝ f y (EuclideanSpace.single i 1)) x + (EuclideanSpace.single j 1) = 0 := by + classical + let e := fun i : Fin n => EuclideanSpace.single i (1 : ℝ) + let d := fun i y => fderiv ℝ f y (e i) + have hd (i : Fin n) : ContDiff ℝ 2 (d i) := + (hf.fderiv_right (by norm_num)).clm_apply contDiff_const + have hΔ (i : Fin n) : (Δ (d i)) x = 0 := by + change (Δ (fun y => fderiv ℝ f y (e i))) x = 0 + rw [laplacian_directional_commute hf x (e i)] + have hzero : (Δ f) =ᶠ[𝓝 x] fun _ => (0 : ℝ) := by + filter_upwards [hΩ.mem_nhds hx] with y hy + exact (hh y hy).2.self_of_nhds + rw [hzero.fderiv_eq] + simp + have hnorm : (fun y => ‖fderiv ℝ f y‖^2) = fun y => ∑ i : Fin n, (d i y)^2 := by + funext y + simpa only [d,e,EuclideanSpace.basisFun_apply] using + (EuclideanSpace.basisFun (Fin n) ℝ).norm_dual (fderiv ℝ f y) + have hconstant : (fun y => ‖fderiv ℝ f y‖^2) =ᶠ[𝓝 x] fun _ => C := by + filter_upwards [hΩ.mem_nhds hx] with y hy + exact he y hy + have hΔenergy : (Δ (fun y => ‖fderiv ℝ f y‖^2)) x = 0 := by + have hz := (laplacian_congr_nhds hconstant).self_of_nhds + simpa using hz + rw [hnorm, laplacian_finite_sum Finset.univ (fun i y => (d i y)^2) + (fun i _ => (hd i).pow 2)] at hΔenergy + simp_rw [laplacian_square_formula (hd _) x, hΔ, mul_zero, zero_add] at hΔenergy + have hnonneg (i : Fin n) : 0 ≤ 2*∑ j : Fin n, (fderiv ℝ (d i) x (e j))^2 := + mul_nonneg (by norm_num) (Finset.sum_nonneg fun _ _ => sq_nonneg _) + have hi := (Finset.single_le_sum (fun k _ => hnonneg k) (Finset.mem_univ i)).trans_eq hΔenergy + have hj := Finset.single_le_sum (fun k _ => sq_nonneg (fderiv ℝ (d i) x (e k))) + (Finset.mem_univ j) + have hz : (fderiv ℝ (d i) x (e j))^2 = 0 := by nlinarith [sq_nonneg (fderiv ℝ (d i) x (e j))] + exact sq_eq_zero_iff.mp hz + +theorem harmonic_constant_energy_hessian_zero {n : ℕ} + {f : Euclidean n → ℝ} (hf : ContDiff ℝ 3 f) {Ω : Set (Euclidean n)} + (hΩ : IsOpen Ω) (hh : HarmonicOnNhd f Ω) {C : ℝ} + (he : ∀ y ∈ Ω, ‖fderiv ℝ f y‖^2 = C) {x : Euclidean n} (hx : x ∈ Ω) : + fderiv ℝ (fderiv ℝ f) x = 0 := by + classical + let b := EuclideanSpace.basisFun (Fin n) ℝ + have hp (i j : Fin n) : fderiv ℝ (fderiv ℝ f) x (b j) (b i) = 0 := by + have h := harmonic_constant_energy_second_directional_zero hf hΩ hh he hx i j + have hd := (hf.fderiv_right (m := 2) (by norm_num)).differentiable (by norm_num) x + simpa [b,fderiv_clm_apply hd (differentiableAt_const _)] using h + ext v w + nth_rw 1 [← b.sum_repr v] + rw [map_sum, sum_apply] + apply Finset.sum_eq_zero + intro j _ + rw [map_smul, smul_apply] + nth_rw 1 [← b.sum_repr w] + rw [map_sum] + simp only [map_smul, hp, smul_zero, Finset.sum_const_zero] + +theorem harmonic_constant_energy_affine {n : ℕ} + {f : Euclidean n → ℝ} (hf : ContDiff ℝ 3 f) {S C : ℝ} (hS : 0 < S) + (hh : HarmonicOnNhd f (ball 0 S)) + (he : ∀ y ∈ ball (0 : Euclidean n) S, ‖fderiv ℝ f y‖^2 = C) : + ∀ x ∈ ball (0 : Euclidean n) S, f x = f 0 + fderiv ℝ f 0 x := by + have hdf : Differentiable ℝ (fderiv ℝ f) := + (hf.fderiv_right (m := 2) (by norm_num)).differentiable (by norm_num) + have hconst (x : Euclidean n) (hx : x ∈ ball (0 : Euclidean n) S) : + fderiv ℝ f x = fderiv ℝ f 0 := + isOpen_ball.is_const_of_fderiv_eq_zero (convex_ball (0 : Euclidean n) S).isPreconnected + hdf.differentiableOn (fun y hy => harmonic_constant_energy_hessian_zero hf isOpen_ball hh he hy) + hx (mem_ball_self hS) + let g := fun x => f x-fderiv ℝ f 0 x + have hg : Differentiable ℝ g := (hf.differentiable (by norm_num)).sub (fderiv ℝ f 0).differentiable + have hz : EqOn (fderiv ℝ g) 0 (ball (0 : Euclidean n) S) := by + intro x hx + change fderiv ℝ (f-⇑(fderiv ℝ f 0)) x = 0 + rw [fderiv_sub (hf.differentiable (by norm_num) x) (fderiv ℝ f 0).differentiableAt, + (fderiv ℝ f 0).fderiv, hconst x hx, sub_self] + intro x hx + have heq := isOpen_ball.is_const_of_fderiv_eq_zero + (convex_ball (0 : Euclidean n) S).isPreconnected hg.differentiableOn hz hx (mem_ball_self hS) + change f x-fderiv ℝ f 0 x = f 0-fderiv ℝ f 0 0 at heq + rw [map_zero, sub_zero] at heq + linarith + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/EuclideanConvolutionLaplacian.lean b/lean/OAI/Geometry/RCD/Sobolev/EuclideanConvolutionLaplacian.lean new file mode 100644 index 0000000000000000000000000000000000000000..702bbafa59ea25a9fed701db7ed3a42d1f00b653 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/EuclideanConvolutionLaplacian.lean @@ -0,0 +1,61 @@ +import OAI.Geometry.RCD.Metric.EuclideanGreenIdentity +import OAI.Geometry.RCD.Coordinates.GevreyConvolution + +namespace OAI + +/-! # Differentiating the compact factor in Euclidean scalar convolution -/ + +open Set MeasureTheory InnerProductSpace Laplacian +open scoped ContDiff Convolution +noncomputable section +namespace RegularPointCoordinates + +theorem scalar_convolution_directional {n : ℕ} {f g : Euclidean n → ℝ} + (hf : LocallyIntegrable f volume) (hg : ContDiff ℝ 1 g) (hgc : HasCompactSupport g) + (v : Euclidean n) : + (fun x => fderiv ℝ (f ⋆[ContinuousLinearMap.mul ℝ ℝ,volume] g) x v)= + f ⋆[ContinuousLinearMap.mul ℝ ℝ,volume] (fun x => fderiv ℝ g x v) := by + funext x + rw [(hgc.hasFDerivAt_convolution_right (ContinuousLinearMap.mul ℝ ℝ) hf hg x).fderiv] + exact convolution_precompR_apply (ContinuousLinearMap.mul ℝ ℝ) hf (hgc.fderiv ℝ) + (hg.continuous_fderiv (by norm_num)) x v + +theorem scalar_convolution_laplacian {n : ℕ} {f g : Euclidean n → ℝ} + (hf : LocallyIntegrable f volume) (hg : ContDiff ℝ 2 g) (hgc : HasCompactSupport g) : + Δ (f ⋆[ContinuousLinearMap.mul ℝ ℝ,volume] g)= + f ⋆[ContinuousLinearMap.mul ℝ ℝ,volume] (Δ g) := by + classical + let L := ContinuousLinearMap.mul ℝ ℝ + have hconv : ContDiff ℝ 2 (f ⋆[L,volume] g) := hgc.contDiff_convolution_right L hf hg + rw [laplacian_eq_sum_second_directional hconv] + funext x + have hsecond (v : Euclidean n) : + (fun x => fderiv ℝ (fun y => fderiv ℝ (f ⋆[L,volume] g) y v) x v)= + f ⋆[L,volume] (fun x => fderiv ℝ (fun y => fderiv ℝ g y v) x v) := by + rw [scalar_convolution_directional hf (hg.of_le (by norm_num)) hgc v] + exact scalar_convolution_directional hf + ((hg.fderiv_right (m := 1) (by norm_num)).clm_apply contDiff_const) + (hgc.fderiv_apply ℝ v) v + simp_rw [show ∀ v, fderiv ℝ (fun y => fderiv ℝ (f ⋆[L,volume] g) y v) x v= + (f ⋆[L,volume] (fun x => fderiv ℝ (fun y => fderiv ℝ g y v) x v)) x from + fun v => congrFun (hsecond v) x] + have hi (i : Fin n) : Integrable (fun y => f y* + fderiv ℝ (fun z => fderiv ℝ g z (EuclideanSpace.single i 1)) (x-y) + (EuclideanSpace.single i 1)) := by + have hd : ContDiff ℝ 1 (fun y => fderiv ℝ g y (EuclideanSpace.single i 1)) := + (hg.fderiv_right (m := 1) (by norm_num)).clm_apply contDiff_const + exact ((hgc.fderiv_apply ℝ (EuclideanSpace.single i 1)).fderiv_apply ℝ + (EuclideanSpace.single i 1)).convolutionExists_right L hf + ((hd.continuous_fderiv (by norm_num)).clm_apply continuous_const) x + simp only [convolution_def,ContinuousLinearMap.mul_apply',L] + rw [← integral_finsetSum _ (fun i _ => hi i)] + congr 1 + funext y + rw [laplacian_eq_sum_second_directional hg] + exact (Finset.mul_sum _ _ _).symm + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/EuclideanDirectionalLaplacian.lean b/lean/OAI/Geometry/RCD/Sobolev/EuclideanDirectionalLaplacian.lean new file mode 100644 index 0000000000000000000000000000000000000000..40b090f5586bf6eb06a4d7443b3089a8d0469bfe --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/EuclideanDirectionalLaplacian.lean @@ -0,0 +1,50 @@ +import OAI.Geometry.RCD.Harmonic.EuclideanHarmonicSquare +import Mathlib.Analysis.Calculus.FDeriv.Symmetric + +namespace OAI + +/-! # Directional differentiation commutes with the Euclidean Laplacian -/ + +open Set Metric InnerProductSpace Laplacian +open scoped ContDiff BigOperators +noncomputable section +namespace RegularPointCoordinates + +theorem second_directional_symmetric {n : ℕ} {f : Euclidean n → ℝ} + (hf : ContDiff ℝ 2 f) (x v w : Euclidean n) : + fderiv ℝ (fun y => fderiv ℝ f y v) x w = + fderiv ℝ (fun y => fderiv ℝ f y w) x v := by + have hd := (hf.fderiv_right (m := 1) (by norm_num)).differentiable (by norm_num) x + have hsym : ((fderiv ℝ (fderiv ℝ f) x) w) v = + ((fderiv ℝ (fderiv ℝ f) x) v) w := + (hf.contDiffAt.isSymmSndFDerivAt (by norm_num)) w v + simpa [fderiv_clm_apply hd (differentiableAt_const _)] using hsym + +theorem laplacian_directional_commute {n : ℕ} {f : Euclidean n → ℝ} + (hf : ContDiff ℝ 3 f) (x v : Euclidean n) : + (Δ (fun y => fderiv ℝ f y v)) x = fderiv ℝ (Δ f) x v := by + classical + have hf2 : ContDiff ℝ 2 f := hf.of_le (by norm_num) + have hd (w : Euclidean n) : ContDiff ℝ 2 (fun y => fderiv ℝ f y w) := + (hf.fderiv_right (by norm_num)).clm_apply contDiff_const + rw [laplacian_eq_sum_second_directional (hd v), + laplacian_eq_sum_second_directional hf2] + have hdd (i : Fin n) : DifferentiableAt ℝ + (fun y => fderiv ℝ (fun z => fderiv ℝ f z (EuclideanSpace.single i 1)) y + (EuclideanSpace.single i 1)) x := + (((hd _).fderiv_right (m := 1) (by norm_num)).clm_apply contDiff_const).differentiable + (by norm_num) x + rw [fderiv_fun_sum (fun i _ => hdd i), sum_apply] + apply Finset.sum_congr rfl + intro i _ + have he : (fun y => fderiv ℝ (fun z => fderiv ℝ f z v) y (EuclideanSpace.single i 1)) = + (fun y => fderiv ℝ (fun z => fderiv ℝ f z (EuclideanSpace.single i 1)) y v) := + funext fun y => second_directional_symmetric hf2 y v _ + rw [he] + exact second_directional_symmetric (hd _) x v _ + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/EuclideanEnergyDifferentiation.lean b/lean/OAI/Geometry/RCD/Sobolev/EuclideanEnergyDifferentiation.lean new file mode 100644 index 0000000000000000000000000000000000000000..2813598964a16906e24bfb232ff305a664ee8838 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/EuclideanEnergyDifferentiation.lean @@ -0,0 +1,28 @@ +import OAI.Geometry.RCD.Sobolev.BoundedEnergyDensity +import Mathlib.MeasureTheory.Covering.BesicovitchVectorSpace +import Mathlib.MeasureTheory.Covering.Differentiation + +namespace OAI + +/-! # Almost-everywhere density of the actual finite Euclidean energy measure -/ + +open Set Filter MeasureTheory Metric +open scoped Topology ENNReal +noncomputable section +namespace RegularPointCoordinates + +theorem euclidean_energy_density_limit {n : ℕ} (ν : FiniteMeasure (Euclidean n)) : + ∀ᵐ x ∂(volume : Measure (Euclidean n)), + Tendsto (fun r => (ν : Measure (Euclidean n)).real (closedBall x r)/ + volume.real (closedBall x r)) (𝓝[>] 0) + (𝓝 (((ν : Measure (Euclidean n)).rnDeriv volume x).toReal)) := by + filter_upwards [Besicovitch.ae_tendsto_rnDeriv (ν : Measure (Euclidean n)) volume, + Measure.rnDeriv_ne_top (ν : Measure (Euclidean n)) volume] with x hx hfinite + have hh := (ENNReal.tendsto_toReal hfinite).comp hx + simpa only [Function.comp_def,ENNReal.toReal_div,Measure.real] using hh + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/EuclideanEnergyRatios.lean b/lean/OAI/Geometry/RCD/Sobolev/EuclideanEnergyRatios.lean new file mode 100644 index 0000000000000000000000000000000000000000..54850a204f138ee93a2f9f66ece96945738cc718 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/EuclideanEnergyRatios.lean @@ -0,0 +1,55 @@ +import OAI.Geometry.RCD.Sobolev.EuclideanEnergyDifferentiation + +namespace OAI + +/-! # Rescaling the local energy density by exact Euclidean ball volumes -/ + +open Set Filter MeasureTheory Metric +open scoped Topology ENNReal +noncomputable section +namespace RegularPointCoordinates + +theorem euclidean_ball_real {n : ℕ} (hn : 0 (ν : Measure (Euclidean n)).real (closedBall x t)/ + volume.real (closedBall x t)) (𝓝[>] 0) (𝓝 d)) + (r : ℕ → ℝ) (hr : ∀ k, 0 (ν : Measure (Euclidean n)).real (closedBall x (c*r k))/ + volume.real (ball x (θ*r k))) atTop (𝓝 ((c/θ)^n*d)) := by + have ht : Tendsto (fun k => c*r k) atTop (𝓝[>] 0) := + tendsto_nhdsWithin_iff.mpr ⟨by simpa using hlim.const_mul c, + Eventually.of_forall fun k => mul_pos hc (hr k)⟩ + have hh := (hd.comp ht).const_mul ((c/θ)^n) + apply hh.congr' + filter_upwards [] with k + have hV : volume.real (ball (0:Euclidean n) 1)≠0 := + (ENNReal.toReal_pos (measure_ball_pos volume 0 zero_lt_one).ne' measure_ball_ne_top).ne' + dsimp only [Function.comp_def] + rw [euclidean_closedBall_real hn x (mul_pos hc (hr k)).le, + euclidean_ball_real hn x (mul_pos hθ (hr k)).le] + rw [div_pow] + field_simp [hV,hθ.ne',hc.ne',(hr k).ne'] + ring + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/EuclideanEulerPairing.lean b/lean/OAI/Geometry/RCD/Sobolev/EuclideanEulerPairing.lean new file mode 100644 index 0000000000000000000000000000000000000000..867a396e511dce7d6392d7db59d8de51227290ed --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/EuclideanEulerPairing.lean @@ -0,0 +1,106 @@ +import OAI.Geometry.RCD.Sobolev.PoissonHarmonicCompactnessInput +import OAI.Geometry.RCD.Sobolev.WeakEulerRigidity + +namespace OAI + +/-! # Reassembling weak Euclidean Euler pairings -/ + +open Set Metric MeasureTheory Function +open scoped InnerProductSpace BigOperators ContDiff + +noncomputable section +namespace RegularPointCoordinates + +theorem interior_test_mul_integrable {n : ℕ} {S : ℝ} (ψ g : Euclidean n → ℝ) + (hψ : InteriorSmoothTest n S ψ) (hg : ContinuousOn g (ball 0 S)) : + Integrable (fun x => ψ x * g x) (volume : Measure (Euclidean n)) := by + apply (integrableOn_iff_integrable_of_support_subset + ((support_mul_subset_left ψ g).trans (subset_tsupport ψ))).mp + exact (hψ.1.continuous.continuousOn.mul (hg.mono hψ.2.2)).integrableOn_compact' hψ.2.1 + (isClosed_tsupport ψ).measurableSet + +/-- Separate limits of the derivative, value, constant and coordinate +pairings give the weak Euler equation with the limiting coefficients. -/ +theorem euler_equation_of_average_pairings {n : ℕ} {S : ℝ} (hS : 0 < S) + (w : Euclidean n → ℝ) (hw : ContDiffOn ℝ 2 w (ball 0 S)) + (ell : Euclidean n →L[ℝ] ℝ) (k : ℝ) + (hpair : ∀ ψ : Euclidean n → ℝ, InteriorSmoothTest n S ψ → + (volume.real (ball (0 : Euclidean n) S))⁻¹ * + (∫ x in ball 0 S, ψ x * fderiv ℝ w x x) = + (volume.real (ball (0 : Euclidean n) S))⁻¹ * (∫ x in ball 0 S, ψ x * w x) + + (∑ j, ell (EuclideanSpace.single j 1) * + ((volume.real (ball (0 : Euclidean n) S))⁻¹ * (∫ x in ball 0 S, ψ x * x j))) + + k * ((volume.real (ball (0 : Euclidean n) S))⁻¹ * (∫ x in ball 0 S, ψ x))) : + ∀ x ∈ ball 0 S, fderiv ℝ w x x = w x + ell x + k := by + have hvol : volume.real (ball (0 : Euclidean n) S) ≠ 0 := + ne_of_gt (ENNReal.toReal_pos (ne_of_gt (measure_ball_pos volume 0 hS)) measure_ball_ne_top) + apply euler_equation_of_test_integrals w hw ell k + intro ψ hψ hs hsub + have htest : InteriorSmoothTest n S ψ := ⟨hψ, hs, hsub⟩ + have hD : ContDiffOn ℝ 1 (fderiv ℝ w) (ball 0 S) := + hw.fderiv_of_isOpen isOpen_ball (by norm_num) + have iD : IntegrableOn (fun x => ψ x * fderiv ℝ w x x) (ball 0 S) volume := + (interior_test_mul_integrable ψ (fun x => fderiv ℝ w x x) htest + (hD.continuousOn.clm_apply continuousOn_id)).integrableOn + have iw : IntegrableOn (fun x => ψ x * w x) (ball 0 S) volume := + (interior_test_mul_integrable ψ w htest hw.continuousOn).integrableOn + have il : IntegrableOn (fun x => ψ x * ell x) (ball 0 S) volume := + (interior_test_mul_integrable ψ ell htest ell.continuous.continuousOn).integrableOn + have iψ : IntegrableOn ψ (ball (0 : Euclidean n) S) volume := + (hψ.continuous.integrable_of_hasCompactSupport hs).integrableOn + have icoord (j : Fin n) : IntegrableOn (fun x : Euclidean n => ψ x * x j) (ball 0 S) volume := + (interior_test_mul_integrable ψ (fun x => x j) htest + (EuclideanSpace.proj j).continuous.continuousOn).integrableOn + have hell : (∫ x in ball 0 S, ψ x * ell x) = + ∑ j, ell (EuclideanSpace.single j 1) * (∫ x in ball 0 S, ψ x * x j) := by + calc + _ = ∫ x in ball 0 S, ∑ j, ell (EuclideanSpace.single j 1) * (ψ x * x j) := by + apply integral_congr_ae + filter_upwards [] with x + rw [← euclidean_linear_form_sum ell x, Finset.mul_sum] + apply Finset.sum_congr rfl + intro j _ + ring + _ = _ := by + rw [integral_finsetSum Finset.univ (fun j _ => (icoord j).const_mul _)] + simp only [integral_const_mul] + have hp := hpair ψ htest + have hp' : (∫ x in ball 0 S, ψ x * fderiv ℝ w x x) = + (∫ x in ball 0 S, ψ x * w x) + (∫ x in ball 0 S, ψ x * ell x) + + k * (∫ x in ball 0 S, ψ x) := by + rw [hell] + have hf : (volume.real (ball (0 : Euclidean n) S))⁻¹ * + ((∫ x in ball 0 S, ψ x * w x) + + (∑ j, ell (EuclideanSpace.single j 1) * (∫ x in ball 0 S, ψ x * x j)) + + k * (∫ x in ball 0 S, ψ x)) = + (volume.real (ball (0 : Euclidean n) S))⁻¹ * (∫ x in ball 0 S, ψ x * w x) + + (∑ j, ell (EuclideanSpace.single j 1) * + ((volume.real (ball (0 : Euclidean n) S))⁻¹ * (∫ x in ball 0 S, ψ x * x j))) + + k * ((volume.real (ball (0 : Euclidean n) S))⁻¹ * (∫ x in ball 0 S, ψ x)) := by + rw [mul_add, mul_add, Finset.mul_sum] + have hsum : (∑ j, (volume.real (ball (0 : Euclidean n) S))⁻¹ * + (ell (EuclideanSpace.single j 1) * (∫ x in ball 0 S, ψ x * x j))) = + ∑ j, ell (EuclideanSpace.single j 1) * + ((volume.real (ball (0 : Euclidean n) S))⁻¹ * (∫ x in ball 0 S, ψ x * x j)) := by + apply Finset.sum_congr rfl + intro j _ + ring + rw [hsum] + ring + exact (mul_left_cancel₀ (inv_ne_zero hvol)) (hp.trans hf.symm) + have hid : (fun x : Euclidean n => ψ x * (fderiv ℝ w x x - w x - ell x - k)) = + fun x => ((ψ x * fderiv ℝ w x x - ψ x * w x) - ψ x * ell x) - k * ψ x := by + funext x + ring + have hc₁ := integral_sub ((iD.sub iw).sub il) (iψ.const_mul k) + have hc₂ := integral_sub (iD.sub iw) il + have hc₃ := integral_sub iD iw + simp only [Pi.sub_apply] at hc₁ hc₂ hc₃ + rw [hid, hc₁, hc₂, hc₃, integral_const_mul, hp'] + ring + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/EuclideanHarmonicHessianConstruction.lean b/lean/OAI/Geometry/RCD/Sobolev/EuclideanHarmonicHessianConstruction.lean new file mode 100644 index 0000000000000000000000000000000000000000..3ac24a5fdaf4c8b825e88618eb7262513fd17598 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/EuclideanHarmonicHessianConstruction.lean @@ -0,0 +1,78 @@ +import OAI.Geometry.RCD.Heat.EuclideanRadialKernelDerivative +import OAI.Geometry.RCD.Harmonic.EuclideanHarmonicL1 +import OAI.Geometry.RCD.Metric.VolumeRigidityInput + +namespace OAI + +/-! # The Euclidean harmonic Hessian input from radial averaging -/ + +open Set Metric Filter MeasureTheory +open scoped ContDiff Convolution Topology + +noncomputable section +namespace RegularPointCoordinates + +/-- The exact interior Hessian estimate for normalized harmonic models. +The radius and the function are chosen after the dimensional constant. -/ +theorem euclideanHarmonicHessianInput {n : ℕ} (hn : 0 < n) : EuclideanHarmonicHessianInput n := by + let : NeZero n := ⟨Nat.ne_of_gt hn⟩ + obtain ⟨C,hC,hconv⟩ := euclideanRadialConvolution_hessian_bound n + let I := ∫ x, euclideanRadialWeight n x + have hI : 0 < I := euclideanRadialWeight_mass_pos n + let V := euclideanUnitVolume n + have hV : 0 < V := euclideanUnitVolume_pos n + let M := 64*8^n*C*V/I + refine ⟨M,by dsimp only [M]; positivity,?_⟩ + intro S hS w z hz + obtain ⟨F,hF,hFs,hFsupp,hFeq,hFbound,hFharm⟩ := w.wide_compact_extension hS + have hFint : Integrable F volume := hF.continuous.integrable_of_hasCompactSupport hFs + have hFL1 := w.extension_l1_le hS hF.continuous hFs + (hFsupp.trans (closedBall_subset_ball (by linarith : 7*S/8 < S))) hFbound + let r := S/8 + have hr : 0 < r := by positivity + let c := r^n*I + have hc : 0 < c := mul_pos (pow_pos hr _) hI + let G := F ⋆[ContinuousLinearMap.mul ℝ ℝ,volume] euclideanRadialKernel n r + have hG : ContDiff ℝ ∞ G := (euclideanRadialKernel_compact n hr).contDiff_convolution_right + (ContinuousLinearMap.mul ℝ ℝ) hFint.locallyIntegrable (euclideanRadialKernel_smooth n r) + have hmean (y : Euclidean n) (hy : y ∈ ball 0 (S/2)) : G y = c*F y := by + have hsub : ball y (S/4) ⊆ ball 0 (3*S/4) := by + apply ball_subset_ball' + have hd : dist y 0 < S/2 := hy + linarith + exact harmonic_convolution_radialKernel hF hFs y (by positivity : 0 < S/4) hr + (by dsimp only [r]; linarith) (hFharm.mono hsub) + have heq : w.value =ᶠ[𝓝 z] fun y => c⁻¹ • G y := by + filter_upwards [isOpen_ball.mem_nhds hz] with y hy + have hsmall : y ∈ ball 0 (3*S/4) := (ball_subset_ball (by linarith : S/2 ≤ 3*S/4)) hy + rw [smul_eq_mul,hmean y hy,← hFeq y hsmall] + field_simp + have hjet := (heq.iteratedFDeriv ℝ 2).self_of_nhds + have hbound : ‖iteratedFDeriv ℝ 2 G z‖ ≤ (C/r^2)*(∫ y, |F y|) := by + rw [← norm_iteratedFDeriv_fderiv,norm_iteratedFDeriv_one] + exact hconv r hr F hFint z + have hvolume : volume.real (ball (0 : Euclidean n) S) = S^n*V := by + rw [Measure.real,Measure.addHaar_ball volume 0 hS.le,ENNReal.toReal_mul, + ENNReal.toReal_ofReal (by positivity),finrank_euclideanSpace_fin] + rfl + have halg : c⁻¹*((C/r^2)*(S^n*V)) = M/S^2 := by + dsimp only [c,r,M] + rw [div_pow] + field_simp + ring + rw [← norm_iteratedFDeriv_one (f := fderiv ℝ w.value),norm_iteratedFDeriv_fderiv,hjet, + iteratedFDeriv_const_smul_apply' (hG.of_le (by simp)).contDiffAt,norm_smul,Real.norm_eq_abs, + abs_of_pos (inv_pos.mpr hc)] + calc + c⁻¹*‖iteratedFDeriv ℝ 2 G z‖ ≤ c⁻¹*((C/r^2)*(∫ y, |F y|)) := + mul_le_mul_of_nonneg_left hbound (inv_nonneg.mpr hc.le) + _ ≤ c⁻¹*((C/r^2)*(S^n*V)) := by + rw [← hvolume] + exact mul_le_mul_of_nonneg_left (mul_le_mul_of_nonneg_left hFL1 (by positivity)) (inv_nonneg.mpr hc.le) + _ = _ := halg + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/EuclideanInteriorTorsion.lean b/lean/OAI/Geometry/RCD/Sobolev/EuclideanInteriorTorsion.lean new file mode 100644 index 0000000000000000000000000000000000000000..fa9b022fb5ffd0a63c062dd853a591f895fcbd6f --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/EuclideanInteriorTorsion.lean @@ -0,0 +1,58 @@ +import OAI.Geometry.RCD.Harmonic.EuclideanQuadraticDefect +import OAI.Geometry.RCD.Sobolev.BoundaryTorsionProfile +import OAI.Geometry.RCD.Sobolev.InteriorSmoothTestBounds + +namespace OAI + +/-! # Compact interior torsion tests with a quadratic core -/ + +open Set Metric MeasureTheory +open scoped ContDiff +noncomputable section +namespace RegularPointCoordinates + +def euclideanInteriorTorsion (n : ℕ) (R δ : ℝ) (x : Euclidean n) : ℝ := + δ*boundaryTorsionProfile (euclideanQuadraticDefect n R x/δ) + +theorem euclideanInteriorTorsion_smooth (n : ℕ) (R δ : ℝ) : + ContDiff ℝ ∞ (euclideanInteriorTorsion n R δ) := + contDiff_const.mul (boundaryTorsionProfile_smooth.comp + ((euclideanQuadraticDefect_smooth n R).div_const δ)) + +theorem euclideanInteriorTorsion_nonneg (n : ℕ) (R : ℝ) {δ : ℝ} (hδ : 0≤δ) + (x : Euclidean n) : 0≤euclideanInteriorTorsion n R δ x := + mul_nonneg hδ (boundaryTorsionProfile_nonneg _) + +theorem euclideanInteriorTorsion_support (n : ℕ) (R : ℝ) {δ : ℝ} + (hδ : 0<δ) (hδR : δ f (p+t • y))) x = t^2*(Δ f) (p+t • x) := by + let L : Euclidean n →L[ℝ] Euclidean n := t • ContinuousLinearMap.id ℝ _ + rw [laplacian_eq_iteratedFDeriv_orthonormalBasis _ (EuclideanSpace.basisFun (Fin n) ℝ), + laplacian_eq_iteratedFDeriv_orthonormalBasis f (EuclideanSpace.basisFun (Fin n) ℝ)] + simp only [EuclideanSpace.basisFun_apply] + rw [Finset.mul_sum] + apply Finset.sum_congr rfl + intro i _ + change iteratedFDeriv ℝ 2 (fun y => f (p+L y)) x _ = _ + rw [iteratedFDeriv_comp_affine_apply L f p x 2 hf.contDiffAt] + change (iteratedFDeriv ℝ 2 f (p+t • x)) + (fun j : Fin 2 => t • (![EuclideanSpace.single i 1,EuclideanSpace.single i 1] : Fin 2 → Euclidean n) j) = _ + rw [ContinuousMultilinearMap.map_smul_univ] + simp [pow_two] + +/-- Classical local harmonicity is preserved by an affine dilation. -/ +theorem harmonicOnNhd_affine_dilation {n : ℕ} {f : Euclidean n → ℝ} + (hf : ContDiff ℝ 2 f) {Ω : Set (Euclidean n)} + (hh : HarmonicOnNhd f Ω) (p : Euclidean n) (t : ℝ) : + HarmonicOnNhd (fun y => f (p+t • y)) {x | p+t • x ∈ Ω} := by + have hc : ContDiff ℝ 2 (fun y => f (p+t • y)) := + hf.comp (contDiff_const.add (contDiff_id.const_smul t)) + intro x hx + refine ⟨hc.contDiffAt,?_⟩ + have he := (hh (p+t • x) hx).2.comp_tendsto + ((continuous_const.add (continuous_const_smul t)).tendsto x) + filter_upwards [he] with y hy + change (Δ f) (p+t • y) = 0 at hy + rw [laplacian_affine_dilation hf,hy] + simp only [Pi.zero_apply,mul_zero] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/EuclideanLawLocalizedTests.lean b/lean/OAI/Geometry/RCD/Sobolev/EuclideanLawLocalizedTests.lean new file mode 100644 index 0000000000000000000000000000000000000000..dae6c71456f56ff26d038ab4bd6d6a7117475326 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/EuclideanLawLocalizedTests.lean @@ -0,0 +1,52 @@ +import OAI.Geometry.RCD.Sobolev.WeakLocalizedTests +import OAI.Geometry.RCD.Sobolev.InnerBallCutoffSequence +import Mathlib.MeasureTheory.Measure.Lebesgue.EqHaar + +namespace OAI + +/-! # Interior ball testing of the actual measured approximation laws -/ + +open Set Metric Filter MeasureTheory +open scoped Topology BoundedContinuousFunction +noncomputable section +namespace RegularPointCoordinates + +theorem euclideanBallProbability_null_of_volume_null {n : ℕ} {S : ℝ} + (hS : 0 (1:ℝ))) + rw [integral_indicator hs,integral_indicator hs,setIntegral_const,setIntegral_const] at h + simp only [smul_eq_mul,mul_one,hzreal,mul_zero] at h + exact (measureReal_eq_zero_iff).mp h + +theorem euclideanBallProbability_null_frontier {n : ℕ} {S ρ : ℝ} + (hS : 0 ∫ z in ball 0 ρ, φ z ∂(ν k : Measure (Euclidean n))) atTop + (𝓝 (∫ z in ball 0 ρ, φ z ∂(euclideanBallProbability n S : Measure (Euclidean n)))) := by + have hm := ProbabilityMeasure.tendsto_measure_of_null_frontier_of_tendsto' hν + (euclideanBallProbability_null_frontier hS hρ) + have hmr := (ENNReal.tendsto_toReal (measure_ne_top + (euclideanBallProbability n S : Measure (Euclidean n)) (ball 0 ρ))).comp hm + obtain ⟨χ,hχ,hχ0,hχlim⟩ := inner_ball_cutoff_sequence (0:Euclidean n) hρ + exact weak_localized_test_tendsto hν measurableSet_ball hmr χ hχ hχ0 hχlim φ + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/EuclideanLocalEnergyRigidity.lean b/lean/OAI/Geometry/RCD/Sobolev/EuclideanLocalEnergyRigidity.lean new file mode 100644 index 0000000000000000000000000000000000000000..715b13d028713baf9844020055f54a5ab02ab28f --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/EuclideanLocalEnergyRigidity.lean @@ -0,0 +1,47 @@ +import OAI.Geometry.RCD.Sobolev.EuclideanConstantEnergyRigidity +import OAI.Geometry.RCD.Metric.EuclideanInteriorSmoothExtension + +namespace OAI + +/-! # Constant-energy rigidity on the whole open Euclidean ball -/ + +open Set Metric InnerProductSpace +open scoped ContDiff Topology +noncomputable section +namespace RegularPointCoordinates + +theorem local_harmonic_constant_energy_affine {n : ℕ} {f : Euclidean n → ℝ} + {S C : ℝ} (hS : 0 < S) (hf : ContDiffOn ℝ ∞ f (ball 0 S)) + (hh : HarmonicOnNhd f (ball 0 S)) + (he : ∀ y ∈ ball (0 : Euclidean n) S, ‖fderiv ℝ f y‖^2 = C) : + ∀ x ∈ ball (0 : Euclidean n) S, f x = f 0 + fderiv ℝ f 0 x := by + intro x hx + have hxS : ‖x‖ < S := by simpa only [mem_ball,dist_zero_right] using hx + let R := (‖x‖+S)/2 + have hR : 0 < R := by dsimp only [R]; linarith [norm_nonneg x] + have hRS : R < S := by dsimp only [R]; linarith + have hxR : x ∈ ball (0 : Euclidean n) R := by + simp only [mem_ball,dist_zero_right] + dsimp only [R] + linarith + obtain ⟨F,hF,hEq,hD⟩ := exists_interior_smooth_extension hR hRS hf + have hH : HarmonicOnNhd F (ball 0 R) := by + intro y hy + apply (harmonicAt_congr_nhds (f₁ := F) (f₂ := f) ?_).mpr + · exact hh y ((ball_subset_ball hRS.le) hy) + · filter_upwards [isOpen_ball.mem_nhds hy] with z hz + exact hEq (ball_subset_closedBall hz) + have hE : ∀ y ∈ ball (0 : Euclidean n) R, ‖fderiv ℝ F y‖^2 = C := by + intro y hy + rw [hD hy] + exact he y ((ball_subset_ball hRS.le) hy) + have hA := harmonic_constant_energy_affine (hF.1.of_le (by simp)) hR hH hE x hxR + rw [hEq (ball_subset_closedBall hxR),hEq (ball_subset_closedBall (mem_ball_self hR)), + hD (mem_ball_self hR)] at hA + exact hA + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/EuclideanQuadraticEnergy.lean b/lean/OAI/Geometry/RCD/Sobolev/EuclideanQuadraticEnergy.lean new file mode 100644 index 0000000000000000000000000000000000000000..a74dc0482d1810383974c806f1714f8a22c24d00 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/EuclideanQuadraticEnergy.lean @@ -0,0 +1,47 @@ +import OAI.Geometry.RCD.Sobolev.GradientEnergyFromDensity +import Mathlib.MeasureTheory.Function.L2Space + +namespace OAI + +/-! # Exact quadratic expansion of Euclidean gradient energies -/ + +open MeasureTheory +open scoped RealInnerProductSpace +noncomputable section +namespace RegularPointCoordinates + +theorem euclidean_quadratic_energy {α : Type*} [MeasurableSpace α] + (μ : Measure α) {n : ℕ} (U V : α → Euclidean n) + (hU : AEStronglyMeasurable U μ) (hV : AEStronglyMeasurable V μ) + (hiU : Integrable (fun x => ‖U x‖^2) μ) (hiV : Integrable (fun x => ‖V x‖^2) μ) + (t : ℝ) : + Integrable (fun x => inner ℝ (U x) (V x)) μ ∧ + Integrable (fun x => ‖U x+t • V x‖^2) μ ∧ + (∫ x, ‖U x+t • V x‖^2 ∂μ)= + (∫ x, ‖U x‖^2 ∂μ)+2*t*(∫ x, inner ℝ (U x) (V x) ∂μ)+t^2*(∫ x, ‖V x‖^2 ∂μ) := by + have hcross : Integrable (fun x => inner ℝ (U x) (V x)) μ := by + apply (hiU.add hiV).mono' (hU.inner hV) + apply Filter.Eventually.of_forall + intro x + have hc := norm_inner_le_norm (𝕜 := ℝ) (U x) (V x) + simp only [Pi.add_apply,Real.norm_eq_abs] at hc ⊢ + nlinarith [sq_nonneg (‖U x‖-‖V x‖),sq_nonneg ‖U x‖,sq_nonneg ‖V x‖] + have he (x : α) : ‖U x+t • V x‖^2= + ‖U x‖^2+2*t*inner ℝ (U x) (V x)+t^2*‖V x‖^2 := by + rw [norm_add_sq_real,real_inner_smul_right,norm_smul,Real.norm_eq_abs,mul_pow,sq_abs] + ring + have hf : Integrable (fun x => ‖U x+t • V x‖^2) μ := by + simp_rw [he] + exact (hiU.add (hcross.const_mul (2*t))).add (hiV.const_mul (t^2)) + refine ⟨hcross,hf,?_⟩ + simp_rw [he] + have hsum := integral_add (hiU.add (hcross.const_mul (2*t))) (hiV.const_mul (t^2)) + have hfirst := integral_add hiU (hcross.const_mul (2*t)) + simp only [Pi.add_apply] at hsum hfirst + rw [hsum,hfirst,integral_const_mul,integral_const_mul] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/EuclideanReflectedLaplacian.lean b/lean/OAI/Geometry/RCD/Sobolev/EuclideanReflectedLaplacian.lean new file mode 100644 index 0000000000000000000000000000000000000000..986a7f33e252fbff21be6b9f09c116dda4e69bb0 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/EuclideanReflectedLaplacian.lean @@ -0,0 +1,44 @@ +import OAI.Geometry.RCD.Sobolev.EuclideanConvolutionLaplacian + +namespace OAI + +/-! # Translation and reflection of compact Laplacian tests -/ + +open Set MeasureTheory InnerProductSpace Laplacian +open scoped ContDiff +noncomputable section +namespace RegularPointCoordinates + +theorem scalar_reflection_directional {n : ℕ} {g : Euclidean n → ℝ} + (hg : ContDiff ℝ 1 g) (a x v : Euclidean n) : + fderiv ℝ (fun y => g (a-y)) x v = -fderiv ℝ g (a-x) v := by + have he := (hg.differentiable (by norm_num) (a-x)).hasFDerivAt.comp x + ((hasFDerivAt_const a x).sub (hasFDerivAt_id x)) + change (fderiv ℝ (g ∘ HSub.hSub a) x) v = _ + rw [he.fderiv] + simp + +theorem laplacian_comp_const_sub {n : ℕ} {g : Euclidean n → ℝ} + (hg : ContDiff ℝ 2 g) (a : Euclidean n) : + Δ (fun y => g (a-y)) = fun y => (Δ g) (a-y) := by + have hcomp : ContDiff ℝ 2 (fun y => g (a-y)) := hg.comp (contDiff_const.sub contDiff_id) + rw [laplacian_eq_sum_second_directional hcomp,laplacian_eq_sum_second_directional hg] + funext x + apply Finset.sum_congr rfl + intro i _ + let v : Euclidean n := EuclideanSpace.single i 1 + let dg := fun y => fderiv ℝ g y v + have hdg : ContDiff ℝ 1 dg := (hg.fderiv_right (by norm_num)).clm_apply contDiff_const + have he : (fun y => fderiv ℝ (fun z => g (a-z)) y v)=(fun y => -dg (a-y)) := by + funext y + exact scalar_reflection_directional (hg.of_le (by norm_num)) a y v + change fderiv ℝ (fun y => fderiv ℝ (fun z => g (a-z)) y v) x v=fderiv ℝ dg (a-x) v + rw [he,fderiv_fun_neg] + simp only [neg_apply] + rw [scalar_reflection_directional hdg a x v,neg_neg] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/EuclideanScalarLaplacian.lean b/lean/OAI/Geometry/RCD/Sobolev/EuclideanScalarLaplacian.lean new file mode 100644 index 0000000000000000000000000000000000000000..74c12c3672ccdb5ba1813c385c531ef4c66a1964 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/EuclideanScalarLaplacian.lean @@ -0,0 +1,50 @@ +import OAI.Geometry.RCD.Metric.EuclideanGreenIdentity + +namespace OAI + +/-! # The scalar chain rule needed for compact interior torsion tests -/ + +open Set Metric MeasureTheory InnerProductSpace Laplacian +open scoped ContDiff BigOperators +noncomputable section +namespace RegularPointCoordinates + +theorem scalar_comp_fderiv_apply {n : ℕ} {F : ℝ → ℝ} {g : Euclidean n → ℝ} + {x : Euclidean n} (hg : DifferentiableAt ℝ g x) + (hF : DifferentiableAt ℝ F (g x)) (v : Euclidean n) : + fderiv ℝ (fun z => F (g z)) x v=deriv F (g x)*fderiv ℝ g x v := by + have h := hF.hasDerivAt.comp_hasFDerivAt x hg.hasFDerivAt + simpa only [Function.comp_def,smul_apply,smul_eq_mul] using congrArg (fun L : Euclidean n →L[ℝ] ℝ => L v) h.fderiv + +theorem laplacian_scalar_comp {n : ℕ} {F : ℝ → ℝ} {g : Euclidean n → ℝ} + (hF : ContDiff ℝ 2 F) (hg : ContDiff ℝ 2 g) (x : Euclidean n) : + (Δ (fun z => F (g z))) x=deriv (deriv F) (g x)* + (∑ i : Fin n, (fderiv ℝ g x (EuclideanSpace.single i 1))^2)+deriv F (g x)*(Δ g) x := by + have hd (z v : Euclidean n) : fderiv ℝ (fun y => F (g y)) z v= + deriv F (g z)*fderiv ℝ g z v := + scalar_comp_fderiv_apply (hg.differentiable (by norm_num) z) (hF.differentiable (by norm_num) _) v + have hFd : Differentiable ℝ (deriv F) := hF.differentiable_deriv_two + have hdd (v : Euclidean n) : fderiv ℝ (fun z => fderiv ℝ (fun y => F (g y)) z v) x v= + deriv (deriv F) (g x)*(fderiv ℝ g x v)^2+ + deriv F (g x)*fderiv ℝ (fun z => fderiv ℝ g z v) x v := by + simp_rw [hd] + have hgd : ContDiff ℝ 1 (fun z => fderiv ℝ g z v) := + (hg.fderiv_right (by norm_num)).clm_apply contDiff_const + have hFdcomp : DifferentiableAt ℝ (fun z => deriv F (g z)) x := by + simpa only [Function.comp_def] using (hFd (g x)).comp x (hg.differentiable (by norm_num) x) + rw [fderiv_fun_mul hFdcomp + (hgd.differentiable (by norm_num) x)] + simp only [add_apply,smul_apply,smul_eq_mul] + rw [scalar_comp_fderiv_apply (hg.differentiable (by norm_num) x) (hFd _)] + ring + have hFc : ContDiff ℝ 2 (fun z => F (g z)) := by + simpa only [Function.comp_def] using hF.comp hg + rw [laplacian_eq_sum_second_directional hFc,laplacian_eq_sum_second_directional hg] + simp_rw [hdd] + rw [Finset.sum_add_distrib,Finset.mul_sum,Finset.mul_sum] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/EuclideanWeakHarmonicMean.lean b/lean/OAI/Geometry/RCD/Sobolev/EuclideanWeakHarmonicMean.lean new file mode 100644 index 0000000000000000000000000000000000000000..40c19a87d592257233274f8e5b59c5e745b76703 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/EuclideanWeakHarmonicMean.lean @@ -0,0 +1,63 @@ +import OAI.Geometry.RCD.Metric.EuclideanCompactConvolution +import OAI.Geometry.RCD.Metric.EuclideanMollifierSequence +import OAI.Geometry.RCD.Heat.EuclideanRadialKernel + +namespace OAI + +/-! # A distributional harmonic function satisfies the exact local radial mean identity -/ + +open Set Metric Filter MeasureTheory InnerProductSpace +open scoped ContDiff Convolution Topology +noncomputable section +namespace RegularPointCoordinates + +theorem weak_harmonic_radial_mean {n : ℕ} {f : Euclidean n → ℝ} {S r : ℝ} + (hf : Continuous f) (hfs : HasCompactSupport f) + (hw : EuclideanWeakHarmonicOn f S) (hr : 0 f ⋆[L,volume] euclideanMollifier n k + let C := r^n*(∫ x, euclideanRadialWeight n x) + let R := (S-‖p‖+r)/2 + have hR : 0 (g k ⋆[L,volume] euclideanRadialKernel n r) p) + atTop (𝓝 ((f ⋆[L,volume] euclideanRadialKernel n r) p)) := by + have hc : Continuous (f ⋆[L,volume] euclideanRadialKernel n r) := (euclideanRadialKernel_compact n hr).continuous_convolution_right L + hf.locallyIntegrable (euclideanRadialKernel_smooth n r).continuous + apply (euclideanMollifier_convolution_tendsto hc p).congr' + filter_upwards with k + dsimp only [g] + rw [scalar_convolution_comm f (euclideanMollifier n k), + compact_scalar_convolution_assoc (euclideanMollifier_smooth n k).continuous hf + (euclideanRadialKernel_smooth n r).continuous hfs (euclideanRadialKernel_compact n hr)] + have hright : Tendsto (fun k => C*g k p) atTop (𝓝 (C*f p)) := by + apply ((euclideanMollifier_convolution_tendsto hf p).const_mul C).congr' + filter_upwards with k + dsimp only [g] + rw [scalar_convolution_comm f (euclideanMollifier n k)] + exact tendsto_nhds_unique hleft (hright.congr' (hmean.mono fun _ hk => hk.symm)) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/EuclideanWeakHarmonicSmooth.lean b/lean/OAI/Geometry/RCD/Sobolev/EuclideanWeakHarmonicSmooth.lean new file mode 100644 index 0000000000000000000000000000000000000000..e17f5bcad718dd14545efaab364699f0b2dc738d --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/EuclideanWeakHarmonicSmooth.lean @@ -0,0 +1,80 @@ +import OAI.Geometry.RCD.Coordinates.EuclideanWeakHarmonicRegularity + +namespace OAI + +/-! # Smoothness needed to recover the actual local harmonic model + +The proved radial mean identity identifies the function locally with a +convolution against a compact smooth kernel, at every derivative order. +-/ + +open Set Metric Filter MeasureTheory InnerProductSpace +open scoped ContDiff Convolution Topology +noncomputable section +namespace RegularPointCoordinates + +theorem compact_continuous_weak_harmonic_smooth {n : ℕ} {f : Euclidean n → ℝ} {S : ℝ} + (hf : Continuous f) (hfs : HasCompactSupport f) (hw : EuclideanWeakHarmonicOn f S) : + ContDiffOn ℝ ∞ f (ball 0 S) := by + intro p hp + apply ContDiffAt.contDiffWithinAt + have hpS : ‖p‖ χ x*f x + have hFc : Continuous F := continuous_mul_of_tsupport_subset isOpen_ball hf χ.continuous + (by rw [χ.tsupport_eq]; exact closedBall_subset_ball hbS) + have hFs : HasCompactSupport F := χ.hasCompactSupport.mul_right + have he : EqOn F f (ball 0 a) := by + intro x hx + change χ x*f x=f x + rw [χ.one_of_mem_closedBall (ball_subset_closedBall hx),one_mul] + have hFw : EuclideanWeakHarmonicOn F a := + (hw.mono (by dsimp only [a]; linarith)).congr he.symm + have hpa : p∈ball (0:Euclidean n) a := by + simp only [mem_ball,dist_zero_right] + dsimp only [a] + linarith + have hevent : F =ᶠ[𝓝 p] f := by + filter_upwards [isOpen_ball.mem_nhds hpa] with y hy + exact he hy + exact ((compact_continuous_weak_harmonic_smooth hFc hFs hFw).contDiffAt + (isOpen_ball.mem_nhds hpa)).congr_of_eventuallyEq hevent.symm + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/EuclideanWeakHarmonicSmoothing.lean b/lean/OAI/Geometry/RCD/Sobolev/EuclideanWeakHarmonicSmoothing.lean new file mode 100644 index 0000000000000000000000000000000000000000..4ad93043cbf1f3a6e649ff8ca5bed614d354a523 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/EuclideanWeakHarmonicSmoothing.lean @@ -0,0 +1,55 @@ +import OAI.Geometry.RCD.Sobolev.EuclideanReflectedLaplacian +import OAI.Geometry.RCD.Sobolev.InteriorSmoothTestBounds + +namespace OAI + +/-! # Smooth harmonic local averages of a distributional harmonic function -/ + +open Set Metric Filter MeasureTheory InnerProductSpace Laplacian +open scoped ContDiff Convolution Topology +noncomputable section +namespace RegularPointCoordinates + +/-- The compact-test distributional Laplace equation on one Euclidean ball. -/ +def EuclideanWeakHarmonicOn {n : ℕ} (g : Euclidean n → ℝ) (S : ℝ) : Prop := + ∀ ψ : Euclidean n → ℝ, InteriorSmoothTest n S ψ → ∫ y, g y*(Δ ψ) y=0 + +theorem weak_harmonic_convolution {n : ℕ} {f k : Euclidean n → ℝ} {S r : ℝ} + (hf : LocallyIntegrable f volume) (hk : ContDiff ℝ ∞ k) (hks : HasCompactSupport k) + (hkr : tsupport k⊆closedBall 0 r) (hweak : EuclideanWeakHarmonicOn f S) : + HarmonicOnNhd (f ⋆[ContinuousLinearMap.mul ℝ ℝ,volume] k) (ball 0 (S-r)) := by + have hsmooth := hks.contDiff_convolution_right (ContinuousLinearMap.mul ℝ ℝ) hf hk + have hlap (x : Euclidean n) (hx : x∈ball 0 (S-r)) : + (Δ (f ⋆[ContinuousLinearMap.mul ℝ ℝ,volume] k)) x=0 := by + let ψ := fun y => k (x-y) + have hψ : ContDiff ℝ ∞ ψ := hk.comp (contDiff_const.sub contDiff_id) + have hsupport : tsupport ψ⊆closedBall x r := by + apply closure_minimal _ isClosed_closedBall + intro y hy + have hxy := hkr (subset_tsupport k hy) + rw [mem_closedBall,dist_zero_right] at hxy + rw [mem_closedBall,dist_comm,dist_eq_norm] + exact hxy + have hcompact : HasCompactSupport ψ := + (isCompact_closedBall x r).of_isClosed_subset (isClosed_tsupport _) hsupport + have hsub : tsupport ψ⊆ball 0 S := by + intro y hy + have hyr : dist y x≤r := hsupport hy + have hxS : ‖x‖ b (t i) j) atTop (𝓝 (L (EuclideanSpace.single j 1)))) ∧ + Tendsto (k ∘ t) atTop (𝓝 kLimit) := by + have hmem (i : ℕ) : (b i, k i) ∈ closedBall (0 : Euclidean n × ℝ) C := by + rw [mem_closedBall, dist_zero_right, Prod.norm_def] + apply max_le + · linarith [hbound i, abs_nonneg (k i)] + · rw [Real.norm_eq_abs] + linarith [hbound i, norm_nonneg (b i)] + obtain ⟨z, _hz, t, ht, hconv⟩ := (isCompact_closedBall (0 : Euclidean n × ℝ) C).tendsto_subseq hmem + let L := innerSL ℝ z.1 + have hfst := (continuous_fst.tendsto z).comp hconv + have hsnd := (continuous_snd.tendsto z).comp hconv + refine ⟨t, ht, L, z.2, ?_, ?_⟩ + swap + · exact hsnd + intro j + have hh := (EuclideanSpace.proj j).continuous.tendsto z.1 |>.comp hfst + change Tendsto (fun i => b (t i) j) atTop (𝓝 (z.1 j)) at hh + simpa only [L, innerSL_apply_apply, EuclideanSpace.inner_single_right, one_mul, + conj_trivial] using hh + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/EulerForcing.lean b/lean/OAI/Geometry/RCD/Sobolev/EulerForcing.lean new file mode 100644 index 0000000000000000000000000000000000000000..f30f4d9755cc2546c25f27dfd446f88a7102c48c --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/EulerForcing.lean @@ -0,0 +1,72 @@ +import OAI.Geometry.RCD.Sobolev.MeanPoincareInput + +namespace OAI + +/-! # The scalar forcing in the local Euler equation -/ + +open Set Metric MeasureTheory + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + +/-- Local Poincare turns the gradient estimate for Gamma(f,v)-v into +an actual scalar Euler equation with a constant and an L2 error. The error +has a global Sobolev representative, ready for the transport test. -/ +theorem LocalMeanPoincareInput.euler_forcing {K : ℝ} {n : ℕ} {hX : NoncollapsedRCD K n X} + (hinput : LocalMeanPoincareInput hX) {κ : ℝ} (hκ : 0 ≤ κ) : + ∃ C : ℝ, 1 ≤ C ∧ ∀ (p : X) (R : ℝ), 0 < R → -κ ≤ K * R ^ 2 → + ∀ (f v G η : SobolevSpace (hausdorff n X) hX.quadratic), + (SobolevSpace.toLp (hausdorff n X) hX.quadratic G =ᵐ[ + (hausdorff n X).restrict (ball p R)] localGamma (hausdorff n X) hX.quadratic f v) → + (SobolevSpace.toLp (hausdorff n X) hX.quadratic η =ᵐ[ + (hausdorff n X).restrict (ball p R)] fun _ => (1 : ℝ)) → + ∃ (k : ℝ) (e : SobolevSpace (hausdorff n X) hX.quadratic), + localGamma (hausdorff n X) hX.quadratic f v =ᵐ[ + (hausdorff n X).restrict (ball p R)] + (fun x => SobolevSpace.toLp (hausdorff n X) hX.quadratic v x + k + + SobolevSpace.toLp (hausdorff n X) hX.quadratic e x) ∧ + (∫ x in ball p R, (SobolevSpace.toLp (hausdorff n X) hX.quadratic e x) ^ 2 + ∂hausdorff n X) ≤ (C * R) ^ 2 * + ∫ x in ball p (8 * R), localGamma (hausdorff n X) hX.quadratic (G - v) (G - v) x + ∂hausdorff n X := by + obtain ⟨C, hC, hP⟩ := hinput κ hκ + refine ⟨C, hC, ?_⟩ + intro p R hR hcurv f v G η hG hη + let μ := hausdorff n X + let hQ := hX.quadratic + obtain ⟨k, hk⟩ := hP p R hR hcurv (G - v) + let e := (G - v) - k • η + have hsub : SobolevSpace.toLp μ hQ (G - v) =ᵐ[μ] + fun x => SobolevSpace.toLp μ hQ G x - SobolevSpace.toLp μ hQ v x := by + rw [map_sub] + exact Lp.coeFn_sub _ _ + have he : SobolevSpace.toLp μ hQ e =ᵐ[μ.restrict (ball p R)] + fun x => SobolevSpace.toLp μ hQ (G - v) x - k := by + change SobolevSpace.toLp μ hQ ((G - v) - k • η) =ᵐ[_] _ + rw [map_sub, map_smul] + filter_upwards [ae_restrict_of_ae (Lp.coeFn_sub (SobolevSpace.toLp μ hQ (G - v)) + (k • SobolevSpace.toLp μ hQ η)), + ae_restrict_of_ae (Lp.coeFn_smul k (SobolevSpace.toLp μ hQ η)), hη] with x hs hm hηx + rw [hs] + simp only [Pi.sub_apply, hm, Pi.smul_apply, smul_eq_mul] + change SobolevSpace.toLp μ hQ (G - v) x - k * + SobolevSpace.toLp (hausdorff n X) hX.quadratic η x = _ + rw [hηx, mul_one] + refine ⟨k, e, ?_, ?_⟩ + · filter_upwards [hG, he, ae_restrict_of_ae hsub] with x hg hx hs + rw [hx, hs] + change SobolevSpace.toLp μ hQ G x = localGamma μ hQ f v x at hg + change localGamma μ hQ f v x = _ + linarith only [hg] + · have hsquare : (fun x => (SobolevSpace.toLp μ hQ e x) ^ 2) =ᵐ[μ.restrict (ball p R)] + fun x => (SobolevSpace.toLp μ hQ (G - v) x - k) ^ 2 := he.pow_const 2 + rw [integral_congr_ae hsquare] + exact hk + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/EulerOrthogonality.lean b/lean/OAI/Geometry/RCD/Sobolev/EulerOrthogonality.lean new file mode 100644 index 0000000000000000000000000000000000000000..8c9fb82cfce6b66b8b7468e4f76174a2cf2aee0e --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/EulerOrthogonality.lean @@ -0,0 +1,102 @@ +import OAI.Geometry.RCD.Harmonic.EuclideanHarmonicModel +import OAI.Geometry.RCD.Sobolev.EulerRigidity + +namespace OAI + +/-! # The Euclidean contradiction for the sharp projection -/ + +open Set Metric MeasureTheory +open scoped InnerProductSpace ENNReal BigOperators + +noncomputable section +namespace RegularPointCoordinates + +/-- Euler rigidity gives an exact affine identity in the same normalized +L2 space in which orthogonality passes to the limit. -/ +theorem EuclideanHarmonicModel.euler_moments {n : ℕ} {S r : ℝ} + (w : EuclideanHarmonicModel n S) (hS : 0 < S) (hr : r ≤ S) + (ell : Euclidean n →L[ℝ] ℝ) (k : ℝ) + (heuler : ∀ x ∈ ball (0 : Euclidean n) S, + fderiv ℝ w.value x x = w.value x + ell x + k) : + ∃ (c : ℝ) (b : Fin n → ℝ), + w.moments hr none = c • w.moments hr (some none) + + ∑ i, b i • w.moments hr (some (some i)) := by + have haff := (euler_rigidity_of_contDiffOn hS w.harmonic.contDiffOn heuler).2.2 + let c := w.value 0 + let b : Fin n → ℝ := fun i => fderiv ℝ w.value 0 (EuclideanSpace.single i 1) + let one : Lp ℝ 2 (volume.restrict (ball (0 : Euclidean n) r)) := + restrictedOne volume (ball 0 r) measure_ball_ne_top + let u := euclideanCoordinateLp n r + have hone : one =ᵐ[volume.restrict (ball 0 r)] fun _ => (1 : ℝ) := by + simpa only [one, restrictedOne, indicator_univ] using + (indicatorConstLp_coeFn (p := (2 : ℝ≥0∞)) + (μ := volume.restrict (ball (0 : Euclidean n) r)) + (hs := MeasurableSet.univ) (hμs := by simpa only [Measure.restrict_apply_univ] + using (measure_ball_ne_top (μ := (volume : Measure (Euclidean n))) (x := 0) (r := r))) + (c := (1 : ℝ))) + have hraw : w.localLp hr = c • one + ∑ i, b i • u i := by + apply Lp.ext + filter_upwards [w.localLp_coe hr, hone, + ae_restrict_mem measurableSet_ball, + Lp.coeFn_add (c • one) (∑ i, b i • u i), Lp.coeFn_smul c one, + Lp.coeFn_finsetSum Finset.univ (fun i => b i • u i), + (ae_all_iff.2 fun i => Lp.coeFn_smul (b i) (u i)), + (ae_all_iff.2 (euclideanCoordinateLp_coe n r))] + with x hw ho hx ha hc hs hb hu + rw [hw, ha] + simp only [Pi.add_apply, hc, hs, Pi.smul_apply, smul_eq_mul, ho, mul_one, + Finset.sum_apply] + have hsum : (∑ i, (b i • u i) x) = fderiv ℝ w.value 0 x := by + calc + _ = ∑ i, b i * x i := by + apply Finset.sum_congr rfl + intro i _ + rw [hb i] + simp only [Pi.smul_apply, smul_eq_mul] + change b i * euclideanCoordinateLp n r i x = _ + rw [hu i] + _ = _ := euclidean_linear_form_sum (fderiv ℝ w.value 0) x + rw [hsum] + exact haff x ((ball_subset_ball hr) hx) + refine ⟨c, b, ?_⟩ + change normalizeLocalL2 volume (ball 0 r) measure_ball_ne_top (w.localLp hr) = + c • normalizeLocalL2 volume (ball 0 r) measure_ball_ne_top one + + ∑ i, b i • normalizeLocalL2 volume (ball 0 r) measure_ball_ne_top (u i) + rw [hraw] + simp only [normalizeLocalL2, smul_add, Finset.smul_sum, smul_comm c, + smul_comm _ (‖one‖⁻¹), one] + +/-- An Euler solution orthogonal to the affine span has zero local norm. -/ +theorem EuclideanHarmonicModel.euler_orthogonal_norm_zero {n : ℕ} {S r : ℝ} + (w : EuclideanHarmonicModel n S) (hS : 0 < S) (hr : r ≤ S) + (ell : Euclidean n →L[ℝ] ℝ) (k : ℝ) + (heuler : ∀ x ∈ ball (0 : Euclidean n) S, + fderiv ℝ w.value x x = w.value x + ell x + k) + (hone : ⟪w.moments hr none, w.moments hr (some none)⟫_ℝ = 0) + (hcoords : ∀ i, ⟪w.moments hr none, w.moments hr (some (some i))⟫_ℝ = 0) : + ⟪w.moments hr none, w.moments hr none⟫_ℝ = 0 := by + obtain ⟨c, b, heq⟩ := w.euler_moments hS hr ell k heuler + have hi := congrArg (fun g => ⟪w.moments hr none, g⟫_ℝ) heq + simp only [inner_add_right, inner_smul_right, inner_sum, + hone, hcoords, mul_zero, Finset.sum_const_zero, add_zero] at hi + exact hi + +/-- The limit of unit residuals cannot simultaneously satisfy the Euler +equation and be orthogonal to the affine coordinate span. -/ +theorem EuclideanHarmonicModel.no_unit_euler_residual {n : ℕ} {S r : ℝ} + (w : EuclideanHarmonicModel n S) (hS : 0 < S) (hr : r ≤ S) + (ell : Euclidean n →L[ℝ] ℝ) (k : ℝ) + (heuler : ∀ x ∈ ball (0 : Euclidean n) S, + fderiv ℝ w.value x x = w.value x + ell x + k) + (hunit : ⟪w.moments hr none, w.moments hr none⟫_ℝ = 1) + (hone : ⟪w.moments hr none, w.moments hr (some none)⟫_ℝ = 0) + (hcoords : ∀ i, ⟪w.moments hr none, w.moments hr (some (some i))⟫_ℝ = 0) : False := by + have hh := w.euler_orthogonal_norm_zero hS hr ell k heuler hone hcoords + rw [hunit] at hh + exact one_ne_zero hh + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/EulerPairingLimit.lean b/lean/OAI/Geometry/RCD/Sobolev/EulerPairingLimit.lean new file mode 100644 index 0000000000000000000000000000000000000000..6bbbb14eb8eb4d180081fdc093e3a0ec96487bc2 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/EulerPairingLimit.lean @@ -0,0 +1,62 @@ +import OAI.Geometry.RCD.Sobolev.WeakEulerRigidity +import OAI.Geometry.RCD.Sobolev.FiniteMomentConvergence + +namespace OAI + +/-! # Passing the projected Euler equation through weak pairings -/ + +open Filter +open scoped InnerProductSpace Topology BigOperators + +noncomputable section +namespace RegularPointCoordinates + +/-- A bounded test kills an error tending to zero in L2. The spaces may +vary with the rescaling index. -/ +theorem inner_tendsto_zero_of_norm_tendsto_zero + {H : ℕ → Type*} [∀ i, NormedAddCommGroup (H i)] [∀ i, InnerProductSpace ℝ (H i)] + (p e : ∀ i, H i) {C : ℝ} (hp : ∀ i, ‖p i‖ ≤ C) + (he : Tendsto (fun i => ‖e i‖) atTop (𝓝 0)) : + Tendsto (fun i => ⟪p i, e i⟫_ℝ) atTop (𝓝 0) := by + apply tendsto_zero_iff_norm_tendsto_zero.mpr + apply squeeze_zero (fun i => norm_nonneg _) (fun i => + (norm_inner_le_norm (p i) (e i)).trans + (mul_le_mul_of_nonneg_right (hp i) (norm_nonneg _))) + simpa only [mul_zero] using (tendsto_const_nhds.mul he) + +/-- Every term in the exact projected equation has a separate weak or strong convergence input. This calculation identifies its limit +without assuming a limiting Euler equation. -/ +theorem euler_pairing_limit {n : ℕ} + {H : ℕ → Type*} [∀ i, NormedAddCommGroup (H i)] [∀ i, InnerProductSpace ℝ (H i)] + (p d w one e : ∀ i, H i) (u : ∀ i, Fin n → H i) + (ell : ℕ → Fin n → ℝ) (k : ℕ → ℝ) + (hid : ∀ i, d i = w i + ∑ j, ell i j • u i j + k i • one i + e i) + {C D W O K : ℝ} {L U : Fin n → ℝ} + (hp : ∀ i, ‖p i‖ ≤ C) (he : Tendsto (fun i => ‖e i‖) atTop (𝓝 0)) + (hd : Tendsto (fun i => ⟪p i, d i⟫_ℝ) atTop (𝓝 D)) + (hw : Tendsto (fun i => ⟪p i, w i⟫_ℝ) atTop (𝓝 W)) + (ho : Tendsto (fun i => ⟪p i, one i⟫_ℝ) atTop (𝓝 O)) + (hu : ∀ j, Tendsto (fun i => ⟪p i, u i j⟫_ℝ) atTop (𝓝 (U j))) + (hl : ∀ j, Tendsto (fun i => ell i j) atTop (𝓝 (L j))) + (hk : Tendsto k atTop (𝓝 K)) : + D = W + ∑ j, L j * U j + K * O := by + have hs : Tendsto (fun i => ∑ j, ell i j * ⟪p i, u i j⟫_ℝ) atTop + (𝓝 (∑ j, L j * U j)) := + tendsto_finsetSum _ (fun j _ => (hl j).mul (hu j)) + have herr := inner_tendsto_zero_of_norm_tendsto_zero p e hp he + have hlim := ((hw.add hs).add (hk.mul ho)).add herr + have hi (i : ℕ) : ⟪p i, d i⟫_ℝ = + ⟪p i, w i⟫_ℝ + ∑ j, ell i j * ⟪p i, u i j⟫_ℝ + + k i * ⟪p i, one i⟫_ℝ + ⟪p i, e i⟫_ℝ := by + rw [hid i] + simp only [inner_add_right, inner_sum, inner_smul_right] + have hlim' : Tendsto (fun i => ⟪p i, d i⟫_ℝ) atTop + (𝓝 (W + ∑ j, L j * U j + K * O)) := by + simpa only [hi, add_zero] using hlim + exact tendsto_nhds_unique hd hlim' + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/EulerRigidity.lean b/lean/OAI/Geometry/RCD/Sobolev/EulerRigidity.lean new file mode 100644 index 0000000000000000000000000000000000000000..a0ad7b811be707ebd16bed75a7514680edbbfdec --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/EulerRigidity.lean @@ -0,0 +1,188 @@ +import Mathlib.Analysis.Calculus.ContDiff.Comp +import Mathlib.Analysis.Calculus.Deriv.Mul +import Mathlib.Analysis.Calculus.MeanValue +import Mathlib.Tactic + +namespace OAI + +/-! +# Rigidity of the Euler equation on a ball + +The Euclidean limit in the sharp projection argument satisfies an Euler +equation with affine forcing. Two derivatives suffice to force the limit +to be affine; harmonic analyticity is not needed for this step. +-/ + +open Set Filter +open scoped Topology + +namespace RegularPointCoordinates + +/-- A continuous function constant immediately to the right has the same +value at the endpoint. -/ +theorem eq_zero_of_continuousAt_eq_on_Ioo {g : ℝ → ℝ} {c R : ℝ} + (hR : 0 < R) (hg : ContinuousAt g 0) + (heq : ∀ t ∈ Ioo 0 R, g t = c) : g 0 = c := by + have hevent : g =ᶠ[𝓝[>] 0] fun _ => c := by + filter_upwards [Ioo_mem_nhdsGT hR] with t ht + exact heq t ht + exact tendsto_nhds_unique_of_eventuallyEq + (hg.tendsto.mono_left nhdsWithin_le_nhds) tendsto_const_nhds hevent + +/-- Differentiating the scalar Euler equation cancels the first derivatives. -/ +theorem scalar_euler_derivative {f f' f'' : ℝ → ℝ} {ell k R t : ℝ} + (ht : t ∈ Ioo (-R) R) + (hf : HasDerivAt f (f' t) t) (hf' : HasDerivAt f' (f'' t) t) + (heuler : ∀ s ∈ Ioo (-R) R, s * f' s = f s + ell * s + k) : + t * f'' t = ell := by + have hevent : (fun s => s * f' s) =ᶠ[𝓝 t] + (fun s => f s + ell * s + k) := by + filter_upwards [Ioo_mem_nhds ht.1 ht.2] with s hs + exact heuler s hs + have hleft := (hasDerivAt_id t).mul hf' + have hright := (hf.add ((hasDerivAt_id t).const_mul ell)).add_const k + have heq := (hleft.congr_of_eventuallyEq hevent.symm).unique hright + dsimp at heq + linarith + +/-- A twice differentiable scalar ray satisfying the affine-forced Euler +equation has zero linear forcing and the affine value at time one. -/ +theorem scalar_euler_ray_affine {f f' f'' : ℝ → ℝ} {ell k R : ℝ} + (hR : 1 < R) + (hf : ∀ t ∈ Ioo (-R) R, HasDerivAt f (f' t) t) + (hf' : ∀ t ∈ Ioo (-R) R, HasDerivAt f' (f'' t) t) + (heuler : ∀ t ∈ Ioo (-R) R, t * f' t = f t + ell * t + k) : + ell = 0 ∧ k = -f 0 ∧ f 1 = f 0 + f' 0 := by + have hRpos : 0 < R := lt_trans zero_lt_one hR + have hzero : (0 : ℝ) ∈ Ioo (-R) R := ⟨by linarith, hRpos⟩ + have hone : (1 : ℝ) ∈ Ioo 0 R := ⟨zero_lt_one, hR⟩ + have hell : ell = 0 := by + have := scalar_euler_derivative hzero (hf 0 hzero) (hf' 0 hzero) heuler + simpa using this.symm + have hk : k = -f 0 := by + have := heuler 0 hzero + simp only [zero_mul, mul_zero, add_zero] at this + linarith + have hsecond : ∀ t ∈ Ioo 0 R, f'' t = 0 := by + intro t ht + have h := scalar_euler_derivative ⟨by linarith [ht.1], ht.2⟩ + (hf t ⟨by linarith [ht.1], ht.2⟩) (hf' t ⟨by linarith [ht.1], ht.2⟩) heuler + rw [hell] at h + exact (mul_eq_zero.mp h).resolve_left (ne_of_gt ht.1) + have hconst : ∀ t ∈ Ioo 0 R, f' t = f' 1 := by + intro t ht + apply isOpen_Ioo.is_const_of_deriv_eq_zero (convex_Ioo 0 R).isPreconnected + (fun s hs => (hf' s ⟨by linarith [hs.1], hs.2⟩).differentiableAt.differentiableWithinAt) + (fun s hs => ?_) ht hone + rw [(hf' s ⟨by linarith [hs.1], hs.2⟩).deriv, hsecond s hs] + rfl + have hfirst0 : f' 0 = f' 1 := + eq_zero_of_continuousAt_eq_on_Ioo hRpos (hf' 0 hzero).continuousAt hconst + have hvalue : ∀ t ∈ Ioo 0 R, f t - t * f' 1 = f 1 - f' 1 := by + intro t ht + have hderiv : ∀ s ∈ Ioo 0 R, + HasDerivAt (fun s => f s - s * f' 1) 0 s := by + intro s hs + have h := (hf s ⟨by linarith [hs.1], hs.2⟩).sub + ((hasDerivAt_id s).mul_const (f' 1)) + change HasDerivAt (fun s => f s - s * f' 1) (f' s - 1 * f' 1) s at h + simpa only [one_mul, hconst s hs, sub_self] using h + have h := isOpen_Ioo.is_const_of_deriv_eq_zero (convex_Ioo 0 R).isPreconnected + (fun s hs => (hderiv s hs).differentiableAt.differentiableWithinAt) + (fun s hs => (hderiv s hs).deriv) ht hone + simpa using h + have hvalue0 : f 0 = f 1 - f' 1 := by + have hcont : ContinuousAt (fun t => f t - t * f' 1) 0 := + (hf 0 hzero).continuousAt.sub (continuousAt_id.mul continuousAt_const) + simpa using eq_zero_of_continuousAt_eq_on_Ioo hRpos hcont hvalue + exact ⟨hell, hk, by linarith⟩ + +variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] + +/-- At the origin, differentiating the Euler equation forces its linear +forcing to vanish. The derivative of the radial factor cancels `Dw 0`. -/ +theorem euler_linear_forcing_eq_zero {w : E → ℝ} + {Dw : E → E →L[ℝ] ℝ} {DDw : E →L[ℝ] (E →L[ℝ] ℝ)} + {ell : E →L[ℝ] ℝ} {k R : ℝ} (hR : 0 < R) + (hw : HasFDerivAt w (Dw 0) 0) (hDw : HasFDerivAt Dw DDw 0) + (heuler : ∀ x ∈ Metric.ball 0 R, Dw x x = w x + ell x + k) : + ell = 0 := by + have hevent : (fun x => Dw x x) =ᶠ[𝓝 0] (fun x => w x + ell x + k) := by + filter_upwards [Metric.ball_mem_nhds (0 : E) hR] with x hx + exact heuler x hx + have hleft := hDw.clm_apply (hasFDerivAt_id (0 : E)) + have hright := (hw.add ell.hasFDerivAt).add_const k + have hlin : Dw 0 = Dw 0 + ell := by + simpa using (hleft.congr_of_eventuallyEq hevent.symm).unique hright + have : (0 : E →L[ℝ] ℝ) = ell := by + apply add_left_cancel (a := Dw 0) + simpa using hlin + exact this.symm + +/-- The affine conclusion on a ball, with the two derivative fields +explicit. No continuity of the second derivative is required. -/ +theorem euler_rigidity_of_hasFDerivAt {w : E → ℝ} + {Dw : E → E →L[ℝ] ℝ} {DDw : E → E →L[ℝ] (E →L[ℝ] ℝ)} + {ell : E →L[ℝ] ℝ} {k R : ℝ} (hR : 0 < R) + (hw : ∀ x ∈ Metric.ball 0 R, HasFDerivAt w (Dw x) x) + (hDw : ∀ x ∈ Metric.ball 0 R, HasFDerivAt Dw (DDw x) x) + (heuler : ∀ x ∈ Metric.ball 0 R, Dw x x = w x + ell x + k) : + ell = 0 ∧ k = -w 0 ∧ ∀ x ∈ Metric.ball 0 R, w x = w 0 + Dw 0 x := by + have hzero : (0 : E) ∈ Metric.ball 0 R := Metric.mem_ball_self hR + refine ⟨euler_linear_forcing_eq_zero hR (hw 0 hzero) (hDw 0 hzero) heuler, ?_, ?_⟩ + · have h := heuler 0 hzero + simp only [map_zero, add_zero] at h + linarith + · intro x hx + by_cases hxzero : x = 0 + · simp [hxzero] + have hxnorm : 0 < ‖x‖ := norm_pos_iff.mpr hxzero + have hxR : ‖x‖ < R := by simpa [Metric.mem_ball, dist_zero_right] using hx + have hradius : 1 < R / ‖x‖ := (lt_div_iff₀ hxnorm).mpr (by simpa using hxR) + have hray : ∀ t ∈ Ioo (-(R / ‖x‖)) (R / ‖x‖), t • x ∈ Metric.ball 0 R := by + intro t ht + rw [Metric.mem_ball, dist_zero_right, norm_smul, Real.norm_eq_abs] + have h := mul_lt_mul_of_pos_right (abs_lt.mpr ht) hxnorm + simpa [div_mul_cancel₀ R (ne_of_gt hxnorm)] using h + have hline (t : ℝ) : HasDerivAt (fun t : ℝ => t • x) x t := by + simpa using (hasDerivAt_id t).smul_const x + have hfirst : ∀ t ∈ Ioo (-(R / ‖x‖)) (R / ‖x‖), + HasDerivAt (fun t : ℝ => w (t • x)) (Dw (t • x) x) t := by + intro t ht + exact (hw (t • x) (hray t ht)).comp_hasDerivAt t (hline t) + have hsecond : ∀ t ∈ Ioo (-(R / ‖x‖)) (R / ‖x‖), + HasDerivAt (fun t : ℝ => Dw (t • x) x) (DDw (t • x) x x) t := by + intro t ht + have hD : HasDerivAt (fun s : ℝ => Dw (s • x)) (DDw (t • x) x) t := + (hDw (t • x) (hray t ht)).comp_hasDerivAt t (hline t) + have hc : HasDerivAt (fun _ : ℝ => x) (0 : E) t := hasDerivAt_const t x + have h := hD.clm_apply hc + simpa only [map_zero, add_zero] using h + have hrule : ∀ t ∈ Ioo (-(R / ‖x‖)) (R / ‖x‖), + t * Dw (t • x) x = w (t • x) + ell x * t + k := by + intro t ht + simpa [map_smul, smul_eq_mul, mul_comm] using heuler (t • x) (hray t ht) + have h := (scalar_euler_ray_affine hradius hfirst hsecond hrule).2.2 + simpa using h + +/-- `C²` version of the Euler rigidity theorem used for the smooth +Euclidean limit in `pi:limiting-euler-equation`. -/ +theorem euler_rigidity_of_contDiffOn {w : E → ℝ} {ell : E →L[ℝ] ℝ} {k R : ℝ} + (hR : 0 < R) (hw : ContDiffOn ℝ 2 w (Metric.ball 0 R)) + (heuler : ∀ x ∈ Metric.ball 0 R, + fderiv ℝ w x x = w x + ell x + k) : + ell = 0 ∧ k = -w 0 ∧ + ∀ x ∈ Metric.ball 0 R, w x = w 0 + fderiv ℝ w 0 x := by + apply euler_rigidity_of_hasFDerivAt (DDw := fderiv ℝ (fderiv ℝ w)) hR _ _ heuler + · intro x hx + exact ((hw.contDiffAt (Metric.isOpen_ball.mem_nhds hx)).differentiableAt + (by norm_num)).hasFDerivAt + · intro x hx + have hderiv : ContDiffOn ℝ 1 (fderiv ℝ w) (Metric.ball 0 R) := + hw.fderiv_of_isOpen Metric.isOpen_ball (by norm_num) + exact ((hderiv.contDiffAt (Metric.isOpen_ball.mem_nhds hx)).differentiableAt + (by norm_num)).hasFDerivAt + +end RegularPointCoordinates + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/EventualDiagonalLevel.lean b/lean/OAI/Geometry/RCD/Sobolev/EventualDiagonalLevel.lean new file mode 100644 index 0000000000000000000000000000000000000000..4dc0eae7221fb3e35af53a60689ddb04e3019910 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/EventualDiagonalLevel.lean @@ -0,0 +1,30 @@ +import Mathlib.Data.Nat.Find +import Mathlib.Order.Filter.AtTopBot.Basic + +namespace OAI + +/-! # A slowly increasing level satisfying each prescribed eventual requirement -/ + +open Filter +noncomputable section +namespace RegularPointCoordinates + +theorem exists_eventual_diagonal_level (P : ℕ → ℕ → Prop) + (hP : ∀ m, ∀ᶠ k in atTop, P m k) : + ∃ d : ℕ → ℕ, Tendsto d atTop atTop ∧ ∀ᶠ k in atTop, P (d k) k := by + classical + choose N hN using fun m => eventually_atTop.1 (hP m) + let d : ℕ → ℕ := fun k => Nat.findGreatest (fun m => N m ≤ k) k + have hd : Tendsto d atTop atTop := by + refine tendsto_atTop.2 fun m => ?_ + filter_upwards [eventually_ge_atTop (max m (N m))] with k hk + exact Nat.le_findGreatest ((le_max_left _ _).trans hk) ((le_max_right _ _).trans hk) + refine ⟨d,hd,?_⟩ + filter_upwards [eventually_ge_atTop (N 0)] with k hk + exact hN (d k) k (Nat.findGreatest_spec (P := fun m => N m ≤ k) (Nat.zero_le k) hk) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/EverySubsequenceEventual.lean b/lean/OAI/Geometry/RCD/Sobolev/EverySubsequenceEventual.lean new file mode 100644 index 0000000000000000000000000000000000000000..6c6226cea2449bbd1baf3a2af727dddc694d2a72 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/EverySubsequenceEventual.lean @@ -0,0 +1,21 @@ +import Mathlib.Order.Filter.AtTopBot.CountablyGenerated + +namespace OAI + +/-! # Eventual properties detected on further subsequences -/ + +open Filter +namespace RegularPointCoordinates + +theorem eventually_of_every_subsequence (P : ℕ → Prop) + (hP : ∀ α : ℕ → ℕ, StrictMono α → ∃ β : ℕ → ℕ, + ∀ᶠ k in atTop, P (α (β k))) : ∀ᶠ k in atTop, P k := by + by_contra hn + obtain ⟨α,hα,hbad⟩ := extraction_of_frequently_atTop (not_eventually.mp hn) + obtain ⟨β,hβ⟩ := hP α hα + obtain ⟨k,hk⟩ := hβ.exists + exact hbad (β k) hk + +end RegularPointCoordinates + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/ExhaustingLipschitzLimits.lean b/lean/OAI/Geometry/RCD/Sobolev/ExhaustingLipschitzLimits.lean new file mode 100644 index 0000000000000000000000000000000000000000..11bceff8613e17d7e34bd21d2b5d4ef41ac4d76c --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/ExhaustingLipschitzLimits.lean @@ -0,0 +1,49 @@ +import OAI.Geometry.RCD.Metric.BallLimitGluing + +namespace OAI + +/-! # Compatible local Lipschitz limits on all of Euclidean space -/ + +open Set Metric Filter +open scoped NNReal Topology +noncomputable section +namespace RegularPointCoordinates + +theorem glue_exhausting_lipschitz_balls {n : ℕ} (T : ℕ → ℝ) + (hT : Tendsto T atTop atTop) (G : ℕ → Euclidean n → ℝ) (L : ℕ → ℝ≥0) + (hG : ∀ m, LipschitzWith (L m) (G m)) + (heq : ∀ i j, EqOn (G i) (G j) (ball 0 (min (T i) (T j)))) : + ∃ g : Euclidean n → ℝ, Continuous g ∧ + (∀ m, EqOn g (G m) (ball 0 (T m))) ∧ + ∀ ρ : ℝ, ∃ C : ℝ≥0, LipschitzOnWith C g (closedBall 0 ρ) := by + classical + have hcover (z : Euclidean n) : ∃ m, ‖z‖ < T m := + (hT.eventually_gt_atTop ‖z‖).exists + let g : Euclidean n → ℝ := fun z => G (Nat.find (hcover z)) z + have hgm (m : ℕ) : EqOn g (G m) (ball 0 (T m)) := by + intro z hz + apply heq (Nat.find (hcover z)) m + simpa only [mem_ball,dist_zero_right,lt_min_iff] using + And.intro (Nat.find_spec (hcover z)) + (by simpa only [mem_ball,dist_zero_right] using hz : ‖z‖ < T m) + refine ⟨g,?_,hgm,?_⟩ + · apply continuous_iff_continuousAt.mpr + intro z + obtain ⟨m,hm⟩ := hcover z + apply (hG m).continuous.continuousAt.congr_of_eventuallyEq + filter_upwards [isOpen_ball.mem_nhds (show z ∈ ball (0 : Euclidean n) (T m) by + simpa only [mem_ball,dist_zero_right] using hm)] + with y hy + exact hgm m hy + · intro ρ + obtain ⟨m,hm⟩ := (hT.eventually_gt_atTop ρ).exists + refine ⟨L m,?_⟩ + intro x hx y hy + rw [hgm m (closedBall_subset_ball hm hx),hgm m (closedBall_subset_ball hm hy)] + exact hG m x y + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/ExponentialSobolev.lean b/lean/OAI/Geometry/RCD/Sobolev/ExponentialSobolev.lean new file mode 100644 index 0000000000000000000000000000000000000000..a17634119bee9ec2a2ec248aee458e336ba005ad --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/ExponentialSobolev.lean @@ -0,0 +1,61 @@ +import OAI.Geometry.RCD.Heat.RenyiFisherBounds +import OAI.Analysis.RCDHeat.GeodesicCauchy + +namespace OAI + +/-! # Actual positive Sobolev densities with a controlled logarithm -/ + +open Set Filter MeasureTheory Metric +open scoped ENNReal NNReal Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +omit [ProperSpace X] in + theorem exponential_sobolev (p : X) {a c : ℝ} (ha : 0 ≤ a) (hc : 0 < c) + (hi : Integrable (fun x => Real.exp (-(2*a)*dist p x)) μ) : + ∃ ρ : SobolevSpace μ hQ, + SobolevSpace.toLp μ hQ ρ =ᵐ[μ] fun x => c*Real.exp (-a*dist p x) := by + let E := exp_neg_dist_memLp_two μ p a hi + let u := c • E.toLp (fun x => Real.exp (-a*dist p x)) + have hu : (u : X → ℝ) =ᵐ[μ] fun x => c*Real.exp (-a*dist p x) := by + filter_upwards [Lp.coeFn_smul c (E.toLp _),E.coeFn_toLp] with x hx he + simpa only [u,Pi.smul_apply,smul_eq_mul,he] using hx + have hg := lipschitzWith_const_mul_real (exp_neg_dist_lipschitz p ha) c + have hm := (exp_neg_dist_slopeMajorant μ p ha hi).const_mul μ hc.le + have he := energyLp_le_of_lipschitz_majorant μ hg hu hm + have hfin : energyLp μ u ≠ ∞ := ne_top_of_le_ne_top ENNReal.ofReal_ne_top he + exact ⟨⟨u,hfin⟩,hu⟩ + +omit [MeasurableSpace X] [BorelSpace X] [ProperSpace X] in + theorem exponential_log_lipschitz (p : X) {a c : ℝ} (ha : 0 ≤ a) (hc : 0 < c) : + LipschitzWith ⟨a,ha⟩ (fun x => Real.log (c*Real.exp (-a*dist p x))) := by + have he : (fun x => Real.log (c*Real.exp (-a*dist p x))) = + fun x => Real.log c-a*dist p x := by + funext x + rw [Real.log_mul hc.ne' (Real.exp_ne_zero _),Real.log_exp] + ring + rw [he] + have hn : ‖-a‖₊*1=(⟨a,ha⟩:ℝ≥0) := by + ext + change |-a| * 1=a + rw [abs_neg,abs_of_nonneg ha,mul_one] + have hh := (LipschitzWith.const (Real.log c)).add + (lipschitzWith_const_mul_real (LipschitzWith.dist_right p) (-a)) + rw [zero_add,hn] at hh + simpa only [neg_mul,sub_eq_add_neg] using hh + +omit [MeasurableSpace X] [BorelSpace X] [ProperSpace X] in + theorem exponential_bounded (p : X) {a c : ℝ} (ha : 0 ≤ a) (hc : 0 ≤ c) (x : X) : + c*Real.exp (-a*dist p x) ≤ c := by + have he : Real.exp (-a*dist p x) ≤ 1 := by + rw [Real.exp_le_one_iff] + exact mul_nonpos_of_nonpos_of_nonneg (neg_nonpos.mpr ha) dist_nonneg + simpa only [mul_one] using mul_le_mul_of_nonneg_left he hc + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/FiniteColumnEnergy.lean b/lean/OAI/Geometry/RCD/Sobolev/FiniteColumnEnergy.lean new file mode 100644 index 0000000000000000000000000000000000000000..442108e651e919bef6c6a0c2da6a854abc0ebacd --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/FiniteColumnEnergy.lean @@ -0,0 +1,141 @@ +import OAI.Geometry.RCD.Harmonic.GramDirectionalError +import OAI.Geometry.RCD.Coordinates.NormalizedLocalL2 + +namespace OAI + +/-! # From finite row errors to every covector in the same frame -/ + +open Set MeasureTheory +open scoped BigOperators ENNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +/-- The energy of a finite coordinate combination is bounded by the sum +of the row energies. No pointwise bound on the row errors is needed. -/ +theorem localGamma_column_le_diagonal_sum {n : ℕ} + (u : Fin n → SobolevSpace μ hQ) (b : Euclidean n) : + ∀ᵐ x ∂μ, localGamma μ hQ (sobolevColumnMap μ hQ u b) (sobolevColumnMap μ hQ u b) x ≤ + (n : ℝ) * ‖b‖ ^ 2 * ∑ j, localGamma μ hQ (u j) (u j) x := by + have hdiag : ∀ᵐ x ∂μ, ∀ i, localGamma μ hQ (u i) (u i) x = + (SobolevSpace.minimalSlope μ hQ (u i) x) ^ 2 := + ae_all_iff.mpr fun i => localGamma_self μ hQ (u i) + have hcross : ∀ᵐ x ∂μ, ∀ i j, |localGamma μ hQ (u i) (u j) x| ≤ + (localGamma μ hQ (u i) (u i) x + localGamma μ hQ (u j) (u j) x) / 2 := by + have hb : ∀ᵐ x ∂μ, ∀ i j, |localGamma μ hQ (u i) (u j) x| ≤ + SobolevSpace.minimalSlope μ hQ (u i) x * SobolevSpace.minimalSlope μ hQ (u j) x := + ae_all_iff.mpr fun i => ae_all_iff.mpr fun j => localGamma_abs_le μ hQ (u i) (u j) + filter_upwards [hb, hdiag] with x hx hd + intro i j + rw [hd i, hd j] + nlinarith only [hx i j, sq_nonneg (SobolevSpace.minimalSlope μ hQ (u i) x - + SobolevSpace.minimalSlope μ hQ (u j) x)] + filter_upwards [hdiag, hcross, localGamma_column_pair μ hQ u b b] with x hd hc he + rw [he] + have hterm (i j : Fin n) : (b i * b j) * localGamma μ hQ (u i) (u j) x ≤ + ‖b‖ ^ 2 * ((localGamma μ hQ (u i) (u i) x + localGamma μ hQ (u j) (u j) x) / 2) := by + have hi : |b i| ≤ ‖b‖ := by simpa only [Real.norm_eq_abs] using PiLp.norm_apply_le b i + have hj : |b j| ≤ ‖b‖ := by simpa only [Real.norm_eq_abs] using PiLp.norm_apply_le b j + have hp : |b i * b j| ≤ ‖b‖ ^ 2 := by + rw [abs_mul, pow_two] + exact mul_le_mul hi hj (abs_nonneg _) (norm_nonneg b) + calc + _ ≤ |(b i * b j) * localGamma μ hQ (u i) (u j) x| := le_abs_self _ + _ = |b i * b j| * |localGamma μ hQ (u i) (u j) x| := abs_mul _ _ + _ ≤ _ := mul_le_mul hp (hc i j) (abs_nonneg _) (sq_nonneg _) + calc + _ ≤ ∑ i : Fin n, ∑ j : Fin n, + ‖b‖ ^ 2 * ((localGamma μ hQ (u i) (u i) x + localGamma μ hQ (u j) (u j) x) / 2) := + Finset.sum_le_sum fun i _ => Finset.sum_le_sum fun j _ => hterm i j + _ = _ := by + simp only [add_div, mul_add, Finset.sum_add_distrib, ← Finset.mul_sum, + Finset.sum_const, Finset.card_univ, Fintype.card_fin, nsmul_eq_mul, + ← Finset.sum_div] + ring + +/-- A common bound for the integrated row errors controls every +covector error in the same coordinate frame. -/ +theorem column_energy_bound {n : ℕ} (u : Fin n → SobolevSpace μ hQ) (Ω : Set X) + {E : ℝ} (hE : ∀ j, (∫ x in Ω, localGamma μ hQ (u j) (u j) x ∂μ) ≤ E) + (b : Euclidean n) : + (∫ x in Ω, localGamma μ hQ (sobolevColumnMap μ hQ u b) (sobolevColumnMap μ hQ u b) x ∂μ) ≤ + (n : ℝ) ^ 2 * E * ‖b‖ ^ 2 := by + have hsum := integral_mono_ae (μ := μ.restrict Ω) (localGamma_memL1 μ hQ _ _).integrableOn + ((integrable_finsetSum Finset.univ (fun j _ => + (localGamma_memL1 μ hQ (u j) (u j)).integrableOn)).const_mul ((n : ℝ) * ‖b‖ ^ 2)) + (ae_restrict_of_ae (localGamma_column_le_diagonal_sum μ hQ u b)) + rw [integral_const_mul, integral_finsetSum Finset.univ (fun j _ => + (localGamma_memL1 μ hQ (u j) (u j)).integrableOn)] at hsum + have hh := mul_le_mul_of_nonneg_left (Finset.sum_le_sum fun j (_ : j ∈ (Finset.univ : Finset (Fin n))) => hE j) + (show 0 ≤ (n : ℝ) * ‖b‖ ^ 2 by positivity) + apply hsum.trans + calc + _ ≤ (n : ℝ) * ‖b‖ ^ 2 * ((n : ℝ) * E) := by simpa only [Finset.sum_const, Finset.card_univ, Fintype.card_fin, nsmul_eq_mul] using hh + _ = _ := by ring + +/-- The same estimate works for averaged energy, without requiring the +averaging measure to have a strictly positive volume. -/ +theorem weighted_column_energy_bound {n : ℕ} (u : Fin n → SobolevSpace μ hQ) + (Ω : Set X) {w E : ℝ} (hw : 0 ≤ w) + (hE : ∀ j, w * (∫ x in Ω, localGamma μ hQ (u j) (u j) x ∂μ) ≤ E) + (b : Euclidean n) : + w * (∫ x in Ω, localGamma μ hQ (sobolevColumnMap μ hQ u b) (sobolevColumnMap μ hQ u b) x ∂μ) ≤ + (n : ℝ) ^ 2 * E * ‖b‖ ^ 2 := by + have hi := integral_mono_ae (μ := μ.restrict Ω) (localGamma_memL1 μ hQ _ _).integrableOn + ((integrable_finsetSum Finset.univ (fun j _ => + (localGamma_memL1 μ hQ (u j) (u j)).integrableOn)).const_mul ((n : ℝ) * ‖b‖ ^ 2)) + (ae_restrict_of_ae (localGamma_column_le_diagonal_sum μ hQ u b)) + rw [integral_const_mul, integral_finsetSum Finset.univ (fun j _ => + (localGamma_memL1 μ hQ (u j) (u j)).integrableOn)] at hi + have hh := mul_le_mul_of_nonneg_left (Finset.sum_le_sum fun j (_ : j ∈ (Finset.univ : Finset (Fin n))) => hE j) + (show 0 ≤ (n : ℝ) * ‖b‖ ^ 2 by positivity) + apply (mul_le_mul_of_nonneg_left hi hw).trans + calc + _ = (n : ℝ) * ‖b‖ ^ 2 * ∑ j, w * (∫ x in Ω, localGamma μ hQ (u j) (u j) x ∂μ) := by rw [← Finset.mul_sum]; ring + _ ≤ (n : ℝ) * ‖b‖ ^ 2 * ((n : ℝ) * E) := by simpa only [Finset.sum_const, Finset.card_univ, Fintype.card_fin, nsmul_eq_mul] using hh + _ = _ := by ring + +omit [BorelSpace X] [ProperSpace X] in +/-- Finite rowwise value bounds also control the normalized local L2 +value of every coordinate combination. -/ +theorem normalized_column_norm_le {n : ℕ} (u : Fin n → SobolevSpace μ hQ) + (Ω : Set X) (hfin : μ Ω ≠ ∞) {D : ℝ} + (hrow : ∀ j, ‖normalizeLocalL2 μ Ω hfin (SobolevSpace.restrictLp μ hQ Ω (u j))‖ ≤ D) + (b : Euclidean n) : + ‖normalizeLocalL2 μ Ω hfin (SobolevSpace.restrictLp μ hQ Ω (sobolevColumnMap μ hQ u b))‖ ≤ + (n : ℝ) * D * ‖b‖ := by + have hid : normalizeLocalL2 μ Ω hfin (SobolevSpace.restrictLp μ hQ Ω (sobolevColumnMap μ hQ u b)) = + ∑ j, b j • normalizeLocalL2 μ Ω hfin (SobolevSpace.restrictLp μ hQ Ω (u j)) := by + simp only [sobolevColumnMap_apply, map_sum, map_smul, normalizeLocalL2, Finset.smul_sum] + exact Finset.sum_congr rfl fun j _ => smul_comm _ _ _ + rw [hid] + calc + _ ≤ ∑ j, ‖b j • normalizeLocalL2 μ Ω hfin (SobolevSpace.restrictLp μ hQ Ω (u j))‖ := norm_sum_le _ _ + _ ≤ ∑ _j : Fin n, ‖b‖ * D := by + apply Finset.sum_le_sum + intro j _ + rw [norm_smul] + exact mul_le_mul (PiLp.norm_apply_le b j) (hrow j) (norm_nonneg _) (norm_nonneg b) + _ = _ := by simp; ring + +omit [BorelSpace X] [ProperSpace X] in +/-- Squared row errors remain squared after passage to every covector. -/ +theorem normalized_column_sq_le {n : ℕ} (u : Fin n → SobolevSpace μ hQ) + (Ω : Set X) (hfin : μ Ω ≠ ∞) {E : ℝ} (hE : 0 ≤ E) + (hrow : ∀ j, ‖normalizeLocalL2 μ Ω hfin (SobolevSpace.restrictLp μ hQ Ω (u j))‖ ^ 2 ≤ E) + (b : Euclidean n) : + ‖normalizeLocalL2 μ Ω hfin (SobolevSpace.restrictLp μ hQ Ω (sobolevColumnMap μ hQ u b))‖ ^ 2 ≤ + (n : ℝ) ^ 2 * E * ‖b‖ ^ 2 := by + have hnorm := normalized_column_norm_le μ hQ u Ω hfin + (fun j => by simpa only [Real.sqrt_sq (norm_nonneg _)] using Real.sqrt_le_sqrt (hrow j)) b + have hh := (sq_le_sq₀ (norm_nonneg _) (by positivity : 0 ≤ (n : ℝ) * Real.sqrt E * ‖b‖)).mpr hnorm + simpa only [mul_pow, Real.sq_sqrt hE] using hh + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/FiniteDimensionalBochnerAE.lean b/lean/OAI/Geometry/RCD/Sobolev/FiniteDimensionalBochnerAE.lean new file mode 100644 index 0000000000000000000000000000000000000000..0541e79946c078e2b4e27f18c2c9af4cd3c37952 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/FiniteDimensionalBochnerAE.lean @@ -0,0 +1,65 @@ +import OAI.Geometry.RCD.Coordinates.FiniteBilinearAE +import OAI.Geometry.RCD.Sobolev.BochnerShiftedQuadratic +import OAI.Geometry.RCD.Metric.ShiftedRadonBounds + +namespace OAI + +/-! # A common null set for the finite-dimensional Bochner correction -/ + +open Set Filter MeasureTheory TopologicalSpace + +noncomputable section +namespace RegularPointCoordinates + +/-- The scalar finite-dimensional Bochner bound, initially available in +each fixed direction, holds in every direction outside one null set. -/ +theorem ae_finite_bochner_shift_nonneg {X : Type*} [MeasurableSpace X] {m : ℕ} + (μ : Measure X) (B : X → Euclidean m →ₗ[ℝ] Euclidean m →ₗ[ℝ] ℝ) + (D : X → Euclidean m →ₗ[ℝ] ℝ) (N : ℝ) (hN : 0 hBE a)] with x hx + have hc : IsClosed {a : Euclidean m | (D x a)^2≤N*B x a a} := + isClosed_le ((D x).toContinuousLinearMap.continuous.pow 2) + (continuous_const.mul (bilinear_diagonal_continuous (B x))) + have hsub : S ⊆ {a : Euclidean m | (D x a)^2≤N*B x a a} := fun a ha => hx ⟨a,ha⟩ + have hall := closure_minimal hsub hc + rw [hdense.closure_eq] at hall + exact fun a b => finite_bochner_shift_nonneg N (B x a a) (D x a) b hN (hall (mem_univ a)) + +/-- The diagonal bilinear density equals the Radon--Nikodym density of +the full positive measure. -/ +theorem bochnerRadonDensity_diagonal {X : Type*} [MeasurableSpace X] {m : ℕ} + (μ : Measure X) [SigmaFinite μ] (M : PositiveBilinearMeasure X (Euclidean m)) + (a : Euclidean m) : + (fun x => bochnerRadonDensity μ M x a a) =ᵐ[μ] + fun x => ((M.measure a).rnDeriv μ x).toReal := by + have h := signed_rnDeriv_toSignedMeasure μ (M.measure a) + rw [M.measure_toSignedMeasure] at h + exact (bochnerRadonDensity_rep μ M a a).symm.trans h + +/-- The scalar dimensional inequality gives the full shifted measure +lower bound, with no absolute-continuity assumption on its Bochner mass. -/ +theorem shiftedBochnerLowerBound_of_finite_dimension {X : Type*} [MeasurableSpace X] {m : ℕ} + (μ : Measure X) [SigmaFinite μ] (M : PositiveBilinearMeasure X (Euclidean m)) + {Ω : Set X} [IsFiniteMeasure (μ.restrict Ω)] + (ell : Euclidean m →ₗ[ℝ] ℝ) (N : ℝ) (hN : 0 ell) N hN hBE + apply shiftedBochnerLowerBound_of_density μ M ell N + intro a b + filter_upwards [hpos,ae_restrict_of_ae (bochnerRadonDensity_diagonal μ M a)] with x hx he + have hh := hx a b + rw [he] at hh + linarith only [hh] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/FiniteDirectedCut.lean b/lean/OAI/Geometry/RCD/Sobolev/FiniteDirectedCut.lean new file mode 100644 index 0000000000000000000000000000000000000000..8ce856a4c569c2231f0a2eae0c679e91be8c65c7 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/FiniteDirectedCut.lean @@ -0,0 +1,85 @@ +import Mathlib + +namespace OAI + +/-! # A directed cut captures one quarter of the off-diagonal weight + +The finite counting step in Rajala--Sturm, Lemma 3.1. Averaging over all +Boolean cuts is implemented by the two coordinate-flip bijections. +-/ + +open Finset +noncomputable section +namespace RegularPointCoordinates +variable {ι : Type*} [Fintype ι] [DecidableEq ι] + +private def flipColor (i : ι) : (ι → Bool) ≃ (ι → Bool) where + toFun b k := if k=i then !(b k) else b k + invFun b k := if k=i then !(b k) else b k + left_inv := by + intro b + funext k + by_cases hk : k=i <;> simp [hk] + right_inv := by + intro b + funext k + by_cases hk : k=i <;> simp [hk] + +def directedCutWeight (w : ι → ι → ℝ) (b : ι → Bool) : ℝ := + ∑ i, ∑ j, if b i=true ∧ b j=false then w i j else 0 + +private theorem four_color_sum (i j : ι) (hij : i≠j) (a : ℝ) : + 4*(∑ b : ι → Bool, if b i=true ∧ b j=false then a else 0)= + (Fintype.card (ι → Bool):ℝ)*a := by + let F := fun b : ι → Bool => if b i=true ∧ b j=false then a else 0 + have hflip (e : (ι → Bool) ≃ (ι → Bool)) : (∑ b, F (e b))=∑ b, F b := + e.sum_comp F + have hpoint (b : ι → Bool) : + F b+F (flipColor i b)+F (flipColor j b)+F (flipColor i (flipColor j b))=a := by + cases hi : b i <;> cases hj : b j <;> simp [F,flipColor,hij,hij.symm,hi,hj] + have h := congrArg (fun f : (ι → Bool) → ℝ => ∑ b, f b) (funext hpoint) + simp only [Finset.sum_add_distrib,Finset.sum_const,Finset.card_univ,nsmul_eq_mul] at h + rw [hflip (flipColor i),hflip (flipColor j)] at h + have hboth : (∑ b, F (flipColor i (flipColor j b)))=∑ b, F b := by + exact ((flipColor j).sum_comp (fun b => F (flipColor i b))).trans (hflip (flipColor i)) + rw [hboth] at h + change 4*(∑ b, F b)=_ + linarith only [h] + +theorem sum_directedCutWeight (w : ι → ι → ℝ) (hdiag : ∀ i, w i i=0) : + 4*(∑ b : ι → Bool, directedCutWeight w b)= + (Fintype.card (ι → Bool):ℝ)*(∑ i, ∑ j, w i j) := by + unfold directedCutWeight + have hs : (∑ b : ι → Bool, ∑ i, ∑ j, if b i=true ∧ b j=false then w i j else 0)= + ∑ i, ∑ j, ∑ b : ι → Bool, if b i=true ∧ b j=false then w i j else 0 := by + rw [Finset.sum_comm] + apply Finset.sum_congr rfl + intro i _ + rw [Finset.sum_comm] + rw [hs] + simp_rw [Finset.mul_sum] + apply Finset.sum_congr rfl + intro i _ + apply Finset.sum_congr rfl + intro j _ + by_cases hij : i=j + · subst j + simp [hdiag] + · simpa only [Finset.mul_sum] using four_color_sum i j hij (w i j) + +theorem exists_directedCutWeight_ge_quarter (w : ι → ι → ℝ) (hdiag : ∀ i, w i i=0) : + ∃ b : ι → Bool, (∑ i, ∑ j, w i j)/4≤directedCutWeight w b := by + by_contra h + have h : ∀ b : ι → Bool, directedCutWeight w b<(∑ i, ∑ j, w i j)/4 := + fun b => lt_of_not_ge (fun hb => h ⟨b,hb⟩) + have hs := Finset.sum_lt_sum (s:=univ) + (fun b _ => (h b).le) ⟨(fun _ => false),mem_univ _,h _⟩ + rw [Finset.sum_const,Finset.card_univ,nsmul_eq_mul] at hs + have he := sum_directedCutWeight w hdiag + nlinarith only [hs,he] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/FiniteDisjointIntegral.lean b/lean/OAI/Geometry/RCD/Sobolev/FiniteDisjointIntegral.lean new file mode 100644 index 0000000000000000000000000000000000000000..02b25fe4f42e3be33064481392e6e2483f7a74a4 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/FiniteDisjointIntegral.lean @@ -0,0 +1,25 @@ +import Mathlib.MeasureTheory.Integral.Bochner.Set + +namespace OAI + +/-! # Adding the defect on finitely many disjoint balls -/ + +open Set Metric MeasureTheory +noncomputable section +namespace RegularPointCoordinates + +theorem finite_disjoint_setIntegral_le {X ι : Type*} [MeasurableSpace X] [Fintype ι] + (μ : Measure X) {Ω : Set X} {s : ι → Set X} {f : X → ℝ} + (hf : IntegrableOn f Ω μ) (hf0 : ∀ᵐ x ∂μ.restrict Ω, 0 ≤ f x) + (hs : ∀ i, MeasurableSet (s i)) (hsub : ∀ i, s i ⊆ Ω) + (hdisj : Pairwise (fun i j => Disjoint (s i) (s j))) : + (∑ i, ∫ x in s i, f x ∂μ) ≤ ∫ x in Ω, f x ∂μ := by + have hu : (⋃ i, s i) ⊆ Ω := iUnion_subset hsub + rw [← integral_iUnion_fintype hs hdisj (fun i => hf.mono_set (hsub i))] + exact setIntegral_mono_set hf hf0 (Filter.Eventually.of_forall fun _ hx => hu hx) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/FiniteDominatedCurveLimit.lean b/lean/OAI/Geometry/RCD/Sobolev/FiniteDominatedCurveLimit.lean new file mode 100644 index 0000000000000000000000000000000000000000..978515c69524003441d0611f6efe65926dfb07d6 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/FiniteDominatedCurveLimit.lean @@ -0,0 +1,79 @@ +import OAI.Geometry.RCD.Sobolev.DominatedTestConvergence +import OAI.Geometry.RCD.Sobolev.LocalLipschitzDenseCauchy + +namespace OAI + +/-! # A common-time curve from dominated laws and local test bounds -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped Topology ENNReal NNReal BoundedContinuousFunction CompactlySupported +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] [SeparableSpace X] + (σ : FiniteMeasure X) [(σ : Measure X).Regular] + +omit [SeparableSpace X] in +theorem dominated_probability_continuous {T : Type*} [TopologicalSpace T] + (Q : T → ProbabilityMeasure X) (hQ : ∀ t, (Q t : Measure X) ≤ σ) + (hT : ∀ (g : X →ᵇ ℝ) (L : ℝ≥0), LipschitzWith L g → HasCompactSupport g → + Continuous (fun t => ∫ x, g x ∂(Q t : Measure X))) : Continuous Q := by + apply ProbabilityMeasure.continuous_iff_forall_continuous_integral.mpr + intro f + have hf : MemLp f 2 (σ : Measure X) := MemLp.of_bound f.continuous.aestronglyMeasurable ‖f‖ + (Eventually.of_forall f.norm_coe_le_norm) + apply continuous_iff_continuousAt.mpr + intro t + apply Metric.tendsto_nhds.mpr + intro ε hε + obtain ⟨g,L,hL,hgc,hgi,hclose⟩ := finite_measure_compact_lipschitz_L1 (σ : Measure X) hf + (ε := ε/4) (by positivity) + let G : C_c(X,ℝ) := ⟨⟨g,hL.continuous⟩,hgc⟩ + let b := G.toBoundedContinuousFunction + have he (s : T) : dist (∫ x, f x ∂(Q s : Measure X)) (∫ x, g x ∂(Q s : Measure X)) < ε/4 := by + have hb := integral_difference_le_of_domination (σ : Measure X) (Q s : Measure X) + (C := 1) (by simp) (by simpa using hQ s) (hf.integrable (by norm_num)) hgi + have hb' : dist (∫ x, f x ∂(Q s : Measure X)) (∫ x, g x ∂(Q s : Measure X)) ≤ + ∫ x, |f x-g x| ∂(σ : Measure X) := by simpa using hb + exact hb'.trans_lt hclose + have hg : Tendsto (fun s => ∫ x, g x ∂(Q s : Measure X)) (𝓝 t) + (𝓝 (∫ x, g x ∂(Q t : Measure X))) := (hT b L hL hgc).continuousAt + filter_upwards [Metric.tendsto_nhds.mp hg (ε/2) (half_pos hε)] with s hs + have htri := dist_triangle4 (∫ x, f x ∂(Q s : Measure X)) (∫ x, g x ∂(Q s : Measure X)) + (∫ x, g x ∂(Q t : Measure X)) (∫ x, f x ∂(Q t : Measure X)) + rw [dist_comm (∫ x, g x ∂(Q t : Measure X))] at htri + have := he s + have := he t + linarith + +theorem finite_dominated_curve_limit {T : Type*} [MetricSpace T] + (P : ℕ → T → ProbabilityMeasure X) (s : ℕ → T) (hs : DenseRange s) + (hP : ∀ k t, (P k t : Measure X) ≤ σ) + (hL : ∀ (g : X →ᵇ ℝ) (L : ℝ≥0), LipschitzWith L g → HasCompactSupport g → + ∀ t, ∃ (A : ℝ≥0) (r : ℝ), 0 < r ∧ ∀ k, + LipschitzOnWith A (fun t => ∫ x, g x ∂(P k t : Measure X)) (ball t r)) + (hD : ∀ j, ∃ Q : ProbabilityMeasure X, Tendsto (fun k => P k (s j)) atTop (𝓝 Q)) : + ∃ Q : T → ProbabilityMeasure X, Continuous Q ∧ + ∀ t, Tendsto (fun k => P k t) atTop (𝓝 (Q t)) ∧ (Q t : Measure X) ≤ σ := by + have hc (g : X →ᵇ ℝ) (j : ℕ) : CauchySeq (fun k => ∫ x, g x ∂(P k (s j) : Measure X)) := by + obtain ⟨Q,hQ⟩ := hD j + exact (ProbabilityMeasure.tendsto_iff_forall_integral_tendsto.mp hQ g).cauchySeq + have ht (t : T) := dominated_probability_limit_of_test_cauchy σ (fun k => P k t) + (fun k => hP k t) (fun g L hg hgc => local_lipschitz_cauchy_of_dense + (fun k t => ∫ x, g x ∂(P k t : Measure X)) s hs (hL g L hg hgc) (hc g) t) + choose Q hlim hQ using ht + refine ⟨Q,dominated_probability_continuous σ Q hQ ?_,fun t => ⟨hlim t,hQ t⟩⟩ + intro g L hg hgc + obtain ⟨f,hfc,hf⟩ := local_lipschitz_limit_of_dense + (fun k t => ∫ x, g x ∂(P k t : Measure X)) s hs (hL g L hg hgc) (hc g) + have he : (fun t => ∫ x, g x ∂(Q t : Measure X)) = f := by + funext t + exact tendsto_nhds_unique (ProbabilityMeasure.tendsto_iff_forall_integral_tendsto.mp (hlim t) g) (hf t) + rw [he] + exact hfc + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/FiniteEnergyRepresentatives.lean b/lean/OAI/Geometry/RCD/Sobolev/FiniteEnergyRepresentatives.lean new file mode 100644 index 0000000000000000000000000000000000000000..0c052485dde14437a3c0e870aed863b6fccd0aa1 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/FiniteEnergyRepresentatives.lean @@ -0,0 +1,101 @@ +import OAI.Geometry.RCD.Coordinates.CoordinateBilinear +import OAI.Geometry.RCD.Harmonic.GramDirectionalError +import OAI.Geometry.RCD.Harmonic.CenteredColumns + +namespace OAI + +/-! # Sobolev representatives of the finite Poisson Gram form -/ + +open Set Filter MeasureTheory +open scoped NNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +omit [BorelSpace X] in +theorem sobolev_sum_representative {ι : Type*} (s : Finset ι) + (u : ι → SobolevSpace μ hQ) (f : ι → X → ℝ) {Ω : Set X} + (h : ∀ i ∈ s, SobolevSpace.toLp μ hQ (u i) =ᵐ[μ.restrict Ω] f i) : + SobolevSpace.toLp μ hQ (∑ i ∈ s, u i) =ᵐ[μ.restrict Ω] fun x => ∑ i ∈ s, f i x := by + classical + induction s using Finset.induction_on with + | empty => + simp only [Finset.sum_empty, map_zero] + exact ae_restrict_of_ae (Lp.coeFn_zero ℝ 2 μ) + | @insert i s hi ih => + simp only [Finset.sum_insert hi] + change (SobolevSpace.toLpCLM μ hQ (u i + ∑ j ∈ s, u j)) =ᵐ[μ.restrict Ω] _ + rw [map_add] + filter_upwards [ae_restrict_of_ae (Lp.coeFn_add (SobolevSpace.toLp μ hQ (u i)) + (SobolevSpace.toLp μ hQ (∑ j ∈ s, u j))), h i (Finset.mem_insert_self _ _), + ih (fun j hj => h j (Finset.mem_insert_of_mem hj))] with x hx hi hs + exact hx.trans (congrArg₂ (· + ·) hi hs) + +omit [BorelSpace X] in +theorem sobolev_smul_representative (a : ℝ) {u : SobolevSpace μ hQ} + {f : X → ℝ} {Ω : Set X} + (h : SobolevSpace.toLp μ hQ u =ᵐ[μ.restrict Ω] f) : + SobolevSpace.toLp μ hQ (a • u) =ᵐ[μ.restrict Ω] fun x => a * f x := by + change (SobolevSpace.toLpCLM μ hQ (a • u)) =ᵐ[μ.restrict Ω] _ + rw [map_smul] + filter_upwards [ae_restrict_of_ae (Lp.coeFn_smul a (SobolevSpace.toLp μ hQ u)), h] with x hx hy + exact hx.trans (congrArg (fun b : ℝ => a * b) hy) + +theorem polarized_energy_representative [ProperSpace X] {Ω : Set X} + (f g A B C : SobolevSpace μ hQ) + (hA : SobolevSpace.toLp μ hQ A =ᵐ[μ.restrict Ω] localGamma μ hQ f f) + (hB : SobolevSpace.toLp μ hQ B =ᵐ[μ.restrict Ω] localGamma μ hQ g g) + (hC : SobolevSpace.toLp μ hQ C =ᵐ[μ.restrict Ω] localGamma μ hQ (f + g) (f + g)) : + SobolevSpace.toLp μ hQ ((1 / 2 : ℝ) • (C - A - B)) =ᵐ[μ.restrict Ω] + localGamma μ hQ f g := by + change (SobolevSpace.toLpCLM μ hQ ((1 / 2 : ℝ) • (C - A - B))) =ᵐ[μ.restrict Ω] _ + rw [map_smul, map_sub, map_sub] + filter_upwards [ae_restrict_of_ae (Lp.coeFn_smul (1 / 2 : ℝ) + ((SobolevSpace.toLp μ hQ C - SobolevSpace.toLp μ hQ A - SobolevSpace.toLp μ hQ B) : Lp ℝ 2 μ)), + ae_restrict_of_ae (Lp.coeFn_sub ((SobolevSpace.toLp μ hQ C - SobolevSpace.toLp μ hQ A) : Lp ℝ 2 μ) + (SobolevSpace.toLp μ hQ B)), + ae_restrict_of_ae (Lp.coeFn_sub (SobolevSpace.toLp μ hQ C) (SobolevSpace.toLp μ hQ A)), + hA, hB, hC, ae_restrict_of_ae (localGamma_add_left μ hQ f g (f + g)), + ae_restrict_of_ae (localGamma_add_right μ hQ f f g), + ae_restrict_of_ae (localGamma_add_right μ hQ g f g), + ae_restrict_of_ae (localGamma_comm μ hQ g f)] with x hs hd he ha hb hc hl hr ht hm + calc + _ = (1 / 2 : ℝ) * (((SobolevSpace.toLp μ hQ C - SobolevSpace.toLp μ hQ A - + SobolevSpace.toLp μ hQ B) : Lp ℝ 2 μ) x) := hs + _ = (1 / 2 : ℝ) * (((SobolevSpace.toLp μ hQ C - SobolevSpace.toLp μ hQ A) : Lp ℝ 2 μ) x - + SobolevSpace.toLp μ hQ B x) := congrArg (fun z : ℝ => (1 / 2 : ℝ) * z) hd + _ = (1 / 2 : ℝ) * ((SobolevSpace.toLp μ hQ C x - SobolevSpace.toLp μ hQ A x) - + SobolevSpace.toLp μ hQ B x) := + congrArg (fun z : ℝ => (1 / 2 : ℝ) * (z - SobolevSpace.toLp μ hQ B x)) he + _ = _ := by rw [ha, hb, hc, hl, hr, ht, hm]; ring + +theorem coordinate_energy_representative [ProperSpace X] {m : ℕ} + (U : Euclidean m →L[ℝ] SobolevSpace μ hQ) + (H : Fin m → Fin m → SobolevSpace μ hQ) {Ω : Set X} + (hH : ∀ i j, SobolevSpace.toLp μ hQ (H i j) =ᵐ[μ.restrict Ω] + localGamma μ hQ (U (EuclideanSpace.single i 1)) (U (EuclideanSpace.single j 1))) + (v w : Euclidean m) : + SobolevSpace.toLp μ hQ (coordinateBilinear H v w) =ᵐ[μ.restrict Ω] + localGamma μ hQ (U v) (U w) := by + classical + have hsum : SobolevSpace.toLp μ hQ (coordinateBilinear H v w) =ᵐ[μ.restrict Ω] + fun x => ∑ i : Fin m, ∑ j : Fin m, (v i * w j) * + localGamma μ hQ (U (EuclideanSpace.single i 1)) (U (EuclideanSpace.single j 1)) x := by + rw [coordinateBilinear_apply] + apply sobolev_sum_representative μ hQ + intro i _ + apply sobolev_sum_representative μ hQ + intro j _ + exact sobolev_smul_representative μ hQ (v i * w j) (hH i j) + have hg := localGamma_column_pair μ hQ (fun i => U (EuclideanSpace.single i 1)) v w + rw [sobolevColumnMap_of_linear] at hg + exact hsum.trans (Filter.EventuallyEq.symm (ae_restrict_of_ae hg)) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/FiniteMeasureCompactLipschitzDensity.lean b/lean/OAI/Geometry/RCD/Sobolev/FiniteMeasureCompactLipschitzDensity.lean new file mode 100644 index 0000000000000000000000000000000000000000..578bd22cc7ed2c192d2c739c7430852082a4a495 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/FiniteMeasureCompactLipschitzDensity.lean @@ -0,0 +1,46 @@ +import OAI.Analysis.RCDHeat.Density +import Mathlib.MeasureTheory.Function.LpSeminorm.CompareExp + +namespace OAI + +/-! # Compact Lipschitz approximation against a finite dominating measure -/ + +open Set Filter MeasureTheory +open scoped ENNReal NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) [μ.Regular] [IsFiniteMeasure μ] + +theorem finite_measure_compact_lipschitz_L1 {f : X → ℝ} (hf : MemLp f 2 μ) + {ε : ℝ} (hε : 0 < ε) : + ∃ (g : X → ℝ) (L : ℝ≥0), LipschitzWith L g ∧ HasCompactSupport g ∧ + Integrable g μ ∧ (∫ x, |f x-g x| ∂μ) < ε := by + let B := μ univ ^ (1/2 : ℝ) + have hB : B ≠ ∞ := ENNReal.rpow_ne_top_of_nonneg (by positivity) (measure_ne_top μ univ) + let δ := ε/(B.toReal+1) + have hδ : 0 < δ := div_pos hε (by positivity) + obtain ⟨g,hg,⟨L,hL⟩,hgm,hgc⟩ := MemLp.exists_lipschitz_hasCompactSupport_eLpNorm_sub_le μ hf + (ε := ENNReal.ofReal δ) (by positivity) + have ha := (hf.sub hgm).aestronglyMeasurable + have hone : eLpNorm (f-g) 1 μ ≤ ENNReal.ofReal δ*B := by + have h := eLpNorm_le_eLpNorm_mul_rpow_measure_univ (by norm_num : (1:ℝ≥0∞) ≤ 2) ha + have he : (1/(1:ℝ≥0∞).toReal-1/(2:ℝ≥0∞).toReal : ℝ) = 1/2 := by norm_num + rw [he] at h + exact h.trans (by gcongr) + refine ⟨g,L,hL,hgc,(hgm.mono_exponent (by norm_num : (1:ℝ≥0∞) ≤ 2)).integrable (by norm_num),?_⟩ + have hnorm : (∫ x, |f x-g x| ∂μ) = (eLpNorm (f-g) 1 μ).toReal := by + rw [eLpNorm_one_eq_lintegral_enorm ha] + simpa only [Real.norm_eq_abs,Pi.sub_apply] using integral_norm_eq_lintegral_enorm ha + rw [hnorm] + have hsmall : δ*B.toReal < ε := by + have he : (B.toReal+1)*δ = ε := mul_div_cancel₀ ε (by positivity) + nlinarith [ENNReal.toReal_nonneg (a := B)] + exact (ENNReal.toReal_mono (ENNReal.mul_ne_top ENNReal.ofReal_ne_top hB) hone).trans_lt + (by simpa only [ENNReal.toReal_mul,ENNReal.toReal_ofReal hδ.le] using hsmall) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/FiniteMomentConvergence.lean b/lean/OAI/Geometry/RCD/Sobolev/FiniteMomentConvergence.lean new file mode 100644 index 0000000000000000000000000000000000000000..1948e76b801eda377803781b34769169c3a8dce6 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/FiniteMomentConvergence.lean @@ -0,0 +1,75 @@ +import Mathlib.Analysis.InnerProductSpace.PiL2 +import Mathlib.Topology.Algebra.Module.FiniteDimension +import Mathlib.Tactic + +namespace OAI + +/-! # Passing finite affine fits through convergence of actual L² moments + +Only the finitely many pairings of the target, constant and coordinate +functions are needed. The spaces containing them may vary with the index. +This is the algebraic step following local strong L² compactness. +-/ + +open Filter +open scoped InnerProductSpace Topology BigOperators + +noncomputable section +namespace RegularPointCoordinates + +variable {ι : Type*} [Fintype ι] + +/-- The squared norm of a finite linear combination uses precisely its +finite Gram matrix. -/ +theorem norm_sum_smul_sq {H : Type*} [NormedAddCommGroup H] + [InnerProductSpace ℝ H] (f : ι → H) (a : ι → ℝ) : + ‖∑ i, a i • f i‖ ^ 2 = ∑ i, ∑ j, a i * a j * ⟪f i, f j⟫_ℝ := by + rw [← real_inner_self_eq_norm_sq] + simp only [sum_inner, inner_sum, real_inner_smul_left, real_inner_smul_right] + apply Finset.sum_congr rfl + intro i hi + apply Finset.sum_congr rfl + intro j hj + rw [real_inner_comm (f j) (f i)] + ring + +/-- Joint local L² convergence implies convergence of every fixed affine +fit error, without choosing minimizers or identifying the varying spaces. -/ +theorem norm_sum_smul_tendsto_of_inner_tendsto + {H : ℕ → Type*} [∀ k, NormedAddCommGroup (H k)] + [∀ k, InnerProductSpace ℝ (H k)] + {Hlim : Type*} [NormedAddCommGroup Hlim] [InnerProductSpace ℝ Hlim] + (f : ∀ k, ι → H k) (flim : ι → Hlim) + (h : ∀ i j, Tendsto (fun k => ⟪f k i, f k j⟫_ℝ) atTop (𝓝 ⟪flim i, flim j⟫_ℝ)) + (a : ι → ℝ) : + Tendsto (fun k => ‖∑ i, a i • f k i‖) atTop (𝓝 ‖∑ i, a i • flim i‖) := by + have hs : Tendsto (fun k => ‖∑ i, a i • f k i‖ ^ 2) atTop + (𝓝 (‖∑ i, a i • flim i‖ ^ 2)) := by + simp only [norm_sum_smul_sq] + apply tendsto_finsetSum + intro i hi + apply tendsto_finsetSum + intro j hj + exact tendsto_const_nhds.mul (h i j) + have hr := (Real.continuous_sqrt.tendsto _).comp hs + change Tendsto (fun k => Real.sqrt (‖∑ i, a i • f k i‖ ^ 2)) atTop + (𝓝 (Real.sqrt (‖∑ i, a i • flim i‖ ^ 2))) at hr + simpa only [Real.sqrt_sq_eq_abs, abs_norm] using hr + +/-- A strict bound on one Euclidean candidate is inherited by the actual +finite linear combinations for all sufficiently late indices. -/ +theorem eventually_norm_sum_smul_lt + {H : ℕ → Type*} [∀ k, NormedAddCommGroup (H k)] + [∀ k, InnerProductSpace ℝ (H k)] + {Hlim : Type*} [NormedAddCommGroup Hlim] [InnerProductSpace ℝ Hlim] + (f : ∀ k, ι → H k) (flim : ι → Hlim) + (h : ∀ i j, Tendsto (fun k => ⟪f k i, f k j⟫_ℝ) atTop (𝓝 ⟪flim i, flim j⟫_ℝ)) + (a : ι → ℝ) {η : ℝ} (hη : ‖∑ i, a i • flim i‖ < η) : + ∀ᶠ k in atTop, ‖∑ i, a i • f k i‖ < η := + (norm_sum_smul_tendsto_of_inner_tendsto f flim h a).eventually (gt_mem_nhds hη) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/FiniteScaleCutoffBudget.lean b/lean/OAI/Geometry/RCD/Sobolev/FiniteScaleCutoffBudget.lean new file mode 100644 index 0000000000000000000000000000000000000000..c3415960a96d236ca5aab9e10d1bd83721c6bb29 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/FiniteScaleCutoffBudget.lean @@ -0,0 +1,134 @@ +import OAI.Geometry.RCD.Sobolev.CutoffErrorLocalization +import OAI.Geometry.RCD.Coordinates.FiniteNormalizerGrowth + +namespace OAI + +/-! # Actual cutoff Gram budgets from finite-scale harmonic normalization -/ + +open Set Metric MeasureTheory +open scoped InnerProductSpace ENNReal + +noncomputable section + +namespace RegularPointCoordinates + +def dyadicDirectionConstant (m : ℕ) : ℝ := + ((m + 1 : ℕ) : ℝ) ^ 2 + 2 * (((m + 1 : ℕ) : ℝ) ^ 2 * normalizationVolumeRatio m) + +theorem dyadicDirectionConstant_nonneg (m : ℕ) : 0 ≤ dyadicDirectionConstant m := by + have hC := (zero_le_one : (0 : ℝ) ≤ 1).trans (normalizationVolumeRatio_ge_one m) + unfold dyadicDirectionConstant + positivity + +theorem dyadic_power_volume (n j : ℕ) (r : ℝ) : + (2 : ℝ) ^ j * (2 ^ j * r) ^ n = (2 ^ (n + 1)) ^ j * r ^ n := by + rw [mul_pow] + calc + _ = ((2 : ℝ) ^ j) ^ (n + 1) * r ^ n := by rw [pow_succ]; ring + _ = _ := by rw [pow_right_comm] + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +/-- The same original harmonic column supplies small directional error on +all controlled scales and a fixed raw bound outside them. The cutoff +therefore has a small finite prefix and a Gaussian-summable tail. -/ +theorem finite_scale_cutoff_budget {K : ℝ} (m : ℕ) (hX : NoncollapsedRCD K (m + 1) X) + {a : ℝ} (ha : 0 ≤ a) + (hBG : BallVolumeComparison (hausdorff (m + 1) X) (comparisonModelVolume m a)) + (u : Fin (m + 1) → SobolevSpace (hausdorff (m + 1) X) hX.quadratic) + (p : X) {r ε : ℝ} (hr : 0 < r) (hε : 0 ≤ ε) + (hsmall : ((m + 1 : ℕ) : ℝ) ^ 2 * (normalizationVolumeRatio m * ε) ≤ 1 / 2) + (A : Euclidean (m + 1) ≃L[ℝ] Euclidean (m + 1)) + (hA : IsExactMeanNormalization (hausdorff (m + 1) X) hX.quadratic + (sobolevColumnMap (hausdorff (m + 1) X) hX.quadratic u) (ball p r) measurableSet_ball A) + (k : ℕ) (hscale : ∀ j ≤ k, a * (3 * (2 ^ j * r)) ≤ 1) + (hnormal : ∀ j ≤ k, ∃ (S : Euclidean (m + 1) ≃L[ℝ] Euclidean (m + 1)) + (w : X → Euclidean (m + 1)), + FirstOrderSplittingOn (hausdorff (m + 1) X) hX.quadratic p (2 ^ j * r) ε + (transformedColumn (hausdorff (m + 1) X) hX.quadratic u S) w ∧ + IsExactMeanNormalization (hausdorff (m + 1) X) hX.quadratic + (sobolevColumnMap (hausdorff (m + 1) X) hX.quadratic u) + (ball p (2 ^ j * r)) measurableSet_ball S) + (hroot : sobolevMeanGram (hausdorff (m + 1) X) hX.quadratic + (sobolevColumnMap (hausdorff (m + 1) X) hX.quadratic u) + (ball p (2 ^ k * r)) measurableSet_ball = ContinuousLinearMap.id ℝ (Euclidean (m + 1))) + {χ : X → ℝ} (hχ : Continuous χ) (hχrange : ∀ x, 0 ≤ χ x ∧ χ x ≤ 1) + (hχzero : ∀ x ∉ ball p (2 ^ k * r), χ x = 0) + {L V : ℝ} (hL : 0 ≤ L) (hV : 0 ≤ V) + (hvolume : ∀ j ≤ k, 0 < (hausdorff (m + 1) X).real (ball p (2 ^ j * r)) ∧ + hausdorff (m + 1) X (ball p (2 ^ j * r)) ≠ ∞ ∧ + (hausdorff (m + 1) X).real (ball p (2 ^ j * r)) ≤ V * (2 ^ j * r) ^ (m + 1)) + (hgradient : ∀ v : Euclidean (m + 1), ∀ᵐ x ∂(hausdorff (m + 1) X).restrict (ball p (2 ^ k * r)), + localGamma (hausdorff (m + 1) X) hX.quadratic + (sobolevColumnMap (hausdorff (m + 1) X) hX.quadratic u v) + (sobolevColumnMap (hausdorff (m + 1) X) hX.quadratic u v) x ≤ L * ‖v‖ ^ 2) + (v : Euclidean (m + 1)) (j : ℕ) : + (∫ x in ball p (2 ^ j * r), χ x * + |localGamma (hausdorff (m + 1) X) hX.quadratic + (sobolevColumnMap (hausdorff (m + 1) X) hX.quadratic u (A v)) + (sobolevColumnMap (hausdorff (m + 1) X) hX.quadratic u (A v)) x - ‖v‖ ^ 2| + ∂(hausdorff (m + 1) X)) ≤ + (dyadicDirectionConstant m + L + 1) * V * r ^ (m + 1) * ‖v‖ ^ 2 * + splitSeriesTerm (fun i => ((2 : ℝ) ^ ((m + 1) + 1)) ^ i) ε (k + 1) j := by + let μ := hausdorff (m + 1) X + let U := sobolevColumnMap μ hX.quadratic u + have hC := dyadicDirectionConstant_nonneg m + have hconst : dyadicDirectionConstant m ≤ dyadicDirectionConstant m + L + 1 := by linarith + have hconst' : L + 1 ≤ dyadicDirectionConstant m + L + 1 := by linarith + by_cases hj : j ≤ k + · have he := (cutoff_error_on_le μ hX.quadratic (U (A v)) (‖v‖ ^ 2) + (ball p (2 ^ j * r)) (hvolume j hj).2.1 hχ.aestronglyMeasurable hχrange).trans + (dyadic_normalized_directional_error m hX ha hBG u p hr hε hsmall A hA j + (fun i hi => hscale i (hi.trans hj)) (fun i hi => hnormal i (hi.trans hj)) + (hvolume j hj).1 (hvolume j hj).2.1 v) + have hm := mul_le_mul_of_nonneg_right + (mul_le_mul_of_nonneg_left (hvolume j hj).2.2 + (mul_nonneg (mul_nonneg hC hε) (pow_nonneg (by norm_num : (0 : ℝ) ≤ 2) j))) (sq_nonneg ‖v‖) + change _ ≤ (dyadicDirectionConstant m * ε * 2 ^ j) * _ * _ at he + have hb := he.trans hm + have hid : dyadicDirectionConstant m * ε * 2 ^ j * + (V * (2 ^ j * r) ^ (m + 1)) * ‖v‖ ^ 2 = + dyadicDirectionConstant m * (V * r ^ (m + 1) * ‖v‖ ^ 2 * + (ε * ((2 : ℝ) ^ ((m + 1) + 1)) ^ j)) := by + calc + _ = (dyadicDirectionConstant m * ε * V * ‖v‖ ^ 2) * + (2 ^ j * (2 ^ j * r) ^ (m + 1)) := by ring + _ = _ := by rw [dyadic_power_volume]; ring + rw [hid] at hb + have hm' := mul_le_mul_of_nonneg_right hconst + (show 0 ≤ V * r ^ (m + 1) * ‖v‖ ^ 2 * (ε * ((2 : ℝ) ^ ((m + 1) + 1)) ^ j) by positivity) + simpa only [splitSeriesTerm, Nat.lt_succ_iff.mpr hj, ite_true, mul_assoc] using hb.trans hm' + · have hkj : k ≤ j := Nat.le_of_lt (Nat.lt_of_not_ge hj) + have hpow : (2 : ℝ) ^ k ≤ 2 ^ j := pow_le_pow_right₀ (by norm_num) hkj + have hnorm := dyadic_normalizer_norm_sq_bound m hX ha hBG u p hr hε hsmall A hA + k hscale hnormal hroot + have hframe := norm_apply_sq_le_of_norm_sq_le (A : Euclidean (m + 1) →L[ℝ] Euclidean (m + 1)) hnorm + have he := (cutoff_error_on_le_total μ hX.quadratic (U (A v)) (‖v‖ ^ 2) + (hvolume k le_rfl).2.1 hχ.aestronglyMeasurable hχrange hχzero (ball p (2 ^ j * r))).trans + (cutoff_direction_error_le_raw μ hX.quadratic U A (hvolume k le_rfl).2.1 hχ + hχrange hχzero hL hgradient hframe v) + have hcoef : L * 2 ^ k + 1 ≤ (L + 1) * (2 : ℝ) ^ j := by + have hp : (1 : ℝ) ≤ 2 ^ j := one_le_pow₀ (by norm_num) + nlinarith + have hvol : μ.real (ball p (2 ^ k * r)) ≤ V * (2 ^ j * r) ^ (m + 1) := + (hvolume k le_rfl).2.2.trans (mul_le_mul_of_nonneg_left + (pow_le_pow_left₀ (mul_pos (pow_pos (by norm_num : (0 : ℝ) < 2) k) hr).le + (mul_le_mul_of_nonneg_right hpow hr.le) (m + 1)) hV) + have hm := mul_le_mul_of_nonneg_right + (mul_le_mul hcoef hvol (measureReal_nonneg : 0 ≤ μ.real (ball p (2 ^ k * r))) (by positivity)) (sq_nonneg ‖v‖) + have hb := he.trans hm + have hid : (L + 1) * 2 ^ j * (V * (2 ^ j * r) ^ (m + 1)) * ‖v‖ ^ 2 = + (L + 1) * (V * r ^ (m + 1) * ‖v‖ ^ 2 * ((2 : ℝ) ^ ((m + 1) + 1)) ^ j) := by + calc + _ = ((L + 1) * V * ‖v‖ ^ 2) * (2 ^ j * (2 ^ j * r) ^ (m + 1)) := by ring + _ = _ := by rw [dyadic_power_volume]; ring + rw [hid] at hb + have hm' := mul_le_mul_of_nonneg_right hconst' + (show 0 ≤ V * r ^ (m + 1) * ‖v‖ ^ 2 * ((2 : ℝ) ^ ((m + 1) + 1)) ^ j by positivity) + simpa only [splitSeriesTerm, Nat.lt_succ_iff, hj, ite_false, one_mul, mul_assoc] using hb.trans hm' + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/FiniteSpanOfIndependentBound.lean b/lean/OAI/Geometry/RCD/Sobolev/FiniteSpanOfIndependentBound.lean new file mode 100644 index 0000000000000000000000000000000000000000..1f16cfc7ad62134a75dd30317a32e243459fc42b --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/FiniteSpanOfIndependentBound.lean @@ -0,0 +1,47 @@ +import Mathlib.LinearAlgebra.Basis.VectorSpace +import Mathlib.LinearAlgebra.Dimension.Finite +import Mathlib.LinearAlgebra.Dimension.StrongRankCondition +import Mathlib.Tactic + +namespace OAI + +/-! # Finite dimension from a bound on independent generators -/ + +open Set Module +noncomputable section +namespace RegularPointCoordinates +variable {E : Type*} [AddCommGroup E] [Module ℝ E] + +theorem finite_span_of_independent_bound (K : Set E) (n : ℕ) + (hspan : Submodule.span ℝ K = ⊤) + (hno : ∀ v : Fin (n+1) → E, (∀ i, v i ∈ K) → ¬LinearIndependent ℝ v) : + FiniteDimensional ℝ E ∧ Module.finrank ℝ E ≤ n := by + classical + let I := ↥((linearIndepOn_empty ℝ (id : E → E)).extend (empty_subset K)) + let B : Basis I ℝ E := Basis.ofSpan hspan.ge + have hBK (i : I) : B i ∈ K := Basis.ofSpan_subset hspan.ge ⟨i,rfl⟩ + have hbad (e : Fin (n+1) ↪ I) : False := + hno (fun i => B (e i)) (fun i => hBK (e i)) (B.linearIndependent.comp e e.injective) + have hfinite : Finite I := by + by_contra h + let : Infinite I := not_finite_iff_infinite.mp h + exact hbad (Fin.valEmbedding.trans (Infinite.natEmbedding I)) + let := hfinite + let := Fintype.ofFinite I + have hcard : Fintype.card I ≤ n := by + by_contra h + have hle : Fintype.card (Fin (n+1)) ≤ Fintype.card I := by + rw [Fintype.card_fin] + omega + obtain ⟨e⟩ := Function.Embedding.nonempty_of_card_le hle + exact hbad e + have hfin : FiniteDimensional ℝ E := Module.Finite.of_basis B + refine ⟨hfin,?_⟩ + rw [Module.finrank_eq_card_basis B] + exact hcard + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/FirstOrderTestMetricDefect.lean b/lean/OAI/Geometry/RCD/Sobolev/FirstOrderTestMetricDefect.lean new file mode 100644 index 0000000000000000000000000000000000000000..0f82024578dd223dd2964f964f1fafc56d1c379c --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/FirstOrderTestMetricDefect.lean @@ -0,0 +1,89 @@ +import OAI.Geometry.RCD.Heat.PrescribedHeatEndpoint +import OAI.Geometry.RCD.Heat.ScaledHeatValueError +import OAI.Geometry.RCD.Harmonic.VanishingScalarDefect + +namespace OAI + +/-! # Vanishing metric defect detected by actual compact Lipschitz tests -/ + +open Set Filter MeasureTheory Metric +open scoped Topology NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem NoncollapsedRCD.first_order_test_metric_defect {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) [(hausdorff n X).Regular] (hn : 2≤n) (hK : K≤0) + (p x y : ℕ → X) (r ε : ℕ → ℝ) (hr : ∀ k, 0 max 0 (|V k (y k)-V k (x k)|/r k- + (L:ℝ)*(dist (v k (x k)) (v k (y k))/r k))) atTop (𝓝 0) := by + let μ := hausdorff n X + let Q := hX.quadratic + let B k := dist (v k (x k)) (v k (y k))/r k + have hB (k : ℕ) : 0≤B k ∧ B k≤2*(n:ℝ) := by + refine ⟨div_nonneg dist_nonneg (hr k).le,?_⟩ + have hs : FirstOrderSplittingOn μ Q (p k) (8*(2*r k)) (ε k) (u k) (v k) := by + simpa only [show (8:ℝ)*(2*r k)=16*r k by ring] using hsplit k + have hLip := hX.splitting_coordinate_lipschitz hn (mul_pos (by norm_num) (hr k)) (hε k) hs + have hh := hLip.dist_le_mul (x k) (by change dist (x k) (p k)<2*r k; linarith [hx k,hr k]) + (y k) (by change dist (y k) (p k)<2*r k; linarith [hy k,hr k]) + have hc : (n:ℝ)*(1+ε k)≤2*(n:ℝ) := by nlinarith [Nat.cast_nonneg (α:=ℝ) n,hε1 k] + have hd : dist (x k) (y k)≤r k := by + have ht := dist_triangle (x k) (p k) (y k) + rw [dist_comm (p k) (y k)] at ht + linarith [hx k,hy k,hr k] + apply (div_le_iff₀ (hr k)).mpr + exact (hh.trans (mul_le_mul_of_nonneg_right hc dist_nonneg)).trans + (mul_le_mul_of_nonneg_left hd (by positivity)) + apply vanishing_scalar_defect (fun k => |V k (y k)-V k (x k)|/r k) B hB + intro τ hτ + let C := (L:ℝ)^2/2+(n:ℝ)*Real.exp 1 + have hnoise : Tendsto (fun j => 2*Real.sqrt (heatStep j)*C) atTop (𝓝 0) := by + simpa only [Real.sqrt_zero,mul_zero,zero_mul] using (heatStep_tendsto.sqrt.const_mul 2).mul_const C + obtain ⟨j,hj⟩ := (hnoise.eventually (gt_mem_nhds hτ)).exists + let η := heatStep j + have hη : 0<η := heatStep_pos j + have hη1 : η≤1 := pow_le_one₀ (by norm_num : (0:ℝ)≤1/2) (by norm_num : (1/2:ℝ)≤1) + obtain ⟨F,e,_hF,hF0,_he,he0,hbound⟩ := hX.prescribed_heat_endpoint hn hK p x y r ε hr hr0 hcurv + hε hε1 hε0 u v hsplit hx hy hη hη1 h V L a A hV hVc hrep hA hscale + refine ⟨F,e,hF0,he0,?_⟩ + intro k + let hk := hX.canonicalHeatKernel_isContinuousHeatKernel hn (p k) + let φ := kernelHeat μ Q hk (η*(r k)^2) (h k) + have hsmall : (-K)*(r k)^2≤1 := by + have hb := hcurv k + have hh : K*(16*r k)^2=256*(K*(r k)^2) := by ring + rw [hh] at hb + nlinarith + have hdx := hX.scaled_heat_value_error hn hK hk (h k) (hV k) (hVc k) (hrep k) + (hr k) hη hη1 hsmall (x k) + have hdy := hX.scaled_heat_value_error hn hK hk (h k) (hV k) (hVc k) (hrep k) + (hr k) hη hη1 hsmall (y k) + have hs : |V k (y k)-V k (x k)|≤|φ (y k)-V k (y k)|+ + |φ (y k)-φ (x k)|+|φ (x k)-V k (x k)| := by + have hh := dist_triangle4 (V k (y k)) (φ (y k)) (φ (x k)) (V k (x k)) + simpa only [Real.dist_eq,abs_sub_comm (V k (y k)) (φ (y k))] using hh + have hdiv := div_le_div_of_nonneg_right hs (hr k).le + rw [add_div,add_div] at hdiv + have hb : |φ (y k)-φ (x k)|/r k≤F k*B k+e k := hbound k + change |φ (x k)-V k (x k)|/r k≤Real.sqrt η*C at hdx + change |φ (y k)-V k (y k)|/r k≤Real.sqrt η*C at hdy + change 2*Real.sqrt η*C<τ at hj + linarith + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/FixedCutoffNeighborhood.lean b/lean/OAI/Geometry/RCD/Sobolev/FixedCutoffNeighborhood.lean new file mode 100644 index 0000000000000000000000000000000000000000..a8f748d1cc3e7b238feeca7f154643bcb10ef7a3 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/FixedCutoffNeighborhood.lean @@ -0,0 +1,82 @@ +import OAI.Geometry.RCD.Coordinates.CoordinateHeatInput +import OAI.Geometry.RCD.Coordinates.RegularDyadicData +import OAI.Geometry.RCD.Coordinates.UniformPolarizedError + +namespace OAI + +/-! # A single cutoff and time threshold for all nearby heat poles -/ + +open Set Metric MeasureTheory +open scoped InnerProductSpace NNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) [μ.Regular] (hQ : QuadraticCheegerEnergy μ) + {ker : ℝ → X → X → ℝ} (hk : IsContinuousHeatKernel μ hQ ker) + +include hk in +/-- The same actual cutoff works at every center in a smaller ball. Its +annular error has one dyadic starting index for all those centers. -/ +theorem exists_fixed_cutoff_neighborhood {n : ℕ} {K R omega C : ℝ} {p : X} + {U : Euclidean n →L[ℝ] SobolevSpace μ hQ} + {M : PositiveBilinearMeasure X (Euclidean n)} {L : ℝ≥0} + (G : ∀ v, LocalHarmonicEnergy μ hQ U M |K| p (4 * R) L v) + (hg : HasCoordinateHeatBounds μ ker) (hR : 0 < R) (homega : 0 < omega) + (hcurv : |K| * (16 * R) ^ 2 ≤ 1) + (hvolume : ∀ y, dist p y ≤ 16 * R → ∀ s, 0 < s → s ≤ 32 * R → + |μ.real (ball y s) / (omega * s ^ n) - 1| ≤ 1 / 2) + (hcut : ∀ s, 0 < s → -1 ≤ K * s ^ 2 → + Nonempty (GoodLaplacianCutoff μ hQ p s C)) : + ∃ χ : GoodLaplacianCutoff μ hQ p (3 * R / 8) C, ∃ J : ℕ, + ∀ q ∈ ball p (R / 32), + (∀ x ∈ ball q (R / 4), (χ.weight : X → ℝ) x = 1) ∧ + (∀ x ∉ ball q R, (χ.weight : X → ℝ) x = 0) ∧ + ∀ i, J ≤ i → ∀ t ∈ Icc ((R / 2 ^ i) ^ 2 / 4) ((R / 2 ^ i) ^ 2), + ‖harmonicHeatError μ hQ (k := ker) G χ t q‖ ≤ 1 := by + have hρ : 0 < 3 * R / 8 := by positivity + have hK : -1 ≤ K * (3 * R / 8) ^ 2 := by + have hn := neg_abs_le K + have hs : (3 * R / 8) ^ 2 ≤ (16 * R) ^ 2 := by nlinarith [sq_pos_of_pos hR] + have h := mul_le_mul_of_nonneg_left hs (abs_nonneg K) + have hk := mul_le_mul_of_nonneg_right hn (sq_nonneg (3 * R / 8)) + nlinarith + obtain ⟨χ⟩ := hcut _ hρ hK + have hv : ∀ y, 3 * R / 8 ≤ dist p y → dist p y ≤ 2 * (3 * R / 8) → + ∀ s, 0 < s → s ≤ R → (omega / 2) * s ^ n ≤ μ.real (ball y s) := by + intro y _ hy s hs hsR + have hb := (abs_le.mp (hvolume y (by linarith) s hs (by linarith))).1 + have hd : 0 < omega * s ^ n := mul_pos homega (pow_pos hs n) + have hh : (1 / 2 : ℝ) ≤ μ.real (ball y s) / (omega * s ^ n) := by linarith + have hm := (le_div_iff₀ hd).mp hh + nlinarith only [hm] + obtain ⟨δ, hδ, he⟩ := harmonicHeatError_uniformly_small μ hQ hk hg G χ hρ hR + (show 0 < omega / 2 by positivity) hv (by norm_num : (0 : ℝ) < 1) + obtain ⟨J, hJ⟩ := eventual_dyadic_time_blocks hR hδ + refine ⟨χ, J, ?_⟩ + intro q hq + have hqp : dist q p < R / 32 := hq + refine ⟨?_, ?_, ?_⟩ + · intro x hx + apply χ.one + have hxq : dist x q < R / 4 := hx + change dist x p < 3 * R / 8 + have ht := dist_triangle x q p + linarith + · intro x hx + apply χ.zero + have hxq : R ≤ dist x q := by simpa only [mem_ball, not_lt] using hx + have ht := dist_triangle x p q + rw [dist_comm p q] at ht + rw [dist_comm p x] + linarith + · intro i hi t ht + obtain ⟨ht0, htδ⟩ := hJ i hi t ht + exact (he t ht0 htδ q (by change dist q p < (3 * R / 8) / 2; linarith)).le + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/FullBochnerCutoffIdentity.lean b/lean/OAI/Geometry/RCD/Sobolev/FullBochnerCutoffIdentity.lean new file mode 100644 index 0000000000000000000000000000000000000000..92cc6662879bd0eeda8ad99ee064bda299c486e2 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/FullBochnerCutoffIdentity.lean @@ -0,0 +1,102 @@ +import OAI.Geometry.RCD.Heat.HeatBochnerIdentitySource +import OAI.Geometry.RCD.Sobolev.BochnerCutoffFlux +import OAI.Geometry.RCD.Sobolev.HarmonicCutoffMassBound + +namespace OAI + +/-! # Cutoff masses of a prescribed full Bochner measure -/ + +open Set Filter MeasureTheory Metric +open scoped NNReal BoundedContinuousFunction +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) (Q : QuadraticCheegerEnergy μ) + +omit [ProperSpace X] in +theorem bochner_energy_identity_of_laplacian (K : ℝ) (u d G : SobolevSpace μ Q) + {Ω : Set X} (σ : Measure X) [IsFiniteMeasure σ] + (hσ : IsMeasureLaplacianOn μ Q Ω G (bochnerGramSource μ Q K u u d d σ.toSignedMeasure)) + (ψ : SobolevSpace μ Q) (v : X → ℝ) (hv : Continuous v) (hvc : HasCompactSupport v) + (hvs : tsupport v ⊆ Ω) (hψ : SobolevSpace.toLp μ Q ψ =ᵐ[μ] v) : + (∫ x, v x ∂σ)=-(1/2:ℝ)*energyForm μ Q G ψ- + K*weightedGamma μ Q v u u-weightedGamma μ Q v u d := by + let b : X →ᵇ ℝ := ofCompactSupport v hv hvc + have hi0 := (localGamma_memL1 μ Q u u).bdd_mul b.continuous.aestronglyMeasurable + (Eventually.of_forall b.norm_coe_le_norm) + have hi1 := (localGamma_memL1 μ Q u d).bdd_mul b.continuous.aestronglyMeasurable + (Eventually.of_forall b.norm_coe_le_norm) + have hd : (∫ x, b x*bochnerDrift μ Q K u u d d x ∂μ)= + 2*K*weightedGamma μ Q v u u+2*weightedGamma μ Q v u d := by + have he : (fun x => b x*bochnerDrift μ Q K u u d d x)= + fun x => 2*K*(b x*localGamma μ Q u u x)+2*(b x*localGamma μ Q u d x) := by + funext x + dsimp only [bochnerDrift] + ring + rw [he,integral_add (hi0.const_mul _) (hi1.const_mul _),integral_const_mul,integral_const_mul] + rfl + have he := hσ ψ v hv hvc hvs hψ + change energyForm μ Q G ψ = -signedTestIntegral b + (bochnerGramSource μ Q K u u d d σ.toSignedMeasure) at he + rw [integral_bochnerGramSource,hd] at he + change energyForm μ Q G ψ = -(2*(∫ᵛ x, b x ∂<•σ.toSignedMeasure)+_) at he + rw [VectorMeasure.integral_toSignedMeasure] at he + change energyForm μ Q G ψ = -(2*(∫ x, v x ∂σ)+_) at he + linarith only [he] + +variable [IsFiniteMeasureOnCompacts μ] + +theorem GoodLaplacianCutoff.full_bochner_mass_identity + {p : X} {r C K : ℝ} (χ : GoodLaplacianCutoff μ Q p r C) + (u d G : SobolevSpace μ Q) + (hd : IsWeakLaplacian μ Q u (SobolevSpace.toLp μ Q d)) + (hG : SobolevSpace.toLp μ Q G =ᵐ[μ] localGamma μ Q u u) + {Ω : Set X} (hΩ : tsupport (χ.weight : X → ℝ) ⊆ Ω) + (σ : Measure X) [IsFiniteMeasure σ] + (hσ : IsMeasureLaplacianOn μ Q Ω G (bochnerGramSource μ Q K u u d d σ.toSignedMeasure)) : + (∫ x, χ.weight x ∂σ)= + (1/2:ℝ)*weightedGamma μ Q χ.laplacian u u-K*weightedGamma μ Q χ.weight u u+ + (∫ x, χ.weight x*(SobolevSpace.toLp μ Q d x)^2 ∂μ)+ + weightedGamma μ Q (SobolevSpace.toLp μ Q d) u χ.sobolev := by + have he := bochner_energy_identity_of_laplacian μ Q K u d G σ hσ + χ.sobolev χ.weight χ.weight.continuous (χ.hasCompactSupport μ Q) hΩ χ.representative + have hw : weightedGamma μ Q χ.weight u d= + weightedGamma μ Q (SobolevSpace.toLp μ Q χ.sobolev) u d := by + apply integral_congr_ae + filter_upwards [χ.representative] with x hx + rw [hx] + rw [hw] at he + have hf := χ.bochner_source_identity μ Q u d G hd hG + linarith only [he,hf] + +omit [IsFiniteMeasureOnCompacts μ] in +theorem GoodLaplacianCutoff.harmonic_full_mass_identity + {p : X} {r C K : ℝ} (χ : GoodLaplacianCutoff μ Q p r C) + (u G : SobolevSpace μ Q) + (hG : SobolevSpace.toLp μ Q G =ᵐ[μ] localGamma μ Q u u) + {Ω : Set X} (hΩ : tsupport (χ.weight : X → ℝ) ⊆ Ω) + (σ : Measure X) [IsFiniteMeasure σ] + (hσ : IsMeasureLaplacianOn μ Q Ω G (bochnerGramSource μ Q K u u 0 0 σ.toSignedMeasure)) : + (∫ x, χ.weight x ∂σ)= + (1/2:ℝ)*weightedGamma μ Q χ.laplacian u u-K*weightedGamma μ Q χ.weight u u := by + have he := bochner_energy_identity_of_laplacian μ Q K u 0 G σ hσ + χ.sobolev χ.weight χ.weight.continuous (χ.hasCompactSupport μ Q) hΩ χ.representative + have hE : energyForm μ Q G χ.sobolev = -weightedGamma μ Q χ.laplacian u u := by + rw [energyForm_comm,χ.weak_laplacian,L2.inner_def] + congr 1 + apply integral_congr_ae + filter_upwards [hG] with x hx + simp only [Real.inner_apply,hx] + have hz : weightedGamma μ Q χ.weight u 0=0 := by + apply integral_eq_zero_of_ae + filter_upwards [localGamma_smul_right μ Q 0 u (0 : SobolevSpace μ Q)] with x hx + change χ.weight x*localGamma μ Q u 0 x=0 + simpa only [zero_smul,zero_mul,mul_zero] using congrArg (χ.weight x * ·) hx + rw [hE,hz] at he + linarith only [he] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/FullBochnerMassBound.lean b/lean/OAI/Geometry/RCD/Sobolev/FullBochnerMassBound.lean new file mode 100644 index 0000000000000000000000000000000000000000..736716f6295f57a7e2790c419d4720cc7eef4919 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/FullBochnerMassBound.lean @@ -0,0 +1,152 @@ +import OAI.Geometry.RCD.Sobolev.FullBochnerCutoffIdentity + +namespace OAI + +/-! # Quantitative bounds retaining the entire positive Bochner measure -/ + +open Set Filter MeasureTheory Metric +open scoped NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) [IsFiniteMeasureOnCompacts μ] (Q : QuadraticCheegerEnergy μ) + +omit [IsFiniteMeasureOnCompacts μ] in +theorem GoodLaplacianCutoff.full_mass_le_cutoff + {p : X} {r C : ℝ} (χ : GoodLaplacianCutoff μ Q p r C) + (σ : Measure X) [IsFiniteMeasure σ] : + σ.real (ball p r) ≤ ∫ x, χ.weight x ∂σ := by + have hb (x : X) : (ball p r).indicator (fun _ : X => (1:ℝ)) x ≤ χ.weight x := by + by_cases hx : x∈ball p r + · simp only [indicator_of_mem hx,χ.one x hx,le_refl] + · simpa only [indicator_of_notMem hx] using (χ.bounds x).1 + have hi := integral_mono ((integrable_const (1:ℝ) : Integrable (fun _ : X => (1:ℝ)) σ).indicator measurableSet_ball) + (χ.weight.continuous.integrable_of_hasCompactSupport (χ.hasCompactSupport μ Q)) hb + simpa only [integral_indicator measurableSet_ball,setIntegral_const,smul_eq_mul,mul_one] using hi + +theorem GoodLaplacianCutoff.harmonic_full_mass_bound + {p : X} {r C K : ℝ} (χ : GoodLaplacianCutoff μ Q p r C) + (hr : 0 < r) (hC : 0 ≤ C) (hK : K ≤ 0) + (u G : SobolevSpace μ Q) + (hG : SobolevSpace.toLp μ Q G =ᵐ[μ] localGamma μ Q u u) + {Ω : Set X} (hΩ : tsupport (χ.weight : X → ℝ) ⊆ Ω) + (σ : Measure X) [IsFiniteMeasure σ] + (hσ : IsMeasureLaplacianOn μ Q Ω G (bochnerGramSource μ Q K u u 0 0 σ.toSignedMeasure)) + (c : ℝ) : + σ.real (ball p r) ≤ + (C/r^2)/2*(∫ x in closedBall p (2*r), |localGamma μ Q u u x-c| ∂μ)+ + (-K)*((∫ x in closedBall p (2*r), |localGamma μ Q u u x-c| ∂μ)+ + c*μ.real (closedBall p (2*r))) := by + apply (χ.full_mass_le_cutoff μ Q σ).trans + rw [χ.harmonic_full_mass_identity μ Q u G hG hΩ σ hσ] + exact χ.energy_error_mass_bound μ Q hr hC hK u c + +omit [BorelSpace X] in +theorem GoodLaplacianCutoff.source_square_bound + {p : X} {r C : ℝ} (χ : GoodLaplacianCutoff μ Q p r C) + (d : Lp ℝ 2 μ) (B : ℝ≥0) + (hB : ∀ᵐ x ∂μ.restrict (closedBall p (2*r)), |d x|≤B) : + (∫ x, χ.weight x*(d x)^2 ∂μ) ≤ (B:ℝ)^2*μ.real (closedBall p (2*r)) := by + let S := closedBall p (2*r) + let : IsFiniteMeasure (μ.restrict S) := + ⟨by simpa only [S,Measure.restrict_apply_univ] using (isCompact_closedBall p (2*r)).measure_lt_top⟩ + have he : (∫ x in S, χ.weight x*(d x)^2 ∂μ)=∫ x, χ.weight x*(d x)^2 ∂μ := by + apply setIntegral_eq_integral_of_forall_compl_eq_zero + intro x hx + rw [χ.zero x (by simpa only [S,mem_closedBall,dist_comm,not_le] using hx),zero_mul] + rw [← he] + apply (le_abs_self _).trans + have hb := norm_integral_le_of_norm_le (integrable_const ((B:ℝ)^2)) (show + ∀ᵐ x ∂μ.restrict S, ‖χ.weight x*(d x)^2‖≤(B:ℝ)^2 from by + filter_upwards [hB] with x hx + rw [Real.norm_eq_abs,abs_of_nonneg (mul_nonneg (χ.bounds x).1 (sq_nonneg _))] + have hd : (d x)^2≤(B:ℝ)^2 := by nlinarith [sq_abs (d x),abs_nonneg (d x),B.coe_nonneg] + exact (mul_le_of_le_one_left (sq_nonneg _) (χ.bounds x).2).trans hd) + simpa only [S,Real.norm_eq_abs,integral_const,smul_eq_mul,measureReal_restrict_apply_univ,mul_comm] using hb + +theorem GoodLaplacianCutoff.source_cross_bound + {p : X} {r C : ℝ} (χ : GoodLaplacianCutoff μ Q p r C) + (hr : 0 < r) (hC : 0 ≤ C) (u : SobolevSpace μ Q) (d : Lp ℝ 2 μ) (L B : ℝ≥0) + (hL : ∀ᵐ x ∂μ.restrict (closedBall p (2*r)), SobolevSpace.minimalSlope μ Q u x≤L) + (hB : ∀ᵐ x ∂μ.restrict (closedBall p (2*r)), |d x|≤B) : + weightedGamma μ Q d u χ.sobolev ≤ (B:ℝ)*L*(C/r)*μ.real (closedBall p (2*r)) := by + let S := closedBall p (2*r) + let : IsFiniteMeasure (μ.restrict S) := + ⟨by simpa only [S,Measure.restrict_apply_univ] using (isCompact_closedBall p (2*r)).measure_lt_top⟩ + have he : (∫ x in S, d x*localGamma μ Q u χ.sobolev x ∂μ)= + weightedGamma μ Q d u χ.sobolev := by + apply setIntegral_eq_integral_of_ae_compl_eq_zero + filter_upwards [χ.representative,localGamma_comm μ Q u χ.sobolev, + localGamma_zero_on_level μ Q χ.sobolev u 0] with x hx hc hz hout + rw [hc,hz (hx.trans (χ.zero x (by simpa only [S,mem_closedBall,dist_comm,not_le] using hout))),mul_zero] + have hχ := SobolevSpace.minimalSlope_le_lipschitz μ Q χ.sobolev χ.lipschitz χ.representative + have hχ' : ∀ᵐ x ∂μ, SobolevSpace.minimalSlope μ Q χ.sobolev x≤C/r := by + simpa only [Real.coe_toNNReal _ (div_nonneg hC hr.le)] using hχ + rw [← he] + apply (le_abs_self _).trans + have hb := norm_integral_le_of_norm_le (integrable_const ((B:ℝ)*L*(C/r))) (show + ∀ᵐ x ∂μ.restrict S, ‖d x*localGamma μ Q u χ.sobolev x‖≤(B:ℝ)*L*(C/r) from by + filter_upwards [hL,hB,ae_restrict_of_ae hχ',ae_restrict_of_ae (localGamma_abs_le μ Q u χ.sobolev), + ae_restrict_of_ae ((Lp.coeFn_nonneg _).mpr (SobolevSpace.minimalSlope_nonneg μ Q χ.sobolev))] + with x hx hd hc hg hn + rw [Real.norm_eq_abs,abs_mul] + calc + _ ≤ (B:ℝ)*(SobolevSpace.minimalSlope μ Q u x*SobolevSpace.minimalSlope μ Q χ.sobolev x) := + mul_le_mul hd hg (abs_nonneg _) B.coe_nonneg + _ ≤ (B:ℝ)*((L:ℝ)*(C/r)) := + mul_le_mul_of_nonneg_left (mul_le_mul hx hc hn L.coe_nonneg) B.coe_nonneg + _ = _ := by ring) + simpa only [S,Real.norm_eq_abs,integral_const,smul_eq_mul,measureReal_restrict_apply_univ,mul_comm] using hb + +theorem GoodLaplacianCutoff.regular_full_mass_bound + {p : X} {r C K : ℝ} (χ : GoodLaplacianCutoff μ Q p r C) + (hr : 0 < r) (hC : 0 ≤ C) (hK : K ≤ 0) + (u d G : SobolevSpace μ Q) + (hd : IsWeakLaplacian μ Q u (SobolevSpace.toLp μ Q d)) + (hG : SobolevSpace.toLp μ Q G =ᵐ[μ] localGamma μ Q u u) + {Ω : Set X} (hΩ : tsupport (χ.weight : X → ℝ) ⊆ Ω) + (σ : Measure X) [IsFiniteMeasure σ] + (hσ : IsMeasureLaplacianOn μ Q Ω G (bochnerGramSource μ Q K u u d d σ.toSignedMeasure)) + (L B : ℝ≥0) + (hL : ∀ᵐ x ∂μ.restrict (closedBall p (2*r)), SobolevSpace.minimalSlope μ Q u x≤L) + (hB : ∀ᵐ x ∂μ.restrict (closedBall p (2*r)), |SobolevSpace.toLp μ Q d x|≤B) : + σ.real (ball p r) ≤ + ((C/r^2)/2*(L:ℝ)^2+(-K)*(L:ℝ)^2+(B:ℝ)^2+(B:ℝ)*L*(C/r))* + μ.real (closedBall p (2*r)) := by + let S := closedBall p (2*r) + let : IsFiniteMeasure (μ.restrict S) := + ⟨by simpa only [S,Measure.restrict_apply_univ] using (isCompact_closedBall p (2*r)).measure_lt_top⟩ + have hi : IntegrableOn (fun x => |localGamma μ Q u u x|) S μ := + (localGamma_memL1 μ Q u u).integrableOn.abs + have hI : (∫ x in S, |localGamma μ Q u u x| ∂μ)≤(L:ℝ)^2*μ.real S := by + have hh := integral_mono_ae hi (integrable_const ((L:ℝ)^2)) (show + ∀ᵐ x ∂μ.restrict S, |localGamma μ Q u u x|≤(L:ℝ)^2 from by + filter_upwards [hL,ae_restrict_of_ae (localGamma_self μ Q u), + ae_restrict_of_ae ((Lp.coeFn_nonneg _).mpr (SobolevSpace.minimalSlope_nonneg μ Q u))] + with x hx he hn + rw [he,abs_of_nonneg (sq_nonneg _)] + exact pow_le_pow_left₀ hn hx 2) + simpa only [integral_const,smul_eq_mul,measureReal_restrict_apply_univ,mul_comm] using hh + have he := χ.energy_error_mass_bound μ Q hr hC hK u 0 + simp only [sub_zero,zero_mul,add_zero] at he + have he' : (1/2:ℝ)*weightedGamma μ Q χ.laplacian u u-K*weightedGamma μ Q χ.weight u u ≤ + ((C/r^2)/2*(L:ℝ)^2+(-K)*(L:ℝ)^2)*μ.real S := by + apply he.trans + have hh := add_le_add (mul_le_mul_of_nonneg_left hI (by positivity : 0≤(C/r^2)/2)) + (mul_le_mul_of_nonneg_left hI (neg_nonneg.mpr hK)) + convert hh using 1 + ring + have hs := χ.source_square_bound μ Q (SobolevSpace.toLp μ Q d) B hB + have hc := χ.source_cross_bound μ Q hr hC u (SobolevSpace.toLp μ Q d) L B hL hB + apply (χ.full_mass_le_cutoff μ Q σ).trans + rw [χ.full_bochner_mass_identity μ Q u d G hd hG hΩ σ hσ] + calc + _ ≤ ((C/r^2)/2*(L:ℝ)^2+(-K)*(L:ℝ)^2)*μ.real S+ + (B:ℝ)^2*μ.real S+(B:ℝ)*L*(C/r)*μ.real S := add_le_add (add_le_add he' hs) hc + _ = _ := by dsimp only [S]; ring + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/GammaColumnMixed.lean b/lean/OAI/Geometry/RCD/Sobolev/GammaColumnMixed.lean new file mode 100644 index 0000000000000000000000000000000000000000..be385aee8a6ebb31562a5bd22d9cd9ce975abcef --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/GammaColumnMixed.lean @@ -0,0 +1,35 @@ +import OAI.Geometry.RCD.Harmonic.GramDirectionalError + +namespace OAI + +/-! # Mixed energy pairings with a finite coordinate column -/ + +open Set Filter MeasureTheory Finset +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +theorem localGamma_column_right {n : ℕ} (f : SobolevSpace μ hQ) + (u : Fin n → SobolevSpace μ hQ) (a : Euclidean n) : + localGamma μ hQ f (sobolevColumnMap μ hQ u a) =ᵐ[μ] + fun x => ∑ i, a i*localGamma μ hQ f (u i) x := by + classical + have hsum (s : Finset (Fin n)) : localGamma μ hQ f (∑ i∈s, a i • u i) =ᵐ[μ] + fun x => ∑ i∈s, a i*localGamma μ hQ f (u i) x := by + induction s using Finset.induction_on with + | empty => + simpa only [sum_empty,zero_smul,zero_mul] using + localGamma_smul_right μ hQ 0 f (0 : SobolevSpace μ hQ) + | @insert i s hi ih => + simp only [sum_insert hi] + filter_upwards [localGamma_add_right μ hQ f (a i • u i) (∑ j∈s, a j • u j), + localGamma_smul_right μ hQ (a i) f (u i),ih] with x hx hs ht + rw [hx,hs,ht] + simpa only [sobolevColumnMap_apply] using! hsum univ + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/GammaL2Bound.lean b/lean/OAI/Geometry/RCD/Sobolev/GammaL2Bound.lean new file mode 100644 index 0000000000000000000000000000000000000000..c443578748f3b905bcdb67e9a55bd73e4df71fcc --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/GammaL2Bound.lean @@ -0,0 +1,52 @@ +import OAI.Analysis.RCDHeat.ExistingAnalytic + +namespace OAI + +/-! # L² gradient pairings for a bounded-gradient factor -/ + +open Set Filter MeasureTheory +open scoped NNReal Topology + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +theorem localGamma_memLp_of_bounded_gradient (f g : SobolevSpace μ hQ) (L : ℝ≥0) + (hf : ∀ᵐ x ∂μ, SobolevSpace.minimalSlope μ hQ f x ≤ L) : + MemLp (localGamma μ hQ f g) 2 μ := by + apply ((Lp.memLp (SobolevSpace.minimalSlope μ hQ g)).const_mul (L : ℝ)).mono' + (localGamma_memL1 μ hQ f g).aestronglyMeasurable + filter_upwards [hf, localGamma_abs_le μ hQ f g, + (Lp.coeFn_nonneg _).mpr (SobolevSpace.minimalSlope_nonneg μ hQ g)] with x hx hΓ hg + rw [Real.norm_eq_abs] + exact hΓ.trans (mul_le_mul_of_nonneg_right hx hg) + +omit [ProperSpace X] in +theorem weightedGamma_eq_L2_inner (f g : SobolevSpace μ hQ) + (hΓ : MemLp (localGamma μ hQ f g) 2 μ) (w : Lp ℝ 2 μ) : + weightedGamma μ hQ w f g = inner ℝ w (hΓ.toLp (localGamma μ hQ f g)) := by + rw [L2.inner_def] + apply integral_congr_ae + filter_upwards [hΓ.coeFn_toLp] with x hx + simp only [Real.inner_apply, hx] + +variable [μ.Regular] + +theorem weightedGamma_heat_tendsto (f g : SobolevSpace μ hQ) + (hΓ : MemLp (localGamma μ hQ f g) 2 μ) (w : Lp ℝ 2 μ) : + Tendsto (fun s => weightedGamma μ hQ (heatAt μ hQ s w) f g) (𝓝 0) + (𝓝 (weightedGamma μ hQ w f g)) := by + simp only [weightedGamma_eq_L2_inner μ hQ f g hΓ] + have h : Tendsto (fun s => inner ℝ (heatAt μ hQ s w) + (hΓ.toLp (localGamma μ hQ f g))) (𝓝 0) + (𝓝 (inner ℝ (heatAt μ hQ 0 w) (hΓ.toLp (localGamma μ hQ f g)))) := + ((heatAt_continuous μ hQ w).tendsto 0).inner tendsto_const_nhds + simpa only [heatAt_zero, one_apply_eq_self] using h + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/GammaL2ContinuousAt.lean b/lean/OAI/Geometry/RCD/Sobolev/GammaL2ContinuousAt.lean new file mode 100644 index 0000000000000000000000000000000000000000..7148b3330335fc40200ed1301ef23965317e681a --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/GammaL2ContinuousAt.lean @@ -0,0 +1,29 @@ +import OAI.Geometry.RCD.Sobolev.GammaL2Stability + +namespace OAI + +/-! # Energy-density continuity along bounded-gradient Sobolev paths -/ + +open Filter MeasureTheory +open scoped NNReal Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +theorem gammaL2_continuousAt {F : ℝ → SobolevSpace μ hQ} {t : ℝ} + (L : ℝ≥0) (hL : ∀ s, ∀ᵐ x ∂μ, SobolevSpace.minimalSlope μ hQ (F s) x≤L) + (hF : ContinuousAt F t) : + ContinuousAt (fun s => (localGamma_memLp_of_bounded_gradient μ hQ (F s) (F s) + L (hL s)).toLp (localGamma μ hQ (F s) (F s))) t := by + apply tendsto_iff_norm_sub_tendsto_zero.mpr + apply squeeze_zero (fun _ => norm_nonneg _) + (fun s => gammaL2_sub_norm_le μ hQ (F s) (F t) L L (hL s) (hL t) _ _) + simpa only [sub_self,norm_zero,mul_zero] using + (hF.tendsto.sub_const (F t)).norm.const_mul ((L:ℝ)+L) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/GammaL2Stability.lean b/lean/OAI/Geometry/RCD/Sobolev/GammaL2Stability.lean new file mode 100644 index 0000000000000000000000000000000000000000..f272375cb88de56a1489a0f186bc657a845ac098 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/GammaL2Stability.lean @@ -0,0 +1,51 @@ +import OAI.Geometry.RCD.Sobolev.GammaSquareDifference + +namespace OAI + +/-! # Strong L² stability of bounded-gradient energy densities -/ + +open Set Filter MeasureTheory +open scoped NNReal Topology + +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +theorem gammaL2_sub_norm_le (f g : SobolevSpace μ hQ) (L M : ℝ≥0) + (hf : ∀ᵐ x ∂μ, SobolevSpace.minimalSlope μ hQ f x ≤ L) + (hg : ∀ᵐ x ∂μ, SobolevSpace.minimalSlope μ hQ g x ≤ M) + (hff : MemLp (localGamma μ hQ f f) 2 μ) (hgg : MemLp (localGamma μ hQ g g) 2 μ) : + ‖hff.toLp (localGamma μ hQ f f) - hgg.toLp (localGamma μ hQ g g)‖ ≤ + ((L : ℝ) + M) * ‖f - g‖ := by + have hh : ‖hff.toLp (localGamma μ hQ f f) - hgg.toLp (localGamma μ hQ g g)‖ ≤ + ((L : ℝ) + M) * ‖SobolevSpace.minimalSlope μ hQ (f - g)‖ := by + apply Lp.norm_le_mul_norm_of_ae_le_mul + filter_upwards [localGamma_self_sub_bound μ hQ f g L M hf hg, + hff.coeFn_toLp, hgg.coeFn_toLp, + Lp.coeFn_sub (hff.toLp (localGamma μ hQ f f)) (hgg.toLp (localGamma μ hQ g g)), + (Lp.coeFn_nonneg _).mpr (SobolevSpace.minimalSlope_nonneg μ hQ (f - g))] + with x hx hfx hgx hsub h0 + simpa only [hsub, Pi.sub_apply, hfx, hgx, Real.norm_eq_abs, abs_of_nonneg h0] using hx + exact hh.trans (mul_le_mul_of_nonneg_left (SobolevSpace.minimalSlope_norm_le μ hQ (f - g)) + (add_nonneg L.coe_nonneg M.coe_nonneg)) + +/-- Strong Sobolev convergence and a common gradient bound give strong +L² convergence of the actual energy densities. -/ +theorem gammaL2_tendsto {u : ℕ → SobolevSpace μ hQ} {f : SobolevSpace μ hQ} + (L : ℝ≥0) + (hu : ∀ k, ∀ᵐ x ∂μ, SobolevSpace.minimalSlope μ hQ (u k) x ≤ L) + (hf : ∀ᵐ x ∂μ, SobolevSpace.minimalSlope μ hQ f x ≤ L) + (hconv : Tendsto u atTop (𝓝 f)) : + Tendsto (fun k => (localGamma_memLp_of_bounded_gradient μ hQ (u k) (u k) L (hu k)).toLp + (localGamma μ hQ (u k) (u k))) atTop + (𝓝 ((localGamma_memLp_of_bounded_gradient μ hQ f f L hf).toLp (localGamma μ hQ f f))) := by + apply tendsto_iff_norm_sub_tendsto_zero.mpr + apply squeeze_zero (fun _ => norm_nonneg _) + (fun k => gammaL2_sub_norm_le μ hQ (u k) f L L (hu k) hf _ _) + have hh := ((hconv.sub (tendsto_const_nhds (x := f))).norm).const_mul ((L : ℝ) + L) + simpa only [sub_self, norm_zero, mul_zero] using hh + +end RegularPointCoordinates + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/GammaLpNorm.lean b/lean/OAI/Geometry/RCD/Sobolev/GammaLpNorm.lean new file mode 100644 index 0000000000000000000000000000000000000000..27bbb6059fe22b03176fa9cf06f57ee4b54e7be7 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/GammaLpNorm.lean @@ -0,0 +1,32 @@ +import OAI.Geometry.RCD.Sobolev.GammaL2Bound + +namespace OAI + +/-! # L² size of an energy density with bounded gradient -/ + +open MeasureTheory +open scoped NNReal + +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +theorem gammaLp_norm_le (f g : SobolevSpace μ hQ) (L : ℝ≥0) + (hf : ∀ᵐ x ∂μ, SobolevSpace.minimalSlope μ hQ f x ≤ L) + (hΓ : MemLp (localGamma μ hQ f g) 2 μ) : + ‖hΓ.toLp (localGamma μ hQ f g)‖ ≤ (L : ℝ) * ‖g‖ := by + have hh : ‖hΓ.toLp (localGamma μ hQ f g)‖ ≤ + (L : ℝ) * ‖SobolevSpace.minimalSlope μ hQ g‖ := by + apply Lp.norm_le_mul_norm_of_ae_le_mul + filter_upwards [hΓ.coeFn_toLp, hf, localGamma_abs_le μ hQ f g, + (Lp.coeFn_nonneg _).mpr (SobolevSpace.minimalSlope_nonneg μ hQ g)] + with x hx hfx hΓx h0 + simpa only [hx, Real.norm_eq_abs, abs_of_nonneg h0] using + hΓx.trans (mul_le_mul_of_nonneg_right hfx h0) + exact hh.trans (mul_le_mul_of_nonneg_left (SobolevSpace.minimalSlope_norm_le μ hQ g) + L.coe_nonneg) + +end RegularPointCoordinates + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/GammaSquareDifference.lean b/lean/OAI/Geometry/RCD/Sobolev/GammaSquareDifference.lean new file mode 100644 index 0000000000000000000000000000000000000000..2cc01c23a846b95d6d2744c766ad9ef683074a3f --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/GammaSquareDifference.lean @@ -0,0 +1,40 @@ +import OAI.Geometry.RCD.Sobolev.GammaL2Bound + +namespace OAI + +/-! # Stability of energy densities under bounded-gradient approximation -/ + +open Set Filter MeasureTheory +open scoped NNReal ENNReal + +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +theorem localGamma_self_sub_bound (f g : SobolevSpace μ hQ) (L M : ℝ≥0) + (hf : ∀ᵐ x ∂μ, SobolevSpace.minimalSlope μ hQ f x ≤ L) + (hg : ∀ᵐ x ∂μ, SobolevSpace.minimalSlope μ hQ g x ≤ M) : + ∀ᵐ x ∂μ, |localGamma μ hQ f f x - localGamma μ hQ g g x| ≤ + ((L : ℝ) + M) * SobolevSpace.minimalSlope μ hQ (f - g) x := by + filter_upwards [hf, hg, localGamma_sub_left μ hQ f g f, + localGamma_sub_left μ hQ f g g, localGamma_comm μ hQ f g, + localGamma_abs_le μ hQ (f - g) f, localGamma_abs_le μ hQ (f - g) g, + (Lp.coeFn_nonneg _).mpr (SobolevSpace.minimalSlope_nonneg μ hQ (f - g))] + with x hf' hg' hdf hdg hcomm hbf hbg h0 + have heq : localGamma μ hQ f f x - localGamma μ hQ g g x = + localGamma μ hQ (f - g) f x + localGamma μ hQ (f - g) g x := by + rw [hdf, hdg, hcomm] + ring + rw [heq] + calc + _ ≤ |localGamma μ hQ (f - g) f x| + |localGamma μ hQ (f - g) g x| := abs_add_le _ _ + _ ≤ SobolevSpace.minimalSlope μ hQ (f - g) x * (L : ℝ) + + SobolevSpace.minimalSlope μ hQ (f - g) x * (M : ℝ) := + add_le_add (hbf.trans (mul_le_mul_of_nonneg_left hf' h0)) + (hbg.trans (mul_le_mul_of_nonneg_left hg' h0)) + _ = _ := by ring + +end RegularPointCoordinates + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/GeometricMeanBootstrap.lean b/lean/OAI/Geometry/RCD/Sobolev/GeometricMeanBootstrap.lean new file mode 100644 index 0000000000000000000000000000000000000000..fde04b0158059aed425a9689e125f30646f50286 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/GeometricMeanBootstrap.lean @@ -0,0 +1,54 @@ +import Mathlib + +namespace OAI + +/-! # Removing an auxiliary supremum bound by geometric interpolation -/ + +open Set Filter MeasureTheory +open scoped Topology + +namespace RegularPointCoordinates + +/-- Iterating an interior estimate with a summable loss removes the +initial upper bound. This is the scalar step from L² to L¹ mean bounds. -/ +theorem geometric_mean_bootstrap {X : Type*} [MeasurableSpace X] (μ : Measure X) + (u : X → ℝ) (Ω : Set X) (S : ℕ → Set X) (hS : ∀ i, S i ⊆ Ω) + {θ b D H B : ℝ} (hθ : 0 ≤ θ) (hθ1 : θ < 1) + (hD : 0 ≤ D) (hH : 0 ≤ H) (hB : 0 ≤ B) + (hbalance : θ*b^2 = 1/2) + (hbound : ∀ᵐ x ∂μ.restrict Ω, u x ≤ B) + (hstep : ∀ i C, 0 ≤ C → + (∀ᵐ x ∂μ.restrict (S (i+1)), u x ≤ C) → + ∀ᵐ x ∂μ.restrict (S i), u x ≤ θ*C+D*(b^2)^i*H) : + ∀ᵐ x ∂μ.restrict (S 0), u x ≤ 2*D*H := by + have hiter (n : ℕ) : ∀ i, ∀ᵐ x ∂μ.restrict (S i), + u x ≤ θ^n*B+2*D*H*(b^2)^i := by + induction n with + | zero => + intro i + filter_upwards [ae_restrict_of_ae_restrict_of_subset (hS i) hbound] with x hx + simpa only [pow_zero,one_mul] using hx.trans (le_add_of_nonneg_right (by positivity)) + | succ n hn => + intro i + have hh := hstep i (θ^n*B+2*D*H*(b^2)^(i+1)) (by positivity) (hn (i+1)) + have heq : θ*(θ^n*B+2*D*H*(b^2)^(i+1))+D*(b^2)^i*H = + θ^(n+1)*B+2*D*H*(b^2)^i := by + rw [pow_succ,pow_succ] + have hb : 2*(θ*b^2) = 1 := by linarith only [hbalance] + calc + _ = θ^n*θ*B+(2*(θ*b^2)+1)*D*H*(b^2)^i := by ring + _ = _ := by rw [hb]; ring + simpa only [heq] using hh + have hall : ∀ᵐ x ∂μ.restrict (S 0), ∀ n : ℕ, u x ≤ θ^n*B+2*D*H := by + apply ae_all_iff.mpr + intro n + simpa only [pow_zero,mul_one] using hiter n 0 + have hlim : Tendsto (fun n : ℕ => θ^n*B+2*D*H) atTop (𝓝 (2*D*H)) := by + convert ((tendsto_pow_atTop_nhds_zero_of_lt_one hθ hθ1).mul_const B).add_const (2*D*H) using 1 + simp only [zero_mul,zero_add] + filter_upwards [hall] with x hx + exact ge_of_tendsto hlim (Eventually.of_forall hx) + +end RegularPointCoordinates + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/GeometricMeanSum.lean b/lean/OAI/Geometry/RCD/Sobolev/GeometricMeanSum.lean new file mode 100644 index 0000000000000000000000000000000000000000..a487b1341f9b9d5d2eaec9e7be412c0a5511103f --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/GeometricMeanSum.lean @@ -0,0 +1,51 @@ +import OAI.Geometry.RCD.Sobolev.LogSumExpIntegrable + +namespace OAI + +/-! # Integrating a multiplicative two-term density lower bound -/ + +open Set Filter MeasureTheory +noncomputable section +namespace RegularPointCoordinates +variable {Ω : Type*} [MeasurableSpace Ω] + +theorem geometric_mean_sum (μ : Measure Ω) [IsProbabilityMeasure μ] + {f g h w : Ω → ℝ} (hf : Integrable f μ) (hg : Integrable g μ) + (hh : Integrable h μ) (hw : Integrable w μ) + (hb : ∀ᵐ x ∂μ, Real.exp (w x)*(Real.exp (f x)+Real.exp (g x))/2 ≤ Real.exp (h x)) : + Real.exp (∫ x, w x ∂μ)* + (Real.exp (∫ x, f x ∂μ)+Real.exp (∫ x, g x ∂μ))/2 ≤ Real.exp (∫ x, h x ∂μ) := by + let L := fun x => Real.log (Real.exp (f x)+Real.exp (g x)) + have hL : Integrable L μ := integrable_log_sum_exp μ hf hg + have hlog : ∀ᵐ x ∂μ, w x+L x-Real.log 2 ≤ h x := by + filter_upwards [hb] with x hx + have hp : 0 < Real.exp (w x)*(Real.exp (f x)+Real.exp (g x)) := by positivity + have hl := Real.log_le_log (div_pos hp (by norm_num : (0:ℝ)<2)) hx + rw [Real.log_div hp.ne' (by norm_num),Real.log_mul (Real.exp_ne_zero _) + (by positivity),Real.log_exp,Real.log_exp] at hl + exact hl + have hi : Integrable (fun x => w x+L x-Real.log 2) μ := + (hw.add hL).sub (integrable_const _) + have hmono := integral_mono_ae hi hh hlog + have hint : (∫ x, w x+L x-Real.log 2 ∂μ)= + (∫ x, w x ∂μ)+(∫ x, L x ∂μ)-Real.log 2 := by + have ha : (∫ x, w x+L x-Real.log 2 ∂μ)= + (∫ x, w x+L x ∂μ)-(∫ _ : Ω, Real.log 2 ∂μ) := + integral_sub (hw.add hL) (integrable_const _) + rw [ha,integral_add hw hL] + simp + rw [hint] at hmono + have hj := log_sum_exp_integral_le μ hf hg + have hfin : (∫ x, w x ∂μ)+ + Real.log (Real.exp (∫ x, f x ∂μ)+Real.exp (∫ x, g x ∂μ))-Real.log 2 ≤ + ∫ x, h x ∂μ := by linarith + have he := Real.exp_le_exp.mpr hfin + simpa only [Real.exp_sub,Real.exp_add,Real.exp_log (by positivity : + 0 < Real.exp (∫ x, f x ∂μ)+Real.exp (∫ x, g x ∂μ)), + Real.exp_log (by norm_num : (0:ℝ)<2)] using he + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/GeometricMomentPointwiseBound.lean b/lean/OAI/Geometry/RCD/Sobolev/GeometricMomentPointwiseBound.lean new file mode 100644 index 0000000000000000000000000000000000000000..afcef7f5a4b99dfb6e81b5a09356821dad22b50e --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/GeometricMomentPointwiseBound.lean @@ -0,0 +1,58 @@ +import Mathlib.MeasureTheory.Integral.Bochner.Set +import Mathlib.MeasureTheory.Measure.OpenPos +import Mathlib.Analysis.SpecificLimits.Basic + +namespace OAI + +/-! # Geometric bounds for integer moments give a pointwise density bound -/ + +open Set Filter MeasureTheory Metric +open scoped Topology ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) [IsFiniteMeasureOnCompacts μ] [μ.IsOpenPosMeasure] + +theorem continuous_le_of_geometric_moments {f : X → ℝ} (hf : Continuous f) + (hf0 : ∀ x, 0 ≤ f x) {M B : ℝ} (hB : 0 < B) + (hi : ∀ j : ℕ, Integrable (fun x => (f x)^(j+2)) μ) + (hm : ∀ j : ℕ, (∫ x, (f x)^(j+2) ∂μ) ≤ M*B^(j+2)) : + ∀ x, f x ≤ B := by + intro x + by_contra hx + have hxf : B < f x := lt_of_not_ge hx + let a := (B+f x)/2 + have hBa : B < a := by dsimp only [a]; linarith + have haf : a < f x := by dsimp only [a]; linarith + have ha : 0 < a := hB.trans hBa + obtain ⟨r,hr,hball⟩ := Metric.mem_nhds_iff.mp + (hf.continuousAt.preimage_mem_nhds (Ioi_mem_nhds haf)) + have hfin : μ (ball x r) < ∞ := (measure_mono ball_subset_closedBall).trans_lt + (isCompact_closedBall x r).measure_lt_top + have hv : 0 < μ.real (ball x r) := ENNReal.toReal_pos (measure_ball_pos μ x hr).ne' hfin.ne + have hpow (j : ℕ) : a^(j+2)*μ.real (ball x r) ≤ M*B^(j+2) := by + calc + _ = ∫ y in ball x r, a^(j+2) ∂μ := by simp [mul_comm] + _ ≤ ∫ y in ball x r, (f y)^(j+2) ∂μ := by + apply integral_mono_ae (integrableOn_const (C := a^(j+2)) hfin.ne) (hi j).integrableOn + filter_upwards [ae_restrict_mem measurableSet_ball] with y hy + exact pow_le_pow_left₀ ha.le (le_of_lt (hball hy)) _ + _ ≤ ∫ y, (f y)^(j+2) ∂μ := + setIntegral_le_integral (hi j) (Eventually.of_forall fun y => pow_nonneg (hf0 y) _) + _ ≤ _ := hm j + have hbound (j : ℕ) : μ.real (ball x r) ≤ M*(B/a)^(j+2) := by + have hh : μ.real (ball x r) ≤ M*B^(j+2)/a^(j+2) := + (le_div_iff₀ (pow_pos ha _)).mpr (by simpa only [mul_comm] using hpow j) + simpa only [div_pow,mul_div_assoc] using hh + have hlim := tendsto_pow_atTop_nhds_zero_of_lt_one (div_nonneg hB.le ha.le) + ((div_lt_one ha).mpr hBa) + have hlim' : Tendsto (fun j : ℕ => M*(B/a)^(j+2)) atTop (𝓝 0) := by + simpa only [pow_add,mul_zero,zero_mul] using (hlim.mul_const ((B/a)^2)).const_mul M + have hz : μ.real (ball x r) ≤ 0 := ge_of_tendsto hlim' (Eventually.of_forall hbound) + exact (not_le_of_gt hv) hz + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/GeometricTailMoment.lean b/lean/OAI/Geometry/RCD/Sobolev/GeometricTailMoment.lean new file mode 100644 index 0000000000000000000000000000000000000000..619c965445de575707b2c8267827de97ad60de35 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/GeometricTailMoment.lean @@ -0,0 +1,112 @@ +import Mathlib.MeasureTheory.Integral.DominatedConvergence +import Mathlib.Analysis.SpecialFunctions.Pow.Real +import Mathlib.Analysis.SpecificLimits.Basic + +namespace OAI + +/-! # Moments from geometric level-set bounds -/ + +open Set MeasureTheory Filter +open scoped ENNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MeasurableSpace X] + +/-- Geometrically decaying level measures yield a strong moment whenever +the decay exceeds the growth of the moment on successive levels. -/ +theorem geometric_tail_moment (μ : Measure X) [IsFiniteMeasure μ] + {f : X → ℝ} (hf : Measurable f) (hf0 : ∀ x, 0 ≤ f x) + {S B A q p : ℝ} (hS : 0 < S) (hB : 1 < B) (hA : 0 ≤ A) (hq : 0 ≤ q) + (hp : 0 < p) (hdecay : B^p*q < 1) + (htail : ∀ k : ℕ, μ.real {x | S*B^k < f x} ≤ A*q^k) : + Integrable (fun x => f x ^ p) μ ∧ + (∫ x, f x ^ p ∂μ) ≤ (S*B)^p * μ.real univ + + A*(S*B^2)^p / (1-B^p*q) := by + classical + let E (k : ℕ) := {x | S*B^k < f x} + let W (k : ℕ) := (S*B^(k+2))^p + let G (k : ℕ) : X → ℝ≥0∞ := (E k).indicator (fun _ => ENNReal.ofReal (W k)) + let H := A*(S*B^2)^p + let θ := B^p*q + let M := (S*B)^p*μ.real univ + H/(1-θ) + have hB0 : 0 < B := zero_lt_one.trans hB + have hθ0 : 0 ≤ θ := mul_nonneg (Real.rpow_nonneg hB0.le _) hq + have hθ1 : θ < 1 := hdecay + have hH : 0 ≤ H := mul_nonneg hA (Real.rpow_nonneg (by positivity) _) + have hE (k : ℕ) : MeasurableSet (E k) := measurableSet_lt measurable_const hf + have hG (k : ℕ) : Measurable (G k) := measurable_const.indicator (hE k) + have hW (k : ℕ) : 0 ≤ W k := Real.rpow_nonneg (by positivity) _ + have hpoint (x : X) : ENNReal.ofReal (f x^p) ≤ + ENNReal.ofReal ((S*B)^p) + ∑' k, G k x := by + by_cases hx : f x < S*B + · apply le_trans _ le_self_add + exact ENNReal.ofReal_le_ofReal (Real.rpow_le_rpow (hf0 x) hx.le hp.le) + · have hxSB : S*B ≤ f x := le_of_not_gt hx + obtain ⟨k, hk, hk'⟩ := exists_nat_pow_near + ((le_div_iff₀ (mul_pos hS hB0)).mpr (by simpa using hxSB)) hB + have hlow : S*B^k < f x := by + have hh := (le_div_iff₀ (mul_pos hS hB0)).mp hk + have hstrict : S*B^k < (S*B^k)*B := by + nlinarith [mul_pos hS (pow_pos hB0 k)] + nlinarith + have hhigh : f x < S*B^(k+2) := by + have hh := (div_lt_iff₀ (mul_pos hS hB0)).mp hk' + rw [show k+2 = (k+1)+1 by omega, pow_succ] + nlinarith + calc + _ ≤ ENNReal.ofReal (W k) := + ENNReal.ofReal_le_ofReal (Real.rpow_le_rpow (hf0 x) hhigh.le hp.le) + _ = G k x := by dsimp only [G]; rw [indicator_of_mem (show x ∈ E k from hlow)] + _ ≤ ∑' j, G j x := ENNReal.le_tsum (f := fun j => G j x) k + _ ≤ _ := le_add_self + have hterm (k : ℕ) : (∫⁻ x, G k x ∂μ) ≤ ENNReal.ofReal (H*θ^k) := by + rw [lintegral_indicator_const (hE k)] + have hmeasure : μ (E k) ≤ ENNReal.ofReal (A*q^k) := by + rw [← ofReal_measureReal (measure_ne_top μ (E k))] + exact ENNReal.ofReal_le_ofReal (htail k) + calc + _ ≤ ENNReal.ofReal (W k)*ENNReal.ofReal (A*q^k) := mul_le_mul' le_rfl hmeasure + _ = ENNReal.ofReal (W k*(A*q^k)) := (ENNReal.ofReal_mul (hW k)).symm + _ = _ := by + congr 1 + dsimp only [W, H, θ] + rw [show k+2 = 2+k by omega, pow_add] + rw [show S*(B^2*B^k) = (S*B^2)*B^k by ring, + Real.mul_rpow (by positivity) (by positivity), + ← Real.rpow_pow_comm hB0.le p k, mul_pow] + ring + have hsum : Summable (fun k : ℕ => H*θ^k) := + (summable_geometric_of_lt_one hθ0 hθ1).mul_left H + have htotal : (∫⁻ x, ENNReal.ofReal (f x^p) ∂μ) ≤ ENNReal.ofReal M := by + calc + _ ≤ ∫⁻ x, ENNReal.ofReal ((S*B)^p) + ∑' k, G k x ∂μ := lintegral_mono hpoint + _ = ENNReal.ofReal ((S*B)^p)*μ univ + ∑' k, ∫⁻ x, G k x ∂μ := by + rw [lintegral_add_left measurable_const, lintegral_const, + lintegral_tsum (fun k => (hG k).aemeasurable)] + _ ≤ ENNReal.ofReal ((S*B)^p)*μ univ + ∑' k, ENNReal.ofReal (H*θ^k) := + add_le_add le_rfl (ENNReal.tsum_le_tsum hterm) + _ = ENNReal.ofReal M := by + rw [← ENNReal.ofReal_tsum_of_nonneg (fun k => mul_nonneg hH (pow_nonneg hθ0 _)) hsum, + tsum_mul_left, tsum_geometric_of_lt_one hθ0 hθ1, + ← ofReal_measureReal (measure_ne_top μ univ), + ← ENNReal.ofReal_mul (Real.rpow_nonneg (by positivity) _), + ← ENNReal.ofReal_add (by positivity) (by positivity)] + rfl + have hfp : Measurable (fun x => f x^p) := hf.pow_const p + have hfp0 : ∀ᵐ x ∂μ, 0 ≤ f x^p := + Eventually.of_forall fun x => Real.rpow_nonneg (hf0 x) p + have hi : Integrable (fun x => f x^p) μ := + (lintegral_ofReal_ne_top_iff_integrable hfp.aestronglyMeasurable hfp0).mp + (ne_top_of_le_ne_top ENNReal.ofReal_ne_top htotal) + refine ⟨hi, ?_⟩ + rw [integral_eq_lintegral_of_nonneg_ae hfp0 hfp.aestronglyMeasurable] + exact (ENNReal.toReal_mono ENNReal.ofReal_ne_top htotal).trans_eq + (ENNReal.toReal_ofReal (by dsimp only [M]; positivity)) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/GoodCutoffFromResolvent.lean b/lean/OAI/Geometry/RCD/Sobolev/GoodCutoffFromResolvent.lean new file mode 100644 index 0000000000000000000000000000000000000000..f9c744b9424725196d060c5acd8ffb62ac0d2705 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/GoodCutoffFromResolvent.lean @@ -0,0 +1,278 @@ +import OAI.Geometry.RCD.Sobolev.UniformRadialResolvent +import OAI.Geometry.RCD.Sobolev.GoodLaplacianCutoff + +namespace OAI + +/-! # Good Laplacian cutoffs from the actual RCD resolvent + +A scalar plateau applied to a radial resolvent yields the exact inner and +outer radii used by the chart argument. Its differentiated formula gives +locality of the Laplacian on both constant regions. +-/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped Topology NNReal ENNReal BoundedContinuousFunction + +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) [IsFiniteMeasureOnCompacts μ] + (hQ : QuadraticCheegerEnergy μ) + +private theorem boundedLaplacian_comp_C2_formula (f : SobolevSpace μ hQ) (d : Lp ℝ 2 μ) + (hd : IsWeakLaplacian μ hQ f d) {v : X → ℝ} {L D : ℝ≥0} + (hv : LipschitzWith L v) (hf : SobolevSpace.toLp μ hQ f =ᵐ[μ] v) + (hD : ∀ᵐ x ∂μ, |d x| ≤ D) + {φ ψ χ : ℝ → ℝ} {C J : ℝ≥0} + (hφ : LipschitzWith C φ) (hφ0 : φ 0=0) + (hψ : LipschitzWith J ψ) (hψ0 : ψ 0=0) + (hχ : Continuous χ) (hdφ : ∀ a, HasDerivAt φ (ψ a) a) + (hdψ : ∀ a, HasDerivAt ψ (χ a) a) + (B E : ℝ≥0) (hB : ∀ a, |ψ a| ≤ B) (hE : ∀ a, |χ a| ≤ E) : + ∃ q : Lp ℝ 2 μ, + IsWeakLaplacian μ hQ (SobolevSpace.comp μ hQ hφ hφ0 f) q ∧ + (∀ᵐ x ∂μ, |q x| ≤ (B*D+E*L^2:ℝ≥0)) ∧ + (∀ᵐ x ∂μ, q x = ψ (v x)*d x + χ (v x)*localGamma μ hQ f f x) := by + let F := SobolevSpace.toLp μ hQ f + let G := SobolevSpace.minimalSlope μ hQ f + have hG0 : ∀ᵐ x ∂μ, 0 ≤ G x := (Lp.coeFn_nonneg _).mpr (SobolevSpace.minimalSlope_nonneg μ hQ f) + have hGL := SobolevSpace.minimalSlope_le_lipschitz μ hQ f hv hf + have hGs : MemLp (fun x => G x^2) 2 μ := by + apply (Lp.memLp G).of_le_mul (c := (L:ℝ)) ((Lp.aestronglyMeasurable G).pow 2) + filter_upwards [hG0,hGL] with x h0 hL + change |G x^2| ≤ (L:ℝ)*|G x| + rw [abs_of_nonneg (sq_nonneg _),abs_of_nonneg h0] + change G x ≤ L at hL + nlinarith + have hmψ : MemLp (fun x => ψ (F x)) ∞ μ := + memLp_top_of_bound (hψ.continuous.comp_aestronglyMeasurable (Lp.aestronglyMeasurable F)) B + (Eventually.of_forall fun x => by simpa only [Real.norm_eq_abs] using hB (F x)) + have hmχ : MemLp (fun x => χ (F x)) ∞ μ := + memLp_top_of_bound (hχ.comp_aestronglyMeasurable (Lp.aestronglyMeasurable F)) E + (Eventually.of_forall fun x => by simpa only [Real.norm_eq_abs] using hE (F x)) + let Q (x : X) := ψ (F x)*d x+χ (F x)*G x^2 + have hm : MemLp Q 2 μ := by + simpa only [Q, Pi.add_apply, Pi.mul_apply, mul_comm] using! + ((Lp.memLp d).mul hmψ).add (hGs.mul hmχ) + let q := hm.toLp Q + have heq : ⇑q =ᵐ[μ] Q := hm.coeFn_toLp + refine ⟨q,weakLaplacian_comp_C2 μ hQ f d q hd hφ hφ0 hψ hψ0 hχ hdφ hdψ B E hB hE ?_,?_,?_⟩ + · filter_upwards [heq,localGamma_self μ hQ f] with x hx hg + rw [hx,hg] + · filter_upwards [heq,hD,hG0,hGL] with x hx hd h0 hL + rw [hx] + change |ψ (F x)*d x+χ (F x)*G x^2| ≤ (B:ℝ)*D+E*(L:ℝ)^2 + calc + _ ≤ |ψ (F x)*d x|+|χ (F x)*G x^2| := abs_add_le _ _ + _ ≤ (B:ℝ)*D+E*(L:ℝ)^2 := by + simp only [abs_mul,abs_pow,abs_of_nonneg h0] + exact add_le_add (mul_le_mul (hB _) hd (abs_nonneg _) B.coe_nonneg) + (mul_le_mul (hE _) ((sq_le_sq₀ h0 L.coe_nonneg).mpr hL) (sq_nonneg _) E.coe_nonneg) + + · filter_upwards [heq, hf, localGamma_self μ hQ f] with x hx hvx hgamma + rw [hx] + dsimp only [Q, F, G] + rw [hvx, hgamma] + + +omit [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + [IsFiniteMeasureOnCompacts μ] in +private theorem plateau_derivatives_zero {φ ψ χ : ℝ → ℝ} + (hdφ : ∀ a, HasDerivAt φ (ψ a) a) (hdψ : ∀ a, HasDerivAt ψ (χ a) a) + {a c : ℝ} (h : φ =ᶠ[𝓝 a] fun _ => c) : ψ a = 0 ∧ χ a = 0 := by + have hz : ψ =ᶠ[𝓝 a] fun _ => 0 := by + filter_upwards [eventually_eventually_nhds.mpr h] with b hb + have hb' : φ =ᶠ[𝓝 b] fun _ => c := hb + exact (hdφ b).unique ((hasDerivAt_const b c).congr_of_eventuallyEq hb') + exact ⟨hz.self_of_nhds, (hdψ a).unique + ((hasDerivAt_const a 0).congr_of_eventuallyEq hz)⟩ + + +variable {μ hQ} + +/-- The curvature-dimension condition and heat resolvents produce a cutoff +with uniformly controlled gradient and Laplacian. -/ +theorem NoncollapsedRCD.goodCutoffInput_bounded {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (a : ℝ) (ha : 0 ≤ a) : + 2 ≤ n → ∃ C : ℝ, 1 ≤ C ∧ ∀ (p : X) (r : ℝ), 0 < r → + -a ≤ K * r ^ 2 → Nonempty (GoodLaplacianCutoff (hausdorff n X) hX.quadratic p r C) := by + intro hn + obtain ⟨D, hD, hresolvent⟩ := hX.uniform_radial_resolvent_bounded hn a ha + obtain ⟨φ, ψ, χ, C, J, B, E, hφ, hψ, hχ, hdφ, hdψ, hB, hE, + hφ0, hψ0, hφbounds, hφzero, hφone⟩ := exists_smooth_scalar_cutoff + let CC : ℝ := (2*C+1)+(2048*B*D+4*E) + have hCC : 1 ≤ CC := by + dsimp only [CC] + have hD0 : 0 ≤ D := zero_le_one.trans hD + nlinarith only [C.coe_nonneg, B.coe_nonneg, E.coe_nonneg, mul_nonneg B.coe_nonneg hD0] + refine ⟨CC, hCC, ?_⟩ + intro p R hR hcurv + let := hX.separable + let μ := hausdorff n X + let := locallyFinite_of_finiteOnBounded μ hX.finiteOnBounded + let hQ := hX.quadratic + obtain ⟨u, d, v, hud, hd, hv, hu, huM, happrox⟩ := hresolvent p R hR hcurv + let DD : ℝ≥0 := ⟨(2048*D)/R^2, by positivity⟩ + have hd' : ∀ᵐ x ∂μ, |d x| ≤ DD := hd + let a := SobolevSpace.comp μ hQ hφ hφ0 u + have ha : SobolevSpace.toLp μ hQ a =ᵐ[μ] fun x => φ (v x) := by + filter_upwards [SobolevSpace.comp_coe μ hQ hφ hφ0 u, hu] with x hx he + exact hx.trans (congrArg φ he) + have haB : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ a x| ≤ (1:ℝ≥0) := by + filter_upwards [ha] with x hx + rw [hx, abs_of_nonneg (hφbounds _).1] + exact (hφbounds _).2 + obtain ⟨q, hq, hqB, hqformula⟩ := boundedLaplacian_comp_C2_formula μ hQ u d hud hv hu hd' + hφ hφ0 hψ hψ0 hχ hdφ hdψ B E hB hE + have hR2 : 0 < 2*R := by positivity + let b := radialSobolevCutoff μ hQ p hR2 + let η := radialCutoff p (2*R) + have hb : SobolevSpace.toLp μ hQ b =ᵐ[μ] η := radialSobolevCutoff_coe μ hQ p hR2 + have hη (x : X) : 0 ≤ η x ∧ η x ≤ 1 := radialCutoff_bounds p (2*R) x + have hηabs (x : X) : |η x| ≤ (1:ℝ≥0) := by + rw [abs_of_nonneg (hη x).1]; exact (hη x).2 + have hbB : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ b x| ≤ (1:ℝ≥0) := + hb.mono fun x hx => hx ▸ hηabs x + have hplateau : ∀ᵐ x ∂μ, SobolevSpace.toLp μ hQ a x=0 ∨ + SobolevSpace.toLp μ hQ b x=0 ∨ SobolevSpace.toLp μ hQ b x=1 := by + filter_upwards [ha,hb] with x hx hy + rw [hx,hy] + by_cases hi : dist p x ≤ 2*R + · exact Or.inr (Or.inr (radialCutoff_eq_one p hR2 hi)) + by_cases ho : 4*R ≤ dist p x + · exact Or.inr (Or.inl (radialCutoff_eq_zero p hR2 (by linarith))) + left + have hc := happrox x (by linarith) + rw [radialCutoff_eq_zero p hR (by linarith), sub_zero] at hc + exact hφzero _ (by linarith [le_abs_self (v x)]) + let mult := boundedMultiplier μ η (radialCutoff_lipschitz p hR2).continuous.measurable 1 hηabs + let dq := lpMultiplier μ mult q + have hdq : ⇑dq =ᵐ[μ] fun x => η x*q x := by + filter_upwards [lpMultiplier_coe μ mult q, boundedMultiplier_coe μ η + (radialCutoff_lipschitz p hR2).continuous.measurable 1 hηabs] with x hx hy + exact hx.trans (by rw [hy]) + let w := SobolevSpace.product μ hQ a b 1 1 + have hwd : IsWeakLaplacian μ hQ w dq := by + apply weakLaplacian_product_plateau μ hQ a b q dq 1 1 haB hbB hq hplateau + filter_upwards [hdq,hb] with x hx hy + rw [hx,hy] + let F (x : X) := η x*φ (v x) + have hwe : SobolevSpace.toLp μ hQ w =ᵐ[μ] F := by + filter_upwards [SobolevSpace.product_coe μ hQ a b 1 1 haB hbB, ha, hb] with x hx hax hbx + rw [hx,hax,hbx] + exact mul_comm _ _ + let rL : ℝ≥0 := ⟨R⁻¹, inv_nonneg.mpr hR.le⟩ + let r2L : ℝ≥0 := ⟨(2*R)⁻¹, inv_nonneg.mpr hR2.le⟩ + have hv' : LipschitzWith (2*rL) v := hv + have hLL : LipschitzWith (1*(C*(2*rL))+1*r2L) F := + lipschitzWith_mul_of_support_bound (radialCutoff_lipschitz p hR2) (hφ.comp hv') + hηabs (fun x _ => by + rw [abs_of_nonneg (hφbounds _).1] + exact (hφbounds _).2) + have hLbound : ((1*(C*(2*rL))+1*r2L : ℝ≥0) : ℝ) ≤ CC/R := by + simp only [NNReal.coe_add, NNReal.coe_mul, NNReal.coe_ofNat, one_mul] + change (C:ℝ)*(2*R⁻¹)+(2*R)⁻¹ ≤ CC/R + have hi : (2*R)⁻¹ ≤ R⁻¹ := inv_anti₀ hR (by linarith) + have hc : (2*C+1:ℝ) ≤ CC := by + dsimp only [CC] + exact le_add_of_nonneg_right (add_nonneg + (mul_nonneg (mul_nonneg (by norm_num) B.coe_nonneg) (zero_le_one.trans hD)) + (mul_nonneg (by norm_num) E.coe_nonneg)) + calc + _ ≤ C*(2*R⁻¹)+R⁻¹ := by linarith only [hi] + _ = (2*C+1)*R⁻¹ := by ring + _ ≤ CC*R⁻¹ := mul_le_mul_of_nonneg_right hc (inv_nonneg.mpr hR.le) + _ = _ := div_eq_mul_inv _ _ |>.symm + have hFbounds (x : X) : 0 ≤ F x ∧ F x ≤ 1 := + ⟨mul_nonneg (hη x).1 (hφbounds _).1, + (mul_le_mul (hη x).2 (hφbounds _).2 (hφbounds _).1 zero_le_one).trans_eq (one_mul _)⟩ + have hFone (x : X) (hx : dist p x ≤ R) : F x=1 := by + have hi : η x=1 := radialCutoff_eq_one p hR2 (by linarith) + have hc := happrox x (by linarith) + rw [radialCutoff_eq_one p hR hx] at hc + exact show η x*φ (v x)=1 from by rw [hi,hφone _ (by linarith),one_mul] + have hFzero (x : X) (hx : 2*R < dist p x) : F x=0 := by + by_cases ho : 4*R ≤ dist p x + · have hi : η x=0 := radialCutoff_eq_zero p hR2 (by linarith) + exact show η x*φ (v x)=0 from by rw [hi,zero_mul] + have hc := happrox x (le_of_not_ge ho) + rw [radialCutoff_eq_zero p hR hx.le, sub_zero] at hc + exact show η x*φ (v x)=0 from by rw [hφzero _ (by linarith [le_abs_self (v x)]),mul_zero] + have hlocal : ∀ᵐ x ∂μ, (dist p x < R ∨ 2*R < dist p x) → dq x=0 := by + filter_upwards [hdq, hqformula] with x hx hqx hdist + rw [hx] + rcases hdist with hin | hout + · have hc := happrox x (by linarith) + rw [radialCutoff_eq_one p hR hin.le] at hc + have hs : φ =ᶠ[𝓝 (v x)] fun _ => 1 := by + have hab : |v x-1| < 1/4 := by linarith + filter_upwards [((continuous_id.sub continuous_const).abs.tendsto (v x)).eventually + (gt_mem_nhds hab)] with z hz + exact hφone z hz.le + obtain ⟨hψx,hχx⟩ := plateau_derivatives_zero hdφ hdψ hs + rw [hqx,hψx,hχx]; ring + · by_cases ho : 4*R ≤ dist p x + · have hi : η x=0 := radialCutoff_eq_zero p hR2 (by linarith) + rw [hi,zero_mul] + have hc := happrox x (le_of_not_ge ho) + rw [radialCutoff_eq_zero p hR hout.le, sub_zero] at hc + have hs : φ =ᶠ[𝓝 (v x)] fun _ => 0 := by + have hvx : v x < 1/4 := by linarith [le_abs_self (v x)] + filter_upwards [gt_mem_nhds hvx] with z hz + exact hφzero z hz.le + obtain ⟨hψx,hχx⟩ := plateau_derivatives_zero hdφ hdψ hs + rw [hqx,hψx,hχx]; ring + have hqbound : ∀ᵐ x ∂μ, |dq x| ≤ CC/R^2 := by + filter_upwards [hdq,hqB] with x hx hqb + rw [hx,abs_mul] + have hh := (mul_le_mul (hηabs x) hqb (abs_nonneg _) (by norm_num : (0:ℝ)≤1)).trans_eq + (one_mul _) + apply hh.trans + change (B:ℝ)*((2048*D)/R^2)+(E:ℝ)*(2*R⁻¹)^2 ≤ CC/R^2 + have hEq : (B:ℝ)*((2048*D)/R^2)+(E:ℝ)*(2*R⁻¹)^2 = + (2048*B*D+4*E)/R^2 := by field_simp; ring + rw [hEq] + apply div_le_div_of_nonneg_right _ (sq_nonneg R) + dsimp only [CC] + exact le_add_of_nonneg_left (by positivity) + let weight : X →ᵇ ℝ := BoundedContinuousFunction.ofNormedAddCommGroup F hLL.continuous + 1 (fun x => by rw [Real.norm_eq_abs,abs_of_nonneg (hFbounds x).1]; exact (hFbounds x).2) + refine ⟨{ + weight := weight + sobolev := w + laplacian := dq + bounds := hFbounds + one := ?_ + zero := hFzero + lipschitz := hLL.weaken ?_ + representative := hwe + weak_laplacian := hwd + laplacian_bound := hqbound + laplacian_locality := hlocal }⟩ + · intro x hx + apply hFone + rw [dist_comm] + exact le_of_lt hx + · apply NNReal.coe_le_coe.mp + rw [Real.coe_toNNReal _ (div_nonneg (zero_le_one.trans hCC) hR.le)] + exact hLbound + +/-- The dimensional cutoff bound at unit rescaled curvature. -/ +theorem NoncollapsedRCD.goodCutoffInput {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) : LocalGoodCutoffInput hX := by + exact hX.goodCutoffInput_bounded 1 (by norm_num) + +/-- At any fixed radius the actual RCD resolvent supplies a good cutoff. +The constant may depend on the rescaled lower curvature. -/ +theorem NoncollapsedRCD.goodCutoff_exists {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (hn : 2 ≤ n) (p : X) {r : ℝ} (hr : 0 < r) : + ∃ C : ℝ, 1 ≤ C ∧ Nonempty (GoodLaplacianCutoff (hausdorff n X) hX.quadratic p r C) := by + obtain ⟨C, hC, hcutoff⟩ := hX.goodCutoffInput_bounded (|K| * r ^ 2) (by positivity) hn + refine ⟨C, hC, hcutoff p r hr ?_⟩ + simpa only [neg_mul] using mul_le_mul_of_nonneg_right (neg_abs_le K) (sq_nonneg r) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/GoodLaplacianCutoff.lean b/lean/OAI/Geometry/RCD/Sobolev/GoodLaplacianCutoff.lean new file mode 100644 index 0000000000000000000000000000000000000000..40f28b46a395ac43b2b059d17f404bc56adf2657 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/GoodLaplacianCutoff.lean @@ -0,0 +1,92 @@ +import OAI.Geometry.RCD.Sobolev.HarmonicBochnerConstruction + +namespace OAI + +/-! +# Quantitative cutoff input and its canonical Bochner application + +The existence input is the fixed radius-ratio specialization of Mondino-- +Naber (2019), Lemma 3.1 (arXiv:1405.2222v3, pp.13--14), also stated in +Connell et al. (2021), Lemma 2.6. Scaling to unit radius and lowering the +curvature bound to -1 makes its constant dimensional. Support of the +Laplacian off the transition region is the locality of the weak Laplacian. +-/ + +open Set Metric MeasureTheory +open scoped NNReal InnerProductSpace BoundedContinuousFunction + +noncomputable section + +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +/-- An actual Sobolev cutoff with bounded weak Laplacian. -/ +structure GoodLaplacianCutoff (p : X) (r C : ℝ) where + weight : X →ᵇ ℝ + sobolev : SobolevSpace μ hQ + laplacian : Lp ℝ 2 μ + bounds : ∀ x, 0 ≤ weight x ∧ weight x ≤ 1 + one : ∀ x ∈ ball p r, weight x = 1 + zero : ∀ x, 2 * r < dist p x → weight x = 0 + lipschitz : LipschitzWith (C / r).toNNReal weight + representative : SobolevSpace.toLp μ hQ sobolev =ᵐ[μ] weight + weak_laplacian : IsWeakLaplacian μ hQ sobolev laplacian + laplacian_bound : ∀ᵐ x ∂μ, |laplacian x| ≤ C / r ^ 2 + laplacian_locality : ∀ᵐ x ∂μ, + (dist p x < r ∨ 2 * r < dist p x) → laplacian x = 0 + +/-- Exact existence consequence at bounded rescaled curvature. -/ +def LocalGoodCutoffInput {K : ℝ} {n : ℕ} (hX : NoncollapsedRCD K n X) : Prop := + 2 ≤ n → ∃ C : ℝ, 1 ≤ C ∧ ∀ (p : X) (r : ℝ), 0 < r → + -1 ≤ K * r ^ 2 → Nonempty (GoodLaplacianCutoff (hausdorff n X) hX.quadratic p r C) + +namespace GoodLaplacianCutoff + +omit [ProperSpace X] [BorelSpace X] in +/-- The topological support remains inside the closed outer ball. -/ +theorem tsupport_subset {p : X} {r C : ℝ} (χ : GoodLaplacianCutoff μ hQ p r C) : + tsupport (χ.weight : X → ℝ) ⊆ closedBall p (2 * r) := by + apply closure_minimal _ isClosed_closedBall + intro x hx + by_contra hn + exact hx (χ.zero x (by simpa only [mem_closedBall, dist_comm, not_le] using hn)) + +omit [BorelSpace X] in +theorem hasCompactSupport {p : X} {r C : ℝ} (χ : GoodLaplacianCutoff μ hQ p r C) : + HasCompactSupport (χ.weight : X → ℝ) := + (isCompact_closedBall p (2 * r)).of_isClosed_subset (isClosed_tsupport _) (χ.tsupport_subset μ hQ) + +/-- The good cutoff and local harmonic Bochner equation imply small mass +on the inner ball, without a separate raw-source assumption. -/ +theorem harmonic_mass_le [IsFiniteMeasureOnCompacts μ] + {n : ℕ} {p : X} {ρ C r κ : ℝ} {L : ℝ≥0} + (χ : GoodLaplacianCutoff μ hQ p ρ C) (hρ : 0 < ρ) (hρr : ρ < r) + (hC : 0 ≤ C) (hκ : 0 ≤ κ) (u : Fin n → SobolevSpace μ hQ) + (M : PositiveBilinearMeasure X (Euclidean n)) + (G : ∀ v, LocalHarmonicEnergy μ hQ (sobolevColumnMap μ hQ u) M κ p r L v) + {ε : ℝ} (hε : 0 ≤ ε) + (herror : ∀ i j : Fin n, ∫ x in closedBall p (2 * ρ), + |localGamma μ hQ (u i) (u j) x - (if i = j then 1 else 0)| ∂μ ≤ ε) + (v : Euclidean n) : + ⟪v, M.massOperator (ball p ρ) v⟫_ℝ ≤ + ((C / ρ ^ 2) * ((n : ℝ) ^ 2 * ε) / 2 + + κ * ((n : ℝ) ^ 2 * ε + μ.real (closedBall p (2 * ρ)))) * ‖v‖ ^ 2 := by + apply harmonic_bochner_mass_le μ hQ u M G χ.weight χ.bounds + (χ.hasCompactSupport μ hQ) _ (mul_pos (by norm_num) hρ) (by linarith) + χ.zero χ.sobolev χ.representative χ.laplacian χ.weak_laplacian _ + (ball p ρ) measurableSet_ball χ.one (div_nonneg hC (sq_nonneg ρ)) hε hκ + χ.laplacian_bound herror v + · intro x hx + have hd : dist x p ≤ 2 * ρ := χ.tsupport_subset μ hQ hx + exact lt_of_le_of_lt hd (by linarith) + · filter_upwards [χ.laplacian_locality] with x hx hdist + exact hx (Or.inr hdist) + +end GoodLaplacianCutoff +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/GoodTimeExtension.lean b/lean/OAI/Geometry/RCD/Sobolev/GoodTimeExtension.lean new file mode 100644 index 0000000000000000000000000000000000000000..8378be2e7fec7187bc92b58435cfdf96b80e282e --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/GoodTimeExtension.lean @@ -0,0 +1,45 @@ +import OAI.Geometry.RCD.Sobolev.RemoveExceptionalTimes +import Mathlib.Topology.ExtendFrom + +namespace OAI + +/-! # A common time extension agreeing with every continuous cylinder -/ + +open Set Filter MeasureTheory +open scoped Topology +noncomputable section +namespace RegularPointCoordinates + +def goodTimeExtension {Y : Type*} (N : Set ℝ) (G : ℝ → Y → ℝ) (t : ℝ) (x : Y) : ℝ := + if t ∈ Ioo 0 1 then extendFrom (Ioo 0 1 \ N) (fun s => G s x) t else 0 + +theorem goodTimeExtension_eq_local {Y : Type*} (N : Set ℝ) (hN : N.Countable) + (G U : ℝ → Y → ℝ) {δ : ℝ} (hδ : 0 < δ) + (hU : ∀ x, Continuous (fun t => U t x)) + (heq : ∀ t ∈ Ioo δ 1, t ∉ N → ∀ x, U t x = G t x) + {t : ℝ} (ht : t ∈ Ioo δ 1) (x : Y) : goodTimeExtension N G t x = U t x := by + have ht0 : t ∈ Ioo (0:ℝ) 1 := ⟨hδ.trans ht.1,ht.2⟩ + have hd : Dense Nᶜ := volume.dense_of_ae (hN.ae_notMem volume) + have hc : t ∈ closure (Ioo (0:ℝ) 1 \ N) := by + simpa only [sdiff_eq] using isOpen_Ioo.inter_closure (t := Nᶜ) ⟨ht0,hd t⟩ + have hevent : (fun s => G s x) =ᶠ[𝓝[Ioo (0:ℝ) 1 \ N] t] (fun s => U s x) := by + filter_upwards [self_mem_nhdsWithin, + mem_nhdsWithin_of_mem_nhds (isOpen_Ioo.mem_nhds ht)] with s hs hsi + exact (heq s hsi hs.2 x).symm + have hlim : Tendsto (fun s => G s x) (𝓝[Ioo (0:ℝ) 1 \ N] t) (𝓝 (U t x)) := + ((hU x).continuousAt.tendsto.mono_left inf_le_left).congr' hevent.symm + simp only [goodTimeExtension,ite_eq_left ht0] + exact extendFrom_eq hc hlim + +theorem goodTimeExtension_eq_local_subtype {X : Type*} (A : Set X) + (N : Set ℝ) (hN : N.Countable) (G : ℝ → X → ℝ) (U : ℝ → A → ℝ) + {δ : ℝ} (hδ : 0 < δ) (hU : ∀ x, Continuous (fun t => U t x)) + (heq : ∀ t ∈ Ioo δ 1, t ∉ N → ∀ x, U t x = G t x) + {t : ℝ} (ht : t ∈ Ioo δ 1) (x : A) : goodTimeExtension N G t x = U t x := + goodTimeExtension_eq_local N hN (fun t (x : A) => G t x) U hδ hU heq ht x + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/GradientEnergyFromDensity.lean b/lean/OAI/Geometry/RCD/Sobolev/GradientEnergyFromDensity.lean new file mode 100644 index 0000000000000000000000000000000000000000..0564d03b51d1a2bf0a7d5e9cf1a2a479e169567b --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/GradientEnergyFromDensity.lean @@ -0,0 +1,40 @@ +import OAI.Geometry.RCD.Sobolev.EuclideanEnergyDifferentiation +import Mathlib.Analysis.Calculus.FDeriv.Measurable + +namespace OAI + +/-! # Integrating the sharp pointwise energy-density comparison -/ + +open Set Filter MeasureTheory +open scoped ENNReal +noncomputable section +namespace RegularPointCoordinates + +theorem gradient_energy_from_density {n : ℕ} (ν : FiniteMeasure (Euclidean n)) + (g : Euclidean n → ℝ) (A : Set (Euclidean n)) {V : ℝ} (hV : 0≤V) + (hb : ∀ᵐ x ∂(volume : Measure (Euclidean n)).restrict A, + ‖fderiv ℝ g x‖^2≤V*((ν : Measure (Euclidean n)).rnDeriv volume x).toReal) : + IntegrableOn (fun x => ‖fderiv ℝ g x‖^2) A volume ∧ + (∫ x in A, ‖fderiv ℝ g x‖^2)≤V*(ν : Measure (Euclidean n)).real A := by + have hi := Measure.integrableOn_toReal_rnDeriv (μ := (ν : Measure (Euclidean n))) + (ν := (volume : Measure (Euclidean n))) (s := A) (measure_ne_top _ _) + have hupper := hi.const_mul V + have hgrad : IntegrableOn (fun x => ‖fderiv ℝ g x‖^2) A volume := by + apply hupper.mono' ((measurable_fderiv ℝ g).norm.pow_const 2).aestronglyMeasurable + filter_upwards [hb] with x hx + simpa only [Real.norm_eq_abs,abs_of_nonneg (sq_nonneg ‖fderiv ℝ g x‖)] using hx + refine ⟨hgrad,?_⟩ + calc + (∫ x in A, ‖fderiv ℝ g x‖^2) ≤ + ∫ x in A, V*((ν : Measure (Euclidean n)).rnDeriv volume x).toReal := + integral_mono_ae hgrad hupper hb + _ = V*(∫ x in A, ((ν : Measure (Euclidean n)).rnDeriv volume x).toReal) := + integral_const_mul _ _ + _ ≤ V*(ν : Measure (Euclidean n)).real A := mul_le_mul_of_nonneg_left + (Measure.setIntegral_toReal_rnDeriv_le (measure_ne_top _ _)) hV + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/GradientProductAction.lean b/lean/OAI/Geometry/RCD/Sobolev/GradientProductAction.lean new file mode 100644 index 0000000000000000000000000000000000000000..4995372e16b182b1c8bc875ac39a25a5966f6c33 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/GradientProductAction.lean @@ -0,0 +1,69 @@ +import OAI.Geometry.RCD.Sobolev.LocalHessianAction + +namespace OAI + +/-! # The gradient-product identity in terms of actual Hessian actions + +This is the finite Sobolev-representative form of Gigli's formula (3.3.33). +The identity itself is algebraic once the three Gram representatives exist. +-/ + +open Set Filter MeasureTheory + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +/-- The two Hessian actions recover the derivative of the mixed Gram +representative, including an arbitrary scalar shift. -/ +theorem localGamma_mixed_as_hessian_actions + (f a z G Fz Az : SobolevSpace μ hQ) (b : ℝ) : + localGamma μ hQ (G-b • a) z =ᵐ[μ] fun x => + (localHessianAction μ hQ f a z G Fz Az x-b*localGamma μ hQ a z x)+ + localHessianAction μ hQ a f z G Az Fz x := by + filter_upwards [localGamma_sub_left μ hQ G (b • a) z, + localGamma_smul_left μ hQ b a z,localGamma_comm μ hQ G z] with x hsub hsmul hcomm + rw [hsub,hsmul,hcomm] + unfold localHessianAction + ring + +private theorem diagonal_le_of_two_actions (q A B u v : ℝ) (hq : 0≤q) + (hA : 0≤A) (hB : 0≤B) + (he : q=u+v) (hu : u^2≤A*q) (hv : v^2≤B*q) : q≤2*(A+B) := by + have hsq : q^2≤2*(A+B)*q := by + calc + q^2 = (u+v)^2 := congrArg (fun z : ℝ => z^2) he + _ ≤ 2*(u^2+v^2) := by nlinarith only [sq_nonneg (u-v)] + _ ≤ 2*(A*q+B*q) := mul_le_mul_of_nonneg_left (add_le_add hu hv) (by norm_num) + _ = _ := by ring + rcases eq_or_lt_of_le hq with hz | hp + · rw [← hz] + positivity + · exact (mul_le_mul_iff_left₀ hp).mp (by simpa only [pow_two] using hsq) + +/-- When the shifted mixed gradient is an admissible Hessian direction, +the two action bounds give its exact factor-two gradient estimate. -/ +theorem localGamma_shifted_mixed_bound + (f a G Fz Az : SobolevSpace μ hQ) (b : ℝ) (A B : X → ℝ) + (hA : ∀ᵐ x ∂μ, 0≤A x) (hB : ∀ᵐ x ∂μ, 0≤B x) + (hfirst : ∀ᵐ x ∂μ, + (localHessianAction μ hQ f a (G-b • a) G Fz Az x- + b*localGamma μ hQ a (G-b • a) x)^2 ≤ A x*localGamma μ hQ (G-b • a) (G-b • a) x) + (hsecond : ∀ᵐ x ∂μ, + (localHessianAction μ hQ a f (G-b • a) G Az Fz x)^2 ≤ + B x*localGamma μ hQ (G-b • a) (G-b • a) x) : + ∀ᵐ x ∂μ, localGamma μ hQ (G-b • a) (G-b • a) x≤2*(A x+B x) := by + filter_upwards [hA,hB,hfirst,hsecond, + localGamma_mixed_as_hessian_actions μ hQ f a (G-b • a) G Fz Az b, + localGamma_self μ hQ (G-b • a)] with x ha hb hfirst hsecond he hself + apply diagonal_le_of_two_actions _ _ _ _ _ _ ha hb he hfirst hsecond + rw [hself] + positivity + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/GradientProductInput.lean b/lean/OAI/Geometry/RCD/Sobolev/GradientProductInput.lean new file mode 100644 index 0000000000000000000000000000000000000000..52f0c80c725714ef16783231fc4bc3760274b8d6 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/GradientProductInput.lean @@ -0,0 +1,59 @@ +import OAI.Geometry.RCD.Sobolev.HessianActionInput + +namespace OAI + +/-! # gradient-product bound on the same local Poisson span + +Gigli (2018), Proposition 3.3.22(i), equation (3.3.33), identifies the +gradient of Gamma(f,g) with Hess(f)(grad g,.) + Hess(g)(grad f,.). +Theorem 3.3.8, equation (3.3.18), and Han (2018), Proposition 3.2 and +Theorem 3.3, bound the shifted Hessian square by the full Bochner measure. +Tensor Cauchy--Schwarz and |A+B|^2 <= 2|A|^2+2|B|^2 give the bound below. +The local test-function specialization is Connell et al. (2021), Lemmas +2.6--2.7. Only the n+2-dimensional span already used by the application is +retained. +-/ + +open Set Metric MeasureTheory +open scoped NNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +/-- The gradient-product rule and shifted Hessian bound, using the same +canonical local energy measure as the same local Poisson span. +Locality allows any Sobolev representative of its gradient pairing. -/ +def LocalPoissonGradientProductInput {K : ℝ} {n : ℕ} (hX : NoncollapsedRCD K n X) : Prop := + ∀ κ : ℝ, 0 ≤ κ → -κ ≤ K → ∀ (p : X) (r : ℝ), 0 < r → + ∀ (L : ℝ≥0) + (U : Euclidean (n + 2) →L[ℝ] SobolevSpace (hausdorff n X) hX.quadratic) + (ell : Euclidean (n + 2) →ₗ[ℝ] ℝ), + (∀ v, IsConstantLaplacianOn (hausdorff n X) hX.quadratic + (ball p (8 * r)) (U v) (ell v)) → + (∀ v, ∀ᵐ x ∂(hausdorff n X).restrict (ball p (8 * r)), + localGamma (hausdorff n X) hX.quadratic (U v) (U v) x ≤ + (L : ℝ) ^ 2 * ‖v‖ ^ 2) → + ∀ M : PositiveBilinearMeasure X (Euclidean (n + 2)), + (∀ v, Nonempty (LocalHarmonicEnergy (hausdorff n X) hX.quadratic U M κ p r L v)) → + ∀ t : ℝ, 0 < t → t ≤ 2 * r → ∀ (v w : Euclidean (n + 2)) + (G : SobolevSpace (hausdorff n X) hX.quadratic), + (SobolevSpace.toLp (hausdorff n X) hX.quadratic G =ᵐ[ + (hausdorff n X).restrict (ball p t)] localGamma (hausdorff n X) hX.quadratic (U v) (U w)) → + ∀ b Cv Cw : ℝ, 0 ≤ Cv → 0 ≤ Cw → + (∀ᵐ x ∂(hausdorff n X).restrict (ball p t), + localGamma (hausdorff n X) hX.quadratic (U v) (U v) x ≤ Cv ^ 2) → + (∀ᵐ x ∂(hausdorff n X).restrict (ball p t), + localGamma (hausdorff n X) hX.quadratic (U w) (U w) x ≤ Cw ^ 2) → + (∫ x in ball p t, + localGamma (hausdorff n X) hX.quadratic (G - b • U w) (G - b • U w) x ∂hausdorff n X) ≤ + 2 * Cw ^ 2 * ((M.measure v).real (ball p t) - + (2 * b * ell v - (n : ℝ) * b ^ 2) * (hausdorff n X).real (ball p t)) + + 2 * Cv ^ 2 * (M.measure w).real (ball p t) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/GradientQuadraticEnergy.lean b/lean/OAI/Geometry/RCD/Sobolev/GradientQuadraticEnergy.lean new file mode 100644 index 0000000000000000000000000000000000000000..18b3d309d8c4ef0774e4c78ad0e6d8f320380207 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/GradientQuadraticEnergy.lean @@ -0,0 +1,49 @@ +import OAI.Geometry.RCD.Sobolev.EuclideanQuadraticEnergy +import Mathlib.Analysis.Calculus.Gradient.Basic + +namespace OAI + +/-! # Quadratic expansion for the actual almost-everywhere Euclidean derivatives -/ + +open Set Filter MeasureTheory InnerProductSpace +noncomputable section +namespace RegularPointCoordinates + +theorem gradient_quadratic_energy {n : ℕ} (f ψ : Euclidean n → ℝ) + (A : Set (Euclidean n)) + (hf : ∀ᵐ x ∂(volume : Measure (Euclidean n)).restrict A, DifferentiableAt ℝ f x) + (hψ : ∀ᵐ x ∂(volume : Measure (Euclidean n)).restrict A, DifferentiableAt ℝ ψ x) + (hi : IntegrableOn (fun x => ‖fderiv ℝ f x‖^2) A volume) + (hψi : IntegrableOn (fun x => ‖fderiv ℝ ψ x‖^2) A volume) (t : ℝ) : + IntegrableOn (fun x => inner ℝ (gradient f x) (gradient ψ x)) A volume ∧ + IntegrableOn (fun x => ‖fderiv ℝ (fun y => f y+t*ψ y) x‖^2) A volume ∧ + (∫ x in A, ‖fderiv ℝ (fun y => f y+t*ψ y) x‖^2)= + (∫ x in A, ‖fderiv ℝ f x‖^2)+ + 2*t*(∫ x in A, inner ℝ (gradient f x) (gradient ψ x))+ + t^2*(∫ x in A, ‖fderiv ℝ ψ x‖^2) := by + have hn (g : Euclidean n → ℝ) (x : Euclidean n) : ‖gradient g x‖=‖fderiv ℝ g x‖ := + (toDual ℝ (Euclidean n)).symm.norm_map _ + have hm (g : Euclidean n → ℝ) : Measurable (gradient g) := + (toDual ℝ (Euclidean n)).symm.continuous.measurable.comp (measurable_fderiv ℝ g) + obtain ⟨hcross,hint,he⟩ := euclidean_quadratic_energy + ((volume : Measure (Euclidean n)).restrict A) (gradient f) (gradient ψ) + (hm f).aestronglyMeasurable (hm ψ).aestronglyMeasurable + (by simpa only [IntegrableOn,hn] using hi) (by simpa only [IntegrableOn,hn] using hψi) t + have hgrad : (fun x => ‖fderiv ℝ (fun y => f y+t*ψ y) x‖^2)=ᵐ[volume.restrict A] + fun x => ‖gradient f x+t • gradient ψ x‖^2 := by + filter_upwards [hf,hψ] with x hx hψx + have hd := (hx.hasFDerivAt.add (hψx.hasFDerivAt.const_smul t)).fderiv + have hpoint : gradient (fun y => f y+t*ψ y) x=gradient f x+t • gradient ψ x := by + dsimp only [gradient] + rw [show fderiv ℝ (fun y => f y+t*ψ y) x=fderiv ℝ f x+t • fderiv ℝ ψ x from hd, + map_add,map_smul] + rw [← hn, hpoint] + refine ⟨hcross,hint.congr hgrad.symm,?_⟩ + rw [integral_congr_ae hgrad] + simpa only [hn] using he + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/HamiltonJacobiTimeBound.lean b/lean/OAI/Geometry/RCD/Sobolev/HamiltonJacobiTimeBound.lean new file mode 100644 index 0000000000000000000000000000000000000000..111284ee27afa8f037883e2427778e8f1f566461 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/HamiltonJacobiTimeBound.lean @@ -0,0 +1,130 @@ +import OAI.Geometry.RCD.Sobolev.SupportedWeakSourceBound +import OAI.Geometry.RCD.Heat.CompactSubsetTimePairing +import Mathlib.Analysis.Calculus.MeanValue + +namespace OAI + +/-! # Time increments controlled by the local weak equation + +The source term is tested only on the support of the compact test. Its +bound uses the actual weak Laplacian and the local slope bound. +-/ + +open Set Filter MeasureTheory +open scoped Topology ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) [IsFiniteMeasureOnCompacts μ] + (Q : QuadraticCheegerEnergy μ) + +theorem local_hamilton_jacobi_source_bound + (w φ : SobolevSpace μ Q) (q : Lp ℝ 2 μ) (hq : IsWeakLaplacian μ Q w q) + {Ω : Set X} (hΩ : IsCompact Ω) (D : X → ℝ) (ε L : ℝ) + (hD : D =ᵐ[μ.restrict Ω] fun x => ε/2*q x + localGamma μ Q w w x/2) + (hφs : ∀ᵐ x ∂μ, x ∉ Ω → SobolevSpace.toLp μ Q φ x = 0) + {B : ℝ} (hB : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ Q φ x| ≤ B) + (hgrad : ∀ᵐ x ∂μ.restrict Ω, SobolevSpace.minimalSlope μ Q w x ≤ L) : + |∫ x in Ω, SobolevSpace.toLp μ Q φ x * D x ∂μ| ≤ + |ε|/2 * (L * ∫ x, SobolevSpace.minimalSlope μ Q φ x ∂μ) + + L^2/2 * ∫ x in Ω, |SobolevSpace.toLp μ Q φ x| ∂μ := by + let Φ := SobolevSpace.toLp μ Q φ + have hiΦ : IntegrableOn Φ Ω μ := lp_integrableOn_of_finite μ Φ Ω hΩ.measure_lt_top.ne + have hiq : Integrable (fun x => Φ x*q x) μ := by + simpa only [Real.inner_apply] using (L2.integrable_inner (𝕜 := ℝ) Φ q) + have hig : Integrable (fun x => Φ x*localGamma μ Q w w x) μ := + (localGamma_memL1 μ Q w w).bdd_mul (Lp.aestronglyMeasurable Φ) + (by simpa only [Real.norm_eq_abs] using hB) + have hg : ∀ᵐ x ∂μ.restrict Ω, |localGamma μ Q w w x| ≤ L^2 := by + filter_upwards [hgrad,ae_restrict_of_ae (localGamma_self μ Q w), + ae_restrict_of_ae ((Lp.coeFn_nonneg _).mpr (SobolevSpace.minimalSlope_nonneg μ Q w))] + with x hx he hp + rw [he,abs_of_nonneg (sq_nonneg _)] + exact pow_le_pow_left₀ hp hx 2 + have hgb : |∫ x in Ω, Φ x*localGamma μ Q w w x ∂μ| ≤ + L^2 * ∫ x in Ω, |Φ x| ∂μ := by + calc + _ ≤ ∫ x in Ω, |Φ x*localGamma μ Q w w x| ∂μ := abs_integral_le_integral_abs + _ ≤ ∫ x in Ω, L^2 * |Φ x| ∂μ := by + apply integral_mono_ae hig.integrableOn.abs (hiΦ.abs.const_mul _) + filter_upwards [hg] with x hx + rw [abs_mul,mul_comm (L^2)] + exact mul_le_mul_of_nonneg_left hx (abs_nonneg _) + _ = _ := integral_const_mul _ _ + have hqi : (∫ x in Ω, Φ x*q x ∂μ) = inner ℝ q Φ := by + rw [setIntegral_eq_integral_of_ae_compl_eq_zero (by + filter_upwards [hφs] with x hx hnot + rw [hx hnot,zero_mul])] + rw [L2.inner_def] + apply integral_congr_ae + exact Eventually.of_forall fun x => by simp only [Real.inner_apply]; ring + have he : (∫ x in Ω, Φ x*D x ∂μ) = ε/2*inner ℝ q Φ + + 1/2*(∫ x in Ω, Φ x*localGamma μ Q w w x ∂μ) := by + calc + _ = ∫ x in Ω, ε/2*(Φ x*q x)+1/2*(Φ x*localGamma μ Q w w x) ∂μ := by + apply integral_congr_ae + filter_upwards [hD] with x hx + rw [hx] + ring + _ = _ := by + rw [integral_add (hiq.integrableOn.const_mul _) (hig.integrableOn.const_mul _), + integral_const_mul,integral_const_mul,hqi] + rw [he] + calc + _ ≤ |ε/2*inner ℝ q Φ| + |1/2*(∫ x in Ω, Φ x*localGamma μ Q w w x ∂μ)| := abs_add_le _ _ + _ = |ε|/2 * |inner ℝ q Φ| + 1/2*|∫ x in Ω, Φ x*localGamma μ Q w w x ∂μ| := by + rw [abs_mul,abs_div,abs_of_pos (by norm_num : (0:ℝ)<2),abs_mul] + norm_num + _ ≤ |ε|/2 * (L * ∫ x, SobolevSpace.minimalSlope μ Q φ x ∂μ) + + 1/2*(L^2 * ∫ x in Ω, |Φ x| ∂μ) := + add_le_add (mul_le_mul_of_nonneg_left + (supported_weak_source_test_bound μ Q w φ q hq hΩ.measurableSet hΩ.measure_lt_top.ne hφs hgrad) + (by positivity)) (mul_le_mul_of_nonneg_left hgb (by norm_num)) + _ = _ := by ring + +theorem hamilton_jacobi_pairing_time_bound + (H D : ℝ → X → ℝ) + (hH : ContinuousOn (Function.uncurry H) (Ioi 0 ×ˢ univ)) + (hD : ContinuousOn (Function.uncurry D) (Ioi 0 ×ˢ univ)) + (hd : ∀ t, 0 < t → ∀ x, HasDerivAt (fun s => H s x) (D t x) t) + {Ω : Set X} (hΩ : IsCompact Ω) {a b : ℝ} (ha : 0 < a) + (w : ℝ → SobolevSpace μ Q) (q : ℝ → Lp ℝ 2 μ) (ε L : ℝ) + (hloc : ∀ t ∈ Icc a b, IsWeakLaplacian μ Q (w t) (q t) ∧ + (D t =ᵐ[μ.restrict Ω] fun x => ε/2*q t x + localGamma μ Q (w t) (w t) x/2) ∧ + ∀ᵐ x ∂μ.restrict Ω, SobolevSpace.minimalSlope μ Q (w t) x ≤ L) + (φ : SobolevSpace μ Q) + (hφs : ∀ᵐ x ∂μ, x ∉ Ω → SobolevSpace.toLp μ Q φ x = 0) + {B : ℝ} (hB : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ Q φ x| ≤ B) + {s t : ℝ} (hs : s ∈ Icc a b) (ht : t ∈ Icc a b) : + |(∫ x in Ω, SobolevSpace.toLp μ Q φ x * H t x ∂μ) - + (∫ x in Ω, SobolevSpace.toLp μ Q φ x * H s x ∂μ)| ≤ + (|ε|/2 * (L * ∫ x, SobolevSpace.minimalSlope μ Q φ x ∂μ) + + L^2/2 * ∫ x in Ω, |SobolevSpace.toLp μ Q φ x| ∂μ) * |t-s| := by + let Φ := SobolevSpace.toLp μ Q φ + have hiΦ : IntegrableOn Φ Ω μ := lp_integrableOn_of_finite μ Φ Ω hΩ.measure_lt_top.ne + have hiΦ' : Integrable (fun x : Ω => Φ x) (μ.comap Subtype.val) := + (integrableOn_iff_comap_subtypeVal hΩ.measurableSet).mp hiΦ + have hder (t : ℝ) (ht : t ∈ Icc a b) : + HasDerivAt (fun s => ∫ x in Ω, Φ x*H s x ∂μ) (∫ x in Ω, Φ x*D t x ∂μ) t := by + have hh := compact_subset_time_pairing_hasDerivAt H D hH hD hd Ω hΩ + (μ.comap Subtype.val) (fun x => Φ x) hiΦ' (ha.trans_le ht.1) + have heH (s : ℝ) : (∫ x : Ω, Φ x*H s x ∂μ.comap Subtype.val) = + ∫ x in Ω, Φ x*H s x ∂μ := + integral_subtype_comap hΩ.measurableSet (fun x => Φ x*H s x) + have heD : (∫ x : Ω, Φ x*D t x ∂μ.comap Subtype.val) = + ∫ x in Ω, Φ x*D t x ∂μ := + integral_subtype_comap hΩ.measurableSet (fun x => Φ x*D t x) + simpa only [heH,heD] using hh + have hbnd (t : ℝ) (ht : t ∈ Icc a b) := + local_hamilton_jacobi_source_bound μ Q (w t) φ (q t) (hloc t ht).1 hΩ (D t) + ε L (hloc t ht).2.1 hφs hB (hloc t ht).2.2 + simpa only [Real.norm_eq_abs] using + (convex_Icc a b).norm_image_sub_le_of_norm_hasDerivWithin_le + (fun t ht => (hder t ht).hasDerivWithinAt) + (fun t ht => by simpa only [Real.norm_eq_abs] using hbnd t ht) hs ht + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/HamiltonJacobiWeakEnergy.lean b/lean/OAI/Geometry/RCD/Sobolev/HamiltonJacobiWeakEnergy.lean new file mode 100644 index 0000000000000000000000000000000000000000..f7be10796d5c4e60ffb6b491873bf72868117a8f --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/HamiltonJacobiWeakEnergy.lean @@ -0,0 +1,108 @@ +import OAI.Geometry.RCD.Harmonic.CenteredHamiltonJacobiPairing +import OAI.Geometry.RCD.Heat.CompactSubsetTimePairing + +namespace OAI + +/-! # Exact integrated gradient energy of the viscous potentials + +The local Sobolev representatives need no assumed time regularity. Their +weighted energy is identified with continuous value/source pairings. +-/ + +open Set Filter MeasureTheory Metric +open scoped Interval Topology ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) [IsFiniteMeasureOnCompacts μ] (Q : QuadraticCheegerEnergy μ) + +omit [ProperSpace X] [IsFiniteMeasureOnCompacts μ] in +private theorem compact_set_pairing_continuous (H : ℝ → X → ℝ) + (hH : ContinuousOn (Function.uncurry H) (Ioi 0 ×ˢ univ)) + {Ω : Set X} (hΩ : IsCompact Ω) (v : X → ℝ) (hv : IntegrableOn v Ω μ) + {a b : ℝ} (ha : 0 < a) : + ContinuousOn (fun t => ∫ x in Ω, v x*H t x ∂μ) (Icc a b) := by + let : CompactSpace Ω := isCompact_iff_compactSpace.mp hΩ + have hv' : Integrable (fun x : Ω => v x) (μ.comap Subtype.val) := + (integrableOn_iff_comap_subtypeVal hΩ.measurableSet).mp hv + have hsub : Icc a b ×ˢ (univ : Set Ω) ⊆ Ioi 0 ×ˢ univ := + fun q hq => ⟨ha.trans_le hq.1.1,hq.2⟩ + have hh := compact_time_pairing_continuousOn (μ.comap Subtype.val) + (fun t (x : Ω) => H t x) ((continuousOn_time_subtype hH Ω).mono hsub) (fun x => v x) hv' + have he (t : ℝ) : (∫ x : Ω, v x*H t x ∂μ.comap Subtype.val) = + ∫ x in Ω, v x*H t x ∂μ := integral_subtype_comap hΩ.measurableSet (fun x => v x*H t x) + simpa only [he] using hh + +theorem hamilton_jacobi_weak_energy + (H D : ℝ → X → ℝ) + (hH : ContinuousOn (Function.uncurry H) (Ioi 0 ×ˢ univ)) + (hD : ContinuousOn (Function.uncurry D) (Ioi 0 ×ˢ univ)) + (hd : ∀ t, 0 < t → ∀ x, HasDerivAt (fun s => H s x) (D t x) t) + (w : ℝ → SobolevSpace μ Q) (q : ℝ → Lp ℝ 2 μ) + (z : X) {r a b : ℝ} (hr : 0 < r) (ha : 0 < a) (hab : a ≤ b) (ε c : ℝ) + (hlocal : ∀ t ∈ Icc a b, IsWeakLaplacian μ Q (w t) (q t) ∧ + (SobolevSpace.toLp μ Q (w t) =ᵐ[μ.restrict (closedBall z r)] H t) ∧ + (D t =ᵐ[μ.restrict (closedBall z r)] fun x => ε/2*q t x + localGamma μ Q (w t) (w t) x/2)) + (φ : SobolevSpace μ Q) (ξ : Lp ℝ 2 μ) (hξ : IsWeakLaplacian μ Q φ ξ) + (hφs : ∀ᵐ x ∂μ, x ∉ closedBall z r → SobolevSpace.toLp μ Q φ x = 0) + (hξs : ∀ᵐ x ∂μ, x ∉ closedBall z r → ξ x = 0) + {B : ℝ} (hB : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ Q φ x| ≤ B) + (θ θ' : ℝ → ℝ) (hθ : ContinuousOn θ (Icc a b)) (hθ' : ContinuousOn θ' (Icc a b)) + (hder : ∀ t ∈ Ioo a b, HasDerivAt θ (θ' t) t) (hθa : θ a = 0) (hθb : θ b = 0) : + (∫ t in a..b, θ t * ∫ x in closedBall z r, + SobolevSpace.toLp μ Q φ x * localGamma μ Q (w t) (w t) x ∂μ) = + -2*(∫ t in a..b, θ' t * ∫ x in closedBall z r, + SobolevSpace.toLp μ Q φ x * (H t x-c) ∂μ) - + ε*(∫ t in a..b, θ t * ∫ x in closedBall z r, ξ x * (H t x-c) ∂μ) := by + let Ω := closedBall z r + let Φ := SobolevSpace.toLp μ Q φ + have hΩ : IsCompact Ω := isCompact_closedBall z r + have hiΦ : IntegrableOn Φ Ω μ := lp_integrableOn_of_finite μ Φ Ω hΩ.measure_lt_top.ne + have hiξ : IntegrableOn ξ Ω μ := lp_integrableOn_of_finite μ ξ Ω hΩ.measure_lt_top.ne + have hcenter : ContinuousOn (fun tx : ℝ × X => H tx.1 tx.2-c) (Ioi 0 ×ˢ univ) := + hH.sub continuousOn_const + have hPD := compact_set_pairing_continuous μ D hD hΩ Φ hiΦ (b := b) ha + have hPV := compact_set_pairing_continuous μ (fun t x => H t x-c) + hcenter hΩ ξ hiξ (b := b) ha + have hiPD : IntervalIntegrable (fun t => θ t * ∫ x in Ω, Φ x*D t x ∂μ) volume a b := + (hθ.mul hPD).intervalIntegrable_of_Icc hab + have hiPV : IntervalIntegrable (fun t => θ t * ∫ x in Ω, ξ x*(H t x-c) ∂μ) volume a b := + (hθ.mul hPV).intervalIntegrable_of_Icc hab + have hpoint (t : ℝ) (ht : t ∈ Icc a b) : + (∫ x in Ω, Φ x*localGamma μ Q (w t) (w t) x ∂μ) = + 2*(∫ x in Ω, Φ x*D t x ∂μ)-ε*(∫ x in Ω, ξ x*(H t x-c) ∂μ) := + local_centered_hamilton_jacobi_test_pairing μ Q (w t) φ (q t) ξ (hlocal t ht).1 + hξ z hr (H t) (D t) ε c (hlocal t ht).2.1 (hlocal t ht).2.2 hφs hξs hB + have he : (∫ t in a..b, θ t * ∫ x in Ω, Φ x*localGamma μ Q (w t) (w t) x ∂μ) = + 2*(∫ t in a..b, θ t * ∫ x in Ω, Φ x*D t x ∂μ)- + ε*(∫ t in a..b, θ t * ∫ x in Ω, ξ x*(H t x-c) ∂μ) := by + calc + _ = ∫ t in a..b, 2*(θ t * ∫ x in Ω, Φ x*D t x ∂μ)- + ε*(θ t * ∫ x in Ω, ξ x*(H t x-c) ∂μ) := by + apply intervalIntegral.integral_congr + intro t ht + rw [uIcc_of_le hab] at ht + dsimp only + rw [hpoint t ht] + ring + _ = _ := by + rw [intervalIntegral.integral_sub (hiPD.const_mul 2) (hiPV.const_mul ε), + intervalIntegral.integral_const_mul,intervalIntegral.integral_const_mul] + have hiΦ' : Integrable (fun x : Ω => Φ x) (μ.comap Subtype.val) := + (integrableOn_iff_comap_subtypeVal hΩ.measurableSet).mp hiΦ + have hwk := compact_subset_time_pairing_weak_equation (fun t x => H t x-c) D + hcenter hD (fun t ht x => (hd t ht x).sub_const c) Ω hΩ (μ.comap Subtype.val) + (fun x => Φ x) hiΦ' ha hab θ θ' hθ hθ' hder hθa hθb + have heD (t : ℝ) : (∫ x : Ω, Φ x*D t x ∂μ.comap Subtype.val) = + ∫ x in Ω, Φ x*D t x ∂μ := integral_subtype_comap hΩ.measurableSet (fun x => Φ x*D t x) + have heH (t : ℝ) : (∫ x : Ω, Φ x*(H t x-c) ∂μ.comap Subtype.val) = + ∫ x in Ω, Φ x*(H t x-c) ∂μ := integral_subtype_comap hΩ.measurableSet (fun x => Φ x*(H t x-c)) + simp only [heD,heH] at hwk + rw [he,hwk] + ring + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/HarmonicBarrierTest.lean b/lean/OAI/Geometry/RCD/Sobolev/HarmonicBarrierTest.lean new file mode 100644 index 0000000000000000000000000000000000000000..840dc30a3e5bc34f9c3d3fa3b623c4444d5aeeea --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/HarmonicBarrierTest.lean @@ -0,0 +1,85 @@ +import OAI.Geometry.RCD.Harmonic.TransversePositivePart +import OAI.Geometry.RCD.Sobolev.CutoffGamma + +namespace OAI + +/-! # A compact positive transverse barrier contradicts harmonicity -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped NNReal Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) [μ.IsOpenPosMeasure] (Q : QuadraticCheegerEnergy μ) + +theorem harmonic_transverse_barrier_false + (w f η : SobolevSpace μ Q) {Ω : Set X} (hΩ : IsOpen Ω) + (hw : IsSobolevHarmonicOn μ Q Ω w) (W S : X → ℝ) + (hW : ContinuousOn W Ω) (hS : ContinuousOn S Ω) + {p : X} (hp : p∈Ω) (hWp : W p=0) (hSp : S p=0) + {δ c : ℝ} (hδ : 0<δ) (hc : 0 max (W x+δ) 0*max (c-S x) 0) + (hfw : localGamma μ Q f w =ᵐ[μ.restrict Ω] + fun x => if -δ + χ x*(if -δ (0:ℝ) := by + filter_upwards [ae_restrict_of_ae hform,ae_restrict_of_ae hη, + ae_restrict_of_ae (localGamma_zero_on_level μ Q η w 0), + ae_restrict_mem hΩ.measurableSet.compl] with x hx hηx hz hxΩ + have hχ0 : χ x=0 := by + by_contra hh + exact hxΩ (hsΩ (subset_tsupport χ hh)) + change localGamma μ Q (SobolevSpace.cutoffCLM μ Q hχ hs hb hn f) w x=0 + rw [hx,hχ0,hz (hηx.trans hχ0),zero_mul,mul_zero,zero_add] + have hnon : ∀ᵐ x ∂μ, 0≤localGamma μ Q T w x := by + apply ae_of_ae_restrict_of_ae_restrict_compl Ω + · exact hin.mono (fun x hx => hx.symm ▸ mul_nonneg (hn x) (by split_ifs <;> positivity)) + · exact hout.mono (fun _ hx => hx.symm ▸ le_refl 0) + have hnh : {x | x∈Ω ∧ -δ (hrsub hx).1) hin, + ae_restrict_mem measurableSet_ball] with x hx hxr + obtain ⟨hxΩ,hxW,hxS⟩ := hrsub hxr + rw [hx,hplateau x hxΩ hxW hxS,one_mul,ite_eq_left hxW] + exact lt_of_lt_of_le (sub_pos.mpr hxS) (le_max_left _ _) + have hzero : ∀ᵐ x ∂μ, localGamma μ Q T w x=0 := by + apply (integral_eq_zero_iff_of_nonneg_ae hnon (localGamma_memL1 μ Q T w)).mp + rw [integral_congr_ae (localGamma_comm μ Q T w),integral_localGamma_eq_energyForm] + exact hw T (SobolevSpace.cutoffCLM_mem_dirichlet μ Q hχ hs hb hn hsΩ f) + have hfalse : ∀ᵐ x ∂μ.restrict (ball p r), False := by + filter_upwards [hpos,ae_restrict_of_ae hzero] with x hx hz + exact (ne_of_gt hx) hz + have hm := ae_iff.mp hfalse + have hball : μ (ball p r)≠0 := (isOpen_ball.measure_pos μ (nonempty_ball.mpr hr)).ne' + exact hball (by simpa only [not_false_eq_true,ofPred_true,Measure.restrict_apply_univ] using hm) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/HarmonicBochnerConstruction.lean b/lean/OAI/Geometry/RCD/Sobolev/HarmonicBochnerConstruction.lean new file mode 100644 index 0000000000000000000000000000000000000000..53ec29f34d5808a6b6f83faffd5c6307664d25f5 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/HarmonicBochnerConstruction.lean @@ -0,0 +1,45 @@ +import OAI.Geometry.RCD.Sobolev.DirectionalGradientBound +import OAI.Geometry.RCD.Heat.HarmonicBochnerHeat +import OAI.Geometry.RCD.Sobolev.HarmonicBochnerMass + +namespace OAI + +/-! # Constructing the Bochner family of an actual first-order splitting map -/ + +open Set Metric MeasureTheory +open scoped NNReal + +noncomputable section + +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +/-- A uniform bound for all constant directions of the splitting map. -/ +def splittingDirectionBound (n : ℕ) (ε : ℝ) (hε : 0 ≤ ε) : ℝ≥0 := + ⟨(n : ℝ) * (1 + ε), mul_nonneg (Nat.cast_nonneg _) (by linarith)⟩ + +/-- Local calculus for the harmonic map gives a positive finite measure +family satisfying the heat and mass identities. -/ +theorem FirstOrderSplittingOn.local_bochner {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (hpublished : LocalHarmonicBochnerInput hX) + {κ : ℝ} (hκ : 0 ≤ κ) (hK : -κ ≤ K) {p : X} {r ε : ℝ} + (hr : 0 < r) (hε : 0 ≤ ε) + {u : Fin n → SobolevSpace (hausdorff n X) hX.quadratic} {w : X → Euclidean n} + (h : FirstOrderSplittingOn (hausdorff n X) hX.quadratic p (8 * r) ε u w) : + ∃ M : PositiveBilinearMeasure X (Euclidean n), + ∀ v, Nonempty (LocalHarmonicEnergy (hausdorff n X) hX.quadratic + (sobolevColumnMap (hausdorff n X) hX.quadratic u) M κ p r + (splittingDirectionBound n ε hε) v) := by + apply hpublished κ hκ hK p r hr (splittingDirectionBound n ε hε) + (sobolevColumnMap (hausdorff n X) hX.quadratic u) + · intro v + exact IsSobolevHarmonicOn.linearCombination (hausdorff n X) hX.quadratic h.harmonic v + · intro v + exact h.directional_gradient (hausdorff n X) hX.quadratic v + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/HarmonicBochnerCutoffLimit.lean b/lean/OAI/Geometry/RCD/Sobolev/HarmonicBochnerCutoffLimit.lean new file mode 100644 index 0000000000000000000000000000000000000000..6655c1b38d25558d370bdb390b7b7bfd55092e5b --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/HarmonicBochnerCutoffLimit.lean @@ -0,0 +1,105 @@ +import OAI.Geometry.RCD.Sobolev.CutoffBochnerConvergence +import OAI.Geometry.RCD.Sobolev.CompactLaplacian + +namespace OAI + +/-! # Vanishing full Bochner mass near a harmonic constant-energy limit -/ + +open Set Filter MeasureTheory Metric +open scoped Topology NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) [IsFiniteMeasureOnCompacts μ] (Q : QuadraticCheegerEnergy μ) + +theorem GoodLaplacianCutoff.harmonic_limit_terms_zero + {p : X} {r C b : ℝ} (χ : GoodLaplacianCutoff μ Q p r C) + (hr : 0 < r) (hb : 2*r < b) (u : SobolevSpace μ Q) (d : Lp ℝ 2 μ) + (hd : d =ᵐ[μ.restrict (ball p b)] fun _ => 0) (c : ℝ) + (hc : localGamma μ Q u u =ᵐ[μ.restrict (ball p b)] fun _ => c) : + (1/2:ℝ)*weightedGamma μ Q χ.laplacian u u+ + (∫ x, χ.weight x*(d x)^2 ∂μ)+weightedGamma μ Q d u χ.sobolev = 0 := by + have hout (x : X) (hx : x ∉ ball p b) : 2*r < dist p x := by + have hh : b ≤ dist p x := by simpa only [mem_ball,dist_comm,not_lt] using hx + exact hb.trans_le hh + have hqzero : ∫ x, χ.laplacian x ∂μ = 0 := + integral_weakLaplacian_eq_zero μ Q χ.sobolev χ.laplacian χ.weak_laplacian p + (show 0 < 2*r by positivity) + (by + filter_upwards [χ.representative] with x hx hdist + exact hx.trans (χ.zero x hdist)) + (by + filter_upwards [χ.laplacian_locality] with x hx hdist + exact hx (Or.inr hdist)) + have hq : weightedGamma μ Q χ.laplacian u u=0 := by + have he : (fun x => χ.laplacian x*localGamma μ Q u u x) =ᵐ[μ] + fun x => χ.laplacian x*c := by + filter_upwards [(ae_restrict_iff' measurableSet_ball).mp hc,χ.laplacian_locality] + with x hx hloc + by_cases hm : x∈ball p b + · rw [hx hm] + · rw [hloc (Or.inr (hout x hm)),zero_mul,zero_mul] + change (∫ x, χ.laplacian x*localGamma μ Q u u x ∂μ)=0 + rw [integral_congr_ae he,integral_mul_const,hqzero,zero_mul] + have hsquare : (∫ x, χ.weight x*(d x)^2 ∂μ)=0 := by + apply integral_eq_zero_of_ae + filter_upwards [(ae_restrict_iff' measurableSet_ball).mp hd] with x hx + change χ.weight x*(d x)^2 = (0:ℝ) + by_cases hm : x∈ball p b + · simp only [hx hm,zero_pow (by decide : (2:ℕ)≠0),mul_zero] + · rw [χ.zero x (hout x hm),zero_mul] + have hcross : weightedGamma μ Q d u χ.sobolev=0 := by + apply integral_eq_zero_of_ae + filter_upwards [(ae_restrict_iff' measurableSet_ball).mp hd,χ.representative, + localGamma_comm μ Q u χ.sobolev,localGamma_zero_on_level μ Q χ.sobolev u 0] + with x hx hrep hcomm hlevel + change d x*localGamma μ Q u χ.sobolev x = (0:ℝ) + by_cases hm : x∈ball p b + · rw [hx hm,zero_mul] + · rw [hcomm,hlevel (hrep.trans (χ.zero x (hout x hm))),mul_zero] + rw [hq,hsquare,hcross] + ring + +theorem GoodLaplacianCutoff.bochner_source_tendsto_zero + {p : X} {r C b : ℝ} (χ : GoodLaplacianCutoff μ Q p r C) + (hr : 0 < r) (hC : 0 ≤ C) (hb : 2*r < b) + (u : SobolevSpace μ Q) (d : Lp ℝ 2 μ) + (hd : d =ᵐ[μ.restrict (ball p b)] fun _ => 0) (c : ℝ) + (hc : localGamma μ Q u u =ᵐ[μ.restrict (ball p b)] fun _ => c) + (us ds Gs : ℕ → SobolevSpace μ Q) + (hds : ∀ k, IsWeakLaplacian μ Q (us k) (SobolevSpace.toLp μ Q (ds k))) + (hGs : ∀ k, SobolevSpace.toLp μ Q (Gs k) =ᵐ[μ] localGamma μ Q (us k) (us k)) + (L : ℝ≥0) + (hus : ∀ k, ∀ᵐ x ∂μ, SobolevSpace.minimalSlope μ Q (us k) x ≤ L) + (hu : ∀ᵐ x ∂μ, SobolevSpace.minimalSlope μ Q u x ≤ L) + (hconv : Tendsto us atTop (𝓝 u)) + (hdconv : Tendsto (fun k => SobolevSpace.toLp μ Q (ds k)) atTop (𝓝 d)) : + Tendsto (fun k => -(1/2:ℝ)*energyForm μ Q (Gs k) χ.sobolev- + weightedGamma μ Q (SobolevSpace.toLp μ Q χ.sobolev) (us k) (ds k)) atTop (𝓝 0) := by + have hh := χ.bochner_source_tendsto μ Q hC u d us ds Gs hds hGs L hus hu hconv hdconv + rwa [χ.harmonic_limit_terms_zero μ Q hr hb u d hd c hc] at hh + +omit [IsFiniteMeasureOnCompacts μ] in +theorem GoodLaplacianCutoff.measure_mass_tendsto_zero + {p : X} {r C : ℝ} (χ : GoodLaplacianCutoff μ Q p r C) + (σ : ℕ → Measure X) [∀ k, IsFiniteMeasure (σ k)] + (hlim : Tendsto (fun k => ∫ x, χ.weight x ∂σ k) atTop (𝓝 0)) + {S : Set X} (hS : MeasurableSet S) (hSone : ∀ x∈S, χ.weight x=1) : + Tendsto (fun k => (σ k).real S) atTop (𝓝 0) := by + apply squeeze_zero (fun k => measureReal_nonneg) _ hlim + intro k + have hb : S.indicator (fun _ => (1:ℝ)) ≤ᵐ[σ k] χ.weight := by + apply Eventually.of_forall + intro x + by_cases hx : x∈S + · rw [indicator_of_mem hx,hSone x hx] + · simpa only [indicator_of_notMem hx] using (χ.bounds x).1 + have hh := integral_mono_ae ((integrable_const (1:ℝ)).indicator hS) + (χ.weight.continuous.integrable_of_hasCompactSupport (χ.hasCompactSupport μ Q)) hb + simpa only [integral_indicator hS,setIntegral_const,smul_eq_mul,mul_one] using hh + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/HarmonicBochnerFromHessian.lean b/lean/OAI/Geometry/RCD/Sobolev/HarmonicBochnerFromHessian.lean new file mode 100644 index 0000000000000000000000000000000000000000..a8251b6d450573b38036be51795bcb248ebc1a1b --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/HarmonicBochnerFromHessian.lean @@ -0,0 +1,96 @@ +import OAI.Geometry.RCD.Sobolev.PoissonHessianInput +import OAI.Geometry.RCD.Sobolev.PoissonSpanLift + +namespace OAI + +/-! # Harmonic Bochner calculus from the Poisson Hessian input + +The n-dimensional harmonic span embeds isometrically into the existing +(n+2)-dimensional Poisson span. Restricting the full positive measure to +that subspace proves the harmonic Bochner input, including its original +extension bound, without a separate assumption. +-/ + +open Set Metric MeasureTheory +open scoped InnerProductSpace NNReal + +noncomputable section +namespace RegularPointCoordinates + +def harmonicCoordinateInclusion (n : ℕ) : Euclidean n →ₗᵢ[ℝ] Euclidean (n + 2) where + toFun := poissonCoordinateLift + map_add' u v := by + ext i + refine Fin.addCases ?_ ?_ i <;> intro j <;> + simp [poissonCoordinateLift, Fin.append_left, Fin.append_right] + map_smul' c v := by + ext i + refine Fin.addCases ?_ ?_ i <;> intro j <;> + simp [poissonCoordinateLift, Fin.append_left, Fin.append_right] + norm_map' := poissonCoordinateLift_norm + +private def harmonicMeasureRestriction {X : Type*} [MeasurableSpace X] {n : ℕ} + (M : PositiveBilinearMeasure X (Euclidean (n + 2))) : + PositiveBilinearMeasure X (Euclidean n) where + bilinear := M.bilinear.compl₁₂ (harmonicCoordinateInclusion n).toLinearMap + (harmonicCoordinateInclusion n).toLinearMap + symmetric v w := M.symmetric (harmonicCoordinateInclusion n v) (harmonicCoordinateInclusion n w) + nonneg v := M.nonneg (harmonicCoordinateInclusion n v) + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +omit [ProperSpace X] in +/-- The separate harmonic Bochner premise is a consequence of the already +required Poisson Hessian specialization of Gigli--Han. -/ +theorem LocalPoissonHessianInput.harmonicBochnerInput {K : ℝ} {n : ℕ} + {hX : NoncollapsedRCD K n X} (h : LocalPoissonHessianInput hX) : + LocalHarmonicBochnerInput hX := by + intro κ hκ hK p r hr L U hU hgrad + let I := harmonicCoordinateInclusion n + let P := I.toContinuousLinearMap.adjoint + have hPI (v : Euclidean n) : P (I v) = v := by + apply ext_inner_right ℝ + intro w + change inner ℝ (I.toContinuousLinearMap.adjoint (I v)) w = inner ℝ v w + rw [ContinuousLinearMap.adjoint_inner_left] + exact I.inner_map_map v w + have hPnorm : ‖P‖ ≤ 1 := by + change ‖ContinuousLinearMap.adjoint I.toContinuousLinearMap‖ ≤ 1 + rw [ContinuousLinearMap.adjoint.norm_map] + exact I.norm_toContinuousLinearMap_le + let V := U.comp P + have hV (v : Euclidean (n + 2)) : + IsConstantLaplacianOn (hausdorff n X) hX.quadratic (ball p (8 * r)) (V v) + ((0 : Euclidean (n + 2) →ₗ[ℝ] ℝ) v) := + (isConstantLaplacianOn_zero_iff _ _ _ _).mpr (hU (P v)) + have hVgrad (v : Euclidean (n + 2)) : + ∀ᵐ x ∂(hausdorff n X).restrict (ball p (8 * r)), + localGamma (hausdorff n X) hX.quadratic (V v) (V v) x ≤ + (L : ℝ) ^ 2 * ‖v‖ ^ 2 := by + have hp : ‖P v‖ ≤ ‖v‖ := + (P.le_opNorm v).trans (by simpa only [one_mul] using + mul_le_mul_of_nonneg_right hPnorm (norm_nonneg v)) + filter_upwards [hgrad (P v)] with x hx + exact hx.trans (mul_le_mul_of_nonneg_left (pow_le_pow_left₀ (norm_nonneg _) hp 2) + (sq_nonneg _)) + obtain ⟨M, hM, _, _⟩ := h κ hκ hK p r hr L V 0 hV hVgrad + refine ⟨harmonicMeasureRestriction M, ?_⟩ + intro v + obtain ⟨G⟩ := hM (I v) + have hVI : V (I v) = U v := by simp only [V, ContinuousLinearMap.comp_apply, hPI] + refine ⟨{ energy := G.energy, representative := ?_, bounded := ?_, measure_laplacian := ?_ }⟩ + · simpa only [hVI] using G.representative + · simpa only [I.nnnorm_map] using G.bounded + · have hs : harmonicBochnerSource (hausdorff n X) hX.quadratic U + (harmonicMeasureRestriction M) κ v = + harmonicBochnerSource (hausdorff n X) hX.quadratic V M κ (I v) := by + simp only [harmonicBochnerSource, hVI] + rfl + rw [hs] + exact G.measure_laplacian + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/HarmonicBochnerMass.lean b/lean/OAI/Geometry/RCD/Sobolev/HarmonicBochnerMass.lean new file mode 100644 index 0000000000000000000000000000000000000000..f554cf855c54dc85fea61154e5691cca6f9ffdda --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/HarmonicBochnerMass.lean @@ -0,0 +1,73 @@ +import OAI.Geometry.RCD.Sobolev.BochnerCutoffIdentity +import OAI.Geometry.RCD.Sobolev.BochnerMassEstimate + +namespace OAI + +/-! # Small Bochner mass from the harmonic Gram error + +The local harmonic Bochner equation and cutoff Laplacian bound the full measure. +-/ + +open Set Metric MeasureTheory +open scoped NNReal InnerProductSpace BoundedContinuousFunction + +noncomputable section + +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) [IsFiniteMeasureOnCompacts μ] + (hQ : QuadraticCheegerEnergy μ) + +/-- The canonical local Bochner family satisfies the small-mass estimate +with exactly the dimension loss in the coordinatewise Gram error. -/ +theorem harmonic_bochner_mass_le {n : ℕ} (u : Fin n → SobolevSpace μ hQ) + (M : PositiveBilinearMeasure X (Euclidean n)) {κ : ℝ} {p : X} {r : ℝ} {L : ℝ≥0} + (G : ∀ v, LocalHarmonicEnergy μ hQ (sobolevColumnMap μ hQ u) M κ p r L v) + (χ : X →ᵇ ℝ) (hχ : ∀ x, 0 ≤ χ x ∧ χ x ≤ 1) + (hχs : HasCompactSupport (χ : X → ℝ)) + (hχΩ : tsupport (χ : X → ℝ) ⊆ ball p (2 * r)) + {R : ℝ} (hR : 0 < R) (hRr : R < 2 * r) + (hχR : ∀ x, R < dist p x → χ x = 0) + (c : SobolevSpace μ hQ) (hc : SobolevSpace.toLp μ hQ c =ᵐ[μ] χ) + (q : Lp ℝ 2 μ) (hq : IsWeakLaplacian μ hQ c q) + (hqR : ∀ᵐ x ∂μ, R < dist p x → q x = 0) + (s : Set X) (hs : MeasurableSet s) (hχone : ∀ x ∈ s, χ x = 1) + {D ε : ℝ} (hD : 0 ≤ D) (hε : 0 ≤ ε) (hκ : 0 ≤ κ) + (hqb : ∀ᵐ x ∂μ, |q x| ≤ D) + (herror : ∀ i j : Fin n, ∫ x in closedBall p R, + |localGamma μ hQ (u i) (u j) x - (if i = j then 1 else 0)| ∂μ ≤ ε) + (v : Euclidean n) : + ⟪v, M.massOperator s v⟫_ℝ ≤ + (D * ((n : ℝ) ^ 2 * ε) / 2 + + κ * ((n : ℝ) ^ 2 * ε + μ.real (closedBall p R))) * ‖v‖ ^ 2 := by + apply bochner_mass_le_of_coordinate_errors μ hQ u M χ hχ p hR hχR c hc q hq + hqR s hs hχone hD hε hκ hqb herror + intro w + have hqs : ∀ᵐ x ∂μ, x ∉ ball p (2 * r) → q x = 0 := by + filter_upwards [hqR] with x hx hnot + apply hx + have hdist : 2 * r ≤ dist p x := by + simpa only [mem_ball, dist_comm, not_lt] using hnot + exact hRr.trans_le hdist + have hi := (G w).test_cutoff μ hQ χ hχs hχΩ c hc q hq hqs + have hΓq : (∫ x in closedBall p R, + localGamma μ hQ (sobolevColumnMap μ hQ u w) (sobolevColumnMap μ hQ u w) x * q x ∂μ) = + ∫ x, localGamma μ hQ (sobolevColumnMap μ hQ u w) (sobolevColumnMap μ hQ u w) x * q x ∂μ := by + apply setIntegral_eq_integral_of_ae_compl_eq_zero + filter_upwards [hqR] with x hx hnot + rw [hx (by simpa only [mem_closedBall, dist_comm, not_le] using hnot), mul_zero] + have hχΓ : (∫ x in closedBall p R, + χ x * localGamma μ hQ (sobolevColumnMap μ hQ u w) (sobolevColumnMap μ hQ u w) x ∂μ) = + ∫ x, χ x * localGamma μ hQ (sobolevColumnMap μ hQ u w) (sobolevColumnMap μ hQ u w) x ∂μ := by + apply setIntegral_eq_integral_of_forall_compl_eq_zero + intro x hx + rw [hχR x (by simpa only [mem_closedBall, dist_comm, not_le] using hx), zero_mul] + rw [hΓq, hχΓ] + exact hi + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/HarmonicCoreBochnerMeasure.lean b/lean/OAI/Geometry/RCD/Sobolev/HarmonicCoreBochnerMeasure.lean new file mode 100644 index 0000000000000000000000000000000000000000..1f1a0f95cbbdc9370a361f2d1cc643bfa50055b4 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/HarmonicCoreBochnerMeasure.lean @@ -0,0 +1,44 @@ +import OAI.Geometry.RCD.Coordinates.RegularCoreHessianBound + +namespace OAI + +/-! # The actual full Bochner measure of a locally harmonic regular function -/ + +open Set Filter MeasureTheory Metric +open scoped NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem NoncollapsedRCD.harmonic_core_bochner_measure {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) [(hausdorff n X).Regular] (hn : 2 ≤ n) + (f : compactLaplacianCore (hausdorff n X) hX.quadratic univ) + (qf : Lp ℝ 2 (hausdorff n X)) + (hqf : IsWeakLaplacian (hausdorff n X) hX.quadratic f.val qf) + (p : X) {R : ℝ} (hR : 0 < R) + (hq0 : qf =ᵐ[(hausdorff n X).restrict (ball p R)] fun _ => 0) : + ∃ (F : SobolevSpace (hausdorff n X) hX.quadratic) (σ : Measure X) (hσ : IsFiniteMeasure σ), + letI := hσ; + (SobolevSpace.toLp (hausdorff n X) hX.quadratic F =ᵐ[hausdorff n X] + localGamma (hausdorff n X) hX.quadratic f.val f.val) ∧ + IsMeasureLaplacianOn (hausdorff n X) hX.quadratic (ball p R) F + (bochnerGramSource (hausdorff n X) hX.quadratic K f.val f.val 0 0 σ.toSignedMeasure) := by + let μ := hausdorff n X + let Q := hX.quadratic + have hz : SobolevSpace.toLp μ Q (0 : SobolevSpace μ Q) =ᵐ[μ] fun _ => (0:ℝ) := by + simpa only [map_zero] using! (Lp.coeFn_zero ℝ 2 μ) + have hzb : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ Q (0 : SobolevSpace μ Q) x|≤(0:ℝ≥0) := by + filter_upwards [hz] with x hx + simp only [hx,abs_zero,NNReal.coe_zero,le_refl] + have hs : qf =ᵐ[μ.restrict (ball p R)] SobolevSpace.toLp μ Q (0 : SobolevSpace μ Q) := + hq0.trans (Filter.EventuallyEq.symm (ae_restrict_of_ae hz)) + obtain ⟨F,_FG,_GG,σ,hσ,hF,_hFG,_hGG,hsource,_hbound⟩ := + hX.regular_core_directional_hessian hn f f p hR (S := (∅ : Set X)) isCompact_empty + (empty_subset _) 0 0 qf qf hqf hqf 0 0 hzb hzb hs hs + exact ⟨F,σ,hσ,hF,hsource⟩ + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/HarmonicCutoffErrorBounds.lean b/lean/OAI/Geometry/RCD/Sobolev/HarmonicCutoffErrorBounds.lean new file mode 100644 index 0000000000000000000000000000000000000000..24d6e22afcc35ee4d27ca2822c543c6836418f52 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/HarmonicCutoffErrorBounds.lean @@ -0,0 +1,89 @@ +import OAI.Geometry.RCD.Coordinates.CoordinateHeatInput +import OAI.Geometry.RCD.Sobolev.AveragedCutoffError +import OAI.Geometry.RCD.Heat.SeparatedSourceBounds + +namespace OAI + +/-! # Uniform bounds for every direction of the actual annular error -/ + +open Set Metric MeasureTheory +open scoped InnerProductSpace NNReal ENNReal + +noncomputable section +namespace RegularPointCoordinates + +private theorem abs_quadratic_le_norm {E : Type*} [NormedAddCommGroup E] + [InnerProductSpace ℝ E] (B : E →L[ℝ] E) (v : E) : + |⟪v, B v⟫_ℝ| ≤ ‖B‖ * ‖v‖ ^ 2 := by + calc + _ ≤ ‖v‖ * ‖B v‖ := abs_real_inner_le_norm _ _ + _ ≤ ‖v‖ * (‖B‖ * ‖v‖) := mul_le_mul_of_nonneg_left (B.le_opNorm v) (norm_nonneg _) + _ = _ := by ring + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) [μ.Regular] [IsLocallyFiniteMeasure μ] (hQ : QuadraticCheegerEnergy μ) + {ker : ℝ → X → X → ℝ} (hk : IsContinuousHeatKernel μ hQ ker) + {n : ℕ} {U : Euclidean n →L[ℝ] SobolevSpace μ hQ} + {M : PositiveBilinearMeasure X (Euclidean n)} {κ : ℝ} {p : X} {r₀ : ℝ} {L : ℝ≥0} + (G : ∀ v, LocalHarmonicEnergy μ hQ U M κ p r₀ L v) + {ρ C₀ : ℝ} (χ : GoodLaplacianCutoff μ hQ p ρ C₀) + +include hk in +/-- Finitely many genuine L1 error masses control every direction, uniformly +in the averaging scale and center subject to the stated volume/separation bounds. -/ +theorem exists_harmonic_cutoff_error_bound (hg : HasCoordinateHeatBounds μ ker) + (hdiff : HasGaussianHeatDifferenceBounds μ ker) (hρ : 0 < ρ) (hρr : ρ < r₀) + {A V δ : ℝ} (hA : 0 ≤ A) (hV : 0 < V) (hδ : 0 < δ) : + ∃ C : ℝ, 0 < C ∧ ∀ (r t : ℝ) (x q : X), + 0 < r → r ≤ 1 → 0 < t → t ≤ 1 → + μ (ball q r) ≠ ∞ → V * r ^ n ≤ μ.real (ball q r) → dist x q ≤ A * r → + (∀ z, ρ ≤ dist p z → dist p z ≤ 2 * ρ → δ ≤ dist x z) → + (∀ z, ρ ≤ dist p z → dist p z ≤ 2 * ρ → + V * (Real.sqrt t) ^ n ≤ μ.real (ball z (Real.sqrt t))) → + ∀ v : Euclidean n, + (t ≤ r ^ 2 → |∫ z, kernelAverage μ ker t (ball q r) z * + cutoffSourceDensity μ hQ (G v).energy χ.sobolev χ.laplacian z ∂μ| ≤ C * ‖v‖ ^ 2) ∧ + (r ^ 2 ≤ t → |∫ z, (kernelAverage μ ker t (ball q r) z - ker t x z) * + cutoffSourceDensity μ hQ (G v).energy χ.sobolev χ.laplacian z ∂μ| ≤ C * r * ‖v‖ ^ 2) := by + let d := fun v z => cutoffSourceDensity μ hQ (G v).energy χ.sobolev χ.laplacian z + obtain ⟨Cd, hCd, hd⟩ := exists_polarized_integral_bound μ d + obtain ⟨Cs, hCs, hs⟩ := exists_separated_short_source_bound μ hQ hk hg n hA hV hδ + obtain ⟨Cl, hCl, hl⟩ := exists_separated_long_source_bound μ hQ hk hg hdiff n hA hV hδ + refine ⟨Cd * (Cs + Cl), mul_pos hCd (add_pos hCs hCl), ?_⟩ + intro r t x q hr hr1 ht ht1 hfinite hvolume hcenter hsep hsource v + let S := {z | ρ ≤ dist p z ∧ dist p z ≤ 2 * ρ} + have hi (w : Euclidean n) : Integrable (d w) μ := cutoffSourceDensity_integrable μ hQ _ _ _ + have hz (w : Euclidean n) : ∀ᵐ z ∂μ, z ∉ S → d w z = 0 := + χ.error_zero_off_annulus μ hQ _ + have hsep' : ∀ z ∈ S, δ ≤ dist x z := fun z hz => hsep z hz.1 hz.2 + have hsource' : ∀ z ∈ S, V * (Real.sqrt t) ^ n ≤ μ.real (ball z (Real.sqrt t)) := + fun z hz => hsource z hz.1 hz.2 + have hpos : 0 < μ.real (ball q r) := (mul_pos hV (pow_pos hr n)).trans_le hvolume + constructor + · intro htr + have hop := hd (fun z => kernelAverage μ ker t (ball q r) z) Cs hCs.le + (fun w => hs r t x q S (d w) hr hr1 ht htr hfinite hvolume hcenter hsep' hsource' (hi w) (hz w)) + rw [← averaged_cutoff_error_energy μ hQ hk G χ hρ hρr ht (ball q r) + measurableSet_ball isBounded_ball v] + exact (abs_quadratic_le_norm _ v).trans ((mul_le_mul_of_nonneg_right hop (sq_nonneg ‖v‖)).trans + (mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_left (le_add_of_nonneg_right hCl.le) hCd.le) + (sq_nonneg ‖v‖))) + · intro hrt + have hop := hd (fun z => kernelAverage μ ker t (ball q r) z - ker t x z) (Cl * r) + (mul_pos hCl hr).le + (fun w => hl r t x q S (d w) hr ht ht1 hrt hfinite hpos hcenter hsep' hsource' (hi w) (hz w)) + rw [← difference_cutoff_error_energy μ hQ hk G χ hρ hρr ht (ball q r) + measurableSet_ball isBounded_ball x v] + have hcoef : Cd * (Cl * r) ≤ Cd * (Cs + Cl) * r := by + calc + _ = (Cd * Cl) * r := by ring + _ ≤ _ := mul_le_mul_of_nonneg_right + (mul_le_mul_of_nonneg_left (le_add_of_nonneg_left hCs.le) hCd.le) hr.le + exact (abs_quadratic_le_norm _ v).trans ((mul_le_mul_of_nonneg_right hop (sq_nonneg ‖v‖)).trans + (mul_le_mul_of_nonneg_right hcoef (sq_nonneg ‖v‖))) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/HarmonicCutoffErrorIntegral.lean b/lean/OAI/Geometry/RCD/Sobolev/HarmonicCutoffErrorIntegral.lean new file mode 100644 index 0000000000000000000000000000000000000000..e5ef06a197fb27e68c10a00c358a157dd0d32f48 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/HarmonicCutoffErrorIntegral.lean @@ -0,0 +1,102 @@ +import OAI.Geometry.RCD.Coordinates.CoordinateHeatInput +import OAI.Geometry.RCD.Sobolev.HarmonicCutoffErrorBounds +import OAI.Geometry.RCD.Heat.HeatBlockIntegrals + +namespace OAI + +/-! # Time-integrated actual cutoff errors -/ + +open Set Metric MeasureTheory Filter +open scoped InnerProductSpace NNReal ENNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) [μ.Regular] [IsLocallyFiniteMeasure μ] (hQ : QuadraticCheegerEnergy μ) + {ker : ℝ → X → X → ℝ} (hk : IsContinuousHeatKernel μ hQ ker) + {n : ℕ} {U : Euclidean n →L[ℝ] SobolevSpace μ hQ} + {M : PositiveBilinearMeasure X (Euclidean n)} {κ : ℝ} {p : X} {r₀ : ℝ} {L : ℝ≥0} + (G : ∀ v, LocalHarmonicEnergy μ hQ U M κ p r₀ L v) + {ρ C₀ : ℝ} (χ : GoodLaplacianCutoff μ hQ p ρ C₀) + +include hk in +/-- Both error time integrals exist, and their sum vanishes with the +averaging radius. The uniform constant uses only finitely many source masses. -/ +theorem exists_harmonic_cutoff_error_integral_bound (hg : HasCoordinateHeatBounds μ ker) + (hdiff : HasGaussianHeatDifferenceBounds μ ker) (hρ : 0 < ρ) (hρr : ρ < r₀) + {A V δ : ℝ} (hA : 0 ≤ A) (hV : 0 < V) (hδ : 0 < δ) : + ∃ C : ℝ, 0 < C ∧ ∀ (R r : ℝ) (x q : X), + 0 < R → R ≤ 1 → 0 < r → r ≤ R → + μ (ball q r) ≠ ∞ → V * r ^ n ≤ μ.real (ball q r) → dist x q ≤ A * r → + (∀ z, ρ ≤ dist p z → dist p z ≤ 2 * ρ → δ ≤ dist x z) → + (∀ t, 0 < t → t ≤ R ^ 2 → ∀ z, ρ ≤ dist p z → dist p z ≤ 2 * ρ → + V * (Real.sqrt t) ^ n ≤ μ.real (ball z (Real.sqrt t))) → + ∀ v : Euclidean n, + IntervalIntegrable (fun t => ∫ z, kernelAverage μ ker t (ball q r) z * + cutoffSourceDensity μ hQ (G v).energy χ.sobolev χ.laplacian z ∂μ) volume 0 (r ^ 2) ∧ + IntervalIntegrable (fun t => ∫ z, (kernelAverage μ ker t (ball q r) z - ker t x z) * + cutoffSourceDensity μ hQ (G v).energy χ.sobolev χ.laplacian z ∂μ) volume (r ^ 2) (R ^ 2) ∧ + |∫ t in (0 : ℝ)..r ^ 2, ∫ z, kernelAverage μ ker t (ball q r) z * + cutoffSourceDensity μ hQ (G v).energy χ.sobolev χ.laplacian z ∂μ| + + |∫ t in r ^ 2..R ^ 2, ∫ z, (kernelAverage μ ker t (ball q r) z - ker t x z) * + cutoffSourceDensity μ hQ (G v).energy χ.sobolev χ.laplacian z ∂μ| ≤ + C * ‖v‖ ^ 2 * (r ^ 2 + r * R ^ 2) := by + obtain ⟨C, hC, hb⟩ := exists_harmonic_cutoff_error_bound μ hQ hk G χ hg hdiff hρ hρr hA hV hδ + refine ⟨C, hC, ?_⟩ + intro R r x q hR hR1 hr hrR hfinite hvolume hcenter hsep hsource v + let d := fun z => cutoffSourceDensity μ hQ (G v).energy χ.sobolev χ.laplacian z + let f := fun t => ∫ z, kernelAverage μ ker t (ball q r) z * d z ∂μ + let g := fun t => ∫ z, (kernelAverage μ ker t (ball q r) z - ker t x z) * d z ∂μ + let B := C * ‖v‖ ^ 2 + have hB : 0 ≤ B := mul_nonneg hC.le (sq_nonneg _) + have hrr : r ^ 2 ≤ R ^ 2 := (sq_le_sq₀ hr.le hR.le).mpr hrR + have hR2 : R ^ 2 ≤ 1 := by nlinarith + have hr1 : r ≤ 1 := hrR.trans hR1 + have hd : Integrable d μ := cutoffSourceDensity_integrable μ hQ _ _ _ + have hz : ∀ᵐ z ∂μ, z ∉ closedBall p (2 * ρ) → d z = 0 := + χ.error_zero_off_outerBall μ hQ _ + have hfc : ContinuousOn f (Ioi 0) := average_density_continuousOn_time μ hQ hk + (ball q r) measurableSet_ball hfinite hd (isCompact_closedBall p (2 * ρ)) hz + have hgc : ContinuousOn g (Ioi 0) := difference_density_continuousOn_time μ hQ hk + (ball q r) measurableSet_ball isBounded_ball x hd (isCompact_closedBall p (2 * ρ)) hz + have hfb (t : ℝ) (ht : 0 < t) (htr : t ≤ r ^ 2) : |f t| ≤ B := + (hb r t x q hr hr1 ht (htr.trans (hrr.trans hR2)) hfinite hvolume hcenter hsep + (hsource t ht (htr.trans hrr)) v).1 htr + have hgb (t : ℝ) (htr : r ^ 2 ≤ t) (htR : t ≤ R ^ 2) : |g t| ≤ B * r := by + have ht : 0 < t := (sq_pos_of_pos hr).trans_le htr + have hh := (hb r t x q hr hr1 ht (htR.trans hR2) hfinite hvolume hcenter hsep + (hsource t ht htR) v).2 htr + simpa only [B, g, d, mul_assoc, mul_comm, mul_left_comm] using hh + have hfi : IntervalIntegrable f volume 0 (r ^ 2) := by + rw [intervalIntegrable_iff_integrableOn_Ioc_of_le (sq_nonneg r)] + apply IntegrableOn.of_bound measure_Ioc_lt_top + ((hfc.mono (fun _ ht => ht.1)).aestronglyMeasurable measurableSet_Ioc) B + filter_upwards [ae_restrict_mem measurableSet_Ioc] with t ht + simpa only [Real.norm_eq_abs] using hfb t ht.1 ht.2 + have hgi : IntervalIntegrable g volume (r ^ 2) (R ^ 2) := + (hgc.mono (fun t ht => (sq_pos_of_pos hr).trans_le ht.1)).intervalIntegrable_of_Icc hrr + refine ⟨hfi, hgi, ?_⟩ + have hshort : |∫ t in (0 : ℝ)..r ^ 2, f t| ≤ B * r ^ 2 := + short_time_integral_norm_le hr (mul_nonneg hB (sq_nonneg r)) (by + intro t ht htr + nlinarith only [mul_le_mul_of_nonneg_left (hfb t ht htr) (sq_nonneg r)]) + have hlong : |∫ t in r ^ 2..R ^ 2, g t| ≤ B * r * R ^ 2 := by + have h := intervalIntegral.norm_integral_le_of_norm_le_const (C := B * r) (f := g) (by + intro t ht + rw [uIoc_of_le hrr] at ht + simpa only [Real.norm_eq_abs] using hgb t ht.1.le ht.2) + rw [abs_of_nonneg (sub_nonneg.mpr hrr)] at h + have hc : 0 ≤ B * r := mul_nonneg hB hr.le + have hh : B * r * (R ^ 2 - r ^ 2) ≤ B * r * R ^ 2 := + mul_le_mul_of_nonneg_left (by linarith [sq_nonneg r]) hc + exact h.trans hh + change _ ≤ B * (r ^ 2 + r * R ^ 2) + change |∫ t in (0 : ℝ)..r ^ 2, f t| + |∫ t in r ^ 2..R ^ 2, g t| ≤ _ + nlinarith only [hshort, hlong] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/HarmonicCutoffMassBound.lean b/lean/OAI/Geometry/RCD/Sobolev/HarmonicCutoffMassBound.lean new file mode 100644 index 0000000000000000000000000000000000000000..7e5a4b8b4a0f49c1a1d919c2b2430d1227ca49b6 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/HarmonicCutoffMassBound.lean @@ -0,0 +1,130 @@ +import OAI.Geometry.RCD.Sobolev.HarmonicBochnerCutoffLimit + +namespace OAI + +/-! # A local energy error bounds the harmonic cutoff Bochner mass -/ + +open Set Filter MeasureTheory Metric +open scoped Topology NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) [IsFiniteMeasureOnCompacts μ] + (Q : QuadraticCheegerEnergy μ) + +omit [IsFiniteMeasureOnCompacts μ] in +theorem GoodLaplacianCutoff.harmonic_source_terms_zero + {p : X} {r C b : ℝ} (χ : GoodLaplacianCutoff μ Q p r C) + (hb : 2*r < b) (u : SobolevSpace μ Q) (d : Lp ℝ 2 μ) + (hd : d =ᵐ[μ.restrict (ball p b)] fun _ => 0) : + (∫ x, χ.weight x*(d x)^2 ∂μ)=0 ∧ weightedGamma μ Q d u χ.sobolev=0 := by + have hout (x : X) (hx : x∉ball p b) : 2*r < dist p x := by + have hh : b ≤ dist p x := by simpa only [mem_ball,dist_comm,not_lt] using hx + exact hb.trans_le hh + constructor + · apply integral_eq_zero_of_ae + filter_upwards [(ae_restrict_iff' measurableSet_ball).mp hd] with x hx + change χ.weight x*(d x)^2 = (0:ℝ) + by_cases hm : x∈ball p b + · simp only [hx hm,zero_pow (by decide : (2:ℕ)≠0),mul_zero] + · rw [χ.zero x (hout x hm),zero_mul] + · apply integral_eq_zero_of_ae + filter_upwards [(ae_restrict_iff' measurableSet_ball).mp hd,χ.representative, + localGamma_comm μ Q u χ.sobolev,localGamma_zero_on_level μ Q χ.sobolev u 0] + with x hx hrep hcomm hlevel + change d x*localGamma μ Q u χ.sobolev x = (0:ℝ) + by_cases hm : x∈ball p b + · rw [hx hm,zero_mul] + · rw [hcomm,hlevel (hrep.trans (χ.zero x (hout x hm))),mul_zero] + +theorem GoodLaplacianCutoff.energy_error_mass_bound + {p : X} {r C K : ℝ} (χ : GoodLaplacianCutoff μ Q p r C) + (hr : 0 < r) (hC : 0 ≤ C) (hK : K ≤ 0) + (u : SobolevSpace μ Q) (c : ℝ) : + (1/2:ℝ)*weightedGamma μ Q χ.laplacian u u-K*weightedGamma μ Q χ.weight u u ≤ + (C/r^2)/2*(∫ x in closedBall p (2*r), |localGamma μ Q u u x-c| ∂μ)+ + (-K)*((∫ x in closedBall p (2*r), |localGamma μ Q u u x-c| ∂μ)+ + c*μ.real (closedBall p (2*r))) := by + let S := closedBall p (2*r) + let g := localGamma μ Q u u + let e := fun x => g x-c + let D := C/r^2 + have hD : 0 ≤ D := div_nonneg hC (sq_nonneg r) + let : IsFiniteMeasure (μ.restrict S) := + ⟨by simpa only [S,Measure.restrict_apply_univ] using (isCompact_closedBall p (2*r)).measure_lt_top⟩ + have hig : IntegrableOn g S μ := (localGamma_memL1 μ Q u u).integrableOn + have hie : IntegrableOn e S μ := hig.sub (integrable_const _) + have hiq : IntegrableOn χ.laplacian S μ := Integrable.of_bound + (Lp.aestronglyMeasurable χ.laplacian).restrict D (by + simpa only [Real.norm_eq_abs] using ae_restrict_of_ae χ.laplacian_bound) + have hqzero : ∫ x, χ.laplacian x ∂μ=0 := + integral_weakLaplacian_eq_zero μ Q χ.sobolev χ.laplacian χ.weak_laplacian p + (show 0 < 2*r by positivity) + (by + filter_upwards [χ.representative] with x hx hdist + exact hx.trans (χ.zero x hdist)) + (by + filter_upwards [χ.laplacian_locality] with x hx hdist + exact hx (Or.inr hdist)) + have hqout : ∀ᵐ x ∂μ, x∉S → χ.laplacian x=0 := by + filter_upwards [χ.laplacian_locality] with x hx hm + exact hx (Or.inr (by simpa only [S,mem_closedBall,dist_comm,not_le] using hm)) + have hqS : ∫ x in S, χ.laplacian x ∂μ=0 := + (setIntegral_eq_integral_of_ae_compl_eq_zero hqout).trans hqzero + have heq : weightedGamma μ Q χ.laplacian u u= + ∫ x in S, χ.laplacian x*e x ∂μ := by + have hloc : (∫ x in S, χ.laplacian x*g x ∂μ)=∫ x, χ.laplacian x*g x ∂μ := by + apply setIntegral_eq_integral_of_ae_compl_eq_zero + filter_upwards [hqout] with x hx hm + rw [hx hm,zero_mul] + have hip : IntegrableOn (fun x => χ.laplacian x*g x) S μ := + hig.bdd_mul (Lp.aestronglyMeasurable χ.laplacian).restrict + (by simpa only [Real.norm_eq_abs] using ae_restrict_of_ae χ.laplacian_bound) + change (∫ x, χ.laplacian x*g x ∂μ)=_ + rw [← hloc] + dsimp only [e] + simp_rw [mul_sub] + rw [integral_sub hip (hiq.mul_const c),integral_mul_const,hqS,zero_mul,sub_zero] + have hqbound : weightedGamma μ Q χ.laplacian u u ≤ D*(∫ x in S, |e x| ∂μ) := by + rw [heq] + apply (le_abs_self _).trans + apply abs_integral_le_integral_abs.trans + calc + _ ≤ ∫ x in S, D*|e x| ∂μ := by + apply integral_mono_ae + (hie.bdd_mul (Lp.aestronglyMeasurable χ.laplacian).restrict + (by simpa only [Real.norm_eq_abs] using ae_restrict_of_ae χ.laplacian_bound)).abs + (hie.abs.const_mul D) + filter_upwards [ae_restrict_of_ae χ.laplacian_bound] with x hx + rw [abs_mul] + exact mul_le_mul_of_nonneg_right hx (abs_nonneg _) + _ = _ := integral_const_mul _ _ + have hgi : (∫ x in S, g x ∂μ) ≤ (∫ x in S, |e x| ∂μ)+c*μ.real S := by + have hh := integral_mono hie hie.abs (fun x => le_abs_self (e x)) + rw [integral_sub hig (integrable_const c)] at hh + simp only [integral_const,smul_eq_mul,measureReal_restrict_apply_univ] at hh + linarith + have hχbound : weightedGamma μ Q χ.weight u u ≤ (∫ x in S, |e x| ∂μ)+c*μ.real S := by + have hloc : (∫ x in S, χ.weight x*g x ∂μ)=∫ x, χ.weight x*g x ∂μ := by + apply setIntegral_eq_integral_of_forall_compl_eq_zero + intro x hx + rw [χ.zero x (by simpa only [S,mem_closedBall,dist_comm,not_le] using hx),zero_mul] + change (∫ x, χ.weight x*g x ∂μ) ≤ _ + rw [← hloc] + apply le_trans _ hgi + apply integral_mono_ae + (hig.bdd_mul χ.weight.continuous.aestronglyMeasurable.restrict + (Eventually.of_forall χ.weight.norm_coe_le_norm)) hig + filter_upwards [ae_restrict_of_ae (localGamma_self μ Q u)] with x hx + dsimp only [g] + rw [hx] + exact mul_le_of_le_one_left (sq_nonneg _) (χ.bounds x).2 + have hc := mul_le_mul_of_nonneg_left hχbound (neg_nonneg.mpr hK) + change (1/2:ℝ)*_ - K*_ ≤ D/2*(∫ x in S, |e x| ∂μ)+(-K)*_ + linarith only [hqbound,hc] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/HarmonicCutoffSwap.lean b/lean/OAI/Geometry/RCD/Sobolev/HarmonicCutoffSwap.lean new file mode 100644 index 0000000000000000000000000000000000000000..7b365bd4264ad8f5f47e2316f2fe5c741356117d --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/HarmonicCutoffSwap.lean @@ -0,0 +1,128 @@ +import OAI.Geometry.RCD.Harmonic.UnboundedCaccioppoli +import OAI.Geometry.RCD.Sobolev.GammaL2Bound +import OAI.Geometry.RCD.Harmonic.HarmonicGrams + +namespace OAI + +/-! # Moving a derivative onto a compact Lipschitz test + +The unbounded factor needs only its original global Sobolev membership. +-/ + +open Set Filter MeasureTheory +open scoped NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +theorem harmonic_nonnegative_cutoff_swap (f w η : SobolevSpace μ hQ) + {v : X → ℝ} {L B A : ℝ≥0} (hv : LipschitzWith L v) + (hs : HasCompactSupport v) (hb : ∀ x, |v x|≤B) (hn : ∀ x, 0≤v x) + (hrep : SobolevSpace.toLp μ hQ η=ᵐ[μ] v) + (hgrad : ∀ᵐ x ∂μ, SobolevSpace.minimalSlope μ hQ η x≤A) + {Ω : Set X} (hsupp : tsupport v⊆Ω) (hw : IsSobolevHarmonicOn μ hQ Ω w) : + (∫ x, v x*localGamma μ hQ f w x ∂μ)= + -(∫ x, SobolevSpace.toLp μ hQ f x*localGamma μ hQ η w x ∂μ) := by + have hi := (localGamma_memL1 μ hQ f w).bdd_mul hv.continuous.aestronglyMeasurable + (Eventually.of_forall fun x => by simpa only [Real.norm_eq_abs] using hb x) + have hj : Integrable (fun x => SobolevSpace.toLp μ hQ f x*localGamma μ hQ η w x) μ := + (Lp.memLp (SobolevSpace.toLp μ hQ f)).integrable_mul + (localGamma_memLp_of_bounded_gradient μ hQ η w A hgrad) + have h := hw (SobolevSpace.cutoffCLM μ hQ hv hs hb hn f) + (SobolevSpace.cutoffCLM_mem_dirichlet μ hQ hv hs hb hn hsupp f) + rw [energyForm_comm,← integral_localGamma_eq_energyForm, + integral_congr_ae (localGamma_cutoffCLM μ hQ f η w hv hs hb hn hrep)] at h + rw [integral_add hi hj] at h + linarith + +variable [IsFiniteMeasureOnCompacts μ] + +theorem harmonic_signed_cutoff_swap (f w η : SobolevSpace μ hQ) + {v : X → ℝ} {L B : ℝ≥0} (hv : LipschitzWith L v) + (hs : HasCompactSupport v) (hb : ∀ x, |v x|≤B) + (hrep : SobolevSpace.toLp μ hQ η=ᵐ[μ] v) + {Ω : Set X} (hsupp : tsupport v⊆Ω) (hw : IsSobolevHarmonicOn μ hQ Ω w) : + (∫ x, v x*localGamma μ hQ f w x ∂μ)= + -(∫ x, SobolevSpace.toLp μ hQ f x*localGamma μ hQ η w x ∂μ) := by + let vp : X → ℝ := fun x => max (v x) 0 + let vm : X → ℝ := fun x => max (-v x) 0 + have hsp : HasCompactSupport vp := hs.comp_left (g := fun t : ℝ => max t 0) (by simp) + have hsm : HasCompactSupport vm := hs.comp_left (g := fun t : ℝ => max (-t) 0) (by simp) + have hlp : LipschitzWith L vp := hv.max_const 0 + have hlm : LipschitzWith L vm := hv.neg.max_const 0 + have hbp (x : X) : |vp x|≤B := by + rw [abs_of_nonneg (le_max_right _ _)] + exact max_le ((le_abs_self _).trans (hb x)) B.coe_nonneg + have hbm (x : X) : |vm x|≤B := by + rw [abs_of_nonneg (le_max_right _ _)] + exact max_le ((neg_le_abs _).trans (hb x)) B.coe_nonneg + have hps : tsupport vp⊆Ω := (closure_minimal (by + intro x hx + apply subset_tsupport v + intro hvx + exact hx (by simp [vp,hvx])) (isClosed_tsupport v)).trans hsupp + have hms : tsupport vm⊆Ω := (closure_minimal (by + intro x hx + apply subset_tsupport v + intro hvx + exact hx (by simp [vm,hvx])) (isClosed_tsupport v)).trans hsupp + let ηp : SobolevSpace μ hQ := SobolevSpace.ofLipschitzCompact μ hQ hlp hsp + let ηm : SobolevSpace μ hQ := SobolevSpace.ofLipschitzCompact μ hQ hlm hsm + have hp : SobolevSpace.toLp μ hQ ηp=ᵐ[μ] vp := + SobolevSpace.ofLipschitzCompact_coe μ hQ hlp hsp + have hm : SobolevSpace.toLp μ hQ ηm=ᵐ[μ] vm := + SobolevSpace.ofLipschitzCompact_coe μ hQ hlm hsm + have hvsplit (x : X) : v x=vp x-vm x := by + dsimp only [vp,vm] + by_cases hx : 0≤v x + · rw [max_eq_left hx,max_eq_right (neg_nonpos.mpr hx),sub_zero] + · have hx' : v x≤0 := (lt_of_not_ge hx).le + rw [max_eq_right hx',max_eq_left (neg_nonneg.mpr hx')] + ring + have he : η=ηp-ηm := by + apply Subtype.ext + apply Lp.ext + filter_upwards [hrep,hp,hm,Lp.coeFn_sub (SobolevSpace.toLp μ hQ ηp) + (SobolevSpace.toLp μ hQ ηm)] with x hx hpx hmx hsx + change SobolevSpace.toLp μ hQ η x=SobolevSpace.toLp μ hQ (ηp-ηm) x + rw [map_sub,hsx,Pi.sub_apply,hx,hpx,hmx] + exact hvsplit x + have hpg := SobolevSpace.minimalSlope_le_lipschitz μ hQ ηp hlp hp + have hmg := SobolevSpace.minimalSlope_le_lipschitz μ hQ ηm hlm hm + have hpint := harmonic_nonnegative_cutoff_swap μ hQ f w ηp hlp hsp hbp + (fun _ => le_max_right _ _) hp hpg hps hw + have hmint := harmonic_nonnegative_cutoff_swap μ hQ f w ηm hlm hsm hbm + (fun _ => le_max_right _ _) hm hmg hms hw + have hip := (localGamma_memL1 μ hQ f w).bdd_mul hlp.continuous.aestronglyMeasurable + (Eventually.of_forall fun x => by simpa only [Real.norm_eq_abs] using hbp x) + have him := (localGamma_memL1 μ hQ f w).bdd_mul hlm.continuous.aestronglyMeasurable + (Eventually.of_forall fun x => by simpa only [Real.norm_eq_abs] using hbm x) + have hjp : Integrable (fun x => SobolevSpace.toLp μ hQ f x*localGamma μ hQ ηp w x) μ := (Lp.memLp (SobolevSpace.toLp μ hQ f)).integrable_mul + (localGamma_memLp_of_bounded_gradient μ hQ ηp w L hpg) + have hjm : Integrable (fun x => SobolevSpace.toLp μ hQ f x*localGamma μ hQ ηm w x) μ := (Lp.memLp (SobolevSpace.toLp μ hQ f)).integrable_mul + (localGamma_memLp_of_bounded_gradient μ hQ ηm w L hmg) + have hvint : (∫ x, v x*localGamma μ hQ f w x ∂μ)= + (∫ x, vp x*localGamma μ hQ f w x ∂μ)-(∫ x, vm x*localGamma μ hQ f w x ∂μ) := by + rw [← integral_sub hip him] + apply integral_congr_ae + exact Eventually.of_forall fun x => by + change v x*localGamma μ hQ f w x=vp x*localGamma μ hQ f w x-vm x*localGamma μ hQ f w x + rw [hvsplit] + ring + have hgint : (∫ x, SobolevSpace.toLp μ hQ f x*localGamma μ hQ η w x ∂μ)= + (∫ x, SobolevSpace.toLp μ hQ f x*localGamma μ hQ ηp w x ∂μ)- + (∫ x, SobolevSpace.toLp μ hQ f x*localGamma μ hQ ηm w x ∂μ) := by + rw [← integral_sub hjp hjm,he] + apply integral_congr_ae + filter_upwards [localGamma_sub_left μ hQ ηp ηm w] with x hx + rw [hx] + ring + rw [hvint,hgint,hpint,hmint] + ring + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/HarmonicEnergyBound.lean b/lean/OAI/Geometry/RCD/Sobolev/HarmonicEnergyBound.lean new file mode 100644 index 0000000000000000000000000000000000000000..59bbb1e45c0d909cb10caf0752078eae7b4c9716 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/HarmonicEnergyBound.lean @@ -0,0 +1,35 @@ +import OAI.Geometry.RCD.Sobolev.LocalBochnerInput + +namespace OAI + +/-! # Enlarging the bound of a fixed harmonic energy representative -/ + +open Set Metric MeasureTheory +open scoped NNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X E : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + [NormedAddCommGroup E] [InnerProductSpace ℝ E] [FiniteDimensional ℝ E] + (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +/-- The energy function and its full measure equation are unchanged. -/ +def LocalHarmonicEnergy.enlargeBound {U : E →L[ℝ] SobolevSpace μ hQ} + {M : PositiveBilinearMeasure X E} {κ : ℝ} {p : X} {r : ℝ} {L H : ℝ≥0} {v : E} + (G : LocalHarmonicEnergy μ hQ U M κ p r L v) + (hLH : (L : ℝ) ^ 2 ≤ (H : ℝ) ^ 2) : LocalHarmonicEnergy μ hQ U M κ p r H v where + energy := G.energy + representative := G.representative + bounded := by + filter_upwards [G.bounded] with x hx + exact hx.trans (by + simp only [NNReal.coe_mul, NNReal.coe_pow, coe_nnnorm] + exact mul_le_mul_of_nonneg_right hLH (sq_nonneg ‖v‖)) + measure_laplacian := G.measure_laplacian + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/HarmonicEnergyCompactness.lean b/lean/OAI/Geometry/RCD/Sobolev/HarmonicEnergyCompactness.lean new file mode 100644 index 0000000000000000000000000000000000000000..185b708249717ec109e40140cda794390eb0baf1 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/HarmonicEnergyCompactness.lean @@ -0,0 +1,40 @@ +import OAI.Geometry.RCD.Sobolev.PointedEnergyCompactness +import OAI.Geometry.RCD.Sobolev.HarmonicScaledEnergy + +namespace OAI + +/-! # Actual harmonic sequences have bounded Euclidean energy-measure limits -/ + +open Set Filter MeasureTheory Metric +open scoped Topology ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + +theorem NoncollapsedRCD.harmonic_energy_subsequence {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) [(hausdorff n X).Regular] (hn : 2≤n) + {S R : ℝ} (hS : 0 (localEnergyMeasure (hausdorff n X) hX.quadratic (w (t k)) + (closedBall (p (t k)) (R*r (t k))) + (r (t k)^2/(hausdorff n X).real (ball (p (t k)) (S*r (t k))))).map (v (t k))) + atTop (𝓝 ν) ∧ + (ν : Measure (Euclidean n))≤ENNReal.ofReal M • + (euclideanBallProbability n S : Measure (Euclidean n)) := by + let : ProperSpace X := hX.proper K n hn + obtain ⟨M,hM,hb⟩ := hX.harmonic_scaled_energy_bound hn hS hR hRS p r hr hcurv w hw hnorm + exact ⟨M,hM,hX.pointed_energy_subsequence hS hR hRS hM p r ε v hr hε1 hεlim hv w hb⟩ + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/HarmonicEnergyGradient.lean b/lean/OAI/Geometry/RCD/Sobolev/HarmonicEnergyGradient.lean new file mode 100644 index 0000000000000000000000000000000000000000..0c7694669d3c8b2359d326ff1f303ba5df0563f4 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/HarmonicEnergyGradient.lean @@ -0,0 +1,102 @@ +import OAI.Geometry.RCD.Sobolev.GradientProductInput +import OAI.Geometry.RCD.Sobolev.PoissonSpanLift +import OAI.Geometry.RCD.Sobolev.ResidualBochnerMass + +namespace OAI + +/-! # Energy-gradient control from the finite-span calculus + +Appending two zero harmonic functions permits the already stated Poisson +Hessian and gradient-product inputs to be applied to a harmonic column. +The auxiliary full measure is bounded with an actual larger cutoff. +-/ + +open Set Metric MeasureTheory +open scoped NNReal InnerProductSpace + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem harmonic_energy_gradient_le {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) [IsFiniteMeasureOnCompacts (hausdorff n X)] + (hhessian : LocalPoissonHessianInput hX) (hproduct : LocalPoissonGradientProductInput hX) + {p : X} {R κ C : ℝ} (hR : 0 < R) (hκ : 0 ≤ κ) (hK : -κ ≤ K) (hC : 0 ≤ C) + (L : ℝ≥0) (u : Fin n → SobolevSpace (hausdorff n X) hX.quadratic) + (hu : ∀ i, IsSobolevHarmonicOn (hausdorff n X) hX.quadratic (ball p (32 * R)) (u i)) + (hgrad : ∀ v, ∀ᵐ x ∂(hausdorff n X).restrict (ball p (32 * R)), + localGamma (hausdorff n X) hX.quadratic + (sobolevColumnMap (hausdorff n X) hX.quadratic u v) + (sobolevColumnMap (hausdorff n X) hX.quadratic u v) x ≤ (L : ℝ) ^ 2 * ‖v‖ ^ 2) + (χ : GoodLaplacianCutoff (hausdorff n X) hX.quadratic p R C) + (v : Euclidean n) (g : SobolevSpace (hausdorff n X) hX.quadratic) + (hrep : SobolevSpace.toLp (hausdorff n X) hX.quadratic g =ᵐ[ + (hausdorff n X).restrict (ball p R)] + localGamma (hausdorff n X) hX.quadratic + (sobolevColumnMap (hausdorff n X) hX.quadratic u v) + (sobolevColumnMap (hausdorff n X) hX.quadratic u v)) : + (∫ x in ball p R, localGamma (hausdorff n X) hX.quadratic g g x ∂hausdorff n X) ≤ + 4 * ((L : ℝ) ^ 2 * ‖v‖ ^ 2) * + (((C / R ^ 2) / 2 + κ) * ((L : ℝ) ^ 2 * ‖v‖ ^ 2) * + (hausdorff n X).real (closedBall p (2 * R))) := by + let μ := hausdorff n X + let z : Fin 2 → SobolevSpace μ hX.quadratic := fun _ => 0 + let U := sobolevColumnMap μ hX.quadratic (poissonSpan μ hX.quadratic u z) + let H : ℝ≥0 := ⟨((n + 2 : ℕ) : ℝ) * (L : ℝ), by positivity⟩ + have hz (i : Fin 2) : IsConstantLaplacianOn μ hX.quadratic (ball p (32 * R)) (z i) 0 := by + exact (isConstantLaplacianOn_zero_iff μ hX.quadratic _ _).mpr + (by + intro φ hφ + simpa only [zero_smul, zero_mul] using + energyForm_smul_left μ hX.quadratic 0 (0 : SobolevSpace μ hX.quadratic) φ) + have hzero : poissonSpanLaplacian n 0 = 0 := by + ext w + simp [poissonSpanLaplacian, Fin.sum_univ_add] + have hU (w) : IsConstantLaplacianOn μ hX.quadratic (ball p (8 * (4 * R))) (U w) ((0 : Euclidean (n + 2) →ₗ[ℝ] ℝ) w) := by + simpa only [show 8 * (4 * R) = 32 * R by ring, hzero] using + poissonSpan_constant_laplacian μ hX.quadratic u z 0 hu hz w + have hUG (w) : ∀ᵐ x ∂μ.restrict (ball p (8 * (4 * R))), + localGamma μ hX.quadratic (U w) (U w) x ≤ (H : ℝ) ^ 2 * ‖w‖ ^ 2 := by + rw [show 8 * (4 * R) = 32 * R by ring] + apply poissonSpan_gradient μ hX.quadratic u z (L : ℝ) + · intro i + have hh := hgrad (EuclideanSpace.single i 1) + simpa only [sobolevColumnMap_single, PiLp.norm_single, norm_one, one_pow, + mul_one] using hh + · intro i + filter_upwards [ae_restrict_of_ae (localGamma_smul_left μ hX.quadratic 0 + (0 : SobolevSpace μ hX.quadratic) 0)] with x hx + simp only [zero_smul, zero_mul] at hx + change localGamma μ hX.quadratic 0 0 x ≤ (L : ℝ) ^ 2 + rw [hx] + exact sq_nonneg _ + obtain ⟨M, hM, _, _⟩ := hhessian κ hκ hK p (4 * R) (by positivity) H U 0 hU hUG + let w := poissonCoordinateLift v + have hUw : U w = sobolevColumnMap μ hX.quadratic u v := + poissonSpanMap_lift μ hX.quadratic u z v + have hwgrad : ∀ᵐ x ∂μ.restrict (ball p R), + localGamma μ hX.quadratic (U w) (U w) x ≤ ((L : ℝ) * ‖v‖) ^ 2 := by + rw [hUw] + have hh := ae_restrict_of_ae_restrict_of_subset + (ball_subset_ball (show R ≤ 32 * R by linarith)) (hgrad v) + simpa only [mul_pow] using hh + have hb := hproduct κ hκ hK p (4 * R) (by positivity) H U 0 hU hUG M hM + R hR (by linarith) w w g (by simpa only [hUw] using hrep) 0 + ((L : ℝ) * ‖v‖) ((L : ℝ) * ‖v‖) (by positivity) (by positivity) hwgrad hwgrad + simp only [zero_smul, sub_zero, LinearMap.zero_apply, mul_zero, sq, zero_mul] at hb + have hclose : closedBall p (2 * R) ⊆ ball p (32 * R) := + closedBall_subset_ball (by linarith) + have hmass := χ.mass_le_of_gradient μ hX.quadratic hR (show R < 4 * R by linarith) + hC hκ (Classical.choice (hM w)) + (by rw [hUw]; exact ae_restrict_of_ae_restrict_of_subset hclose (hgrad v)) + rw [M.measure_real w (ball p R) measurableSet_ball] at hb + have hmul := mul_le_mul_of_nonneg_left hmass + (show 0 ≤ 4 * ((L : ℝ) ^ 2 * ‖v‖ ^ 2) by positivity) + nlinarith only [hb, hmul] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/HarmonicEnergyIdentification.lean b/lean/OAI/Geometry/RCD/Sobolev/HarmonicEnergyIdentification.lean new file mode 100644 index 0000000000000000000000000000000000000000..84e245a4100fda76f335dc6e889c24fa060b82aa --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/HarmonicEnergyIdentification.lean @@ -0,0 +1,79 @@ +import OAI.Geometry.RCD.Sobolev.HarmonicWeightedEnergyLimit +import OAI.Geometry.RCD.Metric.PointedWeightedDifference +import OAI.Geometry.RCD.Sobolev.PhysicalBallMeasuredTests + +namespace OAI + +/-! # Constant energy densities of the original sequence identify the limit -/ + +open Set Metric Filter MeasureTheory +open scoped Topology NNReal BoundedContinuousFunction ContDiff +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem NoncollapsedRCD.harmonic_constant_energy_test {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) [(hausdorff n X).Regular] (hn : 2 ≤ n) + (p : ℕ → X) (r ε : ℕ → ℝ) (V : ℕ → X → Euclidean n) + (hr : ∀ k, 0 < r k) (hcurv : ∀ k, -1 ≤ K*r k^2) + (hε : ∀ k, 0 ≤ ε k) (hε1 : ∀ k, ε k ≤ 1) (hεlim : Tendsto ε atTop (𝓝 0)) + (hV : ∀ k, IsMeasuredEuclideanApproximation (hausdorff n X) n (p k) (r k) 5 (ε k) (V k)) + (w : ℕ → SobolevSpace (hausdorff n X) hX.quadratic) + (hw : ∀ k, IsSobolevHarmonicOn (hausdorff n X) hX.quadratic (ball (p k) (5*r k)) (w k)) + {M : ℝ} (hM : 0 < M) (hnorm : ∀ k, harmonicTargetNorm hX (p k) (5*r k) (w k) ≤ M) + (g : Euclidean n → ℝ) (hg : ContDiffOn ℝ ∞ g (ball 0 5)) + (hgL : ∀ W < 5, ∃ L : ℝ≥0, LipschitzOnWith L g (closedBall 0 W)) + (hconv : ∀ W : ℝ, 0 < W → W < 5 → ∀ δ : ℝ, 0 < δ → ∀ᶠ k in atTop, + ∀ᵐ x ∂(hausdorff n X).restrict (ball (p k) (W*r k)), + |SobolevSpace.toLp (hausdorff n X) hX.quadratic (w k) x-g (V k x)| ≤ δ) + {C : ℝ} + (herror : Tendsto (fun k => ((hausdorff n X).real (ball (p k) (5*r k)))⁻¹* + ∫ x in ball (p k) (4*r k), + |r k^2*localGamma (hausdorff n X) hX.quadratic (w k) (w k) x-C| + ∂hausdorff n X) atTop (𝓝 0)) + (φ : Euclidean n →ᵇ ℝ) (hφ : ∀ z, 0 ≤ φ z) (hs : tsupport φ ⊆ ball 0 3) : + (∫ z in ball (0 : Euclidean n) 5, φ z*‖fderiv ℝ g z‖^2) = + C*(∫ z in ball (0 : Euclidean n) 5, φ z) := by + let μ := hausdorff n X + let c := fun k => (μ.real (ball (p k) (5*r k)))⁻¹ + have hm (k : ℕ) : 0 < μ.real (ball (p k) (5*r k)) := + ENNReal.toReal_pos (hX.fullSupport _ _ (mul_pos (by norm_num) (hr k))).ne' + (hX.finiteOnBounded _ isBounded_ball).ne + have hc (k : ℕ) : 0 ≤ c k := inv_nonneg.mpr (hm k).le + have hdiff := pointed_weighted_difference_tendsto μ (by norm_num : (0:ℝ)≤5) + (by norm_num : (3:ℝ)<4) (by norm_num : (4:ℝ)≤5) p r ε c V hr hc hεlim + (fun k => (hV k).metric) (fun k => (hV k).measurable) + (fun k x => r k^2*localGamma μ hX.quadratic (w k) (w k) x) (fun _ _ => C) + (fun k => ((localGamma_memL1 μ hX.quadratic (w k) (w k)).const_mul _).integrableOn) + (fun k => integrableOn_const (hX.finiteOnBounded _ isBounded_ball).ne) + herror φ ((subset_tsupport φ).trans hs) + have henergy := hX.harmonic_weighted_energy_limit hn p r ε V hr hcurv hε hε1 hεlim + hV w hw hM hnorm g hg hgL hconv φ hφ hs + have hscalar := physical_ball_measured_test_tendsto (by norm_num : (0:ℝ)<5) + (by norm_num : (0:ℝ)<5) le_rfl hr hV + (fun k => (hX.finiteOnBounded _ isBounded_ball).ne) hm hεlim φ + have he (k : ℕ) : + c k*(∫ x in ball (p k) (5*r k), φ (V k x)*(r k^2* + localGamma μ hX.quadratic (w k) (w k) x) ∂μ)- + c k*(∫ x in ball (p k) (5*r k), φ (V k x)*C ∂μ) = + r k^2*c k*(∫ x in ball (p k) (5*r k), φ (V k x)* + localGamma μ hX.quadratic (w k) (w k) x ∂μ)- + C*(c k*∫ x in ball (p k) (5*r k), φ (V k x) ∂μ) := by + simp_rw [mul_left_comm (φ _) (r k^2)] + rw [integral_const_mul,integral_mul_const] + ring + simp only [he] at hdiff + have hlim := henergy.sub (hscalar.const_mul C) + have heq := tendsto_nhds_unique hdiff hlim + have hv : 0 < volume.real (ball (0 : Euclidean n) 5) := + ENNReal.toReal_pos (measure_ball_pos volume 0 (by norm_num)).ne' measure_ball_lt_top.ne + have hh : (volume.real (ball (0 : Euclidean n) 5))⁻¹* + ((∫ z in ball 0 5, φ z*‖fderiv ℝ g z‖^2)-C*(∫ z in ball 0 5, φ z))=0 := by + nlinarith [heq] + exact sub_eq_zero.mp ((mul_eq_zero.mp hh).resolve_left (inv_ne_zero hv.ne')) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/HarmonicEnergyRigidity.lean b/lean/OAI/Geometry/RCD/Sobolev/HarmonicEnergyRigidity.lean new file mode 100644 index 0000000000000000000000000000000000000000..8adbc74aa6ecc3ceb6c077819e12728ea2363a36 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/HarmonicEnergyRigidity.lean @@ -0,0 +1,93 @@ +import OAI.Geometry.RCD.Sobolev.HarmonicEnergyIdentification +import OAI.Geometry.RCD.Sobolev.ContinuousDensityTestRigidity +import OAI.Geometry.RCD.Sobolev.EuclideanLocalEnergyRigidity + +namespace OAI + +/-! # An actual constant-energy harmonic limit is affine on the inner ball -/ + +open Set Metric Filter MeasureTheory +open scoped Topology NNReal BoundedContinuousFunction ContDiff +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem NoncollapsedRCD.harmonic_constant_energy_gradient_limit {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) [(hausdorff n X).Regular] (hn : 2 ≤ n) + (p : ℕ → X) (r ε : ℕ → ℝ) (V : ℕ → X → Euclidean n) + (hr : ∀ k, 0 < r k) (hcurv : ∀ k, -1 ≤ K*r k^2) + (hε : ∀ k, 0 ≤ ε k) (hε1 : ∀ k, ε k ≤ 1) (hεlim : Tendsto ε atTop (𝓝 0)) + (hV : ∀ k, IsMeasuredEuclideanApproximation (hausdorff n X) n (p k) (r k) 5 (ε k) (V k)) + (w : ℕ → SobolevSpace (hausdorff n X) hX.quadratic) + (hw : ∀ k, IsSobolevHarmonicOn (hausdorff n X) hX.quadratic (ball (p k) (5*r k)) (w k)) + {M : ℝ} (hM : 0 < M) (hnorm : ∀ k, harmonicTargetNorm hX (p k) (5*r k) (w k) ≤ M) + (g : Euclidean n → ℝ) (hg : ContDiffOn ℝ ∞ g (ball 0 5)) + (hgL : ∀ W < 5, ∃ L : ℝ≥0, LipschitzOnWith L g (closedBall 0 W)) + (hconv : ∀ W : ℝ, 0 < W → W < 5 → ∀ δ : ℝ, 0 < δ → ∀ᶠ k in atTop, + ∀ᵐ x ∂(hausdorff n X).restrict (ball (p k) (W*r k)), + |SobolevSpace.toLp (hausdorff n X) hX.quadratic (w k) x-g (V k x)| ≤ δ) + {C : ℝ} + (herror : Tendsto (fun k => ((hausdorff n X).real (ball (p k) (5*r k)))⁻¹* + ∫ x in ball (p k) (4*r k), + |r k^2*localGamma (hausdorff n X) hX.quadratic (w k) (w k) x-C| + ∂hausdorff n X) atTop (𝓝 0)) + : ∀ x ∈ ball (0 : Euclidean n) 3, ‖fderiv ℝ g x‖^2 = C := by + have hsub : ball (0 : Euclidean n) 3 ⊆ ball 0 5 := ball_subset_ball (by norm_num) + have hd : ContinuousOn (fun z => ‖fderiv ℝ g z‖^2) (ball (0 : Euclidean n) 3) := + ((hg.continuousOn_fderiv_of_isOpen isOpen_ball (by simp)).norm.pow 2).mono hsub + have hz : EqOn (fun z => ‖fderiv ℝ g z‖^2-C) 0 (ball (0 : Euclidean n) 3) := by + apply continuous_zero_of_nonnegative_tests isOpen_ball (hd.sub continuousOn_const) + intro φ hφ hφc hs + have ht := hX.harmonic_constant_energy_test hn p r ε V hr hcurv hε hε1 hεlim + hV w hw hM hnorm g hg hgL hconv herror φ hφ hs + have hprod : Integrable (fun z => φ z*‖fderiv ℝ g z‖^2) volume := + (continuous_mul_of_tsupport_subset isOpen_ball hd φ.continuous hs).integrable_of_hasCompactSupport + hφc.mul_right + have hconst : Integrable (fun z => φ z*C) volume := + (φ.continuous.mul continuous_const).integrable_of_hasCompactSupport hφc.mul_right + rw [← setIntegral_eq_integral_of_forall_compl_eq_zero (s := ball (0 : Euclidean n) 5) + (fun z hz => by + have hzero : φ z=0 := by + by_contra hne + exact hz (hsub (hs (subset_tsupport φ hne))) + rw [hzero,zero_mul])] + change (∫ z in ball (0 : Euclidean n) 5, φ z*(‖fderiv ℝ g z‖^2-C)) = 0 + simp_rw [mul_sub] + rw [integral_sub hprod.integrableOn hconst.integrableOn,integral_mul_const] + nlinarith [ht] + have he : ∀ z ∈ ball (0 : Euclidean n) 3, ‖fderiv ℝ g z‖^2=C := by + intro z hz' + exact sub_eq_zero.mp (hz hz') + exact he + +theorem NoncollapsedRCD.harmonic_constant_energy_affine_limit {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) [(hausdorff n X).Regular] (hn : 2 ≤ n) + (p : ℕ → X) (r ε : ℕ → ℝ) (V : ℕ → X → Euclidean n) + (hr : ∀ k, 0 < r k) (hcurv : ∀ k, -1 ≤ K*r k^2) + (hε : ∀ k, 0 ≤ ε k) (hε1 : ∀ k, ε k ≤ 1) (hεlim : Tendsto ε atTop (𝓝 0)) + (hV : ∀ k, IsMeasuredEuclideanApproximation (hausdorff n X) n (p k) (r k) 5 (ε k) (V k)) + (w : ℕ → SobolevSpace (hausdorff n X) hX.quadratic) + (hw : ∀ k, IsSobolevHarmonicOn (hausdorff n X) hX.quadratic (ball (p k) (5*r k)) (w k)) + {M : ℝ} (hM : 0 < M) (hnorm : ∀ k, harmonicTargetNorm hX (p k) (5*r k) (w k) ≤ M) + (g : Euclidean n → ℝ) (hg : ContDiffOn ℝ ∞ g (ball 0 5)) + (hgL : ∀ W < 5, ∃ L : ℝ≥0, LipschitzOnWith L g (closedBall 0 W)) + (hconv : ∀ W : ℝ, 0 < W → W < 5 → ∀ δ : ℝ, 0 < δ → ∀ᶠ k in atTop, + ∀ᵐ x ∂(hausdorff n X).restrict (ball (p k) (W*r k)), + |SobolevSpace.toLp (hausdorff n X) hX.quadratic (w k) x-g (V k x)| ≤ δ) + {C : ℝ} + (herror : Tendsto (fun k => ((hausdorff n X).real (ball (p k) (5*r k)))⁻¹* + ∫ x in ball (p k) (4*r k), + |r k^2*localGamma (hausdorff n X) hX.quadratic (w k) (w k) x-C| + ∂hausdorff n X) atTop (𝓝 0)) + (hh : InnerProductSpace.HarmonicOnNhd g (ball 0 5)) : + ∀ x ∈ ball (0 : Euclidean n) 3, g x = g 0 + fderiv ℝ g 0 x := by + have he := hX.harmonic_constant_energy_gradient_limit hn p r ε V hr hcurv hε hε1 hεlim + hV w hw hM hnorm g hg hgL hconv herror + have hs : ball (0 : Euclidean n) 3 ⊆ ball 0 5 := ball_subset_ball (by norm_num) + exact local_harmonic_constant_energy_affine (by norm_num) (hg.mono hs) (hh.mono hs) he + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/HarmonicEnergyTailBound.lean b/lean/OAI/Geometry/RCD/Sobolev/HarmonicEnergyTailBound.lean new file mode 100644 index 0000000000000000000000000000000000000000..56d4b93b8ecf3ae85f0b349f7978bb52bdf2ce82 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/HarmonicEnergyTailBound.lean @@ -0,0 +1,66 @@ +import OAI.Geometry.RCD.Sobolev.RCDPoissonEnergySubsolution +import OAI.Geometry.RCD.Sobolev.SubsolutionUpperTailGap + +namespace OAI + +/-! # Sharp local harmonic gradient bounds from a small energy tail -/ + +open Set Metric Filter MeasureTheory +open scoped NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem NoncollapsedRCD.harmonic_energy_small_tail_bound {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) [(hausdorff n X).Regular] (hn : 2≤n) + (β : ℝ) (hβ : 0<β) : + ∃ δ : ℝ, 0<δ ∧ ∀ (p : X) (r s : ℝ), 0 < r → 0 ≤ s → -1 ≤ K*(2*r)^2 → + ∀ (f : SobolevSpace (hausdorff n X) hX.quadratic) (L : ℝ≥0), + IsSobolevHarmonicOn (hausdorff n X) hX.quadratic (ball p (8*r)) f → + (∀ᵐ x ∂(hausdorff n X).restrict (ball p (8*r)), + localGamma (hausdorff n X) hX.quadratic f f x≤(L:ℝ)^2) → + (∫ x in ball p (2*r), (max (s*localGamma (hausdorff n X) hX.quadratic f f x-1) 0)^2 + ∂hausdorff n X)≤δ*(hausdorff n X).real (ball p (2*r)) → + ∀ᵐ x ∂(hausdorff n X).restrict (ball p r), + s*localGamma (hausdorff n X) hX.quadratic f f x≤1+β := by + obtain ⟨δ,hδ,hbound⟩ := hX.subsolution_upper_tail_gap hn 2 1 β (by norm_num) zero_le_one hβ + refine ⟨δ,hδ,?_⟩ + intro p r s hr hs hcurv f L hf hgrad hsmall + let μ := hausdorff n X + obtain ⟨e,B,hB,he,_,hsub⟩ := hX.poisson_energy_subsolution hn p hr f 0 L + ((isConstantLaplacianOn_zero_iff μ hX.quadratic _ _).mpr hf) hgrad + let v := s • e + have hv : SobolevSpace.toLp μ hX.quadratic v =ᵐ[μ.restrict (ball p (2*r))] + fun x => s*localGamma μ hX.quadratic f f x := by + have hrep : SobolevSpace.toLp μ hX.quadratic v =ᵐ[μ] + fun x => s*SobolevSpace.toLp μ hX.quadratic e x := by + dsimp only [v] + rw [map_smul] + exact Lp.coeFn_smul _ _ + filter_upwards [ae_restrict_of_ae hrep,he] with x hx hex + rw [hx,hex] + have haR : (2*max (-K) 0)*(2*r)^2≤2 := by + by_cases hK : K≤0 + · rw [max_eq_left (neg_nonneg.mpr hK)] + nlinarith + · rw [max_eq_right (by linarith : -K≤0)] + norm_num + have hsmall' : (∫ x in ball p (2*r), + (max (SobolevSpace.toLp μ hX.quadratic v x-1) 0)^2 ∂μ)≤δ*μ.real (ball p (2*r)) := by + convert hsmall using 1 + apply integral_congr_ae + filter_upwards [hv] with x hx + rw [hx] + have hb := hbound p (2*r) (by positivity) hcurv v (2*max (-K) 0) + (by positivity) haR (hsub.smul μ hX.quadratic s hs) hsmall' + have hbr : (2*r)/2=r := by ring + rw [hbr] at hb + filter_upwards [hb,ae_restrict_of_ae_restrict_of_subset + (ball_subset_ball (by linarith : r≤2*r)) hv] with x hx hrep + rwa [hrep] at hx + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/HarmonicEnergyTailCover.lean b/lean/OAI/Geometry/RCD/Sobolev/HarmonicEnergyTailCover.lean new file mode 100644 index 0000000000000000000000000000000000000000..c6b2d483a333537bbc14928aaf78986e995845a9 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/HarmonicEnergyTailCover.lean @@ -0,0 +1,89 @@ +import OAI.Geometry.RCD.Sobolev.HarmonicEnergyTailBound +import OAI.Geometry.RCD.Metric.RescaledBallVolume +import OAI.Geometry.RCD.Sobolev.SobolevLevelChain + +namespace OAI + +/-! # Uniform local energy estimates throughout an inner ball -/ + +open Set Metric Filter MeasureTheory +open scoped NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem NoncollapsedRCD.harmonic_energy_tail_inner_bound {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) [(hausdorff n X).Regular] (hn : 2≤n) + (β : ℝ) (hβ : 0<β) : + ∃ δ : ℝ, 0<δ ∧ ∀ (p : X) (r : ℝ), 0 < r → -1≤K*(5*r)^2 → + ∀ (f : SobolevSpace (hausdorff n X) hX.quadratic) (L : ℝ≥0), + IsSobolevHarmonicOn (hausdorff n X) hX.quadratic (ball p (5*r)) f → + (∀ᵐ x ∂(hausdorff n X).restrict (ball p (4*r)), + localGamma (hausdorff n X) hX.quadratic f f x≤(L:ℝ)^2) → + (∫ x in ball p (4*r), (max (r^2*localGamma (hausdorff n X) hX.quadratic f f x-1) 0)^2 + ∂hausdorff n X)≤δ*(hausdorff n X).real (ball p (5*r)) → + ∀ᵐ x ∂(hausdorff n X).restrict (ball p (3*r)), + r^2*localGamma (hausdorff n X) hX.quadratic f f x≤1+β := by + obtain ⟨δ,hδ,hbound⟩ := hX.harmonic_energy_small_tail_bound hn β hβ + obtain ⟨D,hD,hvol⟩ := hX.rescaled_ball_volume_factor hn (a:=1) (δ:=1/40) + zero_le_one (by norm_num) (by norm_num) + have hD0 : 0 (max (r^2*localGamma μ hX.quadratic f f x-1) 0)^2 + have : IsFiniteMeasure (μ.restrict (ball p (4*r))) := + ⟨by simpa only [Measure.restrict_apply_univ] using hX.finiteOnBounded _ isBounded_ball⟩ + have henergy : MemLp (fun x => r^2*localGamma μ hX.quadratic f f x) 2 + (μ.restrict (ball p (4*r))) := by + apply MemLp.of_bound (((localGamma_memL1 μ hX.quadratic f f).aestronglyMeasurable.const_mul (r^2)).restrict) + (r^2*(L:ℝ)^2) + filter_upwards [hgrad,ae_restrict_of_ae (localGamma_self μ hX.quadratic f)] with x hx he + rw [Real.norm_eq_abs,abs_of_nonneg (by rw [he]; positivity)] + exact mul_le_mul_of_nonneg_left hx (sq_nonneg r) + have hi : IntegrableOn F (ball p (4*r)) μ := + ((upperLevelPart_lipschitz 1).comp_memLp (upperLevelPart_zero zero_le_one) henergy).integrable_sq + let T := ball p (3*r) + let V : T → Set X := fun q => ball q.val (r/16) + have hlocal (q : T) : ∀ᵐ x ∂μ.restrict (V q), r^2*localGamma μ hX.quadratic f f x≤1+β := by + have hq : dist q.val p<3*r := q.property + have hsub : ball q.val (8*(r/16))⊆ball p (4*r) := + Metric.ball_subset_ball' (by linarith) + have hsub5 : ball q.val (8*(r/16))⊆ball p (5*r) := + Metric.ball_subset_ball' (by linarith) + have hsub2 : ball q.val (2*(r/16))⊆ball p (4*r) := + Metric.ball_subset_ball' (by linarith) + have hcurv' : -1≤K*(2*(r/16))^2 := by + by_cases hK : 0≤K + · exact (by norm_num : (-1:ℝ)≤0).trans (mul_nonneg hK (sq_nonneg _)) + · have hs : (2*(r/16))^2≤(5*r)^2 := by nlinarith [sq_nonneg r] + have hm := mul_le_mul_of_nonpos_left hs (le_of_not_ge hK) + linarith + have hmass := hvol p (5*r) (by positivity) hcurv q.val (by linarith) + have hrad : (1/40:ℝ)*(5*r)=2*(r/16) := by ring + rw [hrad] at hmass + have hsmall' : (∫ x in ball q.val (2*(r/16)), F x ∂μ)≤ + δ*μ.real (ball q.val (2*(r/16))) := by + calc + _ ≤ ∫ x in ball p (4*r), F x ∂μ := + setIntegral_mono_set hi (Filter.Eventually.of_forall (fun x => sq_nonneg _)) (Filter.Eventually.of_forall hsub2) + _ ≤ (δ/D)*μ.real (ball p (5*r)) := hsmall + _ ≤ (δ/D)*(D*μ.real (ball q.val (2*(r/16)))) := + mul_le_mul_of_nonneg_left hmass (div_nonneg hδ.le hD0.le) + _ = _ := by field_simp + exact hbound q.val (r/16) (r^2) (by positivity) (sq_nonneg _) hcurv' f L + (hf.mono μ hX.quadratic hsub5) + (ae_restrict_of_ae_restrict_of_subset hsub hgrad) hsmall' + let := hX.separable + obtain ⟨s,hs,hcover⟩ := (HereditarilyLindelofSpace.isLindelof T).elim_countable_subcover + V (fun _ => isOpen_ball) (by + intro z hz + exact mem_iUnion.mpr ⟨⟨z,hz⟩,mem_ball_self (by positivity)⟩) + exact ae_restrict_of_ae_restrict_of_subset hcover + ((ae_restrict_biUnion_iff V hs _).mpr (fun q _ => hlocal q)) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/HarmonicEnergyTailSequence.lean b/lean/OAI/Geometry/RCD/Sobolev/HarmonicEnergyTailSequence.lean new file mode 100644 index 0000000000000000000000000000000000000000..63f064faabcac21c668db00cd4c83ecc2b25023a --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/HarmonicEnergyTailSequence.lean @@ -0,0 +1,48 @@ +import OAI.Geometry.RCD.Sobolev.HarmonicEnergyTailCover + +namespace OAI + +/-! # Vanishing energy tails give sharp bounds for harmonic sequences -/ + +open Set Metric Filter MeasureTheory +open scoped Topology NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem NoncollapsedRCD.harmonic_energy_tail_sequence {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) [(hausdorff n X).Regular] (hn : 2≤n) + (p : ℕ → X) (r : ℕ → ℝ) (hr : ∀ k, 0 < r k) + (hcurv : ∀ k, -1≤K*(5*r k)^2) + (w : ℕ → SobolevSpace (hausdorff n X) hX.quadratic) + (hw : ∀ k, IsSobolevHarmonicOn (hausdorff n X) hX.quadratic (ball (p k) (5*r k)) (w k)) + {B : ℝ} (hB : 0≤B) + (hgrad : ∀ k, ∀ᵐ x ∂(hausdorff n X).restrict (ball (p k) (4*r k)), + r k^2*localGamma (hausdorff n X) hX.quadratic (w k) (w k) x≤B) + (hlim : Tendsto (fun k => ((hausdorff n X).real (ball (p k) (5*r k)))⁻¹* + ∫ x in ball (p k) (4*r k), + (max (r k^2*localGamma (hausdorff n X) hX.quadratic (w k) (w k) x-1) 0)^2 + ∂hausdorff n X) atTop (𝓝 0)) : + ∀ β : ℝ, 0<β → ∀ᶠ k in atTop, + ∀ᵐ x ∂(hausdorff n X).restrict (ball (p k) (3*r k)), + r k^2*localGamma (hausdorff n X) hX.quadratic (w k) (w k) x≤1+β := by + intro β hβ + obtain ⟨δ,hδ,hbound⟩ := hX.harmonic_energy_tail_inner_bound hn β hβ + filter_upwards [hlim.eventually (eventually_lt_nhds hδ)] with k hk + have hm : 0 < (hausdorff n X).real (ball (p k) (5*r k)) := + ENNReal.toReal_pos (hX.fullSupport _ _ (mul_pos (by norm_num) (hr k))).ne' + (hX.finiteOnBounded _ isBounded_ball).ne + let L : ℝ≥0 := ⟨Real.sqrt (B/(r k)^2),Real.sqrt_nonneg _⟩ + apply hbound (p k) (r k) (hr k) (hcurv k) (w k) L (hw k) + · filter_upwards [hgrad k] with x hx + change localGamma (hausdorff n X) hX.quadratic (w k) (w k) x≤(Real.sqrt (B/(r k)^2))^2 + rw [Real.sq_sqrt (div_nonneg hB (sq_nonneg _))] + exact (le_div_iff₀ (sq_pos_of_pos (hr k))).mpr (by simpa only [mul_comm] using hx) + · rw [← div_eq_inv_mul] at hk + exact ((div_lt_iff₀ hm).mp hk).le + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/HarmonicGradientConstruction.lean b/lean/OAI/Geometry/RCD/Sobolev/HarmonicGradientConstruction.lean new file mode 100644 index 0000000000000000000000000000000000000000..6615d6d9c6667f3706eee299ac4ee82e304b1d83 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/HarmonicGradientConstruction.lean @@ -0,0 +1,51 @@ +import OAI.Geometry.RCD.Sobolev.ScalarBochnerConstruction +import OAI.Geometry.RCD.Sobolev.PoissonHessianFromScalar +import OAI.Geometry.RCD.Sobolev.PoissonGradientConstruction +import OAI.Geometry.RCD.Coordinates.CanonicalCoordinateHeatInput +import OAI.Geometry.RCD.Sobolev.HarmonicGradientFromPoisson +import OAI.Geometry.RCD.Harmonic.HarmonicMeanConstruction + +namespace OAI + +/-! # The local harmonic gradient input from the RCD structure + +Nonpositive curvature uses the constructed scalar Bochner estimate. +Positive curvature uses the proved RCD(0,n) reduction; the required +bounded-curvature gradient estimate transfers to the original space. +-/ + +open Set Metric MeasureTheory +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem NoncollapsedRCD.harmonicGradientInput_nonpositive {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) [(hausdorff n X).Regular] (hn : 2≤n) + (hK : K≤0) (p : X) : LocalHarmonicL2GradientInput hX := by + let := hX.separable + let := locallyFinite_of_finiteOnBounded (hausdorff n X) hX.finiteOnBounded + have hscalar := hX.scalarBochner_nonpositive K n hn hK p + have hess := hX.poisson_hessian_input_of_scalar hn hscalar + have hpoisson := hX.poissonGradientInput + (hX.canonicalHeatKernel_isContinuousHeatKernel hn p) + (hX.canonicalHeatKernel_coordinateBounds hn p) hess + exact harmonicGradientInput_of_poisson_and_mean hX hpoisson hX.harmonicMeanValueInput + +theorem NoncollapsedRCD.harmonicGradientInput {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) [(hausdorff n X).Regular] (hn : 2≤n) + (p : X) : LocalHarmonicL2GradientInput hX := by + by_cases hK : K≤0 + · exact hX.harmonicGradientInput_nonpositive hn hK p + · let h0 := hX.zero_of_nonneg_curvature hn (lt_of_not_ge hK).le + have hg := h0.harmonicGradientInput_nonpositive hn le_rfl p + intro hn a τ ha hτ hτ1 + obtain ⟨C,hC,happly⟩ := hg hn a τ ha hτ hτ1 + refine ⟨C,hC,?_⟩ + intro q R hR _ + exact happly q R hR (by simpa only [zero_mul] using neg_nonpos.mpr ha) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/HarmonicGradientFromPoisson.lean b/lean/OAI/Geometry/RCD/Sobolev/HarmonicGradientFromPoisson.lean new file mode 100644 index 0000000000000000000000000000000000000000..c5a16733fc7fd40434b845841fef64c4f8197727 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/HarmonicGradientFromPoisson.lean @@ -0,0 +1,165 @@ +import OAI.Geometry.RCD.Metric.RescaledBallVolume +import OAI.Geometry.RCD.Harmonic.HarmonicMeanValueInput +import OAI.Geometry.RCD.Sobolev.PoissonGradientInput +import Mathlib.Topology.Compactness.Lindelof + +namespace OAI + +/-! # The harmonic L² gradient input from the existing Poisson and mean inputs + +A fixed small ball around each interior point has uniformly comparable +volume. The harmonic mean estimate bounds its values, and the constant-zero +case of the Poisson gradient estimate bounds its gradient. A countable open +subcover combines the local almost-everywhere estimates. +-/ + +open Set Metric MeasureTheory Filter +open scoped ENNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + +private theorem curvature_mul_scale {K R a s : ℝ} + (ha : 0 ≤ a) (hs : 0 ≤ s) (hs1 : s ≤ 1) (h : -a ≤ K * R ^ 2) : + -a ≤ K * (s * R) ^ 2 := by + have hs2 : s ^ 2 ≤ 1 := by nlinarith only [hs, hs1] + calc + -a ≤ -a * s ^ 2 := by nlinarith only [hs2, ha] + _ ≤ (K * R ^ 2) * s ^ 2 := mul_le_mul_of_nonneg_right h (sq_nonneg s) + _ = _ := by ring + +private theorem curvature_unit_scale {K R a s : ℝ} + (ha : 0 ≤ a) (hs : 0 ≤ s) (hsa : s ≤ 1 / (a + 1)) + (h : -a ≤ K * R ^ 2) : -1 ≤ K * (s * R) ^ 2 := by + have hs1 : s ≤ 1 := hsa.trans ((div_le_one (by linarith)).mpr (by linarith)) + have hs2 : s ^ 2 ≤ s := by nlinarith only [hs, hs1] + have hsa' : s * (a + 1) ≤ 1 := (le_div_iff₀ (by linarith)).mp hsa + have has2 : a * s ^ 2 ≤ 1 := by nlinarith only [hsa', hs2, ha, hs] + calc + -1 ≤ -a * s ^ 2 := by linarith only [has2] + _ ≤ (K * R ^ 2) * s ^ 2 := mul_le_mul_of_nonneg_right h (sq_nonneg s) + _ = _ := by ring + +private theorem harmonicTargetNorm_le_of_volume {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) {p q : X} {R r D : ℝ} + (hR : 0 < R) (hr : 0 < r) (hD : 0 ≤ D) + (hsub : ball q r ⊆ ball p R) + (hvol : (hausdorff n X).real (ball p R) ≤ D * (hausdorff n X).real (ball q r)) + (w : SobolevSpace (hausdorff n X) hX.quadratic) : + harmonicTargetNorm hX q r w ≤ Real.sqrt D * harmonicTargetNorm hX p R w := by + have hfinR := (hX.finiteOnBounded (ball p R) isBounded_ball).ne + have hfinr := (hX.finiteOnBounded (ball q r) isBounded_ball).ne + have hposR := ENNReal.toReal_pos (hX.fullSupport p R hR).ne' hfinR + have hposr := ENNReal.toReal_pos (hX.fullSupport q r hr).ne' hfinr + have hnormR : (harmonicTargetNorm hX p R w) ^ 2 = + ((hausdorff n X).real (ball p R))⁻¹ * + ∫ x in ball p R, (SobolevSpace.toLp (hausdorff n X) hX.quadratic w x) ^ 2 + ∂hausdorff n X := normalized_sobolev_mean_sq _ _ _ hfinR w + have hnormr : (harmonicTargetNorm hX q r w) ^ 2 = + ((hausdorff n X).real (ball q r))⁻¹ * + ∫ x in ball q r, (SobolevSpace.toLp (hausdorff n X) hX.quadratic w x) ^ 2 + ∂hausdorff n X := normalized_sobolev_mean_sq _ _ _ hfinr w + have hb := average_nonneg_le_of_subset (hausdorff n X) hsub hposr hposR + (Lp.memLp (SobolevSpace.toLp (hausdorff n X) hX.quadratic w)).integrable_sq.integrableOn + (fun _ => sq_nonneg _) (sq_nonneg (harmonicTargetNorm hX p R w)) hvol hnormR.ge + rw [← hnormr] at hb + have hleft : 0 ≤ harmonicTargetNorm hX q r w := norm_nonneg _ + have hright : 0 ≤ Real.sqrt D * harmonicTargetNorm hX p R w := + mul_nonneg (Real.sqrt_nonneg _) (norm_nonneg _) + apply (sq_le_sq₀ hleft hright).mp + rwa [mul_pow, Real.sq_sqrt hD] + +/-- The harmonic L² gradient estimate is redundant once the Poisson gradient and harmonic mean-value estimates have been supplied. -/ +theorem harmonicGradientInput_of_poisson_and_mean {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) + (hpoisson : LocalPoissonGradientInput hX) (hmean : LocalHarmonicL2MeanValueInput hX) : + LocalHarmonicL2GradientInput hX := by + classical + let := hX.separable + intro hn a τ ha hτ hτ1 + let δ := min ((1 - τ) / 2) (1 / (a + 1)) + have hδ : 0 < δ := lt_min (by linarith only [hτ1]) (by positivity) + have hδa : δ ≤ 1 / (a + 1) := min_le_right _ _ + have hδ1 : δ ≤ 1 := hδa.trans ((div_le_one (by positivity)).mpr (by linarith only [ha])) + have hδτ : δ + τ ≤ 1 := by + have hh : δ ≤ (1 - τ) / 2 := min_le_left _ _ + linarith only [hh, hτ1] + obtain ⟨D, hD, hvol⟩ := hX.rescaled_ball_volume_factor hn ha hδ hδ1 + obtain ⟨M, hM, hmean⟩ := hmean hn a ha + obtain ⟨P, hP, hpoisson⟩ := hpoisson hn + let F := 16 * P * M * Real.sqrt D / δ + have hF : 0 ≤ F := by dsimp only [F]; positivity + refine ⟨1 + F, by linarith only [hF], ?_⟩ + intro p R hR hcurv w hw + let ρ := δ * R / 16 + have hρ : 0 < ρ := by dsimp only [ρ]; positivity + have hscale : ρ = (δ / 16) * R := by dsimp only [ρ]; ring + have hcurvρ : -1 ≤ K * ρ ^ 2 := by + rw [hscale] + apply curvature_unit_scale ha (by positivity) _ hcurv + exact (show δ / 16 ≤ δ by linarith only [hδ]).trans hδa + have hcurvδ : -a ≤ K * (δ * R) ^ 2 := curvature_mul_scale ha hδ.le hδ1 hcurv + let A := M * Real.sqrt D * harmonicTargetNorm hX p R w + have hA : 0 ≤ A := by + dsimp only [A] + exact mul_nonneg (mul_nonneg (zero_le_one.trans hM) (Real.sqrt_nonneg _)) (norm_nonneg _) + have hlocal (q : ball p (τ * R)) : + ∀ᵐ x ∂(hausdorff n X).restrict (ball q.val (4 * ρ)), + localGamma (hausdorff n X) hX.quadratic w w x ≤ + ((1 + F) / R) ^ 2 * (((hausdorff n X).real (ball p R))⁻¹ * + ∫ y in ball p R, (SobolevSpace.toLp (hausdorff n X) hX.quadratic w y) ^ 2 + ∂hausdorff n X) := by + have hq : dist q.val p < τ * R := q.property + have hqR : dist q.val p ≤ R := by nlinarith only [hq, hτ1, hR] + have hsub : ball q.val (δ * R) ⊆ ball p R := by + apply Metric.ball_subset_ball' + nlinarith only [hq, hδτ, hR] + have hsub8 : ball q.val (8 * ρ) ⊆ ball q.val (δ * R / 2) := by + apply ball_subset_ball + dsimp only [ρ] + ring_nf + exact le_rfl + have hsub8full : ball q.val (8 * ρ) ⊆ ball p R := + hsub8.trans ((ball_subset_ball (by + have hh := mul_pos hδ hR + linarith only [hh] : δ * R / 2 ≤ δ * R)).trans hsub) + have hnorm := harmonicTargetNorm_le_of_volume hX hR (mul_pos hδ hR) + (zero_le_one.trans hD) hsub (hvol p R hR hcurv q.val hqR) w + have hvalues : ∀ᵐ x ∂(hausdorff n X).restrict (ball q.val (8 * ρ)), + |SobolevSpace.toLp (hausdorff n X) hX.quadratic w x| ≤ A := by + filter_upwards [ae_restrict_of_ae_restrict_of_subset hsub8 + (hmean q.val (δ * R) (mul_pos hδ hR) hcurvδ w (hw.mono _ _ hsub))] with x hx + exact hx.trans (by dsimp only [A]; nlinarith only [hnorm, hM]) + have hp := hpoisson q.val ρ hρ hcurvρ w 0 A hA + ((isConstantLaplacianOn_zero_iff _ _ _ _).mpr (hw.mono _ _ hsub8full)) hvalues + have hnormsq := normalized_sobolev_mean_sq (hausdorff n X) hX.quadratic (ball p R) + (hX.finiteOnBounded _ isBounded_ball).ne w + have heq : (P * (A / ρ + |(0 : ℝ)| * ρ)) ^ 2 = + (F / R) ^ 2 * (harmonicTargetNorm hX p R w) ^ 2 := by + dsimp only [A, F, ρ] + simp only [abs_zero, zero_mul, add_zero] + field_simp + have hcoeff : (F / R) ^ 2 ≤ ((1 + F) / R) ^ 2 := by + apply pow_le_pow_left₀ (div_nonneg hF hR.le) + apply div_le_div_of_nonneg_right _ hR.le + linarith + filter_upwards [hp] with x hx + rw [heq] at hx + have hh := hx.trans (mul_le_mul_of_nonneg_right hcoeff + (sq_nonneg (harmonicTargetNorm hX p R w))) + simpa only [harmonicTargetNorm, hnormsq] using hh + let U : ball p (τ * R) → Set X := fun q => ball q.val (4 * ρ) + obtain ⟨s, hs, hcover⟩ := (HereditarilyLindelofSpace.isLindelof (ball p (τ * R))).elim_countable_subcover + U (fun _ => isOpen_ball) (by + intro x hx + exact mem_iUnion.mpr ⟨⟨x, hx⟩, mem_ball_self (by positivity)⟩) + exact ae_restrict_of_ae_restrict_of_subset hcover + ((ae_restrict_biUnion_iff U hs _).mpr (fun q _ => hlocal q)) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/HarmonicGradientInput.lean b/lean/OAI/Geometry/RCD/Sobolev/HarmonicGradientInput.lean new file mode 100644 index 0000000000000000000000000000000000000000..8c325d501cbd55fca051923931c1a63cd9cd069a --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/HarmonicGradientInput.lean @@ -0,0 +1,40 @@ +import OAI.Geometry.RCD.Coordinates.NormalizedLocalL2 + +namespace OAI + +/-! # The harmonic L² interior gradient specialization + +Jiang (2014), JFA266, Theorem 1.1 (arXiv:1307.1334v2, printed p.3), +with eigenvalue zero, gives an interior gradient bound by the local L¹ mean. +Cauchy--Schwarz replaces that mean by the L² mean. Covering a fixed inner +fraction and Bishop--Gromov comparison (Sturm2006II, Theorem2.3) give the +following fixed-fraction specialization. Constants are chosen before the +ball and function and depend only on the stated curvature bound and ratio. +-/ + +open Set Metric MeasureTheory +open scoped ENNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +/-- The normalized L² interior gradient bound for harmonic functions. +This is a analytic input, not an affine approximation premise. -/ +def LocalHarmonicL2GradientInput {K : ℝ} {n : ℕ} (hX : NoncollapsedRCD K n X) : Prop := + 2 ≤ n → ∀ a τ : ℝ, 0 ≤ a → 0 < τ → τ < 1 → + ∃ C : ℝ, 1 ≤ C ∧ ∀ (p : X) (R : ℝ), 0 < R → -a ≤ K * R ^ 2 → + ∀ w : SobolevSpace (hausdorff n X) hX.quadratic, + IsSobolevHarmonicOn (hausdorff n X) hX.quadratic (ball p R) w → + ∀ᵐ x ∂(hausdorff n X).restrict (ball p (τ * R)), + localGamma (hausdorff n X) hX.quadratic w w x ≤ + (C / R) ^ 2 * (((hausdorff n X).real (ball p R))⁻¹ * + ∫ y in ball p R, (SobolevSpace.toLp (hausdorff n X) hX.quadratic w y) ^ 2 + ∂hausdorff n X) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/HarmonicGramEnergyDefect.lean b/lean/OAI/Geometry/RCD/Sobolev/HarmonicGramEnergyDefect.lean new file mode 100644 index 0000000000000000000000000000000000000000..040bda1bfbdec0771b0304517357a9060c087a3e --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/HarmonicGramEnergyDefect.lean @@ -0,0 +1,54 @@ +import OAI.Geometry.RCD.Coordinates.LocalHarmonicFrameDefect +import OAI.Geometry.RCD.Harmonic.BoundedGramTraceDefect + +namespace OAI + +/-! # Original harmonic frame energy controlled by its actual Gram defect -/ + +open Set Filter MeasureTheory Metric +open scoped NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem NoncollapsedRCD.harmonic_gram_energy_defect {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) [(hausdorff n X).Regular] + (hn : 2≤n) (hK : K≤0) (p : X) + (u : Fin n → SobolevSpace (hausdorff n X) hX.quadratic) + {R b : ℝ} (hR : 0 2) hL' + g q hq d A hd hqr (fun x => 5*gramDefect μ hQ u x) + (Eventually.of_forall (fun x => mul_nonneg (by norm_num) (gramDefect_nonneg μ hQ u x))) + (htr.mono (fun _ hx => hx.1)) (htr.mono (fun _ hx => hx.2)) + simpa only [← mul_assoc,show (6:ℝ)*5=30 by norm_num] using hh + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/HarmonicInteriorEnergy.lean b/lean/OAI/Geometry/RCD/Sobolev/HarmonicInteriorEnergy.lean new file mode 100644 index 0000000000000000000000000000000000000000..39b9ead5463bf947e4bc63f007d005e5b1403b58 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/HarmonicInteriorEnergy.lean @@ -0,0 +1,67 @@ +import OAI.Geometry.RCD.Sobolev.HarmonicGradientInput + +namespace OAI + +/-! # Interior energy bounds from the harmonic gradient estimate -/ + +open Set Metric MeasureTheory +open scoped ENNReal InnerProductSpace + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +omit [ProperSpace X] in +/-- Normalizing the outer L² norm gives a uniform scaled energy bound on +every fixed inner fraction. The function need not be bounded pointwise. -/ +theorem LocalHarmonicL2GradientInput.interior_energy {K : ℝ} {n : ℕ} + {hX : NoncollapsedRCD K n X} (hinput : LocalHarmonicL2GradientInput hX) (hn : 2 ≤ n) + {a τ : ℝ} (ha : 0 ≤ a) (hτ : 0 < τ) (hτ1 : τ < 1) : + ∃ C : ℝ, 1 ≤ C ∧ ∀ (p : X) (R : ℝ), ∀ _hR : 0 < R, -a ≤ K * R ^ 2 → + ∀ w : SobolevSpace (hausdorff n X) hX.quadratic, + IsSobolevHarmonicOn (hausdorff n X) hX.quadratic (ball p R) w → + ‖normalizeLocalL2 (hausdorff n X) (ball p R) + (ne_of_lt (hX.finiteOnBounded _ isBounded_ball)) + (SobolevSpace.restrictLp (hausdorff n X) hX.quadratic (ball p R) w)‖ ≤ 1 → + R ^ 2 * ((hausdorff n X).real (ball p R))⁻¹ * + (∫ x in ball p (τ * R), localGamma (hausdorff n X) hX.quadratic w w x + ∂hausdorff n X) ≤ C ^ 2 := by + obtain ⟨C, hC, hb⟩ := hinput hn a τ ha hτ hτ1 + refine ⟨C, hC, ?_⟩ + intro p R hR hcurv w hw hnorm + let μ := hausdorff n X + have hfinite : μ (ball p R) ≠ ∞ := ne_of_lt (hX.finiteOnBounded _ isBounded_ball) + have hmass : 0 < μ.real (ball p R) := + ENNReal.toReal_pos (ne_of_gt (hX.fullSupport p R hR)) hfinite + have hsub : ball p (τ * R) ⊆ ball p R := + ball_subset_ball (by nlinarith) + have hmean := sobolev_mean_sq_le_one_of_normalized μ hX.quadratic (ball p R) hfinite w hnorm + have hpoint : ∀ᵐ x ∂μ.restrict (ball p (τ * R)), + localGamma μ hX.quadratic w w x ≤ (C / R) ^ 2 := by + filter_upwards [hb p R hR hcurv w hw] with x hx + exact hx.trans (by simpa only [mul_one] using + mul_le_mul_of_nonneg_left hmean (sq_nonneg (C / R))) + have hint : IntegrableOn (localGamma μ hX.quadratic w w) (ball p (τ * R)) μ := + (localGamma_memL1 μ hX.quadratic w w).integrableOn + let : IsFiniteMeasure (μ.restrict (ball p (τ * R))) := + ⟨by simpa only [Measure.restrict_apply_univ] using (hX.finiteOnBounded + (ball p (τ * R)) isBounded_ball)⟩ + have hi : (∫ x in ball p (τ * R), localGamma μ hX.quadratic w w x ∂μ) ≤ + (C / R) ^ 2 * μ.real (ball p R) := by + calc + _ ≤ ∫ _x in ball p (τ * R), (C / R) ^ 2 ∂μ := + integral_mono_ae hint (integrable_const _) hpoint + _ = (C / R) ^ 2 * μ.real (ball p (τ * R)) := by + simp only [integral_const, smul_eq_mul, Measure.real, Measure.restrict_apply_univ, mul_comm] + _ ≤ _ := mul_le_mul_of_nonneg_left (measureReal_mono hsub hfinite) (sq_nonneg _) + calc + _ ≤ R ^ 2 * (μ.real (ball p R))⁻¹ * ((C / R) ^ 2 * μ.real (ball p R)) := + mul_le_mul_of_nonneg_left hi (by positivity) + _ = C ^ 2 := by field_simp + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/HarmonicL1GradientBound.lean b/lean/OAI/Geometry/RCD/Sobolev/HarmonicL1GradientBound.lean new file mode 100644 index 0000000000000000000000000000000000000000..ef38043d2e7013264770ba71442faeedb8cb7971 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/HarmonicL1GradientBound.lean @@ -0,0 +1,131 @@ +import OAI.Geometry.RCD.Sobolev.HarmonicEnergyTailBound +import OAI.Geometry.RCD.Sobolev.BoundedPositiveTail +import OAI.Geometry.RCD.Metric.RescaledBallVolume + +namespace OAI + +/-! # Sharp inner gradients from the actual outer L1 energy error -/ + +open Set Metric MeasureTheory +open scoped NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem NoncollapsedRCD.harmonic_unit_tail_bound {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) [(hausdorff n X).Regular] (hn : 2 ≤ n) + (β : ℝ) (hβ : 0 < β) : + ∃ δ : ℝ, 0 < δ ∧ ∀ (p : X) (r : ℝ), 0 < r → -1 ≤ K*(2*r)^2 → + ∀ (f : SobolevSpace (hausdorff n X) hX.quadratic) (L : ℝ≥0), + IsSobolevHarmonicOn (hausdorff n X) hX.quadratic (ball p (2*r)) f → + (∀ᵐ x ∂(hausdorff n X).restrict (ball p (2*r)), + localGamma (hausdorff n X) hX.quadratic f f x ≤ (L : ℝ)^2) → + (∫ x in ball p (2*r), (max (localGamma (hausdorff n X) hX.quadratic f f x-1) 0)^2 + ∂hausdorff n X) ≤ δ*(hausdorff n X).real (ball p (2*r)) → + ∀ᵐ x ∂(hausdorff n X).restrict (ball p r), + localGamma (hausdorff n X) hX.quadratic f f x ≤ 1+β := by + obtain ⟨δ,hδ,hbound⟩ := hX.harmonic_energy_small_tail_bound hn β hβ + obtain ⟨D,hD,hvol⟩ := hX.rescaled_ball_volume_factor hn (a:=1) (δ:=1/16) + zero_le_one (by norm_num) (by norm_num) + have hD0 : 0 < D := zero_lt_one.trans_le hD + refine ⟨δ/D,div_pos hδ hD0,?_⟩ + intro p r hr hcurv f L hf hgrad hsmall + let μ := hausdorff n X + let F := fun x => (max (localGamma μ hX.quadratic f f x-1) 0)^2 + have hfin : μ (ball p (2*r)) ≠ ⊤ := (hX.finiteOnBounded _ isBounded_ball).ne + have hi := ((localGamma_memL1 μ hX.quadratic f f).integrableOn.sub + (integrableOn_const hfin : IntegrableOn (fun _ : X => (1 : ℝ)) (ball p (2*r)) μ)).abs + have hF : IntegrableOn F (ball p (2*r)) μ := by + apply ((hi.const_mul ((L : ℝ)^2)).mono' + (((localGamma_memL1 μ hX.quadratic f f).aestronglyMeasurable.restrict.sub + aestronglyMeasurable_const).sup aestronglyMeasurable_const |>.pow 2)) + filter_upwards [hgrad] with x hx + change |(max (localGamma μ hX.quadratic f f x-1) 0)^2| ≤ + (L : ℝ)^2*|localGamma μ hX.quadratic f f x-1| + simpa only [Real.norm_eq_abs,abs_sq] using + bounded_positive_tail_pointwise (sq_nonneg (L : ℝ)) hx + let T := ball p r + let V : T → Set X := fun q => ball q.val (r/16) + have hlocal (q : T) : ∀ᵐ x ∂μ.restrict (V q), localGamma μ hX.quadratic f f x ≤ 1+β := by + have hq : dist q.val p < r := q.property + have hsub : ball q.val (8*(r/16)) ⊆ ball p (2*r) := + Metric.ball_subset_ball' (by linarith) + have hsub2 : ball q.val (2*(r/16)) ⊆ ball p (2*r) := + Metric.ball_subset_ball' (by linarith) + have hcurv' : -1 ≤ K*(2*(r/16))^2 := by + by_cases hK : 0 ≤ K + · exact (by norm_num : (-1 : ℝ) ≤ 0).trans (mul_nonneg hK (sq_nonneg _)) + · have hs : (2*(r/16))^2 ≤ (2*r)^2 := by nlinarith [sq_nonneg r] + have hm := mul_le_mul_of_nonpos_left hs (le_of_not_ge hK) + linarith + have hmass := hvol p (2*r) (by positivity) hcurv q.val (by linarith) + have hrad : (1/16 : ℝ)*(2*r) = 2*(r/16) := by ring + rw [hrad] at hmass + have hsmall' : (∫ x in ball q.val (2*(r/16)), F x ∂μ) ≤ + δ*μ.real (ball q.val (2*(r/16))) := by + calc + _ ≤ ∫ x in ball p (2*r), F x ∂μ := + setIntegral_mono_set hF (Filter.Eventually.of_forall (fun x => sq_nonneg _)) + (Filter.Eventually.of_forall hsub2) + _ ≤ (δ/D)*μ.real (ball p (2*r)) := hsmall + _ ≤ (δ/D)*(D*μ.real (ball q.val (2*(r/16)))) := + mul_le_mul_of_nonneg_left hmass (div_nonneg hδ.le hD0.le) + _ = _ := by field_simp + simpa only [one_mul] using hbound q.val (r/16) 1 (by positivity) zero_le_one hcurv' f L + (hf.mono μ hX.quadratic hsub) + (ae_restrict_of_ae_restrict_of_subset hsub hgrad) + (by simpa only [one_mul,F] using hsmall') + let := hX.separable + obtain ⟨s,hs,hcover⟩ := (HereditarilyLindelofSpace.isLindelof T).elim_countable_subcover + V (fun _ => isOpen_ball) (by + intro z hz + exact mem_iUnion.mpr ⟨⟨z,hz⟩,mem_ball_self (by positivity)⟩) + exact ae_restrict_of_ae_restrict_of_subset hcover + ((ae_restrict_biUnion_iff V hs _).mpr (fun q _ => hlocal q)) + +theorem NoncollapsedRCD.harmonic_l1_gradient_bound {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) [(hausdorff n X).Regular] (hn : 2 ≤ n) + (β B : ℝ) (hβ : 0 < β) (hB : 0 ≤ B) : + ∃ ε : ℝ, 0 < ε ∧ ∀ (p : X) (r : ℝ), 0 < r → -1 ≤ K*(2*r)^2 → + ∀ f : SobolevSpace (hausdorff n X) hX.quadratic, + IsSobolevHarmonicOn (hausdorff n X) hX.quadratic (ball p (2*r)) f → + (∀ᵐ x ∂(hausdorff n X).restrict (ball p (2*r)), + localGamma (hausdorff n X) hX.quadratic f f x ≤ B) → + ((hausdorff n X).real (ball p (2*r)))⁻¹*(∫ x in ball p (2*r), + |localGamma (hausdorff n X) hX.quadratic f f x-1| ∂hausdorff n X) ≤ ε → + ∀ᵐ x ∂(hausdorff n X).restrict (ball p r), + localGamma (hausdorff n X) hX.quadratic f f x ≤ 1+β := by + obtain ⟨δ,hδ,hbound⟩ := hX.harmonic_unit_tail_bound hn β hβ + refine ⟨δ/(B+1),div_pos hδ (by positivity),?_⟩ + intro p r hr hcurv f hh hg he + let μ := hausdorff n X + have hf : μ (ball p (2*r)) ≠ ⊤ := (hX.finiteOnBounded _ isBounded_ball).ne + have hm : 0 < μ.real (ball p (2*r)) := + ENNReal.toReal_pos (hX.fullSupport _ _ (by positivity)).ne' hf + have hi := ((localGamma_memL1 μ hX.quadratic f f).integrableOn.sub + (integrableOn_const hf : IntegrableOn (fun _ : X => (1 : ℝ)) (ball p (2*r)) μ)).abs + have hb := bounded_positive_tail_integral μ (ball p (2*r)) hB + (localGamma_memL1 μ hX.quadratic f f).aestronglyMeasurable.restrict hi hg + have hraw : (∫ x in ball p (2*r), |localGamma μ hX.quadratic f f x-1| ∂μ) ≤ + (δ/(B+1))*μ.real (ball p (2*r)) := by + apply (div_le_iff₀ hm).mp + simpa only [div_eq_inv_mul] using he + have hcoef : B*(δ/(B+1)) ≤ δ := by + rw [← mul_div_assoc] + exact (div_le_iff₀ (show 0 < B+1 by positivity)).mpr (by nlinarith) + apply hbound p r hr hcurv f ⟨Real.sqrt B,Real.sqrt_nonneg B⟩ hh + (by + change ∀ᵐ x ∂μ.restrict (ball p (2*r)), + localGamma μ hX.quadratic f f x ≤ (Real.sqrt B)^2 + simpa only [Real.sq_sqrt hB] using hg) + calc + _ ≤ B*(∫ x in ball p (2*r), |localGamma μ hX.quadratic f f x-1| ∂μ) := hb + _ ≤ B*((δ/(B+1))*μ.real (ball p (2*r))) := mul_le_mul_of_nonneg_left hraw hB + _ ≤ δ*μ.real (ball p (2*r)) := by + nlinarith [mul_le_mul_of_nonneg_right hcoef hm.le] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/HarmonicLinearEnergyL1.lean b/lean/OAI/Geometry/RCD/Sobolev/HarmonicLinearEnergyL1.lean new file mode 100644 index 0000000000000000000000000000000000000000..3b64518aa3d3092c6b97d9afa926e9bf513cf0eb --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/HarmonicLinearEnergyL1.lean @@ -0,0 +1,88 @@ +import OAI.Geometry.RCD.Harmonic.HarmonicLinearWeightedDefect +import OAI.Geometry.RCD.Harmonic.WeightedCoreConvergence +import OAI.Geometry.RCD.Metric.MeasuredAnnularMass +import OAI.Geometry.RCD.Sobolev.MeasuredRadialCutoff + +namespace OAI + +/-! # L1 convergence of the actual harmonic energy on the original inner ball -/ + +open Set Metric Filter MeasureTheory +open scoped Topology BoundedContinuousFunction +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem NoncollapsedRCD.harmonic_linear_energy_l1 {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) [(hausdorff n X).Regular] (hn : 2≤n) + (p : ℕ → X) (r ε : ℕ → ℝ) (V : ℕ → X → Euclidean n) + (hr : ∀ k, 0 < r k) (hcurv : ∀ k, -1≤K*r k^2) (hcurv5 : ∀ k, -1≤K*(5*r k)^2) + (hε : ∀ k, 0≤ε k) (hε1 : ∀ k, ε k≤1) (hεlim : Tendsto ε atTop (𝓝 0)) + (hV : ∀ k, IsMeasuredEuclideanApproximation (hausdorff n X) n (p k) (r k) 5 (ε k) (V k)) + (w : ℕ → SobolevSpace (hausdorff n X) hX.quadratic) + (hw : ∀ k, IsSobolevHarmonicOn (hausdorff n X) hX.quadratic (ball (p k) (5*r k)) (w k)) + {M : ℝ} (hM : 0 ((hausdorff n X).real (ball (p k) (2*r k)))⁻¹* + ∫ x in ball (p k) (2*r k), + |r k^2*localGamma (hausdorff n X) hX.quadratic (w k) (w k) x-1| + ∂hausdorff n X) atTop (𝓝 0) := by + let μ := hausdorff n X + let Ω := fun k => ball (p k) (5*r k) + let A := fun k => ball (p k) (2*r k) + let mass := fun k => μ.real (Ω k) + let φ : Euclidean n →ᵇ ℝ := euclideanNestedCutoff n (a:=9/4) (b:=5/2) (by norm_num) + have hφ (z : Euclidean n) : 0≤φ z := (nestedBallCutoff_bounds 0 (9/4) (5/2) z).1 + have hφ1 (z : Euclidean n) : φ z≤1 := (nestedBallCutoff_bounds 0 (9/4) (5/2) z).2 + have hs : Function.support φ⊆ball 0 (11/4) := by + intro z hz + by_contra ht + have hdist : 5/2≤dist (0:Euclidean n) z := by + have hh : 11/4≤dist z (0:Euclidean n) := le_of_not_gt ht + rw [dist_comm] + linarith + exact hz (nestedBallCutoff_eq_zero 0 (by norm_num : (9/4:ℝ)<5/2) hdist) + have hlim := hX.harmonic_linear_weighted_defect hn p r ε V hr hcurv hcurv5 hε hε1 hεlim hV + w hw hM hnorm L hL hconv φ hφ hφ1 hs + let f := fun k x => φ (V k x) + let e := fun k x => |r k^2*localGamma μ hX.quadratic (w k) (w k) x-1| + have hfinite (k : ℕ) : μ (Ω k)≠⊤ := (hX.finiteOnBounded _ isBounded_ball).ne + have hm (k : ℕ) : 0 < mass k := ENNReal.toReal_pos + (hX.fullSupport _ _ (mul_pos (by norm_num) (hr k))).ne' (hfinite k) + have he (k : ℕ) : IntegrableOn (e k) (Ω k) μ := + (((localGamma_memL1 μ hX.quadratic (w k) (w k)).const_mul (r k^2)).integrableOn.sub + (integrableOn_const (hfinite k))).abs + have hfe (k : ℕ) : IntegrableOn (fun x => f k x*e k x) (Ω k) μ := + (he k).bdd_mul ((φ.continuous.measurable.comp (hV k).measurable).aestronglyMeasurable.restrict) + (Eventually.of_forall (fun x => φ.norm_coe_le_norm (V k x))) + have hsub (k : ℕ) : A k⊆Ω k := + ball_subset_ball (mul_le_mul_of_nonneg_right (by norm_num : (2:ℝ)≤5) (hr k).le) + have hp : ∀ᶠ k in atTop, ∀ᵐ x ∂μ.restrict (A k), f k x=1 := by + filter_upwards [hεlim.eventually (eventually_lt_nhds (by norm_num : (0:ℝ)<1/8))] with k hk + filter_upwards [self_mem_ae_restrict measurableSet_ball] with x hx + have hradius := (abs_le.mp (pointed_radial_distance (hr k) (by norm_num : (0:ℝ)≤5) + (hV k).metric (hsub k hx).le)).2 + have hd : dist x (p k)/r k<2 := (div_lt_iff₀ (hr k)).mpr hx + apply nestedBallCutoff_eq_one 0 (by norm_num : (9/4:ℝ)<5/2) + rw [dist_zero_left] + linarith + have hmass := measured_ball_mass_tendsto (by norm_num : (0:ℝ)<5) (by norm_num : (0:ℝ)<2) + (by norm_num) hr hV hfinite hm hεlim + have hv : (volume.real (ball (0:Euclidean n) 5))⁻¹*volume.real (ball (0:Euclidean n) 2)≠0 := by + apply ne_of_gt + exact mul_pos (inv_pos.mpr (ENNReal.toReal_pos (measure_ball_pos volume 0 (by norm_num)).ne' + measure_ball_lt_top.ne)) + (ENNReal.toReal_pos (measure_ball_pos volume 0 (by norm_num)).ne' measure_ball_lt_top.ne) + exact normalized_weighted_core_convergence μ A Ω (fun k => (mass k)⁻¹) + (fun k => inv_pos.mpr (hm k)) f e hfe + (fun _ => Eventually.of_forall (fun _ => abs_nonneg _)) + (fun _ => Eventually.of_forall (fun _ => hφ _)) hsub hp hv hmass hlim + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/HarmonicReplacementEnergy.lean b/lean/OAI/Geometry/RCD/Sobolev/HarmonicReplacementEnergy.lean new file mode 100644 index 0000000000000000000000000000000000000000..d72f49018a4e6e2ef9884690df37ca7c5dcc3f0b --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/HarmonicReplacementEnergy.lean @@ -0,0 +1,57 @@ +import OAI.Geometry.RCD.Sobolev.DirichletPoisson + +namespace OAI + +/-! # The exact energy defect of an actual harmonic replacement -/ + +open Set MeasureTheory +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] + +theorem harmonic_replacement_energy_identity (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + (Ω : Set X) (u h : SobolevSpace μ hQ) + (hb : h-u∈SobolevSpace.dirichlet μ hQ Ω) (hh : IsSobolevHarmonicOn μ hQ Ω h) : + energyForm μ hQ (h-u) (h-u)=energyForm μ hQ u u-energyForm μ hQ h h := by + have hz := hh (h-u) hb + rw [energyForm_sub_right] at hz + have hc := energyForm_comm μ hQ u h + simp only [energyForm_sub_left,energyForm_sub_right] + linarith + +theorem harmonic_replacement_difference_bound (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + (Ω : Set X) (u h : SobolevSpace μ hQ) + (hb : h-u∈SobolevSpace.dirichlet μ hQ Ω) (hh : IsSobolevHarmonicOn μ hQ Ω h) + {P : ℝ} (hP : 0≤P) + (hp : ∀ v : SobolevSpace.dirichlet μ hQ Ω, + ‖SobolevSpace.toLp μ hQ v.val‖^2≤P*energyForm μ hQ v.val v.val) : + ‖SobolevSpace.toLp μ hQ (h-u)‖^2≤P*energyForm μ hQ u u := by + have he : 0≤energyForm μ hQ h h := by + rw [energyForm_self] + exact mul_nonneg (by norm_num) (SobolevSpace.energy_nonneg μ hQ h) + have hv := hp ⟨h-u,hb⟩ + change ‖SobolevSpace.toLp μ hQ (h-u)‖^2≤P*energyForm μ hQ (h-u) (h-u) at hv + rw [harmonic_replacement_energy_identity μ hQ Ω u h hb hh] at hv + exact hv.trans (mul_le_mul_of_nonneg_left (sub_le_self _ he) hP) + +theorem harmonic_replacement_l2_bound (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + (Ω : Set X) (u h : SobolevSpace μ hQ) + (hb : h-u∈SobolevSpace.dirichlet μ hQ Ω) (hh : IsSobolevHarmonicOn μ hQ Ω h) + {P : ℝ} (hP : 0≤P) + (hp : ∀ v : SobolevSpace.dirichlet μ hQ Ω, + ‖SobolevSpace.toLp μ hQ v.val‖^2≤P*energyForm μ hQ v.val v.val) : + ‖SobolevSpace.toLp μ hQ h‖^2≤2*‖SobolevSpace.toLp μ hQ u‖^2+2*P*energyForm μ hQ u u := by + have hd := harmonic_replacement_difference_bound μ hQ Ω u h hb hh hP hp + have ht : ‖SobolevSpace.toLp μ hQ h‖≤ + ‖SobolevSpace.toLp μ hQ u‖+‖SobolevSpace.toLp μ hQ (h-u)‖ := by + convert norm_add_le (SobolevSpace.toLp μ hQ u) (SobolevSpace.toLp μ hQ (h-u)) using 1 + rw [← map_add,add_sub_cancel] + nlinarith [norm_nonneg (SobolevSpace.toLp μ hQ h),norm_nonneg (SobolevSpace.toLp μ hQ u), + norm_nonneg (SobolevSpace.toLp μ hQ (h-u)), + sq_nonneg (‖SobolevSpace.toLp μ hQ u‖-‖SobolevSpace.toLp μ hQ (h-u)‖)] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/HarmonicScaledEnergy.lean b/lean/OAI/Geometry/RCD/Sobolev/HarmonicScaledEnergy.lean new file mode 100644 index 0000000000000000000000000000000000000000..14baa336f26f519904bcfab6a200350e415ffb7e --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/HarmonicScaledEnergy.lean @@ -0,0 +1,51 @@ +import OAI.Geometry.RCD.Sobolev.HarmonicGradientConstruction + +namespace OAI + +/-! # Uniform bounds for the actual rescaled harmonic energy density -/ + +open Set Filter MeasureTheory Metric +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem NoncollapsedRCD.harmonic_scaled_energy_bound {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) [(hausdorff n X).Regular] (hn : 2≤n) + {S R : ℝ} (hS : 0 ring + have hb := hbound (p k) (S * r k) (mul_pos hS (hr k)) hcurv' (w k) (hw k) (hnorm k) + have hradius : ρ / S * (S * r k) = ρ * r k := by field_simp + rw [hradius] at hb + have hh := div_le_div_of_nonneg_right hb (sq_nonneg S) + convert hh using 1 + field_simp + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/HarmonicSquareTestPositive.lean b/lean/OAI/Geometry/RCD/Sobolev/HarmonicSquareTestPositive.lean new file mode 100644 index 0000000000000000000000000000000000000000..cbffe2f4c91e0901ff955402e3867b002b692d14 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/HarmonicSquareTestPositive.lean @@ -0,0 +1,28 @@ +import OAI.Geometry.RCD.Harmonic.EuclideanHarmonicSquare + +namespace OAI + +/-! # Nonnegative compact tests against a squared harmonic function -/ + +open Set MeasureTheory Laplacian +open scoped ContDiff +noncomputable section +namespace RegularPointCoordinates + +theorem harmonic_square_test_nonneg {n : ℕ} {f ψ : Euclidean n → ℝ} + (hf : ContDiff ℝ 2 f) (hψ : ContDiff ℝ 2 ψ) (hs : HasCompactSupport ψ) + (hψ0 : ∀ x, 0≤ψ x) (hh : ∀ x∈tsupport ψ, (Δ f) x=0) : + 0≤∫ x, (f x)^2*(Δ ψ) x := by + rw [integral_laplacian_commute (hf.pow 2) hψ hs] + apply integral_nonneg + intro x + change 0≤(Δ (fun z => (f z)^2)) x*ψ x + by_cases hx : ψ x=0 + · rw [hx,mul_zero] + · exact mul_nonneg (harmonic_square_laplacian_nonneg hf x (hh x (subset_tsupport ψ hx))) (hψ0 x) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/HarmonicValueTestCompactness.lean b/lean/OAI/Geometry/RCD/Sobolev/HarmonicValueTestCompactness.lean new file mode 100644 index 0000000000000000000000000000000000000000..2787517997b92f01c2e86e371ea0766507012783 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/HarmonicValueTestCompactness.lean @@ -0,0 +1,75 @@ +import OAI.Geometry.RCD.Harmonic.HarmonicOpenBallL2Compactness +import OAI.Geometry.RCD.Metric.LocalizedMeasuredValueLimit +import OAI.Geometry.RCD.Sobolev.InteriorSmoothTestBounds + +namespace OAI + +/-! # Harmonic value limits against interior smooth tests + +Normalized harmonic values converge against all compact interior smooth tests. +-/ + +open Set Metric Filter MeasureTheory +open scoped NNReal ENNReal Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem NoncollapsedRCD.open_ball_harmonic_test_compactness {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) [(hausdorff n X).Regular] (hn : 2≤n) + {S : ℝ} (hS : 0 ((hausdorff n X).real (ball (p (a k)) (S*r (a k))))⁻¹* + ∫ x in ball (p (a k)) (S*r (a k)), ψ (v (a k) x)* + SobolevSpace.toLp (hausdorff n X) hX.quadratic (u (a k)) x ∂hausdorff n X) + atTop (𝓝 ((volume.real (ball (0:Euclidean n) S))⁻¹* + ∫ z in ball 0 S, ψ z*g z)) := by + obtain ⟨g,a,ha,hgc,hgL,hg0,hconv⟩ := harmonic_open_ball_value_compactness hX hn + hX.harmonicMeanValueInput (hX.harmonicGradientInput hn (p 0)) hS p r ε hr hcurv + hε hε1 hεlim v (fun k => (hv k).metric) u hu hnorm + refine ⟨g,a,ha,measurable_zero_extension_ball hgc hg0,hgc,hgL,hconv,?_⟩ + intro ψ hψ + obtain ⟨ρ,hρ,hρS,M,B,hψL,hψB,hψ0⟩ := hψ.metric_bounds hS + let τ := (ρ+S)/2 + have hρτ : ρ<τ := by dsimp only [τ]; linarith + have hτS : τ hr (a k)) + (hεlim.comp ha.tendsto_atTop) (fun k => hv (a k)) + (fun k => (hX.finiteOnBounded _ isBounded_ball).ne) + (fun k => ENNReal.toReal_pos (hX.fullSupport _ _ (mul_pos hS (hr (a k)))).ne' + (hX.finiteOnBounded _ isBounded_ball).ne) + (fun k => SobolevSpace.toLp (hausdorff n X) hX.quadratic (u (a k))) g ψ + ?_ hg hψL hψB hψ0 ?_ + · intro k + change IntegrableOn (SobolevSpace.toLp (hausdorff n X) hX.quadratic (u (a k))) + (ball (p (a k)) (S*r (a k))) (hausdorff n X) + let : IsFiniteMeasure ((hausdorff n X).restrict (ball (p (a k)) (S*r (a k)))) := + ⟨by simpa only [Measure.restrict_apply_univ] using + (hX.finiteOnBounded (ball (p (a k)) (S*r (a k))) isBounded_ball)⟩ + exact MemLp.integrable (by norm_num) + ((Lp.memLp (SobolevSpace.toLp (hausdorff n X) hX.quadratic (u (a k)))).mono_measure + Measure.restrict_le_self) + · intro η hη + exact (hconv τ hτ hτS η hη).mono fun k hk => hk.mono fun x hx => hx.le + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/HarmonicWeightedEnergyLimit.lean b/lean/OAI/Geometry/RCD/Sobolev/HarmonicWeightedEnergyLimit.lean new file mode 100644 index 0000000000000000000000000000000000000000..140f49e0d3c15fc2bffed74586b0254079731845 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/HarmonicWeightedEnergyLimit.lean @@ -0,0 +1,121 @@ +import OAI.Geometry.RCD.Harmonic.BoundedHarmonicStrongRecovery +import OAI.Geometry.RCD.Sobolev.BoundedHarmonicScaledEnergy +import OAI.Geometry.RCD.Sobolev.CutoffEnergyCoreConvergence +import OAI.Geometry.RCD.Sobolev.LocalScaledGammaL1 +import OAI.Geometry.RCD.Sobolev.WeightedEnergyDifference +import OAI.Geometry.RCD.Sobolev.PointedTestLocalization + +namespace OAI + +/-! # Compact test energy limits for the original harmonic functions -/ + +open Set Metric Filter MeasureTheory +open scoped Topology NNReal BoundedContinuousFunction ContDiff +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem NoncollapsedRCD.harmonic_weighted_energy_limit {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) [(hausdorff n X).Regular] (hn : 2 ≤ n) + (p : ℕ → X) (r ε : ℕ → ℝ) (V : ℕ → X → Euclidean n) + (hr : ∀ k, 0 < r k) (hcurv : ∀ k, -1 ≤ K*r k^2) + (hε : ∀ k, 0 ≤ ε k) (hε1 : ∀ k, ε k ≤ 1) (hεlim : Tendsto ε atTop (𝓝 0)) + (hV : ∀ k, IsMeasuredEuclideanApproximation (hausdorff n X) n (p k) (r k) 5 (ε k) (V k)) + (w : ℕ → SobolevSpace (hausdorff n X) hX.quadratic) + (hw : ∀ k, IsSobolevHarmonicOn (hausdorff n X) hX.quadratic (ball (p k) (5*r k)) (w k)) + {M : ℝ} (hM : 0 < M) (hnorm : ∀ k, harmonicTargetNorm hX (p k) (5*r k) (w k) ≤ M) + (g : Euclidean n → ℝ) (hg : ContDiffOn ℝ ∞ g (ball 0 5)) + (hgL : ∀ W < 5, ∃ L : ℝ≥0, LipschitzOnWith L g (closedBall 0 W)) + (hconv : ∀ W : ℝ, 0 < W → W < 5 → ∀ δ : ℝ, 0 < δ → ∀ᶠ k in atTop, + ∀ᵐ x ∂(hausdorff n X).restrict (ball (p k) (W*r k)), + |SobolevSpace.toLp (hausdorff n X) hX.quadratic (w k) x-g (V k x)| ≤ δ) + (φ : Euclidean n →ᵇ ℝ) (hφ : ∀ z, 0 ≤ φ z) (hs : tsupport φ ⊆ ball 0 3) : + Tendsto (fun k => r k^2*((hausdorff n X).real (ball (p k) (5*r k)))⁻¹* + ∫ x in ball (p k) (5*r k), φ (V k x)*localGamma (hausdorff n X) hX.quadratic (w k) (w k) x + ∂hausdorff n X) atTop + (𝓝 ((volume.real (ball (0 : Euclidean n) 5))⁻¹* + ∫ z in ball 0 5, φ z*‖fderiv ℝ g z‖^2)) := by + obtain ⟨F,hF,_,hDF,N,q,_,_,⟨Q,hQ,hQbound⟩,hqe,hstrong⟩ := + hX.bounded_harmonic_strong_recovery hn (a:=4) (b:=9/2) (R:=19/4) (T:=39/8) + (by norm_num) (by norm_num) (by norm_num) (by norm_num) (by norm_num) (by norm_num) + hM p r ε V hr hcurv hε hε1 hεlim hV w hw hnorm g hg hgL hconv + let μ := hausdorff n X + let Ω := fun k => ball (p (k+N)) (4*r (k+N)) + let c := fun k => (μ.real (ball (p (k+N)) (5*r (k+N))))⁻¹ + have hmass (k : ℕ) : 0 < μ.real (ball (p (k+N)) (5*r (k+N))) := + ENNReal.toReal_pos (hX.fullSupport _ _ (mul_pos (by norm_num) (hr (k+N)))).ne' + (hX.finiteOnBounded _ isBounded_ball).ne + have hc (k : ℕ) : 0 ≤ c k := inv_nonneg.mpr (hmass k).le + have hcm (k : ℕ) : c k*μ.real (Ω k) ≤ 1 := by + have hh : μ.real (Ω k) ≤ μ.real (ball (p (k+N)) (5*r (k+N))) := + ENNReal.toReal_mono (hX.finiteOnBounded _ isBounded_ball).ne + (measure_mono (ball_subset_ball (by linarith [hr (k+N)]))) + exact (mul_le_mul_of_nonneg_left hh (hc k)).trans_eq (inv_mul_cancel₀ (hmass k).ne') + have hcore := cutoff_energy_core_convergence μ hX.quadratic (by norm_num : (4:ℝ)<9/2) + (by norm_num : (9/2:ℝ)<19/4) (fun k => p (k+N)) (fun k => r (k+N)) + (fun k => r (k+N)^2*c k) (fun k => hr (k+N)) (fun k => mul_nonneg (sq_nonneg _) (hc k)) + (fun k => w (k+N)-(q k).val) hstrong + obtain ⟨B,hB,hWbound⟩ := hX.bounded_harmonic_scaled_energy_bound hn (S:=5) (R:=4) + (by norm_num) (by norm_num) (by norm_num) hM p r hr hcurv w hw hnorm + have hclose := local_scaled_gamma_l1_tendsto μ hX.quadratic Ω + (fun k => (hX.finiteOnBounded _ isBounded_ball).ne) (fun k => r (k+N)) c + (fun k => hr (k+N)) hc hcm (Real.sqrt_nonneg B) hQ + (fun k => w (k+N)) (fun k => (q k).val) + (Eventually.of_forall (fun k => by + simpa only [Real.sq_sqrt hB] using + ae_restrict_of_ae_restrict_of_subset ball_subset_closedBall (hWbound (k+N)))) + (hQbound.mono (fun _ h => ae_restrict_of_ae h)) + (by convert hcore using 1; funext k; ring) + let e := fun k x => r (k+N)^2*localGamma μ hX.quadratic (w (k+N)) (w (k+N)) x + let e' := fun k x => r (k+N)^2*localGamma μ hX.quadratic (q k).val (q k).val x + let θ := fun k x => φ (V (k+N) x) + have hdiff := weighted_integral_difference_tendsto μ Ω c hc e e' θ + (fun k => ((localGamma_memL1 μ hX.quadratic (w (k+N)) (w (k+N))).const_mul _).integrableOn) + (fun k => ((localGamma_memL1 μ hX.quadratic (q k).val (q k).val).const_mul _).integrableOn) + (fun k => (φ.continuous.measurable.comp (hV (k+N)).measurable).aestronglyMeasurable.restrict) + (fun k => Eventually.of_forall (fun x => by + simpa only [Real.norm_eq_abs] using φ.norm_coe_le_norm (V (k+N) x))) + (by simpa only [e,e',mul_sub] using hclose) + have hloc : ∀ᶠ k in atTop, ∀ f : X → ℝ, + (∫ x in Ω k, θ k x*f x ∂μ) = + ∫ x in ball (p (k+N)) (5*r (k+N)), θ k x*f x ∂μ := by + filter_upwards [(hεlim.comp (tendsto_add_atTop_nat N)).eventually + (eventually_lt_nhds (by norm_num : (0:ℝ)<1/2))] with k hk + intro f + apply pointed_test_integral_localization μ (hr (k+N)) (by norm_num : (0:ℝ)≤5) + (by dsimp only [Function.comp_def] at hk; linarith : (3:ℝ)+2*ε (k+N)≤4) + (by norm_num : (4:ℝ)≤5) (hV (k+N)).metric φ ((subset_tsupport φ).trans hs) f measurableSet_ball + have hdiff' : Tendsto (fun k => c k*(∫ x in ball (p (k+N)) (5*r (k+N)), θ k x*e k x ∂μ)- + c k*(∫ x in ball (p (k+N)) (5*r (k+N)), θ k x*e' k x ∂μ)) atTop (𝓝 0) := + hdiff.congr' (hloc.mono (fun k hk => by rw [hk (e k),hk (e' k)])) + have hφS : tsupport φ ⊆ ball (0 : Euclidean n) 5 := + hs.trans (ball_subset_ball (by norm_num)) + have hqenergy := hqe φ hφ hφS + have hDFint : (∫ z in ball (0 : Euclidean n) 5, φ z*‖fderiv ℝ F z‖^2) = + ∫ z in ball (0 : Euclidean n) 5, φ z*‖fderiv ℝ g z‖^2 := by + apply setIntegral_congr_fun measurableSet_ball + intro z _ + dsimp only + by_cases hz : φ z=0 + · simp only [hz,zero_mul] + · rw [hDF ((ball_subset_ball (by norm_num : (3:ℝ)≤39/8)) (hs (subset_tsupport φ hz)))] + rw [hDFint] at hqenergy + have heq (k : ℕ) (u : SobolevSpace μ hX.quadratic) : + c k*(∫ x in ball (p (k+N)) (5*r (k+N)), θ k x*(r (k+N)^2*localGamma μ hX.quadratic u u x) ∂μ) = + r (k+N)^2*c k*(∫ x in ball (p (k+N)) (5*r (k+N)), θ k x*localGamma μ hX.quadratic u u x ∂μ) := by + simp_rw [mul_left_comm (θ k _) (r (k+N)^2)] + rw [integral_const_mul] + ring + simp only [e,e',heq] at hdiff' + change Tendsto (fun k => + r (k+N)^2*c k*(∫ x in ball (p (k+N)) (5*r (k+N)), + θ k x*localGamma μ hX.quadratic (q k).val (q k).val x ∂μ)) atTop _ at hqenergy + have htotal := hdiff'.add hqenergy + simp only [zero_add,sub_add_cancel] at htotal + exact (tendsto_add_atTop_iff_nat N).mp htotal + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/HessianActionChain.lean b/lean/OAI/Geometry/RCD/Sobolev/HessianActionChain.lean new file mode 100644 index 0000000000000000000000000000000000000000..f54bffce3701c34a78f6f6c1d0f7aba1e68d8196 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/HessianActionChain.lean @@ -0,0 +1,115 @@ +import OAI.Geometry.RCD.Sobolev.HessianActionProduct +import OAI.Geometry.RCD.Heat.LocalLogarithmicLaplacian + +namespace OAI + +/-! # The Hessian chain rule in a gradient direction + +The second scalar derivative cancels in the three-term action. Only the +two existing bounded mixed Gram representatives are needed. +-/ + +open Set Filter MeasureTheory +open scoped NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) (Q : QuadraticCheegerEnergy μ) + +theorem localHessianAction_comp_direction {Ω : Set X} + (f a u fa fu au : SobolevSpace μ Q) + {φ ψ χ : ℝ → ℝ} {C D : ℝ≥0} + (hφ : LipschitzWith C φ) (hψ : LipschitzWith D ψ) + (hφ0 : φ 0=0) (hψ0 : ψ 0=0) (hχ : Continuous χ) + (hdφ : ∀ z, HasDerivAt φ (ψ z) z) (hdψ : ∀ z, HasDerivAt ψ (χ z) z) + (B E M N : ℝ≥0) (hB : ∀ z, |ψ z| ≤ B) (hE : ∀ z, |χ z| ≤ E) + (hfuB : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ Q fu x| ≤ M) + (hauB : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ Q au x| ≤ N) + (hfu : SobolevSpace.toLp μ Q fu =ᵐ[μ.restrict Ω] localGamma μ Q f u) + (hau : SobolevSpace.toLp μ Q au =ᵐ[μ.restrict Ω] localGamma μ Q a u) : + let U := SobolevSpace.comp μ Q hφ hφ0 u + let P := SobolevSpace.comp μ Q hψ hψ0 u + localHessianAction μ Q f a U fa + (SobolevSpace.product μ Q P fu B M) (SobolevSpace.product μ Q P au B N) + =ᵐ[μ.restrict Ω] fun x => ψ (SobolevSpace.toLp μ Q u x)* + localHessianAction μ Q f a u fa fu au x := by + intro U P + have hP : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ Q P x| ≤ B := by + filter_upwards [SobolevSpace.comp_coe μ Q hψ hψ0 u] with x hx + exact hx ▸ hB _ + filter_upwards [ + ae_restrict_of_ae (localGamma_product_right μ Q a P fu B M hP hfuB), + ae_restrict_of_ae (localGamma_product_right μ Q f P au B N hP hauB), + ae_restrict_of_ae (localGamma_comp_C1 μ Q u fa hφ hφ0 hψ.continuous hdφ B hB), + ae_restrict_of_ae (localGamma_comp_C1_right μ Q a u hψ hψ0 hχ hdψ E hE), + ae_restrict_of_ae (localGamma_comp_C1_right μ Q f u hψ hψ0 hχ hdψ E hE), + ae_restrict_of_ae (SobolevSpace.comp_coe μ Q hψ hψ0 u),hfu,hau] + with x h₁ h₂ h₃ h₄ h₅ h₆ h₇ h₈ + change SobolevSpace.toLp μ Q P x=ψ (SobolevSpace.toLp μ Q u x) at h₆ + change localGamma μ Q U fa x=_ at h₃ + change localGamma μ Q a P x=_ at h₄ + change localGamma μ Q f P x=_ at h₅ + dsimp only [localHessianAction] + rw [h₁,h₂,h₃,h₄,h₅,h₆,h₇,h₈] + ring + +theorem exists_local_hessian_log_direction {Ω : Set X} + (f a u fa fu au : SobolevSpace μ Q) (M N : ℝ≥0) + (hfuB : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ Q fu x| ≤ M) + (hauB : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ Q au x| ≤ N) + (hfu : SobolevSpace.toLp μ Q fu =ᵐ[μ.restrict Ω] localGamma μ Q f u) + (hau : SobolevSpace.toLp μ Q au =ᵐ[μ.restrict Ω] localGamma μ Q a u) + {c d : ℝ} (hc : 0 < c) (hcd : c ≤ d) + (hu : ∀ᵐ x ∂μ.restrict Ω, SobolevSpace.toLp μ Q u x ∈ Icc c d) : + ∃ U fU aU : SobolevSpace μ Q, + (SobolevSpace.toLp μ Q U =ᵐ[μ.restrict Ω] + fun x => Real.log (SobolevSpace.toLp μ Q u x)) ∧ + (SobolevSpace.toLp μ Q fU =ᵐ[μ.restrict Ω] localGamma μ Q f U) ∧ + (SobolevSpace.toLp μ Q aU =ᵐ[μ.restrict Ω] localGamma μ Q a U) ∧ + (∃ A : ℝ≥0, ∀ᵐ x ∂μ, |SobolevSpace.toLp μ Q fU x| ≤ A) ∧ + (∃ A : ℝ≥0, ∀ᵐ x ∂μ, |SobolevSpace.toLp μ Q aU x| ≤ A) ∧ + localHessianAction μ Q f a U fa fU aU =ᵐ[μ.restrict Ω] fun x => + localHessianAction μ Q f a u fa fu au x/SobolevSpace.toLp μ Q u x := by + obtain ⟨φ,ψ,χ,C,D,B,E,hφ,hψ,hχ,hφ0,hψ0,hdφ,hdψ,hB,hE,he⟩ := + exists_local_smooth_log hc hcd + let U := SobolevSpace.comp μ Q hφ hφ0 u + let P := SobolevSpace.comp μ Q hψ hψ0 u + let fU := SobolevSpace.product μ Q P fu B M + let aU := SobolevSpace.product μ Q P au B N + have hP : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ Q P x| ≤ B := by + filter_upwards [SobolevSpace.comp_coe μ Q hψ hψ0 u] with x hx + exact hx ▸ hB _ + have hfU := SobolevSpace.product_coe μ Q P fu B M hP hfuB + have haU := SobolevSpace.product_coe μ Q P au B N hP hauB + refine ⟨U,fU,aU,?_,?_,?_,?_,?_,?_⟩ + · filter_upwards [ae_restrict_of_ae (SobolevSpace.comp_coe μ Q hφ hφ0 u),hu] + with x hx hu + exact hx.trans (he _ hu).1 + · filter_upwards [ae_restrict_of_ae hfU,hfu, + ae_restrict_of_ae (SobolevSpace.comp_coe μ Q hψ hψ0 u), + ae_restrict_of_ae (localGamma_comp_C1_right μ Q f u hφ hφ0 hψ.continuous hdφ B hB)] + with x hx hfx hpx hcx + exact hx.trans (by rw [hfx,hpx]; exact hcx.symm) + · filter_upwards [ae_restrict_of_ae haU,hau, + ae_restrict_of_ae (SobolevSpace.comp_coe μ Q hψ hψ0 u), + ae_restrict_of_ae (localGamma_comp_C1_right μ Q a u hφ hφ0 hψ.continuous hdφ B hB)] + with x hx hax hpx hcx + exact hx.trans (by rw [hax,hpx]; exact hcx.symm) + · refine ⟨B*M,?_⟩ + filter_upwards [hfU,hP,hfuB] with x hx hp hf + rw [hx,abs_mul] + exact mul_le_mul hp hf (abs_nonneg _) B.coe_nonneg + · refine ⟨B*N,?_⟩ + filter_upwards [haU,hP,hauB] with x hx hp hf + rw [hx,abs_mul] + exact mul_le_mul hp hf (abs_nonneg _) B.coe_nonneg + · filter_upwards [localHessianAction_comp_direction μ Q f a u fa fu au + hφ hψ hφ0 hψ0 hχ hdφ hdψ B E M N hB hE hfuB hauB hfu hau,hu] + with x hx hu + rw [hx,(he _ hu).2.1,div_eq_mul_inv,mul_comm] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/HessianActionCoreIntegral.lean b/lean/OAI/Geometry/RCD/Sobolev/HessianActionCoreIntegral.lean new file mode 100644 index 0000000000000000000000000000000000000000..626bf9f5ac484f9e8f79f0770ab0840f9c307e1b --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/HessianActionCoreIntegral.lean @@ -0,0 +1,120 @@ +import OAI.Geometry.RCD.Sobolev.HessianActionIntegral +import OAI.Geometry.RCD.Metric.IntegralSquareProduct +import OAI.Geometry.RCD.Metric.ShiftedRadonBounds + +namespace OAI + +/-! # From regular-core Hessian actions to all Dirichlet tests -/ + +open Set Filter MeasureTheory + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +/-- The action integral on the local domain is the actual continuous +Hessian functional, because all three test factors vanish off the domain. -/ +theorem LocalHessianPairing.integral_action_core_on {Ω : Set X} (hΩ : MeasurableSet Ω) + {f a : SobolevSpace μ hQ} (G : LocalHessianPairing μ hQ Ω f a) (φ : G.core) : + (∫ x in Ω, localHessianAction μ hQ f a φ.val.val G.mixed + (G.gammaF φ).val (G.gammaA φ).val x ∂μ) = G.hessian φ.val := by + have hi : Integrable (fun x => localGamma μ hQ a (G.gammaF φ).val x+ + localGamma μ hQ φ.val.val G.mixed x) (μ.restrict Ω) := + ((localGamma_memL1 μ hQ a (G.gammaF φ).val).add + (localGamma_memL1 μ hQ φ.val.val G.mixed)).integrableOn + have hc : (∫ x in Ω, localGamma μ hQ φ.val.val G.mixed x ∂μ) = + energyForm μ hQ φ.val.val G.mixed := by + rw [integral_congr_ae (ae_restrict_of_ae (localGamma_comm μ hQ φ.val.val G.mixed)), + integral_localGamma_dirichlet μ hQ Ω hΩ G.mixed φ.val,energyForm_comm] + unfold localHessianAction + rw [integral_div,integral_sub hi (localGamma_memL1 μ hQ f (G.gammaA φ).val).integrableOn, + integral_add (localGamma_memL1 μ hQ a (G.gammaF φ).val).integrableOn + (localGamma_memL1 μ hQ φ.val.val G.mixed).integrableOn, + integral_localGamma_dirichlet μ hQ Ω hΩ a (G.gammaF φ),hc, + integral_localGamma_dirichlet μ hQ Ω hΩ f (G.gammaA φ)] + have hk := G.koszul φ + linarith only [hk] + +omit [ProperSpace X] in +/-- An estimate on the genuine dense regular core extends to every +Dirichlet test by continuity of the Hessian and Dirichlet forms. -/ +theorem LocalHessianPairing.bound_of_core {Ω : Set X} + {f a : SobolevSpace μ hQ} (G : LocalHessianPairing μ hQ Ω f a) (b D : ℝ) + (hbound : ∀ φ : G.core, + (G.hessian φ.val-b*energyForm μ hQ a φ.val.val)^2≤D*energyForm μ hQ φ.val.val φ.val.val) : + ∀ φ : SobolevSpace.dirichlet μ hQ Ω, + (G.hessian φ-b*energyForm μ hQ a φ.val)^2≤D*energyForm μ hQ φ.val φ.val := by + let A : SobolevSpace.dirichlet μ hQ Ω →L[ℝ] ℝ := + G.hessian-b • ((sobolevEnergyForm μ hQ a).comp (SobolevSpace.dirichlet μ hQ Ω).subtypeL) + have hJ : Continuous (fun φ : SobolevSpace.dirichlet μ hQ Ω => φ.val) := + (SobolevSpace.dirichlet μ hQ Ω).subtypeL.continuous + have hP : Continuous (fun φ : SobolevSpace.dirichlet μ hQ Ω => SobolevSpace.toLp μ hQ φ.val) := + (SobolevSpace.toLpCLM μ hQ).continuous.comp hJ + have hE : Continuous (fun φ : SobolevSpace.dirichlet μ hQ Ω => energyForm μ hQ φ.val φ.val) := by + unfold energyForm + exact (hJ.inner hJ).sub (hP.inner hP) + have hc : IsClosed {φ : SobolevSpace.dirichlet μ hQ Ω | (A φ)^2≤D*energyForm μ hQ φ.val φ.val} := + isClosed_le (A.continuous.pow 2) (continuous_const.mul hE) + have hs : (G.core : Set (SobolevSpace.dirichlet μ hQ Ω)) ⊆ + {φ | (A φ)^2≤D*energyForm μ hQ φ.val φ.val} := fun φ hφ => hbound ⟨φ,hφ⟩ + have he := closure_minimal hs hc + rw [G.core_dense.closure_eq] at he + exact fun φ => he (mem_univ φ) + +/-- The shifted pointwise action bound gives the sharp integrated bound +with one direction cap and the full shifted Bochner mass. -/ +theorem LocalHessianPairing.bound_of_core_action {Ω : Set X} (hΩ : MeasurableSet Ω) + [IsFiniteMeasure (μ.restrict Ω)] {f a : SobolevSpace μ hQ} + (G : LocalHessianPairing μ hQ Ω f a) (σ : Measure X) [IsFiniteMeasure σ] + (b c C : ℝ) (hC : 0≤C) + (hden : ∀ᵐ x ∂μ.restrict Ω, c≤(σ.rnDeriv μ x).toReal) + (hbound : ∀ φ : G.core, ∀ᵐ x ∂μ.restrict Ω, + (localHessianAction μ hQ f a φ.val.val G.mixed (G.gammaF φ).val (G.gammaA φ).val x- + b*localGamma μ hQ a φ.val.val x)^2 ≤ + (C*((σ.rnDeriv μ x).toReal-c))*localGamma μ hQ φ.val.val φ.val.val x) : + ∀ φ : SobolevSpace.dirichlet μ hQ Ω, + (G.hessian φ-b*energyForm μ hQ a φ.val)^2 ≤ + (C*(σ.real Ω-c*μ.real Ω))*energyForm μ hQ φ.val φ.val := by + apply G.bound_of_core μ hQ b (C*(σ.real Ω-c*μ.real Ω)) + intro φ + let H := fun x => localHessianAction μ hQ f a φ.val.val G.mixed + (G.gammaF φ).val (G.gammaA φ).val x-b*localGamma μ hQ a φ.val.val x + have hd : Integrable (fun x => (σ.rnDeriv μ x).toReal) (μ.restrict Ω) := + Measure.integrableOn_toReal_rnDeriv (μ := σ) (ν := μ) (measure_ne_top σ Ω) + have hF := (hd.sub (integrable_const c)).const_mul C + have hG := (localGamma_memL1 μ hQ φ.val.val φ.val.val).integrableOn (s := Ω) + have hH : Integrable H (μ.restrict Ω) := + ((localHessianAction_integrable μ hQ _ _ _ _ _ _).sub + ((localGamma_memL1 μ hQ a φ.val.val).const_mul b)).integrableOn + have hF0 : ∀ᵐ x ∂μ.restrict Ω, 0≤C*((σ.rnDeriv μ x).toReal-c) := + hden.mono fun x hx => mul_nonneg hC (sub_nonneg.mpr hx) + have hG0 : ∀ᵐ x ∂μ.restrict Ω, 0≤localGamma μ hQ φ.val.val φ.val.val x := by + filter_upwards [ae_restrict_of_ae (localGamma_self μ hQ φ.val.val)] with x hx + rw [hx] + positivity + have hh := integral_sq_le_of_sq_le_product (μ.restrict Ω) hF hG hH hF0 hG0 (hbound φ) + have hHi : (∫ x in Ω, H x ∂μ) = G.hessian φ.val-b*energyForm μ hQ a φ.val.val := by + rw [integral_sub (localHessianAction_integrable μ hQ _ _ _ _ _ _).integrableOn + ((localGamma_memL1 μ hQ a φ.val.val).const_mul b).integrableOn, + integral_const_mul,G.integral_action_core_on μ hQ hΩ φ, + integral_localGamma_dirichlet μ hQ Ω hΩ a φ.val] + have hGi := integral_localGamma_dirichlet μ hQ Ω hΩ φ.val.val φ.val + have hFi : (∫ x in Ω, C*((σ.rnDeriv μ x).toReal-c) ∂μ) ≤ C*(σ.real Ω-c*μ.real Ω) := by + rw [integral_const_mul,integral_sub hd (integrable_const c)] + simp only [integral_const,smul_eq_mul,measureReal_restrict_apply_univ] + rw [mul_comm (μ.real Ω) c] + exact mul_le_mul_of_nonneg_left + (sub_le_sub_right (Measure.setIntegral_toReal_rnDeriv_le (μ := σ) (ν := μ) (measure_ne_top σ Ω)) _) hC + rw [hHi,hGi] at hh + have he0 : 0≤energyForm μ hQ φ.val.val φ.val.val := by + rw [energyForm_self] + exact mul_nonneg (by norm_num) (SobolevSpace.energy_nonneg μ hQ _) + exact hh.trans (mul_le_mul_of_nonneg_right hFi he0) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/HessianActionInput.lean b/lean/OAI/Geometry/RCD/Sobolev/HessianActionInput.lean new file mode 100644 index 0000000000000000000000000000000000000000..dae025604ac670f214e021a334ce3590ada9da46 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/HessianActionInput.lean @@ -0,0 +1,68 @@ +import OAI.Geometry.RCD.Sobolev.LocalHessianAction +import OAI.Geometry.RCD.Sobolev.PoissonHessianInput + +namespace OAI + +/-! # finite-span Hessian action bounds + +Gigli, arXiv:1407.0809v1, equation (3.1.9), p. 99, and Theorem 3.3.8, +equations (3.3.18)--(3.3.19), p. 110, give the three-term Hessian action +and its Hilbert--Schmidt bound. Han, JGA 28 (2018), Proposition 3.2, +p. 1302, and Theorem 3.3, p. 1305, give the top-dimensional trace identity +and the strengthened Bochner inequality on every local-dimensional stratum. +Completing the trace-defect square gives the shifted-square bound also +when the local dimension is less than n. Tensor Cauchy--Schwarz then gives +the displayed product of the two direction bounds. + +This input retains only the n+2-dimensional local Poisson span. It is +separate from the integrated Hessian input, because the commutator needs +actions in arbitrary gradient directions, not only zero-boundary tests. +-/ + +open Set Metric MeasureTheory +open scoped NNReal ENNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +/-- The local Hessian action specialization needed for the +two-center commutator, using the same full Bochner measure at every radius. -/ +def LocalPoissonHessianActionInput {K : ℝ} {n : ℕ} (hX : NoncollapsedRCD K n X) : Prop := + ∀ κ : ℝ, 0 ≤ κ → -κ ≤ K → ∀ (p : X) (r : ℝ), 0 < r → + ∀ (L : ℝ≥0) + (U : Euclidean (n + 2) →L[ℝ] SobolevSpace (hausdorff n X) hX.quadratic) + (ell : Euclidean (n + 2) →ₗ[ℝ] ℝ), + (∀ v, IsConstantLaplacianOn (hausdorff n X) hX.quadratic + (ball p (8 * r)) (U v) (ell v)) → + (∀ v, ∀ᵐ x ∂(hausdorff n X).restrict (ball p (8 * r)), + localGamma (hausdorff n X) hX.quadratic (U v) (U v) x ≤ + (L : ℝ) ^ 2 * ‖v‖ ^ 2) → + ∃ M : PositiveBilinearMeasure X (Euclidean (n + 2)), + (∀ v, Nonempty (LocalHarmonicEnergy (hausdorff n X) hX.quadratic U M κ p r L v)) ∧ + ShiftedBochnerLowerBound M ((hausdorff n X).restrict (ball p (2 * r))) ell n ∧ + ∀ t : ℝ, 0 < t → t ≤ 2 * r → + ∃ G : ∀ v w, LocalHessianPairing (hausdorff n X) hX.quadratic (ball p t) (U v) (U w), + ∀ v w z (b : ℝ), + let H := localHessianAction (hausdorff n X) hX.quadratic (U v) (U w) (U z) + (G v w).mixed (G v z).mixed (G w z).mixed + MemLp (fun x => H x - b * localGamma (hausdorff n X) hX.quadratic (U w) (U z) x) + 2 ((hausdorff n X).restrict (ball p t)) ∧ + ∀ Cw Cz : ℝ, 0 ≤ Cw → 0 ≤ Cz → + (∀ᵐ x ∂(hausdorff n X).restrict (ball p t), + localGamma (hausdorff n X) hX.quadratic (U w) (U w) x ≤ Cw ^ 2) → + (∀ᵐ x ∂(hausdorff n X).restrict (ball p t), + localGamma (hausdorff n X) hX.quadratic (U z) (U z) x ≤ Cz ^ 2) → + (∫ x in ball p t, + (H x - b * localGamma (hausdorff n X) hX.quadratic (U w) (U z) x) ^ 2 + ∂hausdorff n X) ≤ + (Cw ^ 2 * Cz ^ 2) * + ((M.measure v).real (ball p t) - + (2 * b * ell v - (n : ℝ) * b ^ 2) * (hausdorff n X).real (ball p t)) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/HessianActionIntegral.lean b/lean/OAI/Geometry/RCD/Sobolev/HessianActionIntegral.lean new file mode 100644 index 0000000000000000000000000000000000000000..3903814756a43d4f8a94e77e316bb518d0ccb57a --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/HessianActionIntegral.lean @@ -0,0 +1,49 @@ +import OAI.Geometry.RCD.Sobolev.LocalHessianAction + +namespace OAI + +/-! # Integrability and the exact integral of the Hessian action -/ + +open Set MeasureTheory + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +omit [ProperSpace X] in +theorem localHessianAction_integrable (f v u fv fu vu : SobolevSpace μ hQ) : + Integrable (localHessianAction μ hQ f v u fv fu vu) μ := by + simpa only [localHessianAction,Pi.add_apply,Pi.sub_apply] using! + (((localGamma_memL1 μ hQ v fu).add (localGamma_memL1 μ hQ u fv)).sub + (localGamma_memL1 μ hQ f vu)).div_const 2 + +omit [ProperSpace X] in +theorem integral_localHessianAction (f v u fv fu vu : SobolevSpace μ hQ) : + (∫ x, localHessianAction μ hQ f v u fv fu vu x ∂μ) = + (energyForm μ hQ v fu+energyForm μ hQ u fv-energyForm μ hQ f vu)/2 := by + have hsum : Integrable (fun x => localGamma μ hQ v fu x+localGamma μ hQ u fv x) μ := by + simpa only [Pi.add_apply] using! (localGamma_memL1 μ hQ v fu).add (localGamma_memL1 μ hQ u fv) + simp only [localHessianAction] + rw [integral_div,integral_sub hsum + (localGamma_memL1 μ hQ f vu), + integral_add (localGamma_memL1 μ hQ v fu) (localGamma_memL1 μ hQ u fv), + integral_localGamma_eq_energyForm,integral_localGamma_eq_energyForm,integral_localGamma_eq_energyForm] + +omit [ProperSpace X] in +/-- The pointwise three-term action agrees with the continuous Hessian +functional on the constructed dense test core. -/ +theorem LocalHessianPairing.integral_action_core {Ω : Set X} {f a : SobolevSpace μ hQ} + (G : LocalHessianPairing μ hQ Ω f a) (φ : G.core) : + (∫ x, localHessianAction μ hQ f a φ.val.val G.mixed + (G.gammaF φ).val (G.gammaA φ).val x ∂μ) = G.hessian φ.val := by + rw [integral_localHessianAction] + have h := G.koszul φ + linarith only [h] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/HessianActionLocality.lean b/lean/OAI/Geometry/RCD/Sobolev/HessianActionLocality.lean new file mode 100644 index 0000000000000000000000000000000000000000..b6b07da9ba3f49196f38c0ac16fee7aa9cca4b19 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/HessianActionLocality.lean @@ -0,0 +1,64 @@ +import OAI.Geometry.RCD.Sobolev.HessianPotentialSquare + +namespace OAI + +/-! # Local representative independence of the Hessian action -/ + +open Set Filter MeasureTheory +open scoped NNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +theorem localHessianAction_congr {Ω : Set X} + {f f' u u' v v' fu fu' fv fv' uv uv' : SobolevSpace μ hQ} + (hf : SobolevSpace.toLp μ hQ f =ᵐ[μ.restrict Ω] SobolevSpace.toLp μ hQ f') + (hu : SobolevSpace.toLp μ hQ u =ᵐ[μ.restrict Ω] SobolevSpace.toLp μ hQ u') + (hv : SobolevSpace.toLp μ hQ v =ᵐ[μ.restrict Ω] SobolevSpace.toLp μ hQ v') + (hfu : SobolevSpace.toLp μ hQ fu =ᵐ[μ.restrict Ω] SobolevSpace.toLp μ hQ fu') + (hfv : SobolevSpace.toLp μ hQ fv =ᵐ[μ.restrict Ω] SobolevSpace.toLp μ hQ fv') + (huv : SobolevSpace.toLp μ hQ uv =ᵐ[μ.restrict Ω] SobolevSpace.toLp μ hQ uv') : + localHessianAction μ hQ f u v fu fv uv =ᵐ[μ.restrict Ω] + localHessianAction μ hQ f' u' v' fu' fv' uv' := by + filter_upwards [localGamma_pair_congr_ae μ hQ hu hfv, + localGamma_pair_congr_ae μ hQ hv hfu, + localGamma_pair_congr_ae μ hQ hf huv] with x h₁ h₂ h₃ + simp only [localHessianAction,h₁,h₂,h₃] + +/-- The square identity uses any local Gram representatives, including +the entries of the common finite-family Bochner construction. -/ +theorem localHessianAction_square_self {Ω : Set X} + (g G P : SobolevSpace μ hQ) (A B : ℝ≥0) + (hg : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ g x|≤A) + (hG : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ G x|≤B) + (hGr : SobolevSpace.toLp μ hQ G =ᵐ[μ.restrict Ω] localGamma μ hQ g g) + (hPr : SobolevSpace.toLp μ hQ P =ᵐ[μ.restrict Ω] + localGamma μ hQ (SobolevSpace.product μ hQ g g A A) g) : + localHessianAction μ hQ (SobolevSpace.product μ hQ g g A A) g g P P G + =ᵐ[μ.restrict Ω] fun x => + 2*SobolevSpace.toLp μ hQ g x*localHessianAction μ hQ g g g G G G x+ + 2*(localGamma μ hQ g g x)^2 := by + have hP : SobolevSpace.toLp μ hQ P =ᵐ[μ.restrict Ω] + SobolevSpace.toLp μ hQ ((2:ℝ) • SobolevSpace.product μ hQ g G A B) := by + filter_upwards [hPr,hGr, + ae_restrict_of_ae (localGamma_product_left μ hQ g g g A A hg hg), + ae_restrict_of_ae (SobolevSpace.product_coe μ hQ g G A B hg hG), + ae_restrict_of_ae (Lp.coeFn_smul (2:ℝ) + (SobolevSpace.toLp μ hQ (SobolevSpace.product μ hQ g G A B)))] + with x hp hr hprod hrep hsmul + simp only [map_smul,Pi.smul_apply,smul_eq_mul] at * + rw [hp,hprod,hsmul,hrep,hr] + ring + exact (localHessianAction_congr μ hQ EventuallyEq.rfl EventuallyEq.rfl + EventuallyEq.rfl hP hP EventuallyEq.rfl).trans + ((localHessianAction_potential_square μ hQ g g g G G G A B B hg hG hG hGr hGr).mono + fun x hx => by rw [hx]; ring) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/HessianActionProduct.lean b/lean/OAI/Geometry/RCD/Sobolev/HessianActionProduct.lean new file mode 100644 index 0000000000000000000000000000000000000000..aeb9b49dbb22e3e7d6a616455a32d36a99d03d2d --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/HessianActionProduct.lean @@ -0,0 +1,57 @@ +import OAI.Geometry.RCD.Sobolev.LocalHessianAction + +namespace OAI + +/-! # The Hessian action obeys the product rule in a gradient direction -/ + +open Set Filter MeasureTheory +open scoped NNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +/-- The extra first-order terms cancel in the three-term Hessian formula. +All products are genuine Sobolev products of bounded representatives. -/ +theorem localHessianAction_product {Ω : Set X} + (f a u v fa fu fv au av : SobolevSpace μ hQ) + (A B C D E F : ℝ≥0) + (hu : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ u x|≤A) + (hv : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ v x|≤B) + (hfuB : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ fu x|≤C) + (hfvB : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ fv x|≤D) + (hauB : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ au x|≤E) + (havB : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ av x|≤F) + (hfu : SobolevSpace.toLp μ hQ fu =ᵐ[μ.restrict Ω] localGamma μ hQ f u) + (hfv : SobolevSpace.toLp μ hQ fv =ᵐ[μ.restrict Ω] localGamma μ hQ f v) + (hau : SobolevSpace.toLp μ hQ au =ᵐ[μ.restrict Ω] localGamma μ hQ a u) + (hav : SobolevSpace.toLp μ hQ av =ᵐ[μ.restrict Ω] localGamma μ hQ a v) : + let uv := SobolevSpace.product μ hQ u v A B + let fuv := SobolevSpace.product μ hQ u fv A D+SobolevSpace.product μ hQ v fu B C + let auv := SobolevSpace.product μ hQ u av A F+SobolevSpace.product μ hQ v au B E + localHessianAction μ hQ f a uv fa fuv auv =ᵐ[μ.restrict Ω] fun x => + SobolevSpace.toLp μ hQ u x*localHessianAction μ hQ f a v fa fv av x+ + SobolevSpace.toLp μ hQ v x*localHessianAction μ hQ f a u fa fu au x := by + dsimp only + filter_upwards [ + ae_restrict_of_ae (localGamma_add_right μ hQ a + (SobolevSpace.product μ hQ u fv A D) (SobolevSpace.product μ hQ v fu B C)), + ae_restrict_of_ae (localGamma_add_right μ hQ f + (SobolevSpace.product μ hQ u av A F) (SobolevSpace.product μ hQ v au B E)), + ae_restrict_of_ae (localGamma_product_right μ hQ a u fv A D hu hfvB), + ae_restrict_of_ae (localGamma_product_right μ hQ a v fu B C hv hfuB), + ae_restrict_of_ae (localGamma_product_left μ hQ u v fa A B hu hv), + ae_restrict_of_ae (localGamma_product_right μ hQ f u av A F hu havB), + ae_restrict_of_ae (localGamma_product_right μ hQ f v au B E hv hauB), + hfu,hfv,hau,hav] with x ha hf hauv havu huv hfuv hfvu hfu hfv hau hav + dsimp only [localHessianAction] + rw [ha,hf,hauv,havu,huv,hfuv,hfvu,hfu,hfv,hau,hav] + ring + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/HessianActionRepresentatives.lean b/lean/OAI/Geometry/RCD/Sobolev/HessianActionRepresentatives.lean new file mode 100644 index 0000000000000000000000000000000000000000..f92163592fb07f59e3c7a8d5bb186bfbe98a102c --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/HessianActionRepresentatives.lean @@ -0,0 +1,34 @@ +import OAI.Geometry.RCD.Sobolev.HessianActionLocality + +namespace OAI + +/-! # Transferring Hessian actions between locally equal directions -/ + +open Set Filter MeasureTheory +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) (Q : QuadraticCheegerEnergy μ) + +theorem localHessianAction_congr_of_grams {Ω : Set X} + (w u u' v v' A A' B B' C C' : SobolevSpace μ Q) + (hu : SobolevSpace.toLp μ Q u =ᵐ[μ.restrict Ω] SobolevSpace.toLp μ Q u') + (hv : SobolevSpace.toLp μ Q v =ᵐ[μ.restrict Ω] SobolevSpace.toLp μ Q v') + (hA : SobolevSpace.toLp μ Q A =ᵐ[μ.restrict Ω] localGamma μ Q w u) + (hA' : SobolevSpace.toLp μ Q A' =ᵐ[μ.restrict Ω] localGamma μ Q w u') + (hB : SobolevSpace.toLp μ Q B =ᵐ[μ.restrict Ω] localGamma μ Q w v) + (hB' : SobolevSpace.toLp μ Q B' =ᵐ[μ.restrict Ω] localGamma μ Q w v') + (hC : SobolevSpace.toLp μ Q C =ᵐ[μ.restrict Ω] localGamma μ Q u v) + (hC' : SobolevSpace.toLp μ Q C' =ᵐ[μ.restrict Ω] localGamma μ Q u' v') : + localHessianAction μ Q w u v A B C =ᵐ[μ.restrict Ω] + localHessianAction μ Q w u' v' A' B' C' := by + apply localHessianAction_congr μ Q (EventuallyEq.refl _ _) hu hv + · exact (hA.trans (localGamma_pair_congr_ae μ Q (EventuallyEq.refl _ _) hu)).trans hA'.symm + · exact (hB.trans (localGamma_pair_congr_ae μ Q (EventuallyEq.refl _ _) hv)).trans hB'.symm + · exact (hC.trans (localGamma_pair_congr_ae μ Q hu hv)).trans hC'.symm + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/HessianCommutatorEnergy.lean b/lean/OAI/Geometry/RCD/Sobolev/HessianCommutatorEnergy.lean new file mode 100644 index 0000000000000000000000000000000000000000..a38297bbd37d74dc74a97ad63041a167d4e8b5ff --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/HessianCommutatorEnergy.lean @@ -0,0 +1,58 @@ +import OAI.Geometry.RCD.Sobolev.LocalHessianAction + +namespace OAI + +/-! # The L2 commutator error from the actual Hessian actions -/ + +open Set MeasureTheory + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +/-- The shifted Hessian of f and the ordinary Hessian of v control the +commutator error. The coordinate Hessian cancels in the exact identity. -/ +theorem local_hessian_commutator_energy {Ω : Set X} {f v u : SobolevSpace μ hQ} + (Gfv : LocalHessianPairing μ hQ Ω f v) + (Gvf : LocalHessianPairing μ hQ Ω v f) + (Gfu : LocalHessianPairing μ hQ Ω f u) + (Gvu : LocalHessianPairing μ hQ Ω v u) + (hF : MemLp (fun x => localHessianAction μ hQ f v u Gfv.mixed Gfu.mixed Gvu.mixed x - + localGamma μ hQ v u x) 2 (μ.restrict Ω)) + (hV : MemLp (localHessianAction μ hQ v f u Gvf.mixed Gvu.mixed Gfu.mixed) 2 (μ.restrict Ω)) + {D E : ℝ} + (hDF : (∫ x in Ω, (localHessianAction μ hQ f v u Gfv.mixed Gfu.mixed Gvu.mixed x - + localGamma μ hQ v u x) ^ 2 ∂μ) ≤ D) + (hDV : (∫ x in Ω, (localHessianAction μ hQ v f u Gvf.mixed Gvu.mixed Gfu.mixed x) ^ 2 ∂μ) ≤ E) : + (∫ x in Ω, (localGamma μ hQ v Gfu.mixed x - localGamma μ hQ f Gvu.mixed x - + localGamma μ hQ v u x) ^ 2 ∂μ) ≤ 2 * D + 2 * E := by + let F := fun x => localHessianAction μ hQ f v u Gfv.mixed Gfu.mixed Gvu.mixed x - + localGamma μ hQ v u x + let H := localHessianAction μ hQ v f u Gvf.mixed Gvu.mixed Gfu.mixed + have heq : (fun x => (localGamma μ hQ v Gfu.mixed x - localGamma μ hQ f Gvu.mixed x - + localGamma μ hQ v u x) ^ 2) =ᵐ[μ.restrict Ω] fun x => (F x - H x) ^ 2 := by + filter_upwards [local_hessian_commutator μ hQ Gfv Gvf Gfu Gvu] with x hx + rw [hx] + dsimp only [F, H] + ring + rw [integral_congr_ae heq] + calc + _ ≤ ∫ x in Ω, 2 * (F x) ^ 2 + 2 * (H x) ^ 2 ∂μ := by + apply integral_mono_ae (hF.sub hV).integrable_sq + ((hF.integrable_sq.const_mul 2).add (hV.integrable_sq.const_mul 2)) + exact Filter.Eventually.of_forall fun x => by + change (F x - H x) ^ 2 ≤ 2 * (F x) ^ 2 + 2 * (H x) ^ 2 + nlinarith only [sq_nonneg (F x + H x)] + _ = 2 * (∫ x in Ω, (F x) ^ 2 ∂μ) + 2 * (∫ x in Ω, (H x) ^ 2 ∂μ) := by + rw [integral_add (hF.integrable_sq.const_mul 2) (hV.integrable_sq.const_mul 2), + integral_const_mul, integral_const_mul] + _ ≤ _ := add_le_add (mul_le_mul_of_nonneg_left hDF (by norm_num)) + (mul_le_mul_of_nonneg_left hDV (by norm_num)) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/HessianDensityMassBound.lean b/lean/OAI/Geometry/RCD/Sobolev/HessianDensityMassBound.lean new file mode 100644 index 0000000000000000000000000000000000000000..2e0e2ba17d27c93ab88f2dda988ba209efb16fa5 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/HessianDensityMassBound.lean @@ -0,0 +1,62 @@ +import OAI.Geometry.RCD.Metric.RadonDensityL2Bound + +namespace OAI + +/-! # Weighted Hessian bounds retaining the full positive mass -/ + +open Set Filter MeasureTheory +noncomputable section +namespace RegularPointCoordinates + +/-- A deliberately linear density bound, convenient for Gaussian tails. -/ +theorem abs_le_factor_one_add_density {h j b : ℝ} (hj : 0 ≤ j) (hb : 0 ≤ b) + (hh : h^2 ≤ j*b^2) : |h| ≤ b*(1+j) := by + have hsq : h^2 ≤ (b*(1+j))^2 := by + nlinarith only [hh,mul_nonneg (sq_nonneg b) (sq_nonneg j),sq_nonneg b, + mul_nonneg (sq_nonneg b) hj] + exact (sq_le_sq₀ (abs_nonneg h) (mul_nonneg hb (by positivity))).mp + (by simpa only [sq_abs] using hsq) + +/-- The weighted mixed estimate uses only the product of the two energies. -/ +theorem weighted_abs_le_one_add_density {w h j e f b : ℝ} + (hw : 0 ≤ w) (hj : 0 ≤ j) (hb : 0 ≤ b) + (hh : h^2 ≤ j*e*f) (he : w^2*e*f ≤ b^2) : + w*|h| ≤ b*(1+j) := by + have hwh : (w*h)^2 ≤ j*b^2 := by + have h₁ := mul_le_mul_of_nonneg_left hh (sq_nonneg w) + have h₂ := mul_le_mul_of_nonneg_left he hj + nlinarith only [h₁,h₂] + simpa only [abs_mul,abs_of_nonneg hw] using abs_le_factor_one_add_density hj hb hwh + +variable {X : Type*} [MeasurableSpace X] (μ : Measure X) + +/-- A pointwise density estimate integrates against the complete mass, +including any singular part of the Bochner measure. -/ +theorem integral_abs_le_full_mass (σ : Measure X) [IsFiniteMeasure σ] + {S : Set X} (hS : μ S ≠ ⊤) {H : X → ℝ} + (hH : AEStronglyMeasurable H (μ.restrict S)) {B : ℝ} (hB : 0 ≤ B) + (hb : ∀ᵐ x ∂μ.restrict S, |H x| ≤ B*(1+(σ.rnDeriv μ x).toReal)) : + Integrable H (μ.restrict S) ∧ + (∫ x in S, |H x| ∂μ) ≤ B*(μ.real S+σ.real S) := by + have hJ : Integrable (fun x => (σ.rnDeriv μ x).toReal) (μ.restrict S) := + Measure.integrableOn_toReal_rnDeriv (μ := σ) (ν := μ) (measure_ne_top σ S) + have hI : Integrable (fun _ : X => (1:ℝ)) (μ.restrict S) := + integrableOn_const hS + have hmajor := (hI.add hJ).const_mul B + have hi : Integrable H (μ.restrict S) := hmajor.mono' hH + (hb.mono fun _ hx => by simpa only [Real.norm_eq_abs, Pi.add_apply] using hx) + refine ⟨hi,?_⟩ + calc + (∫ x in S, |H x| ∂μ) ≤ ∫ x in S, B*(1+(σ.rnDeriv μ x).toReal) ∂μ := + integral_mono_ae hi.abs hmajor hb + _ = B*(μ.real S+∫ x in S, (σ.rnDeriv μ x).toReal ∂μ) := by + rw [integral_const_mul,integral_add hI hJ,integral_const] + simp + _ ≤ _ := mul_le_mul_of_nonneg_left (add_le_add_right + (Measure.setIntegral_toReal_rnDeriv_le (μ := σ) (ν := μ) (measure_ne_top σ S)) _) hB + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/HessianDifferencePolarization.lean b/lean/OAI/Geometry/RCD/Sobolev/HessianDifferencePolarization.lean new file mode 100644 index 0000000000000000000000000000000000000000..64cc98a8865fd382c8c9d52a4ceb0af02036e310 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/HessianDifferencePolarization.lean @@ -0,0 +1,74 @@ +import OAI.Geometry.RCD.Sobolev.HessianVelocityPolarization + +namespace OAI + +/-! # A diagonal Hessian difference is one mixed Hessian action -/ + +open Set Filter MeasureTheory +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) (Q : QuadraticCheegerEnergy μ) + +theorem localHessianAction_diagonal_difference + (f u v fu fv uu vv : SobolevSpace μ Q) : + (fun x => localHessianAction μ Q f u u fu fu uu x- + localHessianAction μ Q f v v fv fv vv x) =ᵐ[μ] + localHessianAction μ Q f (u-v) (u+v) (fu-fv) (fu+fv) (uu-vv) := by + filter_upwards [localGamma_sub_left μ Q u v (fu+fv), + localGamma_add_right μ Q u fu fv,localGamma_add_right μ Q v fu fv, + localGamma_add_left μ Q u v (fu-fv), + localGamma_sub_right μ Q u fu fv,localGamma_sub_right μ Q v fu fv, + localGamma_sub_right μ Q f uu vv] with x h1 h2 h3 h4 h5 h6 h7 + dsimp only [localHessianAction] + rw [h1,h2,h3,h4,h5,h6,h7] + ring + +theorem localGamma_difference_sum_rep {Ω : Set X} + (u v uu vv : SobolevSpace μ Q) + (huu : SobolevSpace.toLp μ Q uu =ᵐ[μ.restrict Ω] localGamma μ Q u u) + (hvv : SobolevSpace.toLp μ Q vv =ᵐ[μ.restrict Ω] localGamma μ Q v v) : + SobolevSpace.toLp μ Q (uu-vv) =ᵐ[μ.restrict Ω] localGamma μ Q (u-v) (u+v) := by + simp only [map_sub] + filter_upwards [huu,hvv, + ae_restrict_of_ae (Lp.coeFn_sub (SobolevSpace.toLp μ Q uu) (SobolevSpace.toLp μ Q vv)), + ae_restrict_of_ae (localGamma_sub_left μ Q u v (u+v)), + ae_restrict_of_ae (localGamma_add_right μ Q u u v), + ae_restrict_of_ae (localGamma_add_right μ Q v u v), + ae_restrict_of_ae (localGamma_comm μ Q u v)] with x hu hv hs h1 h2 h3 hc + rw [hs,h1,h2,h3] + simp only [Pi.sub_apply,hu,hv] + rw [hc] + ring + +theorem localGamma_sum_difference_bound {Ω : Set X} (u v : SobolevSpace μ Q) + {P : ℝ} + (hu : ∀ᵐ x ∂μ.restrict Ω, localGamma μ Q u u x ≤ P) + (hv : ∀ᵐ x ∂μ.restrict Ω, localGamma μ Q v v x ≤ P) : + (∀ᵐ x ∂μ.restrict Ω, localGamma μ Q (u-v) (u-v) x ≤ 4*P) ∧ + (∀ᵐ x ∂μ.restrict Ω, localGamma μ Q (u+v) (u+v) x ≤ 4*P) := by + have hb : ∀ᵐ x ∂μ.restrict Ω, + localGamma μ Q (u-v) (u-v) x ≤ 4*P ∧ + localGamma μ Q (u+v) (u+v) x ≤ 4*P := by + filter_upwards [hu,hv, + ae_restrict_of_ae (localGamma_sub_left μ Q u v (u-v)), + ae_restrict_of_ae (localGamma_sub_right μ Q u u v), + ae_restrict_of_ae (localGamma_sub_right μ Q v u v), + ae_restrict_of_ae (localGamma_add_left μ Q u v (u+v)), + ae_restrict_of_ae (localGamma_add_right μ Q u u v), + ae_restrict_of_ae (localGamma_add_right μ Q v u v), + ae_restrict_of_ae (localGamma_self μ Q (u-v)), + ae_restrict_of_ae (localGamma_self μ Q (u+v))] + with x hu hv hs hs1 hs2 ha ha1 ha2 hns hna + have hn1 : 0 ≤ localGamma μ Q (u-v) (u-v) x := by rw [hns]; positivity + have hn2 : 0 ≤ localGamma μ Q (u+v) (u+v) x := by rw [hna]; positivity + rw [hs,hs1,hs2] at hn1 ⊢ + rw [ha,ha1,ha2] at hn2 ⊢ + constructor <;> linarith + exact ⟨hb.mono fun _ h => h.1,hb.mono fun _ h => h.2⟩ + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/HessianL1LimitUniqueness.lean b/lean/OAI/Geometry/RCD/Sobolev/HessianL1LimitUniqueness.lean new file mode 100644 index 0000000000000000000000000000000000000000..90db54933d0f0695d8af612886e09eafb78c4402 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/HessianL1LimitUniqueness.lean @@ -0,0 +1,64 @@ +import OAI.Geometry.RCD.Metric.L1SequentialLimit + +namespace OAI + +/-! # Uniqueness of local Hessian limits under vanishing L1 differences -/ + +open Filter MeasureTheory +open scoped Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MeasurableSpace X] (μ : Measure X) + +theorem L1_tendsto_of_integral_abs (F : ℕ → X → ℝ) + (hF : ∀ k, Integrable (F k) μ) (J : Lp ℝ 1 μ) + (hJ : Tendsto (fun k => ∫ x, |F k x-J x| ∂μ) atTop (𝓝 0)) : + Tendsto (fun k => (hF k).toL1 (F k)) atTop (𝓝 J) := by + apply tendsto_iff_dist_tendsto_zero.mpr + apply hJ.congr' + exact Eventually.of_forall fun k => by + change (∫ x, |F k x-J x| ∂μ) = dist ((hF k).toL1 (F k)) J + rw [L1.dist_eq_integral_dist] + apply integral_congr_ae + filter_upwards [(hF k).coeFn_toL1] with x hx + rw [hx,Real.dist_eq] + +theorem L1_limits_eq_of_difference (F G : ℕ → X → ℝ) + (hF : ∀ k, Integrable (F k) μ) (hG : ∀ k, Integrable (G k) μ) + (I J : Lp ℝ 1 μ) + (hI : Tendsto (fun k => ∫ x, |F k x-I x| ∂μ) atTop (𝓝 0)) + (hJ : Tendsto (fun k => ∫ x, |G k x-J x| ∂μ) atTop (𝓝 0)) + (hdiff : Tendsto (fun k => ∫ x, |F k x-G k x| ∂μ) atTop (𝓝 0)) : I=J := by + have hlim := (L1_tendsto_of_integral_abs μ F hF I hI).dist + (L1_tendsto_of_integral_abs μ G hG J hJ) + have he (k : ℕ) : dist ((hF k).toL1 (F k)) ((hG k).toL1 (G k)) = + ∫ x, |F k x-G k x| ∂μ := by + rw [L1.dist_eq_integral_dist] + apply integral_congr_ae + filter_upwards [(hF k).coeFn_toL1,(hG k).coeFn_toL1] with x hx hy + rw [hx,hy,Real.dist_eq] + have hz : dist I J=0 := tendsto_nhds_unique hlim + (hdiff.congr' (Eventually.of_forall fun k => (he k).symm)) + exact dist_eq_zero.mp hz + +theorem L1_limit_eq_of_convergence (F : ℕ → X → ℝ) + (hF : ∀ k, Integrable (F k) μ) (J : Lp ℝ 1 μ) + (hJ : Tendsto (fun k => ∫ x, |F k x-J x| ∂μ) atTop (𝓝 0)) + (g : X → ℝ) (hg : Integrable g μ) + (hlim : Tendsto (fun k => ∫ x, |F k x-g x| ∂μ) atTop (𝓝 0)) : + J =ᵐ[μ] g := by + have he (k : ℕ) : (∫ x, |F k x-(hg.toL1 g) x| ∂μ)=∫ x, |F k x-g x| ∂μ := by + apply integral_congr_ae + filter_upwards [hg.coeFn_toL1] with x hx + rw [hx] + have hl := L1_tendsto_of_integral_abs μ F hF (hg.toL1 g) + (hlim.congr' (Eventually.of_forall fun k => (he k).symm)) + have hEq : J=hg.toL1 g := tendsto_nhds_unique (L1_tendsto_of_integral_abs μ F hF J hJ) hl + rw [hEq] + exact hg.coeFn_toL1 + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/HessianL1MassBound.lean b/lean/OAI/Geometry/RCD/Sobolev/HessianL1MassBound.lean new file mode 100644 index 0000000000000000000000000000000000000000..82318cbcedbdc9eccb0676732e6cda4c20910b2f --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/HessianL1MassBound.lean @@ -0,0 +1,63 @@ +import OAI.Geometry.RCD.Sobolev.HessianL1LimitUniqueness +import OAI.Geometry.RCD.Metric.RadonDensityL2Bound + +namespace OAI + +/-! # A full-mass Young estimate survives the canonical Hessian L¹ limit -/ + +open Set Filter MeasureTheory +open scoped Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MeasurableSpace X] (μ : Measure X) + +theorem integral_abs_tendsto_of_L1_error (F : ℕ → X → ℝ) + (hF : ∀ k, Integrable (F k) μ) (J : Lp ℝ 1 μ) + (hJ : Tendsto (fun k => ∫ x, |F k x-J x| ∂μ) atTop (𝓝 0)) : + Tendsto (fun k => ∫ x, |F k x| ∂μ) atTop (𝓝 (∫ x, |J x| ∂μ)) := by + apply tendsto_iff_norm_sub_tendsto_zero.mpr + apply squeeze_zero (fun _ => norm_nonneg _) + (fun k => ?_) hJ + have hiJ := (memLp_one_iff_integrable).mp (Lp.memLp J) + rw [← integral_sub (hF k).abs hiJ.abs,Real.norm_eq_abs] + calc + |∫ x, |F k x|-|J x| ∂μ| ≤ ∫ x, |(|F k x|-|J x|)| ∂μ := abs_integral_le_integral_abs + _ ≤ ∫ x, |F k x-J x| ∂μ := by + apply integral_mono ((hF k).abs.sub hiJ.abs).abs ((hF k).sub hiJ).abs + intro x + exact abs_abs_sub_abs_le_abs_sub _ _ + +theorem L1_limit_radon_young_bound (σ : Measure X) [IsFiniteMeasure σ] + {S : Set X} (hS : μ S ≠ ⊤) + (F : ℕ → X → ℝ) (hF : ∀ k, Integrable (F k) (μ.restrict S)) + (J : Lp ℝ 1 (μ.restrict S)) + (hJ : Tendsto (fun k => ∫ x in S, |F k x-J x| ∂μ) atTop (𝓝 0)) + (B : ℝ) + (hbound : ∀ k, ∀ᵐ x ∂μ.restrict S, (F k x)^2 ≤ B^2*(σ.rnDeriv μ x).toReal) + {a : ℝ} (_ha : 0 < a) : + 4*a*(∫ x in S, |J x| ∂μ) ≤ 4*a^2*μ.real S+B^2*σ.real S := by + let : IsFiniteMeasure (μ.restrict S) := ⟨by simpa only [Measure.restrict_apply_univ] using hS.lt_top⟩ + have hden := Measure.integrableOn_toReal_rnDeriv (μ := σ) (ν := μ) (measure_ne_top σ S) + have hlim := (integral_abs_tendsto_of_L1_error (μ.restrict S) F hF J hJ).const_mul (4*a) + apply le_of_tendsto hlim + apply Eventually.of_forall + intro k + have hy : ∀ᵐ x ∂μ.restrict S, + 4*a*|F k x| ≤ 4*a^2+B^2*(σ.rnDeriv μ x).toReal := by + filter_upwards [hbound k] with x hx + nlinarith only [sq_nonneg (2*a-|F k x|),sq_abs (F k x),hx] + have hh := integral_mono_ae ((hF k).abs.const_mul (4*a)) + ((integrable_const (4*a^2)).add (hden.const_mul (B^2))) hy + simp only [Pi.add_apply] at hh + rw [integral_const_mul,integral_add (integrable_const (4*a^2)) (hden.const_mul (B^2)), + integral_const_mul,integral_const] at hh + have hmass := mul_le_mul_of_nonneg_left + (Measure.setIntegral_toReal_rnDeriv_le (μ := σ) (ν := μ) (measure_ne_top σ S)) (sq_nonneg B) + simp only [integral_const_mul,smul_eq_mul,measureReal_restrict_apply_univ] at hh + nlinarith only [hh,hmass] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/HessianLaplacianPairing.lean b/lean/OAI/Geometry/RCD/Sobolev/HessianLaplacianPairing.lean new file mode 100644 index 0000000000000000000000000000000000000000..3540aac27517494728f3aae32c32edffe07c79c3 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/HessianLaplacianPairing.lean @@ -0,0 +1,33 @@ +import OAI.Geometry.RCD.Sobolev.HessianActionIntegral + +namespace OAI + +/-! # The integrated Hessian action in weak Laplacian pairings + +This is integration by parts in the three-term Hessian formula. It needs +only the actual L2 weak Laplacians and the three Sobolev Gram representatives. +-/ + +open MeasureTheory +open scoped InnerProductSpace +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) (Q : QuadraticCheegerEnergy μ) + +omit [ProperSpace X] in +theorem integral_hessian_laplacian_pairings + (w u v wu wv uv : SobolevSpace μ Q) (q d e : Lp ℝ 2 μ) + (hw : IsWeakLaplacian μ Q w q) (hu : IsWeakLaplacian μ Q u d) + (hv : IsWeakLaplacian μ Q v e) : + (∫ x, localHessianAction μ Q w u v wu wv uv x ∂μ) = + (-inner ℝ d (SobolevSpace.toLp μ Q wv)-inner ℝ e (SobolevSpace.toLp μ Q wu)+ + inner ℝ q (SobolevSpace.toLp μ Q uv))/2 := by + rw [integral_localHessianAction,hu,hv,hw] + ring + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/HessianLocality.lean b/lean/OAI/Geometry/RCD/Sobolev/HessianLocality.lean new file mode 100644 index 0000000000000000000000000000000000000000..b1707b837e98245ddb8fd268d5371647e03d9484 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/HessianLocality.lean @@ -0,0 +1,69 @@ +import OAI.Geometry.RCD.Sobolev.WeakRadialCancellation +import OAI.Geometry.RCD.Sobolev.SupportedEnergyLocality +import OAI.Geometry.RCD.Coordinates.BoundedSplittingCoordinates + +namespace OAI + +/-! # Locality of integrated Hessian pairings -/ + +open Set Filter MeasureTheory + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +/-- A zero-boundary test sees only the potential inside its domain. -/ +theorem localGamma_eq_of_dirichlet_right {Ω : Set X} (hΩ : MeasurableSet Ω) + {f g : SobolevSpace μ hQ} + (hfg : SobolevSpace.toLp μ hQ f =ᵐ[μ.restrict Ω] SobolevSpace.toLp μ hQ g) + (φ : SobolevSpace.dirichlet μ hQ Ω) : + localGamma μ hQ f φ.val =ᵐ[μ] localGamma μ hQ g φ.val := by + have hzero := (ae_restrict_iff' hΩ.compl).mp (SobolevSpace.dirichlet_zero_off μ hQ Ω hΩ φ) + have heq := (ae_restrict_iff' hΩ).mp hfg + filter_upwards [heq,hzero,localGamma_eq_on_eq μ hQ f g φ.val, + localGamma_zero_on_level μ hQ φ.val f 0,localGamma_zero_on_level μ hQ φ.val g 0, + localGamma_comm μ hQ f φ.val,localGamma_comm μ hQ g φ.val] with x he hz hg hf0 hg0 hfcomm hgcomm + by_cases hx : x ∈ Ω + · exact hg (he hx) + · rw [hfcomm,hgcomm,hf0 (hz hx),hg0 (hz hx)] + +theorem energyForm_eq_of_dirichlet {Ω : Set X} (hΩ : MeasurableSet Ω) + {f g : SobolevSpace μ hQ} + (hfg : SobolevSpace.toLp μ hQ f =ᵐ[μ.restrict Ω] SobolevSpace.toLp μ hQ g) + (φ : SobolevSpace.dirichlet μ hQ Ω) : + energyForm μ hQ f φ.val = energyForm μ hQ g φ.val := by + rw [← integral_localGamma_eq_energyForm,← integral_localGamma_eq_energyForm] + exact integral_congr_ae (localGamma_eq_of_dirichlet_right μ hQ hΩ hfg φ) + +/-- Replacing either potential outside the domain preserves the complete +integrated Hessian data, including its dense core. -/ +def LocalHessianPairing.congr {Ω : Set X} (hΩ : MeasurableSet Ω) + {f a F A : SobolevSpace μ hQ} + (G : LocalHessianPairing μ hQ Ω F A) + (hf : SobolevSpace.toLp μ hQ F =ᵐ[μ.restrict Ω] SobolevSpace.toLp μ hQ f) + (ha : SobolevSpace.toLp μ hQ A =ᵐ[μ.restrict Ω] SobolevSpace.toLp μ hQ a) : + LocalHessianPairing μ hQ Ω f a where + mixed := G.mixed + mixed_rep := G.mixed_rep.trans (localGamma_pair_congr_ae μ hQ hf ha) + core := G.core + core_dense := G.core_dense + gammaF := G.gammaF + gammaA := G.gammaA + gammaF_rep := fun φ => (G.gammaF_rep φ).trans + (localGamma_eq_of_dirichlet_right μ hQ hΩ hf φ.val) + gammaA_rep := fun φ => (G.gammaA_rep φ).trans + (localGamma_eq_of_dirichlet_right μ hQ hΩ ha φ.val) + hessian := G.hessian + koszul := by + intro φ + rw [← energyForm_eq_of_dirichlet μ hQ hΩ ha (G.gammaF φ), + ← energyForm_eq_of_dirichlet μ hQ hΩ hf (G.gammaA φ)] + exact G.koszul φ + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/HessianPotentialProduct.lean b/lean/OAI/Geometry/RCD/Sobolev/HessianPotentialProduct.lean new file mode 100644 index 0000000000000000000000000000000000000000..03c7d88960583a53fb5f5759c5d4f4f2907763ba --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/HessianPotentialProduct.lean @@ -0,0 +1,61 @@ +import OAI.Geometry.RCD.Sobolev.HessianActionProduct + +namespace OAI + +/-! # The Hessian product rule in its potential argument -/ + +open Set Filter MeasureTheory +open scoped NNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +/-- The Hessian of a product has the two expected gradient cross terms. +Every entry is the actual three-term Sobolev action. -/ +theorem localHessianAction_potential_product {Ω : Set X} + (f g u v fu fv gu gv uv : SobolevSpace μ hQ) + (A B C D E F : ℝ≥0) + (hf : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ f x|≤A) + (hg : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ g x|≤B) + (hfuB : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ fu x|≤C) + (hfvB : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ fv x|≤D) + (hguB : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ gu x|≤E) + (hgvB : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ gv x|≤F) + (hfu : SobolevSpace.toLp μ hQ fu =ᵐ[μ.restrict Ω] localGamma μ hQ f u) + (hfv : SobolevSpace.toLp μ hQ fv =ᵐ[μ.restrict Ω] localGamma μ hQ f v) + (hgu : SobolevSpace.toLp μ hQ gu =ᵐ[μ.restrict Ω] localGamma μ hQ g u) + (hgv : SobolevSpace.toLp μ hQ gv =ᵐ[μ.restrict Ω] localGamma μ hQ g v) : + let fg := SobolevSpace.product μ hQ f g A B + let fgU := SobolevSpace.product μ hQ f gu A E+SobolevSpace.product μ hQ g fu B C + let fgV := SobolevSpace.product μ hQ f gv A F+SobolevSpace.product μ hQ g fv B D + localHessianAction μ hQ fg u v fgU fgV uv =ᵐ[μ.restrict Ω] fun x => + SobolevSpace.toLp μ hQ f x*localHessianAction μ hQ g u v gu gv uv x+ + SobolevSpace.toLp μ hQ g x*localHessianAction μ hQ f u v fu fv uv x+ + localGamma μ hQ f u x*localGamma μ hQ g v x+ + localGamma μ hQ g u x*localGamma μ hQ f v x := by + dsimp only + filter_upwards [ + ae_restrict_of_ae (localGamma_add_right μ hQ u + (SobolevSpace.product μ hQ f gv A F) (SobolevSpace.product μ hQ g fv B D)), + ae_restrict_of_ae (localGamma_add_right μ hQ v + (SobolevSpace.product μ hQ f gu A E) (SobolevSpace.product μ hQ g fu B C)), + ae_restrict_of_ae (localGamma_product_right μ hQ u f gv A F hf hgvB), + ae_restrict_of_ae (localGamma_product_right μ hQ u g fv B D hg hfvB), + ae_restrict_of_ae (localGamma_product_right μ hQ v f gu A E hf hguB), + ae_restrict_of_ae (localGamma_product_right μ hQ v g fu B C hg hfuB), + ae_restrict_of_ae (localGamma_product_left μ hQ f g uv A B hf hg), + ae_restrict_of_ae (localGamma_comm μ hQ u f),ae_restrict_of_ae (localGamma_comm μ hQ u g), + ae_restrict_of_ae (localGamma_comm μ hQ v f),ae_restrict_of_ae (localGamma_comm μ hQ v g), + hfu,hfv,hgu,hgv] with x ha hb hc hd he hff hhf huf hug hvf hvg hfu hfv hgu hgv + dsimp only [localHessianAction] + rw [ha,hb,hc,hd,he,hff,hhf,huf,hug,hvf,hvg,hfu,hfv,hgu,hgv] + ring + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/HessianPotentialSquare.lean b/lean/OAI/Geometry/RCD/Sobolev/HessianPotentialSquare.lean new file mode 100644 index 0000000000000000000000000000000000000000..dc78c09f736d6301ce909eddb0d073c2151c0402 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/HessianPotentialSquare.lean @@ -0,0 +1,40 @@ +import OAI.Geometry.RCD.Sobolev.HessianPotentialProduct + +namespace OAI + +/-! # Hessians of the quadratic perturbations used in Bochner -/ + +open Set Filter MeasureTheory +open scoped NNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +/-- The quadratic perturbation has the expected rank-one second derivative. -/ +theorem localHessianAction_potential_square {Ω : Set X} + (g u v gu gv uv : SobolevSpace μ hQ) (B E F : ℝ≥0) + (hg : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ g x|≤B) + (hguB : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ gu x|≤E) + (hgvB : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ gv x|≤F) + (hgu : SobolevSpace.toLp μ hQ gu =ᵐ[μ.restrict Ω] localGamma μ hQ g u) + (hgv : SobolevSpace.toLp μ hQ gv =ᵐ[μ.restrict Ω] localGamma μ hQ g v) : + localHessianAction μ hQ (SobolevSpace.product μ hQ g g B B) u v + ((2 : ℝ) • SobolevSpace.product μ hQ g gu B E) + ((2 : ℝ) • SobolevSpace.product μ hQ g gv B F) uv =ᵐ[μ.restrict Ω] fun x => + 2*SobolevSpace.toLp μ hQ g x*localHessianAction μ hQ g u v gu gv uv x+ + 2*localGamma μ hQ g u x*localGamma μ hQ g v x := by + have h := localHessianAction_potential_product μ hQ g g u v gu gv gu gv uv + B B E F E F hg hg hguB hgvB hguB hgvB hgu hgv hgu hgv + dsimp only at h + rw [← two_smul ℝ (SobolevSpace.product μ hQ g gu B E), + ← two_smul ℝ (SobolevSpace.product μ hQ g gv B F)] at h + exact h.mono fun x hx => by rw [hx]; ring + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/HessianScaledVelocity.lean b/lean/OAI/Geometry/RCD/Sobolev/HessianScaledVelocity.lean new file mode 100644 index 0000000000000000000000000000000000000000..e065eaf7975ff80c67c247b25a284a44dc84572c --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/HessianScaledVelocity.lean @@ -0,0 +1,54 @@ +import OAI.Geometry.RCD.Sobolev.HessianVelocityPolarization + +namespace OAI + +/-! # Physical scaling of the velocity and osmotic Hessian directions -/ + +open Set Filter MeasureTheory +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) (Q : QuadraticCheegerEnergy μ) + +theorem localHessianAction_scaled_diagonal (f u fu uu : SobolevSpace μ Q) (c : ℝ) : + localHessianAction μ Q f (c • u) (c • u) (c • fu) (c • fu) ((c^2) • uu) + =ᵐ[μ] fun x => c^2*localHessianAction μ Q f u u fu fu uu x := by + filter_upwards [localGamma_smul_left μ Q c u (c • fu), + localGamma_smul_right μ Q c u fu,localGamma_smul_right μ Q (c^2) f uu] + with x h₁ h₂ h₃ + dsimp only [localHessianAction] + rw [h₁,h₂,h₃] + ring + +theorem localHessianAction_scaled_velocity + (f u v fu fv uu vv uv : SobolevSpace μ Q) (c : ℝ) : + (fun x => localHessianAction μ Q f (c • (v-u)) (c • (v-u)) + (c • (fv-fu)) (c • (fv-fu)) ((c^2) • (uu+vv-(2:ℝ) • uv)) x - + localHessianAction μ Q f (c • (v+u)) (c • (v+u)) + (c • (fv+fu)) (c • (fv+fu)) ((c^2) • (uu+vv+(2:ℝ) • uv)) x) =ᵐ[μ] + fun x => -4*c^2*localHessianAction μ Q f u v fu fv uv x := by + filter_upwards [localHessianAction_scaled_diagonal μ Q f (v-u) (fv-fu) + (uu+vv-(2:ℝ) • uv) c, + localHessianAction_scaled_diagonal μ Q f (v+u) (fv+fu) (uu+vv+(2:ℝ) • uv) c, + localHessianAction_velocity_polarization μ Q f u v fu fv uu vv uv] + with x h₁ h₂ h₃ + rw [h₁,h₂,← mul_sub,h₃] + ring + +theorem localGamma_scaled_square_rep {Ω : Set X} + (u G : SobolevSpace μ Q) (c : ℝ) + (hG : SobolevSpace.toLp μ Q G =ᵐ[μ.restrict Ω] localGamma μ Q u u) : + SobolevSpace.toLp μ Q ((c^2) • G) =ᵐ[μ.restrict Ω] + localGamma μ Q (c • u) (c • u) := by + filter_upwards [hG,ae_restrict_of_ae (Lp.coeFn_smul (c^2) (SobolevSpace.toLp μ Q G)), + ae_restrict_of_ae (localGamma_smul_left μ Q c u (c • u)), + ae_restrict_of_ae (localGamma_smul_right μ Q c u u)] with x h₁ h₂ h₃ h₄ + simp only [map_smul,Pi.smul_apply,smul_eq_mul] at h₂ ⊢ + rw [h₂,h₁,h₃,h₄] + ring + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/HessianSpanCommutator.lean b/lean/OAI/Geometry/RCD/Sobolev/HessianSpanCommutator.lean new file mode 100644 index 0000000000000000000000000000000000000000..e6b302fabd5d5d7729549d1527d42a887f54d6fa --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/HessianSpanCommutator.lean @@ -0,0 +1,110 @@ +import OAI.Geometry.RCD.Sobolev.HessianActionInput +import OAI.Geometry.RCD.Sobolev.HessianCommutatorEnergy + +namespace OAI + +/-! # The finite Poisson-span commutator with the original Bochner masses -/ + +open Set Metric MeasureTheory +open scoped NNReal ENNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +/-- The Hessian action estimate yields the actual commutator +error and keeps the full shifted and ordinary Bochner masses explicit. -/ +theorem LocalPoissonHessianActionInput.span_commutator_directional + {K : ℝ} {n : ℕ} {hX : NoncollapsedRCD K n X} + (hinput : LocalPoissonHessianActionInput hX) + {κ : ℝ} (hκ : 0 ≤ κ) (hK : -κ ≤ K) + (p : X) (r : ℝ) (hr : 0 < r) (L : ℝ≥0) + (U : Euclidean (n + 2) →L[ℝ] SobolevSpace (hausdorff n X) hX.quadratic) + (ell : Euclidean (n + 2) →ₗ[ℝ] ℝ) + (hU : ∀ v, IsConstantLaplacianOn (hausdorff n X) hX.quadratic + (ball p (8 * r)) (U v) (ell v)) + (hgrad : ∀ v, ∀ᵐ x ∂(hausdorff n X).restrict (ball p (8 * r)), + localGamma (hausdorff n X) hX.quadratic (U v) (U v) x ≤ (L : ℝ) ^ 2 * ‖v‖ ^ 2) : + ∃ M : PositiveBilinearMeasure X (Euclidean (n + 2)), + (∀ v, Nonempty (LocalHarmonicEnergy (hausdorff n X) hX.quadratic U M κ p r L v)) ∧ + ShiftedBochnerLowerBound M ((hausdorff n X).restrict (ball p (2 * r))) ell n ∧ + ∀ t : ℝ, 0 < t → t ≤ 2 * r → + ∃ G : ∀ v w, LocalHessianPairing (hausdorff n X) hX.quadratic (ball p t) (U v) (U w), + ∀ v w z (Cv Cw Cz : ℝ), 0 ≤ Cv → 0 ≤ Cw → 0 ≤ Cz → + (∀ᵐ x ∂(hausdorff n X).restrict (ball p t), + localGamma (hausdorff n X) hX.quadratic (U v) (U v) x ≤ Cv ^ 2) → + (∀ᵐ x ∂(hausdorff n X).restrict (ball p t), + localGamma (hausdorff n X) hX.quadratic (U w) (U w) x ≤ Cw ^ 2) → + (∀ᵐ x ∂(hausdorff n X).restrict (ball p t), + localGamma (hausdorff n X) hX.quadratic (U z) (U z) x ≤ Cz ^ 2) → + (∫ x in ball p t, + (localGamma (hausdorff n X) hX.quadratic (U w) (G v z).mixed x - + localGamma (hausdorff n X) hX.quadratic (U v) (G w z).mixed x - + localGamma (hausdorff n X) hX.quadratic (U w) (U z) x) ^ 2 ∂hausdorff n X) ≤ + 2 * ((Cw ^ 2 * Cz ^ 2) * + ((M.measure v).real (ball p t) - + (2 * ell v - (n : ℝ)) * (hausdorff n X).real (ball p t))) + + 2 * ((Cv ^ 2 * Cz ^ 2) * (M.measure w).real (ball p t)) := by + obtain ⟨M, hM, hshift, hpairs⟩ := hinput κ hκ hK p r hr L U ell hU hgrad + refine ⟨M, hM, hshift, ?_⟩ + intro t ht htr + obtain ⟨G, hG⟩ := hpairs t ht htr + refine ⟨G, ?_⟩ + intro v w z Cv Cw Cz hCv hCw hCz hv hw hz + obtain ⟨hF, hDF⟩ := hG v w z 1 + obtain ⟨hV, hDV⟩ := hG w v z 0 + specialize hDF Cw Cz hCw hCz hw hz + specialize hDV Cv Cz hCv hCz hv hz + simp only [one_mul, one_pow, mul_one] at hF hDF + simp only [zero_mul, mul_zero, zero_pow (by norm_num : (2 : ℕ) ≠ 0), sub_zero] at hV hDV + exact local_hessian_commutator_energy (hausdorff n X) hX.quadratic + (G v w) (G w v) (G v z) (G w z) hF hV hDF hDV + +/-- The uniform span bound follows by using its common gradient constant. -/ +theorem LocalPoissonHessianActionInput.span_commutator + {K : ℝ} {n : ℕ} {hX : NoncollapsedRCD K n X} + (hinput : LocalPoissonHessianActionInput hX) + {κ : ℝ} (hκ : 0 ≤ κ) (hK : -κ ≤ K) + (p : X) (r : ℝ) (hr : 0 < r) (L : ℝ≥0) + (U : Euclidean (n + 2) →L[ℝ] SobolevSpace (hausdorff n X) hX.quadratic) + (ell : Euclidean (n + 2) →ₗ[ℝ] ℝ) + (hU : ∀ v, IsConstantLaplacianOn (hausdorff n X) hX.quadratic + (ball p (8 * r)) (U v) (ell v)) + (hgrad : ∀ v, ∀ᵐ x ∂(hausdorff n X).restrict (ball p (8 * r)), + localGamma (hausdorff n X) hX.quadratic (U v) (U v) x ≤ (L : ℝ) ^ 2 * ‖v‖ ^ 2) : + ∃ M : PositiveBilinearMeasure X (Euclidean (n + 2)), + (∀ v, Nonempty (LocalHarmonicEnergy (hausdorff n X) hX.quadratic U M κ p r L v)) ∧ + ShiftedBochnerLowerBound M ((hausdorff n X).restrict (ball p (2 * r))) ell n ∧ + ∀ t : ℝ, 0 < t → t ≤ 2 * r → + ∃ G : ∀ v w, LocalHessianPairing (hausdorff n X) hX.quadratic (ball p t) (U v) (U w), + ∀ v w z, + (∫ x in ball p t, + (localGamma (hausdorff n X) hX.quadratic (U w) (G v z).mixed x - + localGamma (hausdorff n X) hX.quadratic (U v) (G w z).mixed x - + localGamma (hausdorff n X) hX.quadratic (U w) (U z) x) ^ 2 ∂hausdorff n X) ≤ + 2 * (((L : ℝ) ^ 4 * ‖w‖ ^ 2 * ‖z‖ ^ 2) * + ((M.measure v).real (ball p t) - + (2 * ell v - (n : ℝ)) * (hausdorff n X).real (ball p t))) + + 2 * (((L : ℝ) ^ 4 * ‖v‖ ^ 2 * ‖z‖ ^ 2) * (M.measure w).real (ball p t)) := by + obtain ⟨M, hM, hshift, hpairs⟩ := hinput.span_commutator_directional hκ hK p r hr L U ell hU hgrad + refine ⟨M, hM, hshift, ?_⟩ + intro t ht htr + obtain ⟨G, hG⟩ := hpairs t ht htr + refine ⟨G, ?_⟩ + intro v w z + have hbound (a : Euclidean (n + 2)) : + ∀ᵐ x ∂(hausdorff n X).restrict (ball p t), + localGamma (hausdorff n X) hX.quadratic (U a) (U a) x ≤ ((L : ℝ) * ‖a‖) ^ 2 := by + have hh := ae_restrict_of_ae_restrict_of_subset + (ball_subset_ball (show t ≤ 8 * r by linarith)) (hgrad a) + simpa only [mul_pow] using hh + have he := hG v w z ((L : ℝ) * ‖v‖) ((L : ℝ) * ‖w‖) ((L : ℝ) * ‖z‖) + (by positivity) (by positivity) (by positivity) (hbound v) (hbound w) (hbound z) + convert he using 1; ring + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/HessianSquareCross.lean b/lean/OAI/Geometry/RCD/Sobolev/HessianSquareCross.lean new file mode 100644 index 0000000000000000000000000000000000000000..ff2f400d20dbb03b86fa71872c5d08be92145b5b --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/HessianSquareCross.lean @@ -0,0 +1,45 @@ +import OAI.Geometry.RCD.Sobolev.HessianActionLocality + +namespace OAI + +/-! # The Hessian of a square in an arbitrary regular direction -/ + +open Set Filter MeasureTheory +open scoped NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +theorem localHessianAction_square_cross {Ω : Set X} + (f g Ffg Fgg P : SobolevSpace μ hQ) (A B : ℝ≥0) + (hf : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ f x|≤A) + (hF : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ Ffg x|≤B) + (hFr : SobolevSpace.toLp μ hQ Ffg =ᵐ[μ.restrict Ω] localGamma μ hQ f g) + (hPr : SobolevSpace.toLp μ hQ P =ᵐ[μ.restrict Ω] + localGamma μ hQ (SobolevSpace.product μ hQ f f A A) g) : + localHessianAction μ hQ (SobolevSpace.product μ hQ f f A A) g g P P Fgg + =ᵐ[μ.restrict Ω] fun x => + 2*SobolevSpace.toLp μ hQ f x*localHessianAction μ hQ f g g Ffg Ffg Fgg x+ + 2*(localGamma μ hQ f g x)^2 := by + have hP : SobolevSpace.toLp μ hQ P =ᵐ[μ.restrict Ω] + SobolevSpace.toLp μ hQ ((2:ℝ) • SobolevSpace.product μ hQ f Ffg A B) := by + filter_upwards [hPr,hFr, + ae_restrict_of_ae (localGamma_product_left μ hQ f f g A A hf hf), + ae_restrict_of_ae (SobolevSpace.product_coe μ hQ f Ffg A B hf hF), + ae_restrict_of_ae (Lp.coeFn_smul (2:ℝ) + (SobolevSpace.toLp μ hQ (SobolevSpace.product μ hQ f Ffg A B)))] + with x hp hr hprod hrep hsmul + simp only [map_smul,Pi.smul_apply,smul_eq_mul] at * + rw [hp,hprod,hsmul,hrep,hr] + ring + exact (localHessianAction_congr μ hQ EventuallyEq.rfl EventuallyEq.rfl + EventuallyEq.rfl hP hP EventuallyEq.rfl).trans + ((localHessianAction_potential_square μ hQ f g g Ffg Ffg Fgg A B B hf hF hF hFr hFr).mono + fun x hx => by rw [hx]; ring) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/HessianVelocityPolarization.lean b/lean/OAI/Geometry/RCD/Sobolev/HessianVelocityPolarization.lean new file mode 100644 index 0000000000000000000000000000000000000000..c14610072511cf66ef535bd6b57f4626a696a2ed --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/HessianVelocityPolarization.lean @@ -0,0 +1,75 @@ +import OAI.Geometry.RCD.Sobolev.HessianActionChain + +namespace OAI + +/-! # Velocity and logarithmic-density polarization of the Hessian action -/ + +open Set Filter MeasureTheory +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) (Q : QuadraticCheegerEnergy μ) + +theorem localGamma_sub_right (f g h : SobolevSpace μ Q) : + localGamma μ Q f (g-h) =ᵐ[μ] + fun x => localGamma μ Q f g x-localGamma μ Q f h x := by + filter_upwards [localGamma_comm μ Q f (g-h),localGamma_sub_left μ Q g h f, + localGamma_comm μ Q g f,localGamma_comm μ Q h f] with x h₁ h₂ h₃ h₄ + rw [h₁,h₂,h₃,h₄] + +theorem localHessianAction_velocity_polarization + (f u v fu fv uu vv uv : SobolevSpace μ Q) : + (fun x => localHessianAction μ Q f (v-u) (v-u) (fv-fu) (fv-fu) + (uu+vv-(2:ℝ) • uv) x - + localHessianAction μ Q f (v+u) (v+u) (fv+fu) (fv+fu) + (uu+vv+(2:ℝ) • uv) x) =ᵐ[μ] + fun x => -4*localHessianAction μ Q f u v fu fv uv x := by + filter_upwards [localGamma_sub_left μ Q v u (fv-fu), + localGamma_sub_right μ Q v fv fu,localGamma_sub_right μ Q u fv fu, + localGamma_add_left μ Q v u (fv+fu), + localGamma_add_right μ Q v fv fu,localGamma_add_right μ Q u fv fu, + localGamma_sub_right μ Q f (uu+vv) ((2:ℝ) • uv), + localGamma_add_right μ Q f (uu+vv) ((2:ℝ) • uv), + localGamma_smul_right μ Q 2 f uv] with x h₁ h₂ h₃ h₄ h₅ h₆ h₇ h₈ h₉ + dsimp only [localHessianAction] + rw [h₁,h₂,h₃,h₄,h₅,h₆,h₇,h₈,h₉] + ring + +theorem localGamma_velocity_square_reps {Ω : Set X} + (u v uu vv uv : SobolevSpace μ Q) + (huu : SobolevSpace.toLp μ Q uu =ᵐ[μ.restrict Ω] localGamma μ Q u u) + (hvv : SobolevSpace.toLp μ Q vv =ᵐ[μ.restrict Ω] localGamma μ Q v v) + (huv : SobolevSpace.toLp μ Q uv =ᵐ[μ.restrict Ω] localGamma μ Q u v) : + (SobolevSpace.toLp μ Q (uu+vv-(2:ℝ) • uv) =ᵐ[μ.restrict Ω] + localGamma μ Q (v-u) (v-u)) ∧ + (SobolevSpace.toLp μ Q (uu+vv+(2:ℝ) • uv) =ᵐ[μ.restrict Ω] + localGamma μ Q (v+u) (v+u)) := by + have hsum := Lp.coeFn_add (SobolevSpace.toLp μ Q uu) (SobolevSpace.toLp μ Q vv) + have hscale := Lp.coeFn_smul (2:ℝ) (SobolevSpace.toLp μ Q uv) + have hminus := Lp.coeFn_sub (SobolevSpace.toLp μ Q (uu+vv)) + (SobolevSpace.toLp μ Q ((2:ℝ) • uv)) + have hplus := Lp.coeFn_add (SobolevSpace.toLp μ Q (uu+vv)) + (SobolevSpace.toLp μ Q ((2:ℝ) • uv)) + have both : ∀ᵐ x ∂μ.restrict Ω, + SobolevSpace.toLp μ Q (uu+vv-(2:ℝ) • uv) x = localGamma μ Q (v-u) (v-u) x ∧ + SobolevSpace.toLp μ Q (uu+vv+(2:ℝ) • uv) x = localGamma μ Q (v+u) (v+u) x := by + filter_upwards [huu,hvv,huv,ae_restrict_of_ae hsum,ae_restrict_of_ae hscale, + ae_restrict_of_ae hminus,ae_restrict_of_ae hplus, + ae_restrict_of_ae (localGamma_sub_left μ Q v u (v-u)), + ae_restrict_of_ae (localGamma_sub_right μ Q v v u), + ae_restrict_of_ae (localGamma_sub_right μ Q u v u), + ae_restrict_of_ae (localGamma_add_left μ Q v u (v+u)), + ae_restrict_of_ae (localGamma_add_right μ Q v v u), + ae_restrict_of_ae (localGamma_add_right μ Q u v u), + ae_restrict_of_ae (localGamma_comm μ Q v u)] + with x h₁ h₂ h₃ h₄ h₅ h₆ h₇ h₈ h₉ h₁₀ h₁₁ h₁₂ h₁₃ h₁₄ + simp only [map_add,map_sub,map_smul,Pi.add_apply,Pi.sub_apply,Pi.smul_apply,smul_eq_mul] at h₄ h₅ h₆ h₇ ⊢ + rw [h₆,h₇,h₄,h₅,h₁,h₂,h₃,h₈,h₉,h₁₀,h₁₁,h₁₂,h₁₃,h₁₄] + constructor <;> ring + exact ⟨both.mono fun _ h => h.1,both.mono fun _ h => h.2⟩ + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/InhomogeneousSobolev.lean b/lean/OAI/Geometry/RCD/Sobolev/InhomogeneousSobolev.lean new file mode 100644 index 0000000000000000000000000000000000000000..d51a442d9894f333f7fac1fef4d2c71dabb7efc2 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/InhomogeneousSobolev.lean @@ -0,0 +1,132 @@ +import OAI.Geometry.RCD.Coordinates.NormalizedL2SobolevMoment + +namespace OAI + +/-! # Relative Dirichlet Sobolev inequality with an L² term + +Keeping the L² term removes the exterior-annulus condition. This is the +form used by the local harmonic boundedness iteration. +-/ + +open Set Metric MeasureTheory +open scoped ENNReal + +noncomputable section +namespace RegularPointCoordinates + +private theorem inhomogeneous_power_bound {I V T C c p : ℝ} + (hI : 0 ≤ I) (hV : 0 < V) (hC : 0 < C) (hc : 0 < c) (hp : 0 < p) + (hscale : c^2*T = V) (hbound : c^p*I ≤ C*V) : + I^(2/p) ≤ C^(2/p)*T*V^(2/p-1) := by + have hlam : (c^p)^(2/p) = c^2 := by + rw [← Real.rpow_mul hc.le] + have he : p*(2/p) = 2 := by field_simp + rw [he, Real.rpow_two] + have hpow := Real.rpow_le_rpow + (mul_nonneg (Real.rpow_nonneg hc.le _) hI) hbound (by positivity : 0≤2/p) + rw [Real.mul_rpow (Real.rpow_nonneg hc.le _) hI, hlam, + Real.mul_rpow hC.le hV.le] at hpow + have hvpow : V^(2/p) = V^(2/p-1)*V := by + calc + _ = V^((2/p-1)+1) := by congr 1; ring + _ = V^(2/p-1)*V^((1:ℝ)) := Real.rpow_add hV _ _ + _ = _ := by rw [Real.rpow_one] + apply (mul_le_mul_iff_right₀ (sq_pos_of_pos hc)).mp + calc + _ ≤ C^(2/p)*V^(2/p) := hpow + _ = C^(2/p)*V^(2/p-1)*(c^2*T) := by rw [hscale, hvpow]; ring + _ = _ := by ring + + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +/-- A fixed exponent above two, with an inhomogeneous energy term, at +bounded rescaled curvature. No exterior-annulus assumption is needed. -/ +theorem NoncollapsedRCD.inhomogeneous_dirichlet_sobolev {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (hn : 2 ≤ n) : + ∃ p C : ℝ, 2 < p ∧ 0 < C ∧ ∀ (x : X) (R : ℝ), 0 < R → -1 ≤ K*R^2 → + ∀ w : SobolevSpace.dirichlet (hausdorff n X) hX.quadratic (ball x R), + IntegrableOn (fun y => |SobolevSpace.toLp (hausdorff n X) hX.quadratic w.val y|^p) + (ball x R) (hausdorff n X) ∧ + (∫ y in ball x R, |SobolevSpace.toLp (hausdorff n X) hX.quadratic w.val y|^p + ∂hausdorff n X)^(2/p) ≤ + C*((hausdorff n X).real (ball x R))^(2/p-1)* + (R^2*energyForm (hausdorff n X) hX.quadratic w.val w.val+ + ‖SobolevSpace.toLp (hausdorff n X) hX.quadratic w.val‖^2) := by + obtain ⟨p,C,hp,hC,hnormalized⟩ := hX.normalized_dirichlet_l2_moment hn + have hp0 : 0 < p := by linarith + refine ⟨p,C^(2/p),hp,Real.rpow_pos_of_pos hC _,?_⟩ + intro x R hR hcurv w + let μ := hausdorff n X + let u := SobolevSpace.toLp μ hX.quadratic w.val + let V := μ.real (ball x R) + let E := energyForm μ hX.quadratic w.val w.val + let T := R^2*E+‖u‖^2 + let I := ∫ y in ball x R, |u y|^p ∂μ + have hV : 0 < V := ENNReal.toReal_pos (hX.fullSupport x R hR).ne' + (hX.finiteOnBounded _ isBounded_ball).ne + have hE : 0 ≤ E := by + dsimp only [E] + rw [energyForm_self] + exact mul_nonneg (by norm_num) (SobolevSpace.energy_nonneg μ hX.quadratic w.val) + have hT : 0 ≤ T := add_nonneg (mul_nonneg (sq_nonneg R) hE) (sq_nonneg _) + have hI : 0 ≤ I := integral_nonneg fun y => Real.rpow_nonneg (abs_nonneg (u y)) _ + change IntegrableOn (fun y => |u y|^p) (ball x R) μ ∧ + I^(2/p) ≤ C^(2/p)*V^(2/p-1)*T + by_cases hTz : T = 0 + · have huz : u = 0 := norm_eq_zero.mp (sq_eq_zero_iff.mp (by + have hh : ‖u‖^2 ≤ T := le_add_of_nonneg_left (mul_nonneg (sq_nonneg R) hE) + exact le_antisymm (hTz ▸ hh) (sq_nonneg _))) + have hu0 : u =ᵐ[μ] fun _ => 0 := huz ▸ Lp.coeFn_zero _ _ _ + have hzero : (fun y => |u y|^p) =ᵐ[μ.restrict (ball x R)] fun _ => 0 := by + filter_upwards [ae_restrict_of_ae hu0] with y hy + simp only [hy, abs_zero, Real.zero_rpow hp0.ne'] + refine ⟨(integrable_zero _ _ _).congr hzero.symm, ?_⟩ + have hIz : I = 0 := (integral_congr_ae hzero).trans (integral_zero _ _) + rw [hIz, Real.zero_rpow (by positivity : (2/p:ℝ)≠0), hTz, mul_zero] + have hTpos : 0 < T := lt_of_le_of_ne hT (Ne.symm hTz) + let c := Real.sqrt (V/T) + have hc : 0 < c := Real.sqrt_pos.mpr (div_pos hV hTpos) + have hc2 : c^2 = V/T := Real.sq_sqrt (div_nonneg hV.le hTpos.le) + have hscale : c^2*T = V := by rw [hc2]; exact div_mul_cancel₀ V hTpos.ne' + let v : SobolevSpace.dirichlet μ hX.quadratic (ball x R) := c • w + have hEv : energyForm μ hX.quadratic v.val v.val = c^2*E := by + change energyForm μ hX.quadratic (c • w.val) (c • w.val) = _ + rw [energyForm_smul_left, energyForm_smul_right] + ring + have hUv : ‖SobolevSpace.toLp μ hX.quadratic v.val‖^2 = c^2*‖u‖^2 := by + change ‖SobolevSpace.toLp μ hX.quadratic (c • w.val)‖^2 = _ + rw [map_smul, norm_smul, Real.norm_eq_abs, abs_of_pos hc, mul_pow] + have hsum : R^2*energyForm μ hX.quadratic v.val v.val+ + ‖SobolevSpace.toLp μ hX.quadratic v.val‖^2 = V := by + rw [hEv,hUv] + calc + _ = c^2*T := by dsimp only [T]; ring + _ = V := hscale + have hEn : 0 ≤ R^2*energyForm μ hX.quadratic v.val v.val := by rw [hEv]; positivity + obtain ⟨hvi,hvb⟩ := hnormalized x R hR hcurv v + (by linarith [sq_nonneg ‖SobolevSpace.toLp μ hX.quadratic v.val‖]) + (by linarith [sq_nonneg ‖SobolevSpace.toLp μ hX.quadratic v.val‖]) + have hvrep : SobolevSpace.toLp μ hX.quadratic v.val =ᵐ[μ] fun y => c*u y := by + change SobolevSpace.toLp μ hX.quadratic (c • w.val) =ᵐ[μ] _ + rw [map_smul] + exact Lp.coeFn_smul _ _ + have hpowrep : (fun y => |SobolevSpace.toLp μ hX.quadratic v.val y|^p) =ᵐ[ + μ.restrict (ball x R)] fun y => c^p*|u y|^p := by + filter_upwards [ae_restrict_of_ae hvrep] with y hy + rw [hy,abs_mul,abs_of_pos hc,Real.mul_rpow hc.le (abs_nonneg _)] + have hui : IntegrableOn (fun y => |u y|^p) (ball x R) μ := + (integrable_const_mul_iff (isUnit_iff_ne_zero.mpr + (Real.rpow_pos_of_pos hc p).ne') _).mp (hvi.congr hpowrep) + have hmoment : c^p*I ≤ C*V := by + rw [← integral_const_mul, ← integral_congr_ae hpowrep] + exact hvb + refine ⟨hui, ?_⟩ + have hout := inhomogeneous_power_bound hI hV hC hc hp0 hscale hmoment + nlinarith only [hout] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/InnerBallCutoffSequence.lean b/lean/OAI/Geometry/RCD/Sobolev/InnerBallCutoffSequence.lean new file mode 100644 index 0000000000000000000000000000000000000000..8e63d684c3f096cdfe04527149462dcb0cd458a7 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/InnerBallCutoffSequence.lean @@ -0,0 +1,70 @@ +import OAI.Geometry.RCD.Sobolev.NestedBallCutoff +import Mathlib.MeasureTheory.Measure.Portmanteau + +namespace OAI + +/-! # Continuous inner approximations to a ball indicator -/ + +open Set Metric Filter MeasureTheory +open scoped Topology BoundedContinuousFunction NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] + +theorem inner_ball_lipschitz_cutoff_sequence (p : X) {R : ℝ} (hR : 0 χ m x) atTop + (𝓝 ((ball p R).indicator (fun _ => (1:ℝ)) x)) := by + let T : ℕ → ℝ := fun m => R*(1-1/((m+2:ℕ):ℝ)) + have hTR (m : ℕ) : T m 1/((m+2:ℕ):ℝ)) atTop (𝓝 0) := + tendsto_one_div_atTop_nhds_zero_nat.comp (tendsto_add_atTop_nat 2) + simpa only [sub_zero,mul_one] using + ((tendsto_const_nhds : Tendsto (fun _ : ℕ => (1:ℝ)) atTop (𝓝 1)).sub hd).const_mul R + let χ : ℕ → X →ᵇ ℝ := fun m => + ⟨⟨nestedBallCutoff p (T m) R,(nestedBallCutoff_lipschitz p (hTR m)).continuous⟩, + ⟨2,fun x y => by + rw [Real.dist_eq] + obtain ⟨hx0,hx1⟩ := nestedBallCutoff_bounds p (T m) R x + obtain ⟨hy0,hy1⟩ := nestedBallCutoff_bounds p (T m) R y + exact abs_le.mpr ⟨by linarith,by linarith⟩⟩⟩ + let L : ℕ → ℝ≥0 := fun m => ⟨(R-T m)⁻¹,inv_nonneg.mpr (sub_pos.mpr (hTR m)).le⟩ + refine ⟨χ,L,fun m => nestedBallCutoff_lipschitz p (hTR m),fun m x => nestedBallCutoff_bounds p (T m) R x,?_,?_⟩ + · intro m x hx + exact nestedBallCutoff_eq_zero p (hTR m) (by + simpa only [mem_ball,not_lt,dist_comm] using hx) + · intro x + by_cases hx : x∈ball p R + · have hd : dist p x h.symm) + · have he (m : ℕ) : χ m x=0 := nestedBallCutoff_eq_zero p (hTR m) + (by simpa only [mem_ball,not_lt,dist_comm] using hx) + simp only [he,indicator_of_notMem hx] + exact tendsto_const_nhds + + +theorem inner_ball_cutoff_sequence (p : X) {R : ℝ} (hR : 0 χ m x) atTop + (𝓝 ((ball p R).indicator (fun _ => (1:ℝ)) x)) := by + obtain ⟨χ,_,_,hb,hz,hl⟩ := inner_ball_lipschitz_cutoff_sequence p hR + exact ⟨χ,hb,hz,hl⟩ + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/InnerBallMeasuredTests.lean b/lean/OAI/Geometry/RCD/Sobolev/InnerBallMeasuredTests.lean new file mode 100644 index 0000000000000000000000000000000000000000..797d74309cc1fc6f9335724da14559856714a389 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/InnerBallMeasuredTests.lean @@ -0,0 +1,48 @@ +import OAI.Geometry.RCD.Sobolev.PhysicalBallMeasuredTests + +namespace OAI + +/-! # Exact normalization by the smaller physical ball -/ + +open Set Metric Filter MeasureTheory +open scoped Topology BoundedContinuousFunction +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + +private theorem cancel_common_mass {a : ℝ} (ha : a≠0) (b c : ℝ) : + (a⁻¹*b)/(a⁻¹*c)=c⁻¹*b := by + rw [div_eq_mul_inv,mul_inv_rev,inv_inv] + calc a⁻¹*b*(c⁻¹*a) = (a⁻¹*a)*(c⁻¹*b) := by ring + _ = c⁻¹*b := by rw [inv_mul_cancel₀ ha,one_mul] + +theorem inner_ball_measured_test_tendsto {n : ℕ} {S ρ : ℝ} + (hS : 0 (μ.real (ball (p k) (ρ*r k)))⁻¹* + ∫ x in ball (p k) (ρ*r k), φ (v k x) ∂μ) atTop + (𝓝 ((volume.real (ball (0:Euclidean n) ρ))⁻¹*(∫ z in ball 0 ρ, φ z))) := by + have ht := physical_ball_measured_test_tendsto hS hρ hρS hr hv hfin hpos hε φ + have hm := physical_ball_measured_test_tendsto hS hρ hρS hr hv hfin hpos hε (1 : Euclidean n →ᵇ ℝ) + change Tendsto (fun k => (μ.real (ball (p k) (S*r k)))⁻¹* + ∫ _ in ball (p k) (ρ*r k), (1:ℝ) ∂μ) atTop + (𝓝 ((volume.real (ball (0:Euclidean n) S))⁻¹*(∫ _ in ball (0:Euclidean n) ρ, (1:ℝ)))) at hm + simp only [setIntegral_const,smul_eq_mul,mul_one] at hm + have hVS : 0 cancel_common_mass (hpos k).ne' _ _) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/InnerProductVariation.lean b/lean/OAI/Geometry/RCD/Sobolev/InnerProductVariation.lean new file mode 100644 index 0000000000000000000000000000000000000000..c58d6b5b75e6ff37988af4f6c4b0215f5337b33f --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/InnerProductVariation.lean @@ -0,0 +1,50 @@ +import Mathlib.Analysis.InnerProductSpace.Calculus +import Mathlib.Analysis.Calculus.Deriv.Add +import Mathlib.Analysis.Asymptotics.AsymptoticEquivalent + +namespace OAI + +/-! # Differentiating a varying pairing from its frozen pairing + +Only continuity of the second vector is needed once its pairing against +the fixed first vector has a scalar derivative. +-/ + +open Filter Asymptotics +open scoped Topology + +namespace RegularPointCoordinates + +variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] + +/-- A scalar product rule that does not ask the second vector for a +vector-valued derivative. -/ +theorem hasDerivAt_inner_of_frozen {W Q : ℝ → E} {t : ℝ} {W' : E} {a : ℝ} + (hW : HasDerivAt W W' t) (hQ : ContinuousAt Q t) + (hfixed : HasDerivAt (fun s => inner ℝ (W t) (Q s)) a t) : + HasDerivAt (fun s => inner ℝ (W s) (Q s)) (inner ℝ W' (Q t)+a) t := by + let e : ℝ → ℝ := fun s => inner ℝ (W s-W t) (Q s-Q t) + have hsmall : (fun s => ‖Q s-Q t‖) =o[𝓝 t] (fun _ => (1:ℝ)) := by + apply (isLittleO_one_iff ℝ).mpr + simpa only [sub_self,norm_zero] using (hQ.tendsto.sub_const (Q t)).norm + have hprod : (fun s => ‖W s-W t‖*‖Q s-Q t‖) =o[𝓝 t] (fun s => s-t) := by + simpa only [mul_one] using hW.isBigO_sub.norm_left.mul_isLittleO hsmall + have he : e =o[𝓝 t] (fun s => s-t) := + (IsBigO.of_norm_le (fun s => norm_inner_le_norm (W s-W t) (Q s-Q t))).trans_isLittleO hprod + have hed : HasDerivAt e 0 t := by + apply HasDerivAt.of_isLittleO + simpa only [e,sub_self,inner_zero_left,smul_zero,sub_zero] using he + have hfirst := hW.inner ℝ (hasDerivAt_const t (Q t)) + have hd : HasDerivAt + (fun s => inner ℝ (W s) (Q t)+inner ℝ (W t) (Q s)-inner ℝ (W t) (Q t)+e s) + (inner ℝ W' (Q t)+a) t := by + simpa only [inner_zero_right,zero_add,add_zero] using! + ((hfirst.add hfixed).sub_const (inner ℝ (W t) (Q t))).add hed + convert hd using 1 + ext s + simp only [e,inner_sub_left,inner_sub_right] + ring + +end RegularPointCoordinates + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/InteriorBoundedGradientRepresentative.lean b/lean/OAI/Geometry/RCD/Sobolev/InteriorBoundedGradientRepresentative.lean new file mode 100644 index 0000000000000000000000000000000000000000..183b481dea5918246974746fd48e4c832139ded0 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/InteriorBoundedGradientRepresentative.lean @@ -0,0 +1,106 @@ +import OAI.Geometry.RCD.Sobolev.LocalGradientLipschitz +import OAI.Geometry.RCD.Sobolev.NestedBallCutoff + +namespace OAI + +/-! # Bounded gradient representatives between two concentric balls + +The cutoff gap, rather than the inner radius, controls the global +Lipschitz extension. This allows every strict interior fraction. +-/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped NNReal ENNReal Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem NoncollapsedRCD.interior_bounded_gradient_representative + (K : ℝ) (n : ℕ) (hn : 2 ≤ n) (hX : NoncollapsedRCD K n X) + (u : SobolevSpace (hausdorff n X) hX.quadratic) + (p : X) (R T : ℝ) (hRT : R χ x*SobolevSpace.toLp μ hX.quadratic u x := + SobolevSpace.cutoffCLM_coe μ hX.quadratic hχ hs hb hnon u + have hηG := SobolevSpace.minimalSlope_le_lipschitz μ hX.quadratic η hχ hη + let A := 2*(L:ℝ)^2+2*(M:ℝ)^2*((T-R)⁻¹)^2 + have hzg : ∀ᵐ x ∂μ, SobolevSpace.minimalSlope μ hX.quadratic z x ≤ Real.sqrt A := by + filter_upwards [minimalSlope_cutoffCLM_sq_le μ hX.quadratic u η hχ hs hb hnon hη, + hη,hM,hL,hηG,hzrep,SobolevSpace.minimalSlope_zero_on_level μ hX.quadratic z 0, + (Lp.coeFn_nonneg _).mpr (SobolevSpace.minimalSlope_nonneg μ hX.quadratic u), + (Lp.coeFn_nonneg _).mpr (SobolevSpace.minimalSlope_nonneg μ hX.quadratic η)] with + x hsq hr hMx hLx hηx hzx hzero hgu hge + apply Real.le_sqrt_of_sq_le + by_cases hx : dist p x ≤ T + · have hχsq : (SobolevSpace.toLp μ hX.quadratic η x)^2 ≤ 1 := by + rw [hr] + have hχb := nestedBallCutoff_bounds p R T x + nlinarith + have huG : (SobolevSpace.minimalSlope μ hX.quadratic u x)^2 ≤ (L:ℝ)^2 := + (sq_le_sq₀ hgu L.coe_nonneg).mpr (hLx hx) + have huF : (SobolevSpace.toLp μ hX.quadratic u x)^2 ≤ (M:ℝ)^2 := by + simpa only [sq_abs] using (sq_le_sq₀ (abs_nonneg (SobolevSpace.toLp μ hX.quadratic u x)) M.coe_nonneg).mpr (hMx hx) + have heG : (SobolevSpace.minimalSlope μ hX.quadratic η x)^2 ≤ ((T-R)⁻¹)^2 := + (sq_le_sq₀ hge (inv_nonneg.mpr (sub_pos.mpr hRT).le)).mpr hηx + apply hsq.trans + change _ ≤ 2*(L:ℝ)^2+2*(M:ℝ)^2*((T-R)⁻¹)^2 + calc + _ ≤ 2*1*(L:ℝ)^2+2*(M:ℝ)^2*((T-R)⁻¹)^2 := by gcongr + _ = _ := by ring + · have hχ0 : χ x = 0 := nestedBallCutoff_eq_zero p hRT (le_of_not_ge hx) + rw [hzero (hzx.trans (by rw [hχ0,zero_mul]))] + norm_num only [zero_pow,ne_eq,OfNat.ofNat_ne_zero,not_false_eq_true] + dsimp only [A] + positivity + obtain ⟨w,hw,hew⟩ := hX.lipschitz_of_bounded_gradient K n hn + (SobolevSpace.minimalSlope_isRelaxed μ hX.quadratic z) ⟨Real.sqrt A,Real.sqrt_nonneg A⟩ hzg + have hwM : ∀ᵐ x ∂μ, |w x| ≤ M := by + filter_upwards [hzrep,hew,hM] with x hx hwx hMx + rw [← hwx,hx,abs_mul] + by_cases hd : dist p x ≤ T + · calc |χ x| * |SobolevSpace.toLp μ hX.quadratic u x| ≤ 1*(M:ℝ) := + mul_le_mul (hb x) (hMx hd) (abs_nonneg _) (by positivity) + _ = M := one_mul _ + · rw [show χ x=0 from nestedBallCutoff_eq_zero p hRT (le_of_not_ge hd)] + simpa only [abs_zero,zero_mul] using M.coe_nonneg + have he : (fun x => min |w x| (M:ℝ)) = fun x => |w x| := + Measure.eq_of_ae_eq (hwM.mono fun x hx => min_eq_left hx) + (hw.continuous.abs.min continuous_const) hw.continuous.abs + refine ⟨w,hw,fun x => min_eq_left_iff.mp (congrFun he x),?_⟩ + filter_upwards [ae_restrict_of_ae hzrep,ae_restrict_of_ae hew, + ae_restrict_mem measurableSet_ball] with x hx hwx hball + have hχx : χ x=1 := nestedBallCutoff_eq_one p hRT + (by have hd : dist x p < R := hball + simpa only [dist_comm] using hd.le) + rw [hχx,one_mul] at hx + exact hx.symm.trans hwx + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/InteriorLipschitzTestProduct.lean b/lean/OAI/Geometry/RCD/Sobolev/InteriorLipschitzTestProduct.lean new file mode 100644 index 0000000000000000000000000000000000000000..a15bceed0d4eb48fd5c5c35bcfbf442c89476a50 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/InteriorLipschitzTestProduct.lean @@ -0,0 +1,82 @@ +import OAI.Geometry.RCD.Sobolev.MeasuredTestScaling + +namespace OAI + +/-! # Compactly supported tests of locally Lipschitz functions + +An exact bounded Lipschitz extension on the test support reduces products +to the bounded Lipschitz class used by measured approximation. +-/ + +open Set Metric +open scoped NNReal +noncomputable section +namespace RegularPointCoordinates + +theorem interior_lipschitz_test_product {n : ℕ} {R : ℝ} (hR : 0≤R) + {g ψ : Euclidean n → ℝ} {L M B : ℝ≥0} + (hg : LipschitzOnWith L g (closedBall 0 R)) (hψ : LipschitzWith M ψ) + (hψb : ∀ z, |ψ z|≤B) (hψ0 : ∀ z, R<‖z‖ → ψ z=0) : + ∃ C : ℝ≥0, 0 ψ z*g z) ∧ + ∀ z, |ψ z*g z|≤C := by + obtain ⟨F,hF,he⟩ := hg.extend_real + let A : ℝ≥0 := ⟨|g 0|+(L:ℝ)*R,by positivity⟩ + have hFb (z : Euclidean n) (hz : z∈closedBall 0 R) : |F z|≤A := by + have hd := hF.dist_le_mul z 0 + have hzR : ‖z‖≤R := by simpa only [mem_closedBall,dist_zero_right] using hz + rw [Real.dist_eq,← he (mem_closedBall_self hR),dist_zero_right] at hd + have ht := abs_add_le (F z-g 0) (g 0) + simp only [sub_add_cancel] at ht + change |F z|≤|g 0|+(L:ℝ)*R + nlinarith [mul_le_mul_of_nonneg_left hzR L.coe_nonneg] + let H := fun z => min (max (F z) (-(A:ℝ))) (A:ℝ) + have hH : LipschitzWith L H := (hF.max_const (-(A:ℝ))).min_const (A:ℝ) + have hHb (z : Euclidean n) : |H z|≤A := by + apply abs_le.mpr + exact ⟨le_min (le_max_right _ _) (by nlinarith [A.coe_nonneg]),min_le_right _ _⟩ + have hHeq : EqOn H g (closedBall 0 R) := by + intro z hz + dsimp only [H] + rw [max_eq_left (abs_le.mp (hFb z hz)).1,min_eq_left (abs_le.mp (hFb z hz)).2] + exact (he hz).symm + have heq : (fun z => ψ z*H z)=(fun z => ψ z*g z) := by + funext z + by_cases hz : z∈closedBall (0:Euclidean n) R + · rw [hHeq hz] + · have hzR : R<‖z‖ := by simpa only [mem_closedBall,dist_zero_right,not_le] using hz + simp only [hψ0 z hzR,zero_mul] + have hprod : LipschitzWith (A*M+B*L) (fun z => ψ z*H z) := by + apply LipschitzWith.of_dist_le_mul + intro x y + rw [Real.dist_eq] + have he : ψ x*H x-ψ y*H y=(ψ x-ψ y)*H x+ψ y*(H x-H y) := by ring + rw [he] + calc + _ ≤ |(ψ x-ψ y)*H x|+|ψ y*(H x-H y)| := abs_add_le _ _ + _ = |ψ x-ψ y| * |H x|+|ψ y| * |H x-H y| := by rw [abs_mul,abs_mul] + _ ≤ ((M:ℝ)*dist x y)*A+B*((L:ℝ)*dist x y) := by + gcongr + · simpa only [Real.dist_eq] using hψ.dist_le_mul x y + · exact hHb x + · exact hψb y + · simpa only [Real.dist_eq] using hH.dist_le_mul x y + _ = (A*M+B*L:ℝ≥0)*dist x y := by push_cast; ring + let C : ℝ≥0 := 1+B*A+(A*M+B*L) + refine ⟨C,by dsimp only [C]; positivity,?_,?_⟩ + · rw [← heq] + exact hprod.weaken (le_add_of_nonneg_left (by positivity)) + · intro z + have hb : |ψ z*H z|≤(B*A:ℝ≥0) := by + rw [abs_mul] + exact mul_le_mul (hψb z) (hHb z) (abs_nonneg _) B.coe_nonneg + have hez := congrFun heq z + rw [hez] at hb + have hba : B*A≤C := (le_add_of_nonneg_left (show (0:ℝ≥0)≤1 from zero_le_one)).trans + (le_add_of_nonneg_right (show (0:ℝ≥0)≤A*M+B*L from zero_le)) + exact hb.trans (by exact_mod_cast hba) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/InteriorSmoothTestBounds.lean b/lean/OAI/Geometry/RCD/Sobolev/InteriorSmoothTestBounds.lean new file mode 100644 index 0000000000000000000000000000000000000000..18f74bd80c3869c66c178f7378c69b745dceb638 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/InteriorSmoothTestBounds.lean @@ -0,0 +1,35 @@ +import OAI.Geometry.RCD.Sobolev.PoissonHarmonicCompactnessInput +import Mathlib.Analysis.Calculus.ContDiff.RCLike + +namespace OAI + +/-! # Fixed metric bounds for the interior smooth test class -/ + +open Set Metric +open scoped NNReal ContDiff +noncomputable section +namespace RegularPointCoordinates + +theorem InteriorSmoothTest.metric_bounds {n : ℕ} {S : ℝ} (hS : 0 δ⁻¹*euclideanQuadraticDefect n R z + have hg : ContDiff ℝ 2 g := contDiff_const.mul ((euclideanQuadraticDefect_smooth n R).of_le (by simp)) + have hgd (z v : Euclidean n) : fderiv ℝ g z v= + δ⁻¹*fderiv ℝ (euclideanQuadraticDefect n R) z v := by + dsimp only [g] + rw [fderiv_const_mul ((euclideanQuadraticDefect_smooth n R).differentiable (by simp) z)] + rfl + have hglap : (Δ g) x=δ⁻¹*(-2*(n:ℝ)) := by + change (Δ (δ⁻¹ • euclideanQuadraticDefect n R)) x=_ + rw [laplacian_smul δ⁻¹ ((euclideanQuadraticDefect_smooth n R).contDiffAt.of_le (by simp)), + euclideanQuadraticDefect_laplacian] + rfl + have hgg : (∑ i : Fin n, (fderiv ℝ g x (EuclideanSpace.single i 1))^2)= + (δ⁻¹)^2*(4*‖x‖^2) := by + simp_rw [hgd,mul_pow] + rw [← Finset.mul_sum,euclideanQuadraticDefect_gradient_sq] + have hP : ContDiff ℝ 2 boundaryTorsionProfile := boundaryTorsionProfile_smooth.of_le (by simp) + have hPG : ContDiff ℝ 2 (fun z => boundaryTorsionProfile (g z)) := by + simpa only [Function.comp_def] using hP.comp hg + have heq : euclideanInteriorTorsion n R δ=δ • (fun z => boundaryTorsionProfile (g z)) := by + funext z + simp only [euclideanInteriorTorsion,g,div_eq_inv_mul,Pi.smul_apply,smul_eq_mul] + rw [heq,laplacian_smul δ hPG.contDiffAt,laplacian_scalar_comp hP hg,hgg,hglap] + simp only [smul_eq_mul,g,div_eq_inv_mul] + field_simp + ring + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/InteriorTorsionLayer.lean b/lean/OAI/Geometry/RCD/Sobolev/InteriorTorsionLayer.lean new file mode 100644 index 0000000000000000000000000000000000000000..8da22fe8f90b22ca73c71038b3f3bf2daedd5686 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/InteriorTorsionLayer.lean @@ -0,0 +1,39 @@ +import OAI.Geometry.RCD.Sobolev.InteriorTorsionBounds + +namespace OAI + +/-! # Relating the quadratic torsion scale to a metric boundary layer -/ + +open Set Metric Laplacian +noncomputable section +namespace RegularPointCoordinates + +theorem interior_torsion_layer {n : ℕ} {R δ : ℝ} + (hR : 0 (1:ℝ)) u*f u + ∂volume.comap Subtype.val := by + rw [← integral_intervalExtension] + have he : (fun u => (Icc s t).indicator (fun _ => (1:ℝ)) u*intervalExtension f u) = + (Icc s t).indicator (intervalExtension f) := by + funext u + by_cases hu : u ∈ Icc s t <;> simp [hu] + rw [he,setIntegral_indicator measurableSet_Icc,inter_eq_right.mpr hsub] + +theorem weighted_energy_interval_weight_tendsto + {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) (Q : QuadraticCheegerEnergy μ) + (w : ℕ → X → ℝ) (v : X → ℝ) (hw : ∀ k, AEStronglyMeasurable (w k) μ) + {M : ℝ≥0} (hM : ∀ k, ∀ᵐ x ∂μ, ‖w k x‖ ≤ M) + (hc : ∀ᵐ x ∂μ, Tendsto (fun k => w k x) atTop (𝓝 (v x))) + {a b s t : ℝ} (hsub : Icc s t ⊆ Ioo a b) + (u : Ioo a b → SobolevSpace μ Q) + (hu : AEStronglyMeasurable u (volume.comap Subtype.val)) + {C : ℝ} (hC : 0 ≤ C) (hb : ∀ τ, ‖u τ‖ ≤ C) : + Tendsto (fun k => ∫ τ in Icc s t, intervalExtension + (fun q => weightedGamma μ Q (w k) (u q) (u q)) τ) atTop + (𝓝 (∫ τ in Icc s t, intervalExtension + (fun q => weightedGamma μ Q v (u q) (u q)) τ)) := by + have hfin : volume (Ioo a b) ≠ ∞ := + ((measure_mono Ioo_subset_Icc_self).trans_lt isCompact_Icc.measure_lt_top).ne + have hi : Integrable (fun _ : Ioo a b => (1:ℝ)) (volume.comap Subtype.val) := + (integrableOn_iff_comap_subtypeVal measurableSet_Ioo).mp (integrableOn_const hfin) + have hm : MeasurableSet {q : Ioo a b | (q:ℝ) ∈ Icc s t} := + measurableSet_Icc.preimage measurable_subtype_coe + have hθ : Integrable (fun q : Ioo a b => (Icc s t).indicator (fun _ => (1:ℝ)) q) + (volume.comap Subtype.val) := by + convert hi.indicator hm using 1 + funext q + simp only [indicator_apply,mem_ofPred_eq] + simpa only [integral_intervalExtension_subinterval hsub] using + weighted_energy_time_weight_tendsto μ Q (volume.comap Subtype.val) w v hw hM hc u hu + hC (Eventually.of_forall hb) _ hθ + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/L1DifferenceLimit.lean b/lean/OAI/Geometry/RCD/Sobolev/L1DifferenceLimit.lean new file mode 100644 index 0000000000000000000000000000000000000000..ed3ae8f12acc26ccdba5021f8617d9cfa3e9adae --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/L1DifferenceLimit.lean @@ -0,0 +1,58 @@ +import OAI.Geometry.RCD.Sobolev.HessianL1MassBound + +namespace OAI + +/-! # Differences and density bounds pass through L1 approximation -/ + +open Set Filter MeasureTheory +open scoped Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MeasurableSpace X] (μ : Measure X) + +theorem integral_abs_difference_tendsto_of_L1_error (F G : ℕ → X → ℝ) + (hF : ∀ k, Integrable (F k) μ) (hG : ∀ k, Integrable (G k) μ) + (I J : Lp ℝ 1 μ) + (hI : Tendsto (fun k => ∫ x, |F k x-I x| ∂μ) atTop (𝓝 0)) + (hJ : Tendsto (fun k => ∫ x, |G k x-J x| ∂μ) atTop (𝓝 0)) : + Tendsto (fun k => ∫ x, |F k x-G k x| ∂μ) atTop + (𝓝 (∫ x, |I x-J x| ∂μ)) := by + have h := (L1_tendsto_of_integral_abs μ F hF I hI).dist + (L1_tendsto_of_integral_abs μ G hG J hJ) + have he (k : ℕ) : dist ((hF k).toL1 (F k)) ((hG k).toL1 (G k)) = + ∫ x, |F k x-G k x| ∂μ := by + rw [L1.dist_eq_integral_dist] + apply integral_congr_ae + filter_upwards [(hF k).coeFn_toL1,(hG k).coeFn_toL1] with x hx hy + rw [hx,hy,Real.dist_eq] + simpa only [he,L1.dist_eq_integral_dist,Real.dist_eq] using h + +theorem L1_difference_density_young_bound [IsFiniteMeasure μ] + (F G : ℕ → X → ℝ) (hF : ∀ k, Integrable (F k) μ) (hG : ∀ k, Integrable (G k) μ) + (I J : Lp ℝ 1 μ) + (hI : Tendsto (fun k => ∫ x, |F k x-I x| ∂μ) atTop (𝓝 0)) + (hJ : Tendsto (fun k => ∫ x, |G k x-J x| ∂μ) atTop (𝓝 0)) + (c : X → ℝ) (hc : Integrable c μ) (B a : ℝ) + (hb : ∀ k, ∀ᵐ x ∂μ, (F k x-G k x)^2 ≤ B^2*c x) : + 4*a*(∫ x, |I x-J x| ∂μ) ≤ 4*a^2*μ.real univ+B^2*(∫ x, c x ∂μ) := by + have hl := (integral_abs_difference_tendsto_of_L1_error μ F G hF hG I J hI hJ).const_mul (4*a) + apply le_of_tendsto hl + apply Eventually.of_forall + intro k + have hp : ∀ᵐ x ∂μ, 4*a*|F k x-G k x| ≤ 4*a^2+B^2*c x := by + filter_upwards [hb k] with x hx + nlinarith only [hx,sq_nonneg (2*a-|F k x-G k x|),sq_abs (F k x-G k x)] + have hh := integral_mono_ae (((hF k).sub (hG k)).abs.const_mul (4*a)) + ((integrable_const (4*a^2)).add (hc.const_mul (B^2))) hp + have ha := integral_add (integrable_const (4*a^2)) (hc.const_mul (B^2)) + simp only [Pi.add_apply,Pi.sub_apply] at hh + rw [ha,integral_const_mul,integral_const_mul,integral_const] at hh + rw [integral_const_mul] at hh + simp only [smul_eq_mul] at hh + nlinarith only [hh] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/L1LimitLocalization.lean b/lean/OAI/Geometry/RCD/Sobolev/L1LimitLocalization.lean new file mode 100644 index 0000000000000000000000000000000000000000..e6d9583560f5f8b291de324c7b2f021a6a63de5b --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/L1LimitLocalization.lean @@ -0,0 +1,66 @@ +import OAI.Geometry.RCD.Sobolev.HessianL1LimitUniqueness + +namespace OAI + +/-! # Bounded localization of strong L1 limits -/ + +open Set Filter MeasureTheory +open scoped Topology NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MeasurableSpace X] (μ : Measure X) + +theorem integral_abs_bdd_mul_tendsto_zero (F : ℕ → X → ℝ) (f : X → ℝ) + (hF : ∀ k, Integrable (F k) μ) (hf : Integrable f μ) + (hlim : Tendsto (fun k => ∫ x, |F k x-f x| ∂μ) atTop (𝓝 0)) + (χ : X → ℝ) (hχ : AEStronglyMeasurable χ μ) (D : ℝ≥0) + (hD : ∀ᵐ x ∂μ, |χ x| ≤ D) : + Tendsto (fun k => ∫ x, |χ x*F k x-χ x*f x| ∂μ) atTop (𝓝 0) := by + have hb : ∀ᵐ x ∂μ, ‖χ x‖ ≤ D := by simpa only [Real.norm_eq_abs] using hD + apply squeeze_zero (fun k => integral_nonneg fun x => abs_nonneg _) _ + (by simpa only [mul_zero] using hlim.const_mul (D:ℝ)) + intro k + calc + _ = ∫ x, |χ x*(F k x-f x)| ∂μ := by + apply integral_congr_ae + exact Eventually.of_forall fun x => by + change |χ x*F k x-χ x*f x| = |χ x*(F k x-f x)| + rw [mul_sub] + _ ≤ ∫ x, (D:ℝ)*|F k x-f x| ∂μ := by + apply integral_mono_ae (((hF k).sub hf).bdd_mul hχ hb).abs + (((hF k).sub hf).abs.const_mul (D:ℝ)) + filter_upwards [hD] with x hx + rw [abs_mul] + exact mul_le_mul_of_nonneg_right hx (abs_nonneg _) + _ = _ := integral_const_mul _ _ + +theorem L1_limit_mul_eq (F G : ℕ → X → ℝ) (f g : X → ℝ) + (hF : ∀ k, Integrable (F k) μ) (hG : ∀ k, Integrable (G k) μ) + (hf : Integrable f μ) (hg : Integrable g μ) + (hFlim : Tendsto (fun k => ∫ x, |F k x-f x| ∂μ) atTop (𝓝 0)) + (hGlim : Tendsto (fun k => ∫ x, |G k x-g x| ∂μ) atTop (𝓝 0)) + (χ : X → ℝ) (hχ : AEStronglyMeasurable χ μ) (D : ℝ≥0) + (hD : ∀ᵐ x ∂μ, |χ x| ≤ D) + (heq : ∀ k, F k =ᵐ[μ] fun x => χ x*G k x) : + f =ᵐ[μ] fun x => χ x*g x := by + have hb : ∀ᵐ x ∂μ, ‖χ x‖ ≤ D := by simpa only [Real.norm_eq_abs] using hD + have hχg := hg.bdd_mul hχ hb + have hχlim := integral_abs_bdd_mul_tendsto_zero μ G g hG hg hGlim χ hχ D hD + have hFχ : Tendsto (fun k => ∫ x, |F k x-χ x*g x| ∂μ) atTop (𝓝 0) := by + apply hχlim.congr' + refine Eventually.of_forall fun k => integral_congr_ae ?_ + filter_upwards [heq k] with x hx + rw [hx] + have hFlp : Tendsto (fun k => ∫ x, |F k x-hf.toL1 f x| ∂μ) atTop (𝓝 0) := by + apply hFlim.congr' + refine Eventually.of_forall fun k => integral_congr_ae ?_ + filter_upwards [hf.coeFn_toL1] with x hx + rw [hx] + exact hf.coeFn_toL1.symm.trans + (L1_limit_eq_of_convergence μ F hF (hf.toL1 f) hFlp _ hχg hFχ) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/LeftDerivativeIntegral.lean b/lean/OAI/Geometry/RCD/Sobolev/LeftDerivativeIntegral.lean new file mode 100644 index 0000000000000000000000000000000000000000..2cce6a8952ebc3c03bd8d858de2ac0c0dfe32e53 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/LeftDerivativeIntegral.lean @@ -0,0 +1,41 @@ +import OAI.Geometry.RCD.Sobolev.LeftQuotientDerivative +import Mathlib.MeasureTheory.Integral.IntervalIntegral.AbsolutelyContinuousFun +import Mathlib.Analysis.Calculus.Rademacher + +namespace OAI + +/-! # Integrating a Lipschitz curve's prescribed left derivative -/ + +open Set Filter MeasureTheory +open scoped Topology NNReal +namespace RegularPointCoordinates + +theorem integral_eq_sub_of_lipschitz_left_derivative {F q : ℝ → ℝ} {L : ℝ≥0} + (hF : LipschitzWith L F) {a b : ℝ} (hab : a ≤ b) + (hq : ∀ x ∈ Ioo a b, HasDerivWithinAt F (q x) (Iio x) x) : + IntervalIntegrable q volume a b ∧ (∫ x in a..b, q x) = F b-F a := by + have hAC : AbsolutelyContinuousOnInterval F a b := + hF.lipschitzOnWith.absolutelyContinuousOnInterval + have heq : q =ᵐ[volume.restrict (Ioo a b)] deriv F := by + filter_upwards [ae_restrict_of_ae hF.ae_differentiableAt, + ae_restrict_mem measurableSet_Ioo] with x hx hxab + have hn : x ∉ Iio x := by simp + have hleft := (hasDerivWithinAt_iff_tendsto_slope' hn).mp (hq x hxab) + have hdiff := (hasDerivWithinAt_iff_tendsto_slope' hn).mp hx.hasDerivAt.hasDerivWithinAt + exact tendsto_nhds_unique hleft hdiff + have heqcc : q =ᵐ[volume.restrict (Icc a b)] deriv F := by + rwa [←restrict_Ioo_eq_restrict_Icc] + have heqoc : q =ᵐ[volume.restrict (Ioc a b)] deriv F := + ae_restrict_of_ae_restrict_of_subset Ioc_subset_Icc_self heqcc + have hi : IntervalIntegrable q volume a b := by + apply (intervalIntegrable_iff_integrableOn_Ioc_of_le hab).mpr + apply ((intervalIntegrable_iff_integrableOn_Ioc_of_le hab).mp hAC.intervalIntegrable_deriv).congr + exact heqoc.symm + refine ⟨hi,?_⟩ + rw [intervalIntegral.integral_of_le hab,integral_congr_ae heqoc, + ←intervalIntegral.integral_of_le hab] + exact hAC.integral_deriv_eq_sub + +end RegularPointCoordinates + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/LeftQuotientDerivative.lean b/lean/OAI/Geometry/RCD/Sobolev/LeftQuotientDerivative.lean new file mode 100644 index 0000000000000000000000000000000000000000..746c11d7dd7e0e849956aeda48d3d7fe5201d001 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/LeftQuotientDerivative.lean @@ -0,0 +1,34 @@ +import Mathlib + +namespace OAI + +/-! # A left difference quotient gives the left derivative -/ + +open Set Filter +open scoped Topology +namespace RegularPointCoordinates + +theorem hasLeftDeriv_of_backward_quotient (F : ℝ → ℝ) (s c : ℝ) + (h : Tendsto (fun t : ℝ => (F s-F (s-t))/t) (𝓝[>] (0:ℝ)) (𝓝 c)) : + HasDerivWithinAt F c (Iio s) s := by + have ht : Tendsto (fun t : ℝ => s-t) (𝓝[<] s) (𝓝[>] (0:ℝ)) := by + apply tendsto_nhdsWithin_iff.mpr + refine ⟨?_,?_⟩ + · simpa only [sub_self] using + ((tendsto_const_nhds : Tendsto (fun _ : ℝ => s) (𝓝[<] s) (𝓝 s)).sub + (show Tendsto (fun t : ℝ => t) (𝓝[<] s) (𝓝 s) from nhdsWithin_le_nhds)) + · filter_upwards [self_mem_nhdsWithin] with t ht + change 0 < s-t + exact sub_pos.mpr (show t < s from ht) + apply (hasDerivWithinAt_iff_tendsto_slope' (show s ∉ Iio s by simp)).mpr + apply (h.comp ht).congr' + filter_upwards [self_mem_nhdsWithin] with t ht + simp only [Function.comp_apply] + rw [slope_def_field] + rw [show s-(s-t)=t by ring] + rw [show F s-F t=-(F t-F s) by ring, show s-t=-(t-s) by ring] + simp only [div_neg,neg_div,neg_neg] + +end RegularPointCoordinates + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/LevelSetHolderStep.lean b/lean/OAI/Geometry/RCD/Sobolev/LevelSetHolderStep.lean new file mode 100644 index 0000000000000000000000000000000000000000..fcc3b43a6fb6d4e1c6080b0493c67df9e0256a4c --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/LevelSetHolderStep.lean @@ -0,0 +1,81 @@ +import OAI.Geometry.RCD.Sobolev.LocalHolderMoment +import OAI.Geometry.RCD.Sobolev.SobolevLevelChain + +namespace OAI + +/-! # The level-set recurrence from a cutoff moment estimate -/ + +open Set Filter MeasureTheory +open scoped ENNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MeasurableSpace X] (μ : Measure X) + +private theorem upper_level_square_integrable (u : Lp ℝ 2 μ) {k : ℝ} (hk : 0 ≤ k) : + Integrable (fun x => (max (u x-k) 0)^2) μ := by + exact ((upperLevelPart_lipschitz k).comp_memLp (upperLevelPart_zero hk) + (Lp.memLp u)).integrable_sq + +/-- A higher moment on the outer domain, together with agreement of the +cutoff on the inner domain, gives the superlinear level-set estimate. -/ +theorem level_set_holder_step {Ω B D : Set X} (hΩ : MeasurableSet Ω) + (hB : MeasurableSet B) (hBΩ : B ⊆ Ω) (hBD : B ⊆ D) (hfin : μ Ω < ∞) + (u z : Lp ℝ 2 μ) {k h p : ℝ} (hk : 0 ≤ k) (hkh : k < h) (hp : 2 < p) + (hrep : z =ᵐ[μ.restrict B] fun x => max (u x-k) 0) + (hi : IntegrableOn (fun x => |z x|^p) Ω μ) : + (∫ x in B, (max (u x-h) 0)^2 ∂μ) ≤ + (∫ x in Ω, |z x|^p ∂μ)^(2/p)* + ((∫ x in D, (max (u x-k) 0)^2 ∂μ)/(h-k)^2)^(1-2/p) := by + classical + let A := B ∩ {x | h < u x} + have hA : MeasurableSet A := hB.inter + (measurableSet_lt measurable_const (Lp.stronglyMeasurable u).measurable) + have hAB : A ⊆ B := inter_subset_left + have hAΩ : A ⊆ Ω := hAB.trans hBΩ + have hAf : μ A ≠ ∞ := (lt_of_le_of_lt (measure_mono hAΩ) hfin).ne + let : IsFiniteMeasure (μ.restrict A) := ⟨by simpa using hAf.lt_top⟩ + have hki := upper_level_square_integrable μ u hk + have hhi := upper_level_square_integrable μ u (hk.trans hkh.le) + have hrep' : ∀ᵐ x ∂μ, x ∈ B → z x = max (u x-k) 0 := (ae_restrict_iff' hB).mp hrep + have hsmall : (∫ x in B, (max (u x-h) 0)^2 ∂μ) ≤ ∫ x in A, (z x)^2 ∂μ := by + rw [← integral_indicator hB,← integral_indicator hA] + apply integral_mono_ae (hhi.indicator hB) ((Lp.memLp z).integrable_sq.indicator hA) + filter_upwards [hrep'] with x hx + by_cases hxB : x ∈ B + · by_cases hxu : h < u x + · have hxA : x ∈ A := ⟨hxB,hxu⟩ + rw [indicator_of_mem hxB,indicator_of_mem hxA,hx hxB, + max_eq_left (by linarith : 0 ≤ u x-h),max_eq_left (by linarith : 0 ≤ u x-k)] + nlinarith + · have hxA : x ∉ A := fun hh => hxu hh.2 + rw [indicator_of_mem hxB,indicator_of_notMem hxA, + max_eq_right (by linarith : u x-h ≤ 0),zero_pow (by decide)] + · rw [indicator_of_notMem hxB,indicator_of_notMem (fun hh => hxB hh.1)] + have hmeasure : μ.real A ≤ (∫ x in D, (max (u x-k) 0)^2 ∂μ)/(h-k)^2 := by + apply (le_div_iff₀ (sq_pos_of_pos (sub_pos.mpr hkh))).mpr + calc + μ.real A*(h-k)^2 = ∫ _x in A, (h-k)^2 ∂μ := by simp only [integral_const,smul_eq_mul,Measure.real,Measure.restrict_apply_univ] + _ ≤ ∫ x in A, (max (u x-k) 0)^2 ∂μ := by + apply integral_mono_ae (integrable_const _) hki.integrableOn + filter_upwards [ae_restrict_mem hA] with x hx + have hxu : h < u x := hx.2 + rw [max_eq_left (by linarith : 0 ≤ u x-k)] + nlinarith [sq_nonneg (u x-h)] + _ ≤ _ := setIntegral_mono_set hki.integrableOn + (Eventually.of_forall fun x => sq_nonneg _) (Eventually.of_forall (hAB.trans hBD)) + have hholder := square_setIntegral_le_higher_moment μ hΩ hA hAΩ hfin + (Lp.aestronglyMeasurable z).restrict hp hi + have hp0 : 0 < p := by linarith + have hα : 0 ≤ 1-2/p := by + have hh : 2/p < 1 := (div_lt_one hp0).mpr hp + linarith + exact hsmall.trans (hholder.trans (mul_le_mul_of_nonneg_left + (Real.rpow_le_rpow (measureReal_nonneg) hmeasure hα) (by positivity))) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/LevelTruncation.lean b/lean/OAI/Geometry/RCD/Sobolev/LevelTruncation.lean new file mode 100644 index 0000000000000000000000000000000000000000..effe1ce1b884163ae33fdbda6a465511e40c2465 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/LevelTruncation.lean @@ -0,0 +1,110 @@ +import OAI.Geometry.RCD.Sobolev.PositiveSourceTruncation + +namespace OAI + +/-! +# Two-level truncations in the Dirichlet space + +These bounded tests give the superlevel iteration for the torsion function. +Locality at both clipping levels proves the exact energy identity. +-/ + +open Set MeasureTheory +open scoped NNReal InnerProductSpace + +noncomputable section + +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] + (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +def levelClip (k l s : ℝ) : ℝ := positiveClip (l - k) (s - k) + +theorem levelClip_lipschitz (k l : ℝ) : LipschitzWith 1 (levelClip k l) := by + have ht : LipschitzWith 1 (fun x : ℝ => x - k) := by + apply LipschitzWith.of_dist_le_mul + intro x y + simp only [Real.dist_eq, NNReal.coe_one, one_mul] + rw [show x - k - (y - k) = x - y by ring] + change LipschitzWith 1 (positiveClip (l - k) ∘ fun x : ℝ => x - k) + simpa only [one_mul] using (positiveClip_lipschitz (l - k)).comp ht + +theorem levelClip_zero {k l : ℝ} (hk : 0 ≤ k) (hkl : k ≤ l) : levelClip k l 0 = 0 := by + simp only [levelClip, positiveClip, zero_sub, max_eq_right (neg_nonpos.mpr hk), + min_eq_left (sub_nonneg.mpr hkl)] + +def levelTruncation (u : SobolevSpace μ hQ) {k l : ℝ} (hk : 0 ≤ k) (hkl : k ≤ l) : + SobolevSpace μ hQ := + SobolevSpace.compContraction μ hQ (levelClip_lipschitz k l) (levelClip_zero hk hkl) u + +theorem levelTruncation_coe (u : SobolevSpace μ hQ) {k l : ℝ} + (hk : 0 ≤ k) (hkl : k ≤ l) : + SobolevSpace.toLp μ hQ (levelTruncation μ hQ u hk hkl) =ᵐ[μ] + fun x => levelClip k l (SobolevSpace.toLp μ hQ u x) := + (levelClip_lipschitz k l).coeFn_compLp (levelClip_zero hk hkl) _ + +theorem levelTruncation_mem_dirichlet (Ω : Set X) (u : SobolevSpace.dirichlet μ hQ Ω) + {k l : ℝ} (hk : 0 ≤ k) (hkl : k ≤ l) : + levelTruncation μ hQ u.val hk hkl ∈ SobolevSpace.dirichlet μ hQ Ω := + SobolevSpace.compContraction_mem_dirichlet μ hQ (levelClip_lipschitz k l) + (levelClip_zero hk hkl) Ω u.val u.property + +variable [BorelSpace X] [ProperSpace X] + +/-- The bounded two-level test loses no energy in pairing with its source. -/ +theorem levelTruncation_energy (u : SobolevSpace μ hQ) {k l : ℝ} + (hk : 0 ≤ k) (hkl : k ≤ l) : + energyForm μ hQ (levelTruncation μ hQ u hk hkl) (levelTruncation μ hQ u hk hkl) = + energyForm μ hQ u (levelTruncation μ hQ u hk hkl) := by + let T := levelTruncation μ hQ u hk hkl + have heq : localGamma μ hQ T T =ᵐ[μ] localGamma μ hQ u T := by + filter_upwards [levelTruncation_coe μ hQ u hk hkl, + localGamma_zero_on_level μ hQ T T 0, localGamma_zero_on_level μ hQ T u 0, + localGamma_zero_on_level μ hQ T T (l - k), localGamma_zero_on_level μ hQ T u (l - k), + localGamma_zero_on_level μ hQ (u - T) T k, localGamma_sub_left μ hQ u T T, + localGamma_comm μ hQ T u, Lp.coeFn_sub (SobolevSpace.toLp μ hQ u) + (SobolevSpace.toLp μ hQ T)] with x hx h00 h01 hl0 hl1 hk0 hsub hc hcoe + by_cases hlow : SobolevSpace.toLp μ hQ u x ≤ k + · have hz : SobolevSpace.toLp μ hQ T x = 0 := by + rw [hx] + simp only [levelClip, positiveClip, max_eq_right (sub_nonpos.mpr hlow), + min_eq_left (sub_nonneg.mpr hkl)] + rw [h00 hz, ← hc, h01 hz] + · by_cases hhigh : l ≤ SobolevSpace.toLp μ hQ u x + · have hz : SobolevSpace.toLp μ hQ T x = l - k := by + rw [hx] + simp only [levelClip, positiveClip, + max_eq_left (sub_nonneg.mpr (hkl.trans hhigh)), + min_eq_right (sub_le_sub_right hhigh k)] + rw [hl0 hz, ← hc, hl1 hz] + · have hz : SobolevSpace.toLp μ hQ (u - T) x = k := by + rw [map_sub, hcoe, Pi.sub_apply, hx] + simp only [levelClip, positiveClip] + rw [max_eq_left (by linarith), min_eq_left (by linarith)] + ring + have hn := hk0 hz + rw [hsub] at hn + linarith + rw [← integral_localGamma_eq_energyForm, ← integral_localGamma_eq_energyForm] + exact integral_congr_ae heq + +/-- A unit-source torsion solution satisfies the exact truncated energy +identity required for its superlevel iteration. -/ +theorem torsion_level_energy (Ω : Set X) (u : SobolevSpace.dirichlet μ hQ Ω) + (hsolve : ∀ φ : SobolevSpace.dirichlet μ hQ Ω, + energyForm μ hQ u.val φ.val = ∫ x in Ω, SobolevSpace.toLp μ hQ φ.val x ∂μ) + {k l : ℝ} (hk : 0 ≤ k) (hkl : k ≤ l) : + energyForm μ hQ (levelTruncation μ hQ u.val hk hkl) (levelTruncation μ hQ u.val hk hkl) = + ∫ x in Ω, levelClip k l (SobolevSpace.toLp μ hQ u.val x) ∂μ := by + rw [levelTruncation_energy] + let φ : SobolevSpace.dirichlet μ hQ Ω := + ⟨levelTruncation μ hQ u.val hk hkl, levelTruncation_mem_dirichlet μ hQ Ω u hk hkl⟩ + exact (hsolve φ).trans (integral_congr_ae + (ae_restrict_of_ae (levelTruncation_coe μ hQ u.val hk hkl))) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/LipschitzCompactSubsequence.lean b/lean/OAI/Geometry/RCD/Sobolev/LipschitzCompactSubsequence.lean new file mode 100644 index 0000000000000000000000000000000000000000..28abeb54499e95e7acc4b09e542ce2f34d6b3c54 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/LipschitzCompactSubsequence.lean @@ -0,0 +1,75 @@ +import OAI.Geometry.RCD.Sobolev.LipschitzMetricTransfer +import Mathlib.Topology.ContinuousMap.Bounded.ArzelaAscoli +import Mathlib.Topology.Sequences + +namespace OAI + +/-! # Uniform compactness of transferred Lipschitz data -/ + +open Set Filter +open scoped NNReal Topology BoundedContinuousFunction +noncomputable section +namespace RegularPointCoordinates +variable {Y : Type*} [MetricSpace Y] [CompactSpace Y] + +theorem exists_uniform_lipschitz_subsequence (f : ℕ → Y → ℝ) (L : ℝ≥0) (A : ℝ) + (hl : ∀ k, LipschitzWith L (f k)) (hb : ∀ k y, |f k y| ≤ A) : + ∃ (g : Y → ℝ) (a : ℕ → ℕ), StrictMono a ∧ LipschitzWith L g ∧ + (∀ y, |g y| ≤ A) ∧ TendstoUniformly (fun k => f (a k)) g atTop := by + let F : ℕ → Y →ᵇ ℝ := fun k => + BoundedContinuousFunction.mkOfCompact ⟨f k,(hl k).continuous⟩ + have hc : IsCompact (closure (range F)) := by + apply BoundedContinuousFunction.arzela_ascoli (Icc (-A) A) isCompact_Icc (range F) + · rintro q y ⟨k,rfl⟩ + exact abs_le.mp (hb k y) + · apply Metric.equicontinuous_of_continuity_modulus (fun r : ℝ => (L:ℝ)*r) + (by simpa only [mul_zero] using + (show Continuous (fun r : ℝ => (L:ℝ)*r) by fun_prop).tendsto (0:ℝ)) + rintro y z ⟨q,k,rfl⟩ + exact (hl k).dist_le_mul y z + obtain ⟨g,_,a,ha,hlim⟩ := hc.tendsto_subseq (fun k => subset_closure (mem_range_self k)) + have hp (y : Y) : Tendsto (fun k => f (a k) y) atTop (𝓝 (g y)) := + ((BoundedContinuousFunction.lipschitz_eval_const y).continuous.tendsto g).comp hlim + refine ⟨g,a,ha,?_,?_,?_⟩ + · apply LipschitzWith.of_dist_le_mul + intro y z + exact le_of_tendsto ((hp y).dist (hp z)) (Eventually.of_forall fun k => + (hl (a k)).dist_le_mul y z) + · intro y + exact le_of_tendsto (hp y).abs (Eventually.of_forall fun k => hb (a k) y) + · exact BoundedContinuousFunction.tendsto_iff_tendstoUniformly.mp hlim + +/-- On a fixed compact region, the limit retains a global Lipschitz extension. -/ +theorem exists_lipschitz_subsequence_on_compact {Z : Type*} [MetricSpace Z] + {s : Set Z} (hs : IsCompact s) (f : ℕ → Z → ℝ) (L : ℝ≥0) (A : ℝ) + (hl : ∀ k, LipschitzWith L (f k)) (hb : ∀ k z, z∈s → |f k z|≤A) : + ∃ (g : Z → ℝ) (a : ℕ → ℕ), StrictMono a ∧ LipschitzWith L g ∧ + (∀ z∈s, |g z|≤A) ∧ + ∀ ε : ℝ, 0<ε → ∀ᶠ k in atTop, ∀ z∈s, |f (a k) z-g z|<ε := by + classical + let : CompactSpace s := isCompact_iff_compactSpace.mp hs + obtain ⟨G,a,ha,hG,hGb,hlim⟩ := exists_uniform_lipschitz_subsequence + (fun k (z:s) => f k z) L A + (fun k => by simpa only [mul_one,Function.comp_def] using (hl k).comp (LipschitzWith.subtype_val s)) (fun k z => hb k z z.property) + let G0 : Z → ℝ := fun z => if h:z∈s then G ⟨z,h⟩ else 0 + have hG0 : LipschitzOnWith L G0 s := by + intro x hx y hy + simpa only [G0,dite_eq_left hx,dite_eq_left hy,Subtype.edist_eq] using hG ⟨x,hx⟩ ⟨y,hy⟩ + obtain ⟨g,hg,he⟩ := hG0.extend_real + have heq (z:s) : G z=g z := by simpa only [G0,dite_eq_left z.property] using he z.property + refine ⟨g,a,ha,hg,?_,?_⟩ + · intro z hz + rw [← heq ⟨z,hz⟩] + exact hGb ⟨z,hz⟩ + · intro ε hε + have hu := (Metric.tendstoUniformly_iff.mp hlim) ε hε + filter_upwards [hu] with k hk + intro z hz + have hh := hk ⟨z,hz⟩ + simpa only [Real.dist_eq,heq,abs_sub_comm] using hh + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/LipschitzDerivativeLimit.lean b/lean/OAI/Geometry/RCD/Sobolev/LipschitzDerivativeLimit.lean new file mode 100644 index 0000000000000000000000000000000000000000..ab10f095585f3da7e6a1b0ea571f4fe7f49374e7 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/LipschitzDerivativeLimit.lean @@ -0,0 +1,50 @@ +import OAI.Geometry.RCD.Sobolev.LeftDerivativeIntegral +import Mathlib.Analysis.Calculus.FDeriv.Measurable +import Mathlib.MeasureTheory.Integral.DominatedConvergence + +namespace OAI + +/-! # Passing a uniformly Lipschitz continuity equation to the limit -/ + +open Set Filter MeasureTheory +open scoped Topology NNReal +noncomputable section +namespace RegularPointCoordinates + +theorem lipschitz_derivative_limit (F : ℕ → ℝ → ℝ) (G : ℝ → ℝ) + (L : ℝ≥0) {a b A B : ℝ} (hab : a ≤ b) + (hF : ∀ k, LipschitzOnWith L (F k) (Icc a b)) + (ha : Tendsto (fun k => F k a) atTop (𝓝 A)) + (hb : Tendsto (fun k => F k b) atTop (𝓝 B)) + (hG : ∀ t ∈ Ioo a b, Tendsto (fun k => deriv (F k) t) atTop (𝓝 (G t))) : + IntervalIntegrable G volume a b ∧ (∫ t in a..b, G t) = B-A := by + let μ := volume.restrict (Ioc a b) + have hm k : AEStronglyMeasurable (deriv (F k)) μ := aestronglyMeasurable_deriv (F k) μ + have hd : ∀ᵐ t ∂μ, Tendsto (fun k => deriv (F k) t) atTop (𝓝 (G t)) := by + rw [show μ = volume.restrict (Ioo a b) from restrict_Ioo_eq_restrict_Ioc.symm] + filter_upwards [ae_restrict_mem measurableSet_Ioo] with t ht + exact hG t ht + have hbound k : ∀ᵐ t ∂μ, ‖deriv (F k) t‖ ≤ L := by + rw [show μ = volume.restrict (Ioo a b) from restrict_Ioo_eq_restrict_Ioc.symm] + filter_upwards [ae_restrict_mem measurableSet_Ioo] with t ht + exact norm_deriv_le_of_lipschitzOn (Icc_mem_nhds ht.1 ht.2) (hF k) + have hGm : AEStronglyMeasurable G μ := aestronglyMeasurable_of_tendsto_ae _ hm hd + have hGb : ∀ᵐ t ∂μ, ‖G t‖ ≤ L := by + filter_upwards [hd,ae_all_iff.mpr hbound] with t ht hb + exact le_of_tendsto ht.norm (Eventually.of_forall hb) + have hGi : Integrable G μ := (integrable_const (L:ℝ)).mono' hGm hGb + have hlim := tendsto_integral_of_dominated_convergence (fun _ : ℝ => (L:ℝ)) hm + (integrable_const (L:ℝ)) hbound hd + have he k : (∫ t, deriv (F k) t ∂μ) = F k b-F k a := by + have hFk : LipschitzOnWith L (F k) (uIcc a b) := by simpa only [uIcc_of_le hab] using hF k + have hh := hFk.absolutelyContinuousOnInterval.integral_deriv_eq_sub + rwa [intervalIntegral.integral_of_le hab] at hh + refine ⟨(intervalIntegrable_iff_integrableOn_Ioc_of_le hab).mpr hGi,?_⟩ + rw [intervalIntegral.integral_of_le hab] + exact tendsto_nhds_unique hlim ((hb.sub ha).congr' (Eventually.of_forall fun k => (he k).symm)) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/LipschitzDerivativeValueLimit.lean b/lean/OAI/Geometry/RCD/Sobolev/LipschitzDerivativeValueLimit.lean new file mode 100644 index 0000000000000000000000000000000000000000..68cc92976f2f99dcfb0bb732d1aabfa557458b80 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/LipschitzDerivativeValueLimit.lean @@ -0,0 +1,42 @@ +import Mathlib.Topology.MetricSpace.UniformConvergence +import Mathlib.Topology.UniformSpace.Ascoli +import Mathlib.Analysis.Calculus.UniformLimitsDeriv + +namespace OAI + +/-! # Identifying a derivative limit from common local Lipschitz bounds -/ + +open Set Filter +open scoped Topology NNReal UniformConvergence +noncomputable section +namespace RegularPointCoordinates + +theorem uniform_limit_of_common_lipschitz (F : ℕ → ℝ → ℝ) (f : ℝ → ℝ) + (L : ℝ≥0) {a b : ℝ} + (hL : ∀ k, LipschitzOnWith L (F k) (Icc a b)) + (hf : ∀ x ∈ Icc a b, Tendsto (fun k => F k x) atTop (𝓝 (f x))) : + TendstoUniformlyOn F f atTop (Icc a b) := by + let Fr k (x : Icc a b) := F k x + let fr (x : Icc a b) := f x + have he : Equicontinuous Fr := + (LipschitzWith.uniformEquicontinuous Fr L (fun k => (hL k).to_restrict)).equicontinuous + have hp : Tendsto Fr atTop (𝓝 fr) := tendsto_pi_nhds.mpr fun x => hf x x.property + have hu := (he.tendsto_uniformFun_iff_pi atTop fr).mpr hp + exact tendstoUniformlyOn_iff_restrict.mpr (UniformFun.tendsto_iff_tendstoUniformly.mp hu) + +theorem hasDerivAt_of_common_lipschitz_derivatives + (F : ℕ → ℝ → ℝ) (f v : ℝ → ℝ) (L : ℝ≥0) {a b t : ℝ} + (hL : ∀ k, LipschitzOnWith L (deriv (F k)) (Icc a b)) + (hF : ∀ k x, x ∈ Ioo a b → DifferentiableAt ℝ (F k) x) + (hf : ∀ x ∈ Ioo a b, Tendsto (fun k => F k x) atTop (𝓝 (f x))) + (hv : ∀ x ∈ Icc a b, Tendsto (fun k => deriv (F k) x) atTop (𝓝 (v x))) + (ht : t ∈ Ioo a b) : HasDerivAt f (v t) t := by + have hu := uniform_limit_of_common_lipschitz (fun k => deriv (F k)) v L hL hv + exact hasDerivAt_of_tendstoUniformlyOn isOpen_Ioo (hu.mono Ioo_subset_Icc_self) + (Eventually.of_forall fun k x hx => (hF k x hx).hasDerivAt) hf ht + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/LipschitzDirectionalIntegral.lean b/lean/OAI/Geometry/RCD/Sobolev/LipschitzDirectionalIntegral.lean new file mode 100644 index 0000000000000000000000000000000000000000..021d1d5b031b5f2775a0ceef2f823f375136808f --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/LipschitzDirectionalIntegral.lean @@ -0,0 +1,62 @@ +import OAI.Geometry.RCD.Sobolev.EuclideanEnergyRatios +import Mathlib.Analysis.Calculus.Rademacher +import Mathlib.Analysis.Calculus.LineDeriv.Basic +import Mathlib.MeasureTheory.Integral.DominatedConvergence + +namespace OAI + +/-! # Directional differences of Lipschitz functions under an integrable test -/ + +open Set Filter MeasureTheory +open scoped Topology NNReal +noncomputable section +namespace RegularPointCoordinates + +theorem lipschitz_directional_integrable {n : ℕ} {f ψ : Euclidean n → ℝ} + {L : ℝ≥0} (hf : LipschitzWith L f) (hψ : Integrable ψ volume) (v : Euclidean n) : + Integrable (fun x => fderiv ℝ f x v*ψ x) volume := by + apply (hψ.norm.const_mul ((L:ℝ)*‖v‖)).mono' + ((measurable_fderiv_apply_const ℝ f v).aestronglyMeasurable.mul hψ.aestronglyMeasurable) + apply Eventually.of_forall + intro x + simp only [Pi.mul_apply,norm_mul] + have hh := (fderiv ℝ f x).le_opNorm v + have hb : ‖fderiv ℝ f x‖≤(L:ℝ) := norm_fderiv_le_of_lipschitz ℝ hf + exact mul_le_mul_of_nonneg_right (hh.trans + (mul_le_mul_of_nonneg_right hb (norm_nonneg v))) (norm_nonneg _) + +theorem lipschitz_directional_integral_limit {n : ℕ} {f ψ : Euclidean n → ℝ} + {L : ℝ≥0} (hf : LipschitzWith L f) (hψ : Integrable ψ volume) + (v : Euclidean n) (r : ℕ → ℝ) (hr : ∀ k, 0 ∫ x, ((f (x+r k • v)-f x)/r k)*ψ x) atTop + (𝓝 (∫ x, (fderiv ℝ f x v)*ψ x)) := by + have ht : Tendsto r atTop (𝓝[>] 0) := + tendsto_nhdsWithin_iff.mpr ⟨hlim,Eventually.of_forall hr⟩ + apply tendsto_integral_of_dominated_convergence (fun x => ((L:ℝ)*‖v‖)*‖ψ x‖) + · intro k + exact (((hf.continuous.comp (by fun_prop)).sub hf.continuous).div_const _).aestronglyMeasurable.mul + hψ.aestronglyMeasurable + · exact hψ.norm.const_mul _ + · intro k + apply Eventually.of_forall + intro x + have hb := hf.dist_le_mul (x+r k • v) x + have hdist : dist (x+r k • v) x=r k*‖v‖ := by + simp [dist_eq_norm,norm_smul,abs_of_pos (hr k)] + rw [Real.dist_eq,hdist] at hb + have hd : |(f (x+r k • v)-f x)/r k|≤(L:ℝ)*‖v‖ := by + rw [abs_div,abs_of_pos (hr k)] + apply (div_le_iff₀ (hr k)).mpr + nlinarith only [hb] + rw [norm_mul,Real.norm_eq_abs] + exact (mul_le_mul_of_nonneg_right hd (norm_nonneg _)).trans_eq (by ring) + · filter_upwards [hf.ae_differentiableAt (μ := (volume : Measure (Euclidean n)))] with x hx + have hh := ((hx.hasFDerivAt.hasLineDerivAt v).tendsto_slope_zero_right.comp ht).mul_const (ψ x) + simpa only [Function.comp_def,smul_eq_mul,div_eq_mul_inv,mul_comm] using hh + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/LipschitzGreenPairing.lean b/lean/OAI/Geometry/RCD/Sobolev/LipschitzGreenPairing.lean new file mode 100644 index 0000000000000000000000000000000000000000..c920f77d18701b54b68bf32f9c968fb1b2b89a20 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/LipschitzGreenPairing.lean @@ -0,0 +1,87 @@ +import OAI.Geometry.RCD.Sobolev.LipschitzDirectionalIntegral +import OAI.Geometry.RCD.Harmonic.CompactDifferencePairing +import OAI.Geometry.RCD.Sobolev.InteriorSmoothTestBounds +import OAI.Geometry.RCD.Metric.EuclideanBallDensity + +namespace OAI + +/-! # Compact-test integration by parts for Lipschitz Euclidean functions -/ + +open Set Filter MeasureTheory Metric +open scoped Topology NNReal +noncomputable section +namespace RegularPointCoordinates + +theorem lipschitz_green_directional {n : ℕ} {f ψ : Euclidean n → ℝ} + {L : ℝ≥0} (hf : LipschitzWith L f) {S : ℝ} (hS : 0 f x*χ x + have hφ : Integrable φ volume := + (hf.continuous.mul χ.continuous).integrable_of_hasCompactSupport + (nestedBallCutoff_hasCompactSupport (0:Euclidean n) (by linarith : A 1/((k:ℝ)+1) + have hq (k : ℕ) : 0 ∫ x, ((f (x+q k • v)-f x)/q k)*ψ x) atTop + (𝓝 (-(∫ x, f x*fderiv ℝ ψ x v))) := by + convert hright using 1 + · funext k + rw [compact_difference_pairing hf.continuous hψ.1.continuous hψ.2.1] + exact integral_congr_ae (Eventually.of_forall (heq k)) + · congr 1 + rw [← integral_neg] + exact integral_congr_ae (Eventually.of_forall fun x => (hzero x).symm) + exact tendsto_nhds_unique hleft hright' + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/LipschitzGreenTrace.lean b/lean/OAI/Geometry/RCD/Sobolev/LipschitzGreenTrace.lean new file mode 100644 index 0000000000000000000000000000000000000000..34268846c1df7d92bf2b29777d5c297a9a546e79 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/LipschitzGreenTrace.lean @@ -0,0 +1,57 @@ +import OAI.Geometry.RCD.Sobolev.LipschitzGreenPairing +import OAI.Geometry.RCD.Sobolev.SmoothTestDirectional +import OAI.Geometry.RCD.Metric.EuclideanGreenIdentity + +namespace OAI + +/-! # The compact-test Laplacian pairing for a Lipschitz Euclidean function -/ + +open Set Filter MeasureTheory InnerProductSpace Laplacian +open scoped Topology NNReal +noncomputable section +namespace RegularPointCoordinates + +theorem euclidean_gradient_pairing_sum {n : ℕ} (f ψ : Euclidean n → ℝ) (x : Euclidean n) : + inner ℝ (gradient f x) (gradient ψ x)= + ∑ i : Fin n, fderiv ℝ f x (EuclideanSpace.single i 1)* + fderiv ℝ ψ x (EuclideanSpace.single i 1) := by + rw [← (EuclideanSpace.basisFun (Fin n) ℝ).sum_inner_mul_inner] + apply Finset.sum_congr rfl + intro i _ + simp only [EuclideanSpace.basisFun_apply,inner_gradient_left] + conv_lhs => rhs; rw [real_inner_comm,inner_gradient_left] + +theorem lipschitz_green_trace {n : ℕ} {f ψ : Euclidean n → ℝ} + {L : ℝ≥0} (hf : LipschitzWith L f) {S : ℝ} (hS : 0 EuclideanSpace.single i (1:ℝ) + let dψ := fun i : Fin n => fun x => fderiv ℝ ψ x (e i) + have hdψ (i : Fin n) : InteriorSmoothTest n S (dψ i) := hψ.fderiv_apply (e i) + have hi (i : Fin n) : Integrable (fun x => fderiv ℝ f x (e i)*dψ i x) volume := + lipschitz_directional_integrable hf + ((hdψ i).1.continuous.integrable_of_hasCompactSupport (hdψ i).2.1) (e i) + have hj (i : Fin n) : Integrable (fun x => f x*fderiv ℝ (dψ i) x (e i)) volume := + (hf.continuous.mul (((hdψ i).1.continuous_fderiv (by simp)).clm_apply + continuous_const)).integrable_of_hasCompactSupport + ((hdψ i).2.1.fderiv_apply ℝ (e i)).mul_left + have he (i : Fin n) : (∫ x, fderiv ℝ f x (e i)*dψ i x)= + -(∫ x, f x*fderiv ℝ (dψ i) x (e i)) := + lipschitz_green_directional hf hS (hdψ i) (e i) + simp_rw [euclidean_gradient_pairing_sum] + rw [integral_finsetSum _ (fun i _ => hi i)] + simp_rw [he] + rw [Finset.sum_neg_distrib,← integral_finsetSum _ (fun i _ => hj i)] + congr 1 + apply integral_congr_ae + apply Eventually.of_forall + intro x + rw [laplacian_eq_sum_second_directional (hψ.1.of_le (by simp))] + dsimp only [dψ,e] + exact (Finset.mul_sum _ _ _).symm + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/LipschitzL2PointControl.lean b/lean/OAI/Geometry/RCD/Sobolev/LipschitzL2PointControl.lean new file mode 100644 index 0000000000000000000000000000000000000000..17b4de82fe7f41abb5b096d58541868bd178ab46 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/LipschitzL2PointControl.lean @@ -0,0 +1,52 @@ +import OAI.Geometry.RCD.Heat.BoundedHeatOrder + +namespace OAI + +/-! # Pointwise control of uniformly Lipschitz L² representatives + +Small L² mass prevents a fixed nonzero value from persisting on a ball of +positive measure. Applied to bounded heat data, this turns L² convergence +into pointwise convergence without presupposing a kernel bound. +-/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped NNReal ENNReal Topology + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + (μ : Measure X) + +/-- A value separated from zero forces explicit L² mass on a metric ball. -/ +theorem lipschitz_value_sq_mass (u : Lp ℝ 2 μ) (v : X → ℝ) + (hu : u =ᵐ[μ] v) (L : ℝ≥0) (hv : LipschitzWith L v) + (x : X) {r a : ℝ} (hfinite : μ (ball x r) ≠ ∞) (ha : 0 ≤ a) (hvalue : a + L * r ≤ |v x|) : + a ^ 2 * μ.real (ball x r) ≤ ‖u‖ ^ 2 := by + have hval (y : X) (hy : y ∈ ball x r) : a ≤ |v y| := by + have hLip := hv.dist_le_mul x y + rw [Real.dist_eq, dist_comm x y] at hLip + have htri := abs_sub_abs_le_abs_sub (v x) (v y) + have hdist : dist y x ≤ r := hy.le + have hm := mul_le_mul_of_nonneg_left hdist L.coe_nonneg + linarith + have hi := (Lp.memLp u).integrable_sq + have hbounded : (∫ y in ball x r, a ^ 2 ∂μ) ≤ + ∫ y in ball x r, (u y) ^ 2 ∂μ := by + have : IsFiniteMeasure (μ.restrict (ball x r)) := ⟨by simpa using hfinite.lt_top⟩ + apply integral_mono_ae (integrable_const _) hi.integrableOn + filter_upwards [ae_restrict_mem measurableSet_ball, ae_restrict_of_ae hu] with y hy he + rw [he] + exact (sq_le_sq₀ ha (abs_nonneg _)).mpr (hval y hy) |>.trans_eq (sq_abs _) + calc + _ = ∫ y in ball x r, a ^ 2 ∂μ := by simp [mul_comm] + _ ≤ ∫ y in ball x r, (u y) ^ 2 ∂μ := hbounded + _ ≤ ∫ y, (u y) ^ 2 ∂μ := + setIntegral_le_integral hi (Eventually.of_forall fun y => sq_nonneg _) + _ = ‖u‖ ^ 2 := integral_sq_Lp μ u + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/LipschitzMeasureOrder.lean b/lean/OAI/Geometry/RCD/Sobolev/LipschitzMeasureOrder.lean new file mode 100644 index 0000000000000000000000000000000000000000..a17ea999116ee358fcc39a7b7d9d9614031130dc --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/LipschitzMeasureOrder.lean @@ -0,0 +1,53 @@ +import Mathlib.MeasureTheory.Measure.HasOuterApproxClosed +import Mathlib.MeasureTheory.Measure.Regular + +namespace OAI + +/-! # Measure order detected by bounded Lipschitz functions -/ + +open Set Filter MeasureTheory +open scoped Topology NNReal + +namespace RegularPointCoordinates + +theorem measure_le_of_bounded_lipschitz_integral + {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + (μ ν : Measure X) [IsFiniteMeasure μ] [IsFiniteMeasure ν] [μ.InnerRegular] + (h : ∀ (f : X → ℝ) (L : ℝ≥0), LipschitzWith L f → + (∀ x, 0 ≤ f x) → (∃ C : ℝ, ∀ x, f x ≤ C) → + (∫ x, f x ∂μ) ≤ ∫ x, f x ∂ν) : μ ≤ ν := by + have hc (F : Set X) (hF : IsClosed F) : μ F ≤ ν F := by + let δ (j : ℕ) : ℝ := 1 / (j + 1) + have hδ (j : ℕ) : 0 < δ j := by dsimp [δ]; positivity + let f (j : ℕ) (x : X) : ℝ := thickenedIndicator (hδ j) F x + have hf (j : ℕ) : LipschitzWith (δ j).toNNReal⁻¹ (f j) := by + apply LipschitzWith.of_dist_le_mul + intro x y + exact (lipschitzWith_thickenedIndicator (hδ j) F).dist_le_mul x y + have hh (j : ℕ) : (∫ x, f j x ∂μ) ≤ ∫ x, f j x ∂ν := by + apply h (f j) _ (hf j) (fun x => (thickenedIndicator (hδ j) F x).coe_nonneg) + exact ⟨1, fun x => by exact_mod_cast thickenedIndicator_le_one (hδ j) F x⟩ + have hd : Tendsto δ atTop (𝓝 0) := tendsto_one_div_add_atTop_nhds_zero_nat + have hm := tendsto_integral_thickenedIndicator_of_isClosed μ hF hδ hd + have hn := tendsto_integral_thickenedIndicator_of_isClosed ν hF hδ hd + exact (ENNReal.toReal_le_toReal (measure_ne_top μ F) (measure_ne_top ν F)).mp + (le_of_tendsto_of_tendsto hm hn (Eventually.of_forall hh)) + apply Measure.le_iff.mpr + intro A hA + rw [hA.measure_eq_iSup_isCompact μ] + exact iSup_le fun C => iSup_le fun hCA => iSup_le fun hC => + (hc C hC.isClosed).trans (measure_mono hCA) + +theorem measure_eq_of_bounded_lipschitz_integral + {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + (μ ν : Measure X) [IsFiniteMeasure μ] [IsFiniteMeasure ν] [μ.InnerRegular] [ν.InnerRegular] + (h : ∀ (f : X → ℝ) (L : ℝ≥0), LipschitzWith L f → + (∀ x, 0 ≤ f x) → (∃ C : ℝ, ∀ x, f x ≤ C) → + (∫ x, f x ∂μ) = ∫ x, f x ∂ν) : μ = ν := by + apply le_antisymm + · exact measure_le_of_bounded_lipschitz_integral μ ν fun f L hf h0 hC => (h f L hf h0 hC).le + · exact measure_le_of_bounded_lipschitz_integral ν μ fun f L hf h0 hC => (h f L hf h0 hC).ge + +end RegularPointCoordinates + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/LipschitzMetricTransfer.lean b/lean/OAI/Geometry/RCD/Sobolev/LipschitzMetricTransfer.lean new file mode 100644 index 0000000000000000000000000000000000000000..d4d952a8a85c5ad9a09884ba8f0c5ff79f2f7cdf --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/LipschitzMetricTransfer.lean @@ -0,0 +1,54 @@ +import OAI.Analysis.RCDHeat.Foundations +import Mathlib.Topology.MetricSpace.Lipschitz + +namespace OAI + +/-! # Transferring Lipschitz functions across approximate metric coordinates + +The infimum extension has the exact target Lipschitz constant. An additive +metric error only changes its values on the coordinate image by that error. +This supplies continuous functions on a common Euclidean domain for local +harmonic compactness. +-/ + +open Set +open scoped NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X Y : Type*} [PseudoMetricSpace Y] + +theorem exists_lipschitz_metric_transfer {s : Set X} (hs : s.Nonempty) + (u : X → ℝ) (v : X → Y) (L : ℝ≥0) {A δ : ℝ} (hδ : 0 ≤ δ) + (hLower : ∀ x ∈ s, -A ≤ u x) + (hApprox : ∀ x ∈ s, ∀ z ∈ s, |u x-u z| ≤ L*dist (v x) (v z)+δ) : + ∃ g : Y → ℝ, LipschitzWith L g ∧ ∀ x ∈ s, |g (v x)-u x| ≤ δ := by + let : Nonempty s := hs.to_subtype + let g : Y → ℝ := fun y => ⨅ x : s, u x+L*dist y (v x) + have hB (y : Y) : BddBelow (range fun x : s => u x+L*dist y (v x)) := by + refine ⟨-A,?_⟩ + rintro z ⟨x,rfl⟩ + exact (hLower x x.property).trans (le_add_of_nonneg_right (by positivity)) + have hUpper (y : Y) (x : s) : g y ≤ u x+L*dist y (v x) := ciInf_le (hB y) x + refine ⟨g,LipschitzWith.of_le_add_mul L ?_,?_⟩ + · intro y z + rw [← sub_le_iff_le_add] + apply le_ciInf + intro x + have hh := hUpper y x + have ht := mul_le_mul_of_nonneg_left (dist_triangle y z (v x)) L.coe_nonneg + linarith + · intro x hx + have hu : g (v x) ≤ u x := by + simpa only [dist_self,mul_zero,add_zero] using hUpper (v x) ⟨x,hx⟩ + have hl : u x-δ ≤ g (v x) := by + apply le_ciInf + intro z + have hh := (le_abs_self (u x-u z)).trans (hApprox x hx z z.property) + linarith + exact abs_le.mpr ⟨by linarith,by linarith⟩ + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/LocalAffineCutoff.lean b/lean/OAI/Geometry/RCD/Sobolev/LocalAffineCutoff.lean new file mode 100644 index 0000000000000000000000000000000000000000..341b1a6a1ad697174aa64f70e96507a641b4ca0c --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/LocalAffineCutoff.lean @@ -0,0 +1,52 @@ +import OAI.Geometry.RCD.Coordinates.CommonFrameRadialFits +import OAI.Geometry.RCD.Coordinates.BoundedSplittingCoordinates + +namespace OAI + +/-! # A common cutoff for local affine radial residuals -/ + +open Set MeasureTheory +open scoped ENNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +omit [BorelSpace X] [ProperSpace X] in +/-- Two local representatives of the constant one have identical restrictions. -/ +theorem local_cutoff_restrict_eq (Ω : Set X) (η ζ : SobolevSpace μ hQ) + (hη : SobolevSpace.toLp μ hQ η =ᵐ[μ.restrict Ω] fun _ => (1 : ℝ)) + (hζ : SobolevSpace.toLp μ hQ ζ =ᵐ[μ.restrict Ω] fun _ => (1 : ℝ)) : + SobolevSpace.restrictLp μ hQ Ω η = SobolevSpace.restrictLp μ hQ Ω ζ := by + apply Lp.ext + exact (SobolevSpace.restrictLp_coe μ hQ Ω η).trans + (hη.trans (hζ.symm.trans (SobolevSpace.restrictLp_coe μ hQ Ω ζ).symm)) + +/-- Replacing the compact extension of an affine constant preserves both +the normalized value error and the local gradient energy of its residual. -/ +theorem local_affine_cutoff_errors (Ω : Set X) (hfin : μ Ω ≠ ∞) + (q η ζ : SobolevSpace μ hQ) (c : ℝ) + (hη : SobolevSpace.toLp μ hQ η =ᵐ[μ.restrict Ω] fun _ => (1 : ℝ)) + (hζ : SobolevSpace.toLp μ hQ ζ =ᵐ[μ.restrict Ω] fun _ => (1 : ℝ)) : + normalizeLocalL2 μ Ω hfin (SobolevSpace.restrictLp μ hQ Ω (q - c • η)) = + normalizeLocalL2 μ Ω hfin (SobolevSpace.restrictLp μ hQ Ω (q - c • ζ)) ∧ + (∫ x in Ω, localGamma μ hQ (q - c • η) (q - c • η) x ∂μ) = + ∫ x in Ω, localGamma μ hQ (q - c • ζ) (q - c • ζ) x ∂μ := by + have hr : SobolevSpace.restrictLp μ hQ Ω (q - c • η) = + SobolevSpace.restrictLp μ hQ Ω (q - c • ζ) := by + simp only [map_sub, map_smul, local_cutoff_restrict_eq μ hQ Ω η ζ hη hζ] + refine ⟨congrArg (normalizeLocalL2 μ Ω hfin) hr, ?_⟩ + have heq : SobolevSpace.toLp μ hQ (q - c • η) =ᵐ[μ.restrict Ω] + SobolevSpace.toLp μ hQ (q - c • ζ) := by + apply (SobolevSpace.restrictLp_coe μ hQ Ω (q - c • η)).symm.trans + rw [hr] + exact SobolevSpace.restrictLp_coe μ hQ Ω (q - c • ζ) + exact integral_congr_ae (localGamma_pair_congr_ae μ hQ heq heq) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/LocalAverageRepresentative.lean b/lean/OAI/Geometry/RCD/Sobolev/LocalAverageRepresentative.lean new file mode 100644 index 0000000000000000000000000000000000000000..764fae259184f4d2e42dc8591754b9467b294021 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/LocalAverageRepresentative.lean @@ -0,0 +1,51 @@ +import OAI.Geometry.RCD.Sobolev.BoundedGradientLipschitz + +namespace OAI + +/-! # Local Lipschitz representatives from shrinking-ball averages -/ + +open Set Filter MeasureTheory Metric +open scoped Topology NNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [SecondCountableTopology X] {μ : Measure X} [IsLocallyFiniteMeasure μ] + [IsUnifLocDoublingMeasure μ] + +/-- The averaging estimate need only hold at sufficiently small radii for +each pair of centers in the chosen region. -/ +theorem exists_lipschitz_of_local_average_bound (u : X → ℝ) (hu : LocallyIntegrable u μ) + {S : Set X} (hS : MeasurableSet S) (L : ℝ≥0) + (h : ∀ x ∈ S, ∀ y ∈ S, ∀ᶠ r in 𝓝[>] (0:ℝ), + |(⨍ z in closedBall x r, u z ∂μ)-(⨍ z in closedBall y r, u z ∂μ)| ≤ + L*(dist x y+2*r)) : + ∃ v : X → ℝ, LipschitzWith L v ∧ u =ᵐ[μ.restrict S] v := by + let T := {x : X | Tendsto (fun r : ℝ => ⨍ z in closedBall x r, u z ∂μ) + (𝓝[>] 0) (𝓝 (u x))} + have hT : ∀ᵐ x ∂μ, x ∈ T := by + filter_upwards [IsUnifLocDoublingMeasure.ae_tendsto_average μ hu (1:ℝ)] with x hx + exact hx (fun _ : ℝ => x) id tendsto_id (by + filter_upwards [self_mem_nhdsWithin] with r hr + simp only [mem_closedBall,dist_self,one_mul] + exact le_of_lt hr) + have hl : LipschitzOnWith L u (S ∩ T) := by + apply LipschitzOnWith.of_dist_le_mul + intro x hx y hy + have hc : Tendsto (fun r : ℝ => (L:ℝ)*(dist x y+2*r)) (𝓝[>] 0) + (𝓝 ((L:ℝ)*dist x y)) := by + have hh : Continuous (fun r : ℝ => (L:ℝ)*(dist x y+2*r)) := by fun_prop + simpa using (hh.continuousAt (x := 0)).tendsto.mono_left nhdsWithin_le_nhds + simpa only [Real.dist_eq] using + le_of_tendsto_of_tendsto ((hx.2.sub hy.2).abs) hc (h x hx.1 y hy.1) + obtain ⟨v,hv,he⟩ := hl.extend_real + refine ⟨v,hv,?_⟩ + filter_upwards [ae_restrict_mem hS,ae_restrict_of_ae hT] with x hx ht + exact he ⟨hx,ht⟩ + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/LocalBochnerDensityProduct.lean b/lean/OAI/Geometry/RCD/Sobolev/LocalBochnerDensityProduct.lean new file mode 100644 index 0000000000000000000000000000000000000000..ba50ffa352e86468c53efd081f35d359967aa345 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/LocalBochnerDensityProduct.lean @@ -0,0 +1,48 @@ +import OAI.Geometry.RCD.Metric.SignedRadonLocal +import OAI.Geometry.RCD.Sobolev.BochnerMeasureProductLocal + +namespace OAI + +/-! # The pointwise density consequence of the full Bochner product identity -/ + +open Set Filter MeasureTheory +open scoped BoundedContinuousFunction + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [TopologicalSpace X] [MeasurableSpace X] [BorelSpace X] + (μ : Measure X) [SigmaFinite μ] + +/-- Taking the density of the full local identity retains its exact +Hessian term. Singular mass remains present in the original identity. -/ +theorem signed_rnDeriv_local_product (Sg Sh Sz : SignedMeasure X) + (G H : X →ᵇ ℝ) {h : X → ℝ} (hh : Integrable h μ) + {S : Set X} (hS : MeasurableSet S) + (he : Sz.restrict S=(signedSourceWeight Sh G+signedSourceWeight Sg H+ + (2 : ℝ) • μ.withDensityᵥ h).restrict S) : + Sz.rnDeriv μ =ᵐ[μ.restrict S] fun x => + G x*Sh.rnDeriv μ x+H x*Sg.rnDeriv μ x+2*h x := by + let A := signedSourceWeight Sh G + let B := signedSourceWeight Sg H + let D : SignedMeasure X := μ.withDensityᵥ h + have hloc := signed_rnDeriv_eq_on_of_restrict_eq μ hS he + have hAB := SignedMeasure.rnDeriv_add A B μ + have hsum := SignedMeasure.rnDeriv_add (A+B) ((2 : ℝ) • D) μ + have htwo := SignedMeasure.rnDeriv_smul D μ 2 + filter_upwards [hloc,ae_restrict_of_ae hAB,ae_restrict_of_ae hsum,ae_restrict_of_ae htwo, + ae_restrict_of_ae (signed_rnDeriv_sourceWeight μ Sh G), + ae_restrict_of_ae (signed_rnDeriv_sourceWeight μ Sg H), + ae_restrict_of_ae (signed_rnDeriv_density μ hh)] with x hl hab hs ht ha hb hd + change Sz.rnDeriv μ x=SignedMeasure.rnDeriv (A+B+(2 : ℝ) • D) μ x at hl + rw [hl,hs] + simp only [Pi.add_apply] + rw [hab,ht] + simp only [Pi.add_apply,Pi.smul_apply,smul_eq_mul] + rw [ha,hb,hd] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/LocalBochnerInput.lean b/lean/OAI/Geometry/RCD/Sobolev/LocalBochnerInput.lean new file mode 100644 index 0000000000000000000000000000000000000000..519294a2bfc464b864325dc3313cdaf1f5c9a381 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/LocalBochnerInput.lean @@ -0,0 +1,67 @@ +import OAI.Geometry.RCD.Sobolev.CompactCutoffSource +import OAI.Geometry.RCD.Coordinates.SplittingApproximation + +namespace OAI + +/-! +# The local harmonic Bochner input + +The input is the finite-span, interior-ball specialization of Gigli, +*Non-smooth differential geometry*, Mem. AMS 251 (2018), no. 1196, +§3.1, equation (3.1.10), and Theorem 3.3.8. The local test-function +extension uses Connell et al. (2021), Lemmas 2.6--2.7. In particular, +Gamma of a locally Lipschitz harmonic function is locally W^{1,2}, +and one half of its measure Laplacian plus kappa Gamma is positive. +The finite measure is obtained by restricting inside the larger ball; +the bounded global Sobolev representative is a cutoff extension. + +This input asserts local calculus only. It does not include any mass +estimate, heat estimate, pinching, coordinate approximation or chart. +-/ + +open Set Metric MeasureTheory +open scoped BoundedContinuousFunction NNReal + +noncomputable section + +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] [FiniteDimensional ℝ E] + +/-- The exact local measure Laplacian of the harmonic energy density. -/ +def harmonicBochnerSource (U : E →L[ℝ] SobolevSpace μ hQ) + (M : PositiveBilinearMeasure X E) (κ : ℝ) (v : E) : SignedMeasure X := + (2 : ℝ) • M.bilinear v v - + (2 * κ) • μ.withDensityᵥ (localGamma μ hQ (U v) (U v)) + +/-- The bounded representative and local measure equation furnished by +local harmonic test calculus on an interior ball. -/ +structure LocalHarmonicEnergy (U : E →L[ℝ] SobolevSpace μ hQ) + (M : PositiveBilinearMeasure X E) (κ : ℝ) (p : X) (r : ℝ) + (L : ℝ≥0) (v : E) where + energy : SobolevSpace μ hQ + representative : SobolevSpace.toLp μ hQ energy =ᵐ[μ.restrict (ball p (2 * r))] + localGamma μ hQ (U v) (U v) + bounded : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ energy x| ≤ + ((L ^ 2 * ‖v‖₊ ^ 2 : ℝ≥0) : ℝ) + measure_laplacian : IsMeasureLaplacianOn μ hQ (ball p (2 * r)) energy + (harmonicBochnerSource μ hQ U M κ v) + +/-- Local calculus on interior balls with eightfold room for regularity. -/ +def LocalHarmonicBochnerInput {K : ℝ} {n : ℕ} (hX : NoncollapsedRCD K n X) : Prop := + ∀ κ : ℝ, 0 ≤ κ → -κ ≤ K → ∀ (p : X) (r : ℝ), 0 < r → + ∀ (L : ℝ≥0) (U : Euclidean n →L[ℝ] SobolevSpace (hausdorff n X) hX.quadratic), + (∀ v, IsSobolevHarmonicOn (hausdorff n X) hX.quadratic (ball p (8 * r)) (U v)) → + (∀ v, ∀ᵐ x ∂(hausdorff n X).restrict (ball p (8 * r)), + localGamma (hausdorff n X) hX.quadratic (U v) (U v) x ≤ + (L : ℝ) ^ 2 * ‖v‖ ^ 2) → + ∃ M : PositiveBilinearMeasure X (Euclidean n), + ∀ v, Nonempty (LocalHarmonicEnergy (hausdorff n X) hX.quadratic U M κ p r L v) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/LocalCutoffLipschitz.lean b/lean/OAI/Geometry/RCD/Sobolev/LocalCutoffLipschitz.lean new file mode 100644 index 0000000000000000000000000000000000000000..5dbc5170da0b69a2b7e377479a02ab4ae290b25b --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/LocalCutoffLipschitz.lean @@ -0,0 +1,78 @@ +import OAI.Analysis.RCDHeat.HeatFisher + +namespace OAI + +/-! # Uniform cutoff bounds for locally Lipschitz functions + +Only values and Lipschitz control on the support of the cutoff are needed. +The constants are uniform over a family with the same local bounds. +-/ + +open Set Metric +open scoped NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] + +theorem local_lipschitz_cutoff {s : Set X} {f ψ : X → ℝ} {L A C B : ℝ≥0} + (hf : LipschitzOnWith L f s) (hA : ∀ x ∈ s, |f x| ≤ A) + (hψ : LipschitzWith C ψ) (hB : ∀ x, |ψ x| ≤ B) + (hzero : ∀ x ∉ s, ψ x = 0) : + LipschitzWith (A*C+B*L) (fun x => ψ x*f x) ∧ + ∀ x, |ψ x*f x| ≤ B*A := by + obtain ⟨F,hF,he⟩ := hf.extend_real + let H := fun x => min (max (F x) (-(A:ℝ))) (A:ℝ) + have hH : LipschitzWith L H := (hF.max_const (-(A:ℝ))).min_const (A:ℝ) + have hHb (x : X) : |H x| ≤ A := by + apply abs_le.mpr + exact ⟨le_min (le_max_right _ _) (by nlinarith [A.coe_nonneg]),min_le_right _ _⟩ + have hHeq (x : X) (hx : x ∈ s) : H x = f x := by + dsimp only [H] + rw [← he hx,max_eq_left (abs_le.mp (hA x hx)).1, + min_eq_left (abs_le.mp (hA x hx)).2] + have heq : (fun x => ψ x*H x) = (fun x => ψ x*f x) := by + funext x + by_cases hx : x ∈ s + · rw [hHeq x hx] + · simp only [hzero x hx,zero_mul] + rw [← heq] + constructor + · apply LipschitzWith.of_dist_le_mul + intro x y + rw [Real.dist_eq] + have hid : ψ x*H x-ψ y*H y=(ψ x-ψ y)*H x+ψ y*(H x-H y) := by ring + rw [hid] + calc + _ ≤ |(ψ x-ψ y)*H x|+|ψ y*(H x-H y)| := abs_add_le _ _ + _ = |ψ x-ψ y| * |H x|+|ψ y| * |H x-H y| := by rw [abs_mul,abs_mul] + _ ≤ ((C:ℝ)*dist x y)*A+B*((L:ℝ)*dist x y) := by + gcongr + · simpa only [Real.dist_eq] using hψ.dist_le_mul x y + · exact hHb x + · exact hB y + · simpa only [Real.dist_eq] using hH.dist_le_mul x y + _ = (A*C+B*L:ℝ≥0)*dist x y := by push_cast; ring + · intro x + rw [← congrFun heq x,abs_mul] + exact mul_le_mul (hB x) (hHb x) (abs_nonneg _) B.coe_nonneg + +theorem radial_local_lipschitz_cutoff (z : X) {r : ℝ} (hr : 0 < r) + {f : X → ℝ} {L A : ℝ≥0} + (hf : LipschitzOnWith L f (closedBall z (2*r))) + (hA : ∀ x ∈ closedBall z (2*r), |f x| ≤ A) : + LipschitzWith (A*⟨r⁻¹,inv_nonneg.mpr hr.le⟩+L) + (fun x => radialCutoff z r x*f x) ∧ + (∀ x, |radialCutoff z r x*f x| ≤ A) := by + have hh := local_lipschitz_cutoff hf hA (radialCutoff_lipschitz z hr) + (B := 1) (fun x => by + rw [abs_of_nonneg (radialCutoff_bounds z r x).1] + exact (radialCutoff_bounds z r x).2) + (fun x hx => radialCutoff_eq_zero z hr + (le_of_lt (by simpa only [mem_closedBall,not_le,dist_comm] using hx))) + simpa only [one_mul,NNReal.coe_one] using hh + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/LocalEnergyMap.lean b/lean/OAI/Geometry/RCD/Sobolev/LocalEnergyMap.lean new file mode 100644 index 0000000000000000000000000000000000000000..fc18cb3827572101d2f802072eeeb90ad496691e --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/LocalEnergyMap.lean @@ -0,0 +1,27 @@ +import OAI.Geometry.RCD.Sobolev.LocalEnergyMeasure + +namespace OAI + +/-! # Localized energy integrals are exact masses of their image measure -/ + +open Set MeasureTheory +noncomputable section +namespace RegularPointCoordinates +variable {X Y : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [MeasurableSpace Y] (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +theorem localEnergyMeasure_map_apply (w : SobolevSpace μ hQ) (A : Set X) + {c : ℝ} (hc : 0≤c) {v : X → Y} (hv : Measurable v) + {B : Set Y} (hB : MeasurableSet B) : + ((localEnergyMeasure μ hQ w A c).map v : Measure Y).real B= + c*∫ x in v ⁻¹' B∩A, localGamma μ hQ w w x ∂μ := by + change ((localEnergyMeasure μ hQ w A c : Measure X).map v B).toReal=_ + rw [Measure.map_apply hv hB] + have he := localEnergyMeasure_apply μ hQ w A hc (hv hB) + simpa only [Measure.real,Measure.restrict_restrict (hv hB)] using he + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/LocalEnergyMeasure.lean b/lean/OAI/Geometry/RCD/Sobolev/LocalEnergyMeasure.lean new file mode 100644 index 0000000000000000000000000000000000000000..d4a430328ba019ba04ded45df120c495b61c79f7 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/LocalEnergyMeasure.lean @@ -0,0 +1,48 @@ +import OAI.Geometry.RCD.Metric.FiniteDensityMeasure +import OAI.Geometry.RCD.Sobolev.LocalBochnerInput + +namespace OAI + +/-! # Actual localized Sobolev energy as a finite positive measure -/ + +open Set MeasureTheory +open scoped ENNReal NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +def localEnergyMeasure (w : SobolevSpace μ hQ) (A : Set X) (c : ℝ) : FiniteMeasure X := + finiteDensityMeasure (μ.restrict A) ((localGamma_memL1 μ hQ w w).restrict.const_mul c) + +theorem localEnergyMeasure_mass (w : SobolevSpace μ hQ) (A : Set X) + {c : ℝ} (hc : 0≤c) : + ((localEnergyMeasure μ hQ w A c).mass : ℝ)=c*∫ x in A, localGamma μ hQ w w x ∂μ := by + rw [localEnergyMeasure,finiteDensityMeasure_mass,integral_const_mul] + filter_upwards [ae_restrict_of_ae (localGamma_self μ hQ w)] with x hx + exact mul_nonneg hc (hx ▸ sq_nonneg _) + +theorem localEnergyMeasure_apply (w : SobolevSpace μ hQ) (A : Set X) + {c : ℝ} (hc : 0≤c) {B : Set X} (hB : MeasurableSet B) : + (localEnergyMeasure μ hQ w A c : Measure X).real B= + c*∫ x in B, localGamma μ hQ w w x ∂μ.restrict A := by + rw [localEnergyMeasure,finiteDensityMeasure_apply _ _ _ hB,integral_const_mul] + filter_upwards [ae_restrict_of_ae (localGamma_self μ hQ w)] with x hx + exact mul_nonneg hc (hx ▸ sq_nonneg _) + +theorem localEnergyMeasure_le (w : SobolevSpace μ hQ) (A : Set X) (c C : ℝ) + (hbound : ∀ᵐ x ∂μ.restrict A, c*localGamma μ hQ w w x≤C) : + (localEnergyMeasure μ hQ w A c : Measure X)≤ENNReal.ofReal C • μ.restrict A := by + change (μ.restrict A).withDensity _≤_ + rw [← withDensity_const] + exact withDensity_mono (hbound.mono fun _ hx => ENNReal.ofReal_le_ofReal hx) + +theorem localEnergyMeasure_absolutelyContinuous (w : SobolevSpace μ hQ) (A : Set X) (c : ℝ) : + (localEnergyMeasure μ hQ w A c : Measure X) ≪ μ.restrict A := + withDensity_absolutelyContinuous _ _ + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/LocalGradientBoundedness.lean b/lean/OAI/Geometry/RCD/Sobolev/LocalGradientBoundedness.lean new file mode 100644 index 0000000000000000000000000000000000000000..23125291c0037a0275a8e0e67601ffbb5d02b0b4 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/LocalGradientBoundedness.lean @@ -0,0 +1,93 @@ +import OAI.Geometry.RCD.Sobolev.LocalGradientRepresentative + +namespace OAI + +/-! # Local amplitude bounds from the actual weak gradient + +Local transport and differentiation supply Lipschitz representatives. A +finite cover then bounds the original Sobolev function on each compact +interior ball, without assuming an amplitude bound. +-/ + +open Set Filter MeasureTheory Metric +open scoped NNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +omit [ProperSpace X] in +theorem NoncollapsedRCD.local_sobolev_lipschitz + {K : ℝ} {n : ℕ} (hX : NoncollapsedRCD K n X) (hn : 2 ≤ n) + (f : SobolevSpace (hausdorff n X) hX.quadratic) + (L : ℝ≥0) {p : X} {R : ℝ} (hR : 0 < R) + (hL : ∀ᵐ x ∂(hausdorff n X).restrict (ball p (8 * R)), + localGamma (hausdorff n X) hX.quadratic f f x ≤ (L : ℝ) ^ 2) : + ∃ v : X → ℝ, LipschitzWith L v ∧ + SobolevSpace.toLp (hausdorff n X) hX.quadratic f + =ᵐ[(hausdorff n X).restrict (closedBall p R)] v := by + let μ := hausdorff n X + apply hX.local_lipschitz_representative hn + (SobolevSpace.minimalSlope_isRelaxed μ hX.quadratic f) L hR + filter_upwards [hL, ae_restrict_of_ae (localGamma_self μ hX.quadratic f), + ae_restrict_of_ae ((Lp.coeFn_nonneg _).mpr + (SobolevSpace.minimalSlope_nonneg μ hX.quadratic f))] with x hx he hg + rw [he] at hx + change 0 ≤ SobolevSpace.minimalSlope μ hX.quadratic f x at hg + exact (sq_le_sq₀ hg L.coe_nonneg).mp hx + +theorem NoncollapsedRCD.local_amplitude_of_gradient + {K : ℝ} {n : ℕ} (hX : NoncollapsedRCD K n X) (hn : 2 ≤ n) + (f : SobolevSpace (hausdorff n X) hX.quadratic) (L : ℝ≥0) + {p : X} {a b : ℝ} (hab : a < b) + (hL : ∀ᵐ x ∂(hausdorff n X).restrict (ball p b), + localGamma (hausdorff n X) hX.quadratic f f x ≤ (L : ℝ) ^ 2) : + ∃ A : ℝ≥0, ∀ᵐ x ∂(hausdorff n X).restrict (closedBall p a), + |SobolevSpace.toLp (hausdorff n X) hX.quadratic f x| ≤ A := by + classical + let μ := hausdorff n X + let δ := (b - a) / 16 + have hδ : 0 < δ := by dsimp [δ]; linarith + have hlocal (q : closedBall p a) : + ∃ v : X → ℝ, LipschitzWith L v ∧ + SobolevSpace.toLp μ hX.quadratic f =ᵐ[μ.restrict (closedBall (q : X) δ)] v := by + apply hX.local_sobolev_lipschitz hn f L hδ + apply ae_restrict_of_ae_restrict_of_subset _ hL + intro x hx + have hq : dist (q : X) p ≤ a := q.property + have hxq : dist x (q : X) < 8 * δ := hx + change dist x p < b + have ht := dist_triangle x (q : X) p + dsimp only [δ] at hxq + linarith + choose v hv he using hlocal + obtain ⟨s, hs⟩ := (isCompact_closedBall p a).elim_finite_subcover + (fun q : closedBall p a => ball (q : X) δ) (fun _ => isOpen_ball) (by + intro x hx + exact mem_iUnion.mpr ⟨⟨x, hx⟩, by simpa using hδ⟩) + let M (q : closedBall p a) : ℝ := |v q q| + L * δ + have hM (q : closedBall p a) : 0 ≤ M q := add_nonneg (abs_nonneg _) (mul_nonneg L.coe_nonneg hδ.le) + let A : ℝ≥0 := ⟨∑ q ∈ s, M q, Finset.sum_nonneg fun q _ => hM q⟩ + refine ⟨A, ?_⟩ + have hbound (q : closedBall p a) : ∀ᵐ x ∂μ, + x ∈ ball (q : X) δ → |SobolevSpace.toLp μ hX.quadratic f x| ≤ M q := by + filter_upwards [(ae_restrict_iff' measurableSet_closedBall).mp (he q)] with x hx hball + rw [hx (ball_subset_closedBall hball)] + have hd := (hv q).dist_le_mul x q + have hxδ : dist x (q : X) < δ := hball + have ht := abs_add_le (v q x - v q q) (v q q) + rw [sub_add_cancel] at ht + dsimp only [M] + rw [Real.dist_eq] at hd + nlinarith [mul_le_mul_of_nonneg_left hxδ.le L.coe_nonneg] + have hall := (Filter.eventually_all_finset s).mpr (fun q _ => hbound q) + filter_upwards [ae_restrict_of_ae hall, ae_restrict_mem measurableSet_closedBall] with x hx hxball + obtain ⟨q, hqs, hxq⟩ := mem_iUnion₂.mp (hs hxball) + exact (hx q hqs hxq).trans (Finset.single_le_sum (fun q _ => hM q) hqs) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/LocalGradientDifferenceRepresentative.lean b/lean/OAI/Geometry/RCD/Sobolev/LocalGradientDifferenceRepresentative.lean new file mode 100644 index 0000000000000000000000000000000000000000..75f6db33046254e3ce17f3c3eedf1b052ece09c3 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/LocalGradientDifferenceRepresentative.lean @@ -0,0 +1,39 @@ +import OAI.Geometry.RCD.Sobolev.WeightedGammaLocality + +namespace OAI + +/-! # Local gradient differences are independent of global extensions -/ + +open Set Filter MeasureTheory +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) (Q : QuadraticCheegerEnergy μ) + +omit [BorelSpace X] [ProperSpace X] in +theorem toLp_sub_congr_on {Ω : Set X} {u u' v v' : SobolevSpace μ Q} + (hu : SobolevSpace.toLp μ Q u =ᵐ[μ.restrict Ω] SobolevSpace.toLp μ Q u') + (hv : SobolevSpace.toLp μ Q v =ᵐ[μ.restrict Ω] SobolevSpace.toLp μ Q v') : + SobolevSpace.toLp μ Q (u-v) =ᵐ[μ.restrict Ω] SobolevSpace.toLp μ Q (u'-v') := by + simp only [map_sub] + filter_upwards [hu,hv, + ae_restrict_of_ae (Lp.coeFn_sub (SobolevSpace.toLp μ Q u) (SobolevSpace.toLp μ Q v)), + ae_restrict_of_ae (Lp.coeFn_sub (SobolevSpace.toLp μ Q u') (SobolevSpace.toLp μ Q v'))] + with x hx hy hxy hxy' + rw [hxy,hxy'] + simp only [Pi.sub_apply,hx,hy] + +theorem weighted_gradient_difference_congr_on {Ω : Set X} (hΩ : MeasurableSet Ω) + {u u' v v' : SobolevSpace μ Q} + (hu : SobolevSpace.toLp μ Q u =ᵐ[μ.restrict Ω] SobolevSpace.toLp μ Q u') + (hv : SobolevSpace.toLp μ Q v =ᵐ[μ.restrict Ω] SobolevSpace.toLp μ Q v') + (w : X → ℝ) (hw : ∀ x ∉ Ω, w x = 0) : + weightedGamma μ Q w (u-v) (u-v) = weightedGamma μ Q w (u'-v') (u'-v') := + weightedGamma_congr_on μ Q hΩ (toLp_sub_congr_on μ Q hu hv) + (toLp_sub_congr_on μ Q hu hv) w hw + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/LocalGradientLipschitz.lean b/lean/OAI/Geometry/RCD/Sobolev/LocalGradientLipschitz.lean new file mode 100644 index 0000000000000000000000000000000000000000..7e280684f2fe037d93366995241f98afd14dab90 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/LocalGradientLipschitz.lean @@ -0,0 +1,102 @@ +import OAI.Geometry.RCD.Sobolev.BoundedGradientLipschitz +import OAI.Geometry.RCD.Sobolev.CutoffPointwiseGradient + +namespace OAI + +/-! # A local Lipschitz estimate from weak-gradient and amplitude bounds -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped NNReal ENNReal Topology + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + +/-- A radial cutoff reduces local gradient control to the proved global +Sobolev-to-Lipschitz implication. -/ +theorem NoncollapsedRCD.local_lipschitz_of_gradient + (K : ℝ) (n : ℕ) (hn : 2 ≤ n) (hX : NoncollapsedRCD K n X) : + letI : ProperSpace X := hX.proper K n hn + letI : SeparableSpace X := hX.separable + letI : IsLocallyFiniteMeasure (hausdorff n X) := + locallyFinite_of_finiteOnBounded _ hX.finiteOnBounded + let μ := hausdorff n X + ∀ (u : SobolevSpace μ hX.quadratic) (v : X → ℝ), Continuous v → + (SobolevSpace.toLp μ hX.quadratic u =ᵐ[μ] v) → + ∀ (p : X) (R : ℝ), 0 < R → ∀ (L M : ℝ≥0), + (∀ x, dist p x ≤ 2*R → |v x| ≤ M) → + (∀ᵐ x ∂μ, dist p x ≤ 2*R → SobolevSpace.minimalSlope μ hX.quadratic u x ≤ L) → + ∀ y, dist p y ≤ R → + |v p-v y| ≤ Real.sqrt (2*(L:ℝ)^2+2*(M:ℝ)^2*(R⁻¹)^2)*dist p y := by + let : ProperSpace X := hX.proper K n hn + let : SeparableSpace X := hX.separable + let μ := hausdorff n X + let : IsLocallyFiniteMeasure μ := locallyFinite_of_finiteOnBounded μ hX.finiteOnBounded + let : μ.IsOpenPosMeasure := hX.openPos K n + dsimp only + intro u v hv hu p R hR L M hM hL y hy + let χ := radialCutoff p R + let hχ := radialCutoff_lipschitz p hR + let hs := radialCutoff_hasCompactSupport p hR + have hb (x : X) : |χ x| ≤ (1:ℝ≥0) := by + rw [abs_of_nonneg (radialCutoff_bounds p R x).1] + exact (radialCutoff_bounds p R x).2 + have hnon (x : X) : 0 ≤ χ x := (radialCutoff_bounds p R x).1 + let η := SobolevSpace.ofLipschitzCompact μ hX.quadratic hχ hs + have hη : SobolevSpace.toLp μ hX.quadratic η =ᵐ[μ] χ := + SobolevSpace.ofLipschitzCompact_coe μ hX.quadratic hχ hs + let z := SobolevSpace.cutoffCLM μ hX.quadratic hχ hs hb hnon u + have hzrep : SobolevSpace.toLp μ hX.quadratic z =ᵐ[μ] fun x => χ x*v x := by + filter_upwards [SobolevSpace.cutoffCLM_coe μ hX.quadratic hχ hs hb hnon u,hu] with x hz hu + exact hz.trans (by rw [hu]) + have hηG := SobolevSpace.minimalSlope_le_lipschitz μ hX.quadratic η hχ hη + let A := 2*(L:ℝ)^2+2*(M:ℝ)^2*(R⁻¹)^2 + have hzg : ∀ᵐ x ∂μ, SobolevSpace.minimalSlope μ hX.quadratic z x ≤ Real.sqrt A := by + filter_upwards [minimalSlope_cutoffCLM_sq_le μ hX.quadratic u η hχ hs hb hnon hη, + hη,hu,hL,hηG,hzrep,SobolevSpace.minimalSlope_zero_on_level μ hX.quadratic z 0, + (Lp.coeFn_nonneg _).mpr (SobolevSpace.minimalSlope_nonneg μ hX.quadratic u), + (Lp.coeFn_nonneg _).mpr (SobolevSpace.minimalSlope_nonneg μ hX.quadratic η)] with + x hsq hr hux hLx hηx hzx hzero hgu hge + apply Real.le_sqrt_of_sq_le + by_cases hx : dist p x ≤ 2*R + · have hχsq : (SobolevSpace.toLp μ hX.quadratic η x)^2 ≤ 1 := by + rw [hr] + have hχb := radialCutoff_bounds p R x + nlinarith + have huG : (SobolevSpace.minimalSlope μ hX.quadratic u x)^2 ≤ (L:ℝ)^2 := + (sq_le_sq₀ hgu L.coe_nonneg).mpr (hLx hx) + have huF : (SobolevSpace.toLp μ hX.quadratic u x)^2 ≤ (M:ℝ)^2 := by + rw [hux] + simpa only [sq_abs] using (sq_le_sq₀ (abs_nonneg (v x)) M.coe_nonneg).mpr (hM x hx) + have heG : (SobolevSpace.minimalSlope μ hX.quadratic η x)^2 ≤ (R⁻¹)^2 := + (sq_le_sq₀ hge (inv_nonneg.mpr hR.le)).mpr hηx + apply hsq.trans + change _ ≤ 2*(L:ℝ)^2+2*(M:ℝ)^2*(R⁻¹)^2 + calc + _ ≤ 2*1*(L:ℝ)^2+2*(M:ℝ)^2*(R⁻¹)^2 := by gcongr + _ = _ := by ring + · have hχ0 : χ x = 0 := radialCutoff_eq_zero p hR (le_of_not_ge hx) + rw [hzero (hzx.trans (by rw [hχ0,zero_mul]))] + norm_num only [zero_pow,ne_eq,OfNat.ofNat_ne_zero,not_false_eq_true] + dsimp only [A] + positivity + obtain ⟨w,hw,hew⟩ := hX.lipschitz_of_bounded_gradient K n hn + (SobolevSpace.minimalSlope_isRelaxed μ hX.quadratic z) ⟨Real.sqrt A,Real.sqrt_nonneg A⟩ hzg + have hew' : (fun x => χ x*v x) = w := + MeasureTheory.Measure.eq_of_ae_eq (hzrep.symm.trans hew) (hχ.continuous.mul hv) hw.continuous + have hp : w p = v p := by + rw [← hew'] + simp only [χ,radialCutoff_eq_one p hR (by simpa using hR.le : dist p p ≤ R),one_mul] + have hyp : w y = v y := by + rw [← hew'] + change χ y*v y = v y + rw [show χ y = 1 from radialCutoff_eq_one p hR hy,one_mul] + have hd := hw.dist_le_mul p y + simpa only [Real.dist_eq,hp,hyp,NNReal.coe_mk,A] using! hd + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/LocalGradientRepresentative.lean b/lean/OAI/Geometry/RCD/Sobolev/LocalGradientRepresentative.lean new file mode 100644 index 0000000000000000000000000000000000000000..8ef9c5ee1ec679ae12b5d8aba25906d386910dce --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/LocalGradientRepresentative.lean @@ -0,0 +1,149 @@ +import OAI.Geometry.RCD.Transport.LocalPlanGradientMean + +namespace OAI + +/-! # Local bounded gradients and Lipschitz representatives -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped NNReal ENNReal Topology + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +/-- Transport between small balls controls their averages by the weak +upper gradient, with no volume-comparison factor. -/ +theorem NoncollapsedRCD.local_average_bound_of_gradient + (K : ℝ) (n : ℕ) (hn : 2 ≤ n) (hX : NoncollapsedRCD K n X) + {u G : Lp ℝ 2 (hausdorff n X)} (hG : IsRelaxedSlope (hausdorff n X) u G) + (L : ℝ≥0) {p : X} {R : ℝ} (hR : 0 < R) + (hGb : ∀ᵐ x ∂(hausdorff n X).restrict (ball p (8 * R)), G x ≤ L) + (x y : X) (hx : x ∈ closedBall p R) (hy : y ∈ closedBall p R) + (r : ℝ) (hr : 0 < r) (hrR : r ≤ R) : + |(⨍ z in closedBall x r, u z ∂hausdorff n X)- + (⨍ z in closedBall y r, u z ∂hausdorff n X)| ≤ L*(dist x y+2*r) := by + let : ProperSpace X := hX.proper K n hn + let : SeparableSpace X := hX.separable + let μ := hausdorff n X + let : IsLocallyFiniteMeasure μ := locallyFinite_of_finiteOnBounded μ hX.finiteOnBounded + let : μ.Regular := inferInstance + let A := closedBall x r + let B := closedBall y r + have hA0 : μ A ≠ 0 := ((hX.fullSupport x r hr).trans_le (measure_mono ball_subset_closedBall)).ne' + have hB0 : μ B ≠ 0 := ((hX.fullSupport y r hr).trans_le (measure_mono ball_subset_closedBall)).ne' + have hAt : μ A ≠ ∞ := (hX.finiteOnBounded A isBounded_closedBall).ne + have hBt : μ B ≠ ∞ := (hX.finiteOnBounded B isBounded_closedBall).ne + let := uniformOn_probability μ A hA0 hAt + let := uniformOn_probability μ B hB0 hBt + let C : ℝ≥0∞ := max (μ A)⁻¹ (μ B)⁻¹ + have hC : C ≠ ∞ := max_ne_top (ENNReal.inv_ne_top.mpr hA0) (ENNReal.inv_ne_top.mpr hB0) + have ha : ∀ᵐ z ∂uniformOn μ A, dist z p ≤ 2 * R := by + filter_upwards [uniformOn_ae_mem μ A measurableSet_closedBall] with z hz + have hzx : dist z x ≤ r := hz + have hxp : dist x p ≤ R := hx + linarith [dist_triangle z x p] + have hb : ∀ᵐ z ∂uniformOn μ B, dist z p ≤ 2 * R := by + filter_upwards [uniformOn_ae_mem μ B measurableSet_closedBall] with z hz + have hzy : dist z y ≤ r := hz + have hyp : dist y p ≤ R := hy + linarith [dist_triangle z y p] + obtain ⟨π,hπ,hgeo,hopt,hi,hall⟩ := hX.exists_bounded_entropy_plan K n hn + (uniformOn μ A) (uniformOn μ B) hC (uniformOn_le_scaled μ A (le_max_left _ _)) + (uniformOn_le_scaled μ B (le_max_right _ _)) p (by positivity) ha hb + let := hπ + have hend := optimalPlan_endpoints (uniformOn μ A) (uniformOn μ B) π hopt + let C' := compressionBudget K n (2*(2*R)) C + have hC' : C' ≠ ∞ := compressionBudget_ne_top K n (2*(2*R)) hC + have hcomp : ∀ t : Time, π.map (fun γ => γ t) ≤ C' • μ := fun t => (hall t).1 + have hD : MemLp (fun γ : C(Time,X) => dist (γ 0) (γ 1)) 2 π := + (memLp_two_iff_integrable_sq (((measurable_path_eval 0).dist + (measurable_path_eval 1)).aestronglyMeasurable)).mpr hi + have hDb : ∀ᵐ γ ∂π, dist (γ 0) (γ 1) ≤ dist x y+2*r := by + have ha' : ∀ᵐ γ ∂π, γ 0 ∈ A := by + apply ae_of_ae_map (measurable_path_eval 0).aemeasurable + rw [hend.1] + exact uniformOn_ae_mem μ A measurableSet_closedBall + have hb' : ∀ᵐ γ ∂π, γ 1 ∈ B := by + apply ae_of_ae_map (measurable_path_eval 1).aemeasurable + rw [hend.2] + exact uniformOn_ae_mem μ B measurableSet_closedBall + filter_upwards [ha',hb'] with γ ha hb + have h0 : dist (γ 0) x ≤ r := ha + have h1 : dist (γ 1) y ≤ r := hb + have ht := dist_triangle4 (γ 0) x y (γ 1) + rw [dist_comm y (γ 1)] at ht + linarith + have hstay (t : Time) : ∀ᵐ z ∂π.map (fun γ => γ t), z ∈ ball p (8 * R) := by + apply (ae_map_iff (measurable_path_eval t).aemeasurable measurableSet_ball).mpr + filter_upwards [optimal_geodesic_plan_bounded (uniformOn μ A) (uniformOn μ B) + π hgeo hopt p (by positivity) ha hb] with γ hγ + have ht : dist (γ t) p ≤ 3 * (2 * R) := hγ.2 t + change dist (γ t) p < 8 * R + linarith + have hm := hG.testPlan_mean_increment_on μ π hgeo hC' hcomp hD L.coe_nonneg hDb hstay hGb + have hu (t : Time) : Integrable (fun γ : C(Time,X) => u (γ t)) π := + (compressionPullback_memLp μ π _ (measurable_path_eval t) hC' (hcomp t) u).integrable (by norm_num) + have hmean : |(∫ γ : C(Time,X), u (γ 1) ∂π)-(∫ γ : C(Time,X), u (γ 0) ∂π)| ≤ + (dist x y+2*r)*L := by + rw [← integral_sub (hu 1) (hu 0)] + exact (abs_integral_le_integral_abs).trans hm + have he (t : Time) (D : Set X) (ht : π.map (fun γ => γ t) = uniformOn μ D) : + (∫ γ : C(Time,X), u (γ t) ∂π) = ⨍ z in D, u z ∂μ := by + rw [← integral_map (measurable_path_eval t).aemeasurable (Lp.stronglyMeasurable u).aestronglyMeasurable,ht] + rw [average_eq',Measure.restrict_apply_univ] + rfl + rw [he 0 A hend.1,he 1 B hend.2,abs_sub_comm] at hmean + simpa only [mul_comm] using hmean + + +/-- Differentiation of local ball averages gives a sharp Lipschitz +representative on the inner ball. No amplitude bound is needed. -/ +theorem NoncollapsedRCD.local_lipschitz_representative + {K : ℝ} {n : ℕ} (hX : NoncollapsedRCD K n X) (hn : 2 ≤ n) + {u G : Lp ℝ 2 (hausdorff n X)} (hG : IsRelaxedSlope (hausdorff n X) u G) + (L : ℝ≥0) {p : X} {R : ℝ} (hR : 0 < R) + (hGb : ∀ᵐ x ∂(hausdorff n X).restrict (ball p (8 * R)), G x ≤ L) : + ∃ v : X → ℝ, LipschitzWith L v ∧ + u =ᵐ[(hausdorff n X).restrict (closedBall p R)] v := by + let : ProperSpace X := hX.proper K n hn + let : SeparableSpace X := hX.separable + let μ := hausdorff n X + let : IsLocallyFiniteMeasure μ := locallyFinite_of_finiteOnBounded μ hX.finiteOnBounded + let : IsUnifLocDoublingMeasure μ := hX.locDoubling K n hn + let S := {x : X | Tendsto (fun r : ℝ => ⨍z in closedBall x r, u z ∂μ) + (𝓝[>] 0) (𝓝 (u x))} + have hS : ∀ᵐ x ∂μ, x ∈ S := by + filter_upwards [IsUnifLocDoublingMeasure.ae_tendsto_average μ + ((Lp.memLp u).locallyIntegrable (by norm_num)) (1 : ℝ)] with x hx + exact hx (fun _ : ℝ => x) id tendsto_id (by + filter_upwards [self_mem_nhdsWithin] with r hr + simp only [mem_closedBall, dist_self, one_mul] + exact hr.le) + have hl : LipschitzOnWith L u (S ∩ closedBall p R) := by + apply LipschitzOnWith.of_dist_le_mul + intro x hx y hy + have hc : Tendsto (fun r : ℝ => L * (dist x y + 2 * r)) (𝓝[>] 0) + (𝓝 (L * dist x y)) := by + have hh : Continuous (fun r : ℝ => (L : ℝ) * (dist x y + 2 * r)) := by fun_prop + simpa using (hh.continuousAt (x := 0)).tendsto.mono_left nhdsWithin_le_nhds + have hsmall : ∀ᶠ r in 𝓝[>] (0 : ℝ), r < R := + (eventually_lt_nhds hR).filter_mono nhdsWithin_le_nhds + have hb : ∀ᶠ r in 𝓝[>] (0 : ℝ), + |(⨍z in closedBall x r, u z ∂μ) - (⨍z in closedBall y r, u z ∂μ)| ≤ + L * (dist x y + 2 * r) := by + filter_upwards [self_mem_nhdsWithin, hsmall] with r hr hrR + exact hX.local_average_bound_of_gradient K n hn hG L hR hGb x y hx.2 hy.2 r hr hrR.le + simpa only [Real.dist_eq] using + le_of_tendsto_of_tendsto ((hx.1.sub hy.1).abs) hc hb + obtain ⟨v, hv, he⟩ := hl.extend_real + refine ⟨v, hv, ?_⟩ + filter_upwards [ae_restrict_of_ae hS, ae_restrict_mem measurableSet_closedBall] with x hx hxR + exact he ⟨hx, hxR⟩ + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/LocalHessianAction.lean b/lean/OAI/Geometry/RCD/Sobolev/LocalHessianAction.lean new file mode 100644 index 0000000000000000000000000000000000000000..7199386e87c8fff7f60c0bace83f0f8333c5b6bb --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/LocalHessianAction.lean @@ -0,0 +1,53 @@ +import OAI.Geometry.RCD.Sobolev.WeakRadialCancellation +import OAI.Geometry.RCD.Coordinates.BoundedSplittingCoordinates + +namespace OAI + +/-! # The local Hessian action and the exact two-center commutator identity + +Gigli (2018), Theorem 3.3.8, equation (3.3.19), identifies the three-term +gradient formula with Hessian evaluation on gradient vector fields. +The cancellation below only uses the actual local Sobolev pairings. +-/ + +open Set MeasureTheory + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +/-- The three-term gradient formula for Hess f(grad v, grad u), when the +three local gradient pairings have Sobolev representatives. -/ +def localHessianAction (f v u fv fu vu : SobolevSpace μ hQ) : X → ℝ := + fun x => (localGamma μ hQ v fu x + localGamma μ hQ u fv x - + localGamma μ hQ f vu x) / 2 + +/-- The second derivatives of the coordinate function cancel exactly. +No differentiability of a pointwise metric is used. -/ +theorem local_hessian_commutator {Ω : Set X} {f v u : SobolevSpace μ hQ} + (Gfv : LocalHessianPairing μ hQ Ω f v) + (Gvf : LocalHessianPairing μ hQ Ω v f) + (Gfu : LocalHessianPairing μ hQ Ω f u) + (Gvu : LocalHessianPairing μ hQ Ω v u) : + (fun x => localGamma μ hQ v Gfu.mixed x - localGamma μ hQ f Gvu.mixed x) =ᵐ[μ.restrict Ω] + fun x => localHessianAction μ hQ f v u Gfv.mixed Gfu.mixed Gvu.mixed x - + localHessianAction μ hQ v f u Gvf.mixed Gvu.mixed Gfu.mixed x := by + have heq : SobolevSpace.toLp μ hQ Gfv.mixed =ᵐ[μ.restrict Ω] + SobolevSpace.toLp μ hQ Gvf.mixed := by + filter_upwards [Gfv.mixed_rep, Gvf.mixed_rep, + ae_restrict_of_ae (localGamma_comm μ hQ f v)] with x hfv hvf hc + exact hfv.trans (hc.trans hvf.symm) + have hg := localGamma_pair_congr_ae μ hQ (f := u) (f' := u) + (g := Gvf.mixed) (g' := Gfv.mixed) Filter.EventuallyEq.rfl heq + filter_upwards [hg] with x hx + dsimp only [localHessianAction] + rw [hx] + ring + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/LocalHessianLimitPairing.lean b/lean/OAI/Geometry/RCD/Sobolev/LocalHessianLimitPairing.lean new file mode 100644 index 0000000000000000000000000000000000000000..cc0bbbd1faff40f3f807d62397f2ebaf97f3d2b9 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/LocalHessianLimitPairing.lean @@ -0,0 +1,63 @@ +import OAI.Geometry.RCD.Harmonic.L1LocalLimitPairing +import OAI.Geometry.RCD.Sobolev.HessianActionRepresentatives +import OAI.Geometry.RCD.Sobolev.HessianActionIntegral + +namespace OAI + +/-! # The local Hessian pairing is independent of a larger cutoff -/ + +open Set Filter MeasureTheory +open scoped Topology NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) (Q : QuadraticCheegerEnergy μ) + +theorem local_hessian_limits_pairing_eq (ν : Measure X) (hν : ν ≪ μ) + {Ω Λ : Set X} (hΩ : MeasurableSet Ω) (hΛ : MeasurableSet Λ) (hsub : Ω ⊆ Λ) + (w : SobolevSpace μ Q) (u v WU WV UU VV : ℕ → SobolevSpace μ Q) + (huv : ∀ k, SobolevSpace.toLp μ Q (u k) =ᵐ[μ.restrict Ω] SobolevSpace.toLp μ Q (v k)) + (hWU : ∀ k, SobolevSpace.toLp μ Q (WU k) =ᵐ[μ.restrict Ω] localGamma μ Q w (u k)) + (hWV : ∀ k, SobolevSpace.toLp μ Q (WV k) =ᵐ[μ.restrict Λ] localGamma μ Q w (v k)) + (hUU : ∀ k, SobolevSpace.toLp μ Q (UU k) =ᵐ[μ.restrict Ω] localGamma μ Q (u k) (u k)) + (hVV : ∀ k, SobolevSpace.toLp μ Q (VV k) =ᵐ[μ.restrict Λ] localGamma μ Q (v k) (v k)) + (φ ψ : X → ℝ) (hφ : AEStronglyMeasurable φ μ) (hψ : AEStronglyMeasurable ψ μ) + (B C : ℝ≥0) (hB : ∀ᵐ x ∂μ, |φ x| ≤ B) (hC : ∀ᵐ x ∂μ, |ψ x| ≤ C) + (hzφ : ∀ x ∉ Ω, φ x=0) (hzψ : ∀ x ∉ Λ, ψ x=0) + (hψone : ∀ x ∈ Ω, ψ x=1) (hφone : φ =ᵐ[ν] fun _ => 1) + (I : Lp ℝ 1 (μ.restrict Ω)) (J : Lp ℝ 1 (μ.restrict Λ)) + (hI : Tendsto (fun k => ∫ x in Ω, + |φ x*localHessianAction μ Q w (u k) (u k) (WU k) (WU k) (UU k) x-I x| ∂μ) + atTop (𝓝 0)) + (hJ : Tendsto (fun k => ∫ x in Λ, + |ψ x*localHessianAction μ Q w (v k) (v k) (WV k) (WV k) (VV k) x-J x| ∂μ) + atTop (𝓝 0)) : + (∫ x in Ω, I x ∂ν) = ∫ x in Λ, J x ∂ν := by + let F k x := φ x*localHessianAction μ Q w (u k) (u k) (WU k) (WU k) (UU k) x + let G k x := ψ x*localHessianAction μ Q w (v k) (v k) (WV k) (WV k) (VV k) x + have hb : ∀ᵐ x ∂μ, ‖φ x‖ ≤ B := by simpa only [Real.norm_eq_abs] using hB + have hc : ∀ᵐ x ∂μ, ‖ψ x‖ ≤ C := by simpa only [Real.norm_eq_abs] using hC + apply local_L1_limits_pairing_eq μ ν hν hΩ hΛ F G + (fun k => (localHessianAction_integrable μ Q w (u k) (u k) (WU k) (WU k) (UU k)).bdd_mul hφ hb) + (fun k => (localHessianAction_integrable μ Q w (v k) (v k) (WV k) (WV k) (VV k)).bdd_mul hψ hc) + (fun k x hx => by dsimp only [F]; rw [hzφ x hx,zero_mul]) + (fun k x hx => by dsimp only [G]; rw [hzψ x hx,zero_mul]) + I J hI hJ φ hφ B hB _ hφone + intro k + have he := localHessianAction_congr_of_grams μ Q w (u k) (v k) (u k) (v k) + (WU k) (WV k) (WU k) (WV k) (UU k) (VV k) (huv k) (huv k) + (hWU k) (ae_restrict_of_ae_restrict_of_subset hsub (hWV k)) + (hWU k) (ae_restrict_of_ae_restrict_of_subset hsub (hWV k)) + (hUU k) (ae_restrict_of_ae_restrict_of_subset hsub (hVV k)) + filter_upwards [(ae_restrict_iff' hΩ).mp he] with x hx + by_cases hm : x ∈ Ω + · dsimp only [F,G] + rw [hψone x hm,one_mul,hx hm] + · dsimp only [F,G] + rw [hzφ x hm,zero_mul,zero_mul] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/LocalHolderMoment.lean b/lean/OAI/Geometry/RCD/Sobolev/LocalHolderMoment.lean new file mode 100644 index 0000000000000000000000000000000000000000..10cabd1c3b32ce25d73876a104c606f0a26b9b2c --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/LocalHolderMoment.lean @@ -0,0 +1,76 @@ +import OAI.Geometry.RCD.Sobolev.InhomogeneousSobolev + +namespace OAI + +/-! # The localized Hölder step for harmonic level sets -/ + +open Set Filter MeasureTheory +open scoped ENNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MeasurableSpace X] (μ : Measure X) + +/-- On a finite measure space, a superquadratic moment controls L² with +the exact measure power used in the level-set iteration. -/ +theorem square_integral_le_higher_moment [IsFiniteMeasure μ] + {f : X → ℝ} (hf : AEStronglyMeasurable f μ) {p : ℝ} (hp : 2 < p) + (hi : Integrable (fun x => |f x|^p) μ) : + (∫ x, (f x)^2 ∂μ) ≤ (∫ x, |f x|^p ∂μ)^(2/p)* + (μ.real univ)^(1-2/p) := by + have hp0 : 0 < p := by linarith + have hp2 : 0 < p/2 := by positivity + let q := Real.conjExponent (p/2) + have hpq : (p/2).HolderConjugate q := Real.HolderConjugate.conjExponent (by linarith) + have hpow (x : X) : ‖(f x)^2‖^(p/2) = |f x|^p := by + rw [Real.norm_eq_abs,abs_of_nonneg (sq_nonneg _),← sq_abs] + rw [← Real.rpow_two,← Real.rpow_mul (abs_nonneg _)] + congr 1 + ring + have hfp : MemLp (fun x => (f x)^2) (ENNReal.ofReal (p/2)) μ := by + apply (integrable_norm_rpow_iff (hf.pow 2) (by positivity) ENNReal.ofReal_ne_top).mp + change Integrable (fun x => ‖(f x)^2‖^(ENNReal.ofReal (p/2)).toReal) μ + simpa only [ENNReal.toReal_ofReal hp2.le,hpow] using hi + have hg : MemLp (fun _ : X => (1:ℝ)) (ENNReal.ofReal q) μ := memLp_const 1 + have h := integral_mul_le_Lp_mul_Lq_of_nonneg hpq + (Eventually.of_forall fun x => sq_nonneg (f x)) + (Eventually.of_forall fun _ => zero_le_one) hfp hg + have hq : 1/q = 1-2/p := by + rw [one_div,← hpq.one_sub_inv] + field_simp + have hpexp : 1/(p/2) = 2/p := by field_simp + have hpow' : (fun x => ((f x)^2)^(p/2)) = fun x => |f x|^p := by + funext x + simpa only [Real.norm_eq_abs,abs_of_nonneg (sq_nonneg (f x))] using hpow x + simpa only [mul_one,hpow',Real.one_rpow,integral_const,smul_eq_mul,mul_one, + hpexp,hq,Measure.real] using h + +/-- Restricting the L² integral to a level set inserts a positive power +of its measure while retaining the moment on the outer domain. -/ +theorem square_setIntegral_le_higher_moment {Ω A : Set X} + (_hΩ : MeasurableSet Ω) (_hA : MeasurableSet A) (hAΩ : A ⊆ Ω) + (hfin : μ Ω < ∞) {f : X → ℝ} (hf : AEStronglyMeasurable f (μ.restrict Ω)) + {p : ℝ} (hp : 2 < p) (hi : IntegrableOn (fun x => |f x|^p) Ω μ) : + (∫ x in A, (f x)^2 ∂μ) ≤ (∫ x in Ω, |f x|^p ∂μ)^(2/p)* + (μ.real A)^(1-2/p) := by + let : IsFiniteMeasure (μ.restrict A) := + ⟨by simpa only [Measure.restrict_apply_univ] using lt_of_le_of_lt (measure_mono hAΩ) hfin⟩ + have hm : μ.restrict A ≤ μ.restrict Ω := Measure.restrict_mono hAΩ le_rfl + have hh := square_integral_le_higher_moment (μ.restrict A) (hf.mono_measure hm) hp + (hi.mono_set hAΩ) + have hmono : (∫ x in A, |f x|^p ∂μ) ≤ ∫ x in Ω, |f x|^p ∂μ := + setIntegral_mono_set hi (Eventually.of_forall fun _ => Real.rpow_nonneg (abs_nonneg _) _) + (Eventually.of_forall fun _ hx => hAΩ hx) + have hmom0 : 0 ≤ ∫ x in A, |f x|^p ∂μ := + integral_nonneg fun _ => Real.rpow_nonneg (abs_nonneg _) _ + have hp0 : 0 < p := by linarith + simp only [Measure.real,Measure.restrict_apply_univ] at hh ⊢ + exact hh.trans (mul_le_mul_of_nonneg_right + (Real.rpow_le_rpow hmom0 hmono (by positivity)) (by positivity)) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/LocalL1WeakPairing.lean b/lean/OAI/Geometry/RCD/Sobolev/LocalL1WeakPairing.lean new file mode 100644 index 0000000000000000000000000000000000000000..f088725d3cfde7365fa149db8fc3d2cf9f2a3708 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/LocalL1WeakPairing.lean @@ -0,0 +1,43 @@ +import OAI.Geometry.RCD.Metric.ProbabilityDominationL1 + +namespace OAI + +/-! # Local L1 convergence paired with weakly convergent bounded densities -/ + +open Set Filter MeasureTheory +open scoped Topology ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + +theorem local_L1_weak_pairing (μ : Measure X) [μ.WeaklyRegular] + (P : ℕ → ProbabilityMeasure X) (Q : ProbabilityMeasure X) + (hweak : Tendsto P atTop (𝓝 Q)) {C : ℝ≥0∞} (hC : C ≠ ∞) + (hP : ∀ k, (P k : Measure X) ≤ C • μ) + {Ω : Set X} (hΩ : MeasurableSet Ω) + (F : ℕ → X → ℝ) (hF : ∀ k, Integrable (F k) μ) + (hz : ∀ k x, x ∉ Ω → F k x = 0) + (J : Lp ℝ 1 (μ.restrict Ω)) + (hlim : Tendsto (fun k => ∫ x in Ω, |F k x-J x| ∂μ) atTop (𝓝 0)) : + Tendsto (fun k => ∫ x, F k x ∂(P k : Measure X)) atTop + (𝓝 (∫ x in Ω, J x ∂(Q : Measure X))) := by + let f := Ω.indicator (fun x => J x) + have hf : Integrable f μ := (integrable_indicator_iff hΩ).mpr + (memLp_one_iff_integrable.mp (Lp.memLp J)) + have he (k : ℕ) : (∫ x, |F k x-f x| ∂μ) = ∫ x in Ω, |F k x-J x| ∂μ := by + rw [← setIntegral_eq_integral_of_forall_compl_eq_zero (s := Ω)] + · apply integral_congr_ae + filter_upwards [ae_restrict_mem hΩ] with x hx + rw [show f x=J x from indicator_of_mem hx _] + · intro x hx + rw [hz k x hx,show f x=0 from indicator_of_notMem hx _] + norm_num + have hh := weak_probability_integral_L1_varying μ P Q hweak hC hP F f hF hf + (by simpa only [he] using hlim) + simpa only [f,integral_indicator hΩ] using hh + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/LocalLaplacianMass.lean b/lean/OAI/Geometry/RCD/Sobolev/LocalLaplacianMass.lean new file mode 100644 index 0000000000000000000000000000000000000000..112869afbf6cca65515e02f1ae2b31e3232d0b69 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/LocalLaplacianMass.lean @@ -0,0 +1,54 @@ +import OAI.Geometry.RCD.Sobolev.WeakLaplacianLowerMass + +namespace OAI + +/-! # Absolute local Laplacian mass from local gradient bounds -/ + +open Set Filter MeasureTheory +open scoped NNReal ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) (Q : QuadraticCheegerEnergy μ) + +theorem local_laplacian_mass (u χ : SobolevSpace μ Q) (d : Lp ℝ 2 μ) + (hd : IsWeakLaplacian μ Q u d) (v : X → ℝ) + (hv : SobolevSpace.toLp μ Q χ =ᵐ[μ] v) (hvi : Integrable v μ) (hv0 : ∀ x, 0≤v x) + {Ω : Set X} (hΩ : MeasurableSet Ω) (hfinite : μ Ω≠∞) + (hvzero : ∀ x∉Ω, v x=0) (L M : ℝ≥0) + (huL : ∀ᵐ x ∂μ.restrict Ω, SobolevSpace.minimalSlope μ Q u x≤L) + (hχM : ∀ᵐ x ∂μ, SobolevSpace.minimalSlope μ Q χ x≤M) + {C : ℝ} (hC : 0≤C) (hlower : ∀ᵐ x ∂μ.restrict Ω, -C≤d x) : + Integrable (fun x => v x*|d x|) μ ∧ + (∫ x, v x*|d x| ∂μ)≤(L:ℝ)*M*μ.real Ω+2*C*(∫ x, v x ∂μ) := by + have hΓ : ∀ᵐ x ∂μ.restrict Ω, |localGamma μ Q u χ x|≤(L:ℝ)*M := by + filter_upwards [huL,ae_restrict_of_ae hχM,ae_restrict_of_ae (localGamma_abs_le μ Q u χ), + ae_restrict_of_ae ((Lp.coeFn_nonneg _).mpr (SobolevSpace.minimalSlope_nonneg μ Q χ))] + with x hu hχ hg hn + change 0≤SobolevSpace.minimalSlope μ Q χ x at hn + exact hg.trans (mul_le_mul hu hχ hn L.coe_nonneg) + have hz : ∀ᵐ x ∂μ, x∉Ω → localGamma μ Q u χ x=0 := by + filter_upwards [hv,localGamma_comm μ Q u χ,localGamma_zero_on_level μ Q χ u 0] + with x hx hc h0 hout + exact hc.trans (h0 (hx.trans (hvzero x hout))) + have he : |energyForm μ Q u χ|≤(L:ℝ)*M*μ.real Ω := by + rw [← integral_localGamma_eq_energyForm, + ← setIntegral_eq_integral_of_ae_compl_eq_zero hz] + calc + _ ≤ ∫ x in Ω, |localGamma μ Q u χ x| ∂μ := abs_integral_le_integral_abs + _ ≤ ∫ _ in Ω, (L:ℝ)*M ∂μ := integral_mono_ae + (localGamma_memL1 μ Q u χ).integrableOn.abs (integrableOn_const hfinite) hΓ + _ = _ := by simp only [setIntegral_const,smul_eq_mul]; ring + have hl : ∀ᵐ x ∂μ, v x≠0 → -C≤d x := by + filter_upwards [(ae_restrict_iff' hΩ).mp hlower] with x hx hne + apply hx + by_contra hout + exact hne (hvzero x hout) + obtain ⟨hi,hm⟩ := weakLaplacian_lower_weighted_mass μ Q u χ d hd v hv hvi hv0 hC hl + exact ⟨hi,hm.trans (add_le_add he le_rfl)⟩ + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/LocalLipschitzAverages.lean b/lean/OAI/Geometry/RCD/Sobolev/LocalLipschitzAverages.lean new file mode 100644 index 0000000000000000000000000000000000000000..b20b4952ea8f9aa5fb8d96164104dbc7c23e6da9 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/LocalLipschitzAverages.lean @@ -0,0 +1,51 @@ +import OAI.Geometry.RCD.Heat.HeatPoissonAverage + +namespace OAI + +/-! # Ball averages controlled by a local Lipschitz representative -/ + +open Set Metric MeasureTheory +open scoped NNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) [IsLocallyFiniteMeasure μ] + +/-- Only Lipschitz control on the set containing the two averaging balls is +needed; a real-valued Lipschitz extension is used solely for this estimate. -/ +theorem local_lipschitz_ball_average_bound {S : Set X} {f : X → ℝ} {L : ℝ≥0} + (hf : LipschitzOnWith L f S) (x y : X) {r : ℝ} (hr : 0 ≤ r) + (hx : μ (closedBall x r) ≠ 0) (hy : μ (closedBall y r) ≠ 0) + (hxS : closedBall x r ⊆ S) (hyS : closedBall y r ⊆ S) : + |(⨍ z in closedBall x r, f z ∂μ)-(⨍ z in closedBall y r, f z ∂μ)| ≤ + L*(dist x y+2*r) := by + obtain ⟨v,hv,he⟩ := hf.extend_real + have hax : (⨍ z in closedBall x r, f z ∂μ) = ⨍ z in closedBall x r, v z ∂μ := by + apply average_congr + filter_upwards [ae_restrict_mem measurableSet_closedBall] with z hz + exact he (hxS hz) + have hay : (⨍ z in closedBall y r, f z ∂μ) = ⨍ z in closedBall y r, v z ∂μ := by + apply average_congr + filter_upwards [ae_restrict_mem measurableSet_closedBall] with z hz + exact he (hyS hz) + rw [hax,hay] + have ha := average_lipschitz_center μ hv x hr hx + have hb := average_lipschitz_center μ hv y hr hy + have hd := hv.dist_le_mul x y + rw [Real.dist_eq] at hd + have htri := abs_add_three ((⨍z in closedBall x r,v z ∂μ)-v x) (v x-v y) + (v y-(⨍z in closedBall y r,v z ∂μ)) + rw [abs_sub_comm (v y)] at htri + have heq : ((⨍z in closedBall x r,v z ∂μ)-v x)+(v x-v y)+ + (v y-(⨍z in closedBall y r,v z ∂μ)) = + (⨍z in closedBall x r,v z ∂μ)-(⨍z in closedBall y r,v z ∂μ) := by ring + rw [heq] at htri + nlinarith + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/LocalLipschitzDenseCauchy.lean b/lean/OAI/Geometry/RCD/Sobolev/LocalLipschitzDenseCauchy.lean new file mode 100644 index 0000000000000000000000000000000000000000..027d71528401acd4d80548d46380a4fe0885508b --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/LocalLipschitzDenseCauchy.lean @@ -0,0 +1,70 @@ +import Mathlib.Topology.MetricSpace.Lipschitz +import Mathlib.Topology.Instances.Real.Lemmas +import Mathlib.Topology.Sequences + +namespace OAI + +/-! # Extending scalar convergence from dense times + +Uniform local Lipschitz bounds turn convergence at a fixed dense sequence +of times into convergence at every time, with a continuous limit. +-/ + +open Set Filter Metric +open scoped Topology NNReal +noncomputable section +namespace RegularPointCoordinates +variable {T : Type*} [MetricSpace T] + +theorem local_lipschitz_cauchy_of_dense (F : ℕ → T → ℝ) (s : ℕ → T) + (hs : DenseRange s) + (hL : ∀ t, ∃ (L : ℝ≥0) (r : ℝ), 0 < r ∧ + ∀ k, LipschitzOnWith L (F k) (ball t r)) + (hC : ∀ j, CauchySeq (fun k => F k (s j))) (t : T) : + CauchySeq (fun k => F k t) := by + obtain ⟨L,r,hr,hL⟩ := hL t + rw [Metric.cauchySeq_iff] + intro ε hε + let η := min (r/2) (ε/(8*((L:ℝ)+1))) + have hη : 0 < η := lt_min (by positivity) (by positivity) + obtain ⟨j,hj⟩ := hs.exists_dist_lt t hη + have hsj : s j ∈ ball t r := by + rw [mem_ball,dist_comm] + exact hj.trans (lt_of_le_of_lt (min_le_left _ _) (by linarith)) + have ht : t ∈ ball t r := mem_ball_self hr + obtain ⟨N,hN⟩ := Metric.cauchySeq_iff.mp (hC j) (ε/2) (half_pos hε) + refine ⟨N,fun a ha b hb => ?_⟩ + have hsmall : (L:ℝ)*dist t (s j) < ε/8 := by + have hj' : dist t (s j) < ε/(8*((L:ℝ)+1)) := hj.trans_le (min_le_right _ _) + have he := (lt_div_iff₀ (show 0 < 8*((L:ℝ)+1) by positivity)).mp hj' + nlinarith [dist_nonneg (x := t) (y := s j)] + have ha' := (hL a).dist_le_mul t ht (s j) hsj + have hb' := (hL b).dist_le_mul t ht (s j) hsj + have hmid := hN a ha b hb + have htri := dist_triangle4 (F a t) (F a (s j)) (F b (s j)) (F b t) + rw [dist_comm (F b (s j))] at htri + linarith + +theorem local_lipschitz_limit_of_dense (F : ℕ → T → ℝ) (s : ℕ → T) + (hs : DenseRange s) + (hL : ∀ t, ∃ (L : ℝ≥0) (r : ℝ), 0 < r ∧ + ∀ k, LipschitzOnWith L (F k) (ball t r)) + (hC : ∀ j, CauchySeq (fun k => F k (s j))) : + ∃ f : T → ℝ, Continuous f ∧ ∀ t, Tendsto (fun k => F k t) atTop (𝓝 (f t)) := by + let f t := limUnder atTop (fun k => F k t) + have hf t : Tendsto (fun k => F k t) atTop (𝓝 (f t)) := + (local_lipschitz_cauchy_of_dense F s hs hL hC t).tendsto_limUnder + refine ⟨f,continuous_iff_continuousAt.mpr (fun t => ?_),hf⟩ + obtain ⟨L,r,hr,hL⟩ := hL t + have hfl : LipschitzOnWith L f (ball t r) := by + apply LipschitzOnWith.of_dist_le_mul + intro x hx y hy + exact le_of_tendsto ((hf x).dist (hf y)) + (Eventually.of_forall fun k => (hL k).dist_le_mul x hx y hy) + exact (hfl.continuousOn t (mem_ball_self hr)).continuousAt (isOpen_ball.mem_nhds (mem_ball_self hr)) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/LocalLipschitzDerivative.lean b/lean/OAI/Geometry/RCD/Sobolev/LocalLipschitzDerivative.lean new file mode 100644 index 0000000000000000000000000000000000000000..3b0412af83b8e4a10dec167e65a9f6da23245e30 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/LocalLipschitzDerivative.lean @@ -0,0 +1,41 @@ +import OAI.Geometry.RCD.Sobolev.LocalLipschitzGreenPairing + +namespace OAI + +/-! # Almost-everywhere derivatives and finite energy on interior balls -/ + +open Set Filter MeasureTheory Metric +open scoped Topology NNReal +noncomputable section +namespace RegularPointCoordinates + +theorem local_lipschitz_derivative {n : ℕ} {f : Euclidean n → ℝ} {S R : ℝ} + (hRS : R ‖fderiv ℝ f x‖^2) (ball 0 R) volume := by + let W := (R+S)/2 + have hRW : R (hvals x).1), + integral_congr_ae (Eventually.of_forall fun x => (hvals x).2)] at hpair + exact hpair + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/LocalLipschitzGreenTrace.lean b/lean/OAI/Geometry/RCD/Sobolev/LocalLipschitzGreenTrace.lean new file mode 100644 index 0000000000000000000000000000000000000000..b8e9109f9c3ab45ec699f7f20ba5a17ebb65391a --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/LocalLipschitzGreenTrace.lean @@ -0,0 +1,56 @@ +import OAI.Geometry.RCD.Sobolev.LipschitzGreenTrace +import OAI.Geometry.RCD.Sobolev.LocalLipschitzDerivative + +namespace OAI + +/-! # The local Green trace identity on the full open Euclidean ball -/ + +open Set Filter MeasureTheory Metric InnerProductSpace Laplacian +open scoped Topology NNReal +noncomputable section +namespace RegularPointCoordinates + +theorem laplacian_zero_off_tsupport {n : ℕ} {ψ : Euclidean n → ℝ} + (hψ : ContDiff ℝ 2 ψ) {x : Euclidean n} (hx : x∉tsupport ψ) : (Δ ψ) x=0 := by + rw [laplacian_eq_sum_second_directional hψ] + apply Finset.sum_eq_zero + intro i _ + have hs : tsupport (fun y => fderiv ℝ ψ y (EuclideanSpace.single i 1)) ⊆ tsupport ψ := + (tsupport_fderiv_apply_subset ℝ (EuclideanSpace.single i 1)) + rw [fderiv_of_notMem_tsupport ℝ (fun h => hx (hs h))] + simp + +theorem local_lipschitz_green_trace {n : ℕ} {f ψ : Euclidean n → ℝ} + {S : ℝ} (hS : 0 (hvals x).1), + integral_congr_ae (Eventually.of_forall fun x => (hvals x).2)] at hpair + exact hpair + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/LocalMeanEnergyFactor.lean b/lean/OAI/Geometry/RCD/Sobolev/LocalMeanEnergyFactor.lean new file mode 100644 index 0000000000000000000000000000000000000000..98043ec5f86564823c88d57344f2197b2531b94b --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/LocalMeanEnergyFactor.lean @@ -0,0 +1,47 @@ +import OAI.Geometry.RCD.Metric.LocalBallMeanDerivative + +namespace OAI + +/-! # Vanishing compression errors retain the sharp mean derivative estimate -/ + +open Set Filter MeasureTheory Metric +open scoped Topology NNReal +noncomputable section +namespace RegularPointCoordinates + +theorem local_ball_mean_energy_with_factor {n : ℕ} (hn : 0 (ν : Measure (Euclidean n)).real (closedBall x t)/ + volume.real (closedBall x t)) (𝓝[>] 0) (𝓝 d)) + (r : ℕ → ℝ) (hr : ∀ k, 0 hx (hq hs)) + have he' := (ae_restrict_iff' hΩ).mp he + have hsource : inner ℝ d (SobolevSpace.toLp μ hQ (SobolevSpace.product μ hQ b ψ A C)) = + ∫ x, q x*d x*e x ∂μ := by + rw [L2.inner_def] + apply integral_congr_ae + filter_upwards [SobolevSpace.product_coe μ hQ b ψ A C hb hψb,hψ,he'] with x hx hpx hex + simp only [Real.inner_apply,hx,hpx] + by_cases hmem : x ∈ Ω + · rw [hex hmem]; ring + · rw [hzero x hmem]; ring + have hweight : weightedGamma μ hQ e f ψ = weightedGamma μ hQ B f ψ := by + unfold weightedGamma + apply integral_congr_ae + filter_upwards [he',hψ,localGamma_zero_on_level μ hQ ψ f 0, + localGamma_comm μ hQ f ψ] with x hex hpx hz hc + by_cases hmem : x ∈ Ω + · rw [hex hmem] + · rw [hc,hz (hpx.trans (hzero x hmem)),mul_zero,mul_zero] + have htest : weightedGamma μ hQ B f ψ+weightedGamma μ hQ P f b = + -(∫ x, q x*d x*e x ∂μ) := by + rw [← hleft,hd,hsource] + have hqΓ : weightedGamma μ hQ P f b = ∫ x, q x*localGamma μ hQ f b x ∂μ := by + apply integral_congr_ae + exact hψ.mono fun x hx => congrArg (fun z => z*localGamma μ hQ f b x) hx + rw [hweight] + rw [hqΓ] at htest + linarith only [htest] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/LocalPoissonCompactExtension.lean b/lean/OAI/Geometry/RCD/Sobolev/LocalPoissonCompactExtension.lean new file mode 100644 index 0000000000000000000000000000000000000000..36508e7ace43b7b07518279bf860ea3f258885a9 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/LocalPoissonCompactExtension.lean @@ -0,0 +1,57 @@ +import OAI.Geometry.RCD.Sobolev.PoissonCompactExtension +import OAI.Geometry.RCD.Sobolev.LocalGradientBoundedness +import OAI.Geometry.RCD.Sobolev.GoodCutoffFromResolvent +import OAI.Geometry.RCD.Sobolev.PoissonLocality +import OAI.Geometry.RCD.Coordinates.BoundedSplittingCoordinates + +namespace OAI + +/-! # Compact regular extensions from a local Poisson gradient bound -/ + +open Set Filter Metric MeasureTheory +open scoped NNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem NoncollapsedRCD.local_poisson_compact_extension {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (hn : 2 ≤ n) + (f : SobolevSpace (hausdorff n X) hX.quadratic) (c : ℝ) + {p : X} {R b : ℝ} (hR : 0 hmem (hws hm)) + simp only [Real.inner_apply, hψx, hwz, zero_mul] + let cw : C_c(X, ℝ) := ⟨⟨w, hw⟩, hwc⟩ + have hh := hX.constant_laplacian_bochner_sobolev_test hn hv hvc p F hFv d hd + measurableSet_ball c hdc G₀ hG₀ ψ hw.measurable hψ hws + ‖cw.toBoundedContinuousFunction‖₊ + (fun x => cw.toBoundedContinuousFunction.norm_coe_le_norm x) hw0 + rw [henergy, hpair] + exact hh + +theorem NoncollapsedRCD.local_poisson_energy_density {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) [(hausdorff n X).Regular] (hn : 2 ≤ n) + {Ω : Set X} (hΩ : MeasurableSet Ω) + (f : SobolevSpace (hausdorff n X) hX.quadratic) (c : ℝ) + (hf : IsConstantLaplacianOn (hausdorff n X) hX.quadratic Ω f c) + (A L : ℝ≥0) (hA : ∀ᵐ x ∂hausdorff n X, |SobolevSpace.toLp (hausdorff n X) hX.quadratic f x| ≤ A) + (hL : ∀ᵐ x ∂(hausdorff n X).restrict Ω, + localGamma (hausdorff n X) hX.quadratic f f x ≤ (L : ℝ) ^ 2) + {p : X} {R C : ℝ} (hR : 0 < R) + (χ : GoodLaplacianCutoff (hausdorff n X) hX.quadratic p R C) + (hsub : closedBall p (2 * R) ⊆ Ω) : + ∃ G : SobolevSpace (hausdorff n X) hX.quadratic, + (∀ᵐ x ∂hausdorff n X, 0 ≤ SobolevSpace.toLp (hausdorff n X) hX.quadratic G x ∧ + SobolevSpace.toLp (hausdorff n X) hX.quadratic G x ≤ (L : ℝ) ^ 2) ∧ + (SobolevSpace.toLp (hausdorff n X) hX.quadratic G =ᵐ[(hausdorff n X).restrict (ball p R)] + localGamma (hausdorff n X) hX.quadratic f f) ∧ + ∀ (ψ : SobolevSpace (hausdorff n X) hX.quadratic) (v : X → ℝ) (B : ℝ≥0), + LipschitzWith B v → HasCompactSupport v → tsupport v ⊆ ball p R → + SobolevSpace.toLp (hausdorff n X) hX.quadratic ψ =ᵐ[hausdorff n X] v → + (∀ x, 0 ≤ v x) → + 0 ≤ -(1 / 2 : ℝ) * energyForm (hausdorff n X) hX.quadratic G ψ - + K * inner ℝ (SobolevSpace.toLp (hausdorff n X) hX.quadratic ψ) + (SobolevSpace.toLp (hausdorff n X) hX.quadratic G) := by + obtain ⟨G, hGb, hGr, hpos⟩ := hX.local_poisson_energy_density_continuous_tests hn hΩ f c hf A L hA hL hR χ hsub + exact ⟨G, hGb, hGr, fun ψ v B hv hvc hvs hψ hv0 => hpos ψ v hv.continuous hvc hvs hψ hv0⟩ + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/LocalPoissonFullBochnerMeasure.lean b/lean/OAI/Geometry/RCD/Sobolev/LocalPoissonFullBochnerMeasure.lean new file mode 100644 index 0000000000000000000000000000000000000000..b0709a23bd9a7bde7fefde5197cf1bdd9eb98fdd --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/LocalPoissonFullBochnerMeasure.lean @@ -0,0 +1,97 @@ +import OAI.Geometry.RCD.Sobolev.LocalPoissonEnergyDensity +import OAI.Geometry.RCD.Sobolev.PositiveSobolevTestMeasure +import OAI.Geometry.RCD.Sobolev.SobolevTestFunctional + +namespace OAI + +/-! # Full continuous-test Bochner measures for local Poisson data + +The three-halves interior ratio leaves room for the good cutoff inside +an eightfold working ball. The identity holds on every continuous +compactly supported Sobolev test +and retains all of the positive measure. +-/ + +open Set Filter Metric MeasureTheory +open scoped NNReal BoundedContinuousFunction CompactlySupported + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem NoncollapsedRCD.local_poisson_full_bochner_measure {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) [(hausdorff n X).Regular] (hn : 2 ≤ n) + {Ω : Set X} (hΩ : MeasurableSet Ω) + (f : SobolevSpace (hausdorff n X) hX.quadratic) (c : ℝ) + (hf : IsConstantLaplacianOn (hausdorff n X) hX.quadratic Ω f c) + (A L : ℝ≥0) (hA : ∀ᵐ x ∂hausdorff n X, |SobolevSpace.toLp (hausdorff n X) hX.quadratic f x| ≤ A) + (hL : ∀ᵐ x ∂(hausdorff n X).restrict Ω, + localGamma (hausdorff n X) hX.quadratic f f x ≤ (L : ℝ) ^ 2) + {p : X} {R C : ℝ} (hR : 0 < R) + (χ : GoodLaplacianCutoff (hausdorff n X) hX.quadratic p (3 * R / 2) C) + (hsub : closedBall p (2 * (3 * R / 2)) ⊆ Ω) + (κ : ℝ) (hK : -κ ≤ K) : + ∃ (G : SobolevSpace (hausdorff n X) hX.quadratic) (σ : Measure X), + IsFiniteMeasure σ ∧ + (∀ᵐ x ∂hausdorff n X, 0 ≤ SobolevSpace.toLp (hausdorff n X) hX.quadratic G x ∧ + SobolevSpace.toLp (hausdorff n X) hX.quadratic G x ≤ (L : ℝ) ^ 2) ∧ + (SobolevSpace.toLp (hausdorff n X) hX.quadratic G =ᵐ[(hausdorff n X).restrict (ball p R)] + localGamma (hausdorff n X) hX.quadratic f f) ∧ + ∀ (ψ : SobolevSpace (hausdorff n X) hX.quadratic) (v : X → ℝ), + Continuous v → HasCompactSupport v → tsupport v ⊆ ball p R → + SobolevSpace.toLp (hausdorff n X) hX.quadratic ψ =ᵐ[hausdorff n X] v → + (∫ x, v x ∂σ) = -(1 / 2 : ℝ) * energyForm (hausdorff n X) hX.quadratic G ψ + + κ * inner ℝ (SobolevSpace.toLp (hausdorff n X) hX.quadratic ψ) + (SobolevSpace.toLp (hausdorff n X) hX.quadratic G) := by + let := hX.separable + let μ := hausdorff n X + let := locallyFinite_of_finiteOnBounded μ hX.finiteOnBounded + obtain ⟨G, hGb, hGr, hpos⟩ := hX.local_poisson_energy_density_continuous_tests hn hΩ f c hf A L hA hL + (show 0 < 3 * R / 2 by positivity) χ hsub + let T := compactSobolevTestLift μ hX.quadratic (ball p (3 * R / 2)) + let Φ := (sobolevSourceFunctional μ hX.quadratic ((-(1 / 2 : ℝ)) • G) + (κ • SobolevSpace.toLp μ hX.quadratic G)).comp T + have hformula (b : compactSobolevTests μ hX.quadratic (ball p (3 * R / 2))) : Φ b = + -(1 / 2 : ℝ) * energyForm μ hX.quadratic G (T b) + + κ * inner ℝ (SobolevSpace.toLp μ hX.quadratic (T b)) (SobolevSpace.toLp μ hX.quadratic G) := by + change energyForm μ hX.quadratic ((-(1 / 2 : ℝ)) • G) (T b) + + inner ℝ (κ • SobolevSpace.toLp μ hX.quadratic G) (SobolevSpace.toLp μ hX.quadratic (T b)) = _ + rw [energyForm_smul_left, real_inner_smul_left, real_inner_comm] + have hΦ (b : compactSobolevTests μ hX.quadratic (ball p (3 * R / 2))) (hb : 0 ≤ (b : X →ᵇ ℝ)) : 0 ≤ Φ b := by + obtain ⟨hbc, hbs, _⟩ := b.property + have hrep := compactSobolevTestLift_coe μ hX.quadratic (ball p (3 * R / 2)) b + have h := hpos (T b) (b : X →ᵇ ℝ) (b : X →ᵇ ℝ).continuous hbc hbs hrep (fun x => hb x) + have hi : 0 ≤ inner ℝ (SobolevSpace.toLp μ hX.quadratic (T b)) (SobolevSpace.toLp μ hX.quadratic G) := by + rw [L2.inner_def] + apply integral_nonneg_of_ae + filter_upwards [hGb, hrep] with x hx hy + change SobolevSpace.toLp μ hX.quadratic (T b) x = (b : X →ᵇ ℝ) x at hy + simp only [Real.inner_apply, hy] + exact mul_nonneg (hb x) hx.1 + rw [hformula] + have hc : 0 ≤ (κ + K) * inner ℝ (SobolevSpace.toLp μ hX.quadratic (T b)) + (SobolevSpace.toLp μ hX.quadratic G) := mul_nonneg (by linarith) hi + linarith + obtain ⟨σ, hσ, hσrep⟩ := exists_positive_sobolev_test_measure μ hX.quadratic p hR Φ hΦ + refine ⟨G, σ, hσ, hGb, + ae_restrict_of_ae_restrict_of_subset (ball_subset_ball (by linarith)) hGr, ?_⟩ + intro ψ v hv hvc hvs hψ + let cv : C_c(X, ℝ) := ⟨⟨v, hv⟩, hvc⟩ + let b : compactSobolevTests μ hX.quadratic (ball p R) := ⟨cv.toBoundedContinuousFunction, hvc, hvs, ψ, hψ⟩ + let b' : compactSobolevTests μ hX.quadratic (ball p (3 * R / 2)) := + ⟨cv.toBoundedContinuousFunction, hvc, hvs.trans (ball_subset_ball (by linarith)), ψ, hψ⟩ + have heq : T b' = ψ := by + apply Subtype.ext + apply Lp.ext + exact (compactSobolevTestLift_coe μ hX.quadratic _ b').trans hψ.symm + have hh := hσrep b + change (∫ x, v x ∂σ) = Φ b' at hh + rw [hformula, heq] at hh + exact hh + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/LocalPoissonGradientMeasure.lean b/lean/OAI/Geometry/RCD/Sobolev/LocalPoissonGradientMeasure.lean new file mode 100644 index 0000000000000000000000000000000000000000..728fb2589da42653d59ad9e1f9e236dc6e0bc177 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/LocalPoissonGradientMeasure.lean @@ -0,0 +1,74 @@ +import OAI.Geometry.RCD.Sobolev.LocalPoissonMeasureLaplacian +import OAI.Geometry.RCD.Sobolev.LocalGradientBoundedness + +namespace OAI + +/-! # Full Poisson energy measures from the local gradient alone -/ + +open Set Filter Metric MeasureTheory +open scoped NNReal + +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +/-- The scalar Bochner measure needs no amplitude assumption on the +Poisson function. Local transport supplies that bound on an interior ball. -/ +theorem NoncollapsedRCD.local_poisson_measure_of_gradient {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) [(hausdorff n X).Regular] (hn : 2 ≤ n) + (f : SobolevSpace (hausdorff n X) hX.quadratic) (c : ℝ) + {p : X} {R b C : ℝ} (hR : 0 < R) (hRb : 3 * R < b) + (hf : IsConstantLaplacianOn (hausdorff n X) hX.quadratic (ball p b) f c) + (L : ℝ≥0) (hL : ∀ᵐ x ∂(hausdorff n X).restrict (ball p b), + localGamma (hausdorff n X) hX.quadratic f f x ≤ (L : ℝ) ^ 2) + (χ : GoodLaplacianCutoff (hausdorff n X) hX.quadratic p (3 * R / 2) C) + (κ : ℝ) (hK : -κ ≤ K) : + ∃ (G : SobolevSpace (hausdorff n X) hX.quadratic) (σ : Measure X), + ∃ hσ : IsFiniteMeasure σ, + (∀ᵐ x ∂hausdorff n X, 0 ≤ SobolevSpace.toLp (hausdorff n X) hX.quadratic G x ∧ + SobolevSpace.toLp (hausdorff n X) hX.quadratic G x ≤ (L : ℝ) ^ 2) ∧ + (SobolevSpace.toLp (hausdorff n X) hX.quadratic G =ᵐ[(hausdorff n X).restrict (ball p R)] + localGamma (hausdorff n X) hX.quadratic f f) ∧ + IsMeasureLaplacianOn (hausdorff n X) hX.quadratic (ball p R) G + ((2 : ℝ) • @Measure.toSignedMeasure X _ σ hσ - + (2 * κ) • (hausdorff n X).withDensityᵥ (localGamma (hausdorff n X) hX.quadratic f f)) := by + let a := (3 * R + b) / 2 + have hab : a < b := by dsimp [a]; linarith + have hRa : 3 * R < a := by dsimp [a]; linarith + have hsub : ball p a ⊆ ball p b := ball_subset_ball hab.le + obtain ⟨A, hA⟩ := hX.local_amplitude_of_gradient hn f L hab hL + apply hX.local_poisson_measure_laplacian hn measurableSet_ball f c + (hf.mono _ _ measurableSet_ball hsub) A L + (ae_restrict_of_ae_restrict_of_subset ball_subset_closedBall hA) + (ae_restrict_of_ae_restrict_of_subset hsub hL) hR χ _ κ hK + simpa only [show 2 * (3 * R / 2) = 3 * R by ring] using + (closedBall_subset_ball hRa : closedBall p (3 * R) ⊆ ball p a) + +/-- The actual scalar Bochner measure exists on every interior ball of a +constant-Laplacian function with locally bounded gradient. All analytic +objects are constructed from the RCD condition. -/ +theorem NoncollapsedRCD.local_poisson_energy_measure {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) [(hausdorff n X).Regular] (hn : 2 ≤ n) + (f : SobolevSpace (hausdorff n X) hX.quadratic) (c : ℝ) + {p : X} {R b : ℝ} (hR : 0 < R) (hRb : 3 * R < b) + (hf : IsConstantLaplacianOn (hausdorff n X) hX.quadratic (ball p b) f c) + (L : ℝ≥0) (hL : ∀ᵐ x ∂(hausdorff n X).restrict (ball p b), + localGamma (hausdorff n X) hX.quadratic f f x ≤ (L : ℝ) ^ 2) + (κ : ℝ) (hK : -κ ≤ K) : + ∃ (G : SobolevSpace (hausdorff n X) hX.quadratic) (σ : Measure X), + ∃ hσ : IsFiniteMeasure σ, + (∀ᵐ x ∂hausdorff n X, 0 ≤ SobolevSpace.toLp (hausdorff n X) hX.quadratic G x ∧ + SobolevSpace.toLp (hausdorff n X) hX.quadratic G x ≤ (L : ℝ) ^ 2) ∧ + (SobolevSpace.toLp (hausdorff n X) hX.quadratic G =ᵐ[(hausdorff n X).restrict (ball p R)] + localGamma (hausdorff n X) hX.quadratic f f) ∧ + IsMeasureLaplacianOn (hausdorff n X) hX.quadratic (ball p R) G + ((2 : ℝ) • @Measure.toSignedMeasure X _ σ hσ - + (2 * κ) • (hausdorff n X).withDensityᵥ (localGamma (hausdorff n X) hX.quadratic f f)) := by + obtain ⟨C, _, ⟨χ⟩⟩ := hX.goodCutoff_exists hn p (show 0 < 3 * R / 2 by positivity) + exact hX.local_poisson_measure_of_gradient hn f c hR hRb hf L hL χ κ hK + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/LocalPoissonGradientTest.lean b/lean/OAI/Geometry/RCD/Sobolev/LocalPoissonGradientTest.lean new file mode 100644 index 0000000000000000000000000000000000000000..66c2e72c978a479e0b4fe52fc2f5eb88d5a98f74 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/LocalPoissonGradientTest.lean @@ -0,0 +1,127 @@ +import OAI.Geometry.RCD.Coordinates.RegularCoreGradientProduct +import OAI.Geometry.RCD.Coordinates.LocalPoissonRegularExtension +import OAI.Geometry.RCD.Coordinates.LocalConstantRepresentative +import OAI.Geometry.RCD.Metric.LocalDensitySource +import OAI.Geometry.RCD.Sobolev.LocalPoissonDimensionalDensity + +namespace OAI + +/-! # Gradient-product tests for actual local Poisson functions -/ + +open Set Filter Metric MeasureTheory +open scoped NNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem NoncollapsedRCD.local_poisson_gradient_test {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) [(hausdorff n X).Regular] (hn : 2≤n) + (hscalar : ScalarDimensionalBochner (hausdorff n X) hX.quadratic K n) + (f a : SobolevSpace (hausdorff n X) hX.quadratic) (c d κ : ℝ) (hK : -κ≤K) + {p : X} {r t : ℝ} (hr : 0 localHessianAction (hausdorff n X) hX.quadratic f a a FG FG GG x- + b*localGamma (hausdorff n X) hX.quadratic a a x + (∀ᵐ x ∂(hausdorff n X).restrict (closedBall p t), + (H x)^2≤((σ.rnDeriv (hausdorff n X) x).toReal-(2*b*c-(n:ℝ)*b^2))* + (localGamma (hausdorff n X) hX.quadratic a a x)^2) ∧ + MemLp H 2 ((hausdorff n X).restrict (closedBall p t)) ∧ + (∫ x in closedBall p t, (H x)^2 ∂hausdorff n X)≤((M:ℝ)^2)^2* + (σ.real (closedBall p t)-(2*b*c-(n:ℝ)*b^2)*(hausdorff n X).real (closedBall p t)) := by + let := hX.separable + let := locallyFinite_of_finiteOnBounded (hausdorff n X) hX.finiteOnBounded + let μ := hausdorff n X + let hQ := hX.quadratic + let : IsFiniteMeasure (μ.restrict (closedBall p t)) := ⟨by + simpa only [Measure.restrict_apply_univ,μ] using + hX.finiteOnBounded (closedBall p t) isBounded_closedBall⟩ + obtain ⟨F,qf,hqf,hFr,hqc⟩ := hX.local_poisson_regular_extension hn f c + (R := 3*r) (by positivity) (by linarith) hf L hL + obtain ⟨A,qa,hqa,hAr,hqd⟩ := hX.local_poisson_regular_extension hn a d + (R := 3*r) (by positivity) (by linarith) ha M hM + have h23 : ball p (2*r) ⊆ ball p (3*r) := ball_subset_ball (by linarith) + have hF := ae_restrict_of_ae_restrict_of_subset h23 hFr + have hA := ae_restrict_of_ae_restrict_of_subset h23 hAr + obtain ⟨df,hdf,hdfc⟩ := hX.local_constant_representative hn p (2*r) c + obtain ⟨da,hda,hdad⟩ := hX.local_constant_representative hn p (2*r) d + have hsf : qf =ᵐ[μ.restrict (ball p (2*r))] SobolevSpace.toLp μ hQ df := by + filter_upwards [ae_restrict_of_ae_restrict_of_subset h23 hqc,hdfc] with x hx hy + exact hx.trans hy.symm + have hsa : qa =ᵐ[μ.restrict (ball p (2*r))] SobolevSpace.toLp μ hQ da := by + filter_upwards [ae_restrict_of_ae_restrict_of_subset h23 hqd,hdad] with x hx hy + exact hx.trans hy.symm + have hE : SobolevSpace.toLp μ hQ F₀ =ᵐ[μ.restrict (ball p (2*r))] + localGamma μ hQ F.val F.val := + hF₀.trans (localGamma_pair_congr_ae μ hQ hF hF).symm + have hsource := hσ.bochner_constant_source_shifted μ hQ measurableSet_ball κ F₀ f F.val df c + σ.toSignedMeasure hF hdfc + have hS : closedBall p t ⊆ ball p (2*r) := closedBall_subset_ball ht + have hAΓ := localGamma_pair_congr_ae μ hQ hA hA + have hgrad : ∀ᵐ x ∂μ.restrict (closedBall p t), localGamma μ hQ A.val A.val x≤(M:ℝ)^2 := by + filter_upwards [ae_restrict_of_ae_restrict_of_subset hS hAΓ, + ae_restrict_of_ae_restrict_of_subset + (hS.trans (ball_subset_ball (by linarith : 2*r≤8*r))) hM] with x he hb + rw [he] + exact hb + obtain ⟨FG,GG,hFG,hGG,hdim,hbound⟩ := hX.regular_core_shifted_hessian_on_measure + hn hscalar F A p (by positivity : 0<2*r) (isCompact_closedBall p t) hS df da qf qa hqf hqa + ‖c‖₊ ‖d‖₊ hdf hda hsf hsa hK F₀ σ hE hsource + have hFG' : SobolevSpace.toLp μ hQ FG =ᵐ[μ.restrict (ball p (2*r))] localGamma μ hQ f a := by + filter_upwards [ae_restrict_of_ae hFG,localGamma_pair_congr_ae μ hQ hF hA] with x hx hy + exact hx.trans hy + have hGG' : SobolevSpace.toLp μ hQ GG =ᵐ[μ.restrict (ball p (2*r))] localGamma μ hQ a a := by + filter_upwards [ae_restrict_of_ae hGG,hAΓ] with x hx hy + exact hx.trans hy + have haction := localHessianAction_congr μ hQ + (fu := FG) (fu' := FG) (fv := FG) (fv' := FG) (uv := GG) (uv' := GG) + (ae_restrict_of_ae_restrict_of_subset hS hF) (ae_restrict_of_ae_restrict_of_subset hS hA) + (ae_restrict_of_ae_restrict_of_subset hS hA) EventuallyEq.rfl EventuallyEq.rfl EventuallyEq.rfl + have hdim' : ∀ᵐ x ∂μ.restrict (closedBall p t), c^2≤(n:ℝ)*(σ.rnDeriv μ x).toReal := by + filter_upwards [hdim,ae_restrict_of_ae_restrict_of_subset hS hdfc] with x hx hc + rwa [hc] at hx + refine ⟨FG,GG,hFG',hGG',hdim',?_⟩ + intro b + let H := fun x => localHessianAction μ hQ f a a FG FG GG x-b*localGamma μ hQ a a x + have hb : ∀ᵐ x ∂μ.restrict (closedBall p t), + (H x)^2≤((σ.rnDeriv μ x).toReal-(2*b*c-(n:ℝ)*b^2))*(localGamma μ hQ a a x)^2 := by + filter_upwards [hbound b,haction,ae_restrict_of_ae_restrict_of_subset hS hAΓ, + ae_restrict_of_ae_restrict_of_subset hS hdfc] with x hb he hγ hc + rw [he,hγ,hc] at hb + dsimp only [H] + convert hb using 1 + ring + have hn0 : 0<(n:ℝ) := by exact_mod_cast (by omega : 0 ENNReal.ofReal (ρ x)))] + (hφ : ∀ x, φ x ∈ Icc (0:ℝ) 1) : + (∫ x, φ x*ρ x ∂μ) ∈ Icc (0:ℝ) 1 := by + refine ⟨integral_nonneg (fun x => mul_nonneg (hφ x).1 (hρ0 x)),?_⟩ + exact (le_abs_self _).trans (probability_density_pairing_bound μ hρ hρ0 + (Eventually.of_forall fun x => by rw [abs_of_nonneg (hφ x).1]; exact (hφ x).2)) + +omit [ProperSpace X] in +theorem local_probability_energy_bound {Ω : Set X} (hΩ : MeasurableSet Ω) + (ρ φ : X → ℝ) (hρ : Measurable ρ) (hρ0 : ∀ x, 0 ≤ ρ x) + [IsProbabilityMeasure (μ.withDensity (fun x => ENNReal.ofReal (ρ x)))] + (hφ : ∀ x, φ x ∈ Icc (0:ℝ) 1) (hs : ∀ x ∉ Ω, φ x = 0) + (u : SobolevSpace μ Q) {L : ℝ} + (hL : ∀ᵐ x ∂μ.restrict Ω, SobolevSpace.minimalSlope μ Q u x ≤ L) : + weightedGamma μ Q (fun x => φ x*ρ x) u u ∈ Icc (0:ℝ) (L^2) := by + have he : weightedGamma μ Q (fun x => φ x*ρ x) u u = + ∫ x, (φ x*localGamma μ Q u u x)*ρ x ∂μ := by + apply integral_congr_ae + exact Eventually.of_forall fun x => by ring + rw [he] + constructor + · apply integral_nonneg_of_ae + filter_upwards [localGamma_self μ Q u] with x hx + rw [hx] + exact mul_nonneg (mul_nonneg (hφ x).1 (sq_nonneg _)) (hρ0 x) + · apply (le_abs_self _).trans + apply probability_density_pairing_bound μ hρ hρ0 + filter_upwards [(ae_restrict_iff' hΩ).mp hL,localGamma_self μ Q u, + (Lp.coeFn_nonneg _).mpr (SobolevSpace.minimalSlope_nonneg μ Q u)] with x hl hg h0 + rw [hg,abs_of_nonneg (mul_nonneg (hφ x).1 (sq_nonneg _))] + by_cases hx : x ∈ Ω + · exact (mul_le_of_le_one_left (sq_nonneg _) (hφ x).2).trans + (pow_le_pow_left₀ h0 (hl hx) 2) + · rw [hs x hx,zero_mul] + exact sq_nonneg L + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/LocalProbabilityGammaBound.lean b/lean/OAI/Geometry/RCD/Sobolev/LocalProbabilityGammaBound.lean new file mode 100644 index 0000000000000000000000000000000000000000..5cddef4e100c841523823f89e0ac4c20d108d385 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/LocalProbabilityGammaBound.lean @@ -0,0 +1,37 @@ +import OAI.Geometry.RCD.Heat.LocalLogarithmicSumFlux +import OAI.Geometry.RCD.Harmonic.ProbabilityDensityPairing + +namespace OAI + +/-! # A local gradient bound controls a pairing against a probability density -/ + +open Set Filter MeasureTheory +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) (Q : QuadraticCheegerEnergy μ) + +theorem local_probability_gamma_bound {Ω : Set X} (hΩ : MeasurableSet Ω) + (ρ : X → ℝ) (hρ : Measurable ρ) (hρ0 : ∀ x, 0 ≤ ρ x) + [IsProbabilityMeasure (μ.withDensity (fun x => ENNReal.ofReal (ρ x)))] + (u w : SobolevSpace μ Q) {L M : ℝ} (hL0 : 0 ≤ L) + (hL : ∀ᵐ x ∂μ.restrict Ω, SobolevSpace.minimalSlope μ Q u x ≤ L) + (hM : ∀ᵐ x ∂μ, SobolevSpace.minimalSlope μ Q w x ≤ M) + (hw : ∀ᵐ x ∂μ, x ∉ Ω → SobolevSpace.toLp μ Q w x = 0) : + |∫ x, localGamma μ Q u w x * ρ x ∂μ| ≤ L*M := by + apply probability_density_pairing_bound μ hρ hρ0 + filter_upwards [(ae_restrict_iff' hΩ).mp hL,hM,hw, + localGamma_abs_le μ Q u w,localGamma_zero_on_level μ Q w u 0, + localGamma_comm μ Q u w, + (Lp.coeFn_nonneg _).mpr (SobolevSpace.minimalSlope_nonneg μ Q w)] + with x hLx hMx hwx hb hz hc hw0 + by_cases hx : x ∈ Ω + · exact hb.trans (mul_le_mul (hLx hx) hMx hw0 hL0) + · rw [hc,hz (hwx hx),abs_zero] + exact mul_nonneg hL0 (hw0.trans hMx) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/LocalRepresentativeGradient.lean b/lean/OAI/Geometry/RCD/Sobolev/LocalRepresentativeGradient.lean new file mode 100644 index 0000000000000000000000000000000000000000..4d212382614fb1c694482a291471b921298382a8 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/LocalRepresentativeGradient.lean @@ -0,0 +1,80 @@ +import OAI.Geometry.RCD.Sobolev.LocalGradientLipschitz + +namespace OAI + +/-! # Local gradient bounds from a bounded Lipschitz representative -/ + +open Set Filter Metric MeasureTheory +open scoped NNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) [IsFiniteMeasureOnCompacts μ] (hQ : QuadraticCheegerEnergy μ) + +/-- Compact localization makes a local Lipschitz representative an actual +Sobolev comparison function. The extra amplitude term is quantitative. -/ +theorem localGamma_le_of_lipschitz_representative + (f : SobolevSpace μ hQ) (v : X → ℝ) (L A : ℝ≥0) (hv : LipschitzWith L v) + (p : X) (r : ℝ) (hr : 0 < r) + (he : SobolevSpace.toLp μ hQ f =ᵐ[μ.restrict (ball p (2*r))] v) + (hA : ∀ᵐ x ∂μ.restrict (ball p (2*r)), |SobolevSpace.toLp μ hQ f x| ≤ A) : + ∀ᵐ x ∂μ.restrict (ball p r), localGamma μ hQ f f x ≤ ((L:ℝ)+(A:ℝ)/r)^2 := by + let χ := radialCutoff p r + let w := fun x => χ x*clipReal A (v x) + let M : ℝ≥0 := ⟨(L:ℝ)+(A:ℝ)/r,by positivity⟩ + have hχ := radialCutoff_lipschitz p hr + have hvclip : LipschitzWith L (fun x => clipReal A (v x)) := by + simpa only [one_mul,Function.comp_apply] using! (clipReal_lipschitz A).comp hv + have hw : LipschitzWith M w := by + apply LipschitzWith.of_dist_le_mul + intro x y + have hdv := hvclip.dist_le_mul x y + have hdc := hχ.dist_le_mul x y + rw [Real.dist_eq] at hdv hdc + have hc : |χ x| ≤ 1 := by + rw [abs_of_nonneg (radialCutoff_bounds p r x).1] + exact (radialCutoff_bounds p r x).2 + have hc' : |clipReal A (v y)| ≤ (A:ℝ) := clipReal_abs_le A (v y) + rw [Real.dist_eq] + change |χ x*clipReal A (v x)-χ y*clipReal A (v y)| ≤ _ + calc + _ = |χ x*(clipReal A (v x)-clipReal A (v y))+(χ x-χ y)*clipReal A (v y)| := by congr 1; ring + _ ≤ |χ x| *|clipReal A (v x)-clipReal A (v y)|+|χ x-χ y| *|clipReal A (v y)| := by + simpa only [abs_mul] using abs_add_le (χ x*(clipReal A (v x)-clipReal A (v y))) + ((χ x-χ y)*clipReal A (v y)) + _ ≤ 1*((L:ℝ)*dist x y)+(r⁻¹*dist x y)*(A:ℝ) := + add_le_add (mul_le_mul hc hdv (abs_nonneg _) (by norm_num)) + (mul_le_mul hdc hc' (abs_nonneg _) (by positivity)) + _ = M*dist x y := by + change _ = ((L:ℝ)+(A:ℝ)/r)*dist x y + ring + have hs : HasCompactSupport w := + (radialCutoff_hasCompactSupport p hr).mul_right + let z := SobolevSpace.ofLipschitzCompact μ hQ hw hs + have hz : SobolevSpace.toLp μ hQ z =ᵐ[μ] w := + SobolevSpace.ofLipschitzCompact_coe μ hQ hw hs + have hsub : ball p r ⊆ ball p (2*r) := ball_subset_ball (by linarith) + have hfz : SobolevSpace.toLp μ hQ f =ᵐ[μ.restrict (ball p r)] SobolevSpace.toLp μ hQ z := by + filter_upwards [ae_restrict_of_ae_restrict_of_subset hsub he, + ae_restrict_of_ae_restrict_of_subset hsub hA,ae_restrict_of_ae hz, + ae_restrict_mem measurableSet_ball] with x he ha hz hx + have hχx : χ x = 1 := radialCutoff_eq_one p hr (by rw [dist_comm]; exact le_of_lt hx) + rw [hz] + change _ = χ x*clipReal A (v x) + rw [hχx,one_mul,← he,clipReal_eq_self A ha] + filter_upwards [hfz,ae_restrict_of_ae (localGamma_eq_on_eq μ hQ f z f), + ae_restrict_of_ae (localGamma_eq_on_eq μ hQ f z z), + ae_restrict_of_ae (localGamma_comm μ hQ z f),ae_restrict_of_ae (localGamma_self μ hQ z), + ae_restrict_of_ae (SobolevSpace.minimalSlope_le_lipschitz μ hQ z hw hz), + ae_restrict_of_ae ((Lp.coeFn_nonneg _).mpr (SobolevSpace.minimalSlope_nonneg μ hQ z))] + with x he h1 h2 hcomm hself hgrad hnonneg + rw [h1 he,hcomm,h2 he,hself] + exact pow_le_pow_left₀ hnonneg hgrad 2 + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/LocalScaledGammaDifference.lean b/lean/OAI/Geometry/RCD/Sobolev/LocalScaledGammaDifference.lean new file mode 100644 index 0000000000000000000000000000000000000000..a4219195a6424a8ac152826b92fb7b35d813cbe8 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/LocalScaledGammaDifference.lean @@ -0,0 +1,62 @@ +import OAI.Geometry.RCD.Sobolev.GammaSquareDifference + +namespace OAI + +/-! # Local rescaled energy densities inherit the strong gradient error -/ + +open Set Filter MeasureTheory +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem local_scaled_gamma_difference_sq_le (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + {Ω : Set X} {r M Q : ℝ} (hr : 0 c k*r k^2*∫ x in Ω k, + localGamma μ hQ (f k-g k) (f k-g k) x ∂μ) atTop (𝓝 0)) : + Tendsto (fun k => c k*∫ x in Ω k, + |r k^2*(localGamma μ hQ (f k) (f k) x-localGamma μ hQ (g k) (g k) x)| ∂μ) + atTop (𝓝 0) := by + let F := fun k x => r k^2*(localGamma μ hQ (f k) (f k) x-localGamma μ hQ (g k) (g k) x) + have hi (k : ℕ) : IntegrableOn (F k) (Ω k) μ := + (((localGamma_memL1 μ hQ (f k) (f k)).sub + (localGamma_memL1 μ hQ (g k) (g k))).const_mul (r k^2)).integrableOn + have hi2 : ∀ᶠ k in atTop, IntegrableOn (fun x => (F k x)^2) (Ω k) μ := by + filter_upwards [hf,hg] with k hfk hgk + let : IsFiniteMeasure (μ.restrict (Ω k)) := + ⟨by simpa only [Measure.restrict_apply_univ] using (hfin k).lt_top⟩ + have hm : MemLp (F k) 2 (μ.restrict (Ω k)) := by + apply MemLp.of_bound (hi k).aestronglyMeasurable (M^2+Q^2) + filter_upwards [hfk,hgk,ae_restrict_of_ae (localGamma_self μ hQ (f k)), + ae_restrict_of_ae (localGamma_self μ hQ (g k))] with x hx hy hxf hyf + have hfx : 0 ≤ r k^2*localGamma μ hQ (f k) (f k) x := by rw [hxf]; positivity + have hgx : 0 ≤ r k^2*localGamma μ hQ (g k) (g k) x := by rw [hyf]; positivity + change ‖r k^2*(localGamma μ hQ (f k) (f k) x-localGamma μ hQ (g k) (g k) x)‖ ≤ M^2+Q^2 + rw [Real.norm_eq_abs,abs_le] + constructor <;> nlinarith [sq_nonneg M,sq_nonneg Q] + exact hm.integrable_sq + exact normalized_l1_tendsto_of_l2 μ Ω c hc hmass F hi hi2 hfin + (local_scaled_gamma_l2_tendsto μ hQ Ω r c hr hc hM hQ0 f g hf hg hlim) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/LocalScaledGammaL2.lean b/lean/OAI/Geometry/RCD/Sobolev/LocalScaledGammaL2.lean new file mode 100644 index 0000000000000000000000000000000000000000..3889fadc6c91d4ce62ed72b09393b1ea21c19b3e --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/LocalScaledGammaL2.lean @@ -0,0 +1,46 @@ +import OAI.Geometry.RCD.Sobolev.LocalScaledGammaDifference + +namespace OAI + +/-! # The original normalization controls the squared energy-density error -/ + +open Set Filter MeasureTheory +open scoped Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem local_scaled_gamma_l2_tendsto (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + (Ω : ℕ → Set X) (r c : ℕ → ℝ) (hr : ∀ k, 0 c k*r k^2*∫ x in Ω k, localGamma μ hQ (f k-g k) (f k-g k) x ∂μ) + atTop (𝓝 0)) : + Tendsto (fun k => c k*∫ x in Ω k, + (r k^2*(localGamma μ hQ (f k) (f k) x-localGamma μ hQ (g k) (g k) x))^2 ∂μ) + atTop (𝓝 0) := by + have hupper : ∀ᶠ k in atTop, + c k*(∫ x in Ω k, (r k^2*(localGamma μ hQ (f k) (f k) x-localGamma μ hQ (g k) (g k) x))^2 ∂μ)≤ + (M+Q)^2*(c k*r k^2*∫ x in Ω k, localGamma μ hQ (f k-g k) (f k-g k) x ∂μ) := by + filter_upwards [hf,hg] with k hfk hgk + have hp := local_scaled_gamma_difference_sq_le μ hQ (hr k) hM hQ0 (f k) (g k) hfk hgk + have hir : Integrable (fun x => (M+Q)^2*(r k^2*localGamma μ hQ (f k-g k) (f k-g k) x)) (μ.restrict (Ω k)) := + (((localGamma_memL1 μ hQ (f k-g k) (f k-g k)).restrict).const_mul (r k^2)).const_mul ((M+Q)^2) + have hsm : AEStronglyMeasurable (fun x => (r k^2*(localGamma μ hQ (f k) (f k) x- + localGamma μ hQ (g k) (g k) x))^2) (μ.restrict (Ω k)) := + ((((localGamma_memL1 μ hQ (f k) (f k)).aestronglyMeasurable.sub + (localGamma_memL1 μ hQ (g k) (g k)).aestronglyMeasurable).const_mul (r k^2)).pow 2).restrict + have hil := hir.mono' hsm (hp.mono fun x hx => by + simpa only [Real.norm_eq_abs,abs_pow,sq_abs] using hx) + have hi := mul_le_mul_of_nonneg_left (integral_mono_ae hil hir hp) (hc k) + simp only [integral_const_mul] at hi + convert hi using 1; ring + apply squeeze_zero' (Eventually.of_forall fun k => mul_nonneg (hc k) (integral_nonneg fun x => sq_nonneg _)) hupper + simpa only [mul_zero] using hlim.const_mul ((M+Q)^2) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/LocalSlopeEventualBound.lean b/lean/OAI/Geometry/RCD/Sobolev/LocalSlopeEventualBound.lean new file mode 100644 index 0000000000000000000000000000000000000000..f8d96627de1af977a9c75b96116fc1fe75a63fb7 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/LocalSlopeEventualBound.lean @@ -0,0 +1,33 @@ +import OAI.Analysis.RCDHeat.ExistingAnalytic + +namespace OAI + +/-! # Local slope bounds from a neighborhood increment estimate -/ + +open Set Filter Metric +open scoped Topology ENNReal +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] + +theorem localSlope_le_of_eventually_increment {f : X → ℝ} {x : X} {c : ℝ} + (h : ∀ᶠ y in 𝓝 x, |f x-f y| ≤ c*dist x y) : + localSlope f x ≤ ENNReal.ofReal c := by + obtain ⟨r,hr,hball⟩ := Metric.mem_nhds_iff.mp h + unfold localSlope + refine iInf_le_of_le r (iInf_le_of_le hr ?_) + apply iSup_le + intro y + apply iSup_le + intro hy + apply iSup_le + intro hne + have hd : 0 < dist x y := dist_pos.mpr (Ne.symm hne) + have hh := hball (show y ∈ ball x r by simpa only [mem_ball,dist_comm] using hy) + change |f x-f y| ≤ c*dist x y at hh + apply ENNReal.ofReal_le_ofReal + apply (div_le_iff₀ hd).mpr + simpa only [abs_sub_comm] using hh + +end RegularPointCoordinates + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/LocalSlopeRateLimit.lean b/lean/OAI/Geometry/RCD/Sobolev/LocalSlopeRateLimit.lean new file mode 100644 index 0000000000000000000000000000000000000000..39f92f085939c7207bbfe39bb837c6711055506e --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/LocalSlopeRateLimit.lean @@ -0,0 +1,35 @@ +import OAI.Geometry.RCD.Sobolev.LocalSlopeEventualBound + +namespace OAI + +/-! # Passing a scalar increment-rate limit to the local slope -/ + +open Set Filter Metric +open scoped Topology ENNReal +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] + +theorem localSlope_le_of_rate_limit {f : X → ℝ} {x : X} {R : ℝ → ℝ} {L : ℝ} + (hL : 0 ≤ L) (hR : Tendsto R (𝓝[>] 0) (𝓝 L)) + (hbound : ∀ᶠ r in 𝓝[>] (0:ℝ), ∀ y, dist x y=r → |f x-f y| ≤ R r*r) : + (localSlope f x).toReal ≤ L := by + apply le_of_forall_pos_le_add + intro ε hε + have he := hR.eventually (Iio_mem_nhds (show L < L+ε by linarith)) + obtain ⟨δ,hδ,hall⟩ := mem_nhdsGT_iff_exists_Ioo_subset.mp (hbound.and he) + have hs : localSlope f x ≤ ENNReal.ofReal (L+ε) := by + apply localSlope_le_of_eventually_increment + filter_upwards [ball_mem_nhds x hδ] with y hy + by_cases hxy : x=y + · subst y + simp only [sub_self,abs_zero,dist_self,mul_zero,le_refl] + · have hd : 0 < dist x y := dist_pos.mpr hxy + have hyδ : dist x y < δ := by simpa only [mem_ball,dist_comm] using hy + obtain ⟨hb,hr⟩ := hall ⟨hd,hyδ⟩ + exact (hb y rfl).trans (mul_le_mul_of_nonneg_right hr.le hd.le) + exact (ENNReal.toReal_mono ENNReal.ofReal_ne_top hs).trans_eq + (ENNReal.toReal_ofReal (by linarith)) + +end RegularPointCoordinates + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/LocalSourceStrongGradient.lean b/lean/OAI/Geometry/RCD/Sobolev/LocalSourceStrongGradient.lean new file mode 100644 index 0000000000000000000000000000000000000000..30c74e678f61a4353cd1888054c6e904b21a0231 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/LocalSourceStrongGradient.lean @@ -0,0 +1,85 @@ +import OAI.Geometry.RCD.Sobolev.SourceMassDifferenceEnergy +import OAI.Geometry.RCD.Sobolev.WeightedWeakCauchyEnergy +import OAI.Geometry.RCD.Sobolev.WeightedGammaLocality + +namespace OAI + +/-! # Strong local gradients from uniform values and bounded source mass + +The source representatives may differ outside the working set from the +bounded Sobolev sequence used for weak compactness. +-/ + +open Set Filter MeasureTheory +open scoped Topology NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) (Q : QuadraticCheegerEnergy μ) + +theorem local_source_strong_gradient + (u w : ℕ → SobolevSpace μ Q) (f η : SobolevSpace μ Q) (d : ℕ → Lp ℝ 2 μ) + (hd : ∀ k, IsWeakLaplacian μ Q (u k) (d k)) + {Ω : Set X} (hΩ : MeasurableSet Ω) + (huw : ∀ k, SobolevSpace.toLp μ Q (u k) =ᵐ[μ.restrict Ω] SobolevSpace.toLp μ Q (w k)) + (hweak : ∀ ℓ : SobolevSpace μ Q →L[ℝ] ℝ, + Tendsto (fun k => ℓ (w k)) atTop (𝓝 (ℓ f))) + {v : X → ℝ} {L B M : ℝ≥0} + (hv : LipschitzWith L v) (hs : HasCompactSupport v) + (hb : ∀ x, |v x| ≤ B) (hn : ∀ x, 0 ≤ v x) + (hzero : ∀ x ∉ Ω, v x = 0) + (hη : SobolevSpace.toLp μ Q η =ᵐ[μ] v) + (hgrad : ∀ᵐ x ∂μ, |SobolevSpace.minimalSlope μ Q η x| ≤ M) + {A : ℝ} (hA : 0 ≤ A) + (hdi : ∀ k, Integrable (fun x => (v x)^2*|d k x|) μ) + (hdA : ∀ k, (∫ x, (v x)^2*|d k x| ∂μ) ≤ A) + (hvalue : ∀ D : ℝ, 0 < D → ∃ N : ℕ, ∀ i ≥ N, ∀ j ≥ N, + ∀ᵐ x ∂μ, v x ≠ 0 → + |SobolevSpace.toLp μ Q (u i) x-SobolevSpace.toLp μ Q (u j) x| ≤ D) : + Tendsto (fun k => weightedGamma μ Q (fun x => (v x)^2) (w k-f) (w k-f)) atTop (𝓝 0) := by + let E := ∫ x, (SobolevSpace.minimalSlope μ Q η x)^2 ∂μ + have hE : 0 ≤ E := integral_nonneg fun _ => sq_nonneg _ + have hv2 : AEStronglyMeasurable (fun x => (v x)^2) μ := hv.continuous.aestronglyMeasurable.pow 2 + have hb2 : ∀ᵐ x ∂μ, ‖(v x)^2‖ ≤ (B^2 : ℝ≥0) := Eventually.of_forall fun x => by + simpa only [NNReal.coe_pow,Real.norm_eq_abs,abs_pow,sq_abs] using + pow_le_pow_left₀ (abs_nonneg _) (hb x) 2 + have hv0 : ∀ᵐ x ∂μ, 0 ≤ (v x)^2 := Eventually.of_forall fun x => sq_nonneg _ + apply Metric.tendsto_atTop.mpr + intro ε hε + let D := min 1 (ε/(2*(4*A+4*E+1))) + have hden : 0 < 2*(4*A+4*E+1) := by positivity + have hD : 0 < D := lt_min zero_lt_one (div_pos hε hden) + have hD1 : D ≤ 1 := min_le_left _ _ + have hDε : D*(2*(4*A+4*E+1)) ≤ ε := + (le_div_iff₀ hden).mp (min_le_right _ _) + have herr : 4*D*A+4*D^2*E < ε := by + have hs : D^2 ≤ D := by nlinarith + have hm := mul_le_mul_of_nonneg_right hs hE + nlinarith + obtain ⟨N,hN⟩ := hvalue D hD + refine ⟨N,fun i hi => ?_⟩ + have hpair : ∀ᶠ j in atTop, + weightedGamma μ Q (fun x => (v x)^2) (w i-w j) (w i-w j) ≤ 4*D*A+4*D^2*E := by + filter_upwards [eventually_ge_atTop N] with j hj + have hdiff : SobolevSpace.toLp μ Q (u i-u j) =ᵐ[μ.restrict Ω] + SobolevSpace.toLp μ Q (w i-w j) := by + simp only [map_sub] + filter_upwards [huw i,huw j, + ae_restrict_of_ae (Lp.coeFn_sub (SobolevSpace.toLp μ Q (u i)) (SobolevSpace.toLp μ Q (u j))), + ae_restrict_of_ae (Lp.coeFn_sub (SobolevSpace.toLp μ Q (w i)) (SobolevSpace.toLp μ Q (w j)))] + with x ha hb hc hd + rw [hc,hd] + simp only [Pi.sub_apply,ha,hb] + rw [← weightedGamma_congr_on μ Q hΩ hdiff hdiff (fun x => (v x)^2) + (fun x hx => by rw [hzero x hx]; norm_num)] + exact source_mass_difference_energy μ Q (u i) (u j) η (d i) (d j) (hd i) (hd j) + hv hs hb hn hη hgrad hD.le hA (hN i hi j hj) (hdi i) (hdi j) (hdA i) (hdA j) + have hbound := weighted_energy_le_of_weak_cauchy μ Q w f hweak hv2 hb2 hv0 i hpair + have hnonneg := weightedGamma_nonneg_of_weight μ Q hv0 (w i-f) + simpa only [Real.dist_eq,sub_zero,abs_of_nonneg hnonneg] using hbound.trans_lt herr + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/LocalWeakMaximal.lean b/lean/OAI/Geometry/RCD/Sobolev/LocalWeakMaximal.lean new file mode 100644 index 0000000000000000000000000000000000000000..615237dc30029908f87489f98aa9ec2d8f0306ca --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/LocalWeakMaximal.lean @@ -0,0 +1,50 @@ +import OAI.Geometry.RCD.Metric.BallAverageBad +import OAI.Geometry.RCD.Sobolev.CompactBadAverage + +namespace OAI + +/-! # Local weak L1 control from the finite ball covering -/ + +open Set Metric MeasureTheory Filter +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + +theorem local_weak_maximal (μ : Measure X) [μ.InnerRegularCompactLTTop] + {f : X → ℝ} (hf : Integrable f μ) (hf0 : ∀ᵐ x ∂μ, 0 ≤ f x) + (hfin : ∀ x r, μ (ball x r) ≠ ⊤) (p : X) + {R D t : ℝ} (hD : 0 ≤ D) (ht : 0 < t) + (hdoub : ∀ x r, 0 < r → r ≤ R → μ.real (ball x (5*r)) ≤ D*μ.real (ball x r)) : + μ.real (ball p R ∩ ballAverageBad μ f R t) ≤ (D/t)*∫ y, f y ∂μ := by + let A := ball p R ∩ ballAverageBad μ f R t + have hAm : MeasurableSet A := measurableSet_ball.inter + (isOpen_ballAverageBad μ hf hf0 hfin ht.le).measurableSet + have hAfin : μ A ≠ ⊤ := measure_ne_top_of_subset inter_subset_left (hfin p R) + let b := (D/t)*∫ y, f y ∂μ + have hb : 0 ≤ b := mul_nonneg (div_nonneg hD ht.le) (integral_nonneg_of_ae hf0) + change μ.real A ≤ b + by_contra hnot + have hlt : ENNReal.ofReal b < μ A := + (ENNReal.ofReal_lt_iff_lt_toReal hb hAfin).mpr (lt_of_not_ge hnot) + obtain ⟨H,hHA,hH,hHm⟩ := hAm.exists_lt_isCompact_of_ne_top hAfin hlt + have hHfin : μ H ≠ ⊤ := measure_ne_top_of_subset hHA hAfin + have hHb : b < μ.real H := (ENNReal.ofReal_lt_iff_lt_toReal hb hHfin).mp hHm + have hbound : t*μ.real H ≤ D*∫ y, f y ∂μ := by + have hh := compact_bad_average μ hH (Ω := Set.univ) hf.integrableOn + (by simpa using hf0) hfin hD ht.le hdoub ?_ + · simpa only [setIntegral_univ] using hh + · intro x hx + obtain ⟨r,hr,hrR,havg⟩ := (hHA hx).2 + exact ⟨r,hr,hrR.le,subset_univ _,havg.le⟩ + have hle : μ.real H ≤ b := by + change μ.real H ≤ (D/t)*(∫ y, f y ∂μ) + rw [div_mul_eq_mul_div] + apply (le_div_iff₀ ht).mpr + simpa only [mul_comm] using hbound + exact (not_lt_of_ge hle) hHb + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/LocalWeakSourceUniqueness.lean b/lean/OAI/Geometry/RCD/Sobolev/LocalWeakSourceUniqueness.lean new file mode 100644 index 0000000000000000000000000000000000000000..e26b69d488564441261581b7ce0513c961003662 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/LocalWeakSourceUniqueness.lean @@ -0,0 +1,93 @@ +import OAI.Geometry.RCD.Metric.LocalDensityOrder +import OAI.Geometry.RCD.Sobolev.CompactLipschitzTests +import OAI.Geometry.RCD.Sobolev.SupportedEnergyLocality +import OAI.Geometry.RCD.Sobolev.ContinuousSobolevPairingBound + +namespace OAI + +/-! # Local uniqueness of L2 weak Laplacians + +Compact Lipschitz tests determine the source on each interior region. +The functions and their sources need only agree on the working set. +-/ + +open Set Filter MeasureTheory +open scoped NNReal BoundedContinuousFunction +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] [SecondCountableTopology X] (μ : Measure X) + [IsFiniteMeasureOnCompacts μ] (Q : QuadraticCheegerEnergy μ) + +theorem IsWeakLaplacian.local_source_eq {Ω S : Set X} (hΩ : IsCompact Ω) + (hS : MeasurableSet S) (hSΩ : S ⊆ Ω) + {u v : SobolevSpace μ Q} {d e : Lp ℝ 2 μ} + (hd : IsWeakLaplacian μ Q u d) (he : IsWeakLaplacian μ Q v e) + (huv : SobolevSpace.toLp μ Q u =ᵐ[μ.restrict Ω] SobolevSpace.toLp μ Q v) + (χ : X →ᵇ ℝ) {L : ℝ≥0} (hχ : LipschitzWith L χ) + (hχc : HasCompactSupport (χ : X → ℝ)) (hχΩ : tsupport χ ⊆ Ω) + (hχ0 : 0 ≤ χ) (hχ1 : ∀ x ∈ S, χ x = 1) : + d =ᵐ[μ.restrict S] e := by + have htest (q : compactLipschitzTests Ω) : + (∫ x, (q : X →ᵇ ℝ) x*(d x-e x) ∂μ) = 0 := by + let ψ := compactTestSobolev μ Q Ω q + have hψ := compactTestSobolev_coe μ Q Ω q + change SobolevSpace.toLp μ Q ψ =ᵐ[μ] (q : X →ᵇ ℝ) at hψ + have hE := energyForm_eq_of_test_support μ Q hΩ.measurableSet huv q hψ + q.property.choose_spec.2.2 + have hId : inner ℝ d (SobolevSpace.toLp μ Q ψ) = + ∫ x, (q : X →ᵇ ℝ) x*d x ∂μ := by + rw [L2.inner_def] + apply integral_congr_ae + filter_upwards [hψ] with x hx + simp only [Real.inner_apply,hx] + ring + have hIe : inner ℝ e (SobolevSpace.toLp μ Q ψ) = + ∫ x, (q : X →ᵇ ℝ) x*e x ∂μ := by + rw [L2.inner_def] + apply integral_congr_ae + filter_upwards [hψ] with x hx + simp only [Real.inner_apply,hx] + ring + have hdi := (Lp.memLp (SobolevSpace.toLp μ Q ψ)).integrable_mul (Lp.memLp d) + have hei := (Lp.memLp (SobolevSpace.toLp μ Q ψ)).integrable_mul (Lp.memLp e) + have hdi' : Integrable (fun x => (q : X →ᵇ ℝ) x*d x) μ := by + apply hdi.congr + filter_upwards [hψ] with x hx + exact congrArg (fun a => a*d x) hx + have hei' : Integrable (fun x => (q : X →ᵇ ℝ) x*e x) μ := by + apply hei.congr + filter_upwards [hψ] with x hx + exact congrArg (fun a => a*e x) hx + have hh : (fun x => (q : X →ᵇ ℝ) x*(d x-e x)) = + (fun x => (q : X →ᵇ ℝ) x*d x-(q : X →ᵇ ℝ) x*e x) := by + funext x + ring + rw [hh,integral_sub hdi' hei'] + rw [hd ψ,he ψ,hId,hIe] at hE + linarith only [hE] + have hi : IntegrableOn (fun x => d x-e x) Ω μ := + (lp_integrableOn_of_finite μ d Ω hΩ.measure_lt_top.ne).sub + (lp_integrableOn_of_finite μ e Ω hΩ.measure_lt_top.ne) + have hpos := local_density_nonneg_of_tests_integrableOn μ hΩ.measurableSet hi + hS hSΩ χ hχ hχc hχΩ hχ0 hχ1 (fun q _ => (htest q).ge) + have hneg := local_density_nonneg_of_tests_integrableOn μ hΩ.measurableSet hi.neg + hS hSΩ χ hχ hχc hχΩ hχ0 hχ1 (fun q _ => by + have hh : (fun x => (q : X →ᵇ ℝ) x* -(d x-e x)) = + -(fun x => (q : X →ᵇ ℝ) x*(d x-e x)) := by + funext x + change (q : X →ᵇ ℝ) x* -(d x-e x) = -((q : X →ᵇ ℝ) x*(d x-e x)) + ring + change 0 ≤ ∫ x, (q : X →ᵇ ℝ) x* -(d x-e x) ∂μ + rw [hh] + change 0 ≤ ∫ x, -((q : X →ᵇ ℝ) x*(d x-e x)) ∂μ + rw [integral_neg,htest q,neg_zero]) + filter_upwards [hpos,hneg] with x hp hn + change 0 ≤ -(d x-e x) at hn + linarith only [hp,hn] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/LocalZeroSetCoercivity.lean b/lean/OAI/Geometry/RCD/Sobolev/LocalZeroSetCoercivity.lean new file mode 100644 index 0000000000000000000000000000000000000000..338f1da8f9766ea401999d3d4c93be88208fe968 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/LocalZeroSetCoercivity.lean @@ -0,0 +1,86 @@ +import OAI.Geometry.RCD.Transport.TransportPoincare + +namespace OAI + +/-! # Local coercivity for functions with a large zero set + +The zero set controls the constant in the local Poincare estimate. This +is the local ingredient for the support-sensitive Sobolev estimate. +-/ + +open Set Metric MeasureTheory +open scoped ENNReal + +noncomputable section +namespace RegularPointCoordinates + +private theorem integral_sq_le_six_variance {X : Type*} [MeasurableSpace X] + (μ : Measure X) {Ω B : Set X} (hfin : μ Ω ≠ ∞) (hsub : B ⊆ Ω) (hhalf : μ.real Ω ≤ 2*μ.real B) + (u : Lp ℝ 2 μ) (hz : u =ᵐ[μ.restrict B] 0) (k : ℝ) : + (∫ x in Ω, u x ^ 2 ∂μ) ≤ 6 * ∫ x in Ω, (u x-k)^2 ∂μ := by + let : IsFiniteMeasure (μ.restrict Ω) := ⟨by simpa using hfin.lt_top⟩ + have hu : MemLp u 2 (μ.restrict Ω) := (Lp.memLp u).mono_measure Measure.restrict_le_self + have hv : Integrable (fun x => (u x-k)^2) (μ.restrict Ω) := + (hu.sub (memLp_const k)).integrable_sq + have hbound : k^2 * μ.real B ≤ ∫ x in Ω, (u x-k)^2 ∂μ := by + calc + _ = ∫ x in B, (u x-k)^2 ∂μ := by + rw [integral_congr_ae (show (fun x => (u x-k)^2) =ᵐ[μ.restrict B] + fun _ => k^2 from hz.mono (fun x hx => by simp [hx]))] + simp [mul_comm] + _ ≤ _ := setIntegral_mono_set hv (Filter.Eventually.of_forall (fun x => sq_nonneg (u x-k))) + (Filter.Eventually.of_forall hsub) + have hk : k^2 * μ.real Ω ≤ 2 * ∫ x in Ω, (u x-k)^2 ∂μ := by + have hh := mul_le_mul_of_nonneg_left hhalf (sq_nonneg k) + nlinarith + have hpoint : (∫ x in Ω, u x^2 ∂μ) ≤ + ∫ x in Ω, (2*(u x-k)^2 + 2*k^2) ∂μ := by + apply integral_mono_ae hu.integrable_sq ((hv.const_mul 2).add (integrable_const _)) + exact Filter.Eventually.of_forall fun x => by + dsimp only [Pi.add_apply, Pi.sub_apply] + nlinarith [sq_nonneg (u x-2*k)] + rw [integral_add (hv.const_mul 2) (integrable_const _), integral_const_mul] at hpoint + simp only [integral_const, smul_eq_mul, Measure.real] at hpoint + change (∫ x in Ω, u x^2 ∂μ) ≤ + 2*(∫ x in Ω, (u x-k)^2 ∂μ) + (μ.restrict Ω Set.univ).toReal*(2*k^2) at hpoint + rw [Measure.restrict_apply_univ] at hpoint + change (∫ x in Ω, u x^2 ∂μ) ≤ + 2*(∫ x in Ω, (u x-k)^2 ∂μ) + μ.real Ω*(2*k^2) at hpoint + nlinarith + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +/-- Under bounded rescaled curvature, a zero set occupying at least half +of the ball removes the additive constant, uniformly in its center. -/ +theorem NoncollapsedRCD.local_zero_set_coercivity {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (hn : 2 ≤ n) {κ : ℝ} (hκ : 0 ≤ κ) : + ∃ C : ℝ, 0 < C ∧ ∀ (p : X) (r : ℝ), 0 < r → -κ ≤ K*r^2 → + ∀ w : SobolevSpace (hausdorff n X) hX.quadratic, + ∀ B : Set X, MeasurableSet B → B ⊆ ball p r → + (hausdorff n X).real (ball p r) ≤ 2*(hausdorff n X).real B → + (SobolevSpace.toLp (hausdorff n X) hX.quadratic w =ᵐ[ + (hausdorff n X).restrict B] 0) → + (∫ x in ball p r, (SobolevSpace.toLp (hausdorff n X) hX.quadratic w x)^2 + ∂hausdorff n X) ≤ C*r^2 * + ∫ x in ball p (8*r), localGamma (hausdorff n X) hX.quadratic w w x + ∂hausdorff n X := by + obtain ⟨C, hC, hP⟩ := hX.localMeanPoincareInput hn κ hκ + refine ⟨6*C^2, by positivity, ?_⟩ + intro p r hr hcurv w B _hB hsub hhalf hz + obtain ⟨k, hk⟩ := hP p r hr hcurv w + have h := integral_sq_le_six_variance (hausdorff n X) + (hX.finiteOnBounded _ isBounded_ball).ne hsub hhalf + (SobolevSpace.toLp (hausdorff n X) hX.quadratic w) hz k + calc + _ ≤ 6 * ∫ x in ball p r, + (SobolevSpace.toLp (hausdorff n X) hX.quadratic w x-k)^2 ∂hausdorff n X := h + _ ≤ 6*((C*r)^2 * ∫ x in ball p (8*r), + localGamma (hausdorff n X) hX.quadratic w w x ∂hausdorff n X) := + mul_le_mul_of_nonneg_left hk (by norm_num) + _ = _ := by ring + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/LocalizedCutoffNorms.lean b/lean/OAI/Geometry/RCD/Sobolev/LocalizedCutoffNorms.lean new file mode 100644 index 0000000000000000000000000000000000000000..77950411a5425f5379028943a72210fbb5a49dda --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/LocalizedCutoffNorms.lean @@ -0,0 +1,78 @@ +import OAI.Geometry.RCD.Sobolev.CutoffProductEnergy +import OAI.Geometry.RCD.Metric.L2LevelMeasure + +namespace OAI + +/-! # Localization of cutoff L² and gradient terms -/ + +open Set Filter MeasureTheory +open scoped NNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +omit [ProperSpace X] in +/-- A cutoff supported in a measurable set localizes its multiplier norm. -/ +theorem cutoffCLM_norm_sq_le_setIntegral (u : SobolevSpace μ hQ) + {v : X → ℝ} {L B : ℝ≥0} (hv : LipschitzWith L v) + (hs : HasCompactSupport v) (hb : ∀ x, |v x| ≤ B) (hn : ∀ x, 0 ≤ v x) + {Ω : Set X} (hΩ : MeasurableSet Ω) (hsΩ : tsupport v ⊆ Ω) : + ‖SobolevSpace.toLp μ hQ (SobolevSpace.cutoffCLM μ hQ hv hs hb hn u)‖^2 ≤ + (B:ℝ)^2*∫ x in Ω, (SobolevSpace.toLp μ hQ u x)^2 ∂μ := by + classical + let U := SobolevSpace.toLp μ hQ u + let z := SobolevSpace.cutoffCLM μ hQ hv hs hb hn u + have hi : Integrable (fun x => (B:ℝ)^2*U x^2) μ := (Lp.memLp U).integrable_sq.const_mul _ + rw [← lp_integral_square_eq_norm_square] + calc + _ ≤ ∫ x, Ω.indicator (fun x => (B:ℝ)^2*U x^2) x ∂μ := by + apply integral_mono_ae (Lp.memLp (SobolevSpace.toLp μ hQ z)).integrable_sq + (hi.indicator hΩ) + filter_upwards [SobolevSpace.cutoffCLM_coe μ hQ hv hs hb hn u] with x hx + change SobolevSpace.toLp μ hQ z x = v x*U x at hx + change (SobolevSpace.toLp μ hQ z x)^2 ≤ _ + rw [hx] + by_cases hxΩ : x ∈ Ω + · rw [indicator_of_mem hxΩ,mul_pow] + exact mul_le_mul_of_nonneg_right + (by simpa only [sq_abs] using (sq_le_sq₀ (abs_nonneg (v x)) B.coe_nonneg).mpr (hb x)) + (sq_nonneg (U x)) + · rw [indicator_of_notMem hxΩ, + image_eq_zero_of_notMem_tsupport (fun ht => hxΩ (hsΩ ht)),zero_mul,zero_pow (by decide)] + _ = _ := by rw [integral_indicator hΩ,integral_const_mul] + +/-- Locality makes the gradient-weighted L² error vanish outside the +support of the cutoff. -/ +theorem cutoff_gradient_weight_le_setIntegral (u η : SobolevSpace μ hQ) + {v : X → ℝ} (hrep : SobolevSpace.toLp μ hQ η =ᵐ[μ] v) + {A : ℝ≥0} (hgrad : ∀ᵐ x ∂μ, |SobolevSpace.minimalSlope μ hQ η x| ≤ A) + {Ω : Set X} (hΩ : MeasurableSet Ω) (hsΩ : tsupport v ⊆ Ω) : + (∫ x, (SobolevSpace.toLp μ hQ u x)^2*(SobolevSpace.minimalSlope μ hQ η x)^2 ∂μ) ≤ + (A:ℝ)^2*∫ x in Ω, (SobolevSpace.toLp μ hQ u x)^2 ∂μ := by + classical + let U := SobolevSpace.toLp μ hQ u + have hi : Integrable (fun x => U x^2*(SobolevSpace.minimalSlope μ hQ η x)^2) μ := + (bounded_square_weight_integrable μ (SobolevSpace.minimalSlope μ hQ η) U hgrad).congr + (Eventually.of_forall fun x => mul_comm _ _) + have hj : Integrable (fun x => (A:ℝ)^2*U x^2) μ := (Lp.memLp U).integrable_sq.const_mul _ + calc + _ ≤ ∫ x, Ω.indicator (fun x => (A:ℝ)^2*U x^2) x ∂μ := by + apply integral_mono_ae hi (hj.indicator hΩ) + filter_upwards [hrep,hgrad,SobolevSpace.minimalSlope_zero_on_level μ hQ η 0] with x hr hg hz + by_cases hxΩ : x ∈ Ω + · rw [indicator_of_mem hxΩ,mul_comm ((A:ℝ)^2)] + exact mul_le_mul_of_nonneg_left + (by simpa only [sq_abs] using (sq_le_sq₀ (abs_nonneg _) A.coe_nonneg).mpr hg) + (sq_nonneg (U x)) + · have hv0 : v x = 0 := image_eq_zero_of_notMem_tsupport (fun ht => hxΩ (hsΩ ht)) + rw [indicator_of_notMem hxΩ,hz (hr.trans hv0),zero_pow (by decide),mul_zero] + _ = _ := by rw [integral_indicator hΩ,integral_const_mul] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/LocalizedGradientPair.lean b/lean/OAI/Geometry/RCD/Sobolev/LocalizedGradientPair.lean new file mode 100644 index 0000000000000000000000000000000000000000..6fad4e766540f3b3b415e88fefd804f2c7991fd2 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/LocalizedGradientPair.lean @@ -0,0 +1,51 @@ +import OAI.Analysis.RCDHeat.ExistingAnalytic + +namespace OAI + +/-! # Localizing the energy pairing under normalized volume -/ + +open Set Filter Metric MeasureTheory +open scoped ENNReal + +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +omit [BorelSpace X] [ProperSpace X] in +theorem integral_uniformOn_of_support {Ω : Set X} {v : X → ℝ} + (hv : tsupport v ⊆ Ω) : + (∫ x, v x ∂uniformOn μ Ω) = (μ Ω).toReal⁻¹ * ∫ x, v x ∂μ := by + rw [uniformOn, integral_smul_measure, ENNReal.toReal_inv, smul_eq_mul] + congr 1 + apply setIntegral_eq_integral_of_ae_compl_eq_zero + exact Eventually.of_forall fun x hx => by + by_contra hn + exact hx (hv (subset_tsupport v hn)) + +theorem weightedGradientPair_uniformOn {Ω : Set X} (hΩ0 : μ Ω ≠ 0) + (f g : SobolevSpace μ hQ) (v : X → ℝ) (hv : tsupport v ⊆ Ω) + (hrep : SobolevSpace.toLp μ hQ g =ᵐ[μ] v) : + weightedGradientPair μ hQ (uniformOn μ Ω) f g = + (μ Ω).toReal⁻¹ * energyForm μ hQ f g := by + have hC : (μ Ω)⁻¹ ≠ ∞ := ENNReal.inv_ne_top.mpr hΩ0 + have hν : uniformOn μ Ω ≤ (μ Ω)⁻¹ • μ := by + intro S + exact mul_le_mul_right (Measure.restrict_le_self (μ := μ) (s := Ω) S) _ + rw [weightedGradientPair_eq_bracket μ hQ hC hν, + ← integral_localGamma μ hQ hC hν, uniformOn, integral_smul_measure, + ENNReal.toReal_inv, smul_eq_mul] + congr 1 + rw [← integral_localGamma_eq_energyForm] + apply setIntegral_eq_integral_of_ae_compl_eq_zero + filter_upwards [hrep, localGamma_zero_on_level μ hQ g f 0, + localGamma_comm μ hQ f g] with x hx hz hc hxΩ + have hvx : v x = 0 := by + by_contra hn + exact hxΩ (hv (subset_tsupport v hn)) + rw [hc] + exact hz (hx.trans hvx) + +end RegularPointCoordinates + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/LocalizedPoissonAverages.lean b/lean/OAI/Geometry/RCD/Sobolev/LocalizedPoissonAverages.lean new file mode 100644 index 0000000000000000000000000000000000000000..48c86841ba0e099aca2a3c801e7a32621cbbbf9c --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/LocalizedPoissonAverages.lean @@ -0,0 +1,100 @@ +import OAI.Geometry.RCD.Coordinates.CoordinateHeatInput +import OAI.Geometry.RCD.Heat.AnnularHeatAverages +import OAI.Geometry.RCD.Sobolev.BoundedPoissonLipschitz + +namespace OAI + +/-! # Interior spatial control from the localized weak Poisson equation -/ + +open Set Filter Metric MeasureTheory +open scoped NNReal ENNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +/-- The annular source contributes linearly in time, while the bounded +source contributes its integrable square-root heat singularity. -/ +theorem NoncollapsedRCD.localized_poisson_average_bound {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) [(hausdorff n X).Regular] (hn : 2 ≤ n) + {ker : ℝ → X → X → ℝ} + (hk : IsContinuousHeatKernel (hausdorff n X) hX.quadratic ker) + (hg : HasCoordinateHeatBounds (hausdorff n X) ker) : + ∃ J : ℝ, 0 < J ∧ ∀ (p : X) (R T : ℝ), 0 < R → -1 ≤ K*R^2 → + 0 < T → T ≤ 1 → T ≤ R^2 → + ∀ (u : SobolevSpace (hausdorff n X) hX.quadratic) + (b e : Lp ℝ 2 (hausdorff n X)), + IsWeakLaplacian (hausdorff n X) hX.quadratic u (b+e) → + ∀ (C D : ℝ≥0), + (∀ᵐ x ∂hausdorff n X, |SobolevSpace.toLp _ _ u x| ≤ C) → + (∀ᵐ x ∂hausdorff n X, |b x| ≤ D) → + Integrable e (hausdorff n X) → + (∀ᵐ z ∂hausdorff n X, e z ≠ 0 → R ≤ dist z p ∧ dist z p ≤ 2*R) → + ∀ (x y : X) (r : ℝ), 0 < r → + (closedBall x r ⊆ closedBall p (R/8)) → + (closedBall y r ⊆ closedBall p (R/8)) → + |(⨍ z in closedBall x r, SobolevSpace.toLp _ _ u z ∂hausdorff n X)- + (⨍ z in closedBall y r, SobolevSpace.toLp _ _ u z ∂hausdorff n X)| ≤ + (Real.exp (|K| *T)*(C/Real.sqrt T+2*D*Real.sqrt T)+ + (J/(R*(hausdorff n X).real (ball p R))*(∫ z, |e z| ∂hausdorff n X))*T)* + (dist x y+2*r) := by + obtain ⟨J,hJ,hann⟩ := hX.annular_heat_average_difference hn hk hg + refine ⟨J,hJ,?_⟩ + intro p R T hR hcurv hT hT1 hTR u b e hd C D hu hb hei hes x y r hr hx hy + let μ := hausdorff n X + let U := SobolevSpace.toLp μ hX.quadratic u + let A := closedBall x r + let B := closedBall y r + let E := J/(R*μ.real (ball p R))*(∫ z, |e z| ∂μ) + have hAt : μ A ≠ ∞ := (hX.finiteOnBounded _ isBounded_closedBall).ne + have hBt : μ B ≠ ∞ := (hX.finiteOnBounded _ isBounded_closedBall).ne + let F (t : ℝ) := (⨍ z in A, heatAt μ hX.quadratic t U z ∂μ)- + (⨍ z in B, heatAt μ hX.quadratic t U z ∂μ) + let Q (t : ℝ) := (⨍ z in A, heatAt μ hX.quadratic t (b+e) z ∂μ)- + (⨍ z in B, heatAt μ hX.quadratic t (b+e) z ∂μ) + have hc : Continuous F := (heat_setAverage_continuous μ hX.quadratic A + measurableSet_closedBall hAt U).sub + (heat_setAverage_continuous μ hX.quadratic B measurableSet_closedBall hBt U) + have hder (t : ℝ) (ht : t ∈ Ioo 0 T) : HasDerivAt F (Q t) t := + (heat_weakLaplacian_average_hasDerivAt μ hX.quadratic u (b+e) hd A + measurableSet_closedBall hAt ht.1).sub + (heat_weakLaplacian_average_hasDerivAt μ hX.quadratic u (b+e) hd B + measurableSet_closedBall hBt ht.1) + have hbound (t : ℝ) (ht : t ∈ Ioo 0 T) : + |Q t| ≤ (D*Real.exp (|K| *T)*(dist x y+2*r))/Real.sqrt t+E*(dist x y+2*r) := by + have hbb := hX.heat_average_difference_le K n hn b D hb t T ht.1 ht.2.le x y r hr + have hee := hann p R t hR hcurv ht.1 (ht.2.le.trans hT1) (ht.2.le.trans hTR) + e hei hes x y r hr hx hy + have hsplit : Q t = + ((⨍ z in A, heatAt μ hX.quadratic t b z ∂μ)- + (⨍ z in B, heatAt μ hX.quadratic t b z ∂μ))+ + ((⨍ z in A, heatAt μ hX.quadratic t e z ∂μ)- + (⨍ z in B, heatAt μ hX.quadratic t e z ∂μ)) := by + dsimp only [Q] + rw [heat_setAverage_add μ hX.quadratic A measurableSet_closedBall hAt, + heat_setAverage_add μ hX.quadratic B measurableSet_closedBall hBt] + ring + rw [hsplit] + refine (abs_add_le _ _).trans ?_ + convert add_le_add hbb hee using 1 + ring + have hvar := abs_sub_le_of_sqrt_derivative_bound_add hT hc.continuousOn hder hbound + have hFT := hX.heat_average_difference_le K n hn U C hu T T hT le_rfl x y r hr + have hzero : F 0 = (⨍ z in A, U z ∂μ)-(⨍ z in B, U z ∂μ) := by + simp only [F,heatAt_zero,one_apply_eq_self] + rw [← hzero] + change |F 0| ≤ (Real.exp (|K| *T)*(C/Real.sqrt T+2*D*Real.sqrt T)+E*T)*(dist x y+2*r) + calc + |F 0| = |F T-(F T-F 0)| := by congr 1; ring + _ ≤ |F T|+|F T-F 0| := abs_sub _ _ + _ ≤ (C*Real.exp (|K| *T)/Real.sqrt T)*(dist x y+2*r)+ + (2*(D*Real.exp (|K| *T)*(dist x y+2*r))*Real.sqrt T+E*(dist x y+2*r)*T) := + add_le_add hFT hvar + _ = _ := by ring + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/LocalizedPoissonRepresentative.lean b/lean/OAI/Geometry/RCD/Sobolev/LocalizedPoissonRepresentative.lean new file mode 100644 index 0000000000000000000000000000000000000000..da48619000ee6fa44b03957f65d27b1fc2a15c95 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/LocalizedPoissonRepresentative.lean @@ -0,0 +1,71 @@ +import OAI.Geometry.RCD.Coordinates.CoordinateHeatInput +import OAI.Geometry.RCD.Sobolev.LocalizedPoissonAverages +import OAI.Geometry.RCD.Sobolev.LocalAverageRepresentative + +namespace OAI + +/-! # Lipschitz representatives from bounded and annular Poisson data -/ + +open Set Filter Metric MeasureTheory TopologicalSpace +open scoped NNReal ENNReal Topology + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem NoncollapsedRCD.localized_poisson_representative {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) [(hausdorff n X).Regular] (hn : 2 ≤ n) + {ker : ℝ → X → X → ℝ} + (hk : IsContinuousHeatKernel (hausdorff n X) hX.quadratic ker) + (hg : HasCoordinateHeatBounds (hausdorff n X) ker) : + ∃ J : ℝ, 0 < J ∧ ∀ (p : X) (R T : ℝ), 0 < R → -1 ≤ K*R^2 → + 0 < T → T ≤ 1 → T ≤ R^2 → + ∀ (u : SobolevSpace (hausdorff n X) hX.quadratic) + (b e : Lp ℝ 2 (hausdorff n X)), + IsWeakLaplacian (hausdorff n X) hX.quadratic u (b+e) → + ∀ (C D : ℝ≥0), + (∀ᵐ x ∂hausdorff n X, |SobolevSpace.toLp _ _ u x| ≤ C) → + (∀ᵐ x ∂hausdorff n X, |b x| ≤ D) → + Integrable e (hausdorff n X) → + (∀ᵐ z ∂hausdorff n X, e z ≠ 0 → R ≤ dist z p ∧ dist z p ≤ 2*R) → + ∃ v : X → ℝ, + LipschitzWith (Real.exp (|K| *T)*(C/Real.sqrt T+2*D*Real.sqrt T)+ + (J/(R*(hausdorff n X).real (ball p R))*(∫ z, |e z| ∂hausdorff n X))*T).toNNReal v ∧ + SobolevSpace.toLp _ _ u =ᵐ[(hausdorff n X).restrict (ball p (R/8))] v := by + obtain ⟨J,hJ,havg⟩ := hX.localized_poisson_average_bound hn hk hg + refine ⟨J,hJ,?_⟩ + intro p R T hR hcurv hT hT1 hTR u b e hd C D hu hb hei hes + let : SeparableSpace X := hX.separable + let μ := hausdorff n X + let : IsLocallyFiniteMeasure μ := locallyFinite_of_finiteOnBounded μ hX.finiteOnBounded + let : IsUnifLocDoublingMeasure μ := hX.locDoubling K n hn + apply exists_lipschitz_of_local_average_bound _ + ((Lp.memLp (SobolevSpace.toLp μ hX.quadratic u)).locallyIntegrable (by norm_num)) + measurableSet_ball + intro x hx y hy + have hx' : dist x p < R/8 := hx + have hy' : dist y p < R/8 := hy + have hδ : 0 < min (R/8-dist x p) (R/8-dist y p) := lt_min (by linarith) (by linarith) + filter_upwards [self_mem_nhdsWithin, + (eventually_lt_nhds hδ).filter_mono nhdsWithin_le_nhds] with r hr hrδ + rw [Real.coe_toNNReal _ (by positivity)] + apply havg p R T hR hcurv hT hT1 hTR u b e hd C D hu hb hei hes x y r hr + · intro z hz + have hz' : dist z x ≤ r := hz + have hsmall := hrδ.trans_le (min_le_left _ _) + have htri := dist_triangle z x p + change dist z p ≤ R/8 + linarith + · intro z hz + have hz' : dist z y ≤ r := hz + have hsmall := hrδ.trans_le (min_le_right _ _) + have htri := dist_triangle z y p + change dist z p ≤ R/8 + linarith + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/LogDensityGradient.lean b/lean/OAI/Geometry/RCD/Sobolev/LogDensityGradient.lean new file mode 100644 index 0000000000000000000000000000000000000000..2581d9769ef9129f1fd589e12d4bca458bfc9064 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/LogDensityGradient.lean @@ -0,0 +1,81 @@ +import OAI.Geometry.RCD.Transport.RenyiEnergyIntegrability + +namespace OAI + +/-! # The relative gradient bound of a bounded log-Lipschitz density -/ + +open Set Filter MeasureTheory +open scoped Topology ENNReal NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] + +theorem exp_comp_lipschitz_of_bounded {g : X → ℝ} {L M : ℝ≥0} + (hg : LipschitzWith L g) (hb : ∀ x, Real.exp (g x)≤M) : + LipschitzWith (M*L) (fun x => Real.exp (g x)) := by + apply LipschitzWith.of_dist_le_mul + intro x y + have he : Real.exp (max (g y) (g x))≤M := by + rcases le_total (g y) (g x) with h|h + · simpa only [max_eq_right h] using hb x + · simpa only [max_eq_left h] using hb y + have hi := exp_increment_bound (g y) (g x) + have hL := hg.dist_le_mul x y + rw [Real.dist_eq] at hL ⊢ + have hh := mul_le_mul he hL (abs_nonneg _) M.coe_nonneg + exact hi.trans (by simpa only [NNReal.coe_mul,mul_assoc] using hh) + +theorem localSlope_exp_comp_le {g : X → ℝ} {L : ℝ≥0} + (hg : LipschitzWith L g) (x : X) : + localSlope (fun y => Real.exp (g y)) x≤ENNReal.ofReal ((L:ℝ)*Real.exp (g x)) := by + have hc : Continuous (fun r : ℝ => ENNReal.ofReal ((L:ℝ)*Real.exp (g x+(L:ℝ)*r))) := by + exact ENNReal.continuous_ofReal.comp (by fun_prop) + have ht := (hc.continuousAt (x:=0)).tendsto.mono_left (nhdsWithin_le_nhds (s:=Ioi (0:ℝ))) + simp only [mul_zero,add_zero] at ht + apply ge_of_tendsto ht + filter_upwards [self_mem_nhdsWithin] with r hr + change 0 iSup_le fun hyr => iSup_le fun hyx => ?_ + apply ENNReal.ofReal_le_ofReal + have hd : 0 Real.exp (g x)) : + ∀ᵐ x ∂μ, SobolevSpace.minimalSlope μ hQ ρ x≤(L:ℝ)*SobolevSpace.toLp μ hQ ρ x := by + have hLip := exp_comp_lipschitz_of_bounded hg hb + have hs (x : X) : (localSlope (fun y => Real.exp (g y)) x).toReal≤(L:ℝ)*Real.exp (g x) := by + have he := ENNReal.toReal_mono ENNReal.ofReal_ne_top (localSlope_exp_comp_le hg x) + simpa only [ENNReal.toReal_ofReal (mul_nonneg L.coe_nonneg (Real.exp_pos _).le)] using he + have hm : MemLp (fun x => (localSlope (fun y => Real.exp (g y)) x).toReal) 2 μ := by + apply ((Lp.memLp (SobolevSpace.toLp μ hQ ρ)).const_mul (L:ℝ)).mono' + (localSlope_measurable hLip.continuous).ennreal_toReal.aestronglyMeasurable + filter_upwards [hρ] with x hx + simpa only [Real.norm_eq_abs,abs_of_nonneg ENNReal.toReal_nonneg,hx] using hs x + filter_upwards [SobolevSpace.minimalSlope_le_localSlope μ hQ ρ hLip hρ hm,hρ] with x hx hr + rw [hr] + exact hx.trans (hs x) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/LogSumExpIntegrable.lean b/lean/OAI/Geometry/RCD/Sobolev/LogSumExpIntegrable.lean new file mode 100644 index 0000000000000000000000000000000000000000..44731ce5da3d37a774525f3fbc1c12f0ee2019a7 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/LogSumExpIntegrable.lean @@ -0,0 +1,50 @@ +import OAI.Geometry.RCD.Sobolev.LogSumExpIntegral + +namespace OAI + +/-! # Integrability of the logarithmic sum from its two logarithms -/ + +open Set Filter MeasureTheory +noncomputable section +namespace RegularPointCoordinates + +theorem log_sum_exp_abs_le (x y : ℝ) : + |Real.log (Real.exp x+Real.exp y)| ≤ |x|+|y|+Real.log 2 := by + have hlow : x ≤ Real.log (Real.exp x+Real.exp y) := by + simpa only [Real.log_exp] using Real.log_le_log (Real.exp_pos x) + (le_add_of_nonneg_right (Real.exp_pos y).le) + have hx : Real.exp x ≤ Real.exp (|x|+|y|) := + Real.exp_le_exp.mpr (le_trans (le_abs_self x) (le_add_of_nonneg_right (abs_nonneg y))) + have hy : Real.exp y ≤ Real.exp (|x|+|y|) := + Real.exp_le_exp.mpr (le_trans (le_abs_self y) (le_add_of_nonneg_left (abs_nonneg x))) + have hu := Real.log_le_log (add_pos (Real.exp_pos x) (Real.exp_pos y)) + (show Real.exp x+Real.exp y ≤ 2*Real.exp (|x|+|y|) by linarith) + rw [Real.log_mul (by norm_num) (Real.exp_ne_zero _),Real.log_exp] at hu + have hlog : 0 ≤ Real.log 2 := (Real.log_pos (by norm_num : (1:ℝ)<2)).le + apply abs_le.mpr + constructor + · linarith [neg_abs_le x,abs_nonneg y] + · linarith + +variable {Ω : Type*} [MeasurableSpace Ω] + +theorem integrable_log_sum_exp (μ : Measure Ω) [IsFiniteMeasure μ] + {f g : Ω → ℝ} (hf : Integrable f μ) (hg : Integrable g μ) : + Integrable (fun x => Real.log (Real.exp (f x)+Real.exp (g x))) μ := by + have hm : AEMeasurable (fun x => Real.log (Real.exp (f x)+Real.exp (g x))) μ := + (hf.aestronglyMeasurable.aemeasurable.exp.add hg.aestronglyMeasurable.aemeasurable.exp).log + apply ((hf.abs.add hg.abs).add (integrable_const (Real.log 2))).mono' hm.aestronglyMeasurable + exact .of_forall fun x => by + simpa only [Real.norm_eq_abs,Pi.add_apply] using log_sum_exp_abs_le (f x) (g x) + +theorem log_sum_exp_integral_le (μ : Measure Ω) [IsProbabilityMeasure μ] + {f g : Ω → ℝ} (hf : Integrable f μ) (hg : Integrable g μ) : + Real.log (Real.exp (∫ x, f x ∂μ)+Real.exp (∫ x, g x ∂μ)) ≤ + ∫ x, Real.log (Real.exp (f x)+Real.exp (g x)) ∂μ := + log_sum_exp_integral μ hf hg (integrable_log_sum_exp μ hf hg) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/LogSumExpIntegral.lean b/lean/OAI/Geometry/RCD/Sobolev/LogSumExpIntegral.lean new file mode 100644 index 0000000000000000000000000000000000000000..579823a322dcefff41b980555fad5df3159d8518 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/LogSumExpIntegral.lean @@ -0,0 +1,72 @@ +import Mathlib.Analysis.Convex.SpecificFunctions.Basic +import Mathlib.MeasureTheory.Integral.Bochner.Basic + +namespace OAI + +/-! # The two-term log-sum-exp inequality under a probability measure -/ + +open Set MeasureTheory +noncomputable section +namespace RegularPointCoordinates + +theorem log_sum_exp_support (x y a b : ℝ) : + Real.log (Real.exp a+Real.exp b)+ + (Real.exp a/(Real.exp a+Real.exp b))*(x-a)+ + (Real.exp b/(Real.exp a+Real.exp b))*(y-b) ≤ + Real.log (Real.exp x+Real.exp y) := by + let S := Real.exp a+Real.exp b + let p := Real.exp a/S + let q := Real.exp b/S + have hS : 0 < S := add_pos (Real.exp_pos _) (Real.exp_pos _) + have hp : 0 ≤ p := (div_pos (Real.exp_pos _) hS).le + have hq : 0 ≤ q := (div_pos (Real.exp_pos _) hS).le + have hpq : p+q=1 := by dsimp only [p,q,S]; rw [←add_div,div_self hS.ne'] + have he := convexOn_exp.2 (mem_univ (x-a)) (mem_univ (y-b)) hp hq hpq + simp only [smul_eq_mul] at he + have hright : p*Real.exp (x-a)+q*Real.exp (y-b)=(Real.exp x+Real.exp y)/S := by + dsimp only [p,q] + rw [Real.exp_sub,Real.exp_sub] + field_simp + rw [hright] at he + have hl := Real.log_le_log (Real.exp_pos _) he + rw [Real.log_exp,Real.log_div (by positivity) hS.ne'] at hl + change Real.log S+p*(x-a)+q*(y-b) ≤ _ + linarith + +variable {Ω : Type*} [MeasurableSpace Ω] + +theorem log_sum_exp_integral (μ : Measure Ω) [IsProbabilityMeasure μ] + {f g : Ω → ℝ} (hf : Integrable f μ) (hg : Integrable g μ) + (hlog : Integrable (fun x => Real.log (Real.exp (f x)+Real.exp (g x))) μ) : + Real.log (Real.exp (∫ x, f x ∂μ)+Real.exp (∫ x, g x ∂μ)) ≤ + ∫ x, Real.log (Real.exp (f x)+Real.exp (g x)) ∂μ := by + let a := ∫ x, f x ∂μ + let b := ∫ x, g x ∂μ + let S := Real.exp a+Real.exp b + let p := Real.exp a/S + let q := Real.exp b/S + let H := fun x => Real.log S+p*(f x-a)+q*(g x-b) + have hi : Integrable H μ := + ((integrable_const _).add ((hf.sub (integrable_const _)).const_mul p)).add + ((hg.sub (integrable_const _)).const_mul q) + have hf' : Integrable (fun x => p*(f x-a)) μ := (hf.sub (integrable_const a)).const_mul p + have hg' : Integrable (fun x => q*(g x-b)) μ := (hg.sub (integrable_const b)).const_mul q + have hc' : Integrable (fun _ : Ω => Real.log S) μ := integrable_const _ + have hs : (∫ x, H x ∂μ)=(∫ x, Real.log S+p*(f x-a) ∂μ)+(∫ x, q*(g x-b) ∂μ) := + integral_add (hc'.add hf') hg' + have hs' : (∫ x, Real.log S+p*(f x-a) ∂μ)= + (∫ _ : Ω, Real.log S ∂μ)+(∫ x, p*(f x-a) ∂μ) := integral_add hc' hf' + have he : (∫ x, H x ∂μ)=Real.log S := by + rw [hs,hs',integral_const_mul,integral_const_mul, + integral_sub hf (integrable_const a),integral_sub hg (integrable_const b)] + simp [a,b] + rw [←he] + apply integral_mono hi hlog + intro x + exact log_sum_exp_support (f x) (g x) a b + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/MeanGradient.lean b/lean/OAI/Geometry/RCD/Sobolev/MeanGradient.lean new file mode 100644 index 0000000000000000000000000000000000000000..2af5396cec9b16b6c0f4c2ba456fcec81a310fed --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/MeanGradient.lean @@ -0,0 +1,90 @@ +import OAI.Geometry.RCD.Coordinates.GramNormalization +import OAI.Geometry.RCD.Coordinates.PositiveForms + +namespace OAI + +/-! # Averaging gradients against normalized Sobolev coordinates -/ + +open Set MeasureTheory +open scoped InnerProductSpace + +noncomputable section + +namespace RegularPointCoordinates + +variable {X E : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E] + (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + (U : E →L[ℝ] SobolevSpace μ hQ) (s : Set X) (hs : MeasurableSet s) + +/-- The vector of mean gradient pairings with the coordinate columns. +It is defined using the canonical Sobolev Gram, not chosen coefficients. -/ +def meanGradientVector : SobolevSpace μ hQ →L[ℝ] E := + U.adjoint.comp + (sobolevMeanGram μ hQ (ContinuousLinearMap.id ℝ (SobolevSpace μ hQ)) s hs) + +theorem meanGradientVector_inner (f : SobolevSpace μ hQ) (v : E) : + ⟪meanGradientVector μ hQ U s hs f, v⟫_ℝ = + (μ.real s)⁻¹ * ∫ x in s, localGamma μ hQ f (U v) x ∂μ := by + simp only [meanGradientVector, ContinuousLinearMap.comp_apply, + ContinuousLinearMap.adjoint_inner_left, sobolevMeanGram_inner, + ContinuousLinearMap.id_apply] + +theorem meanGradientVector_column (v : E) : + meanGradientVector μ hQ U s hs (U v) = sobolevMeanGram μ hQ U s hs v := by + apply ext_inner_right ℝ + intro z + rw [meanGradientVector_inner, sobolevMeanGram_inner] + +/-- Bessel's inequality for gradients in exactly normalized coordinates. +The right side is the actual averaged local Cheeger energy of `f`. -/ +theorem meanGradientVector_norm_sq_le + (hnormal : sobolevMeanGram μ hQ U s hs = ContinuousLinearMap.id ℝ E) + (f : SobolevSpace μ hQ) : + ‖meanGradientVector μ hQ U s hs f‖ ^ 2 ≤ + (μ.real s)⁻¹ * ∫ x in s, (SobolevSpace.minimalSlope μ hQ f x) ^ 2 ∂μ := by + let S := sobolevMeanGram μ hQ + (ContinuousLinearMap.id ℝ (SobolevSpace μ hQ)) s hs + let v := meanGradientVector μ hQ U s hs f + have hS := sobolevMeanGram_isPositive μ hQ + (ContinuousLinearMap.id ℝ (SobolevSpace μ hQ)) s hs + have hcross : ⟪f, S (U v)⟫_ℝ = ‖v‖ ^ 2 := by + rw [← hS.inner_left_eq_inner_right, ← ContinuousLinearMap.adjoint_inner_left] + change ⟪v, v⟫_ℝ = ‖v‖ ^ 2 + exact real_inner_self_eq_norm_sq v + have hU : ⟪U v, S (U v)⟫_ℝ = ‖v‖ ^ 2 := by + rw [← ContinuousLinearMap.adjoint_inner_right] + change ⟪v, meanGradientVector μ hQ U s hs (U v)⟫_ℝ = _ + rw [meanGradientVector_column, hnormal, ContinuousLinearMap.id_apply, + real_inner_self_eq_norm_sq] + have hcs := positive_form_cauchy_schwarz hS f (U v) + rw [hcross, hU] at hcs + have henergy : ⟪f, S f⟫_ℝ = (μ.real s)⁻¹ * + ∫ x in s, (SobolevSpace.minimalSlope μ hQ f x) ^ 2 ∂μ := by + exact sobolevMeanGram_energy μ hQ + (ContinuousLinearMap.id ℝ (SobolevSpace μ hQ)) s hs f + rw [henergy] at hcs + change ‖v‖ ^ 2 ≤ _ + by_cases hv : v = 0 + · simp only [hv, norm_zero, ne_eq, OfNat.ofNat_ne_zero, not_false_eq_true, zero_pow] + rw [← henergy] + exact hS.inner_nonneg_right f + have hvpos : 0 < ‖v‖ ^ 2 := sq_pos_of_pos (norm_pos_iff.mpr hv) + nlinarith + +/-- Averaging the gradient of a fitted function recovers its linear +coefficient, with an error bounded by the residual energy. -/ +theorem meanGradientVector_coefficient_error + (hnormal : sobolevMeanGram μ hQ U s hs = ContinuousLinearMap.id ℝ E) + (f : SobolevSpace μ hQ) (b : E) : + ‖meanGradientVector μ hQ U s hs f - b‖ ^ 2 ≤ + (μ.real s)⁻¹ * ∫ x in s, + (SobolevSpace.minimalSlope μ hQ (f - U b) x) ^ 2 ∂μ := by + have h := meanGradientVector_norm_sq_le μ hQ U s hs hnormal (f - U b) + rwa [map_sub, meanGradientVector_column, hnormal, ContinuousLinearMap.id_apply] at h + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/MeanPoincareInput.lean b/lean/OAI/Geometry/RCD/Sobolev/MeanPoincareInput.lean new file mode 100644 index 0000000000000000000000000000000000000000..2940ae83fa2f449947140333a39b954e9aa1b88d --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/MeanPoincareInput.lean @@ -0,0 +1,37 @@ +import OAI.Geometry.RCD.Harmonic.HarmonicMeanValueInput + +namespace OAI + +/-! # The local L2 Poincare input used by the Euler forcing + +Rajala (2012), Calc. Var. PDE 44, 477--494, Theorem 1.2 supplies the +weak local Poincare inequality. The local doubling bound and the +Sobolev--Poincare consequence in Hajlasz--Koskela (2000), Theorem 5.1, +give this L2 specialization on a smaller ball. Eightfold interior room +is retained; only bounded rescaled curvature is used. The extension from +Lipschitz functions to the canonical Sobolev space is by relaxation. +-/ + +open Set Metric MeasureTheory + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +/-- Only approximation by one constant on an interior ball is retained +from the Sobolev--Poincare inequality. This applies to arbitrary +Sobolev functions, with no harmonic or Euler equation assumed. -/ +def LocalMeanPoincareInput {K : ℝ} {n : ℕ} (hX : NoncollapsedRCD K n X) : Prop := + ∀ κ : ℝ, 0 ≤ κ → ∃ C : ℝ, 1 ≤ C ∧ + ∀ (p : X) (R : ℝ), 0 < R → -κ ≤ K * R ^ 2 → + ∀ w : SobolevSpace (hausdorff n X) hX.quadratic, + ∃ k : ℝ, (∫ x in ball p R, (SobolevSpace.toLp (hausdorff n X) hX.quadratic w x - k) ^ 2 + ∂hausdorff n X) ≤ (C * R) ^ 2 * + ∫ x in ball p (8 * R), localGamma (hausdorff n X) hX.quadratic w w x ∂hausdorff n X + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/MeasureLaplacianAlgebra.lean b/lean/OAI/Geometry/RCD/Sobolev/MeasureLaplacianAlgebra.lean new file mode 100644 index 0000000000000000000000000000000000000000..90e4e274f448110e29887163bfeb54d57e213488 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/MeasureLaplacianAlgebra.lean @@ -0,0 +1,53 @@ +import OAI.Geometry.RCD.Sobolev.MeasureLaplacianProduct +import OAI.Geometry.RCD.Sobolev.SupportedEnergyLocality + +namespace OAI + +/-! # Local linearity and locality of full measure Laplacians -/ + +open Set MeasureTheory +open scoped BoundedContinuousFunction + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +omit [ProperSpace X] in +theorem IsMeasureLaplacianOn.add {Ω : Set X} {f g : SobolevSpace μ hQ} + {ν τ : SignedMeasure X} (hf : IsMeasureLaplacianOn μ hQ Ω f ν) + (hg : IsMeasureLaplacianOn μ hQ Ω g τ) : + IsMeasureLaplacianOn μ hQ Ω (f+g) (ν+τ) := by + intro ψ v hv hvc hvs hψ + let q : X →ᵇ ℝ := ofCompactSupport v hv hvc + rw [energyForm_add_left,hf ψ v hv hvc hvs hψ,hg ψ v hv hvc hvs hψ] + have hi : (∫ᵛ x, v x ∂<•(ν+τ))=(∫ᵛ x, v x ∂<•ν)+(∫ᵛ x, v x ∂<•τ) := + VectorMeasure.integral_add_vectorMeasure + (PositiveBilinearMeasure.integrable_weight q ν) (PositiveBilinearMeasure.integrable_weight q τ) + rw [hi] + ring + +omit [ProperSpace X] [BorelSpace X] in +theorem IsMeasureLaplacianOn.smul {Ω : Set X} {f : SobolevSpace μ hQ} + {ν : SignedMeasure X} (hf : IsMeasureLaplacianOn μ hQ Ω f ν) (c : ℝ) : + IsMeasureLaplacianOn μ hQ Ω (c • f) (c • ν) := by + intro ψ v hv hvc hvs hψ + rw [energyForm_smul_left,hf ψ v hv hvc hvs hψ,VectorMeasure.integral_smul_vectorMeasure] + simp only [smul_eq_mul] + ring + +theorem IsMeasureLaplacianOn.congr {Ω : Set X} (hΩ : MeasurableSet Ω) + {f g : SobolevSpace μ hQ} {ν : SignedMeasure X} + (hf : IsMeasureLaplacianOn μ hQ Ω f ν) + (hfg : SobolevSpace.toLp μ hQ f =ᵐ[μ.restrict Ω] SobolevSpace.toLp μ hQ g) : + IsMeasureLaplacianOn μ hQ Ω g ν := by + intro ψ v hv hvc hvs hψ + rw [← energyForm_eq_of_test_support μ hQ hΩ hfg v hψ hvs] + exact hf ψ v hv hvc hvs hψ + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/MeasureLaplacianProduct.lean b/lean/OAI/Geometry/RCD/Sobolev/MeasureLaplacianProduct.lean new file mode 100644 index 0000000000000000000000000000000000000000..9f16d23317ed4c8ea2b36b668c122969799204bd --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/MeasureLaplacianProduct.lean @@ -0,0 +1,133 @@ +import OAI.Geometry.RCD.Sobolev.MeasureProductEnergy +import OAI.Geometry.RCD.Metric.SignedSourceWeight + +namespace OAI + +/-! +# Cutting off a local measure Laplacian + +The source is the full weighted signed measure plus the two ordinary +product-rule terms. This is an algebraic consequence of the actual Sobolev +product rule, rather than an additional analytic assumption. +-/ + +open Set MeasureTheory +open scoped NNReal BoundedContinuousFunction CompactlySupported InnerProductSpace + +noncomputable section + +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +/-- Local distributional measure Laplacian, using continuous compactly +supported Sobolev tests inside the indicated region. -/ +def IsMeasureLaplacianOn (Ω : Set X) (g : SobolevSpace μ hQ) + (ν : SignedMeasure X) : Prop := + ∀ (φ : SobolevSpace μ hQ) (v : X → ℝ), Continuous v → HasCompactSupport v → + tsupport v ⊆ Ω → SobolevSpace.toLp μ hQ φ =ᵐ[μ] v → + energyForm μ hQ g φ = -(∫ᵛ x, v x ∂<•ν) + +omit [ProperSpace X] in +/-- The absolutely continuous part introduced by the cutoff product. -/ +def cutoffSourceDensity (g c : SobolevSpace μ hQ) (q : Lp ℝ 2 μ) : X → ℝ := + fun x => SobolevSpace.toLp μ hQ g x * q x + 2 * localGamma μ hQ g c x + +omit [ProperSpace X] in +theorem cutoffSourceDensity_integrable (g c : SobolevSpace μ hQ) (q : Lp ℝ 2 μ) : + Integrable (cutoffSourceDensity μ hQ g c q) μ := + ((Lp.memLp (SobolevSpace.toLp μ hQ g)).integrable_mul (Lp.memLp q)).add + ((localGamma_memL1 μ hQ g c).const_mul 2) + +/-- The full signed source of the cutoff function. -/ +def cutoffMeasureSource (g c : SobolevSpace μ hQ) (q : Lp ℝ 2 μ) + (ν : SignedMeasure X) (χ : X →ᵇ ℝ) : SignedMeasure X := + signedSourceWeight ν χ + μ.withDensityᵥ (cutoffSourceDensity μ hQ g c q) + +/-- The local measure equation and the weak cutoff Laplacian imply the +full global product equation, with no assumption of absolute continuity +for the local source. -/ +theorem IsMeasureLaplacianOn.cutoff {Ω : Set X} {g : SobolevSpace μ hQ} + {ν : SignedMeasure X} (hν : IsMeasureLaplacianOn μ hQ Ω g ν) + (χ : X →ᵇ ℝ) (hχs : HasCompactSupport (χ : X → ℝ)) (hχΩ : tsupport (χ : X → ℝ) ⊆ Ω) + (c : SobolevSpace μ hQ) (hc : SobolevSpace.toLp μ hQ c =ᵐ[μ] χ) + (q : Lp ℝ 2 μ) (hq : IsWeakLaplacian μ hQ c q) + (D : ℝ≥0) (hg : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ g x| ≤ D) : + IsMeasureLaplacian μ hQ + (SobolevSpace.product μ hQ g c D ‖χ‖₊) + (cutoffMeasureSource μ hQ g c q ν χ) := by + have hcb : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ c x| ≤ (‖χ‖₊ : ℝ) := by + filter_upwards [hc] with x hx + simpa only [hx, Real.norm_eq_abs, coe_nnnorm] using χ.norm_coe_le_norm x + intro φ v hv hvs hφ + let w : X →ᵇ ℝ := (⟨⟨v, hv⟩, hvs⟩ : C_c(X, ℝ)).toBoundedContinuousFunction + have hφb : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ φ x| ≤ (‖w‖₊ : ℝ) := by + filter_upwards [hφ] with x hx + have hw := w.norm_coe_le_norm x + change ‖v x‖ ≤ ‖w‖ at hw + simpa only [hx, Real.norm_eq_abs, coe_nnnorm] using hw + have he := energy_product_integration_by_parts μ hQ g c φ D ‖χ‖₊ ‖w‖₊ hg hcb hφb + have hlocal := hν (SobolevSpace.product μ hQ c φ ‖χ‖₊ ‖w‖₊) + (fun x => χ x * v x) (χ.continuous.mul hv) hχs.mul_right + (tsupport_mul_subset_left.trans hχΩ) (by + filter_upwards [SobolevSpace.product_coe μ hQ c φ ‖χ‖₊ ‖w‖₊ hcb hφb, + hc, hφ] with x hx hcx hφx + simpa only [hcx, hφx] using hx) + have hweak := hq (SobolevSpace.product μ hQ g φ D ‖w‖₊) + have hi : ⟪q, SobolevSpace.toLp μ hQ (SobolevSpace.product μ hQ g φ D ‖w‖₊)⟫_ℝ = + ∫ x, v x * (SobolevSpace.toLp μ hQ g x * q x) ∂μ := by + rw [L2.inner_def] + apply integral_congr_ae + filter_upwards [SobolevSpace.product_coe μ hQ g φ D ‖w‖₊ hg hφb, hφ] with x hx hvx + simp only [RCLike.inner_apply, conj_trivial, hx, hvx] + ring + have hig : Integrable (fun x => v x * localGamma μ hQ g c x) μ := + (localGamma_memL1 μ hQ g c).bdd_mul hv.aestronglyMeasurable + (Filter.Eventually.of_forall w.norm_coe_le_norm) + have hip : Integrable (fun x => v x * (SobolevSpace.toLp μ hQ g x * q x)) μ := + ((Lp.memLp (SobolevSpace.toLp μ hQ g)).integrable_mul (Lp.memLp q)).bdd_mul + hv.aestronglyMeasurable (Filter.Eventually.of_forall w.norm_coe_le_norm) + have hsource : (∫ᵛ x, v x ∂<•(cutoffMeasureSource μ hQ g c q ν χ)) = + (∫ᵛ x, χ x * v x ∂<•ν) + + (∫ x, v x * (SobolevSpace.toLp μ hQ g x * q x) ∂μ) + + 2 * ∫ x, v x * localGamma μ hQ g c x ∂μ := by + change (∫ᵛ x, w x ∂<•(cutoffMeasureSource μ hQ g c q ν χ)) = _ + rw [cutoffMeasureSource, VectorMeasure.integral_add_vectorMeasure + (PositiveBilinearMeasure.integrable_weight w _) + (PositiveBilinearMeasure.integrable_weight w _), + integral_signedSourceWeight, integral_signedDensity _ (cutoffSourceDensity_integrable μ hQ g c q)] + have hwν : (∫ᵛ x, (w * χ) x ∂<•ν) = ∫ᵛ x, χ x * v x ∂<•ν := by + congr 1 + funext x + change v x * χ x = χ x * v x + exact mul_comm _ _ + rw [hwν] + have hd : (∫ x, w x * cutoffSourceDensity μ hQ g c q x ∂μ) = + (∫ x, v x * (SobolevSpace.toLp μ hQ g x * q x) ∂μ) + + 2 * ∫ x, v x * localGamma μ hQ g c x ∂μ := by + calc + _ = ∫ x, v x * (SobolevSpace.toLp μ hQ g x * q x) + + 2 * (v x * localGamma μ hQ g c x) ∂μ := by + apply integral_congr_ae + exact Filter.Eventually.of_forall fun x => by + change v x * (_ + 2 * _) = _ + ring + _ = _ := by rw [integral_add hip (hig.const_mul 2), integral_const_mul] + rw [hd] + ring + rw [hlocal, hweak, hi] at he + rw [hsource] + have hcross : (∫ x, SobolevSpace.toLp μ hQ φ x * localGamma μ hQ g c x ∂μ) = + ∫ x, v x * localGamma μ hQ g c x ∂μ := by + apply integral_congr_ae + filter_upwards [hφ] with x hx + rw [hx] + rw [hcross] at he + linarith + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/MeasureLaplacianUniqueness.lean b/lean/OAI/Geometry/RCD/Sobolev/MeasureLaplacianUniqueness.lean new file mode 100644 index 0000000000000000000000000000000000000000..71027ef3a4a8ab9f763545b1912e12381901ff49 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/MeasureLaplacianUniqueness.lean @@ -0,0 +1,46 @@ +import OAI.Geometry.RCD.Metric.LocalSignedMeasureEquality +import OAI.Geometry.RCD.Sobolev.MeasureLaplacianProduct +import OAI.Geometry.RCD.Sobolev.CompactLipschitzTests +import OAI.Geometry.RCD.Sobolev.SupportedEnergyLocality + +namespace OAI + +/-! # Uniqueness of the full local measure Laplacian -/ + +open Set MeasureTheory +open scoped NNReal BoundedContinuousFunction + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] [SecondCountableTopology X] (μ : Measure X) [IsFiniteMeasureOnCompacts μ] + (hQ : QuadraticCheegerEnergy μ) + +/-- Local representatives have the same full Laplacian measure on every +interior set with a compact cutoff. This includes singular parts. -/ +theorem IsMeasureLaplacianOn.unique_restrict {Ω S : Set X} (hΩ : MeasurableSet Ω) + (hS : MeasurableSet S) {f g : SobolevSpace μ hQ} {ν τ : SignedMeasure X} + (hf : IsMeasureLaplacianOn μ hQ Ω f ν) (hg : IsMeasureLaplacianOn μ hQ Ω g τ) + (hfg : SobolevSpace.toLp μ hQ f =ᵐ[μ.restrict Ω] SobolevSpace.toLp μ hQ g) + (χ : X →ᵇ ℝ) {L : ℝ≥0} (hχ : LipschitzWith L χ) + (hχc : HasCompactSupport (χ : X → ℝ)) (hχΩ : tsupport χ ⊆ Ω) + (hχ0 : ∀ x, 0≤χ x) (hχ1 : ∀ x ∈ S, χ x=1) : + ν.restrict S=τ.restrict S := by + apply signedMeasure_eq_restrict_of_tests ν τ hS χ hχ hχc hχΩ hχ0 hχ1 + intro q + obtain ⟨C,hq,hqc,hqs⟩ := q.property + let ψ := compactTestSobolev μ hQ Ω q + have hψ := compactTestSobolev_coe μ hQ Ω q + have he := energyForm_eq_of_test_support μ hQ hΩ hfg q hψ hqs + have hν := hf ψ q hq.continuous hqc hqs hψ + have hτ := hg ψ q hq.continuous hqc hqs hψ + change energyForm μ hQ f ψ = -signedTestIntegral (q : X →ᵇ ℝ) ν at hν + change energyForm μ hQ g ψ = -signedTestIntegral (q : X →ᵇ ℝ) τ at hτ + linarith only [he,hν,hτ] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/MeasureProductEnergy.lean b/lean/OAI/Geometry/RCD/Sobolev/MeasureProductEnergy.lean new file mode 100644 index 0000000000000000000000000000000000000000..9bebe34e777162d6e57d760a7d04bf32767d8d33 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/MeasureProductEnergy.lean @@ -0,0 +1,68 @@ +import OAI.Geometry.RCD.Sobolev.CompactMeasureLaplacian + +namespace OAI + +/-! +# Energy product identity for compact measure-source constructions + +The actual bounded Sobolev product satisfies the integration-by-parts +identity needed to multiply a local measure Laplacian by a cutoff. +-/ + +open Set MeasureTheory +open scoped NNReal + +noncomputable section + +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +omit [ProperSpace X] in +private theorem bounded_gamma_integrable (f g h : SobolevSpace μ hQ) (C : ℝ≥0) + (hf : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ f x| ≤ C) : + Integrable (fun x => SobolevSpace.toLp μ hQ f x * localGamma μ hQ g h x) μ := by + apply (localGamma_memL1 μ hQ g h).bdd_mul + (Lp.aestronglyMeasurable (SobolevSpace.toLp μ hQ f)) + simpa only [Real.norm_eq_abs] using hf + +/-- Integrating the genuine carré-du-champ product rule. -/ +theorem energy_bounded_product (f g h : SobolevSpace μ hQ) (C D : ℝ≥0) + (hf : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ f x| ≤ C) + (hg : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ g x| ≤ D) : + energyForm μ hQ (SobolevSpace.product μ hQ f g C D) h = + (∫ x, SobolevSpace.toLp μ hQ f x * localGamma μ hQ g h x ∂μ) + + (∫ x, SobolevSpace.toLp μ hQ g x * localGamma μ hQ f h x ∂μ) := by + rw [← integral_localGamma_eq_energyForm] + rw [integral_congr_ae (localGamma_product_left μ hQ f g h C D hf hg)] + exact integral_add (bounded_gamma_integrable μ hQ f g h C hf) + (bounded_gamma_integrable μ hQ g f h D hg) + +omit [ProperSpace X] in +private theorem gamma_weight_comm (f g h : SobolevSpace μ hQ) : + (∫ x, SobolevSpace.toLp μ hQ f x * localGamma μ hQ g h x ∂μ) = + ∫ x, SobolevSpace.toLp μ hQ f x * localGamma μ hQ h g x ∂μ := + integral_congr_ae ((localGamma_comm μ hQ g h).mono fun _ hx => congrArg (_ * ·) hx) + +/-- The two cross terms needed for the full signed cutoff source. -/ +theorem energy_product_integration_by_parts (f g h : SobolevSpace μ hQ) (C D H : ℝ≥0) + (hf : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ f x| ≤ C) + (hg : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ g x| ≤ D) + (hh : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ h x| ≤ H) : + energyForm μ hQ (SobolevSpace.product μ hQ f g C D) h = + energyForm μ hQ f (SobolevSpace.product μ hQ g h D H) + + energyForm μ hQ g (SobolevSpace.product μ hQ f h C H) - + 2 * ∫ x, SobolevSpace.toLp μ hQ h x * localGamma μ hQ f g x ∂μ := by + rw [energy_bounded_product μ hQ f g h C D hf hg, + energyForm_comm μ hQ f, energy_bounded_product μ hQ g h f D H hg hh, + energyForm_comm μ hQ g, energy_bounded_product μ hQ f h g C H hf hh] + rw [gamma_weight_comm μ hQ g h f, gamma_weight_comm μ hQ f h g, + gamma_weight_comm μ hQ h g f] + ring + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/MeasuredLawTestBound.lean b/lean/OAI/Geometry/RCD/Sobolev/MeasuredLawTestBound.lean new file mode 100644 index 0000000000000000000000000000000000000000..609e1339cb59f512e580821a5072e711ab995439 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/MeasuredLawTestBound.lean @@ -0,0 +1,31 @@ +import OAI.Geometry.RCD.Metric.MeasuredBallLaw +import OAI.Geometry.RCD.Sobolev.MeasuredTestScaling + +namespace OAI + +/-! # The measured approximation controls every bounded Lipschitz law test -/ + +open Set Metric Filter MeasureTheory +open scoped Topology NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + +omit [BorelSpace X] in +theorem measured_law_test_bound {n : ℕ} {S : ℝ} (hS : 0 linarith + +theorem measured_radial_cutoff_error {n : ℕ} {p : X} {r S ε a b : ℝ} + (hr : 0 (μ.real (ball (p k) (S*r k)))⁻¹* + ∫ x in ball (p k) (S*r k), ψ (v k x) ∂μ) atTop + (𝓝 ((volume.real (ball (0:Euclidean n) S))⁻¹*∫ z in ball 0 S, ψ z)) := by + obtain ⟨_,_,_,M,B,hM,hB,_⟩ := hψ.metric_bounds hS + let C : ℝ≥0 := M+B+1 + have hMC : M≤C := (le_add_of_nonneg_right (show (0:ℝ≥0)≤B from zero_le)).trans + (le_add_of_nonneg_right zero_le_one) + have hBC : B≤C := (le_add_of_nonneg_left (show (0:ℝ≥0)≤M from zero_le)).trans + (le_add_of_nonneg_right zero_le_one) + exact measured_approximation_test_tendsto hv hε (by dsimp only [C]; positivity) + (hM.weaken hMC) (fun z => (hB z).trans (by exact_mod_cast hBC)) + +theorem InteriorSmoothTest.mul_coordinate {n : ℕ} {S : ℝ} + {ψ : Euclidean n → ℝ} (hψ : InteriorSmoothTest n S ψ) (j : Fin n) : + InteriorSmoothTest n S (fun z => ψ z*z j) := by + have hj : ContDiff ℝ ∞ (fun z : Euclidean n => z j) := + (EuclideanSpace.proj (𝕜 := ℝ) (ι := Fin n) j).contDiff + refine ⟨hψ.1.mul hj,?_,?_⟩ + · exact hψ.2.1.mul_right + · exact tsupport_mul_subset_left.trans hψ.2.2 + +theorem measured_smooth_coordinate_test_tendsto {n : ℕ} {S : ℝ} (hS : 0 (μ.real (ball (p k) (S*r k)))⁻¹* + ∫ x in ball (p k) (S*r k), ψ (v k x)*v k x j ∂μ) atTop + (𝓝 ((volume.real (ball (0:Euclidean n) S))⁻¹*∫ z in ball 0 S, ψ z*z j)) := + measured_smooth_test_tendsto hS hv hε (hψ.mul_coordinate j) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/MeasuredTestScaling.lean b/lean/OAI/Geometry/RCD/Sobolev/MeasuredTestScaling.lean new file mode 100644 index 0000000000000000000000000000000000000000..5642e691bade7ffa12a5161723cedb4d41f6ab15 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/MeasuredTestScaling.lean @@ -0,0 +1,66 @@ +import OAI.Geometry.RCD.Metric.MeasuredApproximation + +namespace OAI + +/-! # Bounded Lipschitz tests at arbitrary fixed scale -/ + +open Set Metric MeasureTheory Filter +open scoped NNReal Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + +omit [BorelSpace X] in +theorem IsMeasuredEuclideanApproximation.test_bound {μ : Measure X} {n : ℕ} + {p : X} {r R ε : ℝ} {f : X → Euclidean n} + (h : IsMeasuredEuclideanApproximation μ n p r R ε f) + {C : ℝ≥0} (hC : 0 < C) {φ : Euclidean n → ℝ} + (hφ : LipschitzWith C φ) (hb : ∀ z, |φ z| ≤ C) : + |(μ.real (ball p (R*r)))⁻¹*(∫ x in ball p (R*r), φ (f x) ∂μ)- + (volume.real (ball (0 : Euclidean n) R))⁻¹*(∫ z in ball 0 R, φ z)| ≤ C*ε := by + have hCr : (0:ℝ) (C:ℝ)⁻¹*φ z + have hψ : LipschitzWith 1 ψ := by + apply LipschitzWith.of_dist_le_mul + intro x y + change |ψ x-ψ y| ≤ (1:ℝ)*dist x y + dsimp only [ψ] + rw [← mul_sub,abs_mul,abs_of_pos (inv_pos.mpr hCr)] + have hh := mul_le_mul_of_nonneg_left (hφ.dist_le_mul x y) (inv_nonneg.mpr hCr.le) + simpa only [Real.dist_eq,← mul_assoc,inv_mul_cancel₀ hCr.ne',one_mul,NNReal.coe_one] using hh + have hψb (z : Euclidean n) : |ψ z| ≤ 1 := by + dsimp only [ψ] + rw [abs_mul,abs_of_pos (inv_pos.mpr hCr)] + calc (C:ℝ)⁻¹*|φ z| ≤ (C:ℝ)⁻¹*C := mul_le_mul_of_nonneg_left (hb z) (inv_nonneg.mpr hCr.le) + _ = 1 := inv_mul_cancel₀ hCr.ne' + have hh := h.measure_test ψ hψ hψb + have he : (μ.real (ball p (R*r)))⁻¹*(∫ x in ball p (R*r), ψ (f x) ∂μ)- + (volume.real (ball (0 : Euclidean n) R))⁻¹*(∫ z in ball 0 R, ψ z) = + (C:ℝ)⁻¹*((μ.real (ball p (R*r)))⁻¹*(∫ x in ball p (R*r), φ (f x) ∂μ)- + (volume.real (ball (0 : Euclidean n) R))⁻¹*(∫ z in ball 0 R, φ z)) := by + simp only [ψ,integral_const_mul] + ring + rw [he,abs_mul,abs_of_pos (inv_pos.mpr hCr)] at hh + have hh' := mul_le_mul_of_nonneg_left hh hCr.le + simpa only [← mul_assoc,mul_inv_cancel₀ hCr.ne',one_mul] using hh' + +omit [BorelSpace X] in +theorem measured_approximation_test_tendsto {μ : Measure X} {n : ℕ} + {p : ℕ → X} {r ε : ℕ → ℝ} {R : ℝ} {f : ℕ → X → Euclidean n} + (h : ∀ k, IsMeasuredEuclideanApproximation μ n (p k) (r k) R (ε k) (f k)) + (hε : Tendsto ε atTop (𝓝 0)) + {C : ℝ≥0} (hC : 0 (μ.real (ball (p k) (R*r k)))⁻¹* + (∫ x in ball (p k) (R*r k), φ (f k x) ∂μ)) atTop + (𝓝 ((volume.real (ball (0 : Euclidean n) R))⁻¹*(∫ z in ball 0 R, φ z))) := by + apply tendsto_of_tendsto_of_dist tendsto_const_nhds + apply squeeze_zero (fun _ => dist_nonneg) + (fun k => by simpa only [Real.dist_eq,abs_sub_comm] using (h k).test_bound hC hφ hb) + simpa only [mul_zero] using hε.const_mul (C:ℝ) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/MedianLevel.lean b/lean/OAI/Geometry/RCD/Sobolev/MedianLevel.lean new file mode 100644 index 0000000000000000000000000000000000000000..766926413542b319e5430c474e73850ff4544a02 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/MedianLevel.lean @@ -0,0 +1,59 @@ +import Mathlib.Probability.CDF + +namespace OAI + +/-! # A median level for the local Poincare argument + +Only the two half-mass inequalities are needed. The level is the lower +endpoint at which the cumulative distribution reaches one half. +-/ + +open Set Filter MeasureTheory ProbabilityTheory +open scoped Topology ENNReal + +noncomputable section +namespace RegularPointCoordinates + +theorem exists_probability_median (μ : Measure ℝ) [IsProbabilityMeasure μ] : + ∃ k : ℝ, (1 / 2 : ℝ≥0∞) ≤ μ (Iic k) ∧ (1 / 2 : ℝ≥0∞) ≤ μ (Ici k) := by + let T : Set ℝ := {x | (1 / 2 : ℝ) ≤ cdf μ x} + obtain ⟨b, hb⟩ := ((tendsto_cdf_atTop μ).eventually + (lt_mem_nhds (by norm_num : (1 / 2 : ℝ) < 1))).exists + have hT : T.Nonempty := ⟨b, hb.le⟩ + obtain ⟨a, ha⟩ := ((tendsto_cdf_atBot μ).eventually + (gt_mem_nhds (by norm_num : (0 : ℝ) < 1 / 2))).exists + have hbelow : BddBelow T := ⟨a, fun x hx => by + by_contra hax + have := (monotone_cdf μ) (le_of_not_ge hax) + exact (not_le.mpr ha) (hx.trans this)⟩ + let k : ℝ := sInf T + have hright (x : ℝ) (hx : k < x) : (1 / 2 : ℝ) ≤ cdf μ x := by + obtain ⟨y, hy, hyx⟩ := exists_lt_of_csInf_lt hT hx + exact hy.trans ((monotone_cdf μ) hyx.le) + have hleft (x : ℝ) (hx : x < k) : cdf μ x < (1 / 2 : ℝ) := by + have hxnot : x ∉ T := notMem_of_lt_csInf hx hbelow + exact lt_of_not_ge hxnot + have hk : (1 / 2 : ℝ) ≤ cdf μ k := by + apply ge_of_tendsto ((cdf μ).right_continuous k |>.mono Ioi_subset_Ici_self) + filter_upwards [self_mem_nhdsWithin] with x hx + exact hright x hx + have hlim : Function.leftLim (cdf μ) k ≤ (1 / 2 : ℝ) := by + apply le_of_tendsto ((monotone_cdf μ).tendsto_leftLim k) + filter_upwards [self_mem_nhdsWithin] with x hx + exact (hleft x hx).le + refine ⟨k, ?_, ?_⟩ + · rw [← ofReal_cdf] + convert ENNReal.ofReal_le_ofReal hk using 1 + norm_num [ENNReal.ofReal_div_of_pos] + · rw [← measure_cdf μ, (cdf μ).measure_Ici (tendsto_cdf_atTop μ)] + have hhalf : (1 / 2 : ℝ≥0∞) = ENNReal.ofReal (1 / 2 : ℝ) := by + norm_num [ENNReal.ofReal_div_of_pos] + rw [hhalf] + apply ENNReal.ofReal_le_ofReal + linarith + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/MetricCoercivity.lean b/lean/OAI/Geometry/RCD/Sobolev/MetricCoercivity.lean new file mode 100644 index 0000000000000000000000000000000000000000..6fc8dc3af9ac9fe53ddc10d01d44610295e8b4e1 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/MetricCoercivity.lean @@ -0,0 +1,157 @@ +import OAI.Geometry.RCD.Coordinates.InverseDerivative +import Mathlib.Analysis.Normed.Module.FiniteDimension + +namespace OAI + +/-! +# Coercive Jacobians and changes of frozen metric + +A lower metric estimate gives injectivity, hence an invertible Jacobian +in finite dimension. Taking the adjoint of `T ∘ e.symm` controls the +inverse transpose in the frozen dual norm, with no condition-number loss. +-/ + +noncomputable section + +namespace RegularPointCoordinates + +section Normed + +variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] + +/-- The square-root form of the lower metric estimate. -/ +theorem norm_le_sqrt_mul_of_metric_lower (T : E ≃L[ℝ] E) (J : E →L[ℝ] E) + {A : ℝ} (hA : 1 ≤ A) + (hlower : ∀ xi, A⁻¹ * ‖T xi‖ ^ 2 ≤ ‖J xi‖ ^ 2) (xi : E) : + ‖T xi‖ ≤ Real.sqrt A * ‖J xi‖ := by + have hA0 : 0 < A := by linarith + have hsquare : ‖T xi‖ ^ 2 ≤ A * ‖J xi‖ ^ 2 := by + calc + _ = A * (A⁻¹ * ‖T xi‖ ^ 2) := by field_simp [ne_of_gt hA0] + _ ≤ _ := mul_le_mul_of_nonneg_left (hlower xi) hA0.le + have hroot : (Real.sqrt A * ‖J xi‖) ^ 2 = A * ‖J xi‖ ^ 2 := by + rw [mul_pow, Real.sq_sqrt hA0.le] + have hnonneg : 0 ≤ Real.sqrt A * ‖J xi‖ := by positivity + nlinarith [norm_nonneg (T xi)] + +/-- A coercive Jacobian has trivial kernel, in any normed dimension. -/ +theorem injective_of_metric_lower (T : E ≃L[ℝ] E) (J : E →L[ℝ] E) + {A : ℝ} (hA : 1 ≤ A) + (hlower : ∀ xi, A⁻¹ * ‖T xi‖ ^ 2 ≤ ‖J xi‖ ^ 2) : + Function.Injective J := by + intro x y hxy + have hbound := norm_le_sqrt_mul_of_metric_lower T J hA hlower (x - y) + have hnorm : ‖T (x - y)‖ = 0 := by + apply le_antisymm _ (norm_nonneg _) + simpa only [map_sub, hxy, sub_self, norm_zero, mul_zero] using hbound + have hT := norm_eq_zero.mp hnorm + have hzero : x - y = 0 := T.injective (by simpa using hT) + exact sub_eq_zero.mp hzero + +/-- In finite dimension the lower metric bound supplies the actual +continuous linear equivalence representing the Jacobian. -/ +theorem exists_equiv_of_metric_lower [FiniteDimensional ℝ E] + (T : E ≃L[ℝ] E) (J : E →L[ℝ] E) {A : ℝ} (hA : 1 ≤ A) + (hlower : ∀ xi, A⁻¹ * ‖T xi‖ ^ 2 ≤ ‖J xi‖ ^ 2) : + ∃ e : E ≃L[ℝ] E, (e : E →L[ℝ] E) = J := by + let e := (LinearEquiv.ofInjectiveEndo J.toLinearMap + (injective_of_metric_lower T J hA hlower)).toContinuousLinearEquiv + refine ⟨e, ?_⟩ + ext x + rfl + +/-- The same construction supplies the unit premise used by the inverse +derivative lemmas. -/ +theorem isUnit_of_metric_lower [FiniteDimensional ℝ E] + (T : E ≃L[ℝ] E) (J : E →L[ℝ] E) {A : ℝ} (hA : 1 ≤ A) + (hlower : ∀ xi, A⁻¹ * ‖T xi‖ ^ 2 ≤ ‖J xi‖ ^ 2) : IsUnit J := by + obtain ⟨e, he⟩ := exists_equiv_of_metric_lower T J hA hlower + rw [← he] + exact e.toUnit.isUnit + +/-- The inverse Jacobian has norm at most `sqrt A` when its output is +measured using the frozen primal norm. -/ +theorem norm_frozen_comp_inverse_le (T e : E ≃L[ℝ] E) {A : ℝ} (hA : 1 ≤ A) + (hlower : ∀ xi, A⁻¹ * ‖T xi‖ ^ 2 ≤ ‖e xi‖ ^ 2) : + ‖(T : E →L[ℝ] E) ∘L (e.symm : E →L[ℝ] E)‖ ≤ Real.sqrt A := by + apply ContinuousLinearMap.opNorm_le_bound _ (Real.sqrt_nonneg _) + intro y + change ‖T (e.symm y)‖ ≤ Real.sqrt A * ‖y‖ + simpa using norm_le_sqrt_mul_of_metric_lower T (e : E →L[ℝ] E) + hA hlower (e.symm y) + +/-- Increasing frozen metrics make the next-to-current coordinate map +a contraction. -/ +theorem norm_metric_change_le_one (Told Tnew : E ≃L[ℝ] E) + (hmetric : ∀ xi, ‖Told xi‖ ≤ ‖Tnew xi‖) : + ‖(Told : E →L[ℝ] E) ∘L (Tnew.symm : E →L[ℝ] E)‖ ≤ 1 := by + apply ContinuousLinearMap.opNorm_le_bound _ zero_le_one + intro y + change ‖Told (Tnew.symm y)‖ ≤ 1 * ‖y‖ + simpa using hmetric (Tnew.symm y) + +theorem norm_metric_change_le_one_of_sq (Told Tnew : E ≃L[ℝ] E) + (hmetric : ∀ xi, ‖Told xi‖ ^ 2 ≤ ‖Tnew xi‖ ^ 2) : + ‖(Told : E →L[ℝ] E) ∘L (Tnew.symm : E →L[ℝ] E)‖ ≤ 1 := by + apply norm_metric_change_le_one Told Tnew + intro xi + nlinarith [hmetric xi, norm_nonneg (Told xi), norm_nonneg (Tnew xi)] + +end Normed + +section Hilbert + +variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E] + +/-- The inverse transpose factors through the frozen dual norm. -/ +theorem inverseTranspose_frozen_factor (T e : E ≃L[ℝ] E) (w : E) : + inverseTranspose e w = + ((T : E →L[ℝ] E) ∘L (e.symm : E →L[ℝ] E)).adjoint + ((T.symm : E →L[ℝ] E).adjoint w) := by + have hcancel : (T.symm : E →L[ℝ] E) ∘L (T : E →L[ℝ] E) = + ContinuousLinearMap.id ℝ E := by + ext x + simp + simp only [ContinuousLinearMap.adjoint_comp, ContinuousLinearMap.comp_apply, + inverseTranspose] + congr 1 + change w = ((T : E →L[ℝ] E).adjoint ∘L (T.symm : E →L[ℝ] E).adjoint) w + rw [← ContinuousLinearMap.adjoint_comp, hcancel] + rw [ContinuousLinearMap.adjoint_id] + rfl + +/-- Lower metric coercivity gives the dual inverse-transpose bound with +the same square-root constant. -/ +theorem inverseTranspose_norm_le_frozen (T e : E ≃L[ℝ] E) {A : ℝ} (hA : 1 ≤ A) + (hlower : ∀ xi, A⁻¹ * ‖T xi‖ ^ 2 ≤ ‖e xi‖ ^ 2) (w : E) : + ‖inverseTranspose e w‖ ≤ Real.sqrt A * ‖(T.symm : E →L[ℝ] E).adjoint w‖ := by + let B : E →L[ℝ] E := (T : E →L[ℝ] E) ∘L (e.symm : E →L[ℝ] E) + have hnorm : ‖B.adjoint‖ = ‖B‖ := + (ContinuousLinearMap.adjoint (𝕜 := ℝ) (E := E) (F := E)).norm_map B + rw [inverseTranspose_frozen_factor T e w] + calc + _ ≤ ‖B.adjoint‖ * ‖(T.symm : E →L[ℝ] E).adjoint w‖ := + B.adjoint.le_opNorm _ + _ = ‖B‖ * ‖(T.symm : E →L[ℝ] E).adjoint w‖ := by rw [hnorm] + _ ≤ _ := mul_le_mul_of_nonneg_right (norm_frozen_comp_inverse_le T e hA hlower) + (norm_nonneg _) + +/-- Existence and the dual estimate may be obtained together directly +from the metric lower bound. -/ +theorem exists_equiv_inverseTranspose_bound [FiniteDimensional ℝ E] + (T : E ≃L[ℝ] E) (J : E →L[ℝ] E) {A : ℝ} (hA : 1 ≤ A) + (hlower : ∀ xi, A⁻¹ * ‖T xi‖ ^ 2 ≤ ‖J xi‖ ^ 2) : + ∃ e : E ≃L[ℝ] E, (e : E →L[ℝ] E) = J ∧ + ∀ w, ‖inverseTranspose e w‖ ≤ Real.sqrt A * ‖(T.symm : E →L[ℝ] E).adjoint w‖ := by + obtain ⟨e, he⟩ := exists_equiv_of_metric_lower T J hA hlower + refine ⟨e, he, ?_⟩ + apply inverseTranspose_norm_le_frozen T e hA + simpa only [← he, ContinuousLinearEquiv.coe_coe] using hlower + +end Hilbert + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/MovingLinearDifference.lean b/lean/OAI/Geometry/RCD/Sobolev/MovingLinearDifference.lean new file mode 100644 index 0000000000000000000000000000000000000000..c026302f4508b3e082710f3bab93d3ca17418e5e --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/MovingLinearDifference.lean @@ -0,0 +1,25 @@ +import Mathlib.Analysis.Calculus.Deriv.Slope + +namespace OAI + +/-! # Differentiation of the function argument of a moving linear map -/ + +open Filter +open scoped Topology +namespace RegularPointCoordinates +variable {E F : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] + [NormedAddCommGroup F] [NormedSpace ℝ F] + +theorem moving_linear_difference_tendsto (T : ℝ → E →L[ℝ] F) + (u : ℝ → E) {s : ℝ} {D : E} + (hT : ContinuousAt (fun q : E × ℝ => T q.2 q.1) (D,s)) + (hu : HasDerivAt u D s) : + Tendsto (fun t => (t-s)⁻¹ • (T t (u t)-T t (u s))) + (𝓝[≠] s) (𝓝 (T s D)) := by + have ht : Tendsto (fun t : ℝ => t) (𝓝[≠] s) (𝓝 s) := nhdsWithin_le_nhds + have hc := hT.tendsto.comp (hu.tendsto_slope.prodMk_nhds ht) + simpa only [Function.comp_def,slope_def_module,map_smul,map_sub] using hc + +end RegularPointCoordinates + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/NestedBallCutoff.lean b/lean/OAI/Geometry/RCD/Sobolev/NestedBallCutoff.lean new file mode 100644 index 0000000000000000000000000000000000000000..4c7de7214b781c21acbfe0bab308b6e16d44f1cf --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/NestedBallCutoff.lean @@ -0,0 +1,71 @@ +import OAI.Geometry.RCD.Harmonic.UpperLevelCaccioppoli + +namespace OAI + +/-! # Explicit cutoffs between two concentric closed balls -/ + +open Set Metric MeasureTheory +open scoped NNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] + +def nestedBallCutoff (p : X) (r s : ℝ) (x : X) : ℝ := + clipUnit ((s-dist p x)/(s-r)) + +theorem nestedBallCutoff_bounds (p : X) (r s : ℝ) (x : X) : + 0 ≤ nestedBallCutoff p r s x ∧ nestedBallCutoff p r s x ≤ 1 := clipUnit_bounds _ + +theorem nestedBallCutoff_eq_one (p : X) {r s : ℝ} (hrs : r < s) + {x : X} (hx : dist p x ≤ r) : nestedBallCutoff p r s x = 1 := by + have hd : 1 ≤ (s-dist p x)/(s-r) := (le_div_iff₀ (sub_pos.mpr hrs)).mpr (by linarith) + simp only [nestedBallCutoff,clipUnit] + rw [max_eq_left (by linarith),min_eq_right hd] + +theorem nestedBallCutoff_eq_zero (p : X) {r s : ℝ} (hrs : r < s) + {x : X} (hx : s ≤ dist p x) : nestedBallCutoff p r s x = 0 := by + have hd : (s-dist p x)/(s-r) ≤ 0 := div_nonpos_of_nonpos_of_nonneg + (by linarith) (sub_pos.mpr hrs).le + simp only [nestedBallCutoff,clipUnit] + rw [max_eq_right hd,min_eq_left zero_le_one] + +theorem nestedBallCutoff_lipschitz (p : X) {r s : ℝ} (hrs : r < s) : + LipschitzWith ⟨(s-r)⁻¹,inv_nonneg.mpr (sub_pos.mpr hrs).le⟩ (nestedBallCutoff p r s) := by + have h := clipUnit_lipschitz.comp + ((lipschitzWith_const_mul_real (LipschitzWith.dist_right p) (-(s-r)⁻¹)).add + (LipschitzWith.const (s/(s-r)))) + have hc : (1:ℝ≥0)*(‖-(s-r)⁻¹‖₊*1+0) = + ⟨(s-r)⁻¹,inv_nonneg.mpr (sub_pos.mpr hrs).le⟩ := by + ext + simp only [coe_nnnorm,Real.norm_eq_abs,abs_neg, + abs_of_nonneg (inv_nonneg.mpr (sub_pos.mpr hrs).le),mul_one,one_mul,add_zero] + rfl + rw [hc] at h + convert h using 1 + funext x + dsimp only [nestedBallCutoff,Function.comp_apply] + congr 1 + ring + +theorem nestedBallCutoff_tsupport (p : X) {r s : ℝ} (hrs : r < s) : + tsupport (nestedBallCutoff p r s) ⊆ closedBall p s := by + apply closure_minimal _ isClosed_closedBall + intro x hx + by_contra hnot + apply hx + apply nestedBallCutoff_eq_zero p hrs + have hh : ¬ dist x p ≤ s := hnot + rw [dist_comm] at hh + exact (lt_of_not_ge hh).le + +theorem nestedBallCutoff_hasCompactSupport [ProperSpace X] + (p : X) {r s : ℝ} (hrs : r < s) : HasCompactSupport (nestedBallCutoff p r s) := + (isCompact_closedBall p s).of_isClosed_subset (isClosed_tsupport _) (nestedBallCutoff_tsupport p hrs) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/NestedPositiveTestMeasure.lean b/lean/OAI/Geometry/RCD/Sobolev/NestedPositiveTestMeasure.lean new file mode 100644 index 0000000000000000000000000000000000000000..ef220e88f97e6eb3d37b64c08796c323b3569768 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/NestedPositiveTestMeasure.lean @@ -0,0 +1,131 @@ +import OAI.Geometry.RCD.Sobolev.PositiveCompactTestMeasure + +namespace OAI + +/-! # Positive test measures with the interior ratio needed for Poisson data -/ + +open Set Metric MeasureTheory +open scoped NNReal BoundedContinuousFunction CompactlySupported + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem positive_test_measure_of_majorant {S T : Set X} (hST : S ⊆ T) + (F : compactLipschitzTests T →ₗ[ℝ] ℝ) + (hF : ∀ f : compactLipschitzTests T, 0 ≤ (f : X →ᵇ ℝ) → 0 ≤ F f) + (χ : compactLipschitzTests T) (hχ0 : 0 ≤ (χ : X →ᵇ ℝ)) + (hχ1 : ∀ x ∈ S, 1 ≤ (χ : X →ᵇ ℝ) x) : + ∃ σ : Measure X, IsFiniteMeasure σ ∧ + ∀ f : compactLipschitzTests S, + (∫ x, (f : X →ᵇ ℝ) x ∂σ) = F + ⟨f, f.property.choose, f.property.choose_spec.1, f.property.choose_spec.2.1, + f.property.choose_spec.2.2.trans hST⟩ := by + have hinc : compactLipschitzTests S ≤ compactLipschitzTests T := by + rintro f ⟨L, hL, hc, hs⟩ + exact ⟨L, hL, hc, hs.trans hST⟩ + let ι := Submodule.inclusion hinc + have hM : 0 ≤ F χ := hF χ hχ0 + have hbound (f : compactLipschitzTests S) : + (F.comp ι) f ≤ F χ * ‖(f : X →ᵇ ℝ) ⊔ 0‖ := by + let C := ‖(f : X →ᵇ ℝ) ⊔ 0‖ + have hC : 0 ≤ C := norm_nonneg _ + have hn : 0 ≤ ((C • χ - ι f : compactLipschitzTests T) : X →ᵇ ℝ) := by + intro x + change 0 ≤ C * (χ : X →ᵇ ℝ) x - (f : X →ᵇ ℝ) x + by_cases hx : (f : X →ᵇ ℝ) x = 0 + · rw [hx, sub_zero] + exact mul_nonneg hC (hχ0 x) + · have hxs := f.property.choose_spec.2.2 (subset_tsupport _ hx) + have hfC : (f : X →ᵇ ℝ) x ≤ C := (le_max_left _ _).trans + (((f : X →ᵇ ℝ) ⊔ 0).apply_le_norm x) + have hmajor := mul_le_mul_of_nonneg_left (hχ1 x hxs) hC + linarith + have hp := hF (C • χ - ι f) hn + have hadd := F.map_add (C • χ - ι f) (ι f) + have heq : C • χ - ι f + ι f = C • χ := by + apply Subtype.ext + ext x + change C * (χ : X →ᵇ ℝ) x - (f : X →ᵇ ℝ) x + (f : X →ᵇ ℝ) x = C * (χ : X →ᵇ ℝ) x + ring + rw [heq, F.map_smul] at hadd + change C * F χ = F (C • χ - ι f) + F (ι f) at hadd + change F (ι f) ≤ F χ * C + linarith + obtain ⟨σ, hσ, hrep⟩ := exists_finite_measure_of_positive_bound + (compactLipschitzTests S) (F.comp ι) hM hbound + exact ⟨σ, hσ, fun f => hrep f f.property.choose_spec.2.1⟩ + +private def nestedCutoff (p : X) (R : ℝ) (x : X) : ℝ := + 2 * radialCutoff p (2 * R / 3) x + +omit [MeasurableSpace X] [BorelSpace X] [ProperSpace X] in +private theorem nestedCutoff_lipschitz (p : X) {R : ℝ} (hR : 0 < R) : + ∃ L : ℝ≥0, LipschitzWith L (nestedCutoff p R) := by + have hs : 0 < 2 * R / 3 := by positivity + exact ⟨_, (lipschitzWith_smul (2 : ℝ)).comp (radialCutoff_lipschitz p hs)⟩ + +omit [MeasurableSpace X] [BorelSpace X] in +private theorem nestedCutoff_compact (p : X) {R : ℝ} (hR : 0 < R) : + HasCompactSupport (nestedCutoff p R) := + (radialCutoff_hasCompactSupport p (show 0 < 2 * R / 3 by positivity)).mul_left + +omit [MeasurableSpace X] [BorelSpace X] [ProperSpace X] in +private theorem nestedCutoff_support (p : X) {R : ℝ} (hR : 0 < R) : + tsupport (nestedCutoff p R) ⊆ ball p (3 * R / 2) := by + have hs : 0 < 2 * R / 3 := by positivity + have hc : tsupport (radialCutoff p (2 * R / 3)) ⊆ closedBall p (2 * (2 * R / 3)) := by + apply closure_minimal _ isClosed_closedBall + intro x hx + by_contra hnot + exact hx (radialCutoff_eq_zero p hs (le_of_lt (by + simpa only [mem_closedBall, not_le, dist_comm] using hnot))) + exact (tsupport_smul_subset_right (fun _ => (2 : ℝ)) (radialCutoff p (2 * R / 3))).trans + (hc.trans (closedBall_subset_ball (by linarith))) + +omit [MeasurableSpace X] [BorelSpace X] [ProperSpace X] in +private theorem nestedCutoff_nonneg (p : X) (R : ℝ) (x : X) : 0 ≤ nestedCutoff p R x := + mul_nonneg (by norm_num) (radialCutoff_bounds p (2 * R / 3) x).1 + +omit [MeasurableSpace X] [BorelSpace X] [ProperSpace X] in +private theorem nestedCutoff_lower (p : X) {R : ℝ} (hR : 0 < R) (x : X) + (hx : x ∈ ball p R) : 1 ≤ nestedCutoff p R x := by + have hd : dist p x < R := by simpa only [mem_ball, dist_comm] using hx + have hs : 0 < 2 * R / 3 := by positivity + have hdiv : dist p x / (2 * R / 3) ≤ (3 / 2 : ℝ) := by + apply (div_le_iff₀ hs).mpr + linarith + change 1 ≤ 2 * radialCutoff p (2 * R / 3) x + unfold radialCutoff clipUnit + have ha : (1 / 2 : ℝ) ≤ 2 - dist p x / (2 * R / 3) := by linarith + have hm : (1 / 2 : ℝ) ≤ min (max (2 - dist p x / (2 * R / 3)) 0) 1 := + le_min (ha.trans (le_max_left _ _)) (by norm_num) + linarith + +omit [MeasurableSpace X] [BorelSpace X] in +theorem exists_nested_lipschitz_majorant (p : X) {R : ℝ} (hR : 0 < R) : + ∃ χ : compactLipschitzTests (ball p (3 * R / 2)), + (0 ≤ (χ : X →ᵇ ℝ)) ∧ ∀ x ∈ ball p R, 1 ≤ (χ : X →ᵇ ℝ) x := by + obtain ⟨L, hL⟩ := nestedCutoff_lipschitz p hR + let cv : C_c(X, ℝ) := ⟨⟨nestedCutoff p R, hL.continuous⟩, nestedCutoff_compact p hR⟩ + let χ : compactLipschitzTests (ball p (3 * R / 2)) := + ⟨cv.toBoundedContinuousFunction, L, hL, nestedCutoff_compact p hR, nestedCutoff_support p hR⟩ + refine ⟨χ, fun x => nestedCutoff_nonneg p R x, fun x hx => nestedCutoff_lower p hR x hx⟩ + +theorem exists_nested_positive_test_measure (p : X) {R : ℝ} (hR : 0 < R) + (F : compactLipschitzTests (ball p (3 * R / 2)) →ₗ[ℝ] ℝ) + (hF : ∀ f : compactLipschitzTests (ball p (3 * R / 2)), 0 ≤ (f : X →ᵇ ℝ) → 0 ≤ F f) : + ∃ σ : Measure X, IsFiniteMeasure σ ∧ + ∀ f : compactLipschitzTests (ball p R), + (∫ x, (f : X →ᵇ ℝ) x ∂σ) = F + ⟨f, f.property.choose, f.property.choose_spec.1, f.property.choose_spec.2.1, + f.property.choose_spec.2.2.trans (ball_subset_ball (by linarith))⟩ := by + obtain ⟨χ, hχ0, hχ1⟩ := exists_nested_lipschitz_majorant p hR + exact positive_test_measure_of_majorant (ball_subset_ball (by linarith)) F hF χ hχ0 hχ1 + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/NoEulerCountersequence.lean b/lean/OAI/Geometry/RCD/Sobolev/NoEulerCountersequence.lean new file mode 100644 index 0000000000000000000000000000000000000000..2f358c5191b02bb1b74975be3fadfbe049dc9470 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/NoEulerCountersequence.lean @@ -0,0 +1,78 @@ +import OAI.Geometry.RCD.Harmonic.RadialCompactnessSequence +import OAI.Geometry.RCD.Sobolev.ActualEulerLimit +import OAI.Geometry.RCD.Sobolev.PoissonHarmonicLimitSubsequence +import OAI.Geometry.RCD.Sobolev.EulerCoefficientSubsequence +import OAI.Geometry.RCD.Harmonic.ProjectionLimitContradiction + +namespace OAI + +/-! # The compactness contradiction for normalized projection residuals -/ + +open Set Metric MeasureTheory Filter +open scoped InnerProductSpace Topology BigOperators + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +/-- There is no normalized orthogonal Euler countersequence satisfying +the actual analytic preconditions of Ambrosio--Honda compactness. The +coefficient subsequence is extracted after the joint function limit, so +all pairings and the nonzero norm refer to one and the same limit. -/ +theorem no_euler_countersequence {K : ℝ} {n : ℕ} {hX : NoncollapsedRCD K n X} + (hcompact : LocalPoissonHarmonicCompactnessInput hX) (hn : 2 ≤ n) + {S : ℝ} (hS : 0 < S) (q : RadialCompactnessSequence hX S) + (B : ℕ → ℝ) + (hf : ∀ i, ∀ᵐ x ∂(hausdorff n X).restrict (ball (q.center i) (S * q.radius i)), + localGamma (hausdorff n X) hX.quadratic (q.radialFunction i) (q.radialFunction i) x ≤ B i) + (e : ℕ → SobolevSpace (hausdorff n X) hX.quadratic) + (b : ℕ → Euclidean n) (k : ℕ → ℝ) {C : ℝ} (hcoeff : ∀ i, ‖b i‖ + |k i| ≤ C) + (he : Tendsto (fun i => ‖normalizeLocalL2 (hausdorff n X) (ball (q.center i) (S * q.radius i)) + (ne_of_lt (hX.finiteOnBounded _ isBounded_ball)) + (SobolevSpace.restrictLp (hausdorff n X) hX.quadratic (ball (q.center i) (S * q.radius i)) (e i))‖) + atTop (𝓝 0)) + (hid : ∀ i, + q.radius i ^ 2 • localRadialDerivative (hausdorff n X) hX.quadratic + (ball (q.center i) (S * q.radius i)) (q.radialFunction i) (hf i) (q.harmonicFunction i) = + SobolevSpace.restrictLp (hausdorff n X) hX.quadratic + (ball (q.center i) (S * q.radius i)) (q.harmonicFunction i) + + (∑ j, b i j • SobolevSpace.restrictLp (hausdorff n X) hX.quadratic + (ball (q.center i) (S * q.radius i)) (q.coordinates i j)) + + k i • restrictedOne (hausdorff n X) (ball (q.center i) (S * q.radius i)) + (ne_of_lt (hX.finiteOnBounded _ isBounded_ball)) + + SobolevSpace.restrictLp (hausdorff n X) hX.quadratic + (ball (q.center i) (S * q.radius i)) (e i)) + {ρ c : ℝ} (hρ : 0 < ρ) (hρS : ρ < S) (hc : c ≠ 0) + (hnorm : Tendsto (fun i => + ⟪localAffineMomentFamily (hausdorff n X) hX.quadratic (q.coordinates i) (q.harmonicFunction i) + (ball (q.center i) (ρ * q.radius i)) (ne_of_lt (hX.finiteOnBounded _ isBounded_ball)) none, + localAffineMomentFamily (hausdorff n X) hX.quadratic (q.coordinates i) (q.harmonicFunction i) + (ball (q.center i) (ρ * q.radius i)) (ne_of_lt (hX.finiteOnBounded _ isBounded_ball)) none⟫_ℝ) + atTop (𝓝 c)) + (horth : ∀ i j, + ⟪localAffineMomentFamily (hausdorff n X) hX.quadratic (q.coordinates i) (q.harmonicFunction i) + (ball (q.center i) (ρ * q.radius i)) (ne_of_lt (hX.finiteOnBounded _ isBounded_ball)) none, + localAffineMomentFamily (hausdorff n X) hX.quadratic (q.coordinates i) (q.harmonicFunction i) + (ball (q.center i) (ρ * q.radius i)) (ne_of_lt (hX.finiteOnBounded _ isBounded_ball)) (some j)⟫_ℝ = 0) : + False := by + obtain ⟨t₁, ht₁, model, hlimit⟩ := hcompact.extract_sequence hn hS q + obtain ⟨t₂, ht₂, L, kLimit, hL, hk⟩ := + euler_coefficient_subsequence (b ∘ t₁) (k ∘ t₁) (fun i => hcoeff (t₁ i)) + let t := t₁ ∘ t₂ + have ht : StrictMono t := ht₁.comp ht₂ + have hlimit' := hlimit.subsequence t₂ ht₂ + change PoissonHarmonicLimit hX S (q.center ∘ t) (q.radius ∘ t) (q.coordinates ∘ t) + (q.coordinateValues ∘ t) (q.harmonicFunction ∘ t) (q.radialFunction ∘ t) model at hlimit' + have hEuler := hlimit'.euler_equation hS (fun i => (q.measured (t i)).measurable) + (fun i j => q.representative (t i) j) (B ∘ t) (fun i => hf (t i)) (e ∘ t) + (fun i j => b (t i) j) (k ∘ t) L kLimit hL hk + (he.comp ht.tendsto_atTop) (fun i => hid (t i)) + exact hlimit'.no_nonzero_orthogonal_euler_limit hS hρ hρS L kLimit hEuler hc + (hnorm.comp ht.tendsto_atTop) (fun i j => horth (t i) j) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/NoProjectedEulerSequence.lean b/lean/OAI/Geometry/RCD/Sobolev/NoProjectedEulerSequence.lean new file mode 100644 index 0000000000000000000000000000000000000000..fb266fc68b63e2ef6891f420bfaef0ff6f690a8e --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/NoProjectedEulerSequence.lean @@ -0,0 +1,123 @@ +import OAI.Geometry.RCD.Sobolev.NoEulerCountersequence +import OAI.Geometry.RCD.Harmonic.ReplaceHarmonicSequence +import OAI.Geometry.RCD.Coordinates.FixedResidualNormalization + +namespace OAI + +/-! # Excluding the actual normalized orthogonal projection sequence -/ + +open Set Metric MeasureTheory Filter +open scoped ENNReal InnerProductSpace Topology BigOperators + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +/-- The unnormalized projection residual cannot dominate its source error +along a geometric compactness sequence. All equations here are actual +Sobolev equations, and orthogonality follows from the actual projection. +The fixed outer constant changes the limit norm to `M⁻²`, which stays nonzero. -/ +theorem no_projected_euler_sequence {K : ℝ} {n : ℕ} {hX : NoncollapsedRCD K n X} + (hcompact : LocalPoissonHarmonicCompactnessInput hX) + (hgradient : LocalHarmonicL2GradientInput hX) (hn : 2 ≤ n) + {S ρ M C : ℝ} (hS : 0 < S) (hρ : 0 < ρ) (hρS : ρ < S) (hM : 0 < M) + (q : RadialCompactnessSequence hX S) + (v w e : ℕ → SobolevSpace (hausdorff n X) hX.quadratic) + (b : ℕ → Euclidean n) (k B : ℕ → ℝ) + (hf : ∀ i, ∀ᵐ x ∂(hausdorff n X).restrict (ball (q.center i) (S * q.radius i)), + localGamma (hausdorff n X) hX.quadratic (q.radialFunction i) (q.radialFunction i) x ≤ B i) + (hw : ∀ i, IsSobolevHarmonicOn (hausdorff n X) hX.quadratic + (ball (q.center i) (S * q.radius i)) (w i)) + (hproj : ∀ i, SobolevSpace.restrictLp (hausdorff n X) hX.quadratic + (ball (q.center i) (ρ * q.radius i)) (w i) = + affineResidual (hausdorff n X) hX.quadratic (q.coordinates i) + (ball (q.center i) (ρ * q.radius i)) (ne_of_lt (hX.finiteOnBounded _ isBounded_ball)) + (SobolevSpace.restrictLp (hausdorff n X) hX.quadratic + (ball (q.center i) (ρ * q.radius i)) (v i))) + (hid : ∀ i, q.radius i ^ 2 • localRadialDerivative (hausdorff n X) hX.quadratic + (ball (q.center i) (S * q.radius i)) (q.radialFunction i) (hf i) (w i) = + SobolevSpace.restrictLp (hausdorff n X) hX.quadratic (ball (q.center i) (S * q.radius i)) (w i) + + (∑ j, b i j • SobolevSpace.restrictLp (hausdorff n X) hX.quadratic + (ball (q.center i) (S * q.radius i)) (q.coordinates i j)) + + k i • restrictedOne (hausdorff n X) (ball (q.center i) (S * q.radius i)) + (ne_of_lt (hX.finiteOnBounded _ isBounded_ball)) + + SobolevSpace.restrictLp (hausdorff n X) hX.quadratic (ball (q.center i) (S * q.radius i)) (e i)) : + let α := fun i => ‖normalizeLocalL2 (hausdorff n X) (ball (q.center i) (ρ * q.radius i)) + (ne_of_lt (hX.finiteOnBounded _ isBounded_ball)) + (SobolevSpace.restrictLp (hausdorff n X) hX.quadratic + (ball (q.center i) (ρ * q.radius i)) (w i))‖ + (∀ i, 0 < α i) → + (∀ i, ‖normalizeLocalL2 (hausdorff n X) (ball (q.center i) (S * q.radius i)) + (ne_of_lt (hX.finiteOnBounded _ isBounded_ball)) + (SobolevSpace.restrictLp (hausdorff n X) hX.quadratic + (ball (q.center i) (S * q.radius i)) (w i))‖ ≤ M * α i) → + (∀ i, ‖b i‖ + |k i| ≤ C * α i) → + Tendsto (fun i => ‖normalizeLocalL2 (hausdorff n X) (ball (q.center i) (S * q.radius i)) + (ne_of_lt (hX.finiteOnBounded _ isBounded_ball)) + (SobolevSpace.restrictLp (hausdorff n X) hX.quadratic + (ball (q.center i) (S * q.radius i)) ((α i)⁻¹ • e i))‖) atTop (𝓝 0) → False := by + dsimp only + intro hα houter hcoeff he + let μ := hausdorff n X + let α := fun i => ‖normalizeLocalL2 μ (ball (q.center i) (ρ * q.radius i)) + (ne_of_lt (hX.finiteOnBounded _ isBounded_ball)) + (SobolevSpace.restrictLp μ hX.quadratic (ball (q.center i) (ρ * q.radius i)) (w i))‖ + let a := fun i => (M * α i)⁻¹ + let W := fun i => a i • w i + have hW : ∀ i, IsSobolevHarmonicOn μ hX.quadratic + (ball (q.center i) (S * q.radius i)) (W i) := + fun i => (hw i).smul μ hX.quadratic (a i) + have hWnorm (i : ℕ) : ‖normalizeLocalL2 μ (ball (q.center i) (S * q.radius i)) + (ne_of_lt (hX.finiteOnBounded _ isBounded_ball)) + (SobolevSpace.restrictLp μ hX.quadratic (ball (q.center i) (S * q.radius i)) (W i))‖ ≤ 1 := by + dsimp only [W] + rw [map_smul, normalizeLocalL2_smul] + exact fixed_amplitude_bound _ hM (hα i) (houter i) + let q' := q.with_harmonic hgradient hn hS W hW hWnorm + have heq (i : ℕ) : normalizeLocalL2 μ (ball (q.center i) (S * q.radius i)) + (ne_of_lt (hX.finiteOnBounded _ isBounded_ball)) + (SobolevSpace.restrictLp μ hX.quadratic (ball (q.center i) (S * q.radius i)) (a i • e i)) = + M⁻¹ • normalizeLocalL2 μ (ball (q.center i) (S * q.radius i)) + (ne_of_lt (hX.finiteOnBounded _ isBounded_ball)) + (SobolevSpace.restrictLp μ hX.quadratic (ball (q.center i) (S * q.radius i)) ((α i)⁻¹ • e i)) := by + simp only [map_smul, normalizeLocalL2_smul, smul_smul] + congr 1 + dsimp only [a] + rw [mul_inv_rev, mul_comm] + have he' : Tendsto (fun i => ‖normalizeLocalL2 μ (ball (q.center i) (S * q.radius i)) + (ne_of_lt (hX.finiteOnBounded _ isBounded_ball)) + (SobolevSpace.restrictLp μ hX.quadratic (ball (q.center i) (S * q.radius i)) (a i • e i))‖) + atTop (𝓝 0) := by + simpa only [heq, norm_smul, Real.norm_eq_abs, abs_of_pos (inv_pos.mpr hM), mul_zero] + using (tendsto_const_nhds (x := M⁻¹)).mul he + apply no_euler_countersequence hcompact hn hS q' B hf + (fun i => a i • e i) (fun i => a i • b i) (fun i => a i * k i) + (ρ := ρ) (c := (M⁻¹) ^ 2) (C := C / M) (fun i => fixed_coefficient_bound (b i) (k i) hM (hα i) (hcoeff i)) he' + case hid => + intro i + exact amplitude_euler_identity μ hX.quadratic _ _ (q.radialFunction i) (w i) (e i) + (q.coordinates i) (fun j => b i j) (k i) (a i) (q.radius i ^ 2) (hf i) (hid i) + case hρ => exact hρ + case hρS => exact hρS + case hc => exact pow_ne_zero 2 (inv_ne_zero hM.ne') + case hnorm => + have hmoment (i : ℕ) : + ⟪localAffineMomentFamily μ hX.quadratic (q.coordinates i) (W i) + (ball (q.center i) (ρ * q.radius i)) (ne_of_lt (hX.finiteOnBounded _ isBounded_ball)) none, + localAffineMomentFamily μ hX.quadratic (q.coordinates i) (W i) + (ball (q.center i) (ρ * q.radius i)) (ne_of_lt (hX.finiteOnBounded _ isBounded_ball)) none⟫_ℝ = + (M⁻¹) ^ 2 := + fixed_residual_moment μ hX.quadratic _ _ (q.coordinates i) (w i) hM (hα i) + exact (tendsto_const_nhds : Tendsto (fun _ : ℕ => (M⁻¹) ^ 2) atTop (𝓝 ((M⁻¹) ^ 2))).congr' + (Filter.Eventually.of_forall fun i => (hmoment i).symm) + case horth => + intro i j + exact normalized_projection_orthogonality μ hX.quadratic _ _ (q.coordinates i) + (v i) (w i) (hproj i) (a i) j + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/NullCompactCutoff.lean b/lean/OAI/Geometry/RCD/Sobolev/NullCompactCutoff.lean new file mode 100644 index 0000000000000000000000000000000000000000..e26d858b150c975a5ed60f5af8dc0f470d87cc87 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/NullCompactCutoff.lean @@ -0,0 +1,74 @@ +import OAI.Geometry.RCD.Heat.CompactHeatMeasure + +namespace OAI + +/-! # Continuous cutoffs of null compact sets with vanishing L² norm -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped NNReal ENNReal Topology CompactlySupported + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) [μ.Regular] + +omit [ProperSpace X] in +theorem compactTestToL2_norm_sq_le {F : C_c(X, ℝ)} {V : Set X} + (hfin : μ V ≠ ∞) (hs : tsupport F ⊆ V) + (hb : ∀ x, |F x| ≤ 1) : ‖compactTestToL2 μ F‖ ^ 2 ≤ μ.real V := by + have hi : Integrable (fun x => (F x) ^ 2) μ := + (F.continuous.memLp_of_hasCompactSupport F.hasCompactSupport : MemLp F 2 μ).integrable_sq + rw [← integral_sq_Lp μ (compactTestToL2 μ F)] + calc + _ = ∫ x, (F x) ^ 2 ∂μ := integral_congr_ae ((compactTestToL2_coe μ F).fun_comp fun t => t ^ 2) + _ = ∫ x in V, (F x) ^ 2 ∂μ := by + symm + apply setIntegral_eq_integral_of_ae_compl_eq_zero + filter_upwards with x hx + have hz : F x = 0 := image_eq_zero_of_notMem_tsupport (fun h => hx (hs h)) + simp only [hz, zero_pow (by norm_num : (2 : ℕ) ≠ 0)] + _ ≤ ∫ _x in V, (1 : ℝ) ∂μ := by + apply integral_mono_ae hi.integrableOn (integrableOn_const hfin) + filter_upwards with x + have hx := hb x + nlinarith [sq_abs (F x), abs_nonneg (F x)] + _ = μ.real V := by simp + +/-- Outer regularity supplies continuous unit cutoffs of a null compact +set whose actual L² classes converge to zero. -/ +theorem exists_null_compact_cutoffs {S : Set X} (hS : IsCompact S) (hnull : μ S = 0) : + ∃ F : ℕ → C_c(X, ℝ), + (∀ i x, 0 ≤ F i x ∧ F i x ≤ 1) ∧ + (∀ i, EqOn (F i) 1 S) ∧ + Tendsto (fun i => compactTestToL2 μ (F i)) atTop (𝓝 0) := by + have hex (i : ℕ) : ∃ F : C_c(X, ℝ), + (∀ x, 0 ≤ F x ∧ F x ≤ 1) ∧ EqOn F 1 S ∧ + ‖compactTestToL2 μ F‖ ≤ 1 / ((i : ℝ) + 1) := by + let δ := (1 / ((i : ℝ) + 1)) ^ 2 + have hδ : 0 < δ := by dsimp [δ]; positivity + obtain ⟨V, hSV, hV, hμV⟩ := S.exists_isOpen_lt_of_lt (μ := μ) + (ENNReal.ofReal δ) (by rw [hnull]; exact ENNReal.ofReal_pos.mpr hδ) + obtain ⟨f, hfS, hfc, hfV, hfrange⟩ := + exists_continuousMap_one_of_isCompact_subset_isOpen hS hV hSV + let F : C_c(X, ℝ) := ⟨f, hfc⟩ + have hfin : μ V ≠ ∞ := (hμV.trans_le le_top).ne + have hsq := compactTestToL2_norm_sq_le μ (F := F) hfin hfV (fun x => by + change |f x| ≤ 1 + rw [abs_of_nonneg (hfrange x).1] + exact (hfrange x).2) + have hvol : μ.real V ≤ δ := by + have hh := ENNReal.toReal_mono ENNReal.ofReal_ne_top hμV.le + simpa only [Measure.real, ENNReal.toReal_ofReal hδ.le] using hh + refine ⟨F, hfrange, hfS, ?_⟩ + have hi : 0 < 1 / ((i : ℝ) + 1) := by positivity + nlinarith [hsq.trans hvol, norm_nonneg (compactTestToL2 μ F)] + choose F hF hS hnorm using hex + refine ⟨F, hF, hS, tendsto_zero_iff_norm_tendsto_zero.mpr ?_⟩ + exact squeeze_zero (fun i => norm_nonneg _) hnorm tendsto_one_div_add_atTop_nhds_zero_nat + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/OrthonormalHarmonicLipschitz.lean b/lean/OAI/Geometry/RCD/Sobolev/OrthonormalHarmonicLipschitz.lean new file mode 100644 index 0000000000000000000000000000000000000000..0f9fb209a5a9cebdffc7555bc760a07bff45a09c --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/OrthonormalHarmonicLipschitz.lean @@ -0,0 +1,65 @@ +import OAI.Geometry.RCD.Sobolev.ContinuousLocalGradientBound +import OAI.Geometry.RCD.Harmonic.ColumnRepresentatives +import OAI.Geometry.RCD.Harmonic.GramDirectionalError + +namespace OAI + +/-! # Exact metric contraction from an orthonormal Sobolev Gram matrix -/ + +open Set Metric MeasureTheory +open scoped InnerProductSpace NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem localGamma_column_orthonormal (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + {n : ℕ} (u : Fin n → SobolevSpace μ hQ) (S : Set X) + (hgram : ∀ i j, localGamma μ hQ (u i) (u j) =ᵐ[μ.restrict S] + fun _ => if i=j then 1 else 0) (a : Euclidean n) : + localGamma μ hQ (sobolevColumnMap μ hQ u a) (sobolevColumnMap μ hQ u a) + =ᵐ[μ.restrict S] fun _ => ‖a‖^2 := by + classical + have hall : ∀ᵐ x ∂μ.restrict S, ∀ i j, localGamma μ hQ (u i) (u j) x= + if i=j then 1 else 0 := by + exact ae_all_iff.mpr fun i => ae_all_iff.mpr fun j => hgram i j + filter_upwards [hall,ae_restrict_of_ae (localGamma_column_pair μ hQ u a a)] with x hx he + rw [he] + simp_rw [hx] + simp only [mul_ite,mul_one,mul_zero,Finset.sum_ite_eq,Finset.mem_univ,ite_true] + simpa only [PiLp.inner_apply,RCLike.inner_apply,conj_trivial] using + (real_inner_self_eq_norm_sq a) + +include X in +theorem NoncollapsedRCD.orthonormal_coordinates_lipschitz {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (hn : 2≤n) (p : X) {R : ℝ} (hR : 0 v x i) + (hgram : ∀ i j, localGamma (hausdorff n X) hX.quadratic (u i) (u j) + =ᵐ[(hausdorff n X).restrict (ball p (8*R))] fun _ => if i=j then 1 else 0) : + LipschitzOnWith 1 v (ball p R) := by + have hdir (a : Euclidean n) : LipschitzOnWith ⟨‖a‖,norm_nonneg a⟩ + (fun x => ⟪v x,a⟫_ℝ) (ball p R) := by + apply hX.continuous_local_gradient_lipschitz hn + (sobolevColumnMap (hausdorff n X) hX.quadratic u a) _ p hR + ⟨‖a‖,norm_nonneg a⟩ (hv.inner continuousOn_const) + (sobolevColumnMap_representative (hausdorff n X) hX.quadratic u _ v hu a) + exact (localGamma_column_orthonormal (hausdorff n X) hX.quadratic u _ hgram a).mono + fun _ hx => hx.le + apply LipschitzOnWith.of_dist_le_mul + intro x hx y hy + let z := v x-v y + have hz : ‖z‖^2≤‖z‖*dist x y := by + have hh := (hdir z).dist_le_mul x hx y hy + rw [Real.dist_eq,← inner_sub_left] at hh + change |⟪z,z⟫_ℝ|≤‖z‖*dist x y at hh + simpa only [real_inner_self_eq_norm_sq,abs_of_nonneg (sq_nonneg ‖z‖)] using hh + change ‖z‖≤(1:ℝ)*dist x y + nlinarith [norm_nonneg z,dist_nonneg (x:=x) (y:=y)] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/OrthonormalImageSpan.lean b/lean/OAI/Geometry/RCD/Sobolev/OrthonormalImageSpan.lean new file mode 100644 index 0000000000000000000000000000000000000000..420467c6895e000fb6dac8d16c20d1527634d4ad --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/OrthonormalImageSpan.lean @@ -0,0 +1,79 @@ +import OAI.Geometry.RCD.Sobolev.OrthonormalHarmonicLipschitz +import Mathlib.Analysis.Normed.Affine.AddTorsorBases +import Mathlib.Analysis.InnerProductSpace.Projection.Submodule + +namespace OAI + +/-! # An orthonormal Sobolev frame has a full-dimensional coordinate image -/ + +open Set Filter MeasureTheory +open scoped InnerProductSpace +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem orthonormal_linear_constant_zero (μ : Measure X) (Q : QuadraticCheegerEnergy μ) + {n : ℕ} (u : Fin n → SobolevSpace μ Q) (v : X → Euclidean n) + (Ω : Set X) (hΩ : MeasurableSet Ω) (hμΩ : μ Ω≠0) + (hu : ∀ i, SobolevSpace.toLp μ Q (u i) =ᵐ[μ.restrict Ω] fun x => v x i) + (hgram : ∀ i j, localGamma μ Q (u i) (u j) =ᵐ[μ.restrict Ω] + fun _ => if i=j then 1 else 0) + (a : Euclidean n) (c : ℝ) (hc : ∀ x∈Ω, ⟪v x,a⟫_ℝ=c) : a=0 := by + let f := sobolevColumnMap μ Q u a + have hf : SobolevSpace.toLp μ Q f =ᵐ[μ.restrict Ω] fun _ => c := by + filter_upwards [sobolevColumnMap_representative μ Q u Ω v hu a,ae_restrict_mem hΩ] + with x hx hxm + exact hx.trans (hc x hxm) + have he : ∀ᵐ x ∂μ.restrict Ω, ‖a‖^2=0 := by + filter_upwards [hf,ae_restrict_of_ae (localGamma_zero_on_level μ Q f f c), + localGamma_column_orthonormal μ Q u Ω hgram a] with x hx hz hg + exact hg.symm.trans (hz hx) + by_contra ha + have hn : ‖a‖^2≠0 := pow_ne_zero _ (norm_ne_zero_iff.mpr ha) + have hh : ∀ᵐ x ∂μ.restrict Ω, False := he.mono (fun _ hx => hn hx) + have hm := ae_iff.mp hh + exact hμΩ (by simpa only [not_false_eq_true,ofPred_true,Measure.restrict_apply_univ] using hm) + +theorem affineSpan_eq_top_of_linear_constants {n : ℕ} (S : Set (Euclidean n)) + (hS : S.Nonempty) + (h : ∀ (a : Euclidean n) (c : ℝ), (∀ z∈S, ⟪z,a⟫_ℝ=c) → a=0) : + affineSpan ℝ S=⊤ := by + obtain ⟨p,hp⟩ := hS + let K := (affineSpan ℝ S).direction + have hK : Kᗮ=⊥ := by + apply le_antisymm ?_ bot_le + intro a ha + change a=0 + apply h a ⟪p,a⟫_ℝ + intro z hz + have hv : z-p∈K := AffineSubspace.vsub_mem_direction + (subset_affineSpan ℝ S hz) (subset_affineSpan ℝ S hp) + have he := (Submodule.mem_orthogonal K a).mp ha (z-p) hv + rw [inner_sub_left] at he + linarith + have hd : (affineSpan ℝ S).direction=⊤ := (Submodule.orthogonal_eq_bot_iff).mp hK + exact (AffineSubspace.direction_eq_top_iff_of_nonempty + ⟨p,subset_affineSpan ℝ S hp⟩).mp hd + +theorem orthonormal_image_has_interior (μ : Measure X) (Q : QuadraticCheegerEnergy μ) + {n : ℕ} (u : Fin n → SobolevSpace μ Q) (v : X → Euclidean n) + (Ω : Set X) (hΩ : MeasurableSet Ω) (hμΩ : μ Ω≠0) + (hu : ∀ i, SobolevSpace.toLp μ Q (u i) =ᵐ[μ.restrict Ω] fun x => v x i) + (hgram : ∀ i j, localGamma μ Q (u i) (u j) =ᵐ[μ.restrict Ω] + fun _ => if i=j then 1 else 0) + (hconv : Convex ℝ (v '' Ω)) : (interior (v '' Ω)).Nonempty := by + apply hconv.interior_nonempty_iff_affineSpan_eq_top.mpr + apply affineSpan_eq_top_of_linear_constants (v '' Ω) + · apply Set.Nonempty.image + by_contra hempty + have hΩ0 : Ω=∅ := Set.not_nonempty_iff_eq_empty.mp hempty + exact hμΩ (by rw [hΩ0,measure_empty]) + · intro a c hc + exact orthonormal_linear_constant_zero μ Q u v Ω hΩ hμΩ hu hgram a c + (fun x hx => hc (v x) ⟨x,hx,rfl⟩) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/PhysicalBallMeasuredTests.lean b/lean/OAI/Geometry/RCD/Sobolev/PhysicalBallMeasuredTests.lean new file mode 100644 index 0000000000000000000000000000000000000000..3b7b544a7f967760fc1ad1cbef5b84d32c4e307c --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/PhysicalBallMeasuredTests.lean @@ -0,0 +1,56 @@ +import OAI.Geometry.RCD.Sobolev.PointedBallTestError +import OAI.Geometry.RCD.Sobolev.VanishingAnnuli + +namespace OAI + +/-! # Measured tests on the original physical inner balls -/ + +open Set Metric Filter MeasureTheory +open scoped Topology BoundedContinuousFunction +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + +theorem physical_ball_measured_test_tendsto {n : ℕ} {S ρ : ℝ} + (hS : 0 (μ.real (ball (p k) (S*r k)))⁻¹* + ∫ x in ball (p k) (ρ*r k), φ (v k x) ∂μ) atTop + (𝓝 ((volume.real (ball (0:Euclidean n) S))⁻¹*(∫ z in ball 0 ρ, φ z))) := by + let ν := fun k => normalizedBallPushforward μ (p k) (r k) S (v k) (hfin k) + have hν : Tendsto ν atTop (𝓝 (euclideanBallProbability n S)) := + measured_approximation_laws_tendsto hS hv hfin hpos hε + have ht := euclidean_law_ball_test_tendsto hS hρ hν φ + rw [euclideanBallProbability_setIntegral hS measurableSet_ball, + inter_eq_left.mpr (ball_subset_ball hρS)] at ht + have he : Tendsto (fun k => (μ.real (ball (p k) (S*r k)))⁻¹* + (∫ x in ball (p k) (ρ*r k), φ (v k x) ∂μ)- + ∫ z in ball 0 ρ, φ z ∂(ν k : Measure (Euclidean n))) atTop (𝓝 0) := by + apply Metric.tendsto_nhds.mpr + intro η hη + let d := η/(2*(‖φ‖+1)) + have hd : 0 (1 : ℝ)) + (N : Euclidean n ≃L[ℝ] Euclidean n) {R H V E D σ B : ℝ} + (_hR : 0 < R) (hH : 0 ≤ H) (_hV : 0 ≤ V) (_hE : 0 ≤ E) + (hD : 0 ≤ D) (hσ : 0 ≤ σ) + (hbound : ∀ c a, |c| + R * ‖N.symm a‖ ≤ H * + ‖normalizeLocalL2 μ s hfin (affineCoordinateMap μ hQ u s hfin (c, a))‖) + (hvalue : ‖normalizeLocalL2 μ s hfin (SobolevSpace.restrictLp μ hQ s v)‖ ≤ V * R ^ 2) + (hf : ∀ᵐ x ∂μ.restrict Ω, localGamma μ hQ f f x ≤ B) + (G : Euclidean n →L[ℝ] SobolevSpace μ hQ) + (A : Euclidean n →L[ℝ] Euclidean n) (k : ℝ) + (hEuler : localRadialDerivative μ hQ Ω f hf v = + SobolevSpace.restrictLp μ hQ Ω (v + k • η + ev)) + (hG : ∀ a, localRadialDerivative μ hQ Ω f hf + (sobolevColumnMap μ hQ u a) = SobolevSpace.restrictLp μ hQ Ω (G a)) + (hev : ‖normalizeLocalL2 μ Ω hfinΩ (SobolevSpace.restrictLp μ hQ Ω ev)‖ ≤ E * R ^ 2 * σ) + (hfit : ∀ b, ‖normalizeLocalL2 μ Ω hfinΩ (SobolevSpace.restrictLp μ hQ Ω + (G (N b) - sobolevColumnMap μ hQ u (A (N b))))‖ ≤ D * R * ‖b‖ * σ) : + ∃ (c : ℝ) (b : Euclidean n), + let w := v - c • η - sobolevColumnMap μ hQ u (N b) + let e := ev - (G (N b) - sobolevColumnMap μ hQ u (A (N b))) + IsSobolevHarmonicOn μ hQ Ω w ∧ + SobolevSpace.restrictLp μ hQ s w = affineResidual μ hQ u s hfin + (SobolevSpace.restrictLp μ hQ s v) ∧ + |c| + R * ‖b‖ ≤ H * V * R ^ 2 ∧ + localRadialDerivative μ hQ Ω f hf w = SobolevSpace.restrictLp μ hQ Ω + (w + sobolevColumnMap μ hQ u (N b - A (N b)) + (k + c) • η + e) ∧ + ‖normalizeLocalL2 μ Ω hfinΩ (SobolevSpace.restrictLp μ hQ Ω e)‖ ≤ + (E + D * H * V) * R ^ 2 * σ := by + obtain ⟨c, b, w, hw, hharm, hproj, hcb⟩ := weighted_framed_harmonic_projection_residual + μ hQ u s Ω hfin hsΩ hΩ hu v η hv hη N R hH hbound + have hw' : w = v - c • η - sobolevColumnMap μ hQ u (N b) := by rw [hw]; module + rw [hw'] at hharm hproj + have hcb' : |c| + R * ‖b‖ ≤ H * V * R ^ 2 := + hcb.trans ((mul_le_mul_of_nonneg_left hvalue hH).trans_eq (by ring)) + refine ⟨c, b, hharm, hproj, hcb', ?_, ?_⟩ + · exact projected_euler_identity μ hQ Ω f v η ev hf hη + (sobolevColumnMap μ hQ u) G A (N b) k c hEuler (hG (N b)) + · have he : ‖normalizeLocalL2 μ Ω hfinΩ (SobolevSpace.restrictLp μ hQ Ω + (ev - (G (N b) - sobolevColumnMap μ hQ u (A (N b)))))‖ ≤ + E * R ^ 2 * σ + D * R * ‖b‖ * σ := by + rw [map_sub] + simpa only [normalizeLocalL2, smul_sub] using + (norm_sub_le (normalizeLocalL2 μ Ω hfinΩ (SobolevSpace.restrictLp μ hQ Ω ev)) + (normalizeLocalL2 μ Ω hfinΩ (SobolevSpace.restrictLp μ hQ Ω + (G (N b) - sobolevColumnMap μ hQ u (A (N b)))))).trans (add_le_add hev (hfit b)) + have hcoef : R * ‖b‖ ≤ H * V * R ^ 2 := (le_add_of_nonneg_left (abs_nonneg c)).trans hcb' + have hscale := mul_le_mul_of_nonneg_left hcoef (mul_nonneg hD hσ) + calc + _ ≤ E * R ^ 2 * σ + D * R * ‖b‖ * σ := he + _ ≤ (E + D * H * V) * R ^ 2 * σ := by nlinarith only [hscale] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/PointedBallTestError.lean b/lean/OAI/Geometry/RCD/Sobolev/PointedBallTestError.lean new file mode 100644 index 0000000000000000000000000000000000000000..502c65f27cb26e287d0185eb5890d147138840c2 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/PointedBallTestError.lean @@ -0,0 +1,96 @@ +import OAI.Geometry.RCD.Metric.MeasuredBallSetIntegrals +import OAI.Geometry.RCD.Harmonic.PointedRadialDistance +import OAI.Geometry.RCD.Sobolev.BoundedSetTestError + +namespace OAI + +/-! # Physical inner balls and their image tests differ only on an annulus -/ + +open Set Metric MeasureTheory +open scoped BoundedContinuousFunction symmDiff +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + +theorem pointed_ball_test_error {n : ℕ} (μ : Measure X) {p : X} {r S ρ δ ε : ℝ} + (hr : 0 ν.real univ) he + simp [U,Measure.real] at hh + exact (ne_of_gt hpos) hh + have hκU : ∀ᵐ x ∂(κ : Measure X), x∈U := by + apply ae_iff.mpr + change (κ : Measure X) Uᶜ=0 + apply (measureReal_eq_zero_iff).mp + rw [normalizedProbabilityLaw_real _ hn measurableSet_ball.compl] + have hz : (μ.restrict U) Uᶜ=0 := by + rw [Measure.restrict_apply measurableSet_ball.compl,compl_inter_self,measure_empty] + change ((μ.restrict U).real univ)⁻¹*(μ.restrict U).real Uᶜ=0 + simp only [Measure.real,hz,ENNReal.toReal_zero,mul_zero] + let f := fun x => φ (v x) + have hfm : Measurable f := φ.continuous.measurable.comp hv.measurable + have hf : Integrable f (κ : Measure X) := + (integrable_const ‖φ‖).mono' hfm.aestronglyMeasurable + (Filter.Eventually.of_forall fun x => φ.norm_coe_le_norm (v x)) + have hb : ∀ᵐ x ∂(κ : Measure X), |f x|≤‖φ‖ := + Filter.Eventually.of_forall fun x => by simpa only [Real.norm_eq_abs] using φ.norm_coe_le_norm (v x) + have he := bounded_set_test_error (s := ball p (ρ*r)) (t := v ⁻¹' ball 0 ρ) + (κ : Measure X) measurableSet_ball + (hv.measurable measurableSet_ball) hf hb + let A := closedBall (0:Euclidean n) (ρ+δ) \ ball 0 (ρ-δ) + have hA : MeasurableSet A := measurableSet_closedBall.diff measurableSet_ball + have hinc : ball p (ρ*r) ∆ (v ⁻¹' ball 0 ρ) ≤ᵐ[(κ : Measure X)] v ⁻¹' A := by + filter_upwards [hκU] with x hx + intro hd + apply pointed_ball_discrepancy_in_shell hr hS hsmall hv.metric hx + rcases mem_symmDiff.mp hd with hd | hd + · exact Or.inl hd + · exact Or.inr ⟨hd.2,hd.1⟩ + have hmeas : (κ : Measure X).real (ball p (ρ*r) ∆ (v ⁻¹' ball 0 ρ))≤ + (κ : Measure X).real (v ⁻¹' A) := + ENNReal.toReal_mono (measure_ne_top _ _) (measure_mono_ae hinc) + have hbound := he.trans (mul_le_mul_of_nonneg_left hmeas (norm_nonneg φ)) + have hs : (∫ x in ball p (ρ*r), f x ∂(κ : Measure X))= + (μ.real U)⁻¹*(∫ x in ball p (ρ*r), f x ∂μ) := by + have hh := normalizedProbabilityLaw_integral (μ.restrict U) hn + ((ball p (ρ*r)).indicator f) + rw [integral_indicator measurableSet_ball,integral_indicator measurableSet_ball, + Measure.restrict_restrict measurableSet_ball, + inter_eq_left.mpr (ball_subset_ball (mul_le_mul_of_nonneg_right hρS hr.le))] at hh + simpa only [Measure.real,Measure.restrict_apply_univ] using hh + have ht : (∫ z in ball 0 ρ, φ z ∂(normalizedBallPushforward μ p r S v hfin : Measure (Euclidean n)))= + ∫ x in v ⁻¹' ball 0 ρ, f x ∂(κ : Measure X) := by + rw [← integral_indicator measurableSet_ball] + change (∫ z, (ball 0 ρ).indicator (fun z => φ z) z ∂((κ.map v) : Measure (Euclidean n)))=_ + rw [ProbabilityMeasure.toMeasure_map,integral_map hv.measurable.aemeasurable + (φ.continuous.measurable.indicator measurableSet_ball).aestronglyMeasurable] + have hi : (fun x => (ball 0 ρ).indicator (fun z => φ z) (v x))= + (v ⁻¹' ball 0 ρ).indicator f := by + funext x + by_cases hx : v x∈ball 0 ρ <;> simp [hx,f] + rw [hi,integral_indicator (hv.measurable measurableSet_ball)] + have hm : (normalizedBallPushforward μ p r S v hfin : Measure (Euclidean n)).real A= + (κ : Measure X).real (v ⁻¹' A) := by + change ((κ.map v) : Measure (Euclidean n)).real A=_ + simp only [Measure.real,ProbabilityMeasure.toMeasure_map,Measure.map_apply hv.measurable hA] + rw [hs,← ht,← hm] at hbound + exact hbound + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/PointedEnergyCompactness.lean b/lean/OAI/Geometry/RCD/Sobolev/PointedEnergyCompactness.lean new file mode 100644 index 0000000000000000000000000000000000000000..01658c7aab6fc2d55aec1047baadce385b411d5a --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/PointedEnergyCompactness.lean @@ -0,0 +1,81 @@ +import OAI.Geometry.RCD.Coordinates.NormalizedLocalEnergy +import OAI.Geometry.RCD.Sobolev.WeakFiniteDomination +import OAI.Geometry.RCD.Metric.PointedMeasureValues + +namespace OAI + +/-! # Weak limits of the actual normalized local Sobolev energies -/ + +open Set Filter MeasureTheory Metric +open scoped Topology ENNReal NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + +theorem NoncollapsedRCD.pointed_energy_subsequence {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) {S R M : ℝ} (hS : 0 (localEnergyMeasure (hausdorff n X) hX.quadratic (w (t k)) + (closedBall (p (t k)) (R*r (t k))) + (r (t k)^2/(hausdorff n X).real (ball (p (t k)) (S*r (t k))))).map (v (t k))) + atTop (𝓝 ν) ∧ + (ν : Measure (Euclidean n))≤ENNReal.ofReal M • + (euclideanBallProbability n S : Measure (Euclidean n)) := by + let μ := hausdorff n X + let : Nonempty X := ⟨p 0⟩ + let A := fun k => closedBall (p k) (R*r k) + let U := fun k => ball (p k) (S*r k) + let E := fun k => localEnergyMeasure μ hX.quadratic (w k) (A k) (r k^2/μ.real (U k)) + let νs := fun k => (E k).map (v k) + let laws := fun k => normalizedBallPushforward μ (p k) (r k) S (v k) + (hX.finiteOnBounded _ isBounded_ball).ne + have hpos (k : ℕ) : 0<μ.real (U k) := ENNReal.toReal_pos + (hX.fullSupport _ _ (mul_pos hS (hr k))).ne' (hX.finiteOnBounded _ isBounded_ball).ne + have hle (k : ℕ) : (νs k : Measure (Euclidean n))≤ + ENNReal.ofReal M • (laws k : Measure (Euclidean n)) := by + let : IsFiniteMeasure (μ.restrict (U k)) := ⟨by + simpa only [Measure.restrict_apply_univ] using hX.finiteOnBounded (U k) isBounded_ball⟩ + have hAU : A k⊆U k := closedBall_subset_ball (mul_lt_mul_of_pos_right hRS (hr k)) + have he := normalized_local_energy_le μ hX.quadratic (w k) hAU + (hX.finiteOnBounded _ isBounded_ball).ne (hpos k) (r k) M hM (hb k) + have hh := Measure.map_mono he (hv k).measurable + rw [Measure.map_smul _ (hv k).measurable.aemeasurable] at hh + exact hh + have hmass (k : ℕ) : (νs k).mass≤M.toNNReal := by + have hh := hle k univ + have hm' : ((νs k).mass : ℝ≥0∞)≤ENNReal.ofReal M := by + simpa only [FiniteMeasure.ennreal_mass,Measure.smul_apply,smul_eq_mul,measure_univ,mul_one] using hh + change ((νs k).mass : ℝ≥0∞)≤(M.toNNReal : ℝ≥0∞) at hm' + exact ENNReal.coe_le_coe.mp hm' + have hs (k : ℕ) : ∀ᵐ z ∂(νs k : Measure (Euclidean n)), z∈closedBall 0 (R+2) := by + change ∀ᵐ z ∂(E k : Measure X).map (v k), z∈closedBall 0 (R+2) + apply (ae_map_iff (hv k).measurable.aemeasurable measurableSet_closedBall).mpr + have hA := (localEnergyMeasure_absolutelyContinuous μ hX.quadratic (w k) (A k) + (r k^2/μ.real (U k))).ae_le (ae_restrict_mem measurableSet_closedBall) + filter_upwards [hA] with x hx + have hd := (abs_le.mp (pointed_radial_distance (hr k) (hR.trans hRS.le) (hv k).metric + (hx.trans (mul_le_mul_of_nonneg_right hRS.le (hr k).le)))).2 + have hx' := (div_le_iff₀ (hr k)).mpr hx + rw [dist_zero_right] + linarith [hε1 k] + obtain ⟨ν,t,ht,hlim,_,_⟩ := euclidean_finite_measure_subsequence νs M.toNNReal (R+2) hmass hs + refine ⟨ν,t,ht,hlim,?_⟩ + have hlaws := measured_approximation_laws_tendsto hS hv + (fun _ => (hX.finiteOnBounded _ isBounded_ball).ne) hpos hεlim + have hlawsf := ProbabilityMeasure.toFiniteMeasure_continuous.tendsto + (euclideanBallProbability n S) |>.comp (hlaws.comp ht.tendsto_atTop) + exact euclidean_finite_weak_domination (νs ∘ t) (fun k => (laws (t k)).toFiniteMeasure) + ν (euclideanBallProbability n S).toFiniteMeasure hlim hlawsf + (fun _ => M.toNNReal) M.toNNReal tendsto_const_nhds (fun k => hle (t k)) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/PointedMetricBallTestError.lean b/lean/OAI/Geometry/RCD/Sobolev/PointedMetricBallTestError.lean new file mode 100644 index 0000000000000000000000000000000000000000..3519ab041d192b8bb0525165350d47d9a84ee7c5 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/PointedMetricBallTestError.lean @@ -0,0 +1,96 @@ +import OAI.Geometry.RCD.Metric.MeasuredBallSetIntegrals +import OAI.Geometry.RCD.Harmonic.PointedRadialDistance +import OAI.Geometry.RCD.Sobolev.BoundedSetTestError + +namespace OAI + +/-! # Physical inner balls and their image tests differ only on an annulus -/ + +open Set Metric MeasureTheory +open scoped BoundedContinuousFunction symmDiff +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + +theorem pointed_metric_ball_test_error {n : ℕ} (μ : Measure X) {p : X} {r S ρ δ ε : ℝ} + (hr : 0 ν.real univ) he + simp [U,Measure.real] at hh + exact (ne_of_gt hpos) hh + have hκU : ∀ᵐ x ∂(κ : Measure X), x∈U := by + apply ae_iff.mpr + change (κ : Measure X) Uᶜ=0 + apply (measureReal_eq_zero_iff).mp + rw [normalizedProbabilityLaw_real _ hn measurableSet_ball.compl] + have hz : (μ.restrict U) Uᶜ=0 := by + rw [Measure.restrict_apply measurableSet_ball.compl,compl_inter_self,measure_empty] + change ((μ.restrict U).real univ)⁻¹*(μ.restrict U).real Uᶜ=0 + simp only [Measure.real,hz,ENNReal.toReal_zero,mul_zero] + let f := fun x => φ (v x) + have hfm : Measurable f := φ.continuous.measurable.comp hvm + have hf : Integrable f (κ : Measure X) := + (integrable_const ‖φ‖).mono' hfm.aestronglyMeasurable + (Filter.Eventually.of_forall fun x => φ.norm_coe_le_norm (v x)) + have hb : ∀ᵐ x ∂(κ : Measure X), |f x|≤‖φ‖ := + Filter.Eventually.of_forall fun x => by simpa only [Real.norm_eq_abs] using φ.norm_coe_le_norm (v x) + have he := bounded_set_test_error (s := ball p (ρ*r)) (t := v ⁻¹' ball 0 ρ) + (κ : Measure X) measurableSet_ball + (hvm measurableSet_ball) hf hb + let A := closedBall (0:Euclidean n) (ρ+δ) \ ball 0 (ρ-δ) + have hA : MeasurableSet A := measurableSet_closedBall.diff measurableSet_ball + have hinc : ball p (ρ*r) ∆ (v ⁻¹' ball 0 ρ) ≤ᵐ[(κ : Measure X)] v ⁻¹' A := by + filter_upwards [hκU] with x hx + intro hd + apply pointed_ball_discrepancy_in_shell hr hS hsmall hv hx + rcases mem_symmDiff.mp hd with hd | hd + · exact Or.inl hd + · exact Or.inr ⟨hd.2,hd.1⟩ + have hmeas : (κ : Measure X).real (ball p (ρ*r) ∆ (v ⁻¹' ball 0 ρ))≤ + (κ : Measure X).real (v ⁻¹' A) := + ENNReal.toReal_mono (measure_ne_top _ _) (measure_mono_ae hinc) + have hbound := he.trans (mul_le_mul_of_nonneg_left hmeas (norm_nonneg φ)) + have hs : (∫ x in ball p (ρ*r), f x ∂(κ : Measure X))= + (μ.real U)⁻¹*(∫ x in ball p (ρ*r), f x ∂μ) := by + have hh := normalizedProbabilityLaw_integral (μ.restrict U) hn + ((ball p (ρ*r)).indicator f) + rw [integral_indicator measurableSet_ball,integral_indicator measurableSet_ball, + Measure.restrict_restrict measurableSet_ball, + inter_eq_left.mpr (ball_subset_ball (mul_le_mul_of_nonneg_right hρS hr.le))] at hh + simpa only [Measure.real,Measure.restrict_apply_univ] using hh + have ht : (∫ z in ball 0 ρ, φ z ∂(normalizedBallPushforward μ p r S v hfin : Measure (Euclidean n)))= + ∫ x in v ⁻¹' ball 0 ρ, f x ∂(κ : Measure X) := by + rw [← integral_indicator measurableSet_ball] + change (∫ z, (ball 0 ρ).indicator (fun z => φ z) z ∂((κ.map v) : Measure (Euclidean n)))=_ + rw [ProbabilityMeasure.toMeasure_map,integral_map hvm.aemeasurable + (φ.continuous.measurable.indicator measurableSet_ball).aestronglyMeasurable] + have hi : (fun x => (ball 0 ρ).indicator (fun z => φ z) (v x))= + (v ⁻¹' ball 0 ρ).indicator f := by + funext x + by_cases hx : v x∈ball 0 ρ <;> simp [hx,f] + rw [hi,integral_indicator (hvm measurableSet_ball)] + have hm : (normalizedBallPushforward μ p r S v hfin : Measure (Euclidean n)).real A= + (κ : Measure X).real (v ⁻¹' A) := by + change ((κ.map v) : Measure (Euclidean n)).real A=_ + simp only [Measure.real,ProbabilityMeasure.toMeasure_map,Measure.map_apply hvm hA] + rw [hs,← ht,← hm] at hbound + exact hbound + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/PointedTestLocalization.lean b/lean/OAI/Geometry/RCD/Sobolev/PointedTestLocalization.lean new file mode 100644 index 0000000000000000000000000000000000000000..4e8f35b1762d59ab509206762a9fc4909946579b --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/PointedTestLocalization.lean @@ -0,0 +1,43 @@ +import OAI.Geometry.RCD.Harmonic.PointedRadialDistance + +namespace OAI + +/-! # Pulling a compact interior test back to a physical interior ball -/ + +open Set Metric MeasureTheory +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] + +theorem pointed_test_support_inside {n : ℕ} {p : X} {r S ε ρ τ : ℝ} + (hr : 0 < r) (hS : 0 ≤ S) (hgap : ρ+2*ε ≤ τ) + {V : X → Euclidean n} (hV : IsPointedApproximation p 0 r S ε V) + (φ : Euclidean n → ℝ) (hs : Function.support φ ⊆ ball 0 ρ) + {x : X} (hx : x ∈ ball p (S*r)) (hφ : φ (V x) ≠ 0) : x ∈ ball p (τ*r) := by + have hn : ‖V x‖ < ρ := by simpa only [mem_ball,dist_zero_right] using hs hφ + have hd := (abs_le.mp (pointed_radial_distance hr hS hV hx.le)).1 + apply (div_lt_iff₀ hr).mp + linarith + +theorem pointed_test_integral_localization [MeasurableSpace X] {n : ℕ} + (μ : Measure X) {p : X} {r S ε ρ τ : ℝ} + (hr : 0 < r) (hS : 0 ≤ S) (hgap : ρ+2*ε ≤ τ) (hτS : τ ≤ S) + {V : X → Euclidean n} (hV : IsPointedApproximation p 0 r S ε V) + (φ : Euclidean n → ℝ) (hs : Function.support φ ⊆ ball 0 ρ) (f : X → ℝ) + (hball : MeasurableSet (ball p (S*r))) : + (∫ x in ball p (τ*r), φ (V x)*f x ∂μ) = + ∫ x in ball p (S*r), φ (V x)*f x ∂μ := by + symm + apply setIntegral_eq_of_subset_of_forall_sdiff_eq_zero hball + (ball_subset_ball (mul_le_mul_of_nonneg_right hτS hr.le)) + intro x hx + have hz : φ (V x) = 0 := by + by_contra hn + exact hx.2 (pointed_test_support_inside hr hS hgap hV φ hs hx.1 hn) + rw [hz,zero_mul] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/PointedTestRecovery.lean b/lean/OAI/Geometry/RCD/Sobolev/PointedTestRecovery.lean new file mode 100644 index 0000000000000000000000000000000000000000..9e1be4fc310fb6a311438c7a785e61c73e69a01d --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/PointedTestRecovery.lean @@ -0,0 +1,69 @@ +import OAI.Geometry.RCD.Sobolev.LipschitzMetricTransfer + +namespace OAI + +/-! # Lipschitz recovery of Euclidean tests on pointed source balls + +The approximation map need not be Lipschitz. Infimum extension repairs its +pullback with the correct radius scaling and a uniform vanishing error. +-/ + +open Set Metric +open scoped NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] + +theorem pointed_lipschitz_test_recovery {n : ℕ} {p : X} {r S ε B : ℝ} + (hr : 0 ψ (v x)) (fun x : X => x) L (mul_nonneg M.coe_nonneg hε) + (fun x _ => (neg_le_neg (hψb (v x))).trans (neg_abs_le _)) hApprox + let A := B+(M:ℝ)*ε + have hA : 0≤A := add_nonneg hB (mul_nonneg M.coe_nonneg hε) + have hfA (x : X) (hx : x∈s) : |f x|≤A := by + have ht := abs_add_le (f x-ψ (v x)) (ψ (v x)) + simp only [sub_add_cancel] at ht + have he := hfe x hx + have hb := hψb (v x) + dsimp only [A] + linarith + let F := fun x => min (max (f x) (-A)) A + have hF : LipschitzWith L F := (hf.max_const (-A)).min_const A + have hFA (x : X) : |F x|≤A := by + apply abs_le.mpr + exact ⟨le_min (le_max_right _ _) (by linarith),min_le_right _ _⟩ + have hFf (x : X) (hx : x∈s) : F x=f x := by + dsimp only [F] + rw [max_eq_left (abs_le.mp (hfA x hx)).1,min_eq_left (abs_le.mp (hfA x hx)).2] + refine ⟨F,hF,hFA,?_⟩ + intro x hx + rw [hFf x hx] + exact hfe x hx + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/PointwiseIntegralBound.lean b/lean/OAI/Geometry/RCD/Sobolev/PointwiseIntegralBound.lean new file mode 100644 index 0000000000000000000000000000000000000000..f49099271813bbcba4c1da0df08ecae47a960654 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/PointwiseIntegralBound.lean @@ -0,0 +1,53 @@ +import OAI.Geometry.RCD.Sobolev.LipschitzL2PointControl + +namespace OAI + +/-! # Continuous pointwise bounds from finite-set integral tests -/ + +open Set Filter MeasureTheory Metric +open scoped ENNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + (μ : Measure X) [SigmaFinite μ] [Measure.IsOpenPosMeasure μ] + +omit [BorelSpace X] in +theorem continuous_abs_le_of_setIntegral_bound {v : X → ℝ} (hv : Continuous v) + (hvi : ∀ S, MeasurableSet S → μ S < ∞ → IntegrableOn v S μ) + {b : ℝ} (hb : ∀ S, MeasurableSet S → μ S < ∞ → |∫ x in S, v x ∂μ| ≤ b * μ.real S) + (x : X) : |v x| ≤ b := by + have hm : 0 ≤ᵐ[μ] fun y => b - v y := by + apply ae_nonneg_of_forall_setIntegral_nonneg_of_sigmaFinite + · intro S hS hf + exact (integrableOn_const (C := b) hf.ne).sub (hvi S hS hf) + · intro S hS hf + rw [integral_sub (integrableOn_const (C := b) hf.ne) (hvi S hS hf), integral_const, + smul_eq_mul, measureReal_restrict_apply MeasurableSet.univ, univ_inter] + have hh := (le_abs_self (∫ y in S, v y ∂μ)).trans (hb S hS hf) + nlinarith + have hp : 0 ≤ᵐ[μ] fun y => b + v y := by + apply ae_nonneg_of_forall_setIntegral_nonneg_of_sigmaFinite + · intro S hS hf + exact (integrableOn_const (C := b) hf.ne).add (hvi S hS hf) + · intro S hS hf + rw [integral_add (integrableOn_const (C := b) hf.ne) (hvi S hS hf), integral_const, + smul_eq_mul, measureReal_restrict_apply MeasurableSet.univ, univ_inter] + have hh := (abs_le.mp (hb S hS hf)).1 + nlinarith + have ha : ∀ᵐ y ∂μ, |v y| ≤ b := by + filter_upwards [hm, hp] with y hy hz + change 0 ≤ b - v y at hy + change 0 ≤ b + v y at hz + exact abs_le.mpr ⟨by linarith, by linarith⟩ + have he : (fun y => min |v y| b) = fun y => |v y| := + Measure.eq_of_ae_eq (ha.mono fun _ hy => min_eq_left hy) + (hv.abs.min continuous_const) hv.abs + exact min_eq_left_iff.mp (congrFun he x) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/PoissonActionFromScalar.lean b/lean/OAI/Geometry/RCD/Sobolev/PoissonActionFromScalar.lean new file mode 100644 index 0000000000000000000000000000000000000000..78f930d5feb2e2cdef65fc081207e7574f80a5ee --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/PoissonActionFromScalar.lean @@ -0,0 +1,146 @@ +import OAI.Geometry.RCD.Sobolev.LocalPoissonMixedShifted +import OAI.Geometry.RCD.Sobolev.PoissonShiftedMeasure +import OAI.Geometry.RCD.Sobolev.HessianActionInput + +namespace OAI + +/-! # The exact mixed-action input from scalar dimensional Bochner + +The same full measure appears in the local source identity, shifted +positivity and every mixed-action estimate. Separate direction caps are +retained, as required by the coordinate commutator. +-/ + +open Set Filter Metric MeasureTheory +open scoped NNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem NoncollapsedRCD.poisson_shifted_action_data_of_scalar {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) [(hausdorff n X).Regular] (hn : 2≤n) + (hscalar : ScalarDimensionalBochner (hausdorff n X) hX.quadratic K n) + (κ : ℝ) (hK : -κ≤K) (p : X) {r : ℝ} (hr : 0 H x-b*localGamma (hausdorff n X) hX.quadratic (U w) (U z) x) + 2 ((hausdorff n X).restrict (ball p t)) ∧ + ∀ Cw Cz : ℝ, 0≤Cw → 0≤Cz → + (∀ᵐ x ∂(hausdorff n X).restrict (ball p t), + localGamma (hausdorff n X) hX.quadratic (U w) (U w) x≤Cw^2) → + (∀ᵐ x ∂(hausdorff n X).restrict (ball p t), + localGamma (hausdorff n X) hX.quadratic (U z) (U z) x≤Cz^2) → + (∫ x in ball p t, (H x-b*localGamma (hausdorff n X) hX.quadratic (U w) (U z) x)^2 + ∂hausdorff n X)≤(Cw^2*Cz^2)*((M.measure v).real (ball p t)- + (2*b*ell v-(n:ℝ)*b^2)*(hausdorff n X).real (ball p t)) := by + classical + let := hX.separable + let := locallyFinite_of_finiteOnBounded (hausdorff n X) hX.finiteOnBounded + let μ := hausdorff n X + let hQ := hX.quadratic + let : IsFiniteMeasure (μ.restrict (ball p t)) := ⟨by + simpa only [Measure.restrict_apply_univ,μ] using + hX.finiteOnBounded (ball p t) isBounded_ball⟩ + have hgrad (v) : ∀ᵐ x ∂μ.restrict (ball p (8*r)), + localGamma μ hQ (U v) (U v) x≤(L*‖v‖₊:ℝ≥0)^2 := by + simpa only [NNReal.coe_mul,coe_nnnorm,mul_pow] using hL v + have hpair (v w) := hX.local_poisson_hessian_pairing hn (U v) (U w) + (ell v) (ell w) hr ht (hU v) (hU w) (L*‖v‖₊) (L*‖w‖₊) (hgrad v) (hgrad w) + let G (v w) := Classical.choice (hpair v w) + refine ⟨G,?_⟩ + intro v w z b + let E := Classical.choice (hM v) + have hσ : IsMeasureLaplacianOn μ hQ (ball p (2*r)) E.energy + ((2:ℝ) • (M.measure v).toSignedMeasure-(2*κ) • μ.withDensityᵥ + (localGamma μ hQ (U v) (U v))) := by + rw [M.measure_toSignedMeasure] + exact E.measure_laplacian + obtain ⟨Fga,Fgz,Gaz,hga,hgz,haz,hbound⟩ := hX.local_poisson_mixed_shifted_bound + hn hscalar (U v) (U w) (U z) (ell v) (ell w) (ell z) κ hK hr + (hU v) (hU w) (hU z) (L*‖v‖₊) (L*‖w‖₊) (L*‖z‖₊) + (hgrad v) (hgrad w) (hgrad z) E.energy (M.measure v) E.representative hσ + have hs : ball p t ⊆ ball p (2*r) := ball_subset_ball ht + have hga' : SobolevSpace.toLp μ hQ Fga =ᵐ[μ.restrict (ball p t)] + SobolevSpace.toLp μ hQ (G v w).mixed := + by + filter_upwards [ae_restrict_of_ae_restrict_of_subset hs hga,(G v w).mixed_rep] + with x hx hy + exact hx.trans hy.symm + have hgz' : SobolevSpace.toLp μ hQ Fgz =ᵐ[μ.restrict (ball p t)] + SobolevSpace.toLp μ hQ (G v z).mixed := + by + filter_upwards [ae_restrict_of_ae_restrict_of_subset hs hgz,(G v z).mixed_rep] + with x hx hy + exact hx.trans hy.symm + have haz' : SobolevSpace.toLp μ hQ Gaz =ᵐ[μ.restrict (ball p t)] + SobolevSpace.toLp μ hQ (G w z).mixed := + by + filter_upwards [ae_restrict_of_ae_restrict_of_subset hs haz,(G w z).mixed_rep] + with x hx hy + exact hx.trans hy.symm + let H := fun x => localHessianAction μ hQ (U v) (U w) (U z) + (G v w).mixed (G v z).mixed (G w z).mixed x-b*localGamma μ hQ (U w) (U z) x + have hb : ∀ᵐ x ∂μ.restrict (ball p t), (H x)^2≤ + (((M.measure v).rnDeriv μ x).toReal-(2*b*ell v-(n:ℝ)*b^2))* + localGamma μ hQ (U w) (U w) x*localGamma μ hQ (U z) (U z) x := by + have he := localHessianAction_congr μ hQ (f := U v) (f' := U v) + (u := U w) (u' := U w) (v := U z) (v' := U z) + EventuallyEq.rfl EventuallyEq.rfl EventuallyEq.rfl hga' hgz' haz' + filter_upwards [ae_restrict_of_ae_restrict_of_subset hs (hbound b),he] with x hx he + rwa [he] at hx + have hd := ae_restrict_of_ae_restrict_of_subset hs + (hX.poisson_measure_shifted_density hn hscalar κ hK p hr L U ell hU hL M hM v b) + have hm : AEStronglyMeasurable H (μ.restrict (ball p t)) := + ((localHessianAction_integrable μ hQ (U v) (U w) (U z) + (G v w).mixed (G v z).mixed (G w z).mixed).sub + ((localGamma_memL1 μ hQ (U w) (U z)).const_mul b)).aestronglyMeasurable.restrict + have hnonneg (a) : ∀ᵐ x ∂μ.restrict (ball p t), 0≤localGamma μ hQ (U a) (U a) x := by + filter_upwards [ae_restrict_of_ae (localGamma_self μ hQ (U a))] with x hx + rw [hx] + positivity + have hcap (a) : ∀ᵐ x ∂μ.restrict (ball p t), + localGamma μ hQ (U a) (U a) x≤(L:ℝ)^2*‖a‖^2 := + ae_restrict_of_ae_restrict_of_subset (hs.trans (ball_subset_ball (by linarith))) (hL a) + have hh := memLp_two_of_shifted_radon_product μ (M.measure v) hm + (2*b*ell v-(n:ℝ)*b^2) ((L:ℝ)^2*‖w‖^2) ((L:ℝ)^2*‖z‖^2) + (by positivity) (by positivity) hd ((hnonneg w).and (hcap w)) ((hnonneg z).and (hcap z)) hb + refine ⟨hh.1,?_⟩ + intro Cw Cz _ _ hw hz + exact (memLp_two_of_shifted_radon_product μ (M.measure v) hm + (2*b*ell v-(n:ℝ)*b^2) (Cw^2) (Cz^2) (sq_nonneg _) (sq_nonneg _) hd + ((hnonneg w).and hw) ((hnonneg z).and hz) hb).2 + +/-- Scalar weak Bakry--Émery gives the local Hessian action bound. -/ +theorem NoncollapsedRCD.poisson_hessian_action_input_of_scalar {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) [(hausdorff n X).Regular] (hn : 2≤n) + (hscalar : ScalarDimensionalBochner (hausdorff n X) hX.quadratic K n) : + LocalPoissonHessianActionInput hX := by + intro κ _ hK p r hr L U ell hU hL + let := locallyFinite_of_finiteOnBounded (hausdorff n X) hX.finiteOnBounded + let : IsFiniteMeasure ((hausdorff n X).restrict (ball p (2*r))) := ⟨by + simpa only [Measure.restrict_apply_univ] using + hX.finiteOnBounded (ball p (2*r)) isBounded_ball⟩ + obtain ⟨M,hM,_⟩ := hX.poisson_second_order_data hn κ hK p hr L U ell hU hL + refine ⟨M,hM,?_,?_⟩ + · exact shiftedBochnerLowerBound_of_density (hausdorff n X) M ell n + (hX.poisson_measure_shifted_density hn hscalar κ hK p hr L U ell hU hL M hM) + · intro t _ ht + exact hX.poisson_shifted_action_data_of_scalar hn hscalar κ hK p hr L U ell hU hL M hM t ht + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/PoissonAffineTransfer.lean b/lean/OAI/Geometry/RCD/Sobolev/PoissonAffineTransfer.lean new file mode 100644 index 0000000000000000000000000000000000000000..af7a64522df08bc7ebc43ad25c0d30f41cce64e8 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/PoissonAffineTransfer.lean @@ -0,0 +1,55 @@ +import OAI.Geometry.RCD.Coordinates.RadialFitCoordinates +import OAI.Geometry.RCD.Sobolev.CorrectionInteriorEnergy + +namespace OAI + +/-! # Transfer the distance affine fit to the Poisson radial derivative -/ + +open Set MeasureTheory + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +/-- The canonical Hessian pairing is the Poisson radial derivative. +Replacing the true distance by its Poisson solution costs only the +already proved Poisson energy error, times the coordinate gradient bound. -/ +theorem LocalHessianPairing.fit_value_transfer {Ω : Set X} + {f a : SobolevSpace μ hQ} (G : LocalHessianPairing μ hQ Ω f a) + (q F : SobolevSpace μ hQ) {B error E : ℝ} (hB : 0 ≤ B) + (ha : ∀ᵐ x ∂μ.restrict Ω, localGamma μ hQ a a x ≤ B) + (hpoisson : (∫ x in Ω, localGamma μ hQ (q - f) (q - f) x ∂μ) ≤ error) + (hfit : ‖radialPairingLp μ hQ Ω q a ha - SobolevSpace.restrictLp μ hQ Ω F‖ ^ 2 ≤ E) : + ‖SobolevSpace.restrictLp μ hQ Ω (G.mixed - F)‖ ^ 2 ≤ 2 * E + 2 * B * error := by + let t := radialPairingLp μ hQ Ω q a ha + let g := SobolevSpace.restrictLp μ hQ Ω G.mixed + let u := SobolevSpace.restrictLp μ hQ Ω F + have hdiff : ‖t - g‖ ^ 2 ≤ B * error := by + rw [l2_norm_sq_eq_integral] + have he : (fun x => ((t - g) x) ^ 2) =ᵐ[μ.restrict Ω] + fun x => (localGamma μ hQ q a x - localGamma μ hQ f a x) ^ 2 := by + filter_upwards [Lp.coeFn_sub t g, radialPairingLp_representative μ hQ Ω q a ha, + SobolevSpace.restrictLp_coe μ hQ Ω G.mixed, G.mixed_rep] with x hs ht hg hx + simp only [hs, Pi.sub_apply] + change ((radialPairingLp μ hQ Ω q a ha) x - + (SobolevSpace.restrictLp μ hQ Ω G.mixed) x) ^ 2 = _ + rw [ht, hg, hx] + rw [integral_congr_ae he] + exact (radial_pairing_error_le μ hQ Ω q f a ha).trans + (mul_le_mul_of_nonneg_left hpoisson hB) + have heq : g - u = (t - u) - (t - g) := by abel + have hn := norm_sub_le (t - u) (t - g) + have hn2 := (sq_le_sq₀ (norm_nonneg _) (add_nonneg (norm_nonneg _) (norm_nonneg _))).mpr hn + change ‖t - u‖ ^ 2 ≤ E at hfit + rw [map_sub] + change ‖g - u‖ ^ 2 ≤ _ + rw [heq] + nlinarith [sq_nonneg (‖t - u‖ - ‖t - g‖)] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/PoissonAnnularEnergy.lean b/lean/OAI/Geometry/RCD/Sobolev/PoissonAnnularEnergy.lean new file mode 100644 index 0000000000000000000000000000000000000000..05c8a6a8ff89f33c3e210789e6cb6d57f7ff62ce --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/PoissonAnnularEnergy.lean @@ -0,0 +1,122 @@ +import OAI.Geometry.RCD.Sobolev.PoissonCaccioppoli +import OAI.Geometry.RCD.Sobolev.PoissonCutoffSource + +namespace OAI + +/-! # Energy control of the annular Poisson error without a gradient bound -/ + +open Set Filter Metric MeasureTheory +open scoped NNReal ENNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) [IsFiniteMeasureOnCompacts μ] (hQ : QuadraticCheegerEnergy μ) + +/-- A second cutoff covering the transition annulus controls its cross +source by the equation and the amplitude of the original solution. -/ +theorem IsConstantLaplacianOn.annular_error_L1_le + {Ω : Set X} (hfin : μ Ω ≠ ∞) + (f η : SobolevSpace μ hQ) (c : ℝ) (hf : IsConstantLaplacianOn μ hQ Ω f c) + (A : ℝ≥0) (hApos : 0 < (A:ℝ)) + (hA : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ f x| ≤ A) + {χ : X → ℝ} {L : ℝ≥0} (hχ : LipschitzWith L χ) + (hs : HasCompactSupport χ) (hb : ∀ x, 0 ≤ χ x ∧ χ x ≤ 1) + (hsupp : tsupport χ ⊆ Ω) (hη : SobolevSpace.toLp μ hQ η =ᵐ[μ] χ) + {p : X} {R C : ℝ} (hR : 0 < R) (hC : 0 ≤ C) + (ξ : GoodLaplacianCutoff μ hQ p R C) + (hinside : closedBall p (2*R) ⊆ Ω) + (hone : ∀ x, R ≤ dist x p → dist x p ≤ 2*R → χ x = 1) + (e : Lp ℝ 2 μ) (hei : Integrable e μ) + (herep : e =ᵐ[μ] fun x => 2*localGamma μ hQ f ξ.sobolev x) + (hes : ∀ᵐ x ∂μ, e x ≠ 0 → R ≤ dist x p ∧ dist x p ≤ 2*R) : + (∫ x, |e x| ∂μ) ≤ + (2*|c|+4*(A:ℝ)*(L:ℝ)^2+(A:ℝ)*(C/R)^2)*μ.real Ω := by + let G := SobolevSpace.minimalSlope μ hQ f + have hgξ := SobolevSpace.minimalSlope_le_lipschitz μ hQ ξ.sobolev ξ.lipschitz ξ.representative + have hcross : ∀ᵐ x ∂μ, |localGamma μ hQ f ξ.sobolev x| ≤ G x*(C/R) := by + filter_upwards [localGamma_abs_le μ hQ f ξ.sobolev,hgξ, + (Lp.coeFn_nonneg _).mpr (SobolevSpace.minimalSlope_nonneg μ hQ f)] with x hc hg hG + rw [Real.coe_toNNReal _ (div_nonneg hC hR.le)] at hg + exact hc.trans (mul_le_mul_of_nonneg_left hg hG) + have hi : Integrable (fun x => (χ x)^2*(G x)^2) μ := by + have hηb : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ η x| ≤ (1:ℝ≥0) := by + filter_upwards [hη] with x hx + rw [hx,abs_of_nonneg (hb x).1] + exact (hb x).2 + apply (bounded_square_weight_integrable μ (SobolevSpace.toLp μ hQ η) G hηb).congr + filter_upwards [hη] with x hx + rw [hx] + have hezero : ∀ᵐ x ∂μ, x ∉ Ω → |e x| = 0 := by + filter_upwards [hes] with x hx hnot + by_cases he : e x = 0 + · simp only [he,abs_zero] + · exact (hnot (hinside (hx he).2)).elim + have heq : (∫ x, |e x| ∂μ) = ∫ x in Ω, |e x| ∂μ := + (setIntegral_eq_integral_of_ae_compl_eq_zero hezero).symm + have hpoint : ∀ᵐ x ∂μ.restrict Ω, + |e x| ≤ (χ x)^2*(G x)^2/(A:ℝ)+(A:ℝ)*(C/R)^2 := by + filter_upwards [ae_restrict_of_ae herep,ae_restrict_of_ae hes, + ae_restrict_of_ae hcross] with x he hx hc + by_cases he0 : e x = 0 + · rw [he0,abs_zero] + positivity + have hχone : χ x = 1 := hone x (hx he0).1 (hx he0).2 + rw [he,abs_mul,show |(2:ℝ)| = 2 by norm_num,hχone,one_pow,one_mul] + apply (mul_le_mul_iff_right₀ hApos).mp + have hid : (A:ℝ)*((G x)^2/(A:ℝ)+(A:ℝ)*(C/R)^2) = + (G x)^2+(A:ℝ)^2*(C/R)^2 := by field_simp + rw [hid] + have hc' := mul_le_mul_of_nonneg_right hc hApos.le + nlinarith only [hc',sq_nonneg (G x-(A:ℝ)*(C/R))] + have henergy := hf.cutoff_energy_le μ hQ hfin f η c hχ hs hb hsupp hη hA + have hpart : (∫ x in Ω, (χ x)^2*(G x)^2 ∂μ) ≤ ∫ x, (χ x)^2*(G x)^2 ∂μ := + setIntegral_le_integral hi (Filter.Eventually.of_forall fun x => by positivity) + have hip : Integrable (fun x => (χ x)^2*(G x)^2/(A:ℝ)+(A:ℝ)*(C/R)^2) (μ.restrict Ω) := by + simpa only [Pi.add_apply] using! (hi.div_const (A:ℝ)).integrableOn.add + (integrableOn_const (C := (A:ℝ)*(C/R)^2) hfin) + rw [heq] + calc + _ ≤ ∫ x in Ω, (χ x)^2*(G x)^2/(A:ℝ)+(A:ℝ)*(C/R)^2 ∂μ := + integral_mono_ae hei.abs.integrableOn hip hpoint + _ = (∫ x in Ω, (χ x)^2*(G x)^2 ∂μ)/(A:ℝ)+(A:ℝ)*(C/R)^2*μ.real Ω := by + rw [integral_add (hi.div_const _).integrableOn (integrableOn_const hfin), + integral_div, setIntegral_const,smul_eq_mul,mul_comm (μ.real Ω)] + _ ≤ (∫ x, (χ x)^2*(G x)^2 ∂μ)/(A:ℝ)+(A:ℝ)*(C/R)^2*μ.real Ω := + by linarith [div_le_div_of_nonneg_right hpart hApos.le] + _ ≤ ((2*|c| *(A:ℝ)+4*(A:ℝ)^2*(L:ℝ)^2)*μ.real Ω)/(A:ℝ)+ + (A:ℝ)*(C/R)^2*μ.real Ω := + by linarith [div_le_div_of_nonneg_right henergy hApos.le] + _ = _ := by field_simp + +/-- The same estimate written directly for the cutoff cross density. -/ +theorem IsConstantLaplacianOn.cutoff_cross_L1_le + {Ω : Set X} (hfin : μ Ω ≠ ∞) + (f η : SobolevSpace μ hQ) (c : ℝ) (hf : IsConstantLaplacianOn μ hQ Ω f c) + (A : ℝ≥0) (hApos : 0 < (A:ℝ)) + (hA : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ f x| ≤ A) + {χ : X → ℝ} {L : ℝ≥0} (hχ : LipschitzWith L χ) + (hs : HasCompactSupport χ) (hb : ∀ x, 0 ≤ χ x ∧ χ x ≤ 1) + (hsupp : tsupport χ ⊆ Ω) (hη : SobolevSpace.toLp μ hQ η =ᵐ[μ] χ) + {p : X} {R C : ℝ} (hR : 0 < R) (hC : 0 ≤ C) + (ξ : GoodLaplacianCutoff μ hQ p R C) + (hinside : closedBall p (2*R) ⊆ Ω) + (hone : ∀ x, R ≤ dist x p → dist x p ≤ 2*R → χ x = 1) : + (∫ x, |2*localGamma μ hQ f ξ.sobolev x| ∂μ) ≤ + (2*|c|+4*(A:ℝ)*(L:ℝ)^2+(A:ℝ)*(C/R)^2)*μ.real Ω := by + obtain ⟨b,e,_,_,hei,herep,hes⟩ := + hf.cutoff_source_decomposition μ hQ f c A hA hR hC ξ hinside + have hbound := hf.annular_error_L1_le μ hQ hfin f η c A hApos hA + hχ hs hb hsupp hη hR hC ξ hinside hone e hei herep hes + have heq : (∫ x, |e x| ∂μ) = ∫ x, |2*localGamma μ hQ f ξ.sobolev x| ∂μ := by + apply integral_congr_ae + filter_upwards [herep] with x hx + rw [hx] + rwa [heq] at hbound + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/PoissonBallEnergy.lean b/lean/OAI/Geometry/RCD/Sobolev/PoissonBallEnergy.lean new file mode 100644 index 0000000000000000000000000000000000000000..3e1daa732739bae5323f5e6df0407787f74d1ff6 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/PoissonBallEnergy.lean @@ -0,0 +1,72 @@ +import OAI.Geometry.RCD.Sobolev.PoissonCaccioppoli + +namespace OAI + +/-! # Caccioppoli control of Poisson energy on an interior ball -/ + +open Set Metric Filter MeasureTheory +open scoped NNReal ENNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +/-- The actual square gradient has its expected amplitude/source bound. -/ +theorem NoncollapsedRCD.poisson_ball_energy {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (p : X) (r : ℝ) (hr : 0 < r) + (f : SobolevSpace (hausdorff n X) hX.quadratic) (c : ℝ) (A : ℝ≥0) + (hf : IsConstantLaplacianOn (hausdorff n X) hX.quadratic (ball p (4*r)) f c) + (hA : ∀ᵐ x ∂hausdorff n X, |SobolevSpace.toLp (hausdorff n X) hX.quadratic f x| ≤ A) : + (∫ x in ball p r, localGamma (hausdorff n X) hX.quadratic f f x ∂hausdorff n X) ≤ + (2*|c| *A+4*(A:ℝ)^2*(r⁻¹)^2)*(hausdorff n X).real (ball p (4*r)) := by + let μ := hausdorff n X + let : IsLocallyFiniteMeasure μ := locallyFinite_of_finiteOnBounded μ hX.finiteOnBounded + let χ := radialCutoff p r + have hχ := radialCutoff_lipschitz p hr + have hs := radialCutoff_hasCompactSupport p hr + let η := SobolevSpace.ofLipschitzCompact μ hX.quadratic hχ hs + have hη : SobolevSpace.toLp μ hX.quadratic η =ᵐ[μ] χ := + SobolevSpace.ofLipschitzCompact_coe μ hX.quadratic hχ hs + have hb : ∀ x, 0 ≤ χ x ∧ χ x ≤ 1 := radialCutoff_bounds p r + have hsupport : tsupport χ ⊆ ball p (4*r) := by + have hh : tsupport χ ⊆ closedBall p (2*r) := by + apply closure_minimal _ isClosed_closedBall + intro x hx + by_contra hn + apply hx + apply radialCutoff_eq_zero p hr + have hd : ¬ dist x p ≤ 2*r := hn + rw [dist_comm] + exact (lt_of_not_ge hd).le + exact hh.trans (closedBall_subset_ball (by linarith)) + have he := hf.cutoff_energy_le μ hX.quadratic + (hX.finiteOnBounded _ isBounded_ball).ne f η c hχ hs hb hsupport hη hA + have hηb : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hX.quadratic η x| ≤ (1:ℝ≥0) := by + filter_upwards [hη] with x hx + rw [hx,abs_of_nonneg (hb x).1] + exact (hb x).2 + have hi : Integrable (fun x => (χ x)^2*(SobolevSpace.minimalSlope μ hX.quadratic f x)^2) μ := by + apply (bounded_square_weight_integrable μ (SobolevSpace.toLp μ hX.quadratic η) + (SobolevSpace.minimalSlope μ hX.quadratic f) hηb).congr + filter_upwards [hη] with x hx + rw [hx] + have hEq : (∫ x in ball p r, localGamma μ hX.quadratic f f x ∂μ) = + ∫ x in ball p r, (χ x)^2*(SobolevSpace.minimalSlope μ hX.quadratic f x)^2 ∂μ := by + apply integral_congr_ae + filter_upwards [ae_restrict_of_ae (localGamma_self μ hX.quadratic f), + ae_restrict_mem measurableSet_ball] with x hx hm + have hc : χ x = 1 := radialCutoff_eq_one p hr (by rw [dist_comm]; exact le_of_lt hm) + simp only [hc,one_pow,one_mul,hx] + rw [hEq] + calc + _ ≤ ∫ x, (χ x)^2*(SobolevSpace.minimalSlope μ hX.quadratic f x)^2 ∂μ := + setIntegral_le_integral hi (Eventually.of_forall fun x => by positivity) + _ ≤ _ := by + simpa only [NNReal.coe_mk] using! he + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/PoissonBochnerMass.lean b/lean/OAI/Geometry/RCD/Sobolev/PoissonBochnerMass.lean new file mode 100644 index 0000000000000000000000000000000000000000..92a9f13d7472ac388b758cbb72c3460c4f29a5f5 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/PoissonBochnerMass.lean @@ -0,0 +1,106 @@ +import OAI.Geometry.RCD.Sobolev.PoissonEnergyError +import OAI.Geometry.RCD.Coordinates.WeightedBilinearMeasure + +namespace OAI + +/-! +# Full shifted Bochner mass of a Poisson replacement + +The cutoff calculation keeps both the positive source measure and the full +shifted Bochner measure. Its only error is the energy-density error already +controlled by the linear positive-source bound. +-/ + +open Set MeasureTheory +open scoped InnerProductSpace BoundedContinuousFunction ENNReal + +noncomputable section + +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +omit [ProperSpace X] in +/-- Testing the shifted Bochner measure and the squared-distance Laplacian +with the same cutoff bounds the full mass where the cutoff is one. -/ +theorem poisson_bochner_mass_le (f : SobolevSpace μ hQ) + (β σ : Measure X) [IsFiniteMeasure β] [IsFiniteMeasure σ] + (χ : X →ᵇ ℝ) (hχ : ∀ x, 0 ≤ χ x ∧ χ x ≤ 1) + (s S : Set X) (hs : MeasurableSet s) + (hχone : ∀ x ∈ s, χ x = 1) + (Q dχ : X → ℝ) (hQi : IntegrableOn Q S μ) + (hdχ : AEStronglyMeasurable dχ (μ.restrict S)) + {D E κ a n : ℝ} (hD : 0 ≤ D) (hκ : 0 ≤ κ) (hna : n ≤ a) + (hdχbound : ∀ᵐ x ∂μ.restrict S, |dχ x| ≤ D) + (herror : (∫ x in S, |(1 / 2 : ℝ) * localGamma μ hQ f f x - Q x| ∂μ) ≤ E) + (hsource : (∫ x, χ x ∂β) = + (1 / 2 : ℝ) * (∫ x in S, localGamma μ hQ f f x * dχ x ∂μ) + + κ * (∫ x in S, χ x * localGamma μ hQ f f x ∂μ) - + (2 * a - n) * ∫ x in S, χ x ∂μ) + (hQsource : (∫ x in S, Q x * dχ x ∂μ) = + a * (∫ x in S, χ x ∂μ) - ∫ x, χ x ∂σ) : + β.real s ≤ D * E + κ * ∫ x in S, localGamma μ hQ f f x ∂μ := by + let g := localGamma μ hQ f f + let e := fun x => (1 / 2 : ℝ) * g x - Q x + have hgi : IntegrableOn g S μ := (localGamma_memL1 μ hQ f f).integrableOn + have hei : IntegrableOn e S μ := (hgi.const_mul (1 / 2 : ℝ)).sub hQi + have hdχnorm : ∀ᵐ x ∂μ.restrict S, ‖dχ x‖ ≤ D := by + simpa only [Real.norm_eq_abs] using hdχbound + have hgd : IntegrableOn (fun x => g x * dχ x) S μ := by + exact (hgi.bdd_mul hdχ hdχnorm).congr (Filter.Eventually.of_forall fun x => mul_comm _ _) + have hQd : IntegrableOn (fun x => Q x * dχ x) S μ := by + exact (hQi.bdd_mul hdχ hdχnorm).congr (Filter.Eventually.of_forall fun x => mul_comm _ _) + have hsplit : (∫ x in S, e x * dχ x ∂μ) = + (1 / 2 : ℝ) * (∫ x in S, g x * dχ x ∂μ) - ∫ x in S, Q x * dχ x ∂μ := by + dsimp only [e] + simp only [sub_mul, mul_assoc] + rw [integral_sub (hgd.const_mul (1 / 2 : ℝ)) hQd, integral_const_mul] + have herrorweighted : |∫ x in S, e x * dχ x ∂μ| ≤ D * E := by + have hb := norm_integral_le_of_norm_le (hei.abs.const_mul D) (show + ∀ᵐ x ∂μ.restrict S, ‖e x * dχ x‖ ≤ D * |e x| from by + filter_upwards [hdχbound] with x hx + rw [Real.norm_eq_abs, abs_mul] + nlinarith [abs_nonneg (e x)]) + rw [integral_const_mul, Real.norm_eq_abs] at hb + exact hb.trans (mul_le_mul_of_nonneg_left herror hD) + have hχi (ν : Measure X) [IsFiniteMeasure ν] : Integrable χ ν := + Integrable.of_bound χ.continuous.aestronglyMeasurable ‖χ‖ + (Filter.Eventually.of_forall χ.norm_coe_le_norm) + have hmass : β.real s ≤ ∫ x, χ x ∂β := by + have hb : s.indicator (fun _ => (1 : ℝ)) ≤ᵐ[β] χ := by + apply Filter.Eventually.of_forall + intro x + by_cases hx : x ∈ s + · rw [indicator_of_mem hx, hχone x hx] + · simpa only [indicator_of_notMem hx] using (hχ x).1 + have hi := integral_mono_ae ((integrable_const (1 : ℝ)).indicator hs) (hχi β) hb + simpa only [integral_indicator hs, setIntegral_const, smul_eq_mul, mul_one] using hi + have hσpos : 0 ≤ ∫ x, χ x ∂σ := integral_nonneg fun x => (hχ x).1 + have hχpos : 0 ≤ ∫ x in S, χ x ∂μ := integral_nonneg fun x => (hχ x).1 + have hχg : (∫ x in S, χ x * g x ∂μ) ≤ ∫ x in S, g x ∂μ := by + apply integral_mono_ae (hgi.bdd_mul χ.continuous.aestronglyMeasurable + (Filter.Eventually.of_forall χ.norm_coe_le_norm)) hgi + filter_upwards [ae_restrict_of_ae (localGamma_self μ hQ f)] with x hx + dsimp only [g] + rw [hx] + exact mul_le_of_le_one_left (sq_nonneg _) (hχ x).2 + have hident : (∫ x, χ x ∂β) = (∫ x in S, e x * dχ x ∂μ) + + κ * (∫ x in S, χ x * g x ∂μ) + + (n - a) * (∫ x in S, χ x ∂μ) - ∫ x, χ x ∂σ := by + rw [hsplit, hQsource, hsource] + dsimp only [g] + ring + have hcurv := mul_le_mul_of_nonneg_left hχg hκ + have hnegative : (n - a) * (∫ x in S, χ x ∂μ) ≤ 0 := + mul_nonpos_of_nonpos_of_nonneg (sub_nonpos.mpr hna) hχpos + have heupper := (le_abs_self (∫ x in S, e x * dχ x ∂μ)).trans herrorweighted + rw [hident] at hmass + dsimp only [g] at hcurv + linarith + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/PoissonCaccioppoli.lean b/lean/OAI/Geometry/RCD/Sobolev/PoissonCaccioppoli.lean new file mode 100644 index 0000000000000000000000000000000000000000..1d9039d1413d9420806b35ec19e931dd77745c1d --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/PoissonCaccioppoli.lean @@ -0,0 +1,99 @@ +import OAI.Geometry.RCD.Sobolev.PoissonLocality +import OAI.Geometry.RCD.Harmonic.UnboundedCaccioppoli + +namespace OAI + +/-! # Local energy control for a bounded constant-source solution -/ + +open Set Filter MeasureTheory +open scoped NNReal ENNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) [IsFiniteMeasureOnCompacts μ] (hQ : QuadraticCheegerEnergy μ) + +/-- The source term adds its natural amplitude contribution to the usual +cutoff energy bound. No gradient bound on the Poisson solution is assumed. -/ +theorem IsConstantLaplacianOn.cutoff_energy_le + {Ω : Set X} (hfin : μ Ω ≠ ∞) + (f η : SobolevSpace μ hQ) (c : ℝ) (hf : IsConstantLaplacianOn μ hQ Ω f c) + {χ : X → ℝ} {L A : ℝ≥0} (hχ : LipschitzWith L χ) + (hs : HasCompactSupport χ) (hb : ∀ x, 0 ≤ χ x ∧ χ x ≤ 1) + (hsupp : tsupport χ ⊆ Ω) (hη : SobolevSpace.toLp μ hQ η =ᵐ[μ] χ) + (hA : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ f x| ≤ A) : + (∫ x, (χ x)^2*(SobolevSpace.minimalSlope μ hQ f x)^2 ∂μ) ≤ + (2*|c| *A+4*(A:ℝ)^2*(L:ℝ)^2)*μ.real Ω := by + let F := SobolevSpace.toLp μ hQ f + let H := SobolevSpace.minimalSlope μ hQ η + have hχabs (x : X) : |χ x| ≤ (1:ℝ≥0) := by + rw [abs_of_nonneg (hb x).1]; exact (hb x).2 + let M := SobolevSpace.cutoffCLM μ hQ hχ hs hχabs (fun x => (hb x).1) + have hH : ∀ᵐ x ∂μ, |H x| ≤ L := by + filter_upwards [SobolevSpace.minimalSlope_le_lipschitz μ hQ η hχ hη, + (Lp.coeFn_nonneg _).mpr (SobolevSpace.minimalSlope_nonneg μ hQ η)] with x hx h0 + rw [abs_of_nonneg h0] + exact hx + have hval : SobolevSpace.toLp μ hQ (M (M f)) =ᵐ[μ] fun x => (χ x)^2*F x := by + filter_upwards [SobolevSpace.cutoffCLM_coe μ hQ hχ hs hχabs (fun x => (hb x).1) (M f), + SobolevSpace.cutoffCLM_coe μ hQ hχ hs hχabs (fun x => (hb x).1) f] with x h1 h2 + change SobolevSpace.toLp μ hQ (M (M f)) x = _ at h1 + change SobolevSpace.toLp μ hQ (M f) x = _ at h2 + rw [h1,h2] + ring + have htestB : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ (M (M f)) x| ≤ A := by + filter_upwards [hval,hA] with x hx ha + rw [hx,abs_mul,abs_pow,abs_of_nonneg (hb x).1] + have hc : (χ x)^2 ≤ 1 := by nlinarith [(hb x).1,(hb x).2] + exact (mul_le_mul_of_nonneg_right hc (abs_nonneg (F x))).trans (by simpa using ha) + have he : energyForm μ hQ f (M (M f)) ≤ |c| *A*μ.real Ω := by + rw [hf _ (SobolevSpace.cutoffCLM_mem_dirichlet μ hQ hχ hs hχabs + (fun x => (hb x).1) hsupp (M f))] + have hI := norm_setIntegral_le_of_norm_le_const_ae + (f := fun x => SobolevSpace.toLp μ hQ (M (M f)) x) (C := (A:ℝ)) hfin.lt_top + (by simpa only [Real.norm_eq_abs] using (ae_restrict_of_ae (s := Ω) htestB)) + have hm := mul_le_mul_of_nonneg_left hI (abs_nonneg c) + calc + _ ≤ |(-c)*(∫ x in Ω, SobolevSpace.toLp μ hQ (M (M f)) x ∂μ)| := le_abs_self _ + _ = |c| *‖∫ x in Ω, SobolevSpace.toLp μ hQ (M (M f)) x ∂μ‖ := by + rw [abs_mul,abs_neg,Real.norm_eq_abs] + _ ≤ _ := by convert hm using 1; ring + have hIz : ∀ᵐ x ∂μ, x ∉ Ω → F x^2*H x^2 = 0 := by + filter_upwards [hη,SobolevSpace.minimalSlope_zero_on_level μ hQ η 0] with x he hz hx + have hc : χ x = 0 := by + by_contra hne + exact hx (hsupp (subset_tsupport χ hne)) + have hH0 : H x = 0 := hz (he.trans hc) + rw [hH0,zero_pow (by decide),mul_zero] + have hIi : Integrable (fun x => F x^2*H x^2) μ := by + simpa only [mul_comm] using! bounded_square_weight_integrable μ H F hH + have hIb : (∫ x, F x^2*H x^2 ∂μ) ≤ (A:ℝ)^2*(L:ℝ)^2*μ.real Ω := by + rw [← setIntegral_eq_integral_of_ae_compl_eq_zero hIz] + calc + _ ≤ ∫ _x in Ω, (A:ℝ)^2*(L:ℝ)^2 ∂μ := by + apply integral_mono_ae hIi.integrableOn (integrableOn_const hfin) + filter_upwards [ae_restrict_of_ae hA,ae_restrict_of_ae hH] with x ha hh + have hfa : F x^2 ≤ (A:ℝ)^2 := by + simpa only [sq_abs] using pow_le_pow_left₀ (abs_nonneg (F x)) ha 2 + have hha : H x^2 ≤ (L:ℝ)^2 := by + simpa only [sq_abs] using pow_le_pow_left₀ (abs_nonneg (H x)) hh 2 + exact mul_le_mul hfa hha (sq_nonneg _) (sq_nonneg _) + _ = _ := by rw [setIntegral_const,smul_eq_mul]; ring + have henergy := caccioppoli_cutoffCLM_energy μ hQ f η hχ hs hχabs + (fun x => (hb x).1) hη hH + have hleft : (∫ x, (SobolevSpace.toLp μ hQ η x)^2* + (SobolevSpace.minimalSlope μ hQ f x)^2 ∂μ) = + ∫ x, (χ x)^2*(SobolevSpace.minimalSlope μ hQ f x)^2 ∂μ := by + apply integral_congr_ae + filter_upwards [hη] with x hx + rw [hx] + rw [hleft] at henergy + change _ ≤ 2*energyForm μ hQ f (M (M f))+4*(∫ x, F x^2*H x^2 ∂μ) at henergy + nlinarith only [henergy,he,hIb] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/PoissonCommonRegion.lean b/lean/OAI/Geometry/RCD/Sobolev/PoissonCommonRegion.lean new file mode 100644 index 0000000000000000000000000000000000000000..cd6db4ea097cb340693a3a344cc572c64346d9bb --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/PoissonCommonRegion.lean @@ -0,0 +1,71 @@ +import OAI.Geometry.RCD.Harmonic.DyadicDistanceReplacements +import OAI.Geometry.RCD.Sobolev.PoissonGradientBridge + +namespace OAI + +/-! # Common-region data for actual two-center replacements -/ + +open Set Metric MeasureTheory +open scoped NNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) [IsFiniteMeasureOnCompacts μ] (hQ : QuadraticCheegerEnergy μ) + +/-- The actual replacement has a global value bound in its natural squared +length units; it follows from the positive datum and the proved height. -/ +theorem DyadicDistanceReplacements.value_bound {n : ℕ} {κ r0 B J C : ℝ} {p : X} + {S : DyadicDistanceSources μ hQ n κ p r0} + (T : DyadicDistanceReplacements μ hQ S B J C) (i : ℕ) : + ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ (T.replacement i) x| ≤ + max 8 B * (distanceSourceRadius r0 i) ^ 2 := by + let r := distanceSourceRadius r0 i + have hr : 0 < r := distanceSourceRadius_pos S.radius_pos i + let q := positiveSquaredDistance μ hQ (by positivity : 0 ≤ 4 * r) (T.cutoff i) + have hqrep := positiveSquaredDistance_representative μ hQ (by positivity : 0 ≤ 4 * r) (T.cutoff i) + filter_upwards [hqrep, T.height i, + Lp.coeFn_sub (SobolevSpace.toLp μ hQ q) (SobolevSpace.toLp μ hQ (T.replacement i))] + with x hqx hh hsub + have hqbound := positiveSquaredDistanceValue_bounds μ hQ (by positivity : 0 ≤ 4 * r) (T.cutoff i) x + have hq0 : 0 ≤ SobolevSpace.toLp μ hQ q x := by rw [hqx]; exact hqbound.1 + have hq8 : SobolevSpace.toLp μ hQ q x ≤ 8 * r ^ 2 := by + rw [hqx] + nlinarith [hqbound.2] + change 0 ≤ SobolevSpace.toLp μ hQ (q - T.replacement i) x ∧ + SobolevSpace.toLp μ hQ (q - T.replacement i) x ≤ B * r ^ 2 at hh + rw [map_sub, hsub, Pi.sub_apply] at hh + have h8 := mul_le_mul_of_nonneg_right (le_max_left 8 B) (sq_nonneg r) + have hB := mul_le_mul_of_nonneg_right (le_max_right 8 B) (sq_nonneg r) + exact abs_le.mpr ⟨by linarith, by linarith⟩ + +/-- Equal Laplacians remain equal on a smaller ball around another center. -/ +theorem DyadicDistanceReplacements.laplacian_on_ball {n : ℕ} {κ r0 B J C : ℝ} {p : X} + {S : DyadicDistanceSources μ hQ n κ p r0} + (T : DyadicDistanceReplacements μ hQ S B J C) (i : ℕ) + (z : X) {R : ℝ} (hroom : R + dist z p ≤ distanceSourceRadius r0 i) : + IsConstantLaplacianOn μ hQ (ball z R) (T.replacement i) + ((n : ℝ) + κ * (4 * distanceSourceRadius r0 i) ^ 2) := + (T.laplacian i).mono μ hQ measurableSet_ball (ball_subset_ball' hroom) + +/-- The harmonic difference in the two-center argument is constructed +from the actual same-scale replacements and their common constant source. -/ +theorem common_replacement_difference_harmonic + {n : ℕ} {κ r0 B₁ J₁ C₁ B₂ J₂ C₂ : ℝ} {p₁ p₂ : X} + {S₁ : DyadicDistanceSources μ hQ n κ p₁ r0} + {S₂ : DyadicDistanceSources μ hQ n κ p₂ r0} + (T₁ : DyadicDistanceReplacements μ hQ S₁ B₁ J₁ C₁) + (T₂ : DyadicDistanceReplacements μ hQ S₂ B₂ J₂ C₂) + (i : ℕ) (z : X) {R : ℝ} + (hroom₁ : R + dist z p₁ ≤ distanceSourceRadius r0 i) + (hroom₂ : R + dist z p₂ ≤ distanceSourceRadius r0 i) : + IsSobolevHarmonicOn μ hQ (ball z R) (T₂.replacement i - T₁.replacement i) := + (T₂.laplacian_on_ball μ hQ i z hroom₂).sub_harmonic μ hQ + (T₁.laplacian_on_ball μ hQ i z hroom₁) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/PoissonCompactExtension.lean b/lean/OAI/Geometry/RCD/Sobolev/PoissonCompactExtension.lean new file mode 100644 index 0000000000000000000000000000000000000000..877e6288cffebcb82775122a0583def20347e5e2 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/PoissonCompactExtension.lean @@ -0,0 +1,110 @@ +import OAI.Geometry.RCD.Sobolev.CompactGradientRepresentative +import OAI.Geometry.RCD.Sobolev.CutoffPointwiseGradient +import OAI.Geometry.RCD.Sobolev.PoissonCutoffSource + +namespace OAI + +/-! # Compact extensions of local constant-Laplacian functions + +A good cutoff gives an actual L² Laplacian. Local gradient control and a +bounded representative make the extension compact Lipschitz; on the +plateau both the function and its Laplacian agree with the local data. +-/ + +open Set Filter Metric MeasureTheory +open scoped NNReal ENNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem NoncollapsedRCD.poisson_compact_extension {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (hn : 2 ≤ n) + {Ω : Set X} (hΩ : MeasurableSet Ω) + (f : SobolevSpace (hausdorff n X) hX.quadratic) (c : ℝ) + (hf : IsConstantLaplacianOn (hausdorff n X) hX.quadratic Ω f c) + (A L : ℝ≥0) (hA : ∀ᵐ x ∂hausdorff n X, |SobolevSpace.toLp (hausdorff n X) hX.quadratic f x| ≤ A) + (hL : ∀ᵐ x ∂(hausdorff n X).restrict Ω, + localGamma (hausdorff n X) hX.quadratic f f x ≤ (L : ℝ) ^ 2) + {p : X} {R C : ℝ} (_hR : 0 < R) + (χ : GoodLaplacianCutoff (hausdorff n X) hX.quadratic p R C) + (hsub : closedBall p (2 * R) ⊆ Ω) : + ∃ (F : SobolevSpace (hausdorff n X) hX.quadratic) + (d : Lp ℝ 2 (hausdorff n X)) (v : X → ℝ) (Q : ℝ≥0), + LipschitzWith Q v ∧ HasCompactSupport v ∧ + SobolevSpace.toLp (hausdorff n X) hX.quadratic F =ᵐ[hausdorff n X] v ∧ + IsWeakLaplacian (hausdorff n X) hX.quadratic F d ∧ + SobolevSpace.toLp (hausdorff n X) hX.quadratic F =ᵐ[(hausdorff n X).restrict (ball p R)] + SobolevSpace.toLp (hausdorff n X) hX.quadratic f ∧ + d =ᵐ[(hausdorff n X).restrict (ball p R)] (fun _ => c) := by + let := hX.separable + let μ := hausdorff n X + let := locallyFinite_of_finiteOnBounded μ hX.finiteOnBounded + have hb (x : X) : |χ.weight x| ≤ (1 : ℝ≥0) := by + rw [abs_of_nonneg (χ.bounds x).1] + exact (χ.bounds x).2 + let F := SobolevSpace.cutoffCLM μ hX.quadratic χ.lipschitz + (χ.hasCompactSupport μ hX.quadratic) hb (fun x => (χ.bounds x).1) f + have hFrep : SobolevSpace.toLp μ hX.quadratic F =ᵐ[μ] + fun x => χ.weight x * SobolevSpace.toLp μ hX.quadratic f x := + SobolevSpace.cutoffCLM_coe μ hX.quadratic χ.lipschitz + (χ.hasCompactSupport μ hX.quadratic) hb (fun x => (χ.bounds x).1) f + obtain ⟨d, hd, hdrep⟩ := hf.cutoff_weakLaplacian μ hX.quadratic f χ.sobolev c χ.laplacian + χ.weak_laplacian χ.lipschitz (χ.hasCompactSupport μ hX.quadratic) hb + (fun x => (χ.bounds x).1) ((χ.tsupport_subset μ hX.quadratic).trans hsub) χ.representative hA + let J : ℝ≥0 := (C / R).toNNReal + let Q : ℝ≥0 := ⟨Real.sqrt (2 * (L : ℝ) ^ 2 + 2 * (A : ℝ) ^ 2 * (J : ℝ) ^ 2), Real.sqrt_nonneg _⟩ + have hL' := (ae_restrict_iff' hΩ).mp hL + have hχg := SobolevSpace.minimalSlope_le_lipschitz μ hX.quadratic χ.sobolev χ.lipschitz χ.representative + have hFg : ∀ᵐ x ∂μ, SobolevSpace.minimalSlope μ hX.quadratic F x ≤ Q := by + filter_upwards [minimalSlope_cutoffCLM_sq_le μ hX.quadratic f χ.sobolev χ.lipschitz + (χ.hasCompactSupport μ hX.quadratic) hb (fun x => (χ.bounds x).1) χ.representative, + hFrep, χ.representative, hχg, hA, hL', localGamma_self μ hX.quadratic f, + SobolevSpace.minimalSlope_zero_on_level μ hX.quadratic F 0, + (Lp.coeFn_nonneg _).mpr (SobolevSpace.minimalSlope_nonneg μ hX.quadratic χ.sobolev)] + with x hsq hfr hχ hχL hAf hLf hΓ hzero hχ0 + change SobolevSpace.minimalSlope μ hX.quadratic F x ≤ Real.sqrt _ + apply Real.le_sqrt_of_sq_le + by_cases hx : x ∈ closedBall p (2 * R) + · have hfG : (SobolevSpace.minimalSlope μ hX.quadratic f x) ^ 2 ≤ (L : ℝ) ^ 2 := by + rw [← hΓ] + exact hLf (hsub hx) + have hfA : (SobolevSpace.toLp μ hX.quadratic f x) ^ 2 ≤ (A : ℝ) ^ 2 := by + simpa only [sq_abs] using pow_le_pow_left₀ (abs_nonneg _) hAf 2 + have heG : (SobolevSpace.minimalSlope μ hX.quadratic χ.sobolev x) ^ 2 ≤ (J : ℝ) ^ 2 := + pow_le_pow_left₀ hχ0 hχL 2 + have hχsq : (SobolevSpace.toLp μ hX.quadratic χ.sobolev x) ^ 2 ≤ 1 := by + rw [hχ] + nlinarith [(χ.bounds x).1, (χ.bounds x).2] + apply hsq.trans + calc + _ ≤ 2 * 1 * (L : ℝ) ^ 2 + 2 * (A : ℝ) ^ 2 * (J : ℝ) ^ 2 := by gcongr + _ = _ := by ring + · have hχz := χ.zero x (by simpa only [mem_closedBall, not_le, dist_comm] using hx) + rw [hzero (hfr.trans (by rw [hχz, zero_mul]))] + simp only [zero_pow (by norm_num : (2 : ℕ) ≠ 0)] + positivity + have hFzero : ∀ᵐ x ∂μ, 2 * R < dist p x → SobolevSpace.toLp μ hX.quadratic F x = 0 := by + filter_upwards [hFrep] with x hx hdist + exact hx.trans (by rw [χ.zero x hdist, zero_mul]) + obtain ⟨v, hv, hvc, _, hvrep⟩ := hX.compact_lipschitz_of_gradient hn F Q hFg p (2 * R) hFzero + refine ⟨F, d, v, Q, hv, hvc, hvrep, hd, ?_, ?_⟩ + · apply (ae_restrict_iff' measurableSet_ball).mpr + filter_upwards [hFrep] with x hx hball + exact hx.trans (by rw [χ.one x hball, one_mul]) + · apply (ae_restrict_iff' measurableSet_ball).mpr + filter_upwards [hdrep, χ.representative, χ.laplacian_locality, + localGamma_zero_on_level μ hX.quadratic χ.sobolev f 1, + localGamma_comm μ hX.quadratic f χ.sobolev] with x hx hχ hΔ hz hcomm hball + have hχ1 := χ.one x hball + have hΓ0 : localGamma μ hX.quadratic f χ.sobolev x = 0 := hcomm.trans (hz (hχ.trans hχ1)) + have hdist : dist p x < R := by simpa only [mem_ball, dist_comm] using hball + rw [hx, hχ1, hΔ (Or.inl hdist), hΓ0] + ring + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/PoissonComparison.lean b/lean/OAI/Geometry/RCD/Sobolev/PoissonComparison.lean new file mode 100644 index 0000000000000000000000000000000000000000..0c6a3e723b6e8df7a575e47b422526b8b29a88c7 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/PoissonComparison.lean @@ -0,0 +1,83 @@ +import OAI.Geometry.RCD.Sobolev.PoissonReplacement +import OAI.Geometry.RCD.Sobolev.DirichletMaximum + +namespace OAI + +/-! # Comparison for the constant-Laplacian Dirichlet replacement -/ + +open Set MeasureTheory +open scoped InnerProductSpace ENNReal + +noncomputable section + +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] + (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +/-- A distributional upper Laplacian bound on the boundary datum makes +its constant-Laplacian replacement lie below it. This is the comparison +used for the squared-distance datum in the Poisson pinching argument. -/ +theorem constant_laplacian_replacement_le (Ω : Set X) (hΩ : MeasurableSet Ω) + (hfin : μ Ω ≠ ∞) {P : ℝ} (hP : 0 ≤ P) + (hbound : ∀ f : SobolevSpace.dirichlet μ hQ Ω, + ‖SobolevSpace.toLp μ hQ f.val‖ ^ 2 ≤ P * energyForm μ hQ f.val f.val) + (c : ℝ) (u v : SobolevSpace μ hQ) + (hboundary : v - u ∈ SobolevSpace.dirichlet μ hQ Ω) + (hsolve : ∀ φ : SobolevSpace.dirichlet μ hQ Ω, + energyForm μ hQ v φ.val = -c * ∫ x in Ω, SobolevSpace.toLp μ hQ φ.val x ∂μ) + (hcomparison : ∀ φ : SobolevSpace.dirichlet μ hQ Ω, + (∀ᵐ x ∂μ, 0 ≤ SobolevSpace.toLp μ hQ φ.val x) → + -energyForm μ hQ u φ.val ≤ c * ∫ x in Ω, SobolevSpace.toLp μ hQ φ.val x ∂μ) : + ∀ᵐ x ∂μ, SobolevSpace.toLp μ hQ v x ≤ SobolevSpace.toLp μ hQ u x := by + let F := dirichletSource μ hQ Ω (indicatorConstLp 2 hΩ hfin c) + + (sobolevEnergyForm μ hQ u).comp (SobolevSpace.dirichlet μ hQ Ω).subtypeL + have hF (φ : SobolevSpace.dirichlet μ hQ Ω) : + F φ = c * ∫ x in Ω, SobolevSpace.toLp μ hQ φ.val x ∂μ + + energyForm μ hQ u φ.val := by + change dirichletSource μ hQ Ω (indicatorConstLp 2 hΩ hfin c) φ + _ = _ + rw [dirichletSource_indicator] + rfl + have hFpos (φ : SobolevSpace.dirichlet μ hQ Ω) + (hφ : ∀ᵐ x ∂μ, 0 ≤ SobolevSpace.toLp μ hQ φ.val x) : 0 ≤ F φ := by + rw [hF] + linarith [hcomparison φ hφ] + let h : SobolevSpace.dirichlet μ hQ Ω := + ⟨u - v, by simpa only [neg_sub] using + (SobolevSpace.dirichlet μ hQ Ω).neg_mem hboundary⟩ + have hh (φ : SobolevSpace.dirichlet μ hQ Ω) : + energyForm μ hQ h.val φ.val = F φ := by + change energyForm μ hQ (u - v) φ.val = F φ + rw [energyForm_sub_left, hsolve, hF] + ring + have hp := dirichlet_solution_nonneg μ hQ Ω hP hbound F hFpos h hh + filter_upwards [hp, Lp.coeFn_sub (SobolevSpace.toLp μ hQ u) + (SobolevSpace.toLp μ hQ v)] with x hx hsub + change 0 ≤ SobolevSpace.toLp μ hQ (u - v) x at hx + rw [map_sub, hsub, Pi.sub_apply] at hx + exact sub_nonneg.mp hx + +/-- Existence and the comparison conclusion are obtained together from +coercivity and the actual distributional Laplacian inequality. -/ +theorem exists_constant_laplacian_replacement_le + (Ω : Set X) (hΩ : MeasurableSet Ω) (hfin : μ Ω ≠ ∞) + {P : ℝ} (hP : 0 ≤ P) + (hbound : ∀ f : SobolevSpace.dirichlet μ hQ Ω, + ‖SobolevSpace.toLp μ hQ f.val‖ ^ 2 ≤ P * energyForm μ hQ f.val f.val) + (c : ℝ) (u : SobolevSpace μ hQ) + (hcomparison : ∀ φ : SobolevSpace.dirichlet μ hQ Ω, + (∀ᵐ x ∂μ, 0 ≤ SobolevSpace.toLp μ hQ φ.val x) → + -energyForm μ hQ u φ.val ≤ c * ∫ x in Ω, SobolevSpace.toLp μ hQ φ.val x ∂μ) : + ∃ v : SobolevSpace μ hQ, v - u ∈ SobolevSpace.dirichlet μ hQ Ω ∧ + (∀ φ : SobolevSpace.dirichlet μ hQ Ω, + energyForm μ hQ v φ.val = -c * ∫ x in Ω, SobolevSpace.toLp μ hQ φ.val x ∂μ) ∧ + (∀ᵐ x ∂μ, SobolevSpace.toLp μ hQ v x ≤ SobolevSpace.toLp μ hQ u x) := by + obtain ⟨v, hv, hs⟩ := exists_constant_laplacian_replacement μ hQ Ω hΩ hfin hP hbound c u + exact ⟨v, hv, hs, constant_laplacian_replacement_le μ hQ Ω hΩ hfin hP hbound + c u v hv hs hcomparison⟩ + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/PoissonCutoffEnergyBound.lean b/lean/OAI/Geometry/RCD/Sobolev/PoissonCutoffEnergyBound.lean new file mode 100644 index 0000000000000000000000000000000000000000..f34db33fdc8b1463a357a08ffab415f46e164f79 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/PoissonCutoffEnergyBound.lean @@ -0,0 +1,97 @@ +import OAI.Geometry.RCD.Sobolev.PositiveDefectCutoff +import OAI.Geometry.RCD.Sobolev.GoodLaplacianCutoff + +namespace OAI + +/-! # The quantitative cutoff bound for a squared-distance replacement + +The full positive source of the boundary datum supplies the sign. Only the +already controlled energy-density error of the replacement is needed. +-/ + +open Set Filter Metric MeasureTheory +open scoped NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) (Q : QuadraticCheegerEnergy μ) + +theorem GoodLaplacianCutoff.poisson_energy_bound + {p : X} {r C b : ℝ} (χ : GoodLaplacianCutoff μ Q p r C) + (hC : 0 ≤ C) (hb : 2*r < b) + (u q : SobolevSpace μ Q) (σ : Measure X) {a n E : ℝ} (hna : n ≤ a) + (hsource : ∀ (ψ : SobolevSpace μ Q) (v : X → ℝ) (L : ℝ≥0), + LipschitzWith L v → HasCompactSupport v → tsupport v ⊆ ball p b → + SobolevSpace.toLp μ Q ψ =ᵐ[μ] v → + energyForm μ Q q ψ+a*(∫ x in ball p b, v x ∂μ)=∫ x, v x ∂σ) + (heik : (fun x => (1/2:ℝ)*localGamma μ Q q q x) + =ᵐ[μ.restrict (ball p b)] SobolevSpace.toLp μ Q q) + (herror : (∫ x in ball p b, + |(1/2:ℝ)*localGamma μ Q u u x-(1/2:ℝ)*localGamma μ Q q q x| ∂μ) ≤ E) : + (1/2:ℝ)*weightedGamma μ Q χ.laplacian u u+ + (n-2*a)*(∫ x, χ.weight x ∂μ) ≤ (C/r^2)*E := by + have hout (x : X) (hx : x ∉ ball p b) : 2*r < dist p x := by + have hh : b ≤ dist p x := by simpa only [mem_ball,dist_comm,not_lt] using hx + exact hb.trans_le hh + have hzero : ∀ᵐ x ∂μ, x ∉ ball p b → χ.laplacian x=0 := by + filter_upwards [χ.laplacian_locality] with x hx hn + exact hx (Or.inr (hout x hn)) + have hloc (f : SobolevSpace μ Q) : weightedGamma μ Q χ.laplacian f f= + ∫ x in ball p b, χ.laplacian x*localGamma μ Q f f x ∂μ := by + symm + apply setIntegral_eq_integral_of_ae_compl_eq_zero + filter_upwards [hzero] with x hx hn + rw [hx hn,zero_mul] + have hvloc : (∫ x in ball p b, χ.weight x ∂μ)=∫ x, χ.weight x ∂μ := by + apply setIntegral_eq_integral_of_ae_compl_eq_zero + exact Eventually.of_forall fun x hx => χ.zero x (hout x hx) + have hqsource := positive_defect_cutoff_identity μ Q q σ a hsource χ.weight χ.lipschitz + (χ.hasCompactSupport μ Q) + ((χ.tsupport_subset μ Q).trans (closedBall_subset_ball hb)) + χ.sobolev χ.representative χ.laplacian χ.weak_laplacian hzero + rw [hvloc] at hqsource + have hqident : (1/2:ℝ)*weightedGamma μ Q χ.laplacian q q= + a*(∫ x, χ.weight x ∂μ)-∫ x, χ.weight x ∂σ := by + rw [hloc,← integral_const_mul,← hqsource] + apply integral_congr_ae + filter_upwards [heik] with x hx + change (1/2:ℝ)*(χ.laplacian x*localGamma μ Q q q x)= + SobolevSpace.toLp μ Q q x*χ.laplacian x + rw [← hx] + ring + let e := fun x => (1/2:ℝ)*localGamma μ Q u u x-(1/2:ℝ)*localGamma μ Q q q x + have hei : IntegrableOn e (ball p b) μ := + (((localGamma_memL1 μ Q u u).const_mul (1/2:ℝ)).sub + ((localGamma_memL1 μ Q q q).const_mul (1/2:ℝ))).integrableOn + have hweighted : |∫ x in ball p b, χ.laplacian x*e x ∂μ| ≤ (C/r^2)*E := by + have hh := norm_integral_le_of_norm_le (hei.abs.const_mul (C/r^2)) (show + ∀ᵐ x ∂μ.restrict (ball p b), ‖χ.laplacian x*e x‖ ≤ (C/r^2)*|e x| from by + filter_upwards [ae_restrict_of_ae χ.laplacian_bound] with x hx + rw [Real.norm_eq_abs,abs_mul] + exact mul_le_mul_of_nonneg_right hx (abs_nonneg _)) + rw [Real.norm_eq_abs,integral_const_mul] at hh + exact hh.trans (mul_le_mul_of_nonneg_left herror (div_nonneg hC (sq_nonneg r))) + have hsplit : (∫ x in ball p b, χ.laplacian x*e x ∂μ)= + (1/2:ℝ)*weightedGamma μ Q χ.laplacian u u- + (1/2:ℝ)*weightedGamma μ Q χ.laplacian q q := by + have hi (f : SobolevSpace μ Q) : IntegrableOn + (fun x => χ.laplacian x*localGamma μ Q f f x) (ball p b) μ := + ((localGamma_memL1 μ Q f f).bdd_mul (Lp.aestronglyMeasurable χ.laplacian) + (χ.laplacian_bound.mono fun x hx => by simpa only [Real.norm_eq_abs] using hx)).integrableOn + rw [hloc,hloc,← integral_const_mul,← integral_const_mul, + ← integral_sub ((hi u).const_mul (1/2:ℝ)) ((hi q).const_mul (1/2:ℝ))] + apply integral_congr_ae + exact Eventually.of_forall fun x => by dsimp only [e]; ring + have hn0 : (n-a)*(∫ x, χ.weight x ∂μ) ≤ 0 := + mul_nonpos_of_nonpos_of_nonneg (sub_nonpos.mpr hna) + (integral_nonneg fun x => (χ.bounds x).1) + have hσ0 : 0 ≤ ∫ x, χ.weight x ∂σ := integral_nonneg fun x => (χ.bounds x).1 + have hh := (le_abs_self (∫ x in ball p b, χ.laplacian x*e x ∂μ)).trans hweighted + rw [hsplit,hqident] at hh + linarith only [hh,hn0,hσ0] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/PoissonCutoffErrors.lean b/lean/OAI/Geometry/RCD/Sobolev/PoissonCutoffErrors.lean new file mode 100644 index 0000000000000000000000000000000000000000..2d8c051e7cc215e7f25ec15215639af688a025e7 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/PoissonCutoffErrors.lean @@ -0,0 +1,40 @@ +import OAI.Geometry.RCD.Sobolev.ScaledGammaError + +namespace OAI + +/-! # Vanishing constant-source errors in compact cutoff tests -/ + +open Set Filter MeasureTheory +open scoped Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MeasurableSpace X] + +theorem normalized_source_error_tendsto (μ : ℕ → Measure X) + [∀ k, IsFiniteMeasure (μ k)] (hmass : ∀ k, 0<(μ k).real univ) + (z v : ℕ → X → ℝ) (a : ℕ → ℝ) {A B : ℝ} (hA : 0≤A) + (ha : ∀ᶠ k in atTop, |a k|≤A) + (hv : ∀ᶠ k in atTop, ∀ᵐ x ∂μ k, |v k x|≤B) + (hz : ∀ δ : ℝ, 0<δ → ∀ᶠ k in atTop, ∀ᵐ x ∂μ k, |z k x|≤δ) : + Tendsto (fun k => a k*((μ k).real univ)⁻¹* + ∫ x, (v k x)^2*z k x ∂μ k) atTop (𝓝 0) := by + have hb : ∀ᶠ k in atTop, ∀ᵐ x ∂μ k, |a k*(v k x)^2|≤A*B^2 := by + filter_upwards [ha,hv] with k hak hvk + filter_upwards [hvk] with x hvx + rw [abs_mul,abs_pow] + exact mul_le_mul hak (pow_le_pow_left₀ (abs_nonneg _) hvx 2) (sq_nonneg _) hA + have ht := normalized_product_error_tendsto μ hmass z (fun k x => a k*(v k x)^2) + (mul_nonneg hA (sq_nonneg B)) hb hz + convert ht using 1 + funext k + have he : (fun x => z k x*(a k*(v k x)^2))=fun x => a k*((v k x)^2*z k x) := by + funext x + ring + rw [he,integral_const_mul] + ring + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/PoissonCutoffSource.lean b/lean/OAI/Geometry/RCD/Sobolev/PoissonCutoffSource.lean new file mode 100644 index 0000000000000000000000000000000000000000..69ef8bc703df7593fd773adf6e8b789320e33b34 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/PoissonCutoffSource.lean @@ -0,0 +1,93 @@ +import OAI.Geometry.RCD.Sobolev.CutoffPoissonLaplacian +import OAI.Geometry.RCD.Sobolev.GoodLaplacianCutoff + +namespace OAI + +/-! # Separating the bounded and annular parts of a localized Poisson source -/ + +open Set Filter Metric MeasureTheory +open scoped NNReal ENNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) [IsFiniteMeasureOnCompacts μ] (hQ : QuadraticCheegerEnergy μ) + +/-- The localized source is the sum of bounded data and an integrable L² +error supported in the cutoff annulus. Both parts are constructed from the +actual weak equation. -/ +theorem IsConstantLaplacianOn.cutoff_source_decomposition + {Ω : Set X} (f : SobolevSpace μ hQ) (c : ℝ) + (hf : IsConstantLaplacianOn μ hQ Ω f c) (A : ℝ≥0) + (hA : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ f x| ≤ A) + {p : X} {R C : ℝ} (hR : 0 < R) (hC : 0 ≤ C) + (χ : GoodLaplacianCutoff μ hQ p R C) (hΩ : closedBall p (2*R) ⊆ Ω) : + ∃ b e : Lp ℝ 2 μ, + IsWeakLaplacian μ hQ + (SobolevSpace.cutoffCLM μ hQ (B := 1) χ.lipschitz (χ.hasCompactSupport μ hQ) + (fun x => by rw [abs_of_nonneg (χ.bounds x).1]; exact (χ.bounds x).2) + (fun x => (χ.bounds x).1) f) (b+e) ∧ + (∀ᵐ x ∂μ, |b x| ≤ |c|+A*(C/R^2)) ∧ + Integrable e μ ∧ + (e =ᵐ[μ] fun x => 2*localGamma μ hQ f χ.sobolev x) ∧ + (∀ᵐ x ∂μ, e x ≠ 0 → R ≤ dist x p ∧ dist x p ≤ 2*R) := by + have habs (x : X) : |χ.weight x| ≤ (1:ℝ≥0) := by + rw [abs_of_nonneg (χ.bounds x).1] + exact (χ.bounds x).2 + obtain ⟨q,hq,hqrep⟩ := hf.cutoff_weakLaplacian μ hQ f χ.sobolev c + χ.laplacian χ.weak_laplacian χ.lipschitz (χ.hasCompactSupport μ hQ) + habs (fun x => (χ.bounds x).1) ((χ.tsupport_subset μ hQ).trans hΩ) χ.representative hA + have hgrad : ∀ᵐ x ∂μ, localGamma μ hQ χ.sobolev χ.sobolev x ≤ (C/R)^2 := by + have hh := SobolevSpace.minimalSlope_le_lipschitz μ hQ χ.sobolev χ.lipschitz χ.representative + filter_upwards [hh,localGamma_self μ hQ χ.sobolev, + (Lp.coeFn_nonneg _).mpr (SobolevSpace.minimalSlope_nonneg μ hQ χ.sobolev)] with x hx he h0 + rw [Real.coe_toNNReal _ (div_nonneg hC hR.le)] at hx + rw [he] + exact pow_le_pow_left₀ h0 hx 2 + have hm : MemLp (localGamma μ hQ f χ.sobolev) 2 μ := by + simpa only [Measure.restrict_univ] using + localGamma_memLp_two_of_bound μ hQ univ f χ.sobolev + (by simpa only [Measure.restrict_univ] using hgrad) + let e := (hm.const_mul 2).toLp (fun x => 2*localGamma μ hQ f χ.sobolev x) + have herep : e =ᵐ[μ] fun x => 2*localGamma μ hQ f χ.sobolev x := MemLp.coeFn_toLp _ + let b := q-e + have hb : b =ᵐ[μ] fun x => c*χ.weight x+SobolevSpace.toLp μ hQ f x*χ.laplacian x := by + filter_upwards [Lp.coeFn_sub q e,hqrep,herep] with x hx hqx hex + change (q-e) x = _ + rw [hx] + change q x-e x = _ + rw [hqx,hex] + ring + refine ⟨b,e,?_,?_,?_,herep,?_⟩ + · have heq : b+e = q := by dsimp [b]; abel + rw [heq] + exact hq + · filter_upwards [hb,hA,χ.laplacian_bound] with x hx ha hd + rw [hx] + calc + _ ≤ |c*χ.weight x|+|SobolevSpace.toLp μ hQ f x*χ.laplacian x| := abs_add_le _ _ + _ ≤ |c|+A*(C/R^2) := by + rw [abs_mul,abs_mul] + exact add_le_add ((mul_le_mul_of_nonneg_left (habs x) (abs_nonneg c)).trans_eq (mul_one _)) + (mul_le_mul ha hd (abs_nonneg _) A.coe_nonneg) + · exact ((localGamma_memL1 μ hQ f χ.sobolev).const_mul 2).congr herep.symm + · filter_upwards [herep,χ.representative,localGamma_comm μ hQ f χ.sobolev, + localGamma_zero_on_level μ hQ χ.sobolev f 0, + localGamma_zero_on_level μ hQ χ.sobolev f 1] with x he hc hcomm hz ho + intro hne + constructor + · by_contra hnot + have hχ : χ.weight x = 1 := χ.one x (lt_of_not_ge hnot) + have hg : localGamma μ hQ f χ.sobolev x = 0 := hcomm.trans (ho (hc.trans hχ)) + exact hne (by rw [he,hg,mul_zero]) + · by_contra hnot + have hχ : χ.weight x = 0 := χ.zero x (by rw [dist_comm]; exact lt_of_not_ge hnot) + have hg : localGamma μ hQ f χ.sobolev x = 0 := hcomm.trans (hz (hc.trans hχ)) + exact hne (by rw [he,hg,mul_zero]) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/PoissonDefectBudget.lean b/lean/OAI/Geometry/RCD/Sobolev/PoissonDefectBudget.lean new file mode 100644 index 0000000000000000000000000000000000000000..bac26c3dc70bc39001debada37657b6e0988b3bc --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/PoissonDefectBudget.lean @@ -0,0 +1,84 @@ +import OAI.Geometry.RCD.Metric.DistanceSourceBudget + +namespace OAI + +/-! # The summable defect including the Poisson curvature remainder -/ + +open Set Metric MeasureTheory +open scoped BigOperators + +noncomputable section +namespace RegularPointCoordinates + +theorem distanceSourceRadius_sq (r0 : ℝ) (i : ℕ) : + (distanceSourceRadius r0 i) ^ 2 = r0 ^ 2 / 4 * (1 / 4 : ℝ) ^ i := by + have h := distanceSourceRadius_four_sq r0 i + nlinarith + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) [IsFiniteMeasureOnCompacts μ] (hQ : QuadraticCheegerEnergy μ) + +/-- The second term is the actual curvature remainder in the shifted +Poisson mass estimate, in the same normalized units as the full source. -/ +def normalizedPoissonDefect {n : ℕ} {κ r0 : ℝ} {p : X} + (S : DyadicDistanceSources μ hQ n κ p r0) (i : ℕ) : ℝ := + normalizedDistanceSourceMass μ hQ S i + κ * (distanceSourceRadius r0 i) ^ 2 * + ((distanceSourceRadius r0 i) ^ (-(n : ℝ)) * μ.real (ball p (distanceSourceRadius r0 i))) + +theorem normalizedPoissonDefect_nonneg {n : ℕ} {κ r0 : ℝ} {p : X} + (S : DyadicDistanceSources μ hQ n κ p r0) (hκ : 0 ≤ κ) (i : ℕ) : + 0 ≤ normalizedPoissonDefect μ hQ S i := by + have hs := distanceSourceRadius_pos S.radius_pos i + dsimp only [normalizedPoissonDefect, normalizedDistanceSourceMass] + positivity + +/-- Source and curvature masses have exactly the same normalization; +the identity uses the actual volume, not a Euclidean replacement. -/ +theorem normalizedPoissonDefect_units {n : ℕ} {κ r0 : ℝ} {p : X} + (S : DyadicDistanceSources μ hQ n κ p r0) (i : ℕ) : + (distanceSourceRadius r0 i) ^ (n : ℝ) * normalizedPoissonDefect μ hQ S i = + (S.source i).real (ball p (distanceSourceRadius r0 i)) + + κ * (distanceSourceRadius r0 i) ^ 2 * μ.real (ball p (distanceSourceRadius r0 i)) := by + have hs := distanceSourceRadius_pos S.radius_pos i + have hp := Real.rpow_pos_of_pos hs (n : ℝ) + dsimp only [normalizedPoissonDefect, normalizedDistanceSourceMass] + rw [Real.rpow_neg hs.le] + field_simp [hp.ne'] + +/-- The extra curvature remainder costs at most kappa*C*r0²/3 in the +total budget. The original positive source measures remain unchanged. -/ +theorem DyadicDistanceSources.poisson_defect_budget {n : ℕ} {κ r0 C : ℝ} {p : X} + (S : DyadicDistanceSources μ hQ n κ p r0) (hκ : 0 ≤ κ) (hC : 0 ≤ C) + (hsource : Summable (normalizedDistanceSourceMass μ hQ S)) + (hvolume : ∀ i, (distanceSourceRadius r0 i) ^ (-(n : ℝ)) * + μ.real (ball p (distanceSourceRadius r0 i)) ≤ C) : + Summable (normalizedPoissonDefect μ hQ S) ∧ + (∑' i, normalizedPoissonDefect μ hQ S i) ≤ + (∑' i, normalizedDistanceSourceMass μ hQ S i) + κ * C * r0 ^ 2 / 3 := by + let V := fun i => κ * (distanceSourceRadius r0 i) ^ 2 * + ((distanceSourceRadius r0 i) ^ (-(n : ℝ)) * μ.real (ball p (distanceSourceRadius r0 i))) + have hV (i : ℕ) : 0 ≤ V i := by + have hs := distanceSourceRadius_pos S.radius_pos i + dsimp only [V] + positivity + have hpoint (i : ℕ) : V i ≤ (κ * C * r0 ^ 2 / 4) * (1 / 4 : ℝ) ^ i := by + calc + _ ≤ κ * (distanceSourceRadius r0 i) ^ 2 * C := + mul_le_mul_of_nonneg_left (hvolume i) (by positivity) + _ = _ := by rw [distanceSourceRadius_sq]; ring + have hfinite (k : ℕ) : (∑ i ∈ Finset.range k, V i) ≤ κ * C * r0 ^ 2 / 3 := by + have hh := Finset.sum_le_sum (s := Finset.range k) (fun i _ => hpoint i) + rw [← Finset.mul_sum] at hh + exact hh.trans ((mul_le_mul_of_nonneg_left (sum_range_quarter_pow_le k) + (by positivity : 0 ≤ κ * C * r0 ^ 2 / 4)).trans_eq (by ring)) + have hVs : Summable V := summable_of_sum_range_le hV hfinite + refine ⟨hsource.add hVs, ?_⟩ + change (∑' (i : ℕ), (normalizedDistanceSourceMass μ hQ S i + V i)) ≤ _ + rw [hsource.tsum_add hVs] + exact add_le_add (le_refl _) (Real.tsum_le_of_sum_range_le hV hfinite) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/PoissonEnergyError.lean b/lean/OAI/Geometry/RCD/Sobolev/PoissonEnergyError.lean new file mode 100644 index 0000000000000000000000000000000000000000..073a7cf49b7e693bc19f763ad42e80c9128eec10 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/PoissonEnergyError.lean @@ -0,0 +1,110 @@ +import OAI.Geometry.RCD.Metric.PositiveSourceMeasure + +namespace OAI + +/-! +# Energy-density error for a Poisson replacement + +The linear positive-source gradient bound controls the difference of the +squared gradients of the boundary datum and its Poisson replacement. This is +the error paired with the Laplacian of a cutoff in the shifted Bochner mass. +-/ + +open Set MeasureTheory +open scoped InnerProductSpace ENNReal + +noncomputable section + +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +/-- Pointwise polarization with the actual minimal weak upper gradient. -/ +theorem poisson_energy_density_error_ae (q h : SobolevSpace μ hQ) : + ∀ᵐ x ∂μ, + |(1 / 2 : ℝ) * localGamma μ hQ (q - h) (q - h) x - + (1 / 2 : ℝ) * localGamma μ hQ q q x| ≤ + SobolevSpace.minimalSlope μ hQ q x * SobolevSpace.minimalSlope μ hQ h x + + (1 / 2 : ℝ) * (SobolevSpace.minimalSlope μ hQ h x) ^ 2 := by + filter_upwards [localGamma_sub_left μ hQ q h (q - h), + localGamma_comm μ hQ q (q - h), localGamma_comm μ hQ h (q - h), + localGamma_sub_left μ hQ q h q, localGamma_sub_left μ hQ q h h, + localGamma_comm μ hQ h q, localGamma_self μ hQ h, + localGamma_abs_le μ hQ q h] with x hs hc hd hs' ht hcomm hself hcs + have hid : (1 / 2 : ℝ) * localGamma μ hQ (q - h) (q - h) x - + (1 / 2 : ℝ) * localGamma μ hQ q q x = + -localGamma μ hQ q h x + (1 / 2 : ℝ) * (SobolevSpace.minimalSlope μ hQ h x) ^ 2 := by + rw [hs, hc, hd, hs', ht, hcomm, hself] + ring + rw [hid] + calc + _ ≤ |-localGamma μ hQ q h x| + + |(1 / 2 : ℝ) * (SobolevSpace.minimalSlope μ hQ h x) ^ 2| := abs_add_le _ _ + _ = |localGamma μ hQ q h x| + + (1 / 2 : ℝ) * (SobolevSpace.minimalSlope μ hQ h x) ^ 2 := by + rw [abs_neg, abs_of_nonneg (show 0 ≤ (1 / 2 : ℝ) * + (SobolevSpace.minimalSlope μ hQ h x) ^ 2 from + mul_nonneg (by norm_num) (sq_nonneg _))] + _ ≤ _ := add_le_add hcs le_rfl + +/-- Integral form of the energy-density error. -/ +theorem poisson_energy_density_error_le (Ω : Set X) (q h : SobolevSpace μ hQ) + {A : ℝ} + (hq : ∀ᵐ x ∂μ.restrict Ω, SobolevSpace.minimalSlope μ hQ q x ≤ A) + (hhi : IntegrableOn (fun x => SobolevSpace.minimalSlope μ hQ h x) Ω μ) : + (∫ x in Ω, |(1 / 2 : ℝ) * localGamma μ hQ (q - h) (q - h) x - + (1 / 2 : ℝ) * localGamma μ hQ q q x| ∂μ) ≤ + A * (∫ x in Ω, SobolevSpace.minimalSlope μ hQ h x ∂μ) + + (1 / 2 : ℝ) * ∫ x in Ω, (SobolevSpace.minimalSlope μ hQ h x) ^ 2 ∂μ := by + have hsq : IntegrableOn (fun x => (SobolevSpace.minimalSlope μ hQ h x) ^ 2) Ω μ := + ((localGamma_memL1 μ hQ h h).congr (localGamma_self μ hQ h)).integrableOn + have herr := (((localGamma_memL1 μ hQ (q - h) (q - h)).const_mul (1 / 2 : ℝ)).sub + ((localGamma_memL1 μ hQ q q).const_mul (1 / 2 : ℝ))).abs.integrableOn (s := Ω) + have hb : ∀ᵐ x ∂μ.restrict Ω, + |(1 / 2 : ℝ) * localGamma μ hQ (q - h) (q - h) x - + (1 / 2 : ℝ) * localGamma μ hQ q q x| ≤ + A * SobolevSpace.minimalSlope μ hQ h x + + (1 / 2 : ℝ) * (SobolevSpace.minimalSlope μ hQ h x) ^ 2 := by + filter_upwards [ae_restrict_of_ae (poisson_energy_density_error_ae μ hQ q h), hq, + ae_restrict_of_ae ((Lp.coeFn_nonneg _).mpr (SobolevSpace.minimalSlope_nonneg μ hQ h))] + with x he hq hg + exact he.trans (add_le_add (mul_le_mul_of_nonneg_right hq hg) le_rfl) + have hi := integral_mono_ae herr ((hhi.const_mul A).add (hsq.const_mul (1 / 2 : ℝ))) hb + simpa only [Pi.add_apply, Pi.sub_apply, integral_add (hhi.const_mul A) (hsq.const_mul (1 / 2 : ℝ)), integral_const_mul] using hi + +/-- Linear source-mass control of the replacement's energy-density error. -/ +theorem poisson_energy_density_error_le_source (Ω : Set X) (hΩ : MeasurableSet Ω) + (hΩfin : μ Ω ≠ ∞) (q : SobolevSpace μ hQ) (h : SobolevSpace.dirichlet μ hQ Ω) + (σ : Measure X) [IsFiniteMeasure σ] + (hsource : IsDirichletMeasureSource μ hQ Ω h.val σ) + {d C B A : ℝ} (hd : 1 < d) (hC : 0 ≤ C) (hB : 0 ≤ B) (hA : 0 ≤ A) + (hh : ∀ᵐ x ∂μ, 0 ≤ SobolevSpace.toLp μ hQ h.val x ∧ + SobolevSpace.toLp μ hQ h.val x ≤ B) + (hq : ∀ᵐ x ∂μ.restrict Ω, SobolevSpace.minimalSlope μ hQ q x ≤ A) + (hsob : ∀ φ : SobolevSpace.dirichlet μ hQ Ω, + (∫ x in Ω, |SobolevSpace.toLp μ hQ φ.val x| ^ (2 * d) ∂μ) ^ (1 / d) ≤ + C * energyForm μ hQ φ.val φ.val) : + (∫ x in Ω, |(1 / 2 : ℝ) * localGamma μ hQ (q - h.val) (q - h.val) x - + (1 / 2 : ℝ) * localGamma μ hQ q q x| ∂μ) ≤ + (A * positiveSourceGradientBound (μ.real Ω) C d ((1 + d) / 2) + B / 2) * σ.real Ω := by + obtain ⟨hi, hL1, hL2⟩ := positive_source_bounds_of_measure μ hQ Ω hΩ hΩfin h σ + hsource hd hC hB hh hsob + have hsq : Integrable (fun x => (SobolevSpace.minimalSlope μ hQ h.val x) ^ 2) μ := + (localGamma_memL1 μ hQ h.val h.val).congr (localGamma_self μ hQ h.val) + have hL2' : (∫ x in Ω, (SobolevSpace.minimalSlope μ hQ h.val x) ^ 2 ∂μ) ≤ σ.real Ω * B := by + exact (setIntegral_le_integral hsq (Filter.Eventually.of_forall fun _ => sq_nonneg _)).trans hL2 + calc + _ ≤ A * (∫ x in Ω, SobolevSpace.minimalSlope μ hQ h.val x ∂μ) + + (1 / 2 : ℝ) * ∫ x in Ω, (SobolevSpace.minimalSlope μ hQ h.val x) ^ 2 ∂μ := + poisson_energy_density_error_le μ hQ Ω q h.val hq hi + _ ≤ A * (σ.real Ω * positiveSourceGradientBound (μ.real Ω) C d ((1 + d) / 2)) + + (1 / 2 : ℝ) * (σ.real Ω * B) := + add_le_add (mul_le_mul_of_nonneg_left hL1 hA) (mul_le_mul_of_nonneg_left hL2' (by norm_num)) + _ = _ := by ring + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/PoissonEnergySubsolution.lean b/lean/OAI/Geometry/RCD/Sobolev/PoissonEnergySubsolution.lean new file mode 100644 index 0000000000000000000000000000000000000000..348148abe02e197b30cd8d3511aa39280fc76557 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/PoissonEnergySubsolution.lean @@ -0,0 +1,66 @@ +import OAI.Geometry.RCD.Sobolev.BochnerWeakSubsolution +import OAI.Geometry.RCD.Sobolev.PoissonHessianInput + +namespace OAI + +/-! # The actual Poisson energy as a weak subsolution -/ + +open Set Metric Filter MeasureTheory +open scoped NNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +/-- The one-dimensional span of a constant-source solution is enough for +the finite-span Bochner input. -/ +theorem LocalPoissonHessianInput.energy_subsolution {K : ℝ} {n : ℕ} + {hX : NoncollapsedRCD K n X} (hess : LocalPoissonHessianInput hX) + (κ : ℝ) (hκ : 0 ≤ κ) (hK : -κ ≤ K) (p : X) (r : ℝ) (hr : 0 < r) + (f : SobolevSpace (hausdorff n X) hX.quadratic) (c : ℝ) (L : ℝ≥0) + (hf : IsConstantLaplacianOn (hausdorff n X) hX.quadratic (ball p (8*r)) f c) + (hgrad : ∀ᵐ x ∂(hausdorff n X).restrict (ball p (8*r)), + localGamma (hausdorff n X) hX.quadratic f f x ≤ (L:ℝ)^2) : + ∃ (e : SobolevSpace (hausdorff n X) hX.quadratic) (B : ℝ), 0 ≤ B ∧ + SobolevSpace.toLp (hausdorff n X) hX.quadratic e =ᵐ[(hausdorff n X).restrict (ball p (2*r))] + localGamma (hausdorff n X) hX.quadratic f f ∧ + (∀ᵐ x ∂hausdorff n X, |SobolevSpace.toLp (hausdorff n X) hX.quadratic e x| ≤ B) ∧ + IsWeakSubsolutionOn (hausdorff n X) hX.quadratic (ball p (2*r)) e (2*κ) := by + let μ := hausdorff n X + let U : Euclidean (n+2) →L[ℝ] SobolevSpace μ hX.quadratic := + (EuclideanSpace.proj (0 : Fin (n+2))).smulRight f + let ell : Euclidean (n+2) →ₗ[ℝ] ℝ := c • EuclideanSpace.projₗ 0 + have hUv (v : Euclidean (n+2)) : U v = v 0 • f := rfl + have hc (v : Euclidean (n+2)) : + IsConstantLaplacianOn μ hX.quadratic (ball p (8*r)) (U v) (ell v) := by + simpa only [hUv,ell,LinearMap.smul_apply,EuclideanSpace.projₗ,PiLp.projₗ_apply, + smul_eq_mul,mul_comm] using hf.smul μ hX.quadratic (v 0) + have hg (v : Euclidean (n+2)) : + ∀ᵐ x ∂μ.restrict (ball p (8*r)), localGamma μ hX.quadratic (U v) (U v) x ≤ + (L:ℝ)^2*‖v‖^2 := by + rw [hUv] + have hv : |v 0| ≤ ‖v‖ := by simpa only [Real.norm_eq_abs] using PiLp.norm_apply_le v 0 + filter_upwards [hgrad, + ae_restrict_of_ae (localGamma_smul_left μ hX.quadratic (v 0) f (v 0 • f)), + ae_restrict_of_ae (localGamma_smul_right μ hX.quadratic (v 0) f f)] with x hx hl hr' + rw [hl,hr'] + calc + _ = (v 0)^2*localGamma μ hX.quadratic f f x := by ring + _ ≤ (v 0)^2*(L:ℝ)^2 := mul_le_mul_of_nonneg_left hx (sq_nonneg _) + _ ≤ (L:ℝ)^2*‖v‖^2 := by + have hh := mul_le_mul_of_nonneg_left (pow_le_pow_left₀ (abs_nonneg _) hv 2) (sq_nonneg (L:ℝ)) + simpa only [sq_abs,mul_comm] using hh + obtain ⟨M,hM,_,_⟩ := hess κ hκ hK p r hr L U ell hc hg + let v : Euclidean (n+2) := EuclideanSpace.single 0 1 + obtain ⟨G⟩ := hM v + have hv : U v = f := by simp [hUv,v] + refine ⟨G.energy,((L^2*‖v‖₊^2:ℝ≥0):ℝ),by positivity,?_,G.bounded,?_⟩ + · simpa only [hv] using G.representative + · exact G.weak_subsolution μ hX.quadratic + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/PoissonFamilyGradient.lean b/lean/OAI/Geometry/RCD/Sobolev/PoissonFamilyGradient.lean new file mode 100644 index 0000000000000000000000000000000000000000..276fb9a3b5fdf58788a976a2d22bfcc4ad99fd56 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/PoissonFamilyGradient.lean @@ -0,0 +1,80 @@ +import OAI.Geometry.RCD.Sobolev.PoissonCommonRegion + +namespace OAI + +/-! # Uniform interior gradient bounds for the actual Poisson family -/ + +open Set Metric MeasureTheory + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +/-- A single gradient constant works for every center and actual replacement, +including interior balls centered near the source center. -/ +theorem poisson_family_gradient {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (hn : 2 ≤ n) + (hgradient : LocalPoissonGradientInput hX) {κ B : ℝ} (hκ : 0 ≤ κ) : + letI : IsLocallyFiniteMeasure (hausdorff n X) := + locallyFinite_of_finiteOnBounded _ hX.finiteOnBounded + ∃ A : ℝ, 0 < A ∧ ∀ (p z : X) (r0 J Cχ : ℝ) + (S : DyadicDistanceSources (hausdorff n X) hX.quadratic n κ p r0) + (T : DyadicDistanceReplacements (hausdorff n X) hX.quadratic S B J Cχ) (i : ℕ), + distanceSourceRadius r0 i ≤ 1 → + dist z p ≤ distanceSourceRadius r0 i / 4 → + -1 ≤ K * (distanceSourceRadius r0 i / 16) ^ 2 → + ∀ᵐ x ∂(hausdorff n X).restrict (ball z (distanceSourceRadius r0 i / 4)), + localGamma (hausdorff n X) hX.quadratic (T.replacement i) (T.replacement i) x ≤ + (A * distanceSourceRadius r0 i) ^ 2 := by + let : IsLocallyFiniteMeasure (hausdorff n X) := + locallyFinite_of_finiteOnBounded _ hX.finiteOnBounded + obtain ⟨C, hC, hbound⟩ := hgradient hn + let G := 16 * max 8 B + ((n : ℝ) + 16 * κ) / 16 + have hG : 0 < G := by + have hh := le_max_left (8 : ℝ) B + dsimp only [G] + positivity + refine ⟨C * G, mul_pos (by linarith) hG, ?_⟩ + intro p z r0 J Cχ S T i hs1 hdist hcurv + let s := distanceSourceRadius r0 i + have hs : 0 < s := distanceSourceRadius_pos S.radius_pos i + have hsub : 8 * (s / 16) + dist z p ≤ s := by change dist z p ≤ s / 4 at hdist; linarith + have hf : IsConstantLaplacianOn (hausdorff n X) hX.quadratic (ball z (8 * (s / 16))) + (T.replacement i) ((n : ℝ) + κ * (4 * s) ^ 2) := + T.laplacian_on_ball (hausdorff n X) hX.quadratic i z hsub + have hv : ∀ᵐ x ∂(hausdorff n X).restrict (ball z (8 * (s / 16))), + |SobolevSpace.toLp (hausdorff n X) hX.quadratic (T.replacement i) x| ≤ max 8 B * s ^ 2 := + ae_restrict_of_ae (T.value_bound (hausdorff n X) hX.quadratic i) + have hh := hbound z (s / 16) (by positivity) hcurv (T.replacement i) + ((n : ℝ) + κ * (4 * s) ^ 2) (max 8 B * s ^ 2) + (mul_nonneg ((by norm_num : (0 : ℝ) ≤ 8).trans (le_max_left _ _)) (sq_nonneg s)) hf hv + have ha0 : 0 ≤ (n : ℝ) + κ * (4 * s) ^ 2 := by positivity + have ha : (n : ℝ) + κ * (4 * s) ^ 2 ≤ (n : ℝ) + 16 * κ := by + have hs2 : s ^ 2 ≤ 1 := by change s ≤ 1 at hs1; nlinarith + have hm := mul_le_mul_of_nonneg_left hs2 hκ + nlinarith + have hraw : max 8 B * s ^ 2 / (s / 16) + + |(n : ℝ) + κ * (4 * s) ^ 2| * (s / 16) ≤ G * s := by + rw [abs_of_nonneg ha0] + have he : max 8 B * s ^ 2 / (s / 16) = 16 * max 8 B * s := by field_simp + rw [he] + dsimp only [G] + have hm := mul_le_mul_of_nonneg_right ha (by positivity : 0 ≤ s / 16) + nlinarith + have hraw0 : 0 ≤ C * (max 8 B * s ^ 2 / (s / 16) + + |(n : ℝ) + κ * (4 * s) ^ 2| * (s / 16)) := by + have hm : 0 ≤ max (8 : ℝ) B := (by norm_num : (0 : ℝ) ≤ 8).trans (le_max_left _ _) + positivity + have hcomp : (C * (max 8 B * s ^ 2 / (s / 16) + + |(n : ℝ) + κ * (4 * s) ^ 2| * (s / 16))) ^ 2 ≤ ((C * G) * s) ^ 2 := by + apply (sq_le_sq₀ hraw0 (mul_nonneg (mul_pos (by linarith) hG).le hs.le)).mpr + simpa only [mul_assoc] using mul_le_mul_of_nonneg_left hraw (by linarith : 0 ≤ C) + rw [show 4 * (s / 16) = s / 4 by ring] at hh + exact hh.mono fun _ hx => hx.trans hcomp + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/PoissonGradientBochner.lean b/lean/OAI/Geometry/RCD/Sobolev/PoissonGradientBochner.lean new file mode 100644 index 0000000000000000000000000000000000000000..bb621cfd6b82f18ae04a158281d67a76087993d7 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/PoissonGradientBochner.lean @@ -0,0 +1,113 @@ +import OAI.Geometry.RCD.Coordinates.CoordinateHeatInput +import OAI.Geometry.RCD.Sobolev.PoissonEnergySubsolution +import OAI.Geometry.RCD.Sobolev.PoissonGradientBoundedness +import OAI.Geometry.RCD.Sobolev.PoissonBallEnergy +import OAI.Geometry.RCD.Sobolev.SubsolutionL1Mean + +namespace OAI + +/-! # Scale-uniform Poisson gradient control from the energy subsolution -/ + +open Set Metric Filter MeasureTheory +open scoped NNReal ENNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +/-- The Bochner mean bound removes the small-radius restriction from the +heat construction of a locally bounded gradient. -/ +theorem NoncollapsedRCD.poisson_gradient_bochner {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) [(hausdorff n X).Regular] (hn : 2 ≤ n) + {ker : ℝ → X → X → ℝ} + (hk : IsContinuousHeatKernel (hausdorff n X) hX.quadratic ker) + (hg : HasCoordinateHeatBounds (hausdorff n X) ker) + (hess : LocalPoissonHessianInput hX) : + ∃ C : ℝ, 1 ≤ C ∧ ∀ (p : X) (r : ℝ), 0 < r → -1 ≤ K*r^2 → + ∀ (f : SobolevSpace (hausdorff n X) hX.quadratic) (c : ℝ) (A : ℝ≥0), + IsConstantLaplacianOn (hausdorff n X) hX.quadratic (ball p (8*r)) f c → + (∀ᵐ x ∂hausdorff n X, |SobolevSpace.toLp (hausdorff n X) hX.quadratic f x| ≤ A) → + ∀ᵐ x ∂(hausdorff n X).restrict (ball p (r/2)), + localGamma (hausdorff n X) hX.quadratic f f x ≤ (C*((A:ℝ)/r+|c| *r))^2 := by + obtain ⟨M,hM,hmean⟩ := hX.subsolution_l1_mean_value hn 2 (by norm_num) + obtain ⟨D,hD,hvolume⟩ := hX.rescaled_ball_volume_factor hn (a := 16) (δ := 1/4) + (by norm_num) (by norm_num) (by norm_num) + let C := 1+4*M*D + have hM0 : 0 ≤ M := zero_le_one.trans hM + have hD0 : 0 ≤ D := zero_le_one.trans hD + have hMD : 0 ≤ M*D := mul_nonneg hM0 hD0 + have hC : 1 ≤ C := by dsimp only [C]; nlinarith + refine ⟨C,hC,?_⟩ + intro p r hr hcurv f c A hf hA + let μ := hausdorff n X + let κ := max (-K) 0 + have hκ : 0 ≤ κ := le_max_right _ _ + have hκK : -κ ≤ K := by have hh := le_max_left (-K) 0; dsimp only [κ]; linarith + have hκr : (2*κ)*r^2 ≤ 2 := by + by_cases hK : 0 ≤ K + · have he : κ = 0 := max_eq_right (neg_nonpos.mpr hK) + rw [he]; norm_num + · have he : κ = -K := max_eq_left (neg_nonneg.mpr (le_of_not_ge hK)) + rw [he]; nlinarith only [hcurv] + have hf4 := hf.mono μ hX.quadratic measurableSet_ball + (ball_subset_ball (by linarith : 4*r ≤ 8*r)) + obtain ⟨L,hL⟩ := hX.poisson_gradient_locally_bounded hn hk hg p r hr f c A hf + (ae_restrict_of_ae hA) + obtain ⟨e,B,hB,herep,hebound,hesub⟩ := hess.energy_subsolution κ hκ hκK p (r/2) + (by positivity) f c L (by simpa only [show 8*(r/2) = 4*r by ring] using hf4) + (by simpa only [show 8*(r/2) = 4*r by ring] using hL) + rw [show 2*(r/2) = r by ring] at herep hesub + have hepos : ∀ᵐ x ∂μ.restrict (ball p r), + 0 ≤ SobolevSpace.toLp μ hX.quadratic e x ∧ SobolevSpace.toLp μ hX.quadratic e x ≤ B := by + filter_upwards [herep,ae_restrict_of_ae (localGamma_self μ hX.quadratic f), + ae_restrict_of_ae hebound] with x he hsq hb + constructor + · rw [he,hsq]; positivity + · exact (le_abs_self _).trans hb + have hm := hmean p r hr hcurv e (2*κ) B (by positivity) hκr hB hesub hepos + have henergy := hX.poisson_ball_energy p r hr f c A hf4 hA + have hi : (∫ x in ball p r, SobolevSpace.toLp μ hX.quadratic e x ∂μ) ≤ + (2*|c| *A+4*(A:ℝ)^2*(r⁻¹)^2)*μ.real (ball p (4*r)) := by + rw [integral_congr_ae herep] + exact henergy + have hcurv4 : -16 ≤ K*(4*r)^2 := by nlinarith only [hcurv] + have hv : μ.real (ball p (4*r)) ≤ D*μ.real (ball p r) := by + have hh := hvolume p (4*r) (by positivity) hcurv4 p (by simp; positivity) + simpa only [show (1/4:ℝ)*(4*r) = r by ring] using hh + have hV : 0 < μ.real (ball p r) := ENNReal.toReal_pos (hX.fullSupport p r hr).ne' + (hX.finiteOnBounded _ isBounded_ball).ne + let E := 2*|c| *A+4*(A:ℝ)^2*(r⁻¹)^2 + have hE : 0 ≤ E := by positivity + have hint : (μ.real (ball p r))⁻¹*(∫ x in ball p r, SobolevSpace.toLp μ hX.quadratic e x ∂μ) ≤ D*E := by + calc + _ ≤ (μ.real (ball p r))⁻¹*(E*(D*μ.real (ball p r))) := + mul_le_mul_of_nonneg_left (hi.trans (mul_le_mul_of_nonneg_left hv hE)) (inv_nonneg.mpr hV.le) + _ = _ := by field_simp + have halg : M*(D*E) ≤ (C*((A:ℝ)/r+|c| *r))^2 := by + have hAE : E ≤ 4*((A:ℝ)/r+|c| *r)^2 := by + have heq : E = 2*((A:ℝ)/r)*(|c| *r)+4*((A:ℝ)/r)^2 := by + dsimp only [E] + field_simp + rw [heq] + nlinarith [sq_nonneg (|c| *r), + mul_nonneg (div_nonneg A.coe_nonneg hr.le) (mul_nonneg (abs_nonneg c) hr.le)] + have hc2 : 4*M*D ≤ C^2 := by dsimp only [C]; nlinarith [sq_nonneg (4*M*D)] + calc + _ ≤ (4*M*D)*((A:ℝ)/r+|c| *r)^2 := by + have hh := mul_le_mul_of_nonneg_left hAE hMD + nlinarith only [hh] + _ ≤ _ := by rw [mul_pow]; exact mul_le_mul_of_nonneg_right hc2 (sq_nonneg _) + filter_upwards [hm,ae_restrict_of_ae_restrict_of_subset + (ball_subset_ball (by linarith : r/2 ≤ r)) herep] with x hx he + rw [he] at hx + have hh : M*(μ.real (ball p r))⁻¹*(∫ z in ball p r, + SobolevSpace.toLp μ hX.quadratic e z ∂μ) ≤ M*(D*E) := by + simpa only [mul_assoc] using mul_le_mul_of_nonneg_left hint hM0 + exact hx.trans (hh.trans halg) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/PoissonGradientBoundedness.lean b/lean/OAI/Geometry/RCD/Sobolev/PoissonGradientBoundedness.lean new file mode 100644 index 0000000000000000000000000000000000000000..c07314f33472030a641bbfd631038ca8ef8f6475 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/PoissonGradientBoundedness.lean @@ -0,0 +1,74 @@ +import OAI.Geometry.RCD.Coordinates.CoordinateHeatInput +import OAI.Geometry.RCD.Sobolev.PoissonInteriorSmallRadii + +namespace OAI + +/-! # Local boundedness of the gradient on arbitrary interior balls -/ + +open Set Filter Metric MeasureTheory +open scoped NNReal ENNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +/-- A uniformly small auxiliary radius gives qualitative boundedness on +every interior ball. The later Bochner iteration removes its radius loss. -/ +theorem NoncollapsedRCD.poisson_gradient_locally_bounded {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) [(hausdorff n X).Regular] (hn : 2 ≤ n) + {ker : ℝ → X → X → ℝ} + (hk : IsContinuousHeatKernel (hausdorff n X) hX.quadratic ker) + (hg : HasCoordinateHeatBounds (hausdorff n X) ker) + (p : X) (R : ℝ) (hR : 0 < R) + (f : SobolevSpace (hausdorff n X) hX.quadratic) (c : ℝ) (A : ℝ≥0) + (hf : IsConstantLaplacianOn (hausdorff n X) hX.quadratic (ball p (8*R)) f c) + (hA : ∀ᵐ x ∂(hausdorff n X).restrict (ball p (8*R)), |SobolevSpace.toLp _ _ f x| ≤ A) : + ∃ L : ℝ≥0, ∀ᵐ x ∂(hausdorff n X).restrict (ball p (4*R)), + localGamma (hausdorff n X) hX.quadratic f f x ≤ (L:ℝ)^2 := by + obtain ⟨M,hM,hlocal⟩ := hX.small_scale_poisson_gradient hn hk hg + let : TopologicalSpace.SeparableSpace X := hX.separable + let μ := hausdorff n X + let : IsLocallyFiniteMeasure μ := locallyFinite_of_finiteOnBounded μ hX.finiteOnBounded + obtain ⟨g,hg,hgA,hfg⟩ := hf.bounded_extension μ hX.quadratic measurableSet_ball A hA + have hpair := localGamma_pair_congr_ae μ hX.quadratic hfg hfg + let ρ := min (R/16) (1/(16*(|K|+1))) + have hρ : 0 < ρ := lt_min (by positivity) (by positivity) + have hρR : 16*ρ ≤ R := by have hh := min_le_left (R/16) (1/(16*(|K|+1))); dsimp only [ρ]; linarith + have hsmall : ρ*(16*(|K|+1)) ≤ 1 := + (le_div_iff₀ (by positivity)).mp (min_le_right (R/16) (1/(16*(|K|+1)))) + have hρ1 : ρ ≤ 1 := by + have hh : 0 ≤ |K| *ρ := mul_nonneg (abs_nonneg K) hρ.le + nlinarith + have hcurv : -1 ≤ K*(4*ρ)^2 := by + have h0 : 0 ≤ |K| *ρ := mul_nonneg (abs_nonneg K) hρ.le + have h1 : |K| *(4*ρ) ≤ 1 := by nlinarith only [hsmall,hρ.le] + have h2 : 4*ρ ≤ 1 := by nlinarith only [hsmall,h0] + have hh := mul_le_mul h1 h2 (by positivity : 0 ≤ 4*ρ) (by norm_num : (0:ℝ) ≤ 1) + have hK := mul_le_mul_of_nonneg_right (neg_abs_le K) (sq_nonneg (4*ρ)) + nlinarith only [hh,hK] + let L : ℝ≥0 := ⟨M*((A:ℝ)/ρ+|c| *ρ),by positivity⟩ + refine ⟨L,?_⟩ + have hestimate (q : ball p (4*R)) : + ∀ᵐ x ∂μ.restrict (ball q.val (ρ/16)), localGamma μ hX.quadratic f f x ≤ (L:ℝ)^2 := by + have hq : dist q.val p < 4*R := q.property + have hsub : ball q.val (16*ρ) ⊆ ball p (8*R) := ball_subset_ball' (by linarith) + have hh := hlocal q.val ρ hρ hρ1 hcurv g c A + (hg.mono μ hX.quadratic measurableSet_ball hsub) hgA + have hsub' : ball q.val (ρ/16) ⊆ ball p (8*R) := ball_subset_ball' (by linarith) + filter_upwards [hh,ae_restrict_of_ae_restrict_of_subset hsub' hpair] with x hx he + rw [he] + exact hx + let U : ball p (4*R) → Set X := fun q => ball q.val (ρ/16) + obtain ⟨s,hs,hcover⟩ := (HereditarilyLindelofSpace.isLindelof (ball p (4*R))).elim_countable_subcover + U (fun _ => isOpen_ball) (by + intro x hx + exact mem_iUnion.mpr ⟨⟨x,hx⟩,mem_ball_self (by positivity)⟩) + exact ae_restrict_of_ae_restrict_of_subset hcover + ((ae_restrict_biUnion_iff U hs _).mpr (fun q _ => hestimate q)) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/PoissonGradientBridge.lean b/lean/OAI/Geometry/RCD/Sobolev/PoissonGradientBridge.lean new file mode 100644 index 0000000000000000000000000000000000000000..294141c0bb774fb40de932fe065891725f3f8075 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/PoissonGradientBridge.lean @@ -0,0 +1,58 @@ +import OAI.Geometry.RCD.Sobolev.PoissonGradientInput +import OAI.Geometry.RCD.Sobolev.PoissonSourceEstimates + +namespace OAI + +/-! # Interior gradient control from the proved Poisson height estimate -/ + +open Set Metric MeasureTheory + +noncomputable section + +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +omit [BorelSpace X] [ProperSpace X] in +/-- The nonnegative replacement defect and a bound on the boundary datum +bound the absolute value of the actual Poisson replacement. -/ +theorem replacement_value_bound_of_height (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + (q f : SobolevSpace μ hQ) (Ω : Set X) {B H : ℝ} (hBH : B ≤ H) + (hq : ∀ᵐ x ∂μ.restrict Ω, + 0 ≤ SobolevSpace.toLp μ hQ q x ∧ SobolevSpace.toLp μ hQ q x ≤ B) + (hh : ∀ᵐ x ∂μ.restrict Ω, + 0 ≤ SobolevSpace.toLp μ hQ (q - f) x ∧ SobolevSpace.toLp μ hQ (q - f) x ≤ H) : + ∀ᵐ x ∂μ.restrict Ω, |SobolevSpace.toLp μ hQ f x| ≤ H := by + filter_upwards [hq, hh, + ae_restrict_of_ae (Lp.coeFn_sub (SobolevSpace.toLp μ hQ q) (SobolevSpace.toLp μ hQ f))] + with x hx hhx hsub + rw [map_sub, hsub, Pi.sub_apply] at hhx + exact abs_le.mpr ⟨by linarith, by linarith⟩ + +omit [ProperSpace X] in +/-- The gradient input now applies to the constructed replacement: +the required supremum bound is derived from the nonnegative Poisson defect. -/ +theorem LocalPoissonGradientInput.bound_of_replacement {K : ℝ} {n : ℕ} + {hX : NoncollapsedRCD K n X} (hgradient : LocalPoissonGradientInput hX) + (hn : 2 ≤ n) + (p : X) {r c B H : ℝ} (hr : 0 < r) (hcurv : -1 ≤ K * r ^ 2) + (hH : 0 ≤ H) (hBH : B ≤ H) + (q f : SobolevSpace (hausdorff n X) hX.quadratic) + (hf : IsConstantLaplacianOn (hausdorff n X) hX.quadratic (ball p (8 * r)) f c) + (hq : ∀ᵐ x ∂(hausdorff n X).restrict (ball p (8 * r)), + 0 ≤ SobolevSpace.toLp (hausdorff n X) hX.quadratic q x ∧ + SobolevSpace.toLp (hausdorff n X) hX.quadratic q x ≤ B) + (hh : ∀ᵐ x ∂(hausdorff n X).restrict (ball p (8 * r)), + 0 ≤ SobolevSpace.toLp (hausdorff n X) hX.quadratic (q - f) x ∧ + SobolevSpace.toLp (hausdorff n X) hX.quadratic (q - f) x ≤ H) : + ∃ C : ℝ, 1 ≤ C ∧ ∀ᵐ x ∂(hausdorff n X).restrict (ball p (4 * r)), + localGamma (hausdorff n X) hX.quadratic f f x ≤ (C * (H / r + |c| * r)) ^ 2 := by + obtain ⟨C, hC, hbound⟩ := hgradient hn + exact ⟨C, hC, hbound p r hr hcurv f c H hH hf + (replacement_value_bound_of_height _ _ q f _ hBH hq hh)⟩ + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/PoissonGradientConstruction.lean b/lean/OAI/Geometry/RCD/Sobolev/PoissonGradientConstruction.lean new file mode 100644 index 0000000000000000000000000000000000000000..d73a77e94ae6df3d5d557c7c5994d8ac703cd4d6 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/PoissonGradientConstruction.lean @@ -0,0 +1,66 @@ +import OAI.Geometry.RCD.Coordinates.CoordinateHeatInput +import OAI.Geometry.RCD.Sobolev.PoissonGradientBochner +import OAI.Geometry.RCD.Sobolev.PoissonGradientInput + +namespace OAI + +/-! # The Poisson gradient input from the retained RCD calculus -/ + +open Set Metric Filter MeasureTheory +open scoped NNReal ENNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +/-- Local truncation, Bochner interpolation and a countable interior cover +give the exact half-ball estimate at every permitted radius. -/ +theorem NoncollapsedRCD.poissonGradientInput {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) [(hausdorff n X).Regular] + {ker : ℝ → X → X → ℝ} + (hk : IsContinuousHeatKernel (hausdorff n X) hX.quadratic ker) + (hg : HasCoordinateHeatBounds (hausdorff n X) ker) + (hess : LocalPoissonHessianInput hX) : LocalPoissonGradientInput hX := by + intro hn + obtain ⟨M,hM,hlocal⟩ := hX.poisson_gradient_bochner hn hk hg hess + refine ⟨4*M,by linarith,?_⟩ + intro p r hr hcurv f c A hA hf hAbound + let : TopologicalSpace.SeparableSpace X := hX.separable + let μ := hausdorff n X + let : IsLocallyFiniteMeasure μ := locallyFinite_of_finiteOnBounded μ hX.finiteOnBounded + let AA : ℝ≥0 := ⟨A,hA⟩ + obtain ⟨g,hg,hgA,hfg⟩ := hf.bounded_extension μ hX.quadratic measurableSet_ball AA hAbound + have hpair := localGamma_pair_congr_ae μ hX.quadratic hfg hfg + have hcurv' : -1 ≤ K*(r/4)^2 := by nlinarith only [hcurv] + have hestimate (q : ball p (4*r)) : + ∀ᵐ x ∂μ.restrict (ball q.val (r/8)), + localGamma μ hX.quadratic f f x ≤ ((4*M)*(A/r+|c| *r))^2 := by + have hq : dist q.val p < 4*r := q.property + have hsub : ball q.val (8*(r/4)) ⊆ ball p (8*r) := ball_subset_ball' (by linarith) + have hh := hlocal q.val (r/4) (by positivity) hcurv' g c AA + (hg.mono μ hX.quadratic measurableSet_ball hsub) hgA + rw [show (r/4)/2 = r/8 by ring] at hh + have hsmall : ball q.val (r/8) ⊆ ball p (8*r) := ball_subset_ball' (by linarith) + have hcoeff : M*(A/(r/4)+|c| *(r/4)) ≤ (4*M)*(A/r+|c| *r) := by + have heq : A/(r/4) = 4*(A/r) := by ring + rw [heq] + nlinarith only [mul_nonneg (show 0 ≤ M by linarith) (mul_nonneg (abs_nonneg c) hr.le)] + have hpow : (M*(A/(r/4)+|c| *(r/4)))^2 ≤ ((4*M)*(A/r+|c| *r))^2 := + pow_le_pow_left₀ (by positivity) hcoeff 2 + filter_upwards [hh,ae_restrict_of_ae_restrict_of_subset hsmall hpair] with x hx he + rw [he] + exact hx.trans hpow + let U : ball p (4*r) → Set X := fun q => ball q.val (r/8) + obtain ⟨s,hs,hcover⟩ := (HereditarilyLindelofSpace.isLindelof (ball p (4*r))).elim_countable_subcover + U (fun _ => isOpen_ball) (by + intro x hx + exact mem_iUnion.mpr ⟨⟨x,hx⟩,mem_ball_self (by positivity)⟩) + exact ae_restrict_of_ae_restrict_of_subset hcover + ((ae_restrict_biUnion_iff U hs _).mpr (fun q _ => hestimate q)) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/PoissonGradientFromScalar.lean b/lean/OAI/Geometry/RCD/Sobolev/PoissonGradientFromScalar.lean new file mode 100644 index 0000000000000000000000000000000000000000..1d76ff8b8c91813a6c1657b0a1e5ea70ba6a19dd --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/PoissonGradientFromScalar.lean @@ -0,0 +1,92 @@ +import OAI.Geometry.RCD.Sobolev.LocalPoissonGradientTest +import OAI.Geometry.RCD.Sobolev.DenseCoreGradientBound +import OAI.Geometry.RCD.Metric.ShiftedRadonSum +import OAI.Geometry.RCD.Sobolev.PoissonShiftedMeasure +import OAI.Geometry.RCD.Sobolev.GradientProductInput + +namespace OAI + +/-! # The exact gradient-product input from scalar dimensional Bochner + +The regular test algebra is dense. Testing against a compactly localized +copy of the actual mixed gradient proves the full Sobolev energy estimate. +No Laplacian or Lipschitz premise is imposed on that mixed representative. +-/ + +open Set Filter Metric MeasureTheory +open scoped NNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem NoncollapsedRCD.poisson_gradient_product_input_of_scalar {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) [(hausdorff n X).Regular] (hn : 2≤n) + (hscalar : ScalarDimensionalBochner (hausdorff n X) hX.quadratic K n) : + LocalPoissonGradientProductInput hX := by + classical + intro κ _ hK p r hr L U ell hU hL M hM t _ ht v w G hG b Cv Cw _ _ hCv hCw + let := hX.separable + let := locallyFinite_of_finiteOnBounded (hausdorff n X) hX.finiteOnBounded + let μ := hausdorff n X + let hQ := hX.quadratic + let : IsFiniteMeasure (μ.restrict (ball p t)) := ⟨by + simpa only [Measure.restrict_apply_univ,μ] using + hX.finiteOnBounded (ball p t) isBounded_ball⟩ + let E := Classical.choice (hM v) + let F := Classical.choice (hM w) + have hsource (a) : IsMeasureLaplacianOn μ hQ (ball p (2*r)) + (Classical.choice (hM a)).energy + ((2:ℝ) • (M.measure a).toSignedMeasure-(2*κ) • μ.withDensityᵥ + (localGamma μ hQ (U a) (U a))) := by + rw [M.measure_toSignedMeasure] + exact (Classical.choice (hM a)).measure_laplacian + have hgrad (a) : ∀ᵐ x ∂μ.restrict (ball p (8*r)), + localGamma μ hQ (U a) (U a) x≤(L*‖a‖₊:ℝ≥0)^2 := by + simpa only [NNReal.coe_mul,coe_nnnorm,mul_pow] using hL a + let D : X → ℝ := fun x => + 2*Cw^2*(((M.measure v).rnDeriv μ x).toReal-(2*b*ell v-(n:ℝ)*b^2))+ + 2*Cv^2*((M.measure w).rnDeriv μ x).toReal + have hmass := integral_shifted_radon_sum_le μ (M.measure v) (M.measure w) (ball p t) + (2*b*ell v-(n:ℝ)*b^2) (2*Cw^2) (2*Cv^2) (by positivity) (by positivity) + have hD : Integrable D (μ.restrict (ball p t)) := hmass.1 + have hD0 : ∀ᵐ x ∂μ.restrict (ball p t), 0≤D x := by + filter_upwards [ae_restrict_of_ae_restrict_of_subset (ball_subset_ball ht) + (hX.poisson_measure_shifted_density hn hscalar κ hK p hr L U ell hU hL M hM v b)] + with x hx + exact add_nonneg (mul_nonneg (by positivity) (sub_nonneg.mpr hx)) + (mul_nonneg (by positivity) ENNReal.toReal_nonneg) + obtain ⟨χ,hχ,hχ1⟩ := hX.exists_open_regular_cutoff hn isOpen_ball + (isCompact_closedBall p (2*r)) (closedBall_subset_ball (by linarith : 2*r<3*r)) + let W := G-b • U w + let V := SobolevSpace.cutoffCLM μ hQ χ.lipschitz χ.compact χ.abs_le + (fun x => (χ.bounds x).1) W + have hVmem : V∈SobolevSpace.dirichlet μ hQ (ball p (3*r)) := + SobolevSpace.cutoffCLM_mem_dirichlet μ hQ χ.lipschitz χ.compact χ.abs_le + (fun x => (χ.bounds x).1) hχ W + have hV : SobolevSpace.toLp μ hQ V =ᵐ[μ.restrict (ball p t)] SobolevSpace.toLp μ hQ W := by + apply (ae_restrict_iff' measurableSet_ball).mpr + filter_upwards [SobolevSpace.cutoffCLM_coe μ hQ χ.lipschitz χ.compact χ.abs_le + (fun x => (χ.bounds x).1) W] with x hx hxS + change SobolevSpace.toLp μ hQ (SobolevSpace.cutoffCLM μ hQ χ.lipschitz χ.compact χ.abs_le + (fun x => (χ.bounds x).1) W) x= _ + rw [hx,hχ1 x ((ball_subset_ball ht hxS |> ball_subset_closedBall)),one_mul] + have htest (g : compactLaplacianCore μ hQ (ball p (3*r))) : + ∀ᵐ x ∂μ.restrict (ball p t), (localGamma μ hQ W g.val x)^2≤D x*localGamma μ hQ g.val g.val x := by + have hgu : g.val∈compactLaplacianCore μ hQ univ := by + obtain ⟨⟨f,C,hf,hfc,_,hrep⟩,hlap⟩ := g.property + exact ⟨⟨f,C,hf,hfc,subset_univ _,hrep⟩,hlap⟩ + exact hX.local_poisson_gradient_test hn hscalar (U v) (U w) (ell v) (ell w) κ hK hr ht + (hU v) (hU w) (L*‖v‖₊) (L*‖w‖₊) (hgrad v) (hgrad w) + E.energy F.energy G (M.measure v) (M.measure w) E.representative F.representative + (hsource v) (hsource w) hG b Cv Cw hCv hCw ⟨g.val,hgu⟩ + have hi := hX.gradient_integral_le_of_core_tests hn isOpen_ball measurableSet_ball + W D hD hD0 htest ⟨V,hVmem⟩ hV + exact hi.trans hmass.2 + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/PoissonGradientInput.lean b/lean/OAI/Geometry/RCD/Sobolev/PoissonGradientInput.lean new file mode 100644 index 0000000000000000000000000000000000000000..0a12304054310654f966a39f60c2037a76174cf3 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/PoissonGradientInput.lean @@ -0,0 +1,42 @@ +import OAI.Geometry.RCD.Sobolev.ConstantLaplacianBochnerInput + +namespace OAI + +/-! +# interior gradient input for the Poisson replacements + +Jiang, *Cheeger-harmonic functions in metric measure spaces revisited*, +J. Funct. Anal. 266 (2014), 1373--1394, Theorem 3.1 (arXiv:1307.1334v2, +printed p.7), bounds the gradient by the local supremum of the function +and the bounded right-hand side. The following is only its constant-source +interior-ball consequence on RCD spaces at bounded rescaled curvature. +The half-radius conclusion follows by covering with the theorem's +one-eighth-radius balls. RCD supplies the uniform local doubling, Poincare +and heat-semigroup curvature constants. +-/ + +open Set Metric MeasureTheory + +noncomputable section + +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +/-- The constant-Laplacian, bounded-value specialization of Jiang2014, +Theorem3.1, with one constant uniform at bounded rescaled curvature. -/ +def LocalPoissonGradientInput {K : ℝ} {n : ℕ} (hX : NoncollapsedRCD K n X) : Prop := + 2 ≤ n → ∃ C : ℝ, 1 ≤ C ∧ ∀ (p : X) (r : ℝ), 0 < r → -1 ≤ K * r ^ 2 → + ∀ (f : SobolevSpace (hausdorff n X) hX.quadratic) (c A : ℝ), 0 ≤ A → + IsConstantLaplacianOn (hausdorff n X) hX.quadratic (ball p (8 * r)) f c → + (∀ᵐ x ∂(hausdorff n X).restrict (ball p (8 * r)), + |SobolevSpace.toLp (hausdorff n X) hX.quadratic f x| ≤ A) → + ∀ᵐ x ∂(hausdorff n X).restrict (ball p (4 * r)), + localGamma (hausdorff n X) hX.quadratic f f x ≤ + (C * (A / r + |c| * r)) ^ 2 + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/PoissonHarmonicCompactnessConstruction.lean b/lean/OAI/Geometry/RCD/Sobolev/PoissonHarmonicCompactnessConstruction.lean new file mode 100644 index 0000000000000000000000000000000000000000..e31eccc14c45f3e16bc40626d5cc510d90f6b8a6 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/PoissonHarmonicCompactnessConstruction.lean @@ -0,0 +1,67 @@ +import OAI.Geometry.RCD.Harmonic.RadialMixedLimit +import OAI.Geometry.RCD.Sobolev.MeasuredSmoothTestLimits + +namespace OAI + +/-! # The actual Poisson/harmonic compactness input + +The normalized harmonic sequence determines one classical harmonic model +and one subsequence. Every radial mixed-gradient test then converges along +that same subsequence by the constructed compact recoveries. The original +constant-Laplacian and energy hypotheses are retained in the interface, +though only the stated radial gradient and value bounds are needed here. +-/ + +open Set Metric Filter MeasureTheory +open scoped Topology InnerProductSpace +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem NoncollapsedRCD.poissonHarmonicCompactnessInput {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) [(hausdorff n X).Regular] : + LocalPoissonHarmonicCompactnessInput hX := by + intro hn S hS p r ε hr hcurv hε hεlim u V w f hV hrep hw hnorm _ hdata hflim + obtain ⟨A,α,hA,hdata⟩ := hdata + obtain ⟨N,hN⟩ := eventually_atTop.mp (hεlim.eventually (Iio_mem_nhds zero_lt_one)) + obtain ⟨t,ht,model,hgs,hgL,hconv,hmom,htest⟩ := hX.harmonic_model_compactness_smooth hn hS + (fun k => p (k+N)) (fun k => r (k+N)) (fun k => ε (k+N)) + (fun k => hr (k+N)) (fun k => hcurv (k+N)) (fun k => (hε (k+N)).le) + (fun k => (hN (k+N) (Nat.le_add_left N k)).le) (hεlim.comp (tendsto_add_atTop_nat N)) + (fun k => u (k+N)) (fun k => V (k+N)) (fun k => w (k+N)) + (fun k => hV (k+N)) (fun k i => hrep (k+N) i) (fun k => hw (k+N)) (fun k => hnorm (k+N)) + let j := fun k => t k+N + have hj : StrictMono j := fun i k hik => Nat.add_lt_add_right (ht hik) N + refine ⟨j,hj,model,?_⟩ + constructor + · intro ρ hρ hρS i k + exact hmom ρ hρ hρS i k + · intro ψ hψ + have hmixed := hX.radial_mixed_limit hn hS (p ∘ j) (r ∘ j) (ε ∘ j) (V ∘ j) + (fun k => hr (j k)) (fun k => hcurv (j k)) (fun k => (hε (j k)).le) + (fun k => (hN (j k) (Nat.le_add_left N (t k))).le) (hεlim.comp hj.tendsto_atTop) + (fun k => hV (j k)) (f ∘ j) (w ∘ j) (fun k => hw (j k)) (fun k => hnorm (j k)) + model.value hgs hgL hconv (show 0≤A+1 by linarith) + (fun k => (hdata (j k)).2.2.2.mono fun x hx => hx.trans (by nlinarith)) + (hflim.comp hj.tendsto_atTop) hψ + refine ⟨?_,htest ψ hψ, + measured_smooth_test_tendsto hS (fun k => hV (j k)) (hεlim.comp hj.tendsto_atTop) hψ, + fun i => measured_smooth_coordinate_test_tendsto hS (fun k => hV (j k)) + (hεlim.comp hj.tendsto_atTop) hψ i⟩ + convert hmixed using 1 + funext k + dsimp only [Function.comp_apply] + have he : (fun x => ψ (V (j k) x)*(r (j k)^2* + localGamma (hausdorff n X) hX.quadratic (f (j k)) (w (j k)) x))= + fun x => r (j k)^2*(ψ (V (j k) x)* + localGamma (hausdorff n X) hX.quadratic (f (j k)) (w (j k)) x) := by + funext x + ring + rw [he,integral_const_mul] + ring + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/PoissonHarmonicCompactnessInput.lean b/lean/OAI/Geometry/RCD/Sobolev/PoissonHarmonicCompactnessInput.lean new file mode 100644 index 0000000000000000000000000000000000000000..677f796e975b5e46fe948acf61c5d1f698f94ad8 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/PoissonHarmonicCompactnessInput.lean @@ -0,0 +1,104 @@ +import OAI.Geometry.RCD.Harmonic.HarmonicMomentCompactnessInput +import OAI.Geometry.RCD.Sobolev.ConstantLaplacianBochnerInput + +namespace OAI + +/-! # local compactness including radial gradient pairings + +Ambrosio--Honda, *Local spectral convergence in RCD*(K,N) spaces* (2018), +Theorems 4.2, 4.4 and 4.6(2), Corollaries 4.3 and 4.5. This specialization +retains one harmonic function and one bounded-Laplacian function converging +in value to the squared Euclidean radius. The local gradient bound for the +latter and the harmonic energy bound give the L2 bound required in 4.6(2). +The conclusion records weak test pairings and finite value moments only. +-/ + +open Set Metric MeasureTheory Filter +open scoped InnerProductSpace Topology ContDiff + +noncomputable section +namespace RegularPointCoordinates + +def InteriorSmoothTest (n : ℕ) (S : ℝ) (ψ : Euclidean n → ℝ) : Prop := + ContDiff ℝ ∞ ψ ∧ HasCompactSupport ψ ∧ tsupport ψ ⊆ ball 0 S + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +/-- Precisely the weak pairings retained from the local strong/weak +Sobolev convergence theorem, with the physical radius factors explicit. -/ +structure PoissonHarmonicLimit {K : ℝ} {n : ℕ} (hX : NoncollapsedRCD K n X) + (S : ℝ) (p : ℕ → X) (r : ℕ → ℝ) + (u : ℕ → Fin n → SobolevSpace (hausdorff n X) hX.quadratic) + (V : ℕ → X → Euclidean n) + (w f : ℕ → SobolevSpace (hausdorff n X) hX.quadratic) + (model : EuclideanHarmonicModel n S) : Prop where + moments : ∀ ρ : ℝ, 0 < ρ → ∀ hρ : ρ < S, ∀ i j, + Tendsto (fun k => + ⟪localAffineMomentFamily (hausdorff n X) hX.quadratic (u k) (w k) + (ball (p k) (ρ * r k)) (ne_of_lt (hX.finiteOnBounded _ isBounded_ball)) i, + localAffineMomentFamily (hausdorff n X) hX.quadratic (u k) (w k) + (ball (p k) (ρ * r k)) (ne_of_lt (hX.finiteOnBounded _ isBounded_ball)) j⟫_ℝ) + atTop (𝓝 ⟪model.moments hρ.le i, model.moments hρ.le j⟫_ℝ) + tests : ∀ ψ : Euclidean n → ℝ, InteriorSmoothTest n S ψ → + Tendsto (fun k => ((hausdorff n X).real (ball (p k) (S * r k)))⁻¹ * + ∫ x in ball (p k) (S * r k), ψ (V k x) * + (r k ^ 2 * localGamma (hausdorff n X) hX.quadratic (f k) (w k) x) ∂hausdorff n X) + atTop (𝓝 ((volume.real (ball (0 : Euclidean n) S))⁻¹ * + ∫ z in ball 0 S, ψ z * fderiv ℝ model.value z z)) ∧ + Tendsto (fun k => ((hausdorff n X).real (ball (p k) (S * r k)))⁻¹ * + ∫ x in ball (p k) (S * r k), ψ (V k x) * + SobolevSpace.toLp (hausdorff n X) hX.quadratic (w k) x ∂hausdorff n X) + atTop (𝓝 ((volume.real (ball (0 : Euclidean n) S))⁻¹ * + ∫ z in ball 0 S, ψ z * model.value z)) ∧ + Tendsto (fun k => ((hausdorff n X).real (ball (p k) (S * r k)))⁻¹ * + ∫ x in ball (p k) (S * r k), ψ (V k x) ∂hausdorff n X) + atTop (𝓝 ((volume.real (ball (0 : Euclidean n) S))⁻¹ * + ∫ z in ball 0 S, ψ z)) ∧ + ∀ j, Tendsto (fun k => ((hausdorff n X).real (ball (p k) (S * r k)))⁻¹ * + ∫ x in ball (p k) (S * r k), ψ (V k x) * V k x j ∂hausdorff n X) + atTop (𝓝 ((volume.real (ball (0 : Euclidean n) S))⁻¹ * + ∫ z in ball 0 S, ψ z * z j)) + +/-- A bounded-Laplacian radial sequence and an arbitrary bounded harmonic +sequence have joint local limits. All assumptions are analytic bounds; +the projected Euler equation is deliberately absent. -/ +def LocalPoissonHarmonicCompactnessInput {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) : Prop := + 2 ≤ n → ∀ S : ℝ, 0 < S → ∀ (p : ℕ → X) (r ε : ℕ → ℝ), + (∀ k, 0 < r k) → (∀ k, -1 ≤ K * r k ^ 2) → + (∀ k, 0 < ε k) → Tendsto ε atTop (𝓝 0) → + ∀ (u : ℕ → Fin n → SobolevSpace (hausdorff n X) hX.quadratic) + (V : ℕ → X → Euclidean n) + (w f : ℕ → SobolevSpace (hausdorff n X) hX.quadratic), + (∀ k, IsMeasuredEuclideanApproximation (hausdorff n X) n (p k) (r k) S (ε k) (V k)) → + (∀ k j, SobolevSpace.toLp (hausdorff n X) hX.quadratic (u k j) =ᵐ[ + (hausdorff n X).restrict (ball (p k) (S * r k))] fun x => V k x j) → + (∀ k, IsSobolevHarmonicOn (hausdorff n X) hX.quadratic (ball (p k) (S * r k)) (w k)) → + (∀ k, ‖normalizeLocalL2 (hausdorff n X) (ball (p k) (S * r k)) + (ne_of_lt (hX.finiteOnBounded _ isBounded_ball)) + (SobolevSpace.restrictLp (hausdorff n X) hX.quadratic (ball (p k) (S * r k)) (w k))‖ ≤ 1) → + (∀ ρ : ℝ, 0 < ρ → ρ < S → ∃ C : ℝ, 0 ≤ C ∧ ∀ k, + r k ^ 2 * ((hausdorff n X).real (ball (p k) (S * r k)))⁻¹ * + (∫ x in ball (p k) (ρ * r k), localGamma (hausdorff n X) hX.quadratic + (w k) (w k) x ∂hausdorff n X) ≤ C) → + (∃ (A : ℝ) (a : ℕ → ℝ), 0 ≤ A ∧ ∀ k, + |a k| ≤ A ∧ + IsConstantLaplacianOn (hausdorff n X) hX.quadratic (ball (p k) (S * r k)) + (f k) (a k / r k ^ 2) ∧ + ‖normalizeLocalL2 (hausdorff n X) (ball (p k) (S * r k)) + (ne_of_lt (hX.finiteOnBounded _ isBounded_ball)) + (SobolevSpace.restrictLp (hausdorff n X) hX.quadratic (ball (p k) (S * r k)) (f k))‖ ≤ A ∧ + ∀ᵐ x ∂(hausdorff n X).restrict (ball (p k) (S * r k)), + r k ^ 2 * localGamma (hausdorff n X) hX.quadratic (f k) (f k) x ≤ A) → + Tendsto (fun k => ((hausdorff n X).real (ball (p k) (S * r k)))⁻¹ * + ∫ x in ball (p k) (S * r k), + (SobolevSpace.toLp (hausdorff n X) hX.quadratic (f k) x - ‖V k x‖ ^ 2 / 2) ^ 2 + ∂hausdorff n X) atTop (𝓝 0) → + ∃ t : ℕ → ℕ, StrictMono t ∧ ∃ model : EuclideanHarmonicModel n S, + PoissonHarmonicLimit hX S (p ∘ t) (r ∘ t) (u ∘ t) (V ∘ t) (w ∘ t) (f ∘ t) model + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/PoissonHarmonicLimitSubsequence.lean b/lean/OAI/Geometry/RCD/Sobolev/PoissonHarmonicLimitSubsequence.lean new file mode 100644 index 0000000000000000000000000000000000000000..a5b17b6fd50d2298776469c8d01554bd7aa22d8d --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/PoissonHarmonicLimitSubsequence.lean @@ -0,0 +1,36 @@ +import OAI.Geometry.RCD.Sobolev.PoissonHarmonicCompactnessInput + +namespace OAI + +/-! # Preserve one joint limit when extracting coefficient subsequences -/ + +open Set Metric MeasureTheory Filter +open scoped Topology + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + +/-- All value moments and radial gradient tests retain the SAME model +under any later strictly increasing subsequence. -/ +theorem PoissonHarmonicLimit.subsequence {K : ℝ} {n : ℕ} {hX : NoncollapsedRCD K n X} + {S : ℝ} {p : ℕ → X} {r : ℕ → ℝ} + {u : ℕ → Fin n → SobolevSpace (hausdorff n X) hX.quadratic} + {V : ℕ → X → Euclidean n} {w f : ℕ → SobolevSpace (hausdorff n X) hX.quadratic} + {model : EuclideanHarmonicModel n S} (h : PoissonHarmonicLimit hX S p r u V w f model) + (t : ℕ → ℕ) (ht : StrictMono t) : + PoissonHarmonicLimit hX S (p ∘ t) (r ∘ t) (u ∘ t) (V ∘ t) (w ∘ t) (f ∘ t) model := by + constructor + · intro ρ hρ hρS i j + exact (h.moments ρ hρ hρS i j).comp ht.tendsto_atTop + · intro ψ hψ + obtain ⟨hD, hW, hO, hU⟩ := h.tests ψ hψ + exact ⟨hD.comp ht.tendsto_atTop, hW.comp ht.tendsto_atTop, + hO.comp ht.tendsto_atTop, fun j => (hU j).comp ht.tendsto_atTop⟩ + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/PoissonHeight.lean b/lean/OAI/Geometry/RCD/Sobolev/PoissonHeight.lean new file mode 100644 index 0000000000000000000000000000000000000000..f8fc2fce239f7e6e611e3017f84586e5a120338c --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/PoissonHeight.lean @@ -0,0 +1,124 @@ +import OAI.Geometry.RCD.Sobolev.BoundaryMaximum +import OAI.Geometry.RCD.Sobolev.TorsionBound +import OAI.Geometry.RCD.Sobolev.PoissonComparison + +namespace OAI + +/-! +# Height control for the Poisson replacement + +A bounded torsion solution and the weak boundary maximum principle provide +the bound needed by the positive-source gradient estimate. +-/ + +open Set MeasureTheory Filter +open scoped InnerProductSpace ENNReal NNReal + +noncomputable section + +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +/-- Coercivity constructs torsion and the Sobolev iteration bounds it with +a constant uniform over all the displayed domains. -/ +theorem exists_uniform_bounded_torsion {d C V : ℝ} (hd : 1 < d) + (hC : 0 ≤ C) (hV : 0 ≤ V) : + ∃ K : ℝ, 0 < K ∧ ∀ (Ω : Set X), MeasurableSet Ω → μ Ω ≠ ∞ → μ.real Ω ≤ V → + ∀ P : ℝ, 0 ≤ P → + (∀ v : SobolevSpace.dirichlet μ hQ Ω, + ‖SobolevSpace.toLp μ hQ v.val‖ ^ 2 ≤ P * energyForm μ hQ v.val v.val) → + (∀ φ : SobolevSpace.dirichlet μ hQ Ω, + (∫ x in Ω, |SobolevSpace.toLp μ hQ φ.val x| ^ (2 * d) ∂μ) ^ (1 / d) ≤ + C * energyForm μ hQ φ.val φ.val) → + ∃ τ : SobolevSpace.dirichlet μ hQ Ω, + (∀ φ : SobolevSpace.dirichlet μ hQ Ω, + energyForm μ hQ τ.val φ.val = ∫ x in Ω, SobolevSpace.toLp μ hQ φ.val x ∂μ) ∧ + (∀ᵐ x ∂μ, 0 ≤ SobolevSpace.toLp μ hQ τ.val x ∧ + SobolevSpace.toLp μ hQ τ.val x ≤ K) := by + obtain ⟨K, hK, hb⟩ := exists_uniform_torsion_bound μ hQ hd hC hV + refine ⟨K, hK, ?_⟩ + intro Ω hΩ hfin hvol P hP hpoin hsob + let F := dirichletSource μ hQ Ω (indicatorConstLp 2 hΩ hfin 1) + have hF (φ : SobolevSpace.dirichlet μ hQ Ω) : + F φ = ∫ x in Ω, SobolevSpace.toLp μ hQ φ.val x ∂μ := by + simpa only [F, one_mul] using dirichletSource_indicator μ hQ Ω hΩ hfin 1 φ + have hpos (φ : SobolevSpace.dirichlet μ hQ Ω) + (hφ : ∀ᵐ x ∂μ, 0 ≤ SobolevSpace.toLp μ hQ φ.val x) : 0 ≤ F φ := by + rw [hF] + exact integral_nonneg_of_ae (ae_restrict_of_ae hφ) + obtain ⟨τ, hτ, hτ0⟩ := exists_nonnegative_dirichlet_solution μ hQ Ω hP hpoin F hpos + have hsolve (φ : SobolevSpace.dirichlet μ hQ Ω) := (hτ φ).trans (hF φ) + have hτK := hb Ω hfin hvol τ hsolve hsob + have hupper : ∀ᵐ x ∂μ, SobolevSpace.toLp μ hQ τ.val x ≤ K := by + apply ae_of_ae_restrict_of_ae_restrict_compl Ω hτK + filter_upwards [SobolevSpace.dirichlet_zero_off μ hQ Ω hΩ τ] with x hx + rw [hx] + exact hK.le + exact ⟨τ, hsolve, hτ0.and hupper⟩ + +omit [BorelSpace X] [ProperSpace X] in +/-- Torsion comparison bounds the nonnegative difference of the boundary +datum and its constant-Laplacian replacement. -/ +theorem poisson_replacement_height_le (Ω : Set X) (hΩ : MeasurableSet Ω) + (hfin : μ Ω ≠ ∞) {P : ℝ} (hP : 0 ≤ P) + (hpoin : ∀ v : SobolevSpace.dirichlet μ hQ Ω, + ‖SobolevSpace.toLp μ hQ v.val‖ ^ 2 ≤ P * energyForm μ hQ v.val v.val) + (q f : SobolevSpace μ hQ) (Q : X → ℝ) {L : ℝ≥0} + (hQlip : LipschitzWith L Q) (hQ0 : ∀ x, 0 ≤ Q x) + (hq : SobolevSpace.toLp μ hQ q =ᵐ[μ] Q) + {a B K : ℝ} (ha : 0 ≤ a) (hB : 0 ≤ B) (hK : 0 ≤ K) + (hQB : ∀ᵐ x ∂μ.restrict Ω, Q x ≤ B) + (τ : SobolevSpace.dirichlet μ hQ Ω) + (hτ : ∀ φ : SobolevSpace.dirichlet μ hQ Ω, + energyForm μ hQ τ.val φ.val = ∫ x in Ω, SobolevSpace.toLp μ hQ φ.val x ∂μ) + (hτK : ∀ᵐ x ∂μ, SobolevSpace.toLp μ hQ τ.val x ≤ K) + (hfq : f - q ∈ SobolevSpace.dirichlet μ hQ Ω) + (hsolve : ∀ φ : SobolevSpace.dirichlet μ hQ Ω, + energyForm μ hQ f φ.val = -a * ∫ x in Ω, SobolevSpace.toLp μ hQ φ.val x ∂μ) + (hcomparison : ∀ φ : SobolevSpace.dirichlet μ hQ Ω, + (∀ᵐ x ∂μ, 0 ≤ SobolevSpace.toLp μ hQ φ.val x) → + -energyForm μ hQ q φ.val ≤ a * ∫ x in Ω, SobolevSpace.toLp μ hQ φ.val x ∂μ) : + ∀ᵐ x ∂μ, 0 ≤ SobolevSpace.toLp μ hQ (q - f) x ∧ + SobolevSpace.toLp μ hQ (q - f) x ≤ B + a * K := by + have hlower := constant_laplacian_replacement_le μ hQ Ω hΩ hfin hP hpoin + a q f hfq hsolve hcomparison + have hboundary : (f + a • τ.val) - q ∈ SobolevSpace.dirichlet μ hQ Ω := by + have hm := (SobolevSpace.dirichlet μ hQ Ω).add_mem hfq + ((SobolevSpace.dirichlet μ hQ Ω).smul_mem a τ.property) + have he : (f + a • τ.val) - q = (f - q) + a • τ.val := by module + rw [he] + exact hm + have hharm (φ : SobolevSpace.dirichlet μ hQ Ω) : + energyForm μ hQ (f + a • τ.val) φ.val = 0 := by + rw [energyForm_add_left, energyForm_smul_left, hsolve, hτ] + ring + have hnonneg := harmonic_nonneg_of_boundary μ hQ Ω hP hpoin (f + a • τ.val) q Q + hQlip hQ0 hq hboundary hharm + have hnonneg' : ∀ᵐ x ∂μ, + 0 ≤ SobolevSpace.toLp μ hQ f x + a * SobolevSpace.toLp μ hQ τ.val x := by + filter_upwards [hnonneg, Lp.coeFn_add (SobolevSpace.toLp μ hQ f) + (a • SobolevSpace.toLp μ hQ τ.val), Lp.coeFn_smul a (SobolevSpace.toLp μ hQ τ.val)] + with x hx hadd hsmul + rw [map_add, map_smul, hadd, Pi.add_apply, hsmul] at hx + exact hx + have hHmem : q - f ∈ SobolevSpace.dirichlet μ hQ Ω := by + simpa only [neg_sub] using (SobolevSpace.dirichlet μ hQ Ω).neg_mem hfq + apply ae_of_ae_restrict_of_ae_restrict_compl Ω + · filter_upwards [ae_restrict_of_ae hlower, ae_restrict_of_ae hnonneg', + ae_restrict_of_ae hτK, ae_restrict_of_ae hq, hQB, + ae_restrict_of_ae (Lp.coeFn_sub (SobolevSpace.toLp μ hQ q) + (SobolevSpace.toLp μ hQ f))] with x hlo hn ht hqx hBq hsub + rw [map_sub, hsub, Pi.sub_apply] + have hta := mul_le_mul_of_nonneg_left ht ha + constructor <;> linarith + · filter_upwards [SobolevSpace.dirichlet_zero_off μ hQ Ω hΩ ⟨q - f, hHmem⟩] with x hx + rw [hx] + exact ⟨le_rfl, add_nonneg hB (mul_nonneg ha hK)⟩ + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/PoissonHessianFromScalar.lean b/lean/OAI/Geometry/RCD/Sobolev/PoissonHessianFromScalar.lean new file mode 100644 index 0000000000000000000000000000000000000000..1d54279b847ba8e645c664ae67187e0c9d30ab2f --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/PoissonHessianFromScalar.lean @@ -0,0 +1,67 @@ +import OAI.Geometry.RCD.Sobolev.LocalPoissonDimensionalDensity +import OAI.Geometry.RCD.Sobolev.LocalPoissonPairingBound +import OAI.Geometry.RCD.Sobolev.PoissonSecondOrderData +import OAI.Geometry.RCD.Sobolev.PoissonHessianInput + +namespace OAI + +/-! # The exact Poisson Hessian input reduced to scalar dimensional Bochner + +All measures, representatives and Dirichlet Hessian pairings are constructed +from the RCD space. The sole remaining analytic premise in this reduction is +the scalar weak finite-dimensional Bochner inequality (Han, Theorem 3.3). +-/ + +open Set Filter Metric MeasureTheory +open scoped NNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem NoncollapsedRCD.poisson_hessian_input_of_scalar {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) [(hausdorff n X).Regular] (hn : 2≤n) + (hscalar : ScalarDimensionalBochner (hausdorff n X) hX.quadratic K n) : + LocalPoissonHessianInput hX := by + classical + intro κ _ hK p r hr L U ell hU hL + let := hX.separable + let := locallyFinite_of_finiteOnBounded (hausdorff n X) hX.finiteOnBounded + let μ := hausdorff n X + let hQ := hX.quadratic + let : IsFiniteMeasure (μ.restrict (ball p (2*r))) := ⟨by + simpa only [Measure.restrict_apply_univ,μ] using + hX.finiteOnBounded (ball p (2*r)) isBounded_ball⟩ + obtain ⟨M,hM,hpair⟩ := hX.poisson_second_order_data hn κ hK p hr L U ell hU hL + have hgrad (v) : ∀ᵐ x ∂μ.restrict (ball p (8*r)), + localGamma μ hQ (U v) (U v) x≤(L*‖v‖₊:ℝ≥0)^2 := by + simpa only [NNReal.coe_mul,coe_nnnorm,mul_pow] using hL v + have hsource (v) : IsMeasureLaplacianOn μ hQ (ball p (2*r)) + (Classical.choice (hM v)).energy + ((2:ℝ) • (M.measure v).toSignedMeasure-(2*κ) • μ.withDensityᵥ + (localGamma μ hQ (U v) (U v))) := by + rw [M.measure_toSignedMeasure] + exact (Classical.choice (hM v)).measure_laplacian + have hshift : ShiftedBochnerLowerBound M (μ.restrict (ball p (2*r))) ell n := by + apply shiftedBochnerLowerBound_of_density μ M ell n + intro v b + exact hX.local_poisson_shifted_density hn hscalar (U v) (ell v) κ hK hr + (hU v) (L*‖v‖₊) (hgrad v) (Classical.choice (hM v)).energy (M.measure v) + (Classical.choice (hM v)).representative (hsource v) b + refine ⟨M,hM,hshift,?_⟩ + intro v w t _ ht + let G := Classical.choice (hpair v w t ht) + refine ⟨G,?_⟩ + have hh := hX.local_poisson_hessian_pairing_bound_of_scalar hn hscalar + (U v) (U w) (ell v) (ell w) κ hK hr ht (hU v) (hU w) + (L*‖v‖₊) (L*‖w‖₊) (hgrad v) (hgrad w) + (Classical.choice (hM v)).energy (M.measure v) + (Classical.choice (hM v)).representative (hsource v) G + simpa only [NNReal.coe_mul,coe_nnnorm,mul_pow] using hh + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/PoissonHessianIdentity.lean b/lean/OAI/Geometry/RCD/Sobolev/PoissonHessianIdentity.lean new file mode 100644 index 0000000000000000000000000000000000000000..422ba6bc9d359373e7f912b2729aef9eac51e53b --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/PoissonHessianIdentity.lean @@ -0,0 +1,79 @@ +import OAI.Geometry.RCD.Sobolev.LocalPoissonHessianPairing + +namespace OAI + +/-! # Cancellation of both constant-source terms in the integrated Hessian -/ + +open Set MeasureTheory + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +/-- Constant Laplacians cancel each other in the integrated Koszul formula, +so the mixed-gradient energy pairing equals twice the Hessian action. -/ +theorem LocalHessianPairing.constant_source_identity {Ω : Set X} (hΩ : MeasurableSet Ω) + {f a : SobolevSpace μ hQ} (G : LocalHessianPairing μ hQ Ω f a) + {c d : ℝ} (hf : IsConstantLaplacianOn μ hQ Ω f c) + (ha : IsConstantLaplacianOn μ hQ Ω a d) + (φ : SobolevSpace.dirichlet μ hQ Ω) : + energyForm μ hQ G.mixed φ.val = 2*G.hessian φ := by + let F := (sobolevEnergyForm μ hQ G.mixed).comp (SobolevSpace.dirichlet μ hQ Ω).subtypeL + have heq : (F : SobolevSpace.dirichlet μ hQ Ω → ℝ) = (2 : ℝ) • G.hessian := by + apply Continuous.ext_on G.core_dense F.continuous ((2 : ℝ) • G.hessian).continuous + intro ψ hψ + let z : G.core := ⟨ψ,hψ⟩ + have hif : (∫ x in Ω, SobolevSpace.toLp μ hQ (G.gammaF z).val x ∂μ) = + energyForm μ hQ f ψ.val := by + rw [integral_congr_ae (ae_restrict_of_ae (G.gammaF_rep z))] + exact integral_localGamma_dirichlet μ hQ Ω hΩ f ψ + have hia : (∫ x in Ω, SobolevSpace.toLp μ hQ (G.gammaA z).val x ∂μ) = + energyForm μ hQ a ψ.val := by + rw [integral_congr_ae (ae_restrict_of_ae (G.gammaA_rep z))] + exact integral_localGamma_dirichlet μ hQ Ω hΩ a ψ + have hs : energyForm μ hQ a (G.gammaF z).val = energyForm μ hQ f (G.gammaA z).val := by + rw [ha _ (G.gammaF z).property,hf _ (G.gammaA z).property,hif,hia, + hf _ ψ.property,ha _ ψ.property] + ring + have hk := G.koszul z + rw [hs,energyForm_comm μ hQ ψ.val G.mixed] at hk + change energyForm μ hQ G.mixed ψ.val = 2*G.hessian ψ + linarith only [hk] + exact congrFun heq φ + +/-- The action is independent of all choices of compact extensions and +regular cores. This allows estimates proved for any local construction +to use the same Hessian action. -/ +theorem LocalHessianPairing.hessian_unique_of_constant_sources {Ω : Set X} + (hΩ : MeasurableSet Ω) {f a : SobolevSpace μ hQ} + (G H : LocalHessianPairing μ hQ Ω f a) {c d : ℝ} + (hf : IsConstantLaplacianOn μ hQ Ω f c) + (ha : IsConstantLaplacianOn μ hQ Ω a d) : G.hessian = H.hessian := by + apply ContinuousLinearMap.ext + intro φ + have he := energyForm_eq_of_ae_eq_on μ hQ hΩ + (G.mixed_rep.trans (Filter.EventuallyEq.symm H.mixed_rep)) φ + rw [G.constant_source_identity μ hQ hΩ hf ha, + H.constant_source_identity μ hQ hΩ hf ha] at he + linarith + +/-- The exact factor two in the shifted divergence identity applies to +both Poisson functions, including a nonzero constant source. -/ +theorem LocalHessianPairing.shifted_source_identity {Ω : Set X} + (hΩ : MeasurableSet Ω) {f a : SobolevSpace μ hQ} + (G : LocalHessianPairing μ hQ Ω f a) {c d : ℝ} + (hf : IsConstantLaplacianOn μ hQ Ω f c) + (ha : IsConstantLaplacianOn μ hQ Ω a d) + (b : ℝ) (φ : SobolevSpace.dirichlet μ hQ Ω) : + energyForm μ hQ G.mixed φ.val - 2*b*energyForm μ hQ a φ.val = + 2*(G.hessian φ-b*energyForm μ hQ a φ.val) := by + rw [G.constant_source_identity μ hQ hΩ hf ha] + ring + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/PoissonHessianInput.lean b/lean/OAI/Geometry/RCD/Sobolev/PoissonHessianInput.lean new file mode 100644 index 0000000000000000000000000000000000000000..a9260919f8b111a427ede2305b32981118baa247 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/PoissonHessianInput.lean @@ -0,0 +1,106 @@ +import OAI.Geometry.RCD.Sobolev.WeakRadialCancellation +import OAI.Geometry.RCD.Sobolev.ShiftedBochnerCutoff + +namespace OAI + +/-! +# The Hessian input for the finite Poisson span + +Gigli (2018), equation (3.1.10) and Theorem 3.3.8, give the local Hessian +pairing and its Bochner bound. Han (2018), Proposition 3.2 and Theorem 3.3, +give the top-dimensional trace identity and the lower-dimensional trace +defect. Completing the trace-defect square and applying integral Cauchy--Schwarz gives +the displayed bound on the integrated pairing on every concentric inner +ball, using the same canonical measure. This localization is needed to +apply cutoff mass bounds before constructing the harmonic correction. +The tensor pairing is restricted to the finite harmonic and Poisson span. +-/ + +open Set Metric MeasureTheory +open scoped NNReal InnerProductSpace + +noncomputable section + +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] + +/-- Local second-order calculus for n harmonic coordinates and two +constant-Laplacian replacements. The same full Bochner measure occurs in +the energy equation, the positivity assertion and the Hessian bound. -/ +def LocalPoissonHessianInput {K : ℝ} {n : ℕ} (hX : NoncollapsedRCD K n X) : Prop := + ∀ κ : ℝ, 0 ≤ κ → -κ ≤ K → ∀ (p : X) (r : ℝ), 0 < r → + ∀ (L : ℝ≥0) + (U : Euclidean (n + 2) →L[ℝ] SobolevSpace (hausdorff n X) hX.quadratic) + (ell : Euclidean (n + 2) →ₗ[ℝ] ℝ), + (∀ v, IsConstantLaplacianOn (hausdorff n X) hX.quadratic + (ball p (8 * r)) (U v) (ell v)) → + (∀ v, ∀ᵐ x ∂(hausdorff n X).restrict (ball p (8 * r)), + localGamma (hausdorff n X) hX.quadratic (U v) (U v) x ≤ + (L : ℝ) ^ 2 * ‖v‖ ^ 2) → + ∃ M : PositiveBilinearMeasure X (Euclidean (n + 2)), + (∀ v, Nonempty (LocalHarmonicEnergy (hausdorff n X) hX.quadratic U M κ p r L v)) ∧ + ShiftedBochnerLowerBound M ((hausdorff n X).restrict (ball p (2 * r))) ell n ∧ + ∀ v w (t : ℝ), 0 < t → t ≤ 2 * r → + ∃ G : LocalHessianPairing (hausdorff n X) hX.quadratic + (ball p t) (U v) (U w), + ∀ (b : ℝ) (φ : SobolevSpace.dirichlet (hausdorff n X) hX.quadratic (ball p t)), + (G.hessian φ - b * energyForm (hausdorff n X) hX.quadratic (U w) φ.val) ^ 2 ≤ + ((L : ℝ) ^ 2 * ‖w‖ ^ 2 * + ((M.measure v).real (ball p t) - + (2 * b * ell v - (n : ℝ) * b ^ 2) * (hausdorff n X).real (ball p t))) * + energyForm (hausdorff n X) hX.quadratic φ.val φ.val + +omit [ProperSpace X] in +/-- The second-order specialization includes the earlier scalar +constant-Laplacian Bochner input. -/ +theorem LocalPoissonHessianInput.constantLaplacianBochnerInput + {K : ℝ} {n : ℕ} {hX : NoncollapsedRCD K n X} (h : LocalPoissonHessianInput hX) : + LocalConstantLaplacianBochnerInput hX := by + intro κ hκ hK p r hr L U ell hU hgrad + obtain ⟨M, hM, hshift, _⟩ := h κ hκ hK p r hr L U ell hU hgrad + exact ⟨M, hM, hshift⟩ + +variable (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] [FiniteDimensional ℝ E] + +/-- The exact shift correction is the full positive mass on the interior +set. This removes the raw Hessian bound from the harmonic-correction step. -/ +theorem LocalHessianPairing.harmonic_correction_of_shifted_mass + {Ω : Set X} (hΩ : MeasurableSet Ω) [IsFiniteMeasure (μ.restrict Ω)] + (U : E →L[ℝ] SobolevSpace μ hQ) (M : PositiveBilinearMeasure X E) + (ell : E →ₗ[ℝ] ℝ) (n : ℝ) (hshift : ShiftedBochnerLowerBound M (μ.restrict Ω) ell n) + (v w : E) (G : LocalHessianPairing μ hQ Ω (U v) (U w)) + (hf : IsConstantLaplacianOn μ hQ Ω (U v) (ell v)) + (ha : IsSobolevHarmonicOn μ hQ Ω (U w)) + (b L P : ℝ) (hP : 0 ≤ P) + (hpoincare : ∀ φ : SobolevSpace.dirichlet μ hQ Ω, + ‖SobolevSpace.toLp μ hQ φ.val‖ ^ 2 ≤ P * energyForm μ hQ φ.val φ.val) + (hbound : ∀ φ : SobolevSpace.dirichlet μ hQ Ω, + (G.hessian φ - b * energyForm μ hQ (U w) φ.val) ^ 2 ≤ + (L ^ 2 * ‖w‖ ^ 2 * + ((M.measure v).real Ω - (2 * b * ell v - n * b ^ 2) * μ.real Ω)) * + energyForm μ hQ φ.val φ.val) : + ∃ h : SobolevSpace μ hQ, G.mixed - h ∈ SobolevSpace.dirichlet μ hQ Ω ∧ + IsSobolevHarmonicOn μ hQ Ω h ∧ + energyForm μ hQ (G.mixed - h) (G.mixed - h) ≤ + 4 * (L ^ 2 * ‖w‖ ^ 2 * + ((shiftedBochnerMeasure M (μ.restrict Ω) ell n hshift).measure (WithLp.toLp 2 (v, b))).real Ω) ∧ + ‖SobolevSpace.toLp μ hQ (G.mixed - h)‖ ^ 2 ≤ + P * (4 * (L ^ 2 * ‖w‖ ^ 2 * + ((shiftedBochnerMeasure M (μ.restrict Ω) ell n hshift).measure (WithLp.toLp 2 (v, b))).real Ω)) := by + have hm := ShiftedBochnerMeasure.mass M (μ.restrict Ω) ell n hshift v b Ω hΩ + rw [measureReal_restrict_apply hΩ, inter_self] at hm + simp only [Measure.real] at hm + apply G.exists_harmonic_correction μ hQ hΩ hf ha b hP + (mul_nonneg (mul_nonneg (sq_nonneg L) (sq_nonneg ‖w‖)) ENNReal.toReal_nonneg) hpoincare + intro φ + rw [hm] + exact hbound φ + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/PoissonInteriorSmallRadii.lean b/lean/OAI/Geometry/RCD/Sobolev/PoissonInteriorSmallRadii.lean new file mode 100644 index 0000000000000000000000000000000000000000..2933b324c517fec4afca06337934e8d42be57853 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/PoissonInteriorSmallRadii.lean @@ -0,0 +1,74 @@ +import OAI.Geometry.RCD.Coordinates.CoordinateHeatInput +import OAI.Geometry.RCD.Sobolev.SmallScalePoissonGradient +import OAI.Geometry.RCD.Coordinates.BoundedSplittingCoordinates +import Mathlib.Topology.Compactness.Lindelof + +namespace OAI + +/-! # Interior Poisson estimates for locally bounded solutions at small radii -/ + +open Set Filter Metric MeasureTheory +open scoped NNReal ENNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +/-- The half-ball form of the Poisson estimate for radii at most one. +The amplitude hypothesis is local; global truncation is internal. -/ +theorem NoncollapsedRCD.poisson_gradient_at_small_radii {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) [(hausdorff n X).Regular] (hn : 2 ≤ n) + {ker : ℝ → X → X → ℝ} + (hk : IsContinuousHeatKernel (hausdorff n X) hX.quadratic ker) + (hg : HasCoordinateHeatBounds (hausdorff n X) ker) : + ∃ C : ℝ, 1 ≤ C ∧ ∀ (p : X) (r : ℝ), 0 < r → r ≤ 1 → -1 ≤ K*r^2 → + ∀ (f : SobolevSpace (hausdorff n X) hX.quadratic) (c A : ℝ), 0 ≤ A → + IsConstantLaplacianOn (hausdorff n X) hX.quadratic (ball p (8*r)) f c → + (∀ᵐ x ∂(hausdorff n X).restrict (ball p (8*r)), |SobolevSpace.toLp _ _ f x| ≤ A) → + ∀ᵐ x ∂(hausdorff n X).restrict (ball p (4*r)), + localGamma (hausdorff n X) hX.quadratic f f x ≤ (C*(A/r+|c| *r))^2 := by + obtain ⟨M,hM,hlocal⟩ := hX.small_scale_poisson_gradient hn hk hg + refine ⟨16*M,by linarith,?_⟩ + intro p r hr hr1 hcurv f c A hA hf hAbound + let : TopologicalSpace.SeparableSpace X := hX.separable + let μ := hausdorff n X + let : IsLocallyFiniteMeasure μ := locallyFinite_of_finiteOnBounded μ hX.finiteOnBounded + let AA : ℝ≥0 := ⟨A,hA⟩ + obtain ⟨g,hg,hgA,hfg⟩ := hf.bounded_extension μ hX.quadratic measurableSet_ball AA hAbound + have hpair := localGamma_pair_congr_ae μ hX.quadratic hfg hfg + have hcurv' : -1 ≤ K*(4*(r/16))^2 := by nlinarith only [hcurv] + have hC0 : 0 ≤ 16*M := by linarith + have hestimate (q : ball p (4*r)) : + ∀ᵐ x ∂μ.restrict (ball q.val (r/256)), + localGamma μ hX.quadratic f f x ≤ ((16*M)*(A/r+|c| *r))^2 := by + have hq : dist q.val p < 4*r := q.property + have hsub : ball q.val (16*(r/16)) ⊆ ball p (8*r) := + ball_subset_ball' (by linarith) + have hh := hlocal q.val (r/16) (by positivity) (by linarith) hcurv' g c AA + (hg.mono μ hX.quadratic measurableSet_ball hsub) hgA + rw [show (r/16)/16 = r/256 by ring] at hh + have hsmall : ball q.val (r/256) ⊆ ball p (8*r) := + ball_subset_ball' (by linarith) + have hcoeff : M*(A/(r/16)+|c| *(r/16)) ≤ (16*M)*(A/r+|c| *r) := by + have heq : A/(r/16) = 16*(A/r) := by ring + rw [heq] + nlinarith only [mul_nonneg (show 0 ≤ M by linarith) (mul_nonneg (abs_nonneg c) hr.le)] + have hpow : (M*(A/(r/16)+|c| *(r/16)))^2 ≤ ((16*M)*(A/r+|c| *r))^2 := + pow_le_pow_left₀ (by positivity) hcoeff 2 + filter_upwards [hh,ae_restrict_of_ae_restrict_of_subset hsmall hpair] with x hx he + rw [he] + exact hx.trans hpow + let U : ball p (4*r) → Set X := fun q => ball q.val (r/256) + obtain ⟨s,hs,hcover⟩ := (HereditarilyLindelofSpace.isLindelof (ball p (4*r))).elim_countable_subcover + U (fun _ => isOpen_ball) (by + intro x hx + exact mem_iUnion.mpr ⟨⟨x,hx⟩,mem_ball_self (by positivity)⟩) + exact ae_restrict_of_ae_restrict_of_subset hcover + ((ae_restrict_biUnion_iff U hs _).mpr (fun q _ => hestimate q)) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/PoissonInteriorValues.lean b/lean/OAI/Geometry/RCD/Sobolev/PoissonInteriorValues.lean new file mode 100644 index 0000000000000000000000000000000000000000..1d8ca99cfcbd5d9399f3303892adb48537d90451 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/PoissonInteriorValues.lean @@ -0,0 +1,85 @@ +import OAI.Geometry.RCD.Sobolev.PoissonUniformValue +import OAI.Geometry.RCD.Coordinates.RadialFitRestriction + +namespace OAI + +/-! # Uniform Poisson values on the interior compactness ball -/ + +open Set Metric MeasureTheory +open scoped ENNReal BigOperators + +noncomputable section +namespace RegularPointCoordinates + +private theorem quarter_volume_ratio {n : ℕ} {r omega V W : ℝ} + (hr : 0 < r) (homega : 0 < omega) + (hV : |V / (omega * r ^ n) - 1| ≤ 1 / 4) + (hW : |W / (omega * (r / 4) ^ n) - 1| ≤ 1 / 4) : + 0 < V ∧ 0 < W ∧ V ≤ ((5 / 3 : ℝ) * 4 ^ n) * W := by + have hvr : 0 < omega * r ^ n := mul_pos homega (pow_pos hr _) + have hwr : 0 < omega * (r / 4) ^ n := mul_pos homega (pow_pos (by positivity) _) + have hvlo : (3 / 4 : ℝ) * (omega * r ^ n) ≤ V := by + apply (le_div_iff₀ hvr).mp + linarith [(abs_le.mp hV).1] + have hvhi : V ≤ (5 / 4 : ℝ) * (omega * r ^ n) := by + apply (div_le_iff₀ hvr).mp + linarith [(abs_le.mp hV).2] + have hwlo : (3 / 4 : ℝ) * (omega * (r / 4) ^ n) ≤ W := by + apply (le_div_iff₀ hwr).mp + linarith [(abs_le.mp hW).1] + have hpow : (4 : ℝ) ^ n * (r / 4) ^ n = r ^ n := by + rw [← mul_pow] + congr 1 + ring + have hmul := mul_le_mul_of_nonneg_left hwlo (by positivity : 0 ≤ (5 / 3 : ℝ) * 4 ^ n) + have hscale : ((5 / 3 : ℝ) * 4 ^ n) * ((3 / 4) * (omega * (r / 4) ^ n)) = + (5 / 4 : ℝ) * (omega * r ^ n) := by + calc + _ = (5 / 4 : ℝ) * omega * ((4 : ℝ) ^ n * (r / 4) ^ n) := by ring + _ = _ := by rw [hpow]; ring + rw [hscale] at hmul + exact ⟨(mul_pos (by norm_num) hvr).trans_le hvlo, + (mul_pos (by norm_num) hwr).trans_le hwlo, hvhi.trans hmul⟩ + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +/-- Restriction of the actual replacement to the interior quarter ball +preserves a uniform error bound. Only the explicit Euclidean volume ratio +is lost; the bound is independent of the center and dyadic index. -/ +theorem rcd_poisson_interior_value_error_le {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (hn : 2 ≤ n) + [IsFiniteMeasureOnCompacts (hausdorff n X)] + {κ r0 B J C omega eta : ℝ} {p : X} + {S : DyadicDistanceSources (hausdorff n X) hX.quadratic n κ p r0} + (T : DyadicDistanceReplacements (hausdorff n X) hX.quadratic S B J C) + (hκ : 0 ≤ κ) (hB : 0 ≤ B) (heta : 0 ≤ eta) (hr01 : r0 ≤ 1) (homega : 0 < omega) + (hvol : ∀ r : ℝ, 0 < r → r ≤ r0 → + |(hausdorff n X).real (ball p r) / (omega * r ^ n) - 1| ≤ 1 / 4) + (hsum : Summable (normalizedPoissonDefect (hausdorff n X) hX.quadratic S)) + (hbudget : (∑' j, normalizedPoissonDefect (hausdorff n X) hX.quadratic S j) ≤ eta) + (i : ℕ) : + ‖normalizeLocalL2 (hausdorff n X) (ball p (distanceSourceRadius r0 i / 4)) + (ne_of_lt (hX.finiteOnBounded _ isBounded_ball)) + (SobolevSpace.restrictLp (hausdorff n X) hX.quadratic (ball p (distanceSourceRadius r0 i / 4)) + (((distanceSourceRadius r0 i) ^ 2)⁻¹ • + (T.distanceDatum (hausdorff n X) hX.quadratic i - T.replacement i)))‖ ^ 2 ≤ + ((5 / 3 : ℝ) * 4 ^ n) * + ((annularPoincareConstant K n * B / (3 / 4 * omega)) * eta) := by + have hr := distanceSourceRadius_pos S.radius_pos i + have hrad : distanceSourceRadius r0 i ≤ r0 := by + have hh := distanceSourceRadius_outer_le S.radius_pos.le i + linarith + have hquarter : distanceSourceRadius r0 i / 4 ≤ r0 := le_trans (by linarith) hrad + obtain ⟨houter, hinner, hratio⟩ := quarter_volume_ratio hr homega + (hvol _ hr hrad) (hvol _ (by positivity) hquarter) + have hP := (annularPoincareConstant_pos K n).le + exact normalized_fit_restrict_sq (hausdorff n X) hX.quadratic + (ball_subset_ball (by linarith)) _ _ houter hinner _ + (by positivity : 0 ≤ (annularPoincareConstant K n * B / (3 / 4 * omega)) * eta) + hratio (rcd_poisson_value_error_le_budget hX hn T hκ hB hr01 homega hvol hsum hbudget i) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/PoissonLocality.lean b/lean/OAI/Geometry/RCD/Sobolev/PoissonLocality.lean new file mode 100644 index 0000000000000000000000000000000000000000..ffc2a1c2c2d121243071aa2f3045001b8c50087d --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/PoissonLocality.lean @@ -0,0 +1,64 @@ +import OAI.Geometry.RCD.Sobolev.WeakRadialCancellation +import OAI.Geometry.RCD.Sobolev.SobolevLevelChain + +namespace OAI + +/-! # Local representatives and bounded truncation of Poisson solutions -/ + +open Set Filter MeasureTheory +open scoped NNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +/-- Agreement on the working set preserves every zero-boundary pairing. -/ +theorem energyForm_eq_of_ae_eq_on {Ω : Set X} (hΩ : MeasurableSet Ω) + {f g : SobolevSpace μ hQ} + (hfg : SobolevSpace.toLp μ hQ f =ᵐ[μ.restrict Ω] SobolevSpace.toLp μ hQ g) + (φ : SobolevSpace.dirichlet μ hQ Ω) : energyForm μ hQ f φ.val = energyForm μ hQ g φ.val := by + rw [← integral_localGamma_dirichlet μ hQ Ω hΩ f φ, + ← integral_localGamma_dirichlet μ hQ Ω hΩ g φ] + apply integral_congr_ae + filter_upwards [hfg,ae_restrict_of_ae (localGamma_eq_on_eq μ hQ f g φ.val)] with x hx hlocal + exact hlocal hx + +/-- The local weak Poisson equation only depends on the representative +inside its domain. -/ +theorem IsConstantLaplacianOn.congr_ae {Ω : Set X} (hΩ : MeasurableSet Ω) + {f g : SobolevSpace μ hQ} {c : ℝ} + (hf : IsConstantLaplacianOn μ hQ Ω f c) + (hfg : SobolevSpace.toLp μ hQ f =ᵐ[μ.restrict Ω] SobolevSpace.toLp μ hQ g) : + IsConstantLaplacianOn μ hQ Ω g c := by + intro φ hφ + rw [← energyForm_eq_of_ae_eq_on μ hQ hΩ hfg ⟨φ,hφ⟩] + exact hf φ hφ + +/-- A local amplitude bound permits a globally bounded representative in +the same Sobolev class on the working domain, without changing its source. -/ +theorem IsConstantLaplacianOn.bounded_extension {Ω : Set X} (hΩ : MeasurableSet Ω) + {f : SobolevSpace μ hQ} {c : ℝ} (hf : IsConstantLaplacianOn μ hQ Ω f c) + (A : ℝ≥0) (hA : ∀ᵐ x ∂μ.restrict Ω, |SobolevSpace.toLp μ hQ f x| ≤ A) : + ∃ g : SobolevSpace μ hQ, + IsConstantLaplacianOn μ hQ Ω g c ∧ + (∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ g x| ≤ A) ∧ + SobolevSpace.toLp μ hQ f =ᵐ[μ.restrict Ω] SobolevSpace.toLp μ hQ g := by + let g := SobolevSpace.compContraction μ hQ (clipReal_lipschitz A) (clipReal_zero A) f + have hg : SobolevSpace.toLp μ hQ g =ᵐ[μ] + fun x => clipReal A (SobolevSpace.toLp μ hQ f x) := + (clipReal_lipschitz A).coeFn_compLp (clipReal_zero A) _ + have heq : SobolevSpace.toLp μ hQ f =ᵐ[μ.restrict Ω] SobolevSpace.toLp μ hQ g := by + filter_upwards [hA,ae_restrict_of_ae hg] with x hx he + exact (he.trans (clipReal_eq_self A hx)).symm + refine ⟨g,hf.congr_ae μ hQ hΩ heq,?_,heq⟩ + filter_upwards [hg] with x hx + rw [hx] + exact clipReal_abs_le _ _ + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/PoissonMassUnits.lean b/lean/OAI/Geometry/RCD/Sobolev/PoissonMassUnits.lean new file mode 100644 index 0000000000000000000000000000000000000000..429005e2a20fe7e8381da4a71a786158ecae2842 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/PoissonMassUnits.lean @@ -0,0 +1,47 @@ +import OAI.Geometry.RCD.Sobolev.PoissonDefectBudget + +namespace OAI + +/-! # The full Poisson mass budget in the original normalized source units -/ + +open Set Metric MeasureTheory + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) [IsFiniteMeasureOnCompacts μ] (hQ : QuadraticCheegerEnergy μ) + +/-- Source and curvature terms are paid by the same original normalized +Poisson defect, with a constant independent of the dyadic radius. -/ +theorem poisson_pair_mass_units {n : ℕ} {κ root q A : ℝ} {p z : X} + (S1 : DyadicDistanceSources μ hQ n κ p root) + (S2 : DyadicDistanceSources μ hQ n κ z root) + (hκ : 0 ≤ κ) (hq : 0 ≤ q) (i : ℕ) : + let s := distanceSourceRadius root i + 2 * (q * ((S1.source i).real (ball p s) + (S2.source i).real (ball z s)) + + κ * A ^ 2 * s ^ 2 * (μ.real (ball p s) + μ.real (ball z s))) ≤ + 2 * (q + A ^ 2) * s ^ (n : ℝ) * + (normalizedPoissonDefect μ hQ S1 i + normalizedPoissonDefect μ hQ S2 i) := by + intro s + have h1 := normalizedPoissonDefect_units μ hQ S1 i + have h2 := normalizedPoissonDefect_units μ hQ S2 i + have heq : s ^ (n : ℝ) * (normalizedPoissonDefect μ hQ S1 i + + normalizedPoissonDefect μ hQ S2 i) = + ((S1.source i).real (ball p s) + (S2.source i).real (ball z s)) + + κ * s ^ 2 * (μ.real (ball p s) + μ.real (ball z s)) := by + rw [mul_add, h1, h2] + ring + rw [show 2 * (q + A ^ 2) * s ^ (n : ℝ) * + (normalizedPoissonDefect μ hQ S1 i + normalizedPoissonDefect μ hQ S2 i) = + 2 * (q + A ^ 2) * (s ^ (n : ℝ) * + (normalizedPoissonDefect μ hQ S1 i + normalizedPoissonDefect μ hQ S2 i)) by ring, heq] + have hc : 0 ≤ κ * s ^ 2 * (μ.real (ball p s) + μ.real (ball z s)) := by positivity + have hv : 0 ≤ (S1.source i).real (ball p s) + (S2.source i).real (ball z s) := by positivity + nlinarith only [mul_nonneg hq hc, mul_nonneg (sq_nonneg A) hv] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/PoissonPairDefect.lean b/lean/OAI/Geometry/RCD/Sobolev/PoissonPairDefect.lean new file mode 100644 index 0000000000000000000000000000000000000000..725ac5d880ea36541b582255412894a11eec2a72 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/PoissonPairDefect.lean @@ -0,0 +1,48 @@ +import OAI.Geometry.RCD.Sobolev.PoissonDefectBudget + +namespace OAI + +/-! # The full two-center source in the common Poisson defect units -/ + +open Set Metric MeasureTheory + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) [IsFiniteMeasureOnCompacts μ] (hQ : QuadraticCheegerEnergy μ) + +/-- Both positive source masses and the curvature remainder are controlled +by the sum of the two original normalized defects. -/ +theorem poisson_pair_defect_bound {n : ℕ} {κ r0 : ℝ} {p₁ p₂ : X} + (S₁ : DyadicDistanceSources μ hQ n κ p₁ r0) + (S₂ : DyadicDistanceSources μ hQ n κ p₂ r0) (i : ℕ) + {C A : ℝ} (hκ : 0 ≤ κ) (hC : 0 ≤ C) : + let s := distanceSourceRadius r0 i + C * ((S₁.source i).real (ball p₁ s) + (S₂.source i).real (ball p₂ s)) + + κ * A ^ 2 * s ^ 2 * (μ.real (ball p₁ s) + μ.real (ball p₂ s)) ≤ + (C + A ^ 2) * s ^ (n : ℝ) * + (normalizedPoissonDefect μ hQ S₁ i + normalizedPoissonDefect μ hQ S₂ i) := by + dsimp only + let s := distanceSourceRadius r0 i + have hu : s ^ (n : ℝ) * + (normalizedPoissonDefect μ hQ S₁ i + normalizedPoissonDefect μ hQ S₂ i) = + (S₁.source i).real (ball p₁ s) + (S₂.source i).real (ball p₂ s) + + κ * s ^ 2 * (μ.real (ball p₁ s) + μ.real (ball p₂ s)) := by + rw [mul_add, normalizedPoissonDefect_units μ hQ S₁ i, + normalizedPoissonDefect_units μ hQ S₂ i] + ring + have hsource : 0 ≤ (S₁.source i).real (ball p₁ s) + (S₂.source i).real (ball p₂ s) := by positivity + have hcurv : 0 ≤ κ * s ^ 2 * (μ.real (ball p₁ s) + μ.real (ball p₂ s)) := by positivity + calc + _ ≤ (C + A ^ 2) * + ((S₁.source i).real (ball p₁ s) + (S₂.source i).real (ball p₂ s) + + κ * s ^ 2 * (μ.real (ball p₁ s) + μ.real (ball p₂ s))) := by + nlinarith only [mul_nonneg (sq_nonneg A) hsource, mul_nonneg hC hcurv] + _ = _ := by rw [← hu]; ring + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/PoissonPairSpan.lean b/lean/OAI/Geometry/RCD/Sobolev/PoissonPairSpan.lean new file mode 100644 index 0000000000000000000000000000000000000000..364d523eefc747ec6801399146736617358f3e39 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/PoissonPairSpan.lean @@ -0,0 +1,99 @@ +import OAI.Geometry.RCD.Sobolev.PoissonFamilyGradient +import OAI.Geometry.RCD.Sobolev.PoissonSpan + +namespace OAI + +/-! # The shared Hessian span of two actual same-scale replacements -/ + +open Set Metric MeasureTheory +open scoped NNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +/-- The harmonic column and the two actual replacements admit one shared +full Bochner measure and the shifted Hessian pairing bounds. -/ +theorem actual_poisson_pair_span {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) [IsFiniteMeasureOnCompacts (hausdorff n X)] + (hhessian : LocalPoissonHessianInput hX) + {κ B J C A epsilon r0 : ℝ} (hκ : 0 ≤ κ) (hK : -κ ≤ K) + (hA : 0 ≤ A) (hepsilon : 0 ≤ epsilon) (p₁ p₂ z : X) + (S₁ : DyadicDistanceSources (hausdorff n X) hX.quadratic n κ p₁ r0) + (S₂ : DyadicDistanceSources (hausdorff n X) hX.quadratic n κ p₂ r0) + (T₁ : DyadicDistanceReplacements (hausdorff n X) hX.quadratic S₁ B J C) + (T₂ : DyadicDistanceReplacements (hausdorff n X) hX.quadratic S₂ B J C) + (i : ℕ) + (hroom₁ : dist z p₁ ≤ distanceSourceRadius r0 i / 4) + (hroom₂ : dist z p₂ ≤ distanceSourceRadius r0 i / 4) + (u : Fin n → SobolevSpace (hausdorff n X) hX.quadratic) + (hu : ∀ j, IsSobolevHarmonicOn (hausdorff n X) hX.quadratic + (ball z (distanceSourceRadius r0 i / 4)) (u j)) + (hgrad : ∀ j, ∀ᵐ x ∂(hausdorff n X).restrict (ball z (distanceSourceRadius r0 i / 4)), + localGamma (hausdorff n X) hX.quadratic (u j) (u j) x ≤ (1 + epsilon) ^ 2) + (hf₁ : ∀ᵐ x ∂(hausdorff n X).restrict (ball z (distanceSourceRadius r0 i / 4)), + localGamma (hausdorff n X) hX.quadratic (T₁.replacement i) (T₁.replacement i) x ≤ + (A * distanceSourceRadius r0 i) ^ 2) + (hf₂ : ∀ᵐ x ∂(hausdorff n X).restrict (ball z (distanceSourceRadius r0 i / 4)), + localGamma (hausdorff n X) hX.quadratic (T₂.replacement i) (T₂.replacement i) x ≤ + (A * distanceSourceRadius r0 i) ^ 2) : + let s := distanceSourceRadius r0 i + let f : Fin 2 → SobolevSpace (hausdorff n X) hX.quadratic := + ![T₁.replacement i, T₂.replacement i] + let U := sobolevColumnMap (hausdorff n X) hX.quadratic + (poissonSpan (hausdorff n X) hX.quadratic u f) + let ell := poissonSpanLaplacian n ((n : ℝ) + κ * (4 * s) ^ 2) + ∃ L : ℝ≥0, (L : ℝ) = ((n + 2 : ℕ) : ℝ) * max (1 + epsilon) (A * s) ∧ + ∃ M : PositiveBilinearMeasure X (Euclidean (n + 2)), + (∀ v, Nonempty (LocalHarmonicEnergy (hausdorff n X) hX.quadratic U M κ z (s / 32) L v)) ∧ + ShiftedBochnerLowerBound M ((hausdorff n X).restrict (ball z (2 * (s / 32)))) ell n ∧ + ∀ v w (t : ℝ), 0 < t → t ≤ 2 * (s / 32) → + ∃ G : LocalHessianPairing (hausdorff n X) hX.quadratic + (ball z t) (U v) (U w), + ∀ b : ℝ, ∀ φ : SobolevSpace.dirichlet (hausdorff n X) hX.quadratic (ball z t), + (G.hessian φ - b * energyForm (hausdorff n X) hX.quadratic (U w) φ.val) ^ 2 ≤ + ((L : ℝ) ^ 2 * ‖w‖ ^ 2 * + ((M.measure v).real (ball z t) - + (2 * b * ell v - (n : ℝ) * b ^ 2) * + (hausdorff n X).real (ball z t))) * + energyForm (hausdorff n X) hX.quadratic φ.val φ.val := by + let s := distanceSourceRadius r0 i + have hs : 0 < s := distanceSourceRadius_pos S₁.radius_pos i + let f : Fin 2 → SobolevSpace (hausdorff n X) hX.quadratic := + ![T₁.replacement i, T₂.replacement i] + let G₀ := max (1 + epsilon) (A * s) + have hG₀ : 0 ≤ G₀ := (by linarith : 0 ≤ 1 + epsilon).trans (le_max_left _ _) + let L : ℝ≥0 := ⟨((n + 2 : ℕ) : ℝ) * G₀, mul_nonneg (Nat.cast_nonneg _) hG₀⟩ + refine ⟨L, rfl, ?_⟩ + apply hhessian κ hκ hK z (s / 32) (by positivity) L + (sobolevColumnMap (hausdorff n X) hX.quadratic + (poissonSpan (hausdorff n X) hX.quadratic u f)) + (poissonSpanLaplacian n ((n : ℝ) + κ * (4 * s) ^ 2)) + · intro v + rw [show 8 * (s / 32) = s / 4 by ring] + apply poissonSpan_constant_laplacian (hausdorff n X) hX.quadratic u f _ hu + intro j + fin_cases j + · exact T₁.laplacian_on_ball (hausdorff n X) hX.quadratic i z (by change s / 4 + dist z p₁ ≤ s; change dist z p₁ ≤ s / 4 at hroom₁; linarith) + · exact T₂.laplacian_on_ball (hausdorff n X) hX.quadratic i z (by change s / 4 + dist z p₂ ≤ s; change dist z p₂ ≤ s / 4 at hroom₂; linarith) + · intro v + rw [show 8 * (s / 32) = s / 4 by ring] + apply poissonSpan_gradient (hausdorff n X) hX.quadratic u f G₀ + · intro j + filter_upwards [hgrad j] with x hx + exact hx.trans ((sq_le_sq₀ (by linarith) hG₀).mpr (le_max_left _ _)) + · intro j + have hj : ∀ᵐ x ∂(hausdorff n X).restrict (ball z (s / 4)), + localGamma (hausdorff n X) hX.quadratic (f j) (f j) x ≤ (A * s) ^ 2 := by + fin_cases j + · exact hf₁ + · exact hf₂ + filter_upwards [hj] with x hx + exact hx.trans ((sq_le_sq₀ (mul_nonneg hA hs.le) hG₀).mpr (le_max_right _ _)) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/PoissonPathDefectBound.lean b/lean/OAI/Geometry/RCD/Sobolev/PoissonPathDefectBound.lean new file mode 100644 index 0000000000000000000000000000000000000000..c05a9792797ca902521b1e7554f779fa4a6fd514 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/PoissonPathDefectBound.lean @@ -0,0 +1,65 @@ +import OAI.Geometry.RCD.Sobolev.DistancePoissonBoundedMean +import OAI.Geometry.RCD.Coordinates.NormalizedSubplanData +import OAI.Geometry.RCD.Transport.SubplanAbsoluteIntegral +import OAI.Geometry.RCD.Harmonic.InteriorQuadraticDefect + +namespace OAI + +/-! # An absolute path-error bound from the actual Poisson mean estimate -/ + +open Set Filter Metric MeasureTheory TopologicalSpace +open scoped Topology NNReal ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + {K : ℝ} {n : ℕ} {hX : NoncollapsedRCD K n X} {hn : 2≤n} [SeparableSpace X] + [IsLocallyFiniteMeasure (hausdorff n X)] [(hausdorff n X).Regular] + {κ B J C : ℝ} {p : ℕ → X} {r : ℕ → ℝ} {hr : ∀ k, 0 γ 0)) (π.map (fun γ => γ 1)) + (π.map (fun γ => (γ 0,γ 1)))) + {Bπ : ℝ≥0∞} (hBπ : Bπ≠∞) (hcomp : ∀ t : Time, π.map (fun γ => γ t)≤Bπ • hausdorff n X) + (hs₀ : ∀ᵐ x ∂π.map (fun γ => γ 0), dist x (p k)≤r k/512) + (hs₁ : ∀ᵐ x ∂π.map (fun γ => γ 1), dist x (p k)≤r k/512) + (l h t : Time) (hl : 0<(l:ℝ)) (hlh : (l:ℝ) γ 0)) (p k) hs₀) + (finiteSecondMoment_of_bounded (π.map (fun γ => γ 1)) (p k) hs₁) hopt.1 hopt.2.1 + have hd := path_cost_integrable π hfin + have hE : 0≤E := by dsimp only [E,poissonMeanConstant]; positivity + apply integral_abs_le_of_normalized_submeans π + (interiorQuadraticDefect_continuous hU.continuous l h t).measurable + (interiorQuadraticDefect_integrable π hU.continuous hUc hd l h t) hE + intro σ hσ hσ0 + obtain ⟨hprob,hgeoσ,hoptσ,hcompσ,hsσ₀,hsσ₁⟩ := normalized_subplan_data π hgeo hopt hfin + (hausdorff n X) hcomp (p k) hs₀ hs₁ σ hσ hσ0 + let := hprob + have ha : (σ univ)⁻¹≠∞ := ENNReal.inv_ne_top.mpr hσ0 + have hBσ : (σ univ)⁻¹*Bπ≠∞ := ENNReal.mul_ne_top ha hBπ + have hdσ : Integrable (fun γ : C(Time,X) => dist (γ 0) (γ 1)^2) ((σ univ)⁻¹ • σ) := + (hd.mono_measure hσ).smul_measure ha + rw [integral_interiorQuadraticDefect _ hU.continuous hUc hdσ l h t] + have he := W.bounded_mean_estimate (hX := hX) (hn := hn) p₀ k hK hκ hBJ hr1 ((σ univ)⁻¹ • σ) + hgeoσ hoptσ hBσ hcompσ hsσ₀ hsσ₁ l h t hl hlh hh ht + convert he using 1 + dsimp only [E] + rw [ENNReal.toReal_mul] + ring + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/PoissonPathDefectLimit.lean b/lean/OAI/Geometry/RCD/Sobolev/PoissonPathDefectLimit.lean new file mode 100644 index 0000000000000000000000000000000000000000..053e3a9e66a219c1ce188be7665894d0d77245de --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/PoissonPathDefectLimit.lean @@ -0,0 +1,56 @@ +import OAI.Geometry.RCD.Sobolev.PoissonPathDefectBound + +namespace OAI + +/-! # Vanishing normalized absolute path error for Poisson replacements -/ + +open Set Filter Metric MeasureTheory TopologicalSpace +open scoped Topology NNReal ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + {K : ℝ} {n : ℕ} {hX : NoncollapsedRCD K n X} {hn : 2≤n} [SeparableSpace X] + [IsLocallyFiniteMeasure (hausdorff n X)] [(hausdorff n X).Regular] + {κ B J C : ℝ} {p : ℕ → X} {r : ℕ → ℝ} {hr : ∀ k, 0 (F.source k).real (ball (p k) (r k))/ + (hausdorff n X).real (ball (p k) (r k))) atTop (𝓝 0)) + (π : ℕ → Measure C(Time,X)) [∀ k, IsProbabilityMeasure (π k)] + (hgeo : ∀ k, ∀ᵐ γ ∂π k, IsGeodesic γ) + (hopt : ∀ k, IsOptimalCoupling ((π k).map (fun γ => γ 0)) ((π k).map (fun γ => γ 1)) + ((π k).map (fun γ => (γ 0,γ 1)))) + (Bπ : ℕ → ℝ≥0∞) (hBπ : ∀ k, Bπ k≠∞) + (hcomp : ∀ k (t : Time), (π k).map (fun γ => γ t)≤Bπ k • hausdorff n X) + (hs₀ : ∀ k, ∀ᵐ x ∂(π k).map (fun γ => γ 0), dist x (p k)≤r k/512) + (hs₁ : ∀ k, ∀ᵐ x ∂(π k).map (fun γ => γ 1), dist x (p k)≤r k/512) + {Cπ : ℝ} (hcompression : ∀ k, (Bπ k).toReal*(hausdorff n X).real (ball (p k) (r k))≤Cπ) + (l h t : Time) (hl : 0<(l:ℝ)) (hlh : (l:ℝ) (∫ γ, |interiorQuadraticDefect (W.representative k) l h t γ| ∂π k)/(r k)^2) + atTop (𝓝 0) := by + apply normalized_quadratic_mean_error_tendsto_zero r + (fun k => (hausdorff n X).real (ball (p k) (r k))) (W.budget K) + (fun k => (Bπ k).toReal) _ hr hV (W.budget_nonneg hK hBJ) + (show 0≤2*(poissonMeanConstant K (hX.centeredActionBound hn p₀) l*((h:ℝ)-l)^2) by + unfold poissonMeanConstant + positivity) + hcompression (W.normalized_budget_tendsto_zero hK hBJ hV hr0 hmass) + intro k + rw [abs_of_nonneg (integral_nonneg fun γ => abs_nonneg _)] + have he := W.path_defect_bound (hX := hX) (hn := hn) p₀ k hK hκ hBJ (hr1 k) (π k) (hgeo k) (hopt k) + (hBπ k) (hcomp k) (hs₀ k) (hs₁ k) l h t hl hlh hh ht + exact he.trans_eq (by ring) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/PoissonProjectionGradient.lean b/lean/OAI/Geometry/RCD/Sobolev/PoissonProjectionGradient.lean new file mode 100644 index 0000000000000000000000000000000000000000..fdf6ff94f61efb2826aeea66019d920a146c825f --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/PoissonProjectionGradient.lean @@ -0,0 +1,109 @@ +import OAI.Geometry.RCD.Sobolev.PoissonCommonRegion +import OAI.Geometry.RCD.Harmonic.ActualProjectionUnits +import OAI.Geometry.RCD.Coordinates.AffineFitPerturbation + +namespace OAI + +/-! # The actual harmonic residual and its physical gradient bound -/ + +open Set Metric MeasureTheory +open scoped ENNReal InnerProductSpace + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +/-- A sharp L² bound for the actual two-center projection yields a harmonic +Sobolev residual with the corresponding physical gradient bound. -/ +theorem poisson_projection_gradient {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) [IsFiniteMeasureOnCompacts (hausdorff n X)] + (hgradient : LocalHarmonicL2GradientInput hX) (hn : 2 ≤ n) + {P : ℝ} (hP : 0 < P) : + ∃ Q : ℝ, 0 < Q ∧ ∀ {κ root B J C : ℝ} {first center : X} + (S1 : DyadicDistanceSources (hausdorff n X) hX.quadratic n κ first root) + (S2 : DyadicDistanceSources (hausdorff n X) hX.quadratic n κ center root) + (T1 : DyadicDistanceReplacements (hausdorff n X) hX.quadratic S1 B J C) + (T2 : DyadicDistanceReplacements (hausdorff n X) hX.quadratic S2 B J C) (i : ℕ), + let s := distanceSourceRadius root i + let I := ball center ((1 / 2048) * s) + dist center first ≤ s / 4 → -1 ≤ K * s ^ 2 → + ∀ (u : Fin n → SobolevSpace (hausdorff n X) hX.quadratic) + (eta : SobolevSpace (hausdorff n X) hX.quadratic), + (∀ j, IsSobolevHarmonicOn (hausdorff n X) hX.quadratic I (u j)) → + (SobolevSpace.toLp (hausdorff n X) hX.quadratic eta =ᵐ[ + (hausdorff n X).restrict I] fun _ => (1 : ℝ)) → + ∀ source : ℝ, 0 ≤ source → + ‖normalizeLocalL2 (hausdorff n X) I (ne_of_lt (hX.finiteOnBounded _ isBounded_ball)) + (affineResidual (hausdorff n X) hX.quadratic + (radiusScaledColumns (hausdorff n X) hX.quadratic s u) I + (ne_of_lt (hX.finiteOnBounded _ isBounded_ball)) + (SobolevSpace.restrictLp (hausdorff n X) hX.quadratic I + ((s ^ 2)⁻¹ • (T2.replacement i - T1.replacement i))))‖ ≤ P * source → + ∃ (c : ℝ) (b : Euclidean n) (w : SobolevSpace (hausdorff n X) hX.quadratic), + w = T2.replacement i - T1.replacement i - + (c • eta + sobolevColumnMap (hausdorff n X) hX.quadratic u b) ∧ + IsSobolevHarmonicOn (hausdorff n X) hX.quadratic I w ∧ + SobolevSpace.restrictLp (hausdorff n X) hX.quadratic I w = + affineResidual (hausdorff n X) hX.quadratic u I + (ne_of_lt (hX.finiteOnBounded _ isBounded_ball)) + (SobolevSpace.restrictLp (hausdorff n X) hX.quadratic I (T2.replacement i - T1.replacement i)) ∧ + ∀ᵐ x ∂(hausdorff n X).restrict (ball center ((1 / 4096) * s)), + localGamma (hausdorff n X) hX.quadratic w w x ≤ Q ^ 2 * s ^ 2 * source ^ 2 := by + obtain ⟨Cg, hCg, hgrad⟩ := hgradient hn ((1 / 2048 : ℝ) ^ 2) (1 / 2) + (sq_nonneg _) (by norm_num) (by norm_num) + refine ⟨2048 * Cg * P, mul_pos (mul_pos (by norm_num) (by linarith)) hP, ?_⟩ + intro κ root B J C first center S1 S2 T1 T2 i s I hroom hcurv u eta hu heta source hsource hbound + let μ := hausdorff n X + let hQ := hX.quadratic + let v := T2.replacement i - T1.replacement i + have hs : 0 < s := distanceSourceRadius_pos S1.radius_pos i + have hv : IsSobolevHarmonicOn μ hQ I v := + common_replacement_difference_harmonic μ hQ T1 T2 i center + (by change (1 / 2048 : ℝ) * s + dist center first ≤ s; linarith) + (by change (1 / 2048 : ℝ) * s + dist center center ≤ s; simp only [dist_self]; linarith) + have hηharm := isSobolevHarmonicOn_of_local_constant μ hQ I measurableSet_ball eta 1 heta + have hfin : μ I ≠ ∞ := ne_of_lt (hX.finiteOnBounded _ isBounded_ball) + obtain ⟨F, c, b, hF, hFharm, hFrep⟩ := affineProjection_harmonic_representative μ hQ + u I hfin hu eta hηharm (restrictLp_eq_one_of_representative μ hQ eta I hfin heta) + (SobolevSpace.restrictLp μ hQ I v) + let w := v - F + have hwharm : IsSobolevHarmonicOn μ hQ I w := by + simpa only [w, sub_eq_add_neg, neg_one_smul] using hv.add μ hQ (hFharm.smul μ hQ (-1)) + have hproj : SobolevSpace.restrictLp μ hQ I w = affineResidual μ hQ u I hfin + (SobolevSpace.restrictLp μ hQ I v) := by + change SobolevSpace.restrictLp μ hQ I (v - F) = _ + rw [map_sub, hFrep] + rfl + have hscaled := radius_scaled_projection μ hQ hs.ne' u I hfin v w hproj + rw [← hscaled, map_smul, normalizeLocalL2_smul, norm_smul, Real.norm_eq_abs, + abs_of_pos (inv_pos.mpr (sq_pos_of_pos hs))] at hbound + have hsize : ‖normalizeLocalL2 μ I hfin (SobolevSpace.restrictLp μ hQ I w)‖ ≤ + P * s ^ 2 * source := by + have hh := mul_le_mul_of_nonneg_left hbound (sq_nonneg s) + calc + _ = s ^ 2 * ((s ^ 2)⁻¹ * ‖normalizeLocalL2 μ I hfin (SobolevSpace.restrictLp μ hQ I w)‖) := by + field_simp [hs.ne'] + _ ≤ s ^ 2 * (P * source) := hh + _ = _ := by ring + have hlocalcurv : -((1 / 2048 : ℝ) ^ 2) ≤ K * ((1 / 2048) * s) ^ 2 := by + have hh := mul_le_mul_of_nonneg_left hcurv (sq_nonneg (1 / 2048 : ℝ)) + nlinarith only [hh] + have hg := hgrad center ((1 / 2048) * s) (by positivity) hlocalcurv w hwharm + change ∀ᵐ x ∂μ.restrict (ball center ((1 / 2) * ((1 / 2048) * s))), + localGamma μ hQ w w x ≤ _ at hg + rw [show (1 / 2 : ℝ) * ((1 / 2048) * s) = (1 / 4096) * s by ring] at hg + have hsquare := (sq_le_sq₀ (norm_nonneg _) (by positivity : 0 ≤ P * s ^ 2 * source)).mpr hsize + rw [← normalized_sobolev_mean_sq μ hQ I hfin] at hg + refine ⟨c, b, w, by dsimp only [w, v]; rw [hF], hwharm, hproj, ?_⟩ + filter_upwards [hg] with x hx + apply hx.trans + have hh := mul_le_mul_of_nonneg_left hsquare (sq_nonneg (Cg / ((1 / 2048) * s))) + convert hh using 1 + field_simp [hs.ne'] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/PoissonReplacement.lean b/lean/OAI/Geometry/RCD/Sobolev/PoissonReplacement.lean new file mode 100644 index 0000000000000000000000000000000000000000..e985c9499559533fbb7d135c6367cf638333163a --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/PoissonReplacement.lean @@ -0,0 +1,142 @@ +import OAI.Geometry.RCD.Sobolev.DirichletPoincare + +namespace OAI + +/-! # Constant-Laplacian replacements with prescribed Sobolev boundary data -/ + +open Set MeasureTheory +open scoped InnerProductSpace ENNReal + +noncomputable section + +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] + (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +/-- Integration against an actual `L²` source on the Dirichlet space. -/ +def dirichletSource (Ω : Set X) (g : Lp ℝ 2 μ) : + SobolevSpace.dirichlet μ hQ Ω →L[ℝ] ℝ := + (innerSL ℝ g).comp ((SobolevSpace.toLpCLM μ hQ).comp + (SobolevSpace.dirichlet μ hQ Ω).subtypeL) + +theorem dirichletSource_apply (Ω : Set X) (g : Lp ℝ 2 μ) + (φ : SobolevSpace.dirichlet μ hQ Ω) : + dirichletSource μ hQ Ω g φ = inner ℝ g (SobolevSpace.toLp μ hQ φ.val) := rfl + +/-- The finite-measure indicator is the constant source on the domain. -/ +theorem dirichletSource_indicator (Ω : Set X) (hΩ : MeasurableSet Ω) + (hfin : μ Ω ≠ ∞) (c : ℝ) (φ : SobolevSpace.dirichlet μ hQ Ω) : + dirichletSource μ hQ Ω (indicatorConstLp 2 hΩ hfin c) φ = + c * ∫ x in Ω, SobolevSpace.toLp μ hQ φ.val x ∂μ := by + rw [dirichletSource_apply, L2.inner_def] + calc + _ = ∫ x, Ω.indicator (fun x => c * SobolevSpace.toLp μ hQ φ.val x) x ∂μ := by + apply integral_congr_ae + filter_upwards [indicatorConstLp_coeFn (p := 2) (hs := hΩ) (hμs := hfin) (c := c)] with x hx + rw [hx] + by_cases hm : x ∈ Ω <;> simp [hm, mul_comm] + _ = _ := by rw [integral_indicator hΩ, integral_const_mul] + +omit [MetricSpace X] in +theorem norm_indicator_source_sq (Ω : Set X) (hΩ : MeasurableSet Ω) + (hfin : μ Ω ≠ ∞) (c : ℝ) : + ‖indicatorConstLp 2 hΩ hfin c‖ ^ 2 = c ^ 2 * μ.real Ω := by + rw [← lp_integral_square_eq_norm_square] + calc + _ = ∫ x, Ω.indicator (fun _ => c ^ 2) x ∂μ := by + apply integral_congr_ae + filter_upwards [indicatorConstLp_coeFn (p := 2) (hs := hΩ) (hμs := hfin) (c := c)] with x hx + rw [hx] + by_cases hm : x ∈ Ω <;> simp [hm] + _ = c ^ 2 * μ.real Ω := by + rw [integral_indicator hΩ] + simp [mul_comm] + +/-- Testing a Dirichlet solution with itself gives its quantitative energy +bound from the `L²` source and the Poincare constant. -/ +theorem dirichlet_solution_energy_le (Ω : Set X) {P : ℝ} (hP : 0 ≤ P) + (hbound : ∀ f : SobolevSpace.dirichlet μ hQ Ω, + ‖SobolevSpace.toLp μ hQ f.val‖ ^ 2 ≤ P * energyForm μ hQ f.val f.val) + (g : Lp ℝ 2 μ) (f : SobolevSpace.dirichlet μ hQ Ω) + (hsolve : ∀ φ : SobolevSpace.dirichlet μ hQ Ω, + energyForm μ hQ f.val φ.val = -dirichletSource μ hQ Ω g φ) : + energyForm μ hQ f.val f.val ≤ P * ‖g‖ ^ 2 := by + let e := energyForm μ hQ f.val f.val + have he : 0 ≤ e := by + dsimp [e] + rw [energyForm_self] + exact mul_nonneg (by norm_num) (SobolevSpace.energy_nonneg μ hQ f.val) + have hcs : |e| ≤ ‖g‖ * ‖SobolevSpace.toLp μ hQ f.val‖ := by + dsimp [e] + rw [hsolve f, dirichletSource_apply, abs_neg] + exact abs_real_inner_le_norm _ _ + have hsq := (sq_le_sq₀ (abs_nonneg e) + (mul_nonneg (norm_nonneg g) (norm_nonneg _))).mpr hcs + rw [sq_abs, mul_pow] at hsq + have hb := mul_le_mul_of_nonneg_left (hbound f) (sq_nonneg ‖g‖) + change ‖g‖ ^ 2 * ‖SobolevSpace.toLp μ hQ f.val‖ ^ 2 ≤ ‖g‖ ^ 2 * (P * e) at hb + by_cases hz : e = 0 + · change e ≤ P * ‖g‖ ^ 2 + rw [hz] + exact mul_nonneg hP (sq_nonneg _) + · have hp : 0 < e := lt_of_le_of_ne he (Ne.symm hz) + change e ≤ P * ‖g‖ ^ 2 + apply (mul_le_mul_iff_left₀ hp).mp + calc + e * e = e ^ 2 := by ring + _ ≤ ‖g‖ ^ 2 * (P * e) := hsq.trans hb + _ = (P * ‖g‖ ^ 2) * e := by ring + +/-- Solves `Delta v = c` with `v-u` in the genuine zero-boundary Sobolev +space. Only the displayed Poincare bound and finite domain measure are used. -/ +theorem exists_constant_laplacian_replacement (Ω : Set X) (hΩ : MeasurableSet Ω) + (hfin : μ Ω ≠ ∞) {P : ℝ} (hP : 0 ≤ P) + (hbound : ∀ f : SobolevSpace.dirichlet μ hQ Ω, + ‖SobolevSpace.toLp μ hQ f.val‖ ^ 2 ≤ P * energyForm μ hQ f.val f.val) + (c : ℝ) (u : SobolevSpace μ hQ) : + ∃ v : SobolevSpace μ hQ, v - u ∈ SobolevSpace.dirichlet μ hQ Ω ∧ + ∀ φ : SobolevSpace.dirichlet μ hQ Ω, + energyForm μ hQ v φ.val = -c * ∫ x in Ω, SobolevSpace.toLp μ hQ φ.val x ∂μ := by + let F := -dirichletSource μ hQ Ω (indicatorConstLp 2 hΩ hfin c) - + (sobolevEnergyForm μ hQ u).comp (SobolevSpace.dirichlet μ hQ Ω).subtypeL + obtain ⟨w, hw, _⟩ := existsUnique_dirichlet_solution μ hQ Ω hP hbound F + refine ⟨u + w.val, ?_, ?_⟩ + · simpa only [add_sub_cancel_left] using w.property + · intro φ + have he := hw φ + change energyForm μ hQ w.val φ.val = + -dirichletSource μ hQ Ω (indicatorConstLp 2 hΩ hfin c) φ - + energyForm μ hQ u φ.val at he + rw [dirichletSource_indicator] at he + rw [energyForm_add_left] + linarith + +variable [BorelSpace X] + +/-- The RCD hypotheses supply both the finite measure and the Poincare +bound used by the constant-Laplacian construction. -/ +theorem NoncollapsedRCD.exists_constant_laplacian_replacement + (K : ℝ) (n : ℕ) (hn : 2 ≤ n) (hX : NoncollapsedRCD K n X) + (p : X) {R : ℝ} (hR : 0 ≤ R) (Ω B : Set X) + (hΩ : MeasurableSet Ω) (hB : MeasurableSet B) + (hΩ0 : hausdorff n X Ω ≠ 0) (hB0 : hausdorff n X B ≠ 0) + (hsΩ : Ω ⊆ Metric.closedBall p R) (hsB : B ⊆ Metric.closedBall p R) + (hBΩ : B ⊆ Ωᶜ) (c : ℝ) (u : SobolevSpace (hausdorff n X) hX.quadratic) : + ∃ v : SobolevSpace (hausdorff n X) hX.quadratic, + v - u ∈ SobolevSpace.dirichlet (hausdorff n X) hX.quadratic Ω ∧ + ∀ φ : SobolevSpace.dirichlet (hausdorff n X) hX.quadratic Ω, + energyForm (hausdorff n X) hX.quadratic v φ.val = + -c * ∫ x in Ω, SobolevSpace.toLp (hausdorff n X) hX.quadratic φ.val x ∂hausdorff n X := by + obtain ⟨P, hP, hbound⟩ := hX.exists_dirichlet_poincare K n hn p hR Ω B + hΩ hB hΩ0 hB0 hsΩ hsB hBΩ + have hfin : hausdorff n X Ω ≠ ∞ := + ne_of_lt (hX.finiteOnBounded Ω (Metric.isBounded_closedBall.subset hsΩ)) + exact RegularPointCoordinates.exists_constant_laplacian_replacement + (hausdorff n X) hX.quadratic Ω hΩ hfin hP hbound c u + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/PoissonScalarFamily.lean b/lean/OAI/Geometry/RCD/Sobolev/PoissonScalarFamily.lean new file mode 100644 index 0000000000000000000000000000000000000000..1576f3c555d4f0446ea799c4e5e7f0144799e0c9 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/PoissonScalarFamily.lean @@ -0,0 +1,54 @@ +import OAI.Geometry.RCD.Sobolev.LocalPoissonGradientMeasure +import OAI.Geometry.RCD.Sobolev.BochnerTestForm + +namespace OAI + +/-! # Actual scalar energy measures on the finite Poisson span -/ + +open Set Filter MeasureTheory Metric +open scoped NNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem NoncollapsedRCD.poisson_scalar_energy_family {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) [(hausdorff n X).Regular] (hn : 2 ≤ n) + (κ : ℝ) (hK : -κ ≤ K) (p : X) {r : ℝ} (hr : 0 < r) (L : ℝ≥0) + (U : Euclidean (n + 2) →L[ℝ] SobolevSpace (hausdorff n X) hX.quadratic) + (ell : Euclidean (n + 2) →ₗ[ℝ] ℝ) + (hU : ∀ v, IsConstantLaplacianOn (hausdorff n X) hX.quadratic + (ball p (8 * r)) (U v) (ell v)) + (hL : ∀ v, ∀ᵐ x ∂(hausdorff n X).restrict (ball p (8 * r)), + localGamma (hausdorff n X) hX.quadratic (U v) (U v) x ≤ (L : ℝ) ^ 2 * ‖v‖ ^ 2) : + ∃ (G : Euclidean (n + 2) → SobolevSpace (hausdorff n X) hX.quadratic) + (σ : Euclidean (n + 2) → Measure X), + (∀ v, IsFiniteMeasure (σ v)) ∧ + (∀ v, ∀ᵐ x ∂hausdorff n X, 0 ≤ SobolevSpace.toLp (hausdorff n X) hX.quadratic (G v) x ∧ + SobolevSpace.toLp (hausdorff n X) hX.quadratic (G v) x ≤ (L : ℝ) ^ 2 * ‖v‖ ^ 2) ∧ + (∀ v, SobolevSpace.toLp (hausdorff n X) hX.quadratic (G v) + =ᵐ[(hausdorff n X).restrict (ball p (5 * r / 2))] + localGamma (hausdorff n X) hX.quadratic (U v) (U v)) ∧ + (∀ v (ψ : SobolevSpace (hausdorff n X) hX.quadratic) (f : X → ℝ), + Continuous f → HasCompactSupport f → tsupport f ⊆ ball p (5 * r / 2) → + SobolevSpace.toLp (hausdorff n X) hX.quadratic ψ =ᵐ[hausdorff n X] f → + bochnerTestForm (hausdorff n X) hX.quadratic κ (G v) ψ = ∫ x, f x ∂σ v) := by + have hscalar (v : Euclidean (n + 2)) := hX.local_poisson_energy_measure hn (U v) (ell v) + (p := p) (R := 5 * r / 2) (b := 8 * r) (by positivity) (by linarith) + (hU v) (L * ‖v‖₊) (by + simpa only [NNReal.coe_mul, coe_nnnorm, mul_pow] using hL v) κ hK + choose G σ hσ hG hrep hΔ using hscalar + refine ⟨G, σ, hσ, ?_, hrep, ?_⟩ + · intro v + simpa only [NNReal.coe_mul, coe_nnnorm, mul_pow] using hG v + · intro v ψ f hf hs hfs hψ + have : IsFiniteMeasure (σ v) := hσ v + exact bochnerTestForm_of_measure_laplacian (hausdorff n X) hX.quadratic measurableSet_ball + (U v) (G v) κ (σ v) (hrep v) (hΔ v) ψ f hf hs hfs hψ + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/PoissonSecondOrderData.lean b/lean/OAI/Geometry/RCD/Sobolev/PoissonSecondOrderData.lean new file mode 100644 index 0000000000000000000000000000000000000000..e4ce549286c7845926f1e2cb3e0dc5640e4878d1 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/PoissonSecondOrderData.lean @@ -0,0 +1,44 @@ +import OAI.Geometry.RCD.Coordinates.PoissonBilinearMeasure +import OAI.Geometry.RCD.Sobolev.LocalPoissonHessianPairing + +namespace OAI + +/-! # Poisson measure and Hessian data on a finite span + +The common full measure and local integrated Hessian pairings follow from the +RCD structure. Shifted-square and dimension trace estimates control their mass. +-/ + +open Set Metric MeasureTheory +open scoped NNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem NoncollapsedRCD.poisson_second_order_data {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) [(hausdorff n X).Regular] (hn : 2 ≤ n) + (κ : ℝ) (hK : -κ≤K) (p : X) {r : ℝ} (hr : 0 SobolevSpace.minimalSlope μ hQ (q - f) x) Ω μ ∧ + (∫ x in Ω, SobolevSpace.minimalSlope μ hQ (q - f) x ∂μ) ≤ + σ.real Ω * positiveSourceGradientBound (μ.real Ω) C d ((1 + d) / 2) ∧ + (∫ x, (SobolevSpace.minimalSlope μ hQ (q - f) x) ^ 2 ∂μ) ≤ + σ.real Ω * (B + a * K) ∧ + (∫ x in Ω, |(1 / 2 : ℝ) * localGamma μ hQ f f x - + (1 / 2 : ℝ) * localGamma μ hQ q q x| ∂μ) ≤ + (A * positiveSourceGradientBound (μ.real Ω) C d ((1 + d) / 2) + + (B + a * K) / 2) * σ.real Ω := by + have hsource := replacement_has_measure_source μ hQ Ω q f σ a hdefect hsolve + have hcomp := comparison_of_replacement_source μ hQ Ω q f σ a hsource hsolve + have hheight := poisson_replacement_height_le μ hQ Ω hΩ hfin hP hpoin q f Q + hQlip hQ0 hq ha hB hK hQB τ hτ hτK hfq hsolve hcomp + let H : SobolevSpace.dirichlet μ hQ Ω := + ⟨q - f, by simpa only [neg_sub] using (SobolevSpace.dirichlet μ hQ Ω).neg_mem hfq⟩ + have hheight0 : 0 ≤ B + a * K := add_nonneg hB (mul_nonneg ha hK) + have hg := positive_source_bounds_of_measure μ hQ Ω hΩ hfin H σ hsource + hd hC hheight0 hheight hsob + have he := poisson_energy_density_error_le_source μ hQ Ω hΩ hfin q H σ hsource + hd hC hheight0 hA hheight hgradq hsob + have hident : q - H.val = f := by dsimp [H]; module + rw [hident] at he + exact ⟨hheight, hg.1, hg.2.1, hg.2.2, he⟩ + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/PoissonSourceLocalization.lean b/lean/OAI/Geometry/RCD/Sobolev/PoissonSourceLocalization.lean new file mode 100644 index 0000000000000000000000000000000000000000..bd67f44e98322caffd8d6eb1bc0ff6134fa1e311 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/PoissonSourceLocalization.lean @@ -0,0 +1,62 @@ +import OAI.Geometry.RCD.Sobolev.PositiveDefectCutoff + +namespace OAI + +/-! # Localizing the actual distance datum and its compact-test defect -/ + +open Set Metric MeasureTheory +open scoped NNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) [IsFiniteMeasureOnCompacts μ] (hQ : QuadraticCheegerEnergy μ) + +/-- For the actual positive squared-distance datum, half its energy +density is the datum itself on the entire inner ball. -/ +theorem positiveSquaredDistance_energy_value {p : X} {R C : ℝ} (hR : 0 ≤ R) + (χ : GoodLaplacianCutoff μ hQ p R C) + (heik : ∀ᵐ x ∂μ.restrict (ball p R), + localGamma μ hQ (inwardSobolev μ hQ p R) (inwardSobolev μ hQ p R) x = 1) : + let q := positiveSquaredDistance μ hQ hR χ + ∀ᵐ x ∂μ.restrict (ball p R), + (1 / 2 : ℝ) * localGamma μ hQ q q x = SobolevSpace.toLp μ hQ q x := by + dsimp only + filter_upwards [positiveSquaredDistance_gradient μ hQ hR χ heik, + ae_restrict_of_ae (positiveSquaredDistance_representative μ hQ hR χ), + ae_restrict_mem measurableSet_ball] with x hg hq hx + rw [hg, hq, positiveSquaredDistanceValue_on_ball μ hQ χ hx] + ring + +omit [BorelSpace X] [ProperSpace X] [IsFiniteMeasureOnCompacts μ] in +/-- Compact support transfers a positive defect identity to any smaller +open testing region, even when its center changes. -/ +theorem positive_defect_mono {S T : Set X} (hST : S ⊆ T) + (Q : SobolevSpace μ hQ) (σ : Measure X) (a : ℝ) + (hsource : ∀ (ψ : SobolevSpace μ hQ) (v : X → ℝ) (L : ℝ≥0), + LipschitzWith L v → HasCompactSupport v → tsupport v ⊆ T → + SobolevSpace.toLp μ hQ ψ =ᵐ[μ] v → + energyForm μ hQ Q ψ + a * (∫ x in T, v x ∂μ) = ∫ x, v x ∂σ) : + ∀ (ψ : SobolevSpace μ hQ) (v : X → ℝ) (L : ℝ≥0), + LipschitzWith L v → HasCompactSupport v → tsupport v ⊆ S → + SobolevSpace.toLp μ hQ ψ =ᵐ[μ] v → + energyForm μ hQ Q ψ + a * (∫ x in S, v x ∂μ) = ∫ x, v x ∂σ := by + intro ψ v L hv hc hs hψ + have hzero (U : Set X) (hU : tsupport v ⊆ U) : + ∀ x, x ∉ U → v x = 0 := by + intro x hx + by_contra hn + exact hx (hU (subset_tsupport v hn)) + have hiS : (∫ x in S, v x ∂μ) = ∫ x, v x ∂μ := + setIntegral_eq_integral_of_forall_compl_eq_zero (hzero S hs) + have hiT : (∫ x in T, v x ∂μ) = ∫ x, v x ∂μ := + setIntegral_eq_integral_of_forall_compl_eq_zero (hzero T (hs.trans hST)) + rw [hiS, ← hiT] + exact hsource ψ v L hv hc (hs.trans hST) hψ + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/PoissonSpan.lean b/lean/OAI/Geometry/RCD/Sobolev/PoissonSpan.lean new file mode 100644 index 0000000000000000000000000000000000000000..3996e5055797c9cb0573f511d3be74c84f8f885b --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/PoissonSpan.lean @@ -0,0 +1,149 @@ +import OAI.Geometry.RCD.Sobolev.PoissonGradientBridge +import OAI.Geometry.RCD.Sobolev.PoissonHessianInput +import OAI.Geometry.RCD.Sobolev.DirectionalGradientBound + +namespace OAI + +/-! # The actual span of harmonic coordinates and two Poisson replacements -/ + +open Set Metric MeasureTheory +open scoped BigOperators NNReal + +noncomputable section + +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +/-- The last two components are the Poisson replacements used in a +same-scale two-center comparison. -/ +def poissonSpan {n : ℕ} (u : Fin n → SobolevSpace μ hQ) + (f : Fin 2 → SobolevSpace μ hQ) : Fin (n + 2) → SobolevSpace μ hQ := + Fin.append u f + +/-- Both replacements have the same constant Laplacian; the harmonic +coordinate components have zero Laplacian. -/ +def poissonSpanLaplacian (n : ℕ) (c : ℝ) : Euclidean (n + 2) →ₗ[ℝ] ℝ := + ∑ i : Fin (n + 2), (Fin.append (fun _ : Fin n => (0 : ℝ)) (fun _ : Fin 2 => c) i) • + EuclideanSpace.projₗ i + +omit [BorelSpace X] [ProperSpace X] in +theorem poissonSpan_constant_laplacian {n : ℕ} {Ω : Set X} + (u : Fin n → SobolevSpace μ hQ) (f : Fin 2 → SobolevSpace μ hQ) (c : ℝ) + (hu : ∀ i, IsSobolevHarmonicOn μ hQ Ω (u i)) + (hf : ∀ i, IsConstantLaplacianOn μ hQ Ω (f i) c) (v : Euclidean (n + 2)) : + IsConstantLaplacianOn μ hQ Ω (sobolevColumnMap μ hQ (poissonSpan μ hQ u f) v) + (poissonSpanLaplacian n c v) := by + have hc : ∀ i : Fin (n + 2), IsConstantLaplacianOn μ hQ Ω + (poissonSpan μ hQ u f i) + (Fin.append (fun _ : Fin n => (0 : ℝ)) (fun _ : Fin 2 => c) i) := by + intro i + refine Fin.addCases ?_ ?_ i + · intro j + simpa only [poissonSpan, Fin.append_left] using + (isConstantLaplacianOn_zero_iff μ hQ Ω (u j)).mpr (hu j) + · intro j + simpa only [poissonSpan, Fin.append_right] using hf j + convert IsConstantLaplacianOn.linearCombination μ hQ hc v using 1 + simp only [poissonSpanLaplacian, LinearMap.sum_apply, LinearMap.smul_apply, + EuclideanSpace.projₗ, PiLp.projₗ_apply, smul_eq_mul] + apply Finset.sum_congr rfl + intro i _ + ring + +/-- Component estimates give the full directional gradient estimate +required by the single shared Bochner measure. -/ +theorem poissonSpan_gradient {n : ℕ} {Ω : Set X} + (u : Fin n → SobolevSpace μ hQ) (f : Fin 2 → SobolevSpace μ hQ) (B : ℝ) + (hu : ∀ i, ∀ᵐ x ∂μ.restrict Ω, localGamma μ hQ (u i) (u i) x ≤ B ^ 2) + (hf : ∀ i, ∀ᵐ x ∂μ.restrict Ω, localGamma μ hQ (f i) (f i) x ≤ B ^ 2) + (v : Euclidean (n + 2)) : + ∀ᵐ x ∂μ.restrict Ω, localGamma μ hQ + (sobolevColumnMap μ hQ (poissonSpan μ hQ u f) v) + (sobolevColumnMap μ hQ (poissonSpan μ hQ u f) v) x ≤ + (((n + 2 : ℕ) : ℝ) * B) ^ 2 * ‖v‖ ^ 2 := by + apply gamma_column_le_of_diagonal_bounds μ hQ + intro i + refine Fin.addCases ?_ ?_ i + · intro j + simpa only [poissonSpan, Fin.append_left] using hu j + · intro j + simpa only [poissonSpan, Fin.append_right] using hf j + +/-- The local estimates now produce the shared Bochner measure +for the actual coordinates and replacements. The height hypotheses are +exactly the output of the positive-source Poisson estimates. -/ +theorem local_poisson_span {K : ℝ} {n : ℕ} (hX : NoncollapsedRCD K n X) + (hn : 2 ≤ n) (hgradient : LocalPoissonGradientInput hX) + (hhessian : LocalPoissonHessianInput hX) + {κ r ε H c Bq : ℝ} (hκ : 0 ≤ κ) (hK : -κ ≤ K) + (p : X) (hr : 0 < r) (hcurv : -1 ≤ K * (2 * r) ^ 2) + (hε : 0 ≤ ε) (hH : 0 ≤ H) (hBqH : Bq ≤ H) + (u : Fin n → SobolevSpace (hausdorff n X) hX.quadratic) + (f q : Fin 2 → SobolevSpace (hausdorff n X) hX.quadratic) + (hu : ∀ i, IsSobolevHarmonicOn (hausdorff n X) hX.quadratic (ball p (8 * r)) (u i)) + (hgrad : ∀ i, ∀ᵐ x ∂(hausdorff n X).restrict (ball p (8 * r)), + localGamma (hausdorff n X) hX.quadratic (u i) (u i) x ≤ (1 + ε) ^ 2) + (hf : ∀ i, IsConstantLaplacianOn (hausdorff n X) hX.quadratic + (ball p (16 * r)) (f i) c) + (hq : ∀ i, ∀ᵐ x ∂(hausdorff n X).restrict (ball p (16 * r)), + 0 ≤ SobolevSpace.toLp (hausdorff n X) hX.quadratic (q i) x ∧ + SobolevSpace.toLp (hausdorff n X) hX.quadratic (q i) x ≤ Bq) + (hheight : ∀ i, ∀ᵐ x ∂(hausdorff n X).restrict (ball p (16 * r)), + 0 ≤ SobolevSpace.toLp (hausdorff n X) hX.quadratic (q i - f i) x ∧ + SobolevSpace.toLp (hausdorff n X) hX.quadratic (q i - f i) x ≤ H) : + ∃ C₀ : ℝ, 1 ≤ C₀ ∧ ∃ L : ℝ≥0, + (L : ℝ) = ((n + 2 : ℕ) : ℝ) * max (1 + ε) (C₀ * (H / (2 * r) + |c| * (2 * r))) ∧ + ∃ M : PositiveBilinearMeasure X (Euclidean (n + 2)), + let U := sobolevColumnMap (hausdorff n X) hX.quadratic + (poissonSpan (hausdorff n X) hX.quadratic u f) + let ell := poissonSpanLaplacian n c + (∀ v, Nonempty (LocalHarmonicEnergy (hausdorff n X) hX.quadratic U M κ p r L v)) ∧ + ShiftedBochnerLowerBound M ((hausdorff n X).restrict (ball p (2 * r))) ell n ∧ + ∀ v w (t : ℝ), 0 < t → t ≤ 2 * r → + ∃ G : LocalHessianPairing (hausdorff n X) hX.quadratic + (ball p t) (U v) (U w), + ∀ (b : ℝ) (φ : SobolevSpace.dirichlet (hausdorff n X) hX.quadratic (ball p t)), + (G.hessian φ - b * energyForm (hausdorff n X) hX.quadratic (U w) φ.val) ^ 2 ≤ + ((L : ℝ) ^ 2 * ‖w‖ ^ 2 * + ((M.measure v).real (ball p t) - + (2 * b * ell v - (n : ℝ) * b ^ 2) * (hausdorff n X).real (ball p t))) * + energyForm (hausdorff n X) hX.quadratic φ.val φ.val := by + obtain ⟨C, hC, hbound⟩ := hgradient hn + let D := C * (H / (2 * r) + |c| * (2 * r)) + let B := max (1 + ε) D + have hD : 0 ≤ D := by dsimp [D]; positivity + have hB : 0 ≤ B := (by linarith : 0 ≤ 1 + ε).trans (le_max_left _ _) + let L : ℝ≥0 := ⟨((n + 2 : ℕ) : ℝ) * B, mul_nonneg (Nat.cast_nonneg _) hB⟩ + have h8 : 8 * (2 * r) = 16 * r := by ring + have h4 : 4 * (2 * r) = 8 * r := by ring + have hfg (i : Fin 2) : ∀ᵐ x ∂(hausdorff n X).restrict (ball p (8 * r)), + localGamma (hausdorff n X) hX.quadratic (f i) (f i) x ≤ D ^ 2 := by + have hv := replacement_value_bound_of_height (hausdorff n X) hX.quadratic + (q i) (f i) (ball p (16 * r)) hBqH (hq i) (hheight i) + have hb := hbound p (2 * r) (by positivity) hcurv (f i) c H hH + (by simpa only [h8] using hf i) (by simpa only [h8] using hv) + simpa only [h4] using hb + refine ⟨C, hC, L, rfl, ?_⟩ + apply hhessian κ hκ hK p r hr L + (sobolevColumnMap (hausdorff n X) hX.quadratic + (poissonSpan (hausdorff n X) hX.quadratic u f)) (poissonSpanLaplacian n c) + · intro v + apply poissonSpan_constant_laplacian (hausdorff n X) hX.quadratic u f c hu + intro i + exact (hf i).mono _ _ measurableSet_ball (ball_subset_ball (by linarith)) + · intro v + apply poissonSpan_gradient (hausdorff n X) hX.quadratic u f B + · intro i + filter_upwards [hgrad i] with x hx + exact hx.trans ((sq_le_sq₀ (by linarith) hB).mpr (le_max_left _ _)) + · intro i + filter_upwards [hfg i] with x hx + exact hx.trans ((sq_le_sq₀ hD hB).mpr (le_max_right _ _)) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/PoissonSpanLift.lean b/lean/OAI/Geometry/RCD/Sobolev/PoissonSpanLift.lean new file mode 100644 index 0000000000000000000000000000000000000000..2a573768ed3db333e7ba6c454c2cf985cc5efe47 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/PoissonSpanLift.lean @@ -0,0 +1,39 @@ +import OAI.Geometry.RCD.Coordinates.PoissonSpanCoordinates + +namespace OAI + +/-! # Isometric inclusion of all coordinate covectors in the Poisson span -/ + +open scoped BigOperators + +noncomputable section +namespace RegularPointCoordinates + +def poissonCoordinateLift {n : ℕ} (b : Euclidean n) : Euclidean (n + 2) := + WithLp.toLp 2 (Fin.append (fun i => b i) (fun _ : Fin 2 => (0 : ℝ))) + +theorem poissonCoordinateLift_norm {n : ℕ} (b : Euclidean n) : + ‖poissonCoordinateLift b‖ = ‖b‖ := by + apply (sq_eq_sq₀ (norm_nonneg _) (norm_nonneg _)).mp + simp [EuclideanSpace.real_norm_sq_eq, poissonCoordinateLift, Fin.sum_univ_add] + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] + (μ : MeasureTheory.Measure X) (hQ : QuadraticCheegerEnergy μ) + +theorem poissonSpanMap_lift {n : ℕ} (u : Fin n → SobolevSpace μ hQ) + (f : Fin 2 → SobolevSpace μ hQ) (b : Euclidean n) : + sobolevColumnMap μ hQ (poissonSpan μ hQ u f) (poissonCoordinateLift b) = + sobolevColumnMap μ hQ u b := by + simp [sobolevColumnMap_apply, poissonCoordinateLift, poissonSpan, Fin.sum_univ_add] + +omit [MetricSpace X] [MeasurableSpace X] in +theorem poissonSpanLaplacian_lift {n : ℕ} (c : ℝ) (b : Euclidean n) : + poissonSpanLaplacian n c (poissonCoordinateLift b) = 0 := by + simp [poissonSpanLaplacian, poissonCoordinateLift, Fin.sum_univ_add, + EuclideanSpace.projₗ, PiLp.projₗ_apply] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/PoissonSpanLinearLift.lean b/lean/OAI/Geometry/RCD/Sobolev/PoissonSpanLinearLift.lean new file mode 100644 index 0000000000000000000000000000000000000000..a975c1cd2a5360aa8a398a35361b7faccab3b8c5 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/PoissonSpanLinearLift.lean @@ -0,0 +1,54 @@ +import OAI.Geometry.RCD.Sobolev.PoissonSpanLift + +namespace OAI + +/-! # The coordinate inclusion as a continuous linear map -/ + +open scoped ENNReal + +noncomputable section +namespace RegularPointCoordinates + +def poissonCoordinateLiftLinear (n : ℕ) : Euclidean n →L[ℝ] Euclidean (n + 2) := + LinearMap.mkContinuous + { toFun := poissonCoordinateLift + map_add' := by + intro b c + ext j + refine Fin.addCases ?_ ?_ j + · intro k + simp [poissonCoordinateLift] + · intro k + simp [poissonCoordinateLift] + map_smul' := by + intro c b + ext j + refine Fin.addCases ?_ ?_ j + · intro k + simp [poissonCoordinateLift] + · intro k + simp [poissonCoordinateLift] } + 1 (by + intro b + change ‖poissonCoordinateLift b‖ ≤ 1 * ‖b‖ + simpa only [one_mul] using (poissonCoordinateLift_norm b).le) + +@[simp] theorem poissonCoordinateLiftLinear_apply {n : ℕ} (b : Euclidean n) : + poissonCoordinateLiftLinear n b = poissonCoordinateLift b := rfl + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] + +/-- The coordinate block of the actual joint span is exactly the original map. -/ +theorem poissonSpanMap_comp_lift (μ : MeasureTheory.Measure X) (hQ : QuadraticCheegerEnergy μ) + {n : ℕ} (u : Fin n → SobolevSpace μ hQ) (f : Fin 2 → SobolevSpace μ hQ) : + (sobolevColumnMap μ hQ (poissonSpan μ hQ u f)).comp (poissonCoordinateLiftLinear n) = + sobolevColumnMap μ hQ u := by + apply ContinuousLinearMap.ext + intro b + exact poissonSpanMap_lift μ hQ u f b + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/PoissonStrongComparison.lean b/lean/OAI/Geometry/RCD/Sobolev/PoissonStrongComparison.lean new file mode 100644 index 0000000000000000000000000000000000000000..da26d1d48e8456cc3598d4ab7c133585806ec654 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/PoissonStrongComparison.lean @@ -0,0 +1,77 @@ +import OAI.Geometry.RCD.Coordinates.NormalizedCutoffDifference +import OAI.Geometry.RCD.Sobolev.PoissonCutoffErrors +import OAI.Geometry.RCD.Sobolev.EnergyGapLimit + +namespace OAI + +/-! # Local strong gradient comparison from the actual Poisson equation + +Sharp recovery energies and the lower bound for the original function, +together with vanishing value error, force the cutoff gradient error to +vanish. The constant source and cutoff commutator are both retained. +-/ + +open Set Filter MeasureTheory +open scoped Topology NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +def normalizedCutoffEnergy (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + (Ω : Set X) (r : ℝ) (v : X → ℝ) (f : SobolevSpace μ hQ) : ℝ := + r^2*(μ.real Ω)⁻¹*∫ x in Ω, (v x)^2*localGamma μ hQ f f x ∂μ + +theorem poisson_strong_cutoff_comparison (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + (Ω : ℕ → Set X) [∀ k, IsFiniteMeasure (μ.restrict (Ω k))] + (hmass : ∀ k, 0<μ.real (Ω k)) (r : ℕ → ℝ) (hr : ∀ k, 0 normalizedCutoffEnergy μ hQ (Ω k) (r k) (v k) (q k)) + atTop (𝓝 E)) + (hlower : ∀ δ : ℝ, 0<δ → ∀ᶠ k in atTop, + E-δ≤normalizedCutoffEnergy μ hQ (Ω k) (r k) (v k) (w k)) : + Tendsto (fun k => normalizedCutoffEnergy μ hQ (Ω k) (r k) (v k) (w k-q k)) + atTop (𝓝 0) := by + let z : ℕ → X → ℝ := fun k x => SobolevSpace.toLp μ hQ (w k-q k) x + let S := fun k => a k*(μ.real (Ω k))⁻¹*∫ x in Ω k, (v k x)^2*z k x ∂μ + let T := fun k => r k^2*(μ.real (Ω k))⁻¹* + ∫ x in Ω k, v k x*z k x*localGamma μ hQ (w k) (η k) x ∂μ + have hvb : ∀ᶠ k in atTop, ∀ᵐ x ∂μ.restrict (Ω k), |v k x|≤(1:ℝ) := + Eventually.of_forall fun k => Eventually.of_forall (hb k) + have hmass' (k : ℕ) : 0<(μ.restrict (Ω k)).real univ := by + simpa only [Measure.real,Measure.restrict_apply_univ] using hmass k + have hS : Tendsto S atTop (𝓝 0) := by + simpa only [S,Measure.real,Measure.restrict_apply_univ] using + normalized_source_error_tendsto (fun k => μ.restrict (Ω k)) hmass' z v a hA ha hvb hvalue + have hT : Tendsto T atTop (𝓝 0) := + scaled_weighted_gamma_error_tendsto μ hQ Ω hmass r (fun k => (hr k).le) + w η z v hM hL zero_le_one hwgrad hηgrad hvb hvalue + apply poisson_energy_gap_tendsto_zero (S := S) (T := T) _ _ hq hlower hS hT + · intro k + apply mul_nonneg (mul_nonneg (sq_nonneg _) (inv_nonneg.mpr (hmass k).le)) + apply integral_nonneg_of_ae + filter_upwards [ae_restrict_of_ae (localGamma_self μ hQ (w k-q k))] with x hx + exact mul_nonneg (sq_nonneg _) (hx ▸ sq_nonneg _) + · intro k + exact normalized_cutoff_difference_energy μ hQ (w k) (q k) (η k) (hv k) (hs k) + (B := 1) (hb k) (hn k) (hrep k) (hgrad k) (hsupp k) (hr k) (hmass k) (hw k) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/PoissonUniformValue.lean b/lean/OAI/Geometry/RCD/Sobolev/PoissonUniformValue.lean new file mode 100644 index 0000000000000000000000000000000000000000..705bb1229af1371a891aaa007ffacc1f6037b794 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/PoissonUniformValue.lean @@ -0,0 +1,86 @@ +import OAI.Geometry.RCD.Sobolev.PoissonValueLimit +import OAI.Geometry.RCD.Sobolev.PoissonDefectBudget + +namespace OAI + +/-! # Uniform Poisson value errors from the total defect budget -/ + +open Set Metric MeasureTheory +open scoped ENNReal BigOperators + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +/-- Each actual replacement obeys the same mean-square estimate in terms +of its own full normalized source mass. -/ +theorem rcd_poisson_value_error_le {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (hn : 2 ≤ n) + [IsFiniteMeasureOnCompacts (hausdorff n X)] + {κ r0 B J C omega : ℝ} {p : X} + {S : DyadicDistanceSources (hausdorff n X) hX.quadratic n κ p r0} + (T : DyadicDistanceReplacements (hausdorff n X) hX.quadratic S B J C) + (hB : 0 ≤ B) (hr01 : r0 ≤ 1) (homega : 0 < omega) + (hvol : ∀ r : ℝ, 0 < r → r ≤ r0 → + |(hausdorff n X).real (ball p r) / (omega * r ^ n) - 1| ≤ 1 / 4) (i : ℕ) : + ‖normalizeLocalL2 (hausdorff n X) (ball p (distanceSourceRadius r0 i)) + (ne_of_lt (hX.finiteOnBounded _ isBounded_ball)) + (SobolevSpace.restrictLp (hausdorff n X) hX.quadratic (ball p (distanceSourceRadius r0 i)) + (((distanceSourceRadius r0 i) ^ 2)⁻¹ • + (T.distanceDatum (hausdorff n X) hX.quadratic i - T.replacement i)))‖ ^ 2 ≤ + (annularPoincareConstant K n * B / (3 / 4 * omega)) * + normalizedDistanceSourceMass (hausdorff n X) hX.quadratic S i := by + have hr := distanceSourceRadius_pos S.radius_pos i + have hrad : distanceSourceRadius r0 i ≤ r0 := by + have hh := distanceSourceRadius_outer_le S.radius_pos.le i + linarith + have hv := (abs_le.mp (hvol _ hr hrad)).1 + have hden : 0 < omega * (distanceSourceRadius r0 i) ^ n := mul_pos homega (pow_pos hr n) + have hratio : (3 / 4 : ℝ) ≤ (hausdorff n X).real (ball p (distanceSourceRadius r0 i)) / + (omega * (distanceSourceRadius r0 i) ^ n) := by linarith + have hlower : (3 / 4 * omega) * (distanceSourceRadius r0 i) ^ (n : ℝ) ≤ + (hausdorff n X).real (ball p (distanceSourceRadius r0 i)) := by + simpa only [Real.rpow_natCast, mul_assoc] using (le_div_iff₀ hden).mp hratio + have hann := relative_volume_annulus hn hr homega (hvol _ hr hrad) + (hvol _ (mul_pos (by norm_num) hr) (distanceSourceRadius_outer_le S.radius_pos.le i)) + exact T.value_error_le_normalized_mass (hausdorff n X) hX.quadratic i + (annularPoincareConstant_pos K n).le hB (by positivity) hlower + (hX.annular_dirichlet_poincare hn p hr (hrad.trans hr01) hann.1 hann.2) + +/-- The neighborhood's total defect bound controls every individual +Poisson value error uniformly, including the initial scales. -/ +theorem rcd_poisson_value_error_le_budget {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (hn : 2 ≤ n) + [IsFiniteMeasureOnCompacts (hausdorff n X)] + {κ r0 B J C omega eta : ℝ} {p : X} + {S : DyadicDistanceSources (hausdorff n X) hX.quadratic n κ p r0} + (T : DyadicDistanceReplacements (hausdorff n X) hX.quadratic S B J C) + (hκ : 0 ≤ κ) (hB : 0 ≤ B) (hr01 : r0 ≤ 1) (homega : 0 < omega) + (hvol : ∀ r : ℝ, 0 < r → r ≤ r0 → + |(hausdorff n X).real (ball p r) / (omega * r ^ n) - 1| ≤ 1 / 4) + (hsum : Summable (normalizedPoissonDefect (hausdorff n X) hX.quadratic S)) + (hbudget : (∑' j, normalizedPoissonDefect (hausdorff n X) hX.quadratic S j) ≤ eta) + (i : ℕ) : + ‖normalizeLocalL2 (hausdorff n X) (ball p (distanceSourceRadius r0 i)) + (ne_of_lt (hX.finiteOnBounded _ isBounded_ball)) + (SobolevSpace.restrictLp (hausdorff n X) hX.quadratic (ball p (distanceSourceRadius r0 i)) + (((distanceSourceRadius r0 i) ^ 2)⁻¹ • + (T.distanceDatum (hausdorff n X) hX.quadratic i - T.replacement i)))‖ ^ 2 ≤ + (annularPoincareConstant K n * B / (3 / 4 * omega)) * eta := by + have hmass : normalizedDistanceSourceMass (hausdorff n X) hX.quadratic S i ≤ eta := by + apply le_trans _ ((hsum.le_tsum i (fun j _ => + normalizedPoissonDefect_nonneg (hausdorff n X) hX.quadratic S hκ j)).trans hbudget) + unfold normalizedPoissonDefect + apply le_add_of_nonneg_right + have hr := (distanceSourceRadius_pos S.radius_pos i).le + positivity + have hP := (annularPoincareConstant_pos K n).le + exact (rcd_poisson_value_error_le hX hn T hB hr01 homega hvol i).trans + (mul_le_mul_of_nonneg_left hmass (by positivity)) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/PoissonValueLimit.lean b/lean/OAI/Geometry/RCD/Sobolev/PoissonValueLimit.lean new file mode 100644 index 0000000000000000000000000000000000000000..ce1af7a8f608de56222ac24cd32f1f7abb18020d --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/PoissonValueLimit.lean @@ -0,0 +1,61 @@ +import OAI.Geometry.RCD.Sobolev.DyadicPoissonL2Limit +import OAI.Geometry.RCD.Sobolev.AnnularPoincare +import OAI.Geometry.RCD.Metric.AnnularVolume + +namespace OAI + +/-! # RCD Poisson value convergence in the established volume regime -/ + +open Set Metric MeasureTheory Filter +open scoped ENNReal Topology + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +/-- The quarter-error volume regime supplies the annular Poincare +constant and lower volume bound needed for the actual Poisson value limit. -/ +theorem rcd_poisson_value_tendsto_zero {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (hn : 2 ≤ n) + [IsFiniteMeasureOnCompacts (hausdorff n X)] + {κ r0 B J C omega : ℝ} {p : X} + {S : DyadicDistanceSources (hausdorff n X) hX.quadratic n κ p r0} + (T : DyadicDistanceReplacements (hausdorff n X) hX.quadratic S B J C) + (hB : 0 ≤ B) (hr01 : r0 ≤ 1) (homega : 0 < omega) + (hvol : ∀ r : ℝ, 0 < r → r ≤ r0 → + |(hausdorff n X).real (ball p r) / (omega * r ^ n) - 1| ≤ 1 / 4) + (hmass : Summable (normalizedDistanceSourceMass (hausdorff n X) hX.quadratic S)) : + Tendsto (fun i => ‖normalizeLocalL2 (hausdorff n X) (ball p (distanceSourceRadius r0 i)) + (ne_of_lt (hX.finiteOnBounded _ isBounded_ball)) + (SobolevSpace.restrictLp (hausdorff n X) hX.quadratic (ball p (distanceSourceRadius r0 i)) + (((distanceSourceRadius r0 i) ^ 2)⁻¹ • + (T.distanceDatum (hausdorff n X) hX.quadratic i - T.replacement i)))‖) + atTop (𝓝 0) := by + have hrad (i : ℕ) : distanceSourceRadius r0 i ≤ r0 := by + have hh := distanceSourceRadius_outer_le S.radius_pos.le i + have hp := distanceSourceRadius_pos S.radius_pos i + linarith + have hlower (i : ℕ) : (3 / 4 * omega) * (distanceSourceRadius r0 i) ^ (n : ℝ) ≤ + (hausdorff n X).real (ball p (distanceSourceRadius r0 i)) := by + have hr := distanceSourceRadius_pos S.radius_pos i + have hv := (abs_le.mp (hvol _ hr (hrad i))).1 + have hden : 0 < omega * (distanceSourceRadius r0 i) ^ n := mul_pos homega (pow_pos hr n) + have hratio : (3 / 4 : ℝ) ≤ (hausdorff n X).real (ball p (distanceSourceRadius r0 i)) / + (omega * (distanceSourceRadius r0 i) ^ n) := by linarith + have hh := (le_div_iff₀ hden).mp hratio + simpa only [Real.rpow_natCast, mul_assoc] using hh + apply T.value_error_tendsto_zero (hausdorff n X) hX.quadratic + (annularPoincareConstant_pos K n).le hB (by positivity : 0 < 3 / 4 * omega) + hlower ?_ hmass + intro i + have hr := distanceSourceRadius_pos S.radius_pos i + have hann := relative_volume_annulus hn hr homega (hvol _ hr (hrad i)) + (hvol _ (mul_pos (by norm_num) hr) (distanceSourceRadius_outer_le S.radius_pos.le i)) + exact hX.annular_dirichlet_poincare hn p hr ((hrad i).trans hr01) hann.1 hann.2 + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/PositiveCompactTestMeasure.lean b/lean/OAI/Geometry/RCD/Sobolev/PositiveCompactTestMeasure.lean new file mode 100644 index 0000000000000000000000000000000000000000..444eb2f7a0e4859a45dbd4f7ff69d39e3f534ff7 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/PositiveCompactTestMeasure.lean @@ -0,0 +1,76 @@ +import OAI.Geometry.RCD.Metric.BoundedPositiveMeasure +import OAI.Geometry.RCD.Sobolev.CompactLipschitzTests + +namespace OAI + +/-! # Finite local representation of positive compact Lipschitz functionals -/ + +open Set Metric MeasureTheory +open scoped NNReal BoundedContinuousFunction CompactlySupported + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem exists_local_positive_test_measure (p : X) {R : ℝ} (hR : 0 < R) + (F : compactLipschitzTests (ball p (3 * R)) →ₗ[ℝ] ℝ) + (hF : ∀ f : compactLipschitzTests (ball p (3 * R)), 0 ≤ (f : X →ᵇ ℝ) → 0 ≤ F f) : + ∃ σ : Measure X, IsFiniteMeasure σ ∧ + ∀ f : compactLipschitzTests (ball p R), + (∫ x, (f : X →ᵇ ℝ) x ∂σ) = F + ⟨f, f.property.choose, f.property.choose_spec.1, f.property.choose_spec.2.1, + f.property.choose_spec.2.2.trans (ball_subset_ball (by linarith))⟩ := by + have hinc : compactLipschitzTests (ball p R) ≤ compactLipschitzTests (ball p (3 * R)) := by + rintro f ⟨L, hL, hc, hs⟩ + exact ⟨L, hL, hc, hs.trans (ball_subset_ball (by linarith))⟩ + let ι := Submodule.inclusion hinc + have hχs : tsupport (radialCutoff p R) ⊆ ball p (3 * R) := by + have hs : tsupport (radialCutoff p R) ⊆ closedBall p (2 * R) := by + apply closure_minimal _ isClosed_closedBall + intro x hx + by_contra hn + exact hx (radialCutoff_eq_zero p hR + (not_le.mp (by simpa only [mem_closedBall, dist_comm] using hn)).le) + exact hs.trans (closedBall_subset_ball (by linarith)) + let cχ : C_c(X, ℝ) := ⟨⟨radialCutoff p R, (radialCutoff_lipschitz p hR).continuous⟩, + radialCutoff_hasCompactSupport p hR⟩ + let χ : compactLipschitzTests (ball p (3 * R)) := + ⟨cχ.toBoundedContinuousFunction, _, radialCutoff_lipschitz p hR, + radialCutoff_hasCompactSupport p hR, hχs⟩ + have hχ0 : 0 ≤ (χ : X →ᵇ ℝ) := fun x => (radialCutoff_bounds p R x).1 + have hM : 0 ≤ F χ := hF χ hχ0 + have hbound (f : compactLipschitzTests (ball p R)) : + (F.comp ι) f ≤ F χ * ‖(f : X →ᵇ ℝ) ⊔ 0‖ := by + let C := ‖(f : X →ᵇ ℝ) ⊔ 0‖ + have hC : 0 ≤ C := norm_nonneg _ + have hn : 0 ≤ ((C • χ - ι f : compactLipschitzTests (ball p (3 * R))) : X →ᵇ ℝ) := by + intro x + change 0 ≤ C * radialCutoff p R x - (f : X →ᵇ ℝ) x + by_cases hx : (f : X →ᵇ ℝ) x = 0 + · rw [hx, sub_zero] + exact mul_nonneg hC (radialCutoff_bounds p R x).1 + · have hxb := f.property.choose_spec.2.2 (subset_tsupport _ hx) + rw [radialCutoff_eq_one p hR (by simpa only [dist_comm] using (mem_ball.mp hxb).le), mul_one] + exact sub_nonneg.mpr ((le_max_left ((f : X →ᵇ ℝ) x) 0).trans + (((f : X →ᵇ ℝ) ⊔ 0).apply_le_norm x)) + have hp := hF (C • χ - ι f) hn + have hadd := F.map_add (C • χ - ι f) (ι f) + have heq : C • χ - ι f + ι f = C • χ := by + apply Subtype.ext + ext x + change C * (χ : X →ᵇ ℝ) x - (f : X →ᵇ ℝ) x + (f : X →ᵇ ℝ) x = C * (χ : X →ᵇ ℝ) x + ring + rw [heq, F.map_smul] at hadd + change C * F χ = F (C • χ - ι f) + F (ι f) at hadd + change F (ι f) ≤ F χ * C + linarith + obtain ⟨σ, hσ, hrep⟩ := exists_finite_measure_of_positive_bound + (compactLipschitzTests (ball p R)) (F.comp ι) hM hbound + exact ⟨σ, hσ, fun f => hrep f f.property.choose_spec.2.1⟩ + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/PositiveDefectCutoff.lean b/lean/OAI/Geometry/RCD/Sobolev/PositiveDefectCutoff.lean new file mode 100644 index 0000000000000000000000000000000000000000..dcdeaec6834656c3a1dc8a83d4432bfd100a5eb0 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/PositiveDefectCutoff.lean @@ -0,0 +1,94 @@ +import OAI.Geometry.RCD.Sobolev.ShiftedBochnerCutoff +import OAI.Geometry.RCD.Sobolev.DistanceLaplacianInput + +namespace OAI + +/-! # Testing the positive distance defect with actual Laplacian cutoffs -/ + +open Set Metric MeasureTheory +open scoped NNReal BoundedContinuousFunction InnerProductSpace + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +omit [BorelSpace X] in +/-- The compact Lipschitz source identity is sufficient for the cutoff +calculation; no extension to arbitrary continuous tests is assumed. -/ +theorem positive_defect_cutoff_identity {S : Set X} (Q : SobolevSpace μ hQ) + (σ : Measure X) (a : ℝ) + (hsource : ∀ (ψ : SobolevSpace μ hQ) (v : X → ℝ) (L : ℝ≥0), + LipschitzWith L v → HasCompactSupport v → tsupport v ⊆ S → + SobolevSpace.toLp μ hQ ψ =ᵐ[μ] v → + energyForm μ hQ Q ψ + a * (∫ x in S, v x ∂μ) = ∫ x, v x ∂σ) + (χ : X →ᵇ ℝ) {L : ℝ≥0} (hχlip : LipschitzWith L (χ : X → ℝ)) + (hχs : HasCompactSupport (χ : X → ℝ)) (hχS : tsupport (χ : X → ℝ) ⊆ S) + (c : SobolevSpace μ hQ) (hc : SobolevSpace.toLp μ hQ c =ᵐ[μ] χ) + (q : Lp ℝ 2 μ) (hq : IsWeakLaplacian μ hQ c q) + (hqs : ∀ᵐ x ∂μ, x ∉ S → q x = 0) : + (∫ x in S, SobolevSpace.toLp μ hQ Q x * q x ∂μ) = + a * (∫ x in S, χ x ∂μ) - ∫ x, χ x ∂σ := by + have he := hsource c χ L hχlip hχs hχS hc + have hw := hq Q + rw [energyForm_comm μ hQ c Q, L2.inner_def] at hw + have hi : (∫ x, ⟪q x, SobolevSpace.toLp μ hQ Q x⟫_ℝ ∂μ) = + ∫ x in S, SobolevSpace.toLp μ hQ Q x * q x ∂μ := by + calc + _ = ∫ x, SobolevSpace.toLp μ hQ Q x * q x ∂μ := by + apply integral_congr_ae + exact Filter.Eventually.of_forall fun x => by + simp only [RCLike.inner_apply, conj_trivial] + _ = _ := by + symm + apply setIntegral_eq_integral_of_ae_compl_eq_zero + filter_upwards [hqs] with x hx hnot + rw [hx hnot, mul_zero] + rw [hi] at hw + linarith + +variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] [FiniteDimensional ℝ E] + +/-- The full shifted Bochner mass bound uses only the actual compact +Lipschitz source identity proved for the squared-distance datum. -/ +theorem shifted_poisson_mass_of_positive_defect + {U : E →L[ℝ] SobolevSpace μ hQ} {M : PositiveBilinearMeasure X E} + {κ : ℝ} {p : X} {r : ℝ} {L : ℝ≥0} {v : E} + [IsFiniteMeasure (μ.restrict (ball p (2 * r)))] + (G : LocalHarmonicEnergy μ hQ U M κ p r L v) + (ell : E →ₗ[ℝ] ℝ) (n : ℝ) + (hshift : ShiftedBochnerLowerBound M (μ.restrict (ball p (2 * r))) ell n) + (Q : SobolevSpace μ hQ) (σ : Measure X) [IsFiniteMeasure σ] + (hsource : ∀ (ψ : SobolevSpace μ hQ) (w : X → ℝ) (C : ℝ≥0), + LipschitzWith C w → HasCompactSupport w → tsupport w ⊆ ball p (2 * r) → + SobolevSpace.toLp μ hQ ψ =ᵐ[μ] w → + energyForm μ hQ Q ψ + ell v * (∫ x in ball p (2 * r), w x ∂μ) = ∫ x, w x ∂σ) + (χ : X →ᵇ ℝ) (hχ : ∀ x, 0 ≤ χ x ∧ χ x ≤ 1) + {Cχ : ℝ≥0} (hχlip : LipschitzWith Cχ (χ : X → ℝ)) + (hχs : HasCompactSupport (χ : X → ℝ)) (hχS : tsupport (χ : X → ℝ) ⊆ ball p (2 * r)) + (c : SobolevSpace μ hQ) (hc : SobolevSpace.toLp μ hQ c =ᵐ[μ] χ) + (q : Lp ℝ 2 μ) (hq : IsWeakLaplacian μ hQ c q) + (hqs : ∀ᵐ x ∂μ, x ∉ ball p (2 * r) → q x = 0) + (s : Set X) (hs : MeasurableSet s) (hχone : ∀ x ∈ s, χ x = 1) + {D error : ℝ} (hD : 0 ≤ D) (hκ : 0 ≤ κ) (hna : n ≤ ell v) + (hdχbound : ∀ᵐ x ∂μ.restrict (ball p (2 * r)), |q x| ≤ D) + (herror : (∫ x in ball p (2 * r), + |(1 / 2 : ℝ) * localGamma μ hQ (U v) (U v) x - SobolevSpace.toLp μ hQ Q x| ∂μ) ≤ error) : + ((shiftedBochnerMeasure M (μ.restrict (ball p (2 * r))) ell n hshift).measure + (WithLp.toLp 2 (v, (1 : ℝ)))).real s ≤ + D * error + κ * ∫ x in ball p (2 * r), localGamma μ hQ (U v) (U v) x ∂μ := by + apply poisson_bochner_mass_le μ hQ (U v) _ σ χ hχ s (ball p (2 * r)) hs hχone + (SobolevSpace.toLp μ hQ Q) q + (MemLp.integrable (by norm_num) ((Lp.memLp _).restrict _)) + (Lp.aestronglyMeasurable q |>.restrict) hD hκ hna hdχbound herror + · simpa only [one_pow, mul_one, one_mul] using + G.test_shifted_cutoff μ hQ ell n 1 hshift χ hχs hχS c hc q hq hqs + · exact positive_defect_cutoff_identity μ hQ Q σ (ell v) hsource χ + hχlip hχs hχS c hc q hq hqs + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/PositiveDirichletFunctional.lean b/lean/OAI/Geometry/RCD/Sobolev/PositiveDirichletFunctional.lean new file mode 100644 index 0000000000000000000000000000000000000000..a69a71b97f46e8ad1ad3421a3fe4c8bd83e36112 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/PositiveDirichletFunctional.lean @@ -0,0 +1,98 @@ +import OAI.Geometry.RCD.Metric.PositiveSourceMeasure +import OAI.Geometry.RCD.Sobolev.DirichletMaximum + +namespace OAI + +/-! +# Positive source functionals on the Dirichlet space + +Positivity on the nonnegative Lipschitz core passes to all nonnegative +Dirichlet tests by positive-part approximation and weak energy convergence. +-/ + +open Set MeasureTheory Filter +open scoped NNReal InnerProductSpace Topology + +noncomputable section + +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] + (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +/-- Positivity on the core suffices, without pointwise evaluation of +Sobolev representatives against the source. -/ +theorem dirichlet_test_nonneg_of_core (Ω : Set X) (H : SobolevSpace μ hQ) + (hcore : ∀ (ψ : SobolevSpace μ hQ) (v : X → ℝ) (C : ℝ≥0), + LipschitzWith C v → HasCompactSupport v → tsupport v ⊆ Ω → + SobolevSpace.toLp μ hQ ψ =ᵐ[μ] v → (∀ x, 0 ≤ v x) → + 0 ≤ energyForm μ hQ H ψ) + (φ : SobolevSpace.dirichlet μ hQ Ω) + (hφ : ∀ᵐ x ∂μ, 0 ≤ SobolevSpace.toLp μ hQ φ.val x) : + 0 ≤ energyForm μ hQ H φ.val := by + let pos : ℝ → ℝ := fun t => max t 0 + have hp : LipschitzWith 1 pos := + (LipschitzWith.id : LipschitzWith 1 (fun t : ℝ => t)).max_const 0 + have hp0 : pos 0 = 0 := max_self 0 + obtain ⟨fs, hfs, hlim⟩ := mem_closure_iff_seq_limit.mp φ.property + obtain ⟨D, hD⟩ := (Metric.isBounded_range_of_tendsto fs hlim).exists_norm_le + let T := fun i => SobolevSpace.compContraction μ hQ hp hp0 (fs i) + have hTb (i : ℕ) : ‖T i‖ ≤ D := + (SobolevSpace.norm_compContraction_le μ hQ hp hp0 (fs i)).trans + (hD (fs i) (mem_range_self i)) + have hclip : hp.compLp hp0 (SobolevSpace.toLp μ hQ φ.val) = + SobolevSpace.toLp μ hQ φ.val := by + apply Lp.ext + filter_upwards [hp.coeFn_compLp hp0 (SobolevSpace.toLp μ hQ φ.val), hφ] with x hx hb + rw [hx] + exact max_eq_left hb + have hTl : Tendsto (fun i => SobolevSpace.toLp μ hQ (T i)) atTop + (𝓝 (SobolevSpace.toLp μ hQ φ.val)) := by + have ht := (hp.continuous_compLp hp0).continuousAt.tendsto.comp + ((SobolevSpace.toLpCLM μ hQ).continuous.continuousAt.tendsto.comp hlim) + change Tendsto (fun i => hp.compLp hp0 (SobolevSpace.toLp μ hQ (fs i))) atTop + (𝓝 (hp.compLp hp0 (SobolevSpace.toLp μ hQ φ.val))) at ht + rw [hclip] at ht + exact ht + rw [energyForm_comm μ hQ H φ.val] + apply ge_of_tendsto (SobolevSpace.energyForm_tendsto_of_toLp_tendsto_bounded μ hQ hTb hTl H) + apply Eventually.of_forall + intro i + rw [energyForm_comm μ hQ (T i) H] + obtain ⟨g, C, hg, hgc, hgs, hfg⟩ := hfs i + exact hcore (T i) (pos ∘ g) C (by simpa only [one_mul] using hp.comp hg) + (hgc.comp_left hp0) ((tsupport_comp_subset hp0 g).trans hgs) + ((hp.coeFn_compLp hp0 (SobolevSpace.toLp μ hQ (fs i))).trans (hfg.fun_comp pos)) + (fun x => le_max_right _ _) + +/-- A positive measure source is a positive functional on every +nonnegative Dirichlet test. -/ +theorem IsDirichletMeasureSource.test_nonneg (Ω : Set X) + (H : SobolevSpace μ hQ) (σ : Measure X) + (hsource : IsDirichletMeasureSource μ hQ Ω H σ) + (φ : SobolevSpace.dirichlet μ hQ Ω) + (hφ : ∀ᵐ x ∂μ, 0 ≤ SobolevSpace.toLp μ hQ φ.val x) : + 0 ≤ energyForm μ hQ H φ.val := by + apply dirichlet_test_nonneg_of_core μ hQ Ω H _ φ hφ + intro ψ v C hv hvc hs hψ hv0 + rw [hsource ψ v C hv hvc hs hψ] + exact integral_nonneg hv0 + +/-- Coercivity and positivity of the measure source imply nonnegativity +of its Dirichlet solution. -/ +theorem IsDirichletMeasureSource.solution_nonneg (Ω : Set X) + {P : ℝ} (hP : 0 ≤ P) + (hpoin : ∀ v : SobolevSpace.dirichlet μ hQ Ω, + ‖SobolevSpace.toLp μ hQ v.val‖ ^ 2 ≤ P * energyForm μ hQ v.val v.val) + (H : SobolevSpace.dirichlet μ hQ Ω) (σ : Measure X) + (hsource : IsDirichletMeasureSource μ hQ Ω H.val σ) : + ∀ᵐ x ∂μ, 0 ≤ SobolevSpace.toLp μ hQ H.val x := by + let F := (sobolevEnergyForm μ hQ H.val).comp (SobolevSpace.dirichlet μ hQ Ω).subtypeL + exact dirichlet_solution_nonneg μ hQ Ω hP hpoin F + (fun φ hφ => hsource.test_nonneg μ hQ Ω H.val σ φ hφ) H (fun _ => rfl) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/PositiveDistancePoisson.lean b/lean/OAI/Geometry/RCD/Sobolev/PositiveDistancePoisson.lean new file mode 100644 index 0000000000000000000000000000000000000000..f439736f3adc21d5d93000a659ec0b927d788339 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/PositiveDistancePoisson.lean @@ -0,0 +1,88 @@ +import OAI.Geometry.RCD.Metric.PositiveSquaredDistance +import OAI.Geometry.RCD.Sobolev.PoissonSourceEstimates +import OAI.Geometry.RCD.Sobolev.ConstantLaplacianBochnerInput + +namespace OAI + +/-! # The actual Poisson replacement of the positive squared distance -/ + +open Set Metric MeasureTheory +open scoped NNReal ENNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) [IsFiniteMeasureOnCompacts μ] (hQ : QuadraticCheegerEnergy μ) + +/-- The torsion constant is chosen uniformly before the ball and source. +All replacement and error conclusions concern the constructed squared +distance, not an abstract radial test function. -/ +theorem positive_distance_poisson_estimates {d C V : ℝ} (hd : 1 < d) + (hC : 0 ≤ C) (hV : 0 ≤ V) : + ∃ H : ℝ, 0 < H ∧ ∀ (p : X) (r R D : ℝ) (hR : 0 ≤ R), + ∀ χ : GoodLaplacianCutoff μ hQ p R D, + 0 < r → r ≤ R → μ (ball p r) ≠ ∞ → μ.real (ball p r) ≤ V → + ∀ P : ℝ, 0 ≤ P → + (∀ φ : SobolevSpace.dirichlet μ hQ (ball p r), + ‖SobolevSpace.toLp μ hQ φ.val‖ ^ 2 ≤ P * energyForm μ hQ φ.val φ.val) → + (∀ φ : SobolevSpace.dirichlet μ hQ (ball p r), + (∫ x in ball p r, |SobolevSpace.toLp μ hQ φ.val x| ^ (2 * d) ∂μ) ^ (1 / d) ≤ + C * energyForm μ hQ φ.val φ.val) → + (∀ᵐ x ∂μ.restrict (ball p R), + localGamma μ hQ (inwardSobolev μ hQ p R) (inwardSobolev μ hQ p R) x = 1) → + ∀ (a : ℝ), 0 ≤ a → ∀ (σ : Measure X), ∀ _hσ : IsFiniteMeasure σ, + let q := positiveSquaredDistance μ hQ hR χ + (∀ (ψ : SobolevSpace μ hQ) (v : X → ℝ) (L : ℝ≥0), + LipschitzWith L v → HasCompactSupport v → tsupport v ⊆ ball p r → + SobolevSpace.toLp μ hQ ψ =ᵐ[μ] v → + energyForm μ hQ q ψ + a * (∫ x in ball p r, v x ∂μ) = ∫ x, v x ∂σ) → + ∃ f : SobolevSpace μ hQ, + f - q ∈ SobolevSpace.dirichlet μ hQ (ball p r) ∧ + IsConstantLaplacianOn μ hQ (ball p r) f a ∧ + (∀ᵐ x ∂μ, 0 ≤ SobolevSpace.toLp μ hQ (q - f) x ∧ + SobolevSpace.toLp μ hQ (q - f) x ≤ r ^ 2 / 2 + a * H) ∧ + (∫ x, (SobolevSpace.minimalSlope μ hQ (q - f) x) ^ 2 ∂μ) ≤ + σ.real (ball p r) * (r ^ 2 / 2 + a * H) ∧ + (∫ x in ball p r, |(1 / 2 : ℝ) * localGamma μ hQ f f x - + (1 / 2 : ℝ) * localGamma μ hQ q q x| ∂μ) ≤ + (r * positiveSourceGradientBound (μ.real (ball p r)) C d ((1 + d) / 2) + + (r ^ 2 / 2 + a * H) / 2) * σ.real (ball p r) := by + obtain ⟨H, hH, htor⟩ := exists_uniform_bounded_torsion μ hQ hd hC hV + refine ⟨H, hH, ?_⟩ + intro p r R D hR χ hr hrR hfin hvol P hP hpoin hsob heik a ha σ hσ q hsource + let _ := hσ + have hsub : ball p r ⊆ ball p R := ball_subset_ball hrR + obtain ⟨τ, hτ, hτbound⟩ := htor (ball p r) measurableSet_ball hfin hvol P hP hpoin hsob + obtain ⟨f, hfq, hsolve⟩ := exists_constant_laplacian_replacement μ hQ (ball p r) + measurableSet_ball hfin hP hpoin a q + obtain ⟨L, hL⟩ := positiveSquaredDistanceValue_lipschitz μ hQ hR χ + have hrep := positiveSquaredDistance_representative μ hQ hR χ + have hnonneg : ∀ x, 0 ≤ positiveSquaredDistanceValue μ hQ χ x := + fun x => (positiveSquaredDistanceValue_bounds μ hQ hR χ x).1 + have hqbound : ∀ᵐ x ∂μ.restrict (ball p r), positiveSquaredDistanceValue μ hQ χ x ≤ r ^ 2 / 2 := by + filter_upwards [ae_restrict_mem measurableSet_ball] with x hx + rw [positiveSquaredDistanceValue_on_ball μ hQ χ (hsub hx)] + have hdist : dist p x < r := by simpa only [mem_ball, dist_comm] using hx + nlinarith [dist_nonneg (x := p) (y := x)] + have hgrad : ∀ᵐ x ∂μ.restrict (ball p r), SobolevSpace.minimalSlope μ hQ q x ≤ r := by + filter_upwards [ae_restrict_of_ae_restrict_of_subset hsub + (positiveSquaredDistance_gradient μ hQ hR χ heik), + ae_restrict_of_ae (localGamma_self μ hQ q), ae_restrict_mem measurableSet_ball] + with x hγ hself hx + change localGamma μ hQ q q x = dist p x ^ 2 at hγ + have hdist : dist p x < r := by simpa only [mem_ball, dist_comm] using hx + rw [hself] at hγ + nlinarith [dist_nonneg (x := p) (y := x)] + have hb := poisson_source_estimates μ hQ (ball p r) measurableSet_ball hfin hP hpoin q f + (positiveSquaredDistanceValue μ hQ χ) hL hnonneg hrep ha (by positivity) hH.le + hr.le hd hC hqbound hgrad τ hτ (hτbound.mono fun _ hx => hx.2) hfq hsolve σ hsource hsob + refine ⟨f, hfq, ?_, hb.1, hb.2.2.2.1, hb.2.2.2.2⟩ + intro φ hφ + exact hsolve ⟨φ, hφ⟩ + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/PositiveEnergyExcess.lean b/lean/OAI/Geometry/RCD/Sobolev/PositiveEnergyExcess.lean new file mode 100644 index 0000000000000000000000000000000000000000..2f8db9e0b4347db279f5e9a5ac02b5cf4fc2ba52 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/PositiveEnergyExcess.lean @@ -0,0 +1,62 @@ +import OAI.Geometry.RCD.Sobolev.LocalScaledGammaL2 + +namespace OAI + +/-! # Strong energy-density comparison transfers a sharp upper bound -/ + +open Set Filter MeasureTheory +open scoped Topology +noncomputable section +namespace RegularPointCoordinates + +theorem square_positive_excess_le {a b δ : ℝ} (hδ : 0≤δ) (hδ1 : δ≤1) + (hb : b≤(1+δ)^2) : (max (a-1) 0)^2≤2*(a-b)^2+18*δ^2 := by + have hmax : max (a-1) 0≤|a-b|+3*δ := by + apply max_le + · nlinarith [le_abs_self (a-b),mul_nonneg hδ (sub_nonneg.mpr hδ1)] + · positivity + have hs := pow_le_pow_left₀ (le_max_right (a-1) 0) hmax 2 + nlinarith [sq_nonneg (|a-b|-3*δ),sq_abs (a-b)] + +theorem positive_energy_excess_tendsto {X : Type*} [MeasurableSpace X] + (μ : Measure X) (Ω : ℕ → Set X) [∀ k, IsFiniteMeasure (μ.restrict (Ω k))] + (c : ℕ → ℝ) (hc : ∀ k, 0≤c k) (hmass : ∀ k, c k*μ.real (Ω k)≤1) + (f g : ℕ → X → ℝ) + (hf : ∀ᶠ k in atTop, IntegrableOn (fun x => (max (f k x-1) 0)^2) (Ω k) μ) + (hd : ∀ᶠ k in atTop, IntegrableOn (fun x => (f k x-g k x)^2) (Ω k) μ) + (hclose : Tendsto (fun k => c k*∫ x in Ω k, (f k x-g k x)^2 ∂μ) atTop (𝓝 0)) + (hupper : ∀ δ : ℝ, 0<δ → ∀ᶠ k in atTop, + ∀ᵐ x ∂μ.restrict (Ω k), g k x≤(1+δ)^2) : + Tendsto (fun k => c k*∫ x in Ω k, (max (f k x-1) 0)^2 ∂μ) atTop (𝓝 0) := by + apply tendsto_order.mpr + constructor + · intro a ha + exact Eventually.of_forall fun k => ha.trans_le + (mul_nonneg (hc k) (integral_nonneg fun x => sq_nonneg _)) + · intro b hb + let δ := min 1 (Real.sqrt b/10) + have hδ : 0<δ := lt_min zero_lt_one (div_pos (Real.sqrt_pos.mpr hb) (by norm_num)) + have hδ1 : δ≤1 := min_le_left _ _ + have hs : δ^2≤(Real.sqrt b/10)^2 := + pow_le_pow_left₀ hδ.le (min_le_right _ _) 2 + have hδb : 18*δ^2.add (integrable_const (18*δ^2))) + (hk.mono fun x hx => square_positive_excess_le hδ.le hδ1 hx) + change (∫ x in Ω k, (max (f k x-1) 0)^2 ∂μ)≤ + ∫ x in Ω k, (2*(f k x-g k x)^2+18*δ^2) ∂μ at hip + rw [integral_add (hdki.const_mul 2) (integrable_const (18*δ^2)),integral_const_mul, + integral_const] at hip + have hip' : (∫ x in Ω k, (max (f k x-1) 0)^2 ∂μ)≤ + 2*(∫ x in Ω k, (f k x-g k x)^2 ∂μ)+18*δ^2*μ.real (Ω k) := by + simpa only [smul_eq_mul,Measure.real,Measure.restrict_apply_univ,mul_comm] using hip + have hm := mul_le_mul_of_nonneg_left (hmass k) (show 0≤18*δ^2 by positivity) + have hh := mul_le_mul_of_nonneg_left hip' (hc k) + nlinarith + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/PositiveSobolevTestMeasure.lean b/lean/OAI/Geometry/RCD/Sobolev/PositiveSobolevTestMeasure.lean new file mode 100644 index 0000000000000000000000000000000000000000..3ac0c29f4a28810c933ea613c994b0cab720bae7 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/PositiveSobolevTestMeasure.lean @@ -0,0 +1,70 @@ +import OAI.Geometry.RCD.Sobolev.CompactSobolevTests +import OAI.Geometry.RCD.Sobolev.NestedPositiveTestMeasure + +namespace OAI + +/-! # Positive measures representing every continuous compact Sobolev test -/ + +open Set Filter Metric MeasureTheory +open scoped NNReal BoundedContinuousFunction + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) [IsFiniteMeasureOnCompacts μ] (hQ : QuadraticCheegerEnergy μ) + +theorem exists_positive_sobolev_test_measure (p : X) {R : ℝ} (hR : 0 < R) + (F : compactSobolevTests μ hQ (ball p (3 * R / 2)) →ₗ[ℝ] ℝ) + (hF : ∀ f : compactSobolevTests μ hQ (ball p (3 * R / 2)), 0 ≤ (f : X →ᵇ ℝ) → 0 ≤ F f) : + ∃ σ : Measure X, IsFiniteMeasure σ ∧ + ∀ f : compactSobolevTests μ hQ (ball p R), + (∫ x, (f : X →ᵇ ℝ) x ∂σ) = F + ⟨f, f.property.1, f.property.2.1.trans (ball_subset_ball (by linarith)), f.property.2.2⟩ := by + have hinc : compactSobolevTests μ hQ (ball p R) ≤ compactSobolevTests μ hQ (ball p (3 * R / 2)) := by + rintro f ⟨hc, hs, hu⟩ + exact ⟨hc, hs.trans (ball_subset_ball (by linarith)), hu⟩ + let ι := Submodule.inclusion hinc + obtain ⟨b, hb0, hb1⟩ := exists_nested_lipschitz_majorant p hR + let χ : compactSobolevTests μ hQ (ball p (3 * R / 2)) := + ⟨b, b.property.choose_spec.2.1, b.property.choose_spec.2.2, + compactTestSobolev μ hQ (ball p (3 * R / 2)) b, + compactTestSobolev_coe μ hQ (ball p (3 * R / 2)) b⟩ + have hχ0 : 0 ≤ (χ : X →ᵇ ℝ) := hb0 + have hχ1 : ∀ x ∈ ball p R, 1 ≤ (χ : X →ᵇ ℝ) x := hb1 + have hM : 0 ≤ F χ := hF χ hχ0 + have hbound (f : compactSobolevTests μ hQ (ball p R)) : + (F.comp ι) f ≤ F χ * ‖(f : X →ᵇ ℝ) ⊔ 0‖ := by + let C := ‖(f : X →ᵇ ℝ) ⊔ 0‖ + have hC : 0 ≤ C := norm_nonneg _ + have hn : 0 ≤ ((C • χ - ι f : compactSobolevTests μ hQ (ball p (3 * R / 2))) : X →ᵇ ℝ) := by + intro x + change 0 ≤ C * (χ : X →ᵇ ℝ) x - (f : X →ᵇ ℝ) x + by_cases hx : (f : X →ᵇ ℝ) x = 0 + · rw [hx, sub_zero] + exact mul_nonneg hC (hχ0 x) + · have hxs := f.property.2.1 (subset_tsupport _ hx) + have hfC : (f : X →ᵇ ℝ) x ≤ C := (le_max_left _ _).trans + (((f : X →ᵇ ℝ) ⊔ 0).apply_le_norm x) + have hmajor := mul_le_mul_of_nonneg_left (hχ1 x hxs) hC + linarith + have hp := hF (C • χ - ι f) hn + have hadd := F.map_add (C • χ - ι f) (ι f) + have heq : C • χ - ι f + ι f = C • χ := by + apply Subtype.ext + ext x + change C * (χ : X →ᵇ ℝ) x - (f : X →ᵇ ℝ) x + (f : X →ᵇ ℝ) x = C * (χ : X →ᵇ ℝ) x + ring + rw [heq, F.map_smul] at hadd + change C * F χ = F (C • χ - ι f) + F (ι f) at hadd + change F (ι f) ≤ F χ * C + linarith + obtain ⟨σ, hσ, hrep⟩ := exists_finite_measure_of_positive_bound + (compactSobolevTests μ hQ (ball p R)) (F.comp ι) hM hbound + exact ⟨σ, hσ, fun f => hrep f f.property.1⟩ + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/PositiveSourceGradient.lean b/lean/OAI/Geometry/RCD/Sobolev/PositiveSourceGradient.lean new file mode 100644 index 0000000000000000000000000000000000000000..cecf243c882b3949af6e2db0b907579fef474d9e --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/PositiveSourceGradient.lean @@ -0,0 +1,292 @@ +import OAI.Geometry.RCD.Sobolev.PositiveSourceTail +import OAI.Geometry.RCD.Sobolev.PositiveSourceTest + +namespace OAI + +/-! +# Weighted gradient estimates for positive Poisson sources + +The Cauchy--Schwarz step uses a reciprocal-weight energy and the moment +obtained from truncation. This keeps the linear dependence on source mass +which ordinary unweighted energy Cauchy--Schwarz would lose. +-/ + +open Set MeasureTheory Filter +open scoped InnerProductSpace ENNReal Topology + +noncomputable section + +namespace RegularPointCoordinates + +/-- Weighted Cauchy--Schwarz, including the integrability conclusion. -/ +theorem integral_sq_le_reciprocal_weight {X : Type*} [MeasurableSpace X] + (μ : Measure X) {f w : X → ℝ} (hf : AEMeasurable f μ) (hw : AEMeasurable w μ) + (hwpos : ∀ᵐ x ∂μ, 0 < w x) + (hiw : Integrable w μ) (hif : Integrable (fun x => f x ^ 2 / w x) μ) : + Integrable f μ ∧ (∫ x, f x ∂μ) ^ 2 ≤ (∫ x, f x ^ 2 / w x ∂μ) * ∫ x, w x ∂μ := by + let a := fun x => f x / Real.sqrt (w x) + let b := fun x => Real.sqrt (w x) + have ha : AEMeasurable a μ := hf.div hw.sqrt + have hb : AEMeasurable b μ := hw.sqrt + have hasq : (fun x => a x ^ 2) =ᵐ[μ] fun x => f x ^ 2 / w x := by + filter_upwards [hwpos] with x hx + dsimp [a] + rw [div_pow, Real.sq_sqrt hx.le] + have hbsq : (fun x => b x ^ 2) =ᵐ[μ] w := by + filter_upwards [hwpos] with x hx + exact Real.sq_sqrt hx.le + have hma : MemLp a 2 μ := + (memLp_two_iff_integrable_sq ha.aestronglyMeasurable).mpr (hif.congr hasq.symm) + have hmb : MemLp b 2 μ := + (memLp_two_iff_integrable_sq hb.aestronglyMeasurable).mpr (hiw.congr hbsq.symm) + let A := hma.toLp a + let B := hmb.toLp b + have hAe : A =ᵐ[μ] a := hma.coeFn_toLp + have hBe : B =ᵐ[μ] b := hmb.coeFn_toLp + have he : (fun x => ⟪A x, B x⟫_ℝ) =ᵐ[μ] f := by + filter_upwards [hAe, hBe, hwpos] with x ha hb hw + rw [ha, hb, Real.inner_apply] + dsimp [a, b] + rw [div_mul_cancel₀ _ (ne_of_gt (Real.sqrt_pos.2 hw))] + have hAi : ‖A‖ ^ 2 = ∫ x, f x ^ 2 / w x ∂μ := by + rw [← real_inner_self_eq_norm_sq, L2.inner_def] + apply integral_congr_ae + filter_upwards [hAe, hasq] with x ha hs + simpa only [real_inner_self_eq_norm_sq, Real.norm_eq_abs, sq_abs, ha] using hs + have hBi : ‖B‖ ^ 2 = ∫ x, w x ∂μ := by + rw [← real_inner_self_eq_norm_sq, L2.inner_def] + apply integral_congr_ae + filter_upwards [hBe, hbsq] with x hb hs + simpa only [real_inner_self_eq_norm_sq, Real.norm_eq_abs, sq_abs, hb] using hs + refine ⟨(L2.integrable_inner A B).congr he, ?_⟩ + have hinner : ⟪A, B⟫_ℝ = ∫ x, f x ∂μ := by + rw [L2.inner_def] + exact integral_congr_ae he + have hsq := (sq_le_sq₀ (abs_nonneg ⟪A, B⟫_ℝ) (mul_nonneg (norm_nonneg A) (norm_nonneg B))).mpr + (abs_real_inner_le_norm A B) + simpa only [sq_abs, hinner, mul_pow, hAi, hBi] using hsq + +/-- Shifting a nonnegative function by one preserves controlled moments. -/ +theorem shifted_moment_le {X : Type*} [MeasurableSpace X] + (μ : Measure X) [IsFiniteMeasure μ] {H : X → ℝ} + (hH : AEMeasurable H μ) (hH0 : 0 ≤ᵐ[μ] H) {q : ℝ} (hq : 0 ≤ q) + (hi : Integrable (fun x => H x ^ q) μ) : + Integrable (fun x => (1 + H x) ^ q) μ ∧ + (∫ x, (1 + H x) ^ q ∂μ) ≤ 2 ^ q * (μ.real univ + ∫ x, H x ^ q ∂μ) := by + have hb : ∀ᵐ x ∂μ, (1 + H x) ^ q ≤ 2 ^ q * (1 + H x ^ q) := by + filter_upwards [hH0] with x hx + change 0 ≤ H x at hx + by_cases hle : H x ≤ 1 + · calc + _ ≤ (2 : ℝ) ^ q := Real.rpow_le_rpow (by linarith) (by linarith) hq + _ ≤ _ := by nlinarith [Real.rpow_nonneg (by norm_num : (0 : ℝ) ≤ 2) q, + Real.rpow_nonneg hx q] + · have hgt : 1 ≤ H x := (lt_of_not_ge hle).le + calc + _ ≤ (2 * H x) ^ q := Real.rpow_le_rpow (by linarith) (by linarith) hq + _ = 2 ^ q * H x ^ q := Real.mul_rpow (by norm_num) hx + _ ≤ _ := by nlinarith [Real.rpow_nonneg (by norm_num : (0 : ℝ) ≤ 2) q] + have hmajor : Integrable (fun x => 2 ^ q * (1 + H x ^ q)) μ := + ((integrable_const (1 : ℝ)).add hi).const_mul _ + have hshift : Integrable (fun x => (1 + H x) ^ q) μ := by + apply hmajor.mono' ((hH.const_add 1).pow_const q).aestronglyMeasurable + filter_upwards [hH0, hb] with x hx hb + change 0 ≤ H x at hx + rw [Real.norm_eq_abs, abs_of_nonneg (Real.rpow_nonneg (by linarith) q)] + exact hb + refine ⟨hshift, ?_⟩ + have he := integral_mono_ae hshift hmajor hb + simpa only [integral_const_mul, integral_add (integrable_const (1 : ℝ)) hi, + integral_const, smul_eq_mul, mul_one] using he + +/-- An explicit, nonoptimal uniform constant for the normalized source. -/ +def positiveSourceGradientBound (V C d q : ℝ) : ℝ := + 1 + (2 ^ q * (V + q * (V * q⁻¹ + C ^ d * (d - q)⁻¹))) / (q - 1) + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +/-- The complete normalized positive-source L1 gradient estimate from the +Dirichlet Sobolev inequality and the source's action on bounded tests. -/ +theorem normalized_positive_source_gradient (Ω : Set X) (hΩfin : μ Ω ≠ ∞) + (H : SobolevSpace.dirichlet μ hQ Ω) + (hH : ∀ᵐ x ∂μ, 0 ≤ SobolevSpace.toLp μ hQ H.val x) + {d q C : ℝ} (hq : 1 < q) (hqd : q < d) (hC : 0 ≤ C) + (hsob : ∀ φ : SobolevSpace.dirichlet μ hQ Ω, + (∫ x in Ω, |SobolevSpace.toLp μ hQ φ.val x| ^ (2 * d) ∂μ) ^ (1 / d) ≤ + C * energyForm μ hQ φ.val φ.val) + (hsource : ∀ φ : SobolevSpace.dirichlet μ hQ Ω, ∀ s : ℝ, 0 ≤ s → + (∀ᵐ x ∂μ, 0 ≤ SobolevSpace.toLp μ hQ φ.val x ∧ SobolevSpace.toLp μ hQ φ.val x ≤ s) → + energyForm μ hQ H.val φ.val ≤ s) : + IntegrableOn (fun x => SobolevSpace.minimalSlope μ hQ H.val x) Ω μ ∧ + (∫ x in Ω, SobolevSpace.minimalSlope μ hQ H.val x ∂μ) ≤ + positiveSourceGradientBound (μ.real Ω) C d q := by + let ν := μ.restrict Ω + let : IsFiniteMeasure ν := ⟨by simpa only [ν, Measure.restrict_apply_univ] using hΩfin.lt_top⟩ + let U := fun x => SobolevSpace.toLp μ hQ H.val x + let G := fun x => SobolevSpace.minimalSlope μ hQ H.val x + have hq0 : 0 < q := zero_lt_one.trans hq + have hd : 0 < d := hq0.trans hqd + have hα : 0 < q - 1 := sub_pos.mpr hq + have hU0 : 0 ≤ᵐ[ν] U := ae_restrict_of_ae hH + have hUm : AEMeasurable U ν := (Lp.stronglyMeasurable _).measurable.aemeasurable + have htail (t : ℝ) (ht : 1 ≤ t) : ν {x | t ≤ U x} ≤ ENNReal.ofReal (C ^ d * t ^ (-d)) := by + simpa only [ν, U, mul_one, one_mul] using + dirichlet_positive_source_tail μ hQ Ω hΩfin H hH hd hC zero_le_one hsob + (by intro φ s hs hb; simpa only [one_mul] using hsource φ s hs hb) + (zero_lt_one.trans_le ht) + have hUi := integrable_rpow_of_power_tail ν hUm hU0 hq0 hqd (Real.rpow_nonneg hC d) htail + have hUb := integral_rpow_le_of_power_tail ν hUm hU0 hq0 hqd (Real.rpow_nonneg hC d) htail + have hshift := shifted_moment_le ν hUm hU0 hq0.le hUi + let w := fun x => (1 + U x) ^ q + have hwpos : ∀ᵐ x ∂ν, 0 < w x := by + filter_upwards [hU0] with x hx + change 0 ≤ U x at hx + exact Real.rpow_pos_of_pos (by linarith) _ + have hwm : AEMeasurable w ν := (hUm.const_add 1).pow_const q + have hGm : AEMeasurable G ν := (Lp.stronglyMeasurable _).measurable.aemeasurable + have hEe := positive_source_weighted_energy μ hQ Ω H hH 1 + (by intro φ s hs hb; simpa only [one_mul] using hsource φ s hs hb) hα + have hqi : 1 + (q - 1) = q := by ring + simp only [hqi, one_div] at hEe + have hEg : Integrable (fun x => G x ^ 2 / w x) μ := hEe.1 + have hEn : ∀ᵐ x ∂μ, 0 ≤ G x ^ 2 / w x := by + filter_upwards [hH] with x hx + exact div_nonneg (sq_nonneg _) (Real.rpow_nonneg (by linarith) q) + have hEl : (∫ x, G x ^ 2 / w x ∂ν) ≤ (q - 1)⁻¹ := + (setIntegral_le_integral hEg hEn).trans hEe.2 + have hcs := integral_sq_le_reciprocal_weight ν hGm hwm hwpos hshift.1 hEg.integrableOn + have hV : ν.real univ = μ.real Ω := by simp only [ν, Measure.real, Measure.restrict_apply_univ] + let M := 2 ^ q * (ν.real univ + q * (ν.real univ * q⁻¹ + C ^ d * (d - q)⁻¹)) + have hMb : (∫ x, w x ∂ν) ≤ M := by + apply hshift.2.trans + exact mul_le_mul_of_nonneg_left (add_le_add le_rfl hUb) (Real.rpow_nonneg (by norm_num) q) + have hsq : (∫ x, G x ∂ν) ^ 2 ≤ (q - 1)⁻¹ * M := + hcs.2.trans (mul_le_mul hEl hMb (integral_nonneg_of_ae (hwpos.mono fun _ hx => hx.le)) + (inv_nonneg.mpr hα.le)) + refine ⟨hcs.1, ?_⟩ + have hb : (∫ x, G x ∂ν) ≤ 1 + M / (q - 1) := by + have hsq0 := sq_nonneg ((∫ x, G x ∂ν) - 1 / 2) + rw [div_eq_mul_inv, mul_comm M] at ⊢ + nlinarith + simpa only [positiveSourceGradientBound, M, hV, ν, G] using hb + +/-- Scaling the normalized estimate gives linear dependence on a positive +source mass. -/ +theorem positive_source_gradient_of_pos (Ω : Set X) (hΩfin : μ Ω ≠ ∞) + (H : SobolevSpace.dirichlet μ hQ Ω) + (hH : ∀ᵐ x ∂μ, 0 ≤ SobolevSpace.toLp μ hQ H.val x) + {d q C P : ℝ} (hq : 1 < q) (hqd : q < d) (hC : 0 ≤ C) (hP : 0 < P) + (hsob : ∀ φ : SobolevSpace.dirichlet μ hQ Ω, + (∫ x in Ω, |SobolevSpace.toLp μ hQ φ.val x| ^ (2 * d) ∂μ) ^ (1 / d) ≤ + C * energyForm μ hQ φ.val φ.val) + (hsource : ∀ φ : SobolevSpace.dirichlet μ hQ Ω, ∀ s : ℝ, 0 ≤ s → + (∀ᵐ x ∂μ, 0 ≤ SobolevSpace.toLp μ hQ φ.val x ∧ SobolevSpace.toLp μ hQ φ.val x ≤ s) → + energyForm μ hQ H.val φ.val ≤ P * s) : + IntegrableOn (fun x => SobolevSpace.minimalSlope μ hQ H.val x) Ω μ ∧ + (∫ x in Ω, SobolevSpace.minimalSlope μ hQ H.val x ∂μ) ≤ + P * positiveSourceGradientBound (μ.real Ω) C d q := by + let N : SobolevSpace.dirichlet μ hQ Ω := P⁻¹ • H + have hN : ∀ᵐ x ∂μ, 0 ≤ SobolevSpace.toLp μ hQ N.val x := by + change ∀ᵐ x ∂μ, 0 ≤ SobolevSpace.toLp μ hQ (P⁻¹ • H.val) x + rw [map_smul] + filter_upwards [hH, Lp.coeFn_smul P⁻¹ (SobolevSpace.toLp μ hQ H.val)] with x hx he + rw [he] + exact mul_nonneg (inv_nonneg.mpr hP.le) hx + have hNs : ∀ φ : SobolevSpace.dirichlet μ hQ Ω, ∀ s : ℝ, 0 ≤ s → + (∀ᵐ x ∂μ, 0 ≤ SobolevSpace.toLp μ hQ φ.val x ∧ SobolevSpace.toLp μ hQ φ.val x ≤ s) → + energyForm μ hQ N.val φ.val ≤ s := by + intro φ s hs hb + change energyForm μ hQ (P⁻¹ • H.val) φ.val ≤ s + rw [energyForm_smul_left] + calc + _ ≤ P⁻¹ * (P * s) := mul_le_mul_of_nonneg_left (hsource φ s hs hb) (inv_nonneg.mpr hP.le) + _ = s := by field_simp + have hn := normalized_positive_source_gradient μ hQ Ω hΩfin N hN hq hqd hC hsob hNs + have he : (fun x => P * SobolevSpace.minimalSlope μ hQ N.val x) =ᵐ[μ] + fun x => SobolevSpace.minimalSlope μ hQ H.val x := by + change (fun x => P * SobolevSpace.minimalSlope μ hQ (P⁻¹ • H.val) x) =ᵐ[μ] _ + rw [SobolevSpace.minimalSlope_smul_nonneg μ hQ H.val (inv_nonneg.mpr hP.le)] + filter_upwards [Lp.coeFn_smul P⁻¹ (SobolevSpace.minimalSlope μ hQ H.val)] with x hx + rw [hx] + change P * (P⁻¹ * SobolevSpace.minimalSlope μ hQ H.val x) = _ + field_simp + refine ⟨(hn.1.const_mul P).congr (ae_restrict_of_ae he), ?_⟩ + calc + _ = ∫ x in Ω, P * SobolevSpace.minimalSlope μ hQ N.val x ∂μ := + integral_congr_ae (ae_restrict_of_ae he.symm) + _ = P * ∫ x in Ω, SobolevSpace.minimalSlope μ hQ N.val x ∂μ := integral_const_mul _ _ + _ ≤ _ := mul_le_mul_of_nonneg_left hn.2 hP.le + +/-- The linear gradient estimate also holds at zero source mass, by +approaching that mass through positive upper bounds. -/ +theorem positive_source_gradient (Ω : Set X) (hΩfin : μ Ω ≠ ∞) + (H : SobolevSpace.dirichlet μ hQ Ω) + (hH : ∀ᵐ x ∂μ, 0 ≤ SobolevSpace.toLp μ hQ H.val x) + {d q C P : ℝ} (hq : 1 < q) (hqd : q < d) (hC : 0 ≤ C) (hP : 0 ≤ P) + (hsob : ∀ φ : SobolevSpace.dirichlet μ hQ Ω, + (∫ x in Ω, |SobolevSpace.toLp μ hQ φ.val x| ^ (2 * d) ∂μ) ^ (1 / d) ≤ + C * energyForm μ hQ φ.val φ.val) + (hsource : ∀ φ : SobolevSpace.dirichlet μ hQ Ω, ∀ s : ℝ, 0 ≤ s → + (∀ᵐ x ∂μ, 0 ≤ SobolevSpace.toLp μ hQ φ.val x ∧ SobolevSpace.toLp μ hQ φ.val x ≤ s) → + energyForm μ hQ H.val φ.val ≤ P * s) : + IntegrableOn (fun x => SobolevSpace.minimalSlope μ hQ H.val x) Ω μ ∧ + (∫ x in Ω, SobolevSpace.minimalSlope μ hQ H.val x ∂μ) ≤ + P * positiveSourceGradientBound (μ.real Ω) C d q := by + have hb (r : ℝ) (hr : P < r) : + IntegrableOn (fun x => SobolevSpace.minimalSlope μ hQ H.val x) Ω μ ∧ + (∫ x in Ω, SobolevSpace.minimalSlope μ hQ H.val x ∂μ) ≤ + r * positiveSourceGradientBound (μ.real Ω) C d q := by + apply positive_source_gradient_of_pos μ hQ Ω hΩfin H hH hq hqd hC (hP.trans_lt hr) hsob + intro φ s hs ht + exact (hsource φ s hs ht).trans (mul_le_mul_of_nonneg_right hr.le hs) + refine ⟨(hb (P + 1) (by linarith)).1, ?_⟩ + have hlim : Tendsto (fun r : ℝ => r * positiveSourceGradientBound (μ.real Ω) C d q) + (𝓝[>] P) (𝓝 (P * positiveSourceGradientBound (μ.real Ω) C d q)) := + (continuous_id.mul continuous_const).continuousAt.tendsto.mono_left nhdsWithin_le_nhds + apply ge_of_tendsto hlim + filter_upwards [self_mem_nhdsWithin] with r hr + exact (hb r hr).2 + +omit [ProperSpace X] in +/-- The companion square-gradient bound is the direct test by the bounded +solution itself. -/ +theorem positive_source_energy (Ω : Set X) (H : SobolevSpace.dirichlet μ hQ Ω) + {P B : ℝ} (hB : 0 ≤ B) + (hH : ∀ᵐ x ∂μ, 0 ≤ SobolevSpace.toLp μ hQ H.val x ∧ SobolevSpace.toLp μ hQ H.val x ≤ B) + (hsource : ∀ φ : SobolevSpace.dirichlet μ hQ Ω, ∀ s : ℝ, 0 ≤ s → + (∀ᵐ x ∂μ, 0 ≤ SobolevSpace.toLp μ hQ φ.val x ∧ SobolevSpace.toLp μ hQ φ.val x ≤ s) → + energyForm μ hQ H.val φ.val ≤ P * s) : + (∫ x, (SobolevSpace.minimalSlope μ hQ H.val x) ^ 2 ∂μ) ≤ P * B := by + calc + _ = ∫ x, localGamma μ hQ H.val H.val x ∂μ := + integral_congr_ae (localGamma_self μ hQ H.val).symm + _ = energyForm μ hQ H.val H.val := integral_localGamma_eq_energyForm μ hQ _ _ + _ ≤ P * B := hsource H B hB hH + +/-- Both positive-source estimates, with a fixed exponent selected from +`d > 1`. The L1 bound is linear in mass; the L2 energy bound is mass times +the upper bound of the solution. -/ +theorem positive_source_bounds (Ω : Set X) (hΩfin : μ Ω ≠ ∞) + (H : SobolevSpace.dirichlet μ hQ Ω) + {d C P B : ℝ} (hd : 1 < d) (hC : 0 ≤ C) (hP : 0 ≤ P) (hB : 0 ≤ B) + (hH : ∀ᵐ x ∂μ, 0 ≤ SobolevSpace.toLp μ hQ H.val x ∧ SobolevSpace.toLp μ hQ H.val x ≤ B) + (hsob : ∀ φ : SobolevSpace.dirichlet μ hQ Ω, + (∫ x in Ω, |SobolevSpace.toLp μ hQ φ.val x| ^ (2 * d) ∂μ) ^ (1 / d) ≤ + C * energyForm μ hQ φ.val φ.val) + (hsource : ∀ φ : SobolevSpace.dirichlet μ hQ Ω, ∀ s : ℝ, 0 ≤ s → + (∀ᵐ x ∂μ, 0 ≤ SobolevSpace.toLp μ hQ φ.val x ∧ SobolevSpace.toLp μ hQ φ.val x ≤ s) → + energyForm μ hQ H.val φ.val ≤ P * s) : + IntegrableOn (fun x => SobolevSpace.minimalSlope μ hQ H.val x) Ω μ ∧ + (∫ x in Ω, SobolevSpace.minimalSlope μ hQ H.val x ∂μ) ≤ + P * positiveSourceGradientBound (μ.real Ω) C d ((1 + d) / 2) ∧ + (∫ x, (SobolevSpace.minimalSlope μ hQ H.val x) ^ 2 ∂μ) ≤ P * B := by + have hg := positive_source_gradient μ hQ Ω hΩfin H (hH.mono fun _ hx => hx.1) + (q := (1 + d) / 2) (by linarith) (by linarith) hC hP hsob hsource + exact ⟨hg.1, hg.2, positive_source_energy μ hQ Ω H hB hH hsource⟩ + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/PositiveSourceMoment.lean b/lean/OAI/Geometry/RCD/Sobolev/PositiveSourceMoment.lean new file mode 100644 index 0000000000000000000000000000000000000000..9959d3474437c0ccc3359b3617a4cbc803b6ff59 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/PositiveSourceMoment.lean @@ -0,0 +1,132 @@ +import Mathlib.Analysis.SpecialFunctions.Pow.Integral +import Mathlib.Analysis.SpecialFunctions.ImproperIntegrals + +namespace OAI + +/-! +# The moment estimate used for positive Poisson sources + +A weak power-tail bound of exponent `d` gives every smaller positive +moment. In the Poisson argument the tail follows by testing with a +truncation and applying the Dirichlet Sobolev inequality. The constants +below do not depend on an upper bound for the solution. +-/ + +open Set MeasureTheory Filter +open scoped ENNReal + +noncomputable section + +namespace RegularPointCoordinates + +private theorem lintegral_small_rpow {q : ℝ} (hq : 0 < q) : + (∫⁻ t in Ioc (0 : ℝ) 1, ENNReal.ofReal (t ^ (q - 1))) = ENNReal.ofReal q⁻¹ := by + have hi : IntervalIntegrable (fun t : ℝ => t ^ (q - 1)) volume 0 1 := + intervalIntegral.intervalIntegrable_rpow' (by linarith) + have he : (∫ t : ℝ in Ioc 0 1, t ^ (q - 1)) = q⁻¹ := by + rw [← intervalIntegral.integral_of_le (by norm_num : (0 : ℝ) ≤ 1), + integral_rpow (Or.inl (by linarith : -1 < q - 1))] + simp only [sub_add_cancel, Real.one_rpow, Real.zero_rpow hq.ne', sub_zero, one_div] + rw [← he] + symm + apply ofReal_integral_eq_lintegral_ofReal hi.1 + filter_upwards [ae_restrict_mem measurableSet_Ioc] with t ht + exact Real.rpow_nonneg ht.1.le _ + +private theorem lintegral_large_rpow {q d : ℝ} (hqd : q < d) : + (∫⁻ t in Ioi (1 : ℝ), ENNReal.ofReal (t ^ (q - 1 - d))) = + ENNReal.ofReal (d - q)⁻¹ := by + have hexp : q - 1 - d < -1 := by linarith + have hi := integrableOn_Ioi_rpow_of_lt hexp (by norm_num : (0 : ℝ) < 1) + have he : (∫ t : ℝ in Ioi 1, t ^ (q - 1 - d)) = (d - q)⁻¹ := by + rw [integral_Ioi_rpow_of_lt hexp (by norm_num : (0 : ℝ) < 1), Real.one_rpow] + rw [show q - 1 - d + 1 = -(d - q) by ring] + simp only [div_neg, neg_div, neg_neg, one_div] + rw [← he] + symm + apply ofReal_integral_eq_lintegral_ofReal hi + filter_upwards [ae_restrict_mem measurableSet_Ioi] with t ht + exact Real.rpow_nonneg (le_of_lt (zero_lt_one.trans ht)) _ + +/-- A tail bound at levels at least one gives an explicit smaller-moment +bound; low levels cost only the total measure. -/ +theorem moment_lintegral_le_of_power_tail {X : Type*} [MeasurableSpace X] + (μ : Measure X) [IsFiniteMeasure μ] {H : X → ℝ} + (hH : AEMeasurable H μ) (hH0 : 0 ≤ᵐ[μ] H) + {q d C : ℝ} (hq : 0 < q) (hqd : q < d) (hC : 0 ≤ C) + (htail : ∀ t : ℝ, 1 ≤ t → μ {x | t ≤ H x} ≤ ENNReal.ofReal (C * t ^ (-d))) : + (∫⁻ x, ENNReal.ofReal (H x ^ q) ∂μ) ≤ + ENNReal.ofReal q * + (μ univ * ENNReal.ofReal q⁻¹ + ENNReal.ofReal C * ENNReal.ofReal (d - q)⁻¹) := by + rw [lintegral_rpow_eq_lintegral_meas_le_mul μ hH0 hH hq] + gcongr 1 + rw [← Ioc_union_Ioi_eq_Ioi (by norm_num : (0 : ℝ) ≤ 1), + lintegral_union measurableSet_Ioi (disjoint_left.mpr (by + intro t ht ht' + exact (not_lt_of_ge ht.2) ht'))] + apply add_le_add + · calc + _ ≤ ∫⁻ t in Ioc (0 : ℝ) 1, μ univ * ENNReal.ofReal (t ^ (q - 1)) := + lintegral_mono fun t => mul_le_mul' (measure_mono (subset_univ _)) le_rfl + _ = _ := by + rw [lintegral_const_mul' _ _ (measure_ne_top _ _), lintegral_small_rpow hq] + · calc + _ ≤ ∫⁻ t in Ioi (1 : ℝ), ENNReal.ofReal C * ENNReal.ofReal (t ^ (q - 1 - d)) := by + apply lintegral_mono_ae + filter_upwards [ae_restrict_mem measurableSet_Ioi] with t ht + have ht0 : 0 < t := zero_lt_one.trans ht + calc + μ {x | t ≤ H x} * ENNReal.ofReal (t ^ (q - 1)) ≤ + ENNReal.ofReal (C * t ^ (-d)) * ENNReal.ofReal (t ^ (q - 1)) := + mul_le_mul' (htail t ht.le) le_rfl + _ = ENNReal.ofReal C * ENNReal.ofReal (t ^ (q - 1 - d)) := by + rw [← ENNReal.ofReal_mul (mul_nonneg hC (Real.rpow_nonneg ht0.le _)), + ← ENNReal.ofReal_mul hC] + congr 1 + rw [mul_assoc, ← Real.rpow_add ht0] + congr 2 + ring + _ = _ := by + rw [lintegral_const_mul' _ _ ENNReal.ofReal_ne_top, lintegral_large_rpow hqd] + +/-- The tail estimate also supplies genuine integrability of the moment. -/ +theorem integrable_rpow_of_power_tail {X : Type*} [MeasurableSpace X] + (μ : Measure X) [IsFiniteMeasure μ] {H : X → ℝ} + (hH : AEMeasurable H μ) (hH0 : 0 ≤ᵐ[μ] H) + {q d C : ℝ} (hq : 0 < q) (hqd : q < d) (hC : 0 ≤ C) + (htail : ∀ t : ℝ, 1 ≤ t → μ {x | t ≤ H x} ≤ ENNReal.ofReal (C * t ^ (-d))) : + Integrable (fun x => H x ^ q) μ := by + refine ⟨(hH.pow_const q).aestronglyMeasurable, ?_⟩ + have hb := moment_lintegral_le_of_power_tail μ hH hH0 hq hqd hC htail + have hf : (∫⁻ x, ENNReal.ofReal (H x ^ q) ∂μ) < ∞ := + lt_of_le_of_lt hb (by finiteness) + change (∫⁻ x, ‖H x ^ q‖ₑ ∂μ) < ∞ + convert hf using 1 + apply lintegral_congr_ae + filter_upwards [hH0] with x hx + rw [Real.enorm_eq_ofReal_abs, abs_of_nonneg (Real.rpow_nonneg hx q)] + +/-- A real-valued form of the moment bound for subsequent energy estimates. -/ +theorem integral_rpow_le_of_power_tail {X : Type*} [MeasurableSpace X] + (μ : Measure X) [IsFiniteMeasure μ] {H : X → ℝ} + (hH : AEMeasurable H μ) (hH0 : 0 ≤ᵐ[μ] H) + {q d C : ℝ} (hq : 0 < q) (hqd : q < d) (hC : 0 ≤ C) + (htail : ∀ t : ℝ, 1 ≤ t → μ {x | t ≤ H x} ≤ ENNReal.ofReal (C * t ^ (-d))) : + (∫ x, H x ^ q ∂μ) ≤ q * (μ.real univ * q⁻¹ + C * (d - q)⁻¹) := by + have hb := moment_lintegral_le_of_power_tail μ hH hH0 hq hqd hC htail + have hi := integrable_rpow_of_power_tail μ hH hH0 hq hqd hC htail + have hn : ∀ᵐ x ∂μ, 0 ≤ H x ^ q := hH0.mono fun x hx => Real.rpow_nonneg hx q + rw [← ofReal_integral_eq_lintegral_ofReal hi hn] at hb + have ht := ENNReal.toReal_mono (by finiteness) hb + rw [ENNReal.toReal_mul, ENNReal.toReal_add (by finiteness) (by finiteness), + ENNReal.toReal_mul, ENNReal.toReal_mul] at ht + simpa only [ENNReal.toReal_ofReal hq.le, + ENNReal.toReal_ofReal (inv_nonneg.mpr hq.le), ENNReal.toReal_ofReal hC, + ENNReal.toReal_ofReal (inv_nonneg.mpr (sub_pos.mpr hqd).le), + ENNReal.toReal_ofReal (integral_nonneg_of_ae hn), Measure.real] using ht + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/PositiveSourceTail.lean b/lean/OAI/Geometry/RCD/Sobolev/PositiveSourceTail.lean new file mode 100644 index 0000000000000000000000000000000000000000..32616b4eded49ec0587290900aea3e851c95482d --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/PositiveSourceTail.lean @@ -0,0 +1,111 @@ +import OAI.Geometry.RCD.Sobolev.PositiveSourceMoment +import OAI.Geometry.RCD.Sobolev.PositiveSourceTruncation + +namespace OAI + +/-! +# Power tails from the actual Dirichlet truncation test + +This is the Sobolev step in the positive-source estimate. The measure +bound is derived from clipped moments and then applied to genuine +Dirichlet functions with a bounded positive source functional. +-/ + +open Set MeasureTheory Filter +open scoped InnerProductSpace ENNReal + +noncomputable section + +namespace RegularPointCoordinates + +/-- The clipped Sobolev moment inequality implies the weak power tail. -/ +theorem power_tail_of_clip_moment {X : Type*} [MeasurableSpace X] + (ν : Measure X) [IsFiniteMeasure ν] {H : X → ℝ} (hH : Measurable H) + {d C : ℝ} (hd : 0 < d) (hC : 0 ≤ C) + (hclip : ∀ t : ℝ, 0 < t → + (∫ x, (positiveClip t (H x)) ^ (2 * d) ∂ν) ^ (1 / d) ≤ C * t) + {t : ℝ} (ht : 0 < t) : + ν {x | t ≤ H x} ≤ ENNReal.ofReal (C ^ d * t ^ (-d)) := by + let S := {x | t ≤ H x} + have hS : MeasurableSet S := measurableSet_le measurable_const hH + have hmeas : Measurable (fun x => (positiveClip t (H x)) ^ (2 * d)) := + ((positiveClip_lipschitz t).continuous.measurable.comp hH).pow_const _ + have hi : Integrable (fun x => (positiveClip t (H x)) ^ (2 * d)) ν := by + apply Integrable.of_bound hmeas.aestronglyMeasurable (t ^ (2 * d)) + exact Eventually.of_forall fun x => by + have h0 : 0 ≤ positiveClip t (H x) := le_min (le_max_right _ _) ht.le + rw [Real.norm_eq_abs, abs_of_nonneg (Real.rpow_nonneg h0 _)] + exact Real.rpow_le_rpow h0 (min_le_right _ _) (by positivity) + have hlo : t ^ (2 * d) * ν.real S ≤ ∫ x, (positiveClip t (H x)) ^ (2 * d) ∂ν := by + have hind : Integrable (S.indicator (fun _ : X => t ^ (2 * d))) ν := + (integrable_const _).indicator hS + have hb := integral_mono_ae hind hi (Eventually.of_forall fun x => by + by_cases hx : x ∈ S + · rw [indicator_of_mem hx] + have hxt : t ≤ H x := hx + have hx0 : 0 ≤ H x := ht.le.trans hxt + simp only [positiveClip, max_eq_left hx0, min_eq_right hxt] + exact le_rfl + · rw [indicator_of_notMem hx] + exact Real.rpow_nonneg (le_min (le_max_right _ _) ht.le) _) + simpa only [integral_indicator_const _ hS, smul_eq_mul, mul_comm] using hb + have hJ : 0 ≤ ∫ x, (positiveClip t (H x)) ^ (2 * d) ∂ν := by + exact integral_nonneg fun x => Real.rpow_nonneg (le_min (le_max_right _ _) ht.le) _ + have hp := Real.rpow_le_rpow (Real.rpow_nonneg hJ (1 / d)) (hclip t ht) hd.le + rw [one_div, Real.rpow_inv_rpow hJ hd.ne'] at hp + have hdiv : ν.real S ≤ (C * t) ^ d / t ^ (2 * d) := + (le_div_iff₀ (Real.rpow_pos_of_pos ht _)).mpr (by nlinarith [hlo.trans hp]) + have he : (C * t) ^ d / t ^ (2 * d) = C ^ d * t ^ (-d) := by + rw [Real.mul_rpow hC ht.le, Real.rpow_neg ht.le, + show 2 * d = d + d by ring, Real.rpow_add ht] + field_simp + have hb : ν.real S ≤ C ^ d * t ^ (-d) := hdiv.trans_eq he + rw [← ENNReal.ofReal_toReal (measure_ne_top ν S)] + exact ENNReal.ofReal_le_ofReal hb + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +/-- The weak power tail for a positive-source Dirichlet solution. The +Sobolev inequality and source bound are stated separately, on the actual +Dirichlet space. The desired tail is derived rather than postulated. -/ +theorem dirichlet_positive_source_tail (Ω : Set X) (hΩfin : μ Ω ≠ ∞) + (H : SobolevSpace.dirichlet μ hQ Ω) + (hH : ∀ᵐ x ∂μ, 0 ≤ SobolevSpace.toLp μ hQ H.val x) + {d C P : ℝ} (hd : 0 < d) (hC : 0 ≤ C) (hP : 0 ≤ P) + (hsob : ∀ φ : SobolevSpace.dirichlet μ hQ Ω, + (∫ x in Ω, |SobolevSpace.toLp μ hQ φ.val x| ^ (2 * d) ∂μ) ^ (1 / d) ≤ + C * energyForm μ hQ φ.val φ.val) + (hsource : ∀ φ : SobolevSpace.dirichlet μ hQ Ω, ∀ s : ℝ, 0 ≤ s → + (∀ᵐ x ∂μ, 0 ≤ SobolevSpace.toLp μ hQ φ.val x ∧ SobolevSpace.toLp μ hQ φ.val x ≤ s) → + energyForm μ hQ H.val φ.val ≤ P * s) + {t : ℝ} (ht : 0 < t) : + (μ.restrict Ω) {x | t ≤ SobolevSpace.toLp μ hQ H.val x} ≤ + ENNReal.ofReal ((C * P) ^ d * t ^ (-d)) := by + let : IsFiniteMeasure (μ.restrict Ω) := ⟨by simpa using hΩfin.lt_top⟩ + apply power_tail_of_clip_moment (μ.restrict Ω) (Lp.stronglyMeasurable _).measurable hd + (mul_nonneg hC hP) ?_ ht + intro s hs + let T := positiveTruncation μ hQ H.val s hs.le + let φ : SobolevSpace.dirichlet μ hQ Ω := + ⟨T, positiveTruncation_mem_dirichlet μ hQ H.val H.property hs.le⟩ + have he : (∫ x in Ω, (positiveClip s (SobolevSpace.toLp μ hQ H.val x)) ^ (2 * d) ∂μ) = + ∫ x in Ω, |SobolevSpace.toLp μ hQ φ.val x| ^ (2 * d) ∂μ := by + apply integral_congr_ae + filter_upwards [ae_restrict_of_ae (positiveTruncation_coe μ hQ H.val hs.le), + ae_restrict_of_ae (positiveTruncation_bounds μ hQ H.val hs.le)] with x hx hb + change (positiveClip s (SobolevSpace.toLp μ hQ H.val x)) ^ (2 * d) = + |SobolevSpace.toLp μ hQ T x| ^ (2 * d) + rw [abs_of_nonneg hb.1, hx] + rw [he] + have hb := positiveTruncation_energy_le μ hQ Ω H hH P hsource hs.le + calc + _ ≤ C * energyForm μ hQ T T := hsob φ + _ ≤ C * (P * s) := mul_le_mul_of_nonneg_left hb hC + _ = (C * P) * s := by ring + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/PositiveSourceTest.lean b/lean/OAI/Geometry/RCD/Sobolev/PositiveSourceTest.lean new file mode 100644 index 0000000000000000000000000000000000000000..55419a22a375ea3c9eb7606637a0f4bfa740ba36 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/PositiveSourceTest.lean @@ -0,0 +1,147 @@ +import OAI.Geometry.RCD.Sobolev.PositiveSourceTruncation +import Mathlib.MeasureTheory.Integral.IntervalIntegral.FundThmCalculus + +namespace OAI + +/-! +# The bounded nonlinear test for positive sources + +A primitive of `(1+|s|)^(-1-alpha)` is a global normal contraction and +is bounded by `1/alpha` on the positive half-line. Its actual Sobolev +composition gives the reciprocal-weight energy bound. +-/ + +open Set MeasureTheory Filter +open scoped InnerProductSpace NNReal + +noncomputable section + +namespace RegularPointCoordinates + +def positiveSourceWeight (alpha s : ℝ) : ℝ := (1 + |s|) ^ (-(1 + alpha)) + +def positiveSourceTest (alpha s : ℝ) : ℝ := ∫ r in 0..s, positiveSourceWeight alpha r + +theorem positiveSourceWeight_continuous (alpha : ℝ) : Continuous (positiveSourceWeight alpha) := by + apply (continuous_const.add continuous_abs).rpow_const + intro s + left + change 1 + |s| ≠ 0 + exact ne_of_gt (by linarith [abs_nonneg s]) + +theorem positiveSourceWeight_bounds {alpha : ℝ} (ha : 0 < alpha) (s : ℝ) : + 0 ≤ positiveSourceWeight alpha s ∧ positiveSourceWeight alpha s ≤ 1 := by + constructor + · exact Real.rpow_nonneg (by positivity) _ + · exact Real.rpow_le_one_of_one_le_of_nonpos (by linarith [abs_nonneg s]) (by linarith) + +theorem positiveSourceTest_hasDerivAt (alpha s : ℝ) : + HasDerivAt (positiveSourceTest alpha) (positiveSourceWeight alpha s) s := + intervalIntegral.integral_hasDerivAt_right + ((positiveSourceWeight_continuous alpha).intervalIntegrable 0 s) + (positiveSourceWeight_continuous alpha).aestronglyMeasurable.stronglyMeasurableAtFilter + (positiveSourceWeight_continuous alpha).continuousAt + +theorem positiveSourceTest_zero (alpha : ℝ) : positiveSourceTest alpha 0 = 0 := by + simp only [positiveSourceTest, intervalIntegral.integral_same] + +theorem positiveSourceTest_lipschitz {alpha : ℝ} (ha : 0 < alpha) : + LipschitzWith 1 (positiveSourceTest alpha) := by + apply lipschitzWith_of_nnnorm_deriv_le (fun s => (positiveSourceTest_hasDerivAt alpha s).differentiableAt) + intro s + rw [(positiveSourceTest_hasDerivAt alpha s).deriv] + have hn : ‖positiveSourceWeight alpha s‖ ≤ (1 : ℝ) := by + rw [Real.norm_eq_abs, abs_of_nonneg (positiveSourceWeight_bounds ha s).1] + exact (positiveSourceWeight_bounds ha s).2 + exact_mod_cast hn + +theorem positiveSourceTest_formula {alpha s : ℝ} (ha : 0 < alpha) (hs : 0 ≤ s) : + positiveSourceTest alpha s = (1 - (1 + s) ^ (-alpha)) / alpha := by + let F := fun r : ℝ => (1 - (1 + r) ^ (-alpha)) / alpha + have hF : ContinuousOn F (Icc 0 s) := by + apply ContinuousOn.div_const + apply continuousOn_const.sub + apply (continuousOn_const.add continuousOn_id).rpow_const + intro r hr + left + change 1 + r ≠ 0 + exact ne_of_gt (by linarith [hr.1]) + have hd (r : ℝ) (hr : r ∈ Ioo 0 s) : HasDerivAt F (positiveSourceWeight alpha r) r := by + have hp : 0 < 1 + r := by linarith [hr.1] + have hh := ((hasDerivAt_const r (1 : ℝ)).sub + (((hasDerivAt_const r (1 : ℝ)).add (hasDerivAt_id r)).rpow_const (Or.inl hp.ne') (p := -alpha))).div_const alpha + convert hh using 1 + · rfl + · simp only [positiveSourceWeight, abs_of_pos hr.1, zero_add, Pi.add_apply, id_eq] + rw [show -alpha - 1 = -(1 + alpha) by ring] + field_simp + ring + have he := intervalIntegral.integral_eq_sub_of_hasDerivAt_of_le hs hF hd + ((positiveSourceWeight_continuous alpha).intervalIntegrable 0 s) + simpa only [positiveSourceTest, F, add_zero, Real.one_rpow, sub_self, zero_div, sub_zero] using he + +theorem positiveSourceTest_bounds {alpha s : ℝ} (ha : 0 < alpha) (hs : 0 ≤ s) : + 0 ≤ positiveSourceTest alpha s ∧ positiveSourceTest alpha s ≤ alpha⁻¹ := by + constructor + · exact intervalIntegral.integral_nonneg_of_forall hs (fun r => (positiveSourceWeight_bounds ha r).1) + · rw [positiveSourceTest_formula ha hs] + calc + _ ≤ 1 / alpha := div_le_div_of_nonneg_right + (sub_le_self _ (Real.rpow_nonneg (by linarith) _)) ha.le + _ = _ := one_div _ + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +/-- The nonlinear test gives the weighted square-gradient bound, with +linear dependence on the mass `P` of the source functional. -/ +theorem positive_source_weighted_energy (Ω : Set X) + (H : SobolevSpace.dirichlet μ hQ Ω) + (hH : ∀ᵐ x ∂μ, 0 ≤ SobolevSpace.toLp μ hQ H.val x) + (P : ℝ) + (hsource : ∀ φ : SobolevSpace.dirichlet μ hQ Ω, ∀ s : ℝ, 0 ≤ s → + (∀ᵐ x ∂μ, 0 ≤ SobolevSpace.toLp μ hQ φ.val x ∧ SobolevSpace.toLp μ hQ φ.val x ≤ s) → + energyForm μ hQ H.val φ.val ≤ P * s) + {alpha : ℝ} (ha : 0 < alpha) : + Integrable (fun x => (SobolevSpace.minimalSlope μ hQ H.val x) ^ 2 / + (1 + SobolevSpace.toLp μ hQ H.val x) ^ (1 + alpha)) μ ∧ + (∫ x, (SobolevSpace.minimalSlope μ hQ H.val x) ^ 2 / + (1 + SobolevSpace.toLp μ hQ H.val x) ^ (1 + alpha) ∂μ) ≤ P / alpha := by + let hl := positiveSourceTest_lipschitz ha + let hz := positiveSourceTest_zero alpha + let T := SobolevSpace.comp μ hQ hl hz H.val + have hT : T ∈ SobolevSpace.dirichlet μ hQ Ω := by + have he : T = SobolevSpace.compContraction μ hQ hl hz H.val := by + apply Subtype.ext + rfl + rw [he] + exact SobolevSpace.compContraction_mem_dirichlet μ hQ hl hz Ω H.val H.property + have hTe : SobolevSpace.toLp μ hQ T =ᵐ[μ] + fun x => positiveSourceTest alpha (SobolevSpace.toLp μ hQ H.val x) := + hl.coeFn_compLp hz _ + have hb : energyForm μ hQ H.val T ≤ P / alpha := by + have hbound := hsource ⟨T, hT⟩ alpha⁻¹ (inv_nonneg.mpr ha.le) (by + filter_upwards [hTe, hH] with x hx h0 + rw [hx] + exact positiveSourceTest_bounds ha h0) + simpa only [div_eq_mul_inv] using hbound + have hg : localGamma μ hQ H.val T =ᵐ[μ] fun x => + (SobolevSpace.minimalSlope μ hQ H.val x) ^ 2 / + (1 + SobolevSpace.toLp μ hQ H.val x) ^ (1 + alpha) := by + filter_upwards [localGamma_comp_C1_right μ hQ H.val H.val hl hz + (positiveSourceWeight_continuous alpha) (positiveSourceTest_hasDerivAt alpha) 1 + (fun s => by rw [abs_of_nonneg (positiveSourceWeight_bounds ha s).1]; exact (positiveSourceWeight_bounds ha s).2), + localGamma_self μ hQ H.val, hH] with x hx hs h0 + rw [hx, hs] + dsimp only [positiveSourceWeight] + rw [abs_of_nonneg h0, Real.rpow_neg (by linarith)] + ring + refine ⟨(localGamma_memL1 μ hQ H.val T).congr hg, ?_⟩ + rw [← integral_congr_ae hg, integral_localGamma_eq_energyForm] + exact hb + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/PositiveSourceTruncation.lean b/lean/OAI/Geometry/RCD/Sobolev/PositiveSourceTruncation.lean new file mode 100644 index 0000000000000000000000000000000000000000..2d0fead188655345319e30e2fc7dce6698f2f854 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/PositiveSourceTruncation.lean @@ -0,0 +1,114 @@ +import OAI.Geometry.RCD.Sobolev.DirichletContractions + +namespace OAI + +/-! +# Truncation tests for the positive-source estimate + +The clipped function belongs to the genuine Dirichlet space. Locality, +including on the clipping level set, identifies its energy with the +original function's energy below the level. Thus a source mass bound +controls the truncated energy linearly in the level. +-/ + +open Set MeasureTheory Filter +open scoped InnerProductSpace NNReal + +noncomputable section + +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] + (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +/-- Positive clipping, with a nonnegative upper level. -/ +def positiveClip (t x : ℝ) : ℝ := min (max x 0) t + +theorem positiveClip_lipschitz (t : ℝ) : LipschitzWith 1 (positiveClip t) := + ((LipschitzWith.id : LipschitzWith 1 (fun x : ℝ => x)).max_const 0).min_const t + +theorem positiveClip_zero {t : ℝ} (ht : 0 ≤ t) : positiveClip t 0 = 0 := by + simp only [positiveClip, max_self, min_eq_left ht] + +/-- The actual clipped Sobolev function. -/ +def positiveTruncation (H : SobolevSpace μ hQ) (t : ℝ) (ht : 0 ≤ t) : SobolevSpace μ hQ := + SobolevSpace.compContraction μ hQ (positiveClip_lipschitz t) (positiveClip_zero ht) H + +theorem positiveTruncation_coe (H : SobolevSpace μ hQ) {t : ℝ} (ht : 0 ≤ t) : + SobolevSpace.toLp μ hQ (positiveTruncation μ hQ H t ht) =ᵐ[μ] + fun x => positiveClip t (SobolevSpace.toLp μ hQ H x) := + (positiveClip_lipschitz t).coeFn_compLp (positiveClip_zero ht) _ + +theorem positiveTruncation_mem_dirichlet {Ω : Set X} (H : SobolevSpace μ hQ) + (hH : H ∈ SobolevSpace.dirichlet μ hQ Ω) {t : ℝ} (ht : 0 ≤ t) : + positiveTruncation μ hQ H t ht ∈ SobolevSpace.dirichlet μ hQ Ω := + SobolevSpace.compContraction_mem_dirichlet μ hQ (positiveClip_lipschitz t) + (positiveClip_zero ht) Ω H hH + +theorem positiveTruncation_bounds (H : SobolevSpace μ hQ) {t : ℝ} (ht : 0 ≤ t) : + ∀ᵐ x ∂μ, 0 ≤ SobolevSpace.toLp μ hQ (positiveTruncation μ hQ H t ht) x ∧ + SobolevSpace.toLp μ hQ (positiveTruncation μ hQ H t ht) x ≤ t := by + filter_upwards [positiveTruncation_coe μ hQ H ht] with x hx + rw [hx] + exact ⟨le_min (le_max_right _ _) ht, min_le_right _ _⟩ + +variable [BorelSpace X] [ProperSpace X] + +/-- The energy density of the clipping, paired with the original function, +vanishes on and above the level and agrees below it. -/ +theorem positiveTruncation_gamma (H : SobolevSpace μ hQ) + (hH : ∀ᵐ x ∂μ, 0 ≤ SobolevSpace.toLp μ hQ H x) + {t : ℝ} (ht : 0 ≤ t) : + localGamma μ hQ H (positiveTruncation μ hQ H t ht) =ᵐ[μ] + fun x => if SobolevSpace.toLp μ hQ H x < t then localGamma μ hQ H H x else 0 := by + let T := positiveTruncation μ hQ H t ht + filter_upwards [positiveTruncation_coe μ hQ H ht, hH, + localGamma_comm μ hQ H T, localGamma_eq_on_eq μ hQ T H H, + localGamma_zero_on_level μ hQ T H t] with x hx h0 hc he hz + by_cases hlt : SobolevSpace.toLp μ hQ H x < t + · rw [ite_eq_left hlt, hc] + apply he + rw [hx, positiveClip, max_eq_left h0, min_eq_left hlt.le] + · rw [ite_eq_right hlt, hc] + apply hz + rw [hx, positiveClip, max_eq_left h0, min_eq_right (le_of_not_gt hlt)] + +/-- The two energies agree exactly, so no Cauchy--Schwarz loss occurs. -/ +theorem positiveTruncation_energy (H : SobolevSpace μ hQ) + (hH : ∀ᵐ x ∂μ, 0 ≤ SobolevSpace.toLp μ hQ H x) + {t : ℝ} (ht : 0 ≤ t) : + energyForm μ hQ (positiveTruncation μ hQ H t ht) (positiveTruncation μ hQ H t ht) = + energyForm μ hQ H (positiveTruncation μ hQ H t ht) := by + let T := positiveTruncation μ hQ H t ht + have hg : localGamma μ hQ T T =ᵐ[μ] localGamma μ hQ H T := by + filter_upwards [positiveTruncation_coe μ hQ H ht, hH, + localGamma_eq_on_eq μ hQ T H T, localGamma_zero_on_level μ hQ T T t, + positiveTruncation_gamma μ hQ H hH ht] with x hx h0 he hz hg + by_cases hlt : SobolevSpace.toLp μ hQ H x < t + · apply he + rw [hx, positiveClip, max_eq_left h0, min_eq_left hlt.le] + · rw [hg, ite_eq_right hlt] + apply hz + rw [hx, positiveClip, max_eq_left h0, min_eq_right (le_of_not_gt hlt)] + rw [← integral_localGamma_eq_energyForm, ← integral_localGamma_eq_energyForm] + exact integral_congr_ae hg + +/-- For a source of mass at most `P`, the energy of the truncation is at +most `P*t`. The hypothesis is its action on bounded nonnegative tests. -/ +theorem positiveTruncation_energy_le (Ω : Set X) (H : SobolevSpace.dirichlet μ hQ Ω) + (hH : ∀ᵐ x ∂μ, 0 ≤ SobolevSpace.toLp μ hQ H.val x) (P : ℝ) + (hsource : ∀ φ : SobolevSpace.dirichlet μ hQ Ω, ∀ s : ℝ, 0 ≤ s → + (∀ᵐ x ∂μ, 0 ≤ SobolevSpace.toLp μ hQ φ.val x ∧ SobolevSpace.toLp μ hQ φ.val x ≤ s) → + energyForm μ hQ H.val φ.val ≤ P * s) + {t : ℝ} (ht : 0 ≤ t) : + energyForm μ hQ (positiveTruncation μ hQ H.val t ht) + (positiveTruncation μ hQ H.val t ht) ≤ P * t := by + rw [positiveTruncation_energy μ hQ H.val hH ht] + exact hsource ⟨_, positiveTruncation_mem_dirichlet μ hQ H.val H.property ht⟩ t ht + (positiveTruncation_bounds μ hQ H.val ht) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/PositiveSublevelWindow.lean b/lean/OAI/Geometry/RCD/Sobolev/PositiveSublevelWindow.lean new file mode 100644 index 0000000000000000000000000000000000000000..6d6130aac5b8bd9c99ead1a4c8796444d351a022 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/PositiveSublevelWindow.lean @@ -0,0 +1,46 @@ +import Mathlib + +namespace OAI + +/-! # A positive sublevel set stays a definite distance below its endpoint -/ + +open Set Filter MeasureTheory +noncomputable section +namespace RegularPointCoordinates +variable {Ω : Type*} [MeasurableSpace Ω] + +theorem exists_smaller_sublevel_nonzero (μ : Measure Ω) (f : Ω → ℝ) {q : ℝ} + (hpos : μ {z | f z h ⟨S,hS,hn⟩ + have he : {z | f z not_lt.mpr ((le_of_not_gt h).trans hz) + exact hS (by simpa only [not_not] using ae_iff.mp he) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/PowerEnergyComparison.lean b/lean/OAI/Geometry/RCD/Sobolev/PowerEnergyComparison.lean new file mode 100644 index 0000000000000000000000000000000000000000..42b3ed261e9d5eeb260d57dfeac127e3994a25a0 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/PowerEnergyComparison.lean @@ -0,0 +1,66 @@ +import OAI.Geometry.RCD.Sobolev.SobolevPowerGammaIntegrable + +namespace OAI + +/-! # Positivity of the product energy controls the power-energy difference -/ + +open Set Filter MeasureTheory +open scoped NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) (Q : QuadraticCheegerEnergy μ) + +theorem power_energy_comparison (u v : SobolevSpace μ Q) (A B : ℝ≥0) + (hu : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ Q u x| ≤ A) + (hv : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ Q v x| ≤ B) + (hu0 : ∀ᵐ x ∂μ, 0 ≤ SobolevSpace.toLp μ Q u x) + (hv0 : ∀ᵐ x ∂μ, 0 ≤ SobolevSpace.toLp μ Q v x) (n : ℕ) : + (∫ x, (SobolevSpace.toLp μ Q u x)^(n+2)*(SobolevSpace.toLp μ Q v x)^n* + localGamma μ Q v v x ∂μ)- + (∫ x, (SobolevSpace.toLp μ Q v x)^(n+2)*(SobolevSpace.toLp μ Q u x)^n* + localGamma μ Q u u x ∂μ) ≤ + 2*((∫ x, (SobolevSpace.toLp μ Q u x)^(n+2)*(SobolevSpace.toLp μ Q v x)^n* + localGamma μ Q v v x ∂μ)+ + (∫ x, (SobolevSpace.toLp μ Q u x)^(n+1)*(SobolevSpace.toLp μ Q v x)^(n+1)* + localGamma μ Q u v x ∂μ)) := by + let w := SobolevSpace.product μ Q u v A B + have hpos : ∀ᵐ x ∂μ, + 0 ≤ (SobolevSpace.toLp μ Q u x)^(n+2)*(SobolevSpace.toLp μ Q v x)^n* + localGamma μ Q v v x+ + (SobolevSpace.toLp μ Q v x)^(n+2)*(SobolevSpace.toLp μ Q u x)^n* + localGamma μ Q u u x+ + 2*((SobolevSpace.toLp μ Q u x)^(n+1)*(SobolevSpace.toLp μ Q v x)^(n+1)* + localGamma μ Q u v x) := by + filter_upwards [localGamma_product_left μ Q u v w A B hu hv, + localGamma_product_right μ Q v u v A B hu hv, + localGamma_product_right μ Q u u v A B hu hv,localGamma_comm μ Q v u, + localGamma_self μ Q w,hu0,hv0] with x hw h₁ h₂ hs hself hu0x hv0x + change localGamma μ Q w w x = _ at hw + have he : localGamma μ Q w w x = + (SobolevSpace.toLp μ Q u x)^2*localGamma μ Q v v x+ + (SobolevSpace.toLp μ Q v x)^2*localGamma μ Q u u x+ + 2*SobolevSpace.toLp μ Q u x*SobolevSpace.toLp μ Q v x*localGamma μ Q u v x := by + rw [hw,h₁,h₂,hs] + ring + have hn := mul_nonneg (mul_nonneg (pow_nonneg hu0x n) (pow_nonneg hv0x n)) + (show 0 ≤ localGamma μ Q w w x by rw [hself]; positivity) + rw [he] at hn + convert hn using 1 + simp only [pow_add,pow_one,pow_two] + ring + have ha := sobolev_power_gamma_integrable μ Q u v v v A B hu hv (n+2) n + have hb := sobolev_power_gamma_integrable μ Q v u u u B A hv hu (n+2) n + have hc := sobolev_power_gamma_integrable μ Q u v u v A B hu hv (n+1) (n+1) + have hI := integral_nonneg_of_ae hpos + have hadd := integral_add (ha.add hb) (hc.const_mul 2) + have hab := integral_add ha hb + simp only [Pi.add_apply] at hadd hab + rw [hadd,hab,integral_const_mul] at hI + linarith only [hI] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/PowerEnergyRates.lean b/lean/OAI/Geometry/RCD/Sobolev/PowerEnergyRates.lean new file mode 100644 index 0000000000000000000000000000000000000000..f183d68521b87fe728462fe47db5e8588a062efe --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/PowerEnergyRates.lean @@ -0,0 +1,62 @@ +import OAI.Geometry.RCD.Sobolev.PowerSourceEnergyIdentity + +namespace OAI + +/-! # Normalized source rates for density powers -/ + +open Set Filter MeasureTheory +open scoped NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) (Q : QuadraticCheegerEnergy μ) + +theorem power_source_energy_rate (u v : SobolevSpace μ Q) (d e : Lp ℝ 2 μ) + (hd : IsWeakLaplacian μ Q u d) (he : IsWeakLaplacian μ Q v e) (A B : ℝ≥0) + (hu : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ Q u x| ≤ A) + (hv : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ Q v x| ≤ B) (n : ℕ) : + (∫ x, (SobolevSpace.toLp μ Q u x*SobolevSpace.toLp μ Q v x)^(n+1)* + (d x*SobolevSpace.toLp μ Q v x-SobolevSpace.toLp μ Q u x*e x) ∂μ) = + (n+1:ℝ)*((∫ x, (SobolevSpace.toLp μ Q u x)^(n+2)*(SobolevSpace.toLp μ Q v x)^n* + localGamma μ Q v v x ∂μ)- + (∫ x, (SobolevSpace.toLp μ Q v x)^(n+2)*(SobolevSpace.toLp μ Q u x)^n* + localGamma μ Q u u x ∂μ)) := by + rw [power_source_energy_identity μ Q u v d e hd he A B hu hv n] + have h₁ : (fun x => (SobolevSpace.toLp μ Q u x)^(n+2)* + ((n+1:ℝ)*(SobolevSpace.toLp μ Q v x)^n*localGamma μ Q v v x)) = + (fun x => (n+1:ℝ)*((SobolevSpace.toLp μ Q u x)^(n+2)* + (SobolevSpace.toLp μ Q v x)^n*localGamma μ Q v v x)) := by funext x; ring + have h₂ : (fun x => (SobolevSpace.toLp μ Q v x)^(n+2)* + ((n+1:ℝ)*(SobolevSpace.toLp μ Q u x)^n*localGamma μ Q u u x)) = + (fun x => (n+1:ℝ)*((SobolevSpace.toLp μ Q v x)^(n+2)* + (SobolevSpace.toLp μ Q u x)^n*localGamma μ Q u u x)) := by funext x; ring + rw [h₁,h₂,integral_const_mul,integral_const_mul] + ring + +theorem weakLaplacian_log_power_balance (u v : SobolevSpace μ Q) (e : Lp ℝ 2 μ) + (he : IsWeakLaplacian μ Q v e) (A B : ℝ≥0) + (hu : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ Q u x| ≤ A) + (hv : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ Q v x| ≤ B) (n : ℕ) : + (∫ x, (SobolevSpace.toLp μ Q v x)^(n+1)*(SobolevSpace.toLp μ Q u x)^(n+2)*e x ∂μ) = + -(n+2:ℝ)*(∫ x, (SobolevSpace.toLp μ Q u x)^(n+1)*(SobolevSpace.toLp μ Q v x)^(n+1)* + localGamma μ Q u v x ∂μ)- + (n+1:ℝ)*(∫ x, (SobolevSpace.toLp μ Q u x)^(n+2)*(SobolevSpace.toLp μ Q v x)^n* + localGamma μ Q v v x ∂μ) := by + have hh := weakLaplacian_power_product_test μ Q v u v e he A B hu hv (n+1) n + simp only [Nat.add_assoc,show (1:ℕ)+1 = 2 from rfl,Nat.cast_add,Nat.cast_one] at hh + have h₁ : (fun x => (SobolevSpace.toLp μ Q v x)^(n+1)* + (((n:ℝ)+1+1)*(SobolevSpace.toLp μ Q u x)^(n+1)*localGamma μ Q u v x)) = + (fun x => (n+2:ℝ)*((SobolevSpace.toLp μ Q u x)^(n+1)* + (SobolevSpace.toLp μ Q v x)^(n+1)*localGamma μ Q u v x)) := by funext x; ring + have h₂ : (fun x => (SobolevSpace.toLp μ Q u x)^(n+2)* + ((n+1:ℝ)*(SobolevSpace.toLp μ Q v x)^n*localGamma μ Q v v x)) = + (fun x => (n+1:ℝ)*((SobolevSpace.toLp μ Q u x)^(n+2)* + (SobolevSpace.toLp μ Q v x)^n*localGamma μ Q v v x)) := by funext x; ring + rw [h₁,h₂,integral_const_mul,integral_const_mul] at hh + linarith only [hh] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/PowerSourceEnergyIdentity.lean b/lean/OAI/Geometry/RCD/Sobolev/PowerSourceEnergyIdentity.lean new file mode 100644 index 0000000000000000000000000000000000000000..fb179ab5e6ef749e3c3c16ea9b79370f5d134662 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/PowerSourceEnergyIdentity.lean @@ -0,0 +1,42 @@ +import OAI.Geometry.RCD.Heat.HeatPowerEnergyBalance +import OAI.Geometry.RCD.Sobolev.SobolevPowerSourceIntegrable + +namespace OAI + +/-! # The power-source rate equals the diagonal energy difference -/ + +open Set Filter MeasureTheory +open scoped NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) (Q : QuadraticCheegerEnergy μ) + +theorem power_source_energy_identity (u v : SobolevSpace μ Q) (d e : Lp ℝ 2 μ) + (hd : IsWeakLaplacian μ Q u d) (he : IsWeakLaplacian μ Q v e) (A B : ℝ≥0) + (hu : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ Q u x| ≤ A) + (hv : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ Q v x| ≤ B) (n : ℕ) : + (∫ x, (SobolevSpace.toLp μ Q u x*SobolevSpace.toLp μ Q v x)^(n+1)* + (d x*SobolevSpace.toLp μ Q v x-SobolevSpace.toLp μ Q u x*e x) ∂μ) = + (∫ x, (SobolevSpace.toLp μ Q u x)^(n+2)* + ((n+1:ℝ)*(SobolevSpace.toLp μ Q v x)^n*localGamma μ Q v v x) ∂μ)- + (∫ x, (SobolevSpace.toLp μ Q v x)^(n+2)* + ((n+1:ℝ)*(SobolevSpace.toLp μ Q u x)^n*localGamma μ Q u u x) ∂μ) := by + have hdint := sobolev_power_product_source_integrable μ Q u v d A B hu hv n (n+1) + have heint := sobolev_power_product_source_integrable μ Q u v e A B hu hv (n+1) n + simp only [Nat.add_assoc,show (1:ℕ)+1 = 2 from rfl] at hdint heint + have heq : (fun x => (SobolevSpace.toLp μ Q u x*SobolevSpace.toLp μ Q v x)^(n+1)* + (d x*SobolevSpace.toLp μ Q v x-SobolevSpace.toLp μ Q u x*e x)) = + (fun x => (SobolevSpace.toLp μ Q v x)^(n+2)*(SobolevSpace.toLp μ Q u x)^(n+1)*d x- + (SobolevSpace.toLp μ Q v x)^(n+1)*(SobolevSpace.toLp μ Q u x)^(n+2)*e x) := by + funext x + rw [mul_pow,show n+2 = (n+1)+1 from rfl,pow_succ,pow_succ] + ring + rw [heq,integral_sub hdint heint] + exact weakLaplacian_power_energy_balance μ Q u v d e hd he A B hu hv n + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/ProjectedEulerIdentity.lean b/lean/OAI/Geometry/RCD/Sobolev/ProjectedEulerIdentity.lean new file mode 100644 index 0000000000000000000000000000000000000000..76a0334336240bc3d436ef7940b7beefd8b10368 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/ProjectedEulerIdentity.lean @@ -0,0 +1,115 @@ +import OAI.Geometry.RCD.Sobolev.EulerForcing +import OAI.Geometry.RCD.Harmonic.RadialLinearRepresentatives +import OAI.Geometry.RCD.Harmonic.AffineCenterBounds + +namespace OAI + +/-! # The Euler equation of the actual affine projection residual -/ + +open Set MeasureTheory +open scoped ENNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +/-- The scalar equation obtained from Poincare is an equality in the +same local L2 space as the radial derivative. -/ +theorem localRadialDerivative_eq_of_euler (Ω : Set X) + (f v η e : SobolevSpace μ hQ) {B : ℝ} + (hf : ∀ᵐ x ∂μ.restrict Ω, localGamma μ hQ f f x ≤ B) (k : ℝ) + (hη : SobolevSpace.toLp μ hQ η =ᵐ[μ.restrict Ω] fun _ => (1 : ℝ)) + (he : localGamma μ hQ f v =ᵐ[μ.restrict Ω] + fun x => SobolevSpace.toLp μ hQ v x + k + SobolevSpace.toLp μ hQ e x) : + localRadialDerivative μ hQ Ω f hf v = + SobolevSpace.restrictLp μ hQ Ω (v + k • η + e) := by + apply Lp.ext + have hr := SobolevSpace.restrictLp_coe μ hQ Ω (v + k • η + e) + filter_upwards [localRadialDerivative_representative μ hQ Ω f v hf, he, hη, hr, + ae_restrict_of_ae (Lp.coeFn_add + (SobolevSpace.toLp μ hQ v + k • SobolevSpace.toLp μ hQ η) + (SobolevSpace.toLp μ hQ e)), + ae_restrict_of_ae (Lp.coeFn_add (SobolevSpace.toLp μ hQ v) + (k • SobolevSpace.toLp μ hQ η)), + ae_restrict_of_ae (Lp.coeFn_smul k (SobolevSpace.toLp μ hQ η))] + with x hd he hη hr ha hb hc + rw [hd, he, hr, map_add, map_add, map_smul, ha] + simp only [Pi.add_apply, hb, hc, Pi.smul_apply, smul_eq_mul, hη, mul_one] + +/-- Subtracting the actual affine fit creates precisely the coefficient +b-A b, the constant k+c, and the difference of the two known errors. -/ +theorem projected_euler_identity {n : ℕ} (Ω : Set X) + (f v η ev : SobolevSpace μ hQ) {B : ℝ} + (hf : ∀ᵐ x ∂μ.restrict Ω, localGamma μ hQ f f x ≤ B) + (hη : SobolevSpace.toLp μ hQ η =ᵐ[μ.restrict Ω] fun _ => (1 : ℝ)) + (U G : Euclidean n →L[ℝ] SobolevSpace μ hQ) + (A : Euclidean n →L[ℝ] Euclidean n) (b : Euclidean n) (k c : ℝ) + (hv : localRadialDerivative μ hQ Ω f hf v = + SobolevSpace.restrictLp μ hQ Ω (v + k • η + ev)) + (hG : localRadialDerivative μ hQ Ω f hf (U b) = + SobolevSpace.restrictLp μ hQ Ω (G b)) : + let w := v - c • η - U b + let e := ev - (G b - U (A b)) + localRadialDerivative μ hQ Ω f hf w = + SobolevSpace.restrictLp μ hQ Ω (w + U (b - A b) + (k + c) • η + e) := by + dsimp only + have hηzero := localRadialDerivative_constant μ hQ Ω f η hf 1 hη + have hleft : localRadialDerivative μ hQ Ω f hf (v - c • η - U b) = + SobolevSpace.restrictLp μ hQ Ω (v + k • η + ev - G b) := by + rw [map_sub, map_sub, map_smul, hv, hG, hηzero, smul_zero, sub_zero, map_sub] + rw [hleft] + congr 1 + rw [map_sub, add_smul] + module + +omit [BorelSpace X] [ProperSpace X] in +/-- The projected error remains linear in the two original errors, +before any division by the residual norm. -/ +theorem projected_euler_error_bound {n : ℕ} (Ω : Set X) (hfin : μ Ω ≠ ∞) + (ev : SobolevSpace μ hQ) (U G : Euclidean n →L[ℝ] SobolevSpace μ hQ) + (A : Euclidean n →L[ℝ] Euclidean n) (b : Euclidean n) {E D : ℝ} + (hev : ‖normalizeLocalL2 μ Ω hfin (SobolevSpace.restrictLp μ hQ Ω ev)‖ ≤ E) + (hfit : ‖normalizeLocalL2 μ Ω hfin + (SobolevSpace.restrictLp μ hQ Ω (G b - U (A b)))‖ ≤ D * ‖b‖) : + ‖normalizeLocalL2 μ Ω hfin + (SobolevSpace.restrictLp μ hQ Ω (ev - (G b - U (A b))))‖ ≤ E + D * ‖b‖ := by + rw [map_sub] + simp only [normalizeLocalL2, smul_sub] at hev hfit ⊢ + exact (norm_sub_le _ _).trans (add_le_add hev hfit) + +/-- The forcing coefficients are controlled by the small inner residual +and its radial derivative, rather than by the full size of the projection. -/ +theorem projected_euler_coefficient_bound {n : ℕ} (Ω : Set X) (hfin : μ Ω ≠ ∞) + (f w η e : SobolevSpace μ hQ) {B : ℝ} + (hf : ∀ᵐ x ∂μ.restrict Ω, localGamma μ hQ f f x ≤ B) + (hη : SobolevSpace.toLp μ hQ η =ᵐ[μ.restrict Ω] fun _ => (1 : ℝ)) + (u : Fin n → SobolevSpace μ hQ) (N : Euclidean n ≃L[ℝ] Euclidean n) + (ell : Euclidean n) (k : ℝ) {H α Cg Cw E : ℝ} (hH : 0 ≤ H) + (hbound : ∀ c a, |c| + ‖N.symm a‖ ≤ H * + ‖normalizeLocalL2 μ Ω hfin (affineCoordinateMap μ hQ u Ω hfin (c, a))‖) + (heuler : localRadialDerivative μ hQ Ω f hf w = SobolevSpace.restrictLp μ hQ Ω + (w + sobolevColumnMap μ hQ u ell + k • η + e)) + (hD : ‖normalizeLocalL2 μ Ω hfin (localRadialDerivative μ hQ Ω f hf w)‖ ≤ Cg * α) + (hw : ‖normalizeLocalL2 μ Ω hfin (SobolevSpace.restrictLp μ hQ Ω w)‖ ≤ Cw * α) + (he : ‖normalizeLocalL2 μ Ω hfin (SobolevSpace.restrictLp μ hQ Ω e)‖ ≤ E) : + |k| + ‖N.symm ell‖ ≤ H * ((Cg + Cw) * α + E) := by + have hid : affineCoordinateMap μ hQ u Ω hfin (k, ell) = + localRadialDerivative μ hQ Ω f hf w - SobolevSpace.restrictLp μ hQ Ω w - + SobolevSpace.restrictLp μ hQ Ω e := by + rw [heuler, affineCoordinateMap_apply, map_add, map_add, map_add, map_smul, + restrictLp_eq_one_of_representative μ hQ η Ω hfin hη] + abel + apply (hbound k ell).trans + apply mul_le_mul_of_nonneg_left _ hH + rw [hid] + simp only [normalizeLocalL2, smul_sub] at hD hw he ⊢ + apply le_trans ((norm_sub_le _ _).trans (add_le_add (norm_sub_le _ _) le_rfl)) + exact (add_le_add (add_le_add hD hw) he).trans_eq (by ring) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/PublishedInputDischarge.lean b/lean/OAI/Geometry/RCD/Sobolev/PublishedInputDischarge.lean new file mode 100644 index 0000000000000000000000000000000000000000..9f256bef06f36234885aeea6176ca57362507706 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/PublishedInputDischarge.lean @@ -0,0 +1,91 @@ +import OAI.Geometry.RCD.Coordinates.HausdorffMeasureRegularity +import OAI.Geometry.RCD.Sobolev.DistanceLaplacian +import OAI.Geometry.RCD.Coordinates.CanonicalCoordinateHeatInput +import OAI.Geometry.RCD.Metric.ModelVolumeComparison +import OAI.Geometry.RCD.Coordinates.ConditionalMain +import OAI.Geometry.RCD.Sobolev.HarmonicBochnerFromHessian +import OAI.Geometry.RCD.Coordinates.Proper +import OAI.Geometry.RCD.Sobolev.HarmonicGradientFromPoisson +import OAI.Geometry.RCD.Sobolev.GoodCutoffFromResolvent +import OAI.Geometry.RCD.Metric.PointedCompactness +import OAI.Geometry.RCD.Coordinates.GevreyCutoffConstruction +import OAI.Geometry.RCD.Transport.TransportPoincare +import OAI.Geometry.RCD.Coordinates.MeasuredRescalingFromCoordinates +import OAI.Geometry.RCD.Metric.VolumeDensity +import OAI.Geometry.RCD.Sobolev.DirichletSobolevConstruction +import OAI.Geometry.RCD.Harmonic.HarmonicMeanConstruction +import OAI.Geometry.RCD.Heat.KernelGaussianDifference +import OAI.Geometry.RCD.Sobolev.PoissonGradientConstruction +import OAI.Geometry.RCD.Sobolev.EuclideanHarmonicHessianConstruction +import OAI.Geometry.RCD.Heat.CanonicalKernelConstruction +import OAI.Geometry.RCD.Heat.CanonicalGaussianDifference + +namespace OAI + +/-! # Local analytic estimates for regular-point coordinates + +Hausdorff measure is regular by local finiteness on proper separable spaces. +Finite-span Poisson Hessian estimates imply the harmonic Bochner calculus. +Heat resolvents construct cutoffs, and bounded-compression transport yields +local Poincare and zero-boundary Sobolev inequalities. These estimates give +harmonic mean-value bounds and Poisson gradient estimates at every radius. +The heat semigroup has a continuous kernel with Gaussian bounds. Compact-test +integration by parts and radial mean kernels give Euclidean harmonic Hessian +estimates. Sharp annular contraction yields model Bishop--Gromov comparison, +and compressed radial transport yields the squared-distance Laplacian estimate. +-/ + +open Set Metric MeasureTheory + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + +/-- The chart conclusion follows from local analytic estimates and +pointed rescaling compactness. Finite nets and completed distance matrices +give the latter; volume comparison and completeness give properness. -/ +theorem regular_coordinates_of_published_inputs {K : ℝ} {n : ℕ} + (hn : 2 ≤ n) + (hX : NoncollapsedRCD K n X) : + let _ := hX.properSpace hn + ∀ {p : X} + (_hregular : IsRegular n p) + (_hvolume : EuclideanRescalingVolumeConvergence (hausdorff n X) n p + (euclideanUnitVolume n)) + (_haction : LocalPoissonHessianActionInput hX) + (_hproduct : LocalPoissonGradientProductInput hX) + (_hpoissonCompact : LocalPoissonHarmonicCompactnessInput hX) + (_hhessian : LocalPoissonHessianInput hX) + (_hinitial : LocalInitialSplittingInput hX) (_htrans : LocalTransformationInput hX) + (_hsplit : LocalFlatSplittingInput hX) (_hrigidity : LocalVolumeRigidityInput hX) + (_hharmonic : LocalHarmonicMomentCompactnessInput hX) + (_hmetricmeasure : LocalMeasuredCoordinateInput hX), + HasOpenBilipschitzChart n p := by + let := hX.properSpace hn + dsimp only + intro p hregular hvolume + haction hproduct hpoissonCompact hhessian hinitial htrans + hsplit hrigidity hharmonic hmetricmeasure + let := hX.hausdorff_regular + let := hX.separable + let := locallyFinite_of_finiteOnBounded (hausdorff n X) hX.finiteOnBounded + obtain ⟨a, ha, hBG⟩ := hX.exists_model_ballVolumeComparison hn + have hk := hX.canonicalHeatKernel_isContinuousHeatKernel hn p + have hg := hX.canonicalHeatKernel_coordinateBounds hn p + have hpoisson := hX.poissonGradientInput hk hg hhessian + have heuclidean := euclideanHarmonicHessianInput (n := n) (by omega) + exact every_regular_point_has_bilipschitz_coordinates_of_flat_coordinate_heat_bounds hn hX ha (hX.pointedRescalingPrecompactness hn p) hregular + hvolume (hmetricmeasure.euclideanMeasuredRescalingConvergence hn p) hBG + (hX.smallScaleVolumeUpper hn ha) hX.localSquaredDistanceInput hX.localDirichletSobolevInput hpoisson haction hproduct + (hX.localMeanPoincareInput hn) + hpoissonCompact hhessian hX.harmonicMeanValueInput hinitial htrans hsplit hrigidity + hhessian.harmonicBochnerInput hX.goodCutoffInput hharmonic + (harmonicGradientInput_of_poisson_and_mean hX hpoisson hX.harmonicMeanValueInput) heuclidean hmetricmeasure + hk hg (hX.canonicalHeatKernel_gaussian_difference hn p) (euclideanGevreyCutoffInput n) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/QuadraticBochnerCutoffLimit.lean b/lean/OAI/Geometry/RCD/Sobolev/QuadraticBochnerCutoffLimit.lean new file mode 100644 index 0000000000000000000000000000000000000000..fa688723c0f664828c4dbb908cf7117ee54a3cd6 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/QuadraticBochnerCutoffLimit.lean @@ -0,0 +1,101 @@ +import OAI.Geometry.RCD.Sobolev.CutoffBochnerConvergence + +namespace OAI + +/-! # The exact cutoff Bochner limit for a quadratic potential -/ + +open Set Filter MeasureTheory Metric +open scoped Topology NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) [IsFiniteMeasureOnCompacts μ] (Q : QuadraticCheegerEnergy μ) + +omit [IsFiniteMeasureOnCompacts μ] in +theorem GoodLaplacianCutoff.quadratic_limit_terms + {p : X} {r C b : ℝ} (χ : GoodLaplacianCutoff μ Q p r C) + (hb : 2*r < b) (u : SobolevSpace μ Q) (d : Lp ℝ 2 μ) + (hu : IsWeakLaplacian μ Q u d) (n : ℝ) + (hd : d =ᵐ[μ.restrict (ball p b)] fun _ => n) + (he : localGamma μ Q u u =ᵐ[μ.restrict (ball p b)] + fun x => 2*SobolevSpace.toLp μ Q u x) : + (1/2:ℝ)*weightedGamma μ Q χ.laplacian u u+ + (∫ x, χ.weight x*(d x)^2 ∂μ)+weightedGamma μ Q d u χ.sobolev = + n*(∫ x, χ.weight x ∂μ) := by + have hout (x : X) (hx : x ∉ ball p b) : 2*r < dist p x := by + have hh : b ≤ dist p x := by simpa only [mem_ball,dist_comm,not_lt] using hx + exact hb.trans_le hh + have hi : inner ℝ d (SobolevSpace.toLp μ Q χ.sobolev)=n*(∫ x, χ.weight x ∂μ) := by + rw [L2.inner_def,← integral_const_mul] + apply integral_congr_ae + filter_upwards [(ae_restrict_iff' measurableSet_ball).mp hd,χ.representative] with x hx hχ + simp only [Real.inner_apply,hχ] + by_cases hm : x∈ball p b + · rw [hx hm] + · rw [χ.zero x (hout x hm)] + ring + have henergy : energyForm μ Q u χ.sobolev= -n*(∫ x, χ.weight x ∂μ) := by + rw [hu,hi] + ring + have hfirst : weightedGamma μ Q χ.laplacian u u = -2*energyForm μ Q u χ.sobolev := by + have hprod : (fun x => χ.laplacian x*localGamma μ Q u u x) =ᵐ[μ] + fun x => 2*(χ.laplacian x*SobolevSpace.toLp μ Q u x) := by + filter_upwards [(ae_restrict_iff' measurableSet_ball).mp he,χ.laplacian_locality] with x hx hloc + by_cases hm : x∈ball p b + · rw [hx hm] + ring + · rw [hloc (Or.inr (hout x hm))] + ring + change (∫ x, χ.laplacian x*localGamma μ Q u u x ∂μ)=_ + rw [integral_congr_ae hprod,integral_const_mul,energyForm_comm,χ.weak_laplacian,L2.inner_def] + simp only [Real.inner_apply] + ring + have hsquare : (∫ x, χ.weight x*(d x)^2 ∂μ)=n^2*(∫ x, χ.weight x ∂μ) := by + rw [← integral_const_mul] + apply integral_congr_ae + filter_upwards [(ae_restrict_iff' measurableSet_ball).mp hd] with x hx + by_cases hm : x∈ball p b + · rw [hx hm] + ring + · rw [χ.zero x (hout x hm)] + ring + have hcross : weightedGamma μ Q d u χ.sobolev=n*energyForm μ Q u χ.sobolev := by + rw [← integral_localGamma_eq_energyForm,← integral_const_mul] + apply integral_congr_ae + filter_upwards [(ae_restrict_iff' measurableSet_ball).mp hd,χ.representative, + localGamma_comm μ Q u χ.sobolev,localGamma_zero_on_level μ Q χ.sobolev u 0] + with x hx hχ hcomm hlevel + change d x*localGamma μ Q u χ.sobolev x=n*localGamma μ Q u χ.sobolev x + by_cases hm : x∈ball p b + · rw [hx hm] + · rw [hcomm,hlevel (hχ.trans (χ.zero x (hout x hm)))] + ring + rw [hfirst,hsquare,hcross,henergy] + ring + +theorem GoodLaplacianCutoff.quadratic_bochner_source_tendsto + {p : X} {r C b : ℝ} (χ : GoodLaplacianCutoff μ Q p r C) + (hC : 0 ≤ C) (hb : 2*r < b) + (u : SobolevSpace μ Q) (d : Lp ℝ 2 μ) (hu : IsWeakLaplacian μ Q u d) (n : ℝ) + (hd : d =ᵐ[μ.restrict (ball p b)] fun _ => n) + (he : localGamma μ Q u u =ᵐ[μ.restrict (ball p b)] + fun x => 2*SobolevSpace.toLp μ Q u x) + (us ds Gs : ℕ → SobolevSpace μ Q) + (hds : ∀ k, IsWeakLaplacian μ Q (us k) (SobolevSpace.toLp μ Q (ds k))) + (hGs : ∀ k, SobolevSpace.toLp μ Q (Gs k) =ᵐ[μ] localGamma μ Q (us k) (us k)) + (L : ℝ≥0) + (hus : ∀ k, ∀ᵐ x ∂μ, SobolevSpace.minimalSlope μ Q (us k) x ≤ L) + (huL : ∀ᵐ x ∂μ, SobolevSpace.minimalSlope μ Q u x ≤ L) + (hconv : Tendsto us atTop (𝓝 u)) + (hdconv : Tendsto (fun k => SobolevSpace.toLp μ Q (ds k)) atTop (𝓝 d)) : + Tendsto (fun k => -(1/2:ℝ)*energyForm μ Q (Gs k) χ.sobolev- + weightedGamma μ Q (SobolevSpace.toLp μ Q χ.sobolev) (us k) (ds k)) atTop + (𝓝 (n*(∫ x, χ.weight x ∂μ))) := by + have hlim := χ.bochner_source_tendsto μ Q hC u d us ds Gs hds hGs L hus huL hconv hdconv + rwa [χ.quadratic_limit_terms μ Q hb u d hu n hd he] at hlim + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/QuadraticCutoffIdentity.lean b/lean/OAI/Geometry/RCD/Sobolev/QuadraticCutoffIdentity.lean new file mode 100644 index 0000000000000000000000000000000000000000..e49672d5939f66954120583f7907e6f9bbc73f67 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/QuadraticCutoffIdentity.lean @@ -0,0 +1,96 @@ +import OAI.Geometry.RCD.Harmonic.HarmonicQuadraticPotential + +namespace OAI + +/-! # Compact cutoff tests for the harmonic quadratic model -/ + +open Set MeasureTheory +open scoped NNReal BigOperators + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +omit [BorelSpace X] in +private theorem bounded_product_bound (f g : SobolevSpace μ hQ) (C D : ℝ≥0) + (hf : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ f x| ≤ C) + (hg : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ g x| ≤ D) : + ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ (SobolevSpace.product μ hQ f g C D) x| ≤ + (C * D : ℝ≥0) := by + filter_upwards [SobolevSpace.product_coe μ hQ f g C D hf hg, hf, hg] with x hx hfx hgx + rw [hx, abs_mul] + exact mul_le_mul hfx hgx (abs_nonneg _) C.coe_nonneg + +variable [ProperSpace X] + +/-- Testing the quadratic model against an actual cutoff times a bounded +Sobolev function is legitimate in every harmonic coordinate equation. -/ +theorem coordinateQuadratic_cutoff_energy {n : ℕ} {Ω : Set X} + (u : Fin n → SobolevSpace μ hQ) (C D E L : ℝ≥0) + (hu : ∀ j, IsSobolevHarmonicOn μ hQ Ω (u j)) + (hub : ∀ j, ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ (u j) x| ≤ C) + (c w : SobolevSpace μ hQ) (χ : X → ℝ) + (hχ : LipschitzWith L χ) (hcpt : HasCompactSupport χ) + (hbound : ∀ x, |χ x| ≤ E) (hnonneg : ∀ x, 0 ≤ χ x) + (hsupp : tsupport χ ⊆ Ω) (hcrep : SobolevSpace.toLp μ hQ c =ᵐ[μ] χ) + (hw : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ w x| ≤ D) : + energyForm μ hQ (coordinateQuadratic μ hQ u C) (SobolevSpace.product μ hQ c w E D) = + -(∫ x, SobolevSpace.toLp μ hQ (SobolevSpace.product μ hQ c w E D) x * + (∑ j, localGamma μ hQ (u j) (u j) x) ∂μ) := by + have hc : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ c x| ≤ E := by + filter_upwards [hcrep] with x hx + rw [hx] + exact hbound x + let φ := SobolevSpace.product μ hQ c w E D + have hφ := bounded_product_bound μ hQ c w E D hc hw + apply coordinateQuadratic_energy μ hQ u C (E * D) φ hu hub hφ + intro j + let t := SobolevSpace.product μ hQ (u j) w C D + let tχ := SobolevSpace.cutoffCLM μ hQ hχ hcpt hbound hnonneg t + have heq : SobolevSpace.product μ hQ (u j) φ C (E * D) = tχ := by + apply Subtype.ext + apply Lp.ext + filter_upwards [SobolevSpace.product_coe μ hQ (u j) φ C (E * D) (hub j) hφ, + SobolevSpace.product_coe μ hQ c w E D hc hw, hcrep, + SobolevSpace.product_coe μ hQ (u j) w C D (hub j) hw, + SobolevSpace.cutoffCLM_coe μ hQ hχ hcpt hbound hnonneg t] with x hp hφx hcx htx hcut + change SobolevSpace.toLp μ hQ (SobolevSpace.product μ hQ (u j) φ C (E * D)) x = + SobolevSpace.toLp μ hQ tχ x + rw [hp, hφx, hcx, hcut, htx] + ring + rw [heq] + exact SobolevSpace.cutoffCLM_mem_dirichlet μ hQ hχ hcpt hbound hnonneg hsupp t + +/-- The exact cross-term identity used in qualitative convergence of the +distance gradient. The quadratic model's source is the actual Gram trace. -/ +theorem coordinateQuadratic_cutoff_cross {n : ℕ} {Ω : Set X} + (u : Fin n → SobolevSpace μ hQ) (C D E L : ℝ≥0) + (hu : ∀ j, IsSobolevHarmonicOn μ hQ Ω (u j)) + (hub : ∀ j, ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ (u j) x| ≤ C) + (c w : SobolevSpace μ hQ) (χ : X → ℝ) + (hχ : LipschitzWith L χ) (hcpt : HasCompactSupport χ) + (hbound : ∀ x, |χ x| ≤ E) (hnonneg : ∀ x, 0 ≤ χ x) + (hsupp : tsupport χ ⊆ Ω) (hcrep : SobolevSpace.toLp μ hQ c =ᵐ[μ] χ) + (hw : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ w x| ≤ D) : + (∫ x, SobolevSpace.toLp μ hQ c x * + localGamma μ hQ w (coordinateQuadratic μ hQ u C) x ∂μ) = + -(∫ x, SobolevSpace.toLp μ hQ (SobolevSpace.product μ hQ c w E D) x * + (∑ j, localGamma μ hQ (u j) (u j) x) ∂μ) - + ∫ x, SobolevSpace.toLp μ hQ w x * localGamma μ hQ c (coordinateQuadratic μ hQ u C) x ∂μ := by + have hc : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ c x| ≤ E := by + filter_upwards [hcrep] with x hx + rw [hx] + exact hbound x + have he := coordinateQuadratic_cutoff_energy μ hQ u C D E L hu hub c w χ + hχ hcpt hbound hnonneg hsupp hcrep hw + rw [energyForm_comm] at he + rw [energy_bounded_product μ hQ c w (coordinateQuadratic μ hQ u C) E D hc hw] at he + linarith + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/QuadraticEnergyLimit.lean b/lean/OAI/Geometry/RCD/Sobolev/QuadraticEnergyLimit.lean new file mode 100644 index 0000000000000000000000000000000000000000..2b3a770a9119673d72392ddb64ac6ecb8fa338c7 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/QuadraticEnergyLimit.lean @@ -0,0 +1,33 @@ +import Mathlib.Topology.MetricSpace.Pseudo.Basic +import Mathlib.Tactic + +namespace OAI + +/-! # Polarized energy convergence from sharp diagonal upper bounds + +The lower bound for each fixed linear combination forces the mixed entry +of the quadratic forms to converge. Only the combinations +1 and -1 are +needed once both diagonal upper bounds are sharp. +-/ + +open Filter +open scoped Topology +namespace RegularPointCoordinates + +theorem cross_tendsto_of_quadratic_lower {E F C : ℕ → ℝ} {a b c : ℝ} + (hE : ∀ δ : ℝ, 0<δ → ∀ᶠ k in atTop, E k≤a+δ) + (hF : ∀ δ : ℝ, 0<δ → ∀ᶠ k in atTop, F k≤b+δ) + (hlower : ∀ t δ : ℝ, 0<δ → ∀ᶠ k in atTop, + a+2*t*c+t^2*b-δ≤E k+2*t*C k+t^2*F k) : + Tendsto C atTop (𝓝 c) := by + apply Metric.tendsto_nhds.mpr + intro ε hε + have hδ : 0<ε/4 := by positivity + filter_upwards [hE (ε/4) hδ,hF (ε/4) hδ, + hlower 1 (ε/4) hδ,hlower (-1) (ε/4) hδ] with k he hf hp hm + rw [Real.dist_eq,abs_lt] + constructor <;> nlinarith + +end RegularPointCoordinates + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/QuadraticGradientComparison.lean b/lean/OAI/Geometry/RCD/Sobolev/QuadraticGradientComparison.lean new file mode 100644 index 0000000000000000000000000000000000000000..eaf06a05b63ae7b128f5e8e729be0250aa51517c --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/QuadraticGradientComparison.lean @@ -0,0 +1,93 @@ +import OAI.Geometry.RCD.Sobolev.QuadraticCutoffIdentity +import OAI.Geometry.RCD.Harmonic.QuadraticGramError + +namespace OAI + +/-! # The exact cutoff energy identity for the distance-model difference -/ + +open Set MeasureTheory +open scoped NNReal BigOperators + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +omit [ProperSpace X] in +private theorem weighted_gamma_integrable (c f g : SobolevSpace μ hQ) (C : ℝ≥0) + (hc : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ c x| ≤ C) : + Integrable (fun x => SobolevSpace.toLp μ hQ c x * localGamma μ hQ f g x) μ := + (localGamma_memL1 μ hQ f g).bdd_mul (Lp.aestronglyMeasurable (SobolevSpace.toLp μ hQ c)) + (by simpa only [Real.norm_eq_abs] using hc) + +private theorem gamma_sub_right (a b d : SobolevSpace μ hQ) : + localGamma μ hQ a (b - d) =ᵐ[μ] + fun x => localGamma μ hQ a b x - localGamma μ hQ a d x := by + filter_upwards [localGamma_comm μ hQ a (b - d), localGamma_sub_left μ hQ b d a, + localGamma_comm μ hQ b a, localGamma_comm μ hQ d a] with x h₁ h₂ h₃ h₄ + rw [h₁, h₂, h₃, h₄] + +/-- Polarization keeps the signed cross term until after integration. -/ +theorem weighted_difference_energy (c q H : SobolevSpace μ hQ) (C : ℝ≥0) + (hc : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ c x| ≤ C) : + (∫ x, SobolevSpace.toLp μ hQ c x * localGamma μ hQ (q - H) (q - H) x ∂μ) = + (∫ x, SobolevSpace.toLp μ hQ c x * localGamma μ hQ q q x ∂μ) - + (∫ x, SobolevSpace.toLp μ hQ c x * localGamma μ hQ H H x ∂μ) - + 2 * ∫ x, SobolevSpace.toLp μ hQ c x * localGamma μ hQ (q - H) H x ∂μ := by + have hp : (fun x => SobolevSpace.toLp μ hQ c x * localGamma μ hQ (q - H) (q - H) x) =ᵐ[μ] + fun x => SobolevSpace.toLp μ hQ c x * localGamma μ hQ q q x - + SobolevSpace.toLp μ hQ c x * localGamma μ hQ H H x - + 2 * (SobolevSpace.toLp μ hQ c x * localGamma μ hQ (q - H) H x) := by + filter_upwards [localGamma_sub_left μ hQ q H (q - H), + gamma_sub_right μ hQ q q H, gamma_sub_right μ hQ H q H, + localGamma_sub_left μ hQ q H H, localGamma_comm μ hQ H q] with x h₁ h₂ h₃ h₄ hsym + rw [h₁, h₂, h₃, h₄, hsym] + ring + rw [integral_congr_ae hp] + calc + _ = (∫ x, SobolevSpace.toLp μ hQ c x * localGamma μ hQ q q x - + SobolevSpace.toLp μ hQ c x * localGamma μ hQ H H x ∂μ) - + ∫ x, 2 * (SobolevSpace.toLp μ hQ c x * localGamma μ hQ (q - H) H x) ∂μ := + integral_sub ((weighted_gamma_integrable μ hQ c q q C hc).sub + (weighted_gamma_integrable μ hQ c H H C hc)) + ((weighted_gamma_integrable μ hQ c (q - H) H C hc).const_mul 2) + _ = _ := by rw [integral_sub (weighted_gamma_integrable μ hQ c q q C hc) + (weighted_gamma_integrable μ hQ c H H C hc), integral_const_mul] + +/-- The gradient error between squared distance and the quadratic +coordinate model is expressed using value errors and the actual Gram +trace. This is the integration-by-parts step in qualitative convergence. -/ +theorem coordinateQuadratic_difference_energy {n : ℕ} {Ω : Set X} + (u : Fin n → SobolevSpace μ hQ) (C D E L : ℝ≥0) + (hu : ∀ j, IsSobolevHarmonicOn μ hQ Ω (u j)) + (hub : ∀ j, ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ (u j) x| ≤ C) + (c q : SobolevSpace μ hQ) (χ : X → ℝ) + (hχ : LipschitzWith L χ) (hcpt : HasCompactSupport χ) + (hbound : ∀ x, |χ x| ≤ E) (hnonneg : ∀ x, 0 ≤ χ x) + (hsupp : tsupport χ ⊆ Ω) (hcrep : SobolevSpace.toLp μ hQ c =ᵐ[μ] χ) + (hw : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ (q - coordinateQuadratic μ hQ u C) x| ≤ D) : + let H := coordinateQuadratic μ hQ u C + let w := q - H + (∫ x, SobolevSpace.toLp μ hQ c x * localGamma μ hQ w w x ∂μ) = + (∫ x, SobolevSpace.toLp μ hQ c x * localGamma μ hQ q q x ∂μ) - + (∫ x, SobolevSpace.toLp μ hQ c x * localGamma μ hQ H H x ∂μ) + + 2 * (∫ x, SobolevSpace.toLp μ hQ (SobolevSpace.product μ hQ c w E D) x * + (∑ j, localGamma μ hQ (u j) (u j) x) ∂μ) + + 2 * ∫ x, SobolevSpace.toLp μ hQ w x * localGamma μ hQ c H x ∂μ := by + have hc : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ c x| ≤ E := by + filter_upwards [hcrep] with x hx + rw [hx] + exact hbound x + have hid := weighted_difference_energy μ hQ c q (coordinateQuadratic μ hQ u C) E hc + have hcross := coordinateQuadratic_cutoff_cross μ hQ u C D E L hu hub + c (q - coordinateQuadratic μ hQ u C) χ hχ hcpt hbound hnonneg hsupp hcrep hw + rw [hcross] at hid + dsimp only + linarith + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/QuadraticLocalEnergy.lean b/lean/OAI/Geometry/RCD/Sobolev/QuadraticLocalEnergy.lean new file mode 100644 index 0000000000000000000000000000000000000000..15d80f7bcc1d21093a12e9960a23f16b02b5bd5a --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/QuadraticLocalEnergy.lean @@ -0,0 +1,116 @@ +import OAI.Geometry.RCD.Sobolev.QuadraticGradientComparison + +namespace OAI + +/-! # Local form of the distance-model energy identity -/ + +open Set MeasureTheory +open scoped NNReal BigOperators + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +omit [BorelSpace X] [ProperSpace X] in +private theorem cutoff_integral_local {Ω : Set X} (c : SobolevSpace μ hQ) + (χ f : X → ℝ) (hsupp : tsupport χ ⊆ Ω) + (hcrep : SobolevSpace.toLp μ hQ c =ᵐ[μ] χ) : + (∫ x in Ω, SobolevSpace.toLp μ hQ c x * f x ∂μ) = + ∫ x, SobolevSpace.toLp μ hQ c x * f x ∂μ := by + apply setIntegral_eq_integral_of_ae_compl_eq_zero + filter_upwards [hcrep] with x hx hn + have hz : χ x = 0 := by + by_contra h + exact hn (hsupp (subset_tsupport χ h)) + rw [hx, hz, zero_mul] + +private theorem cutoff_gradient_integral_local {Ω : Set X} (c H : SobolevSpace μ hQ) + (χ f : X → ℝ) (hsupp : tsupport χ ⊆ Ω) + (hcrep : SobolevSpace.toLp μ hQ c =ᵐ[μ] χ) : + (∫ x in Ω, f x * localGamma μ hQ c H x ∂μ) = + ∫ x, f x * localGamma μ hQ c H x ∂μ := by + apply setIntegral_eq_integral_of_ae_compl_eq_zero + filter_upwards [hcrep, localGamma_zero_on_level μ hQ c H 0] with x hx hlevel hn + have hz : χ x = 0 := by + by_contra h + exact hn (hsupp (subset_tsupport χ h)) + rw [hlevel (hx.trans hz), mul_zero] + +/-- All terms in the cutoff identity are supported in the same working +region. In particular the value error only needs to be small there. -/ +theorem coordinateQuadratic_local_difference_energy {n : ℕ} {Ω : Set X} + (u : Fin n → SobolevSpace μ hQ) (C D E L : ℝ≥0) + (hu : ∀ j, IsSobolevHarmonicOn μ hQ Ω (u j)) + (hub : ∀ j, ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ (u j) x| ≤ C) + (c q : SobolevSpace μ hQ) (χ : X → ℝ) + (hχ : LipschitzWith L χ) (hcpt : HasCompactSupport χ) + (hbound : ∀ x, |χ x| ≤ E) (hnonneg : ∀ x, 0 ≤ χ x) + (hsupp : tsupport χ ⊆ Ω) (hcrep : SobolevSpace.toLp μ hQ c =ᵐ[μ] χ) + (hw : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ (q - coordinateQuadratic μ hQ u C) x| ≤ D) : + let H := coordinateQuadratic μ hQ u C + let w := q - H + (∫ x in Ω, SobolevSpace.toLp μ hQ c x * localGamma μ hQ w w x ∂μ) = + ∫ x in Ω, SobolevSpace.toLp μ hQ c x * + (localGamma μ hQ q q x - localGamma μ hQ H H x) + + 2 * (SobolevSpace.toLp μ hQ c x * SobolevSpace.toLp μ hQ w x * + (∑ j, localGamma μ hQ (u j) (u j) x)) + + 2 * (SobolevSpace.toLp μ hQ w x * localGamma μ hQ c H x) ∂μ := by + dsimp only + let H := coordinateQuadratic μ hQ u C + let w := q - H + have hc : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ c x| ≤ E := by + filter_upwards [hcrep] with x hx + rw [hx] + exact hbound x + have hcw : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ c x * SobolevSpace.toLp μ hQ w x| ≤ + (E : ℝ) * D := by + filter_upwards [hc, hw] with x hx hy + rw [abs_mul] + exact mul_le_mul hx hy (abs_nonneg _) E.coe_nonneg + have hiq := (localGamma_memL1 μ hQ q q).bdd_mul + (Lp.aestronglyMeasurable (SobolevSpace.toLp μ hQ c)) + (by simpa only [Real.norm_eq_abs] using hc) + have hiH := (localGamma_memL1 μ hQ H H).bdd_mul + (Lp.aestronglyMeasurable (SobolevSpace.toLp μ hQ c)) + (by simpa only [Real.norm_eq_abs] using hc) + have hit := (integrable_finsetSum Finset.univ (fun j _ => localGamma_memL1 μ hQ (u j) (u j))).bdd_mul + ((Lp.aestronglyMeasurable (SobolevSpace.toLp μ hQ c)).mul + (Lp.aestronglyMeasurable (SobolevSpace.toLp μ hQ w))) + (by simpa only [Real.norm_eq_abs, Pi.mul_apply] using hcw) + have hic := (localGamma_memL1 μ hQ c H).bdd_mul + (Lp.aestronglyMeasurable (SobolevSpace.toLp μ hQ w)) + (by simpa only [Real.norm_eq_abs] using hw) + have hid := coordinateQuadratic_difference_energy μ hQ u C D E L hu hub + c q χ hχ hcpt hbound hnonneg hsupp hcrep hw + dsimp only at hid + have hp := SobolevSpace.product_coe μ hQ c w E D hc hw + have hprod : (∫ x, SobolevSpace.toLp μ hQ + (SobolevSpace.product μ hQ c w E D) x * (∑ j, localGamma μ hQ (u j) (u j) x) ∂μ) = + ∫ x, SobolevSpace.toLp μ hQ c x * + (SobolevSpace.toLp μ hQ w x * (∑ j, localGamma μ hQ (u j) (u j) x)) ∂μ := by + apply integral_congr_ae + filter_upwards [hp] with x hx + rw [hx, mul_assoc] + rw [hprod] at hid + rw [cutoff_integral_local μ hQ c χ _ hsupp hcrep] + simp_rw [mul_sub] + have hsum := integral_add (μ := μ.restrict Ω) ((hiq.integrableOn.sub hiH.integrableOn).add + (hit.integrableOn.const_mul 2)) (hic.integrableOn.const_mul 2) + have hsum' := integral_add (μ := μ.restrict Ω) (hiq.integrableOn.sub hiH.integrableOn) (hit.integrableOn.const_mul 2) + have hdiff := integral_sub (μ := μ.restrict Ω) hiq.integrableOn hiH.integrableOn + simp only [Pi.add_apply, Pi.sub_apply, Pi.mul_apply] at hsum hsum' hdiff + rw [hsum, hsum', hdiff, integral_const_mul, integral_const_mul] + rw [cutoff_integral_local μ hQ c χ _ hsupp hcrep, + cutoff_integral_local μ hQ c χ _ hsupp hcrep, + integral_congr_ae (Filter.Eventually.of_forall (fun x => mul_assoc _ _ _)), + cutoff_integral_local μ hQ c χ _ hsupp hcrep, + cutoff_gradient_integral_local μ hQ c H χ _ hsupp hcrep] + exact hid + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/QuadraticValueGradientBound.lean b/lean/OAI/Geometry/RCD/Sobolev/QuadraticValueGradientBound.lean new file mode 100644 index 0000000000000000000000000000000000000000..11816870f0c754765d9efd1f3115798e24c17a1b --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/QuadraticValueGradientBound.lean @@ -0,0 +1,148 @@ +import OAI.Geometry.RCD.Sobolev.QuadraticLocalEnergy + +namespace OAI + +/-! # Turning value and Gram errors into a local gradient error -/ + +open Set MeasureTheory +open scoped NNReal ENNReal BigOperators + +noncomputable section +namespace RegularPointCoordinates + +private theorem cutoff_error_algebra {c w a b d G δ B T A : ℝ} + (hc₀ : 0 ≤ c) (hc₁ : c ≤ 1) (hδ : 0 ≤ δ) + (hA : 0 ≤ A) (hG : 0 ≤ G) (hw : |w| ≤ δ) (ha : a ≤ 2 * w + A * G) + (hb₀ : 0 ≤ b) (hb : b ≤ B) (hd : |d| ≤ T) : + c * a + 2 * (c * w * b) + 2 * (w * d) ≤ + 2 * δ * (1 + B + T) + A * G := by + have hw' : w ≤ δ := (le_abs_self w).trans hw + have hcw : c * w ≤ δ := (mul_le_mul_of_nonneg_left hw' hc₀).trans + (by nlinarith) + have ha' : c * a ≤ 2 * δ + A * G := by + have h₁ := mul_le_mul_of_nonneg_left ha hc₀ + have h₂ := mul_le_mul_of_nonneg_right hc₁ (mul_nonneg hA hG) + nlinarith + have hb' : c * w * b ≤ δ * B := + (mul_le_mul_of_nonneg_right hcw hb₀).trans (mul_le_mul_of_nonneg_left hb hδ) + have hd' : w * d ≤ δ * T := by + calc + _ ≤ |w * d| := le_abs_self _ + _ = |w| * |d| := abs_mul _ _ + _ ≤ δ * T := mul_le_mul hw hd (abs_nonneg _) hδ + nlinarith + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +/-- The exact distance eikonal identity and the harmonic quadratic model +bound the local gradient error by its value error and the Gram error. +The constants B and T bound the actual trace and cutoff cross gradient. -/ +theorem coordinateQuadratic_value_gradient_bound {n : ℕ} {Ω : Set X} + (hfin : μ Ω ≠ ∞) + (u : Fin n → SobolevSpace μ hQ) (C D L : ℝ≥0) + (hu : ∀ j, IsSobolevHarmonicOn μ hQ Ω (u j)) + (hub : ∀ j, ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ (u j) x| ≤ C) + (c q : SobolevSpace μ hQ) (χ : X → ℝ) + (hχ : LipschitzWith L χ) (hcpt : HasCompactSupport χ) + (hbound : ∀ x, |χ x| ≤ 1) (hnonneg : ∀ x, 0 ≤ χ x) + (hsupp : tsupport χ ⊆ Ω) (hcrep : SobolevSpace.toLp μ hQ c =ᵐ[μ] χ) + (hw : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ (q - coordinateQuadratic μ hQ u C) x| ≤ D) + {δ B T : ℝ} (hδ : 0 ≤ δ) + (hsmall : ∀ᵐ x ∂μ.restrict Ω, + |SobolevSpace.toLp μ hQ (q - coordinateQuadratic μ hQ u C) x| ≤ δ) + (heik : ∀ᵐ x ∂μ.restrict Ω, localGamma μ hQ q q x = 2 * SobolevSpace.toLp μ hQ q x) + (htrace : ∀ᵐ x ∂μ.restrict Ω, (∑ j, localGamma μ hQ (u j) (u j) x) ≤ B) + (hcut : ∀ᵐ x ∂μ.restrict Ω, + |localGamma μ hQ c (coordinateQuadratic μ hQ u C) x| ≤ T) : + let H := coordinateQuadratic μ hQ u C + (∫ x in Ω, SobolevSpace.toLp μ hQ c x * localGamma μ hQ (q - H) (q - H) x ∂μ) ≤ + 2 * δ * (1 + B + T) * μ.real Ω + (C : ℝ) ^ 2 * + ∫ x in Ω, ∑ i, ∑ j, |localGamma μ hQ (u j) (u i) x - if j = i then 1 else 0| ∂μ := by + dsimp only + let H := coordinateQuadratic μ hQ u C + let w := q - H + let G : X → ℝ := fun x => ∑ i, ∑ j, + |localGamma μ hQ (u j) (u i) x - if j = i then 1 else 0| + let F : X → ℝ := fun x => SobolevSpace.toLp μ hQ c x * + (localGamma μ hQ q q x - localGamma μ hQ H H x) + + 2 * (SobolevSpace.toLp μ hQ c x * SobolevSpace.toLp μ hQ w x * + (∑ j, localGamma μ hQ (u j) (u j) x)) + + 2 * (SobolevSpace.toLp μ hQ w x * localGamma μ hQ c H x) + have hG : Integrable G (μ.restrict Ω) := by + apply integrable_finsetSum + intro i _ + apply integrable_finsetSum + intro j _ + exact ((localGamma_memL1 μ hQ (u j) (u i)).integrableOn.sub + (integrableOn_const hfin)).abs + have hc : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ c x| ≤ (1 : ℝ≥0) := by + filter_upwards [hcrep] with x hx + rw [hx] + exact hbound x + have hiw : ∀ᵐ x ∂μ, + |SobolevSpace.toLp μ hQ c x * SobolevSpace.toLp μ hQ w x| ≤ (D : ℝ) := by + filter_upwards [hc, hw] with x hx hy + rw [abs_mul] + simpa only [NNReal.coe_one, one_mul] using mul_le_mul hx hy (abs_nonneg _) zero_le_one + have hFi : Integrable F (μ.restrict Ω) := by + have hi₁ := ((localGamma_memL1 μ hQ q q).sub (localGamma_memL1 μ hQ H H)).bdd_mul + (Lp.aestronglyMeasurable (SobolevSpace.toLp μ hQ c)) + (by simpa only [Real.norm_eq_abs] using hc) + have hi₂ := (integrable_finsetSum Finset.univ (fun j _ => localGamma_memL1 μ hQ (u j) (u j))).bdd_mul + ((Lp.aestronglyMeasurable (SobolevSpace.toLp μ hQ c)).mul + (Lp.aestronglyMeasurable (SobolevSpace.toLp μ hQ w))) + (by simpa only [Real.norm_eq_abs, Pi.mul_apply] using hiw) + have hi₃ := (localGamma_memL1 μ hQ c H).bdd_mul + (Lp.aestronglyMeasurable (SobolevSpace.toLp μ hQ w)) + (by simpa only [Real.norm_eq_abs] using hw) + exact ((hi₁.add (hi₂.const_mul 2)).add (hi₃.const_mul 2)).integrableOn + have hself := (Filter.eventually_all_finset (Finset.univ : Finset (Fin n))).mpr + (fun j _ => localGamma_self μ hQ (u j)) + have hpoint : ∀ᵐ x ∂μ.restrict Ω, F x ≤ 2 * δ * (1 + B + T) + (C : ℝ) ^ 2 * G x := by + filter_upwards [hsmall, heik, htrace, hcut, ae_restrict_of_ae hcrep, + ae_restrict_of_ae (coordinateQuadratic_energy_error μ hQ u C hub), + ae_restrict_of_ae (Lp.coeFn_sub (SobolevSpace.toLp μ hQ q) (SobolevSpace.toLp μ hQ H)), + ae_restrict_of_ae hself] with x hsmallx heikx htracex hcutx hcpx hgramx hwx hselfx + have hvalue : SobolevSpace.toLp μ hQ w x = + SobolevSpace.toLp μ hQ q x - SobolevSpace.toLp μ hQ H x := hwx + have hΓ : localGamma μ hQ q q x - localGamma μ hQ H H x ≤ + 2 * SobolevSpace.toLp μ hQ w x + (C : ℝ) ^ 2 * G x := by + have hl := (neg_le_abs (localGamma μ hQ H H x - 2 * SobolevSpace.toLp μ hQ H x)).trans hgramx + rw [heikx] + dsimp only [G] at * + linarith + apply cutoff_error_algebra (c := SobolevSpace.toLp μ hQ c x) + (w := SobolevSpace.toLp μ hQ w x) (a := localGamma μ hQ q q x - localGamma μ hQ H H x) + (b := ∑ j, localGamma μ hQ (u j) (u j) x) (d := localGamma μ hQ c H x) + (G := G x) (A := (C : ℝ) ^ 2) + · rw [hcpx]; exact hnonneg x + · rw [hcpx]; exact (le_abs_self _).trans (hbound x) + · exact hδ + · positivity + · exact Finset.sum_nonneg fun i _ => Finset.sum_nonneg fun j _ => abs_nonneg _ + · exact hsmallx + · exact hΓ + · apply Finset.sum_nonneg + intro j hj + rw [hselfx j hj] + positivity + · exact htracex + · exact hcutx + have hiConst : Integrable (fun _ : X => 2 * δ * (1 + B + T)) (μ.restrict Ω) := + integrableOn_const hfin + have hmono := integral_mono_ae hFi (hiConst.add (hG.const_mul ((C : ℝ) ^ 2))) hpoint + have hsum := integral_add hiConst (hG.const_mul ((C : ℝ) ^ 2)) + simp only [Pi.add_apply] at hmono + rw [hsum, integral_const, integral_const_mul] at hmono + rw [coordinateQuadratic_local_difference_energy μ hQ u C D 1 L hu hub c q χ + hχ hcpt hbound hnonneg hsupp hcrep hw] + change (∫ x in Ω, F x ∂μ) ≤ _ + simpa only [Measure.real, Measure.restrict_apply_univ, smul_eq_mul, + G, mul_comm (μ Ω).toReal] using hmono + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/RCDPoissonEnergySubsolution.lean b/lean/OAI/Geometry/RCD/Sobolev/RCDPoissonEnergySubsolution.lean new file mode 100644 index 0000000000000000000000000000000000000000..7b15fac67ae6ccd7cde5b432a41a3a0d3abdd6ac --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/RCDPoissonEnergySubsolution.lean @@ -0,0 +1,42 @@ +import OAI.Geometry.RCD.Sobolev.PoissonEnergySubsolution +import OAI.Geometry.RCD.Sobolev.ScalarBochnerConstruction +import OAI.Geometry.RCD.Sobolev.PoissonHessianFromScalar + +namespace OAI + +/-! # The local energy subsolution from the proved RCD Bochner estimate -/ + +open Set Metric Filter MeasureTheory +open scoped NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem NoncollapsedRCD.poisson_energy_subsolution {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) [(hausdorff n X).Regular] (hn : 2≤n) + (p : X) {r : ℝ} (hr : 0 (1 : ℝ)) + (hchi : SobolevSpace.toLp μ hQ chi =ᵐ[μ.restrict Ω] fun _ => (1 : ℝ)) : + let f := g - centeredAffineSobolev μ hQ u eta z b + let f' := g - centeredAffineSobolev μ hQ u chi z b + (SobolevSpace.restrictLp μ hQ Ω f = SobolevSpace.restrictLp μ hQ Ω f') ∧ + (∫ x in Ω, localGamma μ hQ f f x ∂μ) = ∫ x in Ω, localGamma μ hQ f' f' x ∂μ := by + dsimp only + have heq : SobolevSpace.restrictLp μ hQ Ω (g - centeredAffineSobolev μ hQ u eta z b) = + SobolevSpace.restrictLp μ hQ Ω (g - centeredAffineSobolev μ hQ u chi z b) := by + rw [map_sub, map_sub, centered_affine_restrict_cutoff_eq μ hQ u z b Ω hfin eta chi heta hchi] + refine ⟨heq, ?_⟩ + have hrep : SobolevSpace.toLp μ hQ (g - centeredAffineSobolev μ hQ u eta z b) =ᵐ[μ.restrict Ω] + SobolevSpace.toLp μ hQ (g - centeredAffineSobolev μ hQ u chi z b) := by + filter_upwards [SobolevSpace.restrictLp_coe μ hQ Ω (g - centeredAffineSobolev μ hQ u eta z b), + SobolevSpace.restrictLp_coe μ hQ Ω (g - centeredAffineSobolev μ hQ u chi z b)] with x hx hy + exact hx.symm.trans ((congrArg (fun h : Lp ℝ 2 (μ.restrict Ω) => h x) heq).trans hy) + exact integral_congr_ae (localGamma_pair_congr_ae μ hQ hrep hrep) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/RadialCutoffEnergyIdentity.lean b/lean/OAI/Geometry/RCD/Sobolev/RadialCutoffEnergyIdentity.lean new file mode 100644 index 0000000000000000000000000000000000000000..e4c5af154984de11dd0be70a8580db0be34d9c7a --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/RadialCutoffEnergyIdentity.lean @@ -0,0 +1,78 @@ +import OAI.Geometry.RCD.Sobolev.RadialCutoffEnergyTransfer + +namespace OAI + +/-! # Exact energy normalization for a physical interior cutoff -/ + +open Set Metric Filter MeasureTheory +open scoped Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + +omit [BorelSpace X] in +theorem nested_cutoff_integral_region (μ : Measure X) (p : X) + {a b R r : ℝ} (hab : a nestedBallCutoff p (a*r) (b*r) x + let θ := fun x => euclideanNestedCutoff n hab (V x) + have hi : IntegrableOn (fun x => (χ x)^2*localGamma μ hX.quadratic w w x) + (ball p (S*r)) μ := by + apply (localGamma_memL1 μ hX.quadratic w w).restrict.bdd_mul + (((nestedBallCutoff_lipschitz p (mul_lt_mul_of_pos_right hab hr)).continuous.aestronglyMeasurable).pow 2) + exact Eventually.of_forall fun x => by + have hh := nestedBallCutoff_bounds p (a*r) (b*r) x + change ‖(χ x)^2‖≤(1:ℝ) + rw [Real.norm_eq_abs,abs_of_nonneg (sq_nonneg _)] + dsimp only [χ] + nlinarith + have hj : IntegrableOn (fun x => (θ x)^2*localGamma μ hX.quadratic w w x) + (ball p (S*r)) μ := by + apply (localGamma_memL1 μ hX.quadratic w w).restrict.bdd_mul + ((((euclideanNestedCutoff n hab).continuous.measurable.comp hV.measurable).aestronglyMeasurable).pow 2) + exact Eventually.of_forall fun x => by + have hh := nestedBallCutoff_bounds (0:Euclidean n) a b (V x) + change ‖(θ x)^2‖≤(1:ℝ) + rw [Real.norm_eq_abs,abs_of_nonneg (sq_nonneg _)] + change 0≤θ x ∧ θ x≤1 at hh + nlinarith + have he := nested_cutoff_integral_region μ p hab hbR hr (localGamma μ hX.quadratic w w) + have he' := nested_cutoff_integral_region μ p hab (hbR.trans hRS) hr (localGamma μ hX.quadratic w w) + rw [he,← he'] + have hsub := integral_sub hi hj + have heq : (fun x => ((χ x)^2-(θ x)^2)*localGamma μ hX.quadratic w w x)= + fun x => (χ x)^2*localGamma μ hX.quadratic w w x-(θ x)^2*localGamma μ hX.quadratic w w x := by + funext x + ring + change _=(_)+∫ x in ball p (S*r), ((χ x)^2-(θ x)^2)*localGamma μ hX.quadratic w w x ∂μ + rw [heq,hsub] + ring + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/RadialCutoffEnergyTransfer.lean b/lean/OAI/Geometry/RCD/Sobolev/RadialCutoffEnergyTransfer.lean new file mode 100644 index 0000000000000000000000000000000000000000..eeb12318957ed6733a41b516f0a645e3835468dd --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/RadialCutoffEnergyTransfer.lean @@ -0,0 +1,85 @@ +import OAI.Geometry.RCD.Sobolev.MeasuredRadialCutoffSupport +import OAI.Geometry.RCD.Coordinates.NormalizedUniformMean +import OAI.Geometry.RCD.Sobolev.HarmonicScaledEnergy + +namespace OAI + +/-! # Replacing a physical radial cutoff by its Euclidean image weight + +Only an interior gradient bound is used. Both cutoffs vanish outside that +interior ball once the measured-approximation error is small. +-/ + +open Set Metric Filter MeasureTheory +open scoped Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + +theorem NoncollapsedRCD.radial_cutoff_energy_error_tendsto {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) {S a b R M : ℝ} (hS : 0 r k^2*((hausdorff n X).real (ball (p k) (S*r k)))⁻¹* + ∫ x in ball (p k) (S*r k), + ((nestedBallCutoff (p k) (a*r k) (b*r k) x)^2-(euclideanNestedCutoff n hab (V k x))^2)* + localGamma (hausdorff n X) hX.quadratic (w k) (w k) x ∂hausdorff n X) + atTop (𝓝 0) := by + let μ := hausdorff n X + let U := fun k => ball (p k) (S*r k) + let z := fun k x => (nestedBallCutoff (p k) (a*r k) (b*r k) x)^2- + (euclideanNestedCutoff n hab (V k x))^2 + let F := fun k x => z k x*(r k^2*localGamma μ hX.quadratic (w k) (w k) x) + let : ∀ k, IsFiniteMeasure (μ.restrict (U k)) := fun k => ⟨by + simpa only [Measure.restrict_apply_univ] using hX.finiteOnBounded (U k) isBounded_ball⟩ + have hmass (k : ℕ) : 0<(μ.restrict (U k)).real univ := by + simp only [Measure.real,Measure.restrict_apply_univ] + exact ENNReal.toReal_pos (hX.fullSupport _ _ (mul_pos hS (hr k))).ne' + (hX.finiteOnBounded _ isBounded_ball).ne + have hrate : Tendsto (fun k => 4*ε k/(b-a)*M) atTop (𝓝 0) := by + convert ((hεlim.const_mul 4).div_const (b-a)).mul_const M using 1 + simp + have hsmall : ∀ᶠ k in atTop, 2*ε k μ.restrict (U k)) hmass F (by + intro δ hδ + filter_upwards [hw,hsmall,hrate.eventually (Iio_mem_nhds hδ)] with k hwk hsk hrk + have hcond := (ae_restrict_iff' measurableSet_ball).mp hwk + filter_upwards [ae_restrict_of_ae hcond,ae_restrict_mem measurableSet_ball, + ae_restrict_of_ae (localGamma_self μ hX.quadratic (w k))] with x hwx hx hself + change x∈ball (p k) (S*r k) at hx + by_cases hxR : x∈ball (p k) (R*r k) + · have hγn : 0≤r k^2*localGamma μ hX.quadratic (w k) (w k) x := + mul_nonneg (sq_nonneg _) (hself ▸ sq_nonneg _) + have hz := measured_radial_cutoff_square_error (hr k) hS.le hab (hV k).metric hx.le + have hh := mul_le_mul hz (hwx hxR) hγn (by + have hε : 0≤ε k := dist_nonneg.trans (hV k).metric.1 + exact div_nonneg (mul_nonneg (by norm_num) hε) (sub_pos.mpr hab).le) + change |z k x*(r k^2*localGamma μ hX.quadratic (w k) (w k) x)|≤δ + rw [abs_mul,abs_of_nonneg hγn] + exact hh.trans hrk.le + · have hz := measured_radial_cutoff_zero_outside (hr k) hS.le hab hsk (hV k).metric hx.le hxR + simp only [F,z,hz.1,hz.2,zero_pow (by decide : 2≠0),sub_self,zero_mul,abs_zero] + exact hδ.le) + convert hmean using 1 + funext k + simp only [Measure.real,Measure.restrict_apply_univ] + have he : F k=fun x => r k^2*(z k x*localGamma μ hX.quadratic (w k) (w k) x) := by + funext x + dsimp only [F] + ring + rw [he,integral_const_mul] + dsimp only [z,U,μ] + ring + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/RadialCutoffIdentity.lean b/lean/OAI/Geometry/RCD/Sobolev/RadialCutoffIdentity.lean new file mode 100644 index 0000000000000000000000000000000000000000..7eb0d874bca50e73ec646bb2b04ae8ba2c514ba9 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/RadialCutoffIdentity.lean @@ -0,0 +1,163 @@ +import OAI.Geometry.RCD.Metric.InwardDistance +import OAI.Geometry.RCD.Coordinates.VolumeProfileRegularity + +namespace OAI + +/-! +# Exact volume-drop identity for the radial test + +The weak squared-distance pairing is integrated against the explicit radial +power test. Its combination with `n` times the test is exactly the difference +of the two normalized ball indicators. Positive source mass will therefore +be controlled by the actual volume drop, including its sign. +-/ + +open Set Metric MeasureTheory Filter +open scoped NNReal + +noncomputable section + +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] + +/-- The continuous representative of the Sobolev radial test. -/ +def radialPowerRep (n r R : ℝ) (c : X) (x : X) : ℝ := + radialPowerPrimitive n r R (positiveClip (R - r) (inwardDistance c R x)) + +omit [MeasurableSpace X] [BorelSpace X] [ProperSpace X] in + theorem radialPowerRep_lipschitz {n r R : ℝ} (hn : 0 < n) (hr : 0 < r) (c : X) : + LipschitzWith ⟨r ^ (-(n + 1)), Real.rpow_nonneg hr.le _⟩ (radialPowerRep n r R c) := by + change LipschitzWith _ + (radialPowerPrimitive n r R ∘ positiveClip (R - r) ∘ inwardDistance c R) + apply ((radialPowerPrimitive_lipschitz (R := R) hn hr).comp + ((positiveClip_lipschitz (R - r)).comp (inwardDistance_lipschitz c R))).weaken + change r ^ (-(n + 1)) * (1 * 1) ≤ r ^ (-(n + 1)) + simp only [mul_one, le_refl] + +omit [MeasurableSpace X] [BorelSpace X] in + theorem radialPowerRep_compact {n r R : ℝ} (hrR : r ≤ R) (c : X) : + HasCompactSupport (radialPowerRep n r R c) := by + exact ((inwardDistance_compact c R).comp_left (positiveClip_zero (sub_nonneg.mpr hrR))).comp_left + (radialPowerPrimitive_zero n r R) + +omit [MeasurableSpace X] [BorelSpace X] [ProperSpace X] in + theorem radialPowerRep_zero {n r R : ℝ} (hrR : r ≤ R) (c x : X) (hx : R ≤ dist c x) : + radialPowerRep n r R c x = 0 := by + simp only [radialPowerRep, inwardDistance, max_eq_right (sub_nonpos.mpr hx), + positiveClip_zero (sub_nonneg.mpr hrR), radialPowerPrimitive_zero] + +omit [MeasurableSpace X] [BorelSpace X] [ProperSpace X] in + theorem radialPowerRep_inner {n r R : ℝ} (hn : 0 < n) (hr : 0 < r) (hrR : r ≤ R) + (c x : X) (hx : dist c x ≤ r) : + radialPowerRep n r R c x = (r ^ (-n) - R ^ (-n)) / n := by + have hd : 0 ≤ R - dist c x := sub_nonneg.mpr (hx.trans hrR) + simp only [radialPowerRep, inwardDistance, positiveClip, + max_eq_left hd, min_eq_right (by linarith : R - r ≤ R - dist c x)] + simpa only [sub_sub_cancel] using radialPowerPrimitive_formula hn hr (sub_nonneg.mpr hrR) le_rfl + +omit [MeasurableSpace X] [BorelSpace X] [ProperSpace X] in + theorem radialPowerRep_annulus {n r R : ℝ} (hn : 0 < n) (hr : 0 < r) + (c x : X) (hrx : r ≤ dist c x) (hxR : dist c x ≤ R) : + radialPowerRep n r R c x = ((dist c x) ^ (-n) - R ^ (-n)) / n := by + have hd := sub_nonneg.mpr hxR + simp only [radialPowerRep, inwardDistance, positiveClip, + max_eq_left hd, min_eq_left (by linarith : R - dist c x ≤ R - r)] + simpa only [sub_sub_cancel] using radialPowerPrimitive_formula hn hr hd + (by linarith : R - dist c x ≤ R - r) + +variable (μ : Measure X) [IsFiniteMeasureOnCompacts μ] (hQ : QuadraticCheegerEnergy μ) + +theorem radialPowerTest_inward_coe {n r R : ℝ} (hn : 0 < n) (hr : 0 < r) + (hrR : r ≤ R) (c : X) : + SobolevSpace.toLp μ hQ (radialPowerTest μ hQ (inwardSobolev μ hQ c R) hn hr hrR) =ᵐ[μ] + radialPowerRep n r R c := by + filter_upwards [radialPowerTest_coe μ hQ (inwardSobolev μ hQ c R) hn hr hrR, + inwardSobolev_coe μ hQ c R] with x ht hu + rw [ht, hu] + rfl + +/-- The pointwise cancellation on the annulus, and constancy on the inner ball. -/ +theorem radialPowerTest_indicator_identity {n r R : ℝ} (hn : 0 < n) (hr : 0 < r) + (hrR : r < R) (c : X) (q : SobolevSpace μ hQ) + (hpair : ∀ᵐ x ∂μ, x ∈ ball c R → + localGamma μ hQ q (inwardSobolev μ hQ c R) x = -dist c x) + (hsphere : μ (sphere c r) = 0) : + (fun x => n * radialPowerRep n r R c x + + localGamma μ hQ q (radialPowerTest μ hQ (inwardSobolev μ hQ c R) hn hr hrR.le) x) =ᵐ[μ] + fun x => (ball c r).indicator (fun _ => r ^ (-n)) x - + (ball c R).indicator (fun _ => R ^ (-n)) x := by + have hR : 0 ≤ R := (hr.trans hrR).le + have hnot : ∀ᵐ x ∂μ, x ∉ sphere c r := by + exact measure_eq_zero_iff_ae_notMem.mp hsphere + filter_upwards [radialPowerTest_gamma μ hQ q (inwardSobolev μ hQ c R) + ((inwardSobolev_bounds μ hQ c hR).mono (fun _ hx => hx.1)) hn hr hrR.le, + inwardSobolev_coe μ hQ c R, hpair, hnot, + localGamma_comm μ hQ q (inwardSobolev μ hQ c R), + localGamma_zero_on_level μ hQ (inwardSobolev μ hQ c R) q 0] with x hg hu hp hnosp hc hz + have hne : dist c x ≠ r := by simpa only [mem_sphere, dist_comm] using hnosp + by_cases hxR : dist c x < R + · have hmemR : x ∈ ball c R := by simpa only [mem_ball, dist_comm] using hxR + have hi : inwardDistance c R x = R - dist c x := by + exact max_eq_left (sub_nonneg.mpr hxR.le) + rw [hg, hu, hi] + by_cases hxr : dist c x < r + · have hmemr : x ∈ ball c r := by simpa only [mem_ball, dist_comm] using hxr + rw [ite_eq_right (by linarith), radialPowerRep_inner hn hr hrR.le c x hxr.le, + indicator_of_mem hmemr, indicator_of_mem hmemR] + field_simp + ring + · have hrl : r < dist c x := lt_of_le_of_ne (le_of_not_gt hxr) hne.symm + have hnmemr : x ∉ ball c r := by simpa only [mem_ball, dist_comm, not_lt] using hrl.le + rw [ite_eq_left (by linarith), hp hmemR, + radialPowerRep_annulus hn hr c x hrl.le hxR.le, + indicator_of_notMem hnmemr, indicator_of_mem hmemR] + have hw : radialPowerWeight n r R (R - dist c x) * dist c x = (dist c x) ^ (-n) := by + have hid : R - (R - dist c x) = dist c x := by ring + rw [radialPowerWeight, hid, max_eq_right hrl.le] + calc + _ = (dist c x) ^ (-(n + 1)) * (dist c x) ^ (1 : ℝ) := by rw [Real.rpow_one] + _ = (dist c x) ^ (-(n + 1) + 1) := (Real.rpow_add (hr.trans hrl) _ _).symm + _ = _ := by congr 1; ring + rw [mul_neg, hw] + field_simp + ring + · have hRx := le_of_not_gt hxR + have hnmemR : x ∉ ball c R := by simpa only [mem_ball, dist_comm, not_lt] using hRx + have hnmemr : x ∉ ball c r := by + simpa only [mem_ball, dist_comm, not_lt] using hrR.le.trans hRx + have hi : inwardDistance c R x = 0 := max_eq_right (sub_nonpos.mpr hRx) + have hz' : localGamma μ hQ q (inwardSobolev μ hQ c R) x = 0 := hc.trans (hz (hu.trans hi)) + rw [hg, hu, hi, ite_eq_left (sub_pos.mpr hrR), hz', mul_zero, + radialPowerRep_zero hrR.le c x hRx, indicator_of_notMem hnmemr, indicator_of_notMem hnmemR] + ring + +/-- Integrating the cancellation gives the actual normalized volume drop. -/ +theorem radialPowerTest_volume_identity {n r R : ℝ} (hn : 0 < n) (hr : 0 < r) + (hrR : r < R) (c : X) (q : SobolevSpace μ hQ) + (hpair : ∀ᵐ x ∂μ, x ∈ ball c R → + localGamma μ hQ q (inwardSobolev μ hQ c R) x = -dist c x) + (hsphere : μ (sphere c r) = 0) : + n * (∫ x, radialPowerRep n r R c x ∂μ) + + energyForm μ hQ q (radialPowerTest μ hQ (inwardSobolev μ hQ c R) hn hr hrR.le) = + r ^ (-n) * μ.real (ball c r) - R ^ (-n) * μ.real (ball c R) := by + have hi : Integrable (radialPowerRep n r R c) μ := + (radialPowerRep_lipschitz hn hr c).continuous.integrable_of_hasCompactSupport + (radialPowerRep_compact hrR.le c) + have hγ := localGamma_memL1 μ hQ q + (radialPowerTest μ hQ (inwardSobolev μ hQ c R) hn hr hrR.le) + have he := integral_congr_ae (radialPowerTest_indicator_identity μ hQ hn hr hrR c q hpair hsphere) + rw [integral_add (hi.const_mul n) hγ, integral_const_mul, + integral_localGamma_eq_energyForm] at he + rw [integral_sub ((integrableOn_const (measure_ball_lt_top.ne)).integrable_indicator isOpen_ball.measurableSet) + ((integrableOn_const (measure_ball_lt_top.ne)).integrable_indicator isOpen_ball.measurableSet), + integral_indicator_const _ isOpen_ball.measurableSet, + integral_indicator_const _ isOpen_ball.measurableSet, smul_eq_mul, smul_eq_mul] at he + simpa only [mul_comm] using he + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/RadialCutoffMass.lean b/lean/OAI/Geometry/RCD/Sobolev/RadialCutoffMass.lean new file mode 100644 index 0000000000000000000000000000000000000000..fab8e825d03668f70ffaf16d7054946d421f74d3 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/RadialCutoffMass.lean @@ -0,0 +1,118 @@ +import OAI.Geometry.RCD.Sobolev.RadialCutoffIdentity + +namespace OAI + +/-! +# Source mass from the squared-distance weak identity + +Gigli (2015), Corollary 5.15, equation (5.29), supplies the local positive +Laplacian defect of squared distance. Applying that defect to the explicit +radial test gives this volume-drop bound directly. The only calculus premise +is the actual radial pairing, obtained from the distance eikonal identity; +no mass bound or radial distribution identity is assumed. +-/ + +open Set Metric MeasureTheory +open scoped NNReal + +noncomputable section + +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] + +theorem radialPowerRep_bounds {n r R : ℝ} (hn : 0 < n) (hr : 0 < r) + (hrR : r ≤ R) (c x : X) : + 0 ≤ radialPowerRep n r R c x ∧ + radialPowerRep n r R c x ≤ (r ^ (-n) - R ^ (-n)) / n := by + have hm : Monotone (radialPowerPrimitive n r R) := + monotone_of_hasDerivAt_nonneg (fun s => radialPowerPrimitive_hasDerivAt n R s hr) + (fun s => (radialPowerWeight_bounds hn hr s).1) + have ht0 : 0 ≤ positiveClip (R - r) (inwardDistance c R x) := + le_min (le_max_right _ _) (sub_nonneg.mpr hrR) + have htt : positiveClip (R - r) (inwardDistance c R x) ≤ R - r := min_le_right _ _ + constructor + · change 0 ≤ radialPowerPrimitive n r R (positiveClip (R - r) (inwardDistance c R x)) + simpa only [radialPowerPrimitive_zero] using hm ht0 + · have he := radialPowerPrimitive_formula hn hr (sub_nonneg.mpr hrR) le_rfl + rw [sub_sub_cancel] at he + exact (hm htt).trans_eq he + +variable [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) [IsFiniteMeasureOnCompacts μ] (hQ : QuadraticCheegerEnergy μ) + +omit [MeasurableSpace X] [BorelSpace X] [ProperSpace X] in +/-- The radial test has support strictly inside any larger working ball. -/ +theorem radialPowerRep_tsupport {n r R T : ℝ} (hrR : r ≤ R) (hRT : R < T) (c : X) : + tsupport (radialPowerRep n r R c) ⊆ ball c T := by + have hs : tsupport (radialPowerRep n r R c) ⊆ closedBall c R := by + apply closure_minimal _ isClosed_closedBall + intro x hx + by_contra hnot + apply hx + apply radialPowerRep_zero hrR + exact (lt_of_not_ge (show ¬ dist c x ≤ R by simpa only [mem_closedBall, dist_comm] using hnot)).le + exact hs.trans (closedBall_subset_ball hRT) + +/-- The positive squared-distance Laplacian defect has an annular volume +budget, with an explicit coefficient and curvature term. -/ +theorem radial_source_cutoff_mass_le {n r R T curvature : ℝ} + (hn : 0 < n) (hr : 0 < r) (hrR : r < R) (hRT : R < T) + (hcurvature : 0 ≤ curvature) (c : X) (q : SobolevSpace μ hQ) + (σ : Measure X) [IsFiniteMeasure σ] + (hdefect : ∀ (ψ : SobolevSpace μ hQ) (v : X → ℝ) (C : ℝ≥0), + LipschitzWith C v → HasCompactSupport v → tsupport v ⊆ ball c T → + SobolevSpace.toLp μ hQ ψ =ᵐ[μ] v → + energyForm μ hQ q ψ + (n + curvature) * (∫ x, v x ∂μ) = ∫ x, v x ∂σ) + (hpair : ∀ᵐ x ∂μ, x ∈ ball c R → + localGamma μ hQ q (inwardSobolev μ hQ c R) x = -dist c x) + (hsphere : μ (sphere c r) = 0) : + ((r ^ (-n) - R ^ (-n)) / n) * σ.real (ball c r) ≤ + r ^ (-n) * μ.real (ball c r) - R ^ (-n) * μ.real (ball c R) + + curvature * ((r ^ (-n) - R ^ (-n)) / n) * μ.real (ball c R) := by + let v := radialPowerRep n r R c + let H := (r ^ (-n) - R ^ (-n)) / n + have hv := radialPowerRep_lipschitz (R := R) hn hr c + have hvc := radialPowerRep_compact (n := n) hrR.le c + have hiμ : Integrable v μ := hv.continuous.integrable_of_hasCompactSupport hvc + have hiσ : Integrable v σ := hv.continuous.integrable_of_hasCompactSupport hvc + have hlow : H * σ.real (ball c r) ≤ ∫ x, v x ∂σ := by + have h := integral_mono + ((integrableOn_const (measure_ne_top σ _)).integrable_indicator isOpen_ball.measurableSet) + hiσ (fun x => show (ball c r).indicator (fun _ => H) x ≤ v x from ?_) + · simpa only [integral_indicator_const _ isOpen_ball.measurableSet, smul_eq_mul, mul_comm] using h + by_cases hx : x ∈ ball c r + · rw [indicator_of_mem hx] + have hd : dist c x < r := by simpa only [mem_ball, dist_comm] using hx + exact (radialPowerRep_inner hn hr hrR.le c x + hd.le).ge + · rw [indicator_of_notMem hx] + exact (radialPowerRep_bounds hn hr hrR.le c x).1 + have hupp : (∫ x, v x ∂μ) ≤ H * μ.real (ball c R) := by + have h := integral_mono hiμ + ((integrableOn_const measure_ball_lt_top.ne).integrable_indicator isOpen_ball.measurableSet) + (fun x => show v x ≤ (ball c R).indicator (fun _ => H) x from ?_) + · simpa only [integral_indicator_const _ isOpen_ball.measurableSet, smul_eq_mul, mul_comm] using h + by_cases hx : x ∈ ball c R + · rw [indicator_of_mem hx] + exact (radialPowerRep_bounds hn hr hrR.le c x).2 + · rw [indicator_of_notMem hx] + exact (radialPowerRep_zero hrR.le c x + (by simpa only [mem_ball, dist_comm, not_lt] using hx)).le + have hd := hdefect (radialPowerTest μ hQ (inwardSobolev μ hQ c R) hn hr hrR.le) v _ hv hvc + (radialPowerRep_tsupport hrR.le hRT c) (radialPowerTest_inward_coe μ hQ hn hr hrR.le c) + have hvol := radialPowerTest_volume_identity μ hQ hn hr hrR c q hpair hsphere + have he : (∫ x, v x ∂σ) = + r ^ (-n) * μ.real (ball c r) - R ^ (-n) * μ.real (ball c R) + curvature * ∫ x, v x ∂μ := by + dsimp only [v] at hd ⊢ + linarith + rw [he] at hlow + have hc := mul_le_mul_of_nonneg_left hupp hcurvature + dsimp only [H] at hlow hc + nlinarith + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/RadialCutoffNorm.lean b/lean/OAI/Geometry/RCD/Sobolev/RadialCutoffNorm.lean new file mode 100644 index 0000000000000000000000000000000000000000..c8760d2b4f34862b0509795750d46874832b63e2 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/RadialCutoffNorm.lean @@ -0,0 +1,52 @@ +import OAI.Analysis.RCDHeat.ExistingAnalytic + +namespace OAI + +/-! # The precise Sobolev norm growth of a radial cutoff -/ + +open Set Filter MeasureTheory Metric +open scoped NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) [IsFiniteMeasureOnCompacts μ] (Q : QuadraticCheegerEnergy μ) + +theorem radialSobolevCutoff_norm_sq_le (p : X) {R : ℝ} (hR : 0 < R) : + ‖radialSobolevCutoff μ Q p hR‖^2 ≤ (1+R⁻¹^2)*μ.real (closedBall p (2*R)) := by + let ψ := radialSobolevCutoff μ Q p hR + let S := closedBall p (2*R) + have hS : MeasurableSet S := measurableSet_closedBall + have hi : Integrable (S.indicator (fun _ : X => (1:ℝ))) μ := + (integrable_indicator_iff hS).mpr (integrableOn_const (isCompact_closedBall p (2*R)).measure_lt_top.ne) + have hLp : ‖SobolevSpace.toLp μ Q ψ‖^2 ≤ μ.real S := by + rw [← integral_sq_Lp] + calc + _ ≤ ∫ x, S.indicator (fun _ : X => (1:ℝ)) x ∂μ := by + apply integral_mono_ae (Lp.memLp _).integrable_sq hi + filter_upwards [radialSobolevCutoff_coe μ Q p hR] with x hx + change SobolevSpace.toLp μ Q ψ x=radialCutoff p R x at hx + rw [hx] + by_cases hs : x∈S + · rw [indicator_of_mem hs] + nlinarith [(radialCutoff_bounds p R x).1,(radialCutoff_bounds p R x).2] + · rw [indicator_of_notMem hs,radialCutoff_eq_zero p hR] + · norm_num + · exact (lt_of_not_ge (by simpa only [S,mem_closedBall,dist_comm] using hs)).le + _ = _ := integral_indicator_one hS + have hE := radialSobolevCutoff_energy_le μ Q p hR + rw [SobolevSpace.norm_sq,SobolevSpace.normSq] + calc + _ ≤ μ.real S+2*(μ.real S/(2*R^2)) := add_le_add hLp (mul_le_mul_of_nonneg_left hE (by norm_num)) + _ = _ := by + dsimp only [S] + field_simp + +theorem radialSobolevCutoff_norm_le (p : X) {R : ℝ} (hR : 0 < R) : + ‖radialSobolevCutoff μ Q p hR‖ ≤ Real.sqrt ((1+R⁻¹^2)*μ.real (closedBall p (2*R))) := by + exact (Real.le_sqrt (norm_nonneg _) (by positivity)).mpr (radialSobolevCutoff_norm_sq_le μ Q p hR) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/RadialCutoffStrongComparison.lean b/lean/OAI/Geometry/RCD/Sobolev/RadialCutoffStrongComparison.lean new file mode 100644 index 0000000000000000000000000000000000000000..0e7d24521feb9da116fbcad8cfe0deea497b3a9f --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/RadialCutoffStrongComparison.lean @@ -0,0 +1,100 @@ +import OAI.Geometry.RCD.Sobolev.RadialCutoffEnergyIdentity +import OAI.Geometry.RCD.Sobolev.ScaledRadialCutoffSobolev +import OAI.Geometry.RCD.Sobolev.ContainingMassPoissonComparison + +namespace OAI + +/-! # Local strong comparison with the original outer-ball normalization + +The cutoff is constructed on the physical space. Its comparison with the +Euclidean radial weight transfers both the sharp recovery energy and the +lower bound, while the exact Poisson identity retains the source errors. +-/ + +open Set Metric Filter MeasureTheory +open scoped Topology NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem NoncollapsedRCD.radial_cutoff_strong_comparison {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) {S a b R A M Q E : ℝ} + (hS : 0 ((hausdorff n X).real (ball (p k) (S*r k)))⁻¹* + ∫ x in ball (p k) (R*r k), + (SobolevSpace.toLp (hausdorff n X) hX.quadratic (w k-q k) x)^2 ∂hausdorff n X) + atTop (𝓝 0)) + (hq : Tendsto (fun k => r k^2*((hausdorff n X).real (ball (p k) (S*r k)))⁻¹* + ∫ x in ball (p k) (S*r k), (euclideanNestedCutoff n hab (V k x))^2* + localGamma (hausdorff n X) hX.quadratic (q k) (q k) x ∂hausdorff n X) + atTop (𝓝 E)) + (hlower : ∀ δ : ℝ, 0<δ → ∀ᶠ k in atTop, + E-δ≤r k^2*((hausdorff n X).real (ball (p k) (S*r k)))⁻¹* + ∫ x in ball (p k) (S*r k), (euclideanNestedCutoff n hab (V k x))^2* + localGamma (hausdorff n X) hX.quadratic (w k) (w k) x ∂hausdorff n X) : + Tendsto (fun k => r k^2*((hausdorff n X).real (ball (p k) (S*r k)))⁻¹* + ∫ x in ball (p k) (R*r k), (nestedBallCutoff (p k) (a*r k) (b*r k) x)^2* + localGamma (hausdorff n X) hX.quadratic (w k-q k) (w k-q k) x ∂hausdorff n X) + atTop (𝓝 0) := by + let μ := hausdorff n X + let : IsLocallyFiniteMeasure μ := locallyFinite_of_finiteOnBounded μ hX.finiteOnBounded + let Ω := fun k => ball (p k) (R*r k) + let m := fun k => μ.real (ball (p k) (S*r k)) + let χ := fun k => nestedBallCutoff (p k) (a*r k) (b*r k) + let : ∀ k, IsFiniteMeasure (μ.restrict (Ω k)) := fun k => ⟨by + simpa only [Measure.restrict_apply_univ] using hX.finiteOnBounded (Ω k) isBounded_ball⟩ + have hm (k : ℕ) : 0 < m k := ENNReal.toReal_pos + (hX.fullSupport _ _ (mul_pos hS (hr k))).ne' (hX.finiteOnBounded _ isBounded_ball).ne + have hmass (k : ℕ) : μ.real (Ω k) ≤ m k := + ENNReal.toReal_mono (hX.finiteOnBounded _ isBounded_ball).ne + (measure_mono (ball_subset_ball (mul_le_mul_of_nonneg_right hRS.le (hr k).le))) + choose η hη hηg hηscaled using fun k => scaled_radial_cutoff_sobolev μ hX.quadratic + (p k) hab (hr k) + let P : ℕ → ℝ≥0 := fun k => ⟨(b*r k-a*r k)⁻¹, + inv_nonneg.mpr (sub_pos.mpr (mul_lt_mul_of_pos_right hab (hr k))).le⟩ + have heq (f : ℕ → SobolevSpace μ hX.quadratic) (k : ℕ) := + hX.radial_cutoff_energy_identity (p k) hab hbR hRS (hr k) (hV k) (f k) + have hqerr := hX.radial_cutoff_energy_error_tendsto hS hab hbR p r ε V hr hεlim hV q hqg + have hwerr := hX.radial_cutoff_energy_error_tendsto hS hab hbR p r ε V hr hεlim hV w hwg + have hqlim : Tendsto (fun k => r k^2*(m k)⁻¹* + ∫ x in Ω k, (χ k x)^2*localGamma μ hX.quadratic (q k) (q k) x ∂μ) atTop (𝓝 E) := by + convert hq.add hqerr using 1 + · funext k + rw [heq q k] + ring + · simp + have hwl : ∀ δ : ℝ, 0<δ → ∀ᶠ k in atTop, + E-δ≤r k^2*(m k)⁻¹*∫ x in Ω k, (χ k x)^2* + localGamma μ hX.quadratic (w k) (w k) x ∂μ := by + intro δ hδ + filter_upwards [hlower (δ/2) (half_pos hδ), + hwerr.eventually (Ioi_mem_nhds (neg_lt_zero.mpr (half_pos hδ)))] with k hk he + rw [heq w k,mul_add] + linarith + exact poisson_strong_cutoff_comparison_containing_mass μ hX.quadratic Ω m hm hmass r hr + w q η χ P P (fun k => nestedBallCutoff_lipschitz (p k) (mul_lt_mul_of_pos_right hab (hr k))) + (fun k => nestedBallCutoff_hasCompactSupport (p k) (mul_lt_mul_of_pos_right hab (hr k))) + (fun k x => by rw [abs_of_nonneg (nestedBallCutoff_bounds _ _ _ _).1]; exact (nestedBallCutoff_bounds _ _ _ _).2) + (fun k x => (nestedBallCutoff_bounds _ _ _ _).1) hη hηg + (fun k => (nestedBallCutoff_tsupport (p k) (mul_lt_mul_of_pos_right hab (hr k))).trans + (closedBall_subset_ball (mul_lt_mul_of_pos_right hbR (hr k)))) α hw + hA hM (inv_nonneg.mpr (sub_pos.mpr hab).le) hα hwg + (Eventually.of_forall fun k => ae_restrict_of_ae (hηscaled k)) hvalue hqlim hwl + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/RadialCutoffStrongLimit.lean b/lean/OAI/Geometry/RCD/Sobolev/RadialCutoffStrongLimit.lean new file mode 100644 index 0000000000000000000000000000000000000000..ff89c58d3d8dd983675c37f8a8ca64a18482b10a --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/RadialCutoffStrongLimit.lean @@ -0,0 +1,66 @@ +import OAI.Geometry.RCD.Sobolev.BoundedLocalBochner + +namespace OAI + +/-! # Strong radial cutoff convergence for bounded Sobolev functions -/ + +open Set Filter Metric MeasureTheory +open scoped NNReal Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +omit [ProperSpace X] in +theorem integral_outer_ball_tendsto_zero (p : X) {f : X → ℝ} (hf : Integrable f μ) : + Tendsto (fun k : ℕ => ∫ x in {x | (k:ℝ)+1 ≤ dist p x}, f x ∂μ) atTop (𝓝 0) := by + let S (k : ℕ) := {x : X | (k:ℝ)+1 ≤ dist p x} + have hS (k : ℕ) : MeasurableSet (S k) := + (isClosed_le continuous_const (continuous_const.dist continuous_id)).measurableSet + have hanti : Antitone S := by + intro i j hij x hx + have hij' : (i:ℝ)+1≤(j:ℝ)+1 := + add_le_add (show (i:ℝ)≤(j:ℝ) by exact_mod_cast hij) le_rfl + exact hij'.trans hx + have hEmpty : (⋂ k, S k)=∅ := by + apply eq_empty_iff_forall_notMem.mpr + intro x hx + obtain ⟨k,hk⟩ := exists_nat_gt (dist p x) + have h := mem_iInter.mp hx k + change (k:ℝ)+1 ≤ dist p x at h + linarith + simpa only [hEmpty,Measure.restrict_empty,integral_zero_measure] using + tendsto_setIntegral_of_antitone hS hanti ⟨0,hf.integrableOn⟩ + +theorem SobolevSpace.radial_cutoff_strong_limit [IsFiniteMeasureOnCompacts μ] + (u : SobolevSpace μ hQ) (C : ℝ≥0) + (hu : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ u x|≤C) (p : X) : + Tendsto (fun k : ℕ => SobolevSpace.product μ hQ + (radialSobolevCutoff μ hQ p (by positivity : 0<(k:ℝ)+1)) u 1 C) atTop (𝓝 u) := by + let U (k : ℕ) := SobolevSpace.product μ hQ + (radialSobolevCutoff μ hQ p (by positivity : 0<(k:ℝ)+1)) u 1 C + let a (k : ℕ) := ∫ x in {x | (k:ℝ)+1 ≤ dist p x}, (SobolevSpace.toLp μ hQ u x)^2 ∂μ + let b (k : ℕ) := ∫ x in {x | (k:ℝ)+1 ≤ dist p x}, (SobolevSpace.minimalSlope μ hQ u x)^2 ∂μ + have ha := integral_outer_ball_tendsto_zero μ p (Lp.memLp (SobolevSpace.toLp μ hQ u)).integrable_sq + have hb := integral_outer_ball_tendsto_zero μ p (Lp.memLp (SobolevSpace.minimalSlope μ hQ u)).integrable_sq + have he (k : ℕ) : ‖U k-u‖^2 ≤ 3*a k+2*b k := by + have h := SobolevSpace.radial_cutoff_error_norm_sq μ hQ u C hu p + (by positivity : 0<(k:ℝ)+1) + rw [norm_sub_rev] at h + have hr : 1≤((k:ℝ)+1)^2 := by nlinarith [Nat.cast_nonneg (α := ℝ) k] + have hdiv : 2/((k:ℝ)+1)^2 ≤ 2 := + (div_le_iff₀ (by positivity : 0<((k:ℝ)+1)^2)).mpr (by linarith) + have ha0 : 0≤a k := integral_nonneg fun x => sq_nonneg _ + change ‖U k-u‖^2 ≤ _ at h ⊢ + nlinarith only [h,mul_nonneg (show 0≤2-2/((k:ℝ)+1)^2 by linarith) ha0] + have hz : Tendsto (fun k => ‖U k-u‖^2) atTop (𝓝 0) := + squeeze_zero (fun k => sq_nonneg _) he (by + simpa only [mul_zero,add_zero] using (ha.const_mul 3).add (hb.const_mul 2)) + apply tendsto_iff_norm_sub_tendsto_zero.mpr + simpa only [Real.sqrt_sq (norm_nonneg _),Real.sqrt_zero] using hz.sqrt + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/RadialEnergyUnits.lean b/lean/OAI/Geometry/RCD/Sobolev/RadialEnergyUnits.lean new file mode 100644 index 0000000000000000000000000000000000000000..c7ffa89f492e0cf5f3a93f8a702a8b85bc98637c --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/RadialEnergyUnits.lean @@ -0,0 +1,116 @@ +import OAI.Geometry.RCD.Harmonic.RadialErrorUnits + +namespace OAI + +/-! # Scale-independent constants for the radial fit energy -/ + +noncomputable section +namespace RegularPointCoordinates + +def radialEnergyConstant (K : ℝ) (n : ℕ) (G ε A B J Cχ : ℝ) : ℝ := + 1 + 8 * G ^ 2 + + (8 + 16 * G ^ 2 * annularPoincareConstant K n) * + (((n + 2 : ℕ) : ℝ) * (1 + ε + A)) ^ 2 * (4096 * Cχ * (J + B / 2) + A ^ 2) + + 32768 * G ^ 2 * ((n : ℝ) * (1 + ε)) ^ 2 * B + +theorem radialEnergyConstant_pos {K G ε A B J Cχ : ℝ} {n : ℕ} + (hB : 0 ≤ B) (hJ : 0 ≤ J) (hCχ : 0 ≤ Cχ) : + 0 < radialEnergyConstant K n G ε A B J Cχ := by + have hp := (annularPoincareConstant_pos K n).le + dsimp only [radialEnergyConstant] + positivity + +/-- The testing radius s/64 and its Poincare constant cancel all length +units in the weak-radial interior estimate. -/ +theorem radial_energy_natural_units {K G ε A B J Cχ s κ σ V L I b t : ℝ} {n : ℕ} + (hs : 0 < s) (hs1 : s ≤ 1) (hκ : 0 ≤ κ) (hσ : 0 ≤ σ) (hV : 0 ≤ V) + (hB : 0 ≤ B) (hJ : 0 ≤ J) (hA : 0 ≤ A) (hε : 0 ≤ ε) (hCχ : 0 ≤ Cχ) (hI : 0 ≤ I) + (hL : L = ((n + 2 : ℕ) : ℝ) * max (1 + ε) (A * s)) + (ht : t ≤ 8 * (L ^ 2 * b ^ 2 * (4096 * Cχ * (J + B / 2) * σ + κ * A ^ 2 * s ^ 2 * V)) + + 4 * (G / (s / 64)) ^ 2 * + (2 * I + 2 * (((n : ℝ) * (1 + ε)) ^ 2 * b ^ 2) * (σ * (B * s ^ 2)) + + 4 * (annularPoincareConstant K n * (s / 64) ^ 2) * + (L ^ 2 * b ^ 2 * (4096 * Cχ * (J + B / 2) * σ + κ * A ^ 2 * s ^ 2 * V)))) : + t ≤ radialEnergyConstant K n G ε A B J Cχ * + (I / (s / 64) ^ 2 + (σ + κ * s ^ 2 * V) * b ^ 2) := by + let N := ((n + 2 : ℕ) : ℝ) * (1 + ε + A) + let H := 4096 * Cχ * (J + B / 2) + A ^ 2 + let Y := σ + κ * s ^ 2 * V + let P := annularPoincareConstant K n + let Q := (8 + 16 * G ^ 2 * P) * N ^ 2 * H + + 32768 * G ^ 2 * ((n : ℝ) * (1 + ε)) ^ 2 * B + have hP : 0 ≤ P := (annularPoincareConstant_pos K n).le + have hN : 0 ≤ N := by dsimp only [N]; positivity + have hH : 0 ≤ H := by dsimp only [H]; positivity + have hY : 0 ≤ Y := by dsimp only [Y]; positivity + have hQ : 0 ≤ Q := by dsimp only [Q]; positivity + have hL0 : 0 ≤ L := by rw [hL]; positivity + have hLN : L ≤ N := by + rw [hL] + apply mul_le_mul_of_nonneg_left _ (Nat.cast_nonneg _) + apply max_le + · exact le_add_of_nonneg_right hA + · have hh := mul_le_mul_of_nonneg_left hs1 hA + have hh' : A * s ≤ A := by simpa only [mul_one] using hh + exact hh'.trans (le_add_of_nonneg_left (add_nonneg zero_le_one hε)) + have hLs : L ^ 2 ≤ N ^ 2 := (sq_le_sq₀ hL0 hN).mpr hLN + have hmass : 4096 * Cχ * (J + B / 2) * σ + κ * A ^ 2 * s ^ 2 * V ≤ H * Y := by + dsimp only [H, Y] + nlinarith only [mul_nonneg (sq_nonneg A) hσ, + mul_nonneg (by positivity : 0 ≤ 4096 * Cχ * (J + B / 2)) + (by positivity : 0 ≤ κ * s ^ 2 * V)] + have hess : L ^ 2 * b ^ 2 * (4096 * Cχ * (J + B / 2) * σ + κ * A ^ 2 * s ^ 2 * V) ≤ + N ^ 2 * H * Y * b ^ 2 := by + have hm := mul_le_mul_of_nonneg_left hmass (mul_nonneg (sq_nonneg L) (sq_nonneg b)) + have hl := mul_le_mul_of_nonneg_right hLs (mul_nonneg (sq_nonneg b) (mul_nonneg hH hY)) + apply hm.trans + convert hl using 1 <;> ring + have hσY : σ ≤ Y := le_add_of_nonneg_right (by positivity) + have hformula : 8 * (L ^ 2 * b ^ 2 * (4096 * Cχ * (J + B / 2) * σ + κ * A ^ 2 * s ^ 2 * V)) + + 4 * (G / (s / 64)) ^ 2 * + (2 * I + 2 * (((n : ℝ) * (1 + ε)) ^ 2 * b ^ 2) * (σ * (B * s ^ 2)) + + 4 * (P * (s / 64) ^ 2) * + (L ^ 2 * b ^ 2 * (4096 * Cχ * (J + B / 2) * σ + κ * A ^ 2 * s ^ 2 * V))) = + 8 * G ^ 2 * (I / (s / 64) ^ 2) + + (8 + 16 * G ^ 2 * P) * + (L ^ 2 * b ^ 2 * (4096 * Cχ * (J + B / 2) * σ + κ * A ^ 2 * s ^ 2 * V)) + + 32768 * G ^ 2 * ((n : ℝ) * (1 + ε)) ^ 2 * B * σ * b ^ 2 := by + generalize hz : L ^ 2 * b ^ 2 * + (4096 * Cχ * (J + B / 2) * σ + κ * A ^ 2 * s ^ 2 * V) = z + generalize hu : ((n : ℝ) * (1 + ε)) ^ 2 = u + field_simp [hs.ne'] + ring + rw [hformula] at ht + have hh := mul_le_mul_of_nonneg_left hess + (show 0 ≤ 8 + 16 * G ^ 2 * P by positivity) + have hsource := mul_le_mul_of_nonneg_right + (mul_le_mul_of_nonneg_left hσY + (show 0 ≤ 32768 * G ^ 2 * ((n : ℝ) * (1 + ε)) ^ 2 * B by positivity)) (sq_nonneg b) + have hmain : t ≤ 8 * G ^ 2 * (I / (s / 64) ^ 2) + Q * (Y * b ^ 2) := by + apply ht.trans + calc + _ ≤ 8 * G ^ 2 * (I / (s / 64) ^ 2) + + (8 + 16 * G ^ 2 * P) * (N ^ 2 * H * Y * b ^ 2) + + 32768 * G ^ 2 * ((n : ℝ) * (1 + ε)) ^ 2 * B * Y * b ^ 2 := + add_le_add (add_le_add_right hh _) hsource + _ = _ := by dsimp only [Q]; ring + have hD : radialEnergyConstant K n G ε A B J Cχ = 1 + 8 * G ^ 2 + Q := by + dsimp only [radialEnergyConstant, Q] + exact add_assoc _ _ _ + have hfirst := mul_le_mul_of_nonneg_right + (show 8 * G ^ 2 ≤ radialEnergyConstant K n G ε A B J Cχ by + rw [hD] + exact (le_add_of_nonneg_left zero_le_one).trans (le_add_of_nonneg_right hQ)) + (div_nonneg hI (sq_nonneg (s / 64))) + have hsecond := mul_le_mul_of_nonneg_right + (show Q ≤ radialEnergyConstant K n G ε A B J Cχ by + rw [hD] + exact le_add_of_nonneg_left (add_nonneg zero_le_one (mul_nonneg (by norm_num) (sq_nonneg G)))) + (mul_nonneg hY (sq_nonneg b)) + exact hmain.trans ((add_le_add hfirst hsecond).trans_eq (by ring)) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/RadialEnergyVolume.lean b/lean/OAI/Geometry/RCD/Sobolev/RadialEnergyVolume.lean new file mode 100644 index 0000000000000000000000000000000000000000..9a089d77ba955a5876810fd33608197096fa1afe --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/RadialEnergyVolume.lean @@ -0,0 +1,32 @@ +import Mathlib.Analysis.SpecialFunctions.Pow.Real + +namespace OAI + +/-! # Averaging the radial energy estimate on the half testing ball -/ + +namespace RegularPointCoordinates + +theorem radial_fit_energy_volume_units {r W V N C D w E P Λ Θ e : ℝ} + (hr : 0 < r) (hW : 0 < W) (hN : 0 ≤ N) (hC : 0 ≤ C) + (hE : 0 ≤ E) (hPE : P ≤ E) + (hV : V / W ≤ Λ) (hNW : N / W ≤ Θ) + (he : e ≤ C * (V * (D * r * w * Real.sqrt E) ^ 2 / r ^ 2 + N * P * w ^ 2)) : + W⁻¹ * e ≤ C * (Λ * D ^ 2 + Θ) * w ^ 2 * E := by + have hcancel : V * (D * r * w * Real.sqrt E) ^ 2 / r ^ 2 = V * D ^ 2 * w ^ 2 * E := by + rw [mul_pow, mul_pow, mul_pow, Real.sq_sqrt hE] + field_simp [hr.ne'] + rw [hcancel] at he + have hbound := mul_le_mul_of_nonneg_left he (inv_nonneg.mpr hW.le) + have hfirst := mul_le_mul_of_nonneg_right hV + (mul_nonneg (mul_nonneg (sq_nonneg D) (sq_nonneg w)) hE) + have hsecond : (N / W) * P * w ^ 2 ≤ Θ * E * w ^ 2 := by + have hm := mul_le_mul_of_nonneg_left hPE (div_nonneg hN hW.le) + have hn := mul_le_mul_of_nonneg_right hNW hE + exact mul_le_mul_of_nonneg_right (hm.trans hn) (sq_nonneg w) + have hh := mul_le_mul_of_nonneg_left (add_le_add hfirst hsecond) hC + apply hbound.trans + convert hh using 1 <;> ring + +end RegularPointCoordinates + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/RadialInteriorEnergy.lean b/lean/OAI/Geometry/RCD/Sobolev/RadialInteriorEnergy.lean new file mode 100644 index 0000000000000000000000000000000000000000..47c71ab0683614d2575b1309a50c506314d29b25 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/RadialInteriorEnergy.lean @@ -0,0 +1,53 @@ +import OAI.Geometry.RCD.Sobolev.CorrectionInteriorEnergy + +namespace OAI + +/-! # The weak radial equation controls the interior fit energy -/ + +open Set Metric MeasureTheory +open scoped ENNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +/-- Weak radial cancellation and its actual Dirichlet correction upgrade +an L2 fit to an interior gradient fit. The source is the same shifted +Hessian budget already used for the radial value estimates. -/ +theorem radial_interior_energy_from_fit {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (hgradient : LocalHarmonicL2GradientInput hX) + (hn : 2 ≤ n) {κ : ℝ} (hκ : 0 ≤ κ) : + ∃ C : ℝ, 1 ≤ C ∧ ∀ (p : X) (R : ℝ), 0 < R → -κ ≤ K * R ^ 2 → + ∀ (f a : SobolevSpace (hausdorff n X) hX.quadratic) + (G : LocalHessianPairing (hausdorff n X) hX.quadratic (ball p R) f a), + ∀ {c P D : ℝ}, + IsConstantLaplacianOn (hausdorff n X) hX.quadratic (ball p R) f c → + IsSobolevHarmonicOn (hausdorff n X) hX.quadratic (ball p R) a → + 0 ≤ P → 0 ≤ D → + (∀ φ : SobolevSpace.dirichlet (hausdorff n X) hX.quadratic (ball p R), + ‖SobolevSpace.toLp (hausdorff n X) hX.quadratic φ.val‖ ^ 2 ≤ + P * energyForm (hausdorff n X) hX.quadratic φ.val φ.val) → + ∀ b : ℝ, + (∀ φ : SobolevSpace.dirichlet (hausdorff n X) hX.quadratic (ball p R), + (G.hessian φ - b * energyForm (hausdorff n X) hX.quadratic a φ.val) ^ 2 ≤ + D * energyForm (hausdorff n X) hX.quadratic φ.val φ.val) → + ∀ (F : SobolevSpace (hausdorff n X) hX.quadratic) {I : ℝ}, + IsSobolevHarmonicOn (hausdorff n X) hX.quadratic (ball p R) F → + ‖SobolevSpace.restrictLp (hausdorff n X) hX.quadratic (ball p R) (G.mixed - F)‖ ^ 2 ≤ I → + (∫ x in ball p (R / 2), localGamma (hausdorff n X) hX.quadratic + (G.mixed - F) (G.mixed - F) x ∂hausdorff n X) ≤ + 8 * D + 4 * (C / R) ^ 2 * (I + 4 * P * D) := by + obtain ⟨C, hC, henergy⟩ := correction_interior_energy hX hgradient hn hκ + refine ⟨C, hC, ?_⟩ + intro p R hR hcurv f a G c P D hf ha hP hD hpoin b hbound F I hF hI + obtain ⟨h, _hmem, hh, he, hv⟩ := G.exists_harmonic_correction (hausdorff n X) hX.quadratic + measurableSet_ball hf ha b hP hD hpoin hbound + have hb := henergy p R hR hcurv G.mixed h F hh hF he hI hv + exact hb.trans_eq (by ring) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/RadialLocalSobolev.lean b/lean/OAI/Geometry/RCD/Sobolev/RadialLocalSobolev.lean new file mode 100644 index 0000000000000000000000000000000000000000..35829e4f5ef65f46d95921ea51a791e3a83550a6 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/RadialLocalSobolev.lean @@ -0,0 +1,62 @@ +import OAI.Geometry.RCD.Sobolev.LocalCutoffLipschitz +import OAI.Geometry.RCD.Sobolev.CompactLipschitzSobolevBound + +namespace OAI + +/-! # Compact Sobolev realization on a metric ball -/ + +open Set Filter MeasureTheory Metric +open scoped Topology NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) [IsFiniteMeasureOnCompacts μ] + (Q : QuadraticCheegerEnergy μ) + +def radialLocalSobolev (z : X) {r : ℝ} (hr : 0 < r) + {f : X → ℝ} {L A : ℝ≥0} + (hf : LipschitzOnWith L f (closedBall z (2*r))) + (hb : ∀ x ∈ closedBall z (2*r), |f x| ≤ A) : SobolevSpace μ Q := + SobolevSpace.ofLipschitzCompact μ Q (radial_local_lipschitz_cutoff z hr hf hb).1 + ((radialCutoff_hasCompactSupport z hr).mul_right) + +theorem radialLocalSobolev_coe (z : X) {r : ℝ} (hr : 0 < r) + {f : X → ℝ} {L A : ℝ≥0} + (hf : LipschitzOnWith L f (closedBall z (2*r))) + (hb : ∀ x ∈ closedBall z (2*r), |f x| ≤ A) : + SobolevSpace.toLp μ Q (radialLocalSobolev μ Q z hr hf hb) =ᵐ[μ] + fun x => radialCutoff z r x*f x := + SobolevSpace.ofLipschitzCompact_coe μ Q _ _ + +theorem radialLocalSobolev_eq_on_ball (z : X) {r : ℝ} (hr : 0 < r) + {f : X → ℝ} {L A : ℝ≥0} + (hf : LipschitzOnWith L f (closedBall z (2*r))) + (hb : ∀ x ∈ closedBall z (2*r), |f x| ≤ A) : + SobolevSpace.toLp μ Q (radialLocalSobolev μ Q z hr hf hb) =ᵐ[μ.restrict (closedBall z r)] f := by + filter_upwards [ae_restrict_of_ae (radialLocalSobolev_coe μ Q z hr hf hb), + ae_restrict_mem measurableSet_closedBall] with x hx hm + rw [hx,radialCutoff_eq_one z hr (mem_closedBall'.mp hm),one_mul] + +theorem radialLocalSobolev_uniform_bound (z : X) {r : ℝ} (hr : 0 < r) + (L A : ℝ≥0) : + ∃ C : ℝ, 0 ≤ C ∧ ∀ (f : X → ℝ) + (hf : LipschitzOnWith L f (closedBall z (2*r))) + (hb : ∀ x ∈ closedBall z (2*r), |f x| ≤ A), + ‖radialLocalSobolev μ Q z hr hf hb‖ ≤ C := by + obtain ⟨C,hC,hbound⟩ := compact_lipschitz_sobolev_uniform_bound μ Q + (isCompact_closedBall z (2*r)) A (A*⟨r⁻¹,inv_nonneg.mpr hr.le⟩+L) + refine ⟨C,hC,?_⟩ + intro f hf hb + apply hbound _ (fun x => radialCutoff z r x*f x) + (radial_local_lipschitz_cutoff z hr hf hb).1 + (radial_local_lipschitz_cutoff z hr hf hb).2 + · intro x hx + rw [radialCutoff_eq_zero z hr + (le_of_lt (by simpa only [mem_closedBall,not_le,dist_comm] using hx)),zero_mul] + · exact radialLocalSobolev_coe μ Q z hr hf hb + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/RadialLocalSobolevLimit.lean b/lean/OAI/Geometry/RCD/Sobolev/RadialLocalSobolevLimit.lean new file mode 100644 index 0000000000000000000000000000000000000000..cb0adc4167059b206416e1965c87db828c600199 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/RadialLocalSobolevLimit.lean @@ -0,0 +1,66 @@ +import OAI.Geometry.RCD.Sobolev.RadialLocalSobolev +import OAI.Geometry.RCD.Metric.CompactSupportedL2Limit +import OAI.Geometry.RCD.Sobolev.SobolevWeakEnergyLower + +namespace OAI + +/-! # Local Lipschitz limits in the original Sobolev space + +The radial realizations converge strongly in L2 and weakly in H1. +Positive bounded weights therefore give the expected energy lower bound. +-/ + +open Set Filter MeasureTheory Metric +open scoped Topology NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) [IsFiniteMeasureOnCompacts μ] + (Q : QuadraticCheegerEnergy μ) + +theorem radialLocalSobolev_L2_limit (z : X) {r : ℝ} (hr : 0 < r) + (F : ℕ → X → ℝ) (f : X → ℝ) (L A : ℝ≥0) + (hF : ∀ k, LipschitzOnWith L (F k) (closedBall z (2*r))) + (hf : LipschitzOnWith L f (closedBall z (2*r))) + (hFb : ∀ k, ∀ x ∈ closedBall z (2*r), |F k x| ≤ A) + (hfb : ∀ x ∈ closedBall z (2*r), |f x| ≤ A) + (hc : ∀ x ∈ closedBall z (2*r), Tendsto (fun k => F k x) atTop (𝓝 (f x))) : + Tendsto (fun k => SobolevSpace.toLp μ Q + (radialLocalSobolev μ Q z hr (hF k) (hFb k))) atTop + (𝓝 (SobolevSpace.toLp μ Q (radialLocalSobolev μ Q z hr hf hfb))) := by + apply compact_supported_L2_limit μ measurableSet_closedBall + (isCompact_closedBall z (2*r)).measure_lt_top.ne + _ _ (fun k x => radialCutoff z r x*F k x) (fun x => radialCutoff z r x*f x) + (fun k => radialLocalSobolev_coe μ Q z hr (hF k) (hFb k)) + (radialLocalSobolev_coe μ Q z hr hf hfb) A.coe_nonneg + (fun k => (radial_local_lipschitz_cutoff z hr (hF k) (hFb k)).2) + (radial_local_lipschitz_cutoff z hr hf hfb).2 + · intro k x hx + rw [radialCutoff_eq_zero z hr + (le_of_lt (by simpa only [mem_closedBall,not_le,dist_comm] using hx)),zero_mul] + · intro x hx + rw [radialCutoff_eq_zero z hr + (le_of_lt (by simpa only [mem_closedBall,not_le,dist_comm] using hx)),zero_mul] + · intro x hx + exact (hc x hx).const_mul _ + +theorem radialLocalSobolev_weak_limit (z : X) {r : ℝ} (hr : 0 < r) + (F : ℕ → X → ℝ) (f : X → ℝ) (L A : ℝ≥0) + (hF : ∀ k, LipschitzOnWith L (F k) (closedBall z (2*r))) + (hf : LipschitzOnWith L f (closedBall z (2*r))) + (hFb : ∀ k, ∀ x ∈ closedBall z (2*r), |F k x| ≤ A) + (hfb : ∀ x ∈ closedBall z (2*r), |f x| ≤ A) + (hc : ∀ x ∈ closedBall z (2*r), Tendsto (fun k => F k x) atTop (𝓝 (f x))) + (ℓ : SobolevSpace μ Q →L[ℝ] ℝ) : + Tendsto (fun k => ℓ (radialLocalSobolev μ Q z hr (hF k) (hFb k))) atTop + (𝓝 (ℓ (radialLocalSobolev μ Q z hr hf hfb))) := by + obtain ⟨C,hC,hbound⟩ := radialLocalSobolev_uniform_bound μ Q z hr L A + exact bounded_sobolev_functional_tendsto μ Q _ _ hC + (fun k => hbound _ (hF k) (hFb k)) + (radialLocalSobolev_L2_limit μ Q z hr F f L A hF hf hFb hfb hc) ℓ + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/RadialPowerTest.lean b/lean/OAI/Geometry/RCD/Sobolev/RadialPowerTest.lean new file mode 100644 index 0000000000000000000000000000000000000000..50970240a55c05ae87e32f2ce09b7b9d2da714e1 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/RadialPowerTest.lean @@ -0,0 +1,156 @@ +import OAI.Geometry.RCD.Sobolev.PositiveSourceTruncation +import Mathlib.MeasureTheory.Integral.IntervalIntegral.FundThmCalculus + +namespace OAI + +/-! +# Radial inverse-power tests + +A bounded continuous weight is integrated before clipping the argument. +The resulting Sobolev test has the exact annular derivative needed to +convert the squared-distance weak Laplacian into a volume drop. +-/ + +open Set MeasureTheory Filter +open scoped NNReal + +noncomputable section + +namespace RegularPointCoordinates + +/-- The global derivative used before clipping at the inner radius. -/ +def radialPowerWeight (n r R s : ℝ) : ℝ := (max r (R - s)) ^ (-(n + 1)) + +def radialPowerPrimitive (n r R s : ℝ) : ℝ := + ∫ t in 0..s, radialPowerWeight n r R t + +theorem radialPowerWeight_continuous (n R : ℝ) {r : ℝ} (hr : 0 < r) : + Continuous (radialPowerWeight n r R) := by + apply (continuous_const.max (continuous_const.sub continuous_id)).rpow_const + intro s + left + exact ne_of_gt (hr.trans_le (le_max_left _ _)) + +theorem radialPowerWeight_bounds {n r R : ℝ} (hn : 0 < n) (hr : 0 < r) (s : ℝ) : + 0 ≤ radialPowerWeight n r R s ∧ radialPowerWeight n r R s ≤ r ^ (-(n + 1)) := by + constructor + · exact Real.rpow_nonneg (hr.le.trans (le_max_left _ _)) _ + · exact Real.rpow_le_rpow_of_nonpos hr (le_max_left _ _) (by linarith) + +theorem radialPowerPrimitive_hasDerivAt (n R s : ℝ) {r : ℝ} (hr : 0 < r) : + HasDerivAt (radialPowerPrimitive n r R) (radialPowerWeight n r R s) s := + intervalIntegral.integral_hasDerivAt_right + ((radialPowerWeight_continuous n R hr).intervalIntegrable 0 s) + (radialPowerWeight_continuous n R hr).aestronglyMeasurable.stronglyMeasurableAtFilter + (radialPowerWeight_continuous n R hr).continuousAt + +@[simp] theorem radialPowerPrimitive_zero (n r R : ℝ) : radialPowerPrimitive n r R 0 = 0 := by + simp only [radialPowerPrimitive, intervalIntegral.integral_same] + +theorem radialPowerPrimitive_lipschitz {n r R : ℝ} (hn : 0 < n) (hr : 0 < r) : + LipschitzWith ⟨r ^ (-(n + 1)), Real.rpow_nonneg hr.le _⟩ + (radialPowerPrimitive n r R) := by + apply lipschitzWith_of_nnnorm_deriv_le + (fun s => (radialPowerPrimitive_hasDerivAt n R s hr).differentiableAt) + intro s + rw [(radialPowerPrimitive_hasDerivAt n R s hr).deriv] + have hb := radialPowerWeight_bounds (R := R) hn hr s + show ‖radialPowerWeight n r R s‖₊ ≤ _ + exact_mod_cast (show ‖radialPowerWeight n r R s‖ ≤ r ^ (-(n + 1)) by + simpa only [Real.norm_eq_abs, abs_of_nonneg hb.1] using hb.2) + +/-- On the unclipped interval this primitive is the inverse-power cutoff. -/ +theorem radialPowerPrimitive_formula {n r R s : ℝ} (hn : 0 < n) (hr : 0 < r) + (hs : 0 ≤ s) (hsR : s ≤ R - r) : + radialPowerPrimitive n r R s = ((R - s) ^ (-n) - R ^ (-n)) / n := by + have hR : 0 < R := by linarith + let F := fun t : ℝ => ((R - t) ^ (-n) - R ^ (-n)) / n + have hF : ContinuousOn F (Icc 0 s) := by + apply ContinuousOn.div_const + apply ContinuousOn.sub _ continuousOn_const + apply (continuousOn_const.sub continuousOn_id).rpow_const + intro t ht + left + change R - t ≠ 0 + exact ne_of_gt (by linarith [ht.2]) + have hd (t : ℝ) (ht : t ∈ Ioo 0 s) : HasDerivAt F (radialPowerWeight n r R t) t := by + have hrt : r ≤ R - t := by linarith [ht.2] + have hpos : 0 < R - t := hr.trans_le hrt + have h := ((((hasDerivAt_const t R).sub (hasDerivAt_id t)).rpow_const + (Or.inl hpos.ne') (p := -n)).sub_const (R ^ (-n))).div_const n + convert h using 1 + · rfl + · simp only [radialPowerWeight, max_eq_right hrt, Pi.sub_apply, id_eq] + rw [show -n - 1 = -(n + 1) by ring] + field_simp + ring + have he := intervalIntegral.integral_eq_sub_of_hasDerivAt_of_le hs hF hd + ((radialPowerWeight_continuous n R hr).intervalIntegrable 0 s) + simpa only [radialPowerPrimitive, F, sub_zero, sub_self, zero_div, sub_zero] using he + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +/-- Clipping has the same locality formula when paired with any Sobolev function. -/ +theorem positiveTruncation_gamma_pair (q u : SobolevSpace μ hQ) + (hu : ∀ᵐ x ∂μ, 0 ≤ SobolevSpace.toLp μ hQ u x) {t : ℝ} (ht : 0 ≤ t) : + localGamma μ hQ q (positiveTruncation μ hQ u t ht) =ᵐ[μ] + fun x => if SobolevSpace.toLp μ hQ u x < t then localGamma μ hQ q u x else 0 := by + let T := positiveTruncation μ hQ u t ht + filter_upwards [positiveTruncation_coe μ hQ u ht, hu, + localGamma_comm μ hQ q T, localGamma_comm μ hQ q u, + localGamma_eq_on_eq μ hQ T u q, + localGamma_zero_on_level μ hQ T q t] with x hx h0 hc hc' he hz + rw [hc] + by_cases hlt : SobolevSpace.toLp μ hQ u x < t + · rw [ite_eq_left hlt, hc'] + apply he + rw [hx, positiveClip, max_eq_left h0, min_eq_left hlt.le] + · rw [ite_eq_right hlt] + apply hz + rw [hx, positiveClip, max_eq_left h0, min_eq_right (le_of_not_gt hlt)] + +/-- The actual radial Sobolev test obtained by clipping an inward distance. -/ +def radialPowerTest (u : SobolevSpace μ hQ) {n r R : ℝ} + (hn : 0 < n) (hr : 0 < r) (hrR : r ≤ R) : SobolevSpace μ hQ := + SobolevSpace.comp μ hQ (radialPowerPrimitive_lipschitz hn hr) + (radialPowerPrimitive_zero n r R) + (positiveTruncation μ hQ u (R - r) (sub_nonneg.mpr hrR)) + +omit [BorelSpace X] [ProperSpace X] in +theorem radialPowerTest_coe (u : SobolevSpace μ hQ) {n r R : ℝ} + (hn : 0 < n) (hr : 0 < r) (hrR : r ≤ R) : + SobolevSpace.toLp μ hQ (radialPowerTest μ hQ u hn hr hrR) =ᵐ[μ] + fun x => radialPowerPrimitive n r R (positiveClip (R - r) (SobolevSpace.toLp μ hQ u x)) := by + filter_upwards [SobolevSpace.comp_coe μ hQ (radialPowerPrimitive_lipschitz hn hr) + (radialPowerPrimitive_zero n r R) (positiveTruncation μ hQ u (R - r) (sub_nonneg.mpr hrR)), + positiveTruncation_coe μ hQ u (sub_nonneg.mpr hrR)] with x hc ht + exact hc.trans (by simp only [Function.comp_apply, ht]) + +theorem radialPowerTest_gamma (q u : SobolevSpace μ hQ) + (hu : ∀ᵐ x ∂μ, 0 ≤ SobolevSpace.toLp μ hQ u x) + {n r R : ℝ} (hn : 0 < n) (hr : 0 < r) (hrR : r ≤ R) : + localGamma μ hQ q (radialPowerTest μ hQ u hn hr hrR) =ᵐ[μ] + fun x => if SobolevSpace.toLp μ hQ u x < R - r then + radialPowerWeight n r R (SobolevSpace.toLp μ hQ u x) * localGamma μ hQ q u x else 0 := by + filter_upwards [localGamma_comp_C1_right μ hQ q + (positiveTruncation μ hQ u (R - r) (sub_nonneg.mpr hrR)) + (radialPowerPrimitive_lipschitz hn hr) (radialPowerPrimitive_zero n r R) + (radialPowerWeight_continuous n R hr) (fun s => radialPowerPrimitive_hasDerivAt n R s hr) + ⟨r ^ (-(n + 1)), Real.rpow_nonneg hr.le _⟩ + (fun s => by rw [abs_of_nonneg (radialPowerWeight_bounds hn hr s).1]; + exact (radialPowerWeight_bounds hn hr s).2), + positiveTruncation_gamma_pair μ hQ q u hu (sub_nonneg.mpr hrR), + positiveTruncation_coe μ hQ u (sub_nonneg.mpr hrR), hu] with x hc hg ht h0 + change localGamma μ hQ q (radialPowerTest μ hQ u hn hr hrR) x = _ at hc + rw [hc, hg] + by_cases hlt : SobolevSpace.toLp μ hQ u x < R - r + · rw [ite_eq_left hlt, ite_eq_left hlt, ht, positiveClip, max_eq_left h0, + min_eq_left hlt.le] + · rw [ite_eq_right hlt, ite_eq_right hlt, mul_zero] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/RadialSobolevMeasurableLimit.lean b/lean/OAI/Geometry/RCD/Sobolev/RadialSobolevMeasurableLimit.lean new file mode 100644 index 0000000000000000000000000000000000000000..582eec3b61486e7166d41fca3d68aafe6c868c64 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/RadialSobolevMeasurableLimit.lean @@ -0,0 +1,63 @@ +import OAI.Geometry.RCD.Sobolev.RadialSobolevTimeMeasurable +import OAI.Geometry.RCD.Sobolev.RadialLocalSobolevLimit + +namespace OAI + +/-! # A measurable local Sobolev limit outside one time null set -/ + +open Set Filter MeasureTheory Metric +open scoped Topology NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X Y : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) [IsFiniteMeasureOnCompacts μ] + (Q : QuadraticCheegerEnergy μ) [TopologicalSpace.SeparableSpace (Lp ℝ 2 μ)] + [TopologicalSpace Y] [FirstCountableTopology Y] [MeasurableSpace Y] [BorelSpace Y] + +theorem radial_sobolev_measurable_limit (ν : Measure Y) (Z : Set Y) + (hZ : ∀ᵐ t ∂ν, t ∈ Z) (z : X) {r : ℝ} (hr : 0 < r) + (H : ℕ → Y → X → ℝ) (g : Y → X → ℝ) (L A : ℝ≥0) + (hHl : ∀ k t, LipschitzOnWith L (H k t) (closedBall z (2*r))) + (hHb : ∀ k t, ∀ x ∈ closedBall z (2*r), |H k t x| ≤ A) + (hHc : ∀ k, ∀ x ∈ closedBall z (2*r), Continuous (fun t => H k t x)) + (hgl : ∀ t ∈ Z, LipschitzOnWith L (g t) (closedBall z (2*r))) + (hgb : ∀ t ∈ Z, ∀ x ∈ closedBall z (2*r), |g t x| ≤ A) + (hconv : ∀ t ∈ Z, ∀ x ∈ closedBall z (2*r), + Tendsto (fun k => H k t x) atTop (𝓝 (g t x))) : + ∃ (u : ℕ → Y → SobolevSpace μ Q) (v : Y → SobolevSpace μ Q) (C : ℝ), + 0 ≤ C ∧ (∀ k, StronglyMeasurable (u k)) ∧ AEStronglyMeasurable v ν ∧ + (∀ k t, ‖u k t‖ ≤ C) ∧ (∀ t, ‖v t‖ ≤ C) ∧ + (∀ k t, SobolevSpace.toLp μ Q (u k t) =ᵐ[μ] fun x => radialCutoff z r x*H k t x) ∧ + (∀ t ∈ Z, SobolevSpace.toLp μ Q (v t) =ᵐ[μ] fun x => radialCutoff z r x*g t x) ∧ + (∀ᵐ t ∂ν, Tendsto (fun k => SobolevSpace.toLp μ Q (u k t)) atTop + (𝓝 (SobolevSpace.toLp μ Q (v t)))) := by + classical + let u := fun k t => radialLocalSobolev μ Q z hr (hHl k t) (hHb k t) + let v := fun t => if ht : t ∈ Z then radialLocalSobolev μ Q z hr (hgl t ht) (hgb t ht) else 0 + have hu (k : ℕ) : StronglyMeasurable (u k) := + radialLocalSobolev_stronglyMeasurable μ Q z hr (H k) L A (hHl k) (hHb k) (hHc k) + have hc : ∀ᵐ t ∂ν, Tendsto (fun k => SobolevSpace.toLp μ Q (u k t)) atTop + (𝓝 (SobolevSpace.toLp μ Q (v t))) := by + filter_upwards [hZ] with t ht + dsimp only [v] + rw [dite_eq_left ht] + exact radialLocalSobolev_L2_limit μ Q z hr (fun k => H k t) (g t) L A + (fun k => hHl k t) (hgl t ht) (fun k => hHb k t) (hgb t ht) (hconv t ht) + obtain ⟨C,hC,hbound⟩ := radialLocalSobolev_uniform_bound μ Q z hr L A + refine ⟨u,v,C,hC,hu,sobolev_limit_aestronglyMeasurable μ Q ν u v + (fun k => (hu k).aestronglyMeasurable) hc,fun k t => hbound _ (hHl k t) (hHb k t),?_, + fun k t => radialLocalSobolev_coe μ Q z hr (hHl k t) (hHb k t),?_,hc⟩ + · intro t + by_cases ht : t ∈ Z + · simpa only [v,dite_eq_left ht] using hbound _ (hgl t ht) (hgb t ht) + · simpa only [v,dite_eq_right ht,norm_zero] using hC + · intro t ht + dsimp only [v] + rw [dite_eq_left ht] + exact radialLocalSobolev_coe μ Q z hr (hgl t ht) (hgb t ht) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/RadialSobolevTimeMeasurable.lean b/lean/OAI/Geometry/RCD/Sobolev/RadialSobolevTimeMeasurable.lean new file mode 100644 index 0000000000000000000000000000000000000000..b0ff6f1303010f8a28420da879ddf318c612e5b8 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/RadialSobolevTimeMeasurable.lean @@ -0,0 +1,74 @@ +import OAI.Geometry.RCD.Sobolev.RadialLocalSobolev +import OAI.Geometry.RCD.Metric.SupportedL2Continuity +import OAI.Geometry.RCD.Metric.InjectiveHilbertMeasurable +import Mathlib.MeasureTheory.Measure.SeparableMeasure + +namespace OAI + +/-! # Measurable Sobolev families from continuous compact local values -/ + +open Set Filter MeasureTheory Metric +open scoped Topology NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X Y : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) [IsFiniteMeasureOnCompacts μ] + (Q : QuadraticCheegerEnergy μ) + +variable [TopologicalSpace Y] [FirstCountableTopology Y] + [MeasurableSpace Y] [BorelSpace Y] + +omit [MeasurableSpace Y] [BorelSpace Y] in +theorem radialLocalSobolev_toLp_continuous (z : X) {r : ℝ} (hr : 0 < r) + (H : Y → X → ℝ) (L A : ℝ≥0) + (hL : ∀ t, LipschitzOnWith L (H t) (closedBall z (2*r))) + (hA : ∀ t, ∀ x ∈ closedBall z (2*r), |H t x| ≤ A) + (hc : ∀ x ∈ closedBall z (2*r), Continuous (fun t => H t x)) : + Continuous (fun t => SobolevSpace.toLp μ Q (radialLocalSobolev μ Q z hr (hL t) (hA t))) := by + apply continuous_iff_continuousAt.mpr + intro t + apply supported_L2_tendsto μ measurableSet_closedBall + (isCompact_closedBall z (2*r)).measure_lt_top.ne + _ _ (fun s x => radialCutoff z r x*H s x) (fun x => radialCutoff z r x*H t x) + (fun s => radialLocalSobolev_coe μ Q z hr (hL s) (hA s)) + (radialLocalSobolev_coe μ Q z hr (hL t) (hA t)) A.coe_nonneg + (fun s => (radial_local_lipschitz_cutoff z hr (hL s) (hA s)).2) + (radial_local_lipschitz_cutoff z hr (hL t) (hA t)).2 + · intro s x hx + rw [radialCutoff_eq_zero z hr + (le_of_lt (by simpa only [mem_closedBall,not_le,dist_comm] using hx)),zero_mul] + · intro x hx + rw [radialCutoff_eq_zero z hr + (le_of_lt (by simpa only [mem_closedBall,not_le,dist_comm] using hx)),zero_mul] + · intro x hx + exact ((hc x hx).continuousAt).const_mul _ + +theorem radialLocalSobolev_stronglyMeasurable + [TopologicalSpace.SeparableSpace (Lp ℝ 2 μ)] + (z : X) {r : ℝ} (hr : 0 < r) (H : Y → X → ℝ) (L A : ℝ≥0) + (hL : ∀ t, LipschitzOnWith L (H t) (closedBall z (2*r))) + (hA : ∀ t, ∀ x ∈ closedBall z (2*r), |H t x| ≤ A) + (hc : ∀ x ∈ closedBall z (2*r), Continuous (fun t => H t x)) : + StronglyMeasurable (fun t => radialLocalSobolev μ Q z hr (hL t) (hA t)) := by + apply injective_hilbert_image_stronglyMeasurable (SobolevSpace.toLpCLM μ Q) + (fun f g h => Subtype.ext h) + exact (radialLocalSobolev_toLp_continuous μ Q z hr H L A hL hA hc).stronglyMeasurable + +omit [TopologicalSpace Y] [FirstCountableTopology Y] [BorelSpace Y] + [BorelSpace X] [ProperSpace X] [IsFiniteMeasureOnCompacts μ] in +theorem sobolev_limit_aestronglyMeasurable [TopologicalSpace.SeparableSpace (Lp ℝ 2 μ)] + (ν : Measure Y) (u : ℕ → Y → SobolevSpace μ Q) (v : Y → SobolevSpace μ Q) + (hu : ∀ k, AEStronglyMeasurable (u k) ν) + (hc : ∀ᵐ t ∂ν, Tendsto (fun k => SobolevSpace.toLp μ Q (u k t)) atTop + (𝓝 (SobolevSpace.toLp μ Q (v t)))) : AEStronglyMeasurable v ν := by + apply injective_hilbert_image_aestronglyMeasurable (SobolevSpace.toLpCLM μ Q) + (fun f g h => Subtype.ext h) v ν + apply aestronglyMeasurable_of_tendsto_ae atTop _ hc + intro k + exact (SobolevSpace.toLpCLM μ Q).continuous.comp_aestronglyMeasurable (hu k) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/RadialSourceStrongGradient.lean b/lean/OAI/Geometry/RCD/Sobolev/RadialSourceStrongGradient.lean new file mode 100644 index 0000000000000000000000000000000000000000..3662d2fe96b0d273dd632fab7c2e1ee403b45836 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/RadialSourceStrongGradient.lean @@ -0,0 +1,97 @@ +import OAI.Geometry.RCD.Sobolev.LocalSourceStrongGradient +import OAI.Geometry.RCD.Sobolev.RadialLocalSobolevLimit + +namespace OAI + +/-! # Strong local gradients for the canonical radial Sobolev realizations -/ + +open Set Filter MeasureTheory Metric +open scoped Topology NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) [IsFiniteMeasureOnCompacts μ] (Q : QuadraticCheegerEnergy μ) + +theorem radial_source_strong_gradient (z : X) {r : ℝ} (hr : 0 < r) + (F : ℕ → X → ℝ) (f : X → ℝ) (L A : ℝ≥0) + (hF : ∀ k, LipschitzOnWith L (F k) (closedBall z (2*r))) + (hf : LipschitzOnWith L f (closedBall z (2*r))) + (hFb : ∀ k, ∀ x ∈ closedBall z (2*r), |F k x| ≤ A) + (hfb : ∀ x ∈ closedBall z (2*r), |f x| ≤ A) + (hc : TendstoUniformly (fun k (x : closedBall z (2*r)) => F k x) (fun x => f x) atTop) + (φ : X → ℝ) {Lφ B : ℝ≥0} (hφ : LipschitzWith Lφ φ) + (hs : HasCompactSupport φ) (hB : ∀ x, |φ x| ≤ B) (hφ0 : ∀ x, 0 ≤ φ x) + (hzero : ∀ x ∉ closedBall z r, φ x = 0) + {C : ℝ} (hC : 0 ≤ C) + (hsource : ∀ k, ∃ (u : SobolevSpace μ Q) (d : Lp ℝ 2 μ), + IsWeakLaplacian μ Q u d ∧ + (SobolevSpace.toLp μ Q u =ᵐ[μ.restrict (closedBall z r)] F k) ∧ + Integrable (fun x => φ x*|d x|) μ ∧ (∫ x, φ x*|d x| ∂μ) ≤ C) : + Tendsto (fun k => weightedGamma μ Q (fun x => (φ x)^2) + (radialLocalSobolev μ Q z hr (hF k) (hFb k)-radialLocalSobolev μ Q z hr hf hfb) + (radialLocalSobolev μ Q z hr (hF k) (hFb k)-radialLocalSobolev μ Q z hr hf hfb)) + atTop (𝓝 0) := by + choose u d hd hu hdi hdC using hsource + let η := SobolevSpace.ofLipschitzCompact μ Q hφ hs + have hη : SobolevSpace.toLp μ Q η =ᵐ[μ] φ := SobolevSpace.ofLipschitzCompact_coe μ Q hφ hs + have hgrad : ∀ᵐ x ∂μ, |SobolevSpace.minimalSlope μ Q η x| ≤ Lφ := by + filter_upwards [SobolevSpace.minimalSlope_le_lipschitz μ Q η hφ hη, + (Lp.coeFn_nonneg _).mpr (SobolevSpace.minimalSlope_nonneg μ Q η)] with x hx hn + rw [abs_of_nonneg hn] + exact hx + have hsq (k : ℕ) : Integrable (fun x => (φ x)^2*|d k x|) μ := by + have hi := (hdi k).bdd_mul hφ.continuous.aestronglyMeasurable + (Eventually.of_forall fun x => by simpa only [Real.norm_eq_abs] using hB x) + apply hi.congr + exact Eventually.of_forall fun x => by change φ x*(φ x*|d k x|)=(φ x)^2*|d k x|; ring + have hmass (k : ℕ) : (∫ x, (φ x)^2*|d k x| ∂μ) ≤ (B:ℝ)*C := by + calc + _ ≤ ∫ x, (B:ℝ)*(φ x*|d k x|) ∂μ := by + apply integral_mono_ae (hsq k) ((hdi k).const_mul B) + exact Eventually.of_forall fun x => by + have hbφ := (le_abs_self (φ x)).trans (hB x) + nlinarith [mul_nonneg (hφ0 x) (abs_nonneg (d k x)), + mul_nonneg (sub_nonneg.mpr hbφ) (mul_nonneg (hφ0 x) (abs_nonneg (d k x)))] + _ = (B:ℝ)*(∫ x, φ x*|d k x| ∂μ) := integral_const_mul _ _ + _ ≤ _ := mul_le_mul_of_nonneg_left (hdC k) B.coe_nonneg + apply local_source_strong_gradient μ Q u + (fun k => radialLocalSobolev μ Q z hr (hF k) (hFb k)) + (radialLocalSobolev μ Q z hr hf hfb) η d hd measurableSet_closedBall + · intro k + exact (hu k).trans (radialLocalSobolev_eq_on_ball μ Q z hr (hF k) (hFb k)).symm + · exact radialLocalSobolev_weak_limit μ Q z hr F f L A hF hf hFb hfb + (fun x hx => hc.tendsto_at ⟨x,hx⟩) + · exact hφ + · exact hs + · exact hB + · exact hφ0 + · exact hzero + · exact hη + · exact hgrad + · exact mul_nonneg B.coe_nonneg hC + · exact hsq + · exact hmass + · intro D hD + obtain ⟨N,hN⟩ := eventually_atTop.mp ((Metric.tendstoUniformly_iff.mp hc) (D/2) (by positivity)) + refine ⟨N,fun i hi j hj => ?_⟩ + filter_upwards [(ae_restrict_iff' measurableSet_closedBall).mp (hu i), + (ae_restrict_iff' measurableSet_closedBall).mp (hu j)] with x hix hjx hne + have hxr : x ∈ closedBall z r := by + by_contra hx + exact hne (hzero x hx) + have hx2 : x ∈ closedBall z (2*r) := closedBall_subset_closedBall (by linarith) hxr + rw [hix hxr,hjx hxr] + have hai := hN i hi ⟨x,hx2⟩ + have haj := hN j hj ⟨x,hx2⟩ + change dist (f x) (F i x) < D/2 at hai + change dist (f x) (F j x) < D/2 at haj + rw [dist_comm] at hai haj + have htri := dist_triangle (F i x) (f x) (F j x) + rw [dist_comm (f x) (F j x)] at htri + simpa only [Real.dist_eq] using htri.trans (le_of_lt (by linarith)) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/RawCutoffError.lean b/lean/OAI/Geometry/RCD/Sobolev/RawCutoffError.lean new file mode 100644 index 0000000000000000000000000000000000000000..d38a358d92d5ce1ea89e7b320a9c52bdd693154b --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/RawCutoffError.lean @@ -0,0 +1,70 @@ +import OAI.Geometry.RCD.Heat.GaussianCutoffError + +namespace OAI + +/-! # Directional cutoff error outside the controlled normalization range -/ + +open Set MeasureTheory +open scoped InnerProductSpace ENNReal NNReal + +noncomputable section + +namespace RegularPointCoordinates + +variable {X E : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E] + (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +omit [ProperSpace X] [CompleteSpace E] in +/-- A raw gradient bound gives a global cutoff error budget after any +linear change of frame. No regularity is required outside the cutoff. -/ +theorem cutoff_direction_error_le_raw (U : E →L[ℝ] SobolevSpace μ hQ) + (A : E →L[ℝ] E) {s : Set X} (hsfin : μ s ≠ ∞) + {χ : X → ℝ} (hχ : Continuous χ) + (hχrange : ∀ x, 0 ≤ χ x ∧ χ x ≤ 1) (hχzero : ∀ x ∉ s, χ x = 0) + {L B : ℝ} (hL : 0 ≤ L) + (hgradient : ∀ v : E, ∀ᵐ x ∂μ.restrict s, + localGamma μ hQ (U v) (U v) x ≤ L * ‖v‖ ^ 2) + (hframe : ∀ v : E, ‖A v‖ ^ 2 ≤ B * ‖v‖ ^ 2) (v : E) : + (∫ x, χ x * |localGamma μ hQ (U (A v)) (U (A v)) x - ‖v‖ ^ 2| ∂μ) ≤ + (L * B + 1) * μ.real s * ‖v‖ ^ 2 := by + have hpoint : ∀ᵐ x ∂μ.restrict s, + χ x * |localGamma μ hQ (U (A v)) (U (A v)) x - ‖v‖ ^ 2| ≤ + (L * B + 1) * ‖v‖ ^ 2 := by + filter_upwards [hgradient (A v), ae_restrict_of_ae (localGamma_self μ hQ (U (A v)))] + with x hx hself + have hnonneg : 0 ≤ localGamma μ hQ (U (A v)) (U (A v)) x := by + rw [hself] + positivity + have hu := hx.trans (mul_le_mul_of_nonneg_left (hframe v) hL) + have habs : |localGamma μ hQ (U (A v)) (U (A v)) x - ‖v‖ ^ 2| ≤ + (L * B + 1) * ‖v‖ ^ 2 := by + apply abs_le.mpr + constructor <;> nlinarith [sq_nonneg ‖v‖] + exact (mul_le_of_le_one_left (abs_nonneg _) (hχrange x).2).trans habs + have hχb : ∀ᵐ x ∂μ, ‖χ x‖ ≤ ((1 : ℝ≥0) : ℝ) := + Filter.Eventually.of_forall fun x => by + rw [Real.norm_eq_abs, abs_of_nonneg (hχrange x).1] + exact (hχrange x).2 + have hsupp : Function.support χ ⊆ s := by + intro x hx + by_contra hn + exact hx (hχzero x hn) + have hχi : Integrable χ μ := + (integrableOn_iff_integrable_of_support_subset hsupp).mp + ((integrableOn_const hsfin (C := (1 : ℝ))).mono' + hχ.aestronglyMeasurable.restrict (ae_restrict_of_ae hχb)) + have hi := weighted_direction_error_integrable μ hQ (U (A v)) (‖v‖ ^ 2) + hχ.aestronglyMeasurable hχb hχi + (Filter.Eventually.of_forall fun x => (hχrange x).1) + rw [← setIntegral_eq_integral_of_forall_compl_eq_zero + (fun x hx => by rw [hχzero x hx, zero_mul])] + have hb := integral_mono_ae hi.integrableOn (integrableOn_const hsfin) hpoint + simpa only [integral_const, Measure.real, Measure.restrict_apply_univ, smul_eq_mul, + mul_assoc, mul_left_comm] using hb + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/RealCutoffConvergence.lean b/lean/OAI/Geometry/RCD/Sobolev/RealCutoffConvergence.lean new file mode 100644 index 0000000000000000000000000000000000000000..82b1c44b5467f20d1b12bfbac7cea45bb1572918 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/RealCutoffConvergence.lean @@ -0,0 +1,22 @@ +import Mathlib.Analysis.SpecificLimits.Basic +import Mathlib.Analysis.Normed.Group.Continuity +import Mathlib.Analysis.Normed.Group.Real + +namespace OAI + +/-! # Transfer of a scalar limit through the proved cutoff error -/ + +open Filter +open scoped Topology +namespace RegularPointCoordinates + +theorem tendsto_of_abs_cutoff_error {ι : Type*} {l : Filter ι} + {f g e : ι → ℝ} {a : ℝ} (hg : Tendsto g l (𝓝 a)) (he : Tendsto e l (𝓝 0)) + (hb : ∀ᶠ i in l, |f i-g i| ≤ e i) : Tendsto f l (𝓝 a) := by + have hz : Tendsto (fun i => f i-g i) l (𝓝 0) := + squeeze_zero_norm' (by simpa only [Real.norm_eq_abs] using hb) he + simpa only [sub_add_cancel,zero_add] using hz.add hg + +end RegularPointCoordinates + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/ReciprocalWeightedTest.lean b/lean/OAI/Geometry/RCD/Sobolev/ReciprocalWeightedTest.lean new file mode 100644 index 0000000000000000000000000000000000000000..401fee1322dfc840e2363b6c26b41ccfa6a0ba15 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/ReciprocalWeightedTest.lean @@ -0,0 +1,64 @@ +import OAI.Geometry.RCD.Heat.ShiftedLogarithmPairing + +namespace OAI + +/-! # A bounded reciprocal-weighted Sobolev test + +The reciprocal itself need not be in L². Its centered composition and +the original test construct their product, with the exact Gamma rule. +-/ + +open Set Filter MeasureTheory +open scoped NNReal ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +theorem reciprocal_weighted_test (u w : SobolevSpace μ hQ) + {ε : ℝ} (hε : 0<ε) (A C : ℝ≥0) + (hu : ∀ᵐ x ∂μ, SobolevSpace.toLp μ hQ u x∈Icc 0 (A:ℝ)) + (hw : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ w x|≤C) : + ∃ (J : SobolevSpace μ hQ) (B : ℝ≥0), + (SobolevSpace.toLp μ hQ J =ᵐ[μ] fun x => + SobolevSpace.toLp μ hQ w x/(ε+SobolevSpace.toLp μ hQ u x)) ∧ + (∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ J x|≤B) ∧ + (localGamma μ hQ u J =ᵐ[μ] fun x => + localGamma μ hQ u w x/(ε+SobolevSpace.toLp μ hQ u x)- + SobolevSpace.toLp μ hQ w x*localGamma μ hQ u u x / + (ε+SobolevSpace.toLp μ hQ u x)^2) := by + obtain ⟨v,B,hv,hB,hΓv⟩ := shifted_reciprocal_sobolev μ hQ u hε A hu + let P := SobolevSpace.product μ hQ w v C B + let J := P+ε⁻¹ • w + have hJ : SobolevSpace.toLp μ hQ J =ᵐ[μ] fun x => + SobolevSpace.toLp μ hQ w x/(ε+SobolevSpace.toLp μ hQ u x) := by + filter_upwards [SobolevSpace.product_coe μ hQ w v C B hw hB,hv, + Lp.coeFn_add (SobolevSpace.toLp μ hQ P) (ε⁻¹ • SobolevSpace.toLp μ hQ w), + Lp.coeFn_smul ε⁻¹ (SobolevSpace.toLp μ hQ w)] with x hp hvx ha hs + change SobolevSpace.toLp μ hQ P x = _ at hp + change (SobolevSpace.toLp μ hQ P+ε⁻¹ • SobolevSpace.toLp μ hQ w) x = _ + simp only [ha,Pi.add_apply,hs,Pi.smul_apply,smul_eq_mul,hp,hvx] + ring + refine ⟨J,⟨ε⁻¹,inv_nonneg.mpr hε.le⟩*C,hJ,?_,?_⟩ + · filter_upwards [hJ,hu,hw] with x hx hy hz + rw [hx,abs_div,abs_of_pos (add_pos_of_pos_of_nonneg hε hy.1)] + change _ ≤ ε⁻¹*(C:ℝ) + calc + _ ≤ (C:ℝ)/(ε+SobolevSpace.toLp μ hQ u x) := + div_le_div_of_nonneg_right hz (add_nonneg hε.le hy.1) + _ ≤ (C:ℝ)/ε := div_le_div_of_nonneg_left C.coe_nonneg hε (le_add_of_nonneg_right hy.1) + _ = _ := by ring + · have hγv : localGamma μ hQ u v =ᵐ[μ] fun x => + -localGamma μ hQ u u x/(ε+SobolevSpace.toLp μ hQ u x)^2 := + (localGamma_comm μ hQ u v).trans (hΓv u) + filter_upwards [localGamma_add_right μ hQ u P (ε⁻¹ • w), + localGamma_smul_right μ hQ ε⁻¹ u w, + localGamma_product_right μ hQ u w v C B hw hB,hv,hγv] with x ha hs hp hvx hγ + rw [ha,hs,hp,hvx,hγ] + ring + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/RecoveredTestEnergy.lean b/lean/OAI/Geometry/RCD/Sobolev/RecoveredTestEnergy.lean new file mode 100644 index 0000000000000000000000000000000000000000..e77f704c602cd35463e614ae4bf740a8158018a0 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/RecoveredTestEnergy.lean @@ -0,0 +1,48 @@ +import OAI.Geometry.RCD.Sobolev.SobolevPointedTestRecovery + +namespace OAI + +/-! # Rescaled energy of the actual recovered Dirichlet tests -/ + +open Set Metric Filter MeasureTheory +open scoped NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +omit [ProperSpace X] in +theorem NoncollapsedRCD.rescaled_test_energy_le {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) {p : X} {r S D : ℝ} (hr : 0 G x^2) Ω μ) + (hgrad : ∀ᵐ x ∂μ.restrict Ω, r*SobolevSpace.minimalSlope μ hQ w x≤G x) : + r^2*(μ.real Ω)⁻¹*(∫ x in Ω, localGamma μ hQ w w x ∂μ)≤ + (μ.real Ω)⁻¹*(∫ x in Ω, G x^2 ∂μ) := by + have hp : ∀ᵐ x ∂μ.restrict Ω, r^2*localGamma μ hQ w w x≤G x^2 := by + filter_upwards [hgrad,ae_restrict_of_ae (localGamma_self μ hQ w), + ae_restrict_of_ae ((Lp.coeFn_nonneg _).mpr (SobolevSpace.minimalSlope_nonneg μ hQ w))] + with x hx he hn + rw [he] + simpa only [mul_pow] using pow_le_pow_left₀ (mul_nonneg hr hn) hx 2 + have hi := integral_mono_ae ((localGamma_memL1 μ hQ w w).integrableOn.const_mul (r^2)) hG hp + rw [integral_const_mul] at hi + have hmass : 0≤μ.real Ω := ENNReal.toReal_nonneg + have hm := mul_le_mul_of_nonneg_left hi (inv_nonneg.mpr hmass) + simpa only [mul_assoc,mul_left_comm] using hm + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/RemoveExceptionalTimes.lean b/lean/OAI/Geometry/RCD/Sobolev/RemoveExceptionalTimes.lean new file mode 100644 index 0000000000000000000000000000000000000000..1d131ae4ea09234a4300e016802888862ee7feda --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/RemoveExceptionalTimes.lean @@ -0,0 +1,66 @@ +import Mathlib.Topology.MetricSpace.Lipschitz +import Mathlib.MeasureTheory.Measure.Lebesgue.Basic +import Mathlib.MeasureTheory.Measure.OpenPos + +namespace OAI + +/-! # Removing countably many times from a uniformly Lipschitz cylinder + +The spatial estimates persist under the unique continuous time extension. +Only scalar Lipschitz extension and density of the good times are used. +-/ + +open Set Filter MeasureTheory +open scoped Topology NNReal +noncomputable section +namespace RegularPointCoordinates + +theorem remove_countable_times {Y : Type*} [PseudoMetricSpace Y] + {δ : ℝ} (N : Set ℝ) (hN : N.Countable) (G : ℝ → Y → ℝ) (C L : ℝ≥0) + (htime : ∀ x, LipschitzOnWith C (fun t => G t x) (Ioo δ 1 \ N)) + (hspace : ∀ t ∈ Ioo δ 1, t ∉ N → LipschitzWith L (G t)) : + ∃ U : ℝ → Y → ℝ, + (∀ x, LipschitzWith C (fun t => U t x)) ∧ + (∀ t ∈ Ioo δ 1, LipschitzWith L (U t)) ∧ + (∀ t ∈ Ioo δ 1, t ∉ N → ∀ x, U t x = G t x) ∧ + LipschitzOnWith (C+L) (Function.uncurry U) (Ioo δ 1 ×ˢ univ) := by + classical + choose V hV he using fun x => (htime x).extend_real + let U := fun t x => V x t + have hgood (t : ℝ) (ht : t ∈ Ioo δ 1) (htN : t ∉ N) (x : Y) : U t x = G t x := + (he x ⟨ht,htN⟩).symm + have hcl (t : ℝ) (ht : t ∈ Ioo δ 1) : t ∈ closure (Ioo δ 1 \ N) := by + have hd : Dense Nᶜ := volume.dense_of_ae (hN.ae_notMem volume) + have hh := isOpen_Ioo.inter_closure (t := Nᶜ) ⟨ht,hd t⟩ + simpa only [sdiff_eq] using hh + have hsp (t : ℝ) (ht : t ∈ Ioo δ 1) : LipschitzWith L (U t) := by + apply LipschitzWith.of_dist_le_mul + intro x y + have hc : IsClosed {u : ℝ | dist (V x u) (V y u) ≤ L * dist x y} := + isClosed_le ((hV x).continuous.dist (hV y).continuous) continuous_const + have hs : Ioo δ 1 \ N ⊆ {u : ℝ | dist (V x u) (V y u) ≤ L * dist x y} := by + intro u hu + change dist (U u x) (U u y) ≤ _ + rw [hgood u hu.1 hu.2 x,hgood u hu.1 hu.2 y] + exact (hspace u hu.1 hu.2).dist_le_mul x y + exact (hc.closure_subset_iff.mpr hs) (hcl t ht) + refine ⟨U,hV,hsp,hgood,?_⟩ + apply LipschitzOnWith.of_dist_le_mul + intro q hq q' hq' + change dist (U q.1 q.2) (U q'.1 q'.2) ≤ _ + have hdt : dist q.1 q'.1 ≤ dist q q' := by simp only [Prod.dist_eq]; exact le_max_left _ _ + have hdx : dist q.2 q'.2 ≤ dist q q' := by simp only [Prod.dist_eq]; exact le_max_right _ _ + calc + _ ≤ dist (U q.1 q.2) (U q'.1 q.2) + dist (U q'.1 q.2) (U q'.1 q'.2) := dist_triangle _ _ _ + _ ≤ C * dist q.1 q'.1 + L * dist q.2 q'.2 := + add_le_add ((hV q.2).dist_le_mul q.1 q'.1) ((hsp q'.1 hq'.1).dist_le_mul q.2 q'.2) + _ ≤ C * dist q q' + L * dist q q' := + add_le_add (mul_le_mul_of_nonneg_left hdt C.coe_nonneg) + (mul_le_mul_of_nonneg_left hdx L.coe_nonneg) + _ = _ := by push_cast; ring + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/RescaledHarmonicEnergy.lean b/lean/OAI/Geometry/RCD/Sobolev/RescaledHarmonicEnergy.lean new file mode 100644 index 0000000000000000000000000000000000000000..e56664410383991957355d9a093bfd7c0ceb660b --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/RescaledHarmonicEnergy.lean @@ -0,0 +1,47 @@ +import OAI.Geometry.RCD.Sobolev.HarmonicInteriorEnergy + +namespace OAI + +/-! # Uniform local energy for dimensionless harmonic sequences -/ + +open Set Metric MeasureTheory +open scoped ENNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + +/-- The physical radius is `S * r`, while the compactness energy is +normalized by `r²`. The interior estimate supplies the required +bound uniformly over every center and every admissible radius. -/ +theorem LocalHarmonicL2GradientInput.rescaled_interior_energy {K : ℝ} {n : ℕ} + {hX : NoncollapsedRCD K n X} (hinput : LocalHarmonicL2GradientInput hX) (hn : 2 ≤ n) + {S ρ : ℝ} (hS : 0 < S) (hρ : 0 < ρ) (hρS : ρ < S) : + ∃ C : ℝ, 0 ≤ C ∧ ∀ (p : X) (r : ℝ), 0 < r → -1 ≤ K * r ^ 2 → + ∀ w : SobolevSpace (hausdorff n X) hX.quadratic, + IsSobolevHarmonicOn (hausdorff n X) hX.quadratic (ball p (S * r)) w → + ‖normalizeLocalL2 (hausdorff n X) (ball p (S * r)) + (ne_of_lt (hX.finiteOnBounded _ isBounded_ball)) + (SobolevSpace.restrictLp (hausdorff n X) hX.quadratic (ball p (S * r)) w)‖ ≤ 1 → + r ^ 2 * ((hausdorff n X).real (ball p (S * r)))⁻¹ * + (∫ x in ball p (ρ * r), localGamma (hausdorff n X) hX.quadratic w w x + ∂hausdorff n X) ≤ C := by + obtain ⟨C, hC, hbound⟩ := hinput.interior_energy hn (sq_nonneg S) + (div_pos hρ hS) ((div_lt_one hS).mpr hρS) + refine ⟨C ^ 2 / S ^ 2, by positivity, ?_⟩ + intro p r hr hcurv w hw hnorm + have hcurv' : -(S ^ 2) ≤ K * (S * r) ^ 2 := by + have hc := mul_le_mul_of_nonneg_left hcurv (sq_nonneg S) + nlinarith only [hc] + have hh := hbound p (S * r) (mul_pos hS hr) hcurv' w hw hnorm + have hradius : ρ / S * (S * r) = ρ * r := by field_simp + rw [hradius] at hh + apply (le_div_iff₀ (sq_pos_of_pos hS)).mpr + convert hh using 1; ring + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/RescaledLocalEnergyBound.lean b/lean/OAI/Geometry/RCD/Sobolev/RescaledLocalEnergyBound.lean new file mode 100644 index 0000000000000000000000000000000000000000..7e54d27462aa488c2fc32fb819496a5f3e56ef0f --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/RescaledLocalEnergyBound.lean @@ -0,0 +1,32 @@ +import OAI.Geometry.RCD.Sobolev.LocalEnergyMeasure + +namespace OAI + +/-! # Integrating a uniform rescaled gradient bound -/ + +open Set Filter MeasureTheory +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + +theorem rescaled_local_energy_bound (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + (w : SobolevSpace μ hQ) {A U : Set X} (hAU : A⊆U) (hfin : μ U≠⊤) + (hpos : 0<μ.real U) {r M : ℝ} (hM : 0≤M) + (hb : ∀ᵐ x ∂μ.restrict A, r^2*localGamma μ hQ w w x≤M) : + (r^2/μ.real U)*(∫ x in A, localGamma μ hQ w w x ∂μ)≤M := by + let : IsFiniteMeasure (μ.restrict A) := + ⟨by simpa only [Measure.restrict_apply_univ] using (lt_of_le_of_lt (measure_mono hAU) hfin.lt_top)⟩ + have hi := integral_mono_ae ((localGamma_memL1 μ hQ w w).restrict.const_mul (r^2)) + (integrable_const M) hb + rw [integral_const_mul,integral_const,smul_eq_mul,Measure.real,Measure.restrict_apply_univ] at hi + have hm : μ.real A≤μ.real U := measureReal_mono hAU hfin + have hu : r^2*(∫ x in A, localGamma μ hQ w w x ∂μ)≤μ.real U*M := + hi.trans (mul_le_mul_of_nonneg_right hm hM) + rw [div_mul_eq_mul_div] + exact (div_le_iff₀ hpos).mpr (by simpa only [mul_comm] using hu) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/ResidualBochnerMass.lean b/lean/OAI/Geometry/RCD/Sobolev/ResidualBochnerMass.lean new file mode 100644 index 0000000000000000000000000000000000000000..9069adc14d5236424fbd44651c1264e0abc4366b --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/ResidualBochnerMass.lean @@ -0,0 +1,68 @@ +import OAI.Geometry.RCD.Sobolev.BochnerMassFromEnergy +import OAI.Geometry.RCD.Sobolev.GoodLaplacianCutoff + +namespace OAI + +/-! # Small full mass for a residual with small gradient -/ + +open Set Metric MeasureTheory +open scoped InnerProductSpace BoundedContinuousFunction NNReal ENNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X E : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) [IsFiniteMeasureOnCompacts μ] + (hQ : QuadraticCheegerEnergy μ) + [NormedAddCommGroup E] [InnerProductSpace ℝ E] [FiniteDimensional ℝ E] + +/-- Testing the full Bochner equation with the actual good cutoff converts +an upper bound for the residual gradient into small mass on the inner ball. -/ +theorem GoodLaplacianCutoff.mass_le_of_gradient + {U : E →L[ℝ] SobolevSpace μ hQ} {M : PositiveBilinearMeasure X E} + {κ : ℝ} {p : X} {r ρ C β : ℝ} {L : ℝ≥0} {v : E} + (χ : GoodLaplacianCutoff μ hQ p ρ C) (_hρ : 0 < ρ) (hρr : ρ < r) + (hC : 0 ≤ C) (hκ : 0 ≤ κ) + (G : LocalHarmonicEnergy μ hQ U M κ p r L v) + (hgradient : ∀ᵐ x ∂μ.restrict (closedBall p (2 * ρ)), + localGamma μ hQ (U v) (U v) x ≤ β) : + ⟪v, M.massOperator (ball p ρ) v⟫_ℝ ≤ + ((C / ρ ^ 2) / 2 + κ) * β * μ.real (closedBall p (2 * ρ)) := by + let : IsFiniteMeasure (μ.restrict (closedBall p (2 * ρ))) := + ⟨by simpa only [Measure.restrict_apply_univ] using + (isCompact_closedBall p (2 * ρ)).measure_lt_top⟩ + have henergy : (∫ x in closedBall p (2 * ρ), localGamma μ hQ (U v) (U v) x ∂μ) ≤ + β * μ.real (closedBall p (2 * ρ)) := by + calc + _ ≤ ∫ _x in closedBall p (2 * ρ), β ∂μ := + integral_mono_ae (localGamma_memL1 μ hQ (U v) (U v)).integrableOn + (integrable_const _) hgradient + _ = _ := by + simp only [integral_const, smul_eq_mul, measureReal_restrict_apply_univ, mul_comm] + have hqs : ∀ᵐ x ∂μ, x ∉ ball p (2 * r) → χ.laplacian x = 0 := by + filter_upwards [χ.laplacian_locality] with x hx hnot + apply hx + right + have hdist : 2 * r ≤ dist p x := by + simpa only [mem_ball, dist_comm, not_lt] using hnot + linarith + have hqS : ∀ᵐ x ∂μ, x ∉ closedBall p (2 * ρ) → χ.laplacian x = 0 := by + filter_upwards [χ.laplacian_locality] with x hx hnot + apply hx + right + simpa only [mem_closedBall, dist_comm, not_le] using hnot + have hb := G.mass_le_of_energy μ hQ χ.weight χ.bounds (χ.hasCompactSupport μ hQ) + (fun x hx => by + exact lt_of_le_of_lt (χ.tsupport_subset μ hQ hx) + (show 2 * ρ < 2 * r by linarith)) + χ.sobolev χ.representative χ.laplacian χ.weak_laplacian hqs + (closedBall p (2 * ρ)) (ball p ρ) measurableSet_ball χ.one + (fun x hx => χ.zero x (by simpa only [mem_closedBall, dist_comm, not_le] using hx)) + hqS (div_nonneg hC (sq_nonneg ρ)) hκ χ.laplacian_bound henergy + simpa only [mul_assoc] using hb + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/RightSlopeCorrection.lean b/lean/OAI/Geometry/RCD/Sobolev/RightSlopeCorrection.lean new file mode 100644 index 0000000000000000000000000000000000000000..803b8ef3d2f7944ec6643b227c75890e1c40ab79 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/RightSlopeCorrection.lean @@ -0,0 +1,26 @@ +import Mathlib.Analysis.Calculus.Deriv.Slope + +namespace OAI + +/-! # A first-order correction retained in a one-sided comparison -/ + +open Filter Set +open scoped Topology +namespace RegularPointCoordinates + +theorem right_slope_correction_le {f g c : ℝ → ℝ} {a b d : ℝ} + (hf : Tendsto (fun t => (f t-f 0)/t) (𝓝[>] 0) (𝓝 a)) + (hg : Tendsto (fun t => (g t-g 0)/t) (𝓝[>] 0) (𝓝 b)) + (hc : Tendsto c (𝓝[>] 0) (𝓝 d)) (hzero : f 0=g 0) + (h : ∀ t, 0 simp [hzero] + | succ k ih => + have hsquare : b (k + 1) ^ 2 ≤ (b k / 2 + C * f k) ^ 2 := by + simpa only [pow_two] using mul_self_le_mul_self (hpos (k + 1)) (hrec k) + have hstep : b (k + 1) ^ 2 ≤ b k ^ 2 / 2 + 2 * C ^ 2 * f k ^ 2 := by + nlinarith [sq_nonneg (b k / 2 - C * f k)] + rw [Finset.sum_range_succ, Finset.sum_range_succ] + nlinarith + +/-- The diagonal error estimate used when summing metric increments. -/ +theorem contracting_recurrence_sq_sum_le {b f : ℕ → ℝ} {C : ℝ} + (hzero : b 0 = 0) (hpos : ∀ i, 0 ≤ b i) + (hrec : ∀ i, b (i + 1) ≤ b i / 2 + C * f i) (k : ℕ) : + (∑ i ∈ Finset.range k, b i ^ 2) ≤ + 4 * C ^ 2 * ∑ i ∈ Finset.range k, f i ^ 2 := by + have h := contracting_recurrence_sq_sum hzero hpos hrec k + nlinarith [sq_nonneg (b k)] + +/-- The same estimate needs the recurrence only below the scale being tested. -/ +theorem contracting_recurrence_sq_sum_upto {b f : ℕ → ℝ} {C : ℝ} + (k : ℕ) (hzero : b 0 = 0) (hpos : ∀ i, 0 ≤ b i) + (hrec : ∀ i < k, b (i + 1) ≤ b i / 2 + C * f i) : + (∑ i ∈ Finset.range k, b i ^ 2) + 2 * b k ^ 2 ≤ + 4 * C ^ 2 * ∑ i ∈ Finset.range k, f i ^ 2 := by + induction k with + | zero => simp [hzero] + | succ k ih => + have ih' := ih (fun i hi => hrec i (Nat.lt_trans hi (Nat.lt_succ_self k))) + have hsquare : b (k + 1) ^ 2 ≤ (b k / 2 + C * f k) ^ 2 := by + simpa only [pow_two] using + mul_self_le_mul_self (hpos (k + 1)) (hrec k (Nat.lt_succ_self k)) + have hstep : b (k + 1) ^ 2 ≤ b k ^ 2 / 2 + 2 * C ^ 2 * f k ^ 2 := by + nlinarith [sq_nonneg (b k / 2 - C * f k)] + rw [Finset.sum_range_succ, Finset.sum_range_succ] + nlinarith + +end RegularPointCoordinates + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/ScalarBochnerConstruction.lean b/lean/OAI/Geometry/RCD/Sobolev/ScalarBochnerConstruction.lean new file mode 100644 index 0000000000000000000000000000000000000000..267824c59ecc61e4797134f3c0df47472ef006ae --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/ScalarBochnerConstruction.lean @@ -0,0 +1,28 @@ +import OAI.Geometry.RCD.Heat.NonpositiveBakryLedoux +import OAI.Geometry.RCD.Heat.BakryLedouxScalarBochner + +namespace OAI + +/-! # Scalar dimensional Bochner for nonpositive curvature + +The estimate is derived from FullCD through the actual heat evolution, +with no Bakry--Ledoux or second-order input remaining. +-/ + +open MeasureTheory +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem NoncollapsedRCD.scalarBochner_nonpositive + (K : ℝ) (n : ℕ) [(hausdorff n X).Regular] (hn : 2 ≤ n) + (hX : NoncollapsedRCD K n X) (hK : K ≤ 0) (p : X) : + ScalarDimensionalBochner (hausdorff n X) hX.quadratic K n := by + have hn0 : (0:ℝ) ENNReal.ofReal (ρ x)) → + ∀ (F : C(S, ℝ)), (∀ a, 0 ε*Real.log (hX.compactHeatFactor hn p ν F (ε*s/2) (div_pos (mul_pos hε (hδ.trans_le hδs)) (by norm_num)) x)) ∧ + ∀ᵐ x ∂(hausdorff n X).restrict Ω, + (SobolevSpace.minimalSlope (hausdorff n X) hX.quadratic v x)^2≤ + Real.exp |K| * (4*C/δ+16*D*(R+dist z x)^2/δ^2) := by + obtain ⟨C,D,hC,hD,hdata⟩ := hX.compact_heat_factor_log_gradient hn p + refine ⟨C,D,hC,hD,?_⟩ + intro S _ ν _ ρ hρ hρ0 B hB hν F hF ε s δ hε hε1 hδ hδs hs1 z R hR hdist Ω hΩ + let μ := hausdorff n X + let Q := hX.quadratic + let t := ε*s/4 + have hs : 0 + ε*SobolevSpace.minimalSlope μ Q v x := by + rw [SobolevSpace.minimalSlope_smul_nonneg μ Q v hε.le] + exact Lp.coeFn_smul ε (SobolevSpace.minimalSlope μ Q v) + filter_upwards [hgrad,ae_restrict_of_ae hg] with x hx hy + rw [hy] + exact scaled_hamilton_bound (abs_nonneg K) hC hD.le hε hε1 hδ hδs hs1 rfl hx + +end RegularPointCoordinates.NoncollapsedRCD + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/ScaledCompactFactorLipschitz.lean b/lean/OAI/Geometry/RCD/Sobolev/ScaledCompactFactorLipschitz.lean new file mode 100644 index 0000000000000000000000000000000000000000..b3f5305f1bbc2304ffe4e6f08dbb5d035cafda19 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/ScaledCompactFactorLipschitz.lean @@ -0,0 +1,78 @@ +import OAI.Geometry.RCD.Sobolev.ScaledCompactFactorGradient +import OAI.Geometry.RCD.Sobolev.ContinuousLocalGradientBound + +namespace OAI + +/-! # Uniform local Lipschitz bounds for small-noise heat potentials + +The local weak-gradient estimate applies to the prescribed continuous +logarithm, so no noise-dependent choice of representative is made. +-/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped NNReal ENNReal Topology +noncomputable section +namespace RegularPointCoordinates.NoncollapsedRCD +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] {K : ℝ} {n : ℕ} (hX : NoncollapsedRCD K n X) + (hn : 2≤n) (p : X) [SeparableSpace X] + [IsLocallyFiniteMeasure (hausdorff n X)] [(hausdorff n X).Regular] + +theorem compact_heat_factor_scaled_lipschitz : + ∃ C D : ℝ, 0≤C ∧ 0 ENNReal.ofReal (ρ x)) → + ∀ (F : C(S, ℝ)), (∀ a, 0 ε*Real.log (hX.compactHeatFactor hn p ν F (ε*s/2) + (div_pos (mul_pos hε (hδ.trans_le hδs)) (by norm_num)) x)) (ball z r) := by + obtain ⟨C,D,hC,hD,hdata⟩ := hX.compact_heat_factor_scaled_gradient hn p + refine ⟨C,D,hC,hD,?_⟩ + intro S _ ν _ ρ hρ hρ0 B hB hν F hF ε s δ hε hε1 hδ hδs hs1 z R hR hdist r hr + let μ := hausdorff n X + let Q := hX.quadratic + let H := hX.compactHeatFactor hn p ν F (ε*s/2) + (div_pos (mul_pos hε (hδ.trans_le hδs)) (by norm_num)) + let M := Real.exp |K| * (4*C/δ+16*D*(R+8*r)^2/δ^2) + let L : ℝ≥0 := ⟨Real.sqrt M,Real.sqrt_nonneg _⟩ + have hM : 0≤M := by dsimp only [M]; positivity + have hL : (L:ℝ)^2=M := by + change (Real.sqrt M)^2=M + exact Real.sq_sqrt hM + obtain ⟨v,_q,_hq,hv,hgrad⟩ := hdata ν ρ hρ hρ0 hB hν F hF hε hε1 hδ hδs hs1 + z R hR hdist (closedBall z (8*r)) (isCompact_closedBall z (8*r)) + have hlog : Continuous (fun x => ε*Real.log (H x)) := by + apply continuous_const.mul + apply continuous_iff_continuousAt.mpr + intro x + exact (Real.continuousAt_log (hX.compactHeatFactor_positive hn p ν F hF _ _ x).ne').comp + H.continuous.continuousAt + have hrep : SobolevSpace.toLp μ Q v =ᵐ[μ.restrict (ball z (8*r))] fun x => ε*Real.log (H x) := + ae_restrict_of_ae_restrict_of_subset ball_subset_closedBall hv + have hg : ∀ᵐ x ∂μ.restrict (ball z (8*r)), localGamma μ Q v v x≤(L:ℝ)^2 := by + filter_upwards [ae_restrict_of_ae_restrict_of_subset ball_subset_closedBall hgrad, + ae_restrict_of_ae (localGamma_self μ Q v),ae_restrict_mem measurableSet_ball] with x hx he hm + rw [he] + have hd : dist z x≤8*r := (mem_ball'.mp hm).le + have hsq : (R+dist z x)^2≤(R+8*r)^2 := + pow_le_pow_left₀ (add_nonneg hR dist_nonneg) (add_le_add le_rfl hd) 2 + have hbound : Real.exp |K| * (4*C/δ+16*D*(R+dist z x)^2/δ^2)≤M := by + dsimp only [M] + apply mul_le_mul_of_nonneg_left _ (Real.exp_pos _).le + apply add_le_add le_rfl + exact div_le_div_of_nonneg_right + (mul_le_mul_of_nonneg_left hsq (by positivity)) (sq_nonneg δ) + rw [hL] + exact hx.trans hbound + exact hX.continuous_local_gradient_lipschitz hn v _ z hr L hlog.continuousOn hrep hg + +end RegularPointCoordinates.NoncollapsedRCD + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/ScaledCutoffIntegral.lean b/lean/OAI/Geometry/RCD/Sobolev/ScaledCutoffIntegral.lean new file mode 100644 index 0000000000000000000000000000000000000000..edc88f4733856ae39af49c2a96bf5be6faff00a1 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/ScaledCutoffIntegral.lean @@ -0,0 +1,102 @@ +import OAI.Geometry.RCD.Coordinates.CoordinateHeatInput +import OAI.Geometry.RCD.Sobolev.ScaledCutoffPairings +import OAI.Geometry.RCD.Heat.HeatBlockIntegrals + +namespace OAI + +/-! # Time integration preserves dimensionless cutoff-source control -/ + +open Set Metric MeasureTheory +open scoped NNReal InnerProductSpace ENNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) [μ.Regular] [IsLocallyFiniteMeasure μ] (hQ : QuadraticCheegerEnergy μ) + {ker : ℝ → X → X → ℝ} (hk : IsContinuousHeatKernel μ hQ ker) + +include hk in +theorem exists_scaled_cutoff_integral_bound (n : ℕ) (hg : HasCoordinateHeatBounds μ ker) + (hdiff : HasGaussianHeatDifferenceBounds μ ker) + {A V c B : ℝ} (hA : 0 ≤ A) (hV : 0 < V) (hc : 0 < c) (hB : 0 ≤ B) : + ∃ C : ℝ, 0 < C ∧ ∀ (R : ℝ), 0 < R → R ≤ 1 → + ∀ (U : Euclidean n →L[ℝ] SobolevSpace μ hQ) (M : PositiveBilinearMeasure X (Euclidean n)) + (κ r₀ : ℝ) (p : X) (L : ℝ≥0) + (G : ∀ v, LocalHarmonicEnergy μ hQ U M κ p r₀ L v) + (ρ C₀ : ℝ) (χ : GoodLaplacianCutoff μ hQ p ρ C₀), + 0 < ρ → ρ < r₀ → + (∀ w : Euclidean n, ‖w‖ ≤ 2 → R ^ 2 * + (∫ z, |cutoffSourceDensity μ hQ (G w).energy χ.sobolev χ.laplacian z| ∂μ) ≤ B * R ^ n) → + ∀ (r : ℝ) (x q : X), 0 < r → r ≤ R → + μ (ball q r) ≠ ∞ → V * r ^ n ≤ μ.real (ball q r) → dist x q ≤ A * r → + (∀ z, ρ ≤ dist p z → dist p z ≤ 2 * ρ → c * R ≤ dist x z) → + (∀ t, 0 < t → t ≤ R ^ 2 → ∀ z, ρ ≤ dist p z → dist p z ≤ 2 * ρ → + V * (Real.sqrt t) ^ n ≤ μ.real (ball z (Real.sqrt t))) → + ∀ v : Euclidean n, + IntervalIntegrable (fun t => ∫ z, kernelAverage μ ker t (ball q r) z * + cutoffSourceDensity μ hQ (G v).energy χ.sobolev χ.laplacian z ∂μ) volume 0 (r ^ 2) ∧ + IntervalIntegrable (fun t => ∫ z, (kernelAverage μ ker t (ball q r) z - ker t x z) * + cutoffSourceDensity μ hQ (G v).energy χ.sobolev χ.laplacian z ∂μ) volume (r ^ 2) (R ^ 2) ∧ + |∫ t in (0 : ℝ)..r ^ 2, ∫ z, kernelAverage μ ker t (ball q r) z * + cutoffSourceDensity μ hQ (G v).energy χ.sobolev χ.laplacian z ∂μ| + + |∫ t in r ^ 2..R ^ 2, ∫ z, (kernelAverage μ ker t (ball q r) z - ker t x z) * + cutoffSourceDensity μ hQ (G v).energy χ.sobolev χ.laplacian z ∂μ| ≤ + C * ‖v‖ ^ 2 * ((r / R) ^ 2 + r / R) := by + obtain ⟨C, hC, hb⟩ := exists_scaled_cutoff_pairing_bound μ hQ hk n hg hdiff hA hV hc hB + refine ⟨C, hC, ?_⟩ + intro R hR hR1 U M κ r₀ p L G ρ C₀ χ hρ hρr hL1 r x q hr hrR hfinite hvolume hcenter hsep hsource v + let d := fun z => cutoffSourceDensity μ hQ (G v).energy χ.sobolev χ.laplacian z + let f := fun t => ∫ z, kernelAverage μ ker t (ball q r) z * d z ∂μ + let g := fun t => ∫ z, (kernelAverage μ ker t (ball q r) z - ker t x z) * d z ∂μ + let Bs := (C / R ^ 2) * ‖v‖ ^ 2 + let Bl := (C / R ^ 3) * ‖v‖ ^ 2 + have hBs : 0 ≤ Bs := by dsimp only [Bs]; positivity + have hBl : 0 ≤ Bl := by dsimp only [Bl]; positivity + have hrr : r ^ 2 ≤ R ^ 2 := (sq_le_sq₀ hr.le hR.le).mpr hrR + have hR2 : R ^ 2 ≤ 1 := by nlinarith + have hr1 : r ≤ 1 := hrR.trans hR1 + have hd : Integrable d μ := cutoffSourceDensity_integrable μ hQ _ _ _ + have hz : ∀ᵐ z ∂μ, z ∉ closedBall p (2 * ρ) → d z = 0 := χ.error_zero_off_outerBall μ hQ _ + have hfc : ContinuousOn f (Ioi 0) := average_density_continuousOn_time μ hQ hk + (ball q r) measurableSet_ball hfinite hd (isCompact_closedBall p (2 * ρ)) hz + have hgc : ContinuousOn g (Ioi 0) := difference_density_continuousOn_time μ hQ hk + (ball q r) measurableSet_ball isBounded_ball x hd (isCompact_closedBall p (2 * ρ)) hz + have hfb (t : ℝ) (ht : 0 < t) (htr : t ≤ r ^ 2) : |f t| ≤ Bs := + (hb R hR U M κ r₀ p L G ρ C₀ χ hρ hρr hL1 r t x q hr hr1 ht + (htr.trans (hrr.trans hR2)) hfinite hvolume hcenter hsep + (hsource t ht (htr.trans hrr)) v).1 htr + have hgb (t : ℝ) (htr : r ^ 2 ≤ t) (htR : t ≤ R ^ 2) : |g t| ≤ Bl * r := by + have ht : 0 < t := (sq_pos_of_pos hr).trans_le htr + have h := (hb R hR U M κ r₀ p L G ρ C₀ χ hρ hρr hL1 r t x q hr hr1 ht + (htR.trans hR2) hfinite hvolume hcenter hsep (hsource t ht htR) v).2 htr + simpa only [g, d, Bl, div_eq_mul_inv, mul_assoc, mul_comm, mul_left_comm] using h + have hfi : IntervalIntegrable f volume 0 (r ^ 2) := by + rw [intervalIntegrable_iff_integrableOn_Ioc_of_le (sq_nonneg r)] + apply IntegrableOn.of_bound measure_Ioc_lt_top + ((hfc.mono (fun _ ht => ht.1)).aestronglyMeasurable measurableSet_Ioc) Bs + filter_upwards [ae_restrict_mem measurableSet_Ioc] with t ht + simpa only [Real.norm_eq_abs] using hfb t ht.1 ht.2 + have hgi : IntervalIntegrable g volume (r ^ 2) (R ^ 2) := + (hgc.mono (fun t ht => (sq_pos_of_pos hr).trans_le ht.1)).intervalIntegrable_of_Icc hrr + refine ⟨hfi, hgi, ?_⟩ + have hshort : |∫ t in (0 : ℝ)..r ^ 2, f t| ≤ Bs * r ^ 2 := + short_time_integral_norm_le hr (mul_nonneg hBs (sq_nonneg r)) (by + intro t ht htr + nlinarith only [mul_le_mul_of_nonneg_left (hfb t ht htr) (sq_nonneg r)]) + have hlong : |∫ t in r ^ 2..R ^ 2, g t| ≤ Bl * r * R ^ 2 := by + have h := intervalIntegral.norm_integral_le_of_norm_le_const (C := Bl * r) (f := g) (by + intro t ht + rw [uIoc_of_le hrr] at ht + simpa only [Real.norm_eq_abs] using hgb t ht.1.le ht.2) + rw [abs_of_nonneg (sub_nonneg.mpr hrr)] at h + exact h.trans (mul_le_mul_of_nonneg_left (by linarith [sq_nonneg r]) (mul_nonneg hBl hr.le)) + calc + _ ≤ Bs * r ^ 2 + Bl * r * R ^ 2 := add_le_add hshort hlong + _ = _ := by dsimp only [Bs, Bl]; field_simp [hR.ne'] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/ScaledCutoffL1.lean b/lean/OAI/Geometry/RCD/Sobolev/ScaledCutoffL1.lean new file mode 100644 index 0000000000000000000000000000000000000000..82e5332d7efce22f7f0a5fefd85c52a15825fa8e --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/ScaledCutoffL1.lean @@ -0,0 +1,118 @@ +import OAI.Geometry.RCD.Sobolev.CutoffErrorL1 +import OAI.Geometry.RCD.Sobolev.HarmonicEnergyGradient + +namespace OAI + +/-! # Dimensionless bounds for the actual harmonic cutoff source -/ + +open Set Metric MeasureTheory +open scoped NNReal InnerProductSpace + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem harmonic_cutoff_scaled_L1 {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) [IsFiniteMeasureOnCompacts (hausdorff n X)] + (hhessian : LocalPoissonHessianInput hX) (hproduct : LocalPoissonGradientProductInput hX) + {p : X} {R κ C V : ℝ} (hR : 0 < R) (hκ : 0 ≤ κ) (hK : -κ ≤ K) + (hcurv : κ * R ^ 2 ≤ 1) (hC : 0 ≤ C) + (L : ℝ≥0) (u : Fin n → SobolevSpace (hausdorff n X) hX.quadratic) + (hu : ∀ i, IsSobolevHarmonicOn (hausdorff n X) hX.quadratic (ball p (32 * R)) (u i)) + (hgrad : ∀ v, ∀ᵐ x ∂(hausdorff n X).restrict (ball p (32 * R)), + localGamma (hausdorff n X) hX.quadratic + (sobolevColumnMap (hausdorff n X) hX.quadratic u v) + (sobolevColumnMap (hausdorff n X) hX.quadratic u v) x ≤ (L : ℝ) ^ 2 * ‖v‖ ^ 2) + {M : PositiveBilinearMeasure X (Euclidean n)} + (G : ∀ v, LocalHarmonicEnergy (hausdorff n X) hX.quadratic + (sobolevColumnMap (hausdorff n X) hX.quadratic u) M κ p (4 * R) L v) + (χ : GoodLaplacianCutoff (hausdorff n X) hX.quadratic p (3 * R / 8) C) + (ψ : GoodLaplacianCutoff (hausdorff n X) hX.quadratic p R C) + (hvol : (hausdorff n X).real (ball p R) ≤ V * R ^ n) + (hvol2 : (hausdorff n X).real (closedBall p (2 * R)) ≤ V * (3 * R) ^ n) + (v : Euclidean n) : + let D := (L : ℝ) ^ 2 * ‖v‖ ^ 2 + R ^ 2 * (∫ x, |cutoffSourceDensity (hausdorff n X) hX.quadratic + (G v).energy χ.sobolev χ.laplacian x| ∂hausdorff n X) ≤ + (64 * (D * C + C ^ 2) + 4 * D ^ 2 * (C / 2 + 1) * 3 ^ n) * V * R ^ n := by + intro D + let μ := hausdorff n X + have hD : 0 ≤ D := mul_nonneg (sq_nonneg _) (sq_nonneg _) + let E := ∫ x in ball p R, localGamma μ hX.quadratic (G v).energy (G v).energy x ∂μ + have hE := harmonic_energy_gradient_le hX hhessian hproduct hR hκ hK hC L u hu hgrad ψ v + (G v).energy (ae_restrict_of_ae_restrict_of_subset + (ball_subset_ball (show R ≤ 2 * (4 * R) by linarith)) (G v).representative) + change E ≤ 4 * D * (((C / R ^ 2) / 2 + κ) * D * μ.real (closedBall p (2 * R))) at hE + have hE' : R ^ 2 * E ≤ 4 * D ^ 2 * (C / 2 + 1) * 3 ^ n * V * R ^ n := by + calc + _ ≤ R ^ 2 * (4 * D * (((C / R ^ 2) / 2 + κ) * D * μ.real (closedBall p (2 * R)))) := + mul_le_mul_of_nonneg_left hE (sq_nonneg _) + _ = 4 * D ^ 2 * (C / 2 + κ * R ^ 2) * μ.real (closedBall p (2 * R)) := by + field_simp [hR.ne'] + _ ≤ 4 * D ^ 2 * (C / 2 + 1) * μ.real (closedBall p (2 * R)) := by + gcongr + _ ≤ 4 * D ^ 2 * (C / 2 + 1) * (V * (3 * R) ^ n) := + mul_le_mul_of_nonneg_left hvol2 (by positivity) + _ = _ := by rw [mul_pow]; ring + have hb := χ.error_L1_le μ hX.quadratic (by positivity) hC (show 2 * (3 * R / 8) < R by linarith) + (G v).energy (by simpa only [NNReal.coe_mul, NNReal.coe_pow, coe_nnnorm] using (G v).bounded) + change (∫ x, |cutoffSourceDensity μ hX.quadratic (G v).energy χ.sobolev χ.laplacian x| ∂μ) ≤ + (D * (C / (3 * R / 8) ^ 2) + (C / (3 * R / 8)) ^ 2) * μ.real (ball p R) + E at hb + calc + _ ≤ R ^ 2 * ((D * (C / (3 * R / 8) ^ 2) + (C / (3 * R / 8)) ^ 2) * μ.real (ball p R) + E) := + mul_le_mul_of_nonneg_left hb (sq_nonneg _) + _ = (64 / 9 : ℝ) * (D * C + C ^ 2) * μ.real (ball p R) + R ^ 2 * E := by + field_simp [hR.ne']; ring + _ ≤ 64 * (D * C + C ^ 2) * μ.real (ball p R) + R ^ 2 * E := by + gcongr; norm_num + _ ≤ 64 * (D * C + C ^ 2) * (V * R ^ n) + + 4 * D ^ 2 * (C / 2 + 1) * 3 ^ n * V * R ^ n := + add_le_add (mul_le_mul_of_nonneg_left hvol (by positivity)) hE' + _ = _ := by ring + +/-- One coefficient controls all unit coordinate tests and their pairwise sums. -/ +theorem harmonic_cutoff_uniform_L1 {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) [IsFiniteMeasureOnCompacts (hausdorff n X)] + (hhessian : LocalPoissonHessianInput hX) (hproduct : LocalPoissonGradientProductInput hX) + {p : X} {R κ C V B : ℝ} (hR : 0 < R) (hκ : 0 ≤ κ) (hK : -κ ≤ K) + (hcurv : κ * R ^ 2 ≤ 1) (hC : 0 ≤ C) (hV : 0 ≤ V) (hB : 0 ≤ B) + (L : ℝ≥0) (u : Fin n → SobolevSpace (hausdorff n X) hX.quadratic) + (hu : ∀ i, IsSobolevHarmonicOn (hausdorff n X) hX.quadratic (ball p (32 * R)) (u i)) + (hgrad : ∀ v, ∀ᵐ x ∂(hausdorff n X).restrict (ball p (32 * R)), + localGamma (hausdorff n X) hX.quadratic + (sobolevColumnMap (hausdorff n X) hX.quadratic u v) + (sobolevColumnMap (hausdorff n X) hX.quadratic u v) x ≤ (L : ℝ) ^ 2 * ‖v‖ ^ 2) + {M : PositiveBilinearMeasure X (Euclidean n)} + (G : ∀ v, LocalHarmonicEnergy (hausdorff n X) hX.quadratic + (sobolevColumnMap (hausdorff n X) hX.quadratic u) M κ p (4 * R) L v) + (χ : GoodLaplacianCutoff (hausdorff n X) hX.quadratic p (3 * R / 8) C) + (ψ : GoodLaplacianCutoff (hausdorff n X) hX.quadratic p R C) + (hvol : (hausdorff n X).real (ball p R) ≤ V * R ^ n) + (hvol2 : (hausdorff n X).real (closedBall p (2 * R)) ≤ V * (3 * R) ^ n) + (v : Euclidean n) (hL : (L : ℝ) ^ 2 ≤ B) (hv : ‖v‖ ≤ 2) : + let D := 4 * B + R ^ 2 * (∫ x, |cutoffSourceDensity (hausdorff n X) hX.quadratic + (G v).energy χ.sobolev χ.laplacian x| ∂hausdorff n X) ≤ + (64 * (D * C + C ^ 2) + 4 * D ^ 2 * (C / 2 + 1) * 3 ^ n) * V * R ^ n := by + intro D + have h := harmonic_cutoff_scaled_L1 hX hhessian hproduct hR hκ hK hcurv hC + L u hu hgrad G χ ψ hvol hvol2 v + have hD : (L : ℝ) ^ 2 * ‖v‖ ^ 2 ≤ D := by + have hv2 : ‖v‖ ^ 2 ≤ 4 := by nlinarith [norm_nonneg v] + calc + _ ≤ B * ‖v‖ ^ 2 := mul_le_mul_of_nonneg_right hL (sq_nonneg _) + _ ≤ B * 4 := mul_le_mul_of_nonneg_left hv2 hB + _ = D := by dsimp only [D]; ring + have hcoef : 64 * ((L : ℝ) ^ 2 * ‖v‖ ^ 2 * C + C ^ 2) + + 4 * ((L : ℝ) ^ 2 * ‖v‖ ^ 2) ^ 2 * (C / 2 + 1) * 3 ^ n ≤ + 64 * (D * C + C ^ 2) + 4 * D ^ 2 * (C / 2 + 1) * 3 ^ n := by + gcongr + exact h.trans (mul_le_mul_of_nonneg_right + (mul_le_mul_of_nonneg_right hcoef hV) (pow_nonneg hR.le _)) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/ScaledCutoffPairings.lean b/lean/OAI/Geometry/RCD/Sobolev/ScaledCutoffPairings.lean new file mode 100644 index 0000000000000000000000000000000000000000..73700567843a240fea86285bb61eb118ec9c7ace --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/ScaledCutoffPairings.lean @@ -0,0 +1,128 @@ +import OAI.Geometry.RCD.Coordinates.CoordinateHeatInput +import OAI.Geometry.RCD.Coordinates.ScaledSeparatedSources +import OAI.Geometry.RCD.Sobolev.AveragedCutoffError + +namespace OAI + +/-! # Uniform normalized bounds for actual cutoff-source pairings -/ + +open Set Metric MeasureTheory +open scoped InnerProductSpace NNReal ENNReal + +noncomputable section +namespace RegularPointCoordinates + +private theorem quadratic_norm_bound {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] + (B : E →L[ℝ] E) (v : E) : |⟪v, B v⟫_ℝ| ≤ ‖B‖ * ‖v‖ ^ 2 := by + calc + _ ≤ ‖v‖ * ‖B v‖ := abs_real_inner_le_norm _ _ + _ ≤ ‖v‖ * (‖B‖ * ‖v‖) := mul_le_mul_of_nonneg_left (B.le_opNorm v) (norm_nonneg _) + _ = _ := by ring + +private theorem polarized_norm_of_tests {n : ℕ} (d : Euclidean n → ℝ) {B : ℝ} + (hB : 0 ≤ B) (hd : ∀ w, ‖w‖ ≤ 2 → |d w| ≤ B) : + ‖polarizedDerivative d‖ ≤ (n : ℝ) ^ 2 * (3 / 2 * B) := by + apply polarizedDerivative_norm_le d hB + · intro i + apply hd + simp only [PiLp.norm_single, norm_one] + norm_num + · intro i j + apply hd + exact (norm_add_le _ _).trans (by simp only [PiLp.norm_single, norm_one]; norm_num) + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) [μ.Regular] [IsLocallyFiniteMeasure μ] (hQ : QuadraticCheegerEnergy μ) + {ker : ℝ → X → X → ℝ} (hk : IsContinuousHeatKernel μ hQ ker) + +include hk in +/-- Both scalar pairings have constants fixed before the radius and the +actual harmonic map. The input L1 bound is proved for that map separately. -/ +theorem exists_scaled_cutoff_pairing_bound (n : ℕ) (hg : HasCoordinateHeatBounds μ ker) + (hdiff : HasGaussianHeatDifferenceBounds μ ker) + {A V c B : ℝ} (hA : 0 ≤ A) (hV : 0 < V) (hc : 0 < c) (hB : 0 ≤ B) : + ∃ C : ℝ, 0 < C ∧ ∀ (R : ℝ), 0 < R → + ∀ (U : Euclidean n →L[ℝ] SobolevSpace μ hQ) (M : PositiveBilinearMeasure X (Euclidean n)) + (κ r₀ : ℝ) (p : X) (L : ℝ≥0) + (G : ∀ v, LocalHarmonicEnergy μ hQ U M κ p r₀ L v) + (ρ C₀ : ℝ) (χ : GoodLaplacianCutoff μ hQ p ρ C₀), + 0 < ρ → ρ < r₀ → + (∀ w : Euclidean n, ‖w‖ ≤ 2 → R ^ 2 * + (∫ z, |cutoffSourceDensity μ hQ (G w).energy χ.sobolev χ.laplacian z| ∂μ) ≤ B * R ^ n) → + ∀ (r t : ℝ) (x q : X), 0 < r → r ≤ 1 → 0 < t → t ≤ 1 → + μ (ball q r) ≠ ∞ → V * r ^ n ≤ μ.real (ball q r) → dist x q ≤ A * r → + (∀ z, ρ ≤ dist p z → dist p z ≤ 2 * ρ → c * R ≤ dist x z) → + (∀ z, ρ ≤ dist p z → dist p z ≤ 2 * ρ → + V * (Real.sqrt t) ^ n ≤ μ.real (ball z (Real.sqrt t))) → + ∀ v : Euclidean n, + (t ≤ r ^ 2 → |∫ z, kernelAverage μ ker t (ball q r) z * + cutoffSourceDensity μ hQ (G v).energy χ.sobolev χ.laplacian z ∂μ| ≤ + (C / R ^ 2) * ‖v‖ ^ 2) ∧ + (r ^ 2 ≤ t → |∫ z, (kernelAverage μ ker t (ball q r) z - ker t x z) * + cutoffSourceDensity μ hQ (G v).energy χ.sobolev χ.laplacian z ∂μ| ≤ + (C * r / R ^ 3) * ‖v‖ ^ 2) := by + obtain ⟨Cs, hCs, hs⟩ := exists_scaled_short_source_bound μ hQ hk hg n hA hV hc + obtain ⟨Cl, hCl, hl⟩ := exists_scaled_long_source_bound μ hQ hk hg hdiff n hA hV hc + let P := (n : ℝ) ^ 2 * (3 / 2) + let C := 1 + P * (Cs + Cl) * B + have hP : 0 ≤ P := by dsimp only [P]; positivity + have hC : 0 < C := by dsimp only [C]; positivity + have hCsC : P * (Cs * B) ≤ C := by + have hh := mul_nonneg (mul_nonneg hP hCl.le) hB + dsimp only [C] + nlinarith only [hh] + have hClC : P * (Cl * B) ≤ C := by + have hh := mul_nonneg (mul_nonneg hP hCs.le) hB + dsimp only [C] + nlinarith only [hh] + refine ⟨C, hC, ?_⟩ + intro R hR U M κ r₀ p L G ρ C₀ χ hρ hρr hL1 r t x q hr hr1 ht ht1 hfinite hvolume hcenter hsep hsource v + let d := fun w z => cutoffSourceDensity μ hQ (G w).energy χ.sobolev χ.laplacian z + let S := {z | ρ ≤ dist p z ∧ dist p z ≤ 2 * ρ} + have hi (w : Euclidean n) : Integrable (d w) μ := cutoffSourceDensity_integrable μ hQ _ _ _ + have hz (w : Euclidean n) : ∀ᵐ z ∂μ, z ∉ S → d w z = 0 := χ.error_zero_off_annulus μ hQ _ + have hvol' : ∀ z ∈ S, V * (Real.sqrt t) ^ n ≤ μ.real (ball z (Real.sqrt t)) := + fun z hz => hsource z hz.1 hz.2 + have hsep' : ∀ z ∈ S, c * R ≤ dist x z := fun z hz => hsep z hz.1 hz.2 + have hIb (w : Euclidean n) (hw : ‖w‖ ≤ 2) : (∫ z, |d w z| ∂μ) ≤ B * R ^ n / R ^ 2 := + (le_div_iff₀ (sq_pos_of_pos hR)).mpr (by simpa only [mul_comm] using hL1 w hw) + constructor + · intro htr + have htest (w : Euclidean n) (hw : ‖w‖ ≤ 2) : + |∫ z, kernelAverage μ ker t (ball q r) z * d w z ∂μ| ≤ Cs * B / R ^ 2 := by + have h := hs R r t x q S (d w) hR hr hr1 ht htr hfinite hvolume hcenter hsep' hvol' (hi w) (hz w) + have hm := mul_le_mul_of_nonneg_left (hIb w hw) (by positivity : 0 ≤ Cs / R ^ n) + apply h.trans (hm.trans_eq ?_) + field_simp [hR.ne'] + have hop := polarized_norm_of_tests _ (by positivity) htest + rw [← averaged_cutoff_error_energy μ hQ hk G χ hρ hρr ht (ball q r) + measurableSet_ball isBounded_ball v] + apply (quadratic_norm_bound _ v).trans + apply mul_le_mul_of_nonneg_right _ (sq_nonneg _) + apply hop.trans + have hm := div_le_div_of_nonneg_right hCsC (sq_nonneg R) + simpa only [P, mul_div_assoc, mul_assoc] using hm + · intro hrt + have hpos : 0 < μ.real (ball q r) := (mul_pos hV (pow_pos hr n)).trans_le hvolume + have htest (w : Euclidean n) (hw : ‖w‖ ≤ 2) : + |∫ z, (kernelAverage μ ker t (ball q r) z - ker t x z) * d w z ∂μ| ≤ Cl * B * r / R ^ 3 := by + have h := hl R r t x q S (d w) hR hr ht ht1 hrt hfinite hpos hcenter hsep' hvol' (hi w) (hz w) + have hm := mul_le_mul_of_nonneg_left (hIb w hw) (by positivity : 0 ≤ Cl * r / R ^ (n + 1)) + apply h.trans (hm.trans_eq ?_) + rw [pow_succ] + field_simp [hR.ne'] + have hop := polarized_norm_of_tests _ (by positivity) htest + rw [← difference_cutoff_error_energy μ hQ hk G χ hρ hρr ht (ball q r) + measurableSet_ball isBounded_ball x v] + apply (quadratic_norm_bound _ v).trans + apply mul_le_mul_of_nonneg_right _ (sq_nonneg _) + apply hop.trans + have hm := mul_le_mul_of_nonneg_right + (mul_le_mul_of_nonneg_right hClC hr.le) (by positivity : 0 ≤ (R ^ 3)⁻¹) + simpa only [P, div_eq_mul_inv, mul_assoc] using hm + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/ScaledFixedCutoffNeighborhood.lean b/lean/OAI/Geometry/RCD/Sobolev/ScaledFixedCutoffNeighborhood.lean new file mode 100644 index 0000000000000000000000000000000000000000..bcbf27df31c743e6eab2c8ff6943e7e36d366b2f --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/ScaledFixedCutoffNeighborhood.lean @@ -0,0 +1,166 @@ +import OAI.Geometry.RCD.Coordinates.CoordinateHeatInput +import OAI.Geometry.RCD.Sobolev.ScaledCutoffL1 +import OAI.Geometry.RCD.Sobolev.ScaledUniformCutoff + +namespace OAI + +/-! # A regular-neighborhood cutoff with a uniform starting index -/ + +open Set Metric MeasureTheory +open scoped NNReal + +noncomputable section +namespace RegularPointCoordinates + +private theorem half_volume_upper {n : ℕ} {v omega s : ℝ} (hw : 0 < omega) (hs : 0 < s) + (h : |v / (omega * s ^ n) - 1| ≤ 1 / 2) : v ≤ (3 / 2 * omega) * s ^ n := by + have hd : 0 < omega * s ^ n := mul_pos hw (pow_pos hs n) + have hb := (abs_le.mp h).2 + have hq : v / (omega * s ^ n) ≤ 3 / 2 := by linarith + have hm := (div_le_iff₀ hd).mp hq + nlinarith only [hm] + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +/-- The cutoff constant and starting index are fixed before the radius, +coordinate map or full Bochner measure is chosen. Only local +calculus and the displayed regular-neighborhood volume bounds are used. -/ +theorem exists_scaled_fixed_cutoff_neighborhood_with_source {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) [(hausdorff n X).Regular] + (hn : 2 ≤ n) + (hhessian : LocalPoissonHessianInput hX) (hproduct : LocalPoissonGradientProductInput hX) + (hcutoff : LocalGoodCutoffInput hX) + {ker : ℝ → X → X → ℝ} + (hk : IsContinuousHeatKernel (hausdorff n X) hX.quadratic ker) + (hg : HasCoordinateHeatBounds (hausdorff n X) ker) {omega : ℝ} (homega : 0 < omega) : + ∃ C A : ℝ, 1 ≤ C ∧ 0 ≤ A ∧ + (∀ p s, 0 < s → -1 ≤ K * s ^ 2 → + Nonempty (GoodLaplacianCutoff (hausdorff n X) hX.quadratic p s C)) ∧ + ∃ J : ℕ, ∀ (R : ℝ), 0 < R → R ≤ 1 → + |K| * (16 * R) ^ 2 ≤ 1 → ∀ (p : X) (L : ℝ≥0) + (u : Fin n → SobolevSpace (hausdorff n X) hX.quadratic) + (M : PositiveBilinearMeasure X (Euclidean n)), + (L : ℝ) ^ 2 ≤ 4 * (n : ℝ) ^ 2 → + (∀ i, IsSobolevHarmonicOn (hausdorff n X) hX.quadratic (ball p (32 * R)) (u i)) → + (∀ v, ∀ᵐ x ∂(hausdorff n X).restrict (ball p (32 * R)), + localGamma (hausdorff n X) hX.quadratic + (sobolevColumnMap (hausdorff n X) hX.quadratic u v) + (sobolevColumnMap (hausdorff n X) hX.quadratic u v) x ≤ (L : ℝ) ^ 2 * ‖v‖ ^ 2) → + (∀ y, dist p y ≤ 16 * R → ∀ s, 0 < s → s ≤ 32 * R → + |(hausdorff n X).real (ball y s) / (omega * s ^ n) - 1| ≤ 1 / 2) → + ∀ G : ∀ v, LocalHarmonicEnergy (hausdorff n X) hX.quadratic + (sobolevColumnMap (hausdorff n X) hX.quadratic u) M |K| p (4 * R) L v, + ∃ χ : GoodLaplacianCutoff (hausdorff n X) hX.quadratic p (3 * R / 8) C, + (∀ w : Euclidean n, ‖w‖ ≤ 2 → R ^ 2 * + (∫ z, |cutoffSourceDensity (hausdorff n X) hX.quadratic + (G w).energy χ.sobolev χ.laplacian z| ∂hausdorff n X) ≤ A * R ^ n) ∧ + ∀ q ∈ ball p (R / 32), + (∀ x ∈ ball q (R / 4), (χ.weight : X → ℝ) x = 1) ∧ + (∀ x ∉ ball q R, (χ.weight : X → ℝ) x = 0) ∧ + ∀ i, J ≤ i → ∀ t ∈ Icc ((R / 2 ^ i) ^ 2 / 4) ((R / 2 ^ i) ^ 2), + ‖harmonicHeatError (hausdorff n X) hX.quadratic (k := ker) G χ t q‖ ≤ (R ^ 2)⁻¹ := by + let μ := hausdorff n X + obtain ⟨C, hC, hcut⟩ := hcutoff hn + let B := 4 * (n : ℝ) ^ 2 + let D := 4 * B + let V := 3 / 2 * omega + let A := (64 * (D * C + C ^ 2) + 4 * D ^ 2 * (C / 2 + 1) * 3 ^ n) * V + have hC0 : 0 ≤ C := zero_le_one.trans hC + have hB : 0 ≤ B := by dsimp only [B]; positivity + have hV : 0 ≤ V := by dsimp only [V]; positivity + have hA : 0 ≤ A := by dsimp only [A, D]; positivity + obtain ⟨J, hJ⟩ := exists_scaled_cutoff_error_index μ hX.quadratic hk n hg hA + (show 0 < omega / 2 by positivity) + refine ⟨C, A, hC, hA, hcut, J, ?_⟩ + intro R hR hR1 hcurv p L u M hL hu hgrad hvolume G + have hcurvR : |K| * R ^ 2 ≤ 1 := by + have h := mul_nonneg (abs_nonneg K) (sq_nonneg R) + nlinarith + have hKR : -1 ≤ K * R ^ 2 := by + have h := mul_le_mul_of_nonneg_right (neg_abs_le K) (sq_nonneg R) + linarith + have hKρ : -1 ≤ K * (3 * R / 8) ^ 2 := by + have h := mul_le_mul_of_nonneg_right (neg_abs_le K) (sq_nonneg (3 * R / 8)) + nlinarith + obtain ⟨χ⟩ := hcut p (3 * R / 8) (by positivity) hKρ + obtain ⟨ψ⟩ := hcut p R hR hKR + have hvR : μ.real (ball p R) ≤ V * R ^ n := + half_volume_upper homega hR (hvolume p (by simp; positivity) R hR (by linarith)) + have hv2R : μ.real (closedBall p (2 * R)) ≤ V * (3 * R) ^ n := by + apply (measureReal_mono (closedBall_subset_ball (show 2 * R < 3 * R by linarith)) + (hX.finiteOnBounded _ isBounded_ball).ne).trans + exact half_volume_upper homega (by positivity) + (hvolume p (by simp; positivity) (3 * R) (by positivity) (by linarith)) + have hsource (v : Euclidean n) (hv : ‖v‖ ≤ 2) : + R ^ 2 * (∫ z, |cutoffSourceDensity μ hX.quadratic + (G v).energy χ.sobolev χ.laplacian z| ∂μ) ≤ A * R ^ n := + harmonic_cutoff_uniform_L1 hX hhessian hproduct hR (abs_nonneg K) (neg_abs_le K) + hcurvR hC0 hV hB L u hu hgrad G χ ψ hvR hv2R v hL hv + have hvolLower : ∀ y, 3 * R / 8 ≤ dist p y → dist p y ≤ 3 * R / 4 → + ∀ s, 0 < s → s ≤ R → (omega / 2) * s ^ n ≤ μ.real (ball y s) := by + intro y _hy hy s hs hsR + have hb := (abs_le.mp (hvolume y (by linarith) s hs (by linarith))).1 + have hd : 0 < omega * s ^ n := mul_pos homega (pow_pos hs n) + have hq : 1 / 2 ≤ μ.real (ball y s) / (omega * s ^ n) := by linarith + have hm := (le_div_iff₀ hd).mp hq + nlinarith only [hm] + refine ⟨χ, hsource, ?_⟩ + intro q hq + have hqp : dist q p < R / 32 := hq + refine ⟨?_, ?_, hJ R hR hR1 p (4 * R) |K| C L _ M G χ hsource hvolLower q hq⟩ + · intro x hx + apply χ.one + have hxq : dist x q < R / 4 := hx + change dist x p < 3 * R / 8 + linarith [dist_triangle x q p] + · intro x hx + apply χ.zero + have hxq : R ≤ dist x q := by simpa only [mem_ball, not_lt] using hx + have ht := dist_triangle x p q + rw [dist_comm p q] at ht + rw [dist_comm p x] + linarith + +/-- The cutoff constant and starting index are fixed before the radius, +coordinate map or full Bochner measure is chosen. Only local +calculus and the displayed regular-neighborhood volume bounds are used. -/ +theorem exists_scaled_fixed_cutoff_neighborhood {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) [(hausdorff n X).Regular] + (hn : 2 ≤ n) + (hhessian : LocalPoissonHessianInput hX) (hproduct : LocalPoissonGradientProductInput hX) + (hcutoff : LocalGoodCutoffInput hX) + {ker : ℝ → X → X → ℝ} + (hk : IsContinuousHeatKernel (hausdorff n X) hX.quadratic ker) + (hg : HasCoordinateHeatBounds (hausdorff n X) ker) {omega : ℝ} (homega : 0 < omega) : + ∃ C : ℝ, 1 ≤ C ∧ ∃ J : ℕ, ∀ (R : ℝ), 0 < R → R ≤ 1 → + |K| * (16 * R) ^ 2 ≤ 1 → ∀ (p : X) (L : ℝ≥0) + (u : Fin n → SobolevSpace (hausdorff n X) hX.quadratic) + (M : PositiveBilinearMeasure X (Euclidean n)), + (L : ℝ) ^ 2 ≤ 4 * (n : ℝ) ^ 2 → + (∀ i, IsSobolevHarmonicOn (hausdorff n X) hX.quadratic (ball p (32 * R)) (u i)) → + (∀ v, ∀ᵐ x ∂(hausdorff n X).restrict (ball p (32 * R)), + localGamma (hausdorff n X) hX.quadratic + (sobolevColumnMap (hausdorff n X) hX.quadratic u v) + (sobolevColumnMap (hausdorff n X) hX.quadratic u v) x ≤ (L : ℝ) ^ 2 * ‖v‖ ^ 2) → + (∀ y, dist p y ≤ 16 * R → ∀ s, 0 < s → s ≤ 32 * R → + |(hausdorff n X).real (ball y s) / (omega * s ^ n) - 1| ≤ 1 / 2) → + ∀ G : ∀ v, LocalHarmonicEnergy (hausdorff n X) hX.quadratic + (sobolevColumnMap (hausdorff n X) hX.quadratic u) M |K| p (4 * R) L v, + ∃ χ : GoodLaplacianCutoff (hausdorff n X) hX.quadratic p (3 * R / 8) C, + ∀ q ∈ ball p (R / 32), + (∀ x ∈ ball q (R / 4), (χ.weight : X → ℝ) x = 1) ∧ + (∀ x ∉ ball q R, (χ.weight : X → ℝ) x = 0) ∧ + ∀ i, J ≤ i → ∀ t ∈ Icc ((R / 2 ^ i) ^ 2 / 4) ((R / 2 ^ i) ^ 2), + ‖harmonicHeatError (hausdorff n X) hX.quadratic (k := ker) G χ t q‖ ≤ (R ^ 2)⁻¹ := by + obtain ⟨C, A, hC, _hA, _hcut, J, h⟩ := + exists_scaled_fixed_cutoff_neighborhood_with_source hX hn hhessian hproduct hcutoff hk hg homega + refine ⟨C, hC, J, ?_⟩ + intro R hR hR1 hcurv p L u M hL hu hgrad hvolume G + obtain ⟨χ, _, hχ⟩ := h R hR hR1 hcurv p L u M hL hu hgrad hvolume G + exact ⟨χ, hχ⟩ + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/ScaledGammaBound.lean b/lean/OAI/Geometry/RCD/Sobolev/ScaledGammaBound.lean new file mode 100644 index 0000000000000000000000000000000000000000..85d1078fd7b29123548d84a5214c13c275ec07b4 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/ScaledGammaBound.lean @@ -0,0 +1,40 @@ +import OAI.Geometry.RCD.Sobolev.LocalBochnerInput + +namespace OAI + +/-! # Mixed gradient bounds in the original physical scale -/ + +open Set Filter MeasureTheory +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem scaled_gamma_bound (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + (f g : SobolevSpace μ hQ) {A : Set X} {r M L : ℝ} + (hr : 0≤r) (hM : 0≤M) (hL : 0≤L) + (hf : ∀ᵐ x ∂μ.restrict A, r^2*localGamma μ hQ f f x≤M^2) + (hg : ∀ᵐ x ∂μ.restrict A, r^2*localGamma μ hQ g g x≤L^2) : + ∀ᵐ x ∂μ.restrict A, |r^2*localGamma μ hQ f g x|≤M*L := by + filter_upwards [hf,hg,ae_restrict_of_ae (localGamma_self μ hQ f), + ae_restrict_of_ae (localGamma_self μ hQ g), + ae_restrict_of_ae (localGamma_abs_le μ hQ f g), + ae_restrict_of_ae ((Lp.coeFn_nonneg _).mpr (SobolevSpace.minimalSlope_nonneg μ hQ f)), + ae_restrict_of_ae ((Lp.coeFn_nonneg _).mpr (SobolevSpace.minimalSlope_nonneg μ hQ g))] + with x hfx hgx heF heG hfg hnF hnG + have hF : r*SobolevSpace.minimalSlope μ hQ f x≤M := + (sq_le_sq₀ (mul_nonneg hr hnF) hM).mp (by simpa only [mul_pow,← heF] using hfx) + have hG : r*SobolevSpace.minimalSlope μ hQ g x≤L := + (sq_le_sq₀ (mul_nonneg hr hnG) hL).mp (by simpa only [mul_pow,← heG] using hgx) + calc + |r^2*localGamma μ hQ f g x|=r^2*|localGamma μ hQ f g x| := by + rw [abs_mul,abs_of_nonneg (sq_nonneg r)] + _ ≤ r^2*(SobolevSpace.minimalSlope μ hQ f x*SobolevSpace.minimalSlope μ hQ g x) := + mul_le_mul_of_nonneg_left hfg (sq_nonneg r) + _ = (r*SobolevSpace.minimalSlope μ hQ f x)*(r*SobolevSpace.minimalSlope μ hQ g x) := by ring + _ ≤ M*L := mul_le_mul hF hG (mul_nonneg hr hnG) hM + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/ScaledGammaError.lean b/lean/OAI/Geometry/RCD/Sobolev/ScaledGammaError.lean new file mode 100644 index 0000000000000000000000000000000000000000..1fbcc9490170c27db5d4931a9d4f0046f598ca48 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/ScaledGammaError.lean @@ -0,0 +1,51 @@ +import OAI.Geometry.RCD.Sobolev.ScaledGammaBound +import OAI.Geometry.RCD.Coordinates.NormalizedProductError + +namespace OAI + +/-! # The scaled cutoff commutator vanishes with its value error -/ + +open Set Filter MeasureTheory +open scoped Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem scaled_weighted_gamma_error_tendsto (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + (Ω : ℕ → Set X) [∀ k, IsFiniteMeasure (μ.restrict (Ω k))] + (hmass : ∀ k, 0<μ.real (Ω k)) (r : ℕ → ℝ) (hr : ∀ k, 0≤r k) + (f g : ℕ → SobolevSpace μ hQ) (z v : ℕ → X → ℝ) + {M L B : ℝ} (hM : 0≤M) (hL : 0≤L) (hB : 0≤B) + (hf : ∀ᶠ k in atTop, ∀ᵐ x ∂μ.restrict (Ω k), r k^2*localGamma μ hQ (f k) (f k) x≤M^2) + (hg : ∀ᶠ k in atTop, ∀ᵐ x ∂μ.restrict (Ω k), r k^2*localGamma μ hQ (g k) (g k) x≤L^2) + (hv : ∀ᶠ k in atTop, ∀ᵐ x ∂μ.restrict (Ω k), |v k x|≤B) + (hz : ∀ δ : ℝ, 0<δ → ∀ᶠ k in atTop, ∀ᵐ x ∂μ.restrict (Ω k), |z k x|≤δ) : + Tendsto (fun k => r k^2*(μ.real (Ω k))⁻¹* + ∫ x in Ω k, v k x*z k x*localGamma μ hQ (f k) (g k) x ∂μ) atTop (𝓝 0) := by + have hmass' (k : ℕ) : 0<(μ.restrict (Ω k)).real univ := by + simpa only [Measure.real,Measure.restrict_apply_univ] using hmass k + have hb : ∀ᶠ k in atTop, ∀ᵐ x ∂μ.restrict (Ω k), + |v k x*(r k^2*localGamma μ hQ (f k) (g k) x)|≤B*(M*L) := by + filter_upwards [hf,hg,hv] with k hfk hgk hvk + filter_upwards [scaled_gamma_bound μ hQ (f k) (g k) (hr k) hM hL hfk hgk,hvk] + with x hx hvx + rw [abs_mul] + exact mul_le_mul hvx hx (abs_nonneg _) hB + have ht := normalized_product_error_tendsto (fun k => μ.restrict (Ω k)) hmass' + z (fun k x => v k x*(r k^2*localGamma μ hQ (f k) (g k) x)) + (mul_nonneg hB (mul_nonneg hM hL)) hb hz + convert ht using 1 + funext k + simp only [Measure.real,Measure.restrict_apply_univ] + have he : (fun x => z k x*(v k x*(r k^2*localGamma μ hQ (f k) (g k) x)))= + fun x => r k^2*(v k x*z k x*localGamma μ hQ (f k) (g k) x) := by + funext x + ring + rw [he,integral_const_mul] + ring + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/ScaledGammaExcess.lean b/lean/OAI/Geometry/RCD/Sobolev/ScaledGammaExcess.lean new file mode 100644 index 0000000000000000000000000000000000000000..54e877ea2ce6182fbb5fc4f86c11b71b24a55447 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/ScaledGammaExcess.lean @@ -0,0 +1,65 @@ +import OAI.Geometry.RCD.Sobolev.PositiveEnergyExcess +import OAI.Geometry.RCD.Sobolev.SobolevLevelChain + +namespace OAI + +/-! # The actual harmonic gradient excess vanishes under strong recovery -/ + +open Set Filter MeasureTheory +open scoped Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem scaled_gamma_excess_tendsto (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + (Ω : ℕ → Set X) [∀ k, IsFiniteMeasure (μ.restrict (Ω k))] + (r c : ℕ → ℝ) (hr : ∀ k, 0 c k*r k^2*∫ x in Ω k, + localGamma μ hQ (w k-q k) (w k-q k) x ∂μ) atTop (𝓝 0)) : + Tendsto (fun k => c k*∫ x in Ω k, + (max (r k^2*localGamma μ hQ (w k) (w k) x-1) 0)^2 ∂μ) atTop (𝓝 0) := by + let f := fun k x => r k^2*localGamma μ hQ (w k) (w k) x + let g := fun k x => r k^2*localGamma μ hQ (q k) (q k) x + have hq2 : ∀ᶠ k in atTop, ∀ᵐ x ∂μ.restrict (Ω k), + r k^2*localGamma μ hQ (q k) (q k) x≤(2:ℝ)^2 := by + simpa only [show (1:ℝ)+1=2 by norm_num] using hq 1 zero_lt_one + have hwm : ∀ᶠ k in atTop, MemLp (f k) 2 (μ.restrict (Ω k)) := by + filter_upwards [hw] with k hk + apply MemLp.of_bound (((localGamma_memL1 μ hQ (w k) (w k)).aestronglyMeasurable.const_mul (r k^2)).restrict) (M^2) + filter_upwards [hk,ae_restrict_of_ae (localGamma_self μ hQ (w k))] with x hx he + change ‖r k^2*localGamma μ hQ (w k) (w k) x‖≤M^2 + rw [Real.norm_eq_abs,abs_of_nonneg (by rw [he]; positivity)] + exact hx + have hqm : ∀ᶠ k in atTop, MemLp (g k) 2 (μ.restrict (Ω k)) := by + filter_upwards [hq2] with k hk + apply MemLp.of_bound (((localGamma_memL1 μ hQ (q k) (q k)).aestronglyMeasurable.const_mul (r k^2)).restrict) ((2:ℝ)^2) + filter_upwards [hk,ae_restrict_of_ae (localGamma_self μ hQ (q k))] with x hx he + change ‖r k^2*localGamma μ hQ (q k) (q k) x‖≤(2:ℝ)^2 + rw [Real.norm_eq_abs,abs_of_nonneg (by rw [he]; positivity)] + exact hx + have hf : ∀ᶠ k in atTop, IntegrableOn (fun x => (max (f k x-1) 0)^2) (Ω k) μ := by + filter_upwards [hwm] with k hk + exact ((upperLevelPart_lipschitz 1).comp_memLp (upperLevelPart_zero zero_le_one) hk).integrable_sq + have hd : ∀ᶠ k in atTop, IntegrableOn (fun x => (f k x-g k x)^2) (Ω k) μ := by + filter_upwards [hwm,hqm] with k hk hj + exact (hk.sub hj).integrable_sq + have hclose := local_scaled_gamma_l2_tendsto μ hQ Ω r c hr hc hM (by norm_num : (0:ℝ)≤2) w q hw hq2 hstrong + have hclose' : Tendsto (fun k => c k*∫ x in Ω k, (f k x-g k x)^2 ∂μ) atTop (𝓝 0) := by + have he : ∀ k x, f k x-g k x=r k^2*(localGamma μ hQ (w k) (w k) x-localGamma μ hQ (q k) (q k) x) := by + intro k x + dsimp only [f,g] + ring + simp_rw [he] + exact hclose + exact positive_energy_excess_tendsto μ Ω c hc hmass f g hf hd hclose' hq + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/ScaledGradientGammaL2.lean b/lean/OAI/Geometry/RCD/Sobolev/ScaledGradientGammaL2.lean new file mode 100644 index 0000000000000000000000000000000000000000..4e708896c04463053d44d7f1aec1a9e6465a12ae --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/ScaledGradientGammaL2.lean @@ -0,0 +1,27 @@ +import OAI.Geometry.RCD.Sobolev.GammaL2Bound + +namespace OAI + +/-! # A rescaled pointwise gradient bound gives the needed L2 mixed density -/ + +open Set Filter MeasureTheory +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem scaled_gradient_gamma_memLp (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + (f g : SobolevSpace μ hQ) {r Q : ℝ} (hr : 0 ENNReal.ofReal (ρ x)) → + ∀ (F : C(S, ℝ)), (∀ a, 0 < F a) → + ∀ {ε s δ : ℝ} (hε : 0 < ε), ε ≤ 1 → (hδ : 0 < δ) → (hδs : δ ≤ s) → s ≤ 1 → + ∀ (z : X) (R : ℝ), 0 ≤ R → (∀ a : S, dist z a ≤ R) → + ∀ (Ω : Set X), IsCompact Ω → + ∃ (w : SobolevSpace (hausdorff n X) hX.quadratic) (q : Lp ℝ 2 (hausdorff n X)), + IsWeakLaplacian (hausdorff n X) hX.quadratic w q ∧ + (SobolevSpace.toLp (hausdorff n X) hX.quadratic w =ᵐ[(hausdorff n X).restrict Ω] + hX.scaledCompactHeatPotential hn p ν F ε s + (div_pos (mul_pos hε (hδ.trans_le hδs)) (by norm_num))) ∧ + (∀ᵐ x ∂(hausdorff n X).restrict Ω, + HasDerivAt (fun t => ε * Real.log + (∫ a, hX.canonicalHeatKernel hn p (ε*t/2) x a * F a ∂ν)) + (ε/2*q x + localGamma (hausdorff n X) hX.quadratic w w x/2) s) ∧ + ∀ᵐ x ∂(hausdorff n X).restrict Ω, + (SobolevSpace.minimalSlope (hausdorff n X) hX.quadratic w x)^2 ≤ + Real.exp |K| * (4*C/δ+16*D*(R+dist z x)^2/δ^2) := by + obtain ⟨C,D,hC,hD,hgrad⟩ := hX.compact_heat_factor_scaled_gradient hn p + refine ⟨C,D,hC,hD,?_⟩ + intro S _ ν _ ρ hρ hρ0 B hB hν F hF ε s δ hε hε1 hδ hδs hs1 z R hR hdist Ω hΩ + obtain ⟨v,_d,_hd,hv,hvgrad⟩ := hgrad ν ρ hρ hρ0 hB hν F hF hε hε1 hδ hδs hs1 + z R hR hdist Ω hΩ + obtain ⟨w,q,hq,hw,hder⟩ := hX.compact_heat_factor_scaled_hamilton_jacobi hn p ν + ρ hρ hρ0 hB hν F hF hε (hδ.trans_le hδs) hΩ + refine ⟨w,q,hq,hw,hder,?_⟩ + have heq : SobolevSpace.toLp (hausdorff n X) hX.quadratic w + =ᵐ[(hausdorff n X).restrict Ω] SobolevSpace.toLp (hausdorff n X) hX.quadratic v := + hw.trans hv.symm + filter_upwards [heq,hvgrad,ae_restrict_of_ae + (SobolevSpace.minimalSlope_eq_on_eq (hausdorff n X) hX.quadratic w v)] with x hx hb hsl + rw [hsl hx] + exact hb + +end RegularPointCoordinates.NoncollapsedRCD + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/ScaledHessianYoungLimit.lean b/lean/OAI/Geometry/RCD/Sobolev/ScaledHessianYoungLimit.lean new file mode 100644 index 0000000000000000000000000000000000000000..6db9fdbed7b1d27d6a041167d69ba8a25bd1d68f --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/ScaledHessianYoungLimit.lean @@ -0,0 +1,36 @@ +import OAI.Geometry.RCD.Harmonic.WeightedDirectionalVanishing + +namespace OAI + +/-! # The canonical Young estimate at a shrinking physical scale -/ + +open Filter +open scoped Topology +noncomputable section +namespace RegularPointCoordinates + +theorem scaled_hessian_young_limit {Y : Type*} + (r m S : ℕ → ℝ) (A : ℕ → Y → ℝ) {C : ℝ} + (hr : ∀ k, 0 < r k) (hm : ∀ k, 0 < m k) (hC : 0 ≤ C) + (hA : ∀ k y, 0 ≤ A k y) + (hS : Tendsto (fun k => (r k)^2*S k/m k) atTop (𝓝 0)) + (hb : ∀ k y a, 0 < a → + 4*a*A k y ≤ 4*a^2*m k+C*(r k)^4*S k) : + TendstoUniformly (fun k y => A k y/(r k*m k)) (fun _ => 0) atTop := by + apply tendstoUniformly_of_directional_bound (C := 1) (M := C) zero_le_one hC + (fun k y => div_nonneg (hA k y) (mul_nonneg (hr k).le (hm k).le)) + (E := fun k (_ : Y) => (r k)^2*S k/m k) + · apply Metric.tendstoUniformly_iff.mpr + intro e he + filter_upwards [Metric.tendsto_nhds.mp hS e he] with k hk y + simpa only [dist_comm] using hk + · intro k y a ha + apply (mul_le_mul_iff_right₀ (mul_pos (sq_pos_of_pos (hr k)) (hm k))).mp + have hh := hb k y (r k*a) (mul_pos (hr k) ha) + convert hh using 1 <;> field_simp [(hr k).ne',(hm k).ne'] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/ScaledRadialCutoffSobolev.lean b/lean/OAI/Geometry/RCD/Sobolev/ScaledRadialCutoffSobolev.lean new file mode 100644 index 0000000000000000000000000000000000000000..94403ffc272caf0b28397a12e90d4c9c130dd5e6 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/ScaledRadialCutoffSobolev.lean @@ -0,0 +1,46 @@ +import OAI.Geometry.RCD.Sobolev.MeasuredRadialCutoff +import OAI.Geometry.RCD.Sobolev.InteriorBoundedGradientRepresentative + +namespace OAI + +/-! # The actual Sobolev cutoff at the prescribed physical scale -/ + +open Set Filter MeasureTheory Metric +open scoped NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem scaled_radial_cutoff_sobolev (μ : Measure X) [IsFiniteMeasureOnCompacts μ] + (hQ : QuadraticCheegerEnergy μ) (p : X) {a b r : ℝ} (hab : a Y (H * t) / M + have hZ (t : ℝ) (ht : 0 ≤ t) : 0 ≤ Z t := + div_nonneg (hY _ (mul_nonneg hH.le ht)) hM.le + have hZ0 : Z 0 ≤ 1 := by + dsimp only [Z] + rw [mul_zero, div_le_one hM] + exact hstart + have hZmono (k l : ℝ) (hk : 0 ≤ k) (hkl : k ≤ l) : Z l ≤ Z k := + div_le_div_of_nonneg_right (hmono _ _ (mul_nonneg hH.le hk) + (mul_le_mul_of_nonneg_left hkl hH.le)) hM.le + have hZstep (k l : ℝ) (hk : 0 ≤ k) (hkl : k < l) : + Z l ≤ A * Z k ^ (p - 1) / (l - k) ^ p := by + have hh := div_le_div_of_nonneg_right + (hstep (H * k) (H * l) (mul_nonneg hH.le hk) + (mul_lt_mul_of_pos_left hkl hH)) hM.le + have hYZ : Y (H * k) = M * Z k := by dsimp only [Z]; field_simp + rw [hYZ, ← mul_sub] at hh + exact hh.trans_eq (rescaled_superlevel_coefficient hM hH (hZ k hk) + (sub_pos.mpr hkl) hscale) + have hz := hExt Z hZ hZ0 hZmono hZstep + have hz' : Y (H * K) = 0 := (div_eq_zero_iff).mp hz |>.resolve_right (ne_of_gt hM) + simpa only [mul_comm H K] using hz' + +/-- The normalized Dirichlet Sobolev coefficient has precisely the +homogeneity required by the superlevel recurrence. -/ +theorem normalized_sobolev_coefficient {C s V d : ℝ} + (hC : 0 ≤ C) (hs : 0 < s) (hV : 0 < V) (hd : 1 < d) : + (C * s * V ^ (1 / d - 1)) ^ (2 * d) * V ^ (2 * d - 2) = + C ^ (2 * d) * s ^ (2 * d) := by + have he : (1 / d - 1) * (2 * d) + (2 * d - 2) = 0 := by + field_simp + ring + rw [Real.mul_rpow (mul_nonneg hC hs.le) (Real.rpow_nonneg hV.le _), + Real.mul_rpow hC hs.le, ← Real.rpow_mul hV.le] + calc + _ = C ^ (2 * d) * s ^ (2 * d) * + (V ^ ((1 / d - 1) * (2 * d)) * V ^ (2 * d - 2)) := by ring + _ = _ := by rw [← Real.rpow_add hV, he, Real.rpow_zero, mul_one] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/ScaledUniformCutoff.lean b/lean/OAI/Geometry/RCD/Sobolev/ScaledUniformCutoff.lean new file mode 100644 index 0000000000000000000000000000000000000000..4cda49fa4103811ddf39b1ebcf62a86e6cde9da9 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/ScaledUniformCutoff.lean @@ -0,0 +1,105 @@ +import OAI.Geometry.RCD.Coordinates.CoordinateHeatInput +import OAI.Geometry.RCD.Heat.ScaledGaussianTail +import OAI.Geometry.RCD.Coordinates.UniformPolarizedError +import OAI.Geometry.RCD.Heat.HeatRegimeBridges + +namespace OAI + +/-! # A cutoff starting index chosen before the neighborhood radius -/ + +open Set Metric MeasureTheory +open scoped NNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) [μ.Regular] (hQ : QuadraticCheegerEnergy μ) + {ker : ℝ → X → X → ℝ} (hk : IsContinuousHeatKernel μ hQ ker) + +include hk in +/-- A scale-normalized L1 source bound gives a uniform dyadic cutoff index. +The source bound is supplied by `harmonic_cutoff_scaled_L1` for the actual +harmonic coordinates, using the already stated local calculus. -/ +theorem exists_scaled_cutoff_error_index (n : ℕ) (hg : HasCoordinateHeatBounds μ ker) + {A V : ℝ} (hA : 0 ≤ A) (hV : 0 < V) : + ∃ J : ℕ, ∀ (R : ℝ) (_hR : 0 < R), R ≤ 1 → ∀ (p : X) (r κ C : ℝ) (L : ℝ≥0) + (U : Euclidean n →L[ℝ] SobolevSpace μ hQ) + (M : PositiveBilinearMeasure X (Euclidean n)) + (G : ∀ v, LocalHarmonicEnergy μ hQ U M κ p r L v) + (χ : GoodLaplacianCutoff μ hQ p (3 * R / 8) C), + (∀ v : Euclidean n, ‖v‖ ≤ 2 → + R ^ 2 * (∫ z, |cutoffSourceDensity μ hQ (G v).energy χ.sobolev χ.laplacian z| ∂μ) ≤ + A * R ^ n) → + (∀ y, 3 * R / 8 ≤ dist p y → dist p y ≤ 3 * R / 4 → + ∀ s, 0 < s → s ≤ R → V * s ^ n ≤ μ.real (ball y s)) → + ∀ q ∈ ball p (R / 32), ∀ i, J ≤ i → + ∀ t ∈ Icc ((R / 2 ^ i) ^ 2 / 4) ((R / 2 ^ i) ^ 2), + ‖harmonicHeatError μ hQ (k := ker) G χ t q‖ ≤ (R ^ 2)⁻¹ := by + let P := (n : ℝ) ^ 2 * (3 / 2) + have hP : 0 ≤ P := by dsimp only [P]; positivity + let eta := 1 / (P + 1) + have heta : 0 < eta := by dsimp only [eta]; positivity + obtain ⟨δ, hδ, hδ1, htail⟩ := hg.scaled_off_diagonal_small μ ker hk.nonneg n + (by norm_num : (0 : ℝ) < 1 / 8) hV (div_pos heta (by positivity : 0 < A + 1)) + obtain ⟨J, hJ⟩ := eventual_dyadic_time_blocks zero_lt_one hδ + refine ⟨J, ?_⟩ + intro R hR hR1 p r κ C L U M G χ hsource hvol q hq i hi t ht + have hrpow : 0 < R ^ n := pow_pos hR _ + have hR2 : 0 < R ^ 2 := sq_pos_of_pos hR + have ht0 : 0 < t := (div_pos (sq_pos_of_pos (div_pos hR (by positivity))) + (by norm_num : (0 : ℝ) < 4)).trans_le ht.1 + have hunit := (hJ i hi ((1 / (2 : ℝ) ^ i) ^ 2) + ⟨by nlinarith [sq_nonneg (1 / (2 : ℝ) ^ i)], le_rfl⟩).2 + have httail : t < δ * R ^ 2 := by + have hm := mul_lt_mul_of_pos_left hunit hR2 + have heq : R ^ 2 * (1 / (2 : ℝ) ^ i) ^ 2 = (R / (2 : ℝ) ^ i) ^ 2 := by ring + rw [heq] at hm + exact ht.2.trans_lt (by simpa only [mul_comm] using hm) + have htR : t ≤ R ^ 2 := httail.le.trans (mul_le_of_le_one_left hR2.le hδ1) + have hroot : Real.sqrt t ≤ R := by + nlinarith [Real.sq_sqrt ht0.le, Real.sqrt_nonneg t] + have hscalar (v : Euclidean n) (hv : ‖v‖ ≤ 2) : + |∫ z, ker t q z * cutoffSourceDensity μ hQ (G v).energy χ.sobolev χ.laplacian z ∂μ| ≤ + eta / R ^ 2 := by + have hb := χ.heat_error_le μ hQ (G v).energy (ker t q) + (div_nonneg (div_pos heta (by positivity : 0 < A + 1)).le hrpow.le) (by + intro y hy hy' + have hpy : dist p y ≤ 3 * R / 4 := by linarith + have hsep : (1 / 8 : ℝ) * R ≤ dist q y := by + have hqp : dist p q < R / 32 := by simpa only [mem_ball, dist_comm] using hq + linarith [dist_triangle p q y] + have htail' := htail R hR hR1 t ht0 httail q y hsep + (hvol y hy hpy (Real.sqrt t) (Real.sqrt_pos.mpr ht0) hroot) + exact (le_div_iff₀ hrpow).mpr (by simpa only [mul_comm] using htail')) + have hs := hsource v hv + have hI : (∫ z, |cutoffSourceDensity μ hQ (G v).energy χ.sobolev χ.laplacian z| ∂μ) ≤ + A * R ^ n / R ^ 2 := (le_div_iff₀ hR2).mpr (by simpa only [mul_comm] using hs) + have hm := mul_le_mul_of_nonneg_left hI + (div_nonneg (div_pos heta (by positivity : 0 < A + 1)).le hrpow.le) + apply hb.trans (hm.trans ?_) + have heq : ((eta / (A + 1)) / R ^ n) * (A * R ^ n / R ^ 2) = + (eta / R ^ 2) * (A / (A + 1)) := by field_simp + rw [heq] + apply mul_le_of_le_one_right (div_pos heta hR2).le + exact (div_le_one (by positivity : 0 < A + 1)).mpr (by linarith) + have hnorm := polarizedDerivative_norm_le + (fun v => ∫ z, ker t q z * cutoffSourceDensity μ hQ (G v).energy χ.sobolev χ.laplacian z ∂μ) + (div_pos heta hR2).le + (fun j => hscalar (EuclideanSpace.single j 1) (by simp only [PiLp.norm_single, norm_one]; norm_num)) + (fun j k => hscalar (EuclideanSpace.single j 1 + EuclideanSpace.single k 1) + ((norm_add_le _ _).trans (by simp only [PiLp.norm_single, norm_one]; norm_num))) + change ‖polarizedDerivative _‖ ≤ _ + apply hnorm.trans + have hPe : P * eta ≤ 1 := by + dsimp only [eta] + rw [mul_one_div] + exact (div_le_one (by positivity : 0 < P + 1)).mpr (by linarith) + have hm := mul_le_mul_of_nonneg_right hPe (inv_pos.mpr hR2).le + simpa only [P, div_eq_mul_inv, mul_assoc, one_mul] using hm + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/SharpLinearEnergyBound.lean b/lean/OAI/Geometry/RCD/Sobolev/SharpLinearEnergyBound.lean new file mode 100644 index 0000000000000000000000000000000000000000..f7b683b3d0344886b9129d05b5bf3c73432975b8 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/SharpLinearEnergyBound.lean @@ -0,0 +1,52 @@ +import OAI.Geometry.RCD.Metric.EuclideanBallMeanDerivative + +namespace OAI + +/-! # Removing the volume enlargement from infinitesimal transport tests -/ + +open Set Filter MeasureTheory +open scoped Topology +noncomputable section +namespace RegularPointCoordinates + +theorem sharp_linear_energy_bound {n : ℕ} (D : Euclidean n →L[ℝ] ℝ) + {C : ℝ} (hC : 0≤C) + (hb : ∀ v : Euclidean n, ∀ θ : ℝ, 0<θ → θ<1 → + ∀ c : ℝ, 1+‖v‖ + ‖v‖^2*((1+t*(‖v‖+1))*(1+t))^n*C) := by fun_prop + have hlim : Tendsto (fun t : ℝ => + ‖v‖^2*((1+t*(‖v‖+1))*(1+t))^n*C) (𝓝[>] 0) (𝓝 (‖v‖^2*C)) := by + simpa only [zero_mul,add_zero,mul_one,one_pow] using + (hcont.continuousAt (x := 0)).tendsto.mono_left nhdsWithin_le_nhds + apply ge_of_tendsto hlim + filter_upwards [self_mem_nhdsWithin] with t ht + have ht0 : 0 nlinarith + +end RegularPointCoordinates + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/SharpProjectionGradient.lean b/lean/OAI/Geometry/RCD/Sobolev/SharpProjectionGradient.lean new file mode 100644 index 0000000000000000000000000000000000000000..8b4a811329bcbf11a55c98f849b0326dc1c969c9 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/SharpProjectionGradient.lean @@ -0,0 +1,63 @@ +import OAI.Geometry.RCD.Harmonic.UniformSharpProjection + +namespace OAI + +/-! # Interior gradient control from the sharp projection estimate -/ + +open Set Metric MeasureTheory +open scoped ENNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +/-- The uniform sharp L2 projection bound yields the interior gradient +estimate in natural radius units. The constants precede every configuration. -/ +theorem SharpProjectionFamily.uniform_gradient_bound {K : ℝ} {n : ℕ} + {hX : NoncollapsedRCD K n X} {I : Type*} {S ρ : ℝ} + (d : SharpProjectionFamily hX I S ρ) + (hcompact : LocalPoissonHarmonicCompactnessInput hX) + (hgradient : LocalHarmonicL2GradientInput hX) (hn : 2 ≤ n) + (hS : 0 < S) (hρ : 0 < ρ) (hρS : ρ < S) : + ∃ G : ℝ, 0 < G ∧ ∃ δ : ℝ, 0 < δ ∧ ∀ i, d.error i < δ → + ∀ᵐ x ∂(hausdorff n X).restrict (ball (d.center i) (ρ / 2 * d.radius i)), + d.radius i ^ 2 * localGamma (hausdorff n X) hX.quadratic + (d.residual i) (d.residual i) x ≤ G ^ 2 * d.source i ^ 2 := by + obtain ⟨C, hC, δ, hδ, hbound⟩ := d.uniform_bound hcompact hgradient hn hS hρ hρS + obtain ⟨D, hD, hgrad⟩ := hgradient hn (ρ ^ 2) (1 / 2) + (sq_nonneg ρ) (by norm_num) (by norm_num) + refine ⟨D * C / ρ, div_pos (mul_pos (by linarith) hC) hρ, δ, hδ, ?_⟩ + intro i hi + have hr := d.radius_pos i + have hcurv : -(ρ ^ 2) ≤ K * (ρ * d.radius i) ^ 2 := by + have hc := mul_le_mul_of_nonneg_left (d.curvature i) (sq_nonneg ρ) + nlinarith only [hc] + have hw := (d.harmonic i).mono (hausdorff n X) hX.quadratic + (ball_subset_ball (mul_le_mul_of_nonneg_right hρS.le hr.le)) + have hg := hgrad (d.center i) (ρ * d.radius i) (mul_pos hρ hr) hcurv (d.residual i) hw + have hmean : ((hausdorff n X).real (ball (d.center i) (ρ * d.radius i)))⁻¹ * + (∫ x in ball (d.center i) (ρ * d.radius i), + (SobolevSpace.toLp (hausdorff n X) hX.quadratic (d.residual i) x) ^ 2 ∂hausdorff n X) = + d.size i ^ 2 := by + rw [← normalized_sobolev_mean_sq (hausdorff n X) hX.quadratic _ + (ne_of_lt (hX.finiteOnBounded _ isBounded_ball)), ← d.size_eq] + rw [hmean] at hg + have hsize : 0 ≤ d.size i := by rw [d.size_eq]; exact norm_nonneg _ + have hsq : d.size i ^ 2 ≤ (C * d.source i) ^ 2 := + (sq_le_sq₀ hsize (mul_pos hC (d.source_pos i)).le).mpr (hbound i hi) + have hradius : (1 / 2 : ℝ) * (ρ * d.radius i) = ρ / 2 * d.radius i := by ring + rw [hradius] at hg + filter_upwards [hg] with x hx + calc + _ ≤ d.radius i ^ 2 * ((D / (ρ * d.radius i)) ^ 2 * d.size i ^ 2) := + mul_le_mul_of_nonneg_left hx (sq_nonneg _) + _ ≤ d.radius i ^ 2 * ((D / (ρ * d.radius i)) ^ 2 * (C * d.source i) ^ 2) := + mul_le_mul_of_nonneg_left (mul_le_mul_of_nonneg_left hsq (sq_nonneg _)) (sq_nonneg _) + _ = (D * C / ρ) ^ 2 * d.source i ^ 2 := by field_simp [hρ.ne', hr.ne'] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/SharpRecoveryEnergy.lean b/lean/OAI/Geometry/RCD/Sobolev/SharpRecoveryEnergy.lean new file mode 100644 index 0000000000000000000000000000000000000000..737555e942fee9f142bb1567953586be34ca94cf --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/SharpRecoveryEnergy.lean @@ -0,0 +1,82 @@ +import OAI.Geometry.RCD.Sobolev.SharpTestRecoverySequence +import OAI.Geometry.RCD.Sobolev.SmoothGradientTest +import OAI.Geometry.RCD.Metric.SupportedRecoverySlope + +namespace OAI + +/-! # Sharp normalized energy upper bound for the actual recovered tests + +The fixed interior support extends the local slope estimate to the whole +physical ball. Measured convergence then gives the Euclidean Dirichlet energy +with no multiplicative loss. +-/ + +open Set Metric Filter MeasureTheory +open scoped Topology ContDiff BoundedContinuousFunction +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem NoncollapsedRCD.recovery_energy_upper {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) {S c : ℝ} (hS : 0 + ⟨by simpa only [Measure.restrict_apply_univ] using (hfin k).lt_top⟩ + have hmass (k : ℕ) : 0<μ.real (ball (p k) (S*r k)) := + ENNReal.toReal_pos (hX.fullSupport _ _ (mul_pos hS (hr k))).ne' (hfin k) + have hlim := physical_ball_measured_test_tendsto hS hS le_rfl hr hv hfin hmass hε (G^2) + change Tendsto (fun k => (μ.real (ball (p k) (S*r k)))⁻¹* + ∫ x in ball (p k) (S*r k), (G (v k x))^2 ∂μ) atTop + (𝓝 ((volume.real (ball (0:Euclidean n) S))⁻¹* + ∫ z in ball 0 S, (G z)^2)) at hlim + intro δ hδ + let η := min 1 (δ/(2*(2*‖G‖+1))) + have hden : 0<2*(2*‖G‖+1) := by positivity + have hη : 0<η := lt_min zero_lt_one (div_pos hδ hden) + have hη1 : η≤1 := min_le_left _ _ + have hηδ : η*(2*‖G‖+η)≤δ/2 := by + have hh := (le_div_iff₀ hden).mp (min_le_right 1 (δ/(2*(2*‖G‖+1)))) + have hb := mul_le_mul_of_nonneg_left (add_le_add_left hη1 (2*‖G‖)) hη.le + dsimp only [η] at hb ⊢ + nlinarith + have hev := hlim.eventually (Iio_mem_nhds (show + (volume.real (ball (0:Euclidean n) S))⁻¹*(∫ z in ball 0 S, (G z)^2)< + (volume.real (ball (0:Euclidean n) S))⁻¹*(∫ z in ball 0 S, (G z)^2)+δ/2 by linarith)) + filter_upwards [hgrad η hη,hev] with k hk he + have hfull := supported_recovery_slope μ hX.quadratic (w k) measurableSet_ball + (fun x => add_nonneg (norm_nonneg _) hη.le) (hzero k) hk + have hGm : AEStronglyMeasurable (fun x => G (v k x)) (μ.restrict (ball (p k) (S*r k))) := + (G.continuous.measurable.comp (hv k).measurable).aestronglyMeasurable + have hGb : ∀ᵐ x ∂μ.restrict (ball (p k) (S*r k)), 0≤G (v k x) ∧ G (v k x)≤‖G‖ := + Eventually.of_forall fun x => ⟨by simp only [G,smoothGradientTest_apply]; positivity, + le_trans (le_abs_self _) (G.norm_coe_le_norm _)⟩ + have hb := recovery_energy_quadratic_error μ hX.quadratic (hmass k) (hr k).le (w k) + hη.le hGm hGb (ae_restrict_of_ae hfull) + have ht := hb.trans (add_le_add he.le hηδ) + simpa only [G,smoothGradientTest_apply,add_assoc,add_halves] using ht + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/SharpTestRecoverySequence.lean b/lean/OAI/Geometry/RCD/Sobolev/SharpTestRecoverySequence.lean new file mode 100644 index 0000000000000000000000000000000000000000..7ec32321fe838ba9d10fbf67615cd254b097b6f8 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/SharpTestRecoverySequence.lean @@ -0,0 +1,91 @@ +import OAI.Geometry.RCD.Transport.HopfDirichletSequence +import OAI.Geometry.RCD.Sobolev.InteriorSmoothTestBounds + +namespace OAI + +/-! # Sharp local-gradient recovery for every interior smooth Euclidean test + +The functions belong to the actual source Dirichlet spaces. Their values +converge uniformly almost everywhere, and their rescaled minimal gradients +are bounded by the differential of the target test plus an arbitrary error. +-/ + +open Set Metric Filter MeasureTheory +open scoped ContDiff Topology NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem NoncollapsedRCD.sharp_test_recovery_sequence_supported {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) {S : ℝ} (hS : 0 p (k+N)) (fun k => r (k+N)) (fun k => ε (k+N)) (fun k => v (k+N)) F + (fun k => hr (k+N)) (fun k => hε (k+N)) (hεlim.comp (tendsto_add_atTop_nat N)) + (fun k => (hv (k+N)).metric) hF' hFs he' + refine ⟨c,by dsimp only [c]; linarith, hcS,J+N,?_⟩ + let w' : ∀ k : ℕ, SobolevSpace.dirichlet (hausdorff n X) hX.quadratic + (ball (p (k+(J+N))) (S*r (k+(J+N)))) := fun k => + ⟨(w k).val,by simpa only [Nat.add_assoc] using (w k).property⟩ + refine ⟨w',?_,?_,?_⟩ + · simpa only [w',Nat.add_assoc] using hw + · simpa only [w',Nat.add_assoc] using hgrad + · simpa only [w',Nat.add_assoc] using hzero + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/SharpWeightedTestRecovery.lean b/lean/OAI/Geometry/RCD/Sobolev/SharpWeightedTestRecovery.lean new file mode 100644 index 0000000000000000000000000000000000000000..81862fef508a82f752b16a935f907bde2412c057 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/SharpWeightedTestRecovery.lean @@ -0,0 +1,67 @@ +import OAI.Geometry.RCD.Sobolev.WeightedRecoveryConvergence + +namespace OAI + +/-! # Actual Dirichlet tests with exact compactly weighted energies + +One recovered sequence works for every nonnegative compact interior weight. +The sequence is the original Hopf--Lax recovery, with no energy convergence +assumed of it. +-/ + +open Set Filter MeasureTheory Metric +open scoped Topology NNReal BoundedContinuousFunction +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem NoncollapsedRCD.sharp_weighted_test_recovery {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (hn : 2≤n) {S : ℝ} (hS : 0 r (k+N)^2*((hausdorff n X).real (ball (p (k+N)) (S*r (k+N))))⁻¹* + ∫ x in ball (p (k+N)) (S*r (k+N)), φ (v (k+N) x)*localGamma (hausdorff n X) hX.quadratic + (q k).val (q k).val x ∂hausdorff n X) atTop + (𝓝 ((volume.real (ball (0:Euclidean n) S))⁻¹* + ∫ z in ball 0 S, φ z*‖fderiv ℝ ψ z‖^2)) := by + obtain ⟨c,hc,hcS,N,q,hq,hg,hz⟩ := + hX.sharp_test_recovery_sequence_supported hS p r ε v hr hε hεlim hv hψ + refine ⟨c,hc,hcS,N,q,hq,hg,hz,?_⟩ + intro φ hφ hs + obtain ⟨ρ,hρ,hsub⟩ := exists_pos_lt_subset_ball hS (isClosed_tsupport φ) hs + let τ := (2*ρ+S)/3 + let R := (ρ+2*S)/3 + have hρτ : ρ<τ := by dsimp only [τ]; linarith [hρ.2] + have hτR : τ p (k+N)) (fun k => r (k+N)) (fun k => ε (k+N)) (fun k => v (k+N)) + (fun k => hr (k+N)) (fun k => hcurv (k+N)) + (fun k => hε (k+N)) (fun k => hε1 (k+N)) (hεlim.comp (tendsto_add_atTop_nat N)) + (fun k => hv (k+N)) (fun k => (q k).val) hψ _ hz (hg c hc.le hcS) φ hφ + ((subset_tsupport φ).trans hsub) + intro W hW hWS δ hδ + filter_upwards [hq δ hδ] with k hk + exact ae_restrict_of_ae_restrict_of_subset + (ball_subset_ball (mul_le_mul_of_nonneg_right hWS.le (hr (k+N)).le)) hk + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/ShiftedBochnerCutoff.lean b/lean/OAI/Geometry/RCD/Sobolev/ShiftedBochnerCutoff.lean new file mode 100644 index 0000000000000000000000000000000000000000..c74fbfa7b905ca6ff30a1413d8c67875a31702fd --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/ShiftedBochnerCutoff.lean @@ -0,0 +1,133 @@ +import OAI.Geometry.RCD.Sobolev.BochnerCutoffIdentity +import OAI.Geometry.RCD.Sobolev.PoissonBochnerMass +import OAI.Geometry.RCD.Sobolev.ShiftedBochnerMeasure + +namespace OAI + +/-! # The shifted Poisson mass estimate from the actual local equations -/ + +open Set Metric MeasureTheory +open scoped InnerProductSpace BoundedContinuousFunction NNReal + +noncomputable section + +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] [FiniteDimensional ℝ E] + +omit [ProperSpace X] in +/-- The weak equation for a full signed Laplacian gives the defect +identity against an actual Sobolev cutoff. -/ +theorem IsMeasureLaplacianOn.test_positive_defect + {S : Set X} [IsFiniteMeasure (μ.restrict S)] + (Q : SobolevSpace μ hQ) (a : ℝ) (σ : Measure X) [IsFiniteMeasure σ] + (hQsource : IsMeasureLaplacianOn μ hQ S Q + (a • (μ.restrict S).toSignedMeasure - σ.toSignedMeasure)) + (χ : X →ᵇ ℝ) (hχs : HasCompactSupport (χ : X → ℝ)) + (hχS : tsupport (χ : X → ℝ) ⊆ S) + (c : SobolevSpace μ hQ) (hc : SobolevSpace.toLp μ hQ c =ᵐ[μ] χ) + (q : Lp ℝ 2 μ) (hq : IsWeakLaplacian μ hQ c q) + (hqs : ∀ᵐ x ∂μ, x ∉ S → q x = 0) : + (∫ x in S, SobolevSpace.toLp μ hQ Q x * q x ∂μ) = + a * (∫ x in S, χ x ∂μ) - ∫ x, χ x ∂σ := by + have he := hQsource c χ χ.continuous hχs hχS hc + rw [VectorMeasure.integral_sub_vectorMeasure + (PositiveBilinearMeasure.integrable_weight χ _) + (PositiveBilinearMeasure.integrable_weight χ _), + VectorMeasure.integral_smul_vectorMeasure, + VectorMeasure.integral_toSignedMeasure, VectorMeasure.integral_toSignedMeasure] at he + have hw := hq Q + rw [energyForm_comm μ hQ c Q, L2.inner_def] at hw + have hi : (∫ x, ⟪q x, SobolevSpace.toLp μ hQ Q x⟫_ℝ ∂μ) = + ∫ x in S, SobolevSpace.toLp μ hQ Q x * q x ∂μ := by + calc + _ = ∫ x, SobolevSpace.toLp μ hQ Q x * q x ∂μ := by + apply integral_congr_ae + exact Filter.Eventually.of_forall fun x => by + simp only [RCLike.inner_apply, conj_trivial] + _ = _ := by + symm + apply setIntegral_eq_integral_of_ae_compl_eq_zero + filter_upwards [hqs] with x hx hnot + rw [hx hnot, mul_zero] + rw [hi] at hw + change energyForm μ hQ Q c = -(a * (∫ x in S, χ x ∂μ) - ∫ x, χ x ∂σ) at he + linarith + +omit [ProperSpace X] in +/-- The shifted measure satisfies the exact cutoff identity, including +the trace correction and its full singular mass. -/ +theorem LocalHarmonicEnergy.test_shifted_cutoff + {U : E →L[ℝ] SobolevSpace μ hQ} {M : PositiveBilinearMeasure X E} + {κ : ℝ} {p : X} {r : ℝ} {L : ℝ≥0} {v : E} + [IsFiniteMeasure (μ.restrict (ball p (2 * r)))] + (G : LocalHarmonicEnergy μ hQ U M κ p r L v) + (ell : E →ₗ[ℝ] ℝ) (n b : ℝ) + (hshift : ShiftedBochnerLowerBound M (μ.restrict (ball p (2 * r))) ell n) + (χ : X →ᵇ ℝ) (hχs : HasCompactSupport (χ : X → ℝ)) + (hχS : tsupport (χ : X → ℝ) ⊆ ball p (2 * r)) + (c : SobolevSpace μ hQ) (hc : SobolevSpace.toLp μ hQ c =ᵐ[μ] χ) + (q : Lp ℝ 2 μ) (hq : IsWeakLaplacian μ hQ c q) + (hqs : ∀ᵐ x ∂μ, x ∉ ball p (2 * r) → q x = 0) : + (∫ x, χ x ∂(shiftedBochnerMeasure M (μ.restrict (ball p (2 * r))) ell n hshift).measure (WithLp.toLp 2 (v, b))) = + (1 / 2 : ℝ) * (∫ x in ball p (2 * r), localGamma μ hQ (U v) (U v) x * q x ∂μ) + + κ * (∫ x in ball p (2 * r), χ x * localGamma μ hQ (U v) (U v) x ∂μ) - + (2 * b * ell v - n * b ^ 2) * ∫ x in ball p (2 * r), χ x ∂μ := by + have he := G.test_cutoff μ hQ χ hχs hχS c hc q hq hqs + rw [ShiftedBochnerMeasure.integral, ← M.weightedOperator_energy χ v, he] + have hqS : (∫ x in ball p (2 * r), localGamma μ hQ (U v) (U v) x * q x ∂μ) = + ∫ x, localGamma μ hQ (U v) (U v) x * q x ∂μ := by + apply setIntegral_eq_integral_of_ae_compl_eq_zero + filter_upwards [hqs] with x hx hnot + rw [hx hnot, mul_zero] + have hχlocal : (∫ x in ball p (2 * r), χ x * localGamma μ hQ (U v) (U v) x ∂μ) = + ∫ x, χ x * localGamma μ hQ (U v) (U v) x ∂μ := by + apply setIntegral_eq_integral_of_forall_compl_eq_zero + intro x hx + have hz : χ x = 0 := by + by_contra hn + exact hx (hχS (subset_closure hn)) + rw [hz, zero_mul] + rw [hqS, hχlocal] + +omit [ProperSpace X] in +/-- Both raw source identities in the shifted Bochner estimate follow +from the local PDEs and the cutoff Laplacian. -/ +theorem shifted_poisson_bochner_mass_le + {U : E →L[ℝ] SobolevSpace μ hQ} {M : PositiveBilinearMeasure X E} + {κ : ℝ} {p : X} {r : ℝ} {L : ℝ≥0} {v : E} + [IsFiniteMeasure (μ.restrict (ball p (2 * r)))] + (G : LocalHarmonicEnergy μ hQ U M κ p r L v) + (ell : E →ₗ[ℝ] ℝ) (n : ℝ) + (hshift : ShiftedBochnerLowerBound M (μ.restrict (ball p (2 * r))) ell n) + (Q : SobolevSpace μ hQ) (σ : Measure X) [IsFiniteMeasure σ] + (hQsource : IsMeasureLaplacianOn μ hQ (ball p (2 * r)) Q + (ell v • (μ.restrict (ball p (2 * r))).toSignedMeasure - σ.toSignedMeasure)) + (χ : X →ᵇ ℝ) (hχ : ∀ x, 0 ≤ χ x ∧ χ x ≤ 1) + (hχs : HasCompactSupport (χ : X → ℝ)) + (hχS : tsupport (χ : X → ℝ) ⊆ ball p (2 * r)) + (c : SobolevSpace μ hQ) (hc : SobolevSpace.toLp μ hQ c =ᵐ[μ] χ) + (q : Lp ℝ 2 μ) (hq : IsWeakLaplacian μ hQ c q) + (hqs : ∀ᵐ x ∂μ, x ∉ ball p (2 * r) → q x = 0) + (s : Set X) (hs : MeasurableSet s) (hχone : ∀ x ∈ s, χ x = 1) + {D error : ℝ} (hD : 0 ≤ D) (hκ : 0 ≤ κ) (hna : n ≤ ell v) + (hdχbound : ∀ᵐ x ∂μ.restrict (ball p (2 * r)), |q x| ≤ D) + (herror : (∫ x in ball p (2 * r), + |(1 / 2 : ℝ) * localGamma μ hQ (U v) (U v) x - SobolevSpace.toLp μ hQ Q x| ∂μ) ≤ error) : + ((shiftedBochnerMeasure M (μ.restrict (ball p (2 * r))) ell n hshift).measure (WithLp.toLp 2 (v, (1 : ℝ)))).real s ≤ + D * error + κ * ∫ x in ball p (2 * r), localGamma μ hQ (U v) (U v) x ∂μ := by + apply poisson_bochner_mass_le μ hQ (U v) _ σ χ hχ s (ball p (2 * r)) hs hχone + (SobolevSpace.toLp μ hQ Q) q + (MemLp.integrable (by norm_num) ((Lp.memLp _).restrict _)) + (Lp.aestronglyMeasurable q |>.restrict) hD hκ hna hdχbound herror + · simpa only [one_pow, mul_one, one_mul] using + G.test_shifted_cutoff μ hQ ell n 1 hshift χ hχs hχS c hc q hq hqs + · exact hQsource.test_positive_defect μ hQ Q (ell v) σ χ hχs hχS c hc q hq hqs + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/ShiftedBochnerMeasure.lean b/lean/OAI/Geometry/RCD/Sobolev/ShiftedBochnerMeasure.lean new file mode 100644 index 0000000000000000000000000000000000000000..07eac707525f3f7bc8d46044e77e86eb904e9133 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/ShiftedBochnerMeasure.lean @@ -0,0 +1,142 @@ +import OAI.Geometry.RCD.Coordinates.WeightedBilinearMeasure +import Mathlib.Analysis.InnerProductSpace.ProdL2 + +namespace OAI + +/-! +# The full shifted Bochner measure + +The trace inequality for the Hessian gives the displayed scalar lower +bound. The associated positive quadratic measure is defined on pairs +`(function direction, scalar shift)`. In particular, the quadratic +triangle inequality applies to two different Poisson replacements and +retains all singular mass. +-/ + +open Set MeasureTheory +open scoped InnerProductSpace BoundedContinuousFunction + +noncomputable section + +namespace RegularPointCoordinates + +variable {X E : Type*} [MeasurableSpace X] [NormedAddCommGroup E] + [InnerProductSpace ℝ E] [FiniteDimensional ℝ E] + +/-- The scalar consequence of `M >= |Hess f|² m` and `tr Hess f = Δf` +needed to subtract a constant multiple of the metric. -/ +def ShiftedBochnerLowerBound (M : PositiveBilinearMeasure X E) + (ν : Measure X) (ell : E →ₗ[ℝ] ℝ) (n : ℝ) : Prop := + ∀ (v : E) (b : ℝ) (s : Set X), MeasurableSet s → + (2 * b * ell v - n * b ^ 2) * ν.real s ≤ (M.measure v).real s + +/-- Subtracting the trace correction from the full Bochner measure makes +a positive bilinear measure on the augmented space. -/ +def shiftedBochnerMeasure (M : PositiveBilinearMeasure X E) + (ν : Measure X) [IsFiniteMeasure ν] (ell : E →ₗ[ℝ] ℝ) (n : ℝ) + (h : ShiftedBochnerLowerBound M ν ell n) : PositiveBilinearMeasure X (WithLp 2 (E × ℝ)) where + bilinear := LinearMap.mk₂ ℝ + (fun v w => M.bilinear v.fst w.fst - + (v.snd * ell w.fst + w.snd * ell v.fst - n * v.snd * w.snd) • ν.toSignedMeasure) + (by + intro u v w + simp only [WithLp.add_fst, WithLp.add_snd, map_add, LinearMap.add_apply] + module) + (by + intro c v w + simp only [WithLp.smul_fst, WithLp.smul_snd, map_smul, LinearMap.smul_apply, + smul_eq_mul] + module) + (by + intro u v w + simp only [WithLp.add_fst, WithLp.add_snd, map_add] + module) + (by + intro c v w + simp only [WithLp.smul_fst, WithLp.smul_snd, map_smul, smul_eq_mul] + module) + symmetric v w := by + change M.bilinear v.fst w.fst - + (v.snd * ell w.fst + w.snd * ell v.fst - n * v.snd * w.snd) • ν.toSignedMeasure = + M.bilinear w.fst v.fst - + (w.snd * ell v.fst + v.snd * ell w.fst - n * w.snd * v.snd) • ν.toSignedMeasure + rw [M.symmetric] + congr 2 + ring + nonneg v := by + intro s hs + change 0 ≤ (M.bilinear v.fst v.fst - + (v.snd * ell v.fst + v.snd * ell v.fst - n * v.snd * v.snd) • ν.toSignedMeasure) s + rw [sub_apply, smul_apply, Measure.toSignedMeasure_apply_measurable hs] + have hb := h v.fst v.snd s hs + rw [M.measure_real _ s hs, real_inner_comm, M.massOperator_inner] at hb + simp only [smul_eq_mul] + nlinarith + +namespace ShiftedBochnerMeasure + +variable (M : PositiveBilinearMeasure X E) (ν : Measure X) [IsFiniteMeasure ν] + (ell : E →ₗ[ℝ] ℝ) (n : ℝ) (h : ShiftedBochnerLowerBound M ν ell n) + +theorem diagonal (v : E) (b : ℝ) : + (shiftedBochnerMeasure M ν ell n h).bilinear (WithLp.toLp 2 (v, b)) (WithLp.toLp 2 (v, b)) = + M.bilinear v v - (2 * b * ell v - n * b ^ 2) • ν.toSignedMeasure := by + change M.bilinear v v - (b * ell v + b * ell v - n * b * b) • ν.toSignedMeasure = _ + congr 2 + ring + +/-- The zero shift recovers the original measure, not just its density. -/ +theorem zero_shift (v : E) : + (shiftedBochnerMeasure M ν ell n h).measure (WithLp.toLp 2 (v, (0 : ℝ))) = M.measure v := by + change (M.bilinear v v - (0 * ell v + 0 * ell v - n * 0 * 0) • ν.toSignedMeasure).toMeasureOfZeroLE + univ MeasurableSet.univ _ = _ + simp [PositiveBilinearMeasure.measure] + +theorem mass (v : E) (b : ℝ) (s : Set X) (hs : MeasurableSet s) : + ((shiftedBochnerMeasure M ν ell n h).measure (WithLp.toLp 2 (v, b))).real s = + (M.measure v).real s - (2 * b * ell v - n * b ^ 2) * ν.real s := by + rw [PositiveBilinearMeasure.measure_real _ _ s hs, real_inner_comm, + PositiveBilinearMeasure.massOperator_inner, diagonal, + sub_apply, smul_apply, Measure.toSignedMeasure_apply_measurable hs, + M.measure_real _ s hs, real_inner_comm, M.massOperator_inner] + rfl + +/-- The full-measure triangle estimate for two Poisson functions and two +scalar metric shifts. -/ +theorem difference_mass_le (v w : E) (b c : ℝ) (s : Set X) (hs : MeasurableSet s) : + ((shiftedBochnerMeasure M ν ell n h).measure (WithLp.toLp 2 (v - w, b - c))).real s ≤ + 2 * (((shiftedBochnerMeasure M ν ell n h).measure (WithLp.toLp 2 (v, b))).real s + + ((shiftedBochnerMeasure M ν ell n h).measure (WithLp.toLp 2 (w, c))).real s) := by + have hb := (shiftedBochnerMeasure M ν ell n h).measure_add_le (WithLp.toLp 2 (v, b)) (WithLp.toLp 2 (-w, -c)) s hs + have he : ((shiftedBochnerMeasure M ν ell n h).measure (WithLp.toLp 2 (-w, -c))).real s = + ((shiftedBochnerMeasure M ν ell n h).measure (WithLp.toLp 2 (w, c))).real s := by + rw [mass M ν ell n h _ _ s hs, mass M ν ell n h _ _ s hs, + M.measure_real _ s hs, M.measure_real _ s hs] + simp only [map_neg, inner_neg_left, inner_neg_right, neg_neg] + ring + simpa only [← WithLp.toLp_add, Prod.mk_add_mk, ← sub_eq_add_neg, he] using hb + +section Integration + +variable [TopologicalSpace X] [BorelSpace X] + +/-- Bounded tests integrate the full shifted measure. -/ +theorem integral (v : E) (b : ℝ) (χ : X →ᵇ ℝ) : + (∫ x, χ x ∂(shiftedBochnerMeasure M ν ell n h).measure (WithLp.toLp 2 (v, b))) = + (∫ x, χ x ∂M.measure v) - (2 * b * ell v - n * b ^ 2) * ∫ x, χ x ∂ν := by + rw [← VectorMeasure.integral_toSignedMeasure, + PositiveBilinearMeasure.measure_toSignedMeasure, diagonal, + VectorMeasure.integral_sub_vectorMeasure + (PositiveBilinearMeasure.integrable_weight χ _) + (PositiveBilinearMeasure.integrable_weight χ _), + VectorMeasure.integral_smul_vectorMeasure, ← M.measure_toSignedMeasure v, + VectorMeasure.integral_toSignedMeasure, VectorMeasure.integral_toSignedMeasure] + rfl + +end Integration +end ShiftedBochnerMeasure +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/ShiftedDensityCutoffBound.lean b/lean/OAI/Geometry/RCD/Sobolev/ShiftedDensityCutoffBound.lean new file mode 100644 index 0000000000000000000000000000000000000000..2d272cfa669605851b690a7613a964d76ce4ea5e --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/ShiftedDensityCutoffBound.lean @@ -0,0 +1,84 @@ +import OAI.Geometry.RCD.Sobolev.ShiftedRadonCutoff + +namespace OAI + +/-! # Quantitative inner bounds from the full shifted cutoff mass + +No absolute continuity of the full Bochner measure is needed. Its singular +part contributes with the correct sign to the upper bound. +-/ + +open Set Filter Metric MeasureTheory +open scoped Topology NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) [IsFiniteMeasureOnCompacts μ] (Q : QuadraticCheegerEnergy μ) + +theorem GoodLaplacianCutoff.shifted_density_le_full + {p : X} {r C : ℝ} (χ : GoodLaplacianCutoff μ Q p r C) + (σ : Measure X) [IsFiniteMeasure σ] (d : Lp ℝ 2 μ) (n : ℝ) : + (∫ x, χ.weight x*((σ.rnDeriv μ x).toReal-2*d x+n) ∂μ) ≤ + (∫ x, χ.weight x ∂σ)-2*(∫ x, χ.weight x*d x ∂μ)+n*(∫ x, χ.weight x ∂μ) := by + have hχ : Integrable χ.weight μ := + χ.weight.continuous.integrable_of_hasCompactSupport (χ.hasCompactSupport μ Q) + have hd : Integrable (fun x => χ.weight x*d x) μ := by + have hi := (Lp.memLp (SobolevSpace.toLp μ Q χ.sobolev)).integrable_mul (Lp.memLp d) + exact hi.congr (χ.representative.mono fun x hx => by + change SobolevSpace.toLp μ Q χ.sobolev x*d x=χ.weight x*d x + rw [hx]) + have hRN : Integrable (fun x => χ.weight x*(σ.rnDeriv μ x).toReal) μ := by + have hi : Integrable (fun x => (σ.rnDeriv μ x).toReal) μ := by + simpa only [IntegrableOn,Measure.restrict_univ] using + (Measure.integrableOn_toReal_rnDeriv (μ := σ) (ν := μ) (s := univ) (measure_ne_top _ _)) + exact hi.bdd_mul χ.weight.continuous.aestronglyMeasurable (Eventually.of_forall fun x => by + rw [Real.norm_eq_abs,abs_of_nonneg (χ.bounds x).1] + exact (χ.bounds x).2) + have heq : (fun x => χ.weight x*((σ.rnDeriv μ x).toReal-2*d x+n))= + fun x => χ.weight x*(σ.rnDeriv μ x).toReal-2*(χ.weight x*d x)+n*χ.weight x := by + funext x + ring + have ha := integral_add (hRN.sub (hd.const_mul 2)) (hχ.const_mul n) + simp only [Pi.sub_apply] at ha + rw [heq,ha,integral_sub hRN (hd.const_mul 2),integral_const_mul,integral_const_mul] + linarith only [χ.weighted_radon_le_full μ Q σ] + +theorem GoodLaplacianCutoff.shifted_inner_density_le + {p : X} {r C : ℝ} (χ : GoodLaplacianCutoff μ Q p r C) + (σ : Measure X) [IsFiniteMeasure σ] (d : Lp ℝ 2 μ) (n : ℝ) + (hpos : ∀ᵐ x ∂μ.restrict (closedBall p (2*r)), + 0≤(σ.rnDeriv μ x).toReal-2*d x+n) + {S : Set X} (hS : MeasurableSet S) (hsub : S⊆ball p r) : + (∫ x in S, (σ.rnDeriv μ x).toReal-2*d x+n ∂μ) ≤ + (∫ x, χ.weight x ∂σ)-2*(∫ x, χ.weight x*d x ∂μ)+n*(∫ x, χ.weight x ∂μ) := by + have hp : ∀ᵐ x ∂μ, 0≤χ.weight x*((σ.rnDeriv μ x).toReal-2*d x+n) := by + filter_upwards [(ae_restrict_iff' measurableSet_closedBall).mp hpos] with x hx + by_cases hm : x∈closedBall p (2*r) + · exact mul_nonneg (χ.bounds x).1 (hx hm) + · rw [χ.zero x (lt_of_not_ge (by simpa only [mem_closedBall,dist_comm] using hm)),zero_mul] + have heq : (fun x => χ.weight x*((σ.rnDeriv μ x).toReal-2*d x+n)) + =ᵐ[μ.restrict S] fun x => (σ.rnDeriv μ x).toReal-2*d x+n := by + filter_upwards [ae_restrict_mem hS] with x hx + rw [χ.one x (hsub hx),one_mul] + rw [← integral_congr_ae heq] + exact (integral_mono_measure Measure.restrict_le_self hp + (χ.shifted_density_integrable μ Q σ d n)).trans (χ.shifted_density_le_full μ Q σ d n) + +theorem GoodLaplacianCutoff.shifted_inner_density_eventually_le + {p : X} {r C : ℝ} (χ : GoodLaplacianCutoff μ Q p r C) + (σ : ℕ → Measure X) [∀ k, IsFiniteMeasure (σ k)] (d : ℕ → Lp ℝ 2 μ) (n : ℝ) + (hpos : ∀ k, ∀ᵐ x ∂μ.restrict (closedBall p (2*r)), + 0≤((σ k).rnDeriv μ x).toReal-2*d k x+n) + {S : Set X} (hS : MeasurableSet S) (hsub : S⊆ball p r) {ell B : ℝ} + (hlim : Tendsto (fun k => (∫ x, χ.weight x ∂σ k)- + 2*(∫ x, χ.weight x*d k x ∂μ)+n*(∫ x, χ.weight x ∂μ)) atTop (𝓝 ell)) + (hB : ell≤B) {ε : ℝ} (hε : 0<ε) : + ∀ᶠ k in atTop, (∫ x in S, ((σ k).rnDeriv μ x).toReal-2*d k x+n ∂μ)≤B+ε := by + filter_upwards [hlim.eventually (gt_mem_nhds (show ell w x*c k x) μ) + (hpos : ∀ k, ∀ᵐ x ∂μ, 0 ≤ w x*c k x) + (hone : ∀ x∈S, w x=1) + (hlim : Tendsto (fun k => ∫ x, w x*c k x ∂μ) atTop (𝓝 0)) : + Tendsto (fun k => ∫ x in S, c k x ∂μ) atTop (𝓝 0) := by + have he k : (fun x => w x*c k x) =ᵐ[μ.restrict S] c k := by + filter_upwards [ae_restrict_mem hS] with x hx + rw [hone x hx,one_mul] + apply squeeze_zero (fun k => ?_) (fun k => ?_) hlim + · rw [← integral_congr_ae (he k)] + exact integral_nonneg_of_ae (ae_restrict_of_ae (hpos k)) + · rw [← integral_congr_ae (he k)] + exact integral_mono_measure Measure.restrict_le_self (hpos k) (hI k) + +omit [IsFiniteMeasureOnCompacts μ] in +theorem GoodLaplacianCutoff.weighted_radon_le_full + {p : X} {r C : ℝ} (χ : GoodLaplacianCutoff μ Q p r C) + (σ : Measure X) [IsFiniteMeasure σ] : + (∫ x, χ.weight x*(σ.rnDeriv μ x).toReal ∂μ) ≤ ∫ x, χ.weight x ∂σ := by + have hi : Integrable χ.weight σ := + χ.weight.continuous.integrable_of_hasCompactSupport (χ.hasCompactSupport μ Q) + have h := integral_mono_measure (Measure.withDensity_rnDeriv_le σ μ) + (Eventually.of_forall fun x => (χ.bounds x).1) hi + rw [integral_withDensity_eq_integral_toReal_smul (Measure.measurable_rnDeriv σ μ) + (Measure.rnDeriv_lt_top σ μ) χ.weight] at h + simpa only [smul_eq_mul,mul_comm] using h + +theorem GoodLaplacianCutoff.shifted_density_integrable + {p : X} {r C : ℝ} (χ : GoodLaplacianCutoff μ Q p r C) + (σ : Measure X) [IsFiniteMeasure σ] (d : Lp ℝ 2 μ) (n : ℝ) : + Integrable (fun x => χ.weight x*((σ.rnDeriv μ x).toReal-2*d x+n)) μ := by + have hχ : Integrable χ.weight μ := + χ.weight.continuous.integrable_of_hasCompactSupport (χ.hasCompactSupport μ Q) + have hd : Integrable (fun x => χ.weight x*d x) μ := by + have hi := (Lp.memLp (SobolevSpace.toLp μ Q χ.sobolev)).integrable_mul (Lp.memLp d) + exact hi.congr (χ.representative.mono fun x hx => by + change SobolevSpace.toLp μ Q χ.sobolev x*d x=χ.weight x*d x + rw [hx]) + have hRN : Integrable (fun x => χ.weight x*(σ.rnDeriv μ x).toReal) μ := by + have hi : Integrable (fun x => (σ.rnDeriv μ x).toReal) μ := by + simpa only [IntegrableOn,Measure.restrict_univ] using + (Measure.integrableOn_toReal_rnDeriv (μ := σ) (ν := μ) (s := univ) (measure_ne_top _ _)) + exact hi.bdd_mul χ.weight.continuous.aestronglyMeasurable (Eventually.of_forall fun x => by + rw [Real.norm_eq_abs,abs_of_nonneg (χ.bounds x).1] + exact (χ.bounds x).2) + convert (hRN.sub (hd.const_mul 2)).add (hχ.const_mul n) using 1 + funext x + simp only [Pi.add_apply,Pi.sub_apply] + ring + +theorem GoodLaplacianCutoff.shifted_density_tendsto_zero + {p : X} {r C : ℝ} (χ : GoodLaplacianCutoff μ Q p r C) + (σ : ℕ → Measure X) [∀ k, IsFiniteMeasure (σ k)] + (d : ℕ → Lp ℝ 2 μ) (n : ℝ) + (hpos : ∀ k, ∀ᵐ x ∂μ.restrict (closedBall p (2*r)), + 0 ≤ ((σ k).rnDeriv μ x).toReal-2*d k x+n) + (hlim : Tendsto (fun k => (∫ x, χ.weight x ∂σ k)- + 2*(∫ x, χ.weight x*d k x ∂μ)+n*(∫ x, χ.weight x ∂μ)) atTop (𝓝 0)) : + Tendsto (fun k => ∫ x, χ.weight x*(((σ k).rnDeriv μ x).toReal-2*d k x+n) ∂μ) + atTop (𝓝 0) := by + have hχ : Integrable χ.weight μ := + χ.weight.continuous.integrable_of_hasCompactSupport (χ.hasCompactSupport μ Q) + have hχd k : Integrable (fun x => χ.weight x*d k x) μ := by + have hi := (Lp.memLp (SobolevSpace.toLp μ Q χ.sobolev)).integrable_mul (Lp.memLp (d k)) + exact hi.congr (χ.representative.mono fun x hx => by + change SobolevSpace.toLp μ Q χ.sobolev x*d k x=χ.weight x*d k x + rw [hx]) + have hχRN k : Integrable (fun x => χ.weight x*((σ k).rnDeriv μ x).toReal) μ := by + have hi : Integrable (fun x => ((σ k).rnDeriv μ x).toReal) μ := by + simpa only [IntegrableOn,Measure.restrict_univ] using + (Measure.integrableOn_toReal_rnDeriv (μ := σ k) (ν := μ) (s := univ) (measure_ne_top _ _)) + exact hi.bdd_mul χ.weight.continuous.aestronglyMeasurable (Eventually.of_forall fun x => by + rw [Real.norm_eq_abs,abs_of_nonneg (χ.bounds x).1] + exact (χ.bounds x).2) + have hn k : ∀ᵐ x ∂μ, 0 ≤ χ.weight x*(((σ k).rnDeriv μ x).toReal-2*d k x+n) := by + filter_upwards [(ae_restrict_iff' measurableSet_closedBall).mp (hpos k)] with x hx + by_cases hm : x∈closedBall p (2*r) + · exact mul_nonneg (χ.bounds x).1 (hx hm) + · rw [χ.zero x (lt_of_not_ge (by simpa only [mem_closedBall,dist_comm] using hm)),zero_mul] + apply squeeze_zero (fun k => integral_nonneg_of_ae (hn k)) (fun k => ?_) hlim + have hfun : (fun x => χ.weight x*(((σ k).rnDeriv μ x).toReal-2*d k x+n)) = + fun x => χ.weight x*((σ k).rnDeriv μ x).toReal-2*(χ.weight x*d k x)+n*χ.weight x := by + funext x + ring + have ha := integral_add ((hχRN k).sub ((hχd k).const_mul 2)) (hχ.const_mul n) + have hs := integral_sub (hχRN k) ((hχd k).const_mul 2) + simp only [Pi.sub_apply] at ha + rw [hfun,ha,hs,integral_const_mul,integral_const_mul] + linarith only [χ.weighted_radon_le_full μ Q (σ k)] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/ShiftedSobolevProduct.lean b/lean/OAI/Geometry/RCD/Sobolev/ShiftedSobolevProduct.lean new file mode 100644 index 0000000000000000000000000000000000000000..2603a40f293a514cdf29e9b30efbfa322c26c754 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/ShiftedSobolevProduct.lean @@ -0,0 +1,33 @@ +import OAI.Geometry.RCD.Harmonic.BoundedScalarProduct + +namespace OAI + +/-! # The bounded Sobolev product with a shifted factor -/ + +open MeasureTheory +open scoped NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +omit [BorelSpace X] [ProperSpace X] in +theorem SobolevSpace.shifted_product_coe (u w : SobolevSpace μ hQ) (ε : ℝ) (A C : ℝ≥0) + (hu : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ u x|≤A) + (hw : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ w x|≤C) : + SobolevSpace.toLp μ hQ (ε • w+SobolevSpace.product μ hQ u w A C) =ᵐ[μ] + fun x => (ε+SobolevSpace.toLp μ hQ u x)*SobolevSpace.toLp μ hQ w x := by + filter_upwards [SobolevSpace.product_coe μ hQ u w A C hu hw, + Lp.coeFn_add (ε • SobolevSpace.toLp μ hQ w) + (SobolevSpace.toLp μ hQ (SobolevSpace.product μ hQ u w A C)), + Lp.coeFn_smul ε (SobolevSpace.toLp μ hQ w)] with x hp ha hs + change (ε • SobolevSpace.toLp μ hQ w+ + SobolevSpace.toLp μ hQ (SobolevSpace.product μ hQ u w A C)) x = _ + simp only [ha,Pi.add_apply,hs,Pi.smul_apply,smul_eq_mul,hp] + ring + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/ShiftedSubsolutionLevelDecay.lean b/lean/OAI/Geometry/RCD/Sobolev/ShiftedSubsolutionLevelDecay.lean new file mode 100644 index 0000000000000000000000000000000000000000..5eeed507ae3de5480b33773a01fd31e61a23b08a --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/ShiftedSubsolutionLevelDecay.lean @@ -0,0 +1,108 @@ +import OAI.Geometry.RCD.Sobolev.SubsolutionLevelStep +import OAI.Geometry.RCD.Sobolev.ShiftedDyadicSubsolutionLevels + +namespace OAI + +/-! # Decay above a prescribed level for bounded-potential subsolutions -/ + +open Set Metric Filter MeasureTheory +open scoped NNReal ENNReal Topology + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem NoncollapsedRCD.subsolution_shifted_level_energies_tendsto_zero {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (hn : 2 ≤ n) (Λ H : ℝ) (hΛ : 0 ≤ Λ) (hH : 0≤H) : + ∃ δ : ℝ, 0 < δ ∧ ∀ (x : X) (R : ℝ), 0 < R → -1 ≤ K*R^2 → + ∀ (u : SobolevSpace (hausdorff n X) hX.quadratic) (a : ℝ), 0 ≤ a → a*R^2 ≤ Λ → + IsWeakSubsolutionOn (hausdorff n X) hX.quadratic (ball x R) u a → + (∫ y in ball x R, (max (SobolevSpace.toLp (hausdorff n X) hX.quadratic u y-H) 0)^2 + ∂hausdorff n X) ≤ δ*(hausdorff n X).real (ball x R) → + Tendsto (fun i : ℕ => ∫ y in closedBall x (R/2+R/(4*2^i)), + (max (SobolevSpace.toLp (hausdorff n X) hX.quadratic u y-((H+1)-(2^i:ℝ)⁻¹)) 0)^2 + ∂hausdorff n X) atTop (𝓝 0) := by + obtain ⟨p,C,hp,hC,hstep⟩ := hX.subsolution_level_step hn + have hp0 : 0 < p := by linarith + let α := 1-2/p + have hα : 0 < α := by + have hh : 2/p < 1 := (div_lt_one hp0).mpr hp + dsimp only [α] + linarith + let C₀ := C*(641+16*Λ*(H+1))*(16:ℝ)^α + let b := (4:ℝ)^(1+α) + have hC₀ : 0 < C₀ := by dsimp only [C₀]; positivity + have hb : 0 < b := by dsimp only [b]; positivity + obtain ⟨δ,hδ,hdecay⟩ := exists_superlinear_decay_threshold hC₀ hb hα + refine ⟨δ,hδ,?_⟩ + intro x R hR hcurv u a ha haR hu hsmall + let μ := hausdorff n X + let V := μ.real (ball x R) + let U := SobolevSpace.toLp μ hX.quadratic u + let J (i : ℕ) := ∫ y in closedBall x (R/2+R/(4*2^i)), + (max (U y-((H+1)-(2^i:ℝ)⁻¹)) 0)^2 ∂μ + let Y (i : ℕ) := J i/V + have hV : 0 < V := ENNReal.toReal_pos (hX.fullSupport x R hR).ne' + (hX.finiteOnBounded _ isBounded_ball).ne + have hJ (i : ℕ) : 0 ≤ J i := integral_nonneg fun _ => sq_nonneg _ + have hY (i : ℕ) : 0 ≤ Y i := div_nonneg (hJ i) hV.le + have hstart : Y 0 ≤ δ := by + have hsub : closedBall x (R/2+R/(4*2^0)) ⊆ ball x R := + closedBall_subset_ball (dyadic_inner_radii hR 0).2.2 + have hi : Integrable (fun y => (max (U y-H) 0)^2) μ := + ((upperLevelPart_lipschitz H).comp_memLp (upperLevelPart_zero hH) (Lp.memLp U)).integrable_sq + have hJ0 : J 0 ≤ ∫ y in ball x R, (max (U y-H) 0)^2 ∂μ := by + dsimp only [J] + simp only [pow_zero,inv_one,add_sub_cancel_right] + exact setIntegral_mono_set hi.restrict + (Eventually.of_forall fun y => sq_nonneg _) (Eventually.of_forall hsub) + exact (div_le_iff₀ hV).mpr (hJ0.trans hsmall) + have hrec (i : ℕ) : Y (i+1) ≤ C₀*b^i*(Y i)^(1+α) := by + have hr := dyadic_inner_radii hR i + have hk := dyadic_level_gap_bounds hR i + have hm := shifted_dyadic_middle_level_bounds hR hH i + let j := (H+1)-(2^i:ℝ)⁻¹ + let h := (H+1)-(2^(i+1):ℝ)⁻¹ + let k := (j+h)/2 + have hjk : j < k := hm.2.1 + have hkh : k < h := hm.2.2.1 + have hh := hstep x R hR hcurv u a ha hu + (R/2+R/(4*2^(i+1))) (R/2+R/(4*2^i)) j k h hr.1 hr.2.1 hr.2.2 hm.1 hjk hkh + change J (i+1) ≤ C*V^(2/p-1)* + (10*R^2*(((R/2+R/(4*2^i))-(R/2+R/(4*2^(i+1))))⁻¹)^2+ + 4*R^2*a*(k/(k-j))+1)*J i*(J i/(h-k)^2)^(1-2/p) at hh + have hgap : J i/(h-k)^2 = (16*4^i)*J i := by + rw [div_eq_mul_inv,← inv_pow,hm.2.2.2.1] + ring + have hpot : 4*R^2*a*(k/(k-j)) ≤ (16*Λ*(H+1))*4^i := by + calc + _ = 4*(a*R^2)*(k/(k-j)) := by ring + _ ≤ 4*Λ*((H+1)*4*4^i) := by + have hk0 : 0 ≤ k := hm.1.trans hjk.le + have hh := mul_le_mul haR hm.2.2.2.2 + (div_nonneg hk0 (sub_pos.mpr hjk).le) hΛ + nlinarith only [hh] + _ = _ := by ring + have hcoeff : 10*R^2*(((R/2+R/(4*2^i))-(R/2+R/(4*2^(i+1))))⁻¹)^2+ + 4*R^2*a*(k/(k-j))+1 ≤ (641+16*Λ*(H+1))*4^i := by + nlinarith only [hk.2.2.2,hpot] + have hexp : 2/p-1 = -α := by dsimp only [α]; ring + rw [hgap,hexp] at hh + have hbnd : J (i+1) ≤ C*V^(-α)*((641+16*Λ*(H+1))*4^i)*J i*((16*4^i)*J i)^α := by + apply hh.trans + gcongr + have hnorm := div_le_div_of_nonneg_right hbnd hV.le + rw [normalized_level_identity hV (hJ i) (by norm_num : (0:ℝ)<16) + (by norm_num : (0:ℝ)<4) hα i] at hnorm + exact hnorm + have hlim := hdecay Y hY hstart hrec + have hJlim := hlim.mul_const V + have heq (i : ℕ) : Y i*V = J i := div_mul_cancel₀ _ hV.ne' + simpa only [heq,zero_mul] using hJlim + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/ShortStepActionError.lean b/lean/OAI/Geometry/RCD/Sobolev/ShortStepActionError.lean new file mode 100644 index 0000000000000000000000000000000000000000..28b45860c5e6e4e0e8cfc6adfd99dfc2fb9c509b --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/ShortStepActionError.lean @@ -0,0 +1,38 @@ +import Mathlib.Topology.Instances.Real.Lemmas +import Mathlib.Tactic + +namespace OAI + +/-! # Choosing a short final heat step with arbitrarily small action error -/ + +open Set Filter +open scoped Topology +namespace RegularPointCoordinates + +theorem short_step_action_parameters {d D T η : ℝ} (hT : 0 < T) (hη : 0 < η) : + ∃ s r : ℝ, 0 < s ∧ s < T ∧ 0 < r ∧ r < 1 ∧ + d^2/(2*s)+2*D*r^2/(T-s) < d^2/(2*T)+η := by + have hc : ContinuousAt (fun s : ℝ => d^2/(2*s)) T := by + fun_prop (disch := positivity) + have hs : ∀ᶠ s in 𝓝[<] T, 0 < s ∧ s < T ∧ d^2/(2*s) < d^2/(2*T)+η/2 := by + filter_upwards [mem_nhdsWithin_of_mem_nhds (lt_mem_nhds hT),self_mem_nhdsWithin, + hc.continuousWithinAt.tendsto.eventually (gt_mem_nhds (by linarith : + d^2/(2*T) < d^2/(2*T)+η/2))] with s hs hsT hcost + exact ⟨hs,hsT,hcost⟩ + obtain ⟨s,hs,hsT,hcost⟩ := hs.exists + have hc' : ContinuousAt (fun r : ℝ => 2*D*r^2/(T-s)) 0 := by + fun_prop (disch := linarith) + have hr : ∀ᶠ r in 𝓝[>] (0:ℝ), 0 < r ∧ r < 1 ∧ 2*D*r^2/(T-s) < η/2 := by + have hh : Tendsto (fun r : ℝ => 2*D*r^2/(T-s)) (𝓝[>] (0:ℝ)) (𝓝 0) := by + simpa only [zero_pow (by norm_num : (2:ℕ) ≠ 0),mul_zero,zero_div] using + hc'.continuousWithinAt.tendsto (s := Ioi (0:ℝ)) + have he := hh.eventually (gt_mem_nhds (half_pos hη)) + filter_upwards [self_mem_nhdsWithin, + mem_nhdsWithin_of_mem_nhds (gt_mem_nhds (by norm_num : (0:ℝ) < 1)),he] with r hr hr1 he + exact ⟨hr,hr1,he⟩ + obtain ⟨r,hr,hr1,he⟩ := hr.exists + exact ⟨s,r,hs,hsT,hr,hr1,by linarith⟩ + +end RegularPointCoordinates + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/SignedLipschitzMeasure.lean b/lean/OAI/Geometry/RCD/Sobolev/SignedLipschitzMeasure.lean new file mode 100644 index 0000000000000000000000000000000000000000..1357cf752c6e40f206b763a51a7636709d34fe94 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/SignedLipschitzMeasure.lean @@ -0,0 +1,67 @@ +import OAI.Geometry.RCD.Sobolev.LipschitzMeasureOrder +import OAI.Geometry.RCD.Coordinates.WeightedBilinearMeasure + +namespace OAI + +/-! # Positivity and uniqueness of finite signed distributions -/ + +open Set Filter MeasureTheory +open scoped NNReal BoundedContinuousFunction + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + +theorem signed_integral_jordan (ν : SignedMeasure X) (f : X →ᵇ ℝ) : + (∫ᵛ x, f x ∂<•ν) = (∫ x, f x ∂ν.toJordanDecomposition.posPart) - + ∫ x, f x ∂ν.toJordanDecomposition.negPart := by + conv_lhs => rw [← ν.toSignedMeasure_toJordanDecomposition] + change (∫ᵛ x, f x ∂<•(ν.toJordanDecomposition.posPart.toSignedMeasure - + ν.toJordanDecomposition.negPart.toSignedMeasure)) = _ + rw [VectorMeasure.integral_sub_vectorMeasure + (PositiveBilinearMeasure.integrable_weight f _) + (PositiveBilinearMeasure.integrable_weight f _), + VectorMeasure.integral_toSignedMeasure, VectorMeasure.integral_toSignedMeasure] + +theorem signedMeasure_nonneg_of_lipschitz_integral [SecondCountableTopology X] [ProperSpace X] + (ν : SignedMeasure X) + (h : ∀ (f : X →ᵇ ℝ) (L : ℝ≥0), LipschitzWith L f → 0 ≤ f → + 0 ≤ ∫ᵛ x, f x ∂<•ν) : 0 ≤ ν := by + have hle : ν.toJordanDecomposition.negPart ≤ ν.toJordanDecomposition.posPart := by + apply measure_le_of_bounded_lipschitz_integral + intro f L hf h0 hC + obtain ⟨C, hC⟩ := hC + let g : X →ᵇ ℝ := BoundedContinuousFunction.ofNormedAddCommGroup f hf.continuous + C (fun x => by simpa only [Real.norm_eq_abs, abs_of_nonneg (h0 x)] using hC x) + have hg : 0 ≤ g := h0 + have hh := h g L hf hg + rw [signed_integral_jordan] at hh + change 0 ≤ (∫ x, f x ∂ν.toJordanDecomposition.posPart) - + ∫ x, f x ∂ν.toJordanDecomposition.negPart at hh + exact sub_nonneg.mp hh + rw [← ν.toSignedMeasure_toJordanDecomposition] + change 0 ≤ ν.toJordanDecomposition.posPart.toSignedMeasure - + ν.toJordanDecomposition.negPart.toSignedMeasure + exact sub_nonneg.mpr ((Measure.toSignedMeasure_le_toSignedMeasure_iff _ _).mpr hle) + +theorem signedMeasure_eq_of_lipschitz_integral [SecondCountableTopology X] [ProperSpace X] + (μ ν : SignedMeasure X) + (h : ∀ (f : X →ᵇ ℝ) (L : ℝ≥0), LipschitzWith L f → 0 ≤ f → + (∫ᵛ x, f x ∂<•μ) = ∫ᵛ x, f x ∂<•ν) : μ = ν := by + have hsub (s t : SignedMeasure X) + (hst : ∀ (f : X →ᵇ ℝ) (L : ℝ≥0), LipschitzWith L f → 0 ≤ f → + (∫ᵛ x, f x ∂<•s) = ∫ᵛ x, f x ∂<•t) : 0 ≤ s - t := by + apply signedMeasure_nonneg_of_lipschitz_integral + intro f L hf h0 + rw [VectorMeasure.integral_sub_vectorMeasure + (PositiveBilinearMeasure.integrable_weight f _) + (PositiveBilinearMeasure.integrable_weight f _), hst f L hf h0, sub_self] + exact le_antisymm (sub_nonneg.mp (hsub ν μ (fun f L hf h0 => (h f L hf h0).symm))) + (sub_nonneg.mp (hsub μ ν h)) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/SignedTestFunctional.lean b/lean/OAI/Geometry/RCD/Sobolev/SignedTestFunctional.lean new file mode 100644 index 0000000000000000000000000000000000000000..343a730e3b3d8595dd4f559e856e4b8dcad5054f --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/SignedTestFunctional.lean @@ -0,0 +1,40 @@ +import OAI.Geometry.RCD.Coordinates.CoordinateBilinear +import OAI.Geometry.RCD.Metric.LocalSignedMeasureOrder + +namespace OAI + +/-! # Linear integration of the finite signed coefficient measures -/ + +open Set MeasureTheory +open scoped BoundedContinuousFunction + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [TopologicalSpace X] [MeasurableSpace X] [BorelSpace X] + +def signedTestIntegral (w : X →ᵇ ℝ) : SignedMeasure X →ₗ[ℝ] ℝ where + toFun ν := ∫ᵛ x, w x ∂<•ν + map_add' μ ν := VectorMeasure.integral_add_vectorMeasure + (PositiveBilinearMeasure.integrable_weight w μ) (PositiveBilinearMeasure.integrable_weight w ν) + map_smul' a ν := by simp only [VectorMeasure.integral_smul_vectorMeasure, smul_eq_mul, RingHom.id_apply] + +theorem signedTestIntegral_restrict (w : X →ᵇ ℝ) (ν : SignedMeasure X) + {S : Set X} (hS : MeasurableSet S) (hw : tsupport w ⊆ S) : + signedTestIntegral w (ν.restrict S) = signedTestIntegral w ν := by + apply VectorMeasure.setIntegral_eq_integral_of_forall_compl_eq_zero hS + intro x hx + exact image_eq_zero_of_notMem_tsupport (fun hs => hx (hw hs)) + +theorem signedTestIntegral_coordinate {m : ℕ} (w : X →ᵇ ℝ) + (a : Fin m → Fin m → SignedMeasure X) (v z : Euclidean m) : + signedTestIntegral w (coordinateBilinear a v z) = + ∑ i : Fin m, ∑ j : Fin m, (v i * z j) * signedTestIntegral w (a i j) := by + rw [coordinateBilinear_apply] + simp only [map_sum, map_smul, smul_eq_mul] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/SmallBallPoissonQuadratic.lean b/lean/OAI/Geometry/RCD/Sobolev/SmallBallPoissonQuadratic.lean new file mode 100644 index 0000000000000000000000000000000000000000..a3c641c69f9bc77023095f2ae8ce4ce5775f3c37 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/SmallBallPoissonQuadratic.lean @@ -0,0 +1,98 @@ +import OAI.Geometry.RCD.Sobolev.SmallBallPoissonValue +import OAI.Geometry.RCD.Sobolev.ActualPoissonQuadratic + +namespace OAI + +/-! # The actual quadratic approximation on interior transport balls -/ + +open Set Metric MeasureTheory +open scoped ENNReal NNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +/-- This is the quantitative quadratic-error field needed by the uniform +sharp-projection family, derived from the full source budget and metric +approximation of the actual coordinate representatives. -/ +theorem actual_poisson_small_ball_quadratic_error {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (hn : 2 ≤ n) + [IsFiniteMeasureOnCompacts (hausdorff n X)] + {κ r0 B J C omega eta ε theta : ℝ} {p : X} + {S : DyadicDistanceSources (hausdorff n X) hX.quadratic n κ p r0} + (T : DyadicDistanceReplacements (hausdorff n X) hX.quadratic S B J C) + (hκ : 0 ≤ κ) (hB : 0 ≤ B) (heta : 0 ≤ eta) (hε : 0 ≤ ε) + (htheta : 0 < theta) (htheta4 : theta ≤ 1 / 4) + (hr01 : r0 ≤ 1) (homega : 0 < omega) + (hvol : ∀ r : ℝ, 0 < r → r ≤ r0 → + |(hausdorff n X).real (ball p r) / (omega * r ^ n) - 1| ≤ 1 / 4) + (hsum : Summable (normalizedPoissonDefect (hausdorff n X) hX.quadratic S)) + (hbudget : (∑' j, normalizedPoissonDefect (hausdorff n X) hX.quadratic S j) ≤ eta) + (i : ℕ) (u : Fin n → SobolevSpace (hausdorff n X) hX.quadratic) + (Ccoord : ℝ≥0) (V : X → Euclidean n) + (hub : ∀ j, ∀ᵐ x ∂hausdorff n X, + |SobolevSpace.toLp (hausdorff n X) hX.quadratic (u j) x| ≤ Ccoord) + (hrep : ∀ j, SobolevSpace.toLp (hausdorff n X) hX.quadratic (u j) =ᵐ[ + (hausdorff n X).restrict (ball p (theta * distanceSourceRadius r0 i))] + fun x => V x j) + (hmetric : IsPointedApproximation p 0 (distanceSourceRadius r0 i) theta ε V) + (hcenter : V p = 0) : + ((hausdorff n X).real (ball p (theta * distanceSourceRadius r0 i)))⁻¹ * + (∫ x in ball p (theta * distanceSourceRadius r0 i), + (SobolevSpace.toLp (hausdorff n X) hX.quadratic + (((distanceSourceRadius r0 i) ^ 2)⁻¹ • T.replacement i) x - ‖V x‖ ^ 2 / 2) ^ 2 + ∂hausdorff n X) ≤ + 2 * (((5 / 3 : ℝ) * (theta⁻¹) ^ n) * (annularPoincareConstant K n * B / (3 / 4 * omega) * eta)) + + 2 * (ε * (2 * theta + ε) / 2) ^ 2 := by + let μ := hausdorff n X + let hQ := hX.quadratic + let r := distanceSourceRadius r0 i + let Ω := ball p (theta * r) + let f := (r ^ 2)⁻¹ • T.replacement i + let q := (r ^ 2)⁻¹ • T.distanceDatum μ hQ i + let H := coordinateQuadratic μ hQ u Ccoord + have hr : 0 < r := distanceSourceRadius_pos S.radius_pos i + have hfin : μ Ω ≠ ∞ := ne_of_lt (hX.finiteOnBounded _ isBounded_ball) + have hnoise : ‖normalizeLocalL2 μ Ω hfin (SobolevSpace.restrictLp μ hQ Ω (f - q))‖ ^ 2 ≤ + ((5 / 3 : ℝ) * (theta⁻¹) ^ n) * (annularPoincareConstant K n * B / (3 / 4 * omega) * eta) := by + have hp := rcd_poisson_small_ball_value_error_le hX hn T hκ hB heta htheta + (htheta4.trans (by norm_num)) hr01 homega hvol hsum hbudget i + have heq : f - q = -((r ^ 2)⁻¹ • (T.distanceDatum μ hQ i - T.replacement i)) := by + dsimp only [f, q] + module + rw [heq, map_neg] + simpa only [normalizeLocalL2, smul_neg, norm_neg] using hp + have hq : SobolevSpace.toLp μ hQ q =ᵐ[μ.restrict Ω] + fun x => dist p x ^ 2 / (2 * r ^ 2) := + ae_restrict_of_ae_restrict_of_subset + (ball_subset_ball (mul_le_mul_of_nonneg_right htheta4 hr.le)) + (T.scaled_datum_representative μ hQ i) + have hb := radial_quadratic_l2_bound μ hQ hr htheta.le hε hfin + u Ccoord V hub hrep hmetric hcenter f q hq + have hsquare := (sq_le_sq₀ (norm_nonneg _) + (add_nonneg (norm_nonneg _) (by positivity : 0 ≤ ε * (2 * theta + ε) / 2))).mpr hb + have hfinal : ‖normalizeLocalL2 μ Ω hfin (SobolevSpace.restrictLp μ hQ Ω (f - H))‖ ^ 2 ≤ + 2 * (((5 / 3 : ℝ) * (theta⁻¹) ^ n) * (annularPoincareConstant K n * B / (3 / 4 * omega) * eta)) + + 2 * (ε * (2 * theta + ε) / 2) ^ 2 := by + have hc := sq_nonneg (‖normalizeLocalL2 μ Ω hfin (SobolevSpace.restrictLp μ hQ Ω (f - q))‖ - + ε * (2 * theta + ε) / 2) + change ‖normalizeLocalL2 μ Ω hfin (SobolevSpace.restrictLp μ hQ Ω (f - H))‖ ≤ _ at hb + nlinarith + have hmean : ‖normalizeLocalL2 μ Ω hfin (SobolevSpace.restrictLp μ hQ Ω (f - H))‖ ^ 2 = + (μ.real Ω)⁻¹ * ∫ x in Ω, (SobolevSpace.toLp μ hQ f x - ‖V x‖ ^ 2 / 2) ^ 2 ∂μ := by + rw [normalized_sobolev_mean_sq] + congr 1 + apply integral_congr_ae + filter_upwards [coordinateQuadratic_eq_norm μ hQ u Ccoord V hub hrep, + ae_restrict_of_ae (Lp.coeFn_sub (SobolevSpace.toLp μ hQ f) (SobolevSpace.toLp μ hQ H))] + with x hx hs + rw [map_sub, hs, Pi.sub_apply, hx] + rw [hmean] at hfinal + exact hfinal + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/SmallBallPoissonValue.lean b/lean/OAI/Geometry/RCD/Sobolev/SmallBallPoissonValue.lean new file mode 100644 index 0000000000000000000000000000000000000000..9546d5d43bf01f277670221f60e17b7804417d53 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/SmallBallPoissonValue.lean @@ -0,0 +1,85 @@ +import OAI.Geometry.RCD.Sobolev.PoissonInteriorValues + +namespace OAI + +/-! # Poisson value errors on the smaller balls used by two-center transport -/ + +open Set Metric MeasureTheory +open scoped ENNReal + +noncomputable section +namespace RegularPointCoordinates + +private theorem relative_ball_volume_ratio {r theta omega V W : ℝ} {n : ℕ} + (hr : 0 < r) (htheta : 0 < theta) (homega : 0 < omega) + (hV : |V / (omega * r ^ n) - 1| ≤ 1 / 4) + (hW : |W / (omega * (theta * r) ^ n) - 1| ≤ 1 / 4) : + 0 < V ∧ 0 < W ∧ V ≤ ((5 / 3 : ℝ) * (theta⁻¹) ^ n) * W := by + have hvr : 0 < omega * r ^ n := mul_pos homega (pow_pos hr _) + have hwr : 0 < omega * (theta * r) ^ n := mul_pos homega (pow_pos (mul_pos htheta hr) _) + have hvlo : (3 / 4 : ℝ) * (omega * r ^ n) ≤ V := by + apply (le_div_iff₀ hvr).mp + linarith [(abs_le.mp hV).1] + have hvhi : V ≤ (5 / 4 : ℝ) * (omega * r ^ n) := by + apply (div_le_iff₀ hvr).mp + linarith [(abs_le.mp hV).2] + have hwlo : (3 / 4 : ℝ) * (omega * (theta * r) ^ n) ≤ W := by + apply (le_div_iff₀ hwr).mp + linarith [(abs_le.mp hW).1] + have hpow : (theta⁻¹) ^ n * (theta * r) ^ n = r ^ n := by + rw [← mul_pow, ← mul_assoc, inv_mul_cancel₀ htheta.ne', one_mul] + have hmul := mul_le_mul_of_nonneg_left hwlo + (by positivity : 0 ≤ (5 / 3 : ℝ) * (theta⁻¹) ^ n) + have hscale : ((5 / 3 : ℝ) * (theta⁻¹) ^ n) * + ((3 / 4) * (omega * (theta * r) ^ n)) = (5 / 4 : ℝ) * (omega * r ^ n) := by + calc + _ = (5 / 4 : ℝ) * omega * ((theta⁻¹) ^ n * (theta * r) ^ n) := by ring + _ = _ := by rw [hpow]; ring + rw [hscale] at hmul + exact ⟨(mul_pos (by norm_num) hvr).trans_le hvlo, + (mul_pos (by norm_num) hwr).trans_le hwlo, hvhi.trans hmul⟩ + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +/-- The same actual source budget controls every fixed smaller interior +ball; the explicit volume loss is the only dependence on its radius ratio. -/ +theorem rcd_poisson_small_ball_value_error_le {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (hn : 2 ≤ n) + [IsFiniteMeasureOnCompacts (hausdorff n X)] + {κ r0 B J C omega eta theta : ℝ} {p : X} + {S : DyadicDistanceSources (hausdorff n X) hX.quadratic n κ p r0} + (T : DyadicDistanceReplacements (hausdorff n X) hX.quadratic S B J C) + (hκ : 0 ≤ κ) (hB : 0 ≤ B) (heta : 0 ≤ eta) + (htheta : 0 < theta) (htheta1 : theta ≤ 1) (hr01 : r0 ≤ 1) (homega : 0 < omega) + (hvol : ∀ r : ℝ, 0 < r → r ≤ r0 → + |(hausdorff n X).real (ball p r) / (omega * r ^ n) - 1| ≤ 1 / 4) + (hsum : Summable (normalizedPoissonDefect (hausdorff n X) hX.quadratic S)) + (hbudget : (∑' j, normalizedPoissonDefect (hausdorff n X) hX.quadratic S j) ≤ eta) + (i : ℕ) : + ‖normalizeLocalL2 (hausdorff n X) (ball p (theta * distanceSourceRadius r0 i)) + (ne_of_lt (hX.finiteOnBounded _ isBounded_ball)) + (SobolevSpace.restrictLp (hausdorff n X) hX.quadratic + (ball p (theta * distanceSourceRadius r0 i)) + (((distanceSourceRadius r0 i) ^ 2)⁻¹ • + (T.distanceDatum (hausdorff n X) hX.quadratic i - T.replacement i)))‖ ^ 2 ≤ + ((5 / 3 : ℝ) * (theta⁻¹) ^ n) * + ((annularPoincareConstant K n * B / (3 / 4 * omega)) * eta) := by + have hr := distanceSourceRadius_pos S.radius_pos i + have hrad : distanceSourceRadius r0 i ≤ r0 := by + have hh := distanceSourceRadius_outer_le S.radius_pos.le i + linarith + have hthetaR : theta * distanceSourceRadius r0 i ≤ distanceSourceRadius r0 i := + mul_le_of_le_one_left hr.le htheta1 + obtain ⟨houter, hinner, hratio⟩ := relative_ball_volume_ratio hr htheta homega + (hvol _ hr hrad) (hvol _ (mul_pos htheta hr) (hthetaR.trans hrad)) + have hP := (annularPoincareConstant_pos K n).le + exact normalized_fit_restrict_sq (hausdorff n X) hX.quadratic + (ball_subset_ball hthetaR) _ _ houter hinner _ + (by positivity : 0 ≤ (annularPoincareConstant K n * B / (3 / 4 * omega)) * eta) + hratio (rcd_poisson_value_error_le_budget hX hn T hκ hB hr01 homega hvol hsum hbudget i) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/SmallRadiusPoissonMean.lean b/lean/OAI/Geometry/RCD/Sobolev/SmallRadiusPoissonMean.lean new file mode 100644 index 0000000000000000000000000000000000000000..b9b1da19f1bc304e719631dca8889e4ebf169c8d --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/SmallRadiusPoissonMean.lean @@ -0,0 +1,114 @@ +import OAI.Geometry.RCD.Heat.SmallRadiusOriginalMean +import OAI.Geometry.RCD.Heat.PoissonHeatShiftedMass +import OAI.Geometry.RCD.Sobolev.SobolevWeakEnergyLower + +namespace OAI + +/-! # Poisson source control of transport means at every physical radius + +The full shifted mass is constructed from the actual positive source. The +balanced estimate uses the radius-dependent centered action bound. +-/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped Topology NNReal ENNReal +noncomputable section +namespace RegularPointCoordinates.NoncollapsedRCD.CompactHeatScalingData +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + {K : ℝ} {n : ℕ} {hX : NoncollapsedRCD K n X} {hn : 2≤n} {p : X} [SeparableSpace X] + [IsLocallyFiniteMeasure (hausdorff n X)] [(hausdorff n X).Regular] + {S T : Set X} [CompactSpace S] [CompactSpace T] + {μ : Measure S} {ν : Measure T} [IsProbabilityMeasure μ] [IsProbabilityMeasure ν] + {ε : ℕ → ℝ} {hε : ∀ k, 0<ε k} + (D : hX.CompactHeatScalingData hn p μ ν ε hε) +attribute [local instance] pathBorel pathBorelSpace + +theorem small_radius_poisson_mean_estimate (p₀ : X) (a₀ : S) (b₀ : T) (hK : K≤0) + (hε1 : ∀ k, ε k≤1) (hε0 : Tendsto ε atTop (𝓝 0)) + (ρ₀ ρ₁ : X → ℝ) (hm₀ : Measurable ρ₀) (hm₁ : Measurable ρ₁) + (hp₀ : ∀ x, 0≤ρ₀ x) (hp₁ : ∀ x, 0≤ρ₁ x) {C₀ C₁ : ℝ≥0} + (hC₀ : ∀ᵐ x ∂hausdorff n X, |ρ₀ x|≤C₀) + (hC₁ : ∀ᵐ x ∂hausdorff n X, |ρ₁ x|≤C₁) + (hμ : μ.map Subtype.val=(hausdorff n X).withDensity (fun x => ENNReal.ofReal (ρ₀ x))) + (hν : ν.map Subtype.val=(hausdorff n X).withDensity (fun x => ENNReal.ofReal (ρ₁ x))) + {R : ℝ} (hR : 0 D.interpolationLaw (D.index (j k)) t) atTop (𝓝 (Q₀ t))) + (π : Measure C(Time,X)) [IsProbabilityMeasure π] (hgeo : ∀ᵐ γ ∂π, IsGeodesic γ) + (hopt : IsOptimalCoupling (μ.map Subtype.val) (ν.map Subtype.val) + (π.map (fun γ => (γ 0,γ 1)))) + {Bπ : ℝ≥0∞} (hBπ : Bπ≠∞) (hcomp : ∀ t : Time, π.map (fun γ => γ t)≤Bπ • hausdorff n X) + (hD : MemLp (fun γ : C(Time,X) => dist (γ 0) (γ 1)) 2 π) + (hQeq : ∀ t : Ioo (0:ℝ) 1, (Q₀ t : Measure X)= + π.map (fun γ => γ (⟨t,t.property.1.le,t.property.2.le⟩ : Time))) + (u q : SobolevSpace (hausdorff n X) hX.quadratic) + (d : Lp ℝ 2 (hausdorff n X)) + (hd : IsWeakLaplacian (hausdorff n X) hX.quadratic u d) + (U : X → ℝ) (L A : ℝ≥0) (hU : LipschitzWith L U) (hUc : HasCompactSupport U) + (hu : SobolevSpace.toLp (hausdorff n X) hX.quadratic u =ᵐ[hausdorff n X] U) + (hA : ∀ᵐ x ∂hausdorff n X, |SobolevSpace.toLp (hausdorff n X) hX.quadratic u x|≤A) + {b a Cχ E : ℝ} (hb : 24*R a) + (ρ : Measure X) + (hsource : ∀ (ψ : SobolevSpace (hausdorff n X) hX.quadratic) (v : X → ℝ) (M : ℝ≥0), + LipschitzWith M v → HasCompactSupport v → tsupport v ⊆ ball p b → + SobolevSpace.toLp (hausdorff n X) hX.quadratic ψ =ᵐ[hausdorff n X] v → + energyForm (hausdorff n X) hX.quadratic q ψ+ + a*(∫ x in ball p b, v x ∂hausdorff n X)=∫ x, v x ∂ρ) + (heik : (fun x => (1/2:ℝ)*localGamma (hausdorff n X) hX.quadratic q q x) + =ᵐ[(hausdorff n X).restrict (ball p b)] SobolevSpace.toLp (hausdorff n X) hX.quadratic q) + (herror : (∫ x in ball p b, + |(1/2:ℝ)*localGamma (hausdorff n X) hX.quadratic u u x- + (1/2:ℝ)*localGamma (hausdorff n X) hX.quadratic q q x| ∂hausdorff n X)≤E) : + let B := (Cχ/(12*R)^2)*E-K*weightedGamma (hausdorff n X) hX.quadratic χ.weight u u + let Z t := if ht : t∈Ioo (0:ℝ) 1 then ∫ x, U x ∂(Q₀ ⟨t,ht⟩ : Measure X) else 0 + let M l := (3*Real.sqrt (Real.exp |K| * + (16*(hX.centeredActionBound hn p₀)*(R+32*(6*R))^2/(l/4)^2))*Real.exp |K|)^4 + let C l := (Bπ.toReal/4)*Real.sqrt ((hausdorff n X).real (closedBall p (6*R)))*Real.sqrt (M l) + ∀ l h, 0 by + unfold heatStep + exact pow_le_one₀ (by norm_num) (by norm_num)) heatStep_tendsto + let (k : ℕ) : IsFiniteMeasure (σ k) := hσ k + have hw : 0≤weightedGamma (hausdorff n X) hX.quadratic χ.weight u u := + weightedGamma_nonneg_of_weight _ _ (Eventually.of_forall fun x => (χ.bounds x).1) u + have hB : 0≤B := by + dsimp only [B] + exact sub_nonneg.mpr ((mul_nonpos_of_nonpos_of_nonneg hK hw).trans + (mul_nonneg (div_nonneg hCχ (sq_nonneg _)) hE)) + have hrep' : ∀ k (ψ : SobolevSpace (hausdorff n X) hX.quadratic) (z : X → ℝ), + Continuous z → HasCompactSupport z → tsupport z ⊆ ball p (36*R) → + SobolevSpace.toLp (hausdorff n X) hX.quadratic ψ =ᵐ[hausdorff n X] z → + (∫ x, z x ∂σ k)=-(1/2:ℝ)*energyForm (hausdorff n X) hX.quadratic (G k) ψ- + weightedGamma (hausdorff n X) hX.quadratic (SobolevSpace.toLp (hausdorff n X) hX.quadratic ψ) + (heatSobolev (hausdorff n X) hX.quadratic (heatStep k) (heatStep_pos k) + (SobolevSpace.toLp (hausdorff n X) hX.quadratic u)) + (heatSobolevMap (hausdorff n X) hX.quadratic (heatStep k/2) (half_pos (heatStep_pos k)) + (-heatGeneratorAt (hausdorff n X) hX.quadratic (heatStep k-heatStep k/2) + (SobolevSpace.toLp (hausdorff n X) hX.quadratic u)))- + K*weightedGamma (hausdorff n X) hX.quadratic z + (heatSobolev (hausdorff n X) hX.quadratic (heatStep k) (heatStep_pos k) + (SobolevSpace.toLp (hausdorff n X) hX.quadratic u)) + (heatSobolev (hausdorff n X) hX.quadratic (heatStep k) (heatStep_pos k) + (SobolevSpace.toLp (hausdorff n X) hX.quadratic u)) := by + simpa only [show 6*(6*R)=36*R by ring] using hrep + exact D.small_radius_original_mean_estimate p₀ a₀ b₀ hK hε1 hε0 ρ₀ ρ₁ hm₀ hm₁ hp₀ hp₁ + hC₀ hC₁ hμ hν hR hS hT j hj Q₀ hweak π hgeo hopt hBπ hcomp hD hQeq + (SobolevSpace.toLp (hausdorff n X) hX.quadratic u) A hA heatStep heatStep_pos + heatStep_tendsto U hu χ G σ hG hrep' ell B hB hlim hell + +end RegularPointCoordinates.NoncollapsedRCD.CompactHeatScalingData + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/SmallScalePoissonGradient.lean b/lean/OAI/Geometry/RCD/Sobolev/SmallScalePoissonGradient.lean new file mode 100644 index 0000000000000000000000000000000000000000..b2ef00a44634c3d5dabd60d2196f894321b18081 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/SmallScalePoissonGradient.lean @@ -0,0 +1,129 @@ +import OAI.Geometry.RCD.Coordinates.CoordinateHeatInput +import OAI.Geometry.RCD.Sobolev.CutoffPoissonRepresentative +import OAI.Geometry.RCD.Sobolev.PoissonAnnularEnergy +import OAI.Geometry.RCD.Sobolev.LocalRepresentativeGradient +import OAI.Geometry.RCD.Sobolev.GoodCutoffFromResolvent +import OAI.Geometry.RCD.Metric.RescaledBallVolume + +namespace OAI + +/-! # Small-scale interior Poisson gradient estimate from the heat equation -/ + +open Set Filter Metric MeasureTheory +open scoped NNReal ENNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +/-- A quantitative interior gradient estimate, with both cutoffs constructed +from the RCD condition and no gradient assumption on the solution. -/ +theorem NoncollapsedRCD.small_scale_poisson_gradient {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) [(hausdorff n X).Regular] (hn : 2 ≤ n) + {ker : ℝ → X → X → ℝ} + (hk : IsContinuousHeatKernel (hausdorff n X) hX.quadratic ker) + (hg : HasCoordinateHeatBounds (hausdorff n X) ker) : + ∃ M : ℝ, 1 ≤ M ∧ ∀ (p : X) (R : ℝ), 0 < R → R ≤ 1 → -1 ≤ K*(4*R)^2 → + ∀ (f : SobolevSpace (hausdorff n X) hX.quadratic) (c : ℝ) (A : ℝ≥0), + IsConstantLaplacianOn (hausdorff n X) hX.quadratic (ball p (16*R)) f c → + (∀ᵐ x ∂hausdorff n X, |SobolevSpace.toLp _ _ f x| ≤ A) → + ∀ᵐ x ∂(hausdorff n X).restrict (ball p (R/16)), + localGamma (hausdorff n X) hX.quadratic f f x ≤ (M*(A/R+|c| *R))^2 := by + obtain ⟨J,hJ,hrep⟩ := hX.cutoff_poisson_representative hn hk hg + obtain ⟨C,hC,hcut⟩ := hX.goodCutoffInput hn + obtain ⟨V,hV,hvol⟩ := hX.rescaled_ball_volume_factor hn + (a := 256) (δ := 1/16) (by norm_num) (by norm_num) (by norm_num) + let B := 2+5*C^2 + let P := Real.exp |K| *(3+2*C)+J*V*B + let M := P+16 + have hC0 : 0 ≤ C := (by norm_num : (0:ℝ) ≤ 1).trans hC + have hV0 : 0 ≤ V := (by norm_num : (0:ℝ) ≤ 1).trans hV + have hB : 0 < B := by dsimp [B]; positivity + have hP : 0 < P := by dsimp [P]; positivity + refine ⟨M,by dsimp [M]; linarith,?_⟩ + intro p R hR hR1 hcurv f c A hf hA + let μ := hausdorff n X + let : IsLocallyFiniteMeasure μ := locallyFinite_of_finiteOnBounded μ hX.finiteOnBounded + by_cases hAz : (A:ℝ) = 0 + · filter_upwards [ae_restrict_of_ae hA,ae_restrict_of_ae (localGamma_self μ hX.quadratic f), + ae_restrict_of_ae (SobolevSpace.minimalSlope_zero_on_level μ hX.quadratic f 0)] with x ha he hz + have hfz : SobolevSpace.toLp μ hX.quadratic f x = 0 := abs_nonpos_iff.mp (hAz ▸ ha) + rw [he,hz hfz,zero_pow (by decide)] + exact sq_nonneg _ + have hApos : 0 < (A:ℝ) := lt_of_le_of_ne A.coe_nonneg (Ne.symm hAz) + have hcurvR : -1 ≤ K*R^2 := by nlinarith only [hcurv] + have hcurv16 : -(256:ℝ) ≤ K*(16*R)^2 := by nlinarith only [hcurvR] + obtain ⟨χ⟩ := hcut p R hR hcurvR + obtain ⟨η⟩ := hcut p (4*R) (by positivity) hcurv + have hinside : closedBall p (2*R) ⊆ ball p (16*R) := closedBall_subset_ball (by linarith) + have hηsupp : tsupport (η.weight : X → ℝ) ⊆ ball p (16*R) := + (η.tsupport_subset μ hX.quadratic).trans (closedBall_subset_ball (by linarith)) + have hηone : ∀ x, R ≤ dist x p → dist x p ≤ 2*R → η.weight x = 1 := by + intro x _ hx + apply η.one x + change dist x p < 4*R + linarith + have hsource := hf.cutoff_cross_L1_le μ hX.quadratic + (hX.finiteOnBounded _ isBounded_ball).ne f η.sobolev c A hApos hA + η.lipschitz (η.hasCompactSupport μ hX.quadratic) η.bounds hηsupp η.representative + hR hC0 χ hinside hηone + rw [Real.coe_toNNReal _ (by positivity : 0 ≤ C/(4*R))] at hsource + let W := μ.real (ball p R) + have hW : 0 < W := ENNReal.toReal_pos (hX.fullSupport p R hR).ne' + (hX.finiteOnBounded _ isBounded_ball).ne + have hvol' : μ.real (ball p (16*R)) ≤ V*W := by + have hh := hvol p (16*R) (by positivity) hcurv16 p (by simp; positivity) + simpa only [show (1/16:ℝ)*(16*R) = R by ring] using hh + have hsourcecoef : 2*|c|+4*(A:ℝ)*(C/(4*R))^2+(A:ℝ)*(C/R)^2 ≤ + B*((A:ℝ)/R^2+|c|) := by + dsimp only [B] + field_simp + nlinarith [mul_nonneg (abs_nonneg c) (sq_nonneg C),mul_nonneg A.coe_nonneg (sq_nonneg C)] + have hsource' : (∫ z, |2*localGamma μ hX.quadratic f χ.sobolev z| ∂μ) ≤ + B*((A:ℝ)/R^2+|c|)*V*W := by + calc + _ ≤ (2*|c|+4*(A:ℝ)*(C/(4*R))^2+(A:ℝ)*(C/R)^2)*μ.real (ball p (16*R)) := hsource + _ ≤ (B*((A:ℝ)/R^2+|c|))*(V*W) := + mul_le_mul hsourcecoef hvol' (measureReal_nonneg) (by positivity) + _ = _ := by ring + have hT1 : R^2 ≤ 1 := by nlinarith + obtain ⟨v,hv,he⟩ := hrep p R (R^2) C hR hcurvR (sq_pos_of_pos hR) hT1 le_rfl hC0 + (ball p (16*R)) f c hf A hA χ hinside + rw [Real.sqrt_sq hR.le] at hv + let Q := Real.exp (|K| *R^2)*((A:ℝ)/R+2*(|c|+A*(C/R^2))*R)+ + (J/(R*W)*(∫ z, |2*localGamma μ hX.quadratic f χ.sobolev z| ∂μ))*R^2 + have hQ0 : 0 ≤ Q := by dsimp [Q]; positivity + have hQ : Q ≤ P*((A:ℝ)/R+|c| *R) := by + have hexp : Real.exp (|K| *R^2) ≤ Real.exp |K| := + Real.exp_le_exp.mpr (by nlinarith [mul_le_mul_of_nonneg_left hT1 (abs_nonneg K)]) + have hann : (J/(R*W)*(∫ z, |2*localGamma μ hX.quadratic f χ.sobolev z| ∂μ))*R^2 ≤ + J*V*B*((A:ℝ)/R+|c| *R) := by + calc + _ ≤ (J/(R*W)*(B*((A:ℝ)/R^2+|c|)*V*W))*R^2 := by gcongr + _ = _ := by field_simp + have hbounded : (A:ℝ)/R+2*(|c|+A*(C/R^2))*R ≤ + (3+2*C)*((A:ℝ)/R+|c| *R) := by + field_simp + nlinarith only [A.coe_nonneg,mul_nonneg (sq_nonneg R) (abs_nonneg c), + mul_nonneg (sq_nonneg R) (mul_nonneg hC0 (abs_nonneg c))] + dsimp only [Q,P] + have hh := mul_le_mul hexp hbounded (by positivity) (by positivity) + nlinarith only [hh,hann] + have hg0 := localGamma_le_of_lipschitz_representative μ hX.quadratic f v Q.toNNReal A hv + p (R/16) (by positivity) + (by simpa only [show 2*(R/16) = R/8 by ring] using he) (ae_restrict_of_ae hA) + filter_upwards [hg0] with x hx + have hcoeff : (Q.toNNReal:ℝ)+(A:ℝ)/(R/16) ≤ M*((A:ℝ)/R+|c| *R) := by + rw [Real.coe_toNNReal _ hQ0] + dsimp only [M] + have hid : (A:ℝ)/(R/16) = 16*((A:ℝ)/R) := by ring + rw [hid] + nlinarith only [hQ,mul_nonneg (abs_nonneg c) hR.le] + exact hx.trans (pow_le_pow_left₀ (by positivity) hcoeff 2) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/SmoothGradientTest.lean b/lean/OAI/Geometry/RCD/Sobolev/SmoothGradientTest.lean new file mode 100644 index 0000000000000000000000000000000000000000..76716ee2bf845218101438d0a2f08b5800dcefc4 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/SmoothGradientTest.lean @@ -0,0 +1,35 @@ +import OAI.Geometry.RCD.Sobolev.SmoothLocalLipschitz +import OAI.Geometry.RCD.Sobolev.PhysicalBallMeasuredTests + +namespace OAI + +/-! # Bounded continuous gradient tests for measured approximation -/ + +open Set Metric MeasureTheory +open scoped ContDiff BoundedContinuousFunction +noncomputable section +namespace RegularPointCoordinates + +def smoothGradientTest {n : ℕ} {ψ : Euclidean n → ℝ} + (hψ : ContDiff ℝ 1 ψ) (hs : HasCompactSupport ψ) : Euclidean n →ᵇ ℝ := by + have hc := hψ.continuous_fderiv (by norm_num) + refine ⟨⟨fun z => ‖fderiv ℝ ψ z‖,hc.norm⟩,?_⟩ + obtain ⟨C,hC⟩ := (hs.fderiv ℝ).exists_bound_of_continuous hc + refine ⟨2*C,?_⟩ + intro x y + calc dist ‖fderiv ℝ ψ x‖ ‖fderiv ℝ ψ y‖ + ≤ ‖fderiv ℝ ψ x‖+‖fderiv ℝ ψ y‖ := by + calc dist ‖fderiv ℝ ψ x‖ ‖fderiv ℝ ψ y‖ + ≤ dist ‖fderiv ℝ ψ x‖ 0+dist 0 ‖fderiv ℝ ψ y‖ := dist_triangle _ _ _ + _ = _ := by simp + _ ≤ 2*C := by linarith [hC x,hC y] + +@[simp] theorem smoothGradientTest_apply {n : ℕ} {ψ : Euclidean n → ℝ} + (hψ : ContDiff ℝ 1 ψ) (hs : HasCompactSupport ψ) (z : Euclidean n) : + smoothGradientTest hψ hs z=‖fderiv ℝ ψ z‖ := rfl + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/SmoothLocalLipschitz.lean b/lean/OAI/Geometry/RCD/Sobolev/SmoothLocalLipschitz.lean new file mode 100644 index 0000000000000000000000000000000000000000..b328205aee4fe838ed74fa4a888bad54b35470b3 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/SmoothLocalLipschitz.lean @@ -0,0 +1,34 @@ +import OAI.Geometry.RCD.Sobolev.InteriorSmoothTestBounds +import Mathlib.Topology.UniformSpace.HeineCantor + +namespace OAI + +/-! # Uniform local Lipschitz bounds from the actual differential of a compact smooth test -/ + +open Set Metric +open scoped ContDiff NNReal +noncomputable section +namespace RegularPointCoordinates + +theorem compact_smooth_local_lipschitz {n : ℕ} {ψ : Euclidean n → ℝ} + (hψ : ContDiff ℝ 1 ψ) (hs : HasCompactSupport ψ) {η : ℝ} (hη : 0<η) : + ∃ δ : ℝ, 0<δ ∧ ∀ z : Euclidean n, + LipschitzOnWith (‖fderiv ℝ ψ z‖₊+⟨η,hη.le⟩) ψ (closedBall z δ) := by + have hu : UniformContinuous (fderiv ℝ ψ) := + (hs.fderiv ℝ).uniformContinuous_of_continuous (hψ.continuous_fderiv (by norm_num)) + obtain ⟨d,hd,hclose⟩ := Metric.uniformContinuous_iff.mp hu η hη + refine ⟨d/2,half_pos hd,?_⟩ + intro z + apply (convex_closedBall z (d/2)).lipschitzOnWith_of_nnnorm_fderiv_le + (fun x _ => hψ.differentiable (by norm_num) x) + intro x hx + have hdist : dist x z add_nonneg (norm_nonneg _) zero_le_one) (hzero k) hk + filter_upwards [hfull,localGamma_self μ hQ (q k), + (Lp.coeFn_nonneg _).mpr (SobolevSpace.minimalSlope_nonneg μ hQ (q k))] with x hx he hn + have hb : ‖fderiv ℝ ψ (V k x)‖≤‖G‖ := by + exact (le_abs_self (G (V k x))).trans (G.norm_coe_le_norm (V k x)) + rw [he] + have hn' := mul_nonneg (hr k).le hn + have hh : r k*SobolevSpace.minimalSlope μ hQ (q k) x≤Q := hx.trans (by dsimp only [Q]; linarith) + simpa only [mul_pow] using pow_le_pow_left₀ hn' hh 2 + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/SmoothTestDirectional.lean b/lean/OAI/Geometry/RCD/Sobolev/SmoothTestDirectional.lean new file mode 100644 index 0000000000000000000000000000000000000000..257bb3ceb5adfca76d27abb784715cfa0d22e46f --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/SmoothTestDirectional.lean @@ -0,0 +1,22 @@ +import OAI.Geometry.RCD.Sobolev.InteriorSmoothTestBounds + +namespace OAI + +/-! # Directional derivatives retain the original compact smooth-test domain -/ + +open Set +open scoped ContDiff +noncomputable section +namespace RegularPointCoordinates + +theorem InteriorSmoothTest.fderiv_apply {n : ℕ} {S : ℝ} {ψ : Euclidean n → ℝ} + (hψ : InteriorSmoothTest n S ψ) (v : Euclidean n) : + InteriorSmoothTest n S (fun x => fderiv ℝ ψ x v) := by + refine ⟨?_,hψ.2.1.fderiv_apply ℝ v,(tsupport_fderiv_apply_subset ℝ v).trans hψ.2.2⟩ + exact (hψ.1.fderiv_right (by simp)).clm_apply contDiff_const + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/SmoothTimeTestOrder.lean b/lean/OAI/Geometry/RCD/Sobolev/SmoothTimeTestOrder.lean new file mode 100644 index 0000000000000000000000000000000000000000..00b5ceca8ed3959e91c698ab49bd7edd1f63f428 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/SmoothTimeTestOrder.lean @@ -0,0 +1,91 @@ +import Mathlib.Analysis.Calculus.BumpFunction.InnerProduct +import Mathlib.Analysis.SpecificLimits.Basic +import Mathlib.MeasureTheory.Integral.Bochner.Set +import Mathlib.MeasureTheory.Integral.DominatedConvergence +import Mathlib.MeasureTheory.Measure.Lebesgue.Basic + +namespace OAI + +/-! # Smooth nonnegative time tests control interior interval integrals + +Only scalar bumps with one inner and one outer radius are needed. Their +outer radii decrease to the prescribed closed interval. +-/ + +open Set Filter MeasureTheory Metric +open scoped Topology ContDiff +noncomputable section +namespace RegularPointCoordinates + +theorem integral_closedBall_nonneg_of_smooth_tests + {a b c r : ℝ} (hr : 0 < r) (ha : a < c-r) (hb : c+r < b) + (f : ℝ → ℝ) (hf : IntegrableOn f (Ioo a b)) + (htest : ∀ θ : ℝ → ℝ, ContDiff ℝ ∞ θ → HasCompactSupport θ → + tsupport θ ⊆ Ioo a b → (∀ t, 0 ≤ θ t) → 0 ≤ ∫ t in Ioo a b, θ t*f t) : + 0 ≤ ∫ t in closedBall c r, f t := by + let η := min (c-r-a) (b-c-r)/2 + have hη : 0 < η := by dsimp only [η]; exact half_pos (lt_min (by linarith) (by linarith)) + have hηa : η < c-r-a := by + have hm := min_le_left (c-r-a) (b-c-r) + dsimp only [η] + linarith + have hηb : η < b-c-r := by + have hm := min_le_right (c-r-a) (b-c-r) + dsimp only [η] + linarith + let R := fun k : ℕ => r+η*(1/((k:ℝ)+1)) + have hR (k : ℕ) : r < R k := by + have hp : 0 < η*(1/((k:ℝ)+1)) := mul_pos hη (by positivity) + dsimp only [R] + linarith + have hRle (k : ℕ) : R k ≤ r+η := by + have hk : 1/((k:ℝ)+1) ≤ 1 := (div_le_one (by positivity)).mpr (by linarith [Nat.cast_nonneg (α := ℝ) k]) + dsimp only [R] + exact add_le_add le_rfl (mul_le_of_le_one_right hη.le hk) + have hRl : Tendsto R atTop (𝓝 r) := by + have hh := (tendsto_one_div_add_atTop_nhds_zero_nat (𝕜 := ℝ)).const_mul η + simpa only [mul_zero,add_zero] using hh.const_add r + let χ := fun k : ℕ => (⟨r,R k,hr,hR k⟩ : ContDiffBump c) + have hsupport (k : ℕ) : tsupport (χ k : ℝ → ℝ) ⊆ Ioo a b := by + rw [(χ k).tsupport_eq] + intro t ht + have hh : |t-c| ≤ R k := by simpa only [mem_closedBall,Real.dist_eq] using ht + have hh' := abs_le.mp hh + have hle := hRle k + exact ⟨by linarith,by linarith⟩ + have hsub : closedBall c r ⊆ Ioo a b := by + intro t ht + have hh := abs_le.mp (show |t-c| ≤ r from by simpa only [mem_closedBall,Real.dist_eq] using ht) + exact ⟨by linarith,by linarith⟩ + have hlimit : Tendsto (fun k => ∫ t in Ioo a b, χ k t*f t) atTop + (𝓝 (∫ t in Ioo a b, (closedBall c r).indicator f t)) := by + apply tendsto_integral_of_dominated_convergence (fun t => |f t|) + · intro k + exact (χ k).continuous.aestronglyMeasurable.mul hf.aestronglyMeasurable + · exact hf.abs + · intro k + exact Eventually.of_forall fun t => by + rw [Real.norm_eq_abs,abs_mul,abs_of_nonneg (χ k).nonneg] + exact mul_le_of_le_one_left (abs_nonneg _) (χ k).le_one + · exact Eventually.of_forall fun t => by + by_cases ht : t ∈ closedBall c r + · have he (k : ℕ) : χ k t = 1 := (χ k).one_of_mem_closedBall ht + simpa only [he,one_mul,indicator_of_mem ht] using (tendsto_const_nhds : + Tendsto (fun _ : ℕ => f t) atTop (𝓝 (f t))) + · have hrt : r < dist t c := lt_of_not_ge (by simpa only [mem_closedBall,dist_comm] using ht) + have hev := hRl.eventually (gt_mem_nhds hrt) + apply tendsto_const_nhds.congr' + filter_upwards [hev] with k hk + simp only [indicator_of_notMem ht,(χ k).zero_of_le_dist hk.le,zero_mul] + have he : (∫ t in Ioo a b, (closedBall c r).indicator f t) = ∫ t in closedBall c r, f t := by + rw [integral_indicator measurableSet_closedBall,Measure.restrict_restrict measurableSet_closedBall, + inter_eq_left.mpr hsub] + rw [he] at hlimit + exact ge_of_tendsto hlimit (Eventually.of_forall fun k => + htest (χ k) (χ k).contDiff (χ k).hasCompactSupport (hsupport k) (fun _ => (χ k).nonneg)) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/SobolevAverageRepresentative.lean b/lean/OAI/Geometry/RCD/Sobolev/SobolevAverageRepresentative.lean new file mode 100644 index 0000000000000000000000000000000000000000..973c2be654a0a55b0a609e2ce34b07f0913374c4 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/SobolevAverageRepresentative.lean @@ -0,0 +1,47 @@ +import OAI.Geometry.RCD.Metric.BoundedSupportIntegralRepresentative +import OAI.Geometry.RCD.Coordinates.TimeAverageLinearMap + +namespace OAI + +/-! # The pointwise values of an actual Sobolev time average -/ + +open Set Filter MeasureTheory +open scoped Topology ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] + (μ : Measure X) [SigmaFinite μ] (Q : QuadraticCheegerEnergy μ) + +theorem sobolev_time_average_representative + (u : ℝ → SobolevSpace μ Q) (hu : Integrable u) + (f : ℝ → X → ℝ) (hf : StronglyMeasurable (Function.uncurry f)) + {s : Set X} (hs : MeasurableSet s) (hfin : μ s ≠ ∞) + {h t : ℝ} (hh : 0 < h) + (hr : ∀ᵐ q ∂volume.restrict (Icc (t-h) (t+h)), SobolevSpace.toLp μ Q (u q) =ᵐ[μ] f q) + {A : ℝ} (hb : ∀ᵐ q ∂volume.restrict (Icc (t-h) (t+h)), ∀ x, |f q x| ≤ A) + (hz : ∀ᵐ q ∂volume.restrict (Icc (t-h) (t+h)), ∀ x, x ∉ s → f q x = 0) : + SobolevSpace.toLp μ Q (timeIntervalAverage u h t) =ᵐ[μ] + fun x => timeIntervalAverage (fun q => f q x) h t := by + let T := SobolevSpace.toLpCLM μ Q + have hi : Integrable (fun q => T (u q)) (volume.restrict (Icc (t-h) (t+h))) := + (T.integrable_comp hu).integrableOn + obtain ⟨-,he⟩ := bounded_support_L2_integral μ (volume.restrict (Icc (t-h) (t+h))) + hs hfin (fun q => T (u q)) hi f hf hr hb hz + have ht : t-h ≤ t+h := by linarith + have hmap : SobolevSpace.toLp μ Q (timeIntervalAverage u h t) = + (2*h)⁻¹ • ∫ q in Icc (t-h) (t+h), T (u q) := by + change T (timeIntervalAverage u h t) = _ + rw [timeIntervalAverage_map T u hu,timeIntervalAverage, + intervalIntegral.integral_of_le ht,← integral_Icc_eq_integral_Ioc] + rw [hmap] + filter_upwards [Lp.coeFn_smul ((2*h)⁻¹) (∫ q in Icc (t-h) (t+h), T (u q)),he] + with x hx hy + rw [hx,Pi.smul_apply,hy] + simp only [timeIntervalAverage,intervalIntegral.integral_of_le ht, + ← integral_Icc_eq_integral_Ioc] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/SobolevCompactSupport.lean b/lean/OAI/Geometry/RCD/Sobolev/SobolevCompactSupport.lean new file mode 100644 index 0000000000000000000000000000000000000000..4b2a725c485076390d5be578526f9bf73d9b0189 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/SobolevCompactSupport.lean @@ -0,0 +1,61 @@ +import OAI.Geometry.RCD.Coordinates.OpenRegularCutoff + +namespace OAI + +/-! # Compact interior support implies zero-boundary Sobolev membership -/ + +open Set Filter MeasureTheory +open scoped NNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem NoncollapsedRCD.sobolev_mem_dirichlet_of_compact_support {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (hn : 2 ≤ n) + {Ω S : Set X} (hΩ : IsOpen Ω) (hS : IsCompact S) (hs : S ⊆ Ω) + (u : SobolevSpace (hausdorff n X) hX.quadratic) + (hu : ∀ᵐ x ∂hausdorff n X, x ∉ S → + SobolevSpace.toLp (hausdorff n X) hX.quadratic u x=0) : + u ∈ SobolevSpace.dirichlet (hausdorff n X) hX.quadratic Ω := by + let μ := hausdorff n X + let := locallyFinite_of_finiteOnBounded μ hX.finiteOnBounded + obtain ⟨χ,hχ,hχ1⟩ := hX.exists_open_regular_cutoff hn hΩ hS hs + let M := SobolevSpace.cutoffCLM μ hX.quadratic χ.lipschitz χ.compact χ.abs_le + (fun x => (χ.bounds x).1) + have heq : M u = u := by + apply Subtype.ext + apply Lp.ext + filter_upwards [SobolevSpace.cutoffCLM_coe μ hX.quadratic χ.lipschitz χ.compact χ.abs_le + (fun x => (χ.bounds x).1) u,hu] with x hx hu + change SobolevSpace.toLp μ hX.quadratic (M u) x = SobolevSpace.toLp μ hX.quadratic u x + rw [hx] + by_cases hs : x ∈ S + · rw [hχ1 x hs,one_mul] + · rw [hu hs,mul_zero] + rw [← heq] + exact SobolevSpace.cutoffCLM_mem_dirichlet μ hX.quadratic χ.lipschitz χ.compact χ.abs_le + (fun x => (χ.bounds x).1) hχ u + +theorem NoncollapsedRCD.gamma_representative_mem_dirichlet {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (hn : 2 ≤ n) {Ω : Set X} (hΩ : IsOpen Ω) + (f g G : SobolevSpace (hausdorff n X) hX.quadratic) + {φ : X → ℝ} (hc : HasCompactSupport φ) (hs : tsupport φ ⊆ Ω) + (hg : SobolevSpace.toLp (hausdorff n X) hX.quadratic g =ᵐ[hausdorff n X] φ) + (hG : SobolevSpace.toLp (hausdorff n X) hX.quadratic G =ᵐ[hausdorff n X] + localGamma (hausdorff n X) hX.quadratic f g) : + G ∈ SobolevSpace.dirichlet (hausdorff n X) hX.quadratic Ω := by + let μ := hausdorff n X + apply hX.sobolev_mem_dirichlet_of_compact_support hn hΩ hc hs G + filter_upwards [hg,hG,localGamma_zero_on_level μ hX.quadratic g f 0, + localGamma_comm μ hX.quadratic f g] with x hx hGx hz hcomm hxs + rw [hGx,hcomm] + apply hz + exact hx.trans (image_eq_zero_of_notMem_tsupport hxs) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/SobolevGramPolarization.lean b/lean/OAI/Geometry/RCD/Sobolev/SobolevGramPolarization.lean new file mode 100644 index 0000000000000000000000000000000000000000..f40a2a21f73c0c3c633a73a246abab5c80174574 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/SobolevGramPolarization.lean @@ -0,0 +1,34 @@ +import OAI.Geometry.RCD.Sobolev.GammaL2Bound + +namespace OAI + +/-! # Two-direction polarization of actual Sobolev Gram representatives -/ + +open Set Filter MeasureTheory +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) (Q : QuadraticCheegerEnergy μ) + +theorem sobolev_gram_polarization (u v A B S : SobolevSpace μ Q) + (hA : SobolevSpace.toLp μ Q A =ᵐ[μ] localGamma μ Q u u) + (hB : SobolevSpace.toLp μ Q B =ᵐ[μ] localGamma μ Q v v) + (hS : SobolevSpace.toLp μ Q S =ᵐ[μ] localGamma μ Q (u+v) (u+v)) : + SobolevSpace.toLp μ Q ((1/2:ℝ) • (S-A-B)) =ᵐ[μ] localGamma μ Q u v := by + rw [map_smul,map_sub,map_sub] + filter_upwards [hA,hB,hS, + Lp.coeFn_sub (SobolevSpace.toLp μ Q S) (SobolevSpace.toLp μ Q A), + Lp.coeFn_sub (SobolevSpace.toLp μ Q S-SobolevSpace.toLp μ Q A) (SobolevSpace.toLp μ Q B), + Lp.coeFn_smul (1/2:ℝ) (SobolevSpace.toLp μ Q S-SobolevSpace.toLp μ Q A-SobolevSpace.toLp μ Q B), + localGamma_add_left μ Q u v (u+v),localGamma_add_right μ Q u u v, + localGamma_add_right μ Q v u v,localGamma_comm μ Q v u] + with x ha hb hs hab hsab hc hadd hu hv hsym + dsimp only [Pi.sub_apply,Pi.smul_apply,smul_eq_mul] at hab hsab hc hadd hu hv + rw [hc,hsab,hab,ha,hb,hs,hadd,hu,hv,hsym] + ring + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/SobolevHamiltonJacobiEndpoints.lean b/lean/OAI/Geometry/RCD/Sobolev/SobolevHamiltonJacobiEndpoints.lean new file mode 100644 index 0000000000000000000000000000000000000000..e7d0ffbba72fe532146e3f1881a357382c8cd10f --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/SobolevHamiltonJacobiEndpoints.lean @@ -0,0 +1,97 @@ +import OAI.Geometry.RCD.Transport.SobolevHamiltonJacobiPlan + +namespace OAI + +/-! # The correctly scaled action bound between two prescribed times + +Rescaling both time and the potential preserves the Hamilton--Jacobi +inequality and yields the inverse-time factor in the endpoint cost. +-/ + +open Set Filter MeasureTheory +open scoped Topology ENNReal NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) [μ.Regular] (Q : QuadraticCheegerEnergy μ) +attribute [local instance] pathBorel pathBorelSpace + +theorem sobolev_hamilton_jacobi_endpoint_comparison + (π : Measure C(Time,X)) [IsFiniteMeasure π] + (hgeo : ∀ᵐ γ ∂π, IsGeodesic γ) {C : ℝ≥0∞} (hC : C ≠ ∞) + (hcomp : ∀ t : Time, π.map (fun γ => γ t) ≤ C • μ) + (hLength : MemLp (fun γ : C(Time,X) => dist (γ 0) (γ 1)) 2 π) + {a b : ℝ} (hab : a < b) {S : Set X} (hS : MeasurableSet S) + (hs : ∀ t : Time, ∀ᵐ γ ∂π, γ t ∈ S) + (u : ℝ → SobolevSpace μ Q) (hu : ContinuousOn u (Icc a b)) + (D : ℝ → Lp ℝ 2 μ) + (hder : ∀ t ∈ Icc a b, HasDerivAt (fun s => SobolevSpace.toLp μ Q (u s)) (D t) t) + (hgrad : ∀ t ∈ Icc a b, ∀ᵐ x ∂μ.restrict S, + (SobolevSpace.minimalSlope μ Q (u t) x)^2 ≤ 2*D t x) : + (∫ γ : C(Time,X), SobolevSpace.toLp μ Q (u a) (γ 0) ∂π) - + (∫ γ : C(Time,X), SobolevSpace.toLp μ Q (u b) (γ 1) ∂π) ≤ + (∫ γ : C(Time,X), (dist (γ 0) (γ 1))^2 ∂π)/(2*(b-a)) := by + let c := b-a + have hc : 0 < c := sub_pos.mpr hab + let τ := fun t : ℝ => a+c*t + have hτ (t : ℝ) (ht : t ∈ Icc (0:ℝ) 1) : τ t ∈ Icc a b := by + dsimp only [τ,c] + constructor <;> nlinarith [ht.1,ht.2] + let v := fun t => c • u (τ t) + let d := fun t => c^2 • D (τ t) + have hv : ContinuousOn v (Icc (0:ℝ) 1) := + (hu.comp (by fun_prop : ContinuousOn τ (Icc (0:ℝ) 1)) hτ).const_smul c + have hd (t : ℝ) (ht : t ∈ Ico (0:ℝ) 1) : + HasDerivAt (fun s => SobolevSpace.toLp μ Q (v s)) (d t) t := by + have hτd : HasDerivAt τ c t := by + simpa only [τ,mul_one,id_eq] using ((hasDerivAt_id t).const_mul c).const_add a + have h := HasDerivAt.const_smul c ((hder (τ t) (hτ t (Ico_subset_Icc_self ht))).scomp t hτd) + simpa only [v,d,map_smul,smul_smul,pow_two,Function.comp_def,Pi.smul_def] using h + have hg (t : ℝ) (ht : t ∈ Ico (0:ℝ) 1) : ∀ᵐ x ∂μ.restrict S, + (SobolevSpace.minimalSlope μ Q (v t) x)^2 ≤ 2*d t x := by + have hp := hgrad (τ t) (hτ t (Ico_subset_Icc_self ht)) + dsimp only [v,d] + rw [SobolevSpace.minimalSlope_smul_nonneg μ Q _ hc.le] + filter_upwards [hp,ae_restrict_of_ae (Lp.coeFn_smul c (SobolevSpace.minimalSlope μ Q (u (τ t)))), + ae_restrict_of_ae (Lp.coeFn_smul (c^2) (D (τ t)))] with x hx hs hd + simp only [hs,hd,Pi.smul_apply,smul_eq_mul,mul_pow] + nlinarith [sq_nonneg c] + have hplan := sobolev_hamilton_jacobi_plan_comparison μ Q π hgeo hC hcomp hLength + (a := 0) (b := 1) zero_le_one le_rfl le_rfl hS + (fun t ht => by + have htime : t ∈ Icc (0:ℝ) 1 := Ico_subset_Icc_self ht + filter_upwards [hs ⟨t,htime⟩] with γ hγ + rw [show geodesicExtension γ t = γ ⟨t,htime⟩ from geodesicExtension_eq γ ⟨t,htime⟩] + exact hγ) + v hv d hd hg + have hv0 : v 0 = c • u a := by simp only [v,τ,mul_zero,add_zero] + have hτ1 : τ 1 = b := by dsimp only [τ,c]; ring + have hv1 : v 1 = c • u b := by simp only [v,hτ1] + have he (w : SobolevSpace μ Q) (t : Time) : + (∫ γ : C(Time,X), SobolevSpace.toLp μ Q (c • w) (γ t) ∂π) = + c*(∫ γ : C(Time,X), SobolevSpace.toLp μ Q w (γ t) ∂π) := by + rw [map_smul] + have hae := ae_of_ae_map (measurable_path_eval t).aemeasurable + ((Measure.absolutelyContinuous_of_le_smul (hcomp t)).ae_eq + (Lp.coeFn_smul c (SobolevSpace.toLp μ Q w))) + calc + _ = ∫ γ : C(Time,X), c*SobolevSpace.toLp μ Q w (γ t) ∂π := by + apply integral_congr_ae + filter_upwards [hae] with γ hγ + simpa only [Pi.smul_apply,smul_eq_mul] using hγ + _ = _ := integral_const_mul _ _ + have hz (γ : C(Time,X)) : geodesicExtension γ (0:ℝ) = γ (0:Time) := geodesicExtension_eq γ 0 + have ho (γ : C(Time,X)) : geodesicExtension γ (1:ℝ) = γ (1:Time) := geodesicExtension_eq γ 1 + simp only [hz,ho,hv0,hv1,he,sub_zero,one_mul] at hplan + have hh : c*((∫ γ : C(Time,X), SobolevSpace.toLp μ Q (u a) (γ 0) ∂π) - + ∫ γ : C(Time,X), SobolevSpace.toLp μ Q (u b) (γ 1) ∂π) ≤ + (∫ γ : C(Time,X), (dist (γ 0) (γ 1))^2 ∂π)/2 := by simpa only [mul_sub] using hplan + apply (le_div_iff₀ (by positivity : 0 < 2*(b-a))).mpr + dsimp only [c] at hh + nlinarith + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/SobolevLevelChain.lean b/lean/OAI/Geometry/RCD/Sobolev/SobolevLevelChain.lean new file mode 100644 index 0000000000000000000000000000000000000000..9626246913f4695fa98623f86faac4d5512c7fc0 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/SobolevLevelChain.lean @@ -0,0 +1,177 @@ +import OAI.Geometry.RCD.Harmonic.LocalCaccioppoli + +namespace OAI + +/-! # Exact gradient localization for bounded level truncations + +The level-set locality of the Cheeger energy gives the chain rule for +piecewise affine truncations without differentiability at their corners. +These are the bounded tests for the local harmonic mean-value argument. +-/ + +open Set Filter MeasureTheory +open scoped NNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +/-- Equality up to a constant on a measurable level set identifies gradients. -/ +theorem localGamma_eq_on_diff_level (f g h : SobolevSpace μ hQ) (c : ℝ) : + ∀ᵐ x ∂μ, SobolevSpace.toLp μ hQ f x-SobolevSpace.toLp μ hQ g x = c → + localGamma μ hQ f h x = localGamma μ hQ g h x := by + have hz := localGamma_zero_on_level μ hQ (f-g) h c + rw [map_sub] at hz + filter_upwards [hz, localGamma_sub_left μ hQ f g h, + Lp.coeFn_sub (SobolevSpace.toLp μ hQ f) (SobolevSpace.toLp μ hQ g)] with x hx hd he + intro hfg + have hh := hx (by simpa only [he, Pi.sub_apply] using hfg) + rw [hd] at hh + exact sub_eq_zero.mp hh + +/-- The scalar truncation on the interval from k to k+m. -/ +def upperLevelClip (k m s : ℝ) : ℝ := min (max (s-k) 0) m + +theorem upperLevelClip_lipschitz (k m : ℝ) : + LipschitzWith 1 (upperLevelClip k m) := by + have hs : LipschitzWith 1 (fun s : ℝ => s-k) := by + apply LipschitzWith.of_dist_le_mul + intro s t + simp only [Real.dist_eq, NNReal.coe_one, one_mul, sub_sub_sub_cancel_right, le_refl] + exact (hs.max_const 0).min_const m + +theorem upperLevelClip_zero {k m : ℝ} (hk : 0 ≤ k) (hm : 0 ≤ m) : + upperLevelClip k m 0 = 0 := by + simp only [upperLevelClip, zero_sub, max_eq_right (neg_nonpos.mpr hk), + min_eq_left hm] + +def SobolevSpace.upperLevelTruncation (f : SobolevSpace μ hQ) {k m : ℝ} + (hk : 0 ≤ k) (hm : 0 ≤ m) : SobolevSpace μ hQ := + SobolevSpace.compContraction μ hQ (upperLevelClip_lipschitz k m) + (upperLevelClip_zero hk hm) f + +omit [BorelSpace X] [ProperSpace X] in +theorem SobolevSpace.upperLevelTruncation_coe (f : SobolevSpace μ hQ) {k m : ℝ} + (hk : 0 ≤ k) (hm : 0 ≤ m) : + SobolevSpace.toLp μ hQ (f.upperLevelTruncation μ hQ hk hm) =ᵐ[μ] + fun x => upperLevelClip k m (SobolevSpace.toLp μ hQ f x) := + (upperLevelClip_lipschitz k m).coeFn_compLp (upperLevelClip_zero hk hm) _ + +/-- The localized bilinear chain rule for the bounded upper-level truncation. -/ +theorem localGamma_upperLevelTruncation (f g : SobolevSpace μ hQ) {k m : ℝ} + (hk : 0 ≤ k) (hm : 0 ≤ m) : + localGamma μ hQ (f.upperLevelTruncation μ hQ hk hm) g =ᵐ[μ] fun x => + if k < SobolevSpace.toLp μ hQ f x ∧ SobolevSpace.toLp μ hQ f x < k+m + then localGamma μ hQ f g x else 0 := by + classical + let v := f.upperLevelTruncation μ hQ hk hm + filter_upwards [f.upperLevelTruncation_coe μ hQ hk hm, + localGamma_zero_on_level μ hQ v g 0, localGamma_zero_on_level μ hQ v g m, + localGamma_eq_on_diff_level μ hQ v f g (-k)] with x hv hzero htop hmid + change SobolevSpace.toLp μ hQ v x = upperLevelClip k m (SobolevSpace.toLp μ hQ f x) at hv + by_cases hlo : SobolevSpace.toLp μ hQ f x ≤ k + · have hv0 : SobolevSpace.toLp μ hQ v x = 0 := by + rw [hv, upperLevelClip, max_eq_right (sub_nonpos.mpr hlo), min_eq_left hm] + rw [ite_eq_right (fun hh => (not_lt_of_ge hlo) hh.1)] + exact hzero hv0 + · have hkf : k < SobolevSpace.toLp μ hQ f x := lt_of_not_ge hlo + by_cases hhi : k+m ≤ SobolevSpace.toLp μ hQ f x + · have hvm : SobolevSpace.toLp μ hQ v x = m := by + rw [hv, upperLevelClip, max_eq_left (sub_nonneg.mpr hkf.le), + min_eq_right (by linarith)] + rw [ite_eq_right (fun hh => (not_lt_of_ge hhi) hh.2)] + exact htop hvm + · have hfm : SobolevSpace.toLp μ hQ f x < k+m := lt_of_not_ge hhi + rw [ite_eq_left ⟨hkf,hfm⟩] + apply hmid + rw [hv, upperLevelClip, max_eq_left (sub_nonneg.mpr hkf.le), + min_eq_left (by linarith)] + ring + +/-- The truncated square-gradient is the original square-gradient restricted +to the open level strip, including the correct zero values at both corners. -/ +theorem localGamma_upperLevelTruncation_self (f : SobolevSpace μ hQ) {k m : ℝ} + (hk : 0 ≤ k) (hm : 0 ≤ m) : + let v := f.upperLevelTruncation μ hQ hk hm + localGamma μ hQ v v =ᵐ[μ] fun x => + if k < SobolevSpace.toLp μ hQ f x ∧ SobolevSpace.toLp μ hQ f x < k+m + then localGamma μ hQ f f x else 0 := by + classical + intro v + filter_upwards [localGamma_upperLevelTruncation μ hQ f v hk hm, + localGamma_upperLevelTruncation μ hQ f f hk hm, + localGamma_comm μ hQ f v] with x h1 h2 hcomm + change localGamma μ hQ v v x = _ at h1 + change localGamma μ hQ v f x = _ at h2 + rw [h1, hcomm, h2] + split_ifs <;> rfl + +/-- The upper positive part is a contraction fixing zero for nonnegative levels. -/ +def upperLevelPart (k s : ℝ) : ℝ := max (s-k) 0 + +theorem upperLevelPart_lipschitz (k : ℝ) : LipschitzWith 1 (upperLevelPart k) := by + have hs : LipschitzWith 1 (fun s : ℝ => s-k) := by + apply LipschitzWith.of_dist_le_mul + intro s t + simp only [Real.dist_eq, NNReal.coe_one, one_mul, sub_sub_sub_cancel_right, le_refl] + exact hs.max_const 0 + +theorem upperLevelPart_zero {k : ℝ} (hk : 0 ≤ k) : upperLevelPart k 0 = 0 := by + simp only [upperLevelPart, zero_sub, max_eq_right (neg_nonpos.mpr hk)] + +def SobolevSpace.upperPositivePart (f : SobolevSpace μ hQ) {k : ℝ} + (hk : 0 ≤ k) : SobolevSpace μ hQ := + SobolevSpace.compContraction μ hQ (upperLevelPart_lipschitz k) + (upperLevelPart_zero hk) f + +omit [BorelSpace X] [ProperSpace X] in +theorem SobolevSpace.upperPositivePart_coe (f : SobolevSpace μ hQ) {k : ℝ} + (hk : 0 ≤ k) : + SobolevSpace.toLp μ hQ (f.upperPositivePart μ hQ hk) =ᵐ[μ] + fun x => upperLevelPart k (SobolevSpace.toLp μ hQ f x) := + (upperLevelPart_lipschitz k).coeFn_compLp (upperLevelPart_zero hk) _ + +/-- The positive-part gradient agrees with the original gradient above the +level and vanishes on and below it. -/ +theorem localGamma_upperPositivePart (f g : SobolevSpace μ hQ) {k : ℝ} + (hk : 0 ≤ k) : + localGamma μ hQ (f.upperPositivePart μ hQ hk) g =ᵐ[μ] fun x => + if k < SobolevSpace.toLp μ hQ f x then localGamma μ hQ f g x else 0 := by + let v := f.upperPositivePart μ hQ hk + filter_upwards [f.upperPositivePart_coe μ hQ hk, + localGamma_zero_on_level μ hQ v g 0, + localGamma_eq_on_diff_level μ hQ v f g (-k)] with x hv hzero hmid + change SobolevSpace.toLp μ hQ v x = upperLevelPart k (SobolevSpace.toLp μ hQ f x) at hv + by_cases hlo : SobolevSpace.toLp μ hQ f x ≤ k + · have hv0 : SobolevSpace.toLp μ hQ v x = 0 := by + rw [hv, upperLevelPart, max_eq_right (sub_nonpos.mpr hlo)] + rw [ite_eq_right (not_lt_of_ge hlo)] + exact hzero hv0 + · have hkf : k < SobolevSpace.toLp μ hQ f x := lt_of_not_ge hlo + rw [ite_eq_left hkf] + apply hmid + rw [hv, upperLevelPart, max_eq_left (sub_nonneg.mpr hkf.le)] + ring + +/-- The same localized chain rule holds for the square-gradient. -/ +theorem localGamma_upperPositivePart_self (f : SobolevSpace μ hQ) {k : ℝ} + (hk : 0 ≤ k) : + let v := f.upperPositivePart μ hQ hk + localGamma μ hQ v v =ᵐ[μ] fun x => + if k < SobolevSpace.toLp μ hQ f x then localGamma μ hQ f f x else 0 := by + intro v + filter_upwards [localGamma_upperPositivePart μ hQ f v hk, + localGamma_upperPositivePart μ hQ f f hk, + localGamma_comm μ hQ f v] with x h1 h2 hcomm + change localGamma μ hQ v v x = _ at h1 + change localGamma μ hQ v f x = _ at h2 + rw [h1, hcomm, h2] + split_ifs <;> rfl + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/SobolevMultiplierProduct.lean b/lean/OAI/Geometry/RCD/Sobolev/SobolevMultiplierProduct.lean new file mode 100644 index 0000000000000000000000000000000000000000..f81c5a75968ca7d14bf27045b9f877834030ce69 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/SobolevMultiplierProduct.lean @@ -0,0 +1,73 @@ +import OAI.Geometry.RCD.Sobolev.WeakLaplacianProduct + +namespace OAI + +/-! # The product Laplacian in bounded-multiplier form + +This form keeps all three terms in the original L2 space, which permits +exact self-adjointness calculations for the heat-bridge second variation. +-/ + +open Set Filter MeasureTheory +open scoped ENNReal NNReal InnerProductSpace +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) (Q : QuadraticCheegerEnergy μ) + +omit [BorelSpace X] [ProperSpace X] in +theorem weakLaplacian_inner_comm (u v : SobolevSpace μ Q) (d e : Lp ℝ 2 μ) + (hu : IsWeakLaplacian μ Q u d) (hv : IsWeakLaplacian μ Q v e) : + inner ℝ d (SobolevSpace.toLp μ Q v) = inner ℝ (SobolevSpace.toLp μ Q u) e := by + have he := energyForm_comm μ Q u v + rw [hu,hv] at he + have hs : inner ℝ e (SobolevSpace.toLp μ Q u) = inner ℝ (SobolevSpace.toLp μ Q u) e := + real_inner_comm _ _ + rw [hs] at he + linarith only [he] + +omit [BorelSpace X] [ProperSpace X] in +theorem sobolev_product_toLp_multiplier (u v : SobolevSpace μ Q) + (U : Lp ℝ ∞ μ) (hU : U =ᵐ[μ] SobolevSpace.toLp μ Q u) (A B : ℝ≥0) + (hA : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ Q u x| ≤ A) + (hB : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ Q v x| ≤ B) : + SobolevSpace.toLp μ Q (SobolevSpace.product μ Q u v A B) = + lpMultiplier μ U (SobolevSpace.toLp μ Q v) := by + apply Lp.ext + filter_upwards [SobolevSpace.product_coe μ Q u v A B hA hB, + lpMultiplier_coe μ U (SobolevSpace.toLp μ Q v),hU] with x hp hm hu + rw [hp,hm,hu] + +theorem weakLaplacian_product_multiplier + (u v uv : SobolevSpace μ Q) (d e : Lp ℝ 2 μ) + (hu : IsWeakLaplacian μ Q u d) (hv : IsWeakLaplacian μ Q v e) + (U V : Lp ℝ ∞ μ) + (hU : U =ᵐ[μ] SobolevSpace.toLp μ Q u) + (hV : V =ᵐ[μ] SobolevSpace.toLp μ Q v) + (hΓ : SobolevSpace.toLp μ Q uv =ᵐ[μ] localGamma μ Q u v) + (A B L : ℝ≥0) + (hA : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ Q u x| ≤ A) + (hB : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ Q v x| ≤ B) + (hL : ∀ᵐ x ∂μ, localGamma μ Q v v x ≤ (L:ℝ)^2) : + IsWeakLaplacian μ Q (SobolevSpace.product μ Q u v A B) + (lpMultiplier μ V d+lpMultiplier μ U e+(2:ℝ) • SobolevSpace.toLp μ Q uv) := by + obtain ⟨q,hq,hrep⟩ := IsWeakLaplacian.product μ Q u v d e hu hv A B L hA hB hL + have heq : q = lpMultiplier μ V d+lpMultiplier μ U e+(2:ℝ) • SobolevSpace.toLp μ Q uv := by + apply Lp.ext + filter_upwards [hrep,hU,hV,hΓ,lpMultiplier_coe μ V d,lpMultiplier_coe μ U e, + Lp.coeFn_add (lpMultiplier μ V d) (lpMultiplier μ U e), + Lp.coeFn_add (lpMultiplier μ V d+lpMultiplier μ U e) ((2:ℝ) • SobolevSpace.toLp μ Q uv), + Lp.coeFn_smul (2:ℝ) (SobolevSpace.toLp μ Q uv)] with x hq hux hvx hΓx hd he hsum htotal hs + rw [htotal] + simp only [Pi.add_apply] + rw [hsum,hs] + simp only [Pi.add_apply,Pi.smul_apply,smul_eq_mul] + rw [hd,he,hux,hvx,hΓx] + exact hq + rwa [heq] at hq + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/SobolevPointedTestRecovery.lean b/lean/OAI/Geometry/RCD/Sobolev/SobolevPointedTestRecovery.lean new file mode 100644 index 0000000000000000000000000000000000000000..9625948dca6e2969e9626c863c58bbd68152a2da --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/SobolevPointedTestRecovery.lean @@ -0,0 +1,55 @@ +import OAI.Geometry.RCD.Sobolev.CompactPointedTestRecovery +import OAI.Geometry.RCD.Sobolev.LocalGradientLipschitz + +namespace OAI + +/-! # Actual zero-boundary Sobolev recovery of Euclidean tests + +The recovered function belongs to the original Dirichlet space. Both its +uniform value error and its rescaled gradient bound are explicit. +-/ + +open Set Metric Filter MeasureTheory +open scoped NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem NoncollapsedRCD.compact_sobolev_test_recovery {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) {p : X} {r S ρ a b ε B : ℝ} + (hr : 0 (SobolevSpace.toLp μ Q u x)^(n+1)) ∧ + (∀ᵐ x ∂μ, |SobolevSpace.toLp μ Q v x| ≤ A^(n+1)) ∧ + ∀ w : SobolevSpace μ Q, localGamma μ Q v w =ᵐ[μ] + fun x => (n+1:ℝ)*(SobolevSpace.toLp μ Q u x)^n*localGamma μ Q u w x := by + induction n with + | zero => + refine ⟨u,?_,?_,?_⟩ + · simp only [zero_add,pow_one]; exact EventuallyEq.rfl + · simpa only [zero_add,pow_one] using hu + · intro w + simp only [Nat.cast_zero,zero_add,pow_zero,one_mul] + exact EventuallyEq.rfl + | succ n ih => + obtain ⟨v,hv,hvb,hvg⟩ := ih + let z := SobolevSpace.product μ Q u v A (A^(n+1)) + have hz := SobolevSpace.product_coe μ Q u v A (A^(n+1)) hu hvb + have hval : SobolevSpace.toLp μ Q z =ᵐ[μ] + fun x => (SobolevSpace.toLp μ Q u x)^(n+1+1) := by + filter_upwards [hz,hv] with x hx hy + rw [hx,hy,pow_succ] + ring + refine ⟨z,hval,?_,?_⟩ + · filter_upwards [hval,hu] with x hx hy + rw [hx,abs_pow] + exact pow_le_pow_left₀ (abs_nonneg _) hy _ + · intro w + filter_upwards [localGamma_product_left μ Q u v w A (A^(n+1)) hu hvb,hvg w,hv] + with x hx hy hzv + change localGamma μ Q (SobolevSpace.product μ Q u v A (A^(n+1))) w x = _ + rw [hx,hy,hzv] + simp only [Nat.cast_add,Nat.cast_one,pow_succ] + ring + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/SobolevPowerGammaIntegrable.lean b/lean/OAI/Geometry/RCD/Sobolev/SobolevPowerGammaIntegrable.lean new file mode 100644 index 0000000000000000000000000000000000000000..2efa9d702bd9b019283452bba90a381dcf5d71e1 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/SobolevPowerGammaIntegrable.lean @@ -0,0 +1,33 @@ +import OAI.Geometry.RCD.Sobolev.SobolevPositivePower + +namespace OAI + +/-! # Integrability of bounded power weights against Sobolev energies -/ + +open Set Filter MeasureTheory +open scoped NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) (Q : QuadraticCheegerEnergy μ) + +omit [ProperSpace X] in +theorem sobolev_power_gamma_integrable (u v f g : SobolevSpace μ Q) (A B : ℝ≥0) + (hu : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ Q u x| ≤ A) + (hv : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ Q v x| ≤ B) (n m : ℕ) : + Integrable (fun x => (SobolevSpace.toLp μ Q u x)^n* + (SobolevSpace.toLp μ Q v x)^m*localGamma μ Q f g x) μ := by + apply (localGamma_memL1 μ Q f g).bdd_mul (c := (A:ℝ)^n*(B:ℝ)^m) + (((Lp.aestronglyMeasurable _).pow n).mul ((Lp.aestronglyMeasurable _).pow m)) + filter_upwards [hu,hv] with x hx hy + change ‖(SobolevSpace.toLp μ Q u x)^n*(SobolevSpace.toLp μ Q v x)^m‖ ≤ _ + simp only [Real.norm_eq_abs,abs_mul,abs_pow] + exact mul_le_mul (pow_le_pow_left₀ (abs_nonneg _) hx n) + (pow_le_pow_left₀ (abs_nonneg _) hy m) (pow_nonneg (abs_nonneg _) m) + (pow_nonneg A.coe_nonneg n) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/SobolevPowerSourceIntegrable.lean b/lean/OAI/Geometry/RCD/Sobolev/SobolevPowerSourceIntegrable.lean new file mode 100644 index 0000000000000000000000000000000000000000..bb35e6556dd4ab42f348550555dddec223c77b19 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/SobolevPowerSourceIntegrable.lean @@ -0,0 +1,34 @@ +import OAI.Geometry.RCD.Sobolev.SobolevPositivePower + +namespace OAI + +/-! # Integrability of bounded Sobolev power tests against L2 sources -/ + +open Set Filter MeasureTheory +open scoped NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) (Q : QuadraticCheegerEnergy μ) + +theorem sobolev_power_product_source_integrable (u v : SobolevSpace μ Q) + (d : Lp ℝ 2 μ) (A B : ℝ≥0) + (hu : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ Q u x| ≤ A) + (hv : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ Q v x| ≤ B) (n m : ℕ) : + Integrable (fun x => (SobolevSpace.toLp μ Q v x)^(m+1)* + (SobolevSpace.toLp μ Q u x)^(n+1)*d x) μ := by + obtain ⟨U,hU,hUb,_⟩ := exists_sobolev_positive_power μ Q u A hu n + obtain ⟨V,hV,hVb,_⟩ := exists_sobolev_positive_power μ Q v B hv m + let W := SobolevSpace.product μ Q U V (A^(n+1)) (B^(m+1)) + have hw := SobolevSpace.product_coe μ Q U V (A^(n+1)) (B^(m+1)) hUb hVb + apply ((Lp.memLp (SobolevSpace.toLp μ Q W)).integrable_mul (Lp.memLp d)).congr + filter_upwards [hw,hU,hV] with x hx hy hz + change SobolevSpace.toLp μ Q (SobolevSpace.product μ Q U V (A^(n+1)) (B^(m+1))) x*d x = _ + rw [hx,hy,hz] + ring + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/SobolevQuadraticEnergy.lean b/lean/OAI/Geometry/RCD/Sobolev/SobolevQuadraticEnergy.lean new file mode 100644 index 0000000000000000000000000000000000000000..db6acf1f502a4a0b87b2af7ab9f455aed9633744 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/SobolevQuadraticEnergy.lean @@ -0,0 +1,53 @@ +import OAI.Geometry.RCD.Sobolev.LocalBochnerInput + +namespace OAI + +/-! # Exact source energy expansion for harmonic test perturbations -/ + +open Set Filter MeasureTheory +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem localGamma_add_smul_square (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + (f g : SobolevSpace μ hQ) (t : ℝ) : + localGamma μ hQ (f+t • g) (f+t • g)=ᵐ[μ] + fun x => localGamma μ hQ f f x+2*t*localGamma μ hQ f g x+ + t^2*localGamma μ hQ g g x := by + filter_upwards [localGamma_add_left μ hQ f (t • g) (f+t • g), + localGamma_add_right μ hQ f f (t • g), + localGamma_add_right μ hQ (t • g) f (t • g), + localGamma_smul_right μ hQ t f g,localGamma_smul_left μ hQ t g f, + localGamma_smul_left μ hQ t g (t • g),localGamma_smul_right μ hQ t g g, + localGamma_comm μ hQ g f] with x ha hb hc hd he hf hg hh + rw [ha,hb,hc,hd,he,hf,hg,hh] + ring + +theorem integral_localGamma_add_smul_square (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + (f g : SobolevSpace μ hQ) (t : ℝ) (A : Set X) : + (∫ x in A, localGamma μ hQ (f+t • g) (f+t • g) x ∂μ)= + (∫ x in A, localGamma μ hQ f f x ∂μ)+ + 2*t*(∫ x in A, localGamma μ hQ f g x ∂μ)+ + t^2*(∫ x in A, localGamma μ hQ g g x ∂μ) := by + rw [integral_congr_ae (ae_restrict_of_ae (localGamma_add_smul_square μ hQ f g t))] + have hff : Integrable (localGamma μ hQ f f) (μ.restrict A) := (localGamma_memL1 μ hQ f f).restrict + have hfg : Integrable (localGamma μ hQ f g) (μ.restrict A) := (localGamma_memL1 μ hQ f g).restrict + have hgg : Integrable (localGamma μ hQ g g) (μ.restrict A) := (localGamma_memL1 μ hQ g g).restrict + have hsum := integral_add (hff.add (hfg.const_mul (2*t))) (hgg.const_mul (t^2)) + have hfirst := integral_add hff (hfg.const_mul (2*t)) + simp only [Pi.add_apply] at hsum hfirst + rw [hsum,hfirst,integral_const_mul,integral_const_mul] + +theorem integral_harmonic_perturbation (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + (f g : SobolevSpace μ hQ) (t : ℝ) (A : Set X) + (hg : (∫ x in A, localGamma μ hQ f g x ∂μ)=0) : + (∫ x in A, localGamma μ hQ (f+t • g) (f+t • g) x ∂μ)= + (∫ x in A, localGamma μ hQ f f x ∂μ)+ + t^2*(∫ x in A, localGamma μ hQ g g x ∂μ) := by + rw [integral_localGamma_add_smul_square, hg,mul_zero,add_zero] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/SobolevSecondVariation.lean b/lean/OAI/Geometry/RCD/Sobolev/SobolevSecondVariation.lean new file mode 100644 index 0000000000000000000000000000000000000000..b2713448d73fc02db411356116150a306cf55762 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/SobolevSecondVariation.lean @@ -0,0 +1,80 @@ +import OAI.Geometry.RCD.Sobolev.SobolevMultiplierProduct +import OAI.Geometry.RCD.Sobolev.HessianLaplacianPairing + +namespace OAI + +/-! # Exact Hessian cancellation in a twice differentiated heat product + +The identity uses only weak Laplacians, bounded Sobolev product rules, +and three actual Sobolev Gram representatives. All terms are in L2. +-/ + +open Set Filter MeasureTheory +open scoped ENNReal NNReal InnerProductSpace +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) (Q : QuadraticCheegerEnergy μ) + +theorem sobolev_second_variation_hessian + (u v w du dv dw uv wu wv : SobolevSpace μ Q) + (d e q d₂ e₂ q₂ : Lp ℝ 2 μ) + (hu : IsWeakLaplacian μ Q u d) (hv : IsWeakLaplacian μ Q v e) + (hw : IsWeakLaplacian μ Q w q) + (hdu : IsWeakLaplacian μ Q du d₂) (hdv : IsWeakLaplacian μ Q dv e₂) + (hdw : IsWeakLaplacian μ Q dw q₂) + (hduv : SobolevSpace.toLp μ Q du = d) (hdvv : SobolevSpace.toLp μ Q dv = e) + (hdwv : SobolevSpace.toLp μ Q dw = q) + (U V W : Lp ℝ ∞ μ) + (hU : U =ᵐ[μ] SobolevSpace.toLp μ Q u) + (hV : V =ᵐ[μ] SobolevSpace.toLp μ Q v) + (hW : W =ᵐ[μ] SobolevSpace.toLp μ Q w) + (huv : SobolevSpace.toLp μ Q uv =ᵐ[μ] localGamma μ Q u v) + (hwu : SobolevSpace.toLp μ Q wu =ᵐ[μ] localGamma μ Q w u) + (hwv : SobolevSpace.toLp μ Q wv =ᵐ[μ] localGamma μ Q w v) + (A B C Lu Lv : ℝ≥0) + (hA : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ Q u x| ≤ A) + (hB : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ Q v x| ≤ B) + (hC : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ Q w x| ≤ C) + (hLu : ∀ᵐ x ∂μ, localGamma μ Q u u x ≤ (Lu:ℝ)^2) + (hLv : ∀ᵐ x ∂μ, localGamma μ Q v v x ≤ (Lv:ℝ)^2) : + inner ℝ d₂ (lpMultiplier μ W (SobolevSpace.toLp μ Q v)) - + 2*inner ℝ d (lpMultiplier μ W e) + + inner ℝ (SobolevSpace.toLp μ Q u) (lpMultiplier μ W e₂) = + inner ℝ q₂ (SobolevSpace.toLp μ Q (SobolevSpace.product μ Q u v A B)) - + 4*(∫ x, localHessianAction μ Q w u v wu wv uv x ∂μ) := by + let Puv := lpMultiplier μ V d+lpMultiplier μ U e+(2:ℝ) • SobolevSpace.toLp μ Q uv + let Pwu := lpMultiplier μ U q+lpMultiplier μ W d+(2:ℝ) • SobolevSpace.toLp μ Q wu + let Pwv := lpMultiplier μ V q+lpMultiplier μ W e+(2:ℝ) • SobolevSpace.toLp μ Q wv + have hpUV : IsWeakLaplacian μ Q (SobolevSpace.product μ Q u v A B) Puv := + weakLaplacian_product_multiplier μ Q u v uv d e hu hv U V hU hV huv A B Lv hA hB hLv + have hpWU : IsWeakLaplacian μ Q (SobolevSpace.product μ Q w u C A) Pwu := + weakLaplacian_product_multiplier μ Q w u wu q d hw hu W U hW hU hwu C A Lu hC hA hLu + have hpWV : IsWeakLaplacian μ Q (SobolevSpace.product μ Q w v C B) Pwv := + weakLaplacian_product_multiplier μ Q w v wv q e hw hv W V hW hV hwv C B Lv hC hB hLv + have hfirst : inner ℝ d₂ (lpMultiplier μ W (SobolevSpace.toLp μ Q v)) = inner ℝ d Pwv := by + rw [← sobolev_product_toLp_multiplier μ Q w v W hW C B hC hB] + simpa only [hduv] using weakLaplacian_inner_comm μ Q du + (SobolevSpace.product μ Q w v C B) d₂ Pwv hdu hpWV + have hlast : inner ℝ (SobolevSpace.toLp μ Q u) (lpMultiplier μ W e₂) = inner ℝ e Pwu := by + rw [lpMultiplier_inner_symm,real_inner_comm, + ← sobolev_product_toLp_multiplier μ Q w u W hW C A hC hA] + simpa only [hdvv] using weakLaplacian_inner_comm μ Q dv + (SobolevSpace.product μ Q w u C A) e₂ Pwu hdv hpWU + have htarget : inner ℝ q₂ (SobolevSpace.toLp μ Q (SobolevSpace.product μ Q u v A B)) = + inner ℝ q Puv := by + simpa only [hdwv] using weakLaplacian_inner_comm μ Q dw + (SobolevSpace.product μ Q u v A B) q₂ Puv hdw hpUV + have hswap (Z : Lp ℝ ∞ μ) (a b : Lp ℝ 2 μ) : + inner ℝ a (lpMultiplier μ Z b) = inner ℝ b (lpMultiplier μ Z a) := by + rw [lpMultiplier_inner_symm,real_inner_comm] + rw [hfirst,hlast,htarget,integral_hessian_laplacian_pairings μ Q w u v wu wv uv q d e hw hu hv] + simp only [Puv,Pwu,Pwv,inner_add_right,real_inner_smul_right] + rw [hswap V d q,hswap U e q,hswap W e d] + ring + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/SobolevSourceMassBound.lean b/lean/OAI/Geometry/RCD/Sobolev/SobolevSourceMassBound.lean new file mode 100644 index 0000000000000000000000000000000000000000..cfe15ecba2a692cd355ae9a4980fab068db82730 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/SobolevSourceMassBound.lean @@ -0,0 +1,55 @@ +import OAI.Geometry.RCD.Sobolev.SobolevTestFunctional +import OAI.Analysis.RCDHeat.ExistingAnalytic + +namespace OAI + +/-! # Quantitative local mass bounds from an actual Sobolev source functional -/ + +open Set Filter MeasureTheory +open scoped NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +omit [BorelSpace X] in +theorem sobolevSourceFunctional_bound (q ψ : SobolevSpace μ hQ) (ρ : Lp ℝ 2 μ) : + |sobolevSourceFunctional μ hQ q ρ ψ| ≤ (2*‖q‖+‖ρ‖)*‖ψ‖ := by + change |energyForm μ hQ q ψ+inner ℝ ρ (SobolevSpace.toLp μ hQ ψ)| ≤ _ + calc + _ ≤ |energyForm μ hQ q ψ|+|inner ℝ ρ (SobolevSpace.toLp μ hQ ψ)| := abs_add_le _ _ + _ ≤ 2*‖q‖*‖ψ‖+‖ρ‖*‖SobolevSpace.toLp μ hQ ψ‖ := + add_le_add (energyForm_abs_le_norm μ hQ q ψ) (abs_real_inner_le_norm _ _) + _ ≤ 2*‖q‖*‖ψ‖+‖ρ‖*‖ψ‖ := by + gcongr + exact SobolevSpace.norm_toLp_le μ hQ ψ + _ = _ := by ring + +theorem measure_mass_le_sobolev_source (q ψ : SobolevSpace μ hQ) (ρ : Lp ℝ 2 μ) + (σ : Measure X) [IsFiniteMeasure σ] {S : Set X} (hS : MeasurableSet S) + (v : X → ℝ) (hv : Continuous v) (hvc : HasCompactSupport v) + (hv0 : ∀ x, 0 ≤ v x) (hv1 : ∀ x∈S, 1 ≤ v x) + (he : (∫ x, v x ∂σ)=sobolevSourceFunctional μ hQ q ρ ψ) : + σ.real S ≤ (2*‖q‖+‖ρ‖)*‖ψ‖ := by + have hi : Integrable (S.indicator (fun _ : X => (1:ℝ))) σ := + (integrable_const 1).indicator hS + have hvi : Integrable v σ := hv.integrable_of_hasCompactSupport hvc + have hb : ∀ x, S.indicator (fun _ : X => (1:ℝ)) x ≤ v x := by + intro x + by_cases hx : x∈S + · simpa only [Set.indicator_of_mem hx] using hv1 x hx + · simpa only [Set.indicator_of_notMem hx] using hv0 x + calc + σ.real S = ∫ x, S.indicator (fun _ : X => (1:ℝ)) x ∂σ := by + rw [integral_indicator hS] + simp + _ ≤ ∫ x, v x ∂σ := integral_mono hi hvi hb + _ = sobolevSourceFunctional μ hQ q ρ ψ := he + _ ≤ |sobolevSourceFunctional μ hQ q ρ ψ| := le_abs_self _ + _ ≤ _ := sobolevSourceFunctional_bound μ hQ q ψ ρ + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/SobolevSumValueConvergence.lean b/lean/OAI/Geometry/RCD/Sobolev/SobolevSumValueConvergence.lean new file mode 100644 index 0000000000000000000000000000000000000000..2c74e89191ff0622e12bfe85696c06afebd34a81 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/SobolevSumValueConvergence.lean @@ -0,0 +1,41 @@ +import OAI.Geometry.RCD.Harmonic.HomogeneousAffineImprovement + +namespace OAI + +/-! # Adding the actual Sobolev value limits on a common sequence -/ + +open Set Filter MeasureTheory +open scoped Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] + +theorem sobolev_sum_value_convergence {n : ℕ} (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + (Ω : ℕ → Set X) (V : ℕ → X → Euclidean n) + (f g : ℕ → SobolevSpace μ hQ) (F G : Euclidean n → ℝ) + (hf : ∀ δ : ℝ, 0 < δ → ∀ᶠ k in atTop, ∀ᵐ x ∂μ.restrict (Ω k), + |SobolevSpace.toLp μ hQ (f k) x-F (V k x)| ≤ δ) + (hg : ∀ δ : ℝ, 0 < δ → ∀ᶠ k in atTop, ∀ᵐ x ∂μ.restrict (Ω k), + |SobolevSpace.toLp μ hQ (g k) x-G (V k x)| ≤ δ) : + ∀ δ : ℝ, 0 < δ → ∀ᶠ k in atTop, ∀ᵐ x ∂μ.restrict (Ω k), + |SobolevSpace.toLp μ hQ (f k+g k) x-(F (V k x)+G (V k x))| ≤ δ := by + intro δ hδ + filter_upwards [hf (δ/2) (half_pos hδ),hg (δ/2) (half_pos hδ)] with k hfk hgk + have hadd : SobolevSpace.toLp μ hQ (f k+g k) =ᵐ[μ] + fun x => SobolevSpace.toLp μ hQ (f k) x+SobolevSpace.toLp μ hQ (g k) x := by + rw [map_add] + exact Lp.coeFn_add _ _ + filter_upwards [hfk,hgk,ae_restrict_of_ae hadd] with x hfx hgx hx + rw [hx] + have he : SobolevSpace.toLp μ hQ (f k) x+SobolevSpace.toLp μ hQ (g k) x- + (F (V k x)+G (V k x)) = + (SobolevSpace.toLp μ hQ (f k) x-F (V k x))+ + (SobolevSpace.toLp μ hQ (g k) x-G (V k x)) := by ring + rw [he] + exact (abs_add_le _ _).trans (by linarith) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/SobolevTestFunctional.lean b/lean/OAI/Geometry/RCD/Sobolev/SobolevTestFunctional.lean new file mode 100644 index 0000000000000000000000000000000000000000..64301d162e96e18afd6c2326ace2bc8ad48735ab --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/SobolevTestFunctional.lean @@ -0,0 +1,31 @@ +import OAI.Geometry.RCD.Sobolev.CompactLipschitzTests + +namespace OAI + +/-! # Energy and L² source terms as compact-test functionals -/ + +open MeasureTheory +open scoped NNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +def sobolevSourceFunctional (q : SobolevSpace μ hQ) (ρ : Lp ℝ 2 μ) : + SobolevSpace μ hQ →ₗ[ℝ] ℝ where + toFun ψ := energyForm μ hQ q ψ + inner ℝ ρ (SobolevSpace.toLp μ hQ ψ) + map_add' ψ η := by + rw [energyForm_add_right, map_add, inner_add_right] + ring + map_smul' c ψ := by + rw [energyForm_smul_right, map_smul, real_inner_smul_right] + simp only [smul_eq_mul, RingHom.id_apply] + ring + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/SobolevWeakEnergyLower.lean b/lean/OAI/Geometry/RCD/Sobolev/SobolevWeakEnergyLower.lean new file mode 100644 index 0000000000000000000000000000000000000000..c0b4224882b1e15ee8ce183a8117afce8d248168 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/SobolevWeakEnergyLower.lean @@ -0,0 +1,91 @@ +import OAI.Geometry.RCD.Sobolev.BoundedHilbertImageWeak +import OAI.Analysis.RCDHeat.ExistingAnalytic + +namespace OAI + +/-! # Weak Sobolev convergence and positive weighted energy bounds + +Strong L2 convergence and a bounded Sobolev norm suffice. No compactness +or convergence of the gradients is assumed. +-/ + +open Set Filter MeasureTheory +open scoped Topology NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) (Q : QuadraticCheegerEnergy μ) + +omit [BorelSpace X] [ProperSpace X] in +theorem bounded_sobolev_functional_tendsto + (u : ℕ → SobolevSpace μ Q) (v : SobolevSpace μ Q) + {C : ℝ} (hC : 0 ≤ C) (hb : ∀ k, ‖u k‖ ≤ C) + (hc : Tendsto (fun k => SobolevSpace.toLp μ Q (u k)) atTop + (𝓝 (SobolevSpace.toLp μ Q v))) (ℓ : SobolevSpace μ Q →L[ℝ] ℝ) : + Tendsto (fun k => ℓ (u k)) atTop (𝓝 (ℓ v)) := by + let T := SobolevSpace.toLpCLM μ Q + have hT : Function.Injective T := fun f g h => Subtype.ext h + have hh := bounded_hilbert_image_inner_tendsto T hT u v hC hb hc + ((InnerProductSpace.toDual ℝ (SobolevSpace μ Q)).symm ℓ) + simpa only [InnerProductSpace.toDual_symm_apply] using hh + +omit [ProperSpace X] in +theorem weightedGamma_nonneg_of_weight {η : X → ℝ} (hη : ∀ᵐ x ∂μ, 0 ≤ η x) + (v : SobolevSpace μ Q) : 0 ≤ weightedGamma μ Q η v v := by + apply integral_nonneg_of_ae + filter_upwards [hη,localGamma_self μ Q v] with x hx hg + rw [hg] + exact mul_nonneg hx (sq_nonneg _) + +theorem weighted_energy_lower_eventually + (u : ℕ → SobolevSpace μ Q) (v : SobolevSpace μ Q) + {C : ℝ} (hC : 0 ≤ C) (hb : ∀ k, ‖u k‖ ≤ C) + (hc : Tendsto (fun k => SobolevSpace.toLp μ Q (u k)) atTop + (𝓝 (SobolevSpace.toLp μ Q v))) + {η : X → ℝ} (hη : AEStronglyMeasurable η μ) {M : ℝ≥0} + (hM : ∀ᵐ x ∂μ, ‖η x‖ ≤ M) (hη0 : ∀ᵐ x ∂μ, 0 ≤ η x) + {δ : ℝ} (hδ : 0 < δ) : + ∀ᶠ k in atTop, weightedGamma μ Q η v v-δ ≤ weightedGamma μ Q η (u k) (u k) := by + let P := weightedGammaCLM μ Q hη hM + have hp : Tendsto (fun k => P (u k) v) atTop (𝓝 (P v v)) := + bounded_sobolev_functional_tendsto μ Q u v hC hb hc (P.flip v) + have hl : Tendsto (fun k => 2*P (u k) v-P v v) atTop (𝓝 (P v v)) := by + simpa only [two_mul,add_sub_cancel_right] using (hp.const_mul 2).sub_const (P v v) + have he : ∀ᶠ k in atTop, P v v-δ < 2*P (u k) v-P v v := + hl.eventually (lt_mem_nhds (by linarith)) + filter_upwards [he] with k hk + have hn : 0 ≤ P (u k-v) (u k-v) := weightedGamma_nonneg_of_weight μ Q hη0 _ + have hs : P v (u k) = P (u k) v := weightedGamma_comm μ Q η v (u k) + simp only [map_sub,sub_apply] at hn + rw [hs] at hn + change P v v-δ ≤ P (u k) (u k) + linarith + +theorem weighted_energy_le_of_bounded_L2_limit + (u : ℕ → SobolevSpace μ Q) (v : SobolevSpace μ Q) + {C : ℝ} (hC : 0 ≤ C) (hb : ∀ k, ‖u k‖ ≤ C) + (hc : Tendsto (fun k => SobolevSpace.toLp μ Q (u k)) atTop + (𝓝 (SobolevSpace.toLp μ Q v))) + {η : X → ℝ} (hη : AEStronglyMeasurable η μ) {M : ℝ≥0} + (hM : ∀ᵐ x ∂μ, ‖η x‖ ≤ M) (hη0 : ∀ᵐ x ∂μ, 0 ≤ η x) + {A : ℝ} (he : Tendsto (fun k => weightedGamma μ Q η (u k) (u k)) atTop (𝓝 A)) : + weightedGamma μ Q η v v ≤ A := by + let P := weightedGammaCLM μ Q hη hM + have hp : Tendsto (fun k => P (u k) v) atTop (𝓝 (P v v)) := + bounded_sobolev_functional_tendsto μ Q u v hC hb hc (P.flip v) + have hbound (k : ℕ) : 2*P (u k) v-P v v ≤ P (u k) (u k) := by + have hn : 0 ≤ P (u k-v) (u k-v) := weightedGamma_nonneg_of_weight μ Q hη0 _ + have hs : P v (u k) = P (u k) v := weightedGamma_comm μ Q η v (u k) + simp only [map_sub,sub_apply] at hn + rw [hs] at hn + linarith + have hl := (hp.const_mul 2).sub_const (P v v) + have hres := le_of_tendsto_of_tendsto hl he (Eventually.of_forall hbound) + change 2*weightedGamma μ Q η v v-weightedGamma μ Q η v v ≤ A at hres + linarith + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/SourceMassDifferenceEnergy.lean b/lean/OAI/Geometry/RCD/Sobolev/SourceMassDifferenceEnergy.lean new file mode 100644 index 0000000000000000000000000000000000000000..e419c53b20ce0fd8f5d9feec88e2c23994b51276 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/SourceMassDifferenceEnergy.lean @@ -0,0 +1,66 @@ +import OAI.Geometry.RCD.Harmonic.CaccioppoliSourceMass + +namespace OAI + +/-! # Local gradient differences controlled by value error and source mass -/ + +open Set Filter MeasureTheory +open scoped NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) (Q : QuadraticCheegerEnergy μ) + +theorem source_mass_difference_energy (u w η : SobolevSpace μ Q) (d e : Lp ℝ 2 μ) + (hd : IsWeakLaplacian μ Q u d) (he : IsWeakLaplacian μ Q w e) + {v : X → ℝ} {L B M : ℝ≥0} + (hv : LipschitzWith L v) (hs : HasCompactSupport v) + (hb : ∀ x, |v x| ≤ B) (hn : ∀ x, 0 ≤ v x) + (hη : SobolevSpace.toLp μ Q η =ᵐ[μ] v) + (hgrad : ∀ᵐ x ∂μ, |SobolevSpace.minimalSlope μ Q η x| ≤ M) + {D A : ℝ} (hD : 0 ≤ D) (_hA : 0 ≤ A) + (hvalue : ∀ᵐ x ∂μ, v x ≠ 0 → + |SobolevSpace.toLp μ Q u x-SobolevSpace.toLp μ Q w x| ≤ D) + (hdi : Integrable (fun x => (v x)^2*|d x|) μ) + (hei : Integrable (fun x => (v x)^2*|e x|) μ) + (hdA : (∫ x, (v x)^2*|d x| ∂μ) ≤ A) + (heA : (∫ x, (v x)^2*|e x| ∂μ) ≤ A) : + weightedGamma μ Q (fun x => (v x)^2) (u-w) (u-w) ≤ + 4*D*A+4*D^2*(∫ x, (SobolevSpace.minimalSlope μ Q η x)^2 ∂μ) := by + have hde : IsWeakLaplacian μ Q (u-w) (d-e) := by + simpa only [neg_one_smul,sub_eq_add_neg] using hd.add μ Q (he.smul μ Q (-1)) + have habs (x : X) : |d x-e x| ≤ |d x|+|e x| := by + simpa only [sub_eq_add_neg,abs_neg] using abs_add_le (d x) (-(e x)) + have hdom : ∀ᵐ x ∂μ, ‖(v x)^2*|(d-e) x|‖ ≤ (v x)^2*|d x|+(v x)^2*|e x| := by + filter_upwards [Lp.coeFn_sub d e] with x hx + rw [hx,Real.norm_eq_abs,abs_of_nonneg (by positivity)] + exact (mul_le_mul_of_nonneg_left (habs x) (sq_nonneg (v x))).trans_eq (mul_add _ _ _) + have hi : Integrable (fun x => (v x)^2*|(d-e) x|) μ := + (hdi.add hei).mono' + ((hv.continuous.aestronglyMeasurable.pow 2).mul (continuous_abs.comp_aestronglyMeasurable (Lp.aestronglyMeasurable (d-e)))) hdom + have hmass : (∫ x, (v x)^2*|(d-e) x| ∂μ) ≤ 2*A := by + have hm := integral_mono_ae hi (hdi.add hei) (hdom.mono fun x hx => + (le_abs_self ((v x)^2*|(d-e) x|)).trans hx) + simp only [Pi.add_apply] at hm + rw [integral_add hdi hei] at hm + linarith + have hval : ∀ᵐ x ∂μ, v x ≠ 0 → |SobolevSpace.toLp μ Q (u-w) x| ≤ D := by + simp only [map_sub] + filter_upwards [hvalue,Lp.coeFn_sub (SobolevSpace.toLp μ Q u) (SobolevSpace.toLp μ Q w)] + with x hx heq + rw [heq] + exact hx + have hc := caccioppoli_source_mass μ Q (u-w) η (d-e) hde hv hs hb hn hη hgrad hD hval hi + have hid : weightedGamma μ Q (fun x => (v x)^2) (u-w) (u-w) = + ∫ x, (SobolevSpace.toLp μ Q η x)^2*(SobolevSpace.minimalSlope μ Q (u-w) x)^2 ∂μ := by + apply integral_congr_ae + filter_upwards [hη,localGamma_self μ Q (u-w)] with x hx hg + rw [hx,hg] + rw [hid] + nlinarith [mul_le_mul_of_nonneg_left hmass (by linarith : 0 ≤ 2*D)] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/SqrtDerivativeBound.lean b/lean/OAI/Geometry/RCD/Sobolev/SqrtDerivativeBound.lean new file mode 100644 index 0000000000000000000000000000000000000000..ca46c97b77bd62afe9e41b27942832f863a11a76 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/SqrtDerivativeBound.lean @@ -0,0 +1,58 @@ +import Mathlib + +namespace OAI + +/-! # Integrating an inverse-square-root derivative bound at time zero -/ + +open Set + +namespace RegularPointCoordinates + +/-- Integrating a heat-smoothing singularity together with a bounded error. -/ +theorem abs_sub_le_of_sqrt_derivative_bound_add {F D : ℝ → ℝ} {A B T : ℝ} + (hT : 0 < T) (hc : ContinuousOn F (Icc 0 T)) + (hd : ∀ t ∈ Ioo 0 T, HasDerivAt F (D t) t) + (hb : ∀ t ∈ Ioo 0 T, |D t| ≤ A / Real.sqrt t+B) : + |F T - F 0| ≤ 2*A*Real.sqrt T+B*T := by + have hs : ContinuousOn (fun t : ℝ => 2*A*Real.sqrt t+B*t) (Icc 0 T) := by fun_prop + have hs' (t : ℝ) (ht : t ∈ Ioo 0 T) : + HasDerivAt (fun t : ℝ => 2*A*Real.sqrt t+B*t) (A / Real.sqrt t+B) t := by + have hh : HasDerivAt (fun t : ℝ => 2*A*Real.sqrt t) (A/Real.sqrt t) t := by + convert (Real.hasDerivAt_sqrt ht.1.ne').const_mul (2*A) using 1 + field_simp + simpa only [Pi.add_apply,id_eq,mul_one] using! hh.add ((hasDerivAt_id t).const_mul B) + have hp := monotoneOn_of_hasDerivWithinAt_nonneg (convex_Icc (0:ℝ) T) + (hc.add hs) (f' := fun t => D t+(A/Real.sqrt t+B)) + (fun t ht => ((hd t (by simpa only [interior_Icc,mem_Ioo] using ht)).add + (hs' t (by simpa only [interior_Icc,mem_Ioo] using ht))).hasDerivWithinAt) + (fun t ht => by + have ht' : t ∈ Ioo 0 T := by simpa only [interior_Icc] using ht + linarith [(abs_le.mp (hb t ht')).1]) + have hm := antitoneOn_of_hasDerivWithinAt_nonpos (convex_Icc (0:ℝ) T) + (hc.sub hs) (f' := fun t => D t-(A/Real.sqrt t+B)) + (fun t ht => ((hd t (by simpa only [interior_Icc,mem_Ioo] using ht)).sub + (hs' t (by simpa only [interior_Icc,mem_Ioo] using ht))).hasDerivWithinAt) + (fun t ht => by + have ht' : t ∈ Ioo 0 T := by simpa only [interior_Icc] using ht + linarith [(abs_le.mp (hb t ht')).2]) + have hp' := hp (show (0:ℝ) ∈ Icc 0 T from ⟨le_rfl,hT.le⟩) + (show T ∈ Icc 0 T from ⟨hT.le,le_rfl⟩) hT.le + have hm' := hm (show (0:ℝ) ∈ Icc 0 T from ⟨le_rfl,hT.le⟩) + (show T ∈ Icc 0 T from ⟨hT.le,le_rfl⟩) hT.le + simp only [Pi.add_apply,Pi.sub_apply,Real.sqrt_zero,mul_zero,add_zero,sub_zero] at hp' hm' + exact abs_le.mpr ⟨by linarith,by linarith⟩ + +/-- The integrable singularity of heat smoothing costs exactly a square root +of elapsed time. Only continuity is needed at the initial time. -/ +theorem abs_sub_le_of_sqrt_derivative_bound {F D : ℝ → ℝ} {A T : ℝ} + (hT : 0 < T) (hc : ContinuousOn F (Icc 0 T)) + (hd : ∀ t ∈ Ioo 0 T, HasDerivAt F (D t) t) + (hb : ∀ t ∈ Ioo 0 T, |D t| ≤ A / Real.sqrt t) : + |F T - F 0| ≤ 2*A*Real.sqrt T := by + simpa only [zero_mul,add_zero] using + abs_sub_le_of_sqrt_derivative_bound_add (B := 0) hT hc hd + (fun t ht => by simpa only [add_zero] using hb t ht) + +end RegularPointCoordinates + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/SquaredDistanceEnergy.lean b/lean/OAI/Geometry/RCD/Sobolev/SquaredDistanceEnergy.lean new file mode 100644 index 0000000000000000000000000000000000000000..ebc0afe619264dd1a181bd7546c80396452d3cad --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/SquaredDistanceEnergy.lean @@ -0,0 +1,52 @@ +import OAI.Geometry.RCD.Metric.DistanceEikonal + +namespace OAI + +/-! # The actual local energy of the compact squared-distance primitive -/ + +open Set Metric MeasureTheory +open scoped NNReal + +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) [IsFiniteMeasureOnCompacts μ] + (hQ : QuadraticCheegerEnergy μ) + +theorem inwardQuadratic_gamma_self (p : X) {R : ℝ} (hR : 0 ≤ R) + (heik : ∀ᵐ x ∂μ, x ∈ ball p R → + localGamma μ hQ (inwardSobolev μ hQ p R) (inwardSobolev μ hQ p R) x = 1) : + ∀ᵐ x ∂μ, x ∈ ball p R → + localGamma μ hQ (inwardQuadratic μ hQ p hR) (inwardQuadratic μ hQ p hR) x = + dist p x ^ 2 := by + let u := inwardSobolev μ hQ p R + let q := inwardQuadratic μ hQ p hR + have hb : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ u x| ≤ (⟨R, hR⟩ : ℝ≥0) := by + filter_upwards [inwardSobolev_bounds μ hQ p hR] with x hx + exact (abs_of_nonneg hx.1).symm ▸ hx.2 + filter_upwards [inwardQuadratic_gamma μ hQ p hR heik, inwardSobolev_coe μ hQ p R, + localGamma_comm μ hQ u q, + localGamma_sub_left μ hQ ((1 / 2 : ℝ) • SobolevSpace.square μ hQ u ⟨R, hR⟩) (R • u) q, + localGamma_smul_left μ hQ (1 / 2 : ℝ) (SobolevSpace.square μ hQ u ⟨R, hR⟩) q, + localGamma_smul_left μ hQ R u q, + localGamma_square μ hQ u q ⟨R, hR⟩ hb] with x hqu hu hc hs hhalf hscale hsq hx + have hd : dist p x < R := by simpa only [mem_ball, dist_comm] using hx + change localGamma μ hQ ((1 / 2 : ℝ) • SobolevSpace.square μ hQ u ⟨R, hR⟩ - R • u) q x = _ + rw [hs, hhalf, hscale, hsq, hc, hqu hx, hu] + simp only [inwardDistance, max_eq_left (sub_nonneg.mpr hd.le)] + ring + +theorem inwardQuadratic_weighted_energy (p : X) {R : ℝ} (hR : 0 ≤ R) + (heik : ∀ᵐ x ∂μ, x ∈ ball p R → + localGamma μ hQ (inwardSobolev μ hQ p R) (inwardSobolev μ hQ p R) x = 1) + (ν : Measure X) (hν : ν ≪ μ) (hs : ∀ᵐ x ∂ν, x ∈ ball p R) : + weightedGradientSquare μ hQ ν (inwardQuadratic μ hQ p hR) = + ∫ x, dist p x ^ 2 ∂ν := by + apply integral_congr_ae + filter_upwards [hs, hν.ae_le (inwardQuadratic_gamma_self μ hQ p hR heik), + hν.ae_le (localGamma_self μ hQ (inwardQuadratic μ hQ p hR))] with x hx hg he + exact he.symm.trans (hg hx) + +end RegularPointCoordinates + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/StampacchiaBound.lean b/lean/OAI/Geometry/RCD/Sobolev/StampacchiaBound.lean new file mode 100644 index 0000000000000000000000000000000000000000..beee1b4aaca1ac15dc6590f5d65996e9e8447db7 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/StampacchiaBound.lean @@ -0,0 +1,95 @@ +import OAI.Geometry.RCD.Sobolev.StampacchiaDecay + +namespace OAI + +/-! # A uniform extinction level for the torsion superlevel recurrence -/ + +open Filter +open scoped Topology + +noncomputable section + +namespace RegularPointCoordinates + +/-- The extinction level depends only on the coefficient, exponent, and +initial volume bound, not on the particular decreasing distribution. -/ +theorem exists_extinction_level {R M p : ℝ} (hR : 0 ≤ R) (hM : 0 < M) (hp : 2 < p) : + ∃ K : ℝ, 0 < K ∧ ∀ Y : ℝ → ℝ, + (∀ k, 0 ≤ k → 0 ≤ Y k) → Y 0 ≤ M → + (∀ k l, 0 ≤ k → k ≤ l → Y l ≤ Y k) → + (∀ k l, 0 ≤ k → k < l → Y l ≤ R * Y k ^ (p - 1) / (l - k) ^ p) → + Y K = 0 := by + let θ : ℝ := (1 / 2 : ℝ) ^ (p / (p - 2)) + have hθ : 0 < θ := Real.rpow_pos_of_pos (by norm_num) _ + have hθ1 : θ < 1 := Real.rpow_lt_one (by norm_num) (by norm_num) + (div_pos (by linarith) (by linarith)) + let D := R * M ^ (p - 2) + have hD : 0 ≤ D := mul_nonneg hR (Real.rpow_nonneg hM.le _) + let T := (D / θ + 1) ^ (1 / p) + have hbase : 0 < D / θ + 1 := by positivity + have hT : 0 < T := Real.rpow_pos_of_pos hbase _ + have hTp : T ^ p = D / θ + 1 := by + dsimp [T] + rw [one_div, Real.rpow_inv_rpow hbase.le (by linarith : p ≠ 0)] + let A := R * T ^ (-p) + let B : ℝ := (1 / 2 : ℝ) ^ (-p) + have hA : 0 ≤ A := mul_nonneg hR (Real.rpow_nonneg hT.le _) + have hB : 0 ≤ B := Real.rpow_nonneg (by norm_num) _ + have hsmall : A * M ^ ((p - 1) - 1) ≤ θ := by + have he : A * M ^ ((p - 1) - 1) = D / T ^ p := by + dsimp [A, D] + rw [Real.rpow_neg hT.le, show p - 1 - 1 = p - 2 by ring] + ring + rw [he, hTp] + apply (div_le_iff₀ hbase).mpr + have heq : θ * (D / θ + 1) = D + θ := by field_simp + rw [heq] + linarith + have hamp : B * θ ^ ((p - 1) - 1) ≤ 1 := by + have hexp : p / (p - 2) * (p - 1 - 1) = p := by + have hn : p - 2 ≠ 0 := by linarith + field_simp [hn] + ring + dsimp [B, θ] + rw [← Real.rpow_mul (by norm_num), hexp, ← Real.rpow_add (by norm_num : (0 : ℝ) < 1 / 2)] + norm_num + refine ⟨2 * T, by positivity, ?_⟩ + intro Y hY hstart hmono hstep + let k := fun j : ℕ => 2 * T * (1 - (1 / 2 : ℝ) ^ j) + have hk (j : ℕ) : 0 ≤ k j := + mul_nonneg (by positivity) (sub_nonneg.mpr (pow_le_one₀ (by norm_num) (by norm_num))) + have hklt (j : ℕ) : k j < 2 * T := by + dsimp [k] + nlinarith [pow_pos (by norm_num : (0 : ℝ) < 1 / 2) j] + have hgap (j : ℕ) : k (j + 1) - k j = T * (1 / 2 : ℝ) ^ j := by + dsimp [k] + rw [pow_succ] + ring + have hkstep (j : ℕ) : k j < k (j + 1) := by + have hh : 0 < T * (1 / 2 : ℝ) ^ j := mul_pos hT (pow_pos (by norm_num) _) + linarith [hgap j] + have hrec (j : ℕ) : Y (k (j + 1)) ≤ A * B ^ j * Y (k j) ^ (p - 1) := by + have hh := hstep (k j) (k (j + 1)) (hk j) (hkstep j) + rw [hgap] at hh + have hpow : ((1 / 2 : ℝ) ^ j) ^ (-p) = B ^ j := by + dsimp [B] + rw [← Real.rpow_natCast_mul (by norm_num), mul_comm (j : ℝ) (-p), + Real.rpow_mul_natCast (by norm_num)] + have he : R * Y (k j) ^ (p - 1) / (T * (1 / 2 : ℝ) ^ j) ^ p = + A * B ^ j * Y (k j) ^ (p - 1) := by + rw [div_eq_mul_inv, ← Real.rpow_neg (mul_nonneg hT.le (pow_nonneg (by norm_num) _)), + Real.mul_rpow hT.le (pow_nonneg (by norm_num) _), hpow] + dsimp [A] + ring + exact hh.trans_eq he + have hdec := power_recurrence_decay (fun j => hY (k j) (hk j)) hA hB hM hθ + (by linarith : 1 < p - 1) (by simpa [k] using hstart) hsmall hamp hrec + apply eq_zero_of_le_geometric (hY (2 * T) (by positivity)) hθ.le hθ1 + intro j + exact (hmono (k j) (2 * T) (hk j) (hklt j).le).trans (hdec j) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/StampacchiaDecay.lean b/lean/OAI/Geometry/RCD/Sobolev/StampacchiaDecay.lean new file mode 100644 index 0000000000000000000000000000000000000000..c90ea1891751d79343d83f143c63acdd459bcfe7 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/StampacchiaDecay.lean @@ -0,0 +1,64 @@ +import Mathlib.Analysis.SpecificLimits.Basic +import Mathlib.Analysis.SpecialFunctions.Pow.Real +import Mathlib.Tactic + +namespace OAI + +/-! # Geometric decay in the torsion superlevel iteration -/ + +open Filter +open scoped Topology + +namespace RegularPointCoordinates + +/-- The superlinear recurrence contracts once its initial coefficient and +geometric amplification satisfy the displayed scalar bounds. -/ +theorem power_recurrence_decay {Y : ℕ → ℝ} {A B V θ q : ℝ} + (hY : ∀ j, 0 ≤ Y j) (hA : 0 ≤ A) (hB : 0 ≤ B) + (hV : 0 < V) (hθ : 0 < θ) (hq : 1 < q) + (hstart : Y 0 ≤ V) (hsmall : A * V ^ (q - 1) ≤ θ) + (hamp : B * θ ^ (q - 1) ≤ 1) + (hstep : ∀ j, Y (j + 1) ≤ A * B ^ j * (Y j) ^ q) : + ∀ j, Y j ≤ V * θ ^ j := by + intro j + induction j with + | zero => simpa using hstart + | succ j ih => + have hVp : V ^ q = V ^ (q - 1) * V := by + calc + V ^ q = V ^ ((q - 1) + 1) := by congr 1; ring + _ = V ^ (q - 1) * V := by rw [Real.rpow_add hV, Real.rpow_one] + have hθp : θ ^ q = θ ^ (q - 1) * θ := by + calc + θ ^ q = θ ^ ((q - 1) + 1) := by congr 1; ring + _ = θ ^ (q - 1) * θ := by rw [Real.rpow_add hθ, Real.rpow_one] + have hpowers : (θ ^ j) ^ q = (θ ^ q) ^ j := by + rw [← Real.rpow_natCast_mul hθ.le, mul_comm (j : ℝ) q, Real.rpow_mul_natCast hθ.le] + have hfac : A * B ^ j * (V * θ ^ j) ^ q = + (A * V ^ (q - 1)) * V * (B * θ ^ (q - 1)) ^ j * θ ^ j := by + rw [Real.mul_rpow hV.le (pow_nonneg hθ.le _), hpowers, hVp, hθp] + simp only [mul_pow] + ring + calc + Y (j + 1) ≤ A * B ^ j * (Y j) ^ q := hstep j + _ ≤ A * B ^ j * (V * θ ^ j) ^ q := + mul_le_mul_of_nonneg_left (Real.rpow_le_rpow (hY j) ih (by linarith)) + (mul_nonneg hA (pow_nonneg hB _)) + _ = (A * V ^ (q - 1)) * V * (B * θ ^ (q - 1)) ^ j * θ ^ j := hfac + _ ≤ θ * V * 1 * θ ^ j := by + gcongr + exact pow_le_one₀ (mul_nonneg hB (Real.rpow_nonneg hθ.le _)) hamp + _ = V * θ ^ (j + 1) := by rw [pow_succ]; ring + +/-- A nonnegative number below every term of a decaying geometric majorant +is zero. -/ +theorem eq_zero_of_le_geometric {a V θ : ℝ} (ha : 0 ≤ a) + (hθ0 : 0 ≤ θ) (hθ1 : θ < 1) (hle : ∀ j : ℕ, a ≤ V * θ ^ j) : a = 0 := by + have ht : Tendsto (fun j : ℕ => V * θ ^ j) atTop (𝓝 0) := by + simpa only [mul_zero] using tendsto_const_nhds.mul + (tendsto_pow_atTop_nhds_zero_of_lt_one hθ0 hθ1) + exact le_antisymm (ge_of_tendsto ht (Eventually.of_forall hle)) ha + +end RegularPointCoordinates + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/SubsolutionCaccioppoli.lean b/lean/OAI/Geometry/RCD/Sobolev/SubsolutionCaccioppoli.lean new file mode 100644 index 0000000000000000000000000000000000000000..d72b0c68b43ab7a744f140479d5853f10becd17d --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/SubsolutionCaccioppoli.lean @@ -0,0 +1,72 @@ +import OAI.Geometry.RCD.Sobolev.WeakSubsolution + +namespace OAI + +/-! # Upper-level Caccioppoli estimate with a zeroth-order term -/ + +open Set Filter MeasureTheory +open scoped NNReal InnerProductSpace + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +/-- The potential term is retained explicitly, allowing the level-set +iteration to use the same cutoff energy estimate as in the harmonic case. -/ +theorem IsWeakSubsolutionOn.upper_level_caccioppoli + {Ω : Set X} (u η : SobolevSpace μ hQ) {a k : ℝ} (hk : 0 ≤ k) + (hu : IsWeakSubsolutionOn μ hQ Ω u a) + {χ : X → ℝ} {L B A : ℝ≥0} (hχ : LipschitzWith L χ) + (hs : HasCompactSupport χ) (hb : ∀ x, |χ x| ≤ B) (hn : ∀ x, 0 ≤ χ x) + (hΩ : tsupport χ ⊆ Ω) (hrep : SobolevSpace.toLp μ hQ η =ᵐ[μ] χ) + (hgrad : ∀ᵐ x ∂μ, |SobolevSpace.minimalSlope μ hQ η x| ≤ A) : + let v := u.upperPositivePart μ hQ hk + (∫ x, (SobolevSpace.toLp μ hQ η x)^2*(SobolevSpace.minimalSlope μ hQ v x)^2 ∂μ) ≤ + 2*a*(∫ x, (SobolevSpace.toLp μ hQ η x)^2*SobolevSpace.toLp μ hQ u x* + SobolevSpace.toLp μ hQ v x ∂μ)+ + 4*(∫ x, (SobolevSpace.toLp μ hQ v x)^2*(SobolevSpace.minimalSlope μ hQ η x)^2 ∂μ) := by + intro v + let M := SobolevSpace.cutoffCLM μ hQ hχ hs hb hn + let test := M (M v) + have hmem : test ∈ SobolevSpace.dirichlet μ hQ Ω := + SobolevSpace.cutoffCLM_mem_dirichlet μ hQ hχ hs hb hn hΩ (M v) + have hval : SobolevSpace.toLp μ hQ test =ᵐ[μ] fun x => + (χ x)^2*SobolevSpace.toLp μ hQ v x := by + filter_upwards [SobolevSpace.cutoffCLM_coe μ hQ hχ hs hb hn (M v), + SobolevSpace.cutoffCLM_coe μ hQ hχ hs hb hn v] with x h1 h2 + change SobolevSpace.toLp μ hQ test x = _ at h1 + change SobolevSpace.toLp μ hQ (M v) x = _ at h2 + rw [h1,h2] + ring + have hnonneg : ∀ᵐ x ∂μ, 0 ≤ SobolevSpace.toLp μ hQ test x := by + filter_upwards [hval,u.upperPositivePart_coe μ hQ hk] with x ht hv + change SobolevSpace.toLp μ hQ v x = _ at hv + rw [ht,hv] + exact mul_nonneg (sq_nonneg _) (le_max_right _ _) + have hweak := hu ⟨test,hmem⟩ hnonneg + have hI : inner ℝ (SobolevSpace.toLp μ hQ u) (SobolevSpace.toLp μ hQ test) = + ∫ x, (SobolevSpace.toLp μ hQ η x)^2*SobolevSpace.toLp μ hQ u x* + SobolevSpace.toLp μ hQ v x ∂μ := by + rw [L2.inner_def] + apply integral_congr_ae + filter_upwards [hval,hrep] with x ht hη + rw [ht,hη,Real.inner_apply] + ring + change energyForm μ hQ u test ≤ a*inner ℝ (SobolevSpace.toLp μ hQ u) + (SobolevSpace.toLp μ hQ test) at hweak + rw [hI] at hweak + have heq := upper_level_cutoff_energy_eq μ hQ u hk hχ hs hb hn + change energyForm μ hQ v test = energyForm μ hQ u test at heq + have he := caccioppoli_cutoffCLM_energy μ hQ v η hχ hs hb hn hrep hgrad + change _ ≤ 2*energyForm μ hQ v test+4*(∫ x, (SobolevSpace.toLp μ hQ v x)^2* + (SobolevSpace.minimalSlope μ hQ η x)^2 ∂μ) at he + rw [heq] at he + linarith only [he,hweak] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/SubsolutionInterpolation.lean b/lean/OAI/Geometry/RCD/Sobolev/SubsolutionInterpolation.lean new file mode 100644 index 0000000000000000000000000000000000000000..b54cd6ff2f149135b851571586cc8044f1b0bb8e --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/SubsolutionInterpolation.lean @@ -0,0 +1,95 @@ +import OAI.Geometry.RCD.Sobolev.SubsolutionUnitMean +import OAI.Geometry.RCD.Metric.RescaledBallVolume +import OAI.Geometry.RCD.Sobolev.GeometricMeanBootstrap +import OAI.Geometry.RCD.Harmonic.FirstOrderLocalization + +namespace OAI + +/-! # Interpolation of local subsolution mean bounds -/ + +open Set Metric Filter MeasureTheory +open scoped ENNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] + +/-- Distributional subsolutions restrict to smaller test domains. -/ +theorem IsWeakSubsolutionOn.mono (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + {s t : Set X} {u : SobolevSpace μ hQ} {a : ℝ} + (hu : IsWeakSubsolutionOn μ hQ t u a) (hst : s ⊆ t) : + IsWeakSubsolutionOn μ hQ s u a := by + intro φ hφ + exact hu ⟨φ.val,dirichlet_mono μ hQ hst φ.property⟩ hφ + +/-- Young's inequality in the square-root form used for interior interpolation. -/ +theorem sqrt_interpolation {θ c C H : ℝ} (hθ : 0 < θ) (hc : 0 ≤ c) + (hC : 0 ≤ C) (hH : 0 ≤ H) : + c*Real.sqrt (C*H) ≤ θ*C+(c^2/θ)*H := by + have he : c*Real.sqrt (C*H) = Real.sqrt ((θ*C)*((c^2/θ)*H)) := by + rw [show (θ*C)*((c^2/θ)*H) = c^2*(C*H) by field_simp, + Real.sqrt_mul (sq_nonneg c),Real.sqrt_sq hc] + rw [he] + apply Real.sqrt_le_iff.mpr + constructor + · positivity + · have hx : 0 ≤ θ*C := mul_nonneg hθ.le hC + have hy : 0 ≤ (c^2/θ)*H := by positivity + nlinarith [sq_nonneg (θ*C),sq_nonneg ((c^2/θ)*H),mul_nonneg hx hy] + +variable [BorelSpace X] + +/-- A bound on a smaller ball interpolates the local L² norm with the +L¹ mass on the fixed outer ball. -/ +theorem NoncollapsedRCD.local_mean_interpolation {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) {p q : X} {R r D C : ℝ} + (hR : 0 < R) (hr : 0 < r) (_hD : 0 ≤ D) (hC : 0 ≤ C) + (hsub : ball q r ⊆ ball p R) + (hvol : (hausdorff n X).real (ball p R) ≤ D*(hausdorff n X).real (ball q r)) + (u : SobolevSpace (hausdorff n X) hX.quadratic) + (hpos : ∀ᵐ y ∂(hausdorff n X).restrict (ball p R), 0 ≤ SobolevSpace.toLp _ _ u y) + (hbound : ∀ᵐ y ∂(hausdorff n X).restrict (ball q r), SobolevSpace.toLp _ _ u y ≤ C) : + harmonicTargetNorm hX q r u ≤ Real.sqrt (D*C* + ((hausdorff n X).real (ball p R))⁻¹* + ∫ y in ball p R, SobolevSpace.toLp (hausdorff n X) hX.quadratic u y ∂hausdorff n X) := by + let μ := hausdorff n X + let U := SobolevSpace.toLp μ hX.quadratic u + have hfinR := (hX.finiteOnBounded (ball p R) isBounded_ball).ne + have hfinr := (hX.finiteOnBounded (ball q r) isBounded_ball).ne + have hVR : 0 < μ.real (ball p R) := ENNReal.toReal_pos (hX.fullSupport p R hR).ne' hfinR + have hVr : 0 < μ.real (ball q r) := ENNReal.toReal_pos (hX.fullSupport q r hr).ne' hfinr + let : IsFiniteMeasure (μ.restrict (ball p R)) := ⟨by simpa using hfinR.lt_top⟩ + have hi : IntegrableOn U (ball p R) μ := + ((Lp.memLp U).restrict (ball p R)).integrable (by norm_num) + have hmass : 0 ≤ ∫ y in ball p R, U y ∂μ := integral_nonneg_of_ae hpos + have hI : (∫ y in ball q r, U y^2 ∂μ) ≤ C*(∫ y in ball p R, U y ∂μ) := by + calc + _ ≤ ∫ y in ball q r, C*U y ∂μ := by + apply integral_mono_ae (Lp.memLp U).integrable_sq.integrableOn ((hi.mono_set hsub).const_mul C) + filter_upwards [hbound,ae_restrict_of_ae_restrict_of_subset hsub hpos] with y hb hp + nlinarith + _ = C*(∫ y in ball q r, U y ∂μ) := integral_const_mul _ _ + _ ≤ C*(∫ y in ball p R, U y ∂μ) := mul_le_mul_of_nonneg_left + (setIntegral_mono_set hi hpos (Eventually.of_forall hsub)) hC + have hratio : (μ.real (ball q r))⁻¹ ≤ D*(μ.real (ball p R))⁻¹ := by + apply (le_div_iff₀ hVR).mpr + change (μ.real (ball q r))⁻¹*μ.real (ball p R) ≤ D + exact (inv_mul_le_iff₀ hVr).mpr (by simpa only [mul_comm] using hvol) + have hn : (harmonicTargetNorm hX q r u)^2 = + (μ.real (ball q r))⁻¹*(∫ y in ball q r, U y^2 ∂μ) := + normalized_sobolev_mean_sq μ hX.quadratic _ hfinr u + apply Real.le_sqrt_of_sq_le + rw [hn] + calc + _ ≤ (μ.real (ball q r))⁻¹*(C*(∫ y in ball p R, U y ∂μ)) := + mul_le_mul_of_nonneg_left hI (inv_nonneg.mpr hVr.le) + _ ≤ (D*(μ.real (ball p R))⁻¹)*(C*(∫ y in ball p R, U y ∂μ)) := + mul_le_mul_of_nonneg_right hratio (mul_nonneg hC hmass) + _ = _ := by ring + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/SubsolutionL1Mean.lean b/lean/OAI/Geometry/RCD/Sobolev/SubsolutionL1Mean.lean new file mode 100644 index 0000000000000000000000000000000000000000..fc886e0d81f2b54701f8ed5df8d40490bbb23cfc --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/SubsolutionL1Mean.lean @@ -0,0 +1,128 @@ +import OAI.Geometry.RCD.Sobolev.SubsolutionInterpolation +import OAI.Geometry.RCD.Metric.DyadicInteriorBalls + +namespace OAI + +/-! # Local L¹ mean bounds for nonnegative weak subsolutions -/ + +open Set Metric Filter MeasureTheory +open scoped ENNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +/-- Interior interpolation removes every dependence on the initially known +upper bound. The final estimate only uses the normalized L¹ mass. -/ +theorem NoncollapsedRCD.subsolution_l1_mean_value {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (hn : 2 ≤ n) (Λ : ℝ) (hΛ : 0 ≤ Λ) : + ∃ C : ℝ, 1 ≤ C ∧ ∀ (p : X) (R : ℝ), 0 < R → -1 ≤ K*R^2 → + ∀ (u : SobolevSpace (hausdorff n X) hX.quadratic) (a B : ℝ), + 0 ≤ a → a*R^2 ≤ Λ → 0 ≤ B → + IsWeakSubsolutionOn (hausdorff n X) hX.quadratic (ball p R) u a → + (∀ᵐ y ∂(hausdorff n X).restrict (ball p R), + 0 ≤ SobolevSpace.toLp _ _ u y ∧ SobolevSpace.toLp _ _ u y ≤ B) → + ∀ᵐ y ∂(hausdorff n X).restrict (ball p (R/2)), + SobolevSpace.toLp _ _ u y ≤ C*((hausdorff n X).real (ball p R))⁻¹* + ∫ z in ball p R, SobolevSpace.toLp (hausdorff n X) hX.quadratic u z ∂hausdorff n X := by + classical + let := hX.separable + obtain ⟨M,hM,hmean⟩ := hX.subsolution_unit_mean_value hn Λ hΛ + let D := (8*Real.exp 4)^n + let b : ℝ := 2^n + let A := M*D + let θ := 1/(2*b^2) + let F := A^2/θ + have hM0 : 0 ≤ M := zero_le_one.trans hM + have hD : 1 ≤ D := one_le_pow₀ (by nlinarith [Real.one_le_exp (by norm_num : (0:ℝ) ≤ 4)]) + have hb : 1 ≤ b := one_le_pow₀ (by norm_num) + have hb0 : 0 < b := zero_lt_one.trans_le hb + have hθ : 0 < θ := by positivity + have hθ1 : θ < 1 := by + apply (div_lt_one (by positivity : 0 < 2*b^2)).mpr + nlinarith + have hF : 0 ≤ F := by positivity + refine ⟨1+2*F,by linarith,?_⟩ + intro p R hR hcurv u a B ha haR hB hu hbound + let μ := hausdorff n X + let U := SobolevSpace.toLp μ hX.quadratic u + let H := (μ.real (ball p R))⁻¹*∫ z in ball p R, U z ∂μ + have hpos : ∀ᵐ z ∂μ.restrict (ball p R), 0 ≤ U z := hbound.mono fun _ h => h.1 + have hH : 0 ≤ H := mul_nonneg (inv_nonneg.mpr ENNReal.toReal_nonneg) (integral_nonneg_of_ae hpos) + let S : ℕ → Set X := fun i => ball p (R-R/(2*2^i)) + have hS (i : ℕ) : S i ⊆ ball p R := ball_subset_ball (expanding_radii hR i).2.2.2.1.le + have hstep (i : ℕ) (C : ℝ) (hC : 0 ≤ C) + (hCb : ∀ᵐ z ∂μ.restrict (S (i+1)), U z ≤ C) : + ∀ᵐ z ∂μ.restrict (S i), U z ≤ θ*C+F*(b^2)^i*H := by + let t := R/(4*2^i) + have ht : 0 < t := (expanding_radii hR i).1 + have htR : t ≤ R := (expanding_radii hR i).2.1 + have hcurvt : -1 ≤ K*t^2 := by + by_cases hK : 0 ≤ K + · exact (by norm_num : (-1:ℝ) ≤ 0).trans (mul_nonneg hK (sq_nonneg t)) + · exact hcurv.trans (mul_le_mul_of_nonpos_left (pow_le_pow_left₀ ht.le htR 2) (le_of_not_ge hK)) + have hat : a*t^2 ≤ Λ := (mul_le_mul_of_nonneg_left + (pow_le_pow_left₀ ht.le htR 2) ha).trans haR + have hlocal (q : S i) : + ∀ᵐ z ∂μ.restrict (ball q.val (t/2)), U z ≤ θ*C+F*(b^2)^i*H := by + have hq : dist q.val p < R-R/(2*2^i) := q.property + have hqR : dist q.val p ≤ R := hq.le.trans (expanding_radii hR i).2.2.2.1.le + have hsmall : ball q.val t ⊆ S (i+1) := by + apply ball_subset_ball' + dsimp only [t] + linarith only [hq,(expanding_radii hR i).2.2.2.2] + have hsub : ball q.val t ⊆ ball p R := hsmall.trans (hS (i+1)) + let Di := D*b^i + have hDi : 1 ≤ Di := one_le_mul_of_one_le_of_one_le hD (one_le_pow₀ hb) + have hv : μ.real (ball p R) ≤ Di*μ.real (ball q.val t) := + hX.expanding_volume_factor hn p R hR hcurv i q.val hqR + have hnorm := hX.local_mean_interpolation hR ht (zero_le_one.trans hDi) hC hsub hv u hpos + (ae_restrict_of_ae_restrict_of_subset hsmall hCb) + have hnorm' : harmonicTargetNorm hX q.val t u ≤ Di*Real.sqrt (C*H) := by + have hsqrt : Real.sqrt Di ≤ Di := by + have hh := Real.sq_sqrt (zero_le_one.trans hDi) + nlinarith [Real.sqrt_nonneg Di] + calc + _ ≤ Real.sqrt (Di*(C*H)) := by + convert hnorm using 1 + dsimp only [H,μ,U] + congr 1 + ring + _ = Real.sqrt Di*Real.sqrt (C*H) := Real.sqrt_mul (zero_le_one.trans hDi) _ + _ ≤ Di*Real.sqrt (C*H) := mul_le_mul_of_nonneg_right hsqrt (Real.sqrt_nonneg _) + have hyoung := sqrt_interpolation hθ (show 0 ≤ A*b^i by positivity) hC hH + have halg : (A*b^i)^2/θ*H = F*(b^2)^i*H := by + dsimp only [F] + rw [mul_pow,pow_right_comm b i 2] + ring + filter_upwards [hmean q.val t ht hcurvt u a ha hat (hu.mono μ hX.quadratic hsub)] with z hz + calc + U z ≤ M*harmonicTargetNorm hX q.val t u := hz + _ ≤ M*(Di*Real.sqrt (C*H)) := mul_le_mul_of_nonneg_left hnorm' hM0 + _ = (A*b^i)*Real.sqrt (C*H) := by dsimp only [A,Di]; ring + _ ≤ θ*C+F*(b^2)^i*H := by simpa only [halg] using hyoung + let V : S i → Set X := fun q => ball q.val (t/2) + obtain ⟨s,hs,hcover⟩ := (HereditarilyLindelofSpace.isLindelof (S i)).elim_countable_subcover + V (fun _ => isOpen_ball) (by + intro z hz + exact mem_iUnion.mpr ⟨⟨z,hz⟩,mem_ball_self (by positivity)⟩) + exact ae_restrict_of_ae_restrict_of_subset hcover + ((ae_restrict_biUnion_iff V hs _).mpr (fun q _ => hlocal q)) + have hh := geometric_mean_bootstrap μ U (ball p R) S hS hθ.le hθ1 hF hH hB + (by dsimp only [θ]; field_simp) + (hbound.mono fun _ h => h.2) hstep + have hs0 : S 0 = ball p (R/2) := by dsimp only [S]; congr 1; norm_num; ring + rw [hs0] at hh + filter_upwards [hh] with z hz + change U z ≤ (1+2*F)*(μ.real (ball p R))⁻¹*∫ z in ball p R, U z ∂μ + calc + U z ≤ 2*F*H := hz + _ ≤ (1+2*F)*H := by nlinarith + _ = _ := by dsimp only [H]; ring + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/SubsolutionLevelDecay.lean b/lean/OAI/Geometry/RCD/Sobolev/SubsolutionLevelDecay.lean new file mode 100644 index 0000000000000000000000000000000000000000..f5d211f74ad0f7af382069bd264e9640e9896207 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/SubsolutionLevelDecay.lean @@ -0,0 +1,118 @@ +import OAI.Geometry.RCD.Sobolev.SubsolutionLevelStep +import OAI.Geometry.RCD.Sobolev.DyadicSubsolutionLevels + +namespace OAI + +/-! # Decay of upper-level energies for bounded-potential subsolutions -/ + +open Set Metric Filter MeasureTheory +open scoped NNReal ENNReal Topology + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem NoncollapsedRCD.subsolution_level_energies_tendsto_zero {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (hn : 2 ≤ n) (Λ : ℝ) (hΛ : 0 ≤ Λ) : + ∃ δ : ℝ, 0 < δ ∧ ∀ (x : X) (R : ℝ), 0 < R → -1 ≤ K*R^2 → + ∀ (u : SobolevSpace (hausdorff n X) hX.quadratic) (a : ℝ), 0 ≤ a → a*R^2 ≤ Λ → + IsWeakSubsolutionOn (hausdorff n X) hX.quadratic (ball x R) u a → + (∫ y in ball x R, (SobolevSpace.toLp (hausdorff n X) hX.quadratic u y)^2 + ∂hausdorff n X) ≤ δ*(hausdorff n X).real (ball x R) → + Tendsto (fun i : ℕ => ∫ y in closedBall x (R/2+R/(4*2^i)), + (max (SobolevSpace.toLp (hausdorff n X) hX.quadratic u y-(1-(2^i:ℝ)⁻¹)) 0)^2 + ∂hausdorff n X) atTop (𝓝 0) := by + obtain ⟨p,C,hp,hC,hstep⟩ := hX.subsolution_level_step hn + have hp0 : 0 < p := by linarith + let α := 1-2/p + have hα : 0 < α := by + have hh : 2/p < 1 := (div_lt_one hp0).mpr hp + dsimp only [α] + linarith + let C₀ := C*(641+16*Λ)*(16:ℝ)^α + let b := (4:ℝ)^(1+α) + have hC₀ : 0 < C₀ := by dsimp only [C₀]; positivity + have hb : 0 < b := by dsimp only [b]; positivity + obtain ⟨δ,hδ,hdecay⟩ := exists_superlinear_decay_threshold hC₀ hb hα + refine ⟨δ,hδ,?_⟩ + intro x R hR hcurv u a ha haR hu hsmall + let μ := hausdorff n X + let V := μ.real (ball x R) + let U := SobolevSpace.toLp μ hX.quadratic u + let J (i : ℕ) := ∫ y in closedBall x (R/2+R/(4*2^i)), + (max (U y-(1-(2^i:ℝ)⁻¹)) 0)^2 ∂μ + let Y (i : ℕ) := J i/V + have hV : 0 < V := ENNReal.toReal_pos (hX.fullSupport x R hR).ne' + (hX.finiteOnBounded _ isBounded_ball).ne + have hJ (i : ℕ) : 0 ≤ J i := integral_nonneg fun _ => sq_nonneg _ + have hY (i : ℕ) : 0 ≤ Y i := div_nonneg (hJ i) hV.le + have hstart : Y 0 ≤ δ := by + have hsub : closedBall x (R/2+R/(4*2^0)) ⊆ ball x R := + closedBall_subset_ball (dyadic_inner_radii hR 0).2.2 + have hJ0 : J 0 ≤ ∫ y in ball x R, (U y)^2 ∂μ := by + have hfirst : J 0 ≤ ∫ y in closedBall x (R/2+R/(4*2^0)), (U y)^2 ∂μ := by + dsimp only [J] + simp only [pow_zero,inv_one,sub_self,sub_zero] + have hi0 : Integrable (fun y => (max (U y) 0)^2) μ := by + simpa only [Function.comp_apply,upperLevelPart,sub_zero] using + ((upperLevelPart_lipschitz 0).comp_memLp (upperLevelPart_zero (by norm_num)) + (Lp.memLp U)).integrable_sq + apply integral_mono_ae hi0.integrableOn (Lp.memLp U).integrable_sq.integrableOn + exact Eventually.of_forall fun y => by + change (max (U y) 0)^2 ≤ (U y)^2 + by_cases hh : 0 ≤ U y + · rw [max_eq_left hh] + · rw [max_eq_right (le_of_not_ge hh),zero_pow (by decide)] + exact sq_nonneg _ + exact hfirst.trans (setIntegral_mono_set (Lp.memLp U).integrable_sq.integrableOn + (Eventually.of_forall fun y => sq_nonneg _) (Eventually.of_forall hsub)) + exact (div_le_iff₀ hV).mpr (hJ0.trans hsmall) + have hrec (i : ℕ) : Y (i+1) ≤ C₀*b^i*(Y i)^(1+α) := by + have hr := dyadic_inner_radii hR i + have hk := dyadic_level_gap_bounds hR i + have hm := dyadic_middle_level_bounds hR i + let j := 1-(2^i:ℝ)⁻¹ + let h := 1-(2^(i+1):ℝ)⁻¹ + let k := (j+h)/2 + have hjk : j < k := hm.1 + have hkh : k < h := hm.2.1 + have hh := hstep x R hR hcurv u a ha hu + (R/2+R/(4*2^(i+1))) (R/2+R/(4*2^i)) j k h hr.1 hr.2.1 hr.2.2 hk.1 hjk hkh + change J (i+1) ≤ C*V^(2/p-1)* + (10*R^2*(((R/2+R/(4*2^i))-(R/2+R/(4*2^(i+1))))⁻¹)^2+ + 4*R^2*a*(k/(k-j))+1)*J i*(J i/(h-k)^2)^(1-2/p) at hh + have hgap : J i/(h-k)^2 = (16*4^i)*J i := by + rw [div_eq_mul_inv,← inv_pow,hm.2.2.1] + ring + have hpot : 4*R^2*a*(k/(k-j)) ≤ (16*Λ)*4^i := by + calc + _ = 4*(a*R^2)*(k/(k-j)) := by ring + _ ≤ 4*Λ*(4*4^i) := by + have hk0 : 0 ≤ k := hk.1.trans hjk.le + have hh := mul_le_mul haR hm.2.2.2 + (div_nonneg hk0 (sub_pos.mpr hjk).le) hΛ + nlinarith only [hh] + _ = _ := by ring + have hcoeff : 10*R^2*(((R/2+R/(4*2^i))-(R/2+R/(4*2^(i+1))))⁻¹)^2+ + 4*R^2*a*(k/(k-j))+1 ≤ (641+16*Λ)*4^i := by + nlinarith only [hk.2.2.2,hpot] + have hexp : 2/p-1 = -α := by dsimp only [α]; ring + rw [hgap,hexp] at hh + have hbnd : J (i+1) ≤ C*V^(-α)*((641+16*Λ)*4^i)*J i*((16*4^i)*J i)^α := by + apply hh.trans + gcongr + have hnorm := div_le_div_of_nonneg_right hbnd hV.le + rw [normalized_level_identity hV (hJ i) (by norm_num : (0:ℝ)<16) + (by norm_num : (0:ℝ)<4) hα i] at hnorm + exact hnorm + have hlim := hdecay Y hY hstart hrec + have hJlim := hlim.mul_const V + have heq (i : ℕ) : Y i*V = J i := div_mul_cancel₀ _ hV.ne' + simpa only [heq,zero_mul] using hJlim + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/SubsolutionLevelMoment.lean b/lean/OAI/Geometry/RCD/Sobolev/SubsolutionLevelMoment.lean new file mode 100644 index 0000000000000000000000000000000000000000..fbea8066acbd934916cd5959b49d2e61a419d752 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/SubsolutionLevelMoment.lean @@ -0,0 +1,114 @@ +import OAI.Geometry.RCD.Sobolev.SubsolutionSourceBound +import OAI.Geometry.RCD.Sobolev.LocalizedCutoffNorms +import OAI.Geometry.RCD.Sobolev.InhomogeneousSobolev + +namespace OAI + +/-! # Sobolev moments of upper-level weak subsolutions -/ + +open Set Filter Metric MeasureTheory +open scoped NNReal ENNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +/-- The extra potential is controlled by the gap from a preceding level. +This is the moment estimate used in the local Bochner iteration. -/ +theorem NoncollapsedRCD.subsolution_level_cutoff_moment {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (hn : 2 ≤ n) : + ∃ p C : ℝ, 2 < p ∧ 0 < C ∧ ∀ (x : X) (R : ℝ), 0 < R → -1 ≤ K*R^2 → + ∀ (u : SobolevSpace (hausdorff n X) hX.quadratic) (a : ℝ), 0 ≤ a → + IsWeakSubsolutionOn (hausdorff n X) hX.quadratic (ball x R) u a → + ∀ j k : ℝ, 0 ≤ j → j < k → ∀ (χ : X → ℝ) (L : ℝ≥0), + LipschitzWith L χ → HasCompactSupport χ → + (∀ y, 0 ≤ χ y ∧ χ y ≤ 1) → tsupport χ ⊆ ball x R → + ∀ A : Set X, MeasurableSet A → tsupport χ ⊆ A → + ∃ w : SobolevSpace.dirichlet (hausdorff n X) hX.quadratic (ball x R), + (SobolevSpace.toLp _ _ w.val =ᵐ[hausdorff n X] + fun y => χ y*max (SobolevSpace.toLp _ _ u y-k) 0) ∧ + IntegrableOn (fun y => |SobolevSpace.toLp _ _ w.val y|^p) (ball x R) (hausdorff n X) ∧ + (∫ y in ball x R, |SobolevSpace.toLp _ _ w.val y|^p ∂hausdorff n X)^(2/p) ≤ + C*((hausdorff n X).real (ball x R))^(2/p-1)* + (10*R^2*(L:ℝ)^2+4*R^2*a*(k/(k-j))+1)* + ∫ y in A, (max (SobolevSpace.toLp _ _ u y-j) 0)^2 ∂hausdorff n X := by + obtain ⟨p,C,hp,hC,hS⟩ := hX.inhomogeneous_dirichlet_sobolev hn + refine ⟨p,C,hp,hC,?_⟩ + intro x R hR hcurv u a ha hu j k hj hjk χ L hχ hs hb hΩ A hA hsA + let μ := hausdorff n X + let := locallyFinite_of_finiteOnBounded μ hX.finiteOnBounded + have hk : 0 ≤ k := hj.trans hjk.le + have habs (y : X) : |χ y| ≤ (1:ℝ≥0) := by rw [abs_of_nonneg (hb y).1]; exact (hb y).2 + have hχn (y : X) : 0 ≤ χ y := (hb y).1 + let η := SobolevSpace.ofLipschitzCompact μ hX.quadratic hχ hs + have hη := SobolevSpace.ofLipschitzCompact_coe μ hX.quadratic hχ hs + have hgrad : ∀ᵐ y ∂μ, |SobolevSpace.minimalSlope μ hX.quadratic η y| ≤ L := by + filter_upwards [SobolevSpace.ofLipschitzCompact_minimalSlope_le_lip μ hX.quadratic hχ hs, + (Lp.coeFn_nonneg _).mpr (SobolevSpace.minimalSlope_nonneg μ hX.quadratic η)] with y hle hnonneg + rwa [abs_of_nonneg hnonneg] + let v := u.upperPositivePart μ hX.quadratic hk + let z := SobolevSpace.cutoffCLM μ hX.quadratic hχ hs habs hχn v + let w : SobolevSpace.dirichlet μ hX.quadratic (ball x R) := + ⟨z,SobolevSpace.cutoffCLM_mem_dirichlet μ hX.quadratic hχ hs habs hχn hΩ v⟩ + let J := ∫ y in A, (max (SobolevSpace.toLp μ hX.quadratic u y-j) 0)^2 ∂μ + let Jk := ∫ y in A, (SobolevSpace.toLp μ hX.quadratic v y)^2 ∂μ + have hv : SobolevSpace.toLp μ hX.quadratic v =ᵐ[μ] + fun y => max (SobolevSpace.toLp μ hX.quadratic u y-k) 0 := u.upperPositivePart_coe μ hX.quadratic hk + have hJ : Jk ≤ J := by + have hi : Integrable (fun y => (max (SobolevSpace.toLp μ hX.quadratic u y-j) 0)^2) μ := by + apply (Lp.memLp (SobolevSpace.toLp μ hX.quadratic (u.upperPositivePart μ hX.quadratic hj))).integrable_sq.congr + filter_upwards [u.upperPositivePart_coe μ hX.quadratic hj] with y hy + rw [hy] + rfl + apply integral_mono_ae (Lp.memLp (SobolevSpace.toLp μ hX.quadratic v)).integrable_sq.integrableOn hi.integrableOn + filter_upwards [ae_restrict_of_ae hv] with y hy + rw [hy] + apply pow_le_pow_left₀ (le_max_right _ _) _ 2 + exact max_le_max (by linarith) le_rfl + let I := ∫ y, (SobolevSpace.toLp μ hX.quadratic v y)^2*(SobolevSpace.minimalSlope μ hX.quadratic η y)^2 ∂μ + let S := ∫ y, (SobolevSpace.toLp μ hX.quadratic η y)^2*SobolevSpace.toLp μ hX.quadratic u y* + SobolevSpace.toLp μ hX.quadratic v y ∂μ + have hI : I ≤ (L:ℝ)^2*J := + (cutoff_gradient_weight_le_setIntegral μ hX.quadratic v η hη hgrad hA hsA).trans + (mul_le_mul_of_nonneg_left hJ (sq_nonneg _)) + have hsource : S ≤ (k/(k-j))*J := by + have heq : S = ∫ y, (χ y)^2*SobolevSpace.toLp μ hX.quadratic u y* + max (SobolevSpace.toLp μ hX.quadratic u y-k) 0 ∂μ := by + apply integral_congr_ae + filter_upwards [hη,hv] with y hy hvy + rw [hy,hvy] + rw [heq] + exact cutoff_upper_level_source_le μ hX.quadratic u hj hjk hχ hb hsA + have hcacc := hu.upper_level_caccioppoli μ hX.quadratic u η hk hχ hs habs hχn hΩ hη hgrad + have hE : energyForm μ hX.quadratic w.val w.val ≤ + (10*(L:ℝ)^2+4*a*(k/(k-j)))*J := by + have he := energy_cutoffCLM_le μ hX.quadratic v η hχ hs habs hχn hη hgrad + change energyForm μ hX.quadratic w.val w.val ≤ _ at he + change _ ≤ 2*a*S+4*I at hcacc + have hs' := mul_le_mul_of_nonneg_left hsource ha + nlinarith only [he,hcacc,hI,hs'] + have hN : ‖SobolevSpace.toLp μ hX.quadratic w.val‖^2 ≤ J := by + have hh := cutoffCLM_norm_sq_le_setIntegral μ hX.quadratic v hχ hs habs hχn hA hsA + have hh' : ‖SobolevSpace.toLp μ hX.quadratic w.val‖^2 ≤ Jk := by + simpa only [NNReal.coe_one,one_pow,one_mul] using hh + exact hh'.trans hJ + obtain ⟨hi,hbound⟩ := hS x R hR hcurv w + refine ⟨w,?_,hi,?_⟩ + · filter_upwards [SobolevSpace.cutoffCLM_coe μ hX.quadratic hχ hs habs hχn v,hv] with y hz hvy + exact hz.trans (by rw [hvy]) + · have henergy : R^2*energyForm μ hX.quadratic w.val w.val+‖SobolevSpace.toLp μ hX.quadratic w.val‖^2 ≤ + (10*R^2*(L:ℝ)^2+4*R^2*a*(k/(k-j))+1)*J := by + have hh := mul_le_mul_of_nonneg_left hE (sq_nonneg R) + nlinarith only [hh,hN] + calc + _ ≤ C*(μ.real (ball x R))^(2/p-1)* + ((10*R^2*(L:ℝ)^2+4*R^2*a*(k/(k-j))+1)*J) := + hbound.trans (mul_le_mul_of_nonneg_left henergy (by positivity)) + _ = _ := by ring + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/SubsolutionLevelStep.lean b/lean/OAI/Geometry/RCD/Sobolev/SubsolutionLevelStep.lean new file mode 100644 index 0000000000000000000000000000000000000000..b90f160a7990e8b37195c7751f020ba08254750d --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/SubsolutionLevelStep.lean @@ -0,0 +1,66 @@ +import OAI.Geometry.RCD.Sobolev.SubsolutionLevelMoment +import OAI.Geometry.RCD.Sobolev.LevelSetHolderStep +import OAI.Geometry.RCD.Sobolev.NestedBallCutoff + +namespace OAI + +/-! # Three-level step for a weak subsolution with bounded potential -/ + +open Set Filter Metric MeasureTheory +open scoped NNReal ENNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem NoncollapsedRCD.subsolution_level_step {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (hn : 2 ≤ n) : + ∃ p C : ℝ, 2 < p ∧ 0 < C ∧ ∀ (x : X) (R : ℝ), 0 < R → -1 ≤ K*R^2 → + ∀ (u : SobolevSpace (hausdorff n X) hX.quadratic) (a : ℝ), 0 ≤ a → + IsWeakSubsolutionOn (hausdorff n X) hX.quadratic (ball x R) u a → + ∀ r s j k h : ℝ, 0 ≤ r → r < s → s < R → 0 ≤ j → j < k → k < h → + let U := SobolevSpace.toLp (hausdorff n X) hX.quadratic u + let J := ∫ y in closedBall x s, (max (U y-j) 0)^2 ∂hausdorff n X + (∫ y in closedBall x r, (max (U y-h) 0)^2 ∂hausdorff n X) ≤ + C*((hausdorff n X).real (ball x R))^(2/p-1)* + (10*R^2*((s-r)⁻¹)^2+4*R^2*a*(k/(k-j))+1)*J*(J/(h-k)^2)^(1-2/p) := by + obtain ⟨p,C,hp,hC,hM⟩ := hX.subsolution_level_cutoff_moment hn + refine ⟨p,C,hp,hC,?_⟩ + intro x R hR hcurv u a ha hu r s j k h _hr hrs hsR hj hjk hkh + have hk0 : 0 ≤ k := hj.trans hjk.le + let μ := hausdorff n X + let U := SobolevSpace.toLp μ hX.quadratic u + let J := ∫ y in closedBall x s, (max (U y-j) 0)^2 ∂μ + let Jk := ∫ y in closedBall x s, (max (U y-k) 0)^2 ∂μ + let χ := nestedBallCutoff x r s + let L : ℝ≥0 := ⟨(s-r)⁻¹,inv_nonneg.mpr (sub_pos.mpr hrs).le⟩ + have hχ : LipschitzWith L χ := nestedBallCutoff_lipschitz x hrs + have hc := nestedBallCutoff_hasCompactSupport x hrs + have hsupp : tsupport χ ⊆ closedBall x s := nestedBallCutoff_tsupport x hrs + have hsball : closedBall x s ⊆ ball x R := closedBall_subset_ball hsR + obtain ⟨w,hrep,hi,hbound⟩ := hM x R hR hcurv u a ha hu j k hj hjk χ L hχ hc + (nestedBallCutoff_bounds x r s) (hsupp.trans hsball) (closedBall x s) measurableSet_closedBall hsupp + have hrball : closedBall x r ⊆ ball x R := closedBall_subset_ball (hrs.trans hsR) + have hrrep : SobolevSpace.toLp μ hX.quadratic w.val =ᵐ[μ.restrict (closedBall x r)] + fun y => max (U y-k) 0 := by + filter_upwards [ae_restrict_of_ae hrep,ae_restrict_mem measurableSet_closedBall] with y hy hyr + have hx : dist x y ≤ r := by simpa only [mem_closedBall,dist_comm] using hyr + simpa only [χ,nestedBallCutoff_eq_one x hrs hx,one_mul] using hy + have hh := level_set_holder_step μ measurableSet_ball measurableSet_closedBall hrball + (closedBall_subset_closedBall hrs.le) (hX.finiteOnBounded _ isBounded_ball) + U (SobolevSpace.toLp μ hX.quadratic w.val) (hj.trans hjk.le) hkh hp hrrep hi + have hJk : Jk ≤ J := integral_upper_level_mono μ hX.quadratic u hj hjk.le (closedBall x s) + have hpow : (Jk/(h-k)^2)^(1-2/p) ≤ (J/(h-k)^2)^(1-2/p) := by + apply Real.rpow_le_rpow (by dsimp [Jk]; positivity) + (div_le_div_of_nonneg_right hJk (sq_nonneg _)) + have hp0 : 0 < p := by linarith + have hh := (div_le_one hp0).mpr hp.le + linarith + exact hh.trans (mul_le_mul hbound hpow (by positivity) (by positivity)) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/SubsolutionSmallNorm.lean b/lean/OAI/Geometry/RCD/Sobolev/SubsolutionSmallNorm.lean new file mode 100644 index 0000000000000000000000000000000000000000..5f171e10df49ce78a67ce4176e47ad29de91608c --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/SubsolutionSmallNorm.lean @@ -0,0 +1,67 @@ +import OAI.Geometry.RCD.Sobolev.SubsolutionLevelDecay + +namespace OAI + +/-! # Small normalized L² mass bounds a weak subsolution on the half ball -/ + +open Set Metric Filter MeasureTheory +open scoped NNReal ENNReal Topology + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +/-- Vanishing level energies imply the upper bound on the fixed half ball. -/ +theorem NoncollapsedRCD.subsolution_small_l2_upper_bound {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (hn : 2 ≤ n) (Λ : ℝ) (hΛ : 0 ≤ Λ) : + ∃ δ : ℝ, 0 < δ ∧ ∀ (x : X) (R : ℝ), 0 < R → -1 ≤ K*R^2 → + ∀ (u : SobolevSpace (hausdorff n X) hX.quadratic) (a : ℝ), 0 ≤ a → a*R^2 ≤ Λ → + IsWeakSubsolutionOn (hausdorff n X) hX.quadratic (ball x R) u a → + (∫ y in ball x R, (SobolevSpace.toLp (hausdorff n X) hX.quadratic u y)^2 + ∂hausdorff n X) ≤ δ*(hausdorff n X).real (ball x R) → + ∀ᵐ y ∂(hausdorff n X).restrict (ball x (R/2)), + SobolevSpace.toLp (hausdorff n X) hX.quadratic u y ≤ 1 := by + obtain ⟨δ,hδ,hdecay⟩ := hX.subsolution_level_energies_tendsto_zero hn Λ hΛ + refine ⟨δ,hδ,?_⟩ + intro x R hR hcurv u a ha haR hu hsmall + let μ := hausdorff n X + let U := SobolevSpace.toLp μ hX.quadratic u + have hlim := hdecay x R hR hcurv u a ha haR hu hsmall + have hI : Integrable (fun y => (max (U y-1) 0)^2) μ := + ((upperLevelPart_lipschitz 1).comp_memLp (upperLevelPart_zero zero_le_one) + (Lp.memLp U)).integrable_sq + have hbound (i : ℕ) : (∫ y in ball x (R/2), (max (U y-1) 0)^2 ∂μ) ≤ + ∫ y in closedBall x (R/2+R/(4*2^i)), + (max (U y-(1-(2^i:ℝ)⁻¹)) 0)^2 ∂μ := by + have hk : 0 ≤ 1-(2^i:ℝ)⁻¹ := (dyadic_level_gap_bounds hR i).1 + have hk1 : 1-(2^i:ℝ)⁻¹ ≤ 1 := by + have hh : 0 ≤ (2^i:ℝ)⁻¹ := by positivity + linarith + have hki : Integrable (fun y => (max (U y-(1-(2^i:ℝ)⁻¹)) 0)^2) μ := + ((upperLevelPart_lipschitz _).comp_memLp (upperLevelPart_zero hk) + (Lp.memLp U)).integrable_sq + calc + _ ≤ ∫ y in ball x (R/2), (max (U y-(1-(2^i:ℝ)⁻¹)) 0)^2 ∂μ := by + apply integral_mono_ae hI.integrableOn hki.integrableOn + exact Eventually.of_forall fun y => (sq_le_sq₀ (le_max_right _ _) (le_max_right _ _)).mpr + (max_le_max (by linarith) le_rfl) + _ ≤ _ := setIntegral_mono_set hki.integrableOn + (Eventually.of_forall fun y => sq_nonneg _) + (Eventually.of_forall ((ball_subset_closedBall).trans + (closedBall_subset_closedBall (le_add_of_nonneg_right (by positivity))))) + have hz : (∫ y in ball x (R/2), (max (U y-1) 0)^2 ∂μ) = 0 := + le_antisymm (ge_of_tendsto hlim (Eventually.of_forall hbound)) + (integral_nonneg fun y => sq_nonneg _) + filter_upwards [(integral_eq_zero_iff_of_nonneg (fun y => sq_nonneg _) hI.integrableOn).mp hz] + with y hy + have hh : max (U y-1) 0 = 0 := sq_eq_zero_iff.mp hy + have hle := le_max_left (U y-1) 0 + rw [hh] at hle + linarith + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/SubsolutionSourceBound.lean b/lean/OAI/Geometry/RCD/Sobolev/SubsolutionSourceBound.lean new file mode 100644 index 0000000000000000000000000000000000000000..9b3342361b4b604c1144c064f2683855770bb0ea --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/SubsolutionSourceBound.lean @@ -0,0 +1,109 @@ +import OAI.Geometry.RCD.Sobolev.SubsolutionCaccioppoli + +namespace OAI + +/-! # Controlling the potential term by a lower truncation level -/ + +open Set Filter MeasureTheory +open scoped NNReal + +noncomputable section +namespace RegularPointCoordinates + +theorem upper_level_product_le {j k : ℝ} (hj : 0 ≤ j) (hjk : j < k) (x : ℝ) : + x*max (x-k) 0 ≤ (k/(k-j))*(max (x-j) 0)^2 := by + have hd : 0 < k-j := sub_pos.mpr hjk + have hk : 0 < k := hj.trans_lt hjk + by_cases hx : x ≤ k + · rw [max_eq_right (sub_nonpos.mpr hx),mul_zero] + positivity + have hkx : k < x := lt_of_not_ge hx + have hjx : j < x := hjk.trans hkx + rw [max_eq_left (sub_nonneg.mpr hkx.le),max_eq_left (sub_nonneg.mpr hjx.le)] + have hxb : x ≤ (k/(k-j))*(x-j) := by + rw [div_mul_eq_mul_div] + apply (le_div_iff₀ hd).mpr + nlinarith only [mul_nonneg hj (sub_nonneg.mpr hkx.le)] + calc + x*(x-k) ≤ x*(x-j) := mul_le_mul_of_nonneg_left (by linarith) (hk.trans hkx).le + _ ≤ ((k/(k-j))*(x-j))*(x-j) := mul_le_mul_of_nonneg_right hxb (sub_nonneg.mpr hjx.le) + _ = _ := by ring + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +omit [BorelSpace X] [ProperSpace X] in +/-- Raising a nonnegative level decreases its quadratic tail energy. -/ +theorem integral_upper_level_mono (u : SobolevSpace μ hQ) {j k : ℝ} + (hj : 0 ≤ j) (hjk : j ≤ k) (A : Set X) : + (∫ x in A, (max (SobolevSpace.toLp μ hQ u x-k) 0)^2 ∂μ) ≤ + ∫ x in A, (max (SobolevSpace.toLp μ hQ u x-j) 0)^2 ∂μ := by + have hi (s : ℝ) (hs : 0 ≤ s) : + Integrable (fun x => (max (SobolevSpace.toLp μ hQ u x-s) 0)^2) μ := by + apply (Lp.memLp (SobolevSpace.toLp μ hQ (u.upperPositivePart μ hQ hs))).integrable_sq.congr + filter_upwards [u.upperPositivePart_coe μ hQ hs] with x hx + rw [hx] + rfl + apply integral_mono_ae (hi k (hj.trans hjk)).integrableOn (hi j hj).integrableOn + apply Filter.Eventually.of_forall + intro x + exact pow_le_pow_left₀ (le_max_right _ _) (max_le_max (by linarith) le_rfl) 2 + +omit [ProperSpace X] in +/-- Moving the cutoff test strictly above an earlier level absorbs the +zeroth-order term into that earlier level's L² energy. -/ +theorem cutoff_upper_level_source_le + (u : SobolevSpace μ hQ) {j k : ℝ} (hj : 0 ≤ j) (hjk : j < k) + {χ : X → ℝ} {L : ℝ≥0} (hχ : LipschitzWith L χ) + (hb : ∀ x, 0 ≤ χ x ∧ χ x ≤ 1) + {A : Set X} (hs : tsupport χ ⊆ A) : + (∫ x, (χ x)^2*SobolevSpace.toLp μ hQ u x* + max (SobolevSpace.toLp μ hQ u x-k) 0 ∂μ) ≤ + (k/(k-j))*(∫ x in A, (max (SobolevSpace.toLp μ hQ u x-j) 0)^2 ∂μ) := by + let U := SobolevSpace.toLp μ hQ u + have hk : 0 ≤ k := hj.trans hjk.le + let V := SobolevSpace.toLp μ hQ (u.upperPositivePart μ hQ hk) + have hV : V =ᵐ[μ] fun x => max (U x-k) 0 := u.upperPositivePart_coe μ hQ hk + have hiUV : Integrable (fun x => U x*max (U x-k) 0) μ := by + apply ((Lp.memLp U).integrable_mul (Lp.memLp V)).congr + filter_upwards [hV] with x hx + simp only [Pi.mul_apply,hx] + have hi : Integrable (fun x => (χ x)^2*U x*max (U x-k) 0) μ := by + have hh : Integrable (fun x => (χ x)^2*(U x*max (U x-k) 0)) μ := + hiUV.bdd_mul (c := (1:ℝ)) (hχ.continuous.aestronglyMeasurable.pow 2) + (Filter.Eventually.of_forall fun x => by + rw [Real.norm_eq_abs,abs_of_nonneg (sq_nonneg _)] + nlinarith [(hb x).1,(hb x).2]) + exact hh.congr (Filter.Eventually.of_forall fun x => by ring) + have hiJ : Integrable (fun x => (max (U x-j) 0)^2) μ := by + apply (Lp.memLp (SobolevSpace.toLp μ hQ (u.upperPositivePart μ hQ hj))).integrable_sq.congr + filter_upwards [u.upperPositivePart_coe μ hQ hj] with x hx + rw [hx] + rfl + have heq : (∫ x, (χ x)^2*U x*max (U x-k) 0 ∂μ) = + ∫ x in A, (χ x)^2*U x*max (U x-k) 0 ∂μ := by + symm + apply setIntegral_eq_integral_of_forall_compl_eq_zero + intro x hx + have hzero : χ x = 0 := by + by_contra hn + exact hx (hs (subset_tsupport χ hn)) + simp only [hzero,zero_pow (by decide : 2 ≠ 0),zero_mul] + rw [heq,← integral_const_mul] + apply integral_mono_ae hi.integrableOn (hiJ.const_mul _).integrableOn + apply Filter.Eventually.of_forall + intro x + have hprod : 0 ≤ U x*max (U x-k) 0 := by + by_cases hx : U x ≤ k + · rw [max_eq_right (sub_nonpos.mpr hx),mul_zero] + · exact mul_nonneg (hk.trans (le_of_not_ge hx)) (le_max_right _ _) + calc + _ = (χ x)^2*(U x*max (U x-k) 0) := by ring + _ ≤ 1*(U x*max (U x-k) 0) := mul_le_mul_of_nonneg_right (by nlinarith [(hb x).1,(hb x).2]) hprod + _ ≤ _ := by simpa only [one_mul] using upper_level_product_le hj hjk (U x) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/SubsolutionUnitMean.lean b/lean/OAI/Geometry/RCD/Sobolev/SubsolutionUnitMean.lean new file mode 100644 index 0000000000000000000000000000000000000000..e70e18dd434f09f548de059c58053ad97c53b3c1 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/SubsolutionUnitMean.lean @@ -0,0 +1,90 @@ +import OAI.Geometry.RCD.Sobolev.SubsolutionSmallNorm + +namespace OAI + +/-! # An upper L² mean-value bound for weak subsolutions -/ + +open Set Metric Filter MeasureTheory +open scoped NNReal ENNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +/-- Positive rescaling of the actual subsolution removes the smallness condition +in the level-set argument. -/ +theorem NoncollapsedRCD.subsolution_unit_mean_value {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (hn : 2 ≤ n) (Λ : ℝ) (hΛ : 0 ≤ Λ) : + ∃ C : ℝ, 1 ≤ C ∧ ∀ (x : X) (R : ℝ), 0 < R → -1 ≤ K*R^2 → + ∀ (u : SobolevSpace (hausdorff n X) hX.quadratic) (a : ℝ), 0 ≤ a → a*R^2 ≤ Λ → + IsWeakSubsolutionOn (hausdorff n X) hX.quadratic (ball x R) u a → + ∀ᵐ y ∂(hausdorff n X).restrict (ball x (R/2)), + SobolevSpace.toLp (hausdorff n X) hX.quadratic u y ≤ + C*harmonicTargetNorm hX x R u := by + obtain ⟨δ,hδ,hsmall⟩ := hX.subsolution_small_l2_upper_bound hn Λ hΛ + let C := 1+(Real.sqrt δ)⁻¹ + have hsd : 0 < Real.sqrt δ := Real.sqrt_pos.mpr hδ + have hC : 1 ≤ C := le_add_of_nonneg_right (inv_nonneg.mpr hsd.le) + refine ⟨C,hC,?_⟩ + intro x R hR hcurv u a ha haR hu + let μ := hausdorff n X + let U := SobolevSpace.toLp μ hX.quadratic u + let V := μ.real (ball x R) + let T := harmonicTargetNorm hX x R u + let I := ∫ y in ball x R, (U y)^2 ∂μ + have hV : 0 < V := ENNReal.toReal_pos (hX.fullSupport x R hR).ne' + (hX.finiteOnBounded _ isBounded_ball).ne + have hT : 0 ≤ T := norm_nonneg _ + have hnorm : T^2 = V⁻¹*I := normalized_sobolev_mean_sq μ hX.quadratic + (ball x R) (hX.finiteOnBounded _ isBounded_ball).ne u + have hI : I = T^2*V := by + rw [hnorm] + field_simp + by_cases hTz : T = 0 + · have hIz : I = 0 := by rw [hI,hTz,zero_pow (by decide),zero_mul] + have hz := (integral_eq_zero_iff_of_nonneg (fun y => sq_nonneg (U y)) + (Lp.memLp U).integrable_sq.integrableOn).mp hIz + filter_upwards [ae_restrict_of_ae_restrict_of_subset + (ball_subset_ball (by linarith : R/2 ≤ R)) hz] with y hy + have hy0 : U y = 0 := sq_eq_zero_iff.mp hy + change U y ≤ C*T + rw [hy0,hTz,mul_zero] + have hTp : 0 < T := lt_of_le_of_ne hT (Ne.symm hTz) + let c := Real.sqrt δ/T + have hc : 0 < c := div_pos hsd hTp + have hc2 : c^2 = δ/T^2 := by + dsimp only [c] + rw [div_pow,Real.sq_sqrt hδ.le] + have hscale (a : ℝ) : (∫ y in ball x R, + (SobolevSpace.toLp μ hX.quadratic (a • u) y)^2 ∂μ) = a^2*I := by + have he : SobolevSpace.toLp μ hX.quadratic (a • u) =ᵐ[μ] fun y => a*U y := by + rw [map_smul] + exact Lp.coeFn_smul _ _ + rw [integral_congr_ae ((ae_restrict_of_ae he).mono fun y hy => congrArg (fun t : ℝ => t^2) hy)] + simp_rw [mul_pow] + exact integral_const_mul _ _ + have hsplus : (∫ y in ball x R, + (SobolevSpace.toLp μ hX.quadratic (c • u) y)^2 ∂μ) ≤ δ*V := by + rw [hscale,hc2,hI] + field_simp + norm_num + have hp := hsmall x R hR hcurv (c • u) a ha haR (hu.smul μ hX.quadratic c hc.le) hsplus + have hpcoe : SobolevSpace.toLp μ hX.quadratic (c • u) =ᵐ[μ] fun y => c*U y := by + rw [map_smul] + exact Lp.coeFn_smul _ _ + have hlarge : 1 ≤ c*(C*T) := by + have he : c*(C*T) = Real.sqrt δ+1 := by + dsimp only [c,C] + field_simp + rw [he] + linarith + filter_upwards [hp,ae_restrict_of_ae hpcoe] with y hyp hep + rw [hep] at hyp + exact (mul_le_mul_iff_right₀ hc).mp (hyp.trans hlarge) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/SubsolutionUpperTailBound.lean b/lean/OAI/Geometry/RCD/Sobolev/SubsolutionUpperTailBound.lean new file mode 100644 index 0000000000000000000000000000000000000000..3b23a8c4826f99fe62df1cf80286d8b7de6722a3 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/SubsolutionUpperTailBound.lean @@ -0,0 +1,67 @@ +import OAI.Geometry.RCD.Sobolev.ShiftedSubsolutionLevelDecay + +namespace OAI + +/-! # Small upper-tail mass bounds a weak subsolution above a fixed baseline -/ + +open Set Metric Filter MeasureTheory +open scoped NNReal ENNReal Topology + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +/-- Vanishing level energies imply the upper bound on the fixed half ball. -/ +theorem NoncollapsedRCD.subsolution_small_upper_tail_bound {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (hn : 2 ≤ n) (Λ H : ℝ) (hΛ : 0 ≤ Λ) (hH : 0≤H) : + ∃ δ : ℝ, 0 < δ ∧ ∀ (x : X) (R : ℝ), 0 < R → -1 ≤ K*R^2 → + ∀ (u : SobolevSpace (hausdorff n X) hX.quadratic) (a : ℝ), 0 ≤ a → a*R^2 ≤ Λ → + IsWeakSubsolutionOn (hausdorff n X) hX.quadratic (ball x R) u a → + (∫ y in ball x R, (max (SobolevSpace.toLp (hausdorff n X) hX.quadratic u y-H) 0)^2 + ∂hausdorff n X) ≤ δ*(hausdorff n X).real (ball x R) → + ∀ᵐ y ∂(hausdorff n X).restrict (ball x (R/2)), + SobolevSpace.toLp (hausdorff n X) hX.quadratic u y ≤ H+1 := by + obtain ⟨δ,hδ,hdecay⟩ := hX.subsolution_shifted_level_energies_tendsto_zero hn Λ H hΛ hH + refine ⟨δ,hδ,?_⟩ + intro x R hR hcurv u a ha haR hu hsmall + let μ := hausdorff n X + let U := SobolevSpace.toLp μ hX.quadratic u + have hlim := hdecay x R hR hcurv u a ha haR hu hsmall + have hI : Integrable (fun y => (max (U y-(H+1)) 0)^2) μ := + ((upperLevelPart_lipschitz (H+1)).comp_memLp (upperLevelPart_zero (show 0≤H+1 by linarith)) + (Lp.memLp U)).integrable_sq + have hbound (i : ℕ) : (∫ y in ball x (R/2), (max (U y-(H+1)) 0)^2 ∂μ) ≤ + ∫ y in closedBall x (R/2+R/(4*2^i)), + (max (U y-((H+1)-(2^i:ℝ)⁻¹)) 0)^2 ∂μ := by + have hk : 0 ≤ (H+1)-(2^i:ℝ)⁻¹ := by linarith [(dyadic_level_gap_bounds hR i).1] + have hk1 : (H+1)-(2^i:ℝ)⁻¹ ≤ H+1 := by + have hh : 0 ≤ (2^i:ℝ)⁻¹ := by positivity + linarith + have hki : Integrable (fun y => (max (U y-((H+1)-(2^i:ℝ)⁻¹)) 0)^2) μ := + ((upperLevelPart_lipschitz _).comp_memLp (upperLevelPart_zero hk) + (Lp.memLp U)).integrable_sq + calc + _ ≤ ∫ y in ball x (R/2), (max (U y-((H+1)-(2^i:ℝ)⁻¹)) 0)^2 ∂μ := by + apply integral_mono_ae hI.integrableOn hki.integrableOn + exact Eventually.of_forall fun y => (sq_le_sq₀ (le_max_right _ _) (le_max_right _ _)).mpr + (max_le_max (by linarith) le_rfl) + _ ≤ _ := setIntegral_mono_set hki.integrableOn + (Eventually.of_forall fun y => sq_nonneg _) + (Eventually.of_forall ((ball_subset_closedBall).trans + (closedBall_subset_closedBall (le_add_of_nonneg_right (by positivity))))) + have hz : (∫ y in ball x (R/2), (max (U y-(H+1)) 0)^2 ∂μ) = 0 := + le_antisymm (ge_of_tendsto hlim (Eventually.of_forall hbound)) + (integral_nonneg fun y => sq_nonneg _) + filter_upwards [(integral_eq_zero_iff_of_nonneg (fun y => sq_nonneg _) hI.integrableOn).mp hz] + with y hy + have hh : max (U y-(H+1)) 0 = 0 := sq_eq_zero_iff.mp hy + have hle := le_max_left (U y-(H+1)) 0 + rw [hh] at hle + linarith + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/SubsolutionUpperTailGap.lean b/lean/OAI/Geometry/RCD/Sobolev/SubsolutionUpperTailGap.lean new file mode 100644 index 0000000000000000000000000000000000000000..ed55df57184cafcc7355cb313af2e30bfdd0be70 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/SubsolutionUpperTailGap.lean @@ -0,0 +1,62 @@ +import OAI.Geometry.RCD.Sobolev.SubsolutionUpperTailBound + +namespace OAI + +/-! # Arbitrarily small upper gaps from a small quadratic tail -/ + +open Set Metric Filter MeasureTheory +open scoped NNReal Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem NoncollapsedRCD.subsolution_upper_tail_gap {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (hn : 2≤n) (Λ H β : ℝ) + (hΛ : 0≤Λ) (hH : 0≤H) (hβ : 0<β) : + ∃ δ : ℝ, 0<δ ∧ ∀ (x : X) (R : ℝ), 0 β⁻¹*SobolevSpace.toLp μ hX.quadratic u y := by + dsimp only [v] + rw [map_smul] + exact Lp.coeFn_smul _ _ + have hmax (z : ℝ) : max (β⁻¹*z-H/β) 0=β⁻¹*max (z-H) 0 := by + rw [mul_max_of_nonneg _ _ (inv_nonneg.mpr hβ.le),mul_zero] + congr 1 + field_simp + have hi : (∫ y in ball x R, (max (SobolevSpace.toLp μ hX.quadratic v y-H/β) 0)^2 ∂μ)= + (β⁻¹)^2*(∫ y in ball x R, (max (SobolevSpace.toLp μ hX.quadratic u y-H) 0)^2 ∂μ) := by + rw [← integral_const_mul] + apply integral_congr_ae + filter_upwards [ae_restrict_of_ae he] with y hy + rw [hy,hmax,mul_pow] + have hvsmall : (∫ y in ball x R, (max (SobolevSpace.toLp μ hX.quadratic v y-H/β) 0)^2 ∂μ)≤ + δ*μ.real (ball x R) := by + rw [hi] + apply (mul_le_mul_of_nonneg_left hsmall (sq_nonneg (β⁻¹))).trans_eq + field_simp + rfl + have hv := hbound x R hR hcurv v a ha haR + (hu.smul μ hX.quadratic β⁻¹ (inv_nonneg.mpr hβ.le)) hvsmall + filter_upwards [hv,ae_restrict_of_ae he] with y hy hey + rw [hey] at hy + calc SobolevSpace.toLp μ hX.quadratic u y + = β*(β⁻¹*SobolevSpace.toLp μ hX.quadratic u y) := by field_simp + _ ≤ β*(H/β+1) := mul_le_mul_of_nonneg_left hy hβ.le + _ = H+β := by field_simp + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/SumEnergyConvergence.lean b/lean/OAI/Geometry/RCD/Sobolev/SumEnergyConvergence.lean new file mode 100644 index 0000000000000000000000000000000000000000..206a684623d73f8308987a5d697ccc7f0b007ba9 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/SumEnergyConvergence.lean @@ -0,0 +1,65 @@ +import OAI.Geometry.RCD.Harmonic.MixedGramL1 + +namespace OAI + +/-! # Gram convergence determines the energy of sum directions -/ + +open Set Filter MeasureTheory +open scoped Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem sum_energy_l1_tendsto (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + (A : ℕ → Set X) (hfin : ∀ k, μ (A k) ≠ ⊤) (r c : ℕ → ℝ) (hc : ∀ k, 0 ≤ c k) + (f g : ℕ → SobolevSpace μ hQ) (a b d : ℝ) + (hf : Tendsto (fun k => c k*∫ x in A k, |r k^2*localGamma μ hQ (f k) (f k) x-a| ∂μ) + atTop (𝓝 0)) + (hfg : Tendsto (fun k => c k*∫ x in A k, |r k^2*localGamma μ hQ (f k) (g k) x-b| ∂μ) + atTop (𝓝 0)) + (hg : Tendsto (fun k => c k*∫ x in A k, |r k^2*localGamma μ hQ (g k) (g k) x-d| ∂μ) + atTop (𝓝 0)) : + Tendsto (fun k => c k*∫ x in A k, + |r k^2*localGamma μ hQ (f k+g k) (f k+g k) x-(a+2*b+d)| ∂μ) atTop (𝓝 0) := by + let e := fun k (u v : SobolevSpace μ hQ) (a : ℝ) x => |r k^2*localGamma μ hQ u v x-a| + have hi (k : ℕ) (u v : SobolevSpace μ hQ) (a : ℝ) : IntegrableOn (e k u v a) (A k) μ := + (((localGamma_memL1 μ hQ u v).const_mul (r k^2)).integrableOn.sub + (integrableOn_const (hfin k))).abs + have hlim := (hf.add (hfg.const_mul 2)).add hg + simp only [mul_zero,add_zero] at hlim + apply squeeze_zero (fun k => mul_nonneg (hc k) (integral_nonneg fun _ => abs_nonneg _)) _ hlim + intro k + have hquad := localGamma_add_smul_square μ hQ (f k) (g k) 1 + simp only [one_smul,one_pow,mul_one,one_mul] at hquad + have hb : ∀ᵐ x ∂μ.restrict (A k), e k (f k+g k) (f k+g k) (a+2*b+d) x ≤ + e k (f k) (f k) a x+2*e k (f k) (g k) b x+e k (g k) (g k) d x := by + filter_upwards [ae_restrict_of_ae hquad] with x hx + dsimp only [e] + rw [hx] + have he : r k^2*(localGamma μ hQ (f k) (f k) x+2*localGamma μ hQ (f k) (g k) x+ + localGamma μ hQ (g k) (g k) x)-(a+2*b+d) = + (r k^2*localGamma μ hQ (f k) (f k) x-a)+2*(r k^2*localGamma μ hQ (f k) (g k) x-b)+ + (r k^2*localGamma μ hQ (g k) (g k) x-d) := by ring + rw [he] + let A := r k^2*localGamma μ hQ (f k) (f k) x-a + let B := r k^2*localGamma μ hQ (f k) (g k) x-b + let D := r k^2*localGamma μ hQ (g k) (g k) x-d + change |A+2*B+D| ≤ |A|+2*|B|+|D| + calc + _ ≤ |A+2*B|+|D| := abs_add_le _ _ + _ ≤ (|A|+|2*B|)+|D| := by linarith [abs_add_le A (2*B)] + _ = _ := by rw [abs_mul]; norm_num + have hI := integral_mono_ae (hi k _ _ _) (((hi k _ _ _).add ((hi k _ _ _).const_mul 2)).add (hi k _ _ _)) hb + simp only [Pi.add_apply] at hI + have hfirst := integral_add (hi k (f k) (f k) a) ((hi k (f k) (g k) b).const_mul 2) + have hsecond := integral_add ((hi k (f k) (f k) a).add ((hi k (f k) (g k) b).const_mul 2)) + (hi k (g k) (g k) d) + simp only [Pi.add_apply] at hfirst hsecond + rw [hsecond,hfirst,integral_const_mul] at hI + simpa only [mul_add,mul_left_comm (c k) 2] using mul_le_mul_of_nonneg_left hI (hc k) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/SupportedEnergyLocality.lean b/lean/OAI/Geometry/RCD/Sobolev/SupportedEnergyLocality.lean new file mode 100644 index 0000000000000000000000000000000000000000..e28e4e272a974722c1c66416063a433929bcffdb --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/SupportedEnergyLocality.lean @@ -0,0 +1,33 @@ +import OAI.Geometry.RCD.Sobolev.PoissonLocality + +namespace OAI + +/-! # Energy locality against a supported Sobolev test -/ + +open Set Filter MeasureTheory + +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +theorem energyForm_eq_of_test_support {Ω : Set X} (hΩ : MeasurableSet Ω) + {f g w : SobolevSpace μ hQ} + (hfg : SobolevSpace.toLp μ hQ f =ᵐ[μ.restrict Ω] SobolevSpace.toLp μ hQ g) + (v : X → ℝ) (hw : SobolevSpace.toLp μ hQ w =ᵐ[μ] v) (hs : tsupport v ⊆ Ω) : + energyForm μ hQ f w = energyForm μ hQ g w := by + rw [← integral_localGamma_eq_energyForm, ← integral_localGamma_eq_energyForm] + have hfg' := (ae_restrict_iff' hΩ).mp hfg + apply integral_congr_ae + filter_upwards [hfg', hw, localGamma_eq_on_eq μ hQ f g w, + localGamma_comm μ hQ f w, localGamma_comm μ hQ g w, + localGamma_zero_on_level μ hQ w f 0, localGamma_zero_on_level μ hQ w g 0] + with x hx hwx hlocal hcf hcg hzf hzg + by_cases hmem : x ∈ Ω + · exact hlocal (hx hmem) + · have hv : v x = 0 := image_eq_zero_of_notMem_tsupport (fun hm => hmem (hs hm)) + rw [hcf, hcg, hzf (hwx.trans hv), hzg (hwx.trans hv)] + +end RegularPointCoordinates + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/SupportedGammaIntegral.lean b/lean/OAI/Geometry/RCD/Sobolev/SupportedGammaIntegral.lean new file mode 100644 index 0000000000000000000000000000000000000000..c0fb740d902b531911cfb96ff00d575955d10a23 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/SupportedGammaIntegral.lean @@ -0,0 +1,25 @@ +import OAI.Geometry.RCD.Sobolev.SobolevQuadraticEnergy + +namespace OAI + +/-! # Restricting a mixed energy to the support of its test -/ + +open Set Filter MeasureTheory +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem supported_gamma_integral (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + (f g : SobolevSpace μ hQ) (A : Set X) + (hg : ∀ᵐ x ∂μ, x∉A → SobolevSpace.toLp μ hQ g x=0) : + (∫ x in A, localGamma μ hQ f g x ∂μ)=∫ x, localGamma μ hQ f g x ∂μ := by + apply setIntegral_eq_integral_of_ae_compl_eq_zero + filter_upwards [hg,localGamma_zero_on_level μ hQ g f 0,localGamma_comm μ hQ f g] + with x hx hz hc hnot + rw [hc,hz (hx hnot)] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/SupportedGradientL2Error.lean b/lean/OAI/Geometry/RCD/Sobolev/SupportedGradientL2Error.lean new file mode 100644 index 0000000000000000000000000000000000000000..2821e6adb60cb14af3f528096b4187f4cb00be2d --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/SupportedGradientL2Error.lean @@ -0,0 +1,63 @@ +import OAI.Geometry.RCD.Sobolev.ContainingMassCutoffErrors + +namespace OAI + +/-! # L2 value errors against the gradients of compact recoveries + +The inner support and the outer normalization are kept separate. The +second factor needs a gradient bound only on the inner region. +-/ + +open Set Filter MeasureTheory +open scoped Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem supported_gradient_l2_error (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + (Ω U : ℕ → Set X) [∀ k, IsFiniteMeasure (μ.restrict (U k))] + (hsub : ∀ k, Ω k⊆U k) (hmass : ∀ k, 0<μ.real (U k)) + (r : ℕ → ℝ) (hr : ∀ k, 0≤r k) + (f g : ℕ → SobolevSpace μ hQ) (z : ℕ → X → ℝ) + {M L : ℝ} (hM : 0≤M) (hL : 0≤L) + (hf : ∀ᶠ k in atTop, ∀ᵐ x ∂μ.restrict (Ω k), r k^2*localGamma μ hQ (f k) (f k) x≤M^2) + (hg : ∀ᶠ k in atTop, ∀ᵐ x ∂μ.restrict (Ω k), r k^2*localGamma μ hQ (g k) (g k) x≤L^2) + (hfzero : ∀ k, ∀ᵐ x ∂μ, x∉Ω k → SobolevSpace.toLp μ hQ (f k) x=0) + (hz : ∀ k, MemLp (z k) 2 (μ.restrict (U k))) + (hlim : Tendsto (fun k => (μ.real (U k))⁻¹*∫ x in U k, (z k x)^2 ∂μ) atTop (𝓝 0)) : + Tendsto (fun k => r k^2*(μ.real (U k))⁻¹* + ∫ x in U k, z k x*localGamma μ hQ (f k) (g k) x ∂μ) atTop (𝓝 0) := by + let : ∀ k, IsFiniteMeasure (μ.restrict (Ω k)) := fun k => + ⟨(lt_of_le_of_lt (Measure.restrict_mono (hsub k) le_rfl univ) + (measure_lt_top (μ.restrict (U k)) univ))⟩ + have hmass_le (k : ℕ) : μ.real (Ω k)≤μ.real (U k) := + ENNReal.toReal_mono (by + simpa only [Measure.restrict_apply_univ] using (measure_lt_top (μ.restrict (U k)) univ).ne) + (measure_mono (hsub k)) + have hinner : Tendsto (fun k => (μ.real (U k))⁻¹*∫ x in Ω k, (z k x)^2 ∂μ) + atTop (𝓝 0) := by + apply squeeze_zero (fun k => mul_nonneg (inv_nonneg.mpr (hmass k).le) + (integral_nonneg fun _ => sq_nonneg _)) _ hlim + intro k + apply mul_le_mul_of_nonneg_left _ (inv_nonneg.mpr (hmass k).le) + exact setIntegral_mono_set (hz k).integrable_sq + (Eventually.of_forall fun x => sq_nonneg _) (Eventually.of_forall (hsub k)) + have he := containing_mass_gamma_l2_error_tendsto μ hQ Ω (fun k => μ.real (U k)) + hmass hmass_le r hr f g z (fun _ _ => 1) hM hL zero_le_one hf hg + (Eventually.of_forall fun _ => Eventually.of_forall fun _ => by norm_num) + (fun k => (hz k).mono_measure (Measure.restrict_mono (hsub k) le_rfl)) + (fun _ => aestronglyMeasurable_const) hinner + have hint (k : ℕ) : (∫ x in U k, z k x*localGamma μ hQ (f k) (g k) x ∂μ)= + ∫ x in Ω k, z k x*localGamma μ hQ (f k) (g k) x ∂μ := by + have hzero : ∀ᵐ x ∂μ, x∉Ω k → z k x*localGamma μ hQ (f k) (g k) x=0 := by + filter_upwards [hfzero k,localGamma_zero_on_level μ hQ (f k) (g k) 0] with x hx hgx hn + rw [hgx (hx hn),mul_zero] + rw [setIntegral_eq_integral_of_ae_compl_eq_zero (hzero.mono fun x hx hxu => + hx (fun hxo => hxu (hsub k hxo))),setIntegral_eq_integral_of_ae_compl_eq_zero hzero] + simpa only [one_mul,hint] using he + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/SupportedWeakSourceBound.lean b/lean/OAI/Geometry/RCD/Sobolev/SupportedWeakSourceBound.lean new file mode 100644 index 0000000000000000000000000000000000000000..4dd55632976a6260faf13e15b6731a260246089d --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/SupportedWeakSourceBound.lean @@ -0,0 +1,58 @@ +import OAI.Geometry.RCD.Sobolev.WeakSourceGradientBound + +namespace OAI + +/-! # Compactly supported tests for the vanishing viscosity term -/ + +open Set Filter MeasureTheory +open scoped Topology ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) (Q : QuadraticCheegerEnergy μ) + +theorem supported_test_slope_integrable (φ : SobolevSpace μ Q) + {Ω : Set X} (hμΩ : μ Ω ≠ ∞) + (hs : ∀ᵐ x ∂μ, x ∉ Ω → SobolevSpace.toLp μ Q φ x = 0) : + Integrable (SobolevSpace.minimalSlope μ Q φ) μ := by + have hi := lp_integrableOn_of_finite μ (SobolevSpace.minimalSlope μ Q φ) Ω hμΩ + apply hi.integrable_of_ae_notMem_eq_zero + filter_upwards [hs,SobolevSpace.minimalSlope_zero_on_zero μ Q φ] with x hx hz + exact fun h => hz (hx h) + +theorem supported_weak_source_test_bound (w φ : SobolevSpace μ Q) + (q : Lp ℝ 2 μ) (hq : IsWeakLaplacian μ Q w q) + {Ω : Set X} (hΩ : MeasurableSet Ω) (hμΩ : μ Ω ≠ ∞) + (hs : ∀ᵐ x ∂μ, x ∉ Ω → SobolevSpace.toLp μ Q φ x = 0) + {L : ℝ} (hgrad : ∀ᵐ x ∂μ.restrict Ω, SobolevSpace.minimalSlope μ Q w x ≤ L) : + |inner ℝ q (SobolevSpace.toLp μ Q φ)| ≤ L * ∫ x, SobolevSpace.minimalSlope μ Q φ x ∂μ := by + apply weak_source_test_gradient_bound μ Q w φ q hq _ (supported_test_slope_integrable μ Q φ hμΩ hs) + filter_upwards [(ae_restrict_iff' hΩ).mp hgrad,hs] with x hx hz + intro hφ + apply hx + by_contra hnot + exact hφ (hz hnot) + +theorem supported_weak_source_vanishes + (w : ℕ → SobolevSpace μ Q) (q : ℕ → Lp ℝ 2 μ) + (hq : ∀ k, IsWeakLaplacian μ Q (w k) (q k)) (φ : SobolevSpace μ Q) + {Ω : Set X} (hΩ : MeasurableSet Ω) (hμΩ : μ Ω ≠ ∞) + (hs : ∀ᵐ x ∂μ, x ∉ Ω → SobolevSpace.toLp μ Q φ x = 0) + {L : ℝ} (hgrad : ∀ k, ∀ᵐ x ∂μ.restrict Ω, SobolevSpace.minimalSlope μ Q (w k) x ≤ L) + (ε : ℕ → ℝ) (hε : Tendsto ε atTop (𝓝 0)) : + Tendsto (fun k => ε k * inner ℝ (q k) (SobolevSpace.toLp μ Q φ)) atTop (𝓝 0) := by + let C := L * ∫ x, SobolevSpace.minimalSlope μ Q φ x ∂μ + have hb (k : ℕ) : ‖ε k * inner ℝ (q k) (SobolevSpace.toLp μ Q φ)‖ ≤ |ε k| * C := by + rw [Real.norm_eq_abs,abs_mul] + exact mul_le_mul_of_nonneg_left + (supported_weak_source_test_bound μ Q (w k) φ (q k) (hq k) hΩ hμΩ hs (hgrad k)) (abs_nonneg _) + have hh := hε.abs.mul_const C + simp only [abs_zero,zero_mul] at hh + apply tendsto_zero_iff_norm_tendsto_zero.mpr + exact squeeze_zero (fun k => norm_nonneg _) hb hh + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/SupportedWeightedGamma.lean b/lean/OAI/Geometry/RCD/Sobolev/SupportedWeightedGamma.lean new file mode 100644 index 0000000000000000000000000000000000000000..5f5719a506dc5aa554c770fff9da63255dd73e17 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/SupportedWeightedGamma.lean @@ -0,0 +1,28 @@ +import OAI.Geometry.RCD.Sobolev.SupportedGammaIntegral + +namespace OAI + +/-! # A weighted mixed density is supported where either weak gradient is -/ + +open Set Filter MeasureTheory +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem supported_weighted_gamma (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + (f g : SobolevSpace μ hQ) (F : X → ℝ) {A U : Set X} (hAU : A⊆U) + (hf : ∀ᵐ x ∂μ, x∉A → SobolevSpace.toLp μ hQ f x=0) : + (∫ x in U, F x*localGamma μ hQ f g x ∂μ)= + ∫ x in A, F x*localGamma μ hQ f g x ∂μ := by + have hz : ∀ᵐ x ∂μ, x∉A → F x*localGamma μ hQ f g x=0 := by + filter_upwards [hf,localGamma_zero_on_level μ hQ f g 0] with x hx hγ hn + rw [hγ (hx hn),mul_zero] + rw [setIntegral_eq_integral_of_ae_compl_eq_zero + (hz.mono fun x hx hn => hx (fun hy => hn (hAU hy))), + setIntegral_eq_integral_of_ae_compl_eq_zero hz] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/SymmetricGammaForm.lean b/lean/OAI/Geometry/RCD/Sobolev/SymmetricGammaForm.lean new file mode 100644 index 0000000000000000000000000000000000000000..2cf2a3a6c1954ed2b2498a926070787731bd87b7 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/SymmetricGammaForm.lean @@ -0,0 +1,45 @@ +import OAI.Geometry.RCD.Coordinates.GammaCoordinateForm + +namespace OAI + +/-! # A pointwise symmetric Gram form for a finite Sobolev family -/ + +open Filter MeasureTheory + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) {m : ℕ} + +def symmetricGammaForm (U : Euclidean m →L[ℝ] SobolevSpace μ hQ) (x : X) : + Euclidean m →ₗ[ℝ] Euclidean m →ₗ[ℝ] ℝ := + (1/2:ℝ) • (gammaCoordinateForm μ hQ U U x+(gammaCoordinateForm μ hQ U U x).flip) + +omit [ProperSpace X] in +theorem symmetricGammaForm_symmetric (U : Euclidean m →L[ℝ] SobolevSpace μ hQ) + (x : X) (a b : Euclidean m) : symmetricGammaForm μ hQ U x a b=symmetricGammaForm μ hQ U x b a := by + change (1/2:ℝ)*(gammaCoordinateForm μ hQ U U x a b+gammaCoordinateForm μ hQ U U x b a)= + (1/2:ℝ)*(gammaCoordinateForm μ hQ U U x b a+gammaCoordinateForm μ hQ U U x a b) + ring + +theorem symmetricGammaForm_rep (U : Euclidean m →L[ℝ] SobolevSpace μ hQ) (a b : Euclidean m) : + localGamma μ hQ (U a) (U b) =ᵐ[μ] fun x => symmetricGammaForm μ hQ U x a b := by + filter_upwards [gammaCoordinateForm_rep μ hQ U U a b,gammaCoordinateForm_rep μ hQ U U b a, + localGamma_comm μ hQ (U b) (U a)] with x ha hb hc + change localGamma μ hQ (U a) (U b) x= + (1/2:ℝ)*(gammaCoordinateForm μ hQ U U x a b+gammaCoordinateForm μ hQ U U x b a) + rw [← ha,← hb,hc] + ring + +theorem symmetricGammaForm_nonneg (U : Euclidean m →L[ℝ] SobolevSpace μ hQ) (a : Euclidean m) : + ∀ᵐ x ∂μ, 0 ≤ symmetricGammaForm μ hQ U x a a := by + filter_upwards [symmetricGammaForm_rep μ hQ U a a,localGamma_self μ hQ (U a)] with x he hs + rw [← he,hs] + positivity + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/TightL2Difference.lean b/lean/OAI/Geometry/RCD/Sobolev/TightL2Difference.lean new file mode 100644 index 0000000000000000000000000000000000000000..df1bbd5d360632dbc15770821ff250d6c48f96cc --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/TightL2Difference.lean @@ -0,0 +1,57 @@ +import OAI.Geometry.RCD.Sobolev.BoundedL2Difference + +namespace OAI + +/-! # L² difference from a local bound and two square-integrable tails -/ + +open Set Filter MeasureTheory +open scoped NNReal ENNReal Topology + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MeasurableSpace X] (μ : Measure X) + +theorem tight_L2_norm_sub_sq_le (f g : Lp ℝ 2 μ) + (hfi : Integrable f μ) (hgi : Integrable g μ) {S : Set X} (hS : MeasurableSet S) + {C : ℝ} (hC : 0 ≤ C) + (hf : ∀ᵐ x ∂μ.restrict S, |f x| ≤ C) (hg : ∀ᵐ x ∂μ.restrict S, |g x| ≤ C) : + ‖f-g‖^2 ≤ 2*C*(∫ x, |f x-g x| ∂μ)+ + 2*(∫ x in Sᶜ, (f x)^2 ∂μ)+2*(∫ x in Sᶜ, (g x)^2 ∂μ) := by + have he := Lp.coeFn_sub f g + have hi : Integrable (fun x => (f x-g x)^2) μ := + (Lp.memLp (f-g)).integrable_sq.congr (he.fun_comp fun a : ℝ => a^2) + have hab : Integrable (fun x => |f x-g x|) μ := (hfi.sub hgi).abs + have hlocal : (∫ x in S, (f x-g x)^2 ∂μ) ≤ 2*C*(∫ x, |f x-g x| ∂μ) := by + calc + _ ≤ ∫ x in S, (2*C)*|f x-g x| ∂μ := by + apply integral_mono_ae hi.integrableOn (hab.const_mul (2*C)).integrableOn + filter_upwards [hf,hg] with x hx hy + have hh := (abs_sub (f x) (g x)).trans (add_le_add hx hy) + nlinarith [sq_abs (f x-g x),abs_nonneg (f x-g x)] + _ = 2*C*(∫ x in S, |f x-g x| ∂μ) := integral_const_mul _ _ + _ ≤ _ := mul_le_mul_of_nonneg_left + (setIntegral_le_integral hab (Eventually.of_forall fun x => abs_nonneg _)) (by positivity) + have htail : (∫ x in Sᶜ, (f x-g x)^2 ∂μ) ≤ + 2*(∫ x in Sᶜ, (f x)^2 ∂μ)+2*(∫ x in Sᶜ, (g x)^2 ∂μ) := by + calc + _ ≤ ∫ x in Sᶜ, 2*(f x)^2+2*(g x)^2 ∂μ := by + apply integral_mono hi.integrableOn + (((Lp.memLp f).integrable_sq.const_mul 2).add ((Lp.memLp g).integrable_sq.const_mul 2)).integrableOn + intro x + change (f x-g x)^2 ≤ 2*(f x)^2+2*(g x)^2 + nlinarith [sq_nonneg (f x+g x)] + _ = _ := by + rw [integral_add ((Lp.memLp f).integrable_sq.const_mul 2).integrableOn + ((Lp.memLp g).integrable_sq.const_mul 2).integrableOn,integral_const_mul,integral_const_mul] + have hnorm : ‖f-g‖^2 = ∫ x, (f x-g x)^2 ∂μ := by + rw [← integral_sq_Lp μ (f-g)] + exact integral_congr_ae (he.fun_comp fun a : ℝ => a^2) + rw [hnorm,← integral_add_compl hS hi] + linarith + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/TimeEnergyIntervalBound.lean b/lean/OAI/Geometry/RCD/Sobolev/TimeEnergyIntervalBound.lean new file mode 100644 index 0000000000000000000000000000000000000000..f7acd7f8b91a670f6fca731595461a07fa902c75 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/TimeEnergyIntervalBound.lean @@ -0,0 +1,76 @@ +import OAI.Geometry.RCD.Sobolev.SmoothTimeTestOrder +import OAI.Geometry.RCD.Heat.LipschitzTimePairing + +namespace OAI + +/-! # From smooth time tests to the energy bound on an interior interval -/ + +open Set Filter MeasureTheory Metric +open scoped Topology ContDiff NNReal +noncomputable section +namespace RegularPointCoordinates + +theorem time_energy_interval_bound + {a b c r : ℝ} (hr : 0 < r) (ha : a < c-r) (hb : c+r < b) + (P E : ℝ → ℝ) {L : ℝ≥0} (hP : LipschitzOnWith L P (Ioo a b)) + (hE : IntegrableOn E (Ioo a b)) + (htest : ∀ θ : ℝ → ℝ, ContDiff ℝ ∞ θ → HasCompactSupport θ → + tsupport θ ⊆ Ioo a b → (∀ t, 0 ≤ θ t) → + (∫ t in Ioo a b, θ t*E t) ≤ 2*(∫ t in Ioo a b, θ t*deriv P t)) : + (∫ t in closedBall c r, E t) ≤ 2*(P (c+r)-P (c-r)) := by + obtain ⟨V,hV,he⟩ := hP.extend_real + have hsub : closedBall c r ⊆ Ioo a b := by + intro t ht + have hh := abs_le.mp (show |t-c| ≤ r from by simpa only [mem_closedBall,Real.dist_eq] using ht) + exact ⟨by linarith,by linarith⟩ + have hd (t : ℝ) (ht : t ∈ Ioo a b) : deriv V t = deriv P t := by + apply Filter.EventuallyEq.deriv_eq + filter_upwards [isOpen_Ioo.mem_nhds ht] with s hs + exact (he hs).symm + have hAC : AbsolutelyContinuousOnInterval V a b := hV.lipschitzOnWith.absolutelyContinuousOnInterval + have hiD : IntegrableOn (deriv P) (Ioo a b) := + (hAC.intervalIntegrable_deriv.1.mono_set Ioo_subset_Ioc_self).congr + (by filter_upwards [ae_restrict_mem measurableSet_Ioo] with t ht; exact hd t ht) + have hiF : IntegrableOn (fun t => 2*deriv P t-E t) (Ioo a b) := (hiD.const_mul 2).sub hE + have hpositive : 0 ≤ ∫ t in closedBall c r, 2*deriv P t-E t := by + apply integral_closedBall_nonneg_of_smooth_tests hr ha hb _ hiF + intro θ hθ hθc hθs hθ0 + obtain ⟨B,hB⟩ := hθc.exists_bound_of_continuous hθ.continuous + have hiDE : IntegrableOn (fun t => θ t*deriv P t) (Ioo a b) := + hiD.bdd_mul hθ.continuous.aestronglyMeasurable (Eventually.of_forall hB) + have hiEE : IntegrableOn (fun t => θ t*E t) (Ioo a b) := + hE.bdd_mul hθ.continuous.aestronglyMeasurable (Eventually.of_forall hB) + have heI : (∫ t in Ioo a b, θ t*(2*deriv P t-E t)) = + 2*(∫ t in Ioo a b, θ t*deriv P t) - (∫ t in Ioo a b, θ t*E t) := by + calc + _ = ∫ t in Ioo a b, 2*(θ t*deriv P t)-θ t*E t := by + apply integral_congr_ae + exact Eventually.of_forall fun t => by ring + _ = _ := by + rw [integral_sub (hiDE.const_mul 2) hiEE,integral_const_mul] + rw [heI] + exact sub_nonneg.mpr (htest θ hθ hθc hθs hθ0) + have heF : (∫ t in closedBall c r, 2*deriv P t-E t) = + 2*(∫ t in closedBall c r, deriv P t) - (∫ t in closedBall c r, E t) := by + rw [integral_sub ((hiD.mono_set hsub).const_mul 2) (hE.mono_set hsub),integral_const_mul] + have hVI := (show AbsolutelyContinuousOnInterval V (c-r) (c+r) from + hV.lipschitzOnWith.absolutelyContinuousOnInterval).integral_deriv_eq_sub + rw [intervalIntegral.integral_of_le (by linarith),← integral_Icc_eq_integral_Ioc, + ← Real.closedBall_eq_Icc] at hVI + have heD : (∫ t in closedBall c r, deriv P t) = P (c+r)-P (c-r) := by + calc + _ = ∫ t in closedBall c r, deriv V t := by + apply setIntegral_congr_fun measurableSet_closedBall + intro t ht + exact (hd t (hsub ht)).symm + _ = _ := by + rw [hVI,← he (by constructor <;> linarith : c+r ∈ Ioo a b), + ← he (by constructor <;> linarith : c-r ∈ Ioo a b)] + rw [heF,heD] at hpositive + linarith + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/TimeEnvelopeLipschitz.lean b/lean/OAI/Geometry/RCD/Sobolev/TimeEnvelopeLipschitz.lean new file mode 100644 index 0000000000000000000000000000000000000000..0b2b01bb661986462f1fffec6f67bf97a54f8930 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/TimeEnvelopeLipschitz.lean @@ -0,0 +1,46 @@ +import OAI.Geometry.RCD.Heat.TimeLowerEnvelope +import Mathlib.Topology.MetricSpace.Lipschitz + +namespace OAI + +/-! # Spatial Lipschitz continuity of the monotone time envelope -/ + +open Set Filter +open scoped NNReal Topology +noncomputable section +namespace RegularPointCoordinates +variable {Y : Type*} [MetricSpace Y] + +theorem timeLowerEnvelope_lipschitz {M : ℝ} (hM : 0 ≤ M) + (s : ℕ → ℝ) (v : ℕ → Y → ℝ) (L : ℝ≥0) + (hv : ∀ i x, |v i x| ≤ M) (hL : ∀ i, LipschitzWith L (v i)) (t : ℝ) : + LipschitzWith L (fun x => timeLowerEnvelope M s (fun i => v i x) t) := by + have hbound (x y : Y) : + timeLowerEnvelope M s (fun i => v i x) t ≤ + timeLowerEnvelope M s (fun i => v i y) t+(L:ℝ)*dist x y := by + apply csSup_le (show ({-M} ∪ {a | ∃ i, s i < t ∧ a = v i x}).Nonempty from + ⟨-M,Or.inl (mem_singleton _)⟩) + rintro a (ha | ⟨i,hi,rfl⟩) + · have hy := (abs_le.mp (timeLowerEnvelope_bounds hM s (fun i => v i y) + (fun i => hv i y) t)).1 + have hp : 0 ≤ (L:ℝ)*dist x y := mul_nonneg L.coe_nonneg dist_nonneg + simp only [mem_singleton_iff] at ha + linarith + · have hiY := sample_le_timeLowerEnvelope hM s (fun i => v i y) (fun i => hv i y) hi + have hxy := (hL i).dist_le_mul x y + rw [Real.dist_eq] at hxy + linarith [le_abs_self (v i x-v i y)] + apply LipschitzWith.of_dist_le_mul + intro x y + rw [Real.dist_eq] + apply abs_le.mpr + have hxy := hbound x y + have hyx := hbound y x + rw [dist_comm y x] at hyx + constructor <;> linarith + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/TimeUniformMean.lean b/lean/OAI/Geometry/RCD/Sobolev/TimeUniformMean.lean new file mode 100644 index 0000000000000000000000000000000000000000..a8880922bcbf4aaa3b436b1520d63d8e1fb63a15 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/TimeUniformMean.lean @@ -0,0 +1,65 @@ +import OAI.Geometry.RCD.Sobolev.ContinuousPathMean +import Mathlib.Topology.ContinuousMap.Compact + +namespace OAI + +/-! # A finite time grid upgrades pointwise mean errors to uniform path errors -/ + +open Set Filter MeasureTheory Metric +open scoped Topology NNReal +noncomputable section +namespace RegularPointCoordinates + +theorem finite_time_norm_control {δ : ℝ} (hδ : 0 < δ) : + ∃ d : Finset Time, ∀ (f : C(Time,ℝ)) (L : ℝ≥0), LipschitzWith L f → + ‖f‖ ≤ (L:ℝ)*δ+∑ t ∈ d, |f t| := by + obtain ⟨d,_hd,hfin,hcover⟩ := (isCompact_univ : IsCompact (univ : Set Time)).finite_cover_balls hδ + refine ⟨hfin.toFinset,?_⟩ + intro f L hL + apply (ContinuousMap.norm_le _ (by positivity)).mpr + intro t + obtain ⟨z,hz,htz⟩ := mem_iUnion₂.mp (hcover (mem_univ t)) + have hsum : |f z| ≤ ∑ y ∈ hfin.toFinset, |f y| := + Finset.single_le_sum (fun y _ => abs_nonneg (f y)) (hfin.mem_toFinset.mpr hz) + have hdist := hL.dist_le_mul t z + have htri := dist_triangle (f t) (f z) 0 + rw [dist_zero_right,dist_zero_right] at htri + have hnear : dist t z < δ := htz + calc + ‖f t‖ ≤ dist (f t) (f z)+‖f z‖ := htri + _ ≤ (L:ℝ)*δ+∑ y ∈ hfin.toFinset, |f y| := + add_le_add (hdist.trans (mul_le_mul_of_nonneg_left hnear.le L.coe_nonneg)) hsum + +theorem time_uniform_mean_limit {A : Type*} [MeasurableSpace A] + (μ : ℕ → Measure A) [∀ k, IsProbabilityMeasure (μ k)] + (F : ℕ → A → C(Time,ℝ)) (M : ℝ≥0) + (hI : ∀ k, Integrable (fun a => ‖F k a‖) (μ k)) + (hEval : ∀ k t, Integrable (fun a => F k a t) (μ k)) + (hLip : ∀ k, ∀ᵐ a ∂μ k, LipschitzWith M (F k a)) + (hpt : ∀ t : Time, Tendsto (fun k => ∫ a, |F k a t| ∂μ k) atTop (𝓝 0)) : + Tendsto (fun k => ∫ a, ‖F k a‖ ∂μ k) atTop (𝓝 0) := by + apply Metric.tendsto_nhds.mpr + intro e he + let δ := e/(2*((M:ℝ)+1)) + have hδ : 0 < δ := div_pos he (by positivity) + have hδe : (M:ℝ)*δ < e/2 := by + have hh : δ*(2*((M:ℝ)+1))=e := div_mul_cancel₀ e (by positivity) + nlinarith [M.coe_nonneg] + obtain ⟨d,hd⟩ := finite_time_norm_control hδ + have hsum : Tendsto (fun k => ∑ t ∈ d, ∫ a, |F k a t| ∂μ k) atTop (𝓝 0) := by + simpa only [Finset.sum_const_zero] using tendsto_finsetSum d (fun t _ => hpt t) + filter_upwards [(tendsto_order.mp hsum).2 (e/2) (half_pos he)] with k hk + have hi : Integrable (fun a => (M:ℝ)*δ+∑ t ∈ d, |F k a t|) (μ k) := + (integrable_const _).add (integrable_finsetSum _ fun t _ => (hEval k t).abs) + have hb := integral_mono_ae (hI k) hi ((hLip k).mono fun a ha => hd (F k a) M ha) + rw [integral_add (integrable_const _) (integrable_finsetSum _ fun t _ => (hEval k t).abs), + integral_const,smul_eq_mul,probReal_univ,one_mul, + integral_finsetSum _ (fun t _ => (hEval k t).abs)] at hb + rw [Real.dist_eq,sub_zero,abs_of_nonneg (integral_nonneg fun a => norm_nonneg (F k a))] + linarith + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/TorsionBound.lean b/lean/OAI/Geometry/RCD/Sobolev/TorsionBound.lean new file mode 100644 index 0000000000000000000000000000000000000000..11f987b5254910616d57d4009a792bcd1492a4f7 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/TorsionBound.lean @@ -0,0 +1,70 @@ +import OAI.Geometry.RCD.Sobolev.TorsionSuperlevel +import OAI.Geometry.RCD.Sobolev.StampacchiaBound + +namespace OAI + +/-! +# Uniform height of the Dirichlet torsion solution + +The constant is chosen before the domain and the solution. Only the +Dirichlet Sobolev constant, its exponent, and an upper volume bound enter. +-/ + +open Set MeasureTheory Filter +open scoped ENNReal + +noncomputable section + +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +/-- A uniform torsion bound from the displayed Dirichlet Sobolev inequality. -/ +theorem exists_uniform_torsion_bound {d C V : ℝ} (hd : 1 < d) + (hC : 0 ≤ C) (hV : 0 ≤ V) : + ∃ K : ℝ, 0 < K ∧ ∀ (Ω : Set X), μ Ω ≠ ∞ → μ.real Ω ≤ V → + ∀ u : SobolevSpace.dirichlet μ hQ Ω, + (∀ φ : SobolevSpace.dirichlet μ hQ Ω, + energyForm μ hQ u.val φ.val = ∫ x in Ω, SobolevSpace.toLp μ hQ φ.val x ∂μ) → + (∀ φ : SobolevSpace.dirichlet μ hQ Ω, + (∫ x in Ω, |SobolevSpace.toLp μ hQ φ.val x| ^ (2 * d) ∂μ) ^ (1 / d) ≤ + C * energyForm μ hQ φ.val φ.val) → + ∀ᵐ x ∂μ.restrict Ω, SobolevSpace.toLp μ hQ u.val x ≤ K := by + obtain ⟨K, hK, hExt⟩ := exists_extinction_level (R := C ^ (2 * d)) (M := V + 1) + (p := 2 * d) (Real.rpow_nonneg hC _) (by linarith) (by linarith) + refine ⟨K, hK, ?_⟩ + intro Ω hΩfin hvol u hsolve hsob + let ν := μ.restrict Ω + let : IsFiniteMeasure ν := ⟨by simpa only [ν, Measure.restrict_apply_univ] using hΩfin.lt_top⟩ + let U := fun x => SobolevSpace.toLp μ hQ u.val x + let Y := fun t : ℝ => ν.real {x | t < U x} + have hY (t : ℝ) : 0 ≤ Y t := measureReal_nonneg + have hY0 : Y 0 ≤ V + 1 := by + have hm : Y 0 ≤ ν.real univ := measureReal_mono (subset_univ _) (measure_ne_top _ _) + have hv : ν.real univ = μ.real Ω := by simp only [ν, measureReal_restrict_apply_univ] + rw [hv] at hm + linarith + have hmono (k l : ℝ) (_hk : 0 ≤ k) (hkl : k ≤ l) : Y l ≤ Y k := by + apply measureReal_mono _ (measure_ne_top _ _) + intro x hx + exact hkl.trans_lt hx + have hstep (k l : ℝ) (hk : 0 ≤ k) (hkl : k < l) : + Y l ≤ C ^ (2 * d) * Y k ^ (2 * d - 1) / (l - k) ^ (2 * d) := by + have hm : Y l ≤ ν.real {x | l ≤ U x} := by + apply measureReal_mono _ (measure_ne_top _ _) + intro x hx + exact (show l < U x from hx).le + exact hm.trans (torsion_superlevel_le μ hQ Ω hΩfin u hsolve hd hC hsob hk hkl) + have hz : Y K = 0 := hExt Y (fun t _ => hY t) hY0 hmono hstep + have hz' : ν {x | K < U x} = 0 := by + have hfin := measure_ne_top ν {x | K < U x} + exact (ENNReal.toReal_eq_zero_iff _).mp hz |>.resolve_right hfin + apply ae_iff.mpr + simpa only [not_le] using hz' + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/TorsionMoment.lean b/lean/OAI/Geometry/RCD/Sobolev/TorsionMoment.lean new file mode 100644 index 0000000000000000000000000000000000000000..aa8dafa5ff3f00306ba4def19c570e646a2517a5 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/TorsionMoment.lean @@ -0,0 +1,88 @@ +import OAI.Geometry.RCD.Sobolev.LevelTruncation +import Mathlib.MeasureTheory.Integral.MeanInequalities + +namespace OAI + +/-! +# Moment estimates for the torsion superlevel test + +Hölder is applied to a bounded two-level truncation and the indicator of its +support. The resulting algebraic estimate is the nonlinear gain needed by +the superlevel iteration. +-/ + +open Set MeasureTheory Filter +open scoped ENNReal + +noncomputable section + +namespace RegularPointCoordinates + +/-- Hölder for a bounded nonnegative function supported on a measurable set. -/ +theorem bounded_support_integral_le {X : Type*} [MeasurableSpace X] + (ν : Measure X) [IsFiniteMeasure ν] {v : X → ℝ} (hv : AEMeasurable v ν) + {M p q : ℝ} (hpq : p.HolderConjugate q) + (hb : ∀ᵐ x ∂ν, 0 ≤ v x ∧ v x ≤ M) + (S : Set X) (hS : MeasurableSet S) (hz : ∀ᵐ x ∂ν, x ∉ S → v x = 0) : + (∫ x, v x ∂ν) ≤ (∫ x, v x ^ p ∂ν) ^ (1 / p) * (ν.real S) ^ (1 / q) := by + let g : X → ℝ := S.indicator (fun _ => 1) + have hm : MemLp v (ENNReal.ofReal p) ν := MemLp.of_bound hv.aestronglyMeasurable M + (hb.mono fun x hx => by simpa only [Real.norm_eq_abs, abs_of_nonneg hx.1] using hx.2) + have hgm : Measurable g := measurable_const.indicator hS + have hg0 : ∀ x, 0 ≤ g x := fun x => by + by_cases hx : x ∈ S <;> simp [g, hx] + have hgb : ∀ x, ‖g x‖ ≤ 1 := fun x => by + by_cases hx : x ∈ S <;> simp [g, hx] + have hgmLp : MemLp g (ENNReal.ofReal q) ν := + MemLp.of_bound hgm.aestronglyMeasurable 1 (Eventually.of_forall hgb) + have hmul : (fun x => v x * g x) =ᵐ[ν] v := by + filter_upwards [hz] with x hx + by_cases hm : x ∈ S + · simp [g, hm] + · simp [g, hm, hx hm] + have hgpow : (fun x => g x ^ q) = g := by + funext x + by_cases hx : x ∈ S + · simp [g, hx] + · simp [g, hx, Real.zero_rpow hpq.symm.pos.ne'] + have hgi : (∫ x, g x ^ q ∂ν) = ν.real S := by + rw [hgpow] + simp only [g, integral_indicator hS, setIntegral_const, smul_eq_mul, mul_one] + have hh := integral_mul_le_Lp_mul_Lq_of_nonneg hpq (hb.mono fun _ hx => hx.1) + (Eventually.of_forall hg0) hm hgmLp + rw [integral_congr_ae hmul, hgi] at hh + exact hh + +/-- The scalar gain after combining Sobolev with the supported Hölder bound. -/ +theorem moment_le_of_sobolev_holder {I C Y p : ℝ} + (hI : 0 ≤ I) (hC : 0 ≤ C) (hY : 0 ≤ Y) (hp : 1 < p) + (hbound : I ^ (2 / p) ≤ C * (I ^ (1 / p) * Y ^ ((p - 1) / p))) : + I ≤ C ^ p * Y ^ (p - 1) := by + let Z := I ^ (1 / p) + have hZ : 0 ≤ Z := Real.rpow_nonneg hI _ + have hZsq : Z ^ 2 = I ^ (2 / p) := by + dsimp [Z] + rw [← Real.rpow_natCast, ← Real.rpow_mul hI] + congr 1 + ring + have hZi : Z ^ p = I := by + dsimp [Z] + rw [← Real.rpow_mul hI] + simp only [one_div, inv_mul_cancel₀ (by linarith : p ≠ 0), Real.rpow_one] + have hzle : Z ≤ C * Y ^ ((p - 1) / p) := by + have hh : Z ^ 2 ≤ C * (Z * Y ^ ((p - 1) / p)) := hZsq ▸ hbound + by_cases hz : Z = 0 + · rw [hz] + exact mul_nonneg hC (Real.rpow_nonneg hY _) + · nlinarith [lt_of_le_of_ne hZ (Ne.symm hz)] + have hh := Real.rpow_le_rpow hZ hzle (by linarith : 0 ≤ p) + rw [hZi, Real.mul_rpow hC (Real.rpow_nonneg hY _), ← Real.rpow_mul hY] at hh + convert hh using 1 + congr 2 + field_simp + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/TorsionSuperlevel.lean b/lean/OAI/Geometry/RCD/Sobolev/TorsionSuperlevel.lean new file mode 100644 index 0000000000000000000000000000000000000000..de2bc847e2c66a31644464dc3f4644df022a599e --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/TorsionSuperlevel.lean @@ -0,0 +1,120 @@ +import OAI.Geometry.RCD.Sobolev.TorsionMoment + +namespace OAI + +/-! +# Nonlinear superlevel inequality for the Dirichlet torsion solution + +Bounded two-level tests, rather than a prior integrability assertion for an +unbounded power of the solution, justify each use of Sobolev and Hölder. +-/ + +open Set MeasureTheory Filter +open scoped ENNReal + +noncomputable section + +namespace RegularPointCoordinates + +/-- The bounded level moment controls the measure of the upper superlevel. -/ +theorem level_superlevel_measure_le {X : Type*} [MeasurableSpace X] + (ν : Measure X) [IsFiniteMeasure ν] {u : X → ℝ} (hu : Measurable u) + {k l p B : ℝ} (hkl : k < l) (hp : 0 < p) + (hbound : (∫ x, levelClip k l (u x) ^ p ∂ν) ≤ B) : + ν.real {x | l ≤ u x} ≤ B / (l - k) ^ p := by + let v := fun x => levelClip k l (u x) + have hv0 (x) : 0 ≤ v x := le_min (le_max_right _ _) (sub_nonneg.mpr hkl.le) + have hvm : Measurable v := (levelClip_lipschitz k l).continuous.measurable.comp hu + have hvi : Integrable (fun x => v x ^ p) ν := by + apply Integrable.of_bound (hvm.pow_const p).aestronglyMeasurable ((l - k) ^ p) + exact Eventually.of_forall fun x => by + rw [Real.norm_eq_abs, abs_of_nonneg (Real.rpow_nonneg (hv0 x) p)] + exact Real.rpow_le_rpow (hv0 x) (min_le_right _ _) hp.le + let S := {x | l ≤ u x} + have hS : MeasurableSet S := measurableSet_le measurable_const hu + have hlo : (l - k) ^ p * ν.real S ≤ ∫ x, v x ^ p ∂ν := by + have hb := integral_mono_ae ((integrable_const ((l - k) ^ p)).indicator hS) hvi + (Eventually.of_forall fun x => by + by_cases hx : x ∈ S + · rw [indicator_of_mem hx] + have hh : l ≤ u x := hx + simp only [v, levelClip, positiveClip, + max_eq_left (sub_nonneg.mpr (hkl.le.trans hh)), + min_eq_right (sub_le_sub_right hh k)] + exact le_rfl + · rw [indicator_of_notMem hx] + exact Real.rpow_nonneg (hv0 x) p) + simpa only [integral_indicator_const _ hS, smul_eq_mul, mul_comm] using hb + exact (le_div_iff₀ (Real.rpow_pos_of_pos (sub_pos.mpr hkl) p)).mpr + (by simpa only [mul_comm] using hlo.trans hbound) + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +/-- The superlinear measure recurrence underlying the torsion height bound. -/ +theorem torsion_superlevel_le (Ω : Set X) (hΩfin : μ Ω ≠ ∞) + (u : SobolevSpace.dirichlet μ hQ Ω) + (hsolve : ∀ φ : SobolevSpace.dirichlet μ hQ Ω, + energyForm μ hQ u.val φ.val = ∫ x in Ω, SobolevSpace.toLp μ hQ φ.val x ∂μ) + {d C : ℝ} (hd : 1 < d) (hC : 0 ≤ C) + (hsob : ∀ φ : SobolevSpace.dirichlet μ hQ Ω, + (∫ x in Ω, |SobolevSpace.toLp μ hQ φ.val x| ^ (2 * d) ∂μ) ^ (1 / d) ≤ + C * energyForm μ hQ φ.val φ.val) + {k l : ℝ} (hk : 0 ≤ k) (hkl : k < l) : + (μ.restrict Ω).real {x | l ≤ SobolevSpace.toLp μ hQ u.val x} ≤ + C ^ (2 * d) * + ((μ.restrict Ω).real {x | k < SobolevSpace.toLp μ hQ u.val x}) ^ (2 * d - 1) / + (l - k) ^ (2 * d) := by + let ν := μ.restrict Ω + let : IsFiniteMeasure ν := ⟨by simpa only [ν, Measure.restrict_apply_univ] using hΩfin.lt_top⟩ + let U := fun x => SobolevSpace.toLp μ hQ u.val x + let v := fun x => levelClip k l (U x) + let S := {x | k < U x} + let T := levelTruncation μ hQ u.val hk hkl.le + let φ : SobolevSpace.dirichlet μ hQ Ω := + ⟨T, levelTruncation_mem_dirichlet μ hQ Ω u hk hkl.le⟩ + have hU : Measurable U := (Lp.stronglyMeasurable _).measurable + have hS : MeasurableSet S := measurableSet_lt measurable_const hU + have hv : Measurable v := (levelClip_lipschitz k l).continuous.measurable.comp hU + have hv0 (x) : 0 ≤ v x := le_min (le_max_right _ _) (sub_nonneg.mpr hkl.le) + have hvb : ∀ᵐ x ∂ν, 0 ≤ v x ∧ v x ≤ l - k := + Eventually.of_forall fun x => ⟨hv0 x, min_le_right _ _⟩ + have hvz : ∀ᵐ x ∂ν, x ∉ S → v x = 0 := by + apply Eventually.of_forall + intro x hx + have hh : U x ≤ k := le_of_not_gt hx + simp only [v, levelClip, positiveClip, max_eq_right (sub_nonpos.mpr hh), + min_eq_left (sub_nonneg.mpr hkl.le)] + have hp : 1 < 2 * d := by linarith + have hpq : (2 * d).HolderConjugate (2 * d / (2 * d - 1)) := + (Real.holderConjugate_iff_eq_conjExponent hp).mpr rfl + have hholder := bounded_support_integral_le ν hv.aemeasurable hpq hvb S hS hvz + have hmoment : (∫ x, v x ^ (2 * d) ∂ν) ^ (2 / (2 * d)) ≤ + C * ((∫ x, v x ^ (2 * d) ∂ν) ^ (1 / (2 * d)) * (ν.real S) ^ ((2 * d - 1) / (2 * d))) := by + have he := torsion_level_energy μ hQ Ω u hsolve hk hkl.le + have hsob' := hsob φ + have hvrep := ae_restrict_of_ae (s := Ω) (levelTruncation_coe μ hQ u.val hk hkl.le) + have heq : (∫ x in Ω, |SobolevSpace.toLp μ hQ φ.val x| ^ (2 * d) ∂μ) = + ∫ x, v x ^ (2 * d) ∂ν := by + apply integral_congr_ae + filter_upwards [hvrep] with x hx + change |SobolevSpace.toLp μ hQ T x| ^ (2 * d) = v x ^ (2 * d) + rw [hx, abs_of_nonneg (hv0 x)] + rw [heq] at hsob' + change (∫ x, v x ^ (2 * d) ∂ν) ^ (1 / d) ≤ C * energyForm μ hQ T T at hsob' + rw [he] at hsob' + have hexp : 1 / (2 * d / (2 * d - 1)) = (2 * d - 1) / (2 * d) := by field_simp + rw [hexp] at hholder + have hexp' : 2 / (2 * d) = 1 / d := by field_simp + rw [hexp'] + exact hsob'.trans (mul_le_mul_of_nonneg_left hholder hC) + have hI0 : 0 ≤ ∫ x, v x ^ (2 * d) ∂ν := + integral_nonneg fun x => Real.rpow_nonneg (hv0 x) _ + have hmoment' := moment_le_of_sobolev_holder hI0 hC measureReal_nonneg hp hmoment + exact level_superlevel_measure_le ν hU hkl (by linarith) hmoment' + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/TranslatedMeanDerivative.lean b/lean/OAI/Geometry/RCD/Sobolev/TranslatedMeanDerivative.lean new file mode 100644 index 0000000000000000000000000000000000000000..81e0889b42ac4379901aa91c1f353670e713392f --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/TranslatedMeanDerivative.lean @@ -0,0 +1,85 @@ +import OAI.Geometry.RCD.Sobolev.DifferentiableMeanRemainder + +namespace OAI + +/-! # Directional derivatives recovered from translated shrinking probability laws -/ + +open Set Filter MeasureTheory Metric +open scoped Topology +noncomputable section +namespace RegularPointCoordinates + +theorem translated_mean_derivative {n : ℕ} {g : Euclidean n → ℝ} + (hg : Continuous g) {D : Euclidean n →L[ℝ] ℝ} {x : Euclidean n} + (hd : HasFDerivAt g D x) {A : ℝ} (hA : 0≤A) + (r : ℕ → ℝ) (hr : ∀ k, 0 ((∫ y, g y ∂((P k).map (fun y => y+r k • v) : Measure (Euclidean n)))- + (∫ y, g y ∂(P k : Measure (Euclidean n))))/r k) atTop (𝓝 (D v)) := by + let Q := fun k => (P k).map (fun y => y+r k • v) + have hmap (k : ℕ) : Measurable (fun y : Euclidean n => y+r k • v) := + measurable_id.add_const _ + have hQs (k : ℕ) : ∀ᵐ y ∂(Q k : Measure (Euclidean n)), dist y x≤(A+‖v‖)*r k := by + change ∀ᵐ y ∂(P k : Measure (Euclidean n)).map (fun y => y+r k • v), _ + apply (ae_map_iff (hmap k).aemeasurable measurableSet_closedBall).mpr + filter_upwards [hs k] with y hy + calc dist (y+r k • v) x ≤ dist (y+r k • v) y+dist y x := dist_triangle _ _ _ + _ ≤ r k*‖v‖+A*r k := by + have he : dist (y+r k • v) y=r k*‖v‖ := by + simp [dist_eq_norm,norm_smul,abs_of_pos (hr k)] + rw [he] + exact add_le_add_right hy _ + _ = (A+‖v‖)*r k := by ring + let F := fun y => g y-g x-D (y-x) + have hF : Continuous F := by dsimp only [F]; fun_prop + have hP := differentiable_mean_remainder hd hA r hr hrlim P hs + have hQ := differentiable_mean_remainder hd (add_nonneg hA (norm_nonneg v)) r hr hrlim Q hQs + have hlim := (hQ.sub hP).add_const (D v) + simp only [sub_self,zero_add] at hlim + have hi (k : ℕ) (f : Euclidean n → ℝ) (hf : Continuous f) : + Integrable f (P k : Measure (Euclidean n)) := by + have hh := hf.continuousOn.integrableOn_compact + (μ := (P k : Measure (Euclidean n))) (isCompact_closedBall x (A*r k)) + change Integrable f ((P k : Measure (Euclidean n)).restrict (closedBall x (A*r k))) at hh + rw [Measure.restrict_eq_self_of_ae_mem (s := closedBall x (A*r k)) (hs k)] at hh + exact hh + have hident (k : ℕ) : + ((∫ y, F y ∂(Q k : Measure (Euclidean n)))/r k- + (∫ y, F y ∂(P k : Measure (Euclidean n)))/r k)+D v= + ((∫ y, g y ∂(Q k : Measure (Euclidean n)))- + (∫ y, g y ∂(P k : Measure (Euclidean n))))/r k := by + have hc : Continuous (fun y => g (y+r k • v)-g y) := by fun_prop + have hiF : Integrable (fun y => F (y+r k • v)) (P k : Measure (Euclidean n)) := + hi k _ (hF.comp (by fun_prop)) + have hig : Integrable (fun y => g (y+r k • v)) (P k : Measure (Euclidean n)) := + hi k _ (hg.comp (by fun_prop)) + have hpoint (y : Euclidean n) : F (y+r k • v)-F y=g (y+r k • v)-g y-r k*D v := by + dsimp only [F] + rw [show y+r k • v-x=(y-x)+r k • v by abel,map_add,map_smul] + simp only [smul_eq_mul] + ring + have he : (∫ y, F y ∂(Q k : Measure (Euclidean n)))- + (∫ y, F y ∂(P k : Measure (Euclidean n)))= + (∫ y, g y ∂(Q k : Measure (Euclidean n)))- + (∫ y, g y ∂(P k : Measure (Euclidean n)))-r k*D v := by + rw [show (Q k : Measure (Euclidean n))=(P k : Measure (Euclidean n)).map + (fun y => y+r k • v) from rfl,integral_map (hmap k).aemeasurable hF.aestronglyMeasurable] + rw [← integral_sub hiF (hi k F hF)] + simp_rw [hpoint] + rw [integral_sub (hi k _ hc) (integrable_const _), + integral_sub hig (hi k g hg), + integral_const,smul_eq_mul] + rw [integral_map (hmap k).aemeasurable hg.aestronglyMeasurable] + simp + rw [← sub_div,he] + field_simp [(hr k).ne'] + ring + exact hlim.congr' (Eventually.of_forall hident) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/TransverseCutoffFlux.lean b/lean/OAI/Geometry/RCD/Sobolev/TransverseCutoffFlux.lean new file mode 100644 index 0000000000000000000000000000000000000000..30de2c932d3144407309785790738b4c7f89a0cb --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/TransverseCutoffFlux.lean @@ -0,0 +1,61 @@ +import OAI.Geometry.RCD.Sobolev.HarmonicBarrierTest + +namespace OAI + +/-! # Exact zero flux for a compact transverse harmonic test -/ + +open Set Filter MeasureTheory Metric +open scoped NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) (Q : QuadraticCheegerEnergy μ) + +theorem harmonic_transverse_cutoff_flux + (w f η : SobolevSpace μ Q) {Ω : Set X} (hΩ : IsOpen Ω) + (hw : IsSobolevHarmonicOn μ Q Ω w) (W S : X → ℝ) (δ c : ℝ) + (hf : SobolevSpace.toLp μ Q f =ᵐ[μ.restrict Ω] + fun x => max (W x+δ) 0*max (c-S x) 0) + {χ : X → ℝ} {L B : ℝ≥0} (hχ : LipschitzWith L χ) + (hs : HasCompactSupport χ) (hb : ∀ x, |χ x|≤B) (hn : ∀ x, 0≤χ x) + (hsΩ : tsupport χ⊆Ω) (hη : SobolevSpace.toLp μ Q η =ᵐ[μ] χ) + (hplateau : ∀ x∈Ω, -δ χ x*localGamma μ Q f w x) Ω μ ∧ + (∫ x in Ω, χ x*localGamma μ Q f w x ∂μ)=0 := by + let T := SobolevSpace.cutoffCLM μ Q hχ hs hb hn f + have hform := localGamma_cutoffCLM μ Q f η w hχ hs hb hn hη + have hin : localGamma μ Q T w =ᵐ[μ.restrict Ω] fun x => χ x*localGamma μ Q f w x := by + filter_upwards [hf,ae_restrict_of_ae hform,ae_restrict_of_ae hη, + ae_restrict_of_ae (localGamma_zero_on_level μ Q η w 1),ae_restrict_mem hΩ.measurableSet] + with x hfx hformx hηx hz hxΩ + change localGamma μ Q (SobolevSpace.cutoffCLM μ Q hχ hs hb hn f) w x=_ + rw [hformx,hfx] + have hzero : (max (W x+δ) 0*max (c-S x) 0)*localGamma μ Q η w x=0 := by + by_cases hax : -δ (0:ℝ) := by + filter_upwards [ae_restrict_of_ae hform,ae_restrict_of_ae hη, + ae_restrict_of_ae (localGamma_zero_on_level μ Q η w 0), + ae_restrict_mem hΩ.measurableSet.compl] with x hx hηx hz hxΩ + have hχ0 : χ x=0 := by + by_contra hh + exact hxΩ (hsΩ (subset_tsupport χ hh)) + change localGamma μ Q (SobolevSpace.cutoffCLM μ Q hχ hs hb hn f) w x=0 + rw [hx,hχ0,hz (hηx.trans hχ0),zero_mul,mul_zero,zero_add] + have hout' : ∀ᵐ x ∂μ, x∉Ω → localGamma μ Q T w x=0 := + (ae_restrict_iff' hΩ.measurableSet.compl).mp hout + constructor + · exact (localGamma_memL1 μ Q T w).integrableOn.congr hin + · rw [← integral_congr_ae hin,setIntegral_eq_integral_of_ae_compl_eq_zero hout', + integral_congr_ae (localGamma_comm μ Q T w),integral_localGamma_eq_energyForm] + exact hw T (SobolevSpace.cutoffCLM_mem_dirichlet μ Q hχ hs hb hn hsΩ f) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/TransverseTestError.lean b/lean/OAI/Geometry/RCD/Sobolev/TransverseTestError.lean new file mode 100644 index 0000000000000000000000000000000000000000..55afbde48ef352d2eec23fbab505ee87531897ef --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/TransverseTestError.lean @@ -0,0 +1,51 @@ +import OAI.Geometry.RCD.Sobolev.TransverseTestFormula + +namespace OAI + +/-! # The transverse barrier error depends only on its two Gram entries -/ + +namespace RegularPointCoordinates + +theorem transverse_test_error (W S δ c g h : ℝ) : + |((if -δ (1:ℝ)) + (δ c : ℝ) : + let P := (w+δ • η).upperPositivePart μ Q (le_refl (0:ℝ)) + let T := (c • η-s).upperPositivePart μ Q (le_refl (0:ℝ)) + ∀ (A B : ℝ≥0) + (_hA : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ Q P x|≤A) + (_hB : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ Q T x|≤B), + localGamma μ Q (SobolevSpace.product μ Q P T A B) w =ᵐ[μ.restrict Ω] + fun x => (if -δ (0:ℝ) := by + filter_upwards [hη,ae_restrict_of_ae (localGamma_zero_on_level μ Q η w 1)] with x hx hz + exact hz hx + have hu : SobolevSpace.toLp μ Q U =ᵐ[μ.restrict Ω] fun x => W x+δ := by + change SobolevSpace.toLpCLM μ Q (w+δ • η) =ᵐ[μ.restrict Ω] _ + rw [map_add,map_smul] + filter_upwards [hW,hη,ae_restrict_of_ae (Lp.coeFn_add (SobolevSpace.toLp μ Q w) + (δ • SobolevSpace.toLp μ Q η)),ae_restrict_of_ae (Lp.coeFn_smul δ (SobolevSpace.toLp μ Q η))] + with x hw hηx ha hs + change (SobolevSpace.toLp μ Q w+δ • SobolevSpace.toLp μ Q η) x=W x+δ + simp only [ha,Pi.add_apply,hs,Pi.smul_apply,smul_eq_mul,hw,hηx,mul_one] + have hv : SobolevSpace.toLp μ Q V =ᵐ[μ.restrict Ω] fun x => c-S x := by + change SobolevSpace.toLpCLM μ Q (c • η-s) =ᵐ[μ.restrict Ω] _ + rw [map_sub,map_smul] + filter_upwards [hS,hη,ae_restrict_of_ae (Lp.coeFn_sub (c • SobolevSpace.toLp μ Q η) + (SobolevSpace.toLp μ Q s)),ae_restrict_of_ae (Lp.coeFn_smul c (SobolevSpace.toLp μ Q η))] + with x hs hηx hsub hsm + change (c • SobolevSpace.toLp μ Q η-SobolevSpace.toLp μ Q s) x=c-S x + simp only [hsub,Pi.sub_apply,hsm,Pi.smul_apply,smul_eq_mul,hs,hηx,mul_one] + have hUw : localGamma μ Q U w =ᵐ[μ.restrict Ω] localGamma μ Q w w := by + filter_upwards [he,ae_restrict_of_ae (localGamma_add_left μ Q w (δ • η) w), + ae_restrict_of_ae (localGamma_smul_left μ Q δ η w)] with x he hx hs + change localGamma μ Q (w+δ • η) w x=_ + simp only [hx,hs,he,mul_zero,add_zero] + have hVw : localGamma μ Q V w =ᵐ[μ.restrict Ω] fun x => -localGamma μ Q s w x := by + filter_upwards [he,ae_restrict_of_ae (localGamma_sub_left μ Q (c • η) s w), + ae_restrict_of_ae (localGamma_smul_left μ Q c η w)] with x he hx hs + change localGamma μ Q (c • η-s) w x=_ + simp only [hx,hs,he,mul_zero,zero_sub] + filter_upwards [hu,hv,hUw,hVw, + ae_restrict_of_ae (localGamma_upperPositivePart μ Q U w (le_refl (0:ℝ))), + ae_restrict_of_ae (localGamma_upperPositivePart μ Q V w (le_refl (0:ℝ))), + ae_restrict_of_ae (V.upperPositivePart_coe μ Q (le_refl (0:ℝ))), + ae_restrict_of_ae (U.upperPositivePart_coe μ Q (le_refl (0:ℝ))), + ae_restrict_of_ae (localGamma_product_left μ Q P T w A B hA hB)] + with x hu hv hUw hVw hP hT hTv hPv hp + rw [hp] + change localGamma μ Q (U.upperPositivePart μ Q (le_refl (0:ℝ))) w x=_ at hP + change localGamma μ Q (V.upperPositivePart μ Q (le_refl (0:ℝ))) w x=_ at hT + have hTc : SobolevSpace.toLp μ Q T x=max (c-S x) 0 := by + simpa only [upperLevelPart,hv,sub_zero] using hTv + have hPc : SobolevSpace.toLp μ Q P x=max (W x+δ) 0 := by + simpa only [upperLevelPart,hu,sub_zero] using hPv + rw [hP,hT,hUw,hVw,hTc,hPc,hu,hv] + by_cases hx : -δ hx.2) hz + have hh := hlocal p (2*r) (by positivity) hcurv w.val B + (measurableSet_ball.diff measurableSet_ball) sdiff_subset hBhalf hzB + have hu : (∫ x in ball p (2*r), u x^2 ∂μ) = ‖u‖^2 := by + rw [setIntegral_eq_integral_of_ae_compl_eq_zero, lp_integral_square_eq_norm_square] + have hzout : u =ᵐ[μ.restrict (ball p (2*r))ᶜ] 0 := + ae_restrict_of_ae_restrict_of_subset + (compl_subset_compl.mpr (ball_subset_ball (by linarith : r≤2*r))) hz + filter_upwards [(ae_restrict_iff' measurableSet_ball.compl).mp hzout] with x hx hnot + simp [hx hnot] + have he : (∫ x in ball p (8*(2*r)), localGamma μ hX.quadratic w.val w.val x ∂μ) ≤ + energyForm μ hX.quadratic w.val w.val := by + rw [integral_congr_ae (ae_restrict_of_ae (localGamma_self μ hX.quadratic w.val))] + calc + _ ≤ ∫ x, G x^2 ∂μ := setIntegral_le_integral (Lp.memLp G).integrable_sq + (Filter.Eventually.of_forall (fun x => sq_nonneg (G x))) + _ = _ := by + rw [lp_integral_square_eq_norm_square] + exact (SobolevSpace.minimalSlope_norm_sq μ hX.quadratic w.val).trans + (energyForm_self μ hX.quadratic w.val).symm + rw [hu] at hh + calc + _ ≤ C*(2*r)^2 * ∫ x in ball p (8*(2*r)), + localGamma μ hX.quadratic w.val w.val x ∂μ := hh + _ ≤ C*(2*r)^2 * energyForm μ hX.quadratic w.val w.val := + mul_le_mul_of_nonneg_left he (by positivity) + _ = _ := by ring + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/UniformBallEnergyTest.lean b/lean/OAI/Geometry/RCD/Sobolev/UniformBallEnergyTest.lean new file mode 100644 index 0000000000000000000000000000000000000000..27cbd3947e1f299881c74c17c29b3cb0036cca32 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/UniformBallEnergyTest.lean @@ -0,0 +1,134 @@ +import OAI.Geometry.RCD.Sobolev.UniformDensityEnergyTest +import OAI.Geometry.RCD.Metric.EuclideanBallDensityLaw +import OAI.Geometry.RCD.Coordinates.EuclideanDensityNormalization +import OAI.Geometry.RCD.Transport.TranslatedCouplingCost + +namespace OAI + +/-! # Actual RCD energy controls translated Euclidean ball averages -/ + +open Set Filter MeasureTheory Metric +open scoped Topology ENNReal NNReal BoundedContinuousFunction +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + +theorem NoncollapsedRCD.uniform_ball_energy_test {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (hn : 2≤n) + {S ρ τ R : ℝ} (hS : 0 (localEnergyMeasure (hausdorff n X) hX.quadratic (w k) + (closedBall (p k) (R*r k)) + (r k^2/(hausdorff n X).real (ball (p k) (S*r k)))).map (v k)) atTop (𝓝 ν)) + (z h : Euclidean n) {a b B : ℝ} (ha : 0 euclideanBallDensity_translate z h x hab) + _ = _ := integral_sub_right_eq_self A h + have hpos : 0<∫ x, A x := euclideanBallDensity_mass_pos z ha hab + have hposA : 0<∫ x, A x ∂(euclideanBallProbability n S : Measure (Euclidean n)) := by + rw [hmA]; positivity + have hposC : 0<∫ x, C x ∂(euclideanBallProbability n S : Measure (Euclidean n)) := by + rw [hmC]; positivity + have haz (y : Euclidean n) (hy : y∉closedBall z (b+‖h‖)) : A y=0 := by + apply euclideanBallDensity_zero z hab + have ht : b+‖h‖ f k a-f k x) (fun x => g a-g x) atTop := by + apply Metric.tendstoUniformly_iff.mpr + intro ε hε + filter_upwards [(Metric.tendstoUniformly_iff.mp h) (ε/2) (by linarith)] with k hk + intro x + have ha := hk a + have hx := hk x + rw [Real.dist_eq] at ha hx ⊢ + rcases abs_lt.mp ha with ⟨ha₁,ha₂⟩ + rcases abs_lt.mp hx with ⟨hx₁,hx₂⟩ + apply abs_lt.mpr + constructor <;> linarith + +end RegularPointCoordinates + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/UniformDensityEnergyTest.lean b/lean/OAI/Geometry/RCD/Sobolev/UniformDensityEnergyTest.lean new file mode 100644 index 0000000000000000000000000000000000000000..d7d63fe85e7c63398c59dfd35e1af3737cefe8a1 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/UniformDensityEnergyTest.lean @@ -0,0 +1,74 @@ +import OAI.Geometry.RCD.Transport.MeasuredTransportSupport +import OAI.Geometry.RCD.Metric.UniformInteriorLimitMass + +namespace OAI + +/-! # Scale-uniform density tests of the actual value and energy limits -/ + +open Set Filter MeasureTheory Metric +open scoped Topology ENNReal NNReal BoundedContinuousFunction +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + +theorem NoncollapsedRCD.uniform_interior_density_energy_test {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (hn : 2≤n) + {S ρ τ R η B : ℝ} (hS : 0 (localEnergyMeasure (hausdorff n X) hX.quadratic (w k) + (closedBall (p k) (R*r k)) + (r k^2/(hausdorff n X).real (ball (p k) (S*r k)))).map (v k)) atTop (𝓝 ν)) + (a b : Euclidean n →ᵇ ℝ) (ha : ∀ y, 0≤a y) (hb : ∀ y, 0≤b y) + (ha0 : ∀ y, ρ≤‖y‖ → a y=0) (hb0 : ∀ y, ρ≤‖y‖ → b y=0) + (haz : ∀ y, y∉closedBall z η → a y=0) (hbz : ∀ y, y∉closedBall z η → b y=0) + (hapos : 0<∫ y, a y ∂(euclideanBallProbability n S : Measure (Euclidean n))) + (hbpos : 0<∫ y, b y ∂(euclideanBallProbability n S : Measure (Euclidean n))) : + let α := normalizedDensityLaw (euclideanBallProbability n S : Measure (Euclidean n)) + (a.integrable _) ha hapos + let β := normalizedDensityLaw (euclideanBallProbability n S : Measure (Euclidean n)) + (b.integrable _) hb hbpos + ∃ Q : ProbabilityMeasure (Euclidean n × Euclidean n), + IsOptimalCoupling (α : Measure (Euclidean n)) (β : Measure (Euclidean n)) + (Q : Measure (Euclidean n × Euclidean n)) ∧ + ((∫ y, g y ∂(β : Measure (Euclidean n)))-(∫ y, g y ∂(α : Measure (Euclidean n))))^2≤ + (∫ y, dist y.1 y.2^2 ∂(Q : Measure (Euclidean n × Euclidean n)))* + (Real.exp ((n:ℝ)*4*η)*max ((∫ y, a y ∂(euclideanBallProbability n S : Measure (Euclidean n)))⁻¹*‖a‖) + ((∫ y, b y ∂(euclideanBallProbability n S : Measure (Euclidean n)))⁻¹*‖b‖))* + (ν : Measure (Euclidean n)).real (closedBall z B) := by + dsimp only + obtain ⟨D,hn₀,hn₁⟩ := hX.measured_transport_data_nonzero hn hS hτ hρτ p r ε v hr hεlim hv + a b ha hb ha0 hb0 hapos hbpos + let W := (τ+S)/2 + have hτS : τ w (k+D.offset)) hgL + · intro δ hδ + filter_upwards [(tendsto_add_atTop_nat D.offset).eventually (hconv W hW hWS δ hδ)] with k hk + have hh := (ae_restrict_iff' measurableSet_ball).mp hk + exact hh.mono fun x hx hdist => hx + (hdist.trans_lt (mul_lt_mul_of_pos_right hτW (hr (k+D.offset)))) + · intro k + exact (hn₀ k).mono fun x hx => not_not.mp (fun hh => hx (haz _ hh)) + · intro k + exact (hn₁ k).mono fun x hx => not_not.mp (fun hh => hx (hbz _ hh)) + · exact henergy.comp (tendsto_add_atTop_nat D.offset) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/UniformEnergyDensity.lean b/lean/OAI/Geometry/RCD/Sobolev/UniformEnergyDensity.lean new file mode 100644 index 0000000000000000000000000000000000000000..84b1e00d68438a11c9f89005b17639980e6422f7 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/UniformEnergyDensity.lean @@ -0,0 +1,48 @@ +import OAI.Geometry.RCD.Sobolev.UniformEnergyDerivative + +namespace OAI + +/-! # One full-measure set for the local gradient-energy comparison -/ + +open Set Filter MeasureTheory Metric +open scoped Topology ENNReal NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + +theorem NoncollapsedRCD.uniform_energy_density_dominates_gradient {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (hn : 2≤n) + {S ρ τ R : ℝ} (hS : 0 (localEnergyMeasure (hausdorff n X) hX.quadratic (w k) + (closedBall (p k) (R*r k)) + (r k^2/(hausdorff n X).real (ball (p k) (S*r k)))).map (v k)) atTop (𝓝 ν)) + : ∀ᵐ z ∂(volume : Measure (Euclidean n)).restrict (ball 0 ρ), + ‖fderiv ℝ g z‖^2≤volume.real (ball (0:Euclidean n) S)* + ((ν : Measure (Euclidean n)).rnDeriv volume z).toReal := by + apply (ae_restrict_iff' measurableSet_ball).mpr + filter_upwards [euclidean_energy_density_limit ν] with z hz hzmem + by_cases hd : DifferentiableAt ℝ g z + · apply hX.uniform_energy_density_dominates_derivative hn hS hτ hρτ hτR hRS + p r ε v hr hcurv hε hε1 hεlim hv w g hg hconv ν henergy z + · simpa only [mem_ball,dist_zero_right] using hzmem + · exact hd.hasFDerivAt + · exact hz + · rw [fderiv_zero_of_not_differentiableAt hd,norm_zero,zero_pow (by decide : 2≠0)] + exact mul_nonneg ENNReal.toReal_nonneg ENNReal.toReal_nonneg + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/UniformEnergyDerivative.lean b/lean/OAI/Geometry/RCD/Sobolev/UniformEnergyDerivative.lean new file mode 100644 index 0000000000000000000000000000000000000000..35260280a9b5351cd8448a67273c548555bdfee3 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/UniformEnergyDerivative.lean @@ -0,0 +1,107 @@ +import OAI.Geometry.RCD.Sobolev.UniformBallEnergyTest +import OAI.Geometry.RCD.Sobolev.SharpLinearEnergyBound +import OAI.Geometry.RCD.Sobolev.LocalMeanEnergyFactor + +namespace OAI + +/-! # Pointwise lower energy bound for the actual RCD value limit -/ + +open Set Filter MeasureTheory Metric +open scoped Topology ENNReal NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + +theorem NoncollapsedRCD.uniform_energy_density_dominates_derivative {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (hn : 2≤n) + {S ρ τ R : ℝ} (hS : 0 (localEnergyMeasure (hausdorff n X) hX.quadratic (w k) + (closedBall (p k) (R*r k)) + (r k^2/(hausdorff n X).real (ball (p k) (S*r k)))).map (v k)) atTop (𝓝 ν)) + (z : Euclidean n) (hz : ‖z‖<ρ) + (D : Euclidean n →L[ℝ] ℝ) (hD : HasFDerivAt g D z) {d : ℝ} + (hν : Tendsto (fun t => (ν : Measure (Euclidean n)).real (closedBall z t)/ + volume.real (closedBall z t)) (𝓝[>] 0) (𝓝 d)) : + ‖D‖^2≤volume.real (ball (0:Euclidean n) S)*d := by + have hd : 0≤d := ge_of_tendsto hν (Eventually.of_forall fun t => + div_nonneg ENNReal.toReal_nonneg ENNReal.toReal_nonneg) + have hV : 0≤volume.real (ball (0:Euclidean n) S) := ENNReal.toReal_nonneg + apply sharp_linear_energy_bound D (mul_nonneg hV hd) + intro ξ θ hθ hθ1 c hc + have hc0 : 0 1/((k:ℝ)+1) + have hq : ∀ k, 0 by dsimp only [q]; positivity + have hqlim : Tendsto q atTop (𝓝 0) := tendsto_one_div_add_atTop_nhds_zero_nat + let W := (ρ+S)/2 + let B := (W-‖z‖)/2 + have hρS : ρ Real.exp ((n:ℝ)*4*(q k+‖q k • ξ‖)) + have helm : Tendsto e atTop (𝓝 1) := by + have ht : Tendsto (fun k => (n:ℝ)*4*(q k+‖q k • ξ‖)) atTop (𝓝 0) := by + simp_rw [norm_smul,Real.norm_eq_abs,abs_of_pos (hq _)] + simpa only [zero_mul,add_zero,mul_zero] using + (hqlim.add (hqlim.mul_const ‖ξ‖)).const_mul ((n:ℝ)*4) + simpa only [Function.comp_def,Real.exp_zero] using (Real.continuous_exp.tendsto 0).comp ht + have hmean := local_ball_mean_energy_with_factor (V := volume.real (ball (0:Euclidean n) S)) + (by omega : 0 ‖z‖+q k*(1+‖ξ‖)) atTop (𝓝 ‖z‖) := by + simpa only [zero_mul,add_zero] using (hqlim.mul_const (1+‖ξ‖)).const_add ‖z‖ + exact ht.eventually (Iio_mem_nhds hz) + have heroom : ∀ᶠ k in atTop, τ+2*(q k*(1+‖ξ‖)) τ+2*(q k*(1+‖ξ‖))) atTop (𝓝 τ) := by + simpa only [zero_mul,mul_zero,add_zero] using + ((hqlim.mul_const (1+‖ξ‖)).const_mul 2).const_add τ + exact ht.eventually (Iio_mem_nhds (hτR.trans hRS)) + have hb : ∀ᶠ k in atTop, + ((∫ y, g y ∂(euclideanBallDensityLaw (z+q k • ξ) (b := q k) + (mul_pos hθ (hq k)) (by nlinarith [hq k]) : Measure (Euclidean n)))- + (∫ y, g y ∂(euclideanBallDensityLaw z (b := q k) + (mul_pos hθ (hq k)) (by nlinarith [hq k]) : Measure (Euclidean n))))^2≤ + e k*(‖q k • ξ‖^2*(volume.real (ball (0:Euclidean n) S)/volume.real (ball z (θ*q k)))* + (ν : Measure (Euclidean n)).real (closedBall z (c*q k))) := by + filter_upwards [he,heroom] with k hk hkroom + apply hX.uniform_ball_energy_test hn hS hτ hρτ hτR hRS + p r ε v hr hcurv hε hε1 hεlim hv w g hg hconv ν henergy z (q k • ξ) + (mul_pos hθ (hq k)) (by nlinarith [hq k]) + · rw [norm_smul,Real.norm_eq_abs,abs_of_pos (hq k)] + nlinarith only [hk] + · rw [norm_smul,Real.norm_eq_abs,abs_of_pos (hq k)] + nlinarith only [mul_pos (sub_pos.mpr hc) (hq k)] + · rw [norm_smul,Real.norm_eq_abs,abs_of_pos (hq k)] + nlinarith only [hkroom] + · rw [norm_smul,Real.norm_eq_abs,abs_of_pos (hq k)] + nlinarith only [hk,hρτ,hτR] + have hh := hmean hb + nlinarith only [hh] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/UniformEuclideanInnerTests.lean b/lean/OAI/Geometry/RCD/Sobolev/UniformEuclideanInnerTests.lean new file mode 100644 index 0000000000000000000000000000000000000000..24530166869c491cef627106c21b51e3f76eaf62 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/UniformEuclideanInnerTests.lean @@ -0,0 +1,38 @@ +import OAI.Geometry.RCD.Sobolev.UniformLocalizedLipschitzTests +import OAI.Geometry.RCD.Sobolev.MeasuredLawTestBound +import OAI.Geometry.RCD.Sobolev.EuclideanLawLocalizedTests + +namespace OAI + +/-! # Uniform Lipschitz testing of the inner Euclidean law -/ + +open Set Metric Filter MeasureTheory +open scoped Topology BoundedContinuousFunction NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + +omit [BorelSpace X] in +theorem uniform_euclidean_inner_tests {n : ℕ} {S R : ℝ} (hS : 0 normalizedBallPushforward μ (p k) (r k) S (V k) (hfin k) + have hν := measured_approximation_laws_tendsto hS hV hfin hpos hε + have hm := ProbabilityMeasure.tendsto_measure_of_null_frontier_of_tendsto' hν + (euclideanBallProbability_null_frontier hS hR) + have hmr := (ENNReal.tendsto_toReal (measure_ne_top + (euclideanBallProbability n S : Measure (Euclidean n)) (ball 0 R))).comp hm + obtain ⟨χ,L,hχL,hχ,hχ0,hχlim⟩ := inner_ball_lipschitz_cutoff_sequence (0:Euclidean n) hR + exact uniform_localized_lipschitz_tests hν ε hε measurableSet_ball hmr χ L hχL hχ hχ0 hχlim + (fun k C hC F hF hb => measured_law_test_bound hS (hV k) (hfin k) (hpos k) C hC F hF hb) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/UniformEventualLowerEnergy.lean b/lean/OAI/Geometry/RCD/Sobolev/UniformEventualLowerEnergy.lean new file mode 100644 index 0000000000000000000000000000000000000000..bc36fa3b66407949ee6e8c6a4499b72292dde1aa --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/UniformEventualLowerEnergy.lean @@ -0,0 +1,49 @@ +import OAI.Geometry.RCD.Sobolev.UniformLowerEnergyFromSequence + +namespace OAI + +/-! # Lower energy bounds after discarding a finite initial segment -/ + +open Set Filter MeasureTheory Metric +open scoped Topology NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + +theorem NoncollapsedRCD.gradient_energy_lower_of_curvature_eventual_sequence {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (hn : 2≤n) + {S ρ τ R : ℝ} (hS : 0 ‖fderiv ℝ g z‖^2) (ball 0 ρ) volume ∧ + (∫ z in ball 0 ρ, ‖fderiv ℝ g z‖^2)≤volume.real (ball (0:Euclidean n) S)*C := by + obtain ⟨N,hN⟩ := eventually_atTop.mp hbound + apply hX.gradient_energy_lower_of_curvature_sequence hn hS hτ hρτ hτR hRS + (fun k => p (k+N)) (fun k => r (k+N)) (fun k => ε (k+N)) (fun k => v (k+N)) + (fun k => hr (k+N)) (fun k => hcurv (k+N)) + (fun k => hε (k+N)) (fun k => hε1 (k+N)) (hεlim.comp (tendsto_add_atTop_nat N)) + (fun k => hv (k+N)) (fun k => w (k+N)) g hg + (fun W hW hWS δ hδ => (tendsto_add_atTop_nat N).eventually (hconv W hW hWS δ hδ)) + hM (fun k => hN (k+N) (Nat.le_add_left N k)) + (fun δ hδ => (tendsto_add_atTop_nat N).eventually (hupper δ hδ)) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/UniformGradientEnergy.lean b/lean/OAI/Geometry/RCD/Sobolev/UniformGradientEnergy.lean new file mode 100644 index 0000000000000000000000000000000000000000..aaf4278e39249f07521312aa5269fd0219653e73 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/UniformGradientEnergy.lean @@ -0,0 +1,42 @@ +import OAI.Geometry.RCD.Sobolev.UniformEnergyDensity +import OAI.Geometry.RCD.Sobolev.GradientEnergyFromDensity + +namespace OAI + +/-! # Integral lower energy bound for the actual local value limit -/ + +open Set Filter MeasureTheory Metric +open scoped Topology ENNReal NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + +theorem NoncollapsedRCD.uniform_gradient_energy_lower {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (hn : 2≤n) + {S ρ τ R : ℝ} (hS : 0 (localEnergyMeasure (hausdorff n X) hX.quadratic (w k) + (closedBall (p k) (R*r k)) + (r k^2/(hausdorff n X).real (ball (p k) (S*r k)))).map (v k)) atTop (𝓝 ν)) + : IntegrableOn (fun z => ‖fderiv ℝ g z‖^2) (ball 0 ρ) volume ∧ + (∫ z in ball 0 ρ, ‖fderiv ℝ g z‖^2)≤ + volume.real (ball (0:Euclidean n) S)*(ν : Measure (Euclidean n)).real (ball 0 ρ) := by + exact gradient_energy_from_density ν g (ball 0 ρ) ENNReal.toReal_nonneg + (hX.uniform_energy_density_dominates_gradient hn hS hτ hρτ hτR hRS + p r ε v hr hcurv hε hε1 hεlim hv w g hg hconv ν henergy) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/UniformLipschitzL2Limit.lean b/lean/OAI/Geometry/RCD/Sobolev/UniformLipschitzL2Limit.lean new file mode 100644 index 0000000000000000000000000000000000000000..2b2a41fa05423f1c8061a8e9bbc1aa4eeb46a5dd --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/UniformLipschitzL2Limit.lean @@ -0,0 +1,73 @@ +import OAI.Geometry.RCD.Sobolev.LipschitzL2PointControl + +namespace OAI + +/-! # Uniform Lipschitz bounds turn L² convergence into pointwise convergence -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped NNReal ENNReal Topology + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + +/-- A fixed positive ball witnesses every persistent nonzero value. -/ +theorem tendsto_zero_of_uniform_lipschitz_l2 (μ : Measure X) [ProperSpace X] + [IsFiniteMeasureOnCompacts μ] [μ.IsOpenPosMeasure] + (u : ℕ → Lp ℝ 2 μ) (v : ℕ → X → ℝ) (L : ℝ≥0) + (hrep : ∀ i, u i =ᵐ[μ] v i) (hLip : ∀ i, LipschitzWith L (v i)) + (hlim : Tendsto (fun i => ‖u i‖) atTop (𝓝 0)) (x : X) : + Tendsto (fun i => v i x) atTop (𝓝 0) := by + apply Metric.tendsto_nhds.mpr + intro ε hε + let r := ε / (2 * ((L : ℝ) + 1)) + have hr : 0 < r := by dsimp [r]; positivity + have hLr : (L : ℝ) * r ≤ ε / 2 := by + dsimp [r] + rw [← mul_div_assoc] + apply (div_le_iff₀ (by positivity : 0 < 2 * ((L : ℝ) + 1))).mpr + nlinarith + have hm : 0 < μ.real (ball x r) := + ENNReal.toReal_pos (measure_ball_pos μ x hr).ne' measure_ball_lt_top.ne + have hq : 0 < (ε / 2) ^ 2 * μ.real (ball x r) := by positivity + have hlim2 : Tendsto (fun i => ‖u i‖ ^ 2) atTop (𝓝 0) := by + simpa using hlim.pow 2 + filter_upwards [hlim2.eventually (gt_mem_nhds hq)] with i hi + rw [Real.dist_eq, sub_zero] + by_contra hnot + have hvalue : ε / 2 + (L : ℝ) * r ≤ |v i x| := by + have hh : ε ≤ |v i x| := le_of_not_gt hnot + linarith + have hlower := lipschitz_value_sq_mass μ (u i) (v i) (hrep i) L (hLip i) + x measure_ball_lt_top.ne (by positivity : 0 ≤ ε / 2) hvalue + exact (not_le_of_gt hi) hlower + +namespace NoncollapsedRCD + +variable {K : ℝ} {n : ℕ} (hX : NoncollapsedRCD K n X) (hn : 2 ≤ n) (p : X) + [ProperSpace X] [SeparableSpace X] [IsLocallyFiniteMeasure (hausdorff n X)] + [(hausdorff n X).Regular] + +/-- Uniformly bounded L² data tending to zero have heat values tending to +zero at every point. The proof uses no kernel estimate. -/ +theorem boundedHeat_tendsto_zero (f : ℕ → Lp ℝ 2 (hausdorff n X)) (C : ℝ≥0) + (hf : ∀ i, ∀ᵐ x ∂hausdorff n X, |f i x| ≤ C) + (hlim : Tendsto f atTop (𝓝 0)) (t : ℝ) (ht : 0 < t) (x : X) : + Tendsto (fun i => hX.boundedHeat hn p (f i) ⟨C, hf i⟩ t ht x) atTop (𝓝 0) := by + let := hX.openPos K n + apply tendsto_zero_of_uniform_lipschitz_l2 (hausdorff n X) + (fun i => heatAt (hausdorff n X) hX.quadratic t (f i)) + (fun i => hX.boundedHeat hn p (f i) ⟨C, hf i⟩ t ht) + ⟨Real.sqrt ((C : ℝ) ^ 2 / (2 * t * Real.exp (-2 * |K| * t))), Real.sqrt_nonneg _⟩ + (fun i => hX.boundedHeat_represents hn p (f i) ⟨C, hf i⟩ t ht) + (fun i => hX.boundedHeat_lipschitz hn p (f i) ⟨C, hf i⟩ t ht C (hf i)) + have hh := ((heatAt (hausdorff n X) hX.quadratic t).continuous.tendsto 0).comp hlim + simpa only [Function.comp_apply, map_zero, norm_zero] using hh.norm + +end NoncollapsedRCD +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/UniformLocalizedLipschitzTests.lean b/lean/OAI/Geometry/RCD/Sobolev/UniformLocalizedLipschitzTests.lean new file mode 100644 index 0000000000000000000000000000000000000000..7d2ca453f1c50054226af3014669b113cd44fff7 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/UniformLocalizedLipschitzTests.lean @@ -0,0 +1,77 @@ +import OAI.Geometry.RCD.Sobolev.WeakLocalizedTests +import OAI.Geometry.RCD.Sobolev.BoundedLipschitzProduct + +namespace OAI + +/-! # Uniform bounded Lipschitz tests on a continuity ball + +The common quantitative outer test bound and a single family of inner +cutoffs provide uniform, rather than pointwise-in-test, localization. +-/ + +open Set Metric Filter MeasureTheory +open scoped Topology BoundedContinuousFunction NNReal +noncomputable section +namespace RegularPointCoordinates +variable {Y : Type*} [MetricSpace Y] [MeasurableSpace Y] [BorelSpace Y] + +theorem uniform_localized_lipschitz_tests + {ν : ProbabilityMeasure Y} {νs : ℕ → ProbabilityMeasure Y} + (hweak : Tendsto νs atTop (𝓝 ν)) (ε : ℕ → ℝ) (hε : Tendsto ε atTop (𝓝 0)) + {s : Set Y} (hs : MeasurableSet s) + (hmass : Tendsto (fun k => (νs k : Measure Y).real s) atTop (𝓝 ((ν : Measure Y).real s))) + (χ : ℕ → Y →ᵇ ℝ) (L : ℕ → ℝ≥0) (hχL : ∀ m, LipschitzWith (L m) (χ m)) + (hχ : ∀ m x, 0≤χ m x ∧ χ m x≤1) (hχ0 : ∀ m x, x∉s → χ m x=0) + (hχlim : ∀ x, Tendsto (fun m => χ m x) atTop (𝓝 (s.indicator (fun _ => (1:ℝ)) x))) + (hbound : ∀ k (C : ℝ≥0), 0 (1:ℝ)) (fun m => (χ m).continuous.aestronglyMeasurable) + (integrable_const 1) (fun m => Eventually.of_forall fun x => by + rw [Real.norm_eq_abs,abs_of_nonneg (hχ m x).1] + exact (hχ m x).2) (Eventually.of_forall hχlim) + simp only [integral_indicator hs,setIntegral_const,smul_eq_mul,mul_one] at hcut + have hdef : Tendsto (fun m => (ν : Measure Y).real s-∫ x, χ m x ∂(ν : Measure Y)) + atTop (𝓝 0) := by simpa only [sub_self] using + (tendsto_const_nhds : Tendsto (fun _ : ℕ => (ν : Measure Y).real s) + atTop (𝓝 ((ν : Measure Y).real s))).sub hcut + intro η hη + obtain ⟨m,hm⟩ := (hdef.eventually (Iio_mem_nhds (show 0<η/4 by positivity))).exists + have hdev := (hmass.sub (ProbabilityMeasure.tendsto_iff_forall_integral_tendsto.mp hweak (χ m))).eventually + (Iio_mem_nhds (show (ν : Measure Y).real s-(∫ x, χ m x ∂(ν : Measure Y))<η/4 from hm)) + have hsmall := (hε.const_mul ((L m+1:ℝ≥0):ℝ)).eventually + (Iio_mem_nhds (show ((L m+1:ℝ≥0):ℝ)*0<η/4 by simp; positivity)) + filter_upwards [hdev,hsmall] with k hk hek + intro φ hφ hφn + have hφb (x : Y) : |φ x|≤1 := by + simpa only [Real.norm_eq_abs] using (φ.norm_coe_le_norm x).trans hφn + have hχb (x : Y) : |χ m x|≤1 := by rw [abs_of_nonneg (hχ m x).1]; exact (hχ m x).2 + have hp := hbound k (L m+1) (by positivity) (fun x => χ m x*φ x) + (bounded_unit_lipschitz_product (hχL m) hφ hχb hφb) (fun x => by + rw [abs_mul] + exact (mul_le_mul (hχb x) (hφb x) (abs_nonneg _) zero_le_one).trans (by simp)) + have he₁ := bounded_test_cutoff_error (νs k : Measure Y) hs φ (χ m) (hχ m) (hχ0 m) + have he₂ := bounded_test_cutoff_error (ν : Measure Y) hs φ (χ m) (hχ m) (hχ0 m) + have hb₁ : |(∫ x in s, φ x ∂(νs k : Measure Y))- + (∫ x, χ m x*φ x ∂(νs k : Measure Y))|≤η/4 := + he₁.trans ((mul_le_mul_of_nonneg_left hk.le (norm_nonneg φ)).trans + (mul_le_of_le_one_left (by positivity) hφn)) + have hb₂ : |(∫ x in s, φ x ∂(ν : Measure Y))- + (∫ x, χ m x*φ x ∂(ν : Measure Y))|≤η/4 := + he₂.trans ((mul_le_mul_of_nonneg_left hm.le (norm_nonneg φ)).trans + (mul_le_of_le_one_left (by positivity) hφn)) + have hb₃ := hp.trans_lt hek + have ht₁ := abs_sub_le (∫ x in s, φ x ∂(νs k : Measure Y)) + (∫ x, χ m x*φ x ∂(νs k : Measure Y)) (∫ x in s, φ x ∂(ν : Measure Y)) + have ht₂ := abs_sub_le (∫ x, χ m x*φ x ∂(νs k : Measure Y)) + (∫ x, χ m x*φ x ∂(ν : Measure Y)) (∫ x in s, φ x ∂(ν : Measure Y)) + rw [abs_sub_comm (∫ x, χ m x*φ x ∂(ν : Measure Y))] at ht₂ + linarith + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/UniformLowerEnergyFromSequence.lean b/lean/OAI/Geometry/RCD/Sobolev/UniformLowerEnergyFromSequence.lean new file mode 100644 index 0000000000000000000000000000000000000000..ae16aac9402c118c1b8272867e4abe03547c683b --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/UniformLowerEnergyFromSequence.lean @@ -0,0 +1,76 @@ +import OAI.Geometry.RCD.Sobolev.UniformGradientEnergy +import OAI.Geometry.RCD.Sobolev.PointedEnergyCompactness + +namespace OAI + +/-! # The Euclidean lower energy bound from actual Sobolev sequences -/ + +open Set Filter MeasureTheory Metric +open scoped Topology ENNReal NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + +theorem NoncollapsedRCD.gradient_energy_lower_of_curvature_sequence {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (hn : 2≤n) + {S ρ τ R : ℝ} (hS : 0 ‖fderiv ℝ g z‖^2) (ball 0 ρ) volume ∧ + (∫ z in ball 0 ρ, ‖fderiv ℝ g z‖^2)≤volume.real (ball (0:Euclidean n) S)*C := by + have hR : 0≤R := hτ.trans hτR.le + obtain ⟨ν,t,ht,hweak,_⟩ := hX.pointed_energy_subsequence hS hR hRS hM + p r ε v hr hε1 hεlim hv w hbound + have hconv' (W : ℝ) (hW : 0 hr (t k)) + (fun k => hcurv (t k)) (fun k => hε (t k)) (fun k => hε1 (t k)) + (hεlim.comp ht.tendsto_atTop) (fun k => hv (t k)) (w ∘ t) g hg hconv' ν hweak + have hmass : (ν.mass : ℝ)≤C := by + have hm := (NNReal.continuous_coe.tendsto ν.mass).comp hweak.mass + apply le_of_forall_pos_le_add + intro δ hδ + apply le_of_tendsto hm + filter_upwards [ht.tendsto_atTop.eventually (hupper δ hδ)] with k hk + have hb := FiniteMeasure.mass_map_le + (μ := localEnergyMeasure (hausdorff n X) hX.quadratic (w (t k)) + (closedBall (p (t k)) (R*r (t k))) + (r (t k)^2/(hausdorff n X).real (ball (p (t k)) (S*r (t k))))) + (hv (t k)).measurable.aemeasurable + have hb' := NNReal.coe_le_coe.mpr hb + rw [localEnergyMeasure_mass (hausdorff n X) hX.quadratic (w (t k)) + (closedBall (p (t k)) (R*r (t k))) + (div_nonneg (sq_nonneg (r (t k))) (show 0≤(hausdorff n X).real + (ball (p (t k)) (S*r (t k))) from ENNReal.toReal_nonneg))] at hb' + exact hb'.trans hk + have hνA : (ν : Measure (Euclidean n)).real (ball 0 ρ)≤(ν.mass : ℝ) := by + calc + _ ≤ (ν : Measure (Euclidean n)).real univ := + ENNReal.toReal_mono (measure_ne_top _ _) (measure_mono (subset_univ _)) + _ = _ := by rw [Measure.real,← FiniteMeasure.ennreal_mass,ENNReal.coe_toReal] + refine ⟨hlow.1,hlow.2.trans ?_⟩ + exact mul_le_mul_of_nonneg_left (hνA.trans hmass) ENNReal.toReal_nonneg + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/UniformMetricMeasureTests.lean b/lean/OAI/Geometry/RCD/Sobolev/UniformMetricMeasureTests.lean new file mode 100644 index 0000000000000000000000000000000000000000..974721fca5b21872afc7ea7453664ee8b98d8e86 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/UniformMetricMeasureTests.lean @@ -0,0 +1,82 @@ +import OAI.Geometry.RCD.Metric.MetricInnerLawSubsequence +import OAI.Geometry.RCD.Sobolev.WeakCompactUniformTests +import OAI.Geometry.RCD.Metric.ApproximationRestriction + +namespace OAI + +/-! # Uniform measured tests for the prescribed metric approximations -/ + +open Set Metric Filter MeasureTheory +open scoped Topology +noncomputable section +namespace RegularPointCoordinates + +theorem euclideanBallProbability_supported {n : ℕ} {S R : ℝ} (hS : 0 < S) (hSR : S ≤ R) : + ∀ᵐ z ∂(euclideanBallProbability n S : Measure (Euclidean n)), z ∈ closedBall 0 R := by + let : IsFiniteMeasure (volume.restrict (ball (0 : Euclidean n) S)) := + ⟨by simpa only [Measure.restrict_apply_univ] using + (measure_ball_lt_top (μ := (volume : Measure (Euclidean n))) (x := 0) (r := S))⟩ + have hn : volume.restrict (ball (0 : Euclidean n) S) ≠ 0 := by + intro h + have hh := congrArg (fun μ : Measure (Euclidean n) => μ univ) h + simp only [Measure.restrict_apply_univ,Measure.coe_zero,Pi.zero_apply] at hh + exact (measure_ball_pos volume 0 hS).ne' hh + change ∀ᵐ z ∂(normalizedProbabilityLaw (volume.restrict (ball (0 : Euclidean n) S)) : + Measure (Euclidean n)), z ∈ closedBall 0 R + filter_upwards [normalized_restriction_ae_mem volume measurableSet_ball hn] with z hz + exact ball_subset_closedBall (hz.trans_le hSR) + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + +theorem NoncollapsedRCD.uniform_metric_measure_tests {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (hn : 2 ≤ n) (hK : K ≤ 0) + (S η : ℝ) (hS : 0 < S) (hη : 0 < η) : + ∃ δ : ℝ, 0 < δ ∧ ∀ (p : X) (r : ℝ), 0 < r → -δ ≤ K*r^2 → + ∀ V : X → Euclidean n, Measurable V → IsPointedApproximation p 0 r (2*S) δ V → + ∀ φ : Euclidean n → ℝ, LipschitzWith 1 φ → (∀ z, |φ z| ≤ 1) → + |((hausdorff n X).real (ball p (S*r)))⁻¹ * (∫ x in ball p (S*r), φ (V x) ∂hausdorff n X) - + (volume.real (ball (0 : Euclidean n) S))⁻¹ * (∫ z in ball 0 S, φ z)| ≤ η := by + classical + by_contra hnot + push Not at hnot + let b := min 1 (1/((2*S)^2+1)) + have hb : 0 < b := lt_min zero_lt_one (by positivity) + let ε := fun k : ℕ => min b (1/((k:ℝ)+1)) + have hεpos (k : ℕ) : 0 < ε k := lt_min hb (by positivity) + have hε1 (k : ℕ) : ε k ≤ 1 := (min_le_left _ _).trans (min_le_left _ _) + have hεB (k : ℕ) : ε k ≤ 1/((2*S)^2+1) := (min_le_left _ _).trans (min_le_right _ _) + have hεlim : Tendsto ε atTop (𝓝 0) := squeeze_zero (fun k => (hεpos k).le) + (fun _ => min_le_right _ _) tendsto_one_div_add_atTop_nhds_zero_nat + have hex (k : ℕ) := hnot (ε k) (hεpos k) + choose p r hr hcurv V hVm hV φ hφLip hφbound hbad using hex + have hlarge (k : ℕ) : -1 ≤ K*((2*S)*r k)^2 := by + have he := (le_div_iff₀ (show 0 < (2*S)^2+1 by positivity)).mp (hεB k) + have hm := mul_nonneg (sq_nonneg (2*S)) (show 0 ≤ K*(r k)^2+ε k by linarith [hcurv k]) + nlinarith [hεpos k] + obtain ⟨α,hα,hlim⟩ := hX.metric_inner_law_subsequence hn hK hS + (show S < 2*S by linarith) p r ε V hr hεlim hε1 hcurv hlarge hVm hV + let P := fun k => normalizedBallPushforward (hausdorff n X) + (p (α k)) (r (α k)) S (V (α k)) (hX.finiteOnBounded _ isBounded_ball).ne + have hpos (k : ℕ) : 0 < (hausdorff n X).real (ball (p k) (S*r k)) := + ENNReal.toReal_pos (hX.fullSupport _ _ (mul_pos hS (hr k))).ne' + (hX.finiteOnBounded _ isBounded_ball).ne + have hsupport (k : ℕ) : ∀ᵐ z ∂(P k : Measure (Euclidean n)), z ∈ closedBall 0 (S+6) := by + have hvsmall := (hV (α k)).restrict_radius (hr (α k)) hS.le (by linarith : S ≤ 2*S) + (hεpos (α k)).le + filter_upwards [normalizedBallPushforward_supported (hausdorff n X) (p (α k)) + (hr (α k)) hS.le (V (α k)) (hVm (α k)) hvsmall + (hX.finiteOnBounded _ isBounded_ball).ne (hpos (α k))] with z hz + exact closedBall_subset_closedBall (by linarith [hε1 (α k)]) hz + have hu := weak_compact_uniform_tests hlim (isCompact_closedBall (0 : Euclidean n) (S+6)) + hsupport (euclideanBallProbability_supported hS (by linarith : S ≤ S+6)) hη + obtain ⟨k,hk⟩ := hu.exists + have htest := hk (φ (α k)) (hφLip (α k)) (hφbound (α k)) + rw [normalizedBallPushforward_integral _ _ _ _ _ _ (hpos (α k)) (hVm (α k)) + (hφLip (α k)).continuous,euclideanBallProbability_integral hS] at htest + exact (hbad (α k)).not_ge htest + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/UniformMovingValues.lean b/lean/OAI/Geometry/RCD/Sobolev/UniformMovingValues.lean new file mode 100644 index 0000000000000000000000000000000000000000..6f2fcffa70e8d09766d78e08dbe8231fcfe477e7 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/UniformMovingValues.lean @@ -0,0 +1,30 @@ +import Mathlib.Topology.MetricSpace.Lipschitz +import Mathlib.Topology.UniformSpace.UniformConvergence +import Mathlib.Tactic + +namespace OAI + +/-! # Evaluating local uniform convergence along converging points -/ + +open Set Filter +open scoped Topology +namespace RegularPointCoordinates + +theorem uniform_subtype_moving_values {X Y : Type*} [TopologicalSpace X] [PseudoMetricSpace Y] + {S : Set X} {f : ℕ → X → Y} {g : X → Y} {u : ℕ → X} {x : X} + (hf : TendstoUniformly (fun k (y : S) => f k y) (fun y => g y) atTop) + (hu : Tendsto u atTop (𝓝 x)) (hg : ContinuousAt g x) + (hS : ∀ᶠ k in atTop, u k ∈ S) : + Tendsto (fun k => f k (u k)) atTop (𝓝 (g x)) := by + apply Metric.tendsto_nhds.mpr + intro ε hε + have hh := (hg.tendsto.comp hu).eventually (Metric.ball_mem_nhds (g x) (by linarith : 0 < ε/2)) + filter_upwards [hS,(Metric.tendstoUniformly_iff.mp hf) (ε/2) (by linarith),hh] with k hk hf' hu' + have hv : dist (f k (u k)) (g (u k)) < ε/2 := by + simpa only [dist_comm] using hf' ⟨u k,hk⟩ + have hw : dist (g (u k)) (g x) < ε/2 := hu' + exact (dist_triangle _ _ _).trans_lt (by linarith) + +end RegularPointCoordinates + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/UniformPhysicalInnerTests.lean b/lean/OAI/Geometry/RCD/Sobolev/UniformPhysicalInnerTests.lean new file mode 100644 index 0000000000000000000000000000000000000000..9ec0e648aa73a621d9a1f4949c19678b17d4acf4 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/UniformPhysicalInnerTests.lean @@ -0,0 +1,49 @@ +import OAI.Geometry.RCD.Sobolev.UniformEuclideanInnerTests +import OAI.Geometry.RCD.Sobolev.PointedBallTestError +import OAI.Geometry.RCD.Sobolev.VanishingAnnuli + +namespace OAI + +/-! # Uniform bounded Lipschitz testing on the physical inner balls -/ + +open Set Metric Filter MeasureTheory +open scoped Topology BoundedContinuousFunction +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + +theorem uniform_physical_inner_tests {n : ℕ} {S R : ℝ} + (hS : 0 normalizedBallPushforward μ (p k) (r k) S (V k) (hfin k) + have hν := measured_approximation_laws_tendsto hS hV hfin hpos hε + intro η hη + obtain ⟨δ,hδ,_,hann⟩ := vanishing_annuli_of_euclidean_weak_limit hS hR hν (η/3) (by positivity) + have hsmall := hε.eventually (Iio_mem_nhds (half_pos hδ)) + have heuc := uniform_euclidean_inner_tests hS hR hV hfin hpos hε (η/3) (by positivity) + filter_upwards [hann,hsmall,heuc] with k hk hεk hek + intro φ hφ hφn + have hphys := pointed_ball_test_error μ (hr k) hS.le hRS (show 2*ε k<δ by linarith) + (hV k) (hfin k) (hpos k) φ + have hb := hphys.trans (mul_le_of_le_one_left measureReal_nonneg hφn) + have he := hek φ hφ hφn + rw [euclideanBallProbability_setIntegral hS measurableSet_ball, + inter_eq_left.mpr (ball_subset_ball hRS)] at he + have htriangle := abs_sub_le + ((μ.real (ball (p k) (S*r k)))⁻¹*(∫ x in ball (p k) (R*r k), φ (V k x) ∂μ)) + (∫ z in ball 0 R, φ z ∂(ν k : Measure (Euclidean n))) + ((volume.real (ball (0:Euclidean n) S))⁻¹*(∫ z in ball 0 R, φ z)) + linarith + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/UniformRadialEnergy.lean b/lean/OAI/Geometry/RCD/Sobolev/UniformRadialEnergy.lean new file mode 100644 index 0000000000000000000000000000000000000000..bfb738049ae0d1c79401302c4324b86b6b8858f4 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/UniformRadialEnergy.lean @@ -0,0 +1,223 @@ +import OAI.Geometry.RCD.Harmonic.UniformCenteredRadial +import OAI.Geometry.RCD.Sobolev.DyadicRadialEnergy + +namespace OAI + +/-! # Uniform constants for the actual radial values and energies -/ + +open Set Metric MeasureTheory +open scoped ENNReal InnerProductSpace + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +/-- The value and energy constants precede the center, root, coordinate +map and splitting tolerance. -/ +theorem dyadic_radial_value_energy_uniform {K : ℝ} (m : ℕ) + (hX : NoncollapsedRCD K (m + 2) X) [IsFiniteMeasureOnCompacts (hausdorff (m + 2) X)] + (hhessian : LocalPoissonHessianInput hX) (hmean : LocalHarmonicL2MeanValueInput hX) + (hgradient : LocalHarmonicL2GradientInput hX) + {B J A Cχ κ₀ : ℝ} {d : ℕ} (hB : 0 ≤ B) (hJ : 0 ≤ J) (hA : 0 ≤ A) + (hCχ : 0 ≤ Cχ) (hκ₀ : 0 ≤ κ₀) (hd : 0 < d) : + ∃ Cg D : ℝ, 1 ≤ Cg ∧ 0 < D ∧ ∀ {a κ r0 C L δ ε : ℝ} {p : X}, + ∀ (_ha : 0 ≤ a) (_hκ : 0 ≤ κ) (_hK : -κ ≤ K) + (_hr01 : r0 ≤ 1) (_hscale : a * (3 * r0) ≤ 1) + (_hBG : BallVolumeComparison (hausdorff (m + 2) X) (comparisonModelVolume (m + 1) a)) + (S : DyadicDistanceSources (hausdorff (m + 2) X) hX.quadratic (m + 2) κ p r0) + (T : DyadicDistanceReplacements (hausdorff (m + 2) X) hX.quadratic S B J C) + (_hP : Summable (normalizedPoissonDefect (hausdorff (m + 2) X) hX.quadratic S)) + (_hquarter : ∀ t : ℝ, 0 < t → t ≤ r0 → + |(hausdorff (m + 2) X).real (ball p t) / (euclideanUnitVolume (m + 2) * t ^ (m + 2)) - 1| ≤ 1 / 4) + (u : Fin (m + 2) → SobolevSpace (hausdorff (m + 2) X) hX.quadratic) + (_hbase : ∀ i j, ∀ᵐ x ∂(hausdorff (m + 2) X).restrict (ball p (distanceSourceRadius r0 i / 64)), + localGamma (hausdorff (m + 2) X) hX.quadratic (u j) (u j) x ≤ L ^ 2) + (F : ℕ → Euclidean (m + 2) ≃L[ℝ] Euclidean (m + 2)) + (v : ℕ → X → Euclidean (m + 2)) (_hδ : 0 ≤ δ) + (_hδ1 : radialNormalizationRestrictionConstant (m + 2) * δ ≤ 1) + (_hsmall : ((m + 2 : ℕ) : ℝ) ^ 2 * (normalizationVolumeRatio (m + 1) * δ) ≤ 1 / 64) + (_hexact : ∀ i, IsExactMeanNormalization (hausdorff (m + 2) X) hX.quadratic + (sobolevColumnMap (hausdorff (m + 2) X) hX.quadratic u) + (ball p (2 * distanceSourceRadius r0 i)) measurableSet_ball (F i)) + (_hfirst : ∀ i, FirstOrderSplittingOn (hausdorff (m + 2) X) hX.quadratic p + (2 * distanceSourceRadius r0 i) δ (transformedColumn (hausdorff (m + 2) X) hX.quadratic u (F i)) (v i)) + (_hmetric : ∀ i, IsPointedApproximation p 0 (distanceSourceRadius r0 i / 64) 4 δ + (fun x => (distanceSourceRadius r0 i / 64)⁻¹ • (v i x - v i p))) + (_hf : ∀ i, ∀ᵐ x ∂(hausdorff (m + 2) X).restrict (ball p (distanceSourceRadius r0 i / 4)), + localGamma (hausdorff (m + 2) X) hX.quadratic (T.replacement i) (T.replacement i) x ≤ + (A * distanceSourceRadius r0 i) ^ 2) + (χ : ∀ i, GoodLaplacianCutoff (hausdorff (m + 2) X) hX.quadratic p (distanceSourceRadius r0 i / 64) Cχ) + (_hfit : ∀ i, HasNormalizedAffineImprovement hX u p (distanceSourceRadius r0 i / 64) ((1 / 2 : ℝ) ^ d)) + (V : X → Euclidean (m + 2)) + (_hu : FirstOrderSplittingOn (hausdorff (m + 2) X) hX.quadratic p r0 ε u V) + (_hcurv : ∀ i, -κ₀ ≤ K * (distanceSourceRadius r0 i / 64) ^ 2) + , + ∀ b : Euclidean (m + 2), b ≠ 0 → + ∃ coeff : ℕ → Euclidean (m + 2), + ∃ g : ℕ → SobolevSpace (hausdorff (m + 2) X) hX.quadratic, + ∀ i, + let μ := hausdorff (m + 2) X + let s := distanceSourceRadius r0 i + let r := s / 64 + let E := pinchingEnvelope (7 / 8) (3 / 4) (radialFitQualitativeConstant (m + 2) Cχ * δ) + (normalizedPoissonDefect μ hX.quadratic S) i + let H := centeredAffineSobolev μ hX.quadratic u (χ i).sobolev (V p) (coeff i) + (SobolevSpace.toLp μ hX.quadratic (g i) =ᵐ[μ.restrict (ball p r)] + localGamma μ hX.quadratic (T.replacement i) (sobolevColumnMap μ hX.quadratic u b)) ∧ + ‖normalizeLocalL2 μ (ball p r) (ne_of_lt (hX.finiteOnBounded _ isBounded_ball)) + (dyadicRadialTarget hX T u _hbase i b - SobolevSpace.restrictLp μ hX.quadratic (ball p r) H)‖ ≤ + D * r * ‖(F i).symm b‖ * Real.sqrt E ∧ + ‖normalizeLocalL2 μ (ball p r) (ne_of_lt (hX.finiteOnBounded _ isBounded_ball)) + (SobolevSpace.restrictLp μ hX.quadratic (ball p r) (g i - H))‖ ^ 2 ≤ + (2 * D ^ 2 + 8192 * (((m + 2 : ℕ) : ℝ) * 2) ^ 2 * B * + ((4 / (3 * euclideanUnitVolume (m + 2))) * (64 : ℝ) ^ (m + 2))) * + (r * ‖(F i).symm b‖) ^ 2 * E ∧ + (μ.real (ball p (r / 2)))⁻¹ * + (∫ x in ball p (r / 2), localGamma μ hX.quadratic (g i - H) (g i - H) x ∂μ) ≤ + radialEnergyConstant K (m + 2) Cg 1 A B J Cχ * + ((5 / 3 : ℝ) * ((1 / 2 : ℝ) ^ (m + 2))⁻¹ * D ^ 2 + + (4 / (3 * euclideanUnitVolume (m + 2))) * (128 : ℝ) ^ (m + 2)) * + ‖(F i).symm b‖ ^ 2 * E := by + obtain ⟨Cg, hCg, henergy⟩ := framed_radial_fit_energy hX hhessian hgradient (by omega) hκ₀ + obtain ⟨D, hD, hallfits⟩ := dyadic_centered_radial_estimate_uniform m hX hhessian hmean + hB hJ hA hCχ hκ₀ hd + refine ⟨Cg, D, hCg, hD, ?_⟩ + intro a κ r0 C L δ ε p ha hκ hK hr01 hscale hBG S T hP hquarter u hbase F v hδ + hδ1 hsmall hexact hfirst hmetric hf χ hfit V hu hcurv + have hfits := hallfits ha hκ hK hr01 hscale hBG S T hP hquarter u hbase F v hδ + hδ1 hsmall hexact hfirst hmetric hf χ hfit V hu hcurv + let μ := hausdorff (m + 2) X + let hQ := hX.quadratic + let r : ℕ → ℝ := fun i => distanceSourceRadius r0 i / 64 + let E := pinchingEnvelope (7 / 8) (3 / 4) (radialFitQualitativeConstant (m + 2) Cχ * δ) + (normalizedPoissonDefect μ hQ S) + have hr (i : ℕ) : 0 < r i := div_pos (distanceSourceRadius_pos S.radius_pos i) (by norm_num) + have hrr (i : ℕ) : r i ≤ r0 := by + have h := distanceSourceRadius_outer_le S.radius_pos.le i + have hs := distanceSourceRadius_pos S.radius_pos i + dsimp only [r]; linarith + have hsub (i : ℕ) : ball p (r i) ⊆ ball p r0 := ball_subset_ball (hrr i) + have hδle : δ ≤ 1 := by + have hh := mul_le_mul_of_nonneg_right (radialNormalizationRestrictionConstant_ge_one (m + 2)) hδ + linarith + have hnormalized (i : ℕ) := (hfirst i).mono_error μ hQ hδ hδle + obtain ⟨_hEs, _hEsum, hEN⟩ := radial_fit_pinching_envelope_budget S hκ hCχ hδ hP + intro b hb + obtain ⟨_c, coeff, _hfit, _hcenter, hvalues⟩ := hfits b hb + have hpair (i : ℕ) : + ∃ G : LocalHessianPairing μ hQ (ball p (r i)) (T.replacement i) (sobolevColumnMap μ hQ u b), + ∀ (H : SobolevSpace μ hQ) {I : ℝ}, IsSobolevHarmonicOn μ hQ (ball p (r i)) H → + ‖dyadicRadialTarget hX T u hbase i b - SobolevSpace.restrictLp μ hQ (ball p (r i)) H‖ ^ 2 ≤ I → + (∫ x in ball p (r i / 2), localGamma μ hQ (G.mixed - H) (G.mixed - H) x ∂μ) ≤ + radialEnergyConstant K (m + 2) Cg 1 A B J Cχ * + (I / (r i) ^ 2 + (distanceSourceRadius r0 i ^ ((m + 2 : ℕ) : ℝ) * + normalizedPoissonDefect μ hQ S i) * ‖(F i).symm b‖ ^ 2) := by + have hs := distanceSourceRadius_pos S.radius_pos i + have hsle : distanceSourceRadius r0 i ≤ r0 := by + have hh := distanceSourceRadius_outer_le S.radius_pos.le i + linarith + have hsubN : ball p (distanceSourceRadius r0 i / 4) ⊆ + ball p (2 * distanceSourceRadius r0 i) := ball_subset_ball (by linarith) + have hann := relative_volume_annulus (show 2 ≤ m + 2 by omega) (hr i) + (euclideanUnitVolume_pos (m + 2)) (hquarter _ (hr i) (hrr i)) + (hquarter (2 * r i) (by positivity) (by dsimp only [r]; linarith)) + simpa only [dyadicRadialTarget, r] using henergy hκ hK hB hJ hA (by norm_num : (0 : ℝ) ≤ 1) hCχ p S T i + (hsle.trans hr01) (hcurv i) u (F i) + (fun j => ((hnormalized i).harmonic j).mono μ hQ hsubN) + (fun j => ae_restrict_of_ae_restrict_of_subset hsubN ((hnormalized i).gradient j)) + (hf i) (χ i) hann.1 hann.2 (hbase i) b + choose G hG using hpair + refine ⟨coeff, fun i => (G i).mixed, ?_⟩ + intro i + have hri : 0 < r i := hr i + have hω : 0 < euclideanUnitVolume (m + 2) := euclideanUnitVolume_pos (m + 2) + dsimp only + let s := distanceSourceRadius r0 i + let H := centeredAffineSobolev μ hQ u (χ i).sobolev (V p) (coeff i) + have hη : SobolevSpace.restrictLp μ hQ (ball p (r i)) (χ i).sobolev = + restrictedOne μ (ball p (r i)) (ne_of_lt (hX.finiteOnBounded _ isBounded_ball)) := by + apply restrictLp_eq_one_of_representative + filter_upwards [ae_restrict_of_ae (χ i).representative, ae_restrict_mem measurableSet_ball] + with x hx hxr + exact hx.trans ((χ i).one x hxr) + have hrestrict := centeredAffineSobolev_restrict μ hQ u (χ i).sobolev (V p) (coeff i) + (ball p (r i)) (ne_of_lt (hX.finiteOnBounded _ isBounded_ball)) hη + have hH : IsSobolevHarmonicOn μ hQ (ball p (r i)) H := + centeredAffineSobolev_harmonic μ hQ u (χ i).sobolev (V p) (coeff i) _ + (fun j => (hu.harmonic j).mono μ hQ (hsub i)) ((χ i).harmonic_on_inner_ball μ hQ) + have hnorm : ‖normalizeLocalL2 μ (ball p (r i)) (ne_of_lt (hX.finiteOnBounded _ isBounded_ball)) + (dyadicRadialTarget hX T u hbase i b - SobolevSpace.restrictLp μ hQ (ball p (r i)) H)‖ ≤ + D * r i * ‖(F i).symm b‖ * Real.sqrt (E i) := by + rw [hrestrict] + exact hvalues i + refine ⟨(G i).mixed_rep, hnorm, ?_, ?_⟩ + · have hI := norm_sq_le_of_normalized_fit μ (ball p (r i)) + (ne_of_lt (hX.finiteOnBounded _ isBounded_ball)) (ne_of_gt (hX.fullSupport p _ (hr i))) + _ (by positivity : 0 ≤ D * r i * ‖(F i).symm b‖ * Real.sqrt (E i)) hnorm + have hgrad (j : Fin (m + 2)) : ∀ᵐ x ∂μ.restrict (ball p (r i)), + localGamma μ hQ (transformedColumn μ hQ u (F i) j) + (transformedColumn μ hQ u (F i) j) x ≤ (2 : ℝ) ^ 2 := by + have hsubN : ball p (r i) ⊆ ball p (2 * s) := by + apply ball_subset_ball + dsimp only [r, s] + linarith [distanceSourceRadius_pos S.radius_pos i] + simpa only [one_add_one_eq_two] using + ae_restrict_of_ae_restrict_of_subset hsubN ((hnormalized i).gradient j) + have hvalue := T.framed_value_transfer μ hQ i u (F i) hgrad b (G i) H (hbase i) hI + have houter := hquarter (r i) (hr i) (hrr i) + have hV := (quarter_volume_bounds (hr i) hω houter).1 + have hN := radial_testing_volume_ratio (distanceSourceRadius_pos S.radius_pos i) hω houter + have hmass : (S.source i).real (ball p s) ≤ s ^ ((m + 2 : ℕ) : ℝ) * + normalizedPoissonDefect μ hQ S i := by + rw [normalizedPoissonDefect_units] + have hn : 0 ≤ κ * s ^ 2 * μ.real (ball p s) := by positivity + exact le_add_of_nonneg_right hn + have hMP : (S.source i).real (ball p s) / μ.real (ball p (r i)) ≤ + ((4 / (3 * euclideanUnitVolume (m + 2))) * (64 : ℝ) ^ (m + 2)) * E i := by + calc + _ ≤ (s ^ ((m + 2 : ℕ) : ℝ) * normalizedPoissonDefect μ hQ S i) / + μ.real (ball p (r i)) := div_le_div_of_nonneg_right hmass hV.le + _ = (s ^ ((m + 2 : ℕ) : ℝ) / μ.real (ball p (r i))) * + normalizedPoissonDefect μ hQ S i := by ring + _ ≤ _ := mul_le_mul hN (hEN i).2 + (normalizedPoissonDefect_nonneg μ hQ S hκ i) (by positivity) + have hsr : 64 * r i = distanceSourceRadius r0 i := by dsimp only [r]; ring + have hh := radial_fit_value_volume_units (r := r i) hV + (sq_nonneg (((m + 2 : ℕ) : ℝ) * 2)) hB (hEN i).1 hMP + (by simpa only [hsr] using hvalue) + rw [normalizeLocalL2_norm_sq, ← l2_norm_sq_eq_integral] + exact hh + have hI := norm_sq_le_of_normalized_fit μ (ball p (r i)) + (ne_of_lt (hX.finiteOnBounded _ isBounded_ball)) (ne_of_gt (hX.fullSupport p _ (hr i))) + _ (by positivity : 0 ≤ D * r i * ‖(F i).symm b‖ * Real.sqrt (E i)) hnorm + have he := hG i H hH hI + have hW : 0 < μ.real (ball p (r i / 2)) := ENNReal.toReal_pos + (ne_of_gt (hX.fullSupport p _ (by positivity))) (ne_of_lt (hX.finiteOnBounded _ isBounded_ball)) + have hinnerle : r i / 2 ≤ r0 := (by linarith [hrr i, hr i]) + have houter := hquarter (r i) (hr i) (hrr i) + have hinner := hquarter (r i / 2) (by positivity) hinnerle + have hratio := radial_fraction_volume_ratio (hr i) (by norm_num : (0 : ℝ) < 1 / 2) + (euclideanUnitVolume_pos (m + 2)) houter + (by simpa only [show (1 / 2 : ℝ) * r i = r i / 2 by ring] using hinner) + have hNratio : s ^ ((m + 2 : ℕ) : ℝ) / μ.real (ball p (r i / 2)) ≤ + (4 / (3 * euclideanUnitVolume (m + 2))) * (128 : ℝ) ^ (m + 2) := by + obtain ⟨_, hlo, _⟩ := quarter_volume_bounds (by positivity : 0 < r i / 2) + (euclideanUnitVolume_pos (m + 2)) hinner + apply (div_le_iff₀ hW).mpr + have heq : (4 / (3 * euclideanUnitVolume (m + 2))) * (128 : ℝ) ^ (m + 2) * + ((3 / 4 : ℝ) * euclideanUnitVolume (m + 2) * (r i / 2) ^ (m + 2)) = s ^ ((m + 2 : ℕ) : ℝ) := by + have hri : r i / 2 = s / 128 := by dsimp only [r, s]; ring + rw [hri, Real.rpow_natCast, div_pow] + field_simp [(euclideanUnitVolume_pos (m + 2)).ne'] + rw [← heq] + exact mul_le_mul_of_nonneg_left hlo (by positivity) + exact radial_fit_energy_volume_units (hr i) hW (Real.rpow_nonneg (distanceSourceRadius_pos S.radius_pos i).le _) + (radialEnergyConstant_pos (G := Cg) (ε := 1) (A := A) hB hJ hCχ).le + (hEN i).1 (hEN i).2 hratio hNratio he + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/UniformRadialResolvent.lean b/lean/OAI/Geometry/RCD/Sobolev/UniformRadialResolvent.lean new file mode 100644 index 0000000000000000000000000000000000000000..505ef0f02d7c3f9b2acb90d8cc8e57b1d2fb2c1e --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/UniformRadialResolvent.lean @@ -0,0 +1,196 @@ +import OAI.Geometry.RCD.Metric.RescaledBallVolume +import OAI.Analysis.RCDHeat.ExistingAnalytic + +namespace OAI + +/-! # A radial resolvent with only a lower rescaled curvature bound + +The resolvent and heat-gradient estimates hold at the chosen time. The volume bound is supplied by CD, including the improved +nonnegative-curvature case. No two-sided bound on curvature is needed. +-/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped Topology NNReal ENNReal + +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + +theorem NoncollapsedRCD.radial_resolvent_of_volume + (K : ℝ) (n : ℕ) (hn : 2 ≤ n) (hX : NoncollapsedRCD K n X) + (p : X) {R t D : ℝ} (hR : 0 < R) (ht : 0 < t) + (hD : 0 < D) (hKt : 1/2 ≤ 1+K*t) (hsize : t * D ≤ R^2/1024) + (hvolume : ∀ x, dist p x ≤ 4*R → + (hausdorff n X).real (closedBall p (2*R)) ≤ + D * (hausdorff n X).real (closedBall x (R/96))) : + letI : ProperSpace X := hX.proper K n hn + letI : SeparableSpace X := hX.separable + letI : IsLocallyFiniteMeasure (hausdorff n X) := locallyFinite_of_finiteOnBounded _ hX.finiteOnBounded + let μ := hausdorff n X + let L : ℝ≥0 := ⟨R⁻¹,inv_nonneg.mpr hR.le⟩ + ∃ (u : SobolevSpace μ hX.quadratic) (d : Lp ℝ 2 μ) (v : X → ℝ), + IsWeakLaplacian μ hX.quadratic u d ∧ (∀ᵐ x ∂μ, |d x| ≤ 2/t) ∧ + LipschitzWith (2*L) v ∧ SobolevSpace.toLp μ hX.quadratic u =ᵐ[μ] v ∧ + (∀ᵐ x ∂μ, |SobolevSpace.toLp μ hX.quadratic u x| ≤ 1) ∧ + ∀ x, dist p x ≤ 4*R → |v x-radialCutoff p R x| < 1/8 := by + let : ProperSpace X := hX.proper K n hn + let : SeparableSpace X := hX.separable + let μ := hausdorff n X + let : IsLocallyFiniteMeasure μ := locallyFinite_of_finiteOnBounded μ hX.finiteOnBounded + let hQ := hX.quadratic + let L : ℝ≥0 := ⟨R⁻¹,inv_nonneg.mpr hR.le⟩ + let f := SobolevSpace.toLp μ hQ (radialSobolevCutoff μ hQ p hR) + let u := SobolevSpace.resolventAt μ hQ t ht f + let F := resolventLp μ hQ t ht f + have hf : radialCutoff p R =ᵐ[μ] f := (radialSobolevCutoff_coe μ hQ p hR).symm + have hφ := radialCutoff_lipschitz p hR + have hM (x : X) : |radialCutoff p R x| ≤ (1:ℝ≥0) := by + rw [abs_of_nonneg (radialCutoff_bounds p R x).1] + exact (radialCutoff_bounds p R x).2 + have hMf : ∀ᵐ x ∂μ, |f x| ≤ (1:ℝ≥0) := hf.mono fun x hx => hx ▸ hM x + have hKt0 : 0 < 1+K*t := by linarith + obtain ⟨v,hv,he⟩ := hX.resolvent_lipschitz K n hn f hφ hf 1 hM ht hKt0 + have hv' : LipschitzWith (2*L) v := hv.weaken (by + apply NNReal.coe_le_coe.mp + change R⁻¹/(1+K*t) ≤ 2*R⁻¹ + apply (div_le_iff₀ hKt0).mpr + nlinarith [inv_nonneg.mpr hR.le]) + let d := t⁻¹ • (F-f) + have hFM : ∀ᵐ x ∂μ, |F x| ≤ (1:ℝ≥0) := resolventLp_abs_bound μ hQ t ht f 1 hMf + refine ⟨u,d,v,SobolevSpace.resolventAt_weak_laplacian μ hQ t ht f,?_,hv',he,hFM,?_⟩ + · filter_upwards [hFM,hMf,Lp.coeFn_smul t⁻¹ (F-f),Lp.coeFn_sub F f] with x hx hfx hd hsub + rw [hd,Pi.smul_apply,smul_eq_mul,hsub,Pi.sub_apply,abs_mul,abs_of_pos (inv_pos.mpr ht)] + change t⁻¹*|F x-f x| ≤ 2/t + have hb : |F x-f x| ≤ 2 := (abs_sub _ _).trans (by norm_num at hx hfx ⊢; linarith) + calc _ ≤ t⁻¹*2 := mul_le_mul_of_nonneg_left hb (inv_pos.mpr ht).le + _ = _ := by ring + · intro x hx + have hr : 0 < R/96 := by positivity + have h0 : μ (closedBall x (R/96)) ≠ 0 := ne_of_gt + ((hX.fullSupport x (R/96) hr).trans_le (measure_mono ball_subset_closedBall)) + have htop : μ (closedBall x (R/96)) ≠ ∞ := (isCompact_closedBall x (R/96)).measure_lt_top.ne + have hm : 0 < μ.real (closedBall x (R/96)) := ENNReal.toReal_pos h0 htop + have hvol := hvolume x hx + have herr := resolventLp_error_energy μ hQ t ht (radialSobolevCutoff μ hQ p hR) + have hen := radialSobolevCutoff_energy_le μ hQ p hR + have herror : ‖F-f‖^2 ≤ μ.real (closedBall x (R/96))/1024 := by + have hR2 : 0 < R^2 := sq_pos_of_pos hR + have htt : t/R^2 ≤ 1/(1024*D) := by + apply (div_le_iff₀ hR2).mpr + rw [show 1 / (1024*D) * R^2 = R^2 / (1024*D) by ring] + apply (le_div_iff₀ (by positivity : 0 < 1024*D)).mpr + nlinarith only [hsize] + have he2 := mul_le_mul_of_nonneg_left hen (show 0 ≤ 2*t by positivity) + have heq : 2*t*(μ.real (closedBall p (2*R))/(2*R^2)) = + (t/R^2)*μ.real (closedBall p (2*R)) := by ring + rw [heq] at he2 + have hprod := mul_le_mul_of_nonneg_right htt (show 0 ≤ μ.real (closedBall p (2*R)) from ENNReal.toReal_nonneg) + change ‖F-f‖^2 ≤ _ at herr + have hden : 0 < 1024*D := by positivity + have hvol' : μ.real (closedBall p (2*R)) / (1024*D) ≤ + μ.real (closedBall x (R/96))/1024 := by + apply (div_le_iff₀ hden).mpr + nlinarith only [hvol] + have hprod' : (t/R^2)*μ.real (closedBall p (2*R)) ≤ + μ.real (closedBall p (2*R))/(1024*D) := by + simpa only [one_div, div_eq_mul_inv, mul_comm, one_mul] using hprod + exact herr.trans (he2.trans (hprod'.trans hvol')) + obtain ⟨a,ha,ha2,hab⟩ := lipschitz_lp_pointwise_error μ hv' hφ he hf.symm x hr.le h0 + have ha2' : a^2 ≤ (1:ℝ)/1024 := by + apply ha2.trans + apply (div_le_iff₀ hm).mpr + nlinarith only [herror] + have hal : a ≤ (1:ℝ)/32 := by nlinarith + change |v x-radialCutoff p R x| ≤ (2*R⁻¹+R⁻¹)*(R/96)+a at hab + have hrad : (2*R⁻¹+R⁻¹)*(R/96) = (1:ℝ)/32 := by field_simp; ring + rw [hrad] at hab + linarith + + +/-- A fixed lower rescaled curvature bound gives a uniform resolvent time +and therefore a uniform bounded-Laplacian approximation of the radial cutoff. -/ +theorem NoncollapsedRCD.uniform_radial_resolvent_bounded {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (hn : 2 ≤ n) (a : ℝ) (ha : 0 ≤ a) : + ∃ D : ℝ, 1 ≤ D ∧ ∀ (p : X) (R : ℝ) (_hR : 0 < R), -a ≤ K*R^2 → + letI : ProperSpace X := hX.proper K n hn + letI : SeparableSpace X := hX.separable + letI : IsLocallyFiniteMeasure (hausdorff n X) := + locallyFinite_of_finiteOnBounded _ hX.finiteOnBounded + let μ := hausdorff n X + let L : ℝ≥0 := ⟨R⁻¹, inv_nonneg.mpr _hR.le⟩ + ∃ (u : SobolevSpace μ hX.quadratic) (d : Lp ℝ 2 μ) (v : X → ℝ), + IsWeakLaplacian μ hX.quadratic u d ∧ + (∀ᵐ x ∂μ, |d x| ≤ (2048*D)/R^2) ∧ + LipschitzWith (2*L) v ∧ SobolevSpace.toLp μ hX.quadratic u =ᵐ[μ] v ∧ + (∀ᵐ x ∂μ, |SobolevSpace.toLp μ hX.quadratic u x| ≤ 1) ∧ + ∀ x, dist p x ≤ 4*R → |v x-radialCutoff p R x| < 1/8 := by + obtain ⟨D₀, hD₀, hvolume⟩ := hX.rescaled_ball_volume_factor hn + (a := 49 * a) (δ := 1/672) (by positivity) (by norm_num) (by norm_num) + let D := max D₀ (a + 1) + have hD : 1 ≤ D := hD₀.trans (le_max_left _ _) + have haD : a + 1 ≤ D := le_max_right _ _ + refine ⟨D, hD, ?_⟩ + intro p R hR hcurv + dsimp only + have hD0 : 0 < D := zero_lt_one.trans_le hD + let t := R^2/(1024*D) + have ht : 0 < t := div_pos (sq_pos_of_pos hR) (by positivity) + have htime : t*D = R^2/1024 := by dsimp only [t]; field_simp + have hKt : 1/2 ≤ 1+K*t := by + have hh : -a/(1024*D) ≤ K*t := by + dsimp only [t] + rw [← mul_div_assoc] + exact div_le_div_of_nonneg_right hcurv (by positivity) + have hd : -1/2 ≤ -a/(1024*D) := by + apply (le_div_iff₀ (by positivity : 0 < 1024*D)).mpr + nlinarith only [haD, ha] + linarith only [hh, hd] + have hv : ∀ x, dist p x ≤ 4*R → + (hausdorff n X).real (closedBall p (2*R)) ≤ + D * (hausdorff n X).real (closedBall x (R/96)) := by + intro x hx + have hc : -(49 * a) ≤ K*(7*R)^2 := by nlinarith only [hcurv] + have hdx : dist x p ≤ 7*R := by rw [dist_comm]; linarith only [hx, hR] + have hh := hvolume p (7*R) (by positivity) hc x hdx + have hs : closedBall p (2*R) ⊆ ball p (7*R) := + closedBall_subset_ball (by linarith only [hR]) + have hsmall : (1/672:ℝ)*(7*R) = R/96 := by ring + rw [hsmall] at hh + have hh' : (hausdorff n X).real (ball p (7 * R)) ≤ + D * (hausdorff n X).real (ball x (R / 96)) := + hh.trans (mul_le_mul_of_nonneg_right (le_max_left _ _) ENNReal.toReal_nonneg) + exact (measureReal_mono hs (hX.finiteOnBounded _ isBounded_ball).ne).trans + (hh'.trans (mul_le_mul_of_nonneg_left + (measureReal_mono ball_subset_closedBall + (hX.finiteOnBounded _ isBounded_closedBall).ne) hD0.le)) + obtain ⟨u, d, v, hud, hd, rest⟩ := hX.radial_resolvent_of_volume K n hn p hR ht hD0 + hKt htime.le hv + refine ⟨u, d, v, hud, ?_, rest⟩ + have hbound : 2/t = (2048*D)/R^2 := by dsimp only [t]; field_simp; norm_num + simpa only [hbound] using hd + + +/-- A fixed lower rescaled curvature bound gives a uniform resolvent time +and therefore a uniform bounded-Laplacian approximation of the radial cutoff. -/ +theorem NoncollapsedRCD.uniform_radial_resolvent {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (hn : 2 ≤ n) : + ∃ D : ℝ, 1 ≤ D ∧ ∀ (p : X) (R : ℝ) (_hR : 0 < R), -1 ≤ K*R^2 → + letI : ProperSpace X := hX.proper K n hn + letI : SeparableSpace X := hX.separable + letI : IsLocallyFiniteMeasure (hausdorff n X) := + locallyFinite_of_finiteOnBounded _ hX.finiteOnBounded + let μ := hausdorff n X + let L : ℝ≥0 := ⟨R⁻¹, inv_nonneg.mpr _hR.le⟩ + ∃ (u : SobolevSpace μ hX.quadratic) (d : Lp ℝ 2 μ) (v : X → ℝ), + IsWeakLaplacian μ hX.quadratic u d ∧ + (∀ᵐ x ∂μ, |d x| ≤ (2048*D)/R^2) ∧ + LipschitzWith (2*L) v ∧ SobolevSpace.toLp μ hX.quadratic u =ᵐ[μ] v ∧ + (∀ᵐ x ∂μ, |SobolevSpace.toLp μ hX.quadratic u x| ≤ 1) ∧ + ∀ x, dist p x ≤ 4*R → |v x-radialCutoff p R x| < 1/8 := by + exact hX.uniform_radial_resolvent_bounded hn 1 (by norm_num) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/UniformRealAlgebra.lean b/lean/OAI/Geometry/RCD/Sobolev/UniformRealAlgebra.lean new file mode 100644 index 0000000000000000000000000000000000000000..51e5d639296a3d3fff4c25070d79279ab25a3c04 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/UniformRealAlgebra.lean @@ -0,0 +1,28 @@ +import OAI.Geometry.RCD.Sobolev.UniformCenteredConvergence + +namespace OAI + +/-! # Addition of uniformly convergent real-valued families -/ + +open Filter +namespace RegularPointCoordinates + +theorem uniform_real_add {X : Type*} {f g : ℕ → X → ℝ} {F G : X → ℝ} + (hf : TendstoUniformly f F atTop) (hg : TendstoUniformly g G atTop) : + TendstoUniformly (fun k x => f k x+g k x) (fun x => F x+G x) atTop := by + apply Metric.tendstoUniformly_iff.mpr + intro ε hε + filter_upwards [(Metric.tendstoUniformly_iff.mp hf) (ε/2) (by linarith), + (Metric.tendstoUniformly_iff.mp hg) (ε/2) (by linarith)] with k hk hj + intro x + have hh := hk x + have hh' := hj x + rw [Real.dist_eq] at hh hh' ⊢ + rcases abs_lt.mp hh with ⟨ha,hb⟩ + rcases abs_lt.mp hh' with ⟨hc,hd⟩ + apply abs_lt.mpr + constructor <;> linarith + +end RegularPointCoordinates + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/UniformSlicesSpacetimeL2GoodSet.lean b/lean/OAI/Geometry/RCD/Sobolev/UniformSlicesSpacetimeL2GoodSet.lean new file mode 100644 index 0000000000000000000000000000000000000000..0ed32d6386ffecf800e1b22379420652e3138f08 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/UniformSlicesSpacetimeL2GoodSet.lean @@ -0,0 +1,59 @@ +import Mathlib.MeasureTheory.Integral.DominatedConvergence +import Mathlib.MeasureTheory.Integral.Prod +import Mathlib.MeasureTheory.Measure.Lebesgue.Basic + +namespace OAI + +/-! # Strong spacetime convergence with bounds at good times + +A single countable exceptional time set is null for Lebesgue measure. +The amplitude bound is needed only at good interior times; values on the +exceptional set and outside the time cylinder are unrestricted. +-/ + +open Set Filter MeasureTheory +open scoped Topology +noncomputable section +namespace RegularPointCoordinates + +theorem uniform_slices_spacetime_L2_on_good_times + {Y : Type*} [MeasurableSpace Y] [PseudoMetricSpace Y] + (μ : Measure Y) [IsFiniteMeasure μ] {δ M : ℝ} + (f : ℕ → ℝ → Y → ℝ) (g : ℝ → Y → ℝ) + (hf : ∀ k, Measurable (Function.uncurry (f k))) + (hg : Measurable (Function.uncurry g)) + (hb : ∀ k t, t ∈ Ioo δ 1 → ∀ x, |f k t x| ≤ M) + (N : Set ℝ) (hN : N.Countable) + (hgb : ∀ t ∈ Ioo δ 1, t ∉ N → ∀ x, |g t x| ≤ M) + (hl : ∀ t ∈ Ioo δ 1, t ∉ N → TendstoUniformly (fun k => f k t) (g t) atTop) : + Tendsto (fun k => ∫ q : ℝ × Y, (f k q.1 q.2-g q.1 q.2)^2 + ∂(volume.restrict (Ioo δ 1)).prod μ) atTop (𝓝 0) := by + let ν := (volume.restrict (Ioo δ 1)).prod μ + have hgood : ∀ᵐ t ∂volume.restrict (Ioo δ 1), t ∈ Ioo δ 1 ∧ t ∉ N := + (ae_restrict_mem measurableSet_Ioo).and (ae_restrict_of_ae (hN.ae_notMem volume)) + have hpair : ∀ᵐ q ∂ν, q.1 ∈ Ioo δ 1 ∧ q.1 ∉ N := + Measure.quasiMeasurePreserving_fst.tendsto_ae.eventually hgood + have hlim : ∀ᵐ q ∂ν, Tendsto (fun k => (f k q.1 q.2-g q.1 q.2)^2) atTop (𝓝 0) := by + filter_upwards [hpair] with q hq + have hh := (((hl q.1 hq.1 hq.2).tendsto_at q.2).sub_const (g q.1 q.2)).pow 2 + simpa only [sub_self,zero_pow (by norm_num : 2 ≠ 0)] using hh + have hdom (k : ℕ) : ∀ᵐ q ∂ν, ‖(f k q.1 q.2-g q.1 q.2)^2‖ ≤ 4*M^2 := by + filter_upwards [hpair] with q hq + have habs : |f k q.1 q.2-g q.1 q.2| ≤ 2*M := + (abs_sub _ _).trans (by linarith [hb k q.1 hq.1 q.2,hgb q.1 hq.1 hq.2 q.2]) + rw [Real.norm_eq_abs,abs_of_nonneg (sq_nonneg _)] + calc + _ = |f k q.1 q.2-g q.1 q.2|^2 := (sq_abs _).symm + _ ≤ (2*M)^2 := pow_le_pow_left₀ (abs_nonneg _) habs 2 + _ = _ := by ring + have hh := tendsto_integral_of_dominated_convergence (μ := ν) (fun _ => 4*M^2) + (fun k => (((hf k).sub hg).pow_const 2).aestronglyMeasurable) + (integrable_const _) hdom hlim + simp only [integral_zero] at hh + exact hh + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/UniformSlicesWeightedIterated.lean b/lean/OAI/Geometry/RCD/Sobolev/UniformSlicesWeightedIterated.lean new file mode 100644 index 0000000000000000000000000000000000000000..c6d57da0cae93cf75738bcc79391c1a17c56a6bf --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/UniformSlicesWeightedIterated.lean @@ -0,0 +1,64 @@ +import OAI.Geometry.RCD.Sobolev.UniformSlicesWeightedLimit + +namespace OAI + +/-! # Iterated weak pairings along uniformly convergent time slices -/ + +open Set Filter MeasureTheory +open scoped Topology +noncomputable section +namespace RegularPointCoordinates + +theorem weighted_spacetime_integral_eq_iterated + {Y : Type*} [MeasurableSpace Y] (μ : Measure Y) [IsFiniteMeasure μ] + (τ : Measure ℝ) [IsFiniteMeasure τ] (f : ℝ → Y → ℝ) + (hf : Measurable (Function.uncurry f)) {M : ℝ} + (hb : ∀ᵐ q ∂τ.prod μ, |f q.1 q.2| ≤ M) + (θ : ℝ → ℝ) (hθ : Integrable θ τ) (φ : Y → ℝ) (hφ : Integrable φ μ) : + (∫ q : ℝ × Y, θ q.1*φ q.2*f q.1 q.2 ∂τ.prod μ) = + ∫ t, θ t * ∫ x, φ x*f t x ∂μ ∂τ := by + have hw : Integrable (fun q : ℝ × Y => θ q.1*φ q.2) (τ.prod μ) := hθ.mul_prod hφ + have hi : Integrable (fun q : ℝ × Y => θ q.1*φ q.2*f q.1 q.2) (τ.prod μ) := + hw.mul_bdd hf.aestronglyMeasurable (by simpa only [Real.norm_eq_abs] using hb) + rw [integral_prod _ hi] + apply integral_congr_ae + exact Eventually.of_forall fun t => by + dsimp only + rw [← integral_const_mul] + apply integral_congr_ae + exact Eventually.of_forall fun x => mul_assoc _ _ _ + +theorem uniform_slices_weighted_iterated_limit + {Y : Type*} [MeasurableSpace Y] [PseudoMetricSpace Y] + (μ : Measure Y) [IsFiniteMeasure μ] {δ M : ℝ} + (f : ℕ → ℝ → Y → ℝ) (g : ℝ → Y → ℝ) + (hf : ∀ k, Measurable (Function.uncurry (f k))) + (hg : Measurable (Function.uncurry g)) + (hb : ∀ k t, t ∈ Ioo δ 1 → ∀ x, |f k t x| ≤ M) + (N : Set ℝ) (hN : N.Countable) + (hgb : ∀ t ∈ Ioo δ 1, t ∉ N → ∀ x, |g t x| ≤ M) + (hl : ∀ t ∈ Ioo δ 1, t ∉ N → TendstoUniformly (fun k => f k t) (g t) atTop) + (θ : ℝ → ℝ) (hθ : Integrable θ (volume.restrict (Ioo δ 1))) + (φ : Y → ℝ) (hφ : Integrable φ μ) : + Tendsto (fun k => ∫ t in Ioo δ 1, θ t * ∫ x, φ x*f k t x ∂μ) atTop + (𝓝 (∫ t in Ioo δ 1, θ t * ∫ x, φ x*g t x ∂μ)) := by + let τ := volume.restrict (Ioo δ 1) + have hgood : ∀ᵐ t ∂τ, t ∈ Ioo δ 1 ∧ t ∉ N := + (ae_restrict_mem measurableSet_Ioo).and (ae_restrict_of_ae (hN.ae_notMem volume)) + have hpair : ∀ᵐ q ∂τ.prod μ, q.1 ∈ Ioo δ 1 ∧ q.1 ∉ N := + Measure.quasiMeasurePreserving_fst.tendsto_ae.eventually hgood + have hfb (k : ℕ) : ∀ᵐ q ∂τ.prod μ, |f k q.1 q.2| ≤ M := + hpair.mono fun q hq => hb k q.1 hq.1 q.2 + have hgb' : ∀ᵐ q ∂τ.prod μ, |g q.1 q.2| ≤ M := + hpair.mono fun q hq => hgb q.1 hq.1 hq.2 q.2 + have he (k : ℕ) := weighted_spacetime_integral_eq_iterated μ τ (f k) (hf k) (hfb k) θ hθ φ hφ + have heg := weighted_spacetime_integral_eq_iterated μ τ g hg hgb' θ hθ φ hφ + have hh := uniform_slices_weighted_spacetime_limit μ f g hf hb N hN hl θ hθ φ hφ + dsimp only [τ] at he heg + simpa only [he,heg] using hh + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/UniformSlicesWeightedLimit.lean b/lean/OAI/Geometry/RCD/Sobolev/UniformSlicesWeightedLimit.lean new file mode 100644 index 0000000000000000000000000000000000000000..5e457478a397f496f2ce7e7987d542baf7a12e59 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/UniformSlicesWeightedLimit.lean @@ -0,0 +1,52 @@ +import OAI.Geometry.RCD.Sobolev.UniformSlicesSpacetimeL2GoodSet + +namespace OAI + +/-! # Weighted spacetime value pairings along the common subsequence + +Spatial and temporal tests need only be integrable. Uniform slice bounds +and the common countable exceptional set provide the domination. +-/ + +open Set Filter MeasureTheory +open scoped Topology +noncomputable section +namespace RegularPointCoordinates + +theorem uniform_slices_weighted_spacetime_limit + {Y : Type*} [MeasurableSpace Y] [PseudoMetricSpace Y] + (μ : Measure Y) [IsFiniteMeasure μ] {δ M : ℝ} + (f : ℕ → ℝ → Y → ℝ) (g : ℝ → Y → ℝ) + (hf : ∀ k, Measurable (Function.uncurry (f k))) + (hb : ∀ k t, t ∈ Ioo δ 1 → ∀ x, |f k t x| ≤ M) + (N : Set ℝ) (hN : N.Countable) + (hl : ∀ t ∈ Ioo δ 1, t ∉ N → TendstoUniformly (fun k => f k t) (g t) atTop) + (θ : ℝ → ℝ) (hθ : Integrable θ (volume.restrict (Ioo δ 1))) + (φ : Y → ℝ) (hφ : Integrable φ μ) : + Tendsto (fun k => ∫ q : ℝ × Y, θ q.1*φ q.2*f k q.1 q.2 + ∂(volume.restrict (Ioo δ 1)).prod μ) atTop + (𝓝 (∫ q : ℝ × Y, θ q.1*φ q.2*g q.1 q.2 + ∂(volume.restrict (Ioo δ 1)).prod μ)) := by + let ν := (volume.restrict (Ioo δ 1)).prod μ + have hw : Integrable (fun q : ℝ × Y => θ q.1*φ q.2) ν := hθ.mul_prod hφ + have hi : Integrable (fun q : ℝ × Y => |θ q.1*φ q.2| * M) ν := hw.abs.mul_const M + have hgood : ∀ᵐ t ∂volume.restrict (Ioo δ 1), t ∈ Ioo δ 1 ∧ t ∉ N := + (ae_restrict_mem measurableSet_Ioo).and (ae_restrict_of_ae (hN.ae_notMem volume)) + have hpair : ∀ᵐ q ∂ν, q.1 ∈ Ioo δ 1 ∧ q.1 ∉ N := + Measure.quasiMeasurePreserving_fst.tendsto_ae.eventually hgood + have hlim : ∀ᵐ q ∂ν, Tendsto (fun k => θ q.1*φ q.2*f k q.1 q.2) atTop + (𝓝 (θ q.1*φ q.2*g q.1 q.2)) := by + filter_upwards [hpair] with q hq + exact ((hl q.1 hq.1 hq.2).tendsto_at q.2).const_mul _ + have hdom (k : ℕ) : ∀ᵐ q ∂ν, ‖θ q.1*φ q.2*f k q.1 q.2‖ ≤ |θ q.1*φ q.2| * M := by + filter_upwards [hpair] with q hq + rw [Real.norm_eq_abs,abs_mul] + exact mul_le_mul_of_nonneg_left (hb k q.1 hq.1 q.2) (abs_nonneg _) + exact tendsto_integral_of_dominated_convergence (fun q : ℝ × Y => |θ q.1*φ q.2| * M) + (fun k => hw.aestronglyMeasurable.mul (hf k).aestronglyMeasurable) hi hdom hlim + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/UniformVanishingGauge.lean b/lean/OAI/Geometry/RCD/Sobolev/UniformVanishingGauge.lean new file mode 100644 index 0000000000000000000000000000000000000000..4f95dfad6ba547af381d15d01f8e6fec84f8861e --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/UniformVanishingGauge.lean @@ -0,0 +1,30 @@ +import OAI.Geometry.RCD.Sobolev.UniformCenteredConvergence + +namespace OAI + +/-! # Removing a uniformly vanishing scalar gauge -/ + +open Filter +open scoped Topology +namespace RegularPointCoordinates + +theorem uniform_of_sub_vanishing {Y : Type*} {f : ℕ → Y → ℝ} {g : Y → ℝ} + {c : ℕ → ℝ} (h : TendstoUniformly (fun k x => f k x-c k) g atTop) + (hc : Tendsto c atTop (𝓝 0)) : TendstoUniformly f g atTop := by + apply Metric.tendstoUniformly_iff.mpr + intro ε hε + have hh := hc.eventually (Metric.ball_mem_nhds 0 (by linarith : 0 < ε/2)) + filter_upwards [(Metric.tendstoUniformly_iff.mp h) (ε/2) (by linarith),hh] with k hk hc' + intro x + have hx := hk x + change dist (c k) 0 < ε/2 at hc' + rw [Real.dist_eq,sub_zero] at hc' + rw [Real.dist_eq] at hx ⊢ + rcases abs_lt.mp hx with ⟨hx₁,hx₂⟩ + rcases abs_lt.mp hc' with ⟨hc₁,hc₂⟩ + apply abs_lt.mpr + constructor <;> linarith + +end RegularPointCoordinates + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/VanishingAnnuli.lean b/lean/OAI/Geometry/RCD/Sobolev/VanishingAnnuli.lean new file mode 100644 index 0000000000000000000000000000000000000000..791ad4239d3a6752489036308829ce3b2b830071 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/VanishingAnnuli.lean @@ -0,0 +1,90 @@ +import OAI.Geometry.RCD.Sobolev.EuclideanLawLocalizedTests + +namespace OAI + +/-! # Vanishing annular mass for weak Euclidean probability limits -/ + +open Set Metric Filter MeasureTheory +open scoped Topology BoundedContinuousFunction +noncomputable section +namespace RegularPointCoordinates + +private theorem annulus_null_frontier {n : ℕ} {S a b : ℝ} + (hS : 0 ρ/((m+2:ℕ):ℝ) + have hqpos (m : ℕ) : 0 closedBall (0:Euclidean n) (ρ+q m) \ ball 0 (ρ-q m) + have hAm (m : ℕ) : MeasurableSet (A m) := measurableSet_closedBall.diff measurableSet_ball + have hlim : ∀ z, Tendsto (fun m => (A m).indicator (fun _ => (1:ℝ)) z) atTop + (𝓝 ((sphere (0:Euclidean n) ρ).indicator (fun _ => (1:ℝ)) z)) := by + intro z + by_cases hz : ‖z‖=ρ + · have hzA (m : ℕ) : z∈A m := by + simp only [A,Set.mem_sdiff,mem_closedBall,mem_ball,dist_zero_right,not_lt,hz] + exact ⟨by linarith [hqpos m],by linarith [hqpos m]⟩ + have hzs : z∈sphere (0:Euclidean n) ρ := by simpa only [mem_sphere,dist_zero_right] using hz + simp only [indicator_of_mem (hzA _),indicator_of_mem hzs] + exact tendsto_const_nhds + · have hpos : 0 < |‖z‖-ρ| := abs_pos.mpr (sub_ne_zero.mpr hz) + have he : ∀ᶠ m in atTop, z∉A m := by + filter_upwards [hq.eventually (Iio_mem_nhds hpos)] with m hm + simp only [A,Set.mem_sdiff,mem_closedBall,mem_ball,dist_zero_right,not_and,not_lt] + intro hh + have hcases := lt_or_gt_of_ne hz + rcases hcases with hlt | hgt + · rw [abs_of_neg (sub_neg.mpr hlt)] at hm + linarith + · rw [abs_of_pos (sub_pos.mpr hgt)] at hm + linarith + have hzs : z∉sphere (0:Euclidean n) ρ := by simpa only [mem_sphere,dist_zero_right] using hz + rw [indicator_of_notMem hzs] + apply tendsto_const_nhds.congr' + filter_upwards [he] with m hm + exact (indicator_of_notMem hm _).symm + have hi := tendsto_integral_of_dominated_convergence + (μ := (euclideanBallProbability n S : Measure (Euclidean n))) (fun _ => (1:ℝ)) + (fun m => ((measurable_const.indicator (hAm m)).aestronglyMeasurable)) + (integrable_const 1) (fun m => Eventually.of_forall fun z => by + by_cases hz : z∈A m <;> simp [hz]) (Eventually.of_forall hlim) + have hnull : (euclideanBallProbability n S : Measure (Euclidean n)) (sphere 0 ρ)=0 := + euclideanBallProbability_null_of_volume_null hS isClosed_sphere.measurableSet + (Measure.addHaar_sphere_of_ne_zero volume 0 hρ.ne') + simp only [integral_indicator (hAm _),integral_indicator isClosed_sphere.measurableSet, + setIntegral_const,smul_eq_mul,mul_one,Measure.real,hnull,ENNReal.toReal_zero] at hi + intro η hη + obtain ⟨m,hm⟩ := (hi.eventually (Iio_mem_nhds hη)).exists + refine ⟨q m,hqpos m,hqlt m,?_⟩ + have ht := ProbabilityMeasure.tendsto_measure_of_null_frontier_of_tendsto' hν + (annulus_null_frontier (a := ρ-q m) (b := ρ+q m) hS + (sub_pos.mpr (hqlt m)) (by linarith [hqpos m])) + have htr := (ENNReal.tendsto_toReal (measure_ne_top + (euclideanBallProbability n S : Measure (Euclidean n)) (A m))).comp ht + exact htr.eventually (Iio_mem_nhds hm) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/VarianceLowerBound.lean b/lean/OAI/Geometry/RCD/Sobolev/VarianceLowerBound.lean new file mode 100644 index 0000000000000000000000000000000000000000..d007a12960ca7a52b01c0d106c7c0baf0021e292 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/VarianceLowerBound.lean @@ -0,0 +1,52 @@ +import Mathlib + +namespace OAI + +/-! # The scalar estimate turning variance differentiation into a gradient bound -/ + +open Set + +namespace RegularPointCoordinates + +/-- A weighted differential inequality yields a uniform endpoint estimate. +The exponential constant is deliberately sufficient for short-time use. -/ +theorem variance_lower_bound {F : ℝ → ℝ} {K T E : ℝ} (hT : 0 < T) (hE : 0 ≤ E) + (hc : ContinuousOn F (Icc 0 T)) + (hd : ∀ s ∈ Ioo 0 T, ∃ G : ℝ, HasDerivAt F (2*G) s ∧ + E ≤ Real.exp (-2*K*s)*G) : + 2*T*Real.exp (-2*|K| *T)*E ≤ F T-F 0 := by + have hbound (s : ℝ) (hs : s ∈ Ioo 0 T) (G : ℝ) + (hG : E ≤ Real.exp (-2*K*s)*G) : + 2*Real.exp (-2*|K| *T)*E ≤ 2*G := by + have hinv : Real.exp (2*K*s)*Real.exp (-2*K*s) = 1 := by + rw [← Real.exp_add] + ring_nf + exact Real.exp_zero + have hG' : Real.exp (2*K*s)*E ≤ G := by + have hm := mul_le_mul_of_nonneg_left hG (Real.exp_pos (2*K*s)).le + calc + _ ≤ Real.exp (2*K*s)*(Real.exp (-2*K*s)*G) := hm + _ = G := by rw [← mul_assoc,hinv,one_mul] + have harg : -2*|K| *T ≤ 2*K*s := by + have h1 := mul_nonneg (abs_nonneg K) (sub_nonneg.mpr hs.2.le) + have h2 := mul_nonneg (by linarith [neg_abs_le K] : 0 ≤ K+|K|) hs.1.le + nlinarith + have hmono := mul_le_mul_of_nonneg_right (Real.exp_le_exp.mpr harg) hE + linarith + have hdiff : DifferentiableOn ℝ F (interior (Icc 0 T)) := by + rw [interior_Icc] + intro s hs + exact (hd s hs).choose_spec.1.differentiableAt.differentiableWithinAt + have hlower : ∀ s ∈ interior (Icc 0 T), 2*Real.exp (-2*|K| *T)*E ≤ deriv F s := by + rw [interior_Icc] + intro s hs + obtain ⟨G,hG,hGE⟩ := hd s hs + rw [hG.deriv] + exact hbound s hs G hGE + have hh := (convex_Icc (0:ℝ) T).mul_sub_le_image_sub_of_le_deriv hc hdiff hlower + 0 ⟨le_rfl,hT.le⟩ T ⟨hT.le,le_rfl⟩ hT.le + nlinarith + +end RegularPointCoordinates + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/WeakBallMassBounds.lean b/lean/OAI/Geometry/RCD/Sobolev/WeakBallMassBounds.lean new file mode 100644 index 0000000000000000000000000000000000000000..e2d41d4b4bd63dc4db001b15ce56398d4665f0da --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/WeakBallMassBounds.lean @@ -0,0 +1,50 @@ +import OAI.Geometry.RCD.Metric.MetricProbabilityClosedMass + +namespace OAI + +/-! # Passing quantitative ball bounds to a weak probability limit -/ + +open Set Filter Metric MeasureTheory +open scoped Topology +noncomputable section +namespace RegularPointCoordinates +variable {Y : Type*} [MetricSpace Y] [MeasurableSpace Y] [BorelSpace Y] + +theorem weak_closed_mass_ge_of_tendsto {P : ℕ → ProbabilityMeasure Y} + {Q : ProbabilityMeasure Y} (hlim : Tendsto P atTop (𝓝 Q)) + {A : Set Y} (hA : IsClosed A) {a : ℕ → ℝ} {c : ℝ} + (ha : Tendsto a atTop (𝓝 c)) + (hbound : ∀ᶠ k in atTop, a k ≤ (P k : Measure Y).real A) : + c ≤ (Q : Measure Y).real A := by + by_contra hnot + have hgap : (Q : Measure Y).real A < c := lt_of_not_ge hnot + let b := (c+(Q : Measure Y).real A)/2 + have hb : b < c := by dsimp only [b]; linarith + have he := ha.eventually (lt_mem_nhds hb) + have hh := metric_probability_closed_mass_lower hlim hA + (hbound.and he |>.mono (fun k hk => hk.2.le.trans hk.1)) + change b ≤ (Q : Measure Y).real A at hh + dsimp only [b] at hh + linarith + +theorem weak_open_mass_le_of_tendsto {P : ℕ → ProbabilityMeasure Y} + {Q : ProbabilityMeasure Y} (hlim : Tendsto P atTop (𝓝 Q)) + {A : Set Y} (hA : IsOpen A) {a : ℕ → ℝ} {c : ℝ} + (ha : Tendsto a atTop (𝓝 c)) + (hbound : ∀ᶠ k in atTop, (P k : Measure Y).real A ≤ a k) : + (Q : Measure Y).real A ≤ c := by + by_contra hnot + have hgap : c < (Q : Measure Y).real A := lt_of_not_ge hnot + let b := (c+(Q : Measure Y).real A)/2 + have hb : c < b := by dsimp only [b]; linarith + have hb' : b < (Q : Measure Y).real A := by dsimp only [b]; linarith + obtain ⟨k,⟨hk,hk'⟩,hk''⟩ := + ((ha.eventually (gt_mem_nhds hb)).and hbound |>.and + (metric_probability_open_eventual_lower hlim hA hb')).exists + exact (not_le_of_gt hk) (hk''.trans hk') + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/WeakBochnerSquare.lean b/lean/OAI/Geometry/RCD/Sobolev/WeakBochnerSquare.lean new file mode 100644 index 0000000000000000000000000000000000000000..83df835baa2a7bca479a1f01d5a0128ed004404f --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/WeakBochnerSquare.lean @@ -0,0 +1,200 @@ +import OAI.Geometry.RCD.Sobolev.WeakLaplacianWeightedProduct +import OAI.Geometry.RCD.Coordinates.RegularBochnerForm +import OAI.Geometry.RCD.Sobolev.HessianActionIntegral + +namespace OAI + +/-! # The Bochner square identity without differentiating the L² sources + +All derivatives of the two source functions cancel after the weak +Laplacians are tested against bounded Sobolev products. +-/ + +open Set Filter MeasureTheory +open scoped NNReal BoundedContinuousFunction + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +/-- The scalar mixed Bochner test expression, before finite-span assembly. -/ +def mixedBochnerTest (K : ℝ) (f g : SobolevSpace μ hQ) (d e : Lp ℝ 2 μ) + (F : SobolevSpace μ hQ) (q : X →ᵇ ℝ) (ψ : SobolevSpace μ hQ) : ℝ := + bochnerTestForm μ hQ (-K) F ψ+weightedLaplacianPair μ q d e+ + (1/2:ℝ)*(weightedGamma μ hQ d g ψ+weightedGamma μ hQ e f ψ) + +omit [ProperSpace X] in +/-- The three-term Hessian action under a bounded test. -/ +theorem weighted_localHessianAction (q : X →ᵇ ℝ) (f v u fv fu vu : SobolevSpace μ hQ) : + (∫ x, q x*localHessianAction μ hQ f v u fv fu vu x ∂μ) = + (weightedGamma μ hQ q v fu+weightedGamma μ hQ q u fv-weightedGamma μ hQ q f vu)/2 := by + have hi (a b : SobolevSpace μ hQ) : Integrable (fun x => q x*localGamma μ hQ a b x) μ := + (localGamma_memL1 μ hQ a b).bdd_mul q.continuous.aestronglyMeasurable + (Eventually.of_forall q.norm_coe_le_norm) + have he : (fun x => q x*localHessianAction μ hQ f v u fv fu vu x) = + fun x => (q x*localGamma μ hQ v fu x+q x*localGamma μ hQ u fv x- + q x*localGamma μ hQ f vu x)/2 := by + funext x + unfold localHessianAction + ring + have hs : Integrable (fun x => q x*localGamma μ hQ v fu x+q x*localGamma μ hQ u fv x) μ := by + simpa only [Pi.add_apply] using! (hi v fu).add (hi u fv) + rw [he,integral_div,integral_sub hs (hi f vu),integral_add (hi v fu) (hi u fv)] + rfl + +/-- The exact square-product identity for bounded regular functions with +merely L² weak Laplacians. No Sobolev representative of either source is +required. -/ +theorem mixedBochnerTest_square + (K : ℝ) (f g F G ψ : SobolevSpace μ hQ) (d e ez : Lp ℝ 2 μ) + (hd : IsWeakLaplacian μ hQ f d) (he : IsWeakLaplacian μ hQ g e) + (A B C L M : ℝ≥0) + (hg : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ g x|≤A) + (hF : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ F x|≤B) + (hG : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ G x|≤C) + (hfL : ∀ᵐ x ∂μ, SobolevSpace.minimalSlope μ hQ f x≤L) + (hgM : ∀ᵐ x ∂μ, SobolevSpace.minimalSlope μ hQ g x≤M) + (hFr : SobolevSpace.toLp μ hQ F =ᵐ[μ] localGamma μ hQ f g) + (hGr : SobolevSpace.toLp μ hQ G =ᵐ[μ] localGamma μ hQ g g) + (gb q : X →ᵇ ℝ) (hgb : SobolevSpace.toLp μ hQ g =ᵐ[μ] gb) + (hψ : SobolevSpace.toLp μ hQ ψ =ᵐ[μ] q) + (hez : ez =ᵐ[μ] fun x => 2*SobolevSpace.toLp μ hQ g x*e x+ + 2*SobolevSpace.toLp μ hQ G x) : + let z := SobolevSpace.product μ hQ g g A A + let Fz := (2:ℝ) • SobolevSpace.product μ hQ g F A B + let ψg := SobolevSpace.product μ hQ ψ g ‖q‖₊ A + mixedBochnerTest μ hQ K f z d ez Fz q ψ = + 2*mixedBochnerTest μ hQ K f g d e F (q*gb) ψg+ + 2*(∫ x, q x*localHessianAction μ hQ f g g F F G x ∂μ) := by + let z := SobolevSpace.product μ hQ g g A A + let Fz := (2:ℝ) • SobolevSpace.product μ hQ g F A B + let ψg := SobolevSpace.product μ hQ ψ g ‖q‖₊ A + have hψb : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ ψ x|≤‖q‖₊ := by + filter_upwards [hψ] with x hx + rw [hx] + exact q.norm_coe_le_norm x + have hqn : ∀ᵐ x ∂μ, ‖q x‖≤(‖q‖₊:ℝ) := Eventually.of_forall q.norm_coe_le_norm + have hiD : Integrable (fun x => q x*d x*SobolevSpace.toLp μ hQ G x) μ := by + simpa only [Pi.mul_apply,mul_assoc] using! + ((Lp.memLp d).integrable_mul (Lp.memLp (SobolevSpace.toLp μ hQ G))).bdd_mul + q.continuous.aestronglyMeasurable hqn + have hiE : Integrable (fun x => q x*e x*SobolevSpace.toLp μ hQ F x) μ := by + simpa only [Pi.mul_apply,mul_assoc] using! + ((Lp.memLp e).integrable_mul (Lp.memLp (SobolevSpace.toLp μ hQ F))).bdd_mul + q.continuous.aestronglyMeasurable hqn + let I := ∫ x, q x*d x*SobolevSpace.toLp μ hQ G x ∂μ + let J := ∫ x, q x*e x*SobolevSpace.toLp μ hQ F x ∂μ + have hsrc : weightedLaplacianPair μ q d ez= + 2*weightedLaplacianPair μ (q*gb) d e+2*I := by + rw [weightedLaplacianPair_apply,weightedLaplacianPair_apply] + have hi : Integrable (fun x => (q*gb) x*d x*e x) μ := by + simpa only [Pi.mul_apply,mul_assoc] using! + ((Lp.memLp d).integrable_mul (Lp.memLp e)).bdd_mul + (q*gb).continuous.aestronglyMeasurable (Eventually.of_forall (q*gb).norm_coe_le_norm) + have heq : (fun x => q x*d x*ez x) =ᵐ[μ] + fun x => 2*((q*gb) x*d x*e x)+2*(q x*d x*SobolevSpace.toLp μ hQ G x) := by + filter_upwards [hez,hgb] with x hz hx + simp only [hz,BoundedContinuousFunction.mul_apply,← hx] + ring + rw [integral_congr_ae heq,integral_add (hi.const_mul 2) (hiD.const_mul 2), + integral_const_mul,integral_const_mul] + have hψg := SobolevSpace.product_coe μ hQ ψ g ‖q‖₊ A hψb hg + have hΓg := localGamma_product_right μ hQ g ψ g ‖q‖₊ A hψb hg + have hΓf := localGamma_product_right μ hQ f ψ g ‖q‖₊ A hψb hg + have hΓz := localGamma_product_left μ hQ g g ψ A A hg hg + have hwg : weightedGamma μ hQ d z ψ=2*weightedGamma μ hQ d g ψg-2*I := by + have hi : Integrable (fun x => d x*localGamma μ hQ g ψg x) μ := by + simpa only [Pi.mul_apply] using! + (Lp.memLp d).integrable_mul (localGamma_memLp_of_bounded_gradient μ hQ g ψg M hgM) + have heq : (fun x => d x*localGamma μ hQ z ψ x) =ᵐ[μ] + fun x => 2*(d x*localGamma μ hQ g ψg x)-2*(q x*d x*SobolevSpace.toLp μ hQ G x) := by + filter_upwards [hΓz,hΓg,hGr,hψ] with x hz htest hgr hp + change localGamma μ hQ g ψg x=_ at htest + change localGamma μ hQ z ψ x=_ at hz + rw [hz,htest,hp,← hgr] + ring + unfold weightedGamma + rw [integral_congr_ae heq,integral_sub (hi.const_mul 2) (hiD.const_mul 2), + integral_const_mul,integral_const_mul] + have hwf : weightedGamma μ hQ ez f ψ=2*weightedGamma μ hQ e f ψg+ + 2*weightedGamma μ hQ (SobolevSpace.toLp μ hQ G) f ψ-2*J := by + have hi : Integrable (fun x => e x*localGamma μ hQ f ψg x) μ := by + simpa only [Pi.mul_apply] using! + (Lp.memLp e).integrable_mul (localGamma_memLp_of_bounded_gradient μ hQ f ψg L hfL) + have hj := (localGamma_memL1 μ hQ f ψ).bdd_mul + (Lp.aestronglyMeasurable (SobolevSpace.toLp μ hQ G)) + (by simpa only [Real.norm_eq_abs] using hG) + have heq : (fun x => ez x*localGamma μ hQ f ψ x) =ᵐ[μ] + fun x => 2*(e x*localGamma μ hQ f ψg x)+ + 2*(SobolevSpace.toLp μ hQ G x*localGamma μ hQ f ψ x)- + 2*(q x*e x*SobolevSpace.toLp μ hQ F x) := by + filter_upwards [hez,hΓf,hFr,hψ] with x hz htest hfr hp + change localGamma μ hQ f ψg x=_ at htest + rw [hz,htest,hp,← hfr] + ring + have hsum : Integrable (fun x => 2*(e x*localGamma μ hQ f ψg x)+ + 2*(SobolevSpace.toLp μ hQ G x*localGamma μ hQ f ψ x)) μ := by + simpa only [Pi.add_apply] using! (hi.const_mul 2).add (hj.const_mul 2) + unfold weightedGamma + rw [integral_congr_ae heq,integral_sub hsum (hiE.const_mul 2), + integral_add (hi.const_mul 2) (hj.const_mul 2),integral_const_mul, + integral_const_mul,integral_const_mul] + have henergy : energyForm μ hQ Fz ψ= + 2*(weightedGamma μ hQ (SobolevSpace.toLp μ hQ g) F ψ+ + weightedGamma μ hQ (SobolevSpace.toLp μ hQ F) g ψ) := by + rw [energyForm_smul_left,energyForm_product_test μ hQ g F ψ A B hg hF] + have htestenergy : energyForm μ hQ F ψg= + weightedGamma μ hQ (SobolevSpace.toLp μ hQ ψ) F g+ + weightedGamma μ hQ (SobolevSpace.toLp μ hQ g) F ψ := by + rw [energyForm_comm μ hQ F ψg,energyForm_product_test μ hQ ψ g F ‖q‖₊ A hψb hg, + weightedGamma_comm μ hQ (SobolevSpace.toLp μ hQ ψ) g F, + weightedGamma_comm μ hQ (SobolevSpace.toLp μ hQ g) ψ F] + have hFz : SobolevSpace.toLp μ hQ Fz =ᵐ[μ] + fun x => 2*SobolevSpace.toLp μ hQ g x*SobolevSpace.toLp μ hQ F x := by + filter_upwards [Lp.coeFn_smul (2:ℝ) (SobolevSpace.toLp μ hQ (SobolevSpace.product μ hQ g F A B)), + SobolevSpace.product_coe μ hQ g F A B hg hF] with x hs hp + dsimp only [Fz] + simp only [map_smul] + rw [hs] + simp only [Pi.smul_apply,smul_eq_mul] + rw [hp] + ring + have hinner : inner ℝ (SobolevSpace.toLp μ hQ ψ) (SobolevSpace.toLp μ hQ Fz)= + 2*inner ℝ (SobolevSpace.toLp μ hQ ψg) (SobolevSpace.toLp μ hQ F) := by + rw [L2.inner_def,L2.inner_def,← integral_const_mul] + apply integral_congr_ae + filter_upwards [hFz,hψg] with x hf hp + change SobolevSpace.toLp μ hQ ψg x = _ at hp + simp only [Real.inner_apply] + rw [hf,hp] + ring + have hif := hd.weighted_product μ hQ f G ψ d C ‖q‖₊ hG hψb + have hig := he.weighted_product μ hQ g F ψ e B ‖q‖₊ hF hψb + have hId : (∫ x, SobolevSpace.toLp μ hQ ψ x*SobolevSpace.toLp μ hQ G x*d x ∂μ)=I := by + apply integral_congr_ae + filter_upwards [hψ] with x hp + rw [hp] + ring + have hJe : (∫ x, SobolevSpace.toLp μ hQ ψ x*SobolevSpace.toLp μ hQ F x*e x ∂μ)=J := by + apply integral_congr_ae + filter_upwards [hψ] with x hp + rw [hp] + ring + rw [hId] at hif + rw [hJe] at hig + have hweight (a b : SobolevSpace μ hQ) : weightedGamma μ hQ q a b= + weightedGamma μ hQ (SobolevSpace.toLp μ hQ ψ) a b := + integral_congr_ae (hψ.symm.mono fun x hx => congrArg (fun t : ℝ => t*localGamma μ hQ a b x) hx) + rw [weighted_localHessianAction μ hQ, hweight g F,hweight f G] + dsimp only [mixedBochnerTest] + rw [bochnerTestForm_apply,bochnerTestForm_apply,henergy,htestenergy,hinner,hsrc,hwg,hwf] + rw [weightedGamma_comm μ hQ (SobolevSpace.toLp μ hQ ψ) F g] + linarith only [hif,hig] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/WeakCompactUniformTests.lean b/lean/OAI/Geometry/RCD/Sobolev/WeakCompactUniformTests.lean new file mode 100644 index 0000000000000000000000000000000000000000..d9a96f11d174ad1b0802fd1d2d41068bdd32ba03 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/WeakCompactUniformTests.lean @@ -0,0 +1,89 @@ +import OAI.Geometry.RCD.Sobolev.LipschitzCompactSubsequence +import OAI.Geometry.RCD.Sobolev.EverySubsequenceEventual +import OAI.Geometry.RCD.Coordinates.NormalizedUniformMean +import Mathlib.MeasureTheory.Measure.ProbabilityMeasure + +namespace OAI + +/-! # Weak convergence is uniform over bounded Lipschitz tests on a common compact support -/ + +open Set Filter MeasureTheory +open scoped Topology BoundedContinuousFunction +noncomputable section +namespace RegularPointCoordinates + +private theorem bounded_test (Y : Type*) [MetricSpace Y] (f : Y → ℝ) + (hf : Continuous f) (hb : ∀ y, |f y| ≤ 1) : + ∃ F : Y →ᵇ ℝ, ∀ y, F y=f y := by + refine ⟨BoundedContinuousFunction.mkOfBound ⟨f,hf⟩ 2 ?_,fun _ => rfl⟩ + intro x y + change |f x-f y| ≤ 2 + have ht := abs_sub_le (f x) 0 (f y) + simp only [sub_zero,zero_sub,abs_neg] at ht + linarith [hb x,hb y] + +theorem weak_compact_uniform_tests {Y : Type*} [MetricSpace Y] + [MeasurableSpace Y] [BorelSpace Y] + {P : ℕ → ProbabilityMeasure Y} {Q : ProbabilityMeasure Y} + (hweak : Tendsto P atTop (𝓝 Q)) {A : Set Y} (hA : IsCompact A) + (hP : ∀ k, ∀ᵐ x ∂(P k : Measure Y), x ∈ A) + (hQ : ∀ᵐ x ∂(Q : Measure Y), x ∈ A) {δ : ℝ} (hδ : 0 < δ) : + ∀ᶠ k in atTop, ∀ f : Y → ℝ, LipschitzWith 1 f → (∀ x, |f x| ≤ 1) → + |(∫ x, f x ∂(P k : Measure Y)) - ∫ x, f x ∂(Q : Measure Y)| ≤ δ := by + classical + by_contra hnot + obtain ⟨α,hα,hbad⟩ := extraction_of_frequently_atTop (not_eventually.mp hnot) + have hex (k : ℕ) : ∃ f : Y → ℝ, LipschitzWith 1 f ∧ (∀ x, |f x| ≤ 1) ∧ + δ < |(∫ x, f x ∂(P (α k) : Measure Y)) - ∫ x, f x ∂(Q : Measure Y)| := by + simpa only [not_forall,not_le,exists_prop] using hbad k + choose f hf hb hfail using hex + obtain ⟨g,β,hβ,hg,hgb,hunif⟩ := exists_lipschitz_subsequence_on_compact hA f 1 1 hf + (fun k x _ => hb k x) + let g' : Y → ℝ := fun x => max (-1) (min 1 (g x)) + have hg' : Continuous g' := continuous_const.max (continuous_const.min hg.continuous) + have hg'b (x : Y) : |g' x| ≤ 1 := by + apply abs_le.mpr + exact ⟨le_max_left _ _,max_le (by norm_num) (min_le_left _ _)⟩ + have hgeq (x : Y) (hx : x ∈ A) : g' x=g x := by + have h := abs_le.mp (hgb x hx) + exact (max_eq_right (h.1.trans_eq (min_eq_right h.2).symm)).trans (min_eq_right h.2) + obtain ⟨G,hG⟩ := bounded_test Y g' hg' hg'b + have hclose {ν : ℕ → ProbabilityMeasure Y} + (hν : ∀ k, ∀ᵐ x ∂(ν k : Measure Y), x ∈ A) : + Tendsto (fun k => ∫ x, f (β k) x - G x ∂(ν k : Measure Y)) atTop (𝓝 0) := by + have ht := normalized_mean_tendsto_zero (fun k => (ν k : Measure Y)) + (fun _ => by simp [Measure.real]) (fun k x => f (β k) x-G x) ?_ + · simpa only [Measure.real,measure_univ,ENNReal.toReal_one,inv_one,one_mul] using ht + · intro η hη + filter_upwards [hunif η hη] with k hk + filter_upwards [hν k] with x hx + rw [hG,hgeq x hx] + exact (hk x hx).le + have h1 := hclose (fun k => hP (α (β k))) + have h2 := hclose (ν := fun _ => Q) (fun _ => hQ) + have h3 := ProbabilityMeasure.tendsto_iff_forall_integral_tendsto.mp + (hweak.comp (hα.comp hβ).tendsto_atTop) G + have hfi (k : ℕ) (ν : ProbabilityMeasure Y) : Integrable (f k) (ν : Measure Y) := + (integrable_const (1 : ℝ)).mono' (hf k).continuous.aestronglyMeasurable + (Eventually.of_forall fun x => by simpa only [Real.norm_eq_abs] using hb k x) + have heq (k : ℕ) (ν : ProbabilityMeasure Y) : + (∫ x, f k x-G x ∂(ν : Measure Y))= + (∫ x, f k x ∂(ν : Measure Y)) - ∫ x, G x ∂(ν : Measure Y) := + integral_sub (hfi k ν) (G.integrable (μ := (ν : Measure Y))) + simp only [heq] at h1 h2 + have hconst : Tendsto (fun _ : ℕ => ∫ x, G x ∂(Q : Measure Y)) atTop + (𝓝 (∫ x, G x ∂(Q : Measure Y))) := tendsto_const_nhds + have hall := (h1.add (h3.sub hconst)).sub h2 + have ht : Tendsto (fun k => (∫ x, f (β k) x ∂(P (α (β k)) : Measure Y)) - + ∫ x, f (β k) x ∂(Q : Measure Y)) atTop (𝓝 0) := by + convert hall using 1 <;> simp + have hta := ht.abs + simp only [abs_zero] at hta + obtain ⟨k,hk⟩ := (hta.eventually (Iio_mem_nhds hδ)).exists + exact (hfail (β k)).not_gt hk + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/WeakDensityDomination.lean b/lean/OAI/Geometry/RCD/Sobolev/WeakDensityDomination.lean new file mode 100644 index 0000000000000000000000000000000000000000..f7e708efe2669d616a2cd44a2e6d75a5963d36e5 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/WeakDensityDomination.lean @@ -0,0 +1,31 @@ +import OAI.Geometry.RCD.Transport.WeakLengthCompression + +namespace OAI + +/-! # A fixed density bound passes to weak probability limits -/ + +open Set Filter MeasureTheory +open scoped Topology ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + +theorem weak_probability_domination (μ : Measure X) [μ.OuterRegular] + (P : ℕ → ProbabilityMeasure X) (Q : ProbabilityMeasure X) + (hlim : Tendsto P atTop (𝓝 Q)) {C : ℝ≥0∞} (hC : C ≠ ∞) + (hP : ∀ k, (P k : Measure X) ≤ C • μ) : (Q : Measure X) ≤ C • μ := by + let : (C • μ).OuterRegular := Measure.OuterRegular.smul μ hC + apply measure_le_of_open_sets + intro U hU + calc + (Q : Measure X) U ≤ liminf (fun k => (P k : Measure X) U) atTop := + ProbabilityMeasure.le_liminf_measure_open_of_tendsto hlim hU + _ ≤ liminf (fun _ : ℕ => (C • μ) U) atTop := + Filter.liminf_le_liminf (Eventually.of_forall fun k => hP k U) + _ = _ := by simp + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/WeakEndpointWeights.lean b/lean/OAI/Geometry/RCD/Sobolev/WeakEndpointWeights.lean new file mode 100644 index 0000000000000000000000000000000000000000..29165aded9c34d05454627c33ad51cc416a9b4c4 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/WeakEndpointWeights.lean @@ -0,0 +1,61 @@ +import OAI.Geometry.RCD.Metric.EndpointWeightApproximation + +namespace OAI + +/-! # Weak convergence with a fixed integrable endpoint weight -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped ENNReal Topology BoundedContinuousFunction +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem weak_endpoint_weight_integral + (ν : Measure X) [IsFiniteMeasure ν] [ν.WeaklyRegular] + (πs : ℕ → ProbabilityMeasure C(Time,X)) (π : ProbabilityMeasure C(Time,X)) + (hlim : Tendsto πs atTop (𝓝 π)) (t : Time) + (hds : ∀ j, (πs j : Measure C(Time,X)).map (fun γ => γ t)≤(2 : ℝ≥0∞) • ν) + (hd : (π : Measure C(Time,X)).map (fun γ => γ t)≤(2 : ℝ≥0∞) • ν) + (φ : C(Time,X) →ᵇ ℝ) {g : X → ℝ} (hg : Integrable g ν) : + Tendsto (fun j => ∫γ,φ γ*g (γ t) ∂(πs j : Measure C(Time,X))) atTop + (𝓝 (∫γ,φ γ*g (γ t) ∂(π : Measure C(Time,X)))) := by + apply Metric.tendsto_atTop.mpr + intro ε hε + let δ := ε/(8*(‖φ‖+1)) + have hδ : 0<δ := div_pos hε (by positivity) + obtain ⟨f,herr,hf⟩ := hg.exists_boundedContinuous_integral_sub_le hδ + let ψ : C(Time,X) →ᵇ ℝ := φ*(f.compContinuous ⟨fun γ => γ t,continuous_eval_const t⟩) + have ht : Tendsto (fun j => ∫γ,φ γ*f (γ t) ∂(πs j : Measure C(Time,X))) atTop + (𝓝 (∫γ,φ γ*f (γ t) ∂(π : Measure C(Time,X)))) := + (ProbabilityMeasure.continuous_integral_boundedContinuousFunction ψ).continuousAt.tendsto.comp hlim + obtain ⟨J,hJ⟩ := Metric.tendsto_atTop.mp ht (ε/2) (by positivity) + have hsmall : 4*‖φ‖*δ<ε/2 := by + have heq : (8*(‖φ‖+1))*δ=ε := by dsimp [δ]; field_simp + nlinarith [norm_nonneg φ] + refine ⟨J,fun j hj => ?_⟩ + have hleft := (integral_endpoint_weight_error (πs j : Measure C(Time,X)) ν t (hds j) φ hg hf).trans + (mul_le_mul_of_nonneg_left herr (by positivity : 0≤2*‖φ‖)) + have hright := (integral_endpoint_weight_error (π : Measure C(Time,X)) ν t hd φ hg hf).trans + (mul_le_mul_of_nonneg_left herr (by positivity : 0≤2*‖φ‖)) + have hmid := hJ j hj + rw [dist_eq_norm] at hmid ⊢ + have htri := norm_add_le + ((∫γ,φ γ*g (γ t) ∂(πs j : Measure C(Time,X)))- + (∫γ,φ γ*f (γ t) ∂(πs j : Measure C(Time,X)))) + ((∫γ,φ γ*f (γ t) ∂(πs j : Measure C(Time,X)))- + (∫γ,φ γ*g (γ t) ∂(π : Measure C(Time,X)))) + have htri' := norm_add_le + ((∫γ,φ γ*f (γ t) ∂(πs j : Measure C(Time,X)))- + (∫γ,φ γ*f (γ t) ∂(π : Measure C(Time,X)))) + ((∫γ,φ γ*f (γ t) ∂(π : Measure C(Time,X)))- + (∫γ,φ γ*g (γ t) ∂(π : Measure C(Time,X)))) + rw [sub_add_sub_cancel] at htri htri' + rw [norm_sub_rev] at hright + linarith + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/WeakEulerRigidity.lean b/lean/OAI/Geometry/RCD/Sobolev/WeakEulerRigidity.lean new file mode 100644 index 0000000000000000000000000000000000000000..812c67a21a19ee37bf2f506748354f11f8c2b0ef --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/WeakEulerRigidity.lean @@ -0,0 +1,65 @@ +import OAI.Geometry.RCD.Sobolev.EulerOrthogonality +import Mathlib.Analysis.Distribution.AEEqOfIntegralContDiff + +namespace OAI + +/-! # From weak Euler limits to the Euclidean rigidity contradiction -/ + +open Set Metric MeasureTheory +open scoped InnerProductSpace ContDiff + +noncomputable section +namespace RegularPointCoordinates + +/-- The weak identity supplied by convergence of gradient pairings is +pointwise for the smooth Euclidean harmonic limit. -/ +theorem euler_equation_of_test_integrals {n : ℕ} {S : ℝ} (w : Euclidean n → ℝ) + (hw : ContDiffOn ℝ 2 w (ball 0 S)) (ell : Euclidean n →L[ℝ] ℝ) (k : ℝ) + (htest : ∀ ψ : Euclidean n → ℝ, ContDiff ℝ ∞ ψ → HasCompactSupport ψ → + tsupport ψ ⊆ ball 0 S → + (∫ x in ball 0 S, ψ x * (fderiv ℝ w x x - w x - ell x - k)) = 0) : + ∀ x ∈ ball 0 S, fderiv ℝ w x x = w x + ell x + k := by + let F := fun x => fderiv ℝ w x x - w x - ell x - k + have hDsm : ContDiffOn ℝ 1 (fderiv ℝ w) (ball 0 S) := + hw.fderiv_of_isOpen isOpen_ball (by norm_num) + have hDF : ContinuousOn (fderiv ℝ w) (ball 0 S) := hDsm.continuousOn + have hF : ContinuousOn F (ball 0 S) := + (((hDF.clm_apply continuousOn_id).sub hw.continuousOn).sub ell.continuous.continuousOn).sub + continuousOn_const + have hae : ∀ᵐ x ∂(volume : Measure (Euclidean n)), x ∈ ball 0 S → F x = 0 := by + apply isOpen_ball.ae_eq_zero_of_integral_contDiff_smul_eq_zero + (hF.locallyIntegrableOn measurableSet_ball) + intro ψ hψ hs hsub + have heq : (∫ x in ball 0 S, ψ x * F x) = ∫ x, ψ x * F x := + setIntegral_eq_integral_of_forall_compl_eq_zero (fun x hx => by + rw [image_eq_zero_of_notMem_tsupport (fun h => hx (hsub h)), zero_mul]) + change (∫ x, ψ x * F x) = 0 + rw [← heq] + exact htest ψ hψ hs hsub + have hae' : F =ᵐ[volume.restrict (ball 0 S)] fun _ => (0 : ℝ) := + (ae_restrict_iff' measurableSet_ball).2 hae + have heq := Measure.eqOn_open_of_ae_eq hae' isOpen_ball hF continuousOn_const + intro x hx + have hh := heq hx + dsimp only [F] at hh + linarith only [hh] + +/-- It is enough to pass the Euler equation against interior smooth +tests. The moment limits alone then contradict the positive norm. -/ +theorem EuclideanHarmonicModel.no_unit_weak_euler_residual {n : ℕ} {S r : ℝ} + (w : EuclideanHarmonicModel n S) (hS : 0 < S) (hr : r ≤ S) + (ell : Euclidean n →L[ℝ] ℝ) (k : ℝ) + (htest : ∀ ψ : Euclidean n → ℝ, ContDiff ℝ ∞ ψ → HasCompactSupport ψ → + tsupport ψ ⊆ ball 0 S → + (∫ x in ball 0 S, ψ x * (fderiv ℝ w.value x x - w.value x - ell x - k)) = 0) + (hunit : ⟪w.moments hr none, w.moments hr none⟫_ℝ = 1) + (hone : ⟪w.moments hr none, w.moments hr (some none)⟫_ℝ = 0) + (hcoords : ∀ i, ⟪w.moments hr none, w.moments hr (some (some i))⟫_ℝ = 0) : False := + w.no_unit_euler_residual hS hr ell k + (euler_equation_of_test_integrals w.value w.harmonic.contDiffOn ell k htest) hunit hone hcoords + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/WeakFiniteDomination.lean b/lean/OAI/Geometry/RCD/Sobolev/WeakFiniteDomination.lean new file mode 100644 index 0000000000000000000000000000000000000000..d96fc758778b1eb50ff739ce7354fc6112de8ed3 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/WeakFiniteDomination.lean @@ -0,0 +1,58 @@ +import OAI.Geometry.RCD.Metric.FiniteDensityMeasure +import Mathlib.MeasureTheory.Integral.Regular +import OAI.Geometry.RCD.Metric.MeasuredBallLaw + +namespace OAI + +/-! # Domination passes to weak limits of finite energy measures -/ + +open Set Filter MeasureTheory Metric +open scoped Topology ENNReal NNReal BoundedContinuousFunction +noncomputable section +namespace RegularPointCoordinates + +theorem euclidean_finite_weak_domination {n : ℕ} + (νs μs : ℕ → FiniteMeasure (Euclidean n)) (ν μ : FiniteMeasure (Euclidean n)) + (hν : Tendsto νs atTop (𝓝 ν)) (hμ : Tendsto μs atTop (𝓝 μ)) + (c : ℕ → ℝ≥0) (c₀ : ℝ≥0) (hc : Tendsto c atTop (𝓝 c₀)) + (hb : ∀ k, (νs k : Measure (Euclidean n))≤(c k : ℝ≥0∞) • (μs k : Measure (Euclidean n))) : + (ν : Measure (Euclidean n))≤(c₀ : ℝ≥0∞) • (μ : Measure (Euclidean n)) := by + have htest (φ : Euclidean n →ᵇ ℝ) (hφ : ∀ z, 0≤φ z) : + (∫ z, φ z ∂(ν : Measure (Euclidean n)))≤(c₀:ℝ)*∫ z, φ z ∂(μ : Measure (Euclidean n)) := by + have hleft := FiniteMeasure.tendsto_iff_forall_integral_tendsto.mp hν φ + have hright := (NNReal.continuous_coe.tendsto c₀ |>.comp hc).mul + (FiniteMeasure.tendsto_iff_forall_integral_tendsto.mp hμ φ) + apply le_of_tendsto_of_tendsto hleft hright + filter_upwards [] with k + change (∫ z, φ z ∂(νs k : Measure (Euclidean n)))≤ + (c k:ℝ)*(∫ z, φ z ∂(μs k : Measure (Euclidean n))) + have hh := integral_mono_measure (hb k) (ae_of_all _ hφ) + ((φ.integrable (μs k : Measure (Euclidean n))).smul_measure ENNReal.coe_ne_top) + simpa only [integral_smul_measure,ENNReal.coe_toReal,smul_eq_mul] using hh + let : ((c₀:ℝ≥0∞) • (μ : Measure (Euclidean n))).OuterRegular := + Measure.OuterRegular.smul _ ENNReal.coe_ne_top + apply measure_le_of_open_sets + intro U hU + rw [hU.measure_eq_biSup_integral_continuous (ν : Measure (Euclidean n))] + refine iSup_le fun f => iSup_le fun hf => iSup_le fun hf0 => iSup_le fun hfn => iSup_le fun hf1 => ?_ + let F : Euclidean n →ᵇ ℝ := ⟨⟨f,hf⟩,2,by + intro x y + calc dist (f x) (f y)≤dist (f x) 0+dist 0 (f y) := dist_triangle _ _ _ + _ ≤ 2 := by + simp only [dist_zero_right,dist_zero_left,Real.norm_eq_abs, + abs_of_nonneg (hfn x),abs_of_nonneg (hfn y)] + have hx : f x≤(1:ℝ) := hf1 x + have hy : f y≤(1:ℝ) := hf1 y + linarith only [hx,hy]⟩ + have hh : (∫ z, f z ∂(ν : Measure (Euclidean n)))≤ + ∫ z, f z ∂((c₀:ℝ≥0∞) • (μ : Measure (Euclidean n))) := by + rw [integral_smul_measure,ENNReal.coe_toReal,smul_eq_mul] + exact htest F hfn + exact (ENNReal.ofReal_le_ofReal hh).trans + (integral_le_measure (fun x _ => hf1 x) (fun x hx => (hf0 hx).le)) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/WeakHamiltonJacobiPairing.lean b/lean/OAI/Geometry/RCD/Sobolev/WeakHamiltonJacobiPairing.lean new file mode 100644 index 0000000000000000000000000000000000000000..a1321cf4bfb12eb1dcc96f2a44c9cd208e7386bc --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/WeakHamiltonJacobiPairing.lean @@ -0,0 +1,83 @@ +import OAI.Geometry.RCD.Sobolev.SupportedWeakSourceBound + +namespace OAI + +/-! # The local Hamilton--Jacobi equation against a Laplacian test + +Self-adjointness moves the viscosity source onto the fixed compact test. +All pairings retain the actual local Sobolev representative. +-/ + +open Set Filter MeasureTheory +open scoped Topology ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) (Q : QuadraticCheegerEnergy μ) + +omit [BorelSpace X] [ProperSpace X] in +theorem weak_laplacian_transpose (w φ : SobolevSpace μ Q) (q ξ : Lp ℝ 2 μ) + (hq : IsWeakLaplacian μ Q w q) (hξ : IsWeakLaplacian μ Q φ ξ) : + inner ℝ q (SobolevSpace.toLp μ Q φ) = inner ℝ ξ (SobolevSpace.toLp μ Q w) := by + have h₁ := hq φ + have h₂ := hξ w + rw [energyForm_comm μ Q] at h₁ + linarith + +omit [ProperSpace X] in +theorem local_hamilton_jacobi_test_pairing + (w φ : SobolevSpace μ Q) (q ξ : Lp ℝ 2 μ) + (hq : IsWeakLaplacian μ Q w q) (hξ : IsWeakLaplacian μ Q φ ξ) + {Ω : Set X} (H D : X → ℝ) (ε : ℝ) + (hw : SobolevSpace.toLp μ Q w =ᵐ[μ.restrict Ω] H) + (hD : D =ᵐ[μ.restrict Ω] fun x => ε/2*q x + localGamma μ Q w w x/2) + (hφs : ∀ᵐ x ∂μ, x ∉ Ω → SobolevSpace.toLp μ Q φ x = 0) + (hξs : ∀ᵐ x ∂μ, x ∉ Ω → ξ x = 0) + {B : ℝ} (hB : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ Q φ x| ≤ B) : + (∫ x in Ω, SobolevSpace.toLp μ Q φ x * localGamma μ Q w w x ∂μ) = + 2*(∫ x in Ω, SobolevSpace.toLp μ Q φ x * D x ∂μ) - + ε*(∫ x in Ω, ξ x * H x ∂μ) := by + let Φ := SobolevSpace.toLp μ Q φ + let W := SobolevSpace.toLp μ Q w + have hiq : Integrable (fun x => Φ x*q x) μ := by + simpa only [Real.inner_apply] using (L2.integrable_inner (𝕜 := ℝ) Φ q) + have hig : Integrable (fun x => Φ x*localGamma μ Q w w x) μ := + (localGamma_memL1 μ Q w w).bdd_mul (Lp.aestronglyMeasurable Φ) + (by simpa only [Real.norm_eq_abs] using hB) + have hpair : (∫ x in Ω, Φ x*q x ∂μ) = ∫ x in Ω, ξ x*H x ∂μ := by + have he := weak_laplacian_transpose μ Q w φ q ξ hq hξ + have heq : (∫ x, Φ x*q x ∂μ) = ∫ x, ξ x*W x ∂μ := by + calc + _ = ∫ x, q x*Φ x ∂μ := integral_congr_ae (Eventually.of_forall fun x => mul_comm _ _) + _ = _ := by simpa only [L2.inner_def,Real.inner_apply] using he + calc + _ = ∫ x, Φ x*q x ∂μ := setIntegral_eq_integral_of_ae_compl_eq_zero (by + filter_upwards [hφs] with x hx hnot + rw [hx hnot,zero_mul]) + _ = ∫ x, ξ x*W x ∂μ := heq + _ = ∫ x in Ω, ξ x*W x ∂μ := (setIntegral_eq_integral_of_ae_compl_eq_zero (by + filter_upwards [hξs] with x hx hnot + rw [hx hnot,zero_mul])).symm + _ = _ := integral_congr_ae (by + filter_upwards [hw] with x hx + rw [hx]) + have hid : (∫ x in Ω, Φ x*D x ∂μ) = + ε/2*(∫ x in Ω, Φ x*q x ∂μ) + 1/2*(∫ x in Ω, Φ x*localGamma μ Q w w x ∂μ) := by + calc + _ = ∫ x in Ω, ε/2*(Φ x*q x)+1/2*(Φ x*localGamma μ Q w w x) ∂μ := by + apply integral_congr_ae + filter_upwards [hD] with x hx + rw [hx] + ring + _ = _ := by + rw [integral_add (hiq.integrableOn.const_mul _) (hig.integrableOn.const_mul _), + integral_const_mul,integral_const_mul] + change (∫ x in Ω, Φ x*localGamma μ Q w w x ∂μ) = _ + rw [hid,← hpair] + ring + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/WeakHarmonicRadialPairing.lean b/lean/OAI/Geometry/RCD/Sobolev/WeakHarmonicRadialPairing.lean new file mode 100644 index 0000000000000000000000000000000000000000..86ef7ee270d173af79f07460a72324dad96577a5 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/WeakHarmonicRadialPairing.lean @@ -0,0 +1,49 @@ +import OAI.Geometry.RCD.Sobolev.WeakHarmonicWeightedPairing +import Mathlib.Analysis.InnerProductSpace.Calculus + +namespace OAI + +/-! # Identifying the radial pairing by the Euclidean weak equation -/ + +open Set Filter MeasureTheory Metric InnerProductSpace +open scoped Topology ContDiff NNReal +noncomputable section +namespace RegularPointCoordinates + +theorem gradient_half_norm_sq {n : ℕ} (x : Euclidean n) : + gradient (fun y : Euclidean n => ‖y‖^2/2) x=x := by + have he : (fun y : Euclidean n => ‖y‖^2/2)=(fun y => (1/2:ℝ)*‖y‖^2) := by + funext y + ring + have hd : fderiv ℝ (fun y : Euclidean n => ‖y‖^2/2) x=innerSL ℝ x := by + have hn : DifferentiableAt ℝ (fun y : Euclidean n => ‖y‖^2) x := + (hasStrictFDerivAt_norm_sq x).differentiableAt + rw [he,fderiv_const_mul hn] + rw [fderiv_norm_sq_apply] + ext y + norm_num [smul_eq_mul] + ring + simp only [gradient,hd] + exact (toDual ℝ (Euclidean n)).symm_apply_apply x + +theorem weak_harmonic_radial_pairing {n : ℕ} {S : ℝ} (hS : 0 (‖x‖^2/2)*inner ℝ (gradient ψ x) (gradient g x)) volume) + (h₂ : Integrable (fun x => ψ x*fderiv ℝ g x x) volume) : + (∫ x, (‖x‖^2/2)*inner ℝ (gradient ψ x) (gradient g x))= + -(∫ x, ψ x*fderiv ℝ g x x) := by + have hq : ContDiff ℝ ∞ (fun y : Euclidean n => ‖y‖^2/2) := + (contDiff_id.norm_sq ℝ).div_const 2 + have hp (x : Euclidean n) : + inner ℝ (gradient (fun y : Euclidean n => ‖y‖^2/2) x) (gradient g x)=fderiv ℝ g x x := by + rw [gradient_half_norm_sq,real_inner_comm,inner_gradient_left] + simpa only [hp] using weak_harmonic_weighted_pairing hS hg hweak hq hψ h₁ + (by simpa only [hp] using h₂) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/WeakHarmonicWeightedPairing.lean b/lean/OAI/Geometry/RCD/Sobolev/WeakHarmonicWeightedPairing.lean new file mode 100644 index 0000000000000000000000000000000000000000..7c252073d6ba9d62e1947f69629eda574691b939 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/WeakHarmonicWeightedPairing.lean @@ -0,0 +1,41 @@ +import OAI.Geometry.RCD.Sobolev.LocalLipschitzGreenTrace +import OAI.Geometry.RCD.Sobolev.EuclideanWeakHarmonicSmoothing + +namespace OAI + +/-! # A weighted gradient identity for the Euclidean harmonic limit -/ + +open Set Filter MeasureTheory Metric InnerProductSpace +open scoped Topology ContDiff NNReal +noncomputable section +namespace RegularPointCoordinates + +theorem weak_harmonic_weighted_pairing {n : ℕ} {S : ℝ} (hS : 0 q x*inner ℝ (gradient ψ x) (gradient g x)) volume) + (h₂ : Integrable (fun x => ψ x*inner ℝ (gradient q x) (gradient g x)) volume) : + (∫ x, q x*inner ℝ (gradient ψ x) (gradient g x))= + -(∫ x, ψ x*inner ℝ (gradient q x) (gradient g x)) := by + have htest : InteriorSmoothTest n S (fun x => q x*ψ x) := + ⟨hq.mul hψ.1,hψ.2.1.mul_left,tsupport_mul_subset_right.trans hψ.2.2⟩ + have hgreen := local_lipschitz_green_trace hS hg htest + rw [hweak _ htest,neg_zero] at hgreen + have hpoint (x : Euclidean n) : + inner ℝ (gradient g x) (gradient (fun y => q y*ψ y) x)= + q x*inner ℝ (gradient ψ x) (gradient g x)+ + ψ x*inner ℝ (gradient q x) (gradient g x) := by + conv_lhs => rw [real_inner_comm] + simp only [inner_gradient_left] + rw [fderiv_fun_mul (hq.differentiable (by simp) x) (hψ.1.differentiable (by simp) x)] + rfl + rw [integral_congr_ae (Eventually.of_forall hpoint),integral_add h₁ h₂] at hgreen + linarith + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/WeakInverseDensity.lean b/lean/OAI/Geometry/RCD/Sobolev/WeakInverseDensity.lean new file mode 100644 index 0000000000000000000000000000000000000000..9cbf1473202f4681a938ca4060a0de8d44697f80 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/WeakInverseDensity.lean @@ -0,0 +1,44 @@ +import OAI.Geometry.RCD.Sobolev.EndpointLIntegralLimit +import OAI.Geometry.RCD.Transport.BoundedPathDistortion + +namespace OAI + +/-! # Weak limits of the actual inverse-density distortion integrals -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped ENNReal Topology BoundedContinuousFunction +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem weak_inverse_density_distortion + (μ ν : Measure X) [SigmaFinite μ] [IsFiniteMeasure ν] [ν.WeaklyRegular] + (hν : ν ≪ μ) + (πs : ℕ → ProbabilityMeasure C(Time,X)) (π : ProbabilityMeasure C(Time,X)) + (hlim : Tendsto πs atTop (𝓝 π)) (u : Time) + (hds : ∀ j, (πs j : Measure C(Time,X)).map (fun γ => γ u) ≤ (2 : ℝ≥0∞) • ν) + (hd : (π : Measure C(Time,X)).map (fun γ => γ u) ≤ (2 : ℝ≥0∞) • ν) + {K N s : ℝ} (hK : K ≤ 0) (hN : 0 < N) (hs : 0 ≤ s) (hs1 : s ≤ 1) + (hi : Integrable (fun x => (ν.rnDeriv μ x).toReal^(-(1/N))) ν) : + Tendsto (fun j => ∫⁻γ,sigma K (N+1) s (dist (γ 0) (γ 1))* + (ν.rnDeriv μ (γ u))^(-(1/N)) ∂(πs j : Measure C(Time,X))) atTop + (𝓝 (∫⁻γ,sigma K (N+1) s (dist (γ 0) (γ 1))* + (ν.rnDeriv μ (γ u))^(-(1/N)) ∂(π : Measure C(Time,X)))) := by + let φ := pathDistortion (X:=X) K (N+1) s hK (by linarith) hs hs1 + have hφ (γ) : 0 ≤ φ γ := ENNReal.toReal_nonneg + have he (γ : C(Time,X)) : ENNReal.ofReal (φ γ)=sigma K (N+1) s (dist (γ 0) (γ 1)) := + ENNReal.ofReal_toReal (sigma_nonpos_ne_top (t:=s) hK (by linarith) dist_nonneg) + have hf : ∀ᵐ x ∂ν, (ν.rnDeriv μ x)^(-(1/N)) ≠ ∞ := by + filter_upwards [Measure.rnDeriv_pos hν,hν.ae_le (Measure.rnDeriv_lt_top ν μ)] with x hx ht + exact ENNReal.rpow_ne_top_of_ne_zero hx.ne' ht.ne + have hi' : Integrable (fun x => ((ν.rnDeriv μ x)^(-(1/N))).toReal) ν := by + simpa only [←ENNReal.toReal_rpow] using hi + have hh := weak_endpoint_weight_lintegral ν πs π hlim u hds hd φ hφ hf hi' + simpa only [he] using hh + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/WeakLaplacianAffineChain.lean b/lean/OAI/Geometry/RCD/Sobolev/WeakLaplacianAffineChain.lean new file mode 100644 index 0000000000000000000000000000000000000000..4ac00890b9142468d1897226197faec35c4fb5f0 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/WeakLaplacianAffineChain.lean @@ -0,0 +1,71 @@ +import OAI.Geometry.RCD.Sobolev.WeakLaplacianDomain + +namespace OAI + +/-! # The weak C² chain rule with a nonzero derivative at zero + +Subtract the affine part, apply the zero-derivative chain rule, and add +back the corresponding multiple of the actual weak Laplacian. +-/ + +open Set Filter MeasureTheory +open scoped NNReal ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +theorem weakLaplacian_comp_C2_affine (u : SobolevSpace μ hQ) (d q : Lp ℝ 2 μ) + (hd : IsWeakLaplacian μ hQ u d) + {Φ φ ψ : ℝ → ℝ} {C D : ℝ≥0} (hΦ : LipschitzWith C Φ) (hΦ0 : Φ 0=0) + (hφ : LipschitzWith D φ) (hψ : Continuous ψ) + (hdΦ : ∀ a, HasDerivAt Φ (φ a) a) (hdφ : ∀ a, HasDerivAt φ (ψ a) a) + (B E : ℝ≥0) (hB : ∀ a, |φ a|≤B) (hE : ∀ a, |ψ a|≤E) + (hq : q =ᵐ[μ] fun x => φ (SobolevSpace.toLp μ hQ u x)*d x+ + ψ (SobolevSpace.toLp μ hQ u x)*localGamma μ hQ u u x) : + IsWeakLaplacian μ hQ (SobolevSpace.comp μ hQ hΦ hΦ0 u) q := by + let c := φ 0 + let α := fun a => Φ a-c*a + let β := fun a => φ a-c + have hα : LipschitzWith (C+‖c‖₊) α := by + simpa only [mul_one,id_eq] using hΦ.sub (lipschitzWith_const_mul_real LipschitzWith.id c) + have hβ : LipschitzWith D β := by + simpa only [add_zero] using hφ.sub (LipschitzWith.const c) + have hα0 : α 0=0 := by simp only [α,hΦ0,mul_zero,sub_self] + have hβ0 : β 0=0 := sub_self _ + have hdα (a : ℝ) : HasDerivAt α (β a) a := by + convert! (hdΦ a).sub ((hasDerivAt_id a).const_mul c) using 1; simp [β] + have hdβ (a : ℝ) : HasDerivAt β (ψ a) a := (hdφ a).sub_const c + have hβB (a : ℝ) : |β a|≤(B+‖c‖₊:ℝ≥0) := by + calc + _ ≤ |φ a|+|c| := abs_sub _ _ + _ ≤ B+|c| := add_le_add (hB a) le_rfl + _ = _ := by simp only [NNReal.coe_add,coe_nnnorm,Real.norm_eq_abs] + let q' := q-c • d + have hq' : q' =ᵐ[μ] fun x => β (SobolevSpace.toLp μ hQ u x)*d x+ + ψ (SobolevSpace.toLp μ hQ u x)*localGamma μ hQ u u x := by + filter_upwards [Lp.coeFn_sub q (c • d),Lp.coeFn_smul c d,hq] with x hx hy hz + change (q-c • d) x = _ + simp only [hx,hy,hz,Pi.sub_apply,Pi.smul_apply,smul_eq_mul,β] + ring + have h := weakLaplacian_comp_C2 μ hQ u d q' hd hα hα0 hβ hβ0 hψ hdα hdβ + (B+‖c‖₊) E hβB hE hq' + have he : SobolevSpace.comp μ hQ hα hα0 u+c • u = SobolevSpace.comp μ hQ hΦ hΦ0 u := by + apply Subtype.ext + apply Lp.ext + change (SobolevSpace.toLp μ hQ (SobolevSpace.comp μ hQ hα hα0 u)+ + c • SobolevSpace.toLp μ hQ u) =ᵐ[μ] SobolevSpace.toLp μ hQ (SobolevSpace.comp μ hQ hΦ hΦ0 u) + filter_upwards [Lp.coeFn_add (SobolevSpace.toLp μ hQ (SobolevSpace.comp μ hQ hα hα0 u)) + (c • SobolevSpace.toLp μ hQ u),Lp.coeFn_smul c (SobolevSpace.toLp μ hQ u), + SobolevSpace.comp_coe μ hQ hα hα0 u,SobolevSpace.comp_coe μ hQ hΦ hΦ0 u] with x ha hs hαx hΦx + simp only [ha,Pi.add_apply,hs,Pi.smul_apply,smul_eq_mul,hαx,hΦx,Function.comp_apply,α] + ring + have hh := h.add μ hQ (hd.smul μ hQ c) + rw [he] at hh + simpa only [q',sub_add_cancel] using hh + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/WeakLaplacianCutoff.lean b/lean/OAI/Geometry/RCD/Sobolev/WeakLaplacianCutoff.lean new file mode 100644 index 0000000000000000000000000000000000000000..cf427817f23d693a49e455a32e0ba1ad95af33b5 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/WeakLaplacianCutoff.lean @@ -0,0 +1,129 @@ +import OAI.Geometry.RCD.Sobolev.CutoffPoissonLaplacian + +namespace OAI + +/-! # Product rule for a compact cutoff and an L² weak Laplacian -/ + +open Set Filter MeasureTheory +open scoped NNReal ENNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) [IsFiniteMeasureOnCompacts μ] (hQ : QuadraticCheegerEnergy μ) + +/-- Localizing a bounded Sobolev function with an L² Laplacian preserves +the L² Laplacian, with the full gradient cross term. -/ +theorem IsWeakLaplacian.cutoff + (f η : SobolevSpace μ hQ) (df : Lp ℝ 2 μ) + (hf : IsWeakLaplacian μ hQ f df) + (d : Lp ℝ 2 μ) (hd : IsWeakLaplacian μ hQ η d) + {χ : X → ℝ} {L B A : ℝ≥0} (hχ : LipschitzWith L χ) + (hs : HasCompactSupport χ) (hb : ∀ x, |χ x| ≤ B) (hn : ∀ x, 0 ≤ χ x) + (hη : SobolevSpace.toLp μ hQ η =ᵐ[μ] χ) + (hA : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ f x| ≤ A) : + ∃ q : Lp ℝ 2 μ, + IsWeakLaplacian μ hQ (SobolevSpace.cutoffCLM μ hQ hχ hs hb hn f) q ∧ + q =ᵐ[μ] fun x => χ x*df x+SobolevSpace.toLp μ hQ f x*d x+ + 2*localGamma μ hQ f η x := by + let F := SobolevSpace.toLp μ hQ f + let M := SobolevSpace.cutoffCLM μ hQ hχ hs hb hn + have hηB : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ η x| ≤ B := hη.mono fun x hx => hx ▸ hb x + have hηG : ∀ᵐ x ∂μ, localGamma μ hQ η η x ≤ (L:ℝ)^2 := by + filter_upwards [localGamma_self μ hQ η,SobolevSpace.minimalSlope_le_lipschitz μ hQ η hχ hη, + (Lp.coeFn_nonneg _).mpr (SobolevSpace.minimalSlope_nonneg μ hQ η)] with x he hg h0 + rw [he] + exact pow_le_pow_left₀ h0 hg 2 + have hγ : MemLp (localGamma μ hQ f η) 2 μ := by + simpa only [Measure.restrict_univ] using + localGamma_memLp_two_of_bound μ hQ univ f η + (by simpa only [Measure.restrict_univ] using hηG) + have hFm : MemLp F ∞ μ := memLp_top_of_bound (Lp.aestronglyMeasurable F) A + (by simpa only [Real.norm_eq_abs] using hA) + have hχtop : MemLp χ ∞ μ := memLp_top_of_bound hχ.continuous.aestronglyMeasurable B + (Eventually.of_forall fun x => by simpa only [Real.norm_eq_abs] using hb x) + have hχdf : MemLp (fun x => χ x*df x) 2 μ := hχtop.mul (Lp.memLp df) + have hmQ : MemLp (fun x => χ x*df x+F x*d x+2*localGamma μ hQ f η x) 2 μ := by + simpa only [Pi.add_apply,Pi.mul_apply,mul_comm] using! + (hχdf.add ((Lp.memLp d).mul hFm)).add (hγ.const_mul 2) + let q := hmQ.toLp _ + have hq : q =ᵐ[μ] fun x => χ x*df x+F x*d x+2*localGamma μ hQ f η x := hmQ.coeFn_toLp + refine ⟨q,?_,hq⟩ + apply weakLaplacian_of_bounded_tests μ hQ + intro g D hg + let G := SobolevSpace.toLp μ hQ g + have hi : Integrable (fun x => χ x*localGamma μ hQ f g x) μ := + (localGamma_memL1 μ hQ f g).bdd_mul hχ.continuous.aestronglyMeasurable + (Eventually.of_forall fun x => by simpa only [Real.norm_eq_abs] using hb x) + have hj : Integrable (fun x => F x*localGamma μ hQ η g x) μ := + (localGamma_memL1 μ hQ η g).bdd_mul (Lp.aestronglyMeasurable F) + (by simpa only [Real.norm_eq_abs] using hA) + have hk : Integrable (fun x => G x*localGamma μ hQ f η x) μ := + (localGamma_memL1 μ hQ f η).bdd_mul (Lp.aestronglyMeasurable G) + (by simpa only [Real.norm_eq_abs] using hg) + have hχdfG : Integrable (fun x => χ x*df x*G x) μ := + hχdf.integrable_mul (Lp.memLp G) + have hdFG : Integrable (fun x => F x*d x*G x) μ := by + convert ((Lp.memLp d).integrable_mul (Lp.memLp G)).bdd_mul (Lp.aestronglyMeasurable F) + (by simpa only [Real.norm_eq_abs] using hA) using 1 + funext x + change F x*d x*G x = F x*(d x*G x) + ring + have hform : energyForm μ hQ (M f) g = + (∫ x, χ x*localGamma μ hQ f g x ∂μ)+(∫ x, F x*localGamma μ hQ η g x ∂μ) := by + rw [← integral_localGamma_eq_energyForm,← integral_add hi hj] + exact integral_congr_ae (localGamma_cutoffCLM μ hQ f η g hχ hs hb hn hη) + have htest : energyForm μ hQ f (M g) = + (∫ x, χ x*localGamma μ hQ f g x ∂μ)+(∫ x, G x*localGamma μ hQ f η x ∂μ) := by + rw [← integral_localGamma_eq_energyForm,← integral_add hi hk] + exact integral_congr_ae (localGamma_cutoffCLM_right μ hQ g η f hχ hs hb hn hη) + have hfirst : energyForm μ hQ f (M g) = -(∫ x, χ x*df x*G x ∂μ) := by + rw [hf,L2.inner_def] + simp only [Real.inner_apply] + congr 1 + apply integral_congr_ae + filter_upwards [SobolevSpace.cutoffCLM_coe μ hQ hχ hs hb hn g] with x hx + change df x*SobolevSpace.toLp μ hQ (M g) x = _ + rw [hx] + ring + have heta : energyForm μ hQ η (SobolevSpace.product μ hQ f g A D) = + (∫ x, F x*localGamma μ hQ η g x ∂μ)+(∫ x, G x*localGamma μ hQ f η x ∂μ) := by + rw [← integral_localGamma_eq_energyForm,← integral_add hj hk] + apply integral_congr_ae + filter_upwards [localGamma_product_right μ hQ η f g A D hA hg, + localGamma_comm μ hQ η f] with x hp hc + rw [hp,hc] + have hsource : energyForm μ hQ η (SobolevSpace.product μ hQ f g A D) = + -(∫ x, F x*d x*G x ∂μ) := by + rw [hd,L2.inner_def] + simp only [Real.inner_apply] + congr 1 + apply integral_congr_ae + filter_upwards [SobolevSpace.product_coe μ hQ f g A D hA hg] with x hx + change d x*SobolevSpace.toLp μ hQ (SobolevSpace.product μ hQ f g A D) x = _ + rw [hx] + ring + have hinner : inner ℝ q G = (∫ x, χ x*df x*G x ∂μ)+ + (∫ x, F x*d x*G x ∂μ)+2*(∫ x, G x*localGamma μ hQ f η x ∂μ) := by + rw [L2.inner_def] + simp only [Real.inner_apply] + have heq : (fun x => q x*G x) =ᵐ[μ] + fun x => χ x*df x*G x+F x*d x*G x+2*(G x*localGamma μ hQ f η x) := by + filter_upwards [hq] with x hx + rw [hx] + ring + have hadd : Integrable (fun x => χ x*df x*G x+F x*d x*G x) μ := by + simpa only [Pi.add_apply] using! hχdfG.add hdFG + rw [integral_congr_ae heq,integral_add hadd (hk.const_mul 2), + integral_add hχdfG hdFG,integral_const_mul] + rw [hform] + change _ = -inner ℝ q G + rw [hinner] + linarith only [htest,hfirst,heta,hsource] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/WeakLaplacianDomain.lean b/lean/OAI/Geometry/RCD/Sobolev/WeakLaplacianDomain.lean new file mode 100644 index 0000000000000000000000000000000000000000..b3828442f3e3bfe666eeb351368f6bdac7db9a07 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/WeakLaplacianDomain.lean @@ -0,0 +1,41 @@ +import OAI.Geometry.RCD.Coordinates.OpenRegularCutoff + +namespace OAI + +/-! # The linear domain of the weak L² Laplacian -/ + +open MeasureTheory +open scoped InnerProductSpace + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] + (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +lemma IsWeakLaplacian.add {f g : SobolevSpace μ hQ} {df dg : Lp ℝ 2 μ} + (hf : IsWeakLaplacian μ hQ f df) (hg : IsWeakLaplacian μ hQ g dg) : + IsWeakLaplacian μ hQ (f+g) (df+dg) := by + intro φ + rw [energyForm_add_left,hf,hg,inner_add_left] + ring + +lemma IsWeakLaplacian.smul {f : SobolevSpace μ hQ} {df : Lp ℝ 2 μ} + (hf : IsWeakLaplacian μ hQ f df) (c : ℝ) : + IsWeakLaplacian μ hQ (c • f) (c • df) := by + intro φ + rw [energyForm_smul_left,hf,real_inner_smul_left] + ring + +/-- The existence domain, with no bound on the size of its Laplacian. -/ +def weakLaplacianDomain : Submodule ℝ (SobolevSpace μ hQ) where + carrier := {f | ∃ d, IsWeakLaplacian μ hQ f d} + zero_mem' := ⟨0,by intro φ; simp [energyForm]⟩ + add_mem' := by rintro f g ⟨df,hf⟩ ⟨dg,hg⟩; exact ⟨df+dg,hf.add μ hQ hg⟩ + smul_mem' := by rintro c f ⟨df,hf⟩; exact ⟨c • df,hf.smul μ hQ c⟩ + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/WeakLaplacianFluxIdentity.lean b/lean/OAI/Geometry/RCD/Sobolev/WeakLaplacianFluxIdentity.lean new file mode 100644 index 0000000000000000000000000000000000000000..92310397ea844b67da5823d19ef4efaef91b571f --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/WeakLaplacianFluxIdentity.lean @@ -0,0 +1,88 @@ +import OAI.Analysis.RCDHeat.ExistingAnalytic + +namespace OAI + +/-! # The exact weak flux of a forward/backward heat product + +Two weak Laplacians tested against actual bounded Sobolev products give +the antisymmetric flux identity. All terms remain in the original measure. +-/ + +open Set Filter MeasureTheory +open scoped NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +theorem weakLaplacian_bounded_product_test (u v w : SobolevSpace μ hQ) + (d : Lp ℝ 2 μ) (hd : IsWeakLaplacian μ hQ u d) (B C : ℝ≥0) + (hv : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ v x| ≤ B) + (hw : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ w x| ≤ C) : + (∫ x, SobolevSpace.toLp μ hQ v x * localGamma μ hQ u w x ∂μ) + + (∫ x, SobolevSpace.toLp μ hQ w x * localGamma μ hQ u v x ∂μ) = + -(∫ x, SobolevSpace.toLp μ hQ w x * (d x * SobolevSpace.toLp μ hQ v x) ∂μ) := by + have hi₁ := (localGamma_memL1 μ hQ u w).bdd_mul + (Lp.aestronglyMeasurable (SobolevSpace.toLp μ hQ v)) (by simpa only [Real.norm_eq_abs] using hv) + have hi₂ := (localGamma_memL1 μ hQ u v).bdd_mul + (Lp.aestronglyMeasurable (SobolevSpace.toLp μ hQ w)) (by simpa only [Real.norm_eq_abs] using hw) + have htest := hd (SobolevSpace.product μ hQ v w B C) + have hl : energyForm μ hQ u (SobolevSpace.product μ hQ v w B C) = + (∫ x, SobolevSpace.toLp μ hQ v x * localGamma μ hQ u w x ∂μ) + + (∫ x, SobolevSpace.toLp μ hQ w x * localGamma μ hQ u v x ∂μ) := by + rw [← integral_localGamma_eq_energyForm,← integral_add hi₁ hi₂] + exact integral_congr_ae (localGamma_product_right μ hQ u v w B C hv hw) + have hr : inner ℝ d (SobolevSpace.toLp μ hQ (SobolevSpace.product μ hQ v w B C)) = + ∫ x, SobolevSpace.toLp μ hQ w x * (d x * SobolevSpace.toLp μ hQ v x) ∂μ := by + rw [L2.inner_def] + apply integral_congr_ae + filter_upwards [SobolevSpace.product_coe μ hQ v w B C hv hw] with x hx + simp only [Real.inner_apply,hx] + ring + rwa [hl,hr] at htest + +theorem weakLaplacian_product_flux (u v w : SobolevSpace μ hQ) (d e : Lp ℝ 2 μ) + (hd : IsWeakLaplacian μ hQ u d) (he : IsWeakLaplacian μ hQ v e) + (A B C : ℝ≥0) + (hu : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ u x| ≤ A) + (hv : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ v x| ≤ B) + (hw : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ w x| ≤ C) : + (∫ x, SobolevSpace.toLp μ hQ w x * + (d x * SobolevSpace.toLp μ hQ v x - SobolevSpace.toLp μ hQ u x * e x) ∂μ) = + ∫ x, SobolevSpace.toLp μ hQ u x * localGamma μ hQ v w x - + SobolevSpace.toLp μ hQ v x * localGamma μ hQ u w x ∂μ := by + let U := SobolevSpace.toLp μ hQ u + let V := SobolevSpace.toLp μ hQ v + let W := SobolevSpace.toLp μ hQ w + have hi₁ := ((Lp.memLp d).integrable_mul (Lp.memLp V)).bdd_mul + (Lp.aestronglyMeasurable W) (by simpa only [Real.norm_eq_abs] using hw) + have hi₂ := ((Lp.memLp U).integrable_mul (Lp.memLp e)).bdd_mul + (Lp.aestronglyMeasurable W) (by simpa only [Real.norm_eq_abs] using hw) + change Integrable (fun x => W x * (d x * V x)) μ at hi₁ + change Integrable (fun x => W x * (U x * e x)) μ at hi₂ + have hj₁ := (localGamma_memL1 μ hQ v w).bdd_mul + (Lp.aestronglyMeasurable U) (by simpa only [Real.norm_eq_abs] using hu) + have hj₂ := (localGamma_memL1 μ hQ u w).bdd_mul + (Lp.aestronglyMeasurable V) (by simpa only [Real.norm_eq_abs] using hv) + have h₁ := weakLaplacian_bounded_product_test μ hQ u v w d hd B C hv hw + have h₂ := weakLaplacian_bounded_product_test μ hQ v u w e he A C hu hw + have hsym : (∫ x, W x * localGamma μ hQ v u x ∂μ) = + ∫ x, W x * localGamma μ hQ u v x ∂μ := by + apply integral_congr_ae + filter_upwards [localGamma_comm μ hQ v u] with x hx + rw [hx] + have hecomm : (∫ x, W x * (e x * U x) ∂μ) = ∫ x, W x * (U x * e x) ∂μ := by + simp_rw [mul_comm (e _) (U _)] + change _ + (∫ x, W x * localGamma μ hQ v u x ∂μ) = + -(∫ x, W x * (e x * U x) ∂μ) at h₂ + rw [hsym,hecomm] at h₂ + change (∫ x, W x * (d x * V x - U x * e x) ∂μ) = _ + simp_rw [mul_sub] + rw [integral_sub hi₁ hi₂,integral_sub hj₁ hj₂] + linarith only [h₁,h₂] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/WeakLaplacianLowerMass.lean b/lean/OAI/Geometry/RCD/Sobolev/WeakLaplacianLowerMass.lean new file mode 100644 index 0000000000000000000000000000000000000000..562cc40459602a327a09fbfd86c014d03a2132db --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/WeakLaplacianLowerMass.lean @@ -0,0 +1,63 @@ +import OAI.Geometry.RCD.Sobolev.WeakLaplacianFluxIdentity + +namespace OAI + +/-! # Local absolute source mass from a one-sided Laplacian bound + +The positive test and its exact weak pairing control both signs of the +source. This is used with the uniform lower bounds on scaled heat logs. +-/ + +open Set Filter MeasureTheory +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) (Q : QuadraticCheegerEnergy μ) + +omit [BorelSpace X] [ProperSpace X] in +theorem weakLaplacian_lower_weighted_mass (u χ : SobolevSpace μ Q) (d : Lp ℝ 2 μ) + (hd : IsWeakLaplacian μ Q u d) (v : X → ℝ) + (hv : SobolevSpace.toLp μ Q χ =ᵐ[μ] v) (hvi : Integrable v μ) + (hv0 : ∀ x, 0≤v x) {C : ℝ} (hC : 0≤C) + (hlower : ∀ᵐ x ∂μ, v x≠0 → -C≤d x) : + Integrable (fun x => v x*|d x|) μ ∧ + (∫ x, v x*|d x| ∂μ)≤|energyForm μ Q u χ|+2*C*(∫ x, v x ∂μ) := by + have hi : Integrable (fun x => v x*d x) μ := + ((Lp.memLp (SobolevSpace.toLp μ Q χ)).integrable_mul (Lp.memLp d)).congr + (hv.mono fun x hx => congrArg (fun a => a*d x) hx) + have hia : Integrable (fun x => v x*|d x|) μ := hi.abs.congr + (Eventually.of_forall fun x => by + change |v x*d x|=v x*|d x| + rw [abs_mul,abs_of_nonneg (hv0 x)]) + have hpair : inner ℝ d (SobolevSpace.toLp μ Q χ)=∫ x, v x*d x ∂μ := by + rw [L2.inner_def] + apply integral_congr_ae + filter_upwards [hv] with x hx + simp only [Real.inner_apply,hx] + ring + have he := hd χ + rw [hpair] at he + refine ⟨hia,?_⟩ + calc + (∫ x, v x*|d x| ∂μ) ≤ ∫ x, v x*d x+2*C*v x ∂μ := by + apply integral_mono_ae hia (hi.add (hvi.const_mul (2*C))) + filter_upwards [hlower] with x hx + change v x*|d x|≤v x*d x+2*C*v x + by_cases hz : v x=0 + · simp only [hz,zero_mul,mul_zero,add_zero] + exact le_rfl + · have hdC := hx hz + have ha : |d x|≤d x+2*C := abs_le.mpr ⟨by linarith,by linarith⟩ + have hh := mul_le_mul_of_nonneg_left ha (hv0 x) + nlinarith only [hh] + _ = (∫ x, v x*d x ∂μ)+2*C*(∫ x, v x ∂μ) := by + rw [integral_add hi (hvi.const_mul (2*C)),integral_const_mul] + _ ≤ |energyForm μ Q u χ|+2*C*(∫ x, v x ∂μ) := by + have hh := neg_le_abs (energyForm μ Q u χ) + linarith only [he,hh] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/WeakLaplacianMixedSourceL2.lean b/lean/OAI/Geometry/RCD/Sobolev/WeakLaplacianMixedSourceL2.lean new file mode 100644 index 0000000000000000000000000000000000000000..337395575c5972d69a72f2b7c4762d47792a1b4c --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/WeakLaplacianMixedSourceL2.lean @@ -0,0 +1,153 @@ +import OAI.Geometry.RCD.Sobolev.BochnerMixedTerm +import OAI.Geometry.RCD.Sobolev.GammaL2Bound + +namespace OAI + +/-! # Mixed integration by parts with an arbitrary L2 source + +Bounded Sobolev recovery converges strongly. With one bounded-gradient +factor, both remaining products are L² pairings, so the product identity +passes to an unbounded Sobolev Laplacian. +-/ + +open Set Filter MeasureTheory +open scoped NNReal Topology + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +private theorem mixed_bounded_source_test (f w b : SobolevSpace μ hQ) (d : Lp ℝ 2 μ) + (A C : ℝ≥0) + (hb : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ b x| ≤ A) + (hw : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ w x| ≤ C) + (hΔ : IsWeakLaplacian μ hQ f d) : + weightedGamma μ hQ (SobolevSpace.toLp μ hQ w) f b + + weightedGamma μ hQ (SobolevSpace.toLp μ hQ b) f w = + -(∫ x, SobolevSpace.toLp μ hQ w x * d x * SobolevSpace.toLp μ hQ b x ∂μ) := by + have hbn : ∀ᵐ x ∂μ, ‖SobolevSpace.toLp μ hQ b x‖ ≤ (A : ℝ) := by + simpa only [Real.norm_eq_abs] using hb + have hwn : ∀ᵐ x ∂μ, ‖SobolevSpace.toLp μ hQ w x‖ ≤ (C : ℝ) := by + simpa only [Real.norm_eq_abs] using hw + have hi₁ := (localGamma_memL1 μ hQ f b).bdd_mul + (Lp.aestronglyMeasurable (SobolevSpace.toLp μ hQ w)) hwn + have hi₂ := (localGamma_memL1 μ hQ f w).bdd_mul + (Lp.aestronglyMeasurable (SobolevSpace.toLp μ hQ b)) hbn + have htest := hΔ (SobolevSpace.product μ hQ b w A C) + have hleft : energyForm μ hQ f (SobolevSpace.product μ hQ b w A C) = + weightedGamma μ hQ (SobolevSpace.toLp μ hQ w) f b + + weightedGamma μ hQ (SobolevSpace.toLp μ hQ b) f w := by + rw [← integral_localGamma_eq_energyForm] + unfold weightedGamma + rw [← integral_add hi₁ hi₂] + apply integral_congr_ae + filter_upwards [localGamma_product_right μ hQ f b w A C hb hw] with x hx + rw [hx] + ring + have hright : inner ℝ d (SobolevSpace.toLp μ hQ (SobolevSpace.product μ hQ b w A C)) = + ∫ x, SobolevSpace.toLp μ hQ w x * d x * SobolevSpace.toLp μ hQ b x ∂μ := by + rw [L2.inner_def] + apply integral_congr_ae + filter_upwards [SobolevSpace.product_coe μ hQ b w A C hb hw] with x hx + simp only [Real.inner_apply, hx] + ring + rw [hleft, hright] at htest + exact htest + +theorem weakLaplacian_mixed_source_L2 (f b w : SobolevSpace μ hQ) (d : Lp ℝ 2 μ) + (C L : ℝ≥0) (hw : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ w x|≤C) + (hf : ∀ᵐ x ∂μ, SobolevSpace.minimalSlope μ hQ f x≤L) + (hd : IsWeakLaplacian μ hQ f d) : + weightedGamma μ hQ (SobolevSpace.toLp μ hQ w) f b+ + weightedGamma μ hQ (SobolevSpace.toLp μ hQ b) f w = + -(∫ x, SobolevSpace.toLp μ hQ w x*d x*SobolevSpace.toLp μ hQ b x ∂μ) := by + let W := SobolevSpace.toLp μ hQ w + let B := SobolevSpace.toLp μ hQ b + have hwn : ∀ᵐ x ∂μ, ‖W x‖≤(C:ℝ) := by simpa only [Real.norm_eq_abs] using hw + have hΓ := localGamma_memLp_of_bounded_gradient μ hQ f w L hf + let Q := hΓ.toLp (localGamma μ hQ f w) + have hT : MemLp (fun x => W x*d x) 2 μ := by + apply ((Lp.memLp d).norm.const_mul (C:ℝ)).mono' + ((Lp.aestronglyMeasurable W).mul (Lp.aestronglyMeasurable d)) + filter_upwards [hwn] with x hx + change ‖W x*d x‖≤(C:ℝ)*‖d x‖ + rw [norm_mul] + exact mul_le_mul_of_nonneg_right hx (norm_nonneg _) + let T := hT.toLp _ + have hpair (v : SobolevSpace μ hQ) : + (∫ x, W x*d x*SobolevSpace.toLp μ hQ v x ∂μ)=inner ℝ (SobolevSpace.toLp μ hQ v) T := by + rw [L2.inner_def] + apply integral_congr_ae + filter_upwards [hT.coeFn_toLp] with x hx + change T x = W x*d x at hx + simp only [Real.inner_apply,hx] + ring + obtain ⟨bs,hbs,hbound⟩ := SobolevSpace.bounded_strong_recovery μ hQ b + have heq (k : ℕ) : weightedGamma μ hQ W f (bs k)+ + inner ℝ (SobolevSpace.toLp μ hQ (bs k)) Q+ + inner ℝ (SobolevSpace.toLp μ hQ (bs k)) T=0 := by + have hh := mixed_bounded_source_test μ hQ f w (bs k) d k C (hbound k) hw hd + rw [weightedGamma_eq_L2_inner μ hQ f w hΓ,hpair] at hh + linarith + have h₁ : Tendsto (fun k => weightedGamma μ hQ W f (bs k)) atTop + (𝓝 (weightedGamma μ hQ W f b)) := + (((weightedGammaCLM μ hQ (Lp.aestronglyMeasurable W) hwn) f).continuous.tendsto b).comp hbs + have hlp := ((SobolevSpace.toLpCLM μ hQ).continuous.tendsto b).comp hbs + have h₂ : Tendsto (fun k => inner ℝ (SobolevSpace.toLp μ hQ (bs k)) Q) atTop + (𝓝 (inner ℝ B Q)) := hlp.inner tendsto_const_nhds + have h₃ : Tendsto (fun k => inner ℝ (SobolevSpace.toLp μ hQ (bs k)) T) atTop + (𝓝 (inner ℝ B T)) := hlp.inner tendsto_const_nhds + have hz : weightedGamma μ hQ W f b+inner ℝ B Q+inner ℝ B T=0 := + tendsto_nhds_unique ((h₁.add h₂).add h₃) + (tendsto_const_nhds.congr' (Eventually.of_forall fun k => (heq k).symm)) + rw [←weightedGamma_eq_L2_inner μ hQ f w hΓ,←hpair b] at hz + linarith + +/-- An L² source can be replaced by a Sobolev representative only near +the test support. No amplitude bound on that representative is needed. -/ +theorem weakLaplacian_local_mixed_source_L2 {Ω : Set X} (hΩ : MeasurableSet Ω) + (f b w : SobolevSpace μ hQ) (d e : Lp ℝ 2 μ) + (hd : IsWeakLaplacian μ hQ f d) + (he : e =ᵐ[μ.restrict Ω] SobolevSpace.toLp μ hQ b) + (C L : ℝ≥0) + (hw : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ w x|≤C) + (hf : ∀ᵐ x ∂μ, SobolevSpace.minimalSlope μ hQ f x≤L) + (q : X → ℝ) (hwr : SobolevSpace.toLp μ hQ w =ᵐ[μ] q) + (hq : tsupport q ⊆ Ω) : + (∫ x, q x*d x*e x ∂μ)+weightedGamma μ hQ e f w = + -(∫ x, q x*localGamma μ hQ f b x ∂μ) := by + have hzero (x : X) (hx : x ∉ Ω) : q x=0 := + image_eq_zero_of_notMem_tsupport (fun hs => hx (hq hs)) + have he' := (ae_restrict_iff' hΩ).mp he + have hsource : (∫ x, SobolevSpace.toLp μ hQ w x*d x* + SobolevSpace.toLp μ hQ b x ∂μ) = ∫ x, q x*d x*e x ∂μ := by + apply integral_congr_ae + filter_upwards [hwr,he'] with x hx hy + rw [hx] + by_cases hm : x ∈ Ω + · rw [hy hm] + · simp only [hzero x hm,zero_mul] + have hweight : weightedGamma μ hQ e f w = + weightedGamma μ hQ (SobolevSpace.toLp μ hQ b) f w := by + unfold weightedGamma + apply integral_congr_ae + filter_upwards [he',hwr,localGamma_zero_on_level μ hQ w f 0, + localGamma_comm μ hQ f w] with x hex hx hz hc + by_cases hm : x ∈ Ω + · rw [hex hm] + · rw [hc,hz (hx.trans (hzero x hm)),mul_zero,mul_zero] + have hpair : weightedGamma μ hQ (SobolevSpace.toLp μ hQ w) f b = + ∫ x, q x*localGamma μ hQ f b x ∂μ := by + exact integral_congr_ae (hwr.mono fun x hx => + congrArg (fun z => z*localGamma μ hQ f b x) hx) + have ht := weakLaplacian_mixed_source_L2 μ hQ f b w d C L hw hf hd + rw [hsource,hpair,←hweight] at ht + linarith only [ht] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/WeakLaplacianOperator.lean b/lean/OAI/Geometry/RCD/Sobolev/WeakLaplacianOperator.lean new file mode 100644 index 0000000000000000000000000000000000000000..1982d4972e3610f55ee121d9d408843cf9252dd5 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/WeakLaplacianOperator.lean @@ -0,0 +1,34 @@ +import OAI.Geometry.RCD.Sobolev.WeakLaplacianDomain + +namespace OAI + +/-! # The actual L² Laplacian as a linear operator on its domain -/ + +open MeasureTheory + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) [μ.Regular] (hQ : QuadraticCheegerEnergy μ) + +/-- Uniqueness in L² makes the weak Laplacian a linear operator. No +continuity on the whole Sobolev domain is claimed. -/ +def weakLaplacianOperator : weakLaplacianDomain μ hQ →ₗ[ℝ] Lp ℝ 2 μ where + toFun f := Classical.choose f.property + map_add' f g := by + apply IsWeakLaplacian.unique μ hQ (Classical.choose_spec (f+g).property) + exact (Classical.choose_spec f.property).add μ hQ (Classical.choose_spec g.property) + map_smul' c f := by + apply IsWeakLaplacian.unique μ hQ (Classical.choose_spec (c • f).property) + exact (Classical.choose_spec f.property).smul μ hQ c + +@[simp] theorem weakLaplacianOperator_spec (f : weakLaplacianDomain μ hQ) : + IsWeakLaplacian μ hQ f.val (weakLaplacianOperator μ hQ f) := + Classical.choose_spec f.property + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/WeakLaplacianPowerProduct.lean b/lean/OAI/Geometry/RCD/Sobolev/WeakLaplacianPowerProduct.lean new file mode 100644 index 0000000000000000000000000000000000000000..3f9c81bfe62506cc0f90de5e74de505e90ad4e34 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/WeakLaplacianPowerProduct.lean @@ -0,0 +1,50 @@ +import OAI.Geometry.RCD.Sobolev.SobolevPositivePower + +namespace OAI + +/-! # Exact weak-source pairing against two positive powers -/ + +open Set Filter MeasureTheory +open scoped NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) (Q : QuadraticCheegerEnergy μ) + +theorem weakLaplacian_power_product_test (f u v : SobolevSpace μ Q) (d : Lp ℝ 2 μ) + (hd : IsWeakLaplacian μ Q f d) (A B : ℝ≥0) + (hu : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ Q u x| ≤ A) + (hv : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ Q v x| ≤ B) (n m : ℕ) : + (∫ x, (SobolevSpace.toLp μ Q v x)^(m+1)* + ((n+1:ℝ)*(SobolevSpace.toLp μ Q u x)^n*localGamma μ Q u f x) ∂μ)+ + (∫ x, (SobolevSpace.toLp μ Q u x)^(n+1)* + ((m+1:ℝ)*(SobolevSpace.toLp μ Q v x)^m*localGamma μ Q v f x) ∂μ) = + -(∫ x, (SobolevSpace.toLp μ Q v x)^(m+1)* + (SobolevSpace.toLp μ Q u x)^(n+1)*d x ∂μ) := by + obtain ⟨U,hU,hUb,hUΓ⟩ := exists_sobolev_positive_power μ Q u A hu n + obtain ⟨V,hV,hVb,hVΓ⟩ := exists_sobolev_positive_power μ Q v B hv m + have he := IsWeakLaplacian.weighted_product μ Q f U V d hd (A^(n+1)) (B^(m+1)) hUb hVb + have h₁ : weightedGamma μ Q (SobolevSpace.toLp μ Q V) f U = + ∫ x, (SobolevSpace.toLp μ Q v x)^(m+1)* + ((n+1:ℝ)*(SobolevSpace.toLp μ Q u x)^n*localGamma μ Q u f x) ∂μ := by + apply integral_congr_ae + filter_upwards [hV,hUΓ f,localGamma_comm μ Q f U] with x hx hy hz + rw [hx,hz,hy] + have h₂ : weightedGamma μ Q (SobolevSpace.toLp μ Q U) f V = + ∫ x, (SobolevSpace.toLp μ Q u x)^(n+1)* + ((m+1:ℝ)*(SobolevSpace.toLp μ Q v x)^m*localGamma μ Q v f x) ∂μ := by + apply integral_congr_ae + filter_upwards [hU,hVΓ f,localGamma_comm μ Q f V] with x hx hy hz + rw [hx,hz,hy] + have h₃ : (∫ x, SobolevSpace.toLp μ Q V x*SobolevSpace.toLp μ Q U x*d x ∂μ) = + ∫ x, (SobolevSpace.toLp μ Q v x)^(m+1)*(SobolevSpace.toLp μ Q u x)^(n+1)*d x ∂μ := by + apply integral_congr_ae + filter_upwards [hU,hV] with x hx hy + rw [hx,hy] + rwa [h₁,h₂,h₃] at he + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/WeakLaplacianProduct.lean b/lean/OAI/Geometry/RCD/Sobolev/WeakLaplacianProduct.lean new file mode 100644 index 0000000000000000000000000000000000000000..5439b430d2c52fbe0112be4698531a230908bfd2 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/WeakLaplacianProduct.lean @@ -0,0 +1,119 @@ +import OAI.Geometry.RCD.Sobolev.WeakLaplacianDomain + +namespace OAI + +/-! # L² Laplacians of products of bounded Sobolev functions -/ + +open Set Filter MeasureTheory +open scoped NNReal ENNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +/-- The product rule retains the mixed gradient term. A bounded gradient +of one factor suffices to make the resulting weak Laplacian belong to L². -/ +theorem IsWeakLaplacian.product + (f g : SobolevSpace μ hQ) (df dg : Lp ℝ 2 μ) + (hdf : IsWeakLaplacian μ hQ f df) (hdg : IsWeakLaplacian μ hQ g dg) + (A B L : ℝ≥0) + (hA : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ f x| ≤ A) + (hB : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ g x| ≤ B) + (hL : ∀ᵐ x ∂μ, localGamma μ hQ g g x ≤ (L:ℝ)^2) : + ∃ q : Lp ℝ 2 μ, + IsWeakLaplacian μ hQ (SobolevSpace.product μ hQ f g A B) q ∧ + q =ᵐ[μ] fun x => SobolevSpace.toLp μ hQ g x*df x+ + SobolevSpace.toLp μ hQ f x*dg x+2*localGamma μ hQ f g x := by + let F := SobolevSpace.toLp μ hQ f + let G := SobolevSpace.toLp μ hQ g + have hmF : MemLp F ∞ μ := memLp_top_of_bound (Lp.aestronglyMeasurable F) A + (by simpa only [Real.norm_eq_abs] using hA) + have hmG : MemLp G ∞ μ := memLp_top_of_bound (Lp.aestronglyMeasurable G) B + (by simpa only [Real.norm_eq_abs] using hB) + have hΓ : MemLp (localGamma μ hQ f g) 2 μ := by + simpa only [Measure.restrict_univ] using localGamma_memLp_two_of_bound μ hQ univ f g + (by simpa only [Measure.restrict_univ] using hL) + have hGdf : MemLp (fun x => G x*df x) 2 μ := hmG.mul (Lp.memLp df) + have hFdg : MemLp (fun x => F x*dg x) 2 μ := hmF.mul (Lp.memLp dg) + have hm : MemLp (fun x => G x*df x+F x*dg x+2*localGamma μ hQ f g x) 2 μ := by + simpa only [Pi.add_apply] using! (hGdf.add hFdg).add (hΓ.const_mul 2) + let q := hm.toLp _ + have hq : q =ᵐ[μ] fun x => G x*df x+F x*dg x+2*localGamma μ hQ f g x := hm.coeFn_toLp + refine ⟨q,?_,hq⟩ + apply weakLaplacian_of_bounded_tests μ hQ + intro φ D hφ + let P := SobolevSpace.toLp μ hQ φ + have hi : Integrable (fun x => G x*localGamma μ hQ f φ x) μ := + (localGamma_memL1 μ hQ f φ).bdd_mul (Lp.aestronglyMeasurable G) + (by simpa only [Real.norm_eq_abs] using hB) + have hj : Integrable (fun x => F x*localGamma μ hQ g φ x) μ := + (localGamma_memL1 μ hQ g φ).bdd_mul (Lp.aestronglyMeasurable F) + (by simpa only [Real.norm_eq_abs] using hA) + have hk : Integrable (fun x => P x*localGamma μ hQ f g x) μ := + (localGamma_memL1 μ hQ f g).bdd_mul (Lp.aestronglyMeasurable P) + (by simpa only [Real.norm_eq_abs] using hφ) + have hi' : Integrable (fun x => G x*df x*P x) μ := hGdf.integrable_mul (Lp.memLp P) + have hj' : Integrable (fun x => F x*dg x*P x) μ := hFdg.integrable_mul (Lp.memLp P) + have hform : energyForm μ hQ (SobolevSpace.product μ hQ f g A B) φ = + (∫ x, G x*localGamma μ hQ f φ x ∂μ)+(∫ x, F x*localGamma μ hQ g φ x ∂μ) := by + rw [← integral_localGamma_eq_energyForm,← integral_add hi hj] + apply integral_congr_ae + filter_upwards [localGamma_product_left μ hQ f g φ A B hA hB] with x hx + rw [hx] + ring + have htestf : energyForm μ hQ f (SobolevSpace.product μ hQ g φ B D) = + (∫ x, G x*localGamma μ hQ f φ x ∂μ)+(∫ x, P x*localGamma μ hQ f g x ∂μ) := by + rw [← integral_localGamma_eq_energyForm,← integral_add hi hk] + exact integral_congr_ae (localGamma_product_right μ hQ f g φ B D hB hφ) + have htestg : energyForm μ hQ g (SobolevSpace.product μ hQ f φ A D) = + (∫ x, F x*localGamma μ hQ g φ x ∂μ)+(∫ x, P x*localGamma μ hQ f g x ∂μ) := by + rw [← integral_localGamma_eq_energyForm,← integral_add hj hk] + apply integral_congr_ae + filter_upwards [localGamma_product_right μ hQ g f φ A D hA hφ, + localGamma_comm μ hQ g f] with x hx hc + rw [hx,hc] + have hsourcef : energyForm μ hQ f (SobolevSpace.product μ hQ g φ B D) = + -(∫ x, G x*df x*P x ∂μ) := by + rw [hdf,L2.inner_def] + simp only [Real.inner_apply] + congr 1 + apply integral_congr_ae + filter_upwards [SobolevSpace.product_coe μ hQ g φ B D hB hφ] with x hx + change df x*SobolevSpace.toLp μ hQ (SobolevSpace.product μ hQ g φ B D) x = _ + rw [hx] + ring + have hsourceg : energyForm μ hQ g (SobolevSpace.product μ hQ f φ A D) = + -(∫ x, F x*dg x*P x ∂μ) := by + rw [hdg,L2.inner_def] + simp only [Real.inner_apply] + congr 1 + apply integral_congr_ae + filter_upwards [SobolevSpace.product_coe μ hQ f φ A D hA hφ] with x hx + change dg x*SobolevSpace.toLp μ hQ (SobolevSpace.product μ hQ f φ A D) x = _ + rw [hx] + ring + have hinner : inner ℝ q P = (∫ x, G x*df x*P x ∂μ)+ + (∫ x, F x*dg x*P x ∂μ)+2*(∫ x, P x*localGamma μ hQ f g x ∂μ) := by + rw [L2.inner_def] + simp only [Real.inner_apply] + have heq : (fun x => q x*P x) =ᵐ[μ] + fun x => G x*df x*P x+F x*dg x*P x+2*(P x*localGamma μ hQ f g x) := by + filter_upwards [hq] with x hx + rw [hx] + ring + have hsum : Integrable (fun x => G x*df x*P x+F x*dg x*P x) μ := by + simpa only [Pi.add_apply] using! hi'.add hj' + rw [integral_congr_ae heq,integral_add hsum (hk.const_mul 2), + integral_add hi' hj',integral_const_mul] + rw [hform] + change _ = -inner ℝ q P + rw [hinner] + linarith only [htestf,htestg,hsourcef,hsourceg] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/WeakLaplacianSquare.lean b/lean/OAI/Geometry/RCD/Sobolev/WeakLaplacianSquare.lean new file mode 100644 index 0000000000000000000000000000000000000000..a3b2f0140bc6112c326148921d482b363cf0d564 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/WeakLaplacianSquare.lean @@ -0,0 +1,69 @@ +import OAI.Geometry.RCD.Sobolev.MeasureProductEnergy + +namespace OAI + +/-! # The square rule for a bounded weak Laplacian + +This is the product identity needed to differentiate heat variance. +The asserted right-hand side is an actual L² function. +-/ + +open Set Filter MeasureTheory +open scoped NNReal InnerProductSpace + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +/-- The exact weak square rule, proved using bounded tests and density. -/ +theorem weakLaplacian_square (f : SobolevSpace μ hQ) (d q : Lp ℝ 2 μ) + (C : ℝ≥0) (hf : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ f x| ≤ C) + (hd : IsWeakLaplacian μ hQ f d) + (hq : q =ᵐ[μ] fun x => 2*(SobolevSpace.toLp μ hQ f x*d x+localGamma μ hQ f f x)) : + IsWeakLaplacian μ hQ (SobolevSpace.square μ hQ f C) q := by + have heq : SobolevSpace.square μ hQ f C = SobolevSpace.product μ hQ f f C C := by + apply Subtype.ext + apply Lp.ext + filter_upwards [SobolevSpace.square_coe μ hQ f C hf, + SobolevSpace.product_coe μ hQ f f C C hf hf] with x hs hp + change SobolevSpace.toLp μ hQ (SobolevSpace.square μ hQ f C) x = + SobolevSpace.toLp μ hQ (SobolevSpace.product μ hQ f f C C) x + rw [hs,hp,pow_two] + apply weakLaplacian_of_bounded_tests μ hQ + intro g B hg + let P := SobolevSpace.product μ hQ f g C B + have hP := SobolevSpace.product_coe μ hQ f g C B hf hg + have hbil := energy_product_integration_by_parts μ hQ f f g C C B hf hf hg + rw [← heq] at hbil + have htest := hd P + have hi1 : Integrable (fun x => d x*SobolevSpace.toLp μ hQ P x) μ := + (Lp.memLp d).integrable_mul (Lp.memLp (SobolevSpace.toLp μ hQ P)) + have hi2 : Integrable (fun x => SobolevSpace.toLp μ hQ g x*localGamma μ hQ f f x) μ := by + apply (localGamma_memL1 μ hQ f f).bdd_mul (Lp.aestronglyMeasurable _) + simpa only [Real.norm_eq_abs] using hg + have hpair : inner ℝ q (SobolevSpace.toLp μ hQ g) = + 2*inner ℝ d (SobolevSpace.toLp μ hQ P)+ + 2*∫ x, SobolevSpace.toLp μ hQ g x*localGamma μ hQ f f x ∂μ := by + rw [L2.inner_def,L2.inner_def] + simp only [Real.inner_apply] + rw [← integral_const_mul,← integral_const_mul,← integral_add (hi1.const_mul 2) (hi2.const_mul 2)] + apply integral_congr_ae + filter_upwards [hq,hP] with x hq hP + change SobolevSpace.toLp μ hQ P x = _ at hP + simp only [hq,hP] + ring + change energyForm μ hQ (SobolevSpace.square μ hQ f C) g = -inner ℝ q _ + change energyForm μ hQ f P = _ at htest + change energyForm μ hQ (SobolevSpace.square μ hQ f C) g = + energyForm μ hQ f P+energyForm μ hQ f P- + 2*∫ x, SobolevSpace.toLp μ hQ g x*localGamma μ hQ f f x ∂μ at hbil + rw [hbil,htest,hpair] + ring + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/WeakLaplacianSupport.lean b/lean/OAI/Geometry/RCD/Sobolev/WeakLaplacianSupport.lean new file mode 100644 index 0000000000000000000000000000000000000000..b0d5cc57254953b15cd7de92ae17d03f9c04c30e --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/WeakLaplacianSupport.lean @@ -0,0 +1,118 @@ +import OAI.Geometry.RCD.Coordinates.RegularDirichletCore + +namespace OAI + +/-! # Support of the actual weak Laplacian + +Locality against cutoff multiples and density of the Sobolev domain show +that a compactly supported function has no Laplacian outside its support. +-/ + +open Set Filter MeasureTheory Metric +open scoped NNReal ENNReal Topology InnerProductSpace +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) [μ.Regular] + (Q : QuadraticCheegerEnergy μ) + +theorem IsWeakLaplacian.cutoff_mul_eq_zero + {f : SobolevSpace μ Q} {d : Lp ℝ 2 μ} (hd : IsWeakLaplacian μ Q f d) + (χ : X → ℝ) {L B : ℝ≥0} (hχ : LipschitzWith L χ) + (hc : HasCompactSupport χ) (hB : ∀ x, |χ x| ≤ B) (h0 : ∀ x, 0 ≤ χ x) + (hf : ∀ᵐ x ∂μ, χ x ≠ 0 → SobolevSpace.toLp μ Q f x = 0) : + (fun x => χ x*d x) =ᵐ[μ] 0 := by + let M := SobolevSpace.cutoffCLM μ Q hχ hc hB h0 + have hm : MemLp χ ∞ μ := memLp_top_of_bound hχ.continuous.aestronglyMeasurable B + (Eventually.of_forall fun x => by simpa only [Real.norm_eq_abs] using hB x) + have hq : MemLp (fun x => χ x*d x) 2 μ := hm.mul (Lp.memLp d) + let q := hq.toLp _ + have hzero (g : SobolevSpace μ Q) : energyForm μ Q f (M g) = 0 := by + rw [← integral_localGamma_eq_energyForm] + apply integral_eq_zero_of_ae + filter_upwards [hf,SobolevSpace.cutoffCLM_coe μ Q hχ hc hB h0 g, + localGamma_zero_on_level μ Q f (M g) 0, + localGamma_zero_on_level μ Q (M g) f 0, + localGamma_comm μ Q f (M g)] with x hx he hz hw hcomm + by_cases hχx : χ x = 0 + · exact hcomm.trans (hw (he.trans (by rw [hχx,zero_mul]))) + · exact hz (hx hχx) + have hi (g : SobolevSpace μ Q) : inner ℝ q (SobolevSpace.toLp μ Q g) = 0 := by + have he : inner ℝ q (SobolevSpace.toLp μ Q g) = + inner ℝ d (SobolevSpace.toLp μ Q (M g)) := by + rw [L2.inner_def,L2.inner_def] + apply integral_congr_ae + filter_upwards [hq.coeFn_toLp,SobolevSpace.cutoffCLM_coe μ Q hχ hc hB h0 g] + with x hqx hmx + simp only [Real.inner_apply] + change q x * SobolevSpace.toLp μ Q g x = d x * SobolevSpace.toLp μ Q (M g) x + change q x = _ at hqx + change SobolevSpace.toLp μ Q (M g) x = _ at hmx + rw [hqx,hmx] + ring + rw [he] + have hh := hd (M g) + rw [hzero g] at hh + linarith + have heq : (fun a : Lp ℝ 2 μ => inner ℝ q a) = fun _ => (0:ℝ) := + (SobolevSpace.toLp_denseRange μ Q).equalizer (by fun_prop) (by fun_prop) (funext hi) + have hq0 : q = 0 := inner_self_eq_zero.mp (congrFun heq q) + have hz : (q : X → ℝ) =ᵐ[μ] 0 := by + rw [hq0] + exact Lp.coeFn_zero ℝ 2 μ + exact hq.coeFn_toLp.symm.trans hz + +theorem IsWeakLaplacian.zero_off_closedBall + {f : SobolevSpace μ Q} {d : Lp ℝ 2 μ} (hd : IsWeakLaplacian μ Q f d) + (z : X) (r : ℝ) + (hf : ∀ᵐ x ∂μ, x ∉ closedBall z r → SobolevSpace.toLp μ Q f x = 0) : + ∀ᵐ x ∂μ, x ∉ closedBall z r → d x = 0 := by + let a := fun x => min (max (dist x z-r) 0) 1 + have hs : LipschitzWith 1 (fun x => dist x z-r) := by + apply LipschitzWith.of_dist_le_mul + intro x y + simpa only [Real.dist_eq,sub_sub_sub_cancel_right,NNReal.coe_one,one_mul] + using (LipschitzWith.dist_left z).dist_le_mul x y + have ha : LipschitzWith 1 a := (hs.max_const 0).min_const 1 + have ha0 (x : X) : 0 ≤ a x := le_min (le_max_right _ _) zero_le_one + have haB (x : X) : |a x| ≤ (1:ℝ≥0) := by + rw [abs_of_nonneg (ha0 x)] + exact min_le_right _ _ + let χ := fun k : ℕ => fun x => radialCutoff z ((k:ℝ)+1) x*a x + have hb (k : ℕ) (x : X) : |radialCutoff z ((k:ℝ)+1) x| ≤ (1:ℝ≥0) := by + rw [abs_of_nonneg (radialCutoff_bounds z _ x).1] + exact (radialCutoff_bounds z _ x).2 + have hprod (k : ℕ) : (fun x => χ k x*d x) =ᵐ[μ] 0 := by + have hk : 0 < (k:ℝ)+1 := by positivity + have hχ := lipschitzWith_mul_of_support_bound (radialCutoff_lipschitz z hk) ha + (hb k) (fun x _ => haB x) + apply hd.cutoff_mul_eq_zero μ Q (χ k) hχ + ((radialCutoff_hasCompactSupport z hk).mul_right) + (B := 1) + · intro x + rw [abs_mul] + exact (mul_le_mul (hb k x) (haB x) (abs_nonneg _) zero_le_one).trans_eq (by norm_num) + · intro x + exact mul_nonneg (radialCutoff_bounds z _ x).1 (ha0 x) + · filter_upwards [hf] with x hx hχx + apply hx + intro hin + have hz : a x = 0 := by + dsimp only [a] + rw [max_eq_right (sub_nonpos.mpr hin),min_eq_left zero_le_one] + exact hχx (by dsimp only [χ]; rw [hz,mul_zero]) + filter_upwards [ae_all_iff.mpr hprod] with x hx hout + obtain ⟨k,hk⟩ := exists_nat_gt (dist x z) + have hk0 : 0 < (k:ℝ)+1 := by positivity + have hax : 0 < a x := lt_min (lt_max_of_lt_left (sub_pos.mpr (lt_of_not_ge hout))) zero_lt_one + have hχx : χ k x ≠ 0 := by + dsimp only [χ] + rw [radialCutoff_eq_one z hk0 (by rw [dist_comm]; linarith),one_mul] + exact ne_of_gt hax + exact (mul_eq_zero.mp (hx k)).resolve_left hχx + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/WeakLaplacianWeightedProduct.lean b/lean/OAI/Geometry/RCD/Sobolev/WeakLaplacianWeightedProduct.lean new file mode 100644 index 0000000000000000000000000000000000000000..284eeb9de3e9811dce9dd7f900e4b6c2c6e7ac9c --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/WeakLaplacianWeightedProduct.lean @@ -0,0 +1,66 @@ +import OAI.Geometry.RCD.Sobolev.WeakLaplacianProduct +import OAI.Geometry.RCD.Sobolev.WeightedGammaGradientBound + +namespace OAI + +/-! # Product tests against an L² weak Laplacian + +Both product factors are bounded Sobolev functions. In particular no +Sobolev derivative of the Laplacian is needed for these identities. +-/ + +open Set Filter MeasureTheory +open scoped NNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +/-- The energy product rule with the two bounded coefficients exposed. -/ +theorem energyForm_product_test (f g w : SobolevSpace μ hQ) (A B : ℝ≥0) + (hf : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ f x|≤A) + (hg : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ g x|≤B) : + energyForm μ hQ (SobolevSpace.product μ hQ f g A B) w = + weightedGamma μ hQ (SobolevSpace.toLp μ hQ f) g w+ + weightedGamma μ hQ (SobolevSpace.toLp μ hQ g) f w := by + have hi := (localGamma_memL1 μ hQ g w).bdd_mul + (Lp.aestronglyMeasurable (SobolevSpace.toLp μ hQ f)) + (by simpa only [Real.norm_eq_abs] using hf) + have hj := (localGamma_memL1 μ hQ f w).bdd_mul + (Lp.aestronglyMeasurable (SobolevSpace.toLp μ hQ g)) + (by simpa only [Real.norm_eq_abs] using hg) + rw [← integral_localGamma_eq_energyForm] + unfold weightedGamma + rw [← integral_add hi hj] + exact integral_congr_ae (localGamma_product_left μ hQ f g w A B hf hg) + +/-- Integration by parts against a bounded Sobolev product. This is the +cancellation used in the Bochner square rule for merely L² sources. -/ +theorem IsWeakLaplacian.weighted_product (f g w : SobolevSpace μ hQ) + (d : Lp ℝ 2 μ) (hd : IsWeakLaplacian μ hQ f d) (A B : ℝ≥0) + (hg : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ g x|≤A) + (hw : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ w x|≤B) : + weightedGamma μ hQ (SobolevSpace.toLp μ hQ w) f g+ + weightedGamma μ hQ (SobolevSpace.toLp μ hQ g) f w = + -(∫ x, SobolevSpace.toLp μ hQ w x*SobolevSpace.toLp μ hQ g x*d x ∂μ) := by + have he := energyForm_product_test μ hQ g w f A B hg hw + rw [energyForm_comm μ hQ (SobolevSpace.product μ hQ g w A B) f,hd] at he + rw [weightedGamma_comm μ hQ (SobolevSpace.toLp μ hQ g) w f, + weightedGamma_comm μ hQ (SobolevSpace.toLp μ hQ w) g f] at he + have hi : inner ℝ d (SobolevSpace.toLp μ hQ (SobolevSpace.product μ hQ g w A B)) = + ∫ x, SobolevSpace.toLp μ hQ w x*SobolevSpace.toLp μ hQ g x*d x ∂μ := by + rw [L2.inner_def] + apply integral_congr_ae + filter_upwards [SobolevSpace.product_coe μ hQ g w A B hg hw] with x hx + simp only [Real.inner_apply,hx] + ring + rw [hi] at he + linarith only [he] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/WeakLimitAnnuli.lean b/lean/OAI/Geometry/RCD/Sobolev/WeakLimitAnnuli.lean new file mode 100644 index 0000000000000000000000000000000000000000..5d74df9dfc4ed147dd4ec0fcdcd482953d0e70bf --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/WeakLimitAnnuli.lean @@ -0,0 +1,81 @@ +import OAI.Geometry.RCD.Sobolev.EuclideanLawLocalizedTests +import OAI.Geometry.RCD.Metric.FiniteMeasureClosedBound + +namespace OAI + +/-! # Vanishing annular mass for weak Euclidean probability limits -/ + +open Set Metric Filter MeasureTheory +open scoped Topology BoundedContinuousFunction +noncomputable section +namespace RegularPointCoordinates + +theorem vanishing_annuli_of_weak_limit {n : ℕ} {ρ : ℝ} + (hρ : 0<ρ) {ν : ℕ → ProbabilityMeasure (Euclidean n)} + {Q : ProbabilityMeasure (Euclidean n)} (hν : Tendsto ν atTop (𝓝 Q)) + (hnull : (Q : Measure (Euclidean n)) (sphere 0 ρ)=0) : + ∀ η : ℝ, 0<η → ∃ δ : ℝ, 0<δ ∧ δ<ρ ∧ ∀ᶠ k in atTop, + (ν k : Measure (Euclidean n)).real (closedBall 0 (ρ+δ) \ ball 0 (ρ-δ))<η := by + let q : ℕ → ℝ := fun m => ρ/((m+2:ℕ):ℝ) + have hqpos (m : ℕ) : 0 closedBall (0:Euclidean n) (ρ+q m) \ ball 0 (ρ-q m) + have hAm (m : ℕ) : MeasurableSet (A m) := measurableSet_closedBall.diff measurableSet_ball + have hlim : ∀ z, Tendsto (fun m => (A m).indicator (fun _ => (1:ℝ)) z) atTop + (𝓝 ((sphere (0:Euclidean n) ρ).indicator (fun _ => (1:ℝ)) z)) := by + intro z + by_cases hz : ‖z‖=ρ + · have hzA (m : ℕ) : z∈A m := by + simp only [A,Set.mem_sdiff,mem_closedBall,mem_ball,dist_zero_right,not_lt,hz] + exact ⟨by linarith [hqpos m],by linarith [hqpos m]⟩ + have hzs : z∈sphere (0:Euclidean n) ρ := by simpa only [mem_sphere,dist_zero_right] using hz + simp only [indicator_of_mem (hzA _),indicator_of_mem hzs] + exact tendsto_const_nhds + · have hpos : 0 < |‖z‖-ρ| := abs_pos.mpr (sub_ne_zero.mpr hz) + have he : ∀ᶠ m in atTop, z∉A m := by + filter_upwards [hq.eventually (Iio_mem_nhds hpos)] with m hm + simp only [A,Set.mem_sdiff,mem_closedBall,mem_ball,dist_zero_right,not_and,not_lt] + intro hh + have hcases := lt_or_gt_of_ne hz + rcases hcases with hlt | hgt + · rw [abs_of_neg (sub_neg.mpr hlt)] at hm + linarith + · rw [abs_of_pos (sub_pos.mpr hgt)] at hm + linarith + have hzs : z∉sphere (0:Euclidean n) ρ := by simpa only [mem_sphere,dist_zero_right] using hz + rw [indicator_of_notMem hzs] + apply tendsto_const_nhds.congr' + filter_upwards [he] with m hm + exact (indicator_of_notMem hm _).symm + have hi := tendsto_integral_of_dominated_convergence + (μ := (Q : Measure (Euclidean n))) (fun _ => (1:ℝ)) + (fun m => ((measurable_const.indicator (hAm m)).aestronglyMeasurable)) + (integrable_const 1) (fun m => Eventually.of_forall fun z => by + by_cases hz : z∈A m <;> simp [hz]) (Eventually.of_forall hlim) + simp only [integral_indicator (hAm _),integral_indicator isClosed_sphere.measurableSet, + setIntegral_const,smul_eq_mul,mul_one,Measure.real,hnull,ENNReal.toReal_zero] at hi + intro η hη + obtain ⟨m,hm⟩ := (hi.eventually (Iio_mem_nhds (half_pos hη))).exists + refine ⟨q m,hqpos m,hqlt m,?_⟩ + have hf : Tendsto (fun k => (ν k).toFiniteMeasure) atTop (𝓝 Q.toFiniteMeasure) := + (ProbabilityMeasure.toFiniteMeasure_continuous.tendsto Q).comp hν + have ht := finite_measure_closed_eventual_bound (A := A m) hf + (isClosed_closedBall.sdiff isOpen_ball) (half_pos hη) + filter_upwards [ht] with k hk + change (ν k : Measure (Euclidean n)).real (A m) ≤ + (Q : Measure (Euclidean n)).real (A m)+η/2 at hk + change (Q : Measure (Euclidean n)).real (A m) < η/2 at hm + change (ν k : Measure (Euclidean n)).real (A m) < η + linarith + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/WeakLocalizedTests.lean b/lean/OAI/Geometry/RCD/Sobolev/WeakLocalizedTests.lean new file mode 100644 index 0000000000000000000000000000000000000000..0e41794f0a2affcb39711ae43c1da8edb4bba9d9 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/WeakLocalizedTests.lean @@ -0,0 +1,74 @@ +import OAI.Geometry.RCD.Sobolev.BoundedTestCutoffError +import Mathlib.MeasureTheory.Integral.DominatedConvergence + +namespace OAI + +/-! # Weak probability limits tested on sets with continuous inner cutoffs -/ + +open Set Metric Filter MeasureTheory +open scoped Topology BoundedContinuousFunction +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MeasurableSpace X] [TopologicalSpace X] [OpensMeasurableSpace X] + +theorem weak_localized_test_tendsto {μ : ProbabilityMeasure X} + {μs : ℕ → ProbabilityMeasure X} (hweak : Tendsto μs atTop (𝓝 μ)) + {s : Set X} (hs : MeasurableSet s) + (hmass : Tendsto (fun k => (μs k : Measure X).real s) atTop (𝓝 ((μ : Measure X).real s))) + (χ : ℕ → X →ᵇ ℝ) (hχ : ∀ m x, 0≤χ m x ∧ χ m x≤1) + (hχ0 : ∀ m x, x∉s → χ m x=0) + (hχlim : ∀ x, Tendsto (fun m => χ m x) atTop (𝓝 (s.indicator (fun _ => (1:ℝ)) x))) + (φ : X →ᵇ ℝ) : + Tendsto (fun k => ∫ x in s, φ x ∂(μs k : Measure X)) atTop + (𝓝 (∫ x in s, φ x ∂(μ : Measure X))) := by + have hcut := tendsto_integral_of_dominated_convergence (μ := (μ : Measure X)) + (fun _ => (1:ℝ)) (fun m => (χ m).continuous.aestronglyMeasurable) + (integrable_const 1) (fun m => Eventually.of_forall fun x => by + rw [Real.norm_eq_abs,abs_of_nonneg (hχ m x).1] + exact (hχ m x).2) (Eventually.of_forall hχlim) + simp only [integral_indicator hs,setIntegral_const,smul_eq_mul,mul_one] at hcut + have hdef : Tendsto (fun m => (μ : Measure X).real s-∫ x, χ m x ∂(μ : Measure X)) + atTop (𝓝 0) := by simpa only [sub_self] using + (tendsto_const_nhds : Tendsto (fun _ : ℕ => (μ : Measure X).real s) + atTop (𝓝 ((μ : Measure X).real s))).sub hcut + apply Metric.tendsto_nhds.mpr + intro η hη + let B := ‖φ‖ + let δ := η/(4*(B+1)) + have hB : 0≤B := norm_nonneg φ + have hδ : 0<δ := div_pos hη (by positivity) + have heq : (B+1)*δ=η/4 := by + dsimp only [δ] + field_simp + have hBδ : B*δ≤η/4 := by + rw [← heq] + exact mul_le_mul_of_nonneg_right (by linarith) hδ.le + obtain ⟨m,hm⟩ := (hdef.eventually (Iio_mem_nhds hδ)).exists + have hd := hmass.sub (ProbabilityMeasure.tendsto_iff_forall_integral_tendsto.mp hweak (χ m)) + have hp := ProbabilityMeasure.tendsto_iff_forall_integral_tendsto.mp hweak (χ m*φ) + have hdev := hd.eventually (Iio_mem_nhds hm) + have hpev := (Metric.tendsto_nhds.mp hp) (η/4) (by positivity) + filter_upwards [hdev,hpev] with k hk hpk + have he₁ := bounded_test_cutoff_error (μs k : Measure X) hs φ (χ m) (hχ m) (hχ0 m) + have he₂ := bounded_test_cutoff_error (μ : Measure X) hs φ (χ m) (hχ m) (hχ0 m) + have he₁' : |(∫ x in s, φ x ∂(μs k : Measure X))- + (∫ x, χ m x*φ x ∂(μs k : Measure X))|≤η/4 := + he₁.trans ((mul_le_mul_of_nonneg_left hk.le hB).trans hBδ) + have he₂' : |(∫ x in s, φ x ∂(μ : Measure X))- + (∫ x, χ m x*φ x ∂(μ : Measure X))|≤η/4 := + he₂.trans ((mul_le_mul_of_nonneg_left hm.le hB).trans hBδ) + change |(∫ x in s, φ x ∂(μs k : Measure X))-(∫ x in s, φ x ∂(μ : Measure X))|<η + have htriangle := abs_sub_le (∫ x in s, φ x ∂(μs k : Measure X)) + (∫ x, χ m x*φ x ∂(μs k : Measure X)) (∫ x in s, φ x ∂(μ : Measure X)) + have htriangle' := abs_sub_le (∫ x, χ m x*φ x ∂(μs k : Measure X)) + (∫ x, χ m x*φ x ∂(μ : Measure X)) (∫ x in s, φ x ∂(μ : Measure X)) + rw [abs_sub_comm (∫ x, χ m x*φ x ∂(μ : Measure X))] at htriangle' + have hpk' : |(∫ x, χ m x*φ x ∂(μs k : Measure X))- + (∫ x, χ m x*φ x ∂(μ : Measure X))|<η/4 := hpk + linarith + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/WeakMapPerturbation.lean b/lean/OAI/Geometry/RCD/Sobolev/WeakMapPerturbation.lean new file mode 100644 index 0000000000000000000000000000000000000000..a789e30b0f79f9b1ef93f90c45d175251da8e461 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/WeakMapPerturbation.lean @@ -0,0 +1,61 @@ +import OAI.Geometry.RCD.Metric.MeasuredBallLaw + +namespace OAI + +/-! # Uniform metric errors preserve weak limits of measurable images -/ + +open Set Filter MeasureTheory Metric +open scoped Topology BoundedContinuousFunction +noncomputable section +namespace RegularPointCoordinates + +theorem weak_limit_of_map_error {A Y : Type*} [MeasurableSpace A] + [MetricSpace Y] [MeasurableSpace Y] [BorelSpace Y] + (P : ℕ → ProbabilityMeasure A) (f g : ℕ → A → Y) + (hf : ∀ k, Measurable (f k)) (hg : ∀ k, Measurable (g k)) + {δ : ℕ → ℝ} (hδ : Tendsto δ atTop (𝓝 0)) + (hdist : ∀ k, ∀ᵐ x ∂(P k : Measure A), dist (f k x) (g k x)≤δ k) + {ν : ProbabilityMeasure Y} + (hweak : Tendsto (fun k => (P k).map (g k)) atTop (𝓝 ν)) : + Tendsto (fun k => (P k).map (f k)) atTop (𝓝 ν) := by + apply MeasureTheory.tendsto_iff_forall_lipschitz_integral_tendsto.mpr + intro φ hb hLip + obtain ⟨L,hL⟩ := hLip + let φ' : Y →ᵇ ℝ := ⟨⟨φ,hL.continuous⟩,hb⟩ + have hi (k : ℕ) (F : A → Y) (hF : Measurable F) : + Integrable (fun x => φ (F x)) (P k : Measure A) := + (integrable_const ‖φ'‖).mono' (hL.continuous.measurable.comp hF).aestronglyMeasurable + (Eventually.of_forall fun x => φ'.norm_coe_le_norm (F x)) + have hfi (k : ℕ) : (∫ y, φ y ∂((P k).map (f k) : Measure Y))= + ∫ x, φ (f k x) ∂(P k : Measure A) := by + rw [ProbabilityMeasure.toMeasure_map,integral_map (hf k).aemeasurable + hL.continuous.aestronglyMeasurable] + have hgi (k : ℕ) : (∫ y, φ y ∂((P k).map (g k) : Measure Y))= + ∫ x, φ (g k x) ∂(P k : Measure A) := by + rw [ProbabilityMeasure.toMeasure_map,integral_map (hg k).aemeasurable + hL.continuous.aestronglyMeasurable] + have herr (k : ℕ) : + ‖(∫ x, φ (f k x) ∂(P k : Measure A))-(∫ x, φ (g k x) ∂(P k : Measure A))‖≤L*δ k := by + rw [← integral_sub (hi k (f k) (hf k)) (hi k (g k) (hg k))] + have hh := norm_integral_le_of_norm_le_const (μ := (P k : Measure A)) + (f := fun x => φ (f k x)-φ (g k x)) (hdist k |>.mono fun x hx => by + rw [← dist_eq_norm] + exact (hL.dist_le_mul _ _).trans (mul_le_mul_of_nonneg_left hx L.coe_nonneg)) + simpa using hh + have hz : Tendsto (fun k => (∫ x, φ (f k x) ∂(P k : Measure A))- + (∫ x, φ (g k x) ∂(P k : Measure A))) atTop (𝓝 0) := by + apply Metric.tendsto_nhds.mpr + intro η hη + have hlim : Tendsto (fun k => (L:ℝ)*δ k) atTop (𝓝 0) := by + simpa only [mul_zero] using hδ.const_mul (L:ℝ) + filter_upwards [hlim.eventually (Iio_mem_nhds hη)] with k hk + simpa only [dist_zero_right] using (herr k).trans_lt hk + have ht := MeasureTheory.tendsto_iff_forall_lipschitz_integral_tendsto.mp hweak φ hb ⟨L,hL⟩ + simp_rw [hgi] at ht + simpa only [hfi,zero_add,sub_add_cancel] using hz.add ht + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/WeakMapUniformIntegrals.lean b/lean/OAI/Geometry/RCD/Sobolev/WeakMapUniformIntegrals.lean new file mode 100644 index 0000000000000000000000000000000000000000..1c4c887b50ed9cfaea25e72225e6ad741e1b6a6e --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/WeakMapUniformIntegrals.lean @@ -0,0 +1,44 @@ +import OAI.Geometry.RCD.Sobolev.WeakMapPerturbation +import OAI.Geometry.RCD.Coordinates.NormalizedUniformMean + +namespace OAI + +/-! # Uniform source values paired with weakly converging image laws -/ + +open Set Filter MeasureTheory +open scoped Topology BoundedContinuousFunction +noncomputable section +namespace RegularPointCoordinates + +theorem weak_map_uniform_integrals {A Y : Type*} [MeasurableSpace A] + [MetricSpace Y] [MeasurableSpace Y] [BorelSpace Y] + (P : ℕ → ProbabilityMeasure A) (v : ℕ → A → Y) + (hv : ∀ k, Measurable (v k)) {Q : ProbabilityMeasure Y} + (hweak : Tendsto (fun k => (P k).map (v k)) atTop (𝓝 Q)) + (u : ℕ → A → ℝ) (hu : ∀ k, Integrable (u k) (P k : Measure A)) + (F : Y →ᵇ ℝ) + (herr : ∀ δ : ℝ, 0<δ → ∀ᶠ k in atTop, + ∀ᵐ x ∂(P k : Measure A), |u k x-F (v k x)|≤δ) : + Tendsto (fun k => ∫ x, u k x ∂(P k : Measure A)) atTop + (𝓝 (∫ z, F z ∂(Q : Measure Y))) := by + have hi (k : ℕ) : Integrable (fun x => F (v k x)) (P k : Measure A) := + (integrable_const ‖F‖).mono' (F.continuous.measurable.comp (hv k)).aestronglyMeasurable + (Eventually.of_forall fun x => F.norm_coe_le_norm (v k x)) + have hz := normalized_mean_tendsto_zero (fun k => (P k : Measure A)) + (fun _ => by simp only [Measure.real,measure_univ,ENNReal.toReal_one]; norm_num) + (fun k x => u k x-F (v k x)) herr + simp only [Measure.real,measure_univ,ENNReal.toReal_one,inv_one,one_mul] at hz + have ht := ProbabilityMeasure.tendsto_iff_forall_integral_tendsto.mp hweak F + have heq (k : ℕ) : (∫ z, F z ∂((P k).map (v k) : Measure Y))= + ∫ x, F (v k x) ∂(P k : Measure A) := by + rw [ProbabilityMeasure.toMeasure_map,integral_map (hv k).aemeasurable + F.continuous.aestronglyMeasurable] + simp only [heq] at ht + have hh := hz.add ht + simpa only [integral_sub (hu _) (hi _),sub_add_cancel,zero_add] using hh + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/WeakMaximal.lean b/lean/OAI/Geometry/RCD/Sobolev/WeakMaximal.lean new file mode 100644 index 0000000000000000000000000000000000000000..85b4086d467dc6661c4335412b4b4bf287b153cd --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/WeakMaximal.lean @@ -0,0 +1,100 @@ +import OAI.Geometry.RCD.Sobolev.LocalWeakMaximal +import OAI.Geometry.RCD.Metric.ModelFiveBallBound +import OAI.Geometry.RCD.Metric.ModelScaleControl + +namespace OAI + +/-! # The local maximal estimate for the actual RCD measure -/ + +open Set Metric MeasureTheory +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +def fiveBallConstant (n : ℕ) : ℝ := Real.cosh 1^(n-1)*5^n + +theorem NoncollapsedRCD.five_ball_doubling {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (hn : 2 ≤ n) {R : ℝ} (hR : 0 < R) + (hcurv : -1 ≤ K*(5*R)^2) : + ∀ x r, 0 < r → r ≤ R → (hausdorff n X).real (ball x (5*r)) ≤ + fiveBallConstant n*(hausdorff n X).real (ball x r) := by + obtain ⟨a,ha,hBG,hscale⟩ := hX.model_comparison_with_scale_control hn + have haR : a*(5*R) ≤ 1 := by + have hh := hscale (5*R/3) (by positivity) (by nlinarith [hcurv]) + simpa only [show 3*(5*R/3)=5*R by ring] using hh + have hc : Real.cosh (a*(5*R)) ≤ Real.cosh 1 := by + apply Real.cosh_le_cosh.mpr + rw [abs_of_nonneg (by positivity),abs_one] + exact haR + intro x r hr hrR + apply (model_five_ball_bound (hausdorff n X) (by omega) ha hBG x hr hrR).trans + apply mul_le_mul_of_nonneg_right _ measureReal_nonneg + exact mul_le_mul_of_nonneg_right (pow_le_pow_left₀ (Real.cosh_pos _).le hc _) (by positivity) + +theorem NoncollapsedRCD.local_weak_maximal {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) [(hausdorff n X).Regular] (hn : 2 ≤ n) + {R t : ℝ} (hR : 0 < R) (hcurv : -1 ≤ K*(5*R)^2) (ht : 0 < t) + {f : X → ℝ} (hf : Integrable f (hausdorff n X)) + (hf0 : ∀ᵐ x ∂hausdorff n X, 0 ≤ f x) (p : X) : + (hausdorff n X).real (ball p R ∩ ballAverageBad (hausdorff n X) f R t) ≤ + (fiveBallConstant n/t)*∫ y, f y ∂hausdorff n X := + RegularPointCoordinates.local_weak_maximal (hausdorff n X) hf hf0 + (fun _ _ => (hX.finiteOnBounded _ isBounded_ball).ne) p + (by unfold fiveBallConstant; positivity) ht (hX.five_ball_doubling hn hR hcurv) + +theorem NoncollapsedRCD.local_maximal_good_set {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) [(hausdorff n X).Regular] (hn : 2 ≤ n) + (p : X) {R t : ℝ} (hR : 0 < R) (hcurv : -1 ≤ K*(5*R)^2) (ht : 0 < t) + {f : X → ℝ} (hf : IntegrableOn f (ball p (2*R)) (hausdorff n X)) + (hf0 : ∀ᵐ x ∂(hausdorff n X).restrict (ball p (2*R)), 0 ≤ f x) : + ∃ U : Set X, IsCompact U ∧ U ⊆ closedBall p R ∧ + (hausdorff n X).real (ball p R \ U) ≤ + (fiveBallConstant n/t)*∫ y in ball p (2*R), f y ∂hausdorff n X ∧ + ∀ x ∈ U, ∀ r : ℝ, 0 < r → r < R → + ∫ y in ball x r, f y ∂hausdorff n X ≤ t*(hausdorff n X).real (ball x r) := by + let μ := hausdorff n X + let Ω := ball p (2*R) + let F := Ω.indicator f + have hF : Integrable F μ := hf.integrable_indicator measurableSet_ball + have hF0 : ∀ᵐ x ∂μ, 0 ≤ F x := by + have hh := (ae_restrict_iff' measurableSet_ball).mp hf0 + filter_upwards [hh] with x hx + by_cases h : x ∈ Ω + · simpa only [F,indicator_of_mem h] using hx h + · simp only [F,indicator_of_notMem h,le_refl] + let U := closedBall p R \ ballAverageBad μ F R t + have hU : IsCompact U := (isCompact_closedBall (x := p) (r := R)).diff + (isOpen_ballAverageBad μ hF hF0 (fun _ _ => (hX.finiteOnBounded _ isBounded_ball).ne) ht.le) + refine ⟨U,hU,sdiff_subset,?_,?_⟩ + · have he : ball p R \ U = ball p R ∩ ballAverageBad μ F R t := by + ext x + constructor + · rintro ⟨hx,hxu⟩ + exact ⟨hx,by by_contra hb; exact hxu ⟨ball_subset_closedBall hx,hb⟩⟩ + · rintro ⟨hx,hxb⟩ + exact ⟨hx,fun h => h.2 hxb⟩ + rw [he] + simpa only [F,Ω,integral_indicator measurableSet_ball] using + hX.local_weak_maximal hn hR hcurv ht hF hF0 p + · intro x hx r hr hrR + have hnobad : x ∉ ballAverageBad μ F R t := hx.2 + have hav : ∫ y in ball x r, F y ∂μ ≤ t*μ.real (ball x r) := by + by_contra hh + exact hnobad ⟨r,hr,hrR,lt_of_not_ge hh⟩ + have hsub : ball x r ⊆ Ω := by + intro y hy + have hd := dist_triangle y x p + have hyx : dist y x < r := hy + have hxp : dist x p ≤ R := hx.1 + change dist y p < 2*R + linarith + have he : (∫ y in ball x r, F y ∂μ) = ∫ y in ball x r, f y ∂μ := by + change (∫ y in ball x r, Ω.indicator f y ∂μ) = _ + rw [setIntegral_indicator measurableSet_ball,inter_eq_left.mpr hsub] + rwa [he] at hav + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/WeakMinMass.lean b/lean/OAI/Geometry/RCD/Sobolev/WeakMinMass.lean new file mode 100644 index 0000000000000000000000000000000000000000..4cdaf6282941d3ac61271430b653f92085fdb3fe --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/WeakMinMass.lean @@ -0,0 +1,60 @@ +import OAI.Geometry.RCD.Transport.WeakMidpointMass + +namespace OAI + +/-! # Passing both source masses through weak probability convergence -/ + +open Set Metric Filter MeasureTheory +open scoped Topology +noncomputable section +namespace RegularPointCoordinates + +theorem probability_open_closed_min_contraction {n : ℕ} + {P : ℕ → ProbabilityMeasure (Euclidean n)} {Q : ProbabilityMeasure (Euclidean n)} + (hlim : Tendsto P atTop (𝓝 Q)) {A B C : Set (Euclidean n)} + (hA : IsOpen A) (hB : IsOpen B) (hC : IsClosed C) {c : ℝ} (hc : 0 < c) + {cs : ℕ → ℝ} (hcs : Tendsto cs atTop (𝓝 c)) + (hbound : ∀ᶠ k in atTop, + cs k*min ((P k : Measure (Euclidean n)).real A) ((P k : Measure (Euclidean n)).real B) ≤ + (P k : Measure (Euclidean n)).real C) : + c*min ((Q : Measure (Euclidean n)).real A) ((Q : Measure (Euclidean n)).real B) ≤ + (Q : Measure (Euclidean n)).real C := by + let a := min ((Q : Measure (Euclidean n)).real A) ((Q : Measure (Euclidean n)).real B) + let b := (Q : Measure (Euclidean n)).real C + have ha : 0 ≤ a := le_min measureReal_nonneg measureReal_nonneg + by_contra hnot + have hgap : 0 < c*a-b := by dsimp only [a,b]; linarith only [hnot] + let δ := min (c/2) ((c*a-b)/(2*(c+a+3))) + have hδ : 0 < δ := lt_min (by positivity) (div_pos hgap (by positivity)) + have hδc : δ ≤ c/2 := min_le_left _ _ + have hδgap : δ*(c+a+3) ≤ (c*a-b)/2 := by + have hh := (le_div_iff₀ (by positivity : 0 < 2*(c+a+3))).mp (min_le_right (c/2) ((c*a-b)/(2*(c+a+3)))) + change δ*(2*(c+a+3)) ≤ c*a-b at hh + linarith only [hh] + have hloA := probability_open_eventual_lower hlim hA + (show a-δ < (Q : Measure (Euclidean n)).real A from + (sub_lt_self _ hδ).trans_le (min_le_left _ _)) + have hloB := probability_open_eventual_lower hlim hB + (show a-δ < (Q : Measure (Euclidean n)).real B from + (sub_lt_self _ hδ).trans_le (min_le_right _ _)) + have hfinite : Tendsto (fun k => (P k).toFiniteMeasure) atTop (𝓝 Q.toFiniteMeasure) := + (ProbabilityMeasure.toFiniteMeasure_continuous.tendsto Q).comp hlim + have hhi := finite_measure_closed_eventual_bound hfinite hC hδ + have hcoef := hcs.eventually (Ioi_mem_nhds (show c-δ normalizedBallPushforward μ (p k) (r k) S (v k) (hfin k)) + atTop (𝓝 Q)) + (hnull : (Q : Measure (Euclidean n)) (sphere 0 ρ)=0) + (φ : Euclidean n →ᵇ ℝ) : + Tendsto (fun k => (μ.real (ball (p k) (S*r k)))⁻¹* + ∫ x in ball (p k) (ρ*r k), φ (v k x) ∂μ) atTop + (𝓝 (∫ z in ball 0 ρ, φ z ∂(Q : Measure (Euclidean n)))) := by + let ν := fun k => normalizedBallPushforward μ (p k) (r k) S (v k) (hfin k) + have hν : Tendsto ν atTop (𝓝 Q) := hweak + have hfront : (Q : Measure (Euclidean n)) (frontier (ball 0 ρ))=0 := + measure_mono_null frontier_ball_subset_sphere hnull + have hm := ProbabilityMeasure.tendsto_measure_of_null_frontier_of_tendsto' hν hfront + have hmr := (ENNReal.tendsto_toReal (measure_ne_top + (Q : Measure (Euclidean n)) (ball 0 ρ))).comp hm + obtain ⟨χ,hχ,hχ0,hχlim⟩ := inner_ball_cutoff_sequence (0:Euclidean n) hρ + have ht := weak_localized_test_tendsto hν measurableSet_ball hmr χ hχ hχ0 hχlim φ + have he : Tendsto (fun k => (μ.real (ball (p k) (S*r k)))⁻¹* + (∫ x in ball (p k) (ρ*r k), φ (v k x) ∂μ)- + ∫ z in ball 0 ρ, φ z ∂(ν k : Measure (Euclidean n))) atTop (𝓝 0) := by + apply Metric.tendsto_nhds.mpr + intro η hη + let d := η/(2*(‖φ‖+1)) + have hd : 0 max t 0 + have hp : LipschitzWith 1 pos := + (LipschitzWith.id : LipschitzWith 1 (fun t : ℝ => t)).max_const 0 + have hp0 : pos 0 = 0 := max_self 0 + obtain ⟨fs,hfs,hlim⟩ := mem_closure_iff_seq_limit.mp φ.property + obtain ⟨D,hD⟩ := (Metric.isBounded_range_of_tendsto fs hlim).exists_norm_le + let T := fun i => SobolevSpace.compContraction μ hQ hp hp0 (fs i) + have hTb (i : ℕ) : ‖T i‖ ≤ D := + (SobolevSpace.norm_compContraction_le μ hQ hp hp0 (fs i)).trans (hD (fs i) (mem_range_self i)) + have hclip : hp.compLp hp0 (SobolevSpace.toLp μ hQ φ.val) = SobolevSpace.toLp μ hQ φ.val := by + apply Lp.ext + filter_upwards [hp.coeFn_compLp hp0 (SobolevSpace.toLp μ hQ φ.val),hφ] with x hx hb + rw [hx] + exact max_eq_left hb + have hTl : Tendsto (fun i => SobolevSpace.toLp μ hQ (T i)) atTop + (𝓝 (SobolevSpace.toLp μ hQ φ.val)) := by + have ht := (hp.continuous_compLp hp0).continuousAt.tendsto.comp + ((SobolevSpace.toLpCLM μ hQ).continuous.continuousAt.tendsto.comp hlim) + change Tendsto (fun i => hp.compLp hp0 (SobolevSpace.toLp μ hQ (fs i))) atTop + (𝓝 (hp.compLp hp0 (SobolevSpace.toLp μ hQ φ.val))) at ht + rwa [hclip] at ht + have hE := SobolevSpace.energyForm_tendsto_of_toLp_tendsto_bounded μ hQ hTb hTl u + have hI : Tendsto (fun i => a*inner ℝ (SobolevSpace.toLp μ hQ u) + (SobolevSpace.toLp μ hQ (T i))) atTop + (𝓝 (a*inner ℝ (SobolevSpace.toLp μ hQ u) (SobolevSpace.toLp μ hQ φ.val))) := + tendsto_const_nhds.mul (tendsto_const_nhds.inner hTl) + rw [energyForm_comm μ hQ u φ.val] + apply le_of_tendsto_of_tendsto hE hI + apply Eventually.of_forall + intro i + change energyForm μ hQ (T i) u ≤ a*inner ℝ (SobolevSpace.toLp μ hQ u) + (SobolevSpace.toLp μ hQ (T i)) + rw [energyForm_comm μ hQ (T i) u] + obtain ⟨g,C,hg,hgc,hgs,hfg⟩ := hfs i + exact hcore (T i) (pos ∘ g) C (by simpa only [one_mul] using! hp.comp hg) + (hgc.comp_left hp0) ((tsupport_comp_subset hp0 g).trans hgs) + ((hp.coeFn_compLp hp0 (SobolevSpace.toLp μ hQ (fs i))).trans (hfg.fun_comp pos)) + (fun x => le_max_right _ _) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/WeightedBallEnergyLiminf.lean b/lean/OAI/Geometry/RCD/Sobolev/WeightedBallEnergyLiminf.lean new file mode 100644 index 0000000000000000000000000000000000000000..77ecccab348c6b45e83599732827e142e6015363 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/WeightedBallEnergyLiminf.lean @@ -0,0 +1,53 @@ +import OAI.Geometry.RCD.Sobolev.WeightedEnergyLiminf + +namespace OAI + +/-! # The weighted lower bound on the original physical ball -/ + +open Set Filter MeasureTheory Metric +open scoped Topology ENNReal NNReal BoundedContinuousFunction +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + +theorem NoncollapsedRCD.weighted_energy_eventual_lower_on_ball {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (hn : 2≤n) + {S ρ τ R : ℝ} (hS : 0 φ.norm_coe_le_norm (v k x)) + apply setIntegral_mono_set hi.integrableOn + · filter_upwards [ae_restrict_of_ae (localGamma_self (hausdorff n X) hX.quadratic (w k))] with x hx + exact mul_nonneg (hφ _) (hx ▸ sq_nonneg _) + · exact Eventually.of_forall (closedBall_subset_ball (mul_lt_mul_of_pos_right hRS (hr k))) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/WeightedEnergyDifference.lean b/lean/OAI/Geometry/RCD/Sobolev/WeightedEnergyDifference.lean new file mode 100644 index 0000000000000000000000000000000000000000..89d6108615cd5a2fababe85ec3f8fcbfd5c0e2a8 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/WeightedEnergyDifference.lean @@ -0,0 +1,49 @@ +import OAI.Geometry.RCD.Coordinates.NormalizedL1FromL2 + +namespace OAI + +/-! # Bounded tests preserve the identified local energy -/ + +open Set Filter MeasureTheory +open scoped Topology +noncomputable section +namespace RegularPointCoordinates + +theorem weighted_integral_difference_tendsto {X : Type*} [MeasurableSpace X] + (μ : Measure X) (Ω : ℕ → Set X) (c : ℕ → ℝ) (hc : ∀ k, 0 ≤ c k) + (f g θ : ℕ → X → ℝ) + (hf : ∀ k, IntegrableOn (f k) (Ω k) μ) (hg : ∀ k, IntegrableOn (g k) (Ω k) μ) + (hθ : ∀ k, AEStronglyMeasurable (θ k) (μ.restrict (Ω k))) + {B : ℝ} (hbound : ∀ k, ∀ᵐ x ∂μ.restrict (Ω k), |θ k x| ≤ B) + (hlim : Tendsto (fun k => c k*∫ x in Ω k, |f k x-g k x| ∂μ) atTop (𝓝 0)) : + Tendsto (fun k => c k*(∫ x in Ω k, θ k x*f k x ∂μ)- + c k*(∫ x in Ω k, θ k x*g k x ∂μ)) atTop (𝓝 0) := by + have hi (k : ℕ) (u : X → ℝ) (hu : IntegrableOn u (Ω k) μ) : + IntegrableOn (fun x => θ k x*u x) (Ω k) μ := + hu.bdd_mul (hθ k) (by simpa only [Real.norm_eq_abs] using hbound k) + have hb (k : ℕ) : ‖c k*(∫ x in Ω k, θ k x*f k x ∂μ)- + c k*(∫ x in Ω k, θ k x*g k x ∂μ)‖ ≤ B*(c k*∫ x in Ω k, |f k x-g k x| ∂μ) := by + rw [← mul_sub,← integral_sub (hi k (f k) (hf k)) (hi k (g k) (hg k))] + have he : (fun x => θ k x*f k x-θ k x*g k x) = (fun x => θ k x*(f k x-g k x)) := by + funext x + ring + rw [he,Real.norm_eq_abs,abs_mul,abs_of_nonneg (hc k)] + have hI : |∫ x in Ω k, θ k x*(f k x-g k x) ∂μ| ≤ + B*∫ x in Ω k, |f k x-g k x| ∂μ := by + calc + _ ≤ ∫ x in Ω k, |θ k x*(f k x-g k x)| ∂μ := abs_integral_le_integral_abs + _ ≤ ∫ x in Ω k, B*|f k x-g k x| ∂μ := by + apply integral_mono_ae (hi k _ ((hf k).sub (hg k))).abs (((hf k).sub (hg k)).abs.const_mul B) + filter_upwards [hbound k] with x hx + rw [abs_mul] + exact mul_le_mul_of_nonneg_right hx (abs_nonneg _) + _ = _ := integral_const_mul _ _ + exact (mul_le_mul_of_nonneg_left hI (hc k)).trans_eq (by ring) + apply squeeze_zero_norm hb + simpa only [mul_zero] using hlim.const_mul B + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/WeightedEnergyLiminf.lean b/lean/OAI/Geometry/RCD/Sobolev/WeightedEnergyLiminf.lean new file mode 100644 index 0000000000000000000000000000000000000000..d717f2ccb7438eaad3a14d922d2c9047e0316608 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/WeightedEnergyLiminf.lean @@ -0,0 +1,61 @@ +import OAI.Geometry.RCD.Sobolev.WeightedEnergyLower + +namespace OAI + +/-! # Eventual sharp lower bounds for every compact nonnegative weight -/ + +open Set Filter MeasureTheory Metric +open scoped Topology ENNReal NNReal BoundedContinuousFunction +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + +theorem NoncollapsedRCD.weighted_energy_eventual_lower {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (hn : 2≤n) + {S ρ τ R : ℝ} (hS : 0 hr (t k)) + (fun k => hcurv (t k)) (fun k => hε (t k)) (fun k => hε1 (t k)) + (hεlim.comp ht.tendsto_atTop) (fun k => hv (t k)) (w ∘ t) g hg + (fun W hW hWS η hη => ht.tendsto_atTop.eventually (hconv W hW hWS η hη)) + φ hφ hs hM (fun k => (hbad k).2) (C := V⁻¹*I-δ) (by + intro η hη + filter_upwards [] with k + have hk := lt_of_not_ge (hbad k).1 + exact hk.le.trans (le_add_of_nonneg_right hη.le)) + have he := hlow.2 + change I≤V*(V⁻¹*I-δ) at he + have hcancel : V*(V⁻¹*I)=I := by rw [← mul_assoc,mul_inv_cancel₀ hV.ne',one_mul] + nlinarith [mul_pos hV hδ] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/WeightedEnergyLower.lean b/lean/OAI/Geometry/RCD/Sobolev/WeightedEnergyLower.lean new file mode 100644 index 0000000000000000000000000000000000000000..0469e35d47a24f027fa23bc0d090c7b1dcef4db4 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/WeightedEnergyLower.lean @@ -0,0 +1,87 @@ +import OAI.Geometry.RCD.Sobolev.UniformEnergyDensity +import OAI.Geometry.RCD.Sobolev.PointedEnergyCompactness +import OAI.Geometry.RCD.Sobolev.WeightedGradientDensity +import OAI.Geometry.RCD.Sobolev.WeightedEnergyMap + +namespace OAI + +/-! # Sharp lower bounds for compactly weighted energies + +The weight is an actual test on the prescribed approximation maps. The +subsequence uses the same positive energy measures as the unweighted proof. +-/ + +open Set Filter MeasureTheory Metric +open scoped Topology ENNReal NNReal BoundedContinuousFunction +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + +theorem euclideanBallProbability_absolutelyContinuous {n : ℕ} {S : ℝ} (hS : 0 μ univ) he + simp only [Measure.restrict_apply_univ,Measure.coe_zero,Pi.zero_apply] at hh + exact (measure_ball_pos volume 0 hS).ne' hh + change (normalizedProbabilityLaw (volume.restrict (ball (0:Euclidean n) S)) : + Measure (Euclidean n)) ≪ volume + rw [normalizedProbabilityLaw_measure _ hn] + exact Measure.absolutelyContinuous_restrict.smul_left _ + +theorem NoncollapsedRCD.weighted_energy_lower_of_curvature_sequence {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (hn : 2≤n) + {S ρ τ R : ℝ} (hS : 0 φ z*‖fderiv ℝ g z‖^2) volume ∧ + (∫ z, φ z*‖fderiv ℝ g z‖^2)≤volume.real (ball (0:Euclidean n) S)*C := by + obtain ⟨ν,t,ht,hweak,hdom⟩ := hX.pointed_energy_subsequence hS (hτ.trans hτR.le) hRS hM + p r ε v hr hε1 hεlim hv w hbound + have hconv' (W : ℝ) (hW : 0 hr (t k)) + (fun k => hcurv (t k)) (fun k => hε (t k)) (fun k => hε1 (t k)) + (hεlim.comp ht.tendsto_atTop) (fun k => hv (t k)) (w ∘ t) g hg hconv' ν hweak + have hac : (ν : Measure (Euclidean n)) ≪ volume := + (Measure.absolutelyContinuous_of_le hdom).trans + ((euclideanBallProbability_absolutelyContinuous hS).smul_left _) + have hlow := weighted_gradient_energy_from_density ν g measurableSet_ball hac φ hφ hs hdensity + have hlim := FiniteMeasure.tendsto_iff_forall_integral_tendsto.mp hweak φ + have hmass : (∫ z, φ z ∂(ν : Measure (Euclidean n)))≤C := by + apply le_of_forall_pos_le_add + intro δ hδ + apply le_of_tendsto hlim + filter_upwards [ht.tendsto_atTop.eventually (hupper δ hδ)] with k hk + rw [localEnergyMeasure_map_integral (hausdorff n X) hX.quadratic (w (t k)) + (closedBall (p (t k)) (R*r (t k))) + (c := r (t k)^2/(hausdorff n X).real (ball (p (t k)) (S*r (t k)))) + (div_nonneg (sq_nonneg (r (t k))) ENNReal.toReal_nonneg) (hv (t k)).measurable φ] + exact hk + exact ⟨hlow.1,hlow.2.trans (mul_le_mul_of_nonneg_left hmass ENNReal.toReal_nonneg)⟩ + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/WeightedEnergyMap.lean b/lean/OAI/Geometry/RCD/Sobolev/WeightedEnergyMap.lean new file mode 100644 index 0000000000000000000000000000000000000000..01547f2dc74843b37080d615eeb271c52d3f6311 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/WeightedEnergyMap.lean @@ -0,0 +1,38 @@ +import OAI.Geometry.RCD.Sobolev.LocalEnergyMap + +namespace OAI + +/-! # Compact weights against the actual image energy measure -/ + +open Set Filter MeasureTheory +open scoped BoundedContinuousFunction +noncomputable section +namespace RegularPointCoordinates +variable {X Y : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [TopologicalSpace Y] [MeasurableSpace Y] [BorelSpace Y] + +theorem localEnergyMeasure_map_integral (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + (w : SobolevSpace μ hQ) (A : Set X) {c : ℝ} (hc : 0≤c) + {v : X → Y} (hv : Measurable v) (φ : Y →ᵇ ℝ) : + (∫ z, φ z ∂((localEnergyMeasure μ hQ w A c).map v : Measure Y))= + c*∫ x in A, φ (v x)*localGamma μ hQ w w x ∂μ := by + change (∫ z, φ z ∂(localEnergyMeasure μ hQ w A c : Measure X).map v)=_ + rw [integral_map hv.aemeasurable φ.continuous.aestronglyMeasurable] + change (∫ x, φ (v x) ∂(μ.restrict A).withDensity + (fun x => ENNReal.ofReal (c*localGamma μ hQ w w x)))=_ + rw [integral_withDensity_eq_integral_toReal_smul₀ + (((localGamma_memL1 μ hQ w w).restrict.const_mul c).aestronglyMeasurable.aemeasurable.ennreal_ofReal) + (Eventually.of_forall fun _ => ENNReal.ofReal_lt_top)] + calc + _ = ∫ x in A, c*(φ (v x)*localGamma μ hQ w w x) ∂μ := by + apply integral_congr_ae + filter_upwards [ae_restrict_of_ae (localGamma_self μ hQ w)] with x hx + rw [ENNReal.toReal_ofReal (mul_nonneg hc (hx ▸ sq_nonneg _)),smul_eq_mul] + ring + _ = _ := integral_const_mul _ _ + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/WeightedEnergyWeightLimit.lean b/lean/OAI/Geometry/RCD/Sobolev/WeightedEnergyWeightLimit.lean new file mode 100644 index 0000000000000000000000000000000000000000..00d7d9da33155c56d8b2b771035d8113a8dff875 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/WeightedEnergyWeightLimit.lean @@ -0,0 +1,63 @@ +import OAI.Geometry.RCD.Sobolev.WeightedSobolevIntegralLower + +namespace OAI + +/-! # Stability of weighted Sobolev energy under bounded weight convergence + +First use domination by the fixed gradient pairing in space, then the +uniform Sobolev norm bound in time. No joint pointwise gradient field is +assumed. +-/ + +open Set Filter MeasureTheory +open scoped Topology NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + (μ : Measure X) (Q : QuadraticCheegerEnergy μ) + +theorem weightedGamma_weight_tendsto + (w : ℕ → X → ℝ) (v : X → ℝ) (hw : ∀ k, AEStronglyMeasurable (w k) μ) + {M : ℝ≥0} (hM : ∀ k, ∀ᵐ x ∂μ, ‖w k x‖ ≤ M) + (hc : ∀ᵐ x ∂μ, Tendsto (fun k => w k x) atTop (𝓝 (v x))) + (f g : SobolevSpace μ Q) : + Tendsto (fun k => weightedGamma μ Q (w k) f g) atTop (𝓝 (weightedGamma μ Q v f g)) := by + apply tendsto_integral_of_dominated_convergence (fun x => (M:ℝ)*|localGamma μ Q f g x|) + · intro k + exact (hw k).mul (localGamma_memL1 μ Q f g).aestronglyMeasurable + · exact (localGamma_memL1 μ Q f g).abs.const_mul M + · intro k + filter_upwards [hM k] with x hx + rw [norm_mul,Real.norm_eq_abs (localGamma μ Q f g x)] + exact mul_le_mul_of_nonneg_right hx (abs_nonneg _) + · filter_upwards [hc] with x hx + exact hx.mul_const _ + +theorem weighted_energy_time_weight_tendsto + [ProperSpace X] {Y : Type*} [MeasurableSpace Y] (ν : Measure Y) + (w : ℕ → X → ℝ) (v : X → ℝ) (hw : ∀ k, AEStronglyMeasurable (w k) μ) + {M : ℝ≥0} (hM : ∀ k, ∀ᵐ x ∂μ, ‖w k x‖ ≤ M) + (hc : ∀ᵐ x ∂μ, Tendsto (fun k => w k x) atTop (𝓝 (v x))) + (u : Y → SobolevSpace μ Q) (hu : AEStronglyMeasurable u ν) + {C : ℝ} (hC : 0 ≤ C) (hb : ∀ᵐ t ∂ν, ‖u t‖ ≤ C) + (θ : Y → ℝ) (hθ : Integrable θ ν) : + Tendsto (fun k => ∫ t, θ t*weightedGamma μ Q (w k) (u t) (u t) ∂ν) atTop + (𝓝 (∫ t, θ t*weightedGamma μ Q v (u t) (u t) ∂ν)) := by + apply tendsto_integral_of_dominated_convergence (fun t => |θ t| * ((M:ℝ)*C*C)) + · intro k + exact hθ.aestronglyMeasurable.mul + ((weightedGammaCLM μ Q (hw k) (hM k)).aestronglyMeasurable_comp₂ hu hu) + · exact hθ.abs.mul_const _ + · intro k + filter_upwards [hb] with t ht + rw [norm_mul,Real.norm_eq_abs (θ t)] + apply mul_le_mul_of_nonneg_left _ (abs_nonneg _) + exact (weightedGamma_norm_le μ Q (hM k) (u t) (u t)).trans (by gcongr) + · exact Eventually.of_forall fun t => + (weightedGamma_weight_tendsto μ Q w v hw hM hc (u t) (u t)).const_mul (θ t) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/WeightedGammaGradientBound.lean b/lean/OAI/Geometry/RCD/Sobolev/WeightedGammaGradientBound.lean new file mode 100644 index 0000000000000000000000000000000000000000..d2cd49a78476d480cd8c666f48244f603ffeb430 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/WeightedGammaGradientBound.lean @@ -0,0 +1,60 @@ +import OAI.Analysis.RCDHeat.ExistingAnalytic + +namespace OAI + +/-! # A mixed Gamma bound with only an L² weight -/ + +open Set Filter MeasureTheory +open scoped NNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +theorem weightedGamma_le_of_bounded_gradient (d : Lp ℝ 2 μ) + (f w : SobolevSpace μ hQ) (L : ℝ≥0) + (hf : ∀ᵐ x ∂μ, SobolevSpace.minimalSlope μ hQ f x ≤ L) : + |weightedGamma μ hQ d f w| ≤ + (L : ℝ) * ‖d‖ * ‖SobolevSpace.minimalSlope μ hQ w‖ := by + let G := SobolevSpace.minimalSlope μ hQ w + have hG0 : ∀ᵐ x ∂μ, 0 ≤ G x := + (Lp.coeFn_nonneg _).mpr (SobolevSpace.minimalSlope_nonneg μ hQ w) + have hre : (fun x => lpAbs μ d x * G x) =ᵐ[μ] fun x => |d x| * G x := by + filter_upwards [lpAbs_coe μ d] with x hx + rw [hx] + have hi : Integrable (fun x => |d x| * G x) μ := + ((Lp.memLp (lpAbs μ d)).integrable_mul (Lp.memLp G)).congr hre + have hnorm : |weightedGamma μ hQ d f w| ≤ ∫ x, (L : ℝ) * (|d x| * G x) ∂μ := by + rw [← Real.norm_eq_abs] + unfold weightedGamma + apply norm_integral_le_of_norm_le (hi.const_mul (L : ℝ)) + filter_upwards [localGamma_abs_le μ hQ f w, hf, hG0] with x hΓ hf' hG' + rw [norm_mul, Real.norm_eq_abs, Real.norm_eq_abs] + calc + |d x| * |localGamma μ hQ f w x| ≤ + |d x| * (SobolevSpace.minimalSlope μ hQ f x * G x) := + mul_le_mul_of_nonneg_left hΓ (abs_nonneg _) + _ ≤ |d x| * ((L : ℝ) * G x) := + mul_le_mul_of_nonneg_left (mul_le_mul_of_nonneg_right hf' hG') (abs_nonneg _) + _ = (L : ℝ) * (|d x| * G x) := by ring + have he : (∫ x, |d x| * G x ∂μ) = inner ℝ (lpAbs μ d) G := by + rw [L2.inner_def] + apply integral_congr_ae + filter_upwards [lpAbs_coe μ d] with x hx + simp only [Real.inner_apply, hx] + rw [integral_const_mul, he] at hnorm + have hinner : inner ℝ (lpAbs μ d) G ≤ ‖d‖ * ‖G‖ := by + calc + _ ≤ |inner ℝ (lpAbs μ d) G| := le_abs_self _ + _ ≤ ‖lpAbs μ d‖ * ‖G‖ := by + simpa only [Real.norm_eq_abs] using norm_inner_le_norm (𝕜 := ℝ) (lpAbs μ d) G + _ = _ := by rw [lpAbs_norm] + exact hnorm.trans (by nlinarith [mul_le_mul_of_nonneg_left hinner L.coe_nonneg]) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/WeightedGammaJointLimit.lean b/lean/OAI/Geometry/RCD/Sobolev/WeightedGammaJointLimit.lean new file mode 100644 index 0000000000000000000000000000000000000000..68dc0a990a2ec88757ae2eaca9518f8ac315341d --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/WeightedGammaJointLimit.lean @@ -0,0 +1,37 @@ +import OAI.Geometry.RCD.Sobolev.WeightedGammaL2Continuity + +namespace OAI + +/-! # Joint limits of L²-weighted gradient pairings -/ + +open Filter MeasureTheory +open scoped NNReal Topology + +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +theorem weightedGamma_joint_tendsto (w : SobolevSpace μ hQ) + {ds : ℕ → Lp ℝ 2 μ} {d : Lp ℝ 2 μ} + {us : ℕ → SobolevSpace μ hQ} {u : SobolevSpace μ hQ} (L : ℝ≥0) + (hus : ∀ k, ∀ᵐ x ∂μ, SobolevSpace.minimalSlope μ hQ (us k) x ≤ L) + (hu : ∀ᵐ x ∂μ, SobolevSpace.minimalSlope μ hQ u x ≤ L) + (hconv : Tendsto us atTop (𝓝 u)) (hd : Tendsto ds atTop (𝓝 d)) : + Tendsto (fun k => weightedGamma μ hQ (ds k) (us k) w) atTop + (𝓝 (weightedGamma μ hQ d u w)) := by + have herr : Tendsto (fun k => weightedGamma μ hQ (ds k) (us k) w - + weightedGamma μ hQ d (us k) w) atTop (𝓝 0) := by + apply squeeze_zero_norm (a := fun k => (L : ℝ) * ‖ds k - d‖ * ‖SobolevSpace.minimalSlope μ hQ w‖) + · intro k + rw [Real.norm_eq_abs, ← weightedGamma_weight_difference μ hQ (ds k) d (us k) w L (hus k)] + exact weightedGamma_le_of_bounded_gradient μ hQ (ds k - d) (us k) w L (hus k) + · have hh := (((hd.sub (tendsto_const_nhds (x := d))).norm).const_mul (L : ℝ)).mul_const + ‖SobolevSpace.minimalSlope μ hQ w‖ + simpa only [sub_self, norm_zero, mul_zero, zero_mul] using hh + have hh := herr.add (weightedGamma_fixed_weight_tendsto μ hQ d w L hus hu hconv) + simpa only [sub_add_cancel, zero_add] using hh + +end RegularPointCoordinates + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/WeightedGammaL2Algebra.lean b/lean/OAI/Geometry/RCD/Sobolev/WeightedGammaL2Algebra.lean new file mode 100644 index 0000000000000000000000000000000000000000..962ab9b5408f2b5130999f87cc6de26ceab4bb94 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/WeightedGammaL2Algebra.lean @@ -0,0 +1,73 @@ +import OAI.Geometry.RCD.Sobolev.GammaL2Bound +import OAI.Geometry.RCD.Sobolev.WeightedGammaGradientBound + +namespace OAI + +/-! # Bilinearity of mixed Bochner terms with L² Laplacians -/ + +open Set Filter MeasureTheory +open scoped NNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +theorem weightedGamma_lp_add_weight (d e : Lp ℝ 2 μ) (f w : SobolevSpace μ hQ) + (L : ℝ≥0) (hf : ∀ᵐ x ∂μ, SobolevSpace.minimalSlope μ hQ f x≤L) : + weightedGamma μ hQ (d+e : Lp ℝ 2 μ) f w = weightedGamma μ hQ d f w+weightedGamma μ hQ e f w := by + have hi (q : Lp ℝ 2 μ) : Integrable (fun x => q x*localGamma μ hQ f w x) μ := + (Lp.memLp q).integrable_mul (localGamma_memLp_of_bounded_gradient μ hQ f w L hf) + unfold weightedGamma + rw [← integral_add (hi d) (hi e)] + apply integral_congr_ae + filter_upwards [Lp.coeFn_add d e] with x hx + rw [hx] + simp only [Pi.add_apply] + ring + +omit [ProperSpace X] in +theorem weightedGamma_lp_smul_weight (d : Lp ℝ 2 μ) (c : ℝ) (f w : SobolevSpace μ hQ) : + weightedGamma μ hQ (c • d : Lp ℝ 2 μ) f w = c*weightedGamma μ hQ d f w := by + unfold weightedGamma + rw [← integral_const_mul] + apply integral_congr_ae + filter_upwards [Lp.coeFn_smul c d] with x hx + rw [hx] + simp only [Pi.smul_apply,smul_eq_mul] + ring + +theorem weightedGamma_lp_add_left (d : Lp ℝ 2 μ) (f g w : SobolevSpace μ hQ) + (L M : ℝ≥0) + (hf : ∀ᵐ x ∂μ, SobolevSpace.minimalSlope μ hQ f x≤L) + (hg : ∀ᵐ x ∂μ, SobolevSpace.minimalSlope μ hQ g x≤M) : + weightedGamma μ hQ d (f+g) w = weightedGamma μ hQ d f w+weightedGamma μ hQ d g w := by + have hi : Integrable (fun x => d x*localGamma μ hQ f w x) μ := (Lp.memLp d).integrable_mul (localGamma_memLp_of_bounded_gradient μ hQ f w L hf) + have hj : Integrable (fun x => d x*localGamma μ hQ g w x) μ := (Lp.memLp d).integrable_mul (localGamma_memLp_of_bounded_gradient μ hQ g w M hg) + unfold weightedGamma + rw [← integral_add hi hj] + apply integral_congr_ae + filter_upwards [localGamma_add_left μ hQ f g w] with x hx + rw [hx,mul_add] + +/-- The full mixed source of two regular directions is symmetric after +polarization; this expansion retains L² Laplacians without requiring +bounded Laplacians. -/ +theorem weightedGamma_lp_diagonal_add (d e : Lp ℝ 2 μ) (f g w : SobolevSpace μ hQ) + (L M : ℝ≥0) + (hf : ∀ᵐ x ∂μ, SobolevSpace.minimalSlope μ hQ f x≤L) + (hg : ∀ᵐ x ∂μ, SobolevSpace.minimalSlope μ hQ g x≤M) : + weightedGamma μ hQ (d+e : Lp ℝ 2 μ) (f+g) w = + weightedGamma μ hQ d f w+weightedGamma μ hQ d g w+ + weightedGamma μ hQ e f w+weightedGamma μ hQ e g w := by + rw [weightedGamma_lp_add_left μ hQ (d+e) f g w L M hf hg, + weightedGamma_lp_add_weight μ hQ d e f w L hf, + weightedGamma_lp_add_weight μ hQ d e g w M hg] + ring + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/WeightedGammaL2Continuity.lean b/lean/OAI/Geometry/RCD/Sobolev/WeightedGammaL2Continuity.lean new file mode 100644 index 0000000000000000000000000000000000000000..606822b1bdec179a387133a49e5a940a9bbe20db --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/WeightedGammaL2Continuity.lean @@ -0,0 +1,56 @@ +import OAI.Geometry.RCD.Metric.L2ClippingApproximation +import OAI.Geometry.RCD.Sobolev.WeightedGammaGradientBound +import OAI.Geometry.RCD.Sobolev.GammaL2Bound +import OAI.Geometry.RCD.Metric.UniformApproximationLimit + +namespace OAI + +/-! # L²-weight continuity with a uniform gradient bound + +Clip the weight, pass the bounded-weight Sobolev limit, and control the +tail with the common gradient bound. The test needs only Sobolev regularity. +-/ + +open Filter MeasureTheory +open scoped NNReal Topology + +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +theorem weightedGamma_weight_difference (a b : Lp ℝ 2 μ) (u w : SobolevSpace μ hQ) + (L : ℝ≥0) (hu : ∀ᵐ x ∂μ, SobolevSpace.minimalSlope μ hQ u x ≤ L) : + weightedGamma μ hQ (a - b : Lp ℝ 2 μ) u w = + weightedGamma μ hQ a u w - weightedGamma μ hQ b u w := by + have hΓ := localGamma_memLp_of_bounded_gradient μ hQ u w L hu + simp only [weightedGamma_eq_L2_inner μ hQ u w hΓ, inner_sub_left] + +theorem weightedGamma_fixed_weight_tendsto (d : Lp ℝ 2 μ) (w : SobolevSpace μ hQ) + {us : ℕ → SobolevSpace μ hQ} {u : SobolevSpace μ hQ} (L : ℝ≥0) + (hus : ∀ k, ∀ᵐ x ∂μ, SobolevSpace.minimalSlope μ hQ (us k) x ≤ L) + (hu : ∀ᵐ x ∂μ, SobolevSpace.minimalSlope μ hQ u x ≤ L) + (hconv : Tendsto us atTop (𝓝 u)) : + Tendsto (fun k => weightedGamma μ hQ d (us k) w) atTop (𝓝 (weightedGamma μ hQ d u w)) := by + let ds (j : ℕ) := boundedL2Clip μ j d + let e (j : ℕ) := (L : ℝ) * ‖d - ds j‖ * ‖SobolevSpace.minimalSlope μ hQ w‖ + apply tendsto_of_uniformly_close_sequences + (a := fun j k => weightedGamma μ hQ (ds j) (us k) w) + (b := fun j => weightedGamma μ hQ (ds j) u w) (e := e) + · intro j + have hb : ∀ᵐ x ∂μ, ‖ds j x‖ ≤ ((j : ℝ≥0) : ℝ) := by + simpa only [Real.norm_eq_abs] using boundedL2Clip_abs_le μ j d + exact ((((weightedGammaCLM μ hQ (Lp.aestronglyMeasurable (ds j)) hb).flip w).continuous.tendsto u).comp hconv) + · have hd := ((tendsto_const_nhds (x := d)).sub (boundedL2Clip_tendsto μ d)).norm + simpa only [sub_self, norm_zero, mul_zero, zero_mul, e, ds] using + (hd.const_mul (L : ℝ)).mul_const ‖SobolevSpace.minimalSlope μ hQ w‖ + · intro j k + rw [Real.dist_eq, ← weightedGamma_weight_difference μ hQ d (ds j) (us k) w L (hus k)] + exact weightedGamma_le_of_bounded_gradient μ hQ (d - ds j) (us k) w L (hus k) + · intro j + rw [dist_comm, Real.dist_eq, ← weightedGamma_weight_difference μ hQ d (ds j) u w L hu] + exact weightedGamma_le_of_bounded_gradient μ hQ (d - ds j) u w L hu + +end RegularPointCoordinates + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/WeightedGammaLocality.lean b/lean/OAI/Geometry/RCD/Sobolev/WeightedGammaLocality.lean new file mode 100644 index 0000000000000000000000000000000000000000..afdf47e92b4436a49e378885d7ced9f9e2655875 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/WeightedGammaLocality.lean @@ -0,0 +1,31 @@ +import OAI.Geometry.RCD.Coordinates.BoundedSplittingCoordinates +import OAI.Analysis.RCDHeat.HeatFisher + +namespace OAI + +/-! # Locality under a supported measurable weight -/ + +open Set Filter MeasureTheory +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) (Q : QuadraticCheegerEnergy μ) + +theorem weightedGamma_congr_on {Ω : Set X} (hΩ : MeasurableSet Ω) + {f f' g g' : SobolevSpace μ Q} + (hf : SobolevSpace.toLp μ Q f =ᵐ[μ.restrict Ω] SobolevSpace.toLp μ Q f') + (hg : SobolevSpace.toLp μ Q g =ᵐ[μ.restrict Ω] SobolevSpace.toLp μ Q g') + (w : X → ℝ) (hw : ∀ x∉Ω, w x=0) : + weightedGamma μ Q w f g=weightedGamma μ Q w f' g' := by + have hlocal := (ae_restrict_iff' hΩ).mp (localGamma_pair_congr_ae μ Q hf hg) + apply integral_congr_ae + filter_upwards [hlocal] with x hx + by_cases hmem : x∈Ω + · rw [hx hmem] + · simp only [hw x hmem,zero_mul] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/WeightedGammaYoung.lean b/lean/OAI/Geometry/RCD/Sobolev/WeightedGammaYoung.lean new file mode 100644 index 0000000000000000000000000000000000000000..2853a2b6b0b643c5e5919fec10f205d8eeaeeeb2 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/WeightedGammaYoung.lean @@ -0,0 +1,59 @@ +import OAI.Geometry.RCD.Sobolev.LocalBochnerInput + +namespace OAI + +/-! # Young's inequality for cutoff-controlled mixed gradient integrals -/ + +open Set Filter MeasureTheory +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +theorem weighted_gamma_young_pointwise (f g : SobolevSpace μ hQ) + {Ω : Set X} {φ χ : X → ℝ} {B t : ℝ} (hB : 0≤B) (ht : 0≤t) + (hφ : ∀ᵐ x ∂μ.restrict Ω, |φ x|≤B*|χ x|) : + ∀ᵐ x ∂μ.restrict Ω, 2*t*|φ x*localGamma μ hQ f g x|≤ + (χ x)^2*localGamma μ hQ f f x+t^2*B^2*localGamma μ hQ g g x := by + filter_upwards [hφ,ae_restrict_of_ae (localGamma_abs_le μ hQ f g), + ae_restrict_of_ae (localGamma_self μ hQ f),ae_restrict_of_ae (localGamma_self μ hQ g), + ae_restrict_of_ae ((Lp.coeFn_nonneg _).mpr (SobolevSpace.minimalSlope_nonneg μ hQ f)), + ae_restrict_of_ae ((Lp.coeFn_nonneg _).mpr (SobolevSpace.minimalSlope_nonneg μ hQ g))] + with x hx hfg hff hgg hfn hgn + have hb := mul_le_mul hx hfg (abs_nonneg _) (mul_nonneg hB (abs_nonneg _)) + rw [← abs_mul] at hb + have hm := mul_le_mul_of_nonneg_left hb (mul_nonneg (by norm_num : (0:ℝ)≤2) ht) + have hs := sq_nonneg (|χ x| *SobolevSpace.minimalSlope μ hQ f x- + t*B*SobolevSpace.minimalSlope μ hQ g x) + rw [hff,hgg] + nlinarith only [hm,hs,sq_abs (χ x)] + +theorem weighted_gamma_young_integral (f g : SobolevSpace μ hQ) + {Ω : Set X} {φ χ : X → ℝ} {B t C D : ℝ} (hB : 0≤B) (ht : 0≤t) + (hφ : AEStronglyMeasurable φ (μ.restrict Ω)) + (hχ : AEStronglyMeasurable χ (μ.restrict Ω)) + (hφb : ∀ᵐ x ∂μ.restrict Ω, |φ x|≤D) (hχb : ∀ᵐ x ∂μ.restrict Ω, |χ x|≤C) + (hdom : ∀ᵐ x ∂μ.restrict Ω, |φ x|≤B*|χ x|) : + 2*t*|∫ x in Ω, φ x*localGamma μ hQ f g x ∂μ|≤ + (∫ x in Ω, (χ x)^2*localGamma μ hQ f f x ∂μ)+ + t^2*B^2*(∫ x in Ω, localGamma μ hQ g g x ∂μ) := by + have hi := (localGamma_memL1 μ hQ f g).restrict.bdd_mul hφ + (hφb.mono fun x hx => by simpa only [Real.norm_eq_abs] using hx) + have hχnorm : ∀ᵐ x ∂μ.restrict Ω, ‖(χ x)^2‖≤C^2 := hχb.mono fun x hx => by + simpa only [norm_pow,Real.norm_eq_abs] using pow_le_pow_left₀ (abs_nonneg _) hx 2 + have hj : Integrable (fun x => (χ x)^2*localGamma μ hQ f f x) (μ.restrict Ω) := + (localGamma_memL1 μ hQ f f).restrict.bdd_mul (hχ.pow 2) hχnorm + have hg : IntegrableOn (localGamma μ hQ g g) Ω μ := (localGamma_memL1 μ hQ g g).restrict + have hb := integral_mono_ae (hi.abs.const_mul (2*t)) (hj.add (hg.const_mul (t^2*B^2))) + (weighted_gamma_young_pointwise μ hQ f g hB ht hdom) + change (∫ x in Ω, 2*t*|φ x*localGamma μ hQ f g x| ∂μ)≤ + ∫ x in Ω, (χ x)^2*localGamma μ hQ f f x+t^2*B^2*localGamma μ hQ g g x ∂μ at hb + rw [integral_const_mul,integral_add hj (hg.const_mul (t^2*B^2)),integral_const_mul] at hb + exact (mul_le_mul_of_nonneg_left (abs_integral_le_integral_abs) + (mul_nonneg (by norm_num : (0:ℝ)≤2) ht)).trans hb + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/WeightedGradientDensity.lean b/lean/OAI/Geometry/RCD/Sobolev/WeightedGradientDensity.lean new file mode 100644 index 0000000000000000000000000000000000000000..56b2431d360d8be21ddeaab520c51784c5cce50b --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/WeightedGradientDensity.lean @@ -0,0 +1,50 @@ +import OAI.Geometry.RCD.Sobolev.GradientEnergyFromDensity +import Mathlib.MeasureTheory.Measure.FiniteMeasure + +namespace OAI + +/-! # Compact weighted energy from the actual limiting density + +The weight is supported where the sharp density comparison holds. Absolute +continuity is retained explicitly; it is supplied by energy-measure domination. +-/ + +open Set Filter MeasureTheory +open scoped ENNReal BoundedContinuousFunction +noncomputable section +namespace RegularPointCoordinates + +theorem weighted_gradient_energy_from_density {n : ℕ} + (ν : FiniteMeasure (Euclidean n)) (g : Euclidean n → ℝ) + {A : Set (Euclidean n)} (hA : MeasurableSet A) + (hν : (ν : Measure (Euclidean n)) ≪ volume) + {V : ℝ} (φ : Euclidean n →ᵇ ℝ) + (hφ : ∀ x, 0≤φ x) (hs : Function.support φ ⊆ A) + (hb : ∀ᵐ x ∂(volume : Measure (Euclidean n)).restrict A, + ‖fderiv ℝ g x‖^2≤V*((ν : Measure (Euclidean n)).rnDeriv volume x).toReal) : + Integrable (fun x => φ x*‖fderiv ℝ g x‖^2) volume ∧ + (∫ x, φ x*‖fderiv ℝ g x‖^2)≤V*∫ x, φ x ∂(ν : Measure (Euclidean n)) := by + have hi := ((integrable_toReal_rnDeriv_mul_iff hν).2 + (φ.integrable (ν : Measure (Euclidean n)))).const_mul V + have hbound : ∀ᵐ x ∂(volume : Measure (Euclidean n)), + φ x*‖fderiv ℝ g x‖^2≤ + V*(((ν : Measure (Euclidean n)).rnDeriv volume x).toReal*φ x) := by + filter_upwards [(ae_restrict_iff' hA).mp hb] with x hx + by_cases hm : x∈A + · nlinarith [mul_le_mul_of_nonneg_left (hx hm) (hφ x)] + · have hz : φ x=0 := Function.notMem_support.mp (fun h => hm (hs h)) + simp only [hz,zero_mul,mul_zero,le_refl] + have hmeas : AEStronglyMeasurable (fun x => φ x*‖fderiv ℝ g x‖^2) volume := + (φ.continuous.measurable.mul ((measurable_fderiv ℝ g).norm.pow_const 2)).aestronglyMeasurable + have hprod : Integrable (fun x => φ x*‖fderiv ℝ g x‖^2) volume := by + apply hi.mono' hmeas + filter_upwards [hbound] with x hx + simpa only [Real.norm_eq_abs,abs_of_nonneg (mul_nonneg (hφ x) (sq_nonneg _))] using hx + refine ⟨hprod, (integral_mono_ae hprod hi hbound).trans_eq ?_⟩ + rw [integral_const_mul,integral_toReal_rnDeriv_mul hν] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/WeightedGradientPairDifference.lean b/lean/OAI/Geometry/RCD/Sobolev/WeightedGradientPairDifference.lean new file mode 100644 index 0000000000000000000000000000000000000000..f622c7a52382fc2e176e90aeea398f2de2171c11 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/WeightedGradientPairDifference.lean @@ -0,0 +1,46 @@ +import OAI.Geometry.RCD.Sobolev.SobolevWeakEnergyLower + +namespace OAI + +/-! # Two approximations to one gradient have vanishing pairwise error -/ + +open Set Filter MeasureTheory +open scoped Topology NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) (Q : QuadraticCheegerEnergy μ) + +theorem weighted_gradient_pair_le_two + {φ : X → ℝ} (hφ : AEStronglyMeasurable φ μ) {B : ℝ≥0} + (hB : ∀ᵐ x ∂μ, ‖φ x‖ ≤ B) (hφ0 : ∀ᵐ x ∂μ, 0 ≤ φ x) + (u v f : SobolevSpace μ Q) : + weightedGamma μ Q φ (u-v) (u-v) ≤ + 2*weightedGamma μ Q φ (u-f) (u-f)+2*weightedGamma μ Q φ (v-f) (v-f) := by + let P := weightedGammaCLM μ Q hφ hB + have hn : 0 ≤ P ((u-f)+(v-f)) ((u-f)+(v-f)) := + weightedGamma_nonneg_of_weight μ Q hφ0 _ + have huv : P u v = P v u := weightedGamma_comm μ Q φ _ _ + have huf : P u f = P f u := weightedGamma_comm μ Q φ _ _ + have hvf : P v f = P f v := weightedGamma_comm μ Q φ _ _ + change P (u-v) (u-v) ≤ 2*P (u-f) (u-f)+2*P (v-f) (v-f) + simp only [map_add,map_sub,add_apply,sub_apply] at hn ⊢ + linarith only [hn,huv,huf,hvf] + +theorem weighted_gradient_pair_tendsto_zero + {φ : X → ℝ} (hφ : AEStronglyMeasurable φ μ) {B : ℝ≥0} + (hB : ∀ᵐ x ∂μ, ‖φ x‖ ≤ B) (hφ0 : ∀ᵐ x ∂μ, 0 ≤ φ x) + (u v : ℕ → SobolevSpace μ Q) (f : SobolevSpace μ Q) + (hu : Tendsto (fun k => weightedGamma μ Q φ (u k-f) (u k-f)) atTop (𝓝 0)) + (hv : Tendsto (fun k => weightedGamma μ Q φ (v k-f) (v k-f)) atTop (𝓝 0)) : + Tendsto (fun k => weightedGamma μ Q φ (u k-v k) (u k-v k)) atTop (𝓝 0) := by + apply squeeze_zero + (fun k => weightedGamma_nonneg_of_weight μ Q hφ0 (u k-v k)) + (fun k => weighted_gradient_pair_le_two μ Q hφ hB hφ0 (u k) (v k) f) + simpa only [mul_zero,zero_add] using (hu.const_mul 2).add (hv.const_mul 2) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/WeightedIntegralPotential.lean b/lean/OAI/Geometry/RCD/Sobolev/WeightedIntegralPotential.lean new file mode 100644 index 0000000000000000000000000000000000000000..7086194a93f31f472104eefdb0ff77a9ae72df1a --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/WeightedIntegralPotential.lean @@ -0,0 +1,90 @@ +import OAI.Analysis.RCDHeat.ExistingAnalytic +import OAI.Geometry.RCD.Sobolev.InnerProductVariation + +namespace OAI + +/-! # Differentiating a scalar potential against a bounded weight + +The L² remainder is controlled by the Lipschitz derivative of the scalar +potential. This permits nonlinear heat pairings without assuming an +L² derivative for their nonlinear factor. +-/ + +open Set Filter MeasureTheory +open scoped ENNReal NNReal Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MeasurableSpace X] (μ : Measure X) + +def weightedIntegralPotential (θ : Lp ℝ ∞ μ) (Φ : ℝ → ℝ) (f : Lp ℝ 2 μ) : ℝ := + ∫ x, θ x * Φ (f x) ∂μ + +theorem weightedIntegralPotential_remainder (θ : Lp ℝ ∞ μ) (B : ℝ≥0) + (hB : ∀ᵐ x ∂μ, |θ x| ≤ B) {Φ φ : ℝ → ℝ} {C : ℝ≥0} + (hd : ∀ a, HasDerivAt Φ (φ a) a) (hΦ0 : Φ 0=0) + (hφ : LipschitzWith C φ) (hφ0 : φ 0=0) (f g : Lp ℝ 2 μ) : + |weightedIntegralPotential μ θ Φ g - weightedIntegralPotential μ θ Φ f - + inner ℝ (lpMultiplier μ θ (hφ.compLp hφ0 f)) (g-f)| ≤ + (B:ℝ)*C*‖g-f‖^2 := by + have hb : ∀ᵐ x ∂μ, ‖θ x‖ ≤ (B:ℝ) := by simpa only [Real.norm_eq_abs] using hB + have hf := (integralPotential_integrable μ hd hΦ0 hφ hφ0 f).bdd_mul + (Lp.aestronglyMeasurable θ) hb + have hg := (integralPotential_integrable μ hd hΦ0 hφ hφ0 g).bdd_mul + (Lp.aestronglyMeasurable θ) hb + let l := lpMultiplier μ θ (hφ.compLp hφ0 f) + have hi := (Lp.memLp l).integrable_mul (Lp.memLp (g-f)) + have he : weightedIntegralPotential μ θ Φ g - weightedIntegralPotential μ θ Φ f - + inner ℝ l (g-f) = ∫ x, θ x*Φ (g x)-θ x*Φ (f x)-l x*(g-f) x ∂μ := by + unfold weightedIntegralPotential + rw [L2.inner_def] + simp only [Real.inner_apply] + rw [← integral_sub hg hf] + exact (integral_sub (hg.sub hf) hi).symm + rw [he] + have hrem := ((hg.sub hf).sub hi).abs + have hsq : Integrable (fun x => ((B:ℝ)*C)*(g-f) x^2) μ := by + simpa only [Real.norm_eq_abs,sq_abs] using + ((Lp.memLp (g-f)).integrable_norm_pow (by norm_num : (2:ℕ)≠0)).const_mul ((B:ℝ)*C) + calc + _ ≤ ∫ x, |θ x*Φ (g x)-θ x*Φ (f x)-l x*(g-f) x| ∂μ := abs_integral_le_integral_abs + _ ≤ ∫ x, ((B:ℝ)*C)*(g-f) x^2 ∂μ := by + apply integral_mono_ae hrem hsq + filter_upwards [hB,lpMultiplier_coe μ θ (hφ.compLp hφ0 f), + hφ.coeFn_compLp hφ0 f,Lp.coeFn_sub g f] with x hbx hl hpf hgf + change |θ x*Φ (g x)-θ x*Φ (f x)-l x*(g-f) x| ≤ _ + change l x = θ x * (hφ.compLp hφ0 f x) at hl + rw [hl,hpf,hgf] + simp only [Pi.sub_apply,Function.comp_apply] + have hbnd := mul_le_mul hbx (scalar_potential_remainder hd hφ (f x) (g x)) + (abs_nonneg _) B.coe_nonneg + calc + _ = |θ x| * |Φ (g x)-Φ (f x)-φ (f x)*(g x-f x)| := by rw [← abs_mul]; congr 1; ring + _ ≤ _ := hbnd + _ = _ := by rw [sq_abs]; ring + _ = _ := by rw [integral_const_mul,integral_sq_Lp] + +theorem weightedIntegralPotential_hasFDerivAt (θ : Lp ℝ ∞ μ) (B : ℝ≥0) + (hB : ∀ᵐ x ∂μ, |θ x| ≤ B) {Φ φ : ℝ → ℝ} {C : ℝ≥0} + (hd : ∀ a, HasDerivAt Φ (φ a) a) (hΦ0 : Φ 0=0) + (hφ : LipschitzWith C φ) (hφ0 : φ 0=0) (f : Lp ℝ 2 μ) : + HasFDerivAt (weightedIntegralPotential μ θ Φ) + (innerSL ℝ (lpMultiplier μ θ (hφ.compLp hφ0 f))) f := by + rw [hasFDerivAt_iff_tendsto] + apply squeeze_zero (fun g => mul_nonneg (inv_nonneg.mpr (norm_nonneg _)) (norm_nonneg _)) + (fun g => ?_) (show Tendsto (fun g : Lp ℝ 2 μ => ((B:ℝ)*C)*‖g-f‖) (𝓝 f) (𝓝 0) by + have hc : Continuous (fun g : Lp ℝ 2 μ => ((B:ℝ)*C)*‖g-f‖) := + continuous_const.mul (continuous_id.sub continuous_const).norm + simpa only [sub_self,norm_zero,mul_zero] using hc.tendsto f) + have h := mul_le_mul_of_nonneg_left (weightedIntegralPotential_remainder μ θ B hB hd hΦ0 hφ hφ0 f g) + (inv_nonneg.mpr (norm_nonneg (g-f))) + have he : ‖g-f‖⁻¹ * (((B:ℝ)*C)*‖g-f‖^2) = ((B:ℝ)*C)*‖g-f‖ := by + by_cases hz : ‖g-f‖=0 + · simp [hz] + · field_simp + simpa only [Real.norm_eq_abs,innerSL_apply_apply,he] using h + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/WeightedL2SquareLimit.lean b/lean/OAI/Geometry/RCD/Sobolev/WeightedL2SquareLimit.lean new file mode 100644 index 0000000000000000000000000000000000000000..569fb5b15f9d3fa8aae1c0ab309573fa34f5c9bb --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/WeightedL2SquareLimit.lean @@ -0,0 +1,34 @@ +import OAI.Analysis.RCDHeat.ExistingAnalytic + +namespace OAI + +/-! # Continuous bounded-weight square pairings on L² -/ + +open Filter MeasureTheory +open scoped NNReal Topology + +namespace RegularPointCoordinates + +variable {X : Type*} [MeasurableSpace X] (μ : Measure X) + +theorem weightedL2_square_tendsto {v : X → ℝ} (hv : Measurable v) (C : ℝ≥0) + (hC : ∀ x, |v x| ≤ C) {ds : ℕ → Lp ℝ 2 μ} {d : Lp ℝ 2 μ} + (hd : Tendsto ds atTop (𝓝 d)) : + Tendsto (fun k => ∫ x, v x * (ds k x) ^ 2 ∂μ) atTop + (𝓝 (∫ x, v x * (d x) ^ 2 ∂μ)) := by + let V := boundedMultiplier μ v hv C hC + let T := lpMultiplier μ V + have he (f : Lp ℝ 2 μ) : (∫ x, v x * (f x) ^ 2 ∂μ) = inner ℝ f (T f) := by + rw [L2.inner_def] + apply integral_congr_ae + filter_upwards [lpMultiplier_coe μ V f, boundedMultiplier_coe μ v hv C hC] with x hx hV + change T f x = V x * f x at hx + change V x = v x at hV + simp only [Real.inner_apply, hx, hV] + ring + simp_rw [he] + exact hd.inner ((T.continuous.tendsto d).comp hd) + +end RegularPointCoordinates + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/WeightedLaplacianPair.lean b/lean/OAI/Geometry/RCD/Sobolev/WeightedLaplacianPair.lean new file mode 100644 index 0000000000000000000000000000000000000000..cd9753bcd512cb1f99020e55b4f35796d20b7c10 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/WeightedLaplacianPair.lean @@ -0,0 +1,57 @@ +import OAI.Analysis.RCDHeat.ExistingAnalytic + +namespace OAI + +/-! # A symmetric weighted pairing of L² Laplacians -/ + +open MeasureTheory +open scoped NNReal BoundedContinuousFunction + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] (μ : Measure X) + +def weightedLaplacianPair (v : X →ᵇ ℝ) : Lp ℝ 2 μ →ₗ[ℝ] Lp ℝ 2 μ →ₗ[ℝ] ℝ := + let T := lpMultiplier μ (boundedMultiplier μ v v.continuous.measurable ‖v‖₊ + (fun x => v.norm_coe_le_norm x)) + LinearMap.mk₂ ℝ (fun d e => inner ℝ d (T e)) + (by intro d e f; exact inner_add_left _ _ _) + (by intro c d e; simp only [real_inner_smul_left,smul_eq_mul]) + (by intro d e f; rw [map_add,inner_add_right]) + (by intro c d e; simp only [map_smul,real_inner_smul_right,smul_eq_mul]) + +theorem weightedLaplacianPair_apply (v : X →ᵇ ℝ) (d e : Lp ℝ 2 μ) : + weightedLaplacianPair μ v d e = ∫ x, v x*d x*e x ∂μ := by + change inner ℝ d (lpMultiplier μ (boundedMultiplier μ v v.continuous.measurable ‖v‖₊ + (fun x => v.norm_coe_le_norm x)) e) = _ + rw [L2.inner_def] + apply integral_congr_ae + filter_upwards [lpMultiplier_coe μ (boundedMultiplier μ v v.continuous.measurable ‖v‖₊ + (fun x => v.norm_coe_le_norm x)) e, + boundedMultiplier_coe μ v v.continuous.measurable ‖v‖₊ (fun x => v.norm_coe_le_norm x)] with x hx hv + simp only [Real.inner_apply,hx,hv] + ring + +theorem weightedLaplacianPair_symmetric (v : X →ᵇ ℝ) (d e : Lp ℝ 2 μ) : + weightedLaplacianPair μ v d e = weightedLaplacianPair μ v e d := by + rw [weightedLaplacianPair_apply,weightedLaplacianPair_apply] + congr 1 + funext x + ring + +theorem weightedLaplacianPair_nonneg (v : X →ᵇ ℝ) (hv : 0≤v) (d : Lp ℝ 2 μ) : + 0≤weightedLaplacianPair μ v d d := by + rw [weightedLaplacianPair_apply] + apply integral_nonneg + intro x + change 0 ≤ v x*d x*d x + calc + 0 ≤ v x*(d x)^2 := mul_nonneg (hv x) (sq_nonneg (d x)) + _ = _ := by ring + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/WeightedMatchedJoin.lean b/lean/OAI/Geometry/RCD/Sobolev/WeightedMatchedJoin.lean new file mode 100644 index 0000000000000000000000000000000000000000..87ea5f24adecf9df56c745cc3e547ef0489544b9 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/WeightedMatchedJoin.lean @@ -0,0 +1,218 @@ +import OAI.Analysis.RCDHeat.ExistingAnalytic + +namespace OAI + +/-! # Matched paths joined at an arbitrary interior time -/ + +open Set Filter MeasureTheory TopologicalSpace +open scoped Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] + +def weightedLeftTime (t : Ioo (0:ℝ) 1) (s : Time) : Time := + projIcc 0 1 zero_le_one ((s:ℝ)/(t:ℝ)) + +def weightedRightTime (t : Ioo (0:ℝ) 1) (s : Time) : Time := + projIcc 0 1 zero_le_one (((s:ℝ)-(t:ℝ))/(1-(t:ℝ))) + +theorem weightedLeftTime_coe (t : Ioo (0:ℝ) 1) (s : Time) (hs : (s:ℝ) ≤ t) : + (weightedLeftTime t s:ℝ)=(s:ℝ)/(t:ℝ) := by + exact congrArg Subtype.val (projIcc_of_mem zero_le_one + ⟨div_nonneg s.property.1 t.property.1.le,(div_le_one t.property.1).mpr hs⟩) + +theorem weightedRightTime_coe (t : Ioo (0:ℝ) 1) (s : Time) (hs : (t:ℝ) ≤ s) : + (weightedRightTime t s:ℝ)=((s:ℝ)-(t:ℝ))/(1-(t:ℝ)) := by + exact congrArg Subtype.val (projIcc_of_mem zero_le_one + ⟨div_nonneg (sub_nonneg.mpr hs) (sub_pos.mpr t.property.2).le, + (div_le_one (sub_pos.mpr t.property.2)).mpr (sub_le_sub_right s.property.2 _)⟩) + +theorem continuous_weightedLeftTime (t : Ioo (0:ℝ) 1) : Continuous (weightedLeftTime t) := + continuous_projIcc.comp (continuous_subtype_val.div_const _) + +theorem continuous_weightedRightTime (t : Ioo (0:ℝ) 1) : Continuous (weightedRightTime t) := + continuous_projIcc.comp ((continuous_subtype_val.sub continuous_const).div_const _) + +def weightedJoin (t : Ioo (0:ℝ) 1) (z : MatchedPaths X) : C(Time,X) where + toFun s := if (s:ℝ) ≤ t then z.val.1 (weightedLeftTime t s) else z.val.2 (weightedRightTime t s) + continuous_toFun := by + apply Continuous.if_le (z.val.1.continuous.comp (continuous_weightedLeftTime t)) + (z.val.2.continuous.comp (continuous_weightedRightTime t)) continuous_subtype_val continuous_const + intro s hs + change z.val.1 (weightedLeftTime t s)=z.val.2 (weightedRightTime t s) + have hl : weightedLeftTime t s=1 := by + apply Subtype.ext + rw [weightedLeftTime_coe t s hs.le,hs,div_self t.property.1.ne'] + rfl + have hr : weightedRightTime t s=0 := by + apply Subtype.ext + rw [weightedRightTime_coe t s hs.ge,hs,sub_self,zero_div] + rfl + rw [hl,hr] + exact z.property + +theorem weightedJoin_continuous (t : Ioo (0:ℝ) 1) : Continuous (weightedJoin (X:=X) t) := by + apply ContinuousMap.continuous_of_continuous_uncurry + change Continuous (fun z : MatchedPaths X × Time => if (z.2:ℝ) ≤ t then + z.1.val.1 (weightedLeftTime t z.2) else z.1.val.2 (weightedRightTime t z.2)) + apply Continuous.if_le + (continuous_eval.comp (((continuous_subtype_val.comp continuous_fst).fst).prodMk + ((continuous_weightedLeftTime t).comp continuous_snd))) + (continuous_eval.comp (((continuous_subtype_val.comp continuous_fst).snd).prodMk + ((continuous_weightedRightTime t).comp continuous_snd))) + (continuous_subtype_val.comp continuous_snd) continuous_const + intro z hz + change (z.2:ℝ)=(t:ℝ) at hz + change z.1.val.1 (weightedLeftTime t z.2)=z.1.val.2 (weightedRightTime t z.2) + have hl : weightedLeftTime t z.2=1 := by + apply Subtype.ext + rw [weightedLeftTime_coe t z.2 hz.le,hz,div_self t.property.1.ne'] + rfl + have hr : weightedRightTime t z.2=0 := by + apply Subtype.ext + rw [weightedRightTime_coe t z.2 hz.ge,hz,sub_self,zero_div] + rfl + rw [hl,hr] + exact z.1.property + +theorem weightedJoin_left (t : Ioo (0:ℝ) 1) (z : MatchedPaths X) (s : Time) + (hs : (s:ℝ) ≤ t) : weightedJoin t z s=z.val.1 (weightedLeftTime t s) := + ite_eq_left hs + +theorem weightedJoin_right (t : Ioo (0:ℝ) 1) (z : MatchedPaths X) (s : Time) + (hs : (t:ℝ) ≤ s) : weightedJoin t z s=z.val.2 (weightedRightTime t s) := by + rcases hs.eq_or_lt with he | he + · have hl : weightedLeftTime t s=1 := by + apply Subtype.ext + rw [weightedLeftTime_coe t s he.ge,← he,div_self t.property.1.ne'] + rfl + have hr : weightedRightTime t s=0 := by + apply Subtype.ext + rw [weightedRightTime_coe t s he.le,← he,sub_self,zero_div] + rfl + rw [weightedJoin_left t z s he.ge,hl,hr] + exact z.property + · exact ite_eq_right (not_le.mpr he) + +@[simp] theorem weightedJoin_zero (t : Ioo (0:ℝ) 1) (z : MatchedPaths X) : + weightedJoin t z 0=z.val.1 0 := by + rw [weightedJoin_left t z 0 t.property.1.le] + congr 1 + apply Subtype.ext + rw [weightedLeftTime_coe t 0 t.property.1.le] + simp + +@[simp] theorem weightedJoin_one (t : Ioo (0:ℝ) 1) (z : MatchedPaths X) : + weightedJoin t z 1=z.val.2 1 := by + rw [weightedJoin_right t z 1 t.property.2.le] + congr 1 + apply Subtype.ext + rw [weightedRightTime_coe t 1 t.property.2.le] + change (1-(t:ℝ))/(1-(t:ℝ))=1 + exact div_self (sub_pos.mpr t.property.2).ne' + +@[simp] theorem weightedJoin_split (t : Ioo (0:ℝ) 1) (z : MatchedPaths X) : + weightedJoin t z ⟨t,t.property.1.le,t.property.2.le⟩=z.val.1 1 := by + rw [weightedJoin_left t z _ le_rfl] + congr 1 + apply Subtype.ext + rw [weightedLeftTime_coe t _ le_rfl,div_self t.property.1.ne'] + rfl + +theorem weightedJoin_isGeodesic (t : Ioo (0:ℝ) 1) (z : MatchedPaths X) + (h0 : IsGeodesic z.val.1) (h1 : IsGeodesic z.val.2) + (ha : dist (z.val.1 0) (z.val.1 1)=(t:ℝ)*dist (z.val.1 0) (z.val.2 1)) + (hb : dist (z.val.2 0) (z.val.2 1)=(1-(t:ℝ))*dist (z.val.1 0) (z.val.2 1)) : + IsGeodesic (weightedJoin t z) := by + let c := dist (z.val.1 0) (z.val.2 1) + have hleft (s u : Time) (hsu : s ≤ u) (hu : (u:ℝ) ≤ t) : + dist (weightedJoin t z s) (weightedJoin t z u)=((u:ℝ)-(s:ℝ))*c := by + change (s:ℝ) ≤ (u:ℝ) at hsu + rw [weightedJoin_left t z s (hsu.trans hu),weightedJoin_left t z u hu,h0, + weightedLeftTime_coe t s (hsu.trans hu),weightedLeftTime_coe t u hu,ha, + abs_of_nonpos (sub_nonpos.mpr (div_le_div_of_nonneg_right hsu t.property.1.le))] + dsimp only [c] + field_simp [t.property.1.ne'] + ring + have hright (s u : Time) (hsu : s ≤ u) (hs : (t:ℝ) ≤ s) : + dist (weightedJoin t z s) (weightedJoin t z u)=((u:ℝ)-(s:ℝ))*c := by + change (s:ℝ) ≤ (u:ℝ) at hsu + rw [weightedJoin_right t z s hs,weightedJoin_right t z u (hs.trans hsu),h1, + weightedRightTime_coe t s hs,weightedRightTime_coe t u (hs.trans hsu),hb, + abs_of_nonpos (sub_nonpos.mpr (div_le_div_of_nonneg_right + (sub_le_sub_right hsu _) (sub_pos.mpr t.property.2).le))] + dsimp only [c] + field_simp [(sub_pos.mpr t.property.2).ne'] + ring + have hordered (s u : Time) (hsu : s ≤ u) : + dist (weightedJoin t z s) (weightedJoin t z u) ≤ ((u:ℝ)-(s:ℝ))*c := by + by_cases hu : (u:ℝ) ≤ t + · exact (hleft s u hsu hu).le + by_cases hs : (t:ℝ) ≤ s + · exact (hright s u hsu hs).le + let v : Time := ⟨t,t.property.1.le,t.property.2.le⟩ + have hv0 := hleft s v (le_of_not_ge hs) le_rfl + have hv1 := hright v u (le_of_not_ge hu) le_rfl + have htri := dist_triangle (weightedJoin t z s) (weightedJoin t z v) (weightedJoin t z u) + rw [hv0,hv1] at htri + dsimp only [v] at htri + nlinarith only [htri] + apply isGeodesic_of_dist_le + intro s u + rw [weightedJoin_zero,weightedJoin_one] + rcases le_total s u with hsu | hus + · rw [abs_sub_comm,abs_of_nonneg (sub_nonneg.mpr (show (s:ℝ) ≤ (u:ℝ) from hsu))] + exact hordered s u hsu + · rw [abs_of_nonneg (sub_nonneg.mpr (show (u:ℝ) ≤ (s:ℝ) from hus)),dist_comm] + exact hordered u s hus + +variable [MeasurableSpace X] [BorelSpace X] [SeparableSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem weightedJoin_law_left (t : Ioo (0:ℝ) 1) (ρ : Measure (MatchedPaths X)) + (q : Measure C(Time,X)) (hq : ρ.map (fun z => z.val.1)=q) + (s : Time) (hs : (s:ℝ) ≤ t) : + (ρ.map (weightedJoin t)).map (fun γ => γ s)=q.map (fun γ => γ (weightedLeftTime t s)) := by + rw [Measure.map_map (measurable_path_eval s) (weightedJoin_continuous t).measurable,← hq, + Measure.map_map (measurable_path_eval _) measurable_subtype_coe.fst] + congr 1 + funext z + exact weightedJoin_left t z s hs + +theorem weightedJoin_law_right (t : Ioo (0:ℝ) 1) (ρ : Measure (MatchedPaths X)) + (q : Measure C(Time,X)) (hq : ρ.map (fun z => z.val.2)=q) + (s : Time) (hs : (t:ℝ) ≤ s) : + (ρ.map (weightedJoin t)).map (fun γ => γ s)=q.map (fun γ => γ (weightedRightTime t s)) := by + rw [Measure.map_map (measurable_path_eval s) (weightedJoin_continuous t).measurable,← hq, + Measure.map_map (measurable_path_eval _) measurable_subtype_coe.snd] + congr 1 + funext z + exact weightedJoin_right t z s hs + +theorem weightedJoin_law_zero (t : Ioo (0:ℝ) 1) (ρ : Measure (MatchedPaths X)) + (q : Measure C(Time,X)) (hq : ρ.map (fun z => z.val.1)=q) : + (ρ.map (weightedJoin t)).map (fun γ => γ 0)=q.map (fun γ => γ 0) := by + rw [Measure.map_map (measurable_path_eval 0) (weightedJoin_continuous t).measurable,← hq, + Measure.map_map (measurable_path_eval 0) measurable_subtype_coe.fst] + simp only [Function.comp_def,weightedJoin_zero] + +theorem weightedJoin_law_one (t : Ioo (0:ℝ) 1) (ρ : Measure (MatchedPaths X)) + (q : Measure C(Time,X)) (hq : ρ.map (fun z => z.val.2)=q) : + (ρ.map (weightedJoin t)).map (fun γ => γ 1)=q.map (fun γ => γ 1) := by + rw [Measure.map_map (measurable_path_eval 1) (weightedJoin_continuous t).measurable,← hq, + Measure.map_map (measurable_path_eval 1) measurable_subtype_coe.snd] + simp only [Function.comp_def,weightedJoin_one] + +theorem weightedJoin_law_split (t : Ioo (0:ℝ) 1) (ρ : Measure (MatchedPaths X)) + (q : Measure C(Time,X)) (hq : ρ.map (fun z => z.val.1)=q) : + (ρ.map (weightedJoin t)).map (fun γ => γ ⟨t,t.property.1.le,t.property.2.le⟩)= + q.map (fun γ => γ 1) := by + rw [Measure.map_map (measurable_path_eval _) (weightedJoin_continuous t).measurable,← hq, + Measure.map_map (measurable_path_eval 1) measurable_subtype_coe.fst] + simp only [Function.comp_def,weightedJoin_split] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/WeightedMixedEnergy.lean b/lean/OAI/Geometry/RCD/Sobolev/WeightedMixedEnergy.lean new file mode 100644 index 0000000000000000000000000000000000000000..f71e102c6e0f8c60574ba67cd9ee9c2b2217b0d0 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/WeightedMixedEnergy.lean @@ -0,0 +1,132 @@ +import OAI.Geometry.RCD.Sobolev.WeightedBallEnergyLiminf +import OAI.Geometry.RCD.Sobolev.WeightedQuadraticEnergy +import OAI.Geometry.RCD.Sobolev.QuadraticEnergyLimit +import OAI.Geometry.RCD.Sobolev.LocalLipschitzDerivative +import OAI.Geometry.RCD.Sobolev.CorrectionInteriorEnergy + +namespace OAI + +/-! # Mixed energy convergence from the actual sharp diagonal recoveries -/ + +open Set Filter MeasureTheory Metric +open scoped Topology NNReal BoundedContinuousFunction +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem NoncollapsedRCD.weighted_mixed_energy_tendsto {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (hn : 2≤n) + {S ρ τ R : ℝ} (hS : 0 r k^2*((hausdorff n X).real (ball (p k) (S*r k)))⁻¹* + ∫ x in ball (p k) (S*r k), φ (v k x)*localGamma (hausdorff n X) hX.quadratic + (w k) (q k) x ∂hausdorff n X) atTop + (𝓝 ((volume.real (ball (0:Euclidean n) S))⁻¹* + ∫ z in ball 0 S, φ z*inner ℝ (gradient g z) (gradient ψ z))) := by + let μ := hausdorff n X + obtain ⟨_,_,_,Lg,_,hgL,_,_⟩ := hg.metric_bounds hS + obtain ⟨_,_,_,L,_,hψL,_,_⟩ := hψ.metric_bounds hS + have hgi := (local_lipschitz_derivative (show S ⟨Lg,hgL.lipschitzOnWith⟩)).2 + have hψi := (local_lipschitz_derivative (show S ⟨L,hψL.lipschitzOnWith⟩)).2 + apply cross_tendsto_of_quadratic_lower hwupper hqupper + intro t δ hδ + let F := fun k => w k+t • q k + have hFconv (W : ℝ) (hW : 0 SobolevSpace.toLp μ hX.quadratic (w k) x+z) hsmul) + rw [he] + calc + _ = |(SobolevSpace.toLp μ hX.quadratic (w k) x-g (v k x))+ + t*(SobolevSpace.toLp μ hX.quadratic (q k) x-ψ (v k x))| := by congr 1; ring + _ ≤ |SobolevSpace.toLp μ hX.quadratic (w k) x-g (v k x)|+ + |t| * |SobolevSpace.toLp μ hX.quadratic (q k) x-ψ (v k x)| := + (abs_add_le _ _).trans_eq (by rw [abs_mul]) + _ ≤ a+|t| * a := add_le_add hx (mul_le_mul_of_nonneg_left hqx (abs_nonneg _)) + _ ≤ δ := by dsimp only [a]; field_simp; nlinarith [abs_nonneg t] + have hFlip : ∀ W g y+t*ψ y) (closedBall 0 W) := by + intro W hWS + exact ⟨_,hgL.lipschitzOnWith.add ((lipschitzWith_smul t).comp hψL).lipschitzOnWith⟩ + have hFb : ∀ᶠ k in atTop, ∀ᵐ x ∂μ.restrict (closedBall (p k) (R*r k)), + r k^2*localGamma μ hX.quadratic (F k) (F k) x≤2*M+2*t^2*Q := by + filter_upwards [hwb,hqb] with k hwk hk + filter_upwards [hwk,hk, + ae_restrict_of_ae (localGamma_add_self_le μ hX.quadratic (w k) (t • q k)), + ae_restrict_of_ae (localGamma_smul_left μ hX.quadratic t (q k) (t • q k)), + ae_restrict_of_ae (localGamma_smul_right μ hX.quadratic t (q k) (q k))] + with x hwx hqx hx hl hr' + have ht : localGamma μ hX.quadratic (t • q k) (t • q k) x= + t^2*localGamma μ hX.quadratic (q k) (q k) x := by rw [hl,hr']; ring + rw [ht] at hx + have hh := mul_le_mul_of_nonneg_left hx (sq_nonneg (r k)) + nlinarith [mul_le_mul_of_nonneg_left hqx (sq_nonneg t)] + have hlo := hX.weighted_energy_eventual_lower_on_ball hn hS hτ hρτ hτR hRS + p r ε v hr hcurv hε hε1 hεlim hv F (fun y => g y+t*ψ y) hFlip hFconv + φ hφ hs (by positivity : 0≤2*M+2*t^2*Q) hFb δ hδ + have hEucl := weighted_gradient_quadratic_energy g ψ (ball (0:Euclidean n) S) φ + (Eventually.of_forall fun _ => hg.1.differentiable (by simp) _) + (Eventually.of_forall fun _ => hψ.1.differentiable (by simp) _) hgi hψi t + have heq (a : Euclidean n → ℝ) : (∫ z, φ z*a z)=∫ z in ball (0:Euclidean n) S, φ z*a z := by + symm + apply setIntegral_eq_integral_of_forall_compl_eq_zero + intro z hz + have hzφ : φ z=0 := Function.notMem_support.mp (fun hh => + hz ((ball_subset_ball (hρτ.trans (hτR.trans hRS)).le) (hs hh))) + rw [hzφ,zero_mul] + filter_upwards [hlo] with k hk + rw [heq,hEucl] at hk + have hsource := weighted_integral_localGamma_add_smul_square μ hX.quadratic (w k) (q k) t + (ball (p k) (S*r k)) (fun x => φ (v k x)) + (φ.continuous.measurable.comp (hv k).measurable).aestronglyMeasurable + (Eventually.of_forall fun x => φ.norm_coe_le_norm (v k x)) + dsimp only [F] at hk + rw [hsource] at hk + simp only [div_eq_mul_inv] at hk + convert hk using 1 <;> ring + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/WeightedQuadraticEnergy.lean b/lean/OAI/Geometry/RCD/Sobolev/WeightedQuadraticEnergy.lean new file mode 100644 index 0000000000000000000000000000000000000000..54ee8b4ac8f4c06e64d90d55d3525da04c833baa --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/WeightedQuadraticEnergy.lean @@ -0,0 +1,75 @@ +import OAI.Geometry.RCD.Sobolev.GradientQuadraticEnergy +import OAI.Geometry.RCD.Sobolev.SobolevQuadraticEnergy + +namespace OAI + +/-! # Polarization with the same compact weight on both sides -/ + +open Set Filter MeasureTheory InnerProductSpace +open scoped BoundedContinuousFunction RealInnerProductSpace +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem weighted_integral_localGamma_add_smul_square (μ : Measure X) + (hQ : QuadraticCheegerEnergy μ) (f g : SobolevSpace μ hQ) (t : ℝ) (A : Set X) + (φ : X → ℝ) (hφ : AEStronglyMeasurable φ (μ.restrict A)) + {C : ℝ} (hb : ∀ᵐ x ∂μ.restrict A, ‖φ x‖≤C) : + (∫ x in A, φ x*localGamma μ hQ (f+t • g) (f+t • g) x ∂μ)= + (∫ x in A, φ x*localGamma μ hQ f f x ∂μ)+ + 2*t*(∫ x in A, φ x*localGamma μ hQ f g x ∂μ)+ + t^2*(∫ x in A, φ x*localGamma μ hQ g g x ∂μ) := by + have hi (a b : SobolevSpace μ hQ) := (localGamma_memL1 μ hQ a b).restrict.bdd_mul hφ hb + have he : (fun x => φ x*localGamma μ hQ (f+t • g) (f+t • g) x)=ᵐ[μ.restrict A] + fun x => φ x*localGamma μ hQ f f x+2*t*(φ x*localGamma μ hQ f g x)+ + t^2*(φ x*localGamma μ hQ g g x) := by + filter_upwards [ae_restrict_of_ae (localGamma_add_smul_square μ hQ f g t)] with x hx + rw [hx] + ring + rw [integral_congr_ae he] + have hs := integral_add ((hi f f).add ((hi f g).const_mul (2*t))) ((hi g g).const_mul (t^2)) + have hf := integral_add (hi f f) ((hi f g).const_mul (2*t)) + simp only [Pi.add_apply] at hs hf + rw [hs,hf,integral_const_mul,integral_const_mul] + +theorem weighted_gradient_quadratic_energy {n : ℕ} (f g : Euclidean n → ℝ) + (A : Set (Euclidean n)) (φ : Euclidean n →ᵇ ℝ) + (hf : ∀ᵐ x ∂(volume : Measure (Euclidean n)).restrict A, DifferentiableAt ℝ f x) + (hg : ∀ᵐ x ∂(volume : Measure (Euclidean n)).restrict A, DifferentiableAt ℝ g x) + (hfi : IntegrableOn (fun x => ‖fderiv ℝ f x‖^2) A volume) + (hgi : IntegrableOn (fun x => ‖fderiv ℝ g x‖^2) A volume) (t : ℝ) : + (∫ x in A, φ x*‖fderiv ℝ (fun y => f y+t*g y) x‖^2)= + (∫ x in A, φ x*‖fderiv ℝ f x‖^2)+ + 2*t*(∫ x in A, φ x*inner ℝ (gradient f x) (gradient g x))+ + t^2*(∫ x in A, φ x*‖fderiv ℝ g x‖^2) := by + have hn (u : Euclidean n → ℝ) (x : Euclidean n) : ‖gradient u x‖=‖fderiv ℝ u x‖ := + (toDual ℝ (Euclidean n)).symm.norm_map _ + obtain ⟨hcross,_,_⟩ := gradient_quadratic_energy f g A hf hg hfi hgi t + have hb : ∀ᵐ x ∂(volume : Measure (Euclidean n)).restrict A, ‖φ x‖≤‖φ‖ := + Eventually.of_forall φ.norm_coe_le_norm + have hiF := hfi.bdd_mul φ.continuous.aestronglyMeasurable hb + have hiG := hgi.bdd_mul φ.continuous.aestronglyMeasurable hb + have hiC := hcross.bdd_mul φ.continuous.aestronglyMeasurable hb + have hp : (fun x => φ x*‖fderiv ℝ (fun y => f y+t*g y) x‖^2)=ᵐ[volume.restrict A] + fun x => φ x*‖fderiv ℝ f x‖^2+2*t*(φ x*inner ℝ (gradient f x) (gradient g x))+ + t^2*(φ x*‖fderiv ℝ g x‖^2) := by + filter_upwards [hf,hg] with x hfx hgx + have hd := (hfx.hasFDerivAt.add (hgx.hasFDerivAt.const_smul t)).fderiv + have hgrad : gradient (fun y => f y+t*g y) x=gradient f x+t • gradient g x := by + dsimp only [gradient] + rw [show fderiv ℝ (fun y => f y+t*g y) x=fderiv ℝ f x+t • fderiv ℝ g x from hd, + map_add,map_smul] + rw [← hn,hgrad,norm_add_sq_real,real_inner_smul_right,norm_smul,Real.norm_eq_abs, + mul_pow,sq_abs,hn,hn] + ring + rw [integral_congr_ae hp] + have hs := integral_add (hiF.add (hiC.const_mul (2*t))) (hiG.const_mul (t^2)) + have hfirst := integral_add hiF (hiC.const_mul (2*t)) + simp only [Pi.add_apply] at hs hfirst + rw [hs,hfirst,integral_const_mul,integral_const_mul] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/WeightedRecoveryConvergence.lean b/lean/OAI/Geometry/RCD/Sobolev/WeightedRecoveryConvergence.lean new file mode 100644 index 0000000000000000000000000000000000000000..bd3f590d69941d690afeff29392ce0d72746a66b --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/WeightedRecoveryConvergence.lean @@ -0,0 +1,77 @@ +import OAI.Geometry.RCD.Sobolev.WeightedBallEnergyLiminf +import OAI.Geometry.RCD.Sobolev.WeightedRecoveryEnergy + +namespace OAI + +/-! # Exact weighted energies of the actual compact recoveries -/ + +open Set Filter MeasureTheory Metric +open scoped Topology ENNReal NNReal BoundedContinuousFunction +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem NoncollapsedRCD.weighted_recovery_energy_tendsto {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (hn : 2≤n) + {S ρ τ R c : ℝ} (hS : 0 r k^2*((hausdorff n X).real (ball (p k) (S*r k)))⁻¹* + (∫ x in ball (p k) (S*r k), φ (v k x)*localGamma (hausdorff n X) hX.quadratic + (w k) (w k) x ∂hausdorff n X)) atTop + (𝓝 ((volume.real (ball (0:Euclidean n) S))⁻¹* + ∫ z in ball 0 S, φ z*‖fderiv ℝ ψ z‖^2)) := by + let G := smoothGradientTest (hψ.1.of_le (by simp)) hψ.2.1 + obtain ⟨_,_,_,L,_,hL,_,_⟩ := hψ.metric_bounds hS + have hbound : ∀ᶠ k in atTop, ∀ᵐ x ∂(hausdorff n X).restrict (closedBall (p k) (R*r k)), + r k^2*localGamma (hausdorff n X) hX.quadratic (w k) (w k) x≤(‖G‖+1)^2 := by + filter_upwards [hgrad 1 zero_lt_one] with k hk + have hfull := supported_recovery_slope (hausdorff n X) hX.quadratic (w k) measurableSet_ball + (fun x => by positivity) (hzero k) hk + filter_upwards [ae_restrict_of_ae hfull, + ae_restrict_of_ae (localGamma_self (hausdorff n X) hX.quadratic (w k)), + ae_restrict_of_ae ((Lp.coeFn_nonneg _).mpr + (SobolevSpace.minimalSlope_nonneg (hausdorff n X) hX.quadratic (w k)))] with x hx he hn + have hb : ‖fderiv ℝ ψ (v k x)‖≤‖G‖ := by + simpa only [G,smoothGradientTest_apply,Real.norm_eq_abs,abs_norm] using G.norm_coe_le_norm (v k x) + rw [he,← mul_pow] + exact pow_le_pow_left₀ (mul_nonneg (hr k).le hn) (hx.trans (add_le_add hb le_rfl)) 2 + have hlo := hX.weighted_energy_eventual_lower_on_ball hn hS hτ hρτ hτR hRS + p r ε v hr hcurv hε hε1 hεlim hv w ψ (fun _ _ => ⟨L,hL.lipschitzOnWith⟩) + hconv φ hφ hs (sq_nonneg (‖G‖+1)) hbound + have hup := hX.weighted_recovery_energy_upper hS p r ε v hr hεlim hv + (hψ.1.of_le (by simp)) hψ.2.1 φ hφ w hzero hgrad + have heq : (∫ z, φ z*‖fderiv ℝ ψ z‖^2)=∫ z in ball (0:Euclidean n) S, φ z*‖fderiv ℝ ψ z‖^2 := by + symm + apply setIntegral_eq_integral_of_forall_compl_eq_zero + intro z hz + have hzφ : φ z=0 := Function.notMem_support.mp (fun hh => + hz ((ball_subset_ball (hρτ.trans (hτR.trans hRS)).le) (hs hh))) + rw [hzφ,zero_mul] + apply Metric.tendsto_nhds.mpr + intro δ hδ + filter_upwards [hlo (δ/2) (half_pos hδ),hup (δ/2) (half_pos hδ)] with k hklo hkup + simp only [heq,div_eq_mul_inv] at hklo + rw [Real.dist_eq,abs_lt] + constructor <;> linarith + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/WeightedRecoveryEnergy.lean b/lean/OAI/Geometry/RCD/Sobolev/WeightedRecoveryEnergy.lean new file mode 100644 index 0000000000000000000000000000000000000000..8654cf800904329e2303be3e1988b24bddb52f72 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/WeightedRecoveryEnergy.lean @@ -0,0 +1,92 @@ +import OAI.Geometry.RCD.Metric.WeightedRecoveryError +import OAI.Geometry.RCD.Sobolev.SharpTestRecoverySequence +import OAI.Geometry.RCD.Sobolev.SmoothGradientTest +import OAI.Geometry.RCD.Metric.SupportedRecoverySlope + +namespace OAI + +/-! # Sharp compactly weighted energy upper bounds + +The fixed interior support extends the local slope estimate to the whole +physical ball. Measured convergence then gives the Euclidean Dirichlet energy +with no multiplicative loss. +-/ + +open Set Metric Filter MeasureTheory +open scoped Topology ContDiff BoundedContinuousFunction +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem NoncollapsedRCD.weighted_recovery_energy_upper {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) {S c : ℝ} (hS : 0 + ⟨by simpa only [Measure.restrict_apply_univ] using (hfin k).lt_top⟩ + have hmass (k : ℕ) : 0<μ.real (ball (p k) (S*r k)) := + ENNReal.toReal_pos (hX.fullSupport _ _ (mul_pos hS (hr k))).ne' (hfin k) + have hlim := physical_ball_measured_test_tendsto hS hS le_rfl hr hv hfin hmass hε (φ*G^2) + change Tendsto (fun k => (μ.real (ball (p k) (S*r k)))⁻¹* + ∫ x in ball (p k) (S*r k), φ (v k x)*(G (v k x))^2 ∂μ) atTop + (𝓝 ((volume.real (ball (0:Euclidean n) S))⁻¹* + ∫ z in ball 0 S, φ z*(G z)^2)) at hlim + intro δ hδ + let η := min 1 (δ/(2*(‖φ‖+1)*(2*‖G‖+1))) + have hden : 0<2*(‖φ‖+1)*(2*‖G‖+1) := by positivity + have hη : 0<η := lt_min zero_lt_one (div_pos hδ hden) + have hη1 : η≤1 := min_le_left _ _ + have hηδ : ‖φ‖*η*(2*‖G‖+η)≤δ/2 := by + have hh := (le_div_iff₀ hden).mp + (min_le_right 1 (δ/(2*(‖φ‖+1)*(2*‖G‖+1)))) + have h1 := mul_le_mul_of_nonneg_left + (add_le_add_left hη1 (2*‖G‖)) (mul_nonneg (norm_nonneg φ) hη.le) + have h2 := mul_le_mul_of_nonneg_right (show ‖φ‖≤‖φ‖+1 by linarith) + (mul_nonneg hη.le (show 0≤2*‖G‖+1 by positivity)) + dsimp only [η] at h1 h2 ⊢ + nlinarith only [hh,h1,h2] + have hev := hlim.eventually (Iio_mem_nhds (show + (volume.real (ball (0:Euclidean n) S))⁻¹*(∫ z in ball 0 S, φ z*(G z)^2)< + (volume.real (ball (0:Euclidean n) S))⁻¹*(∫ z in ball 0 S, φ z*(G z)^2)+δ/2 by linarith)) + filter_upwards [hgrad η hη,hev] with k hk he + have hfull := supported_recovery_slope μ hX.quadratic (w k) measurableSet_ball + (fun x => add_nonneg (norm_nonneg _) hη.le) (hzero k) hk + have hGm : AEStronglyMeasurable (fun x => G (v k x)) (μ.restrict (ball (p k) (S*r k))) := + (G.continuous.measurable.comp (hv k).measurable).aestronglyMeasurable + have hGb : ∀ᵐ x ∂μ.restrict (ball (p k) (S*r k)), 0≤G (v k x) ∧ G (v k x)≤‖G‖ := + Eventually.of_forall fun x => ⟨by simp only [G,smoothGradientTest_apply]; positivity, + le_trans (le_abs_self _) (G.norm_coe_le_norm _)⟩ + have hφm : AEStronglyMeasurable (fun x => φ (v k x)) (μ.restrict (ball (p k) (S*r k))) := + (φ.continuous.measurable.comp (hv k).measurable).aestronglyMeasurable + have hφb : ∀ᵐ x ∂μ.restrict (ball (p k) (S*r k)), 0≤φ (v k x) ∧ φ (v k x)≤‖φ‖ := + Eventually.of_forall fun x => ⟨hφ _, (le_abs_self _).trans (φ.norm_coe_le_norm _)⟩ + have hb := weighted_recovery_energy_error μ hX.quadratic (hmass k) (hr k).le (w k) + (norm_nonneg G) hη.le hGm hφm hGb hφb (ae_restrict_of_ae hfull) + have ht := hb.trans (add_le_add he.le hηδ) + simpa only [G,smoothGradientTest_apply,add_assoc,add_halves] using ht + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/WeightedSobolevIntegralLower.lean b/lean/OAI/Geometry/RCD/Sobolev/WeightedSobolevIntegralLower.lean new file mode 100644 index 0000000000000000000000000000000000000000..2c343fe93eab02e255a14409c087ae08a9175371 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/WeightedSobolevIntegralLower.lean @@ -0,0 +1,37 @@ +import OAI.Geometry.RCD.Coordinates.PositiveBilinearIntegralLower +import OAI.Geometry.RCD.Sobolev.SobolevWeakEnergyLower + +namespace OAI + +/-! # Integrated weighted energy lower semicontinuity for local Sobolev limits -/ + +open Set Filter MeasureTheory +open scoped Topology NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X Y : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) (Q : QuadraticCheegerEnergy μ) [MeasurableSpace Y] + +theorem weighted_sobolev_integral_lower + (ν : Measure Y) (u : ℕ → Y → SobolevSpace μ Q) (v : Y → SobolevSpace μ Q) + (hu : ∀ k, AEStronglyMeasurable (u k) ν) (hv : AEStronglyMeasurable v ν) + {C : ℝ} (hC : 0 ≤ C) (hb : ∀ k, ∀ᵐ t ∂ν, ‖u k t‖ ≤ C) + (hvb : ∀ᵐ t ∂ν, ‖v t‖ ≤ C) + (hc : ∀ᵐ t ∂ν, Tendsto (fun k => SobolevSpace.toLp μ Q (u k t)) atTop + (𝓝 (SobolevSpace.toLp μ Q (v t)))) + {η : X → ℝ} (hη : AEStronglyMeasurable η μ) {M : ℝ≥0} + (hM : ∀ᵐ x ∂μ, ‖η x‖ ≤ M) (hη0 : ∀ᵐ x ∂μ, 0 ≤ η x) + (θ : Y → ℝ) (hθ : Integrable θ ν) (hθ0 : ∀ᵐ t ∂ν, 0 ≤ θ t) + {A : ℝ} (he : Tendsto (fun k => ∫ t, θ t*weightedGamma μ Q η (u k t) (u k t) ∂ν) + atTop (𝓝 A)) : (∫ t, θ t*weightedGamma μ Q η (v t) (v t) ∂ν) ≤ A := by + let P := weightedGammaCLM μ Q hη hM + apply positive_bilinear_integral_lower P (weightedGamma_nonneg_of_weight μ Q hη0) + (weightedGamma_comm μ Q η) ν u v hu hv hC hb hvb _ θ hθ hθ0 he + filter_upwards [hc,ae_all_iff.mpr hb] with t ht hb + exact bounded_sobolev_functional_tendsto μ Q (fun k => u k t) (v t) hC hb ht (P.flip (v t)) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/WeightedTimeAverageEnergy.lean b/lean/OAI/Geometry/RCD/Sobolev/WeightedTimeAverageEnergy.lean new file mode 100644 index 0000000000000000000000000000000000000000..6bcb98e88b6da37da0a8f2fbe5f47f4308d35424 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/WeightedTimeAverageEnergy.lean @@ -0,0 +1,58 @@ +import OAI.Geometry.RCD.Coordinates.TimeIntervalAverage +import OAI.Geometry.RCD.Coordinates.IntervalVectorExtension +import OAI.Geometry.RCD.Sobolev.WeightedSobolevIntegralLower + +namespace OAI + +/-! # Time averaging preserves the actual weighted energy inequality -/ + +open Set Filter MeasureTheory +open scoped Topology NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) (Q : QuadraticCheegerEnergy μ) + +theorem weighted_time_average_energy {a b : ℝ} + (v : Ioo a b → SobolevSpace μ Q) + (hv : AEStronglyMeasurable v (volume.comap Subtype.val)) + {C : ℝ} (hC : 0 ≤ C) (hb : ∀ q, ‖v q‖ ≤ C) + (φ : X → ℝ) (hφ : AEStronglyMeasurable φ μ) {B : ℝ≥0} + (hB : ∀ᵐ x ∂μ, ‖φ x‖ ≤ B) (hφ0 : ∀ᵐ x ∂μ, 0 ≤ φ x) + (P : ℝ → ℝ) + (henergy : ∀ s t : ℝ, a < s → s < t → t < b → + (∫ q in Icc s t, intervalExtension (fun τ => weightedGamma μ Q φ (v τ) (v τ)) q) ≤ + 2*(P t-P s)) + {h t : ℝ} (hh : 0 < h) (ha : a < t-h) (hb' : t+h < b) : + weightedGamma μ Q φ (timeIntervalAverage (intervalVectorExtension v) h t) + (timeIntervalAverage (intervalVectorExtension v) h t) ≤ h⁻¹*(P (t+h)-P (t-h)) := by + let F := weightedGammaCLM μ Q hφ hB + let u := intervalVectorExtension v + have he (q : ℝ) : F (u q) (u q) = + intervalExtension (fun τ => weightedGamma μ Q φ (v τ) (v τ)) q := + bilinear_intervalVectorExtension F v q + have hsub : Icc (t-h) (t+h) ⊆ Ioo a b := + fun q hq => ⟨ha.trans_le hq.1,hq.2.trans_lt hb'⟩ + have hui : Integrable u := intervalVectorExtension_integrable v hv hb + have hei : IntegrableOn (fun q => F (u q) (u q)) (Icc (t-h) (t+h)) := by + exact ((interval_bilinear_energy_integrable F v hv hC hb).mono_set hsub).congr + (Eventually.of_forall fun q => (he q).symm) + have hj := positive_bilinear_timeIntervalAverage F + (weightedGamma_nonneg_of_weight μ Q hφ0) (weightedGamma_comm μ Q φ) + u hh t hui.integrableOn hei + have hbound := henergy (t-h) (t+h) ha (by linarith) hb' + calc + _ ≤ (2*h)⁻¹ * ∫ q in (t-h)..(t+h), F (u q) (u q) := hj + _ = (2*h)⁻¹ * ∫ q in Icc (t-h) (t+h), + intervalExtension (fun τ => weightedGamma μ Q φ (v τ) (v τ)) q := by + rw [intervalIntegral.integral_of_le (by linarith),← integral_Icc_eq_integral_Ioc] + simp_rw [he] + _ ≤ (2*h)⁻¹ * (2*(P (t+h)-P (t-h))) := + mul_le_mul_of_nonneg_left hbound (by positivity) + _ = _ := by field_simp + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/WeightedWeakCauchyEnergy.lean b/lean/OAI/Geometry/RCD/Sobolev/WeightedWeakCauchyEnergy.lean new file mode 100644 index 0000000000000000000000000000000000000000..10b33c465d6511e80dbb81790ecad8c39afbf959 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/WeightedWeakCauchyEnergy.lean @@ -0,0 +1,47 @@ +import OAI.Geometry.RCD.Sobolev.SobolevWeakEnergyLower + +namespace OAI + +/-! # A local energy Cauchy bound passes to the weak Sobolev limit -/ + +open Set Filter MeasureTheory +open scoped Topology NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) (Q : QuadraticCheegerEnergy μ) + +theorem weighted_energy_le_of_weak_cauchy + (u : ℕ → SobolevSpace μ Q) (v : SobolevSpace μ Q) + (hweak : ∀ ℓ : SobolevSpace μ Q →L[ℝ] ℝ, + Tendsto (fun k => ℓ (u k)) atTop (𝓝 (ℓ v))) + {η : X → ℝ} (hη : AEStronglyMeasurable η μ) {M : ℝ≥0} + (hM : ∀ᵐ x ∂μ, ‖η x‖ ≤ M) (hη0 : ∀ᵐ x ∂μ, 0 ≤ η x) + (i : ℕ) {A : ℝ} + (hA : ∀ᶠ j in atTop, weightedGamma μ Q η (u i-u j) (u i-u j) ≤ A) : + weightedGamma μ Q η (u i-v) (u i-v) ≤ A := by + let P := weightedGammaCLM μ Q hη hM + let f := u i-v + have hp : Tendsto (fun j => P (u i-u j) f) atTop (𝓝 (P f f)) := by + have hh : Tendsto (fun j => P (u i) f-P (u j) f) atTop + (𝓝 (P (u i) f-P v f)) := tendsto_const_nhds.sub (hweak (P.flip f)) + change Tendsto (fun j => P (u i-u j) f) atTop (𝓝 (P (u i-v) f)) + simpa only [map_sub,sub_apply] using hh + have hl : Tendsto (fun j => 2*P (u i-u j) f-P f f) atTop (𝓝 (P f f)) := by + simpa only [two_mul,add_sub_cancel_right] using (hp.const_mul 2).sub_const (P f f) + apply le_of_tendsto hl + filter_upwards [hA] with j hj + have hn : 0 ≤ P (u j-v) (u j-v) := weightedGamma_nonneg_of_weight μ Q hη0 _ + have hs : P (u i) v = P v (u i) := weightedGamma_comm μ Q η _ _ + have ht : P (u j) v = P v (u j) := weightedGamma_comm μ Q η _ _ + have hu : P (u i) (u j) = P (u j) (u i) := weightedGamma_comm μ Q η _ _ + change P (u i-u j) (u i-u j) ≤ A at hj + dsimp only [f] + simp only [map_sub,sub_apply] at hn hj ⊢ + linarith only [hn,hj,hs,ht,hu] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Sobolev/ZeroFractionCoercivity.lean b/lean/OAI/Geometry/RCD/Sobolev/ZeroFractionCoercivity.lean new file mode 100644 index 0000000000000000000000000000000000000000..66c25d03959051d820fa96dab57bbfc07fe2b6fe --- /dev/null +++ b/lean/OAI/Geometry/RCD/Sobolev/ZeroFractionCoercivity.lean @@ -0,0 +1,65 @@ +import OAI.Geometry.RCD.Sobolev.LocalZeroSetCoercivity + +namespace OAI + +/-! # Local coercivity with the exterior fraction furnished by boundary balls -/ + +open Set Metric MeasureTheory +noncomputable section +namespace RegularPointCoordinates + +private theorem square_mass_le_variance {X : Type*} [MeasurableSpace X] + (μ : Measure X) {Ω B : Set X} (hfin : μ Ω≠⊤) (hsub : B⊆Ω) + {A : ℝ} (hA : 0≤A) (hsize : μ.real Ω≤A*μ.real B) + (u : Lp ℝ 2 μ) (hz : u=ᵐ[μ.restrict B] 0) (c : ℝ) : + (∫ x in Ω, (u x)^2 ∂μ)≤(2+2*A)*(∫ x in Ω, (u x-c)^2 ∂μ) := by + let : IsFiniteMeasure (μ.restrict Ω) := ⟨by simpa only [Measure.restrict_apply_univ] using hfin.lt_top⟩ + have hu := (Lp.memLp u).restrict Ω + have hv : IntegrableOn (fun x => (u x-c)^2) Ω μ := (hu.sub (memLp_const c)).integrable_sq + have hc : c^2*μ.real B≤∫ x in Ω, (u x-c)^2 ∂μ := by + calc _ = ∫ x in B, (u x-c)^2 ∂μ := by + have he : (fun x => (u x-c)^2)=ᵐ[μ.restrict B] (fun _ => c^2) := + hz.mono fun x hx => by simp only [Pi.zero_apply] at hx; simp [hx] + rw [integral_congr_ae he] + simp [mul_comm] + _ ≤ _ := setIntegral_mono_set hv (Filter.Eventually.of_forall fun _ => sq_nonneg _) + (Filter.Eventually.of_forall hsub) + have hcm := mul_le_mul_of_nonneg_left hsize (sq_nonneg c) + have hcA := mul_le_mul_of_nonneg_left hc hA + have hp := integral_mono_ae hu.integrable_sq ((hv.const_mul 2).add (integrable_const (2*c^2))) + (Filter.Eventually.of_forall fun x => show (u x)^2≤2*(u x-c)^2+2*c^2 by + nlinarith [sq_nonneg (u x-2*c)]) + change (∫ x in Ω, (u x)^2 ∂μ)≤(∫ x in Ω, 2*(u x-c)^2+2*c^2 ∂μ) at hp + rw [integral_add (hv.const_mul 2) (integrable_const (2*c^2)),integral_const_mul, + integral_const,smul_eq_mul,Measure.real,Measure.restrict_apply_univ] at hp + simp only [Measure.real] at hcm hcA + nlinarith + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem NoncollapsedRCD.local_zero_fraction_coercivity {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (hn : 2≤n) {κ A : ℝ} (hκ : 0≤κ) (hA : 0≤A) : + ∃ C : ℝ, 0 -dist p x := by + have heq := localGamma_eq_of_constant_difference μ hQ (ball p r) + (inwardSobolev μ hQ p R) (inwardSobolev μ hQ p r) + (inwardSobolev μ hQ p r) (R - r) (inwardSobolev_constant_difference μ hQ p hrR) + have hs := inwardSobolev_eikonal_mono μ hQ p hrR heik + have hq := ae_restrict_of_ae_restrict_of_subset (ball_subset_ball hrR) + (positiveSquaredDistance_gamma μ hQ hR χ (inwardSobolev μ hQ p r)) + filter_upwards [heq, hs, hq] with x hc he hd + rw [hd, hc, he, mul_one] + +/-- The error is an actual square-integrable gradient pairing. Its full +L2 mass is bounded by the same source energy, even across the transport +cutoff. The radial identity is asserted only inside that cutoff. -/ +theorem DyadicDistanceReplacements.radial_transport_defect + {n : ℕ} {κ r0 B J C : ℝ} {p : X} + {S : DyadicDistanceSources μ hQ n κ p r0} + (T : DyadicDistanceReplacements μ hQ S B J C) (i : ℕ) + {R : ℝ} (_hR : 0 < R) (hroom : 3 * R ≤ 4 * distanceSourceRadius r0 i) : + ∃ g : X → ℝ, MemLp g 2 μ ∧ + (localGamma μ hQ (T.replacement i) (inwardSobolev μ hQ p (3 * R)) =ᵐ[ + μ.restrict (ball p (3 * R))] fun x => g x - dist p x) ∧ + (∫ x in ball p (4 * R), (g x) ^ 2 ∂μ) ≤ + (S.source i).real (ball p (distanceSourceRadius r0 i)) * + (B * (distanceSourceRadius r0 i) ^ 2) := by + let s := distanceSourceRadius r0 i + let q := positiveSquaredDistance μ hQ + (by have := distanceSourceRadius_pos S.radius_pos i; positivity : 0 ≤ 4 * s) (T.cutoff i) + let a := inwardSobolev μ hQ p (3 * R) + let g : X → ℝ := fun x => -localGamma μ hQ (q - T.replacement i) a x + have hs : 0 < s := distanceSourceRadius_pos S.radius_pos i + have ha : ∀ᵐ x ∂μ, localGamma μ hQ a a x ≤ 1 := by + have hl := SobolevSpace.ofLipschitzCompact_minimalSlope_le_lip μ hQ + (inwardDistance_lipschitz p (3 * R)) (inwardDistance_compact p (3 * R)) + have hn := (Lp.coeFn_nonneg _).mpr (SobolevSpace.minimalSlope_nonneg μ hQ a) + filter_upwards [hl, hn, localGamma_self μ hQ a] with x hl hn he + change SobolevSpace.minimalSlope μ hQ a x ≤ (1 : ℝ≥0) at hl + change 0 ≤ SobolevSpace.minimalSlope μ hQ a x at hn + rw [he] + norm_num only [NNReal.coe_one] at hl + nlinarith + have hg : MemLp g 2 μ := by + have hmem := localGamma_memLp_two_of_bound μ hQ Set.univ (q - T.replacement i) a + (ae_restrict_of_ae ha) + rw [Measure.restrict_univ] at hmem + simpa only [g, neg_one_mul] using hmem.const_mul (-1) + have hq := positiveSquaredDistance_inward_smaller μ hQ + (by positivity : 0 ≤ 4 * s) hroom (T.cutoff i) (S.eikonal i) + refine ⟨g, hg, ?_, ?_⟩ + · filter_upwards [hq, ae_restrict_of_ae (localGamma_sub_left μ hQ q (T.replacement i) a)] + with x hq hs + change localGamma μ hQ (T.replacement i) a x = _ + change localGamma μ hQ q a x = -dist p x at hq + dsimp only [g] + linarith + · have hsq : ∀ᵐ x ∂μ, (g x) ^ 2 ≤ localGamma μ hQ (q - T.replacement i) (q - T.replacement i) x := by + filter_upwards [localGamma_sq_le μ hQ (q - T.replacement i) a, ha, + localGamma_self μ hQ (q - T.replacement i)] with x hx ha he + dsimp only [g] + rw [neg_sq] + exact hx.trans (by rw [he]; nlinarith [sq_nonneg (SobolevSpace.minimalSlope μ hQ (q - T.replacement i) x)]) + have hi := integral_mono_ae (hg.restrict (ball p (4 * R))).integrable_sq + (localGamma_memL1 μ hQ (q - T.replacement i) (q - T.replacement i)).integrableOn + (ae_restrict_of_ae hsq) + exact hi.trans (T.local_energy_error μ hQ i (ball p (4 * R))) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/AmbientOptimalDualSaturation.lean b/lean/OAI/Geometry/RCD/Transport/AmbientOptimalDualSaturation.lean new file mode 100644 index 0000000000000000000000000000000000000000..aea1ce71a1343a9c0e66f68bb93e64c3ac50ab6f --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/AmbientOptimalDualSaturation.lean @@ -0,0 +1,43 @@ +import OAI.Geometry.RCD.Transport.OptimalDualSaturation +import OAI.Geometry.RCD.Transport.CompactCouplingAmbientCost + +namespace OAI + +/-! # The same dual pair calibrates every ambient optimal coupling -/ + +open Set Filter MeasureTheory +open scoped ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [SecondCountableTopology X] {S T : Set X} [CompactSpace S] [CompactSpace T] + +theorem ambient_optimal_dual_saturation (hS : MeasurableSet S) (hT : MeasurableSet T) + (μ : Measure S) (ν : Measure T) [IsProbabilityMeasure μ] [IsProbabilityMeasure ν] + (Q : Measure (S × T)) [IsProbabilityMeasure Q] + (hQl : Q.map Prod.fst=μ) (hQr : Q.map Prod.snd=ν) + (f : C(S,ℝ)) (g : C(T,ℝ)) (c : ℝ) + (hdual : ∀ a b, b ∈ ν.support → f a+g b+c ≤ dist (a : X) (b : X)^2) + (heq : ∀ᵐ z ∂Q, f z.1+g z.2+c=dist (z.1 : X) (z.2 : X)^2) + (P : Measure (X × X)) (hP : IsOptimalCoupling (μ.map Subtype.val) (ν.map Subtype.val) P) : + ∃ L : Measure (S × T), L.map (Prod.map Subtype.val Subtype.val)=P ∧ + L.map Prod.fst=μ ∧ L.map Prod.snd=ν ∧ + ∀ᵐ z ∂L, f z.1+g z.2+c=dist (z.1 : X) (z.2 : X)^2 := by + let cost : C(S × T,ℝ) := ⟨fun z => dist (z.1 : X) (z.2 : X)^2,by fun_prop⟩ + have hmin := compact_dual_cost_minimizer μ ν Q hQl hQr f g cost c hdual heq + have hQ := compact_coupling_ambient_optimal hS hT μ ν Q hQl hQr hmin + obtain ⟨L,hL,hLl,hLr⟩ := coupling_lift_subtypes hS hT μ ν P hP.1 hP.2.1 + let : IsProbabilityMeasure (L.map Prod.fst) := by rw [hLl]; infer_instance + let : IsProbabilityMeasure L := Measure.isProbabilityMeasure_of_map measurable_fst.aemeasurable + have hle := hP.2.2 _ hQ.1 hQ.2.1 + rw [← hL,compact_coupling_transportCost L,compact_coupling_transportCost Q] at hle + have hcost : (∫ z, cost z ∂L) ≤ ∫ z, cost z ∂Q := + (ENNReal.ofReal_le_ofReal_iff (integral_nonneg fun _ => sq_nonneg _)).mp hle + exact ⟨L,hL,hLl,hLr,compact_dual_saturation_of_cost_le μ ν Q L hQl hQr hLl hLr + f g cost c hdual heq hcost⟩ + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/AnnularTransportComparison.lean b/lean/OAI/Geometry/RCD/Transport/AnnularTransportComparison.lean new file mode 100644 index 0000000000000000000000000000000000000000..fedafb128490a76e970096b794a9dc4a60db68ef --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/AnnularTransportComparison.lean @@ -0,0 +1,99 @@ +import OAI.Geometry.RCD.Transport.HyperbolicDistortion + +namespace OAI + +/-! # Annular volume contraction from the actual CD transport inequality + +The initial endpoint is a small ball about the pole; the final endpoint +is an annulus. Retaining the radial distortion, rather than its coarse +exponential lower bound, is the step needed for model volume comparison. +-/ + +open Set Metric MeasureTheory +open scoped ENNReal + +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + +theorem FullCD.annular_contraction + (μ : Measure X) [SigmaFinite μ] {K : ℝ} {n : ℕ} (hcd : FullCD μ K n) + (hpos : ∀ x : X, ∀ r : ℝ, 0 < r → 0 < μ (ball x r)) + (hfin : ∀ s : Set X, Bornology.IsBounded s → μ s < ∞) + (hn : 2 ≤ n) (hK : K ≤ 0) (p : X) {r R δ t : ℝ} + (_hR : 0 < R) (hδ : 0 < δ) (ht : 0 < t) (ht1 : t < 1) : + tau K n t (R + δ) ^ n * μ (ball p R \ closedBall p r) ≤ + μ (ball p (t * R + (1 + t) * δ) \ closedBall p (t * r - (1 - t) * δ)) := by + let A := ball p R \ closedBall p r + let B := ball p (t * R + (1 + t) * δ) \ closedBall p (t * r - (1 - t) * δ) + have hA : MeasurableSet A := measurableSet_ball.diff measurableSet_closedBall + have hB : MeasurableSet B := measurableSet_ball.diff measurableSet_closedBall + by_cases hA0 : μ A = 0 + · change tau K n t (R + δ) ^ n * μ A ≤ μ B + simp only [hA0, mul_zero, zero_le] + have hAtop : μ A ≠ ∞ := (hfin A (isBounded_ball.subset sdiff_subset)).ne + have hsmall0 := (hpos p δ hδ).ne' + have hsmalltop := (hfin (ball p δ) isBounded_ball).ne + have hn1 : (1 : ℝ) < n := by exact_mod_cast (show 1 < n by omega) + have hn0 : (0 : ℝ) < n := zero_lt_one.trans hn1 + let T : Time := ⟨t, ht.le, ht1.le⟩ + have hroot := hcd.support_volume_bound μ K n (ball p δ) A B + measurableSet_ball hA hB hsmall0 hsmalltop hA0 hAtop + (uniformOn_finiteSecondMoment μ (ball p δ) measurableSet_ball hsmall0 hsmalltop + p δ (fun _ hx => hx.le)) + (uniformOn_finiteSecondMoment μ A hA hA0 hAtop p R (fun _ hx => hx.1.le)) + n le_rfl hn1 T (tau K n t (R + δ)) + (by + intro x hx y hy + apply tau_antitone_distance_nonpos_curvature hK hn1 ht ht1 dist_nonneg + have hxy := dist_triangle x p y + rw [dist_comm p y] at hxy + change dist x p < δ at hx + have hyR : dist y p < R := hy.1 + linarith only [hxy, hx, hyR]) + (by + intro γ hγ h₀ h₁ + have hfirst : dist (γ T) (γ 0) = t * dist (γ 0) (γ 1) := by + rw [hγ] + change |t - 0| * dist (γ 0) (γ 1) = _ + rw [sub_zero, abs_of_nonneg ht.le] + have hlast : dist (γ 1) (γ T) = (1 - t) * dist (γ 0) (γ 1) := by + rw [hγ] + change |1 - t| * dist (γ 0) (γ 1) = _ + rw [abs_of_nonneg (sub_nonneg.mpr ht1.le)] + have hstart : dist (γ 0) p < δ := h₀ + have hend : dist (γ 1) p < R := h₁.1 + have hinner : r < dist (γ 1) p := lt_of_not_ge h₁.2 + have hends := dist_triangle (γ 0) p (γ 1) + rw [dist_comm p (γ 1)] at hends + have hupper := dist_triangle (γ T) (γ 0) p + rw [hfirst] at hupper + have hlower := dist_triangle (γ 1) (γ T) p + rw [hlast] at hlower + change dist (γ T) p < t * R + (1 + t) * δ ∧ + ¬ dist (γ T) p ≤ t * r - (1 - t) * δ + constructor + · nlinarith only [hupper, hends, hstart, hend, ht, ht1] + · nlinarith only [hlower, hends, hstart, hinner, ht, ht1]) + have hpow := ENNReal.rpow_le_rpow hroot hn0.le + rw [ENNReal.mul_rpow_of_nonneg _ _ hn0.le, ← ENNReal.rpow_mul, + ← ENNReal.rpow_mul, one_div_mul_cancel hn0.ne', ENNReal.rpow_one, + ENNReal.rpow_one, ENNReal.rpow_natCast] at hpow + exact hpow + +theorem FullCD.ball_contraction_with_center_error + (μ : Measure X) [SigmaFinite μ] {K : ℝ} {n : ℕ} (hcd : FullCD μ K n) + (hpos : ∀ x : X, ∀ r : ℝ, 0 < r → 0 < μ (ball x r)) + (hfin : ∀ s : Set X, Bornology.IsBounded s → μ s < ∞) + (hn : 2 ≤ n) (hK : K ≤ 0) (p : X) {R δ t : ℝ} + (hR : 0 < R) (hδ : 0 < δ) (ht : 0 < t) (ht1 : t < 1) : + tau K n t (R + δ) ^ n * μ (ball p R) ≤ + μ (ball p (t * R + (1 + t) * δ)) := by + have hinner : t * (-1) - (1 - t) * δ < 0 := by nlinarith + simpa only [closedBall_eq_empty.mpr (by norm_num : (-1 : ℝ) < 0), + closedBall_eq_empty.mpr hinner, sdiff_empty] using + hcd.annular_contraction μ hpos hfin hn hK p (r := -1) hR hδ ht ht1 + +end RegularPointCoordinates + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/AsymmetricMidpoint.lean b/lean/OAI/Geometry/RCD/Transport/AsymmetricMidpoint.lean new file mode 100644 index 0000000000000000000000000000000000000000..73bb76eaa166a81a5b7416258c4e490403da0ced --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/AsymmetricMidpoint.lean @@ -0,0 +1,124 @@ +import OAI.Geometry.RCD.Transport.HyperbolicDistortion +import OAI.Analysis.RCDHeat.ExistingAnalytic + +namespace OAI + +/-! # Midpoint transport with separately controlled endpoint densities + +The distance-Laplacian construction needs concentration of one endpoint +at a pole. Equal endpoint bounds lose all control in that limit. Here the +actual CD inequality retains the two inverse density powers separately. +-/ + +open Set Filter Metric MeasureTheory +open scoped ENNReal + +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem cd_midpoint_renyi_lower_asymmetric (μ ν₀ ν₁ : Measure X) [SigmaFinite μ] + (π : Measure C(Time, X)) [IsProbabilityMeasure π] + (hp : IsOptimalCoupling ν₀ ν₁ (π.map (fun γ => (γ 0, γ 1)))) + {C₀ C₁ : ℝ≥0∞} (h0 : ν₀ ≤ C₀ • μ) (h1 : ν₁ ≤ C₁ • μ) + (K N D : ℝ) (hN : 1 < N) + (hD : ∀ᵐ γ ∂π, dist (γ 0) (γ 1) ≤ D) + (hR : (∫⁻ γ, tau K N (1 - (1 / 2 : ℝ)) (dist (γ 0) (γ 1)) * + (ν₀.rnDeriv μ (γ 0)) ^ (-(1 / N)) + + tau K N (1 / 2) (dist (γ 0) (γ 1)) * + (ν₁.rnDeriv μ (γ 1)) ^ (-(1 / N)) ∂π) ≤ + renyiIntegral μ (π.map (fun γ => γ midpointTime)) N) : + midpointFloor K N D * (C₀ ^ (-(1 / N)) + C₁ ^ (-(1 / N))) ≤ + renyiIntegral μ (π.map (fun γ => γ midpointTime)) N := by + have hend := optimalPlan_endpoints ν₀ ν₁ π hp + have he0 : ν₀ ≪ μ := h0.absolutelyContinuous.trans Measure.smul_absolutelyContinuous + have he1 : ν₁ ≪ μ := h1.absolutelyContinuous.trans Measure.smul_absolutelyContinuous + have hd0 : ∀ᵐ γ ∂π, ν₀.rnDeriv μ (γ 0) ≤ C₀ := by + apply ae_of_ae_map (measurable_path_eval (X := X) 0).aemeasurable + (p := fun x => ν₀.rnDeriv μ x ≤ C₀) + rw [hend.1] + exact he0.ae_le (rnDeriv_le_const_of_le_smul μ ν₀ h0) + have hd1 : ∀ᵐ γ ∂π, ν₁.rnDeriv μ (γ 1) ≤ C₁ := by + apply ae_of_ae_map (measurable_path_eval (X := X) 1).aemeasurable + (p := fun x => ν₁.rnDeriv μ x ≤ C₁) + rw [hend.2] + exact he1.ae_le (rnDeriv_le_const_of_le_smul μ ν₁ h1) + have hβ : 0 ≤ 1 / N := (one_div_pos.mpr (zero_lt_one.trans hN)).le + calc + _ = ∫⁻ _ : C(Time, X), midpointFloor K N D * C₀ ^ (-(1 / N)) + + midpointFloor K N D * C₁ ^ (-(1 / N)) ∂π := by simp [mul_add] + _ ≤ _ := (lintegral_mono_ae (by + filter_upwards [hd0, hd1, hD] with γ hγ0 hγ1 hγD + have hτ := midpointFloor_le_tau K N D (dist (γ 0) (γ 1)) hN dist_nonneg hγD + have hi0 : C₀ ^ (-(1 / N)) ≤ (ν₀.rnDeriv μ (γ 0)) ^ (-(1 / N)) := by + rw [ENNReal.rpow_neg, ENNReal.rpow_neg] + exact ENNReal.inv_le_inv.mpr (ENNReal.rpow_le_rpow hγ0 hβ) + have hi1 : C₁ ^ (-(1 / N)) ≤ (ν₁.rnDeriv μ (γ 1)) ^ (-(1 / N)) := by + rw [ENNReal.rpow_neg, ENNReal.rpow_neg] + exact ENNReal.inv_le_inv.mpr (ENNReal.rpow_le_rpow hγ1 hβ) + norm_num only [show (1 - (1 / 2 : ℝ)) = 1 / 2 by norm_num] + exact add_le_add (mul_le_mul' hτ hi0) (mul_le_mul' hτ hi1))).trans hR + +theorem FullCD.exists_midpoint_ac_support_bound_asymmetric (μ : Measure X) [SigmaFinite μ] + {K : ℝ} {n : ℕ} (hcd : FullCD μ K n) (ν₀ ν₁ : Measure X) + [IsProbabilityMeasure ν₀] [IsProbabilityMeasure ν₁] + {C₀ C₁ : ℝ≥0∞} (h0 : ν₀ ≤ C₀ • μ) (h1 : ν₁ ≤ C₁ • μ) + (hm0 : FiniteSecondMoment ν₀) (hm1 : FiniteSecondMoment ν₁) + (s₀ s₁ : Set X) (hs0 : ∀ᵐ x ∂ν₀, x ∈ s₀) (hs1 : ∀ᵐ x ∂ν₁, x ∈ s₁) + (hn : 2 ≤ n) (D : ℝ) (hD : ∀ x ∈ s₀, ∀ y ∈ s₁, dist x y ≤ D) : + ∃ π : Measure C(Time, X), IsProbabilityMeasure π ∧ + (∀ᵐ γ ∂π, IsGeodesic γ) ∧ + IsOptimalCoupling ν₀ ν₁ (π.map (fun γ => (γ 0, γ 1))) ∧ + (midpointFloor K n D * (C₀ ^ (-(1 / (n : ℝ))) + C₁ ^ (-(1 / (n : ℝ))))) ^ n ≤ + μ {x | (π.map (fun γ => γ midpointTime)).rnDeriv μ x ≠ 0} := by + have he0 : ν₀ ≪ μ := h0.absolutelyContinuous.trans Measure.smul_absolutelyContinuous + have he1 : ν₁ ≪ μ := h1.absolutelyContinuous.trans Measure.smul_absolutelyContinuous + obtain ⟨π, hπ, hg, hp, hR⟩ := hcd ν₀ ν₁ inferInstance inferInstance he0 he1 hm0 hm1 + let := hπ + have hend := optimalPlan_endpoints ν₀ ν₁ π hp + have ha0 : ∀ᵐ γ ∂π, γ 0 ∈ s₀ := by + apply ae_of_ae_map (measurable_path_eval (X := X) 0).aemeasurable (p := fun x => x ∈ s₀) + rwa [hend.1] + have ha1 : ∀ᵐ γ ∂π, γ 1 ∈ s₁ := by + apply ae_of_ae_map (measurable_path_eval (X := X) 1).aemeasurable (p := fun x => x ∈ s₁) + rwa [hend.2] + have hπD : ∀ᵐ γ ∂π, dist (γ 0) (γ 1) ≤ D := by + filter_upwards [ha0, ha1] with γ hγ0 hγ1 + exact hD _ hγ0 _ hγ1 + have hn1 : (1 : ℝ) < n := by exact_mod_cast (show 1 < n by omega) + have hn0 : (0 : ℝ) < n := zero_lt_one.trans hn1 + let : IsProbabilityMeasure (π.map (fun γ => γ midpointTime)) := inferInstance + have hh := (cd_midpoint_renyi_lower_asymmetric μ ν₀ ν₁ π hp h0 h1 K n D hn1 hπD + (hR n le_rfl midpointTime)).trans + (renyiIntegral_le_ac_support_volume μ (π.map (fun γ => γ midpointTime)) n hn1) + have hpow := ENNReal.rpow_le_rpow hh hn0.le + rw [← ENNReal.rpow_mul, one_div_mul_cancel hn0.ne', ENNReal.rpow_one, + ENNReal.rpow_natCast] at hpow + exact ⟨π, hπ, hg, hp, hpow⟩ + + +/-- The volume factor from the two separately bounded endpoint densities. -/ +noncomputable def midpointSupportFactor (K : ℝ) (n : ℕ) (D : ℝ) + (C₀ C₁ : ℝ≥0∞) : ℝ≥0∞ := + (midpointFloor K n D * (C₀ ^ (-(1 / (n : ℝ))) + C₁ ^ (-(1 / (n : ℝ))))) ^ n + +theorem midpointSupportFactor_scale (K : ℝ) {n : ℕ} (hn : 0 < n) (D : ℝ) + {C₀ C₁ m : ℝ≥0∞} (hC₀ : C₀ ≠ ∞) (hC₁ : C₁ ≠ ∞) (hm : m ≠ 0) : + midpointSupportFactor K n D (C₀ * m⁻¹) (C₁ * m⁻¹) = + midpointSupportFactor K n D C₀ C₁ * m := by + have hi : m⁻¹ ≠ ∞ := ENNReal.inv_ne_top.mpr hm + have hp : (m⁻¹) ^ (-(1 / (n : ℝ))) = m ^ (1 / (n : ℝ)) := by + rw [ENNReal.inv_rpow, ENNReal.rpow_neg, inv_inv] + unfold midpointSupportFactor + rw [ENNReal.mul_rpow_of_ne_top hC₀ hi, ENNReal.mul_rpow_of_ne_top hC₁ hi, hp, + ← add_mul, ← mul_assoc, mul_pow] + have hn0 : (n : ℝ) ≠ 0 := by exact_mod_cast hn.ne' + have he : (m ^ (1 / (n : ℝ))) ^ n = m := by + rw [← ENNReal.rpow_natCast, ← ENNReal.rpow_mul, one_div_mul_cancel hn0, + ENNReal.rpow_one] + rw [he] + +end RegularPointCoordinates + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/AsymmetricMidpointCapacity.lean b/lean/OAI/Geometry/RCD/Transport/AsymmetricMidpointCapacity.lean new file mode 100644 index 0000000000000000000000000000000000000000..12749aafaf6303a8356ee38181e41c2f15e472b8 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/AsymmetricMidpointCapacity.lean @@ -0,0 +1,98 @@ +import OAI.Geometry.RCD.Transport.AsymmetricMidpointCompression +import OAI.Geometry.RCD.Coordinates.Proper + +namespace OAI + +/-! # A midpoint density bound independent of the concentrating endpoint + +The inverse support factor is finite for finite positive endpoint bounds. +Its one-sided estimate retains just the initial density. This is the +uniform bound used before passing the other endpoint to a Dirac mass. +-/ + +open Set Filter Metric MeasureTheory +open scoped ENNReal + +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem midpointSupportFactor_pos (K : ℝ) {n : ℕ} (hn : 0 < n) (D : ℝ) + {C₀ C₁ : ℝ≥0∞} (hC₀ : C₀ ≠ ∞) : 0 < midpointSupportFactor K n D C₀ C₁ := by + have hn0 : (0 : ℝ) < n := by exact_mod_cast hn + have hp : 0 < C₀ ^ (-(1 / (n : ℝ))) := by + rw [ENNReal.rpow_neg] + exact ENNReal.inv_pos.mpr (ENNReal.rpow_ne_top_of_nonneg (by positivity) hC₀) + unfold midpointSupportFactor + apply pos_iff_ne_zero.mpr + exact pow_ne_zero _ (mul_ne_zero (midpointFloor_pos K n D).ne' + (lt_of_lt_of_le hp (le_add_right le_rfl)).ne') + +theorem midpointSupportFactor_ne_top (K : ℝ) {n : ℕ} (hn : 0 < n) (D : ℝ) + {C₀ C₁ : ℝ≥0∞} (hC₀ : C₀ ≠ 0) (hC₁ : C₁ ≠ 0) : + midpointSupportFactor K n D C₀ C₁ ≠ ∞ := by + have hn0 : (0 : ℝ) < n := by exact_mod_cast hn + have hf (C : ℝ≥0∞) (hC : C ≠ 0) : C ^ (-(1 / (n : ℝ))) ≠ ∞ := by + rw [ENNReal.rpow_neg] + apply ENNReal.inv_ne_top.mpr + exact (ENNReal.rpow_pos_of_nonneg (pos_iff_ne_zero.mpr hC) (by positivity)).ne' + exact ENNReal.pow_ne_top + (ENNReal.mul_ne_top (midpointFloor_ne_top K n D) + (ENNReal.add_ne_top.mpr ⟨hf C₀ hC₀, hf C₁ hC₁⟩)) + +theorem midpointSupportFactor_inv_le (K : ℝ) {n : ℕ} (hn : 0 < n) (D : ℝ) + (C₀ C₁ : ℝ≥0∞) : + (midpointSupportFactor K n D C₀ C₁)⁻¹ ≤ + C₀ / (midpointFloor K n D) ^ n := by + have hn0 : (n : ℝ) ≠ 0 := by exact_mod_cast hn.ne' + have hle : (midpointFloor K n D) ^ n * C₀⁻¹ ≤ + midpointSupportFactor K n D C₀ C₁ := by + have hbase : midpointFloor K n D * C₀ ^ (-(1 / (n : ℝ))) ≤ + midpointFloor K n D * (C₀ ^ (-(1 / (n : ℝ))) + C₁ ^ (-(1 / (n : ℝ)))) := + mul_le_mul_right (le_add_right le_rfl) _ + have h := pow_le_pow_left' hbase n + have he : (C₀ ^ (-(1 / (n : ℝ)))) ^ n = C₀⁻¹ := by + rw [← ENNReal.rpow_natCast, ← ENNReal.rpow_mul, + neg_mul, one_div_mul_cancel hn0, ENNReal.rpow_neg_one] + rw [mul_pow, he] at h + exact h + have hh := ENNReal.inv_le_inv.mpr hle + have hf0 : (midpointFloor K n D) ^ n ≠ 0 := + pow_ne_zero _ (midpointFloor_pos K n D).ne' + have hft : (midpointFloor K n D) ^ n ≠ ∞ := + ENNReal.pow_ne_top (midpointFloor_ne_top K n D) + rw [ENNReal.mul_inv (Or.inl hf0) (Or.inl hft), inv_inv] at hh + simpa only [div_eq_mul_inv, mul_comm] using hh + +variable [ProperSpace X] + +theorem NoncollapsedRCD.exists_asymmetric_midpoint {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (hn : 2 ≤ n) + (ν₀ ν₁ : Measure X) [IsProbabilityMeasure ν₀] [IsProbabilityMeasure ν₁] + {C₀ C₁ : ℝ≥0∞} (hC₀ : C₀ ≠ ∞) (hC₁ : C₁ ≠ ∞) + (h0 : ν₀ ≤ C₀ • hausdorff n X) (h1 : ν₁ ≤ C₁ • hausdorff n X) + (p : X) {R : ℝ} (hR : 0 ≤ R) + (hs0 : ∀ᵐ x ∂ν₀, dist x p ≤ R) (hs1 : ∀ᵐ x ∂ν₁, dist x p ≤ R) : + ∃ π : Measure C(Time, X), IsProbabilityMeasure π ∧ + (∀ᵐ γ ∂π, IsGeodesic γ) ∧ + IsOptimalCoupling ν₀ ν₁ (π.map (fun γ => (γ 0, γ 1))) ∧ + π.map (fun γ => γ midpointTime) ≤ + (midpointSupportFactor K n (2 * R) C₀ C₁)⁻¹ • hausdorff n X := by + let := hX.separable + let := locallyFinite_of_finiteOnBounded (hausdorff n X) hX.finiteOnBounded + let : IsFiniteMeasure ((hausdorff n X).restrict (closedBall p (3 * R))) := + ⟨by simpa using hX.finiteOnBounded (closedBall p (3 * R)) isBounded_closedBall⟩ + have hz0 := probability_capacity_ne_zero (hausdorff n X) ν₀ h0 + have hz1 := probability_capacity_ne_zero (hausdorff n X) ν₁ h1 + have hn0 : 0 < n := by omega + exact hX.cd.exists_compressed_midpoint_asymmetric (hausdorff n X) K n ν₀ ν₁ + hC₀ hC₁ + (ENNReal.inv_ne_top.mpr (midpointSupportFactor_pos K hn0 (2 * R) hC₀).ne') + (ENNReal.inv_ne_zero.mpr (midpointSupportFactor_ne_top K hn0 (2 * R) hz0 hz1)) + h0 h1 (finiteSecondMoment_of_bounded ν₀ p hs0) (finiteSecondMoment_of_bounded ν₁ p hs1) + p hR hs0 hs1 hn (by rw [inv_inv]) + +end RegularPointCoordinates + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/AsymmetricMidpointCompression.lean b/lean/OAI/Geometry/RCD/Transport/AsymmetricMidpointCompression.lean new file mode 100644 index 0000000000000000000000000000000000000000..acc64daf868cf64dbf09a6aae272475ce1899e3d --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/AsymmetricMidpointCompression.lean @@ -0,0 +1,250 @@ +import OAI.Geometry.RCD.Transport.AsymmetricMidpointReplacement + +namespace OAI + +/-! # An actual compressed midpoint with unequal endpoint bounds + +Minimizing excess mass and replacing its saturated region turns the CD +support estimate into a density bound. Separate endpoint bounds allow +one marginal to concentrate while retaining the contribution of the other. +-/ + +open Set Filter Metric MeasureTheory TopologicalSpace +open scoped ENNReal + +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem FullCD.improve_localized_saturation_asymmetric + (μ : Measure X) [SigmaFinite μ] + (W : Set X) (hW : MeasurableSet W) [IsFiniteMeasure (μ.restrict W)] + (K : ℝ) (n : ℕ) (hcd : FullCD μ K n) (ν₀ ν₁ : Measure X) + [IsProbabilityMeasure ν₀] [IsProbabilityMeasure ν₁] + {C₀ C₁ C : ℝ≥0∞} (hC₀ : C₀ ≠ ∞) (hC₁ : C₁ ≠ ∞) (hC : C ≠ ∞) (hCpos : C ≠ 0) + (h0 : ν₀ ≤ C₀ • μ) (h1 : ν₁ ≤ C₁ • μ) + (hm0 : FiniteSecondMoment ν₀) (hm1 : FiniteSecondMoment ν₁) + (s₀ s₁ : Set X) (hs0 : ∀ᵐ x ∂ν₀, x ∈ s₀) (hs1 : ∀ᵐ x ∂ν₁, x ∈ s₁) + (hn : 2 ≤ n) (D : ℝ) + (hD : ∀ x ∈ s₀, ∀ y ∈ s₁, dist x y ≤ D) + (hsupport : ∀ (q : Measure C(Time, X)), IsProbabilityMeasure q → + (∀ᵐ γ ∂q, IsGeodesic γ) → + IsOptimalCoupling ν₀ ν₁ (q.map (fun γ => (γ 0, γ 1))) → + ∀ᵐ x ∂q.map (fun γ => γ midpointTime), x ∈ W) + (hfill : C⁻¹ ≤ midpointSupportFactor K n D C₀ C₁) + (π : Measure C(Time, X)) [IsProbabilityMeasure π] + (hg : ∀ᵐ γ ∂π, IsGeodesic γ) + (hp : IsOptimalCoupling ν₀ ν₁ (π.map (fun γ => (γ 0, γ 1)))) + (hpos : transportExcessMass (μ.restrict W) (π.map (fun γ => γ midpointTime)) C ≠ 0) + (hmin : ∀ (π' : Measure C(Time, X)), IsProbabilityMeasure π' → + (∀ᵐ γ ∂π', IsGeodesic γ) → + IsOptimalCoupling ν₀ ν₁ (π'.map (fun γ => (γ 0, γ 1))) → + transportExcessMass (μ.restrict W) (π.map (fun γ => γ midpointTime)) C ≤ + transportExcessMass (μ.restrict W) (π'.map (fun γ => γ midpointTime)) C) : + ∃ π' : Measure C(Time, X), IsProbabilityMeasure π' ∧ + (∀ᵐ γ ∂π', IsGeodesic γ) ∧ + IsOptimalCoupling ν₀ ν₁ (π'.map (fun γ => (γ 0, γ 1))) ∧ + transportExcessMass (μ.restrict W) (π'.map (fun γ => γ midpointTime)) C = + transportExcessMass (μ.restrict W) (π.map (fun γ => γ midpointTime)) C ∧ + (μ.restrict W) {x | C < (π.map (fun γ => γ midpointTime)).rnDeriv (μ.restrict W) x} + + transportExcessMass (μ.restrict W) (π.map (fun γ => γ midpointTime)) C / 2 * C⁻¹ < + (μ.restrict W) {x | C < (π'.map (fun γ => γ midpointTime)).rnDeriv (μ.restrict W) x} := by + let ν := π.map (fun γ => γ midpointTime) + have hvprob : IsProbabilityMeasure ν := + inferInstance + let e := transportExcessMass (μ.restrict W) ν C + let v := (μ.restrict W) {x | C < ν.rnDeriv (μ.restrict W) x} + have hetop : e ≠ ∞ := ne_top_of_le_ne_top (measure_ne_top ν univ) + (transportExcessMass_le (μ.restrict W) ν C) + obtain ⟨s, hs, hμs, hνs⟩ := (Measure.mutuallySingular_singularPart ν (μ.restrict W)).symm + have hthreshold : e / 2 + C * v < ν (s ∪ {x | C < ν.rnDeriv (μ.restrict W) x}) := by + rw [positive_region_mass (μ.restrict W) ν hC hs hμs hνs] + exact ENNReal.add_lt_add_right + (ENNReal.mul_ne_top hC (measure_ne_top (μ.restrict W) _)) (ENNReal.half_lt_self hpos hetop) + obtain ⟨δ, hδ0, hδtop, hδmass⟩ := + exists_buffer_positive_region (μ.restrict W) ν hC s hthreshold + let B := s ∪ {x | C + δ < ν.rnDeriv (μ.restrict W) x} + have hB : MeasurableSet B := hs.union + (measurableSet_lt measurable_const (ν.measurable_rnDeriv (μ.restrict W))) + have hB0 : ν B ≠ 0 := (lt_of_le_of_lt zero_le hδmass).ne' + let a := δ / (C + δ) + have ha : a ≤ 1 := ENNReal.div_le_of_le_mul + (by simp) + have ha0 : 0 < a := ENNReal.div_pos hδ0.ne' (ENNReal.add_ne_top.mpr ⟨hC, hδtop⟩) + have hrem : a • ν.restrict B ≤ ν - C • μ.restrict W := + buffer_fraction_le_excess (μ.restrict W) ν hC hδ0 hδtop hs hμs + let : IsFiniteMeasure (a • ν.restrict B) := + isFiniteMeasure_of_le ν (hrem.trans Measure.sub_le) + obtain ⟨π', η, hπ', hη, hg', hp', heq, hmass, hvol⟩ := + hcd.replace_midpoint_region_asymmetric μ K n ν₀ ν₁ hC₀ hC₁ h0 h1 hm0 hm1 s₀ s₁ hs0 hs1 + hn D hD π hg hp B hB hB0 ha0 ha + let := hπ' + let := hη + have hηle : η ≤ π'.map (fun γ => γ midpointTime) := by + rw [heq] + exact Measure.le_add_left le_rfl + have hηsupp : ∀ᵐ x ∂η, x ∈ W := + (hsupport π' hπ' hg' hp').filter_mono hηle.absolutelyContinuous.ae_le + have hvolLoc := hvol.trans_eq (ac_support_volume_restrict μ η hW hηsupp) + have hmin' := hmin π' hπ' hg' hp' + have hmass' : η univ = (a • ν.restrict B) univ := by + simpa only [Measure.smul_apply, smul_eq_mul, Measure.restrict_apply_univ] using hmass + have hequal : transportExcessMass (μ.restrict W) (π'.map (fun γ => γ midpointTime)) C = e := by + apply le_antisymm _ hmin' + rw [heq] + exact (transportExcessMass_add_le (μ.restrict W) (ν - a • ν.restrict B) η hC).trans_eq (by + rw [hmass', transportExcessMass_remove (μ.restrict W) ν (a • ν.restrict B) hC hrem]) + have hsaturated : ∀ᵐ x ∂μ.restrict W, η.rnDeriv (μ.restrict W) x ≠ 0 → + C < (π'.map (fun γ => γ midpointTime)).rnDeriv (μ.restrict W) x := by + rw [heq] + apply ac_support_saturated_of_minimizing_replacement (μ.restrict W) ν (a • ν.restrict B) η + hC hrem hmass' + simpa only [heq] using hmin' + refine ⟨π', hπ', hg', hp', hequal, ?_⟩ + have hgain : v + e / 2 * C⁻¹ < ν B * C⁻¹ := by + have hh := ENNReal.mul_lt_mul_left (ENNReal.inv_ne_zero.mpr hC) + (ENNReal.inv_ne_top.mpr hCpos) hδmass + convert hh using 1 + rw [add_mul, mul_assoc, mul_comm v, ← mul_assoc, ENNReal.mul_inv_cancel hCpos hC] + simp only [one_mul, add_comm] + exact hgain.trans_le (calc + ν B * C⁻¹ ≤ ν B * (midpointSupportFactor K n D C₀ C₁) := + mul_le_mul_right hfill _ + _ = midpointSupportFactor K n D C₀ C₁ * ν B := by ac_rfl + _ ≤ (μ.restrict W) {x | η.rnDeriv (μ.restrict W) x ≠ 0} := hvolLoc + _ ≤ (μ.restrict W) {x | C < (π'.map (fun γ => γ midpointTime)).rnDeriv (μ.restrict W) x} := + measure_mono_ae hsaturated) + + + +theorem FullCD.localized_excess_minimizer_zero_asymmetric + (μ : Measure X) [SigmaFinite μ] + (W : Set X) (hW : MeasurableSet W) [IsFiniteMeasure (μ.restrict W)] + (K : ℝ) (n : ℕ) (hcd : FullCD μ K n) (ν₀ ν₁ : Measure X) + [IsProbabilityMeasure ν₀] [IsProbabilityMeasure ν₁] + {C₀ C₁ C : ℝ≥0∞} (hC₀ : C₀ ≠ ∞) (hC₁ : C₁ ≠ ∞) (hC : C ≠ ∞) (hCpos : C ≠ 0) + (h0 : ν₀ ≤ C₀ • μ) (h1 : ν₁ ≤ C₁ • μ) + (hm0 : FiniteSecondMoment ν₀) (hm1 : FiniteSecondMoment ν₁) + (s₀ s₁ : Set X) (hs0 : ∀ᵐ x ∂ν₀, x ∈ s₀) (hs1 : ∀ᵐ x ∂ν₁, x ∈ s₁) + (hn : 2 ≤ n) (D : ℝ) + (hD : ∀ x ∈ s₀, ∀ y ∈ s₁, dist x y ≤ D) + (hsupport : ∀ (q : Measure C(Time, X)), IsProbabilityMeasure q → + (∀ᵐ γ ∂q, IsGeodesic γ) → + IsOptimalCoupling ν₀ ν₁ (q.map (fun γ => (γ 0, γ 1))) → + ∀ᵐ x ∂q.map (fun γ => γ midpointTime), x ∈ W) + (hfill : C⁻¹ ≤ midpointSupportFactor K n D C₀ C₁) + (π : Measure C(Time, X)) [IsProbabilityMeasure π] + (hg : ∀ᵐ γ ∂π, IsGeodesic γ) + (hp : IsOptimalCoupling ν₀ ν₁ (π.map (fun γ => (γ 0, γ 1)))) + (hmin : ∀ (π' : Measure C(Time, X)), IsProbabilityMeasure π' → + (∀ᵐ γ ∂π', IsGeodesic γ) → + IsOptimalCoupling ν₀ ν₁ (π'.map (fun γ => (γ 0, γ 1))) → + transportExcessMass (μ.restrict W) (π.map (fun γ => γ midpointTime)) C ≤ + transportExcessMass (μ.restrict W) (π'.map (fun γ => γ midpointTime)) C) : + transportExcessMass (μ.restrict W) (π.map (fun γ => γ midpointTime)) C = 0 := by + by_contra hpos + let e := transportExcessMass (μ.restrict W) (π.map (fun γ => γ midpointTime)) C + let A := {ρ : Measure C(Time, X) // IsProbabilityMeasure ρ ∧ + (∀ᵐ γ ∂ρ, IsGeodesic γ) ∧ + IsOptimalCoupling ν₀ ν₁ (ρ.map (fun γ => (γ 0, γ 1))) ∧ + transportExcessMass (μ.restrict W) (ρ.map (fun γ => γ midpointTime)) C = e} + have : Nonempty A := ⟨⟨π, inferInstance, hg, hp, rfl⟩⟩ + let v (ρ : A) := (μ.restrict W) {x | C < (ρ.val.map (fun γ => γ midpointTime)).rnDeriv (μ.restrict W) x} + let S := ⨆ ρ : A, v ρ + have hS : S ≠ ∞ := ne_top_of_le_ne_top (measure_ne_top (μ.restrict W) univ) + (iSup_le fun _ => measure_mono (subset_univ _)) + have hstep : S + e / 2 * C⁻¹ ≤ S := by + rw [ENNReal.iSup_add] + apply iSup_le + intro ρ + let : IsProbabilityMeasure ρ.val := ρ.property.1 + have hposρ : transportExcessMass (μ.restrict W) (ρ.val.map (fun γ => γ midpointTime)) C ≠ 0 := by + rw [ρ.property.2.2.2] + exact hpos + have hminρ : ∀ (π' : Measure C(Time, X)), IsProbabilityMeasure π' → + (∀ᵐ γ ∂π', IsGeodesic γ) → + IsOptimalCoupling ν₀ ν₁ (π'.map (fun γ => (γ 0, γ 1))) → + transportExcessMass (μ.restrict W) (ρ.val.map (fun γ => γ midpointTime)) C ≤ + transportExcessMass (μ.restrict W) (π'.map (fun γ => γ midpointTime)) C := by + intro π' hπ' hg' hp' + rw [ρ.property.2.2.2] + exact hmin π' hπ' hg' hp' + obtain ⟨π', hπ', hg', hp', hequal, hgain⟩ := + hcd.improve_localized_saturation_asymmetric μ W hW K n ν₀ ν₁ + hC₀ hC₁ hC hCpos h0 h1 hm0 hm1 s₀ s₁ hs0 hs1 hn D hD hsupport hfill + ρ.val ρ.property.2.1 ρ.property.2.2.1 hposρ hminρ + let ρ' : A := ⟨π', hπ', hg', hp', hequal.trans ρ.property.2.2.2⟩ + rw [ρ.property.2.2.2] at hgain + exact hgain.le.trans (le_iSup v ρ') + have hδ : 0 < e / 2 * C⁻¹ := ENNReal.mul_pos + (ENNReal.div_pos hpos (by simp)).ne' (ENNReal.inv_ne_zero.mpr hC) + have hstrict := ENNReal.add_lt_add_left hS hδ + rw [add_zero] at hstrict + exact (not_lt_of_ge hstep) hstrict + + +section Attainment +variable [ProperSpace X] [SeparableSpace X] + +theorem FullCD.exists_compressed_midpoint_asymmetric + (μ : Measure X) [SigmaFinite μ] (K : ℝ) (n : ℕ) (hcd : FullCD μ K n) + (ν₀ ν₁ : Measure X) [IsProbabilityMeasure ν₀] [IsProbabilityMeasure ν₁] + {C₀ C₁ C : ℝ≥0∞} (hC₀ : C₀ ≠ ∞) (hC₁ : C₁ ≠ ∞) (hC : C ≠ ∞) (hCpos : C ≠ 0) + (h0 : ν₀ ≤ C₀ • μ) (h1 : ν₁ ≤ C₁ • μ) + (hm0 : FiniteSecondMoment ν₀) (hm1 : FiniteSecondMoment ν₁) + (p : X) {R : ℝ} (hR : 0 ≤ R) + [IsFiniteMeasure (μ.restrict (closedBall p (3 * R)))] + [Measure.OuterRegular (μ.restrict (closedBall p (3 * R)))] + (hs0 : ∀ᵐ x ∂ν₀, dist x p ≤ R) (hs1 : ∀ᵐ x ∂ν₁, dist x p ≤ R) + (hn : 2 ≤ n) + (hfill : C⁻¹ ≤ midpointSupportFactor K n (2 * R) C₀ C₁) : + ∃ π : Measure C(Time, X), IsProbabilityMeasure π ∧ + (∀ᵐ γ ∂π, IsGeodesic γ) ∧ + IsOptimalCoupling ν₀ ν₁ (π.map (fun γ => (γ 0, γ 1))) ∧ + π.map (fun γ => γ midpointTime) ≤ C • μ := by + let W := closedBall p (3 * R) + have hW : MeasurableSet W := isClosed_closedBall.measurableSet + have hsupport : ∀ (q : Measure C(Time, X)), IsProbabilityMeasure q → + (∀ᵐ γ ∂q, IsGeodesic γ) → + IsOptimalCoupling ν₀ ν₁ (q.map (fun γ => (γ 0, γ 1))) → + ∀ᵐ x ∂q.map (fun γ => γ midpointTime), x ∈ W := by + intro q hq hgq hpq + apply (ae_map_iff (measurable_path_eval midpointTime).aemeasurable hW).mpr + exact (optimal_geodesic_plan_bounded ν₀ ν₁ q hgq hpq p hR hs0 hs1).mono + (fun γ hγ => hγ.2 midpointTime) + let v0 : ProbabilityMeasure X := ⟨ν₀, inferInstance⟩ + let v1 : ProbabilityMeasure X := ⟨ν₁, inferInstance⟩ + obtain ⟨q, hq, hgq, hpq, _⟩ := hcd ν₀ ν₁ inferInstance inferInstance + (Measure.absolutelyContinuous_of_le_smul h0) + (Measure.absolutelyContinuous_of_le_smul h1) hm0 hm1 + have hne : (OptimalGeodesicPlans v0 v1).Nonempty := ⟨⟨q, hq⟩, hgq, hpq⟩ + obtain ⟨π, hπ, hmπ⟩ := exists_optimal_geodesic_plan_minimizing_excess + (μ.restrict W) v0 v1 p hR hs0 hs1 hne midpointTime hC + have hmin : ∀ (q : Measure C(Time, X)), IsProbabilityMeasure q → + (∀ᵐ γ ∂q, IsGeodesic γ) → + IsOptimalCoupling ν₀ ν₁ (q.map (fun γ => (γ 0, γ 1))) → + transportExcessMass (μ.restrict W) ((π : Measure C(Time, X)).map (fun γ => γ midpointTime)) C ≤ + transportExcessMass (μ.restrict W) (q.map (fun γ => γ midpointTime)) C := by + intro q hq hgq hpq + exact hmπ ⟨q, hq⟩ ⟨hgq, hpq⟩ + have hD : ∀ x ∈ closedBall p R, ∀ y ∈ closedBall p R, dist x y ≤ 2 * R := by + intro x hx y hy + have hd := dist_triangle x p y + rw [dist_comm p y] at hd + change dist x p ≤ R at hx + change dist y p ≤ R at hy + linarith + have hz := hcd.localized_excess_minimizer_zero_asymmetric μ W hW K n ν₀ ν₁ hC₀ hC₁ hC hCpos + h0 h1 hm0 hm1 (closedBall p R) (closedBall p R) hs0 hs1 hn (2 * R) hD + hsupport hfill (π : Measure C(Time, X)) hπ.1 hπ.2 hmin + refine ⟨π, inferInstance, hπ.1, hπ.2, ?_⟩ + have hs := hsupport (π : Measure C(Time, X)) inferInstance hπ.1 hπ.2 + have ht := localized_excess_zero_iff μ ((π : Measure C(Time, X)).map (fun γ => γ midpointTime)) + (B := W) (C := C) hs hC + exact ht.mp hz + +end Attainment +end RegularPointCoordinates + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/AsymmetricMidpointReplacement.lean b/lean/OAI/Geometry/RCD/Transport/AsymmetricMidpointReplacement.lean new file mode 100644 index 0000000000000000000000000000000000000000..26a938e7bc9d984cc0d94da46c3a5d089e4fb30e --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/AsymmetricMidpointReplacement.lean @@ -0,0 +1,143 @@ +import OAI.Geometry.RCD.Transport.AsymmetricMidpoint + +namespace OAI + +/-! # Replacing a midpoint region with unequal endpoint bounds + +The replacement is an actual subplan with the original endpoint marginals. +Its lower support-volume bound retains each endpoint density, so it can +be used when only the source bound stays finite in a concentration limit. +-/ + +open Set Filter Metric MeasureTheory +open scoped ENNReal + +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem FullCD.replace_midpoint_region_asymmetric (μ : Measure X) [SigmaFinite μ] + (K : ℝ) (n : ℕ) (hcd : FullCD μ K n) (ν₀ ν₁ : Measure X) + [IsProbabilityMeasure ν₀] [IsProbabilityMeasure ν₁] + {C₀ C₁ : ℝ≥0∞} (hC₀ : C₀ ≠ ∞) (hC₁ : C₁ ≠ ∞) + (h0 : ν₀ ≤ C₀ • μ) (h1 : ν₁ ≤ C₁ • μ) + (hm0 : FiniteSecondMoment ν₀) (hm1 : FiniteSecondMoment ν₁) + (s₀ s₁ : Set X) (hs0 : ∀ᵐ x ∂ν₀, x ∈ s₀) (hs1 : ∀ᵐ x ∂ν₁, x ∈ s₁) + (hn : 2 ≤ n) (D : ℝ) + (hD : ∀ x ∈ s₀, ∀ y ∈ s₁, dist x y ≤ D) + (π : Measure C(Time, X)) [IsProbabilityMeasure π] + (hg : ∀ᵐ γ ∂π, IsGeodesic γ) + (hp : IsOptimalCoupling ν₀ ν₁ (π.map (fun γ => (γ 0, γ 1)))) + (B : Set X) (hB : MeasurableSet B) + (hm : (π.map (fun γ => γ midpointTime)) B ≠ 0) + {a : ℝ≥0∞} (ha0 : 0 < a) (ha1 : a ≤ 1) : + ∃ π' : Measure C(Time, X), ∃ η : Measure X, + IsProbabilityMeasure π' ∧ IsFiniteMeasure η ∧ + (∀ᵐ γ ∂π', IsGeodesic γ) ∧ + IsOptimalCoupling ν₀ ν₁ (π'.map (fun γ => (γ 0, γ 1))) ∧ + π'.map (fun γ => γ midpointTime) = + π.map (fun γ => γ midpointTime) - a • (π.map (fun γ => γ midpointTime)).restrict B + η ∧ + η univ = a * (π.map (fun γ => γ midpointTime)) B ∧ + midpointSupportFactor K n D C₀ C₁ * (π.map (fun γ => γ midpointTime)) B ≤ + μ {x | η.rnDeriv μ x ≠ 0} := by + let κ := π.restrict ((fun γ => γ midpointTime) ⁻¹' B) + have hκ : κ ≤ π := Measure.restrict_le_self + have hmass : κ univ = (π.map (fun γ => γ midpointTime)) B := by + rw [Measure.map_apply (measurable_path_eval midpointTime) hB] + exact Measure.restrict_apply_univ _ + have hκ0 : κ univ ≠ 0 := hmass ▸ hm + have hκtop : κ univ ≠ ∞ := measure_ne_top κ univ + let : NeZero κ := ⟨by intro he; exact hκ0 (by rw [he]; rfl)⟩ + let η₀ := (κ univ)⁻¹ • κ.map (fun γ => γ 0) + let η₁ := (κ univ)⁻¹ • κ.map (fun γ => γ 1) + have htprob : IsProbabilityMeasure ((κ univ)⁻¹ • κ) := inferInstance + have he0 : (((κ univ)⁻¹ • κ).map (fun γ => γ 0)) = η₀ := Measure.map_smul _ (measurable_path_eval 0).aemeasurable + have he1 : (((κ univ)⁻¹ • κ).map (fun γ => γ 1)) = η₁ := Measure.map_smul _ (measurable_path_eval 1).aemeasurable + have hprob0 : IsProbabilityMeasure η₀ := he0 ▸ + inferInstance + have hprob1 : IsProbabilityMeasure η₁ := he1 ▸ + inferInstance + have hend := optimalPlan_endpoints ν₀ ν₁ π hp + have hle0 : κ.map (fun γ => γ 0) ≤ ν₀ := by + rw [← hend.1] + exact Measure.map_mono hκ (measurable_path_eval 0) + have hle1 : κ.map (fun γ => γ 1) ≤ ν₁ := by + rw [← hend.2] + exact Measure.map_mono hκ (measurable_path_eval 1) + have hden0 : η₀ ≤ (C₀ * (κ univ)⁻¹) • μ := fun S => by + simpa only [η₀, Measure.smul_apply, smul_eq_mul, mul_assoc, mul_comm, mul_left_comm] using + mul_le_mul_right ((hle0.trans h0) S) (κ univ)⁻¹ + have hden1 : η₁ ≤ (C₁ * (κ univ)⁻¹) • μ := fun S => by + simpa only [η₁, Measure.smul_apply, smul_eq_mul, mul_assoc, mul_comm, mul_left_comm] using + mul_le_mul_right ((hle1.trans h1) S) (κ univ)⁻¹ + have hi : (κ univ)⁻¹ ≠ ∞ := ENNReal.inv_ne_top.mpr hκ0 + have hs0' : ∀ᵐ x ∂η₀, x ∈ s₀ := by + have ht : ∀ᵐ x ∂κ.map (fun γ => γ 0), x ∈ s₀ := + hs0.filter_mono hle0.absolutelyContinuous.ae_le + exact ht.filter_mono Measure.smul_absolutelyContinuous.ae_le + have hs1' : ∀ᵐ x ∂η₁, x ∈ s₁ := by + have ht : ∀ᵐ x ∂κ.map (fun γ => γ 1), x ∈ s₁ := + hs1.filter_mono hle1.absolutelyContinuous.ae_le + exact ht.filter_mono Measure.smul_absolutelyContinuous.ae_le + obtain ⟨τ, hτ, hgτ, hpτ, hvolτ⟩ := hcd.exists_midpoint_ac_support_bound_asymmetric μ η₀ η₁ + hden0 hden1 ((hm0.of_le hle0).smul hi) ((hm1.of_le hle1).smul hi) + s₀ s₁ hs0' hs1' hn D hD + let := hτ + have hatop : a ≠ ∞ := ne_top_of_le_ne_top (by simp) ha1 + let q := a * κ univ + have hq0 : q ≠ 0 := mul_ne_zero ha0.ne' hκ0 + have hqtop : q ≠ ∞ := ENNReal.mul_ne_top hatop hκtop + have hcancel : q * (κ univ)⁻¹ = a := by + dsimp only [q] + rw [mul_assoc, ENNReal.mul_inv_cancel hκ0 hκtop, mul_one] + have hasub : a • κ ≤ π := by + calc + _ ≤ (1 : ℝ≥0∞) • κ := fun S => by + simpa only [Measure.smul_apply, smul_eq_mul] using mul_le_mul_left ha1 (κ S) + _ = κ := one_smul _ _ + _ ≤ π := hκ + have hscaled : IsOptimalCoupling ((a • κ).map (fun γ => γ 0)) + ((a • κ).map (fun γ => γ 1)) ((q • τ).map (fun γ => (γ 0, γ 1))) := by + have hh := hpτ.smul hq0 hqtop + simpa only [η₀, η₁, Measure.map_smul _ (measurable_path_eval 0).aemeasurable, + Measure.map_smul _ (measurable_path_eval 1).aemeasurable, Measure.map_smul _ ((measurable_path_eval 0).prodMk (measurable_path_eval 1)).aemeasurable, smul_smul, hcancel] using hh + have hgscaled : ∀ᵐ γ ∂(q • τ), IsGeodesic γ := + hgτ.filter_mono Measure.smul_absolutelyContinuous.ae_le + obtain ⟨hprob', hg', hp'⟩ := optimalPlan_replace_subplan hp hg hasub hscaled hgscaled + let η := (q • τ).map (fun γ => γ midpointTime) + let : IsFiniteMeasure (q • τ) := ⟨by + simp only [Measure.smul_apply, smul_eq_mul, measure_univ, mul_one] + exact hqtop.lt_top⟩ + have hκmid : κ.map (fun γ => γ midpointTime) = + (π.map (fun γ => γ midpointTime)).restrict B := + (Measure.restrict_map (measurable_path_eval midpointTime) hB).symm + refine ⟨π - a • κ + q • τ, η, hprob', inferInstance, hg', hp', ?_, ?_, ?_⟩ + · rw [Measure.map_add _ _ (measurable_path_eval midpointTime), + map_sub_of_le π (a • κ) hasub _ (measurable_path_eval midpointTime), + Measure.map_smul _ (measurable_path_eval midpointTime).aemeasurable, hκmid] + · simp only [η, Measure.map_smul _ (measurable_path_eval midpointTime).aemeasurable, Measure.smul_apply, smul_eq_mul, + Measure.map_apply_of_aemeasurable (measurable_path_eval midpointTime).aemeasurable + MeasurableSet.univ, preimage_univ, measure_univ, mul_one, q, hmass] + · have hsupport : μ {x | η.rnDeriv μ x ≠ 0} = + μ {x | (τ.map (fun γ => γ midpointTime)).rnDeriv μ x ≠ 0} := by + apply measure_congr + have hr := Measure.rnDeriv_smul_left_of_ne_top + (τ.map (fun γ => γ midpointTime)) μ hqtop + change ∀ᵐ x ∂μ, (η.rnDeriv μ x ≠ 0) = + ((τ.map (fun γ => γ midpointTime)).rnDeriv μ x ≠ 0) + dsimp only [η] + rw [Measure.map_smul _ (measurable_path_eval midpointTime).aemeasurable] + filter_upwards [hr] with x hx + rw [hx, Pi.smul_apply, smul_eq_mul] + rw [mul_ne_zero_iff] + apply propext + exact ⟨And.right, fun h => ⟨hq0, h⟩⟩ + rw [hsupport] + change midpointSupportFactor K n D (C₀ * (κ univ)⁻¹) (C₁ * (κ univ)⁻¹) ≤ _ at hvolτ + rw [midpointSupportFactor_scale K (by omega : 0 < n) D hC₀ hC₁ hκ0, hmass] at hvolτ + exact hvolτ + +end RegularPointCoordinates + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/BoltzmannDisjointAdditivity.lean b/lean/OAI/Geometry/RCD/Transport/BoltzmannDisjointAdditivity.lean new file mode 100644 index 0000000000000000000000000000000000000000..175f00c36b1e3292435da2f9e47bfc725fbfa983 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/BoltzmannDisjointAdditivity.lean @@ -0,0 +1,80 @@ +import OAI.Geometry.RCD.Transport.RenyiDisjointAdditivity +import OAI.Geometry.RCD.Coordinates.NormalizedHeatEntropy + +namespace OAI + +/-! # Exact Boltzmann entropy of disjoint finite components -/ + +open Set Filter MeasureTheory +open scoped ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MeasurableSpace X] (μ : Measure X) [SigmaFinite μ] + +theorem entropy_density_add_mutuallySingular (ν₀ ν₁ : Measure X) + [IsFiniteMeasure ν₀] [IsFiniteMeasure ν₁] (hs : ν₀ ⟂ₘ ν₁) : + (fun x => ((ν₀+ν₁).rnDeriv μ x).toReal * Real.log ((ν₀+ν₁).rnDeriv μ x).toReal) + =ᵐ[μ] fun x => (ν₀.rnDeriv μ x).toReal * Real.log (ν₀.rnDeriv μ x).toReal + + (ν₁.rnDeriv μ x).toReal * Real.log (ν₁.rnDeriv μ x).toReal := by + filter_upwards [Measure.rnDeriv_add ν₀ ν₁ μ,rnDeriv_disjoint_ae μ ν₀ ν₁ hs] + with x hx hd + rw [hx] + rcases hd with hd | hd <;> simp [Pi.add_apply,hd] + +theorem boltzmannEntropy_add_mutuallySingular (ν₀ ν₁ : Measure X) + [IsFiniteMeasure ν₀] [IsFiniteMeasure ν₁] (hs : ν₀ ⟂ₘ ν₁) + (h₀ : Integrable (fun x => (ν₀.rnDeriv μ x).toReal * Real.log (ν₀.rnDeriv μ x).toReal) μ) + (h₁ : Integrable (fun x => (ν₁.rnDeriv μ x).toReal * Real.log (ν₁.rnDeriv μ x).toReal) μ) : + boltzmannEntropy μ (ν₀+ν₁)=boltzmannEntropy μ ν₀+boltzmannEntropy μ ν₁ := by + unfold boltzmannEntropy + rw [integral_congr_ae (entropy_density_add_mutuallySingular μ ν₀ ν₁ hs), + integral_add h₀ h₁] + +theorem entropy_density_smul (ν : Measure X) [IsFiniteMeasure ν] + {c : ℝ≥0∞} (hc : c≠∞) : + (fun x => ((c • ν).rnDeriv μ x).toReal * Real.log ((c • ν).rnDeriv μ x).toReal) + =ᵐ[μ] fun x => (c.toReal*(ν.rnDeriv μ x).toReal) * + Real.log (c.toReal*(ν.rnDeriv μ x).toReal) := by + filter_upwards [Measure.rnDeriv_smul_left_of_ne_top ν μ hc] with x hx + rw [hx] + simp only [Pi.smul_apply,smul_eq_mul,ENNReal.toReal_mul] + +theorem boltzmannEntropy_smul (ν : Measure X) [IsFiniteMeasure ν] + {c : ℝ≥0∞} (hc : c≠∞) (hc0 : c≠0) + (he : Integrable (fun x => (ν.rnDeriv μ x).toReal * Real.log (ν.rnDeriv μ x).toReal) μ) : + boltzmannEntropy μ (c • ν)=c.toReal*boltzmannEntropy μ ν+ + (c.toReal*Real.log c.toReal)*(∫ x, (ν.rnDeriv μ x).toReal ∂μ) := by + unfold boltzmannEntropy + rw [integral_congr_ae (entropy_density_smul μ ν hc)] + exact integral_entropy_mul μ (ENNReal.toReal_pos hc0 hc) + (.of_forall fun _ => ENNReal.toReal_nonneg) Measure.integrable_toReal_rnDeriv he + +theorem boltzmannEntropy_smul_probability (ν : Measure X) [IsProbabilityMeasure ν] + (ha : ν ≪ μ) {c : ℝ≥0∞} (hc : c≠∞) (hc0 : c≠0) + (he : Integrable (fun x => (ν.rnDeriv μ x).toReal * Real.log (ν.rnDeriv μ x).toReal) μ) : + boltzmannEntropy μ (c • ν)=c.toReal*boltzmannEntropy μ ν+c.toReal*Real.log c.toReal := by + rw [boltzmannEntropy_smul μ ν hc hc0 he,Measure.integral_toReal_rnDeriv ha] + simp only [Measure.real,measure_univ,ENNReal.toReal_one,mul_one] + +theorem boltzmannEntropy_half_mixture (ν₀ ν₁ : Measure X) + [IsProbabilityMeasure ν₀] [IsProbabilityMeasure ν₁] + (ha₀ : ν₀ ≪ μ) (ha₁ : ν₁ ≪ μ) (hs : ν₀ ⟂ₘ ν₁) + (h₀ : Integrable (fun x => (ν₀.rnDeriv μ x).toReal * Real.log (ν₀.rnDeriv μ x).toReal) μ) + (h₁ : Integrable (fun x => (ν₁.rnDeriv μ x).toReal * Real.log (ν₁.rnDeriv μ x).toReal) μ) : + boltzmannEntropy μ ((2:ℝ≥0∞)⁻¹ • (ν₀+ν₁))= + (boltzmannEntropy μ ν₀+boltzmannEntropy μ ν₁)/2-Real.log 2 := by + have hi : Integrable (fun x => ((ν₀+ν₁).rnDeriv μ x).toReal * + Real.log ((ν₀+ν₁).rnDeriv μ x).toReal) μ := + (h₀.add h₁).congr (entropy_density_add_mutuallySingular μ ν₀ ν₁ hs).symm + rw [boltzmannEntropy_smul μ (ν₀+ν₁) (by norm_num) (by norm_num) hi, + boltzmannEntropy_add_mutuallySingular μ ν₀ ν₁ hs h₀ h₁, + Measure.integral_toReal_rnDeriv (ha₀.add_left ha₁)] + simp only [ENNReal.toReal_inv,ENNReal.toReal_ofNat,Real.log_inv] + norm_num [Measure.real] + ring + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/BoltzmannSupportBounds.lean b/lean/OAI/Geometry/RCD/Transport/BoltzmannSupportBounds.lean new file mode 100644 index 0000000000000000000000000000000000000000..c04e3f1b706a543c9fa7121637269fdc269411bb --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/BoltzmannSupportBounds.lean @@ -0,0 +1,84 @@ +import OAI.Geometry.RCD.Transport.BoltzmannDisjointAdditivity +import OAI.Analysis.RCDHeat.ExistingAnalytic + +namespace OAI + +/-! # Entropy bounds on a finite reference region + +These are the upper density bound and the lower volume bound used after +normalizing a restricted transport component. +-/ + +open Set Filter MeasureTheory +open scoped ENNReal +noncomputable section +namespace RegularPointCoordinates + +theorem entropy_density_volume_tangent {V r : ℝ} (hV : 0 (ν.rnDeriv μ x).toReal * Real.log (ν.rnDeriv μ x).toReal) μ) : + -Real.log (μ.real univ) ≤ boltzmannEntropy μ ν := by + have hμ0 : μ univ≠0 := by + intro hzero + have h := ha hzero + exact one_ne_zero (by simpa only [measure_univ] using h) + have hV : 0<μ.real univ := ENNReal.toReal_pos hμ0 (measure_ne_top _ _) + have hl : Integrable (fun x => (ν.rnDeriv μ x).toReal*(1-Real.log (μ.real univ))- + (μ.real univ)⁻¹) μ := + (Measure.integrable_toReal_rnDeriv.mul_const _).sub (integrable_const _) + have h := integral_mono_ae hl he (.of_forall fun x => + entropy_density_volume_tangent hV ENNReal.toReal_nonneg) + rw [integral_sub (Measure.integrable_toReal_rnDeriv.mul_const _) (integrable_const _), + integral_mul_const,Measure.integral_toReal_rnDeriv ha,integral_const] at h + simp only [Measure.real,measure_univ,ENNReal.toReal_one,one_mul,smul_eq_mul] at h ⊢ + rw [mul_inv_cancel₀ (show (μ univ).toReal≠0 from hV.ne')] at h + change _ ≤ boltzmannEntropy μ ν at h + linarith + +theorem boltzmannEntropy_le_log_density (μ ν : Measure X) [SigmaFinite μ] + [IsProbabilityMeasure ν] {C : ℝ} (hC : 0 (ν.rnDeriv μ x).toReal * Real.log (ν.rnDeriv μ x).toReal) μ) : + boltzmannEntropy μ ν ≤ Real.log C := by + have ha := Measure.absolutelyContinuous_of_le_smul hν + have hbound := rnDeriv_le_const_of_le_smul μ ν hν + have hρ : ∀ᵐ x ∂μ, (ν.rnDeriv μ x).toReal≤C := by + filter_upwards [hbound] with x hx + exact (ENNReal.toReal_mono (by finiteness) hx).trans_eq (ENNReal.toReal_ofReal hC.le) + have hh : ∀ᵐ x ∂μ, (ν.rnDeriv μ x).toReal*Real.log (ν.rnDeriv μ x).toReal ≤ + (ν.rnDeriv μ x).toReal*Real.log C := by + filter_upwards [hρ] with x hx + rcases eq_or_lt_of_le (ENNReal.toReal_nonneg (a:=ν.rnDeriv μ x)) with hz | hz + · simp only [←hz,zero_mul,le_refl] + · exact mul_le_mul_of_nonneg_left (Real.log_le_log hz hx) hz.le + have h := integral_mono_ae he (Measure.integrable_toReal_rnDeriv.mul_const _) hh + rw [integral_mul_const,Measure.integral_toReal_rnDeriv ha] at h + simpa only [boltzmannEntropy,Measure.real,measure_univ,ENNReal.toReal_one,one_mul] using h + +theorem boltzmannEntropy_ge_neg_log_support (μ ν : Measure X) [SigmaFinite μ] + [IsProbabilityMeasure ν] {B : Set X} (hB : MeasurableSet B) + [IsFiniteMeasure (μ.restrict B)] (ha : ν ≪ μ.restrict B) + (he : Integrable (fun x => (ν.rnDeriv μ x).toReal * Real.log (ν.rnDeriv μ x).toReal) μ) : + -Real.log (μ.real B) ≤ boltzmannEntropy μ ν := by + rw [boltzmannEntropy_localized μ ν hB ha] + simpa only [Measure.real,Measure.restrict_apply_univ] using + boltzmannEntropy_ge_neg_log_mass (μ.restrict B) ν ha + ((entropy_integrable_localized_iff μ ν hB ha).mp he) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/BoundedCouplingDual.lean b/lean/OAI/Geometry/RCD/Transport/BoundedCouplingDual.lean new file mode 100644 index 0000000000000000000000000000000000000000..b5d756f901a606d756a0b04e4ac2eb1eaecdddd7 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/BoundedCouplingDual.lean @@ -0,0 +1,95 @@ +import OAI.Geometry.RCD.Sobolev.BoundedLocalRepresentative +import OAI.Geometry.RCD.Metric.EuclideanPairCost + +namespace OAI + +/-! # Optimality from local dual potentials on bounded endpoint supports -/ + +open Set Filter MeasureTheory Metric +open scoped Topology BoundedContinuousFunction NNReal +noncomputable section +namespace RegularPointCoordinates + + theorem bounded_pair_cost_integrable {n : ℕ} {B : ℝ} (hB : 0≤B) + (π : Measure (Euclidean n × Euclidean n)) [IsFiniteMeasure π] + (hb : ∀ᵐ z ∂π, z∈closedBall (0:Euclidean n) B ×ˢ closedBall (0:Euclidean n) B) : + Integrable (fun z => dist z.1 z.2^2) π := by + apply ((boundedPairCost B).integrable π).congr + filter_upwards [hb] with z hz + exact boundedPairCost_eq hB hz.1 hz.2 + + theorem bounded_pair_transportCost {n : ℕ} {B : ℝ} (hB : 0≤B) + (π : Measure (Euclidean n × Euclidean n)) [IsFiniteMeasure π] + (hb : ∀ᵐ z ∂π, z∈closedBall (0:Euclidean n) B ×ˢ closedBall (0:Euclidean n) B) : + transportCost π=ENNReal.ofReal (∫ z, dist z.1 z.2^2 ∂π) := by + rw [ofReal_integral_eq_lintegral_ofReal (bounded_pair_cost_integrable hB π hb) + (Eventually.of_forall fun _ => sq_nonneg _)] + simp only [transportCost,ENNReal.ofReal_pow dist_nonneg] + +/-- Dual feasibility is needed only on the support of the endpoint marginals. -/ +theorem bounded_coupling_optimal_of_dual {n : ℕ} {B : ℝ} (hB : 0≤B) + (Q : ProbabilityMeasure (Euclidean n × Euclidean n)) + (hQ : ∀ᵐ z ∂(Q : Measure (Euclidean n × Euclidean n)), + z∈closedBall (0:Euclidean n) B ×ˢ closedBall (0:Euclidean n) B) + {f g : Euclidean n → ℝ} {L M : ℝ≥0} + (hf : LipschitzWith L f) (hg : LipschitzWith M g) + (had : ∀ x∈closedBall 0 B, ∀ y∈closedBall 0 B, f x+g y≤dist x y^2/2) + (hc : (∫ z, f z.1+g z.2 ∂(Q : Measure (Euclidean n × Euclidean n)))= + (∫ z, dist z.1 z.2^2 ∂(Q : Measure (Euclidean n × Euclidean n)))/2) : + IsOptimalCoupling ((Q : Measure (Euclidean n × Euclidean n)).map Prod.fst) + ((Q : Measure (Euclidean n × Euclidean n)).map Prod.snd) Q := by + obtain ⟨F,hF⟩ := bounded_local_representative hB hf.lipschitzOnWith + obtain ⟨G,hG⟩ := bounded_local_representative hB hg.lipschitzOnWith + let H : (Euclidean n × Euclidean n) →ᵇ ℝ := + F.compContinuous ⟨Prod.fst,continuous_fst⟩+G.compContinuous ⟨Prod.snd,continuous_snd⟩ + have hsep (τ : Measure (Euclidean n × Euclidean n)) [IsFiniteMeasure τ] : + (∫ z, H z ∂τ)=(∫ x, F x ∂τ.map Prod.fst)+(∫ y, G y ∂τ.map Prod.snd) := by + have hFi : Integrable (fun z : Euclidean n × Euclidean n => F z.1) τ := + (F.compContinuous ⟨Prod.fst,continuous_fst⟩).integrable τ + have hGi : Integrable (fun z : Euclidean n × Euclidean n => G z.2) τ := + (G.compContinuous ⟨Prod.snd,continuous_snd⟩).integrable τ + calc + (∫ z, H z ∂τ)=(∫ z, F z.1 ∂τ)+(∫ z, G z.2 ∂τ) := integral_add hFi hGi + _ = _ := by + rw [integral_map measurable_fst.aemeasurable F.continuous.aestronglyMeasurable, + integral_map measurable_snd.aemeasurable G.continuous.aestronglyMeasurable] + have hHQ : (∫ z, H z ∂(Q : Measure (Euclidean n × Euclidean n)))= + (∫ z, dist z.1 z.2^2 ∂(Q : Measure (Euclidean n × Euclidean n)))/2 := by + rw [← hc] + apply integral_congr_ae + filter_upwards [hQ] with z hz + exact congrArg₂ (·+·) (hF hz.1) (hG hz.2) + refine ⟨rfl,rfl,?_⟩ + intro π hfst hsnd + let : IsProbabilityMeasure π := coupling_probability_of_fst hfst + have hfQ : ∀ᵐ x ∂(Q : Measure (Euclidean n × Euclidean n)).map Prod.fst, + x∈closedBall (0:Euclidean n) B := + (ae_map_iff measurable_fst.aemeasurable measurableSet_closedBall).mpr + (hQ.mono fun _ hz => hz.1) + have hgQ : ∀ᵐ x ∂(Q : Measure (Euclidean n × Euclidean n)).map Prod.snd, + x∈closedBall (0:Euclidean n) B := + (ae_map_iff measurable_snd.aemeasurable measurableSet_closedBall).mpr + (hQ.mono fun _ hz => hz.2) + have hπ : ∀ᵐ z ∂π, z∈closedBall (0:Euclidean n) B ×ˢ closedBall (0:Euclidean n) B := by + have hh0 := ae_of_ae_map measurable_fst.aemeasurable (hfst.symm ▸ hfQ) + have hh1 := ae_of_ae_map measurable_snd.aemeasurable (hsnd.symm ▸ hgQ) + exact hh0.and hh1 + have heq : (∫ z, H z ∂(Q : Measure (Euclidean n × Euclidean n)))=∫ z, H z ∂π := by + rw [hsep,hsep,hfst,hsnd] + have hle : (∫ z, H z ∂π)≤(∫ z, dist z.1 z.2^2 ∂π)/2 := by + rw [← integral_div] + apply integral_mono_ae (H.integrable π) ((bounded_pair_cost_integrable hB π hπ).div_const 2) + filter_upwards [hπ] with z hz + change F z.1+G z.2≤_ + rw [hF hz.1,hG hz.2] + exact had _ hz.1 _ hz.2 + rw [bounded_pair_transportCost hB _ hQ,bounded_pair_transportCost hB π hπ] + apply ENNReal.ofReal_le_ofReal + rw [← heq,hHQ] at hle + linarith + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/BoundedDensityPlanFamily.lean b/lean/OAI/Geometry/RCD/Transport/BoundedDensityPlanFamily.lean new file mode 100644 index 0000000000000000000000000000000000000000..ff1160b93f6ec53aad4f56512bca875223302d88 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/BoundedDensityPlanFamily.lean @@ -0,0 +1,39 @@ +import OAI.Analysis.RCDHeat.ExistingAnalytic + +namespace OAI + +/-! # Actual bounded-compression plans for a sequence of bounded density pairs -/ + +open Set Filter MeasureTheory Metric +open scoped Topology ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem NoncollapsedRCD.bounded_density_plan_family {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (hn : 2≤n) + (p : ℕ → X) (R : ℕ → ℝ) (hR : ∀ k, 0≤R k) + (ν₀ ν₁ : ℕ → ProbabilityMeasure X) (C : ℕ → ℝ≥0∞) (hC : ∀ k, C k≠⊤) + (h0 : ∀ k, (ν₀ k : Measure X)≤C k • hausdorff n X) + (h1 : ∀ k, (ν₁ k : Measure X)≤C k • hausdorff n X) + (hs0 : ∀ k, ∀ᵐ x ∂(ν₀ k : Measure X), dist x (p k)≤R k) + (hs1 : ∀ k, ∀ᵐ x ∂(ν₁ k : Measure X), dist x (p k)≤R k) : + ∃ P : ℕ → ProbabilityMeasure C(Time,X), + (∀ k, ∀ᵐ γ ∂(P k : Measure C(Time,X)), IsGeodesic γ) ∧ + (∀ k, IsOptimalCoupling (ν₀ k) (ν₁ k) + ((P k : Measure C(Time,X)).map (fun γ => (γ 0,γ 1)))) ∧ + (∀ k, Integrable (fun γ : C(Time,X) => dist (γ 0) (γ 1)^2) + (P k : Measure C(Time,X))) ∧ + (∀ k t, (P k : Measure C(Time,X)).map (fun γ => γ t)≤ + compressionBudget K n (2*R k) (C k) • hausdorff n X) := by + choose π hπ hgeo hopt hi hcomp using fun k => + hX.exists_bounded_entropy_plan K n hn (ν₀ k : Measure X) (ν₁ k : Measure X) + (hC k) (h0 k) (h1 k) (p k) (hR k) (hs0 k) (hs1 k) + exact ⟨fun k => ⟨π k,hπ k⟩,hgeo,hopt,hi,fun k t => (hcomp k t).1⟩ + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/BoundedEndpointNode.lean b/lean/OAI/Geometry/RCD/Transport/BoundedEndpointNode.lean new file mode 100644 index 0000000000000000000000000000000000000000..da0feca06ed1c3e762ea80b441000fe6be4dfb63 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/BoundedEndpointNode.lean @@ -0,0 +1,47 @@ +import OAI.Geometry.RCD.Transport.BoundedOptimalRecovery + +namespace OAI + +/-! # Transport nodes of bounded recovered endpoints -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped ENNReal Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [SeparableSpace X] +attribute [local instance] pathBorel pathBorelSpace + +def boundedEndpointNode (n : ℕ) (ρ : ProbabilityMeasure C(Time,X)) (p : X) + {R : ℝ} (hR : 0≤R) + (hs : ∀ᵐ γ ∂(ρ : Measure C(Time,X)), ∀ t : Time, dist (γ t) p≤R) + {C : ℝ≥0∞} (hC : C≠∞) + (h0 : (ρ : Measure C(Time,X)).map (fun γ => γ 0)≤C • hausdorff n X) + (h1 : (ρ : Measure C(Time,X)).map (fun γ => γ 1)≤C • hausdorff n X) : + RenyiTransportNode n X := by + have he (t : Time) : ∀ᵐ x ∂(ρ : Measure C(Time,X)).map (fun γ => γ t), dist x p≤R := by + apply (ae_map_iff (measurable_path_eval t).aemeasurable measurableSet_closedBall).mpr + exact hs.mono fun _ hγ => hγ t + exact ⟨(ρ : Measure C(Time,X)).map (fun γ => γ 0), + (ρ : Measure C(Time,X)).map (fun γ => γ 1),inferInstance,inferInstance, + p,R,hR,he 0,he 1,C,hC,h0,h1,2*R,mul_nonneg (by norm_num) hR, + optimalPlanDistanceBound_of_bounded _ _ p (he 0) (he 1)⟩ + +omit [SeparableSpace X] in +theorem bounded_recovery_endpoint_bound + (n : ℕ) (ρ τ : Measure C(Time,X)) + (hle : τ≤(2 : ℝ≥0∞) • ρ) {C : ℝ≥0∞} (t : Time) + (hc : ρ.map (fun γ => γ t)≤C • hausdorff n X) : + τ.map (fun γ => γ t)≤((2 : ℝ≥0∞)*C) • hausdorff n X := by + have hh := Measure.map_mono hle (measurable_path_eval t) + rw [Measure.map_smul _ (measurable_path_eval t).aemeasurable] at hh + intro B + exact (hh B).trans (by + change (2 : ℝ≥0∞)*(ρ.map (fun γ => γ t)) B≤((2 : ℝ≥0∞)*C)*(hausdorff n X) B + have hcb : (ρ.map (fun γ => γ t)) B≤C*(hausdorff n X) B := hc B + exact (mul_le_mul' (le_refl (2 : ℝ≥0∞)) hcb).trans_eq (mul_assoc 2 C _).symm) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/BoundedEndpointPlan.lean b/lean/OAI/Geometry/RCD/Transport/BoundedEndpointPlan.lean new file mode 100644 index 0000000000000000000000000000000000000000..f1f7aa4406f6e653cf663803c2d558852e83e821 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/BoundedEndpointPlan.lean @@ -0,0 +1,66 @@ +import OAI.Geometry.RCD.Harmonic.DefectSegment + +namespace OAI + +/-! # Actual compressed optimal plans between positive bounded endpoint sets -/ + +open Set Filter Metric MeasureTheory +open scoped ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem NoncollapsedRCD.bounded_endpoint_plan {n : ℕ} (hX : NoncollapsedRCD 0 n X) + (hn : 2 ≤ n) (p : X) {R : ℝ} (hR : 0 < R) {A B : Set X} + (hA : MeasurableSet A) (hB : MeasurableSet B) + (hA0 : hausdorff n X A ≠ 0) (hB0 : hausdorff n X B ≠ 0) + (hsA : A ⊆ closedBall p R) (hsB : B ⊆ closedBall p R) : + ∃ π : Measure C(Time,X), IsProbabilityMeasure π ∧ ∃ C : ℝ≥0∞, C ≠ ∞ ∧ + (∀ᵐ γ ∂π, IsGeodesic γ) ∧ + IsOptimalCoupling (π.map (fun γ => γ 0)) (π.map (fun γ => γ 1)) + (π.map (fun γ => (γ 0,γ 1))) ∧ + (∀ t : Time, π.map (fun γ => γ t) ≤ C • hausdorff n X) ∧ + (∀ᵐ γ ∂π, γ 0 ∈ A ∧ γ 1 ∈ B ∧ ∀ t : Time, dist (γ t) p ≤ 3*R) ∧ + (∀ᵐ x ∂π.map (fun γ => γ 0), dist x p ≤ R) ∧ + (∀ᵐ x ∂π.map (fun γ => γ 1), dist x p ≤ R) := by + let μ := hausdorff n X + let C : ℝ≥0∞ := max (μ A)⁻¹ (μ B)⁻¹ + have hAt : μ A ≠ ∞ := (hX.finiteOnBounded A (isBounded_closedBall.subset hsA)).ne + have hBt : μ B ≠ ∞ := (hX.finiteOnBounded B (isBounded_closedBall.subset hsB)).ne + have hC : C ≠ ∞ := max_ne_top (ENNReal.inv_ne_top.mpr hA0) (ENNReal.inv_ne_top.mpr hB0) + let := uniformOn_probability μ A hA0 hAt + let := uniformOn_probability μ B hB0 hBt + have hbA : ∀ᵐ x ∂uniformOn μ A, dist x p ≤ R := + (uniformOn_ae_mem μ A hA).mono fun _ hx => hsA hx + have hbB : ∀ᵐ x ∂uniformOn μ B, dist x p ≤ R := + (uniformOn_ae_mem μ B hB).mono fun _ hx => hsB hx + obtain ⟨π,hπ,hgeo,hopt,_hi,hall⟩ := hX.exists_bounded_entropy_plan 0 n hn + (uniformOn μ A) (uniformOn μ B) hC (uniformOn_le_scaled μ A (le_max_left _ _)) + (uniformOn_le_scaled μ B (le_max_right _ _)) p hR.le hbA hbB + let := hπ + have hend := optimalPlan_endpoints (uniformOn μ A) (uniformOn μ B) π hopt + have hpaths := optimal_geodesic_plan_bounded (uniformOn μ A) (uniformOn μ B) + π hgeo hopt p hR.le hbA hbB + have hstart : ∀ᵐ γ ∂π, γ 0 ∈ A := by + apply ae_of_ae_map (measurable_path_eval 0).aemeasurable + rw [hend.1] + exact uniformOn_ae_mem μ A hA + have hfinish : ∀ᵐ γ ∂π, γ 1 ∈ B := by + apply ae_of_ae_map (measurable_path_eval 1).aemeasurable + rw [hend.2] + exact uniformOn_ae_mem μ B hB + refine ⟨π,hπ,compressionBudget 0 n (2*R) C,compressionBudget_ne_top 0 n _ hC,hgeo,?_, + (fun t => (hall t).1),?_,?_,?_⟩ + · rw [hend.1,hend.2] + exact hopt + · filter_upwards [hstart,hfinish,hpaths] with γ ha hb hg + exact ⟨ha,hb,hg.2⟩ + · rwa [hend.1] + · rwa [hend.2] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/BoundedEntropyClosed.lean b/lean/OAI/Geometry/RCD/Transport/BoundedEntropyClosed.lean new file mode 100644 index 0000000000000000000000000000000000000000..e9a04230179afab2d8644069aa047f2db3281602 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/BoundedEntropyClosed.lean @@ -0,0 +1,42 @@ +import OAI.Geometry.RCD.Transport.BoundedPlanEntropyBounds + +namespace OAI + +/-! # Closure of entropy bounds for bounded compressed time marginals -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped ENNReal Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] [SeparableSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem bounded_entropy_time_limit (μ : Measure X) [SigmaFinite μ] + {B : Set X} (hB : MeasurableSet B) [IsFiniteMeasure (μ.restrict B)] + (π : Measure C(Time,X)) [IsProbabilityMeasure π] + {C : ℝ≥0∞} (hC : C ≠ ∞) + (hc : ∀ t : Time, π.map (fun γ => γ t) ≤ C • μ) + (hs : ∀ t : Time, ∀ᵐ x ∂π.map (fun γ => γ t), x ∈ B) + (a : Time → ℝ) (ha : Continuous a) {u : ℕ → Time} {t : Time} + (hu : Tendsto u atTop (𝓝 t)) + (hb : ∀ j, boltzmannEntropy μ (π.map (fun γ => γ (u j))) ≤ a (u j)) : + boltzmannEntropy μ (π.map (fun γ => γ t)) ≤ a t := by + let piProb : ProbabilityMeasure C(Time,X) := ⟨π,inferInstance⟩ + let ν := fun s : Time => piProb.map (fun γ => γ s) + have hν : Continuous ν := continuous_time_marginals piProb + have hclosed := isClosed_compressedKLConstraint (μ.restrict B) hC ν + (fun s => a s+(μ.restrict B).real univ-1) hν + ((ha.add continuous_const).sub continuous_const) + have hmem : ∀ j, compressedKLConstraint (μ.restrict B) C (ν (u j)) + (a (u j)+(μ.restrict B).real univ-1) := by + intro j + exact (entropy_bound_localized_iff μ (ν (u j)) hB hC (hs _) (hc _) _).mp (hb j) + have ht := hclosed.mem_of_tendsto hu (Eventually.of_forall hmem) + exact (entropy_bound_localized_iff μ (ν t) hB hC (hs _) (hc _) _).mpr ht + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/BoundedEntropySemicontinuous.lean b/lean/OAI/Geometry/RCD/Transport/BoundedEntropySemicontinuous.lean new file mode 100644 index 0000000000000000000000000000000000000000..e5a1cd8bc45d4b5fbed99b950b5ad4907cd1ef2f --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/BoundedEntropySemicontinuous.lean @@ -0,0 +1,37 @@ +import OAI.Geometry.RCD.Transport.BoundedEntropyClosed + +namespace OAI + +/-! # Lower semicontinuity of entropy along a uniformly compressed bounded plan -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped ENNReal Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] [SeparableSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem bounded_entropy_lowerSemicontinuous (μ : Measure X) [SigmaFinite μ] + {B : Set X} (hB : MeasurableSet B) [IsFiniteMeasure (μ.restrict B)] + (π : Measure C(Time,X)) [IsProbabilityMeasure π] + {C : ℝ≥0∞} (hC : C ≠ ∞) + (hc : ∀ t : Time, π.map (fun γ => γ t) ≤ C • μ) + (hs : ∀ t : Time, ∀ᵐ x ∂π.map (fun γ => γ t), x ∈ B) : + LowerSemicontinuous (fun t : Time => boltzmannEntropy μ (π.map (fun γ => γ t))) := by + let piProb : ProbabilityMeasure C(Time,X) := ⟨π,inferInstance⟩ + let ν := fun y : Time×ℝ => piProb.map (fun γ => γ y.1) + have hν : Continuous ν := (continuous_time_marginals piProb).comp continuous_fst + have hclosed := isClosed_compressedKLConstraint (μ.restrict B) hC ν + (fun y => y.2+(μ.restrict B).real univ-1) hν + ((continuous_snd.add continuous_const).sub continuous_const) + apply lowerSemicontinuous_iff_isClosed_epigraph.mpr + convert hclosed using 1 + ext y + exact entropy_bound_localized_iff μ (ν y) hB hC (hs y.1) (hc y.1) y.2 + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/BoundedGeodesicPlan.lean b/lean/OAI/Geometry/RCD/Transport/BoundedGeodesicPlan.lean new file mode 100644 index 0000000000000000000000000000000000000000..f07f2ae990e999340a13486b7baf88629aebba7d --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/BoundedGeodesicPlan.lean @@ -0,0 +1,41 @@ +import OAI.Analysis.RCDHeat.CompressionIntegral + +namespace OAI + +/-! # A common bounded region for a plan with bounded endpoints -/ + +open Set Filter MeasureTheory Metric +open scoped ENNReal Topology +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +omit [MeasurableSpace X] [BorelSpace X] in +theorem geodesic_plan_ball_support (π : Measure C(Time,X)) + (hgeo : ∀ᵐ γ ∂π, IsGeodesic γ) (p : X) {R : ℝ} + (h0 : ∀ᵐ γ ∂π, dist p (γ 0) ≤ R) (h1 : ∀ᵐ γ ∂π, dist p (γ 1) ≤ R) : + ∀ᵐ γ ∂π, ∀ s : Time, γ s ∈ closedBall p (3*R) := by + filter_upwards [hgeo,h0,h1] with γ hγ h0 h1 + intro s + have hlength : dist (γ 0) (γ 1) ≤ 2*R := by + have hh := dist_triangle (γ 0) p (γ 1) + rw [dist_comm (γ 0) p] at hh + linarith + have hdist : dist (γ s) (γ 0) = (s:ℝ)*dist (γ 0) (γ 1) := by + simpa [abs_of_nonneg s.property.1] using hγ s 0 + rw [mem_closedBall,dist_comm] + have hh := dist_triangle p (γ 0) (γ s) + rw [dist_comm (γ 0) (γ s),hdist] at hh + have hmul := mul_le_mul_of_nonneg_right s.property.2 (dist_nonneg (x := γ 0) (y := γ 1)) + linarith + +theorem geodesic_plan_eval_ball (π : Measure C(Time,X)) + (hgeo : ∀ᵐ γ ∂π, IsGeodesic γ) (p : X) {R : ℝ} + (h0 : ∀ᵐ γ ∂π, dist p (γ 0) ≤ R) (h1 : ∀ᵐ γ ∂π, dist p (γ 1) ≤ R) + (s : Time) : ∀ᵐ x ∂π.map (fun γ => γ s), x ∈ closedBall p (3*R) := by + apply (ae_map_iff (measurable_path_eval s).aemeasurable measurableSet_closedBall).mpr + exact (geodesic_plan_ball_support π hgeo p h0 h1).mono fun γ hγ => hγ s + +end RegularPointCoordinates + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/BoundedOptimalRecovery.lean b/lean/OAI/Geometry/RCD/Transport/BoundedOptimalRecovery.lean new file mode 100644 index 0000000000000000000000000000000000000000..1d5b97f37c065443436a07c3e59eea4a55c2529a --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/BoundedOptimalRecovery.lean @@ -0,0 +1,58 @@ +import OAI.Geometry.RCD.Transport.DominatedOptimalPlan + +namespace OAI + +/-! # Bounded optimal recovery of an arbitrary finite-cost geodesic plan + +Cutting off the original plan preserves optimality for the resulting +endpoint marginals. All integrable moments converge along the recovery. +-/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped ENNReal Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [SeparableSpace X] +attribute [local instance] pathBorel pathBorelSpace + +omit [SeparableSpace X] in +theorem bounded_optimal_recovery + (ρ : ProbabilityMeasure C(Time,X)) (p : X) + (hg : ∀ᵐ γ ∂(ρ : Measure C(Time,X)), IsGeodesic γ) + (hp : IsOptimalCoupling ((ρ : Measure C(Time,X)).map (fun γ => γ 0)) + ((ρ : Measure C(Time,X)).map (fun γ => γ 1)) + ((ρ : Measure C(Time,X)).map (fun γ => (γ 0,γ 1)))) + (hc : transportCost ((ρ : Measure C(Time,X)).map (fun γ => (γ 0,γ 1)))≠∞) : + ∃ (ρs : ℕ → ProbabilityMeasure C(Time,X)) (R : ℕ → ℝ), + (∀ j, 0≤R j) ∧ + (∀ j, (ρs j : Measure C(Time,X))≤(2 : ℝ≥0∞) • (ρ : Measure C(Time,X))) ∧ + (∀ j, ∀ᵐ γ ∂(ρs j : Measure C(Time,X)), IsGeodesic γ) ∧ + (∀ j, ∀ᵐ γ ∂(ρs j : Measure C(Time,X)), ∀ t : Time, dist (γ t) p≤R j) ∧ + (∀ j, IsOptimalCoupling ((ρs j : Measure C(Time,X)).map (fun γ => γ 0)) + ((ρs j : Measure C(Time,X)).map (fun γ => γ 1)) + ((ρs j : Measure C(Time,X)).map (fun γ => (γ 0,γ 1)))) ∧ + Tendsto ρs atTop (𝓝 ρ) ∧ + ∀ f : C(Time,X) → ℝ, Integrable f (ρ : Measure C(Time,X)) → + Tendsto (fun j => ∫γ,f γ ∂(ρs j : Measure C(Time,X))) + atTop (𝓝 (∫γ,f γ ∂(ρ : Measure C(Time,X)))) := by + obtain ⟨ρs,R,w,he,hw,hb,hl,hle,hR,hlim,hint⟩ := + weighted_probability_recovery ρ (ContinuousMap.const Time p) + refine ⟨ρs,fun j => max (R j) 0,fun _ => le_max_right _ _,hle,?_,?_,?_,hlim,hint⟩ + · intro j + exact (hg.filter_mono Measure.smul_absolutelyContinuous.ae_le).filter_mono + (hle j).absolutelyContinuous.ae_le + · intro j + filter_upwards [hR j] with γ hγ + intro t + have hd := ContinuousMap.dist_apply_le_dist (f:=ContinuousMap.const Time p) (g:=γ) t + have ht : dist (γ t) p≤R j := by + simpa only [ContinuousMap.const_apply,dist_comm p (γ t)] using hd.trans hγ + exact ht.trans (le_max_left _ _) + · intro j + exact dominated_optimal_plan (ρ : Measure C(Time,X)) (ρs j : Measure C(Time,X)) hp hc (hle j) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/BoundedPathDistortion.lean b/lean/OAI/Geometry/RCD/Transport/BoundedPathDistortion.lean new file mode 100644 index 0000000000000000000000000000000000000000..025c89239bbe1ca9718ffe27720f4a3070c3b5ec --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/BoundedPathDistortion.lean @@ -0,0 +1,41 @@ +import OAI.Geometry.RCD.Transport.ContinuousLengthDistortion +import OAI.Geometry.RCD.Sobolev.WeakEndpointWeights + +namespace OAI + +/-! # Reduced distortion as a bounded continuous path test -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped ENNReal NNReal Topology BoundedContinuousFunction +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] + +def pathDistortion (K N t : ℝ) (hK : K≤0) (hN : 1 (sigma K N t (dist (γ 0) (γ 1))).toReal,by + have hh : Continuous (fun γ : C(Time,X) => sigma K N t (dist (γ 0) (γ 1))) := + (continuous_sigma_nonpos_length hK hN ht ht1).comp + ((continuous_eval_const 0).nndist (continuous_eval_const 1)) + exact continuous_iff_continuousAt.mpr (fun γ => + (ENNReal.continuousAt_toReal (sigma_nonpos_ne_top (t:=t) + (d:=dist (γ 0) (γ 1)) hK hN dist_nonneg)).comp + (f:=fun η : C(Time,X) => sigma K N t (dist (η 0) (η 1))) hh.continuousAt)⟩ + 1 (by + intro γ η + have hb (ζ : C(Time,X)) : 0≤(sigma K N t (dist (ζ 0) (ζ 1))).toReal ∧ + (sigma K N t (dist (ζ 0) (ζ 1))).toReal≤1 := by + refine ⟨ENNReal.toReal_nonneg,?_⟩ + exact (ENNReal.toReal_mono ENNReal.ofReal_ne_top + (sigma_nonpos_le_time hK hN ht ht1 dist_nonneg)).trans + (by simpa only [ENNReal.toReal_ofReal ht] using ht1) + change |(sigma K N t (dist (γ 0) (γ 1))).toReal- + (sigma K N t (dist (η 0) (η 1))).toReal|≤1 + exact abs_le.mpr ⟨by linarith [(hb γ).1,(hb η).2],by linarith [(hb γ).2,(hb η).1]⟩) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/BoundedPlanEntropyBounds.lean b/lean/OAI/Geometry/RCD/Transport/BoundedPlanEntropyBounds.lean new file mode 100644 index 0000000000000000000000000000000000000000..c9f3afefbfca0871ba5f091f27d0f4267f444889 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/BoundedPlanEntropyBounds.lean @@ -0,0 +1,44 @@ +import OAI.Geometry.RCD.Transport.BoundedPlanEntropyChord +import OAI.Geometry.RCD.Transport.BoltzmannSupportBounds + +namespace OAI + +/-! # Explicit entropy bounds for a compressed optimal plan -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped ENNReal NNReal Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] [SeparableSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem bounded_plan_entropy_bounds (μ : Measure X) [SigmaFinite μ] [IsLocallyFiniteMeasure μ] + (p : X) {R : ℝ} (hR : 0 ≤ R) + (π : Measure C(Time,X)) [IsProbabilityMeasure π] (hg : ∀ᵐ γ ∂π, IsGeodesic γ) + (hp : IsOptimalCoupling (π.map (fun γ => γ 0)) (π.map (fun γ => γ 1)) + (π.map (fun γ => (γ 0,γ 1)))) + {C : ℝ} (hC : 0 < C) (hc : ∀ t : Time, π.map (fun γ => γ t) ≤ ENNReal.ofReal C • μ) + (hs₀ : ∀ᵐ x ∂π.map (fun γ => γ 0), dist x p ≤ R) + (hs₁ : ∀ᵐ x ∂π.map (fun γ => γ 1), dist x p ≤ R) (t : Time) : + -Real.log (μ.real (closedBall p (3*R))) ≤ boltzmannEntropy μ (π.map (fun γ => γ t)) ∧ + boltzmannEntropy μ (π.map (fun γ => γ t)) ≤ Real.log C ∧ + Integrable (fun x => ((π.map (fun γ => γ t)).rnDeriv μ x).toReal * + Real.log ((π.map (fun γ => γ t)).rnDeriv μ x).toReal) μ := by + let : IsFiniteMeasure (μ.restrict (closedBall p (3*R))) := + isFiniteMeasure_restrict.mpr (isCompact_closedBall p (3*R)).measure_lt_top.ne + have hstay : ∀ᵐ x ∂π.map (fun γ => γ t), x ∈ closedBall p (3*R) := by + apply (ae_map_iff (measurable_path_eval t).aemeasurable measurableSet_closedBall).mpr + exact (optimal_geodesic_plan_bounded _ _ π hg hp p hR hs₀ hs₁).mono fun γ hγ => hγ.2 t + have he := entropy_integrable_of_bounded_support μ (π.map (fun γ => γ t)) + ENNReal.ofReal_ne_top (hc t) measurableSet_closedBall hstay + have ha : π.map (fun γ => γ t) ≪ μ.restrict (closedBall p (3*R)) := + Measure.absolutelyContinuous_of_le_smul ((compression_iff_localized μ _ hstay _).mp (hc t)) + exact ⟨boltzmannEntropy_ge_neg_log_support μ _ measurableSet_closedBall ha he, + boltzmannEntropy_le_log_density μ _ hC (hc t) he,he⟩ + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/BoundedPlanEntropyChord.lean b/lean/OAI/Geometry/RCD/Transport/BoundedPlanEntropyChord.lean new file mode 100644 index 0000000000000000000000000000000000000000..fbab33c301baf4e8f85fb4b0c3f27d5c68dae71a --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/BoundedPlanEntropyChord.lean @@ -0,0 +1,46 @@ +import OAI.Geometry.RCD.Transport.SegmentEntropyConvexity + +namespace OAI + +/-! # Uniform curvature error on each bounded transport subinterval -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped ENNReal NNReal Topology +noncomputable section +namespace RegularPointCoordinates.NoncollapsedRCD +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] [SeparableSpace X] {K : ℝ} {n : ℕ} + [IsLocallyFiniteMeasure (hausdorff n X)] (hX : NoncollapsedRCD K n X) +include hX +attribute [local instance] pathBorel pathBorelSpace + +theorem bounded_plan_entropy_chord (hn : 2 ≤ n) (p : X) {R : ℝ} (hR : 0 ≤ R) + (π : Measure C(Time,X)) [IsProbabilityMeasure π] (hg : ∀ᵐ γ ∂π, IsGeodesic γ) + (hp : IsOptimalCoupling (π.map (fun γ => γ 0)) (π.map (fun γ => γ 1)) + (π.map (fun γ => (γ 0,γ 1)))) + {C : ℝ≥0} (hcomp : ∀ t : Time, π.map (fun γ => γ t) ≤ ENNReal.ofReal C • hausdorff n X) + (hs₀ : ∀ᵐ x ∂π.map (fun γ => γ 0), dist x p ≤ R) + (hs₁ : ∀ᵐ x ∂π.map (fun γ => γ 1), dist x p ≤ R) (s t r : Time) : + boltzmannEntropy (hausdorff n X) (π.map (fun γ => γ (timeSegment s t r))) ≤ + (1-(r:ℝ))*boltzmannEntropy (hausdorff n X) (π.map (fun γ => γ s))+ + (r:ℝ)*boltzmannEntropy (hausdorff n X) (π.map (fun γ => γ t))+ + (|K|/2)*(2*R)^2*(r:ℝ)*(1-(r:ℝ))*|(s:ℝ)-(t:ℝ)|^2 := by + have h := hX.compressed_plan_segment_entropy hn p hR π hg hp hcomp hs₀ hs₁ s t r + have hW : (wassersteinSq (π.map (fun γ => γ 0)) (π.map (fun γ => γ 1))).toReal ≤ (2*R)^2 := by + simpa only [dist_self,zero_add] using wassersteinSq_ball_bound p p hR hs₀ hs₁ + let W := (wassersteinSq (π.map (fun γ => γ 0)) (π.map (fun γ => γ 1))).toReal + have hKW : -K*W ≤ |K| * (2*R)^2 := + (mul_le_mul_of_nonneg_right (neg_le_abs K) ENNReal.toReal_nonneg).trans + (mul_le_mul_of_nonneg_left hW (abs_nonneg K)) + have hr : 0 ≤ (r:ℝ)*(1-(r:ℝ))*|(s:ℝ)-(t:ℝ)|^2/2 := by + exact div_nonneg (mul_nonneg (mul_nonneg r.property.1 (sub_nonneg.mpr r.property.2)) + (sq_nonneg _)) (by norm_num) + have hcost := mul_le_mul_of_nonneg_left hKW hr + dsimp only [W] at hcost + nlinarith only [h,hcost] + +end RegularPointCoordinates.NoncollapsedRCD + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/BranchEntropyDeficit.lean b/lean/OAI/Geometry/RCD/Transport/BranchEntropyDeficit.lean new file mode 100644 index 0000000000000000000000000000000000000000..e63f059d1166ee4d656283e8a55ccab0c29fd912 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/BranchEntropyDeficit.lean @@ -0,0 +1,62 @@ +import Mathlib.Analysis.SpecialFunctions.Log.NegMulLog +import Mathlib.Tactic + +namespace OAI + +/-! # The quantitative entropy deficit of a separated branch + +This is the scalar rearrangement in the branching argument of Rajala--Sturm, +arXiv:1207.6754, proof of Theorem 1.1, pp. 10--11. The three chord inequalities +retain the curvature error and the separation entropy explicitly. +-/ + +open Set Filter +open scoped Topology +namespace RegularPointCoordinates + +theorem branch_entropy_deficit {t ε A M E U D H L : ℝ} + (ht0 : 0≤t) (ht1 : t≤1) + (hmean : H=(U+D)/2-L) + (hfirst : (t+ε)*E≤ε*M+t*H+A*t*ε*(t+ε)) + (hup : (1-t)*U≤(1-t-ε)*E+ε*M+A*ε*(1-t-ε)*(1-t)) + (hdown : (1-t)*D≤(1-t-ε)*E+ε*M+A*ε*(1-t-ε)*(1-t)) : + t*(1-t)*L≤ε*(M-E+A*t*(1-t)) := by + have hm : (1-t)*((U+D)/2)≤(1-t-ε)*E+ε*M+A*ε*(1-t-ε)*(1-t) := by + linarith only [hup,hdown] + have h₀ := mul_le_mul_of_nonneg_left hfirst (sub_nonneg.mpr ht1) + have h₁ := mul_le_mul_of_nonneg_left hm ht0 + rw [hmean] at h₀ + nlinarith only [h₀,h₁] + +theorem branch_entropy_deficit_of_lower_bound {t ε A M E U D H L B : ℝ} + (ht0 : 0≤t) (ht1 : t≤1) (hε : 0≤ε) (hB : B≤E) + (hmean : H=(U+D)/2-L) + (hfirst : (t+ε)*E≤ε*M+t*H+A*t*ε*(t+ε)) + (hup : (1-t)*U≤(1-t-ε)*E+ε*M+A*ε*(1-t-ε)*(1-t)) + (hdown : (1-t)*D≤(1-t-ε)*E+ε*M+A*ε*(1-t-ε)*(1-t)) : + t*(1-t)*L≤ε*(M-B+A*t*(1-t)) := by + exact (branch_entropy_deficit ht0 ht1 hmean hfirst hup hdown).trans + (mul_le_mul_of_nonneg_left (by linarith) hε) + +theorem tendsto_branch_entropy_budget (C B A : ℝ) : + Tendsto (fun ε : ℝ => ε*(C-Real.log ε-B+A)) (𝓝[>] 0) (𝓝 0) := by + have hlin : Tendsto (fun ε : ℝ => ε*(C-B+A)) (𝓝[>] 0) (𝓝 0) := by + have hid : Tendsto (fun ε : ℝ => ε) (𝓝[>] 0) (𝓝 0) := + continuousAt_id.tendsto.mono_left nhdsWithin_le_nhds + simpa using hid.mul_const (C-B+A) + have hlog : Tendsto (fun ε : ℝ => ε*Real.log ε) (𝓝[>] 0) (𝓝 0) := by + simpa using (Real.continuous_mul_log.continuousAt (x:=0)).tendsto.mono_left + (nhdsWithin_le_nhds (s:=Ioi 0)) + have h := hlin.sub hlog + simp only [sub_zero] at h + convert h using 1 + funext ε + ring + +theorem exists_small_branch_budget {c : ℝ} (hc : 0] 0, ε*(C-Real.log ε-B+A) (S-T)/(N:ℝ)) atTop (𝓝[>] 0) := by + apply tendsto_nhdsWithin_iff.mpr + refine ⟨tendsto_const_div_atTop_nhds_zero_nat (S-T),?_⟩ + filter_upwards [eventually_gt_atTop 0] with N hN + exact div_pos (sub_pos.mpr hTS) (Nat.cast_pos.mpr hN) + have hsmall := hε.eventually (exists_small_branch_budget hL (Real.log (2*C/c)) B A) + obtain ⟨N,hbudget,hN⟩ := (hsmall.and (eventually_gt_atTop 0)).exists + refine ⟨N,hN,?_⟩ + intro s m hTs hsS hm hbad + let ε := (S-T)/(N:ℝ) + have hε0 : 0 < ε := div_pos (sub_pos.mpr hTS) (Nat.cast_pos.mpr hN) + have hm0 : 0 < m := lt_of_lt_of_le (mul_pos hc hε0) hm + have hs0 : 0 ≤ s := hT.le.trans hTs + have hs1 : s ≤ 1 := hsS.trans hS.le + have hlower : T*(1-S) ≤ s*(1-s) := + mul_le_mul hTs (sub_le_sub_left hsS 1) (sub_nonneg.mpr hS.le) hs0 + have hupper : s*(1-s) ≤ 1 := by nlinarith [sq_nonneg s] + have hratio : 2*C/m ≤ 2*C/(c*ε) := + div_le_div_of_nonneg_left (mul_nonneg (by norm_num) hC.le) (mul_pos hc hε0) hm + have hlog : Real.log (2*C/m) ≤ Real.log (2*C/c)-Real.log ε := by + have h := Real.log_le_log (div_pos (mul_pos (by norm_num) hC) hm0) hratio + rw [Real.log_div (mul_pos (by norm_num) hC).ne' (mul_pos hc hε0).ne', + Real.log_mul hc.ne' hε0.ne'] at h + rw [Real.log_div (mul_pos (by norm_num) hC).ne' hc.ne'] + linarith + have hAs : A*s*(1-s) ≤ A := by + have h := mul_le_mul_of_nonneg_left hupper hA + simpa only [mul_assoc,mul_one] using h + have hbound : ε*(Real.log (2*C/m)-B+A*s*(1-s)) ≤ + ε*(Real.log (2*C/c)-Real.log ε-B+A) := + mul_le_mul_of_nonneg_left (by linarith) hε0.le + have hstart := mul_le_mul_of_nonneg_right hlower (show 0 ≤ Real.log 2 from Real.log_nonneg (by norm_num)) + exact (not_lt_of_ge (hstart.trans (hbad.trans hbound))) hbudget + +end RegularPointCoordinates + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/BrokenGeodesicCost.lean b/lean/OAI/Geometry/RCD/Transport/BrokenGeodesicCost.lean new file mode 100644 index 0000000000000000000000000000000000000000..8113e2af63fdb9092d123e2f6583ddd2020564f9 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/BrokenGeodesicCost.lean @@ -0,0 +1,42 @@ +import Mathlib.Analysis.SpecialFunctions.Pow.Real +import Mathlib.Tactic + +namespace OAI + +/-! # The two-leg energy and its equality case -/ + +namespace RegularPointCoordinates + +theorem two_leg_cost_identity (A B C t : ℝ) (ht : 0 < t) (ht1 : t < 1) : + t*(1-t)*(A^2/t+B^2/(1-t)-C^2) = + ((1-t)*A-t*B)^2+t*(1-t)*((A+B)^2-C^2) := by + field_simp [ht.ne', (sub_pos.mpr ht1).ne'] + ring + +theorem two_leg_cost_nonneg {A B C t : ℝ} (hA : 0 ≤ A) (hB : 0 ≤ B) (hC : 0 ≤ C) + (htriangle : C ≤ A+B) (ht : 0 < t) (ht1 : t < 1) : + 0 ≤ A^2/t+B^2/(1-t)-C^2 := by + have htime : 0 < t*(1-t) := mul_pos ht (sub_pos.mpr ht1) + have hgap : 0 ≤ (A+B)^2-C^2 := sub_nonneg.mpr ((sq_le_sq₀ hC (add_nonneg hA hB)).mpr htriangle) + apply nonneg_of_mul_nonneg_left _ htime + rw [mul_comm] + rw [two_leg_cost_identity A B C t ht ht1] + exact add_nonneg (sq_nonneg _) (mul_nonneg htime.le hgap) + +theorem two_leg_cost_zero {A B C t : ℝ} (hA : 0 ≤ A) (hB : 0 ≤ B) (hC : 0 ≤ C) + (htriangle : C ≤ A+B) (ht : 0 < t) (ht1 : t < 1) + (he : A^2/t+B^2/(1-t)-C^2=0) : A=t*C ∧ B=(1-t)*C := by + have htime : 0 < t*(1-t) := mul_pos ht (sub_pos.mpr ht1) + have hgap : 0 ≤ (A+B)^2-C^2 := sub_nonneg.mpr ((sq_le_sq₀ hC (add_nonneg hA hB)).mpr htriangle) + have hid := two_leg_cost_identity A B C t ht ht1 + rw [he,mul_zero] at hid + have hz := (add_eq_zero_iff_of_nonneg (sq_nonneg _) (mul_nonneg htime.le hgap)).mp hid.symm + have hlin : (1-t)*A-t*B=0 := sq_eq_zero_iff.mp hz.1 + have hsq : (A+B)^2-C^2=0 := (mul_eq_zero.mp hz.2).resolve_left htime.ne' + have hsum : A+B=C := by nlinarith + rw [← hsum] + constructor <;> nlinarith only [hlin] + +end RegularPointCoordinates + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/CalibratedRCDPlan.lean b/lean/OAI/Geometry/RCD/Transport/CalibratedRCDPlan.lean new file mode 100644 index 0000000000000000000000000000000000000000..4a76df1750d85cae3b0363d6c6a425d8bf15342e --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/CalibratedRCDPlan.lean @@ -0,0 +1,55 @@ +import OAI.Geometry.RCD.Heat.OptimalHeatPlanCalibration + +namespace OAI + +/-! # An actual bounded-compression RCD plan calibrated by the heat limit -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped NNReal ENNReal Topology +noncomputable section +namespace RegularPointCoordinates.NoncollapsedRCD.CompactHeatScalingData +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] {K : ℝ} {n : ℕ} {hX : NoncollapsedRCD K n X} + {hn : 2 ≤ n} {p : X} [SeparableSpace X] + [IsLocallyFiniteMeasure (hausdorff n X)] [(hausdorff n X).Regular] + {S T : Set X} [CompactSpace S] [CompactSpace T] + {μ : Measure S} {ν : Measure T} [IsProbabilityMeasure μ] [IsProbabilityMeasure ν] + {ε : ℕ → ℝ} {hε : ∀ k, 0 < ε k} + (D : hX.CompactHeatScalingData hn p μ ν ε hε) +attribute [local instance] pathBorel pathBorelSpace + +theorem exists_calibrated_plan (a₀ : S) (b₀ : T) (hK : K ≤ 0) + (hε1 : ∀ k, ε k ≤ 1) (hε0 : Tendsto ε atTop (𝓝 0)) {R : ℝ} (hR : 0 ≤ R) + (hdS : ∀ a : S, dist p a ≤ R) (hdT : ∀ b : T, dist p b ≤ R) + {C : ℝ≥0∞} (hC : C ≠ ∞) + (hμ : μ.map Subtype.val ≤ C • hausdorff n X) + (hν : ν.map Subtype.val ≤ C • hausdorff n X) : + ∃ (π : Measure C(Time,X)) (A : ℝ), IsProbabilityMeasure π ∧ + (∀ᵐ γ ∂π, IsGeodesic γ) ∧ + IsOptimalCoupling (μ.map Subtype.val) (ν.map Subtype.val) (π.map (fun γ => (γ 0,γ 1))) ∧ + Integrable (fun γ : C(Time,X) => dist (γ 0) (γ 1)^2) π ∧ + (∀ t : Time, π.map (fun γ => γ t) ≤ compressionBudget K n (2*R) C • hausdorff n X) ∧ + ∀ᵐ γ ∂π, ∀ s : Time, 0 < (s : ℝ) → (s : ℝ) < 1 → + D.forward.potential ((s : ℝ)/2) (γ s)= + (D.backward.potential (1/2) a₀-D.backward.potential (1/2) (γ 0))- + (s : ℝ)*dist (γ 0) (γ 1)^2-A := by + have hS : MeasurableSet S := (isCompact_iff_compactSpace.mpr inferInstance).isClosed.measurableSet + have hT : MeasurableSet T := (isCompact_iff_compactSpace.mpr inferInstance).isClosed.measurableSet + have hs0 : ∀ᵐ x ∂μ.map Subtype.val, dist x p ≤ R := + (MeasurableEmbedding.subtype_coe hS).ae_map_iff.mpr (Eventually.of_forall fun a => by + rw [dist_comm] + exact hdS a) + have hs1 : ∀ᵐ x ∂ν.map Subtype.val, dist x p ≤ R := + (MeasurableEmbedding.subtype_coe hT).ae_map_iff.mpr (Eventually.of_forall fun b => by + rw [dist_comm] + exact hdT b) + obtain ⟨π,hπ,hgeo,hopt,hi,hall⟩ := hX.exists_bounded_entropy_plan K n hn + (μ.map Subtype.val) (ν.map Subtype.val) hC hμ hν p hR hs0 hs1 + obtain ⟨A,hA⟩ := D.optimal_plan_calibration a₀ b₀ hK hε1 hε0 hR hdS hdT π hgeo hopt + exact ⟨π,A,hπ,hgeo,hopt,hi,fun t => (hall t).1,hA⟩ + +end RegularPointCoordinates.NoncollapsedRCD.CompactHeatScalingData + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/CanonicalRenyiConstruction.lean b/lean/OAI/Geometry/RCD/Transport/CanonicalRenyiConstruction.lean new file mode 100644 index 0000000000000000000000000000000000000000..b74d922535b8b318276ee813d692f66065dfa05f --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/CanonicalRenyiConstruction.lean @@ -0,0 +1,100 @@ +import OAI.Geometry.RCD.Transport.CanonicalRenyiTree + +namespace OAI + +/-! # Realization of every finite level of the fixed midpoint tree -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped Topology ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [SeparableSpace X] [CompleteSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem exists_plan_following_renyi_tree {n : ℕ} {K q : ℝ} + (S : ∀ a : RenyiTransportNode n X, RenyiNodeSplit K q a) (m : ℕ) : + ∀ a : RenyiTransportNode n X, + ∃ π : Measure C(Time,X), IsProbabilityMeasure π ∧ + (∀ᵐ γ ∂π, IsGeodesic γ) ∧ IsOptimalCoupling a.left a.right (π.map (fun γ => (γ 0,γ 1))) ∧ + (∀ t∈dyadicGrid m, π.map (fun γ => γ t) ≤ + compressionBudget K n a.distance a.capacity • hausdorff n X) ∧ + FollowsRenyiTree S a (fun t => π.map (fun γ => γ t)) m := by + induction m with + | zero => + intro a + let s := S a + have he := optimalPlan_endpoints a.left a.right s.plan s.optimal + have hcap := le_compressionBudget K n a.distance a.capacity (Nat.cast_nonneg n) a.distance_nonneg + refine ⟨s.plan,s.probability,s.geodesic,s.optimal,?_,he⟩ + intro t ht + rcases ht with rfl | ht + · rw [he.1] + exact a.left_bound.trans (by intro B; exact mul_le_mul_left hcap _) + · have ht' : t=1 := ht + subst t + rw [he.2] + exact a.right_bound.trans (by intro B; exact mul_le_mul_left hcap _) + | succ m ih => + intro a + let : Nonempty X := ⟨a.center⟩ + let s := S a + let := s.probability + let b := s.leftNode + let c := s.rightNode + obtain ⟨π₀,hπ₀,hg₀,hp₀,hcap₀,hf₀⟩ := ih b + obtain ⟨π₁,hπ₁,hg₁,hp₁,hcap₁,hf₁⟩ := ih c + let := hπ₀ + let := hπ₁ + have he₀ := optimalPlan_endpoints b.left b.right π₀ hp₀ + have he₁ := optimalPlan_endpoints c.left c.right π₁ hp₁ + have hbc : b.right=c.left := rfl + obtain ⟨ρ,hρ,hρ₀,hρ₁⟩ := exists_matched_path_law π₀ π₁ (he₀.2.trans (hbc.trans he₁.1.symm)) + let := hρ + have he := optimalPlan_endpoints a.left a.right s.plan s.optimal + have hp : IsOptimalCoupling (s.plan.map (fun γ => γ 0)) (s.plan.map (fun γ => γ 1)) + (s.plan.map (fun γ => (γ 0,γ 1))) := by + rw [he.1,he.2] + exact s.optimal + let := a.left_probability + let := a.right_probability + have hm0 := finiteSecondMoment_of_bounded a.left a.center a.left_support + have hm1 := finiteSecondMoment_of_bounded a.right a.center a.right_support + have hfin := finite_second_moment_cost hm0 hm1 s.optimal.1 s.optimal.2.1 + have hp₀' : IsOptimalCoupling (s.plan.map (fun γ => γ 0)) + (s.plan.map (fun γ => γ midpointTime)) (π₀.map (fun γ => (γ 0,γ 1))) := by + rw [he.1] + exact hp₀ + have hp₁' : IsOptimalCoupling (s.plan.map (fun γ => γ midpointTime)) + (s.plan.map (fun γ => γ 1)) (π₁.map (fun γ => (γ 0,γ 1))) := by + rw [he.2] + exact hp₁ + obtain ⟨hpj,hgj,_⟩ := midpoint_matched_law_optimal s.plan s.geodesic hp hfin + π₀ π₁ hg₀ hg₁ hp₀' hp₁' ρ hρ₀ hρ₁ + rw [he.1,he.2] at hpj + refine ⟨ρ.map joinMatched,inferInstance,hgj,hpj,?_,?_,?_,?_,?_,?_⟩ + · intro t ht + rcases ht with ⟨u,hu,rfl⟩ | ⟨u,hu,rfl⟩ + · rw [joined_law_eval_lowerTime ρ π₀ hρ₀] + have hc := hcap₀ u hu + change π₀.map (fun γ => γ u) ≤ + compressionBudget K n (a.distance/2) (compressionStep K n a.distance a.capacity) • + hausdorff n X at hc + rwa [compressionBudget_halve] at hc + · rw [joined_law_eval_upperTime ρ π₁ hρ₁] + have hc := hcap₁ u hu + change π₁.map (fun γ => γ u) ≤ + compressionBudget K n (a.distance/2) (compressionStep K n a.distance a.capacity) • + hausdorff n X at hc + rwa [compressionBudget_halve] at hc + · exact (joined_law_eval_zero ρ π₀ hρ₀).trans he₀.1 + · exact (joined_law_eval_one ρ π₁ hρ₁).trans he₁.2 + · exact (joined_law_eval_midpoint ρ π₀ hρ₀).trans he₀.2 + · exact hf₀.congr (fun t => (joined_law_eval_lowerTime ρ π₀ hρ₀ t).symm) + · exact hf₁.congr (fun t => (joined_law_eval_upperTime ρ π₁ hρ₁ t).symm) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/CanonicalRenyiTree.lean b/lean/OAI/Geometry/RCD/Transport/CanonicalRenyiTree.lean new file mode 100644 index 0000000000000000000000000000000000000000..bd6609c2fcd58bb1aa3d8ce3d5d53f634a0f74ac --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/CanonicalRenyiTree.lean @@ -0,0 +1,62 @@ +import OAI.Geometry.RCD.Transport.RenyiNodeChildren + +namespace OAI + +/-! # Compatible finite restrictions of a fixed Rényi midpoint tree -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped Topology ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [SeparableSpace X] [CompleteSpace X] +attribute [local instance] pathBorel pathBorelSpace +variable {n : ℕ} {K q : ℝ} + +def FollowsRenyiTree (S : ∀ a : RenyiTransportNode n X, RenyiNodeSplit K q a) + (a : RenyiTransportNode n X) (ν : Time → Measure X) : ℕ → Prop + | 0 => ν 0=a.left ∧ ν 1=a.right + | m+1 => ν 0=a.left ∧ ν 1=a.right ∧ + ν midpointTime=(S a).plan.map (fun γ => γ midpointTime) ∧ + FollowsRenyiTree S (S a).leftNode (fun t => ν (lowerTime t)) m ∧ + FollowsRenyiTree S (S a).rightNode (fun t => ν (upperTime t)) m + +theorem FollowsRenyiTree.congr {S : ∀ a : RenyiTransportNode n X, RenyiNodeSplit K q a} + {a : RenyiTransportNode n X} {ν η : Time → Measure X} {m : ℕ} + (h : FollowsRenyiTree S a ν m) (he : ∀ t, ν t=η t) : FollowsRenyiTree S a η m := by + have hf := funext he + rwa [←hf] + +theorem FollowsRenyiTree.of_succ {S : ∀ a : RenyiTransportNode n X, RenyiNodeSplit K q a} + {m : ℕ} : ∀ {a : RenyiTransportNode n X} {ν : Time → Measure X}, + FollowsRenyiTree S a ν (m+1) → FollowsRenyiTree S a ν m := by + induction m with + | zero => intro a ν h; exact ⟨h.1,h.2.1⟩ + | succ m ih => + intro a ν h + exact ⟨h.1,h.2.1,h.2.2.1,ih h.2.2.2.1,ih h.2.2.2.2⟩ + +theorem FollowsRenyiTree.unique_grid + {S : ∀ a : RenyiTransportNode n X, RenyiNodeSplit K q a} {m : ℕ} : + ∀ {a : RenyiTransportNode n X} {ν η : Time → Measure X}, + FollowsRenyiTree S a ν m → FollowsRenyiTree S a η m → + ∀ t∈dyadicGrid m, ν t=η t := by + induction m with + | zero => + intro a ν η hν hη t ht + rcases ht with rfl | ht + · exact hν.1.trans hη.1.symm + · have he : t=1 := ht + subst t + exact hν.2.trans hη.2.symm + | succ m ih => + intro a ν η hν hη t ht + rcases ht with ⟨s,hs,rfl⟩ | ⟨s,hs,rfl⟩ + · exact ih hν.2.2.2.1 hη.2.2.2.1 s hs + · exact ih hν.2.2.2.2 hη.2.2.2.2 s hs + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/ClosedMidpointConvex.lean b/lean/OAI/Geometry/RCD/Transport/ClosedMidpointConvex.lean new file mode 100644 index 0000000000000000000000000000000000000000..a75da6d07bc526ecbbd1a45f982d3e7fb64a1596 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/ClosedMidpointConvex.lean @@ -0,0 +1,62 @@ +import Mathlib.Analysis.Convex.Topology +import Mathlib.Tactic +import Mathlib.Topology.Algebra.Module.Basic +import Mathlib.Topology.Order.Compact + +namespace OAI + +/-! # Closed midpoint sets and the local distance-coordinate image -/ + +open Set +noncomputable section +namespace RegularPointCoordinates + +theorem closed_midpoints_fill_interval {s : Set ℝ} (hs : IsClosed s) + (h0 : 0 ∈ s) (h1 : 1 ∈ s) + (hm : ∀ x ∈ s, ∀ y ∈ s, (x+y)/2 ∈ s) : Icc (0:ℝ) 1 ⊆ s := by + intro t ht + have hL : IsCompact (s ∩ Icc 0 t) := isCompact_Icc.inter_left hs + have hR : IsCompact (s ∩ Icc t 1) := isCompact_Icc.inter_left hs + obtain ⟨l,hl,hmax⟩ := hL.exists_isMaxOn ⟨0,h0,le_rfl,ht.1⟩ continuous_id.continuousOn + obtain ⟨u,hu,hmin⟩ := hR.exists_isMinOn ⟨1,h1,ht.2,le_rfl⟩ continuous_id.continuousOn + have hmid := hm l hl.1 u hu.1 + have hlu : l ≤ u := hl.2.2.trans hu.2.1 + have heq : l = u := by + by_cases hmt : (l+u)/2 ≤ t + · have hh := hmax ⟨hmid,by linarith [hl.2.1,hu.2.1],hmt⟩ + change (l+u)/2 ≤ l at hh + linarith + · have hh := hmin ⟨hmid,by linarith,by linarith [hl.2.2,hu.2.2]⟩ + change u ≤ (l+u)/2 at hh + linarith + have hlt : l = t := by linarith [hl.2.2,hu.2.1] + exact hlt ▸ hl.1 + +theorem isClosed_convex_of_midpoints {E : Type*} [AddCommGroup E] [Module ℝ E] + [TopologicalSpace E] [IsTopologicalAddGroup E] [ContinuousSMul ℝ E] + {s : Set E} (hs : IsClosed s) + (hm : ∀ x ∈ s, ∀ y ∈ s, (1/2:ℝ) • (x+y) ∈ s) : Convex ℝ s := by + apply convex_iff_add_mem.mpr + intro x hx y hy a b ha hb hab + let f (t : ℝ) := (1-t) • x+t • y + have hf : Continuous f := by fun_prop + have h0 : (0:ℝ) ∈ f ⁻¹' s := by simpa only [mem_preimage,f,sub_zero,one_smul,zero_smul,add_zero] using hx + have h1 : (1:ℝ) ∈ f ⁻¹' s := by simpa only [mem_preimage,f,sub_self,zero_smul,one_smul,zero_add] using hy + have hmid : ∀ t ∈ f ⁻¹' s, ∀ u ∈ f ⁻¹' s, (t+u)/2 ∈ f ⁻¹' s := by + intro t ht u hu + change f ((t+u)/2) ∈ s + have he : f ((t+u)/2) = (1/2:ℝ) • (f t+f u) := by + dsimp only [f] + module + rw [he] + exact hm _ ht _ hu + have hh := closed_midpoints_fill_interval (hs.preimage hf) h0 h1 hmid + (show b ∈ Icc (0:ℝ) 1 from ⟨hb,by linarith⟩) + change (1-b) • x+b • y ∈ s at hh + rwa [show 1-b=a by linarith] at hh + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/ColumnPlanGramEndpoint.lean b/lean/OAI/Geometry/RCD/Transport/ColumnPlanGramEndpoint.lean new file mode 100644 index 0000000000000000000000000000000000000000..401fca7771c4de1754f084d2cb9618a5290f3d6b --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/ColumnPlanGramEndpoint.lean @@ -0,0 +1,85 @@ +import OAI.Geometry.RCD.Harmonic.GramQuadraticDefect +import OAI.Geometry.RCD.Heat.ACDerivativeL2Endpoint +import OAI.Geometry.RCD.Transport.CompressedSegmentIntegral +import OAI.Geometry.RCD.Transport.TestPlanLocalProperty + +namespace OAI + +/-! # Scalar column endpoints controlled by the integrated Gram defect -/ + +open Set Filter MeasureTheory +open scoped InnerProductSpace ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem column_plan_gram_endpoint (μ : Measure X) (Q : QuadraticCheegerEnergy μ) + {n : ℕ} (u : Fin n → SobolevSpace μ Q) (v : X → Euclidean n) (hv : Continuous v) + (hu : ∀ i, SobolevSpace.toLp μ Q (u i) =ᵐ[μ] fun x => v x i) + (a : Euclidean n) (π : Measure C(Time,X)) [IsProbabilityMeasure π] + (hgeo : ∀ᵐ γ ∂π, IsGeodesic γ) {C : ℝ≥0∞} (hC : C≠∞) + (hcomp : ∀ t : Time, π.map (fun γ => γ t)≤C • μ) + (hD : MemLp (fun γ : C(Time,X) => dist (γ 0) (γ 1)) 2 π) + {Ω : Set X} (hΩ : MeasurableSet Ω) + (hstay : ∀ᵐ γ ∂π, ∀ t : Time, γ t∈Ω) + (hE : IntegrableOn (gramDefect μ Q u) Ω μ) : + ∀ᵐ γ ∂π, + ⟪v (γ 1)-v (γ 0),a⟫_ℝ^2≤(dist (γ 0) (γ 1))^2*‖a‖^2* + (1+∫ t in Icc (0:ℝ) 1, gramDefect μ Q u (geodesicExtension γ t)) := by + let g := sobolevColumnMap μ Q u a + let φ x := ⟪v x,a⟫_ℝ + have hφ : Continuous φ := hv.inner continuous_const + have hg : SobolevSpace.toLp μ Q g =ᵐ[μ] φ := by + simpa only [Measure.restrict_univ] using sobolevColumnMap_representative μ Q u univ v + (fun i => by simpa only [Measure.restrict_univ] using hu i) a + have hgrad : ∀ᵐ x ∂μ.restrict Ω, + (SobolevSpace.minimalSlope μ Q g x)^2≤‖a‖^2*(1+gramDefect μ Q u x) := by + filter_upwards [ae_restrict_of_ae (localGamma_column_defect μ Q u a), + ae_restrict_of_ae (localGamma_self μ Q g)] with x hx he + rw [← he] + have hh := (abs_le.mp hx).2 + dsimp only [g] + nlinarith + have htime := testPlan_eval_property_on μ π hcomp hΩ hstay hgrad + have hstay' (t : Time) : ∀ᵐ x ∂π.map (fun γ => γ t), x∈Ω := by + apply (ae_map_iff (measurable_path_eval t).aemeasurable hΩ).mpr + filter_upwards [hstay] with γ hγ + exact hγ t + have hEI := (compressed_segment_integral μ π hC hcomp hstay' hE + (Eventually.of_forall (gramDefect_nonneg μ Q u))).2.1 + have hd := (SobolevSpace.minimalSlope_isRelaxed μ Q g).testPlan_ae_derivative + μ π hgeo hC hcomp hD hφ hg + have hac := (SobolevSpace.minimalSlope_isRelaxed μ Q g).testPlan_ae_absolutelyContinuous + μ π hgeo hC hcomp hD hφ hg + filter_upwards [hd,hac,htime,hEI] with γ hd hac htime hEI + have htime' := (ae_restrict_iff' measurableSet_Icc).mp htime + have hder : ∀ᵐ t : ℝ, t∈Ioo (0:ℝ) 1 → + (deriv (fun s => φ (geodesicExtension γ s)) t-0)^2≤ + (dist (γ 0) (γ 1)*‖a‖)^2*(1+gramDefect μ Q u (geodesicExtension γ t)) := by + filter_upwards [hd,htime'] with t ht hg htI + have hs := mul_self_le_mul_self (abs_nonneg _) (ht htI).2 + have hb := mul_le_mul_of_nonneg_left (hg (Ioo_subset_Icc_self htI)) (sq_nonneg (dist (γ 0) (γ 1))) + calc + _≤(dist (γ 0) (γ 1))^2*(SobolevSpace.minimalSlope μ Q g (geodesicExtension γ t))^2 := by + simpa only [sub_zero,← pow_two,sq_abs,mul_pow] using hs + _≤_ := by convert hb using 1; ring + have h1 : IntegrableOn (fun _ : ℝ => (1:ℝ)) (Icc (0:ℝ) 1) := integrableOn_const (by simp) + have h0 : IntegrableOn (fun _ : ℝ => (0:ℝ)) (Icc (0:ℝ) 1) := integrableOn_const (by simp) + have hI : IntegrableOn (fun t => 1+gramDefect μ Q u (geodesicExtension γ t)) (Icc (0:ℝ) 1) := + h1.add hEI + have hh := ac_endpoint_L2_error hac.1 h0 hI hder + have he0 : geodesicExtension γ 0=γ 0 := geodesicExtension_eq γ (0:Time) + have he1 : geodesicExtension γ 1=γ 1 := geodesicExtension_eq γ (1:Time) + have hi1 : (∫ _t in Icc (0:ℝ) 1, (1:ℝ))=1 := by simp + have hi : (∫ t in Icc (0:ℝ) 1, 1+gramDefect μ Q u (geodesicExtension γ t))= + 1+∫ t in Icc (0:ℝ) 1, gramDefect μ Q u (geodesicExtension γ t) := by + rw [integral_add h1 hEI,hi1] + simp only [integral_zero,sub_zero,he0,he1,φ,← inner_sub_left,hi,mul_pow] at hh + exact hh + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/CompactContactCompletion.lean b/lean/OAI/Geometry/RCD/Transport/CompactContactCompletion.lean new file mode 100644 index 0000000000000000000000000000000000000000..541beeaf2ab1e73a3e051674e9d605ddcf5bf044 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/CompactContactCompletion.lean @@ -0,0 +1,75 @@ +import OAI.Analysis.RCDHeat.InnerPath +import OAI.Analysis.RCDHeat.KantorovichRadius + +namespace OAI + +/-! # Compact contact completion by two quadratic transforms + +The completion preserves every contact of the original compact potential. +It also keeps an explicit compact support radius for the right potential. +-/ + +open Set Metric +open scoped NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [ProperSpace X] + +theorem compact_contact_completion (hgeo : IsGeodesicSpace X) + (p : X) {φ : X → ℝ} {L : ℝ≥0} (hφ : LipschitzWith L φ) + {R : ℝ} (hzero : ∀ x, R < dist p x → φ x = 0) : + ∃ (ψ : X → ℝ) (r : ℝ), LipschitzWith L ψ ∧ HasCompactSupport ψ ∧ + (∀ x, r < dist p x → ψ x = 0) ∧ + LipschitzWith L (hopfLax (-ψ) 1) ∧ HasCompactSupport (hopfLax (-ψ) 1) ∧ + (∀ x y, hopfLax (-ψ) 1 x + ψ y ≤ dist x y ^ 2 / 2) ∧ + (∀ x, φ x ≤ hopfLax (-ψ) 1 x) ∧ + ∀ x y b, (∀ z, φ z + b ≤ dist z y ^ 2 / 2) → + φ x + b = dist x y ^ 2 / 2 → + hopfLax (-ψ) 1 x = φ x ∧ ψ y = b := by + let ψ := hopfLax (-φ) 1 + have hpos : (0 : ℝ) < 1 := by norm_num + have hψ : LipschitzWith L ψ := hopfLax_lipschitz hφ.neg hgeo hpos + have hnegzero (x : X) (hx : R < dist p x) : (-φ) x = 0 := by + simp only [Pi.neg_apply,hzero x hx,neg_zero] + have hψs : HasCompactSupport ψ := hopfLax_hasCompactSupport hφ.neg p R hnegzero hpos + have hψzero (x : X) (hx : R+2*(L:ℝ) < dist p x) : ψ x = 0 := by + apply hopfLax_zero_outside hφ.neg p R hnegzero hpos + simpa only [mul_one] using hx + have hψnegzero (x : X) (hx : R+2*(L:ℝ) < dist p x) : (-ψ) x = 0 := by + simp only [Pi.neg_apply,hψzero x hx,neg_zero] + have hχ : LipschitzWith L (hopfLax (-ψ) 1) := hopfLax_lipschitz hψ.neg hgeo hpos + have hχs : HasCompactSupport (hopfLax (-ψ) 1) := + hopfLax_hasCompactSupport hψ.neg p (R+2*(L:ℝ)) hψnegzero hpos + have had (x y : X) : φ x + ψ y ≤ dist x y ^ 2 / 2 := by + have hh := hopfLax_le_cost hφ.neg hpos y x + simp only [Pi.neg_apply,mul_one,dist_comm y x] at hh + dsimp only [ψ] + linarith + refine ⟨ψ,R+2*(L:ℝ),hψ,hψs,hψzero,hχ,hχs,?_,?_,?_⟩ + · intro x y + have hh := hopfLax_le_cost hψ.neg hpos x y + simp only [Pi.neg_apply,mul_one] at hh + linarith + · intro x + apply le_csInf ⟨_,mem_range_self x⟩ + rintro _ ⟨y,rfl⟩ + have hh := had x y + simp only [Pi.neg_apply,mul_one] + linarith + · intro x y b hb hxy + have hby : b ≤ ψ y := by + apply le_csInf ⟨_,mem_range_self x⟩ + rintro _ ⟨z,rfl⟩ + have hh := hb z + simp only [Pi.neg_apply,mul_one,dist_comm y z] + linarith + have hyb : ψ y ≤ b := by linarith [had x y] + have he : ψ y = b := le_antisymm hyb hby + refine ⟨(hopfLax_of_contact hψ had (x := x) (y := y) ?_).1,he⟩ + rwa [he] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/CompactContactFirstVariation.lean b/lean/OAI/Geometry/RCD/Transport/CompactContactFirstVariation.lean new file mode 100644 index 0000000000000000000000000000000000000000..f75ff42ef0f18cdf99e0f87cb46da574ca9bcf32 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/CompactContactFirstVariation.lean @@ -0,0 +1,64 @@ +import OAI.Analysis.RCDHeat.ExistingAnalytic +import OAI.Analysis.RCDHeat.WeightedGradientConvex + +namespace OAI + +/-! # The signed first variation for a compact quadratic contact potential -/ + +open Set Filter MeasureTheory Metric +open scoped NNReal ENNReal Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) [μ.Regular] + (hQ : QuadraticCheegerEnergy μ) +attribute [local instance] pathBorel pathBorelSpace + +theorem compact_contact_first_variation (hspace : IsGeodesicSpace X) + (p : X) {ψ : X → ℝ} {L : ℝ≥0} (hψ : LipschitzWith L ψ) + {R : ℝ} (hzero : ∀ x, R < dist p x → ψ x = 0) + (π : Measure C(Time,X)) [IsFiniteMeasure π] + (hgeo : ∀ᵐ γ ∂π, IsGeodesic γ) {C : ℝ≥0∞} (hC : C ≠ ∞) + (hcomp : ∀ t : Time, π.map (fun γ => γ t) ≤ C • μ) + (hD : MemLp (fun γ : C(Time,X) => dist (γ 0) (γ 1)) 2 π) + (hc : ∀ᵐ γ ∂π, hopfLax (-ψ) 1 (γ 0)+ψ (γ 1) = dist (γ 0) (γ 1)^2/2) : + ∃ u : SobolevSpace μ hQ, + (hopfLax (-ψ) 1 =ᵐ[μ] SobolevSpace.toLp μ hQ u) ∧ + (∀ᵐ γ ∂π, SobolevSpace.minimalSlope μ hQ u (γ 0) = dist (γ 0) (γ 1)) ∧ + ∀ g : SobolevSpace μ hQ, + Tendsto (planInitialSecant π (SobolevSpace.toLp μ hQ g)) (𝓝[>] (0:ℝ)) + (𝓝 (-weightedGradientPair μ hQ (π.map (fun γ => γ 0)) u g)) := by + have hpos : (0 : ℝ) < 1 := by norm_num + have hnzero (x : X) (hx : R < dist p x) : (-ψ) x = 0 := by + simp only [Pi.neg_apply,hzero x hx,neg_zero] + have hχ := hopfLax_lipschitz hψ.neg hspace hpos + have hχs := hopfLax_hasCompactSupport hψ.neg p R hnzero hpos + let u := SobolevSpace.ofLipschitzCompact μ hQ hχ hχs + have hurep : hopfLax (-ψ) 1 =ᵐ[μ] SobolevSpace.toLp μ hQ u := + (SobolevSpace.ofLipschitzCompact_coe μ hQ hχ hχs).symm + have had (x y : X) : hopfLax (-ψ) 1 x+ψ y ≤ dist x y^2/2 := by + have hh := hopfLax_le_cost hψ.neg hpos x y + simp only [Pi.neg_apply,mul_one] at hh + linarith + have hbound : ∀ᵐ x ∂μ, SobolevSpace.minimalSlope μ hQ u x ≤ hopfLeftRadius (-ψ) x := + hopfLeftRadius_minimalSlope_bound_proper μ hQ hψ.neg hspace p R hnzero + have hstart : ∀ᵐ γ ∂π, + SobolevSpace.minimalSlope μ hQ u (γ 0) ≤ hopfLeftRadius (-ψ) (γ 0) := + ae_of_ae_map (measurable_path_eval 0).aemeasurable + (hbound.filter_mono (Measure.absolutelyContinuous_of_le_smul (hcomp 0)).ae_le) + have hb : ∀ᵐ γ ∂π, SobolevSpace.minimalSlope μ hQ u (γ 0) ≤ dist (γ 0) (γ 1) := by + filter_upwards [hstart,hc] with γ hγ he + apply hγ.trans (hopfLeftRadius_le_minimizer hψ.neg ?_) + change hopfLax (-ψ) 1 (γ 0) = -ψ (γ 1)+dist (γ 0) (γ 1)^2/(2*1) + linarith + refine ⟨u,hurep,?_,?_⟩ + · exact (SobolevSpace.minimalSlope_isRelaxed μ hQ u).kantorovich_gradient_eq_displacement + μ π hgeo hC hcomp hD hurep had hc hb + · intro g + exact kantorovich_signed_first_variation μ hQ π hgeo hC hcomp hD u g hurep had hc hb + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/CompactCouplingAmbientCost.lean b/lean/OAI/Geometry/RCD/Transport/CompactCouplingAmbientCost.lean new file mode 100644 index 0000000000000000000000000000000000000000..faff755775b5e65f13869df10bfe2113f6be6a8e --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/CompactCouplingAmbientCost.lean @@ -0,0 +1,58 @@ +import OAI.Geometry.RCD.Transport.CompactCouplingLift +import OAI.Analysis.RCDHeat.Foundations +import Mathlib.MeasureTheory.Integral.Bochner.Set + +namespace OAI + +/-! # Compact subtype cost minimizers are ambient optimal couplings -/ + +open Set Filter MeasureTheory +open scoped ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [SecondCountableTopology X] + {S T : Set X} [CompactSpace S] [CompactSpace T] + +theorem compact_coupling_transportCost (Q : Measure (S × T)) [IsFiniteMeasure Q] : + transportCost (Q.map (Prod.map Subtype.val Subtype.val)) = + ENNReal.ofReal (∫ z, dist (z.1 : X) (z.2 : X)^2 ∂Q) := by + have hm : Measurable (fun z : X × X => ENNReal.ofReal (dist z.1 z.2)^2) := by fun_prop + rw [transportCost,lintegral_map hm (measurable_subtype_coe.prodMap measurable_subtype_coe)] + have hi : Integrable (fun z : S × T => dist (z.1 : X) (z.2 : X)^2) Q := + (by fun_prop : Continuous (fun z : S × T => dist (z.1 : X) (z.2 : X)^2)).integrable_of_hasCompactSupport + (HasCompactSupport.of_compactSpace _) + rw [ofReal_integral_eq_lintegral_ofReal hi (Eventually.of_forall fun _ => sq_nonneg _)] + apply lintegral_congr + intro z + exact (ENNReal.ofReal_pow dist_nonneg 2).symm + +theorem compact_coupling_ambient_optimal (hS : MeasurableSet S) (hT : MeasurableSet T) + (μ : Measure S) (ν : Measure T) [IsProbabilityMeasure μ] [IsProbabilityMeasure ν] + (Q : Measure (S × T)) [IsProbabilityMeasure Q] + (hl : Q.map Prod.fst=μ) (hr : Q.map Prod.snd=ν) + (hmin : ∀ P : Measure (S × T), P.map Prod.fst=μ → P.map Prod.snd=ν → + (∫ z, dist (z.1 : X) (z.2 : X)^2 ∂Q) ≤ ∫ z, dist (z.1 : X) (z.2 : X)^2 ∂P) : + IsOptimalCoupling (μ.map Subtype.val) (ν.map Subtype.val) + (Q.map (Prod.map Subtype.val Subtype.val)) := by + have hm : Measurable (Prod.map (Subtype.val : S → X) (Subtype.val : T → X)) := + measurable_subtype_coe.prodMap measurable_subtype_coe + refine ⟨?_,?_,?_⟩ + · rw [Measure.map_map measurable_fst hm,← hl, + Measure.map_map measurable_subtype_coe measurable_fst] + rfl + · rw [Measure.map_map measurable_snd hm,← hr, + Measure.map_map measurable_subtype_coe measurable_snd] + rfl + · intro π hπl hπr + obtain ⟨P,hP,hPl,hPr⟩ := coupling_lift_subtypes hS hT μ ν π hπl hπr + let : IsProbabilityMeasure (P.map Prod.fst) := by rw [hPl]; infer_instance + let : IsProbabilityMeasure P := Measure.isProbabilityMeasure_of_map measurable_fst.aemeasurable + rw [← hP,compact_coupling_transportCost Q,compact_coupling_transportCost P] + exact ENNReal.ofReal_le_ofReal (hmin P hPl hPr) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/CompactCouplingLift.lean b/lean/OAI/Geometry/RCD/Transport/CompactCouplingLift.lean new file mode 100644 index 0000000000000000000000000000000000000000..84fd94e1b280f9bb6a2a61f02a5b7119d6d34025 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/CompactCouplingLift.lean @@ -0,0 +1,58 @@ +import Mathlib.MeasureTheory.Measure.Prod +import Mathlib.MeasureTheory.Measure.Restrict + +namespace OAI + +/-! # Lifting an ambient coupling to the prescribed measurable supports -/ + +open Set Filter MeasureTheory +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MeasurableSpace X] {S T : Set X} + +theorem coupling_lift_subtypes (hS : MeasurableSet S) (hT : MeasurableSet T) + (μ : Measure S) (ν : Measure T) (π : Measure (X × X)) + (hl : π.map Prod.fst=μ.map Subtype.val) (hr : π.map Prod.snd=ν.map Subtype.val) : + ∃ Q : Measure (S × T), Q.map (Prod.map Subtype.val Subtype.val)=π ∧ + Q.map Prod.fst=μ ∧ Q.map Prod.snd=ν := by + let inc : S × T → X × X := Prod.map Subtype.val Subtype.val + have he : MeasurableEmbedding inc := + (MeasurableEmbedding.subtype_coe hS).prodMap (MeasurableEmbedding.subtype_coe hT) + have ha : ∀ᵐ z ∂π, z.1 ∈ S := by + apply ae_of_ae_map measurable_fst.aemeasurable + rw [hl] + exact (MeasurableEmbedding.subtype_coe hS).ae_map_iff.mpr + (Eventually.of_forall fun x => x.property) + have hb : ∀ᵐ z ∂π, z.2 ∈ T := by + apply ae_of_ae_map measurable_snd.aemeasurable + rw [hr] + exact (MeasurableEmbedding.subtype_coe hT).ae_map_iff.mpr + (Eventually.of_forall fun x => x.property) + have hm : (π.comap inc).map inc=π := by + rw [he.map_comap] + apply Measure.restrict_eq_self_of_ae_mem + filter_upwards [ha,hb] with z hz ht + exact ⟨(⟨z.1,hz⟩,⟨z.2,ht⟩),rfl⟩ + refine ⟨π.comap inc,hm,?_,?_⟩ + · apply (MeasurableEmbedding.subtype_coe hS).map_injective + calc + ((π.comap inc).map Prod.fst).map Subtype.val = ((π.comap inc).map inc).map Prod.fst := by + rw [Measure.map_map measurable_subtype_coe measurable_fst, + Measure.map_map measurable_fst he.measurable] + rfl + _ = π.map Prod.fst := congrArg (fun m : Measure (X × X) => m.map Prod.fst) hm + _ = μ.map Subtype.val := hl + · apply (MeasurableEmbedding.subtype_coe hT).map_injective + calc + ((π.comap inc).map Prod.snd).map Subtype.val = ((π.comap inc).map inc).map Prod.snd := by + rw [Measure.map_map measurable_subtype_coe measurable_snd, + Measure.map_map measurable_snd he.measurable] + rfl + _ = π.map Prod.snd := congrArg (fun m : Measure (X × X) => m.map Prod.snd) hm + _ = ν.map Subtype.val := hr + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/CompactCouplingSlack.lean b/lean/OAI/Geometry/RCD/Transport/CompactCouplingSlack.lean new file mode 100644 index 0000000000000000000000000000000000000000..4060602af1945950a7a10f211fe30fb09947f6ff --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/CompactCouplingSlack.lean @@ -0,0 +1,76 @@ +import Mathlib.MeasureTheory.Measure.Prokhorov +import Mathlib.MeasureTheory.Measure.Support +import Mathlib.MeasureTheory.Integral.Bochner.Set +import Mathlib.Tactic + +namespace OAI + +/-! # Compact limits of couplings with vanishing dual slack -/ + +open Set Filter MeasureTheory +open scoped Topology +noncomputable section +namespace RegularPointCoordinates +variable {X Y : Type*} [MetricSpace X] [MetricSpace Y] + [MeasurableSpace X] [MeasurableSpace Y] [BorelSpace X] [BorelSpace Y] + (μ : Measure X) (ν : Measure Y) + +omit [MetricSpace X] [BorelSpace X] [BorelSpace Y] in +theorem coupling_snd_support (π : Measure (X × Y)) (hπ : π.map Prod.snd=ν) + [SecondCountableTopology Y] : ∀ᵐ z ∂π, z.2 ∈ ν.support := by + apply ae_of_ae_map measurable_snd.aemeasurable + rw [hπ] + exact ν.support_mem_ae + +theorem compact_coupling_zero_slack [CompactSpace X] [CompactSpace Y] + [SecondCountableTopology X] [SecondCountableTopology Y] + [IsProbabilityMeasure μ] [IsProbabilityMeasure ν] + (P : ℕ → ProbabilityMeasure (X × Y)) + (hl : ∀ k, (P k : Measure (X × Y)).map Prod.fst=μ) + (hr : ∀ k, (P k : Measure (X × Y)).map Prod.snd=ν) + (s : C(X × Y,ℝ)) (hs : ∀ x y, y ∈ ν.support → s (x,y) ≤ 0) + (hlim : Tendsto (fun k => ∫ z, s z ∂(P k : Measure (X × Y))) atTop (𝓝 0)) : + ∃ (Q : ProbabilityMeasure (X × Y)) (ι : ℕ → ℕ), StrictMono ι ∧ + Tendsto (fun k => P (ι k)) atTop (𝓝 Q) ∧ + (Q : Measure (X × Y)).map Prod.fst=μ ∧ + (Q : Measure (X × Y)).map Prod.snd=ν ∧ + ∀ᵐ z ∂(Q : Measure (X × Y)), s z=0 := by + obtain ⟨Q,_,ι,hι,hQ⟩ := isCompact_univ.tendsto_subseq (fun k => mem_univ (P k)) + have hleft : (Q : Measure (X × Y)).map Prod.fst=μ := by + have hh := ProbabilityMeasure.tendsto_map_of_tendsto_of_continuous + (fun k => P (ι k)) Q hQ continuous_fst + have he (k : ℕ) : (P (ι k)).map Prod.fst = μ.toProbabilityMeasure := + Subtype.ext (hl (ι k)) + simp only [he] at hh + have heq : μ.toProbabilityMeasure = Q.map Prod.fst := + tendsto_nhds_unique tendsto_const_nhds hh + exact (congrArg (fun r : ProbabilityMeasure X => (r : Measure X)) heq).symm + have hright : (Q : Measure (X × Y)).map Prod.snd=ν := by + have hh := ProbabilityMeasure.tendsto_map_of_tendsto_of_continuous + (fun k => P (ι k)) Q hQ continuous_snd + have he (k : ℕ) : (P (ι k)).map Prod.snd = ν.toProbabilityMeasure := + Subtype.ext (hr (ι k)) + simp only [he] at hh + have heq : ν.toProbabilityMeasure = Q.map Prod.snd := + tendsto_nhds_unique tendsto_const_nhds hh + exact (congrArg (fun r : ProbabilityMeasure Y => (r : Measure Y)) heq).symm + have hint : (∫ z, s z ∂(Q : Measure (X × Y)))=0 := + tendsto_nhds_unique ((ProbabilityMeasure.continuous_integral_continuousMap s).tendsto Q |>.comp hQ) + (hlim.comp hι.tendsto_atTop) + have hnonpos : ∀ᵐ z ∂(Q : Measure (X × Y)), s z ≤ 0 := by + filter_upwards [coupling_snd_support (ν := ν) (π := (Q : Measure (X × Y))) hright] with z hz + exact hs z.1 z.2 hz + have hi : Integrable (fun z => -s z) (Q : Measure (X × Y)) := + s.continuous.neg.integrable_of_hasCompactSupport (HasCompactSupport.of_compactSpace _) + have he : (fun z => -s z) =ᵐ[(Q : Measure (X × Y))] 0 := + (integral_eq_zero_iff_of_nonneg_ae (by filter_upwards [hnonpos] with z hz; simpa using hz) hi).mp + (by rw [integral_neg,hint,neg_zero]) + refine ⟨Q,ι,hι,hQ,hleft,hright,?_⟩ + filter_upwards [he] with z hz + simpa using hz + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/CompactDualCost.lean b/lean/OAI/Geometry/RCD/Transport/CompactDualCost.lean new file mode 100644 index 0000000000000000000000000000000000000000..cb24be8fe854c5aaabbd2a1b63675e8e3dc2cbd2 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/CompactDualCost.lean @@ -0,0 +1,67 @@ +import OAI.Geometry.RCD.Transport.CompactCouplingSlack + +namespace OAI + +/-! # A saturated dual pair minimizes the compact transport cost -/ + +open Set Filter MeasureTheory +noncomputable section +namespace RegularPointCoordinates +variable {X Y : Type*} [MetricSpace X] [MetricSpace Y] + [MeasurableSpace X] [MeasurableSpace Y] [BorelSpace X] [BorelSpace Y] + [CompactSpace X] [CompactSpace Y] + (μ : Measure X) (ν : Measure Y) [IsProbabilityMeasure μ] [IsProbabilityMeasure ν] + +omit [IsProbabilityMeasure ν] in +theorem coupling_potential_integral (π : Measure (X × Y)) + (hl : π.map Prod.fst=μ) (hr : π.map Prod.snd=ν) + (f : C(X,ℝ)) (g : C(Y,ℝ)) (c : ℝ) : + (∫ z, f z.1+g z.2+c ∂π)=(∫ x, f x ∂μ)+(∫ y, g y ∂ν)+c := by + let : IsProbabilityMeasure (π.map Prod.fst) := by rw [hl]; infer_instance + let : IsProbabilityMeasure π := Measure.isProbabilityMeasure_of_map measurable_fst.aemeasurable + have hf : Integrable (fun z : X × Y => f z.1) π := + (f.continuous.comp continuous_fst).integrable_of_hasCompactSupport + (HasCompactSupport.of_compactSpace _) + have hg : Integrable (fun z : X × Y => g z.2) π := + (g.continuous.comp continuous_snd).integrable_of_hasCompactSupport + (HasCompactSupport.of_compactSpace _) + rw [integral_add (f := fun z : X × Y => f z.1+g z.2) (g := fun _ : X × Y => c) + (hf.add hg) (integrable_const c), + integral_add (f := fun z : X × Y => f z.1) (g := fun z : X × Y => g z.2) hf hg] + have he : (∫ z, f z.1 ∂π)=∫ x, f x ∂μ := by + rw [← hl,integral_map measurable_fst.aemeasurable f.continuous.aestronglyMeasurable] + have he' : (∫ z, g z.2 ∂π)=∫ y, g y ∂ν := by + rw [← hr,integral_map measurable_snd.aemeasurable g.continuous.aestronglyMeasurable] + simp only [he,he',integral_const,probReal_univ,smul_eq_mul,one_mul] + +omit [IsProbabilityMeasure ν] in +theorem compact_dual_cost_minimizer [SecondCountableTopology Y] + (Q : Measure (X × Y)) (hQl : Q.map Prod.fst=μ) (hQr : Q.map Prod.snd=ν) + (f : C(X,ℝ)) (g : C(Y,ℝ)) (cost : C(X × Y,ℝ)) (c : ℝ) + (hdual : ∀ x y, y ∈ ν.support → f x+g y+c ≤ cost (x,y)) + (heq : ∀ᵐ z ∂Q, f z.1+g z.2+c=cost z) : + ∀ π : Measure (X × Y), π.map Prod.fst=μ → π.map Prod.snd=ν → + (∫ z, cost z ∂Q) ≤ ∫ z, cost z ∂π := by + intro π hl hr + let : IsProbabilityMeasure (π.map Prod.fst) := by rw [hl]; infer_instance + let : IsProbabilityMeasure π := Measure.isProbabilityMeasure_of_map measurable_fst.aemeasurable + have hle := integral_mono_ae + (((f.continuous.comp continuous_fst).add (g.continuous.comp continuous_snd)).add continuous_const + |>.integrable_of_hasCompactSupport (HasCompactSupport.of_compactSpace _)) + (cost.continuous.integrable_of_hasCompactSupport (HasCompactSupport.of_compactSpace _)) + (by + filter_upwards [coupling_snd_support (ν := ν) (π := π) hr] with z hz + exact hdual z.1 z.2 hz) + calc + (∫ z, cost z ∂Q) = ∫ z, f z.1+g z.2+c ∂Q := integral_congr_ae (by + filter_upwards [heq] with z hz + exact hz.symm) + _ = (∫ x, f x ∂μ)+(∫ y, g y ∂ν)+c := coupling_potential_integral μ ν Q hQl hQr f g c + _ = (∫ z, f z.1+g z.2+c ∂π) := (coupling_potential_integral μ ν π hl hr f g c).symm + _ ≤ (∫ z, cost z ∂π) := hle + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/CompactFactorMidpoint.lean b/lean/OAI/Geometry/RCD/Transport/CompactFactorMidpoint.lean new file mode 100644 index 0000000000000000000000000000000000000000..e93d6e3058973903ffa2ef4a718b2bca842b8a04 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/CompactFactorMidpoint.lean @@ -0,0 +1,91 @@ +import OAI.Geometry.RCD.Heat.CompactFactorTimeRatio +import OAI.Geometry.RCD.Coordinates.CompactFactorRegularity +import OAI.Geometry.RCD.Heat.HeatHamiltonPositive + +namespace OAI + +/-! # A normalized midpoint datum for each actual compact heat factor + +The amplitude is the supremum of the earlier heat factor. Kernel +comparison controls this same supremum at every observation point. +-/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped NNReal ENNReal Topology BoundedContinuousFunction +noncomputable section +namespace RegularPointCoordinates.NoncollapsedRCD +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] {K : ℝ} {n : ℕ} (hX : NoncollapsedRCD K n X) + (hn : 2≤n) (p : X) [SeparableSpace X] + [IsLocallyFiniteMeasure (hausdorff n X)] [(hausdorff n X).Regular] + +theorem compact_heat_factor_midpoint : + ∃ C D : ℝ, 0≤C ∧ 0 ENNReal.ofReal (ρ x)) → + ∀ (F : C(S, ℝ)), (∀ a, 0 by simpa only [Real.norm_eq_abs] using hHb x) + let g := heatAt μ q t f + have hrep : H =ᵐ[μ] g := + (show H =ᵐ[μ] kernelHeat μ q hk t f from .of_forall (he t ht)).trans + (kernelHeat_represents_L2 μ q hk ht f) + have hV0 : 0<‖V‖ := lt_of_lt_of_le (by + change 0<‖H p‖ + rw [Real.norm_eq_abs,abs_of_pos (hX.compactHeatFactor_positive hn p ν F hF t ht p)] + exact hX.compactHeatFactor_positive hn p ν F hF t ht p) (V.norm_coe_le_norm p) + have hg0 : 0≤g := by + apply (Lp.coeFn_nonneg _).mp + filter_upwards [hrep] with x hx + rw [←hx] + exact (hX.compactHeatFactor_positive hn p ν F hF t ht x).le + have hgA : ∀ᵐ x ∂μ, |g x|≤‖V‖₊ := by + filter_upwards [hrep] with x hx + rw [←hx] + exact V.norm_coe_le_norm x + refine ⟨g,‖V‖₊,hV0,hg0,hgA,?_,?_⟩ + · intro s hs x + rw [←kernelHeat_add μ q hk ht hs f x] + exact (he (t+s) (add_pos ht hs) x).symm + · intro x R hR hdist + have hv := hX.compactHeatFactor_positive hn p ν F hF (2*t) (by positivity) x + have hnorm : ‖V‖≤Q*Real.exp (D*R^2/t)*hX.compactHeatFactor hn p ν F (2*t) (by positivity) x := by + apply (BoundedContinuousFunction.norm_le (by positivity)).mpr + intro y + change ‖H y‖≤_ + rw [Real.norm_eq_abs,abs_of_pos (hX.compactHeatFactor_positive hn p ν F hF t ht y)] + exact hcomp ν F (fun a => (hF a).le) t ht ht1 x R hR hdist y + have hl := Real.log_le_log hV0 hnorm + rw [Real.log_mul (mul_pos hQ (Real.exp_pos _)).ne' hv.ne', + Real.log_mul hQ.ne' (Real.exp_ne_zero _),Real.log_exp] at hl + change Real.log ‖V‖-Real.log _≤_ + linarith only [hl,le_abs_self (Real.log Q)] + +end RegularPointCoordinates.NoncollapsedRCD + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/CompactHarmonicAffinePlan.lean b/lean/OAI/Geometry/RCD/Transport/CompactHarmonicAffinePlan.lean new file mode 100644 index 0000000000000000000000000000000000000000..16a92611b3745e3504ade2d25b1705f9ec9fbd2e --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/CompactHarmonicAffinePlan.lean @@ -0,0 +1,82 @@ +import OAI.Geometry.RCD.Heat.CompactHeatHarmonicAffineMean +import OAI.Geometry.RCD.Heat.CompactHeatActualPlanLimit +import OAI.Geometry.RCD.Sobolev.ContinuousPathMean + +namespace OAI + +/-! # One actual optimal plan with exact original harmonic-coordinate means -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped Topology NNReal ENNReal +noncomputable section +namespace RegularPointCoordinates.NoncollapsedRCD.CompactHeatScalingData +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + {n : ℕ} {hX : NoncollapsedRCD 0 n X} {hn : 2 ≤ n} {p : X} [SeparableSpace X] + [IsLocallyFiniteMeasure (hausdorff n X)] [(hausdorff n X).Regular] + {S T : Set X} [CompactSpace S] [CompactSpace T] + {μ : Measure S} {ν : Measure T} [IsProbabilityMeasure μ] [IsProbabilityMeasure ν] + {ε : ℕ → ℝ} {hε : ∀ k, 0 < ε k} + (D : hX.CompactHeatScalingData hn p μ ν ε hε) + +attribute [local instance] pathBorel pathBorelSpace + +include D in +theorem exists_original_harmonic_affine_plan (a₀ : S) (b₀ : T) + (hε1 : ∀ k, ε k ≤ 1) (hε0 : Tendsto ε atTop (𝓝 0)) + (ρ₀ ρ₁ : X → ℝ) (hm₀ : Measurable ρ₀) (hm₁ : Measurable ρ₁) + (hp₀ : ∀ x, 0 ≤ ρ₀ x) (hp₁ : ∀ x, 0 ≤ ρ₁ x) {C₀ C₁ : ℝ≥0} + (hC₀ : ∀ᵐ x ∂hausdorff n X, |ρ₀ x| ≤ C₀) + (hC₁ : ∀ᵐ x ∂hausdorff n X, |ρ₁ x| ≤ C₁) + (hμ : μ.map Subtype.val=(hausdorff n X).withDensity (fun x => ENNReal.ofReal (ρ₀ x))) + (hν : ν.map Subtype.val=(hausdorff n X).withDensity (fun x => ENNReal.ofReal (ρ₁ x))) + {R : ℝ} (hR : 1 ≤ R) (hS : ∀ y:S, dist p y ≤ R) (hT : ∀ y:T, dist p y ≤ R) : + ∃ (π : ProbabilityMeasure C(Time,X)) (B : ℝ≥0∞), B ≠ ∞ ∧ + (∀ᵐ γ ∂(π : Measure C(Time,X)), IsGeodesic γ) ∧ + IsOptimalCoupling (μ.map Subtype.val) (ν.map Subtype.val) + ((π : Measure C(Time,X)).map (fun γ => (γ 0,γ 1))) ∧ + (∀ t : Time, (π.map (fun γ => γ t) : Measure X) ≤ B • hausdorff n X) ∧ + ∀ (u : SobolevSpace (hausdorff n X) hX.quadratic) (d : Lp ℝ 2 (hausdorff n X)) + (_hd : IsWeakLaplacian (hausdorff n X) hX.quadratic u d) + (U : X → ℝ) (L A : ℝ≥0) (_hU : LipschitzWith L U) (_hUc : HasCompactSupport U) + (_hu : SobolevSpace.toLp (hausdorff n X) hX.quadratic u =ᵐ[hausdorff n X] U) + (_hA : ∀ᵐ x ∂hausdorff n X, |SobolevSpace.toLp (hausdorff n X) hX.quadratic u x| ≤ A) + {b : ℝ} (_hb : 24*R < b) + (_hd0 : d =ᵐ[(hausdorff n X).restrict (ball p b)] fun _ => 0) (c : ℝ) + (_hc : localGamma (hausdorff n X) hX.quadratic u u + =ᵐ[(hausdorff n X).restrict (ball p b)] fun _ => c), + ∀ t : Time, (∫ x, U x ∂(π.map (fun γ => γ t) : Measure X)) = + (1-(t:ℝ))*(∫ x : S, U x ∂μ)+(t:ℝ)*(∫ x : T, U x ∂ν) := by + obtain ⟨π,j,B,c,hj,hB,hgeo,hopt,_hlen,hcomp,_hfor,_hback,hlim,_hcal⟩ := + exists_actual_heat_limit_plan (K := 0) D a₀ b₀ le_rfl hε1 hε0 ρ₀ ρ₁ hm₀ hm₁ hp₀ hp₁ + hC₀ hC₁ hμ hν hR hS hT + refine ⟨π,B,hB,hgeo,hopt,hcomp,?_⟩ + intro u d hd U L A hU hUc hu hA b hb hd0 c hc + let Q₀ (t : Ioo (0:ℝ) 1) := π.map (fun γ => γ (⟨t,t.property.1.le,t.property.2.le⟩ : Time)) + obtain ⟨α,β,haff⟩ := D.affine_original_harmonic_mean a₀ b₀ hε1 hε0 + ρ₀ ρ₁ hm₀ hm₁ hp₀ hp₁ hC₀ hC₁ hμ hν hR hS hT j hj Q₀ + (fun t => (hlim t).1) u d hd U L A hU hUc hu hA hb hd0 c hc + obtain ⟨M,hM⟩ := hUc.exists_bound_of_continuous hU.continuous + let F (t : Time) := ∫ x, U x ∂(π.map (fun γ => γ t) : Measure X) + have hFeq (t : Time) : F t=∫ γ, U (γ t) ∂(π : Measure C(Time,X)) := by + exact integral_map (measurable_path_eval t).aemeasurable hU.continuous.aestronglyMeasurable + have hcont : Continuous F := (continuous_path_mean (π : Measure C(Time,X)) U hU.continuous M + (fun x => by simpa only [Real.norm_eq_abs] using hM x)).congr (fun t => (hFeq t).symm) + have hclosed := closed_time_affine F hcont α β (fun t ht0 ht1 => by + simpa only [F,Q₀] using haff ⟨t,ht0,ht1⟩) + have hends := optimalPlan_endpoints (μ.map Subtype.val) (ν.map Subtype.val) + (π : Measure C(Time,X)) hopt + have h0 : F 0=∫ x:S, U x ∂μ := by + change (∫ x, U x ∂((π : Measure C(Time,X)).map (fun γ => γ 0))) = _ + rw [hends.1] + exact integral_map measurable_subtype_coe.aemeasurable hU.continuous.aestronglyMeasurable + have h1 : F 1=∫ x:T, U x ∂ν := by + change (∫ x, U x ∂((π : Measure C(Time,X)).map (fun γ => γ 1))) = _ + rw [hends.2] + exact integral_map measurable_subtype_coe.aemeasurable hU.continuous.aestronglyMeasurable + simpa only [F,h0,h1] using hclosed + +end RegularPointCoordinates.NoncollapsedRCD.CompactHeatScalingData + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/CompactHopfDirichlet.lean b/lean/OAI/Geometry/RCD/Transport/CompactHopfDirichlet.lean new file mode 100644 index 0000000000000000000000000000000000000000..f1b19392a02b7c7060a4d2427ec00b85ad116a33 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/CompactHopfDirichlet.lean @@ -0,0 +1,58 @@ +import OAI.Geometry.RCD.Sobolev.SobolevPointedTestRecovery +import OAI.Analysis.RCDHeat.HopfTransport + +namespace OAI + +/-! # Compact Hopf--Lax regularizations in the original Dirichlet space -/ + +open Set Metric Filter MeasureTheory +open scoped NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem compact_hopf_dirichlet (μ : Measure X) [IsFiniteMeasureOnCompacts μ] + (hQ : QuadraticCheegerEnergy μ) (hgeo : IsGeodesicSpace X) + {p : X} {r b S t : ℝ} (hr : 0 min (Φ x) M-M + obtain ⟨ψ,s,hψ,hψs,hψzero,hχ,hχs,had,_,hc⟩ := + compact_contact_completion hgeo p hf hfzero + have hbound (a : Y) (z : X) : + f z+(t*F a-t*A+M) ≤ dist z (point a)^2/2 := by + have hm := min_le_left (Φ z) M + have hu := hupper z a + dsimp [f] + linarith + have hcontact (x : X) (hx : x ∈ closedBall p r₀) (a : Y) + (ha : Φ x = dist x (point a)^2/2-t*F a+t*A) : + hopfLax (-ψ) 1 x = Φ x-M ∧ ψ (point a) = t*F a-t*A+M := by + have he : f x+(t*F a-t*A+M) = dist x (point a)^2/2 := by + change (min (Φ x) M-M)+(t*F a-t*A+M) = _ + rw [hlocal x hx,ha] + ring + obtain ⟨heq,hψeq⟩ := hc x (point a) (t*F a-t*A+M) (hbound a) he + exact ⟨heq.trans (hlocal x hx),hψeq⟩ + refine ⟨M,s,ψ,L,hψ,hψs,hψzero,hχ,hχs,had,?_,?_⟩ + · intro x hx + obtain ⟨a,ha⟩ := hexact x + exact (hcontact x hx a ha).1 + · intro x hx a ha + obtain ⟨he,hψeq⟩ := hcontact x hx a ha + rw [he,hψeq,ha] + ring + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/ComponentScalarChord.lean b/lean/OAI/Geometry/RCD/Transport/ComponentScalarChord.lean new file mode 100644 index 0000000000000000000000000000000000000000..d03c431a4160166391b320e8d1a5845a909fdab9 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/ComponentScalarChord.lean @@ -0,0 +1,72 @@ +import OAI.Geometry.RCD.Transport.LengthComponentDyadic +import OAI.Geometry.RCD.Transport.CompressedSubplanNode +import OAI.Geometry.RCD.Transport.MaximalTreeScalarChord +import OAI.Geometry.RCD.Coordinates.RenyiChordNormalization + +namespace OAI + +/-! # The exact scalar chord at the actual length scale of each component -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped ENNReal Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem NoncollapsedRCD.component_scalar_chord + (K : ℝ) (n : ℕ) (hn : 2≤n) (hX : NoncollapsedRCD K n X) (hK : K≤0) + {N : ℝ} (hN : (n:ℝ)≤N) (a : RenyiTransportNode n X) + (π : Measure C(Time,X)) [IsProbabilityMeasure π] + (hg : ∀ᵐ γ ∂π, IsGeodesic γ) + (hp : IsOptimalCoupling a.left a.right (π.map (fun γ => (γ 0,γ 1)))) + {C : ℝ≥0∞} (hC : C≠∞) (hc : ∀ t : Time, π.map (fun γ => γ t)≤C • hausdorff n X) + {m : ℕ} (hm : RenyiDyadicMaximal (hausdorff n X) (1-1/N) (fun t => π.map (fun γ => γ t)) m) + {S : Set ℝ} (hS : MeasurableSet S) + (κ : Measure C(Time,X)) (heκ : κ=π.restrict {γ | dist (γ 0) (γ 1)∈S}) + (hκ0 : κ univ≠0) {D : ℝ} (hD0 : 0≤D) (hD : ∀ᵐ γ ∂κ, dist (γ 0) (γ 1)≤D) : + ∀ t∈dyadicGrid m, + reducedChord K (N+1) D + (renyiIntegral (hausdorff n X) (κ.map (fun γ => γ 0)) N) + (renyiIntegral (hausdorff n X) (κ.map (fun γ => γ 1)) N) t ≤ + renyiIntegral (hausdorff n X) (κ.map (fun γ => γ t)) N := by + let : SeparableSpace X := hX.separable + let := a.left_probability + let := a.right_probability + let μ := hausdorff n X + let : IsLocallyFiniteMeasure μ := locallyFinite_of_finiteOnBounded μ hX.finiteOnBounded + have hnR : (2:ℝ)≤n := by exact_mod_cast hn + have hN1 : 1 γ 0)) (π.map (fun γ => γ 1)) + (π.map (fun γ => (γ 0,γ 1))) := by rw [he.1,he.2]; exact hp + have hfin := finite_second_moment_cost + (finiteSecondMoment_of_bounded a.left a.center a.left_support) + (finiteSecondMoment_of_bounded a.right a.center a.right_support) hp.1 hp.2.1 + let πn := (κ univ)⁻¹ • κ + obtain ⟨hπn,hgn,hpn,_⟩ := normalized_optimal_subplan π hg hpp hfin κ hκ hκ0 + let : IsProbabilityMeasure πn := hπn + have heval (t : Time) : πn.map (fun γ => γ t)=(κ univ)⁻¹ • κ.map (fun γ => γ t) := + Measure.map_smul _ (measurable_path_eval t).aemeasurable + obtain ⟨b,hb0,hb1,hbD⟩ := hX.compressed_subplan_node K n hn a π hg hp hC hc κ hκ hκ0 hD0 hD + have hpb : IsOptimalCoupling b.left b.right (πn.map (fun γ => (γ 0,γ 1))) := by + rw [hb0,hb1,←heval,←heval]; exact hpn + have hmn := hX.length_component_dyadic_maximal K n hn hq0 hq1 hC m a π inferInstance + hg hp hc hm S hS κ heκ hκ0 + have hcn := normalized_subplan_compression π κ hκ hc + have hcf : (κ univ)⁻¹*C≠∞ := ENNReal.mul_ne_top (ENNReal.inv_ne_top.mpr hκ0) hC + intro t ht + have hh := hX.maximal_tree_scalar_chord K n hn hK hN hcf m b πn hπn hgn hpb hcn hmn t ht + rw [hbD,heval,heval,heval] at hh + exact renyiIntegral_normalized_chord μ _ _ _ hκ0 hκtop hN1 hh + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/ComponentScalarMidpoint.lean b/lean/OAI/Geometry/RCD/Transport/ComponentScalarMidpoint.lean new file mode 100644 index 0000000000000000000000000000000000000000..d5bbf94ea9d010eaa3bdfae508af63180e9a8c95 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/ComponentScalarMidpoint.lean @@ -0,0 +1,108 @@ +import OAI.Geometry.RCD.Metric.ComponentDistanceNodes +import OAI.Geometry.RCD.Transport.GlobalRenyiLeftComponent +import OAI.Geometry.RCD.Transport.GlobalRenyiRightComponent +import OAI.Geometry.RCD.Coordinates.RenyiScalarNormalization + +namespace OAI + +/-! # Scalar reduced midpoint bounds for actual length components + +The component length bound, rather than the parent diameter, appears in +both half estimates. Normalization cancels exactly. Midpoint maximality is +inherited from the parent and is not postulated for the component. +-/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped Topology ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem NoncollapsedRCD.component_scalar_midpoints + (K : ℝ) (n : ℕ) (hn : 2≤n) (hX : NoncollapsedRCD K n X) (hK : K≤0) + {N : ℝ} (hN : (n:ℝ)≤N) (a : RenyiTransportNode n X) + (π : Measure C(Time,X)) [IsProbabilityMeasure π] + (hg : ∀ᵐ γ ∂π, IsGeodesic γ) + (hp : IsOptimalCoupling a.left a.right (π.map (fun γ => (γ 0,γ 1)))) + {C : ℝ≥0∞} (hC : C≠∞) (hcomp : ∀ t : Time, π.map (fun γ => γ t)≤C • hausdorff n X) + {S : Set ℝ} (hS : MeasurableSet S) + (κ : Measure C(Time,X)) (hκeq : κ=π.restrict {γ | dist (γ 0) (γ 1)∈S}) + (hκ0 : κ univ≠0) {D : ℝ} (hD0 : 0≤D) + (hD : ∀ᵐ γ ∂κ, dist (γ 0) (γ 1)≤D) + (hmaxL : RenyiMaximizingPlan (hausdorff n X) + (π.map (fun γ => γ 0)) (π.map (fun γ => γ midpointTime)) + (π.map (subpath 0 midpointTime)) midpointTime (1-1/N)) + (hmaxR : RenyiMaximizingPlan (hausdorff n X) + (π.map (fun γ => γ midpointTime)) (π.map (fun γ => γ 1)) + (π.map (subpath midpointTime 1)) midpointTime (1-1/N)) : + (sigma K (N+1) (1/2) (D/2) * + (renyiIntegral (hausdorff n X) (κ.map (fun γ => γ 0)) N+ + renyiIntegral (hausdorff n X) (κ.map (fun γ => γ midpointTime)) N) ≤ + renyiIntegral (hausdorff n X) (κ.map (fun γ => γ (lowerTime midpointTime))) N) ∧ + (sigma K (N+1) (1/2) (D/2) * + (renyiIntegral (hausdorff n X) (κ.map (fun γ => γ midpointTime)) N+ + renyiIntegral (hausdorff n X) (κ.map (fun γ => γ 1)) N) ≤ + renyiIntegral (hausdorff n X) (κ.map (fun γ => γ (upperTime midpointTime))) N) := by + let : SeparableSpace X := hX.separable + let : CompleteSpace X := hX.complete + let : Nonempty X := ⟨a.center⟩ + let : IsProbabilityMeasure a.left := a.left_probability + let : IsProbabilityMeasure a.right := a.right_probability + let μ := hausdorff n X + let : IsLocallyFiniteMeasure μ := locallyFinite_of_finiteOnBounded μ hX.finiteOnBounded + have hN1 : 1 γ 0)) (π.map (fun γ => γ 1)) + (π.map (fun γ => (γ 0,γ 1))) := by rw [he.1,he.2]; exact hp + have hfin := finite_second_moment_cost + (finiteSecondMoment_of_bounded a.left a.center a.left_support) + (finiteSecondMoment_of_bounded a.right a.center a.right_support) hp.1 hp.2.1 + let πn := (κ univ)⁻¹ • κ + obtain ⟨hπn,hgn,hpn,hfn⟩ := normalized_optimal_subplan π hg hpp hfin κ hκ hκ0 + let : IsProbabilityMeasure πn := hπn + have heval (t : Time) : πn.map (fun γ => γ t)=(κ univ)⁻¹ • κ.map (fun γ => γ t) := + Measure.map_smul _ (measurable_path_eval t).aemeasurable + obtain ⟨hL,hgL,hpL⟩ := geodesic_subpath_law πn hgn hpn hfn 0 midpointTime + obtain ⟨hR,hgR,hpR⟩ := geodesic_subpath_law πn hgn hpn hfn midpointTime 1 + let := hL + let := hR + have hmapL : πn.map (subpath 0 midpointTime)=(κ univ)⁻¹ • κ.map (subpath 0 midpointTime) := + Measure.map_smul _ (subpath_measurable 0 midpointTime).aemeasurable + have hmapR : πn.map (subpath midpointTime 1)=(κ univ)⁻¹ • κ.map (subpath midpointTime 1) := + Measure.map_smul _ (subpath_measurable midpointTime 1).aemeasurable + have hmL : RenyiMaximizingPlan μ b₀.left b₀.right (πn.map (subpath 0 midpointTime)) + midpointTime (1-1/N) := by + rw [h0,hm0,hmapL] + exact hX.global_renyi_left_component K n hn a π hg hp hS κ hκeq hκ0 hq0 hq1 hmaxL + have hmR : RenyiMaximizingPlan μ b₁.left b₁.right (πn.map (subpath midpointTime 1)) + midpointTime (1-1/N) := by + rw [hm1,h1,hmapR] + exact hX.global_renyi_right_component K n hn a π hg hp hS κ hκeq hκ0 hq0 hq1 hmaxR + have hpL' : IsOptimalCoupling b₀.left b₀.right + ((πn.map (subpath 0 midpointTime)).map (fun γ => (γ 0,γ 1))) := by + rw [h0,hm0,←heval,←heval]; exact hpL + have hpR' : IsOptimalCoupling b₁.left b₁.right + ((πn.map (subpath midpointTime 1)).map (fun γ => (γ 0,γ 1))) := by + rw [hm1,h1,←heval,←heval]; exact hpR + have hbL := hX.maximal_scalar_midpoint K n hn hK hN b₀ _ hgL hpL' hmL + have hbR := hX.maximal_scalar_midpoint K n hn hK hN b₁ _ hgR hpR' hmR + rw [h0,hm0,hd0,subpath_map_eval πn 0 midpointTime midpointTime,heval] at hbL + rw [hm1,h1,hd1,subpath_map_eval πn midpointTime 1 midpointTime,heval] at hbR + exact ⟨renyiIntegral_normalized_bound μ _ _ _ hκ0 hc hN1 hbL, + renyiIntegral_normalized_bound μ _ _ _ hκ0 hc hN1 hbR⟩ + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/CompressedAllInverse.lean b/lean/OAI/Geometry/RCD/Transport/CompressedAllInverse.lean new file mode 100644 index 0000000000000000000000000000000000000000..de64be8f925161704bdfe2076eac6d653b6f4620 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/CompressedAllInverse.lean @@ -0,0 +1,77 @@ +import OAI.Geometry.RCD.Transport.CompressedInitialInverse + +namespace OAI + +/-! # Measurable inverses for every evaluation, including both endpoints -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped ENNReal NNReal Topology +noncomputable section +namespace RegularPointCoordinates.NoncollapsedRCD +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] [SeparableSpace X] {K : ℝ} {n : ℕ} + [IsLocallyFiniteMeasure (hausdorff n X)] (hX : NoncollapsedRCD K n X) +include hX +attribute [local instance] pathBorel pathBorelSpace + +theorem compressed_final_inverse (hn : 2 ≤ n) (p : X) {R : ℝ} (hR : 0 ≤ R) + (π : Measure C(Time,X)) [IsProbabilityMeasure π] (hg : ∀ᵐ γ ∂π, IsGeodesic γ) + (hp : IsOptimalCoupling (π.map (fun γ => γ 0)) (π.map (fun γ => γ 1)) + (π.map (fun γ => (γ 0,γ 1)))) + {C : ℝ≥0} (hC : 0 < C) + (hc : ∀ t : Time, π.map (fun γ => γ t) ≤ ENNReal.ofReal C • hausdorff n X) + (hs₀ : ∀ᵐ x ∂π.map (fun γ => γ 0), dist x p ≤ R) + (hs₁ : ∀ᵐ x ∂π.map (fun γ => γ 1), dist x p ≤ R) + : + ∃ g : X → C(Time,X), Measurable g ∧ ∀ᵐ γ ∂π, g (γ 1)=γ := by + let : CompleteSpace X := hX.complete + let : Nonempty X := nonempty_of_isProbabilityMeasure (π.map (fun γ => γ 0)) + have hfin := coupling_transportCost_ne_top hp.1 hp.2.1 p + (integrable_dist_sq_of_ae_bounded _ p hs₀) (integrable_dist_sq_of_ae_bounded _ p hs₁) + obtain ⟨_,hgrev,hprev⟩ := geodesic_subpath_law π hg hp hfin 1 0 + let πr := π.map (subpath 1 0) + have hcomp (r : Time) : πr.map (fun γ => γ r) ≤ ENNReal.ofReal C • hausdorff n X := by + rw [show πr=π.map (subpath 1 0) from rfl,subpath_map_eval] + exact hc _ + have hprev' : IsOptimalCoupling (πr.map (fun γ => γ 0)) (πr.map (fun γ => γ 1)) + (πr.map (fun γ => (γ 0,γ 1))) := by + simpa only [πr,subpath_map_eval,timeSegment_zero,timeSegment_one] using hprev + have hsrev₀ : ∀ᵐ x ∂πr.map (fun γ => γ 0), dist x p ≤ R := by + simpa only [πr,subpath_map_eval,timeSegment_zero] using hs₁ + have hsrev₁ : ∀ᵐ x ∂πr.map (fun γ => γ 1), dist x p ≤ R := by + simpa only [πr,subpath_map_eval,timeSegment_one] using hs₀ + obtain ⟨g,hg,hgi⟩ := hX.compressed_initial_inverse hn p hR πr hgrev hprev' hC hcomp hsrev₀ hsrev₁ + refine ⟨(subpath 1 0) ∘ g,(subpath_measurable 1 0).comp hg,?_⟩ + have hi := ae_of_ae_map (μ:=π) (subpath_measurable 1 0).aemeasurable hgi + filter_upwards [hi] with γ hγ + change g (γ (timeSegment 1 0 0))=subpath 1 0 γ at hγ + rw [timeSegment_zero] at hγ + have hγ' : g (γ 1)=subpath 1 0 γ := hγ + change subpath 1 0 (g (γ 1))=γ + rw [hγ',subpath_reverse_reverse] + +theorem compressed_time_inverse (hn : 2 ≤ n) (p : X) {R : ℝ} (hR : 0 ≤ R) + (π : Measure C(Time,X)) [IsProbabilityMeasure π] (hg : ∀ᵐ γ ∂π, IsGeodesic γ) + (hp : IsOptimalCoupling (π.map (fun γ => γ 0)) (π.map (fun γ => γ 1)) + (π.map (fun γ => (γ 0,γ 1)))) + {C : ℝ≥0} (hC : 0 < C) + (hc : ∀ t : Time, π.map (fun γ => γ t) ≤ ENNReal.ofReal C • hausdorff n X) + (hs₀ : ∀ᵐ x ∂π.map (fun γ => γ 0), dist x p ≤ R) + (hs₁ : ∀ᵐ x ∂π.map (fun γ => γ 1), dist x p ≤ R) + (t : Time) : + ∃ g : X → C(Time,X), Measurable g ∧ ∀ᵐ γ ∂π, g (γ t)=γ := by + by_cases h0 : t=0 + · subst t + exact hX.compressed_initial_inverse hn p hR π hg hp hC hc hs₀ hs₁ + by_cases h1 : t=1 + · subst t + exact hX.compressed_final_inverse hn p hR π hg hp hC hc hs₀ hs₁ + exact hX.compressed_evaluation_inverse hn p hR π hg hp hC hc hs₀ hs₁ t + (lt_of_le_of_ne t.property.1 (by intro he; exact h0 (Subtype.ext he.symm))) + (lt_of_le_of_ne t.property.2 (by intro he; exact h1 (Subtype.ext he))) + +end RegularPointCoordinates.NoncollapsedRCD + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/CompressedEntropyConvexity.lean b/lean/OAI/Geometry/RCD/Transport/CompressedEntropyConvexity.lean new file mode 100644 index 0000000000000000000000000000000000000000..20093b8faf086bcd1e7e53c25af774234ade7749 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/CompressedEntropyConvexity.lean @@ -0,0 +1,57 @@ +import OAI.Geometry.RCD.Transport.StrongEntropyMeasure + +namespace OAI + +/-! # Strong entropy convexity on every bounded compressed optimal plan -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped ENNReal NNReal Topology +noncomputable section +namespace RegularPointCoordinates.NoncollapsedRCD +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] [SeparableSpace X] {K : ℝ} {n : ℕ} + [IsLocallyFiniteMeasure (hausdorff n X)] (hX : NoncollapsedRCD K n X) +include hX +attribute [local instance] pathBorel pathBorelSpace + +theorem compressed_plan_entropy_convexity (hn : 2 ≤ n) (p : X) {R : ℝ} (hR : 0 ≤ R) + (π : Measure C(Time,X)) [IsProbabilityMeasure π] (hg : ∀ᵐ γ ∂π, IsGeodesic γ) + (hp : IsOptimalCoupling (π.map (fun γ => γ 0)) (π.map (fun γ => γ 1)) + (π.map (fun γ => (γ 0,γ 1)))) + {C : ℝ≥0} (hcomp : ∀ t : Time, π.map (fun γ => γ t) ≤ ENNReal.ofReal C • hausdorff n X) + (hs₀ : ∀ᵐ x ∂π.map (fun γ => γ 0), dist x p ≤ R) + (hs₁ : ∀ᵐ x ∂π.map (fun γ => γ 1), dist x p ≤ R) (t : Time) : + boltzmannEntropy (hausdorff n X) (π.map (fun γ => γ t)) ≤ + (1-(t:ℝ))*boltzmannEntropy (hausdorff n X) (π.map (fun γ => γ 0))+ + (t:ℝ)*boltzmannEntropy (hausdorff n X) (π.map (fun γ => γ 1))- + (K/2)*(t:ℝ)*(1-(t:ℝ))* + (wassersteinSq (π.map (fun γ => γ 0)) (π.map (fun γ => γ 1))).toReal := by + let : CompleteSpace X := hX.complete + let : Nonempty X := nonempty_of_isProbabilityMeasure (π.map (fun γ => γ 0)) + have hfin := coupling_transportCost_ne_top hp.1 hp.2.1 p + (integrable_dist_sq_of_ae_bounded _ p hs₀) (integrable_dist_sq_of_ae_bounded _ p hs₁) + have he (s t : Time) : + (wassersteinSq (π.map (fun γ => γ s)) (π.map (fun γ => γ t))).toReal= + |(s:ℝ)-(t:ℝ)|^2* + (wassersteinSq (π.map (fun γ => γ 0)) (π.map (fun γ => γ 1))).toReal := by + rw [wassersteinSq_eq_cost (geodesic_plan_optimal_marginals π hg hp hfin s t), + geodesic_plan_cost π hg,ENNReal.toReal_mul,ENNReal.toReal_pow, + ENNReal.toReal_ofReal (abs_nonneg _),wassersteinSq_eq_cost hp] + have hsupport : ∀ᵐ x ∂π.map (fun γ => γ t), dist x p ≤ 3*R := by + apply (ae_map_iff (measurable_path_eval t).aemeasurable + (measurableSet_le (continuous_id.dist continuous_const).measurable measurable_const)).mpr + exact (optimal_geodesic_plan_bounded _ _ π hg hp p hR hs₀ hs₁).mono fun γ hγ => hγ.2 t + apply hX.bounded_entropy_geodesic_measure hn p _ _ _ (hcomp 0) (hcomp 1) (hcomp t) + hs₀ hs₁ hsupport t.property.1 t.property.2 + · rw [he] + simp only [show ((0 : Time) : ℝ) = 0 from rfl,sub_zero, + abs_of_nonneg t.property.1] + · rw [he] + simp only [show ((1 : Time) : ℝ) = 1 from rfl, + abs_of_nonpos (sub_nonpos.mpr t.property.2),neg_sub] + +end RegularPointCoordinates.NoncollapsedRCD + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/CompressedEvaluationInverse.lean b/lean/OAI/Geometry/RCD/Transport/CompressedEvaluationInverse.lean new file mode 100644 index 0000000000000000000000000000000000000000..bafb7b1a3c8301e748ce98c6817f8108813385ec --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/CompressedEvaluationInverse.lean @@ -0,0 +1,65 @@ +import OAI.Geometry.RCD.Transport.MeetingPairCollapse +import OAI.Geometry.RCD.Heat.ConditionalPairInverse + +namespace OAI + +/-! # Measurable inversion of interior evaluation for the actual compressed plan -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped ENNReal NNReal Topology +noncomputable section +namespace RegularPointCoordinates.NoncollapsedRCD +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] [SeparableSpace X] {K : ℝ} {n : ℕ} + [IsLocallyFiniteMeasure (hausdorff n X)] (hX : NoncollapsedRCD K n X) +include hX +attribute [local instance] pathBorel pathBorelSpace + +theorem compressed_evaluation_inverse (hn : 2 ≤ n) (p : X) {R : ℝ} (hR : 0 ≤ R) + (π : Measure C(Time,X)) [IsProbabilityMeasure π] (hg : ∀ᵐ γ ∂π, IsGeodesic γ) + (hp : IsOptimalCoupling (π.map (fun γ => γ 0)) (π.map (fun γ => γ 1)) + (π.map (fun γ => (γ 0,γ 1)))) + {C : ℝ≥0} (hC : 0 < C) + (hc : ∀ t : Time, π.map (fun γ => γ t) ≤ ENNReal.ofReal C • hausdorff n X) + (hs₀ : ∀ᵐ x ∂π.map (fun γ => γ 0), dist x p ≤ R) + (hs₁ : ∀ᵐ x ∂π.map (fun γ => γ 1), dist x p ≤ R) + (t : Time) (ht0 : 0 < (t:ℝ)) (ht1 : (t:ℝ) < 1) : + ∃ g : X → C(Time,X), Measurable g ∧ ∀ᵐ γ ∂π, g (γ t)=γ := by + let : CompleteSpace X := hX.complete + let : Nonempty C(Time,X) := nonempty_of_isProbabilityMeasure π + have hac := Measure.absolutelyContinuous_of_le_smul (hc 0) + obtain ⟨u,φ,ψ,L,hφ,hψ,_,_,_,had,hcontact,_⟩ := hp.bounded_sobolev_potential + (hausdorff n X) hX.quadratic hX.geodesic _ _ hac p hR hs₀ hs₁ + have hct : ∀ᵐ γ ∂π, φ (γ 0)+ψ (γ 1)=dist (γ 0) (γ 1)^2/2 := + ae_of_ae_map ((measurable_path_eval 0).prodMk (measurable_path_eval 1)).aemeasurable hcontact + let σ := conditionalSelfPair π (fun γ => γ t) (measurable_path_eval t) + obtain ⟨hσ₀,hσ₁⟩ := conditionalSelfPair_marginals π (fun γ => γ t) (measurable_path_eval t) + let : IsProbabilityMeasure σ := ⟨by + have h := congrArg (fun m : Measure C(Time,X) => m univ) hσ₀ + simpa only [Measure.map_apply measurable_fst MeasurableSet.univ,preimage_univ,measure_univ] using h⟩ + have hmeet : ∀ᵐ z ∂σ, z.1 t=z.2 t := + conditionalSelfPair_common π (fun γ => γ t) (measurable_path_eval t) + have hdiag := hX.contacting_pair_collapse hn p hR π hg hp hC hc hs₀ hs₁ + hφ.continuous.measurable hψ.continuous.measurable had hct σ hσ₀ hσ₁ t ht0 ht1 hmeet + exact measurable_inverse_of_conditional_diagonal π (fun γ => γ t) (measurable_path_eval t) hdiag + +theorem compressed_evaluation_injective (hn : 2 ≤ n) (p : X) {R : ℝ} (hR : 0 ≤ R) + (π : Measure C(Time,X)) [IsProbabilityMeasure π] (hg : ∀ᵐ γ ∂π, IsGeodesic γ) + (hp : IsOptimalCoupling (π.map (fun γ => γ 0)) (π.map (fun γ => γ 1)) + (π.map (fun γ => (γ 0,γ 1)))) + {C : ℝ≥0} (hC : 0 < C) + (hc : ∀ t : Time, π.map (fun γ => γ t) ≤ ENNReal.ofReal C • hausdorff n X) + (hs₀ : ∀ᵐ x ∂π.map (fun γ => γ 0), dist x p ≤ R) + (hs₁ : ∀ᵐ x ∂π.map (fun γ => γ 1), dist x p ≤ R) + (t : Time) (ht0 : 0 < (t:ℝ)) (ht1 : (t:ℝ) < 1) : + ∃ S : Set C(Time,X), MeasurableSet S ∧ (∀ᵐ γ ∂π, γ ∈ S) ∧ InjOn (fun γ => γ t) S := by + obtain ⟨g,hg,hgπ⟩ := hX.compressed_evaluation_inverse hn p hR π hg hp hC hc hs₀ hs₁ t ht0 ht1 + refine ⟨{γ | g (γ t)=γ},measurableSet_eq_fun (hg.comp (measurable_path_eval t)) measurable_id,hgπ,?_⟩ + intro γ hγ ζ hζ he + exact hγ.symm.trans ((congrArg g he).trans hζ) + +end RegularPointCoordinates.NoncollapsedRCD + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/CompressedFiniteUnique.lean b/lean/OAI/Geometry/RCD/Transport/CompressedFiniteUnique.lean new file mode 100644 index 0000000000000000000000000000000000000000..0c65631bf0af2600388e7d7a9eedd5d49691f1b1 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/CompressedFiniteUnique.lean @@ -0,0 +1,53 @@ +import OAI.Geometry.RCD.Transport.CompressedPlanUnique + +namespace OAI + +/-! # Comparison of two arbitrary finite compression constants -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped ENNReal NNReal Topology +noncomputable section +namespace RegularPointCoordinates.NoncollapsedRCD +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] [SeparableSpace X] {K : ℝ} {n : ℕ} + [IsLocallyFiniteMeasure (hausdorff n X)] (hX : NoncollapsedRCD K n X) +include hX +attribute [local instance] pathBorel pathBorelSpace + +theorem compressed_plan_unique_finite (hn : 2 ≤ n) (p : X) {R : ℝ} (hR : 0 ≤ R) + {ν₀ ν₁ : Measure X} + (π ρ : Measure C(Time,X)) [IsProbabilityMeasure π] [IsProbabilityMeasure ρ] + (hgπ : ∀ᵐ γ ∂π, IsGeodesic γ) (hgρ : ∀ᵐ γ ∂ρ, IsGeodesic γ) + (hpπ : IsOptimalCoupling ν₀ ν₁ (π.map (fun γ => (γ 0,γ 1)))) + (hpρ : IsOptimalCoupling ν₀ ν₁ (ρ.map (fun γ => (γ 0,γ 1)))) + {C D : ℝ≥0∞} (hC : C ≠ ∞) (hD : D ≠ ∞) + (hcπ : ∀ t : Time, π.map (fun γ => γ t) ≤ C • hausdorff n X) + (hcρ : ∀ t : Time, ρ.map (fun γ => γ t) ≤ D • hausdorff n X) + (hs₀ : ∀ᵐ x ∂ν₀, dist x p ≤ R) (hs₁ : ∀ᵐ x ∂ν₁, dist x p ≤ R) : π=ρ := by + let B : ℝ≥0 := ⟨C.toReal+D.toReal+1,by positivity⟩ + have hB : 0 < B := by change 0 < C.toReal+D.toReal+1; positivity + have hCB : C ≤ ENNReal.ofReal B := by + rw [←ENNReal.ofReal_toReal hC] + apply ENNReal.ofReal_le_ofReal + change C.toReal ≤ C.toReal+D.toReal+1 + linarith [ENNReal.toReal_nonneg (a:=D)] + have hDB : D ≤ ENNReal.ofReal B := by + rw [←ENNReal.ofReal_toReal hD] + apply ENNReal.ofReal_le_ofReal + change D.toReal ≤ C.toReal+D.toReal+1 + linarith [ENNReal.toReal_nonneg (a:=C)] + apply hX.compressed_plan_unique hn p hR π ρ hgπ hgρ hpπ hpρ hB _ _ hs₀ hs₁ + · intro t + apply (hcπ t).trans + intro S + exact mul_le_mul' hCB le_rfl + · intro t + apply (hcρ t).trans + intro S + exact mul_le_mul' hDB le_rfl + +end RegularPointCoordinates.NoncollapsedRCD + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/CompressedInitialInverse.lean b/lean/OAI/Geometry/RCD/Transport/CompressedInitialInverse.lean new file mode 100644 index 0000000000000000000000000000000000000000..a477b5d3297107b1a7d02b603bc02af02ec1ba13 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/CompressedInitialInverse.lean @@ -0,0 +1,60 @@ +import OAI.Geometry.RCD.Transport.PairedInitialUniqueness +import OAI.Geometry.RCD.Heat.ConditionalPairInverse + +namespace OAI + +/-! # Measurable inversion of initial evaluation for the actual compressed plan -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped ENNReal NNReal Topology +noncomputable section +namespace RegularPointCoordinates.NoncollapsedRCD +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] [SeparableSpace X] {K : ℝ} {n : ℕ} + [IsLocallyFiniteMeasure (hausdorff n X)] (hX : NoncollapsedRCD K n X) +include hX +attribute [local instance] pathBorel pathBorelSpace + +theorem compressed_initial_inverse (hn : 2 ≤ n) (p : X) {R : ℝ} (hR : 0 ≤ R) + (π : Measure C(Time,X)) [IsProbabilityMeasure π] (hg : ∀ᵐ γ ∂π, IsGeodesic γ) + (hp : IsOptimalCoupling (π.map (fun γ => γ 0)) (π.map (fun γ => γ 1)) + (π.map (fun γ => (γ 0,γ 1)))) + {C : ℝ≥0} (hC : 0 < C) + (hc : ∀ t : Time, π.map (fun γ => γ t) ≤ ENNReal.ofReal C • hausdorff n X) + (hs₀ : ∀ᵐ x ∂π.map (fun γ => γ 0), dist x p ≤ R) + (hs₁ : ∀ᵐ x ∂π.map (fun γ => γ 1), dist x p ≤ R) + : + ∃ g : X → C(Time,X), Measurable g ∧ ∀ᵐ γ ∂π, g (γ 0)=γ := by + let : CompleteSpace X := hX.complete + let : Nonempty C(Time,X) := nonempty_of_isProbabilityMeasure π + let σ := conditionalSelfPair π (fun γ => γ 0) (measurable_path_eval 0) + obtain ⟨hσ₀,hσ₁⟩ := conditionalSelfPair_marginals π (fun γ => γ 0) (measurable_path_eval 0) + let : IsProbabilityMeasure σ := ⟨by + have h := congrArg (fun m : Measure C(Time,X) => m univ) hσ₀ + simpa only [Measure.map_apply measurable_fst MeasurableSet.univ,preimage_univ,measure_univ] using h⟩ + have hmeet : ∀ᵐ z ∂σ, z.1 0=z.2 0 := + conditionalSelfPair_common π (fun γ => γ 0) (measurable_path_eval 0) + have hdiag := hX.paired_common_initial_unique hn p hR π hg hp hC hc hs₀ hs₁ + σ hσ₀.le hσ₁.le hmeet + exact measurable_inverse_of_conditional_diagonal π (fun γ => γ 0) (measurable_path_eval 0) hdiag + +theorem compressed_initial_injective (hn : 2 ≤ n) (p : X) {R : ℝ} (hR : 0 ≤ R) + (π : Measure C(Time,X)) [IsProbabilityMeasure π] (hg : ∀ᵐ γ ∂π, IsGeodesic γ) + (hp : IsOptimalCoupling (π.map (fun γ => γ 0)) (π.map (fun γ => γ 1)) + (π.map (fun γ => (γ 0,γ 1)))) + {C : ℝ≥0} (hC : 0 < C) + (hc : ∀ t : Time, π.map (fun γ => γ t) ≤ ENNReal.ofReal C • hausdorff n X) + (hs₀ : ∀ᵐ x ∂π.map (fun γ => γ 0), dist x p ≤ R) + (hs₁ : ∀ᵐ x ∂π.map (fun γ => γ 1), dist x p ≤ R) + : + ∃ S : Set C(Time,X), MeasurableSet S ∧ (∀ᵐ γ ∂π, γ ∈ S) ∧ InjOn (fun γ => γ 0) S := by + obtain ⟨g,hg,hgπ⟩ := hX.compressed_initial_inverse hn p hR π hg hp hC hc hs₀ hs₁ + refine ⟨{γ | g (γ 0)=γ},measurableSet_eq_fun (hg.comp (measurable_path_eval 0)) measurable_id,hgπ,?_⟩ + intro γ hγ ζ hζ he + exact hγ.symm.trans ((congrArg g he).trans hζ) + +end RegularPointCoordinates.NoncollapsedRCD + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/CompressedPlanChildren.lean b/lean/OAI/Geometry/RCD/Transport/CompressedPlanChildren.lean new file mode 100644 index 0000000000000000000000000000000000000000..549446ec880d2e26b7703d4f6a8da5c29e6e2b9e --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/CompressedPlanChildren.lean @@ -0,0 +1,31 @@ +import OAI.Geometry.RCD.Coordinates.NormalizedSubplanNodes + +namespace OAI + +/-! # Half nodes for an actual compressed plan -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped ENNReal Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [SeparableSpace X] [CompleteSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem compressed_plan_children {n : ℕ} (a : RenyiTransportNode n X) + (π : Measure C(Time,X)) [IsProbabilityMeasure π] + (hg : ∀ᵐ γ ∂π, IsGeodesic γ) + (hp : IsOptimalCoupling a.left a.right (π.map (fun γ => (γ 0,γ 1)))) + {C : ℝ≥0∞} (hC : C≠∞) (hc : ∀ t : Time, π.map (fun γ => γ t)≤C • hausdorff n X) : + ∃ a₀ a₁ : RenyiTransportNode n X, + a₀.left=π.map (fun γ => γ 0) ∧ a₀.right=π.map (fun γ => γ midpointTime) ∧ + a₁.left=π.map (fun γ => γ midpointTime) ∧ a₁.right=π.map (fun γ => γ 1) ∧ + a₀.distance=a.distance/2 ∧ a₁.distance=a.distance/2 := by + simpa only [measure_univ,inv_one,one_smul] using + exists_normalized_subplan_half_nodes a π hg hp hC hc π le_rfl (by simp) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/CompressedPlanMixture.lean b/lean/OAI/Geometry/RCD/Transport/CompressedPlanMixture.lean new file mode 100644 index 0000000000000000000000000000000000000000..0c44cc44a982b0eeb14556b0f23f25d45b9cae66 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/CompressedPlanMixture.lean @@ -0,0 +1,66 @@ +import OAI.Geometry.RCD.Transport.PairedPathUniqueness +import OAI.Geometry.RCD.Transport.PairedSuffixUniqueness + +namespace OAI + +/-! # Explicit optimal half mixtures with their compression and domination -/ + +open Set Filter MeasureTheory TopologicalSpace +open scoped ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [SeparableSpace X] +attribute [local instance] pathBorel pathBorelSpace + +omit [SeparableSpace X] in +theorem half_mixture_plan_data {ν₀ ν₁ : Measure X} + (π ρ : Measure C(Time,X)) [IsProbabilityMeasure π] [IsProbabilityMeasure ρ] + (hgπ : ∀ᵐ γ ∂π, IsGeodesic γ) (hgρ : ∀ᵐ γ ∂ρ, IsGeodesic γ) + (hpπ : IsOptimalCoupling ν₀ ν₁ (π.map (fun γ => (γ 0,γ 1)))) + (hpρ : IsOptimalCoupling ν₀ ν₁ (ρ.map (fun γ => (γ 0,γ 1)))) : + let τ := (2:ℝ≥0∞)⁻¹ • (π+ρ) + IsProbabilityMeasure τ ∧ (∀ᵐ γ ∂τ, IsGeodesic γ) ∧ + IsOptimalCoupling ν₀ ν₁ (τ.map (fun γ => (γ 0,γ 1))) ∧ + (2:ℝ≥0∞)⁻¹ • π ≤ τ ∧ (2:ℝ≥0∞)⁻¹ • ρ ≤ τ := by + let c : ℝ≥0∞ := (2:ℝ≥0∞)⁻¹ + let τ := c • (π+ρ) + have hcc : c+c=1 := by + dsimp only [c] + rw [←two_mul,ENNReal.mul_inv_cancel (by norm_num) (by norm_num)] + have hprob : IsProbabilityMeasure τ := ⟨by + change c*(π univ+ρ univ)=1 + simp only [measure_univ,mul_add,mul_one,hcc]⟩ + have hm := (measurable_path_eval (X:=X) 0).prodMk (measurable_path_eval 1) + have he (ν : Measure X) : c • (ν+ν)=ν := half_smul_self ν + have hopt : IsOptimalCoupling ν₀ ν₁ (τ.map (fun γ => (γ 0,γ 1))) := by + rw [show τ=c • (π+ρ) from rfl,Measure.map_smul _ hm.aemeasurable,Measure.map_add _ _ hm] + refine ⟨?_,?_,?_⟩ + · rw [Measure.map_smul _ measurable_fst.aemeasurable,Measure.map_add _ _ measurable_fst, + hpπ.1,hpρ.1,he] + · rw [Measure.map_smul _ measurable_snd.aemeasurable,Measure.map_add _ _ measurable_snd, + hpπ.2.1,hpρ.2.1,he] + · intro η hη₀ hη₁ + rw [transportCost_smul,transportCost_add,mul_add] + calc + _ ≤ c*transportCost η+c*transportCost η := + add_le_add (mul_le_mul' le_rfl (hpπ.2.2 η hη₀ hη₁)) + (mul_le_mul' le_rfl (hpρ.2.2 η hη₀ hη₁)) + _ = _ := by rw [←add_mul,hcc,one_mul] + refine ⟨hprob,?_,hopt,?_,?_⟩ + · exact ((ae_add_measure_iff.mpr ⟨hgπ,hgρ⟩).filter_mono Measure.smul_absolutelyContinuous.ae_le) + · exact smul_le_smul_left c (Measure.le_add_right le_rfl) + · exact smul_le_smul_left c (Measure.le_add_left le_rfl) + +omit [SeparableSpace X] in +theorem half_mixture_compression (μ : Measure X) (π ρ : Measure C(Time,X)) + {C : ℝ≥0∞} (hπ : ∀ t : Time, π.map (fun γ => γ t) ≤ C • μ) + (hρ : ∀ t : Time, ρ.map (fun γ => γ t) ≤ C • μ) (t : Time) : + ((2:ℝ≥0∞)⁻¹ • (π+ρ)).map (fun γ => γ t) ≤ C • μ := by + rw [half_mixture_map_eval] + exact (_root_.smul_le_smul_left ((2:ℝ≥0∞)⁻¹) (add_le_add (hπ t) (hρ t))).trans_eq (half_smul_self _) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/CompressedPlanUnique.lean b/lean/OAI/Geometry/RCD/Transport/CompressedPlanUnique.lean new file mode 100644 index 0000000000000000000000000000000000000000..f5414ae3d761bd5fdbcd73c51a7fed9d3506f191 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/CompressedPlanUnique.lean @@ -0,0 +1,49 @@ +import OAI.Geometry.RCD.Transport.CompressedInitialInverse +import OAI.Geometry.RCD.Metric.InverseMeasureUnique + +namespace OAI + +/-! # Uniqueness among bounded compressed optimal dynamical plans -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped ENNReal NNReal Topology +noncomputable section +namespace RegularPointCoordinates.NoncollapsedRCD +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] [SeparableSpace X] {K : ℝ} {n : ℕ} + [IsLocallyFiniteMeasure (hausdorff n X)] (hX : NoncollapsedRCD K n X) +include hX +attribute [local instance] pathBorel pathBorelSpace + +theorem compressed_plan_unique (hn : 2 ≤ n) (p : X) {R : ℝ} (hR : 0 ≤ R) + {ν₀ ν₁ : Measure X} + (π ρ : Measure C(Time,X)) [IsProbabilityMeasure π] [IsProbabilityMeasure ρ] + (hgπ : ∀ᵐ γ ∂π, IsGeodesic γ) (hgρ : ∀ᵐ γ ∂ρ, IsGeodesic γ) + (hpπ : IsOptimalCoupling ν₀ ν₁ (π.map (fun γ => (γ 0,γ 1)))) + (hpρ : IsOptimalCoupling ν₀ ν₁ (ρ.map (fun γ => (γ 0,γ 1)))) + {C : ℝ≥0} (hC : 0 < C) + (hcπ : ∀ t : Time, π.map (fun γ => γ t) ≤ ENNReal.ofReal C • hausdorff n X) + (hcρ : ∀ t : Time, ρ.map (fun γ => γ t) ≤ ENNReal.ofReal C • hausdorff n X) + (hs₀ : ∀ᵐ x ∂ν₀, dist x p ≤ R) (hs₁ : ∀ᵐ x ∂ν₁, dist x p ≤ R) : π=ρ := by + let ξ := (2:ℝ≥0∞)⁻¹ • (π+ρ) + obtain ⟨hprob,hgξ,hpξ,hπξ,hρξ⟩ := half_mixture_plan_data π ρ hgπ hgρ hpπ hpρ + let : IsProbabilityMeasure ξ := hprob + have heπ := optimalPlan_endpoints ν₀ ν₁ π hpπ + have heρ := optimalPlan_endpoints ν₀ ν₁ ρ hpρ + have heξ := optimalPlan_endpoints ν₀ ν₁ ξ hpξ + have hcξ := half_mixture_compression (hausdorff n X) π ρ hcπ hcρ + have hpξ' : IsOptimalCoupling (ξ.map (fun γ => γ 0)) (ξ.map (fun γ => γ 1)) + (ξ.map (fun γ => (γ 0,γ 1))) := by rwa [heξ.1,heξ.2] + obtain ⟨g,hg,hgi⟩ := hX.compressed_initial_inverse hn p hR ξ hgξ hpξ' hC hcξ + (by rwa [heξ.1]) (by rwa [heξ.2]) + have hhalf : (2:ℝ≥0∞)⁻¹ ≠ 0 := by norm_num + exact measure_eq_of_common_ae_inverse ξ π ρ (measurable_path_eval 0) hg hgi + ((Measure.absolutelyContinuous_smul hhalf).trans hπξ.absolutelyContinuous) + ((Measure.absolutelyContinuous_smul hhalf).trans hρξ.absolutelyContinuous) + (heπ.1.trans heρ.1.symm) + +end RegularPointCoordinates.NoncollapsedRCD + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/CompressedRadialPlan.lean b/lean/OAI/Geometry/RCD/Transport/CompressedRadialPlan.lean new file mode 100644 index 0000000000000000000000000000000000000000..a31c7c769a55adc9a8bbb3ae93d75b03388e085b --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/CompressedRadialPlan.lean @@ -0,0 +1,94 @@ +import OAI.Geometry.RCD.Transport.RadialMidpoint +import OAI.Geometry.RCD.Transport.OptimalRadialMidpoint + +namespace OAI + +/-! # A bounded-compression radial plan from an actual bounded density + +First construct the radial midpoint by endpoint concentration. Apply the +proved bounded-compression transport theorem to that midpoint. Optimal +cost rigidity forces the replacement to have exactly the radial speed. +-/ + +open Set Filter Metric MeasureTheory TopologicalSpace +open scoped ENNReal + +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem NoncollapsedRCD.exists_compressed_radial_plan {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (hn : 2 ≤ n) (ν₀ : ProbabilityMeasure X) + {C₀ : ℝ≥0∞} (hC₀ : C₀ ≠ ∞) (h0 : (ν₀ : Measure X) ≤ C₀ • hausdorff n X) + (p : X) {R : ℝ} (hR : 0 < R) + (hs0 : ∀ᵐ x ∂(ν₀ : Measure X), dist x p ≤ R) : + ∃ π : Measure C(Time, X), IsProbabilityMeasure π ∧ + ∃ C : ℝ≥0∞, C ≠ ∞ ∧ + π.map (fun γ => γ 0) = (ν₀ : Measure X) ∧ + (∀ᵐ γ ∂π, IsGeodesic γ) ∧ + MemLp (fun γ : C(Time, X) => dist (γ 0) (γ 1)) 2 π ∧ + (∀ t : Time, π.map (fun γ => γ t) ≤ C • hausdorff n X) ∧ + ∀ᵐ γ ∂π, dist (γ 0) (γ 1) = dist (γ 1) p ∧ + dist (γ 0) p = dist (γ 0) (γ 1) + dist (γ 1) p := by + let := hX.separable + let := locallyFinite_of_finiteOnBounded (hausdorff n X) hX.finiteOnBounded + let μ := hausdorff n X + obtain ⟨q, hq, hq0, hq1, hqm⟩ := hX.exists_radial_midpoint_plan hn ν₀ hC₀ h0 p hR hs0 + let η : Measure X := (q.map (fun γ => γ midpointTime) : Measure X) + let C₁ := C₀ / (midpointFloor K n (2 * R)) ^ n + have hC₁ : C₁ ≠ ∞ := + ENNReal.div_ne_top hC₀ (pow_ne_zero _ (midpointFloor_pos K n (2 * R)).ne') + let A := max C₀ C₁ + have hA : A ≠ ∞ := (max_lt_iff.mpr ⟨hC₀.lt_top, hC₁.lt_top⟩).ne + have hb0 : (ν₀ : Measure X) ≤ A • μ := by + intro S + exact (h0 S).trans (mul_le_mul_left (le_max_left C₀ C₁) (μ S)) + have hb1 : η ≤ A • μ := by + intro S + exact (hqm S).trans (mul_le_mul_left (le_max_right C₀ C₁) (μ S)) + have hη : ∀ᵐ x ∂η, dist x p ≤ 3 * R := by + change ∀ᵐ x ∂(q.map (fun γ => γ midpointTime) : Measure X), dist x p ≤ 3 * R + rw [ProbabilityMeasure.toMeasure_map] + apply (ae_map_iff (measurable_path_eval midpointTime).aemeasurable + (measurableSet_le (measurable_id.dist measurable_const) measurable_const)).mpr + exact hq.mono fun _ hγ => hγ.2 midpointTime + have hs0' : ∀ᵐ x ∂(ν₀ : Measure X), dist x p ≤ 3 * R := + hs0.mono fun _ hx => by linarith + obtain ⟨π, hπ, hg, hp, hi, hcomp⟩ := hX.exists_bounded_entropy_plan K n hn + (ν₀ : Measure X) η hA hb0 hb1 p (by positivity : 0 ≤ 3 * R) hs0' hη + let := hπ + have hqD : Integrable (fun γ : C(Time, X) => dist (γ 0) (γ 1) ^ 2) + (q : Measure C(Time, X)) := by + apply Integrable.mono' (integrable_const ((6 * R) ^ 2)) + (((measurable_path_eval 0).dist (measurable_path_eval 1)).pow_const 2).aestronglyMeasurable + filter_upwards [hq] with γ hγ + rw [Real.norm_eq_abs, abs_of_nonneg (sq_nonneg _)] + have htri := dist_triangle (γ 0) p (γ 1) + rw [dist_comm p (γ 1)] at htri + exact pow_le_pow_left₀ dist_nonneg (by linarith [hγ.2 0, hγ.2 1]) 2 + have hqfinite : transportCost ((q : Measure C(Time, X)).map (fun γ => (γ 0, γ 1))) ≠ ∞ := by + rw [transportCost_plan_eq_integral _ hqD] + exact ENNReal.ofReal_ne_top + have hq1' : (q : Measure C(Time, X)).map (fun γ => γ 1) = Measure.dirac p := by + have hh := congrArg (fun ν : ProbabilityMeasure X => (ν : Measure X)) hq1 + change (q.map (fun γ => γ 1) : Measure X) = Measure.dirac p at hh + simpa only [ProbabilityMeasure.toMeasure_map] using hh + have hq0' : (q : Measure C(Time, X)).map (fun γ => γ 0) = (ν₀ : Measure X) := by + have hh := congrArg (fun ν : ProbabilityMeasure X => (ν : Measure X)) hq0 + simpa only [ProbabilityMeasure.toMeasure_map] using hh + have hp' : IsOptimalCoupling ((q : Measure C(Time, X)).map (fun γ => γ 0)) + ((q : Measure C(Time, X)).map (fun γ => γ midpointTime)) + (π.map (fun γ => (γ 0, γ 1))) := by + rw [hq0'] + exact hp + refine ⟨π, hπ, compressionBudget K n (2 * (3 * R)) A, + compressionBudget_ne_top K n _ hA, (optimalPlan_endpoints _ _ π hp).1, hg, + (memLp_two_iff_integrable_sq + ((measurable_path_eval 0).dist (measurable_path_eval 1)).aestronglyMeasurable).mpr hi, + fun t => (hcomp t).1, ?_⟩ + exact optimal_radial_midpoint q p (hq.mono fun _ hγ => hγ.1) hq1' hqfinite π hp' + +end RegularPointCoordinates + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/CompressedSegmentIntegral.lean b/lean/OAI/Geometry/RCD/Transport/CompressedSegmentIntegral.lean new file mode 100644 index 0000000000000000000000000000000000000000..356611a6044cb248ffd770e4e92936456f7c3bf0 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/CompressedSegmentIntegral.lean @@ -0,0 +1,67 @@ +import OAI.Geometry.RCD.Transport.LocalizedPlanEnergy +import Mathlib.MeasureTheory.Integral.Average + +namespace OAI + +/-! # Integrating a local defect along a compressed geodesic plan + +This is the first-moment step for the functional almost-splitting argument. +It retains the full local integrable defect, and permits the selected segment +to avoid any additional null set of paths. +-/ + +open Set Filter Metric MeasureTheory +open scoped ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem compressed_segment_integral + (μ : Measure X) (π : Measure C(Time,X)) [IsProbabilityMeasure π] + {C : ℝ≥0∞} (hC : C ≠ ∞) + (hc : ∀ t : Time, π.map (fun γ => γ t) ≤ C • μ) + {Ω : Set X} + (hstay : ∀ t : Time, ∀ᵐ x ∂π.map (fun γ => γ t), x ∈ Ω) + {F : X → ℝ} (hF : IntegrableOn F Ω μ) + (hFpos : ∀ᵐ x ∂μ.restrict Ω, 0 ≤ F x) : + Integrable (fun γ : C(Time,X) => + ∫ t in Icc (0:ℝ) 1, F (geodesicExtension γ t)) π ∧ + (∀ᵐ γ ∂π, IntegrableOn (fun t => F (geodesicExtension γ t)) (Icc (0:ℝ) 1)) ∧ + (∫ γ : C(Time,X), (∫ t in Icc (0:ℝ) 1, + F (geodesicExtension γ t)) ∂π) ≤ C.toReal * ∫ x in Ω, F x ∂μ := by + have hlocal (t : Time) : π.map (fun γ => γ t) ≤ C • μ.restrict Ω := + (compression_iff_localized μ _ (hstay t) C).mp (hc t) + have hcomp := testPlanMeasure_compression (μ.restrict Ω) π hlocal + have hmap := Integrable.of_measure_le_smul hC hcomp hF + have hprod := hmap.comp_measurable testPlanEval_measurable + have hbound : (∫ z, F (testPlanEval z) ∂testPlanMeasure π) ≤ + C.toReal * ∫ x in Ω, F x ∂μ := by + rw [← integral_map testPlanEval_measurable.aemeasurable hmap.aestronglyMeasurable] + simpa only [integral_smul_measure,smul_eq_mul] using + integral_mono_measure hcomp (Measure.ae_smul_measure hFpos C) (hF.smul_measure hC) + refine ⟨hprod.integral_prod_right,hprod.prod_left_ae,?_⟩ + exact (integral_prod_symm _ hprod).symm.le.trans hbound + +theorem exists_compressed_segment + (μ : Measure X) (π : Measure C(Time,X)) [IsProbabilityMeasure π] + {C : ℝ≥0∞} (hC : C ≠ ∞) + (hc : ∀ t : Time, π.map (fun γ => γ t) ≤ C • μ) + {Ω : Set X} + (hstay : ∀ t : Time, ∀ᵐ x ∂π.map (fun γ => γ t), x ∈ Ω) + {F : X → ℝ} (hF : IntegrableOn F Ω μ) + (hFpos : ∀ᵐ x ∂μ.restrict Ω, 0 ≤ F x) + {P : C(Time,X) → Prop} (hP : ∀ᵐ γ ∂π, P γ) : + ∃ γ : C(Time,X), P γ ∧ + IntegrableOn (fun t => F (geodesicExtension γ t)) (Icc (0:ℝ) 1) ∧ + (∫ t in Icc (0:ℝ) 1, F (geodesicExtension γ t)) ≤ + C.toReal * ∫ x in Ω, F x ∂μ := by + obtain ⟨hi,hinner,hbound⟩ := compressed_segment_integral μ π hC hc hstay hF hFpos + obtain ⟨γ,hγ,havg⟩ := exists_notMem_null_le_integral hi (ae_iff.mp (hP.and hinner)) + exact ⟨γ,(of_not_not hγ).1,(of_not_not hγ).2,havg.trans hbound⟩ + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/CompressedSegmentNullSet.lean b/lean/OAI/Geometry/RCD/Transport/CompressedSegmentNullSet.lean new file mode 100644 index 0000000000000000000000000000000000000000..5f28ad1ec0bff08e38ce182688c2be62520c8ec7 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/CompressedSegmentNullSet.lean @@ -0,0 +1,33 @@ +import OAI.Geometry.RCD.Transport.CompressedSegmentIntegral + +namespace OAI + +/-! # Retaining the common full-measure set on selected segments -/ + +open Set Filter Metric MeasureTheory +open scoped ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem compressed_segment_ae (μ : Measure X) (π : Measure C(Time,X)) [SFinite π] + {C : ℝ≥0∞} (hc : ∀ t : Time, π.map (fun γ => γ t) ≤ C • μ) + {Ω : Set X} + (hstay : ∀ t : Time, ∀ᵐ x ∂π.map (fun γ => γ t), x ∈ Ω) + {P : X → Prop} (hP : ∀ᵐ x ∂μ.restrict Ω, P x) : + ∀ᵐ γ ∂π, ∀ᵐ t ∂volume.restrict (Icc (0:ℝ) 1), P (geodesicExtension γ t) := by + have hlocal (t : Time) : π.map (fun γ => γ t) ≤ C • μ.restrict Ω := + (compression_iff_localized μ _ (hstay t) C).mp (hc t) + have hcomp := testPlanMeasure_compression (μ.restrict Ω) π hlocal + have heval : ∀ᵐ z ∂testPlanMeasure π, P (testPlanEval z) := + ae_of_ae_map testPlanEval_measurable.aemeasurable + ((Measure.absolutelyContinuous_of_le_smul hcomp).ae_le hP) + exact Measure.ae_ae_of_ae_prod + (Measure.measurePreserving_swap.quasiMeasurePreserving.ae heval) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/CompressedSubplanDensity.lean b/lean/OAI/Geometry/RCD/Transport/CompressedSubplanDensity.lean new file mode 100644 index 0000000000000000000000000000000000000000..8c975ecc52a4156719c08e3c2e8b96624d341f62 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/CompressedSubplanDensity.lean @@ -0,0 +1,38 @@ +import OAI.Geometry.RCD.Transport.CompressedAllInverse +import OAI.Geometry.RCD.Transport.ObservableSubplanDensity + +namespace OAI + +/-! # Exact original densities for every measurable restriction of a compressed plan -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped ENNReal NNReal Topology +noncomputable section +namespace RegularPointCoordinates.NoncollapsedRCD +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] [SeparableSpace X] {K : ℝ} {n : ℕ} + [IsLocallyFiniteMeasure (hausdorff n X)] (hX : NoncollapsedRCD K n X) +include hX +attribute [local instance] pathBorel pathBorelSpace + +theorem restricted_plan_density (hn : 2 ≤ n) (p : X) {R : ℝ} (hR : 0 ≤ R) + (π : Measure C(Time,X)) [IsProbabilityMeasure π] (hg : ∀ᵐ γ ∂π, IsGeodesic γ) + (hp : IsOptimalCoupling (π.map (fun γ => γ 0)) (π.map (fun γ => γ 1)) + (π.map (fun γ => (γ 0,γ 1)))) + {C : ℝ≥0} (hC : 0 < C) + (hc : ∀ t : Time, π.map (fun γ => γ t) ≤ ENNReal.ofReal C • hausdorff n X) + (hs₀ : ∀ᵐ x ∂π.map (fun γ => γ 0), dist x p ≤ R) + (hs₁ : ∀ᵐ x ∂π.map (fun γ => γ 1), dist x p ≤ R) + {S : Set C(Time,X)} (hS : MeasurableSet S) (t : Time) : + ∀ᵐ γ ∂π.restrict S, + ((π.restrict S).map (fun γ => γ t)).rnDeriv (hausdorff n X) (γ t)= + (π.map (fun γ => γ t)).rnDeriv (hausdorff n X) (γ t) := by + obtain ⟨g,hg,hgi⟩ := hX.compressed_time_inverse hn p hR π hg hp hC hc hs₀ hs₁ t + exact rnDeriv_restricted_map_ae π (hausdorff n X) (measurable_path_eval t) hg hgi + (Measure.absolutelyContinuous_of_le_smul (hc t)) hS + +end RegularPointCoordinates.NoncollapsedRCD + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/CompressedSubplanNode.lean b/lean/OAI/Geometry/RCD/Transport/CompressedSubplanNode.lean new file mode 100644 index 0000000000000000000000000000000000000000..efc6aecae0660194b9bf64e501d6c5b0c4bf517c --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/CompressedSubplanNode.lean @@ -0,0 +1,84 @@ +import OAI.Geometry.RCD.Transport.OptimalInitialSubmeasure +import OAI.Geometry.RCD.Coordinates.NormalizedOptimalSubplan + +namespace OAI + +/-! # A transport node at the actual length scale of a compressed component -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped ENNReal Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem normalized_subplan_compression [SeparableSpace X] + (π κ : Measure C(Time,X)) (hκ : κ≤π) {C : ℝ≥0∞} {μ : Measure X} + (hc : ∀ t : Time, π.map (fun γ => γ t)≤C • μ) : + ∀ t : Time, ((κ univ)⁻¹ • κ).map (fun γ => γ t)≤((κ univ)⁻¹*C) • μ := by + intro t + rw [Measure.map_smul _ (measurable_path_eval t).aemeasurable] + intro B + change (κ univ)⁻¹*(κ.map (fun γ => γ t)) B≤((κ univ)⁻¹*C)*μ B + calc + _ ≤ (κ univ)⁻¹*(π.map (fun γ => γ t)) B := + mul_le_mul' le_rfl (Measure.map_mono hκ (measurable_path_eval t) B) + _ ≤ (κ univ)⁻¹*(C*μ B) := mul_le_mul' le_rfl (hc t B) + _ = _ := (mul_assoc _ _ _).symm + +theorem NoncollapsedRCD.compressed_subplan_node + (K : ℝ) (n : ℕ) (hn : 2≤n) (hX : NoncollapsedRCD K n X) + (a : RenyiTransportNode n X) (π : Measure C(Time,X)) [IsProbabilityMeasure π] + (hg : ∀ᵐ γ ∂π, IsGeodesic γ) + (hp : IsOptimalCoupling a.left a.right (π.map (fun γ => (γ 0,γ 1)))) + {C : ℝ≥0∞} (hC : C≠∞) (hc : ∀ t : Time, π.map (fun γ => γ t)≤C • hausdorff n X) + (κ : Measure C(Time,X)) (hκ : κ≤π) (hκ0 : κ univ≠0) + {D : ℝ} (hD0 : 0≤D) (hD : ∀ᵐ γ ∂κ, dist (γ 0) (γ 1)≤D) : + ∃ b : RenyiTransportNode n X, + b.left=(κ univ)⁻¹ • κ.map (fun γ => γ 0) ∧ + b.right=(κ univ)⁻¹ • κ.map (fun γ => γ 1) ∧ b.distance=D := by + let : SeparableSpace X := hX.separable + let := a.left_probability + let := a.right_probability + let : IsFiniteMeasure κ := isFiniteMeasure_of_le π hκ + have hi : (κ univ)⁻¹≠∞ := ENNReal.inv_ne_top.mpr hκ0 + have he := optimalPlan_endpoints a.left a.right π hp + have hpp : IsOptimalCoupling (π.map (fun γ => γ 0)) (π.map (fun γ => γ 1)) + (π.map (fun γ => (γ 0,γ 1))) := by rw [he.1,he.2]; exact hp + have hfin := finite_second_moment_cost + (finiteSecondMoment_of_bounded a.left a.center a.left_support) + (finiteSecondMoment_of_bounded a.right a.center a.right_support) hp.1 hp.2.1 + let πn := (κ univ)⁻¹ • κ + obtain ⟨hπn,hgn,hpn,_⟩ := normalized_optimal_subplan π hg hpp hfin κ hκ hκ0 + let : IsProbabilityMeasure πn := hπn + have heval (t : Time) : πn.map (fun γ => γ t)=(κ univ)⁻¹ • κ.map (fun γ => γ t) := + Measure.map_smul _ (measurable_path_eval t).aemeasurable + let c := (κ univ)⁻¹*C + have hcf : c≠∞ := ENNReal.mul_ne_top hi hC + have hcn (t : Time) : πn.map (fun γ => γ t)≤c • hausdorff n X := + normalized_subplan_compression π κ hκ hc t + have hstay (t : Time) (ht : t=0 ∨ t=1) : + ∀ᵐ x ∂πn.map (fun γ => γ t), dist x a.center≤a.radius := by + rw [heval] + have hs : ∀ᵐ x ∂π.map (fun γ => γ t), dist x a.center≤a.radius := by + rcases ht with rfl | rfl + · rw [he.1]; exact a.left_support + · rw [he.2]; exact a.right_support + exact (hs.filter_mono (Measure.map_mono hκ (measurable_path_eval t)).absolutelyContinuous.ae_le).filter_mono + Measure.smul_absolutelyContinuous.ae_le + let b : RenyiTransportNode n X := + ⟨πn.map (fun γ => γ 0),πn.map (fun γ => γ 1),inferInstance,inferInstance, + a.center,a.radius,a.radius_nonneg,hstay 0 (Or.inl rfl),hstay 1 (Or.inr rfl), + c,hcf,hcn 0,hcn 1,2*a.radius,mul_nonneg (by norm_num) a.radius_nonneg, + optimalPlanDistanceBound_of_bounded _ _ a.center (hstay 0 (Or.inl rfl)) (hstay 1 (Or.inr rfl))⟩ + have hDn : ∀ᵐ γ ∂πn, dist (γ 0) (γ 1)≤D := + hD.filter_mono Measure.smul_absolutelyContinuous.ae_le + have hbD := hX.compressed_optimal_distance_bound K n hn b πn hgn hpn hcf hcn hDn + let bD : RenyiTransportNode n X := { b with distance:=D, distance_nonneg:=hD0, distance_bound:=hbD } + exact ⟨bD,heval 0,heval 1,rfl⟩ + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/ConcentratedMidpointLimit.lean b/lean/OAI/Geometry/RCD/Transport/ConcentratedMidpointLimit.lean new file mode 100644 index 0000000000000000000000000000000000000000..85e24e12c9177174d8adba164d700f5dff4e8e2d --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/ConcentratedMidpointLimit.lean @@ -0,0 +1,72 @@ +import OAI.Geometry.RCD.Metric.ConcentratingProbability +import OAI.Geometry.RCD.Transport.AsymmetricMidpointCapacity + +namespace OAI + +/-! # A radial limiting plan whose midpoint retains bounded density + +Only midpoint compression is imposed before the endpoint concentrates. +Compactness of the actual bounded geodesic plans retains the initial law, +the Dirac final law, and the same midpoint density bound. +-/ + +open Set Filter Metric MeasureTheory TopologicalSpace +open scoped ENNReal Topology + +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] [SeparableSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem exists_concentrated_midpoint_limit (μ : Measure X) [IsFiniteMeasureOnCompacts μ] + (p : X) {R : ℝ} (hR : 0 ≤ R) (ν₀ : ProbabilityMeasure X) + (ν : ℕ → ProbabilityMeasure X) + (hν : Tendsto ν atTop (𝓝 (⟨Measure.dirac p, inferInstance⟩ : ProbabilityMeasure X))) + {C : ℝ≥0∞} (hC : C ≠ ∞) + (hplans : ∀ k, ∃ π : ProbabilityMeasure C(Time, X), + (∀ᵐ γ ∂(π : Measure C(Time, X)), IsGeodesic γ ∧ ∀ t, dist (γ t) p ≤ R) ∧ + π.map (fun γ => γ 0) = ν₀ ∧ π.map (fun γ => γ 1) = ν k ∧ + (π.map (fun γ => γ midpointTime) : Measure X) ≤ C • μ) : + ∃ π : ProbabilityMeasure C(Time, X), + (∀ᵐ γ ∂(π : Measure C(Time, X)), IsGeodesic γ ∧ ∀ t, dist (γ t) p ≤ R) ∧ + π.map (fun γ => γ 0) = ν₀ ∧ + π.map (fun γ => γ 1) = (⟨Measure.dirac p, inferInstance⟩ : ProbabilityMeasure X) ∧ + (π.map (fun γ => γ midpointTime) : Measure X) ≤ C • μ := by + classical + choose π hgeo h₀ h₁ hmid using hplans + obtain ⟨q, hq, t, ht, hlim⟩ := (isCompact_bounded_geodesic_plans p hR).tendsto_subseq hgeo + have he₀ : q.map (fun γ => γ 0) = ν₀ := by + apply tendsto_nhds_unique ((ProbabilityMeasure.continuous_map (continuous_eval_const 0)).tendsto q |>.comp hlim) + simpa only [Function.comp_def, h₀] using (tendsto_const_nhds : + Tendsto (fun _ : ℕ => ν₀) atTop (𝓝 ν₀)) + have he₁ : q.map (fun γ => γ 1) = (⟨Measure.dirac p, inferInstance⟩ : ProbabilityMeasure X) := by + apply tendsto_nhds_unique ((ProbabilityMeasure.continuous_map (continuous_eval_const 1)).tendsto q |>.comp hlim) + simpa only [Function.comp_def, h₁] using hν.comp ht.tendsto_atTop + let W := closedBall p R + let : IsFiniteMeasure (μ.restrict W) := + ⟨by simpa only [Measure.restrict_apply_univ] using (isCompact_closedBall p R).measure_lt_top (μ := μ)⟩ + have hc : IsClosed {η : ProbabilityMeasure X | (η : Measure X) ≤ C • μ.restrict W} := by + convert (lowerSemicontinuous_transportExcessMass (μ.restrict W) hC).isClosed_preimage 0 using 1 + ext η + simp only [mem_ofPred_eq, mem_preimage, mem_Iic, nonpos_iff_eq_zero, + transportExcessMass_zero_iff (μ.restrict W) (η : Measure X) hC] + have hs (k : ℕ) : ∀ᵐ x ∂((π k).map (fun γ => γ midpointTime) : Measure X), x ∈ W := by + rw [ProbabilityMeasure.toMeasure_map] + apply (ae_map_iff (measurable_path_eval midpointTime).aemeasurable measurableSet_closedBall).mpr + filter_upwards [hgeo k] with γ hγ + exact hγ.2 midpointTime + have hbound : ∀ k, ((π k).map (fun γ => γ midpointTime) : Measure X) ≤ C • μ.restrict W := + fun k => (compression_iff_localized μ _ (hs k) C).mp (hmid k) + have hqm : (q.map (fun γ => γ midpointTime) : Measure X) ≤ C • μ.restrict W := by + apply hc.mem_of_tendsto ((ProbabilityMeasure.continuous_map + (continuous_eval_const midpointTime)).tendsto q |>.comp hlim) + exact Eventually.of_forall fun k => hbound (t k) + refine ⟨q, hq, he₀, he₁, hqm.trans ?_⟩ + intro A + change C * (μ.restrict W) A ≤ C * μ A + exact mul_le_mul_right (Measure.restrict_le_self (μ := μ) (s := W) A) C + +end RegularPointCoordinates + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/ContactCrossLength.lean b/lean/OAI/Geometry/RCD/Transport/ContactCrossLength.lean new file mode 100644 index 0000000000000000000000000000000000000000..6d9ecee37438579516c8ba234605781fc0ee46c5 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/ContactCrossLength.lean @@ -0,0 +1,49 @@ +import OAI.Geometry.RCD.Transport.OptimalGeodesicLengths + +namespace OAI + +/-! # Cross endpoints of contacting geodesics retain length and dual contact -/ + +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] + +theorem contacting_geodesics_cross_length {φ ψ : X → ℝ} + (had : ∀ x y, φ x+ψ y ≤ dist x y^2/2) + {γ ζ : C(Time,X)} (hg : IsGeodesic γ) (hz : IsGeodesic ζ) + (hγ : φ (γ 0)+ψ (γ 1)=dist (γ 0) (γ 1)^2/2) + (hζ : φ (ζ 0)+ψ (ζ 1)=dist (ζ 0) (ζ 1)^2/2) + {t : Time} (ht0 : 0 < (t:ℝ)) (ht1 : (t:ℝ) < 1) (hmeet : γ t=ζ t) : + dist (γ 0) (ζ 1)=dist (γ 0) (γ 1) ∧ + φ (γ 0)+ψ (ζ 1)=dist (γ 0) (ζ 1)^2/2 := by + have hlen := contacting_geodesics_equal_length had hg hz hγ hζ ht0 ht1 hmeet + have hcross0 : dist (γ 0) (ζ 1) ≤ dist (γ 0) (γ 1) := by + calc + _ ≤ dist (γ 0) (γ t)+dist (γ t) (ζ 1) := dist_triangle _ _ _ + _ = dist (γ 0) (γ 1) := by + rw [hg 0 t,hmeet,hz t 1,←hlen] + change |(0:ℝ)-(t:ℝ)| *dist (γ 0) (γ 1)+|(t:ℝ)-1| *dist (γ 0) (γ 1) = _ + rw [zero_sub,abs_neg,abs_of_pos ht0,abs_of_nonpos (sub_nonpos.mpr ht1.le)] + ring + have hcross1 : dist (ζ 0) (γ 1) ≤ dist (γ 0) (γ 1) := by + calc + _ ≤ dist (ζ 0) (ζ t)+dist (ζ t) (γ 1) := dist_triangle _ _ _ + _ = dist (γ 0) (γ 1) := by + rw [hz 0 t,←hmeet,hg t 1,←hlen] + change |(0:ℝ)-(t:ℝ)| *dist (γ 0) (γ 1)+|(t:ℝ)-1| *dist (γ 0) (γ 1) = _ + rw [zero_sub,abs_neg,abs_of_pos ht0,abs_of_nonpos (sub_nonpos.mpr ht1.le)] + ring + have hs0 := pow_le_pow_left₀ dist_nonneg hcross0 2 + have hs1 := pow_le_pow_left₀ dist_nonneg hcross1 2 + have hcost : 2*dist (γ 0) (γ 1)^2 ≤ dist (γ 0) (ζ 1)^2+dist (ζ 0) (γ 1)^2 := by + rw [←hlen] at hζ + linarith [had (γ 0) (ζ 1),had (ζ 0) (γ 1)] + have he : dist (γ 0) (ζ 1)=dist (γ 0) (γ 1) := by + nlinarith [dist_nonneg (x:=γ 0) (y:=ζ 1),dist_nonneg (x:=γ 0) (y:=γ 1)] + refine ⟨he,?_⟩ + rw [he] + rw [←hlen] at hζ + linarith [had (γ 0) (ζ 1),had (ζ 0) (γ 1)] + +end RegularPointCoordinates + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/ContinuousDensityCoupling.lean b/lean/OAI/Geometry/RCD/Transport/ContinuousDensityCoupling.lean new file mode 100644 index 0000000000000000000000000000000000000000..63c185af464e310ed857e18d98e8fffa9b8feb59 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/ContinuousDensityCoupling.lean @@ -0,0 +1,66 @@ +import OAI.Geometry.RCD.Heat.ContinuousKernelMarginalMass + +namespace OAI + +/-! # A continuous density with unit rows and columns is a coupling -/ + +open Set Filter MeasureTheory +noncomputable section +namespace RegularPointCoordinates +variable {X Y : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [MetricSpace Y] [MeasurableSpace Y] [BorelSpace Y] + (μ : Measure X) (ν : Measure Y) [IsProbabilityMeasure μ] [IsProbabilityMeasure ν] + +def continuousDensityCoupling (h : C(X × Y, ℝ)) : Measure (X × Y) := + (μ.prod ν).withDensity (fun z => ENNReal.ofReal (h z)) + +theorem continuousDensityCoupling_fst [CompactSpace Y] (h : C(X × Y, ℝ)) + (h0 : ∀ z, 0 ≤ h z) (hrow : ∀ x, (∫ y, h (x,y) ∂ν)=1) : + (continuousDensityCoupling μ ν h).map Prod.fst=μ := by + ext A hA + rw [Measure.map_apply measurable_fst hA,continuousDensityCoupling, + withDensity_apply _ (measurable_fst hA)] + rw [show Prod.fst ⁻¹' A = A ×ˢ (univ : Set Y) by ext z; simp] + rw [setLIntegral_prod _ (h.continuous.measurable.ennreal_ofReal.aemeasurable)] + simp only [Measure.restrict_univ] + have hr : ∀ x, (∫⁻ y, ENNReal.ofReal (h (x,y)) ∂ν)=1 := by + intro x + have hi : Integrable (fun y => h (x,y)) ν := + (h.continuous.comp (continuous_const.prodMk continuous_id)).integrable_of_hasCompactSupport + (HasCompactSupport.of_compactSpace _) + rw [← ofReal_integral_eq_lintegral_ofReal hi (Eventually.of_forall fun y => h0 (x,y)),hrow] + exact ENNReal.ofReal_one + simp only [hr,lintegral_const,Measure.restrict_apply MeasurableSet.univ,univ_inter,one_mul] + +theorem continuousDensityCoupling_snd [CompactSpace X] (h : C(X × Y, ℝ)) + (h0 : ∀ z, 0 ≤ h z) (hcol : ∀ y, (∫ x, h (x,y) ∂μ)=1) : + (continuousDensityCoupling μ ν h).map Prod.snd=ν := by + ext A hA + rw [Measure.map_apply measurable_snd hA,continuousDensityCoupling, + withDensity_apply _ (measurable_snd hA)] + rw [show Prod.snd ⁻¹' A = (univ : Set X) ×ˢ A by ext z; simp] + rw [setLIntegral_prod_symm _ (h.continuous.measurable.ennreal_ofReal.aemeasurable)] + simp only [Measure.restrict_univ] + have hc : ∀ y, (∫⁻ x, ENNReal.ofReal (h (x,y)) ∂μ)=1 := by + intro y + have hi : Integrable (fun x => h (x,y)) μ := + (h.continuous.comp (continuous_id.prodMk continuous_const)).integrable_of_hasCompactSupport + (HasCompactSupport.of_compactSpace _) + rw [← ofReal_integral_eq_lintegral_ofReal hi (Eventually.of_forall fun x => h0 (x,y)),hcol] + exact ENNReal.ofReal_one + simp only [hc,lintegral_const,Measure.restrict_apply MeasurableSet.univ,univ_inter,one_mul] + +theorem continuousDensityCoupling_probability [CompactSpace Y] (h : C(X × Y, ℝ)) + (h0 : ∀ z, 0 ≤ h z) (hrow : ∀ x, (∫ y, h (x,y) ∂ν)=1) : + IsProbabilityMeasure (continuousDensityCoupling μ ν h) := by + have hm := continuousDensityCoupling_fst μ ν h h0 hrow + let : IsProbabilityMeasure ((continuousDensityCoupling μ ν h).map Prod.fst) := by + rw [hm] + infer_instance + exact Measure.isProbabilityMeasure_of_map measurable_fst.aemeasurable + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/ContinuousDensityEntropy.lean b/lean/OAI/Geometry/RCD/Transport/ContinuousDensityEntropy.lean new file mode 100644 index 0000000000000000000000000000000000000000..69819117de310014c377d08864f3dcbaa4d218ee --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/ContinuousDensityEntropy.lean @@ -0,0 +1,47 @@ +import Mathlib.Analysis.SpecialFunctions.Log.NegMulLog +import Mathlib.MeasureTheory.Integral.Bochner.ContinuousLinearMap +import Mathlib.MeasureTheory.Integral.Bochner.Set +import Mathlib.Tactic + +namespace OAI + +/-! # Nonnegative entropy of a normalized continuous density -/ + +open Filter MeasureTheory +open scoped ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [CompactSpace X] + [MeasurableSpace X] [BorelSpace X] (μ : Measure X) [IsProbabilityMeasure μ] + +omit [CompactSpace X] [IsProbabilityMeasure μ] in +theorem continuous_density_integral (h : C(X,ℝ)) (h0 : ∀ x, 0 ≤ h x) (f : X → ℝ) : + (∫ x, f x ∂μ.withDensity (fun x => ENNReal.ofReal (h x))) = + ∫ x, h x*f x ∂μ := by + rw [integral_withDensity_eq_integral_toReal_smul + h.continuous.measurable.ennreal_ofReal (Eventually.of_forall fun _ => ENNReal.ofReal_lt_top)] + simp only [ENNReal.toReal_ofReal (h0 _),smul_eq_mul] + +theorem continuous_density_entropy_nonneg (h : C(X,ℝ)) (h0 : ∀ x, 0 < h x) + [IsProbabilityMeasure (μ.withDensity (fun x => ENNReal.ofReal (h x)))] : + 0 ≤ ∫ x, Real.log (h x) ∂μ.withDensity (fun x => ENNReal.ofReal (h x)) := by + have hi : Integrable h μ := h.continuous.integrable_of_hasCompactSupport + (HasCompactSupport.of_compactSpace _) + have h1 : (∫ x, h x ∂μ)=1 := by + have hh := continuous_density_integral μ h (fun x => (h0 x).le) (fun _ => 1) + simpa using hh.symm + have he := integral_mono_ae (hi.sub (integrable_const 1)) + ((Real.continuous_mul_log.comp h.continuous).integrable_of_hasCompactSupport + (HasCompactSupport.of_compactSpace _)) + (Eventually.of_forall fun x => Real.self_sub_one_le_mul_log (h0 x).le) + change (∫ x, h x-1 ∂μ) ≤ _ at he + rw [integral_sub hi (integrable_const 1),h1] at he + simp only [integral_const,probReal_univ,smul_eq_mul,one_mul,sub_self] at he + rw [continuous_density_integral μ h (fun x => (h0 x).le)] + exact he + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/ContinuousLengthDistortion.lean b/lean/OAI/Geometry/RCD/Transport/ContinuousLengthDistortion.lean new file mode 100644 index 0000000000000000000000000000000000000000..a92120ec6dd0fbfd40044bb3f7dff8f44a3c8d0b --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/ContinuousLengthDistortion.lean @@ -0,0 +1,76 @@ +import OAI.Geometry.RCD.Transport.ReducedDistanceLimit + +namespace OAI + +/-! # Continuous bounded reduced distortion on nonnegative lengths -/ + +open Set Filter TopologicalSpace +open scoped ENNReal NNReal Topology +noncomputable section +namespace RegularPointCoordinates + +theorem sigma_nonpos_le_time {K N t d : ℝ} (hK : K≤0) (hN : 1 sigma K N t (D j)) atTop (𝓝 (sigma K N t d)) := by + by_cases hK0 : K=0 + · simpa only [hK0,sigma,or_true,ite_true] using + (tendsto_const_nhds : Tendsto (fun _ : ℕ => ENNReal.ofReal t) atTop (𝓝 (ENNReal.ofReal t))) + have hkn := lt_of_le_of_ne hK hK0 + let a := Real.sqrt (-K/(N-1)) + have ha : 0 ENNReal.ofReal (t*Real.exp (((t*(x*a))^2-(x*a)^2)/6)) + have hG : Continuous G := ENNReal.continuous_ofReal.comp (by fun_prop) + have hl : Tendsto (fun j => G (D j)) atTop (𝓝 (ENNReal.ofReal t)) := by + simpa only [G,hd0,zero_mul,mul_zero,zero_pow (by decide : 2≠0),sub_self,zero_div, + Real.exp_zero,mul_one,Function.comp_def] using hG.continuousAt.tendsto.comp hlim + have hlo (j) : G (D j) ≤ sigma K N t (D j) := by + by_cases hj : D j=0 + · simp [G,hj,sigma] + have hjp : 0 sigma_nonpos_le_time hK hN ht ht1 (hD j)) + simpa only [hd0,sigma,true_or,ite_true] using hh + · have hdp : 0 Real.sinh (t*x*a)/Real.sinh (x*a) + have hF : ContinuousAt F d := by + apply ContinuousAt.div + · fun_prop + · fun_prop + · exact (Real.sinh_pos_iff.mpr (mul_pos hdp ha)).ne' + have hpos := hlim.eventually (lt_mem_nhds hdp) + have hh := ENNReal.continuous_ofReal.continuousAt.tendsto.comp (hF.tendsto.comp hlim) + rw [sigma_neg_eq hkn hN hdp] + apply hh.congr' + filter_upwards [hpos] with j hj + exact (sigma_neg_eq hkn hN hj t).symm + +theorem continuous_sigma_nonpos_length {K N t : ℝ} (hK : K≤0) (hN : 1 sigma K N t d) := by + apply continuous_iff_seqContinuous.mpr + intro D d hlim + exact sigma_nonpos_length_tendsto_nonneg hK hN ht ht1 d.property + (fun j => (D j).property) (NNReal.continuous_coe.continuousAt.tendsto.comp hlim) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/CurvatureCompressionBound.lean b/lean/OAI/Geometry/RCD/Transport/CurvatureCompressionBound.lean new file mode 100644 index 0000000000000000000000000000000000000000..24bef8dbe0e7348df4b83ac667de8987789d8663 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/CurvatureCompressionBound.lean @@ -0,0 +1,84 @@ +import OAI.Geometry.RCD.Transport.PrescribedPlanCompression +import OAI.Geometry.RCD.Metric.LowerCurvatureVolume + +namespace OAI + +/-! # Scale-uniform short-distance compression from the curvature bound -/ + +open Set Filter MeasureTheory Metric +open scoped Topology ENNReal +noncomputable section +namespace RegularPointCoordinates + +theorem curvature_scaled_sqrt_le_one {K r : ℝ} {n : ℕ} + (hn : 2≤n) (hK : K≤0) (hr : 0≤r) (hcurv : -1≤K*r^2) : + r*Real.sqrt (|K|/((n:ℝ)-1))≤1 := by + have hn' : (2:ℝ)≤n := by exact_mod_cast hn + have hd : 0<(n:ℝ)-1 := by linarith + have ha : 0≤r*Real.sqrt (|K|/((n:ℝ)-1)) := mul_nonneg hr (Real.sqrt_nonneg _) + have he : (r*Real.sqrt (|K|/((n:ℝ)-1)))^2*((n:ℝ)-1)= -K*r^2 := by + rw [mul_pow,Real.sq_sqrt (div_nonneg (abs_nonneg K) hd.le),abs_of_nonpos hK] + field_simp + have hsq : (r*Real.sqrt (|K|/((n:ℝ)-1)))^2≤1 := by + have hh := mul_le_mul_of_nonneg_left (show (1:ℝ)≤(n:ℝ)-1 by linarith) + (sq_nonneg (r*Real.sqrt (|K|/((n:ℝ)-1)))) + rw [mul_one,he] at hh + linarith + nlinarith + +theorem compressionBudget_le_uniform {K r d : ℝ} {n : ℕ} + (hn : 2≤n) (hK : K≤0) (hr : 0≤r) (hd : 0≤d) (hcurv : -1≤K*r^2) + (C : ℝ≥0∞) : + compressionBudget K n (d*r) C≤ENNReal.ofReal (Real.exp ((n:ℝ)*2*d))*C := by + have hn0 : (0:ℝ)≤n := Nat.cast_nonneg n + have hb := curvature_scaled_sqrt_le_one hn hK hr hcurv + have he : (n:ℝ)*(2*(d*r))*Real.sqrt (|K|/((n:ℝ)-1))≤(n:ℝ)*2*d := by + have hh := mul_le_mul_of_nonneg_left hb + (mul_nonneg (mul_nonneg hn0 (by norm_num : (0:ℝ)≤2)) hd) + nlinarith only [hh] + unfold compressionBudget compressionStep + exact mul_le_mul' (ENNReal.ofReal_le_ofReal (Real.exp_le_exp.mpr he)) le_rfl + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem NoncollapsedRCD.prescribed_plan_uniform_compression {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (hn : 2≤n) + (ν₀ ν₁ : Measure X) [IsProbabilityMeasure ν₀] [IsProbabilityMeasure ν₁] + {C B : ℝ≥0∞} (hC : C≠⊤) (hB : B≠⊤) + (h0 : ν₀≤C • hausdorff n X) (h1 : ν₁≤C • hausdorff n X) + (p : X) {R d r : ℝ} (hR : 0≤R) (hd : 0≤d) (hr : 0≤r) (hcurv : -1≤K*r^2) + (hs0 : ∀ᵐ x ∂ν₀, dist x p≤R) (hs1 : ∀ᵐ x ∂ν₁, dist x p≤R) + (hD : OptimalPlanDistanceBound ν₀ ν₁ (d*r)) + (π : Measure C(Time,X)) [IsProbabilityMeasure π] + (hg : ∀ᵐ γ ∂π, IsGeodesic γ) + (hp : IsOptimalCoupling ν₀ ν₁ (π.map (fun γ => (γ 0,γ 1)))) + (hc : ∀ t : Time, π.map (fun γ => γ t)≤B • hausdorff n X) : + ∀ t : Time, π.map (fun γ => γ t)≤ + (ENNReal.ofReal (Real.exp ((n:ℝ)*2*d))*C) • hausdorff n X := by + have hcap : compressionBudget (if K≤0 then K else 0) n (d*r) C≤ + ENNReal.ofReal (Real.exp ((n:ℝ)*2*d))*C := by + by_cases hK : K≤0 + · simpa only [ite_eq_left hK] using compressionBudget_le_uniform hn hK hr hd hcurv C + · simp only [ite_eq_right hK,compressionBudget,compressionStep,abs_zero,zero_div, + Real.sqrt_zero,mul_zero,Real.exp_zero,ENNReal.ofReal_one,one_mul] + apply le_mul_of_one_le_left' + exact ENNReal.one_le_ofReal.mpr (Real.one_le_exp_iff.mpr (by positivity)) + have happly : ∀ t : Time, π.map (fun γ => γ t)≤ + compressionBudget (if K≤0 then K else 0) n (d*r) C • hausdorff n X := by + by_cases hK : K≤0 + · simpa only [ite_eq_left hK] using hX.prescribed_plan_compression hn ν₀ ν₁ hC hB h0 h1 p hR + (mul_nonneg hd hr) hs0 hs1 hD π hg hp hc + · let hZ := hX.zero_of_nonneg_curvature hn (le_of_not_ge hK) + simpa only [ite_eq_right hK] using hZ.prescribed_plan_compression hn ν₀ ν₁ hC hB h0 h1 p hR + (mul_nonneg hd hr) hs0 hs1 hD π hg hp hc + intro t + apply (happly t).trans + intro A + exact mul_le_mul' hcap le_rfl + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/CurvatureMidpointLimit.lean b/lean/OAI/Geometry/RCD/Transport/CurvatureMidpointLimit.lean new file mode 100644 index 0000000000000000000000000000000000000000..2438ad0269eabb2a3d7afe488c9e3ab9ecb87317 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/CurvatureMidpointLimit.lean @@ -0,0 +1,59 @@ +import OAI.Geometry.RCD.Transport.CurvatureCompressionBound + +namespace OAI + +/-! # The exact CD midpoint coefficient at vanishing rescaled curvature -/ + +open Filter +open scoped Topology ENNReal +noncomputable section +namespace RegularPointCoordinates + +theorem curvature_scaled_sqrt_tendsto_zero {K : ℝ} {n : ℕ} + (hn : 2 ≤ n) (hK : K ≤ 0) {r ε : ℕ → ℝ} + (hr : ∀ k, 0 ≤ r k) (hε : Tendsto ε atTop (𝓝 0)) + (hcurv : ∀ k, -ε k ≤ K*(r k)^2) : + Tendsto (fun k => r k*Real.sqrt (|K|/((n:ℝ)-1))) atTop (𝓝 0) := by + have hn1 : 0 < (n:ℝ)-1 := by + have hn' : (2:ℝ) ≤ n := by exact_mod_cast hn + linarith + have hq : Tendsto (fun k => |K| * (r k)^2) atTop (𝓝 0) := by + apply squeeze_zero (fun k => mul_nonneg (abs_nonneg K) (sq_nonneg _)) _ hε + intro k + rw [abs_of_nonpos hK] + linarith [hcurv k] + have hs := (Real.continuous_sqrt.tendsto 0).comp hq + have hd := hs.div_const (Real.sqrt ((n:ℝ)-1)) + change Tendsto (fun k => Real.sqrt (|K| * (r k)^2)/Real.sqrt ((n:ℝ)-1)) + atTop (𝓝 (Real.sqrt 0/Real.sqrt ((n:ℝ)-1))) at hd + have he (k : ℕ) : Real.sqrt (|K| * (r k)^2)/Real.sqrt ((n:ℝ)-1) = + r k*Real.sqrt (|K|/((n:ℝ)-1)) := by + rw [Real.sqrt_mul (abs_nonneg K),Real.sqrt_sq (hr k), + Real.sqrt_div (abs_nonneg K)] + ring + simpa only [he,Real.sqrt_zero,zero_div] using hd + +theorem midpointFloor_real_tendsto_half {K d : ℝ} {n : ℕ} + (hn : 2 ≤ n) (hK : K ≤ 0) {r ε : ℕ → ℝ} + (hr : ∀ k, 0 ≤ r k) (hε : Tendsto ε atTop (𝓝 0)) + (hcurv : ∀ k, -ε k ≤ K*(r k)^2) : + Tendsto (fun k => (midpointFloor K n (d*r k)).toReal) atTop (𝓝 (1/2)) := by + have harg := (curvature_scaled_sqrt_tendsto_zero hn hK hr hε hcurv).const_mul d + have heq (k : ℕ) : (midpointFloor K n (d*r k)).toReal = + 1/(2*Real.cosh (d*(r k*Real.sqrt (|K|/((n:ℝ)-1))))) := by + simp only [midpointFloor,mul_assoc] + rw [ENNReal.toReal_ofReal (by positivity)] + simp only [heq] + have hc := (Real.continuous_cosh.tendsto 0).comp (by simpa only [mul_zero] using harg) + have hden := hc.const_mul 2 + have hh := (tendsto_const_nhds : Tendsto (fun _ : ℕ => (1:ℝ)) atTop (𝓝 1)).div hden + (by norm_num : (2:ℝ)*Real.cosh 0 ≠ 0) + change Tendsto (fun k => 1/(2*Real.cosh (d*(r k*Real.sqrt (|K|/((n:ℝ)-1)))))) + atTop (𝓝 (1/(2*Real.cosh 0))) at hh + simpa only [Real.cosh_zero,mul_one] using hh + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/DiagonalHopfRecoverySlope.lean b/lean/OAI/Geometry/RCD/Transport/DiagonalHopfRecoverySlope.lean new file mode 100644 index 0000000000000000000000000000000000000000..581f265df3d71cad06b831c055a5a3b8502c99c9 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/DiagonalHopfRecoverySlope.lean @@ -0,0 +1,54 @@ +import OAI.Geometry.RCD.Transport.SmoothHopfRecoverySlope +import OAI.Geometry.RCD.Transport.HopfRecoveryTime + +namespace OAI + +/-! # One smoothing sequence with asymptotically sharp local slope bounds -/ + +open Set Metric Filter +open scoped ContDiff Topology NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [ProperSpace X] + +theorem diagonal_hopf_recovery_slope {n : ℕ} {ψ : Euclidean n → ℝ} {M : ℝ≥0} + (hψ : ContDiff ℝ 1 ψ) (hs : HasCompactSupport ψ) (hψL : LipschitzWith M ψ) + {S ρ : ℝ} (hρ : 0≤ρ) (hρS : ρ ε k/t k) atTop (𝓝 0)) + (heratio : Tendsto (fun k => e k/t k) atTop (𝓝 0)) + (hv : ∀ k, IsPointedApproximation (p k) 0 (r k) S (ε k) (v k)) + (hF : ∀ k, LipschitzWith ⟨(M:ℝ)/r k,div_nonneg M.coe_nonneg (hr k).le⟩ (F k)) + (hFe : ∀ k x, dist x (p k)≤S*r k → |F k x-ψ (v k x)|≤e k) : + ∀ η : ℝ, 0<η → ∀ᶠ k in atTop, ∀ x : X, dist x (p k)≤ρ*r k → + r k*(localSlope (hopfLax (F k) (t k*(r k)^2)) x).toReal≤ + ‖fderiv ℝ ψ (v k x)‖+η := by + intro η hη + obtain ⟨δ,hδ,hlocal⟩ := compact_smooth_local_lipschitz hψ hs (half_pos hη) + have hslope := (pointedHopfSlopeError_diagonal_tendsto (M:=M) ht hεratio heratio).eventually + (Iio_mem_nhds (half_pos hη)) + have hrad : Tendsto (fun k => 2*t k*(M:ℝ)+ε k) atTop (𝓝 0) := by + simpa only [mul_zero,zero_mul,zero_add] using ((htlim.const_mul 2).mul_const (M:ℝ)).add hεlim + have hroom : Tendsto (fun k => 2*t k*(M:ℝ)+3*ε k) atTop (𝓝 0) := by + simpa only [mul_zero,zero_mul,zero_add] using + ((htlim.const_mul 2).mul_const (M:ℝ)).add (hεlim.const_mul 3) + filter_upwards [hslope,hrad.eventually (Iio_mem_nhds hδ), + hroom.eventually (Iio_mem_nhds (sub_pos.mpr hρS))] with k hk hkr hks + intro x hx + let L : ℝ≥0 := ‖fderiv ℝ ψ (v k x)‖₊+⟨η/2,(half_pos hη).le⟩ + have hloc : LipschitzOnWith L ψ (closedBall (v k x) (2*t k*(M:ℝ)+ε k)) := + (hlocal (v k x)).mono (closedBall_subset_closedBall hkr.le) + have hb := pointed_hopf_slope_bound (hr k) (ht k) (hε k) (he k) hρ (by linarith) + (hv k) (hF k) hψL (hFe k) hx hloc + change r k*(localSlope (hopfLax (F k) (t k*(r k)^2)) x).toReal≤ + ‖fderiv ℝ ψ (v k x)‖+η/2+ + (Real.sqrt (2*t k*pointedHopfError (t k) M (ε k) (e k))+ε k)/t k at hb + linarith + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/DimensionalCutoff.lean b/lean/OAI/Geometry/RCD/Transport/DimensionalCutoff.lean new file mode 100644 index 0000000000000000000000000000000000000000..7b703e5edff65d58da9810f8931a929a5fbf3b6c --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/DimensionalCutoff.lean @@ -0,0 +1,79 @@ +import OAI.Geometry.RCD.Transport.DimensionalH1 + +namespace OAI + +/-! # The actual heat cutoff secant retains the dimensional entropy rate -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped Topology NNReal ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] [SeparableSpace X] + +theorem NoncollapsedRCD.dimensional_cutoff_heat_secant + (K : ℝ) (n : ℕ) [IsLocallyFiniteMeasure (hausdorff n X)] (hn : 2 ≤ n) + (hX : NoncollapsedRCD K n X) (hK : K ≤ 0) {N : ℝ} (hN : (n:ℝ) ≤ N) (p : X) {A B : ℝ} (hA : 0 ≤ A) (hB : 0 ≤ B) + (hvol : ∀ R : ℝ, 1 ≤ R → (hausdorff n X).real (closedBall p (2*R)) ≤ A*Real.exp (B*R)) + (f : Lp ℝ 2 (hausdorff n X)) (C : ℝ≥0) (hf0 : 0 ≤ f) + (hfC : ∀ᵐ x ∂hausdorff n X, f x ≤ C) + (hfi : Integrable f (hausdorff n X)) (hfm : ∫x, f x ∂hausdorff n X = 1) + {r : ℝ} (hfs : ∀ᵐ x ∂hausdorff n X, f x ≠ 0 → dist p x ≤ r) + (ν : Measure X) [IsProbabilityMeasure ν] (hν : ν ≤ ENNReal.ofReal C • hausdorff n X) + {R t h : ℝ} (hR : 1 ≤ R) (ht : 0 < t) (hh : 0 < h) + (hνS : ∀ᵐ x ∂ν, dist x p ≤ 2*R) + (hm : (1:ℝ)/2 ≤ ∫x, radialCutoff p R x*heatAt (hausdorff n X) hX.quadratic (t+h) f x ∂hausdorff n X) : + let μ := hausdorff n X + let η := radialHeatMeasure μ hX.quadratic p R (t+h) f + let ρ := radialHeatSobolev μ hX.quadratic p (zero_lt_one.trans_le hR) (add_pos ht hh) f C + ((wassersteinSq η ν).toReal-(wassersteinSq (heatMeasure μ hX.quadratic t f) ν).toReal)/(2*h) ≤ + entropyPowerRate N (-(K*(wassersteinSq η ν).toReal/N)) + (Real.exp (-boltzmannEntropy μ η/N)) (Real.exp (-boltzmannEntropy μ ν/N))+ + (1000*(A+1)*Real.exp ((12*B+4)*R)) * + (((2*(1+1/(t/2)))^2*‖f‖*h)+(h⁻¹+2)*‖ρ-heatSobolev μ hX.quadratic (t+h) (add_pos ht hh) f‖) := by + let μ := hausdorff n X + let η := radialHeatMeasure μ hX.quadratic p R (t+h) f + let ρ := radialHeatSobolev μ hX.quadratic p (zero_lt_one.trans_le hR) (add_pos ht hh) f C + have hd := radialHeatMeasure_data μ hX.quadratic p hA hB hvol f C hf0 hfC hfi hfm + (zero_lt_one.trans_le hR) (add_pos ht hh) hm + let : IsProbabilityMeasure η := hd.1 + have hv := radialHeatSobolev_data μ hX.quadratic p hA hB hvol f C hf0 hfC hfi hfm + (zero_lt_one.trans_le hR) (add_pos ht hh) hm + have hη := radialHeatSobolev_measure μ hX.quadratic p (zero_lt_one.trans_le hR) (add_pos ht hh) f C hf0 hfC + have hν' : ν ≤ ENNReal.ofReal (2*C) • μ := hν.trans (by gcongr ; nlinarith [C.coe_nonneg]) + obtain ⟨u,φ,ψ,hφ,hψ,hφb,hψb,hφS,hψS,hφs,hψs,hu,had,hdual,hE⟩ := + hX.quantitative_H1_dimensional_subgradient K n hn hK hN η ν ENNReal.ofReal_ne_top hd.2.1 hν' + p (by positivity : 0 ≤ 2*R) hd.2.2 hνS ρ (2*C) hv.1 hv.2.1 hv.2.2.2 hη + have hνac : ν ≪ μ := (Measure.absolutelyContinuous_of_le hν).trans Measure.smul_absolutelyContinuous + have hm2 := heatAt_finiteSecondMoment μ hX.quadratic p hA hB hvol f hf0 hfs ht.le + let : IsProbabilityMeasure (heatMeasure μ hX.quadratic t f) := by + apply realDensity_probability μ (heatAt_integrable μ hX.quadratic t f hfi) + ((Lp.coeFn_nonneg _).mpr (heatAt_nonneg μ hX.quadratic t f hf0)) + exact (heatAt_integral_eq_of_exponential_volume μ hX.quadratic p hA hB hvol f hf0 hfi ht.le).trans hfm + have hs := heat_cutoff_dual_secant μ hX.quadratic hX.cd f hf0 ν hνac + (finiteSecondMoment_of_ae_dist_le ν p hνS) ht hh hm2 ρ u η (hv.1.mono fun _ hx => hx.1) + hη hφ.continuous hψ.continuous hφs hψs hu had hdual hE + have hun : ‖u‖ ≤ 1000*(A+1)*Real.exp ((12*B+4)*R) := by + have hb := SobolevSpace.linearRadiusPotential_norm_le μ hX.quadratic p hA hB hvol + (by linarith : 1 ≤ 2*R) u hφ hφb hφS hu + convert hb using 1 + congr 1 + congr 1 + ring + change _ ≤ _+_ at hs ⊢ + calc + _ ≤ _ := hs + _ = (entropyPowerRate N (-(K*(wassersteinSq η ν).toReal/N)) + (Real.exp (-boltzmannEntropy μ η/N)) (Real.exp (-boltzmannEntropy μ ν/N)))+ + ‖u‖*(((2*(1+1/(t/2)))^2*‖f‖*h)+(h⁻¹+2)*‖ρ-heatSobolev μ hX.quadratic (t+h) (add_pos ht hh) f‖) := by ring + _ ≤ _ := by + apply add_le_add le_rfl + apply mul_le_mul_of_nonneg_right hun + positivity + + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/DimensionalExpansion.lean b/lean/OAI/Geometry/RCD/Transport/DimensionalExpansion.lean new file mode 100644 index 0000000000000000000000000000000000000000..03c45d8d623f506a812268bf09b8dbd089c49421 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/DimensionalExpansion.lean @@ -0,0 +1,60 @@ +import OAI.Geometry.RCD.Heat.HeatReferenceEVI +import OAI.Geometry.RCD.Metric.DimensionalEvolution + +namespace OAI + +/-! # Two-speed transport expansion for the actual RCD heat semigroup -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped Topology NNReal ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] [SeparableSpace X] + +theorem NoncollapsedRCD.heat_dimensional_expansion_positive + (K : ℝ) (n : ℕ) [IsLocallyFiniteMeasure (hausdorff n X)] (hn : 2 ≤ n) + (hX : NoncollapsedRCD K n X) (hK : K ≤ 0) {N : ℝ} (hN : (n:ℝ) ≤ N) (p : X) + (f g : Lp ℝ 2 (hausdorff n X)) (C : ℝ≥0) + (hf0 : 0 ≤ f) (hfC : ∀ᵐ x ∂hausdorff n X, f x ≤ C) + (hfm : ∫x, f x ∂hausdorff n X = 1) + {rf : ℝ} (hfs : ∀ᵐ x ∂hausdorff n X, f x ≠ 0 → dist p x ≤ rf) + (hg0 : 0 ≤ g) (hgC : ∀ᵐ x ∂hausdorff n X, g x ≤ C) + (hgm : ∫x, g x ∂hausdorff n X = 1) + {rg : ℝ} (hgs : ∀ᵐ x ∂hausdorff n X, g x ≠ 0 → dist p x ≤ rg) + {α β a b : ℝ} (hα : 0 < α) (hβ : 0 < β) (ha : 0 < a) (hab : a ≤ b) : + (wassersteinSq (heatMeasure (hausdorff n X) hX.quadratic (α*b) f) + (heatMeasure (hausdorff n X) hX.quadratic (β*b) g)).toReal ≤ + gronwallBound + (wassersteinSq (heatMeasure (hausdorff n X) hX.quadratic (α*a) f) + (heatMeasure (hausdorff n X) hX.quadratic (β*a) g)).toReal + (-K*(α+β)) (2*N*(Real.sqrt α-Real.sqrt β)^2) (b-a) := by + let μ := hausdorff n X + let D := fun u v => (wassersteinSq (heatMeasure μ hX.quadratic u f) + (heatMeasure μ hX.quadratic v g)).toReal + let P := fun t => boltzmannEntropy μ (heatMeasure μ hX.quadratic t f) + let Q := fun t => boltzmannEntropy μ (heatMeasure μ hX.quadratic t g) + have hNp : 0 < N := lt_of_lt_of_le (by exact_mod_cast (lt_of_lt_of_le (by decide : 0 < 2) hn)) hN + apply dimensional_evi_expansion (D := D) (P := P) (Q := Q) hK hNp hα hβ ha hab + · intro u v _ _ + exact ENNReal.toReal_nonneg + · intro u v hu hv + exact hX.heat_two_cost_continuousAt K n hn p f g C hf0 hfC hfm hfs hg0 hgC hgm hgs hu hv + · intro t ht + exact hX.heat_entropy_continuousAt K n hn p f hf0 ⟨rf,hfs⟩ ht + · intro t ht + exact hX.heat_entropy_continuousAt K n hn p g hg0 ⟨rg,hgs⟩ ht + · intro u v s hu huv hs + simpa only [D,P,Q,dimensionalEntropyRate,max_eq_left ENNReal.toReal_nonneg] using + hX.heat_reference_dimensional_EVI K n hn hK hN p f g C hf0 hfC hfm hfs hg0 hgC hgm hgs hs hu huv + · intro u v s hu huv hs + have hh := hX.heat_reference_dimensional_EVI K n hn hK hN p g f C + hg0 hgC hgm hgs hf0 hfC hfm hfs hs hu huv + simpa only [D,P,Q,dimensionalEntropyRate,max_eq_left ENNReal.toReal_nonneg, + wassersteinSq_symm (heatMeasure μ hX.quadratic s f)] using hh + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/DimensionalExpansionZero.lean b/lean/OAI/Geometry/RCD/Transport/DimensionalExpansionZero.lean new file mode 100644 index 0000000000000000000000000000000000000000..abe5235f1ee7b6188f1469946d59a7833188e307 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/DimensionalExpansionZero.lean @@ -0,0 +1,80 @@ +import OAI.Geometry.RCD.Transport.DimensionalExpansion +import OAI.Geometry.RCD.Metric.EvolutionInitialLimit + +namespace OAI + +/-! # Dimensional heat transport expansion including the initial time -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped Topology NNReal ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] [SeparableSpace X] + +theorem NoncollapsedRCD.heat_dimensional_expansion + (K : ℝ) (n : ℕ) [IsLocallyFiniteMeasure (hausdorff n X)] (hn : 2 ≤ n) + (hX : NoncollapsedRCD K n X) (hK : K ≤ 0) {N : ℝ} (hN : (n:ℝ) ≤ N) (p : X) + (f g : Lp ℝ 2 (hausdorff n X)) (C : ℝ≥0) + (hf0 : 0 ≤ f) (hfC : ∀ᵐ x ∂hausdorff n X, f x ≤ C) + (hfm : ∫x, f x ∂hausdorff n X = 1) + {rf : ℝ} (hfs : ∀ᵐ x ∂hausdorff n X, f x ≠ 0 → dist p x ≤ rf) + (hg0 : 0 ≤ g) (hgC : ∀ᵐ x ∂hausdorff n X, g x ≤ C) + (hgm : ∫x, g x ∂hausdorff n X = 1) + {rg : ℝ} (hgs : ∀ᵐ x ∂hausdorff n X, g x ≠ 0 → dist p x ≤ rg) + {α β b : ℝ} (hα : 0 < α) (hβ : 0 < β) (hb : 0 ≤ b) : + (wassersteinSq (heatMeasure (hausdorff n X) hX.quadratic (α*b) f) + (heatMeasure (hausdorff n X) hX.quadratic (β*b) g)).toReal ≤ + gronwallBound + (wassersteinSq (heatMeasure (hausdorff n X) hX.quadratic 0 f) + (heatMeasure (hausdorff n X) hX.quadratic 0 g)).toReal + (-K*(α+β)) (2*N*(Real.sqrt α-Real.sqrt β)^2) b := by + rcases hb.eq_or_lt with hb|hb + · subst b + simp only [mul_zero,gronwallBound_x0,le_refl] + let μ := hausdorff n X + let := ACWassersteinProbability.metric μ K n hX.cd + let ρ := hX.heatProbability K n hn p f hf0 ⟨rf,hfs⟩ hfm + let σ := hX.heatProbability K n hn p g hg0 ⟨rg,hgs⟩ hgm + let D := fun t => dist (ρ (α*t)) (σ (β*t))^2 + have hfabs : ∀ᵐ x ∂μ, |f x| ≤ C := by + filter_upwards [(Lp.coeFn_nonneg _).mpr hf0,hfC] with x hl hu + simpa only [abs_of_nonneg hl] using hu + have hgabs : ∀ᵐ x ∂μ, |g x| ≤ C := by + filter_upwards [(Lp.coeFn_nonneg _).mpr hg0,hgC] with x hl hu + simpa only [abs_of_nonneg hl] using hu + have hρ : ContinuousOn ρ (Icc 0 (α*b)) := by + simpa only [uIcc_of_le (mul_pos hα hb).le] using (metricAC_uniformContinuousOn + (hX.heat_probability_absolutelyContinuous K n hn p f hf0 ⟨rf,hfs⟩ hfm C hfabs (α*b) + (mul_pos hα hb).le)).continuousOn + have hσ : ContinuousOn σ (Icc 0 (β*b)) := by + simpa only [uIcc_of_le (mul_pos hβ hb).le] using (metricAC_uniformContinuousOn + (hX.heat_probability_absolutelyContinuous K n hn p g hg0 ⟨rg,hgs⟩ hgm C hgabs (β*b) + (mul_pos hβ hb).le)).continuousOn + have hρα : ContinuousOn (fun t => ρ (α*t)) (Icc 0 b) := + hρ.comp (continuous_const.mul continuous_id).continuousOn (fun t ht => + ⟨mul_nonneg hα.le ht.1,mul_le_mul_of_nonneg_left ht.2 hα.le⟩) + have hσβ : ContinuousOn (fun t => σ (β*t)) (Icc 0 b) := + hσ.comp (continuous_const.mul continuous_id).continuousOn (fun t ht => + ⟨mul_nonneg hβ.le ht.1,mul_le_mul_of_nonneg_left ht.2 hβ.le⟩) + have hD : ContinuousOn D (Icc 0 b) := fun t ht => ((hρα t ht).dist (hσβ t ht)).pow 2 + have heq (t : ℝ) (ht : 0 ≤ t) : D t = + (wassersteinSq (heatMeasure μ hX.quadratic (α*t) f) + (heatMeasure μ hX.quadratic (β*t) g)).toReal := by + rw [show D t = dist (ρ (α*t)) (σ (β*t))^2 from rfl,ACWassersteinProbability.dist_sq μ hX.cd] + dsimp only [ρ,σ,NoncollapsedRCD.heatProbability] + rw [max_eq_left (mul_nonneg hα.le ht),max_eq_left (mul_nonneg hβ.le ht)] + have hh := evolution_initial_limit hb hD (k := -K*(α+β)) + (e := 2*N*(Real.sqrt α-Real.sqrt β)^2) (by + intro a ha hab + rw [heq b hb.le,heq a ha.le] + exact hX.heat_dimensional_expansion_positive K n hn hK hN p f g C + hf0 hfC hfm hfs hg0 hgC hgm hgs hα hβ ha hab) + rw [heq b hb.le,heq 0 le_rfl] at hh + simpa only [mul_zero] using hh + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/DimensionalH1.lean b/lean/OAI/Geometry/RCD/Transport/DimensionalH1.lean new file mode 100644 index 0000000000000000000000000000000000000000..d5f7ed6b781b27981943f90b91451b9c032940cd --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/DimensionalH1.lean @@ -0,0 +1,152 @@ +import OAI.Geometry.RCD.Transport.DimensionalPotential +import OAI.Geometry.RCD.Heat.EntropyPowerRateContinuous + +namespace OAI + +/-! # The dimensional optimal potential for bounded compact Sobolev densities + +The proved square-root probability recovery and a common-support potential +subsequence pass the exact finite-dimensional bound to the actual density. +-/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped Topology NNReal ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem NoncollapsedRCD.quantitative_H1_dimensional_subgradient + (K : ℝ) (n : ℕ) (hn : 2 ≤ n) (hX : NoncollapsedRCD K n X) + (hK : K ≤ 0) {N : ℝ} (hN : (n:ℝ) ≤ N) + (ν₀ ν₁ : Measure X) [IsProbabilityMeasure ν₀] [IsProbabilityMeasure ν₁] + {C : ℝ≥0∞} (hC : C ≠ ∞) + (h0 : ν₀ ≤ C • hausdorff n X) (h1 : ν₁ ≤ C • hausdorff n X) + (p : X) {R : ℝ} (hR : 0 ≤ R) + (hs0 : ∀ᵐ x ∂ν₀, dist x p ≤ R) (hs1 : ∀ᵐ x ∂ν₁, dist x p ≤ R) + (ρ : SobolevSpace (hausdorff n X) hX.quadratic) + (M : ℝ≥0) + (hρ : ∀ᵐ x ∂hausdorff n X, 0 ≤ SobolevSpace.toLp _ hX.quadratic ρ x ∧ + SobolevSpace.toLp _ hX.quadratic ρ x ≤ M) + (hρS : ∀ᵐ x ∂hausdorff n X, SobolevSpace.toLp _ hX.quadratic ρ x ≠ 0 → dist p x ≤ R) + (hρM : (∫x, SobolevSpace.toLp _ hX.quadratic ρ x ∂hausdorff n X) = 1) + (hν : ν₀ = (hausdorff n X).withDensity + (fun x => ENNReal.ofReal (SobolevSpace.toLp _ hX.quadratic ρ x))) : + ∃ (u : SobolevSpace (hausdorff n X) hX.quadratic) (φ ψ : X → ℝ), + LipschitzWith ⟨5*(2*(max R 0+1)),by positivity⟩ φ ∧ + LipschitzWith ⟨5*(2*(max R 0+1)),by positivity⟩ ψ ∧ + (∀ x, |φ x| ≤ 10*(2*(max R 0+1))^2) ∧ (∀ x, |ψ x| ≤ 10*(2*(max R 0+1))^2) ∧ + tsupport φ ⊆ closedBall p (6*(2*(max R 0+1))) ∧ + tsupport ψ ⊆ closedBall p (6*(2*(max R 0+1))) ∧ + HasCompactSupport φ ∧ HasCompactSupport ψ ∧ + (φ =ᵐ[hausdorff n X] SobolevSpace.toLp _ hX.quadratic u) ∧ + (∀ x y, φ x+ψ y ≤ dist x y^2/2) ∧ + (∫x, φ x ∂ν₀)+(∫x, ψ x ∂ν₁) = (wassersteinSq ν₀ ν₁).toReal/2 ∧ + -energyForm (hausdorff n X) hX.quadratic u ρ ≤ + entropyPowerRate N (-(K*(wassersteinSq ν₀ ν₁).toReal/N)) + (Real.exp (-boltzmannEntropy (hausdorff n X) ν₀/N)) + (Real.exp (-boltzmannEntropy (hausdorff n X) ν₁/N)) := by + let : SeparableSpace X := hX.separable + let : ProperSpace X := hX.proper K n hn + let μ := hausdorff n X + let : IsLocallyFiniteMeasure μ := locallyFinite_of_finiteOnBounded μ hX.finiteOnBounded + obtain ⟨qs,hs,hq,hLip,hrep,hb,hsup,hm,hpt,hEnt⟩ := + SobolevSpace.quantitative_strong_probability_square_recovery μ hX.quadratic ρ M hρ p hρS hρM + let B := 2*(max R 0+1) + have hB : 0 ≤ B := by dsimp [B]; positivity + have hRB : R ≤ B := by dsimp [B]; linarith [le_max_left R 0,le_max_right R 0] + have hsc (i : ℕ) : HasCompactSupport (hs i) := by + apply (isCompact_closedBall p B).of_isClosed_subset (isClosed_tsupport _) (closure_minimal _ isClosed_closedBall) + intro x hx + simpa only [mem_closedBall,dist_comm] using hsup i x hx + let νs : ℕ → Measure X := fun i => μ.withDensity (fun x => ENNReal.ofReal (hs i x^2)) + let (i : ℕ) : IsProbabilityMeasure (νs i) := + squareDensity_probability μ (compactSquare_integrable μ (hLip i).choose_spec.continuous (hsc i)) (hm i) + let D : ℝ≥0∞ := max C (ENNReal.ofReal (2*M)) + have hD : D ≠ ∞ := by + simp only [D, ne_eq, max_eq_top, not_or] + exact ⟨hC, ENNReal.ofReal_ne_top⟩ + have h0D : ν₀ ≤ D • μ := h0.trans (by gcongr; exact le_max_left _ _) + have h1D : ν₁ ≤ D • μ := h1.trans (by gcongr; exact le_max_left _ _) + have hDs (i : ℕ) : νs i ≤ D • μ := by + calc + _ ≤ μ.withDensity (fun _ => ENNReal.ofReal (2*M)) := + withDensity_mono (Eventually.of_forall fun x => ENNReal.ofReal_le_ofReal (hb i x).2) + _ = ENNReal.ofReal (2*M) • μ := withDensity_const _ + _ ≤ D • μ := by gcongr; exact le_max_right _ _ + have hSqs (i : ℕ) (x : X) (hx : hs i x^2 ≠ 0) : x ∈ closedBall p B := by + have hh : hs i x ≠ 0 := by intro hz; apply hx; rw [hz]; norm_num + simpa only [mem_closedBall,dist_comm] using hsup i x hh + have hSs (i : ℕ) : ∀ᵐ x ∂νs i, dist x p ≤ B := by + apply (ae_withDensity_iff ((hLip i).choose_spec.continuous.measurable.pow_const 2).ennreal_ofReal).mpr + filter_upwards with x hx + apply hSqs i x + intro hz + exact hx (by rw [hz,ENNReal.ofReal_zero]) + have hνs (i : ℕ) : νs i = μ.withDensity (fun x => ENNReal.ofReal (SobolevSpace.toLp μ hX.quadratic (qs i) x)) := by + apply withDensity_congr_ae + exact (hrep i).symm.fun_comp ENNReal.ofReal + have hcore (i : ℕ) := hX.sqrt_core_dimensional_potential hn hK hN (νs i) ν₁ hD + (hDs i) h1D p hB (hSs i) (hs1.mono fun x hx => hx.trans hRB) (qs i) + (hLip i).choose_spec (fun x => (hb i x).1) + ((hLip i).choose_spec.continuous.integrable_of_hasCompactSupport (hsc i)) (hrep i) (hνs i) + choose us φs ψs hφs hψs hφb hψb hφsup hψsup hφsc hψsc hus hads hduals hineqs using hcore + let L : ℝ≥0 := ⟨5*B,by positivity⟩ + have hφabs (i : ℕ) (x : X) : |φs i x| ≤ 10*B^2 := by + rw [abs_of_nonneg (hφb i x).1] + exact (hφb i x).2 + have hψabs (i : ℕ) (x : X) : |ψs i x| ≤ 10*B^2 := by + rw [abs_of_nonpos (hψb i x).2] + linarith [(hψb i x).1] + obtain ⟨u,φ,ψ,s,hsm,hφ,hψ,hφB,hψB,hφS,hψS,hu,hφlim,hψlim,hub,hul⟩ := + SobolevSpace.common_support_dual_subsequence μ hX.quadratic p (B+(5*B)) (10*B^2) L + us φs ψs hφs hψs hφabs hψabs hφsup hψsup hus + have had (x y : X) : φ x+ψ y ≤ dist x y^2/2 := + le_of_tendsto ((hφlim x).add (hψlim y)) (Eventually.of_forall fun i => hads (s i) x y) + have heL := SobolevSpace.energyForm_tendsto_weak_strong μ hX.quadratic hub hul (hq.comp hsm.tendsto_atTop) + have hρm : Measurable (SobolevSpace.toLp μ hX.quadratic ρ : X → ℝ) := + (Lp.stronglyMeasurable _).measurable + have hpt' : ∀ᵐ x ∂μ, Tendsto (fun i => hs (s i) x^2) atTop (𝓝 (SobolevSpace.toLp μ hX.quadratic ρ x)) := + hpt.mono fun x hx => hx.comp hsm.tendsto_atTop + have hcost := hX.bounded_density_dual_limit K n hn ν₀ ν₁ (fun i => νs (s i)) hD h0D h1D + (fun i => hDs (s i)) p hB (hs0.mono fun x hx => hx.trans hRB) (hs1.mono fun x hx => hx.trans hRB) + (fun i => hSs (s i)) + (fun i => (hLip (s i)).choose_spec.continuous.measurable.pow_const 2) + (M := (2*M:ℝ)) (fun i x => ⟨sq_nonneg _,(hb (s i) x).2⟩) (fun i => hSqs (s i)) + hρm (hρ.mono fun x hx => hx.1) hpt' (fun i => rfl) hν + (fun i => hφs (s i)) (fun i => hψs (s i)) (fun i => hφabs (s i)) (fun i => hψabs (s i)) + hφ hψ hφB hψB hφlim hψlim had (fun i => hduals (s i)) + have hEL : Tendsto (fun i => boltzmannEntropy μ (νs (s i))) atTop (𝓝 (boltzmannEntropy μ ν₀)) := by + have he0 : boltzmannEntropy μ ν₀ = ∫x, SobolevSpace.toLp μ hX.quadratic ρ x* + Real.log (SobolevSpace.toLp μ hX.quadratic ρ x) ∂μ := by + rw [hν] + exact realDensity_entropy μ hρm (hρ.mono fun x hx => hx.1) + have hes (i : ℕ) : boltzmannEntropy μ (νs i) = ∫x, hs i x^2*Real.log (hs i x^2) ∂μ := + squareDensity_entropy μ (hLip i).choose_spec.continuous.measurable + rw [he0] + simp_rw [hes] + exact hEnt.comp hsm.tendsto_atTop + have hBS : B+(5*B) = 6*B := by ring + refine ⟨u,φ,ψ,hφ,hψ,hφB,hψB,by simpa only [hBS] using hφS,by simpa only [hBS] using hψS, + (isCompact_closedBall p _).of_isClosed_subset (isClosed_tsupport φ) hφS, + (isCompact_closedBall p _).of_isClosed_subset (isClosed_tsupport ψ) hψS, + hu,had,hcost.2,?_⟩ + have hnR : (2:ℝ) ≤ n := by exact_mod_cast hn + have hN0 : 0 < N := by linarith + have hnn (w : ℝ) (hw : 0 ≤ w) : 0 ≤ -(K*w/N) := + neg_nonneg.mpr (div_nonpos_of_nonpos_of_nonneg + (mul_nonpos_of_nonpos_of_nonneg hK hw) hN0.le) + have hrate := tendsto_entropyPowerRate (N := N) + (b := fun _ : ℕ => Real.exp (-boltzmannEntropy μ ν₁/N)) + (fun i => hnn (wassersteinSq (νs (s i)) ν₁).toReal ENNReal.toReal_nonneg) + (hnn (wassersteinSq ν₀ ν₁).toReal ENNReal.toReal_nonneg) (Real.exp_ne_zero _) + ((hcost.1.const_mul K).div_const N).neg + (Real.continuous_exp.tendsto _ |>.comp (hEL.neg.div_const N)) tendsto_const_nhds + exact le_of_tendsto_of_tendsto heL.neg hrate (Eventually.of_forall fun i => hineqs (s i)) + + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/DimensionalPotential.lean b/lean/OAI/Geometry/RCD/Transport/DimensionalPotential.lean new file mode 100644 index 0000000000000000000000000000000000000000..8e1b3a79bf12c6e209a8b8d76c44162931ebe545 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/DimensionalPotential.lean @@ -0,0 +1,95 @@ +import OAI.Geometry.RCD.Transport.DimensionalSubgradient + +namespace OAI + +/-! # An actual compact optimal potential with the dimensional subgradient bound + +This is the bounded square-root-core specialization of EKS Theorem 3.17, +equation (3.24). The potential and the transport plan are constructed from +the original RCD structure; no dimensional evolution inequality is assumed. +-/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped ENNReal NNReal Topology +noncomputable section +namespace RegularPointCoordinates.NoncollapsedRCD +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] [SeparableSpace X] {K : ℝ} {n : ℕ} + [IsLocallyFiniteMeasure (hausdorff n X)] (hX : NoncollapsedRCD K n X) +include hX +attribute [local instance] pathBorel pathBorelSpace + +theorem sqrt_core_dimensional_potential (hn : 2 ≤ n) (hK : K ≤ 0) + {N : ℝ} (hN : (n:ℝ) ≤ N) + (ν₀ ν₁ : Measure X) [IsProbabilityMeasure ν₀] [IsProbabilityMeasure ν₁] + {C : ℝ≥0∞} (hC : C ≠ ∞) + (h0 : ν₀ ≤ C • hausdorff n X) (h1 : ν₁ ≤ C • hausdorff n X) + (p : X) {R : ℝ} (hR : 0 ≤ R) + (hs0 : ∀ᵐ x ∂ν₀, dist x p ≤ R) (hs1 : ∀ᵐ x ∂ν₁, dist x p ≤ R) + (ρ : SobolevSpace (hausdorff n X) hX.quadratic) + {h : X → ℝ} {L : ℝ≥0} (hh : LipschitzWith L h) (hhn : ∀ x, 0 ≤ h x) + (hi : Integrable h (hausdorff n X)) + (hrep : (SobolevSpace.toLp _ hX.quadratic ρ : X → ℝ) =ᵐ[hausdorff n X] fun x => h x^2) + (hν : ν₀=(hausdorff n X).withDensity + (fun x => ENNReal.ofReal (SobolevSpace.toLp _ hX.quadratic ρ x))) : + ∃ (u : SobolevSpace (hausdorff n X) hX.quadratic) (φ ψ : X → ℝ), + LipschitzWith ⟨5*R,by positivity⟩ φ ∧ LipschitzWith ⟨5*R,by positivity⟩ ψ ∧ + (∀ x, 0 ≤ φ x ∧ φ x ≤ 10*R^2) ∧ (∀ x, -10*R^2 ≤ ψ x ∧ ψ x ≤ 0) ∧ + tsupport φ ⊆ closedBall p (R+(5*R)) ∧ tsupport ψ ⊆ closedBall p (R+(5*R)) ∧ + HasCompactSupport φ ∧ HasCompactSupport ψ ∧ + (φ =ᵐ[hausdorff n X] SobolevSpace.toLp _ hX.quadratic u) ∧ + (∀ x y, φ x+ψ y ≤ dist x y^2/2) ∧ + (∫x, φ x ∂ν₀)+(∫x, ψ x ∂ν₁)=(wassersteinSq ν₀ ν₁).toReal/2 ∧ + -energyForm (hausdorff n X) hX.quadratic u ρ ≤ + entropyPowerRate N (-(K*(wassersteinSq ν₀ ν₁).toReal/N)) + (Real.exp (-boltzmannEntropy (hausdorff n X) ν₀/N)) + (Real.exp (-boltzmannEntropy (hausdorff n X) ν₁/N)) := by + let μ := hausdorff n X + let : μ.Regular := inferInstance + obtain ⟨π,hπ,hg,hp,hdi,hall⟩ := hX.exists_bounded_entropy_plan K n hn ν₀ ν₁ hC h0 h1 p hR hs0 hs1 + let := hπ + have he := optimalPlan_endpoints ν₀ ν₁ π hp + obtain ⟨u,φ,ψ,hφ,hψ,hφb,hψb,htφ,htψ,hsφ,hsψ,hu,had,hcontact,hb⟩ := + hp.linear_radius_bounded_sobolev_potential μ hX.quadratic hX.geodesic ν₀ ν₁ + (Measure.absolutelyContinuous_of_le_smul h0) p hR hs0 hs1 + have hm : Measurable (fun γ : C(Time,X) => (γ 0,γ 1)) := + (measurable_path_eval 0).prodMk (measurable_path_eval 1) + have hcontactπ := ae_of_ae_map hm.aemeasurable hcontact + have hbπ := ae_of_ae_map hm.aemeasurable hb + let a : RenyiTransportNode n X := + ⟨ν₀,ν₁,inferInstance,inferInstance,p,R,hR,hs0,hs1,C,hC,h0,h1,2*R, + mul_nonneg (by norm_num) hR,optimalPlanDistanceBound_of_bounded ν₀ ν₁ p hs0 hs1⟩ + let D := compressionBudget K n (2*R) C + have hD : D ≠ ∞ := compressionBudget_ne_top K n (2*R) hC + let M : ℝ≥0 := ⟨D.toReal+1,by positivity⟩ + have hM : 0 < M := by change 0 < D.toReal+1; positivity + have hDM : D ≤ ENNReal.ofReal M := by + rw [←ENNReal.ofReal_toReal hD] + exact ENNReal.ofReal_le_ofReal (by change D.toReal ≤ D.toReal+1; linarith) + have hcM (t : Time) : π.map (fun γ => γ t) ≤ ENNReal.ofReal M • μ := by + apply (hall t).1.trans + intro S + exact mul_le_mul' hDM le_rfl + have hbound := hX.entropic_plan_subgradient hn hK hN a π hg hp hM hcM u ρ hh hhn hi hrep hν + hu had hcontactπ hbπ + refine ⟨u,φ,ψ,hφ,hψ,hφb,hψb,htφ,htψ,hsφ,hsψ,hu,had,?_,hbound⟩ + have hφi : Integrable φ ν₀ := hφ.continuous.integrable_of_hasCompactSupport hsφ + have hψi : Integrable ψ ν₁ := hψ.continuous.integrable_of_hasCompactSupport hsψ + have hφπ : Integrable (fun γ : C(Time,X) => φ (γ 0)) π := by + apply Integrable.comp_measurable _ (measurable_path_eval 0) + rwa [he.1] + have hψπ : Integrable (fun γ : C(Time,X) => ψ (γ 1)) π := by + apply Integrable.comp_measurable _ (measurable_path_eval 1) + rwa [he.2] + have hcost : (wassersteinSq ν₀ ν₁).toReal=∫γ, dist (γ 0) (γ 1)^2 ∂π := by + rw [wassersteinSq_eq_cost hp,transportCost_plan_eq_integral π hdi, + ENNReal.toReal_ofReal (integral_nonneg fun _ => sq_nonneg _)] + rw [←he.1,←he.2,integral_map (measurable_path_eval 0).aemeasurable hφ.continuous.measurable.aestronglyMeasurable, + integral_map (measurable_path_eval 1).aemeasurable hψ.continuous.measurable.aestronglyMeasurable, + ←integral_add hφπ hψπ,integral_congr_ae hcontactπ,integral_div,he.1,he.2,hcost] + +end RegularPointCoordinates.NoncollapsedRCD + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/DimensionalSlope.lean b/lean/OAI/Geometry/RCD/Transport/DimensionalSlope.lean new file mode 100644 index 0000000000000000000000000000000000000000..f48f1ca1186af139f1c789df036c9ee3953d3df4 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/DimensionalSlope.lean @@ -0,0 +1,128 @@ +import OAI.Geometry.RCD.Transport.DimensionalCutoff +import OAI.Geometry.RCD.Sobolev.DimensionalCutoffLimit +import OAI.Geometry.RCD.Sobolev.RealCutoffConvergence + +namespace OAI + +/-! # The dimensional evolution slope for the actual heat flow + +The exact dimensional rate survives radial cutoff approximation. +Both entropy and transport cost converge, including at zero distance. +-/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped Topology NNReal ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] [SeparableSpace X] + +theorem NoncollapsedRCD.bounded_heat_frequent_dimensional_slope + (K : ℝ) (n : ℕ) [IsLocallyFiniteMeasure (hausdorff n X)] (hn : 2 ≤ n) + (hX : NoncollapsedRCD K n X) (hK : K ≤ 0) {N : ℝ} (hN : (n:ℝ) ≤ N) (p : X) + (f : Lp ℝ 2 (hausdorff n X)) (C : ℝ≥0) (hf0 : 0 ≤ f) + (hfC : ∀ᵐ x ∂hausdorff n X, f x ≤ C) + (hfm : ∫x, f x ∂hausdorff n X = 1) + {r : ℝ} (hfs : ∀ᵐ x ∂hausdorff n X, f x ≠ 0 → dist p x ≤ r) + (ν : Measure X) [IsProbabilityMeasure ν] (hν : ν ≤ ENNReal.ofReal C • hausdorff n X) + {rν : ℝ} (hνS : ∀ᵐ x ∂ν, dist x p ≤ rν) {t : ℝ} (ht : 0 < t) : + ∀ z, entropyPowerRate N + (-(K*(wassersteinSq (heatMeasure (hausdorff n X) hX.quadratic t f) ν).toReal/N)) + (Real.exp (-boltzmannEntropy (hausdorff n X) (heatMeasure (hausdorff n X) hX.quadratic t f)/N)) + (Real.exp (-boltzmannEntropy (hausdorff n X) ν/N)) < z → + ∃ᶠ s in 𝓝[>] t, slope (fun q => + (wassersteinSq (heatMeasure (hausdorff n X) hX.quadratic q f) ν).toReal/2) t s < z := by + let μ := hausdorff n X + obtain ⟨A,B,hA,hB,hvol⟩ := hX.exponential_volume K n hn p + have hfi := lp_integrable_of_bounded_support μ f p hfs + have hνac : ν ≪ μ := (Measure.absolutelyContinuous_of_le hν).trans Measure.smul_absolutelyContinuous + have hν2 := finiteSecondMoment_of_ae_dist_le ν p hνS + have hfabs : ∀ᵐ x ∂μ, |f x| ≤ C := by + filter_upwards [(Lp.coeFn_nonneg _).mpr hf0,hfC] with x hl hu + simpa only [abs_of_nonneg hl] using hu + let b := 12*B+4 + have hb : 0 ≤ b := by dsimp [b]; positivity + let a := 2*b+4 + have ha : 0 ≤ a := by dsimp [a]; positivity + obtain ⟨H,R₀,hH,hR₀,hNorm⟩ := heat_normalized_cutoff_exponential μ hX.quadratic p hA hB hvol + f C hf0 hfC hfi hfm hfs (a := a) (T := t+1) ha ht + obtain ⟨J,hJ,hEnt⟩ := radialHeatMeasure_entropy_exponential μ hX.quadratic p hA hB hvol + f hf0 hfi hfm hfs (a := a) (T := t+1) ha + obtain ⟨L,hL,hCost⟩ := hX.radial_heat_cost_exponential K n hn p hA hB hvol f C hf0 hfC hfi hfm hfs + ν hνac hν2 (a := a) (T := t+1) ha ht + let D : ℝ → ℝ := fun s => (wassersteinSq (heatMeasure μ hX.quadratic s f) ν).toReal + let E : ℝ → ℝ := fun s => boltzmannEntropy μ (heatMeasure μ hX.quadratic s f) + let Q : ℝ → ℝ := fun R => (wassersteinSq (radialHeatMeasure μ hX.quadratic p R + (t+Real.exp (-(b+1)*R)) f) ν).toReal + let F : ℝ → ℝ := fun R => boltzmannEntropy μ (radialHeatMeasure μ hX.quadratic p R + (t+Real.exp (-(b+1)*R)) f) + have hDt : ContinuousAt D t := + hX.heat_wassersteinSq_continuousAt K n hn p f hf0 ⟨r,hfs⟩ hfm C hfabs ν hνac hν2 ht + have hEt : ContinuousAt E t := hX.heat_entropy_continuousAt K n hn p f hf0 ⟨r,hfs⟩ ht + have htime : ∀ᶠ R : ℝ in atTop, Real.exp (-(b+1)*R) ≤ 1 := + (exp_neg_mul_tendsto_zero (by linarith : 0 < b+1)).eventually_le_const (by norm_num) + have hbounds : ∀ᶠ R : ℝ in atTop, + |Q R-D (t+Real.exp (-(b+1)*R))| ≤ L*Real.exp (-(2*b+4)*R) ∧ + |F R-E (t+Real.exp (-(b+1)*R))| ≤ J*Real.exp (-(2*b+4)*R) := by + filter_upwards [eventually_ge_atTop (max R₀ (max 1 rν)),htime] with R hR htime + have hRR : R₀ ≤ R := (le_max_left _ _).trans hR + have hR1 : 1 ≤ R := (le_max_left _ _).trans ((le_max_right _ _).trans hR) + have hRp : 0 < R := zero_lt_one.trans_le hR1 + have hs : t ≤ t+Real.exp (-(b+1)*R) := le_add_of_nonneg_right (Real.exp_pos _).le + have hst : t+Real.exp (-(b+1)*R) ≤ t+1 := by linarith only [htime] + have hm := (hNorm _ hs hst R hRp hRR).1 + exact ⟨hCost _ hs hst R hR1 hm,hEnt _ (add_pos ht (Real.exp_pos _)).le hst R hRp hm⟩ + have hstep : Tendsto (fun R : ℝ => t+Real.exp (-(b+1)*R)) atTop (𝓝 t) := by + simpa using (exp_neg_mul_tendsto_zero (by linarith : 0 < b+1)).const_add t + have htail : Tendsto (fun R : ℝ => Real.exp (-(2*b+4)*R)) atTop (𝓝 0) := + exp_neg_mul_tendsto_zero (by linarith) + have hQl : Tendsto Q atTop (𝓝 (D t)) := tendsto_of_abs_cutoff_error + (hDt.tendsto.comp hstep) (by simpa using htail.const_mul L) (hbounds.mono fun _ h => h.1) + have hFl : Tendsto F atTop (𝓝 (E t)) := tendsto_of_abs_cutoff_error + (hEt.tendsto.comp hstep) (by simpa using htail.const_mul J) (hbounds.mono fun _ h => h.2) + let G : ℝ → ℝ := fun R => entropyPowerRate N (-(K*Q R/N)) + (Real.exp (-F R/N)) (Real.exp (-boltzmannEntropy μ ν/N)) + have hnR : (2:ℝ) ≤ n := by exact_mod_cast hn + have hN0 : 0 < N := by linarith + have hnn (w : ℝ) (hw : 0 ≤ w) : 0 ≤ -(K*w/N) := + neg_nonneg.mpr (div_nonpos_of_nonpos_of_nonneg (mul_nonpos_of_nonpos_of_nonneg hK hw) hN0.le) + have hGl : Tendsto G atTop (𝓝 (entropyPowerRate N (-(K*D t/N)) + (Real.exp (-E t/N)) (Real.exp (-boltzmannEntropy μ ν/N)))) := + tendsto_entropyPowerRate (fun R => hnn (Q R) ENNReal.toReal_nonneg) + (hnn (D t) ENNReal.toReal_nonneg) (Real.exp_ne_zero _) + ((hQl.const_mul K).div_const N).neg + (Real.continuous_exp.tendsto _ |>.comp (hFl.neg.div_const N)) tendsto_const_nhds + apply frequent_slope_of_dimensional_cutoffs (D := D) (Q := Q) (G := G) + (C := 1000*(A+1)) (A := (2*(1+1/(t/2)))^2*‖f‖) (H := H) hb hGl + have htime : ∀ᶠ R : ℝ in atTop, Real.exp (-(b+1)*R) ≤ 1 := + (exp_neg_mul_tendsto_zero (by linarith : 0 < b+1)).eventually_le_const (by norm_num) + filter_upwards [eventually_ge_atTop (max R₀ (max 1 rν)),htime] with R hR htime + have hRR : R₀ ≤ R := (le_max_left _ _).trans hR + have hR1 : 1 ≤ R := (le_max_left _ _).trans ((le_max_right _ _).trans hR) + have hRν : rν ≤ R := (le_max_right _ _).trans ((le_max_right _ _).trans hR) + have hRp : 0 < R := zero_lt_one.trans_le hR1 + let h := Real.exp (-(b+1)*R) + have hh : 0 < h := Real.exp_pos _ + have hs : t ≤ t+h := le_add_of_nonneg_right hh.le + have hst : t+h ≤ t+1 := by dsimp only [h]; linarith only [htime] + have hn := hNorm (t+h) hs hst R hRp hRR + refine ⟨hCost (t+h) hs hst R hR1 hn.1,?_⟩ + have hv : ∀ᵐ x ∂ν, dist x p ≤ 2*R := hνS.mono fun x hx => hx.trans (by linarith) + have hsec := hX.dimensional_cutoff_heat_secant K n ‹2 ≤ n› hK hN p hA hB hvol f C hf0 hfC hfi hfm hfs ν hν + hR1 ht hh hv hn.1 + have hnorm : ‖radialHeatSobolev μ hX.quadratic p hRp (add_pos ht hh) f C- + heatSobolev μ hX.quadratic (t+h) (add_pos ht hh) f‖ ≤ H*Real.exp (-(2*b+4)*R) := by + simpa only [radialHeatSobolev,norm_sub_rev,a] using hn.2 + apply hsec.trans + apply add_le_add le_rfl + change (1000*(A+1)*Real.exp (b*R))*_ ≤ (1000*(A+1)*Real.exp (b*R))*_ + apply mul_le_mul_of_nonneg_left _ (by positivity) + apply add_le_add le_rfl + exact mul_le_mul_of_nonneg_left hnorm (by positivity) + + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/DimensionalSubgradient.lean b/lean/OAI/Geometry/RCD/Transport/DimensionalSubgradient.lean new file mode 100644 index 0000000000000000000000000000000000000000..4e28c09547b3dc0b9322ea92d8ac2ece555bf679 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/DimensionalSubgradient.lean @@ -0,0 +1,59 @@ +import OAI.Geometry.RCD.Transport.PlanEntropyDerivative + +namespace OAI + +/-! # The dimensional entropy subgradient on the actual optimal transport potential -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped ENNReal NNReal Topology +noncomputable section +namespace RegularPointCoordinates.NoncollapsedRCD +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] [SeparableSpace X] {K : ℝ} {n : ℕ} + [IsLocallyFiniteMeasure (hausdorff n X)] (hX : NoncollapsedRCD K n X) +include hX +attribute [local instance] pathBorel pathBorelSpace + +theorem entropic_plan_subgradient (hn : 2 ≤ n) (hK : K ≤ 0) + {N : ℝ} (hN : (n:ℝ) ≤ N) (a : RenyiTransportNode n X) + (π : Measure C(Time,X)) [IsProbabilityMeasure π] + (hg : ∀ᵐ γ ∂π, IsGeodesic γ) + (hp : IsOptimalCoupling a.left a.right (π.map (fun γ => (γ 0,γ 1)))) + {C : ℝ≥0} (hC : 0 < C) + (hc : ∀ t : Time, π.map (fun γ => γ t) ≤ ENNReal.ofReal C • hausdorff n X) + (u ρ : SobolevSpace (hausdorff n X) hX.quadratic) + {h : X → ℝ} {L : ℝ≥0} (hh : LipschitzWith L h) (hhn : ∀ x, 0 ≤ h x) + (hi : Integrable h (hausdorff n X)) + (hrep : (SobolevSpace.toLp _ hX.quadratic ρ : X → ℝ) =ᵐ[hausdorff n X] fun x => h x^2) + (hν : a.left=(hausdorff n X).withDensity + (fun x => ENNReal.ofReal (SobolevSpace.toLp _ hX.quadratic ρ x))) + {φ ψ : X → ℝ} (hu : φ =ᵐ[hausdorff n X] SobolevSpace.toLp _ hX.quadratic u) + (had : ∀ x y, φ x+ψ y ≤ dist x y^2/2) + (hcontact : ∀ᵐ γ ∂π, φ (γ 0)+ψ (γ 1)=dist (γ 0) (γ 1)^2/2) + (hb : ∀ᵐ γ ∂π, SobolevSpace.minimalSlope _ hX.quadratic u (γ 0) ≤ dist (γ 0) (γ 1)) : + -energyForm (hausdorff n X) hX.quadratic u ρ ≤ + entropyPowerRate N (-(K*(wassersteinSq a.left a.right).toReal/N)) + (Real.exp (-boltzmannEntropy (hausdorff n X) a.left/N)) + (Real.exp (-boltzmannEntropy (hausdorff n X) a.right/N)) := by + let μ := hausdorff n X + let : μ.Regular := inferInstance + let r := SobolevSpace.toLp μ hX.quadratic ρ + have hrn : (fun x => h x^2) =ᵐ[μ] fun x => (a.left.rnDeriv μ x).toReal := by + rw [hν] + filter_upwards [Measure.rnDeriv_withDensity μ (Lp.stronglyMeasurable r).measurable.ennreal_ofReal, + hrep] with x hx hs + rw [hx,hs,ENNReal.toReal_ofReal (sq_nonneg _)] + have he := optimalPlan_endpoints a.left a.right π hp + have hDb := a.distance_bound π inferInstance hg hp + have hD : MemLp (fun γ : C(Time,X) => dist (γ 0) (γ 1)) 2 π := + MemLp.of_bound ((measurable_path_eval 0).dist (measurable_path_eval 1)).aestronglyMeasurable + a.distance (hDb.mono fun γ hh => by simpa only [Real.norm_eq_abs,abs_of_nonneg dist_nonneg] using hh) + have hd := sqrt_core_signed_variation μ hX.quadratic π hg ENNReal.ofReal_ne_top hc hD + a.distance_nonneg hDb u ρ hh hhn hi hrep (he.1.trans hν) hu had hcontact hb + exact hX.entropic_plan_first_variation hn hK hN a π hg hp hC hc r hrep hrn hd + +end RegularPointCoordinates.NoncollapsedRCD + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/DiracTransportCost.lean b/lean/OAI/Geometry/RCD/Transport/DiracTransportCost.lean new file mode 100644 index 0000000000000000000000000000000000000000..329204517cd2363b7fd274442892a74d8b4ee7fa --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/DiracTransportCost.lean @@ -0,0 +1,44 @@ +import OAI.Analysis.RCDHeat.ExistingAnalytic + +namespace OAI + +/-! # Every coupling to a Dirac measure has the same transport cost + +This identifies the limiting radial plan as optimal without retaining +an extra optimality assumption in the concentration argument. +-/ + +open Set Filter Metric MeasureTheory +open scoped ENNReal + +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + +theorem transportCost_eq_moment_of_dirac (ν : Measure X) (p : X) + (π : Measure (X × X)) (h₀ : π.map Prod.fst = ν) + (h₁ : π.map Prod.snd = Measure.dirac p) : + transportCost π = ∫⁻ x, ENNReal.ofReal (dist x p) ^ 2 ∂ν := by + have hp : ∀ᵐ xy ∂π, xy.2 = p := by + apply ae_of_ae_map (μ := π) measurable_snd.aemeasurable (p := fun x : X => x = p) + rw [h₁] + simp + have hm : Measurable (fun x : X => ENNReal.ofReal (dist x p) ^ 2) := by fun_prop + rw [← h₀, lintegral_map hm measurable_fst] + unfold transportCost + apply lintegral_congr_ae + filter_upwards [hp] with xy hxy + rw [hxy] + +theorem isOptimalCoupling_of_dirac (ν : Measure X) (p : X) + (π : Measure (X × X)) (h₀ : π.map Prod.fst = ν) + (h₁ : π.map Prod.snd = Measure.dirac p) : + IsOptimalCoupling ν (Measure.dirac p) π := by + refine ⟨h₀, h₁, ?_⟩ + intro π' h₀' h₁' + rw [transportCost_eq_moment_of_dirac ν p π h₀ h₁, + transportCost_eq_moment_of_dirac ν p π' h₀' h₁'] + +end RegularPointCoordinates + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/DistancePoissonOptimalMean.lean b/lean/OAI/Geometry/RCD/Transport/DistancePoissonOptimalMean.lean new file mode 100644 index 0000000000000000000000000000000000000000..6f44411bf35395c203886176ea0ffb6c4bb80522 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/DistancePoissonOptimalMean.lean @@ -0,0 +1,91 @@ +import OAI.Geometry.RCD.Sobolev.DistancePoissonMeanEstimate +import OAI.Geometry.RCD.Heat.CompactHeatActualPlanLimit +import OAI.Geometry.RCD.Transport.CompressedFiniteUnique + +namespace OAI + +/-! # The actual Poisson mean estimate on every compressed optimal plan -/ + +open Set Filter Metric MeasureTheory TopologicalSpace +open scoped Topology NNReal ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + {K : ℝ} {n : ℕ} {hX : NoncollapsedRCD K n X} {hn : 2≤n} [SeparableSpace X] + [IsLocallyFiniteMeasure (hausdorff n X)] [(hausdorff n X).Regular] + {κ B J C : ℝ} {p : ℕ → X} {r : ℕ → ℝ} {hr : ∀ k, 0 ENNReal.ofReal (ρ₀ x))) + (hν : ν.map Subtype.val=(hausdorff n X).withDensity (fun x => ENNReal.ofReal (ρ₁ x))) + (hS : ∀ y:S, dist (p k) y≤r k/512) (hT : ∀ y:T, dist (p k) y≤r k/512) + (π : Measure C(Time,X)) [IsProbabilityMeasure π] (hgeo : ∀ᵐ γ ∂π, IsGeodesic γ) + (hopt : IsOptimalCoupling (μ.map Subtype.val) (ν.map Subtype.val) + (π.map (fun γ => (γ 0,γ 1)))) + {Bπ : ℝ≥0∞} (hBπ : Bπ≠∞) (hcomp : ∀ t : Time, π.map (fun γ => γ t)≤Bπ • hausdorff n X) : + let Z t := ∫ γ, W.representative k (γ t) ∂π + ∀ (l h t : Time), 0<(l:ℝ) → (l:ℝ) by simpa only [dist_comm] using hS1 y + have hs₁ : ∀ᵐ x ∂ν.map Subtype.val, dist x (p k)≤1 := by + apply (ae_map_iff measurable_subtype_coe.aemeasurable + (measurableSet_le (by fun_prop) measurable_const)).mpr + exact Eventually.of_forall fun y => by simpa only [dist_comm] using hT1 y + have heq := hX.compressed_plan_unique_finite hn (p k) (by norm_num : (0:ℝ)≤1) + π (π' : Measure C(Time,X)) hgeo hg' hopt hp' hBπ hB' hcomp hc' hs₀ hs₁ + have hlen' : Integrable (fun γ : C(Time,X) => dist (γ 0) (γ 1)^2) π := heq.symm ▸ hlen + have hD : MemLp (fun γ : C(Time,X) => dist (γ 0) (γ 1)) 2 π := + (memLp_two_iff_integrable_sq (((measurable_path_eval 0).dist + (measurable_path_eval 1)).aestronglyMeasurable)).mpr hlen' + let Q₀ (s : Ioo (0:ℝ) 1) := π'.map (fun γ => γ (⟨s,s.property.1.le,s.property.2.le⟩ : Time)) + have hQeq (s : Ioo (0:ℝ) 1) : (Q₀ s : Measure X)= + π.map (fun γ => γ (⟨s,s.property.1.le,s.property.2.le⟩ : Time)) := by + change (π' : Measure C(Time,X)).map _=π.map _ + rw [heq] + have hmean := W.mean_estimate k D p₀ a₀ b₀ hK hκ hBJ he1 heatStep_tendsto + ρ₀ ρ₁ hm₀ hm₁ hp₀ hp₁ hC₀ hC₁ hμ hν hS hT j hj Q₀ (fun s => (hlim s).1) + π hgeo hopt hBπ hcomp hD hQeq + obtain ⟨LV,AV,hV,_hc,_he,_hA⟩ := W.representative_spec k + have hs (s : Time) (hs0 : 0<(s:ℝ)) (hs1 : (s:ℝ)<1) : + (if hs : (s:ℝ)∈Ioo (0:ℝ) 1 then ∫ x, W.representative k x ∂(Q₀ ⟨s,hs⟩ : Measure X) else 0)=Z s := by + rw [dite_eq_left ⟨hs0,hs1⟩,hQeq] + exact integral_map (measurable_path_eval s).aemeasurable hV.continuous.aestronglyMeasurable + have hlast := hmean l h hl hlh hh t ht + dsimp only at hlast + rw [hs t (lt_of_lt_of_le hl ht.1) (lt_of_le_of_lt ht.2 hh),hs l hl (hlh.trans hh), + hs h (hl.trans hlh) hh] at hlast + exact hlast + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/DominatedEndpointTails.lean b/lean/OAI/Geometry/RCD/Transport/DominatedEndpointTails.lean new file mode 100644 index 0000000000000000000000000000000000000000..51c170d6fca14278f0a21efdd1b9ef246864f1c6 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/DominatedEndpointTails.lean @@ -0,0 +1,57 @@ +import OAI.Geometry.RCD.Transport.GeodesicPlanTightness + +namespace OAI + +/-! # Uniform endpoint tails from domination by fixed probability measures -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped ENNReal Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [SeparableSpace X] [ProperSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem finite_measure_closedBall_tail + (μ : Measure X) [IsFiniteMeasure μ] (p : X) {ε : ℝ≥0∞} (hε : 0<ε) : + ∃ R : ℝ, 0≤R ∧ μ {x | R μ (closedBall p r)ᶜ) atTop (𝓝 0) := by + simpa only [Set.mem_singleton_iff,iSup_iSup_eq_left] using + tendsto_measure_compl_closedBall_of_isTightMeasureSet + (isTightMeasureSet_singleton (μ:=μ)) p + obtain ⟨R,hR⟩ := ENNReal.tendsto_atTop_zero.mp ht ε hε + refine ⟨max R 0,le_max_right _ _,?_⟩ + have he : {x : X | max R 0 γ 0)≤(2 : ℝ≥0∞) • (ν₀ : Measure X)) + (h1 : ∀ j, (πs j : Measure C(Time,X)).map (fun γ => γ 1)≤(2 : ℝ≥0∞) • (ν₁ : Measure X)) : + ∀ ε : ℝ≥0∞, 0<ε → ∃ R : ℝ, 0≤R ∧ ∀ j, + (πs j : Measure C(Time,X)) {γ | R ?_⟩ + have hB : MeasurableSet {x : X | R γ t)) {x | R γ 0)) (π.map (fun γ => γ 1)) + (π.map (fun γ => (γ 0,γ 1)))) + (hc : transportCost (π.map (fun γ => (γ 0,γ 1)))≠∞) + (hτ : τ≤(2 : ℝ≥0∞) • π) : + IsOptimalCoupling (τ.map (fun γ => γ 0)) (τ.map (fun γ => γ 1)) + (τ.map (fun γ => (γ 0,γ 1))) := by + have hm := (measurable_path_eval (X:=X) 0).prodMk (measurable_path_eval 1) + have h2 := hp.smul (by norm_num : (2 : ℝ≥0∞)≠0) (by norm_num : (2 : ℝ≥0∞)≠∞) + let : IsFiniteMeasure ((2 : ℝ≥0∞) • π.map (fun γ => (γ 0,γ 1))) := ⟨by + change (2 : ℝ≥0∞)*(π.map (fun γ => (γ 0,γ 1))) univ<∞ + exact ENNReal.mul_lt_top (by norm_num) (measure_lt_top _ _)⟩ + have hc2 : transportCost ((2 : ℝ≥0∞) • π.map (fun γ => (γ 0,γ 1)))≠∞ := by + rw [transportCost_smul] + exact ENNReal.mul_ne_top (by norm_num) hc + have hle : τ.map (fun γ => (γ 0,γ 1))≤(2 : ℝ≥0∞) • π.map (fun γ => (γ 0,γ 1)) := by + rw [← Measure.map_smul _ hm.aemeasurable] + exact Measure.map_mono hτ hm + simpa only [Measure.map_map measurable_fst hm,Measure.map_map measurable_snd hm,Function.comp_def] + using h2.subcoupling hc2 hle + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/EndpointChordLimit.lean b/lean/OAI/Geometry/RCD/Transport/EndpointChordLimit.lean new file mode 100644 index 0000000000000000000000000000000000000000..ffafa8a67a81e918fe71b34a762a0af8dec15538 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/EndpointChordLimit.lean @@ -0,0 +1,63 @@ +import OAI.Geometry.RCD.Sobolev.WeakInverseDensity + +namespace OAI + +/-! # Exact endpoint chords converge along the dominated recovery sequence -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped ENNReal NNReal Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +omit [MeasurableSpace X] [BorelSpace X] in +theorem measurable_path_sigma_nonpos {K N s : ℝ} + (hK : K ≤ 0) (hN : 1 < N) (hs : 0 ≤ s) (hs1 : s ≤ 1) : + Measurable (fun γ : C(Time,X) => sigma K N s (dist (γ 0) (γ 1))) := by + exact ((continuous_sigma_nonpos_length hK hN hs hs1).comp + ((continuous_eval_const 0).nndist (continuous_eval_const 1))).measurable + +theorem endpoint_chord_tendsto + (μ ν₀ ν₁ : Measure X) [SigmaFinite μ] [IsFiniteMeasure ν₀] [IsFiniteMeasure ν₁] + [ν₀.WeaklyRegular] [ν₁.WeaklyRegular] (h0 : ν₀ ≪ μ) (h1 : ν₁ ≪ μ) + (πs : ℕ → ProbabilityMeasure C(Time,X)) (π : ProbabilityMeasure C(Time,X)) + (hlim : Tendsto πs atTop (𝓝 π)) + (hds : ∀ j, (πs j : Measure C(Time,X)).map (fun γ => γ 0) ≤ (2 : ℝ≥0∞) • ν₀ ∧ + (πs j : Measure C(Time,X)).map (fun γ => γ 1) ≤ (2 : ℝ≥0∞) • ν₁) + (hd : (π : Measure C(Time,X)).map (fun γ => γ 0) ≤ (2 : ℝ≥0∞) • ν₀ ∧ + (π : Measure C(Time,X)).map (fun γ => γ 1) ≤ (2 : ℝ≥0∞) • ν₁) + {K N : ℝ} (hK : K ≤ 0) (hN : 0 < N) + (hi0 : Integrable (fun x => (ν₀.rnDeriv μ x).toReal^(-(1/N))) ν₀) + (hi1 : Integrable (fun x => (ν₁.rnDeriv μ x).toReal^(-(1/N))) ν₁) (t : Time) : + Tendsto (fun j => ∫⁻γ, + sigma K (N+1) (1-(t:ℝ)) (dist (γ 0) (γ 1))*(ν₀.rnDeriv μ (γ 0))^(-(1/N))+ + sigma K (N+1) (t:ℝ) (dist (γ 0) (γ 1))*(ν₁.rnDeriv μ (γ 1))^(-(1/N)) + ∂(πs j : Measure C(Time,X))) atTop + (𝓝 (∫⁻γ, + sigma K (N+1) (1-(t:ℝ)) (dist (γ 0) (γ 1))*(ν₀.rnDeriv μ (γ 0))^(-(1/N))+ + sigma K (N+1) (t:ℝ) (dist (γ 0) (γ 1))*(ν₁.rnDeriv μ (γ 1))^(-(1/N)) + ∂(π : Measure C(Time,X)))) := by + have h0t := weak_inverse_density_distortion μ ν₀ h0 πs π hlim 0 + (fun j => (hds j).1) hd.1 hK hN (sub_nonneg.mpr t.property.2) + (by linarith [t.property.1]) hi0 + have h1t := weak_inverse_density_distortion μ ν₁ h1 πs π hlim 1 + (fun j => (hds j).2) hd.2 hK hN t.property.1 t.property.2 hi1 + have hm0 := (measurable_path_sigma_nonpos (X:=X) hK (by linarith : 1 sigma K (N+1) (1-(t:ℝ)) (dist (γ 0) (γ 1))* + (ν₀.rnDeriv μ (γ 0))^(-(1/N))) at hm0 + change Measurable (fun γ : C(Time,X) => sigma K (N+1) (t:ℝ) (dist (γ 0) (γ 1))* + (ν₁.rnDeriv μ (γ 1))^(-(1/N))) at hm1 + simp_rw [lintegral_add_aux hm0 hm1] + exact h0t.add h1t + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/EndpointDominatedOptimality.lean b/lean/OAI/Geometry/RCD/Transport/EndpointDominatedOptimality.lean new file mode 100644 index 0000000000000000000000000000000000000000..9abfa771bef7b1c3a508ec39a04e8204ee946ecc --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/EndpointDominatedOptimality.lean @@ -0,0 +1,40 @@ +import OAI.Geometry.RCD.Coordinates.NormalizedOptimalSubplan + +namespace OAI + +/-! # Endpoint domination preserves optimality of a path law + +This permits a measurable splice to change the paths while keeping its +endpoint coupling inside a finite multiple of an existing optimal coupling. +-/ + +open Set Filter MeasureTheory +open scoped ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem optimal_of_endpoint_domination (π τ : Measure C(Time,X)) [IsFiniteMeasure π] + (hp : IsOptimalCoupling (π.map (fun γ => γ 0)) (π.map (fun γ => γ 1)) + (π.map (fun γ => (γ 0,γ 1)))) + (hfin : transportCost (π.map (fun γ => (γ 0,γ 1)))≠∞) + {c : ℝ≥0∞} (hc0 : c≠0) (hct : c≠∞) + (hle : τ.map (fun γ => (γ 0,γ 1))≤c • π.map (fun γ => (γ 0,γ 1))) : + IsOptimalCoupling (τ.map (fun γ => γ 0)) (τ.map (fun γ => γ 1)) + (τ.map (fun γ => (γ 0,γ 1))) := by + have hm := (measurable_path_eval (X:=X) 0).prodMk (measurable_path_eval 1) + let : IsFiniteMeasure (c • π.map (fun γ => (γ 0,γ 1))) := + (π.map (fun γ => (γ 0,γ 1))).smul_finite hct + have hcost : transportCost (c • π.map (fun γ => (γ 0,γ 1)))≠∞ := by + rw [transportCost_smul] + exact ENNReal.mul_ne_top hct hfin + have hs := (hp.smul hc0 hct).subcoupling hcost hle + simpa only [Measure.map_map measurable_fst hm,Measure.map_map measurable_snd hm, + Function.comp_def] using hs + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/EntropicDirectionalBound.lean b/lean/OAI/Geometry/RCD/Transport/EntropicDirectionalBound.lean new file mode 100644 index 0000000000000000000000000000000000000000..bc784630de19ca30183fdc4cba7f635210656bca --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/EntropicDirectionalBound.lean @@ -0,0 +1,63 @@ +import OAI.Geometry.RCD.Heat.EntropyPowerFirstVariation + +namespace OAI + +/-! # The exact finite-dimensional directional bound from the entropy chord + +These are the scalar first-variation calculations in EKS, Lemma 3.20. +The separate flat formula avoids division by a vanishing hyperbolic sine. +-/ + +open Set Filter +open scoped Topology +noncomputable section +namespace RegularPointCoordinates + +theorem hasDerivAt_hyperbolicChord_zero (q A B : ℝ) : + HasDerivAt (hyperbolicChord q A B) + (q*(B-Real.cosh q*A)/Real.sinh q) 0 := by + have h0 : HasDerivAt (fun t : ℝ => q*(1-t)) (-q) 0 := by + simpa using ((hasDerivAt_id (0:ℝ)).const_sub 1).const_mul q + have h1 : HasDerivAt (fun t : ℝ => q*t) q 0 := by + simpa using (hasDerivAt_id (0:ℝ)).const_mul q + convert ((h0.sinh.mul_const A).add (h1.sinh.mul_const B)).div_const (Real.sinh q) using 1 + · rfl + · simp only [sub_zero,mul_one,mul_zero,Real.cosh_zero,one_mul,mul_one] + ring + +theorem entropic_hyperbolic_directional_bound {E v : ℝ → ℝ} {N q A B d M : ℝ} + (hN : 0 < N) (hq : 0 < q) (hA : 0 < A) + (hE0 : E 0 = -N*Real.log A) + (hp : ∀ᶠ t in 𝓝[>] (0:ℝ), hyperbolicChord q A B t ≤ Real.exp (-E t/N)) + (hv : ∀ᶠ t in 𝓝[>] (0:ℝ), v t ≤ (E t-E 0)/t+t*M) + (hd : Tendsto v (𝓝[>] (0:ℝ)) (𝓝 d)) : + d ≤ N*q/Real.sinh q*(Real.cosh q-B/A) := by + have hzero : hyperbolicChord q A B 0=A := hyperbolicChord_zero hq A B + have hh := entropy_power_first_variation hN (by rwa [hzero]) + (hasDerivAt_hyperbolicChord_zero q A B) (by rwa [hzero]) hp hv hd + rw [hzero] at hh + convert hh using 1 + field_simp [hA.ne',(Real.sinh_pos_iff.mpr hq).ne'] + ring + +theorem entropic_flat_directional_bound {E v : ℝ → ℝ} {N A B d M : ℝ} + (hN : 0 < N) (hA : 0 < A) (hE0 : E 0 = -N*Real.log A) + (hp : ∀ᶠ t in 𝓝[>] (0:ℝ), (1-t)*A+t*B ≤ Real.exp (-E t/N)) + (hv : ∀ᶠ t in 𝓝[>] (0:ℝ), v t ≤ (E t-E 0)/t+t*M) + (hd : Tendsto v (𝓝[>] (0:ℝ)) (𝓝 d)) : d ≤ N*(1-B/A) := by + have hV : HasDerivAt (fun t : ℝ => (1-t)*A+t*B) (B-A) 0 := by + convert (((hasDerivAt_id (0:ℝ)).const_sub 1).mul_const A).add + ((hasDerivAt_id (0:ℝ)).mul_const B) using 1 + · ext t + simp only [Pi.add_apply,id_eq] + · ring + have hh := entropy_power_first_variation hN (by simpa using hA) hV (by simpa using hE0) hp hv hd + convert hh using 1 + field_simp [hA.ne'] + ring + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/EntropyChordAlgebra.lean b/lean/OAI/Geometry/RCD/Transport/EntropyChordAlgebra.lean new file mode 100644 index 0000000000000000000000000000000000000000..4d3e966787056c659d3a4e89126684da9f9198b5 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/EntropyChordAlgebra.lean @@ -0,0 +1,61 @@ +import OAI.Analysis.RCDHeat.CompressionIntegral +import OAI.Geometry.RCD.Transport.BranchEntropyDeficit + +namespace OAI + +/-! # Three actual entropy chords force a quantitative branch deficit -/ + +namespace RegularPointCoordinates + +def EntropyChord (E : Time → ℝ) (A : ℝ) : Prop := + ∀ s t r : Time, E (timeSegment s t r) ≤ + (1-(r:ℝ))*E s+(r:ℝ)*E t+A*(r:ℝ)*(1-(r:ℝ))*|(s:ℝ)-(t:ℝ)|^2 + +theorem entropy_chord_cleared {E : Time → ℝ} {A : ℝ} (h : EntropyChord E A) + (s u t : Time) (hsu : s ≤ u) (hut : u ≤ t) (hst : s < t) : + ((t:ℝ)-(s:ℝ))*E u ≤ ((t:ℝ)-(u:ℝ))*E s+((u:ℝ)-(s:ℝ))*E t+ + A*((u:ℝ)-(s:ℝ))*((t:ℝ)-(u:ℝ))*((t:ℝ)-(s:ℝ)) := by + have hd : 0 < (t:ℝ)-(s:ℝ) := sub_pos.mpr hst + let r : Time := ⟨((u:ℝ)-(s:ℝ))/((t:ℝ)-(s:ℝ)), + div_nonneg (sub_nonneg.mpr hsu) hd.le,(div_le_one hd).mpr (sub_le_sub_right (show (u:ℝ) ≤ (t:ℝ) from hut) _)⟩ + have he : timeSegment s t r=u := by + apply Subtype.ext + change (1-(((u:ℝ)-(s:ℝ))/((t:ℝ)-(s:ℝ))))*(s:ℝ)+ + (((u:ℝ)-(s:ℝ))/((t:ℝ)-(s:ℝ)))*(t:ℝ)=(u:ℝ) + field_simp + ring + have hh := mul_le_mul_of_nonneg_left (h s t r) hd.le + rw [he] at hh + convert hh using 1 + dsimp only [r] + rw [sq_abs] + field_simp + ring + +theorem entropy_chord_branch_deficit {E₀ E₁ Em : Time → ℝ} {A M B L : ℝ} + (h₀ : EntropyChord E₀ A) (h₁ : EntropyChord E₁ A) (hm : EntropyChord Em A) + (s t : Time) (hs : 0 < s) (hst : s < t) (ht : t < 1) + (hc₀ : E₀ s=Em s) (hc₁ : E₁ s=Em s) + (hsep : Em t=(E₀ t+E₁ t)/2-L) + (hM₀ : E₀ 1 ≤ M) (hM₁ : E₁ 1 ≤ M) (hMm : Em 0 ≤ M) (hB : B ≤ Em s) : + (s:ℝ)*(1-(s:ℝ))*L ≤ + ((t:ℝ)-(s:ℝ))*(M-B+A*(s:ℝ)*(1-(s:ℝ))) := by + have ha := entropy_chord_cleared hm 0 s t s.property.1 hst.le (lt_trans hs hst) + have hb := entropy_chord_cleared h₀ s t 1 hst.le t.property.2 (lt_trans hst ht) + have hc := entropy_chord_cleared h₁ s t 1 hst.le t.property.2 (lt_trans hst ht) + simp only [show ((0:Time):ℝ)=0 from rfl,show ((1:Time):ℝ)=1 from rfl, + sub_zero] at ha hb hc + rw [hc₀] at hb + rw [hc₁] at hc + apply branch_entropy_deficit_of_lower_bound s.property.1 s.property.2 + (sub_nonneg.mpr hst.le) hB hsep + · have hz := mul_le_mul_of_nonneg_left hMm (sub_nonneg.mpr hst.le) + nlinarith only [ha,hz] + · have hz := mul_le_mul_of_nonneg_left hM₀ (sub_nonneg.mpr hst.le) + nlinarith only [hb,hz] + · have hz := mul_le_mul_of_nonneg_left hM₁ (sub_nonneg.mpr hst.le) + nlinarith only [hc,hz] + +end RegularPointCoordinates + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/EntropyGapUpper.lean b/lean/OAI/Geometry/RCD/Transport/EntropyGapUpper.lean new file mode 100644 index 0000000000000000000000000000000000000000..8614d1ba9de3d6325faa3e70c2889cc898c97a5c --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/EntropyGapUpper.lean @@ -0,0 +1,60 @@ +import OAI.Geometry.RCD.Transport.ShiftedEntropyBounds + +namespace OAI + +/-! # Affine entropy cancellation under mass and linear-pairing conservation -/ + +open Set Filter MeasureTheory +open scoped NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MeasurableSpace X] (μ : Measure X) + +theorem entropy_gap_upper (f u w v : Lp ℝ 2 μ) {ε : ℝ} (hε : 0<ε) (A : ℝ≥0) + (hf : ∀ᵐ x ∂μ, f x∈Icc 0 (A:ℝ)) (hu : ∀ᵐ x ∂μ, u x∈Icc 0 (A:ℝ)) + (hv0 : 0≤v) (hwi : Integrable w μ) (hvi : Integrable v μ) + (hmass : (∫ x, v x ∂μ) = ∫ x, w x ∂μ) + (hpair : inner ℝ v f = inner ℝ w u) : + (∫ x, v x*shiftedEntropy ε (f x) ∂μ)-(∫ x, w x*shiftedEntropy ε (u x) ∂μ) ≤ + ∫ x, w x*(ε+u x)*(Real.log (ε+A)-Real.log (ε+u x)) ∂μ := by + let L := Real.log (ε+A)-Real.log ε + have hiu := shiftedEntropy_weighted_integrable μ hε A u w hu + have hif := shiftedEntropy_weighted_integrable μ hε A f v hf + have hwu := (Lp.memLp w).integrable_mul (Lp.memLp u) + have hvf := (Lp.memLp v).integrable_mul (Lp.memLp f) + change Integrable (fun x => w x*u x) μ at hwu + change Integrable (fun x => v x*f x) μ at hvf + have hupper : (∫ x, v x*shiftedEntropy ε (f x) ∂μ) ≤ + ε*L*(∫ x, v x ∂μ)+(L-1)*(∫ x, v x*f x ∂μ) := by + have hm := integral_mono_ae hif ((hvi.const_mul (ε*L)).add (hvf.const_mul (L-1))) (by + filter_upwards [hf,(Lp.coeFn_nonneg _).mpr hv0] with x hx hy + have hh := mul_le_mul_of_nonneg_left (shiftedEntropy_le_affine hε hx) hy + dsimp only [L] at * + simp only [Pi.add_apply] + nlinarith only [hh]) + have he := integral_add (hvi.const_mul (ε*L)) (hvf.const_mul (L-1)) + simp only [Pi.add_apply] at he hm + simpa only [he,integral_const_mul] using hm + have hp : (∫ x, v x*f x ∂μ) = ∫ x, w x*u x ∂μ := by + simpa only [L2.inner_def,Real.inner_apply] using hpair + have hr : (∫ x, w x*(ε+u x)*(Real.log (ε+A)-Real.log (ε+u x)) ∂μ) = + ε*L*(∫ x, w x ∂μ)+(L-1)*(∫ x, w x*u x ∂μ)- + (∫ x, w x*shiftedEntropy ε (u x) ∂μ) := by + calc + _ = ∫ x, ε*L*w x+(L-1)*(w x*u x)-w x*shiftedEntropy ε (u x) ∂μ := by + apply integral_congr_ae + exact .of_forall fun x => by dsimp only [L,shiftedEntropy]; ring + _ = _ := by + have es := integral_sub ((hwi.const_mul (ε*L)).add (hwu.const_mul (L-1))) hiu + have ea := integral_add (hwi.const_mul (ε*L)) (hwu.const_mul (L-1)) + simp only [Pi.add_apply] at es ea + rw [es,ea,integral_const_mul,integral_const_mul] + rw [hmass,hp] at hupper + rw [hr] + linarith only [hupper] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/ExactAffineGeodesic.lean b/lean/OAI/Geometry/RCD/Transport/ExactAffineGeodesic.lean new file mode 100644 index 0000000000000000000000000000000000000000..ac637d7c7acab738a359c835543126a0bed58e84 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/ExactAffineGeodesic.lean @@ -0,0 +1,72 @@ +import OAI.Geometry.RCD.Transport.NearbyAffineGeodesic + +namespace OAI + +/-! # Affine harmonic-coordinate geodesics between prescribed nearby points -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped Topology NNReal ENNReal +noncomputable section +namespace RegularPointCoordinates.NoncollapsedRCD +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + {n : ℕ} (hX : NoncollapsedRCD 0 n X) (hn : 2 ≤ n) (p : X) [SeparableSpace X] + [IsLocallyFiniteMeasure (hausdorff n X)] [(hausdorff n X).Regular] + +include hn in +theorem exists_exact_affine_geodesic {R : ℝ} (hR : 1 ≤ R) + (u : Fin n → SobolevSpace (hausdorff n X) hX.quadratic) (v : X → Euclidean n) + {b : ℝ} (hb : 50*R < b) + (hu : ∀ i, SobolevSpace.toLp (hausdorff n X) hX.quadratic (u i) + =ᵐ[(hausdorff n X).restrict (ball p b)] fun x => v x i) + (hH : ∀ i, IsSobolevHarmonicOn (hausdorff n X) hX.quadratic (ball p b) (u i)) + (L : Fin n → ℝ≥0) (hL : ∀ i, ∀ᵐ x ∂(hausdorff n X).restrict (ball p b), + localGamma (hausdorff n X) hX.quadratic (u i) (u i) x ≤ (L i:ℝ)^2) + (c : Fin n → ℝ) (hc : ∀ i, localGamma (hausdorff n X) hX.quadratic (u i) (u i) + =ᵐ[(hausdorff n X).restrict (ball p b)] fun _ => c i) + (hv : ContinuousOn v (ball p b)) + {x y : X} (hx : dist x p ≤ R/2) (hy : dist y p ≤ R/2) : + ∃ γ : C(Time,X), IsGeodesic γ ∧ γ 0=x ∧ γ 1=y ∧ + (∀ t : Time, dist (γ t) p ≤ 3*R) ∧ + ∀ t : Time, v (γ t)=(1-(t:ℝ)) • v x+(t:ℝ) • v y := by + have hR0 : 0 (R/2)*heatStep k + have hρ (k : ℕ) : 0<ρ k := mul_pos (by positivity) (heatStep_pos k) + have hρR (k : ℕ) : ρ k≤R/2 := by + apply mul_le_of_le_one_right (by positivity) + exact pow_le_one₀ (by norm_num) (by norm_num) + have hρlim : Tendsto ρ atTop (𝓝 0) := by + simpa only [mul_zero] using heatStep_tendsto.const_mul (R/2) + choose γ hgeo h₀ h₁ hstay haff using fun k => + hX.exists_nearby_affine_geodesic hn p hR u v hb hu hH L hL c hc hv + (hρ k) (hρR k) hx hy + obtain ⟨η,hη,j,hj,hlim⟩ := (isCompact_bounded_geodesics p (by positivity : 0≤3*R)).tendsto_subseq + (fun k => show IsGeodesic (γ k) ∧ ∀ t, dist (γ k t) p≤3*R from ⟨hgeo k,hstay k⟩) + have heval (t : Time) : Tendsto (fun k => γ (j k) t) atTop (𝓝 (η t)) := + ((continuous_eval_const t).tendsto η).comp hlim + have hzero : η 0=x := by + have hz : Tendsto (fun k => dist (γ (j k) 0) x) atTop (𝓝 0) := + squeeze_zero (fun _ => dist_nonneg) (fun k => (h₀ (j k)).le) + (hρlim.comp hj.tendsto_atTop) + exact dist_eq_zero.mp (tendsto_nhds_unique ((heval 0).dist tendsto_const_nhds) hz) + have hone : η 1=y := by + have hz : Tendsto (fun k => dist (γ (j k) 1) y) atTop (𝓝 0) := + squeeze_zero (fun _ => dist_nonneg) (fun k => (h₁ (j k)).le) + (hρlim.comp hj.tendsto_atTop) + exact dist_eq_zero.mp (tendsto_nhds_unique ((heval 1).dist tendsto_const_nhds) hz) + have hvlim (t : Time) : Tendsto (fun k => v (γ (j k) t)) atTop (𝓝 (v (η t))) := by + have hm : η t∈ball p b := by + rw [mem_ball] + exact (hη.2 t).trans_lt (by linarith) + exact (hv.continuousAt (isOpen_ball.mem_nhds hm)).tendsto.comp (heval t) + refine ⟨η,hη.1,hzero,hone,hη.2,?_⟩ + intro t + have hh := ((hvlim 0).const_smul (1-(t:ℝ))).add ((hvlim 1).const_smul (t:ℝ)) + rw [hzero,hone] at hh + apply tendsto_nhds_unique (hvlim t) + exact hh.congr' (Filter.Eventually.of_forall fun k => (haff (j k) t).symm) + +end RegularPointCoordinates.NoncollapsedRCD + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/ExponentialEntropyComparison.lean b/lean/OAI/Geometry/RCD/Transport/ExponentialEntropyComparison.lean new file mode 100644 index 0000000000000000000000000000000000000000..2ecd8e38c0e692150790ab9dd49331d61f8ba8ec --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/ExponentialEntropyComparison.lean @@ -0,0 +1,74 @@ +import OAI.Geometry.RCD.Heat.HeatRelativeTangent +import OAI.Geometry.RCD.Transport.RelativeEntropyIntegral + +namespace OAI + +/-! # Entropy integrability under a two-sided relative exponential bound -/ + +open Set Filter MeasureTheory +open scoped NNReal Topology +noncomputable section +namespace RegularPointCoordinates + +theorem entropy_density_exponential_bound {a r z : ℝ} (hr : 0≤r) + (hl : Real.exp (-a)*r≤z) (hu : z≤Real.exp a*r) : + |z*Real.log z|≤Real.exp a*(|r*Real.log r|+a*r) := by + rcases eq_or_lt_of_le hr with hz | hr + · have hz0 : z=0 := by rw [←hz,mul_zero] at hl hu; linarith + simp only [←hz,hz0,zero_mul,mul_zero,abs_zero,add_zero] + exact le_rfl + · have hz : 0 r x*Real.log (r x)) μ) : + Integrable (fun x => z x*Real.log (z x)) μ := by + apply ((he.abs.add (hi.const_mul a)).const_mul (Real.exp a)).mono' + (hz.mul hz.log).aestronglyMeasurable + filter_upwards [hr,hl,hu] with x hr hl hu + simpa only [Pi.add_apply,Pi.mul_apply,Real.norm_eq_abs] using + entropy_density_exponential_bound hr hl hu + +variable [MetricSpace X] [BorelSpace X] [ProperSpace X] [μ.Regular] + (hQ : QuadraticCheegerEnergy μ) + +theorem heat_exponential_entropy_integrable (r : Lp ℝ 2 μ) (hr : 0≤r) + {g : X → ℝ} (hg : Measurable g) {M : ℝ≥0} (hgb : ∀ x, |g x|≤M) + (s t : ℝ) (hi : Integrable (heatAt μ hQ s r) μ) + (he : Integrable (fun x => heatAt μ hQ s r x*Real.log (heatAt μ hQ s r x)) μ) : + Integrable (fun x => heatAt μ hQ s (exponentialTiltLp μ r hg hgb t) x* + Real.log (heatAt μ hQ s (exponentialTiltLp μ r hg hgb t) x)) μ := by + obtain ⟨hl,hu⟩ := heat_exponentialTilt_relative_order μ hQ r hr hg hgb s t + apply entropy_integrable_of_exponential_bound μ (a := |t| * (M:ℝ)) + (Lp.stronglyMeasurable _).measurable ((Lp.coeFn_nonneg _).mpr (heatAt_nonneg μ hQ s r hr)) + ?_ ?_ hi he + · filter_upwards [(Lp.coeFn_le _ _).mpr hl, + Lp.coeFn_smul (Real.exp (-|t| * (M:ℝ))) (heatAt μ hQ s r)] with x hx hsm + rw [hsm,Pi.smul_apply] at hx + simpa only [neg_mul,smul_eq_mul] using hx + · filter_upwards [(Lp.coeFn_le _ _).mpr hu, + Lp.coeFn_smul (Real.exp (|t| * (M:ℝ))) (heatAt μ hQ s r)] with x hx hsm + simpa only [hsm,Pi.smul_apply,smul_eq_mul] using hx + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/ExponentialTiltLpVariation.lean b/lean/OAI/Geometry/RCD/Transport/ExponentialTiltLpVariation.lean new file mode 100644 index 0000000000000000000000000000000000000000..f377f1a3b0161d16607e6c654c18a0d858c0e46f --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/ExponentialTiltLpVariation.lean @@ -0,0 +1,96 @@ +import OAI.Geometry.RCD.Transport.ExponentialTiltVariation + +namespace OAI + +/-! # Strong L² differentiation of bounded exponential perturbations -/ + +open Set Filter MeasureTheory +open scoped ENNReal NNReal Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MeasurableSpace X] (μ : Measure X) + + def exponentialTiltLp (r : Lp ℝ 2 μ) {g : X → ℝ} (hg : Measurable g) + {M : ℝ≥0} (hgb : ∀ x, |g x| ≤ M) (t : ℝ) : Lp ℝ 2 μ := + lpMultiplier μ (boundedMultiplier μ (fun x => Real.exp (t*g x)) + (Real.measurable_exp.comp (measurable_const.mul hg)) + ⟨Real.exp (|t| *M),(Real.exp_pos _).le⟩ (fun x => by + rw [abs_of_pos (Real.exp_pos _)] + apply Real.exp_le_exp.mpr + exact (le_abs_self _).trans (by rw [abs_mul]; gcongr; exact hgb x))) r + + theorem exponentialTiltLp_coe (r : Lp ℝ 2 μ) {g : X → ℝ} (hg : Measurable g) + {M : ℝ≥0} (hgb : ∀ x, |g x| ≤ M) (t : ℝ) : + exponentialTiltLp μ r hg hgb t =ᵐ[μ] fun x => Real.exp (t*g x)*r x := by + unfold exponentialTiltLp + have he := boundedMultiplier_coe μ (fun x => Real.exp (t*g x)) + (Real.measurable_exp.comp (measurable_const.mul hg)) + ⟨Real.exp (|t| *M),(Real.exp_pos _).le⟩ (fun x => by + rw [abs_of_pos (Real.exp_pos _)] + apply Real.exp_le_exp.mpr + exact (le_abs_self _).trans (by rw [abs_mul]; gcongr; exact hgb x)) + filter_upwards [lpMultiplier_coe μ _ r,he] with x hx he + rw [hx,he] + + theorem exponentialTiltLp_zero (r : Lp ℝ 2 μ) {g : X → ℝ} (hg : Measurable g) + {M : ℝ≥0} (hgb : ∀ x, |g x| ≤ M) : exponentialTiltLp μ r hg hgb 0=r := by + apply Lp.ext + simpa only [zero_mul,Real.exp_zero,one_mul] using exponentialTiltLp_coe μ r hg hgb 0 + + theorem exponentialTiltLp_hasDerivAt_zero (r : Lp ℝ 2 μ) {g : X → ℝ} + (hg : Measurable g) {M : ℝ≥0} (hgb : ∀ x, |g x| ≤ M) : + HasDerivAt (exponentialTiltLp μ r hg hgb) + (lpMultiplier μ (boundedMultiplier μ g hg M hgb) r) 0 := by + let v := lpMultiplier μ (boundedMultiplier μ g hg M hgb) r + have hv : v =ᵐ[μ] fun x => g x*r x := by + filter_upwards [lpMultiplier_coe μ (boundedMultiplier μ g hg M hgb) r, + boundedMultiplier_coe μ g hg M hgb] with x hx hy + exact hx.trans (by rw [hy]) + have hb (t : ℝ) (ht : |t| *M ≤ 1) : + ‖exponentialTiltLp μ r hg hgb t-r-t • v‖ ≤ (t^2*(M:ℝ)^2)*‖r‖ := by + apply Lp.norm_le_mul_norm_of_ae_le_mul + filter_upwards [exponentialTiltLp_coe μ r hg hgb t,hv, + Lp.coeFn_sub (exponentialTiltLp μ r hg hgb t-r) (t • v), + Lp.coeFn_sub (exponentialTiltLp μ r hg hgb t) r,Lp.coeFn_smul t v] with x he hx hs hs' hsm + rw [hs,Pi.sub_apply,hs',Pi.sub_apply,hsm,Pi.smul_apply,he,hx] + change ‖Real.exp (t*g x)*r x-r x-t*(g x*r x)‖ ≤ _ + rw [show Real.exp (t*g x)*r x-r x-t*(g x*r x)= + (Real.exp (t*g x)-1-t*g x)*r x by ring,norm_mul] + have htg : ‖t*g x‖ ≤ |t| *M := by + rw [norm_mul,Real.norm_eq_abs t,Real.norm_eq_abs (g x)] + exact mul_le_mul_of_nonneg_left (hgb x) (abs_nonneg t) + have hsq : ‖t*g x‖^2 ≤ t^2*(M:ℝ)^2 := by + calc + _ ≤ (|t| *M)^2 := pow_le_pow_left₀ (norm_nonneg _) htg 2 + _ = _ := by rw [mul_pow,sq_abs] + exact mul_le_mul_of_nonneg_right + ((Real.norm_exp_sub_one_sub_id_le (htg.trans ht)).trans hsq) (norm_nonneg _) + rw [hasDerivAt_iff_tendsto] + have he : ∀ᶠ t : ℝ in 𝓝 0, |t| *M ≤ 1 := by + have hc : Continuous (fun t : ℝ => |t| *(M:ℝ)) := continuous_abs.mul continuous_const + filter_upwards [hc.continuousAt.eventually (gt_mem_nhds (by simp : (fun t : ℝ => |t| *(M:ℝ)) 0<1))] with t ht + exact ht.le + have hupper : ∀ᶠ t : ℝ in 𝓝 0, + ‖t-0‖⁻¹*‖exponentialTiltLp μ r hg hgb t-exponentialTiltLp μ r hg hgb 0-(t-0) • v‖ ≤ + |t| *(M:ℝ)^2*‖r‖ := by + filter_upwards [he] with t ht + rw [sub_zero,exponentialTiltLp_zero] + by_cases hz : t=0 + · simp only [hz,norm_zero,inv_zero,zero_mul,abs_zero] + exact le_rfl + · calc + _ ≤ ‖t‖⁻¹*((t^2*(M:ℝ)^2)*‖r‖) := + mul_le_mul_of_nonneg_left (hb t ht) (inv_nonneg.mpr (norm_nonneg _)) + _ = _ := by + rw [Real.norm_eq_abs,←sq_abs t] + field_simp [abs_ne_zero.mpr hz] + apply squeeze_zero' (.of_forall fun _ => mul_nonneg + (inv_nonneg.mpr (norm_nonneg _)) (norm_nonneg _)) hupper + simpa only [abs_zero,zero_mul] using + ((continuous_abs.tendsto 0).mul_const ((M:ℝ)^2)).mul_const ‖r‖ + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/ExponentialTiltVariation.lean b/lean/OAI/Geometry/RCD/Transport/ExponentialTiltVariation.lean new file mode 100644 index 0000000000000000000000000000000000000000..cace3e38dae7e6865c4a149c648758d034788d4c --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/ExponentialTiltVariation.lean @@ -0,0 +1,68 @@ +import OAI.Geometry.RCD.Coordinates.NormalizedExponentialTilt +import Mathlib.Analysis.Calculus.ParametricIntegral + +namespace OAI + +/-! # Exact first variations of compact exponential density perturbations -/ + +open Set Filter MeasureTheory +open scoped ENNReal NNReal Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MeasurableSpace X] (μ : Measure X) + + theorem exponential_tilt_integral_hasDerivAt_zero {r g : X → ℝ} + (hr : Integrable r μ) (hg : Measurable g) {M : ℝ≥0} (hgb : ∀ x, |g x| ≤ M) : + HasDerivAt (fun t : ℝ => ∫ x, Real.exp (t*g x)*r x ∂μ) + (∫ x, g x*r x ∂μ) 0 := by + let F := fun (t : ℝ) x => Real.exp (t*g x)*r x + let F' := fun (t : ℝ) x => Real.exp (t*g x)*g x*r x + have hF (t : ℝ) : AEStronglyMeasurable (F t) μ := + ((Real.measurable_exp.comp (measurable_const.mul hg)).aestronglyMeasurable).mul hr.aestronglyMeasurable + have hD : AEStronglyMeasurable (F' 0) μ := by + convert hg.aestronglyMeasurable.mul hr.aestronglyMeasurable using 1 + ext x + simp only [F',zero_mul,Real.exp_zero,one_mul,Pi.mul_apply] + have hbound : ∀ᵐ x ∂μ, ∀ t ∈ Ioo (-1:ℝ) 1, + ‖F' t x‖ ≤ (Real.exp M*M)*‖r x‖ := .of_forall fun x t ht => by + have ht1 : |t| ≤ 1 := abs_le.mpr ⟨ht.1.le,ht.2.le⟩ + have htg : t*g x ≤ (M:ℝ) := by + calc + _ ≤ |t*g x| := le_abs_self _ + _ = |t| *|g x| := abs_mul _ _ + _ ≤ 1*M := mul_le_mul ht1 (hgb x) (abs_nonneg _) zero_le_one + _ = _ := one_mul _ + dsimp only [F'] + rw [norm_mul,norm_mul,Real.norm_eq_abs (Real.exp _),abs_of_pos (Real.exp_pos _),Real.norm_eq_abs (g x)] + exact mul_le_mul_of_nonneg_right + (mul_le_mul (Real.exp_le_exp.mpr htg) (hgb x) (abs_nonneg _) (Real.exp_pos _).le) (norm_nonneg _) + have hderiv : ∀ᵐ x ∂μ, ∀ t ∈ Ioo (-1:ℝ) 1, HasDerivAt (fun s => F s x) (F' t x) t := + .of_forall fun x t _ => by + simpa only [F,F',id_eq,one_mul] using + (((hasDerivAt_id t).mul_const (g x)).exp).mul_const (r x) + have h := (hasDerivAt_integral_of_dominated_loc_of_deriv_le + (Ioo_mem_nhds (by norm_num : (-1:ℝ) < 0) zero_lt_one) (.of_forall hF) + (show Integrable (F 0) μ by simpa only [F,zero_mul,Real.exp_zero,one_mul] using hr) + hD hbound (hr.norm.const_mul (Real.exp M*M)) hderiv).2 + simpa only [F,F',zero_mul,Real.exp_zero,one_mul] using h + + theorem normalized_tilt_hasDerivAt_zero {r g : X → ℝ} + (hr : Integrable r μ) (hm : (∫ x, r x ∂μ)=1) (hg : Measurable g) + {M : ℝ≥0} (hgb : ∀ x, |g x| ≤ M) (x : X) : + HasDerivAt (fun t : ℝ => (∫ y, Real.exp (t*g y)*r y ∂μ)⁻¹*(Real.exp (t*g x)*r x)) + (r x*(g x-(∫ y, g y*r y ∂μ))) 0 := by + have h0 : (∫ y, Real.exp ((0:ℝ)*g y)*r y ∂μ)=1 := by + simpa only [zero_mul,Real.exp_zero,one_mul] using hm + have hD := (exponential_tilt_integral_hasDerivAt_zero μ hr hg hgb).inv (by rw [h0]; norm_num) + have hE : HasDerivAt (fun t : ℝ => Real.exp (t*g x)*r x) (g x*r x) 0 := by + simpa only [id_eq,zero_mul,Real.exp_zero,one_mul] using + (((hasDerivAt_id (0:ℝ)).mul_const (g x)).exp).mul_const (r x) + convert hD.mul hE using 1 + simp only [Pi.inv_apply,zero_mul,Real.exp_zero,one_mul,hm,one_pow,div_one,inv_one] + ring + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/FiniteComponentChord.lean b/lean/OAI/Geometry/RCD/Transport/FiniteComponentChord.lean new file mode 100644 index 0000000000000000000000000000000000000000..32aff839229333bee84f8acba944ebd136c9afdc --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/FiniteComponentChord.lean @@ -0,0 +1,60 @@ +import OAI.Geometry.RCD.Transport.ComponentScalarChord +import OAI.Geometry.RCD.Transport.LengthComponentIntegral + +namespace OAI + +/-! # Interpolation summed over a finite partition of lengths -/ + +open Set Filter MeasureTheory Metric TopologicalSpace Function +open scoped ENNReal Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem NoncollapsedRCD.finite_component_scalar_chord + (K : ℝ) (n : ℕ) (hn : 2≤n) (hX : NoncollapsedRCD K n X) (hK : K≤0) + {N : ℝ} (hN : (n:ℝ)≤N) (a : RenyiTransportNode n X) + (π : Measure C(Time,X)) [IsProbabilityMeasure π] + (hg : ∀ᵐ γ ∂π, IsGeodesic γ) + (hp : IsOptimalCoupling a.left a.right (π.map (fun γ => (γ 0,γ 1)))) + {C : ℝ≥0∞} (hC : C≠∞) (hc : ∀ t : Time, π.map (fun γ => γ t)≤C • hausdorff n X) + {m : ℕ} (hm : RenyiDyadicMaximal (hausdorff n X) (1-1/N) (fun t => π.map (fun γ => γ t)) m) + {ι : Type*} (S : ι → Set ℝ) (s : Finset ι) (hS : ∀ i, MeasurableSet (S i)) + (hd : (s : Set ι).Pairwise (Disjoint on S)) + (hcover : ∀ᵐ γ ∂π, ∃ i∈s, dist (γ 0) (γ 1)∈S i) + (D : ι → ℝ) (hD0 : ∀ i∈s, 0≤D i) (hD : ∀ i∈s, ∀ d∈S i, d≤D i) + {t : Time} (ht : t∈dyadicGrid m) (ht0 : 0<(t:ℝ)) (ht1 : (t:ℝ)<1) : + (∑ i∈s, reducedChord K (N+1) (D i) + (renyiIntegral (hausdorff n X) ((π.restrict {γ | dist (γ 0) (γ 1)∈S i}).map (fun γ => γ 0)) N) + (renyiIntegral (hausdorff n X) ((π.restrict {γ | dist (γ 0) (γ 1)∈S i}).map (fun γ => γ 1)) N) t) ≤ + renyiIntegral (hausdorff n X) (π.map (fun γ => γ t)) N := by + let : SeparableSpace X := hX.separable + let μ := hausdorff n X + let : IsLocallyFiniteMeasure μ := locallyFinite_of_finiteOnBounded μ hX.finiteOnBounded + let κ := fun i => π.restrict {γ | dist (γ 0) (γ 1)∈S i} + have hN1 : 1 (0 : Measure X)) ∅ (by simp) hN1 + simpa only [Finset.sum_empty] using hh + have hb (i) (hi : i∈s) : reducedChord K (N+1) (D i) + (renyiIntegral μ ((κ i).map (fun γ => γ 0)) N) + (renyiIntegral μ ((κ i).map (fun γ => γ 1)) N) t≤ + renyiIntegral μ ((κ i).map (fun γ => γ t)) N := by + by_cases hi0 : κ i univ=0 + · have he : κ i=0 := Measure.measure_univ_eq_zero.mp hi0 + simp only [he,Measure.map_zero,hz,reducedChord,mul_zero,add_zero,le_refl] + · exact hX.component_scalar_chord K n hn hK hN a π hg hp hC hc hm (hS i) + (κ i) rfl hi0 (hD0 i hi) + ((ae_restrict_mem ((hS i).preimage ((measurable_path_eval 0).dist (measurable_path_eval 1)))).mono + (fun γ hγ => hD i hi _ hγ)) t ht + exact (Finset.sum_le_sum hb).trans_eq + (hX.length_partition_renyiIntegral K n hn a π hg hp S s hS hd hcover hN1 ht0 ht1) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/FiniteContinuousChord.lean b/lean/OAI/Geometry/RCD/Transport/FiniteContinuousChord.lean new file mode 100644 index 0000000000000000000000000000000000000000..b65b84f4665ceb1ededb0ffeb0b6c78269cccf1b --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/FiniteContinuousChord.lean @@ -0,0 +1,82 @@ +import OAI.Geometry.RCD.Transport.FiniteComponentChord +import OAI.Geometry.RCD.Transport.RenyiPathSemicontinuity + +namespace OAI + +/-! # Finite length-partition bounds at all times + +The weighted scalar sum is continuous. Upper semicontinuity of the actual +Rényi entropy extends its dyadic lower bound to the whole interval. +-/ + +open Set Filter MeasureTheory Metric TopologicalSpace Function +open scoped ENNReal Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem NoncollapsedRCD.finite_component_chord_all_times + (K : ℝ) (n : ℕ) (hn : 2≤n) (hX : NoncollapsedRCD K n X) (hK : K≤0) + {N : ℝ} (hN : (n:ℝ)≤N) (a : RenyiTransportNode n X) + (π : Measure C(Time,X)) [IsProbabilityMeasure π] + (hg : ∀ᵐ γ ∂π, IsGeodesic γ) + (hp : IsOptimalCoupling a.left a.right (π.map (fun γ => (γ 0,γ 1)))) + {C : ℝ≥0∞} (hC : C≠∞) (hc : ∀ t : Time, π.map (fun γ => γ t)≤C • hausdorff n X) + (hm : ∀ m, RenyiDyadicMaximal (hausdorff n X) (1-1/N) (fun t => π.map (fun γ => γ t)) m) + {ι : Type*} (S : ι → Set ℝ) (s : Finset ι) (hS : ∀ i, MeasurableSet (S i)) + (hd : (s : Set ι).Pairwise (Disjoint on S)) + (hcover : ∀ᵐ γ ∂π, ∃ i∈s, dist (γ 0) (γ 1)∈S i) + (D : ι → ℝ) (hD0 : ∀ i∈s, 0≤D i) (hD : ∀ i∈s, ∀ d∈S i, d≤D i) : + ∀ t : Time, (∑ i∈s, reducedChord K (N+1) (D i) + (renyiIntegral (hausdorff n X) ((π.restrict {γ | dist (γ 0) (γ 1)∈S i}).map (fun γ => γ 0)) N) + (renyiIntegral (hausdorff n X) ((π.restrict {γ | dist (γ 0) (γ 1)∈S i}).map (fun γ => γ 1)) N) t) ≤ + renyiIntegral (hausdorff n X) (π.map (fun γ => γ t)) N := by + let : SeparableSpace X := hX.separable + let : ProperSpace X := hX.proper K n hn + let := a.left_probability + let := a.right_probability + let μ := hausdorff n X + let : IsLocallyFiniteMeasure μ := locallyFinite_of_finiteOnBounded μ hX.finiteOnBounded + let B := closedBall a.center (3*a.radius) + let : IsFiniteMeasure (μ.restrict B) := ⟨by + simpa [μ,B] using hX.finiteOnBounded B isBounded_closedBall⟩ + have hN1 : 1 γ t), x∈B := by + apply (ae_map_iff (measurable_path_eval t).aemeasurable measurableSet_closedBall).mpr + exact (optimal_geodesic_plan_bounded a.left a.right π hg hp a.center a.radius_nonneg + a.left_support a.right_support).mono (fun γ hγ => hγ.2 t) + let κ := fun i => π.restrict {γ | dist (γ 0) (γ 1)∈S i} + have hsκ (i) (t : Time) : ∀ᵐ x ∂(κ i).map (fun γ => γ t), x∈B := + (hs t).filter_mono (Measure.map_mono Measure.restrict_le_self (measurable_path_eval t)).absolutelyContinuous.ae_le + have hfκ (i) (t : Time) : renyiIntegral μ ((κ i).map (fun γ => γ t)) N≠∞ := + renyiIntegral_ne_top_of_support μ _ measurableSet_closedBall (hsκ i t) hN1 + have hG : Continuous (fun t => ∑ i∈s, reducedChord K (N+1) (D i) + (renyiIntegral μ ((κ i).map (fun γ => γ 0)) N) + (renyiIntegral μ ((κ i).map (fun γ => γ 1)) N) t) := + continuous_finsetSum s (fun i hi => continuous_reducedChord hK (by linarith) + (hD0 i hi) (hfκ i 0) (hfκ i 1)) + let v : ProbabilityMeasure C(Time,X) := ⟨π,inferInstance⟩ + have hu := upperSemicontinuous_supported_renyiPath μ measurableSet_closedBall + (fun t => v.map (fun γ => γ t)) (continuous_time_marginals v) hs hN1 + have hdense : Dense ((⋃ m, dyadicGrid m) ∩ Ioo (0:Time) 1) := by + apply dense_dyadicGrid.inter_of_isOpen_right _ isOpen_Ioo + have h01 : (0:Time)≠1 := by + intro hh + have hh' := congrArg (fun t : Time => (t:ℝ)) hh + norm_num at hh' + rw [dense_iff_closure_eq,closure_Ioo h01] + exact Set.eq_univ_of_forall (fun t => ⟨t.property.1,t.property.2⟩) + apply ge_continuous_of_dense hu hG hdense + intro t ht + obtain ⟨m,htm⟩ := mem_iUnion.mp ht.1 + exact hX.finite_component_scalar_chord K n hn hK hN a π hg hp hC hc (hm m) + S s hS hd hcover D hD0 hD htm ht.2.1 ht.2.2 + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/FirstOrderDistanceDistortion.lean b/lean/OAI/Geometry/RCD/Transport/FirstOrderDistanceDistortion.lean new file mode 100644 index 0000000000000000000000000000000000000000..f169fc683d206d85acaffb6f6d841f288ee24f21 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/FirstOrderDistanceDistortion.lean @@ -0,0 +1,41 @@ +import OAI.Geometry.RCD.Harmonic.FirstOrderDistanceDefect +import OAI.Geometry.RCD.Coordinates.FirstOrderCoordinateDistance + +namespace OAI + +/-! # Two-sided metric distortion for the actual first-order coordinates -/ + +open Set Filter MeasureTheory Metric +open scoped Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem NoncollapsedRCD.first_order_distance_distortion {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) [(hausdorff n X).Regular] (hn : 2≤n) (hK : K≤0) + (p x y : ℕ → X) (r ε : ℕ → ℝ) (hr : ∀ k, 0 |dist (v k (x k)) (v k (y k))/r k- + dist (x k) (y k)/r k|) atTop (𝓝 0) := by + have hl := hX.first_order_distance_defect hn hK p x y r ε hr hr0 hcurv hε hε1 hε0 u v hsplit hx hy + have hu := hX.first_order_coordinate_distance hn hK p x y r ε hr hr0 hcurv hε hε1 hε0 u v hsplit hx hy + have hid (a b : ℝ) : |a-b|=max 0 (a-b)+max 0 (b-a) := by + by_cases hab : b≤a + · rw [abs_of_nonneg (sub_nonneg.mpr hab),max_eq_right (by linarith : 0≤a-b), + max_eq_left (by linarith : b-a≤0),add_zero] + · rw [abs_of_nonpos (by linarith : a-b≤0),max_eq_left (by linarith : a-b≤0), + max_eq_right (by linarith : 0≤b-a),zero_add] + ring + simpa only [hid,add_zero] using hu.add hl + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/FirstOrderNearbyPlanErrors.lean b/lean/OAI/Geometry/RCD/Transport/FirstOrderNearbyPlanErrors.lean new file mode 100644 index 0000000000000000000000000000000000000000..55c68680ab54f5d0dfcb55efec7e9aa4cb4b92b9 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/FirstOrderNearbyPlanErrors.lean @@ -0,0 +1,124 @@ +import OAI.Geometry.RCD.Harmonic.FirstOrderUniformAffineMean +import OAI.Geometry.RCD.Coordinates.NearbyNormalizedPlan +import OAI.Geometry.RCD.Coordinates.DiagonalMeanSelection +import OAI.Geometry.RCD.Transport.CompressedSegmentIntegral + +namespace OAI + +/-! # Shrinking endpoint plans with simultaneous affine and spatial errors -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped Topology NNReal ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] +attribute [local instance] pathBorel pathBorelSpace + +def affineSpatialPathCost {n : ℕ} (F : Fin n → C(Time,X) → C(Time,ℝ)) + (E : X → ℝ) (γ : C(Time,X)) : ℝ := + (∑ i, ‖F i γ‖)+(∫ t in Icc (0:ℝ) 1, E (geodesicExtension γ t)) + +theorem NoncollapsedRCD.first_order_nearby_plan_errors {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) [(hausdorff n X).Regular] (hn : 2 ≤ n) (hK : K ≤ 0) + (p x y : ℕ → X) (r ε : ℕ → ℝ) (hr : ∀ k, 0 < r k) (hr0 : Tendsto r atTop (𝓝 0)) + (hcurv : ∀ k, -1 ≤ K*(16*r k)^2) + (hε : ∀ k, 0 ≤ ε k) (hε1 : ∀ k, ε k ≤ 1) (hε0 : Tendsto ε atTop (𝓝 0)) + (u : ℕ → Fin n → SobolevSpace (hausdorff n X) hX.quadratic) + (v : ℕ → X → Euclidean n) + (hsplit : ∀ k, FirstOrderSplittingOn (hausdorff n X) hX.quadratic + (p k) (16*r k) (ε k) (u k) (v k)) + (hx : ∀ k, dist (x k) (p k) ≤ r k/48) (hy : ∀ k, dist (y k) (p k) ≤ r k/48) + (E : ℕ → X → ℝ) (hE : ∀ k z, 0 ≤ E k z) + (hEI : ∀ k, IntegrableOn (E k) (ball (p k) (4*r k)) (hausdorff n X)) + (hE0 : Tendsto (fun k => ((hausdorff n X).real (ball (p k) (4*r k)))⁻¹* + ∫ z in ball (p k) (4*r k), E k z ∂hausdorff n X) atTop (𝓝 0)) : + ∃ (δ : ℕ → ℝ) (π : ℕ → Measure C(Time,X)) + (F : ℕ → Fin n → C(Time,X) → C(Time,ℝ)), + (∀ k, 0 < δ k ∧ δ k ≤ 1/2) ∧ Tendsto δ atTop (𝓝 0) ∧ + (∀ k, IsProbabilityMeasure (π k)) ∧ + (∀ k, ∀ᵐ γ ∂π k, IsGeodesic γ) ∧ + (∀ k, IsOptimalCoupling ((π k).map (fun γ => γ 0)) + ((π k).map (fun γ => γ 1)) ((π k).map (fun γ => (γ 0,γ 1)))) ∧ + (∀ k, ∃ C : ℝ≥0∞, C≠∞ ∧ ∀ t : Time, (π k).map (fun γ => γ t) ≤ C • hausdorff n X) ∧ + (∀ k, ∀ᵐ γ ∂π k, dist (γ 0) (x k) < δ k*r k/24 ∧ + dist (γ 1) (y k) < δ k*r k/24 ∧ ∀ t : Time, dist (γ t) (p k) ≤ r k/8) ∧ + (∀ k, ∀ᵐ γ ∂π k, ∀ i (t : Time), F k i γ t= + (v k (γ t) i-((1-(t:ℝ))*v k (γ 0) i+(t:ℝ)*v k (γ 1) i))/r k) ∧ + (∀ k, ∀ᵐ γ ∂π k, IntegrableOn (fun t => E k (geodesicExtension γ t)) (Icc (0:ℝ) 1)) ∧ + (∀ k, Integrable (affineSpatialPathCost (F k) (E k)) (π k)) ∧ + Tendsto (fun k => ∫ γ, affineSpatialPathCost (F k) (E k) γ ∂π k) atTop (𝓝 0) := by + classical + let μ := hausdorff n X + let := hX.separable + obtain ⟨D,hD,hplans⟩ := hX.nearby_normalized_plan hn hK + let δ (m : ℕ) : ℝ := ((m:ℝ)+2)⁻¹ + have hδ (m : ℕ) : 0 < δ m ∧ δ m ≤ 1/2 := by + constructor + · dsimp only [δ]; positivity + · rw [one_div] + change ((m:ℝ)+2)⁻¹ ≤ (2:ℝ)⁻¹ + exact inv_anti₀ (by norm_num) (by linarith [Nat.cast_nonneg (α:=ℝ) m]) + choose π hπ hgeo hopt hcomp hends using fun m k => + hplans (hr k) (hcurv k) (hδ m).1 (hδ m).2 (hx k) (hy k) + let (m k : ℕ) : IsProbabilityMeasure (π m k) := hπ m k + let B (m : ℕ) := D/(δ m)^n + have hB (m : ℕ) : 0 ≤ B m := div_nonneg hD.le (pow_pos (hδ m).1 n).le + have hstart (m k : ℕ) : ∀ᵐ z ∂(π m k).map (fun γ => γ 0), dist z (p k) ≤ r k/12 := by + apply (ae_map_iff (measurable_path_eval 0).aemeasurable isClosed_closedBall.measurableSet).mpr + filter_upwards [hends m k] with γ he + have hh := dist_triangle (γ 0) (x k) (p k) + nlinarith [(hx k),(hδ m).2,hr k] + have hfinish (m k : ℕ) : ∀ᵐ z ∂(π m k).map (fun γ => γ 1), dist z (p k) ≤ r k/12 := by + apply (ae_map_iff (measurable_path_eval 1).aemeasurable isClosed_closedBall.measurableSet).mpr + filter_upwards [hends m k] with γ he + have hh := dist_triangle (γ 1) (y k) (p k) + nlinarith [(hy k),(hδ m).2,hr k] + choose F hFc hFeq hFI hF0 using fun m i => + hX.first_order_uniform_affine_mean hn hK p r ε hr hr0 hcurv hε hε1 hε0 + u v hsplit (π m) (hgeo m) (hopt m) (hB m) (hcomp m) (hstart m) (hfinish m) i + have hstay (m k : ℕ) (t : Time) : ∀ᵐ z ∂(π m k).map (fun γ => γ t), z∈ball (p k) (4*r k) := by + apply (ae_map_iff (measurable_path_eval t).aemeasurable measurableSet_ball).mpr + filter_upwards [hends m k] with γ he + exact (he.2.2 t).trans_lt (by linarith [hr k]) + have hEI' (m k : ℕ) := compressed_segment_integral μ (π m k) ENNReal.ofReal_ne_top + (hcomp m k) (hstay m k) (hEI k) (Eventually.of_forall (fun z => hE k z)) + let cost (m k : ℕ) := affineSpatialPathCost (fun i => F m i k) (E k) + have hI (m k : ℕ) : Integrable (cost m k) (π m k) := + (integrable_finsetSum _ (fun i _ => hFI m i k)).add (hEI' m k).1 + have hpos (m k : ℕ) (γ : C(Time,X)) : 0 ≤ cost m k γ := + add_nonneg (Finset.sum_nonneg (fun _ _ => norm_nonneg _)) (integral_nonneg (fun _ => hE k _)) + have hEplan (m : ℕ) : Tendsto (fun k => ∫ γ, + (∫ t in Icc (0:ℝ) 1, E k (geodesicExtension γ t)) ∂π m k) atTop (𝓝 0) := by + apply squeeze_zero (fun k => integral_nonneg (fun γ => integral_nonneg (fun _ => hE k _))) + (g := fun k => B m*((μ.real (ball (p k) (4*r k)))⁻¹*∫ z in ball (p k) (4*r k), E k z ∂μ)) + · intro k + have hm : 0 < μ.real (ball (p k) (4*r k)) := ENNReal.toReal_pos + (hX.fullSupport _ _ (mul_pos (by norm_num) (hr k))).ne' (hX.finiteOnBounded _ isBounded_ball).ne + have hb := (hEI' m k).2.2 + rw [ENNReal.toReal_ofReal (div_nonneg (hB m) hm.le)] at hb + convert hb using 1 + ring + · simpa only [mul_zero] using hE0.const_mul (B m) + have hcost0 (m : ℕ) : Tendsto (fun k => ∫ γ, cost m k γ ∂π m k) atTop (𝓝 0) := by + have hs := tendsto_finsetSum Finset.univ (fun i _ => hF0 m i) + have hh := hs.add (hEplan m) + simpa only [cost,affineSpatialPathCost,integral_add (integrable_finsetSum _ (fun i _ => hFI m i _)) + (hEI' m _).1,integral_finsetSum _ (fun i _ => hFI m i _),Finset.sum_const_zero,zero_add] using hh + obtain ⟨d,hd,hcost⟩ := exists_vanishing_diagonal_cost (fun m k => ∫ γ, cost m k γ ∂π m k) + (fun m k => integral_nonneg (hpos m k)) hcost0 + have hδ0 : Tendsto (fun k => δ (d k)) atTop (𝓝 0) := + tendsto_inv_atTop_zero.comp (tendsto_atTop_add_const_right _ _ (tendsto_natCast_atTop_atTop.comp hd)) + refine ⟨fun k => δ (d k),fun k => π (d k) k,fun k i => F (d k) i k, + fun k => hδ (d k),hδ0,fun k => hπ (d k) k,fun k => hgeo (d k) k, + fun k => hopt (d k) k,?_,fun k => hends (d k) k,?_,fun k => (hEI' (d k) k).2.1, + fun k => hI (d k) k,hcost⟩ + · intro k + exact ⟨_,ENNReal.ofReal_ne_top,hcomp (d k) k⟩ + · intro k + exact ae_all_iff.mpr (fun i => hFeq (d k) i k) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/FirstOrderUniformDistortion.lean b/lean/OAI/Geometry/RCD/Transport/FirstOrderUniformDistortion.lean new file mode 100644 index 0000000000000000000000000000000000000000..9f889ab59dd599d638ae8b9d3a0f80040066bd0c --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/FirstOrderUniformDistortion.lean @@ -0,0 +1,44 @@ +import OAI.Geometry.RCD.Transport.FirstOrderDistanceDistortion + +namespace OAI + +/-! # Uniform distortion of the original coordinates on inner physical balls -/ + +open Set Filter MeasureTheory Metric +open scoped Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem NoncollapsedRCD.first_order_uniform_distortion {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) [(hausdorff n X).Regular] (hn : 2≤n) (hK : K≤0) + (p : ℕ → X) (r ε : ℕ → ℝ) (hr : ∀ k, 0 hr (a k)) (hr0.comp ha.tendsto_atTop) (fun k => hcurv (a k)) + (fun k => hε (a k)) (fun k => hε1 (a k)) (hε0.comp ha.tendsto_atTop) + (u∘a) (v∘a) (fun k => hsplit (a k)) hx hy + obtain ⟨k,hk⟩ := (hlim.eventually (gt_mem_nhds hτ)).exists + exact (not_lt_of_ge hk.le) (hfail k) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/FullReducedMidpoint.lean b/lean/OAI/Geometry/RCD/Transport/FullReducedMidpoint.lean new file mode 100644 index 0000000000000000000000000000000000000000..5947182e03c5e18b4de99b2e5999ff658e58c6b4 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/FullReducedMidpoint.lean @@ -0,0 +1,57 @@ +import OAI.Geometry.RCD.Transport.MidpointReducedComparison + +namespace OAI + +/-! # Full CD controls the exact reduced coefficient at a midpoint + +The result covers zero distance and curvature, and the infinite coefficient +at a conjugate point. It is the only full-to-reduced distortion comparison +required by the midpoint construction. +-/ + +open Set +open scoped ENNReal +noncomputable section +namespace RegularPointCoordinates + +theorem reduced_midpoint_le_tau {K N θ : ℝ} (hN : 1 < N) (hθ : 0 ≤ θ) : + sigma K (N+1) (1/2) θ ≤ tau K N (1/2) θ := by + by_cases hθ0 : θ=0 + · subst θ + have hs : sigma K N (1/2) 0 = ENNReal.ofReal (1/(2*(1:ℝ))) := by simp [sigma] + rw [tau_midpoint_of_sigma (by norm_num : (0:ℝ)<1) hs] + simp [sigma] + have hθp : 0 < θ := lt_of_le_of_ne hθ (Ne.symm hθ0) + by_cases hK0 : K=0 + · subst K + have hs : sigma 0 N (1/2) θ = ENNReal.ofReal (1/(2*(1:ℝ))) := by simp [sigma] + rw [tau_midpoint_of_sigma (by norm_num : (0:ℝ)<1) hs] + simp [sigma] + rcases lt_or_gt_of_ne hK0 with hKn | hKp + · exact reduced_midpoint_le_tau_negative hKn hN hθp + by_cases hcut : (N-1)*Real.pi^2 ≤ K*θ^2 + · have hs : sigma K N (1/2) θ = ∞ := by + simp only [sigma,hθ0,hK0,or_self,ite_false,ite_eq_left hcut] + have hq : 0 < 1-1/N := sub_pos.mpr ((div_lt_one (by linarith : 0 < N)).mpr hN) + have hh : ENNReal.ofReal (1/2:ℝ)^(1/N) ≠ 0 := + (ENNReal.rpow_pos (by norm_num) ENNReal.ofReal_ne_top).ne' + have htau : tau K N (1/2) θ = ∞ := by + unfold tau + norm_num only [show (1/2:ℝ)≠0 by norm_num,show (1/2:ℝ)≠1 by norm_num,ite_false] + rw [hs,ENNReal.top_rpow_of_pos hq,ENNReal.mul_top hh] + rw [htau] + exact le_top + have hNm : 0 < N-1 := sub_pos.mpr hN + have he : (θ*Real.sqrt (K/(N-1)))^2 = K*θ^2/(N-1) := by + rw [mul_pow,Real.sq_sqrt (div_nonneg hKp.le hNm.le)] + ring + have hsq : (θ*Real.sqrt (K/(N-1)))^2 < Real.pi^2 := by + rw [he,div_lt_iff₀ hNm] + nlinarith [lt_of_not_ge hcut] + exact reduced_midpoint_le_tau_positive hKp hN hθp (by nlinarith [Real.pi_pos]) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/GeodesicPackingSamples.lean b/lean/OAI/Geometry/RCD/Transport/GeodesicPackingSamples.lean new file mode 100644 index 0000000000000000000000000000000000000000..9a59ca38584345d7c37bb66244827b4474321321 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/GeodesicPackingSamples.lean @@ -0,0 +1,52 @@ +import OAI.Geometry.RCD.Metric.ProductPackingGrid + +namespace OAI + +/-! # Finite separated samples of one geodesic in an extra factor -/ + +open Set Metric +noncomputable section +namespace RegularPointCoordinates + +def geodesicSampleTime {m : ℕ} (hm : 0 < m) (i : Fin m) : Time := + ⟨(i.val:ℝ)/m,div_nonneg (Nat.cast_nonneg _) (Nat.cast_nonneg _), + (div_le_one (by exact_mod_cast hm)).mpr (by exact_mod_cast i.isLt.le)⟩ + +theorem geodesicSampleTime_gap {m : ℕ} (hm : 0 < m) {i j : Fin m} (hij : i ≠ j) : + 1/(m:ℝ) ≤ |(geodesicSampleTime hm i:ℝ)-(geodesicSampleTime hm j:ℝ)| := by + have hm' : 0 < (m:ℝ) := by exact_mod_cast hm + have hval : i.val ≠ j.val := fun h => hij (Fin.ext h) + have hgap : (1:ℝ) ≤ |(i.val:ℝ)-(j.val:ℝ)| := by + rcases lt_or_gt_of_ne hval with h | h + · have hh : (i.val:ℝ)+1 ≤ j.val := by exact_mod_cast h + rw [abs_of_nonpos (by linarith)] + linarith + · have hh : (j.val:ℝ)+1 ≤ i.val := by exact_mod_cast h + rw [abs_of_nonneg (by linarith)] + linarith + change 1/(m:ℝ) ≤ |(i.val:ℝ)/m-(j.val:ℝ)/m| + rw [← sub_div,abs_div,abs_of_pos hm'] + exact div_le_div_of_nonneg_right hgap hm'.le + +theorem IsGeodesic.packing_samples {Z : Type*} [MetricSpace Z] + {γ : C(Time,Z)} (hγ : IsGeodesic γ) {m : ℕ} (hm : 0 < m) : + ∃ z : Fin m → Z, + (∀ i, dist (z i) (γ 0) ≤ dist (γ 0) (γ 1)) ∧ + Pairwise (fun i j => dist (γ 0) (γ 1)/(m:ℝ) ≤ dist (z i) (z j)) := by + refine ⟨fun i => γ (geodesicSampleTime hm i),?_,?_⟩ + · intro i + rw [hγ] + change |(geodesicSampleTime hm i:ℝ)-0| *dist (γ 0) (γ 1) ≤ _ + rw [sub_zero,abs_of_nonneg (geodesicSampleTime hm i).2.1] + exact mul_le_of_le_one_left dist_nonneg (geodesicSampleTime hm i).2.2 + · intro i j hij + rw [hγ (geodesicSampleTime hm i) (geodesicSampleTime hm j)] + have hh := mul_le_mul_of_nonneg_right (geodesicSampleTime_gap hm hij) + (dist_nonneg : 0 ≤ dist (γ 0) (γ 1)) + simpa only [one_div,div_eq_mul_inv,mul_comm,mul_one] using hh + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/GeodesicPlanTightness.lean b/lean/OAI/Geometry/RCD/Transport/GeodesicPlanTightness.lean new file mode 100644 index 0000000000000000000000000000000000000000..4c0d6be274ec15d5fb14839ba3babb4e5159b991 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/GeodesicPlanTightness.lean @@ -0,0 +1,75 @@ +import OAI.Geometry.RCD.Transport.WeakLengthCompression + +namespace OAI + +/-! # Tight endpoint tails give tight geodesic plans + +Properness makes the bounded families of geodesics compact. Both endpoint +tails control the mass outside those families, uniformly in the sequence. +-/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped ENNReal Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [SeparableSpace X] [ProperSpace X] +attribute [local instance] pathBorel pathBorelSpace + +omit [MeasurableSpace X] [BorelSpace X] [SeparableSpace X] in +theorem geodesic_plans_tight_of_endpoint_tails + (πs : ℕ → ProbabilityMeasure C(Time,X)) (p : X) + (hg : ∀ j, ∀ᵐ γ ∂(πs j : Measure C(Time,X)), IsGeodesic γ) + (htail : ∀ ε : ℝ≥0∞, 0<ε → ∃ R : ℝ, 0≤R ∧ ∀ j, + (πs j : Measure C(Time,X)) {γ | R ht (Or.inl h)) + have h1 : dist (γ 1) p≤R := not_lt.mp (fun h => ht (Or.inr h)) + have hstay (t : Time) : dist (γ t) p≤3*R := by + have hlen : dist (γ 0) (γ 1)≤2*R := by + have hd := dist_triangle (γ 0) p (γ 1) + rw [dist_comm p (γ 1)] at hd + linarith + have habs : |(t:ℝ)-(0:Time)|≤1 := by + change |(t:ℝ)-0|≤1 + rw [sub_zero,abs_of_nonneg t.property.1] + exact t.property.2 + calc + _ ≤ dist (γ t) (γ 0)+dist (γ 0) p := dist_triangle _ _ _ + _ = |(t:ℝ)-(0:Time)| * dist (γ 0) (γ 1)+dist (γ 0) p := by rw [hγ t 0] + _ ≤ 1*(2*R)+R := add_le_add (mul_le_mul habs hlen dist_nonneg (by norm_num)) h0 + _ = _ := by ring + exact hnot ⟨hγ,hstay⟩ + exact (measure_mono_ae hsub).trans ((measure_union_le _ _).trans (hRtail j)) + +omit [MeasurableSpace X] [BorelSpace X] in +theorem geodesic_plans_subsequence_of_endpoint_tails + (πs : ℕ → ProbabilityMeasure C(Time,X)) (p : X) + (hg : ∀ j, ∀ᵐ γ ∂(πs j : Measure C(Time,X)), IsGeodesic γ) + (htail : ∀ ε : ℝ≥0∞, 0<ε → ∃ R : ℝ, 0≤R ∧ ∀ j, + (πs j : Measure C(Time,X)) {γ | R subset_closure (mem_range_self j)) + exact ⟨π,φ,hφ,hlim⟩ + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/GeodesicProductSamples.lean b/lean/OAI/Geometry/RCD/Transport/GeodesicProductSamples.lean new file mode 100644 index 0000000000000000000000000000000000000000..ddbc7d854603f325cace9f9620a87fe53c445566 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/GeodesicProductSamples.lean @@ -0,0 +1,75 @@ +import OAI.Geometry.RCD.Transport.PointedVerticalGeodesic +import OAI.Geometry.RCD.Transport.GeodesicPackingSamples + +namespace OAI + +/-! # Separated points in an approximate residual factor + +Only the source space is geodesic. The residual factor is an arbitrary +metric space; its separated samples are projections of one actual geodesic. +-/ + +open Set Metric +noncomputable section +namespace RegularPointCoordinates + +variable {X Z : Type*} [MetricSpace X] [MetricSpace Z] {n m : ℕ} + +theorem pointed_vertical_samples (hgeo : IsGeodesicSpace X) + {p : X} {z₀ z₁ : Z} {ρ ε : ℝ} (hρ : 0 < ρ) (he : 0 ≤ ε) (hm : 0 < m) + {f : X → WithLp 2 (Euclidean n × Z)} + (hf : IsPointedApproximation p (WithLp.toLp 2 (0,z₀)) ρ 1 ε f) + (hz : dist z₀ z₁ ≤ 1-ε) + (hsmall : 3*ε/(m:ℝ)+ε+2*Real.sqrt (14*ε*(dist z₀ z₁+7*ε)) ≤ + dist z₀ z₁/(2*m)) : + ∃ z : Fin m → Z, + (∀ i, dist (z i) z₀ ≤ dist z₀ z₁+5*ε) ∧ + Pairwise (fun i j => dist z₀ z₁/(2*m) ≤ dist (z i) (z j)) := by + obtain ⟨x,hx,hfx⟩ := hf.2.2 (WithLp.toLp 2 (0,z₁)) (by + rw [metric_product_distance_L2] + simpa only [WithLp.fst,WithLp.snd,dist_self,zero_pow (by norm_num : (2:ℕ)≠0), + zero_add,Real.sqrt_sq dist_nonneg,dist_comm z₁ z₀] using hz) + have hx' : dist x p ≤ ρ := by simpa using hx + obtain ⟨γ,h0,h1,hγ⟩ := hgeo p x + obtain ⟨hpoints,hhoriz,hnear,hL⟩ := pointed_vertical_geodesic hρ he hf hx' hfx hγ h0 h1 + let z : Fin m → Z := fun i => (f (γ (geodesicSampleTime hm i))).snd + refine ⟨z,fun i => hnear _,?_⟩ + intro i j hij + let s := geodesicSampleTime hm i + let t := geodesicSampleTime hm j + let E := Real.sqrt (14*ε*(dist z₀ z₁+7*ε)) + have hm' : 0 < (m:ℝ) := by exact_mod_cast hm + have hL0 : 0 ≤ dist p x/ρ := div_nonneg dist_nonneg hρ.le + have hsource : dist p x/ρ/(m:ℝ) ≤ dist (γ s) (γ t)/ρ := by + rw [hγ s t,h0,h1] + have hh := mul_le_mul_of_nonneg_right (geodesicSampleTime_gap hm hij) hL0 + dsimp only [s,t] + convert hh using 1 <;> ring + have hfull := (abs_le.mp (hf.2.1 (γ s) (γ t) + (by simpa using hpoints s) (by simpa using hpoints t))).1 + have hprod : dist (f (γ s)) (f (γ t)) ≤ + dist (f (γ s)).fst (f (γ t)).fst+dist (z i) (z j) := by + rw [metric_product_distance_L2] + apply (Real.sqrt_le_iff).mpr + constructor + · positivity + · change dist (f (γ s)).fst (f (γ t)).fst^2+dist (z i) (z j)^2 ≤ _ + nlinarith [dist_nonneg (x := (f (γ s)).fst) (y := (f (γ t)).fst), + dist_nonneg (x := z i) (y := z j)] + have hhor : dist (f (γ s)).fst (f (γ t)).fst ≤ 2*E := by + have ht := dist_triangle (f (γ s)).fst 0 (f (γ t)).fst + rw [dist_zero_right,dist_zero_left] at ht + linarith [hhoriz s,hhoriz t] + have hLm : (dist z₀ z₁-3*ε)/(m:ℝ) ≤ dist p x/ρ/(m:ℝ) := + div_le_div_of_nonneg_right hL hm'.le + have heq : (dist z₀ z₁-3*ε)/(m:ℝ) = + 2*(dist z₀ z₁/(2*m))-3*ε/(m:ℝ) := by field_simp + rw [heq] at hLm + dsimp only [E] at hhor + linarith + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/GeodesicShortSteps.lean b/lean/OAI/Geometry/RCD/Transport/GeodesicShortSteps.lean new file mode 100644 index 0000000000000000000000000000000000000000..6ab75a5cc0604c61c8851187e517d1ea92f23f4e --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/GeodesicShortSteps.lean @@ -0,0 +1,68 @@ +import OAI.Analysis.RCDHeat.Foundations + +namespace OAI + +/-! # Finite short-step estimates along an actual geodesic -/ + +open Set Metric + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] + +/-- A uniform estimate for short pairs on one geodesic controls its endpoints +with the same constant. The proof uses a finite equal-time subdivision. -/ +theorem IsGeodesic.short_step_bound {γ : C(Time,X)} (hγ : IsGeodesic γ) + (f : X → ℝ) {L δ : ℝ} (hδ : 0 < δ) + (hshort : ∀ s t : Time, dist (γ s) (γ t) ≤ δ → + |f (γ s)-f (γ t)| ≤ L*dist (γ s) (γ t)) : + |f (γ 0)-f (γ 1)| ≤ L*dist (γ 0) (γ 1) := by + let d := dist (γ 0) (γ 1) + obtain ⟨N,hN⟩ := exists_nat_gt (max (d/δ) 0) + have hN0 : (0:ℝ) < N := (le_max_right _ _).trans_lt hN + have hNd : d/(N:ℝ) ≤ δ := by + have hh : d/δ < N := (le_max_left _ _).trans_lt hN + apply (div_le_iff₀ hN0).mpr + have hh' := (div_lt_iff₀ hδ).mp hh + nlinarith + let τ (i : ℕ) : Time := ⟨min ((i:ℝ)/N) 1, + le_min (by positivity) zero_le_one,min_le_right _ _⟩ + have hτ (i : ℕ) (hi : i ≤ N) : (τ i : ℝ) = (i:ℝ)/N := by + apply min_eq_left + exact (div_le_one hN0).mpr (by exact_mod_cast hi) + have hτ0 : τ 0 = 0 := by apply Subtype.ext; simp [τ] + have hτN : τ N = 1 := by + apply Subtype.ext + rw [hτ N le_rfl,div_self hN0.ne'] + rfl + have hstep (i : ℕ) (hi : i < N) : dist (γ (τ i)) (γ (τ (i+1))) = d/N := by + rw [hγ,hτ i hi.le,hτ (i+1) (by omega)] + have he : (i:ℝ)/(N:ℝ)-((i+1:ℕ):ℝ)/N = -(N:ℝ)⁻¹ := by + push_cast + field_simp + ring + rw [he,abs_neg,abs_of_pos (inv_pos.mpr hN0)] + dsimp only [d] + ring + have hb := dist_le_range_sum_dist (fun i => f (γ (τ i))) N + rw [hτ0,hτN] at hb + have hs : (∑ i ∈ Finset.range N, dist (f (γ (τ i))) (f (γ (τ (i+1))))) ≤ L*d := by + calc + _ ≤ ∑ _i ∈ Finset.range N, L*(d/N) := by + apply Finset.sum_le_sum + intro i hi + have his : i < N := Finset.mem_range.mp hi + rw [Real.dist_eq] + exact (hshort (τ i) (τ (i+1)) (by rw [hstep i his]; exact hNd)).trans_eq + (by rw [hstep i his]) + _ = L*d := by + simp only [Finset.sum_const,Finset.card_range,nsmul_eq_mul] + field_simp + exact (show |f (γ 0)-f (γ 1)| ≤ _ by simpa only [Real.dist_eq] using hb).trans hs + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/GeodesicSquareLower.lean b/lean/OAI/Geometry/RCD/Transport/GeodesicSquareLower.lean new file mode 100644 index 0000000000000000000000000000000000000000..c89721c8743aaff86b718c4429f0c4dbf73e5f22 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/GeodesicSquareLower.lean @@ -0,0 +1,26 @@ +import Mathlib.Tactic +import Mathlib.Topology.MetricSpace.Basic + +namespace OAI + +/-! # Weighted squared distance is minimal at a geodesic interpolation point -/ + +namespace RegularPointCoordinates +variable {X : Type*} [PseudoMetricSpace X] + +theorem weighted_sq_dist_lower (x y z : X) {θ : ℝ} (hθ0 : 0 ≤ θ) (hθ1 : θ ≤ 1) : + θ*(1-θ)*dist x y^2 ≤ (1-θ)*dist z x^2+θ*dist z y^2 := by + have hd : dist x y ≤ dist z x+dist z y := by simpa only [dist_comm x z] using dist_triangle x z y + have hs := mul_le_mul_of_nonneg_left (pow_le_pow_left₀ dist_nonneg hd 2) + (mul_nonneg hθ0 (sub_nonneg.mpr hθ1)) + nlinarith [sq_nonneg ((1-θ)*dist z x-θ*dist z y)] + +theorem weighted_sq_dist_at_geodesic (x y z : X) {θ : ℝ} + (hx : dist z x=θ*dist x y) (hy : dist z y=(1-θ)*dist x y) : + (1-θ)*dist z x^2+θ*dist z y^2=θ*(1-θ)*dist x y^2 := by + rw [hx,hy] + ring + +end RegularPointCoordinates + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/GlobalLengthRootMaximality.lean b/lean/OAI/Geometry/RCD/Transport/GlobalLengthRootMaximality.lean new file mode 100644 index 0000000000000000000000000000000000000000..632d2cde47e35c44eb4b8851d82c57454483ae14 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/GlobalLengthRootMaximality.lean @@ -0,0 +1,79 @@ +import OAI.Geometry.RCD.Transport.LengthRootMaximality +import OAI.Geometry.RCD.Transport.LocalRenyiMaximality +import OAI.Geometry.RCD.Coordinates.NormalizedOptimalSubplan + +namespace OAI + +/-! # Length-component maximality with the original Hausdorff reference -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped ENNReal Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem NoncollapsedRCD.global_root_length_component + (K : ℝ) (n : ℕ) (hn : 2≤n) (hX : NoncollapsedRCD K n X) + (a : RenyiTransportNode n X) (π : Measure C(Time,X)) [IsProbabilityMeasure π] + (hg : ∀ᵐ γ ∂π, IsGeodesic γ) + (hp : IsOptimalCoupling a.left a.right (π.map (fun γ => (γ 0,γ 1)))) + {C : ℝ≥0∞} (hC : C≠∞) (hc : ∀ t : Time, π.map (fun γ => γ t)≤C • hausdorff n X) + {S : Set ℝ} (hS : MeasurableSet S) + (κ : Measure C(Time,X)) (hκeq : κ=π.restrict {γ | dist (γ 0) (γ 1)∈S}) + (hκ0 : κ univ≠0) {q : ℝ} (hq0 : 0 γ 0)) + ((κ univ)⁻¹ • κ.map (fun γ => γ 1)) ((κ univ)⁻¹ • κ) midpointTime q := by + let : SeparableSpace X := hX.separable + let := a.left_probability + let := a.right_probability + let μ := hausdorff n X + let : IsLocallyFiniteMeasure μ := locallyFinite_of_finiteOnBounded μ hX.finiteOnBounded + let B := closedBall a.center (3*a.radius) + let : IsFiniteMeasure (μ.restrict B) := ⟨by + simpa [μ,B] using hX.finiteOnBounded B isBounded_closedBall⟩ + have hκ : κ≤π := by rw [hκeq]; exact Measure.restrict_le_self + let : IsFiniteMeasure κ := isFiniteMeasure_of_le π hκ + have he := optimalPlan_endpoints a.left a.right π hp + have hpp : IsOptimalCoupling (π.map (fun γ => γ 0)) (π.map (fun γ => γ 1)) + (π.map (fun γ => (γ 0,γ 1))) := by rw [he.1,he.2]; exact hp + have hfin := finite_second_moment_cost + (finiteSecondMoment_of_bounded a.left a.center a.left_support) + (finiteSecondMoment_of_bounded a.right a.center a.right_support) hp.1 hp.2.1 + have hstay (ν₀ ν₁ : Measure X) (h0 : ∀ᵐ x ∂ν₀, dist x a.center≤a.radius) + (h1 : ∀ᵐ x ∂ν₁, dist x a.center≤a.radius) + (η : Measure C(Time,X)) (hge : ∀ᵐ γ ∂η, IsGeodesic γ) + (hpe : IsOptimalCoupling ν₀ ν₁ (η.map (fun γ => (γ 0,γ 1)))) : + ∀ᵐ x ∂η.map (fun γ => γ midpointTime), x∈B := by + apply (ae_map_iff (measurable_path_eval midpointTime).aemeasurable measurableSet_closedBall).mpr + exact (optimal_geodesic_plan_bounded ν₀ ν₁ η hge hpe a.center a.radius_nonneg h0 h1).mono + (fun γ hγ => hγ.2 midpointTime) + have hml := hmax.local_of_global μ measurableSet_closedBall hq0 hq1 + (hstay _ _ a.left_support a.right_support π hg hp) + (fun η _ hge hpe => hstay _ _ a.left_support a.right_support η hge hpe) + have hm := hX.renyi_root_length_component_maximal K n hn a π hg hp hC hc + (μ.restrict B) hS κ hκeq hκ0 hq0 hq1 hml + let πn := (κ univ)⁻¹ • κ + obtain ⟨hπn,hgn,hpn,_⟩ := normalized_optimal_subplan π hg hpp hfin κ hκ hκ0 + let : IsProbabilityMeasure πn := hπn + have heval (t : Time) : πn.map (fun γ => γ t)=(κ univ)⁻¹ • κ.map (fun γ => γ t) := + Measure.map_smul _ (measurable_path_eval t).aemeasurable + rw [heval,heval] at hpn + have hsN (t : Time) (ht : t=0 ∨ t=1) : + ∀ᵐ x ∂((κ univ)⁻¹ • κ.map (fun γ => γ t)), dist x a.center≤a.radius := by + have hs : ∀ᵐ x ∂π.map (fun γ => γ t), dist x a.center≤a.radius := by + rcases ht with rfl | rfl + · rw [he.1]; exact a.left_support + · rw [he.2]; exact a.right_support + exact (hs.filter_mono (Measure.map_mono hκ (measurable_path_eval t)).absolutelyContinuous.ae_le).filter_mono + Measure.smul_absolutelyContinuous.ae_le + exact hm.global_of_local μ measurableSet_closedBall hq0 hq1 + (hstay _ _ (hsN 0 (Or.inl rfl)) (hsN 1 (Or.inr rfl)) πn hgn hpn) + (fun η _ hge hpe => hstay _ _ (hsN 0 (Or.inl rfl)) (hsN 1 (Or.inr rfl)) η hge hpe) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/GlobalRenyiLeftComponent.lean b/lean/OAI/Geometry/RCD/Transport/GlobalRenyiLeftComponent.lean new file mode 100644 index 0000000000000000000000000000000000000000..b35f29604f4136db36c3adfe8878b13fd4247522 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/GlobalRenyiLeftComponent.lean @@ -0,0 +1,97 @@ +import OAI.Geometry.RCD.Transport.RenyiLeftComponent +import OAI.Geometry.RCD.Transport.LocalRenyiMaximality + +namespace OAI + +/-! # Global-reference maximality of normalized left length components + +A single bounded reference region contains all relevant midpoint measures. +Localizing and then restoring the Hausdorff reference preserves the actual +variational comparison, including possible singular competitors. +-/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped Topology ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem NoncollapsedRCD.global_renyi_left_component + (K : ℝ) (n : ℕ) (hn : 2≤n) (hX : NoncollapsedRCD K n X) + (a : RenyiTransportNode n X) (π : Measure C(Time,X)) [IsProbabilityMeasure π] + (hg : ∀ᵐ γ ∂π, IsGeodesic γ) + (hp : IsOptimalCoupling a.left a.right (π.map (fun γ => (γ 0,γ 1)))) + {S : Set ℝ} (hS : MeasurableSet S) + (κ : Measure C(Time,X)) (hκeq : κ=π.restrict {γ | dist (γ 0) (γ 1)∈S}) + (hκ0 : κ univ≠0) {q : ℝ} (hq0 : 0 γ 0)) (π.map (fun γ => γ midpointTime)) + (π.map (subpath 0 midpointTime)) midpointTime q) : + RenyiMaximizingPlan (hausdorff n X) ((κ univ)⁻¹ • κ.map (fun γ => γ 0)) + ((κ univ)⁻¹ • κ.map (fun γ => γ midpointTime)) + ((κ univ)⁻¹ • κ.map (subpath 0 midpointTime)) midpointTime q := by + let : SeparableSpace X := hX.separable + let : CompleteSpace X := hX.complete + let : Nonempty X := ⟨a.center⟩ + let : IsProbabilityMeasure a.left := a.left_probability + let : IsProbabilityMeasure a.right := a.right_probability + let μ := hausdorff n X + let : IsLocallyFiniteMeasure μ := locallyFinite_of_finiteOnBounded μ hX.finiteOnBounded + let B := closedBall a.center (3*(3*a.radius)) + let : IsFiniteMeasure (μ.restrict B) := ⟨by + simpa [μ,B] using hX.finiteOnBounded B isBounded_closedBall⟩ + have hκ : κ≤π := by rw [hκeq]; exact Measure.restrict_le_self + let : IsFiniteMeasure κ := isFiniteMeasure_of_le π hκ + let : NeZero κ := ⟨by intro he; apply hκ0; rw [he]; rfl⟩ + have he := optimalPlan_endpoints a.left a.right π hp + have hpp : IsOptimalCoupling (π.map (fun γ => γ 0)) (π.map (fun γ => γ 1)) + (π.map (fun γ => (γ 0,γ 1))) := by rw [he.1,he.2]; exact hp + have hfin := finite_second_moment_cost + (finiteSecondMoment_of_bounded a.left a.center a.left_support) + (finiteSecondMoment_of_bounded a.right a.center a.right_support) hp.1 hp.2.1 + let πL := π.map (subpath 0 midpointTime) + obtain ⟨hπL,hgL,hpL⟩ := geodesic_subpath_law π hg hpp hfin 0 midpointTime + let : IsProbabilityMeasure πL := hπL + have hs (t : Time) : ∀ᵐ x ∂π.map (fun γ => γ t), dist x a.center≤3*a.radius := by + apply (ae_map_iff (measurable_path_eval t).aemeasurable + (measurableSet_le (measurable_id.dist measurable_const) measurable_const)).mpr + exact (optimal_geodesic_plan_bounded a.left a.right π hg hp a.center a.radius_nonneg + a.left_support a.right_support).mono (fun γ hγ => hγ.2 t) + have hsN (t : Time) : ∀ᵐ x ∂((κ univ)⁻¹ • κ.map (fun γ => γ t)), dist x a.center≤3*a.radius := + ((hs t).filter_mono (Measure.map_mono hκ (measurable_path_eval t)).absolutelyContinuous.ae_le).filter_mono + Measure.smul_absolutelyContinuous.ae_le + have hstay (ν₀ ν₁ : Measure X) (h0 : ∀ᵐ x ∂ν₀, dist x a.center≤3*a.radius) + (h1 : ∀ᵐ x ∂ν₁, dist x a.center≤3*a.radius) + (η : Measure C(Time,X)) (hge : ∀ᵐ γ ∂η, IsGeodesic γ) + (hpe : IsOptimalCoupling ν₀ ν₁ (η.map (fun γ => (γ 0,γ 1)))) : + ∀ᵐ x ∂η.map (fun γ => γ midpointTime), x∈B := by + apply (ae_map_iff (measurable_path_eval midpointTime).aemeasurable measurableSet_closedBall).mpr + exact (optimal_geodesic_plan_bounded ν₀ ν₁ η hge hpe a.center + (mul_nonneg (by norm_num) a.radius_nonneg) h0 h1).mono (fun γ hγ => hγ.2 midpointTime) + have hml := hmax.local_of_global μ measurableSet_closedBall hq0 hq1 + (hstay _ _ (hs 0) (hs midpointTime) πL hgL hpL) + (fun η _ hge hpe => hstay _ _ (hs 0) (hs midpointTime) η hge hpe) + have hmc := hX.renyi_left_length_component_maximal K n hn a.left a.right + (Measure.absolutelyContinuous_of_le_smul a.left_bound) a.center a.radius_nonneg + a.left_support a.right_support (μ.restrict B) π hg hp hS κ hκeq hκ0 hq0 hq1 hml + let πn := (κ univ)⁻¹ • κ + obtain ⟨hπn,hgn,hpn,hfn⟩ := normalized_optimal_subplan π hg hpp hfin κ hκ hκ0 + let : IsProbabilityMeasure πn := hπn + obtain ⟨hnL,hgnL,hpnL⟩ := geodesic_subpath_law πn hgn hpn hfn 0 midpointTime + have heval (t : Time) : πn.map (fun γ => γ t)=(κ univ)⁻¹ • κ.map (fun γ => γ t) := + Measure.map_smul _ (measurable_path_eval t).aemeasurable + have hmap : πn.map (subpath 0 midpointTime)=(κ univ)⁻¹ • κ.map (subpath 0 midpointTime) := + Measure.map_smul _ (subpath_measurable 0 midpointTime).aemeasurable + rw [hmap] at hnL hgnL hpnL + rw [heval,heval] at hpnL + let := hnL + exact hmc.global_of_local μ measurableSet_closedBall hq0 hq1 + (hstay _ _ (hsN 0) (hsN midpointTime) _ hgnL hpnL) + (fun η _ hge hpe => hstay _ _ (hsN 0) (hsN midpointTime) η hge hpe) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/GlobalRenyiMidpoint.lean b/lean/OAI/Geometry/RCD/Transport/GlobalRenyiMidpoint.lean new file mode 100644 index 0000000000000000000000000000000000000000..84afd097d486e93be4c9a1c4f0fbc285f42d7353 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/GlobalRenyiMidpoint.lean @@ -0,0 +1,73 @@ +import OAI.Geometry.RCD.Transport.ReducedMidpoint + +namespace OAI + +/-! # Reference-independent maximality for dyadic Rényi midpoints + +Compactness used a finite restricted reference measure. Supported plans +have exactly the same power integral against the original reference, so +the maximizing property is independent of the containing support ball. +-/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped Topology ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +omit [BorelSpace X] in +theorem RenyiMaximizingPlan.global_of_local (μ : Measure X) [SigmaFinite μ] + {B : Set X} (hB : MeasurableSet B) [IsFiniteMeasure (μ.restrict B)] + {ν₀ ν₁ : Measure X} {π : Measure C(Time,X)} [IsProbabilityMeasure π] + {t : Time} {q : ℝ} (hq0 : 0 < q) (hq1 : q < 1) + (hmax : RenyiMaximizingPlan (μ.restrict B) ν₀ ν₁ π t q) + (hsπ : ∀ᵐ x ∂π.map (fun γ => γ t), x∈B) + (hs : ∀ κ : Measure C(Time,X), IsProbabilityMeasure κ → + (∀ᵐ γ ∂κ, IsGeodesic γ) → IsOptimalCoupling ν₀ ν₁ (κ.map (fun γ => (γ 0,γ 1))) → + ∀ᵐ x ∂κ.map (fun γ => γ t), x∈B) : + RenyiMaximizingPlan μ ν₀ ν₁ π t q := by + intro κ hκ hgκ hpκ + let := hκ + rw [(renyiPower_localized μ _ hB (hs κ hκ hgκ hpκ) hq0 hq1.le).2, + (renyiPower_localized μ _ hB hsπ hq0 hq1.le).2] + exact hmax κ hκ hgκ hpκ + +theorem NoncollapsedRCD.exists_global_renyi_midpoint_short + (K : ℝ) (n : ℕ) (hn : 2 ≤ n) (hX : NoncollapsedRCD K n X) + (ν₀ ν₁ : Measure X) [IsProbabilityMeasure ν₀] [IsProbabilityMeasure ν₁] + {C : ℝ≥0∞} (hC : C ≠ ∞) + (h0 : ν₀ ≤ C • hausdorff n X) (h1 : ν₁ ≤ C • hausdorff n X) + (p : X) {R : ℝ} (hR : 0 ≤ R) + (hs0 : ∀ᵐ x ∂ν₀, dist x p ≤ R) (hs1 : ∀ᵐ x ∂ν₁, dist x p ≤ R) + (D : ℝ) (hD : OptimalPlanDistanceBound ν₀ ν₁ D) + {q : ℝ} (hq0 : 0 < q) (hq1 : q < 1) : + ∃ π : Measure C(Time,X), IsProbabilityMeasure π ∧ + (∀ᵐ γ ∂π, IsGeodesic γ) ∧ IsOptimalCoupling ν₀ ν₁ (π.map (fun γ => (γ 0,γ 1))) ∧ + π.map (fun γ => γ midpointTime) ≤ midpointCapacity K n D C • hausdorff n X ∧ + RenyiMaximizingPlan (hausdorff n X) ν₀ ν₁ π midpointTime q := by + let : SeparableSpace X := hX.separable + let μ := hausdorff n X + let : IsLocallyFiniteMeasure μ := locallyFinite_of_finiteOnBounded μ hX.finiteOnBounded + let B := closedBall p (3*R) + let : IsFiniteMeasure (μ.restrict B) := ⟨by + simpa [μ,B] using hX.finiteOnBounded B isBounded_closedBall⟩ + have hm0 := finiteSecondMoment_of_bounded ν₀ p hs0 + have hm1 := finiteSecondMoment_of_bounded ν₁ p hs1 + obtain ⟨π,hπ,hg,hp,hcap,hmax⟩ := hX.exists_compressed_renyi_maximizing_midpoint_short K n hn + ν₀ ν₁ hC h0 h1 hm0 hm1 p hR hs0 hs1 D hD hq0 hq1 + let := hπ + have hs (κ : Measure C(Time,X)) (hgκ : ∀ᵐ γ ∂κ, IsGeodesic γ) + (hpκ : IsOptimalCoupling ν₀ ν₁ (κ.map (fun γ => (γ 0,γ 1)))) : + ∀ᵐ x ∂κ.map (fun γ => γ midpointTime), x∈B := by + apply (ae_map_iff (measurable_path_eval midpointTime).aemeasurable measurableSet_closedBall).mpr + exact (optimal_geodesic_plan_bounded ν₀ ν₁ κ hgκ hpκ p hR hs0 hs1).mono + (fun γ hγ => hγ.2 midpointTime) + exact ⟨π,hπ,hg,hp,hcap,hmax.global_of_local μ measurableSet_closedBall hq0 hq1 + (hs π hg hp) (fun κ _ hgκ hpκ => hs κ hgκ hpκ)⟩ + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/GlobalRenyiRightComponent.lean b/lean/OAI/Geometry/RCD/Transport/GlobalRenyiRightComponent.lean new file mode 100644 index 0000000000000000000000000000000000000000..1ea603685dcde4f3a6211e2c6d50585ef1d759ee --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/GlobalRenyiRightComponent.lean @@ -0,0 +1,97 @@ +import OAI.Geometry.RCD.Transport.RenyiRightComponent +import OAI.Geometry.RCD.Transport.LocalRenyiMaximality + +namespace OAI + +/-! # Global-reference maximality of normalized right length components + +A single bounded reference region contains all relevant midpoint measures. +Localizing and then restoring the Hausdorff reference preserves the actual +variational comparison, including possible singular competitors. +-/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped Topology ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem NoncollapsedRCD.global_renyi_right_component + (K : ℝ) (n : ℕ) (hn : 2≤n) (hX : NoncollapsedRCD K n X) + (a : RenyiTransportNode n X) (π : Measure C(Time,X)) [IsProbabilityMeasure π] + (hg : ∀ᵐ γ ∂π, IsGeodesic γ) + (hp : IsOptimalCoupling a.left a.right (π.map (fun γ => (γ 0,γ 1)))) + {S : Set ℝ} (hS : MeasurableSet S) + (κ : Measure C(Time,X)) (hκeq : κ=π.restrict {γ | dist (γ 0) (γ 1)∈S}) + (hκ0 : κ univ≠0) {q : ℝ} (hq0 : 0 γ midpointTime)) (π.map (fun γ => γ 1)) + (π.map (subpath midpointTime 1)) midpointTime q) : + RenyiMaximizingPlan (hausdorff n X) ((κ univ)⁻¹ • κ.map (fun γ => γ midpointTime)) + ((κ univ)⁻¹ • κ.map (fun γ => γ 1)) + ((κ univ)⁻¹ • κ.map (subpath midpointTime 1)) midpointTime q := by + let : SeparableSpace X := hX.separable + let : CompleteSpace X := hX.complete + let : Nonempty X := ⟨a.center⟩ + let : IsProbabilityMeasure a.left := a.left_probability + let : IsProbabilityMeasure a.right := a.right_probability + let μ := hausdorff n X + let : IsLocallyFiniteMeasure μ := locallyFinite_of_finiteOnBounded μ hX.finiteOnBounded + let B := closedBall a.center (3*(3*a.radius)) + let : IsFiniteMeasure (μ.restrict B) := ⟨by + simpa [μ,B] using hX.finiteOnBounded B isBounded_closedBall⟩ + have hκ : κ≤π := by rw [hκeq]; exact Measure.restrict_le_self + let : IsFiniteMeasure κ := isFiniteMeasure_of_le π hκ + let : NeZero κ := ⟨by intro he; apply hκ0; rw [he]; rfl⟩ + have he := optimalPlan_endpoints a.left a.right π hp + have hpp : IsOptimalCoupling (π.map (fun γ => γ 0)) (π.map (fun γ => γ 1)) + (π.map (fun γ => (γ 0,γ 1))) := by rw [he.1,he.2]; exact hp + have hfin := finite_second_moment_cost + (finiteSecondMoment_of_bounded a.left a.center a.left_support) + (finiteSecondMoment_of_bounded a.right a.center a.right_support) hp.1 hp.2.1 + let πL := π.map (subpath midpointTime 1) + obtain ⟨hπL,hgL,hpL⟩ := geodesic_subpath_law π hg hpp hfin midpointTime 1 + let : IsProbabilityMeasure πL := hπL + have hs (t : Time) : ∀ᵐ x ∂π.map (fun γ => γ t), dist x a.center≤3*a.radius := by + apply (ae_map_iff (measurable_path_eval t).aemeasurable + (measurableSet_le (measurable_id.dist measurable_const) measurable_const)).mpr + exact (optimal_geodesic_plan_bounded a.left a.right π hg hp a.center a.radius_nonneg + a.left_support a.right_support).mono (fun γ hγ => hγ.2 t) + have hsN (t : Time) : ∀ᵐ x ∂((κ univ)⁻¹ • κ.map (fun γ => γ t)), dist x a.center≤3*a.radius := + ((hs t).filter_mono (Measure.map_mono hκ (measurable_path_eval t)).absolutelyContinuous.ae_le).filter_mono + Measure.smul_absolutelyContinuous.ae_le + have hstay (ν₀ ν₁ : Measure X) (h0 : ∀ᵐ x ∂ν₀, dist x a.center≤3*a.radius) + (h1 : ∀ᵐ x ∂ν₁, dist x a.center≤3*a.radius) + (η : Measure C(Time,X)) (hge : ∀ᵐ γ ∂η, IsGeodesic γ) + (hpe : IsOptimalCoupling ν₀ ν₁ (η.map (fun γ => (γ 0,γ 1)))) : + ∀ᵐ x ∂η.map (fun γ => γ midpointTime), x∈B := by + apply (ae_map_iff (measurable_path_eval midpointTime).aemeasurable measurableSet_closedBall).mpr + exact (optimal_geodesic_plan_bounded ν₀ ν₁ η hge hpe a.center + (mul_nonneg (by norm_num) a.radius_nonneg) h0 h1).mono (fun γ hγ => hγ.2 midpointTime) + have hml := hmax.local_of_global μ measurableSet_closedBall hq0 hq1 + (hstay _ _ (hs midpointTime) (hs 1) πL hgL hpL) + (fun η _ hge hpe => hstay _ _ (hs midpointTime) (hs 1) η hge hpe) + have hmc := hX.renyi_right_length_component_maximal K n hn a.left a.right + (Measure.absolutelyContinuous_of_le_smul a.left_bound) a.center a.radius_nonneg + a.left_support a.right_support (μ.restrict B) π hg hp hS κ hκeq hκ0 hq0 hq1 hml + let πn := (κ univ)⁻¹ • κ + obtain ⟨hπn,hgn,hpn,hfn⟩ := normalized_optimal_subplan π hg hpp hfin κ hκ hκ0 + let : IsProbabilityMeasure πn := hπn + obtain ⟨hnL,hgnL,hpnL⟩ := geodesic_subpath_law πn hgn hpn hfn midpointTime 1 + have heval (t : Time) : πn.map (fun γ => γ t)=(κ univ)⁻¹ • κ.map (fun γ => γ t) := + Measure.map_smul _ (measurable_path_eval t).aemeasurable + have hmap : πn.map (subpath midpointTime 1)=(κ univ)⁻¹ • κ.map (subpath midpointTime 1) := + Measure.map_smul _ (subpath_measurable midpointTime 1).aemeasurable + rw [hmap] at hnL hgnL hpnL + rw [heval,heval] at hpnL + let := hnL + exact hmc.global_of_local μ measurableSet_closedBall hq0 hq1 + (hstay _ _ (hsN midpointTime) (hsN 1) _ hgnL hpnL) + (fun η _ hge hpe => hstay _ _ (hsN midpointTime) (hsN 1) η hge hpe) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/HalfRestrictedOptimalPlan.lean b/lean/OAI/Geometry/RCD/Transport/HalfRestrictedOptimalPlan.lean new file mode 100644 index 0000000000000000000000000000000000000000..aadd9acc59955f614f5190b99a47c564088f68ce --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/HalfRestrictedOptimalPlan.lean @@ -0,0 +1,47 @@ +import OAI.Geometry.RCD.Coordinates.HalfRestrictedMean + +namespace OAI + +/-! # Half-restricted optimal plans retain uniform compression -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [SeparableSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem half_restricted_optimal_plan (π : Measure C(Time,X)) [IsProbabilityMeasure π] + (hgeo : ∀ᵐ γ ∂π, IsGeodesic γ) + (hopt : IsOptimalCoupling (π.map (fun γ => γ 0)) (π.map (fun γ => γ 1)) + (π.map (fun γ => (γ 0,γ 1)))) + (hfin : transportCost (π.map (fun γ => (γ 0,γ 1))) ≠ ∞) + (μ : Measure X) {C : ℝ≥0∞} (hc : ∀ t : Time, π.map (fun γ => γ t) ≤ C • μ) + (p : X) {R : ℝ} + (hs₀ : ∀ᵐ x ∂π.map (fun γ => γ 0), dist x p ≤ R) + (hs₁ : ∀ᵐ x ∂π.map (fun γ => γ 1), dist x p ≤ R) (S : Set C(Time,X)) : + let κ := halfRestrictedMeasure π S + let ρ := (κ univ)⁻¹ • κ + IsProbabilityMeasure ρ ∧ (∀ᵐ γ ∂ρ, IsGeodesic γ) ∧ + IsOptimalCoupling (ρ.map (fun γ => γ 0)) (ρ.map (fun γ => γ 1)) + (ρ.map (fun γ => (γ 0,γ 1))) ∧ + (∀ t : Time, ρ.map (fun γ => γ t) ≤ (2*C) • μ) ∧ + (∀ᵐ x ∂ρ.map (fun γ => γ 0), dist x p ≤ R) ∧ + (∀ᵐ x ∂ρ.map (fun γ => γ 1), dist x p ≤ R) := by + intro κ ρ + obtain ⟨hp,hg,ho,hcomp,hs0,hs1⟩ := normalized_subplan_data π hgeo hopt hfin μ hc p hs₀ hs₁ + κ (halfRestrictedMeasure_le π S) (halfRestrictedMeasure_mass_ne_zero π S) + have hinv : (κ univ)⁻¹ ≤ 2 := by + have hh := ENNReal.inv_le_inv.mpr (halfRestrictedMeasure_mass_lower π S) + simpa only [one_div,inv_inv] using hh + refine ⟨hp,hg,ho,?_,hs0,hs1⟩ + intro t + apply (hcomp t).trans + intro A + exact mul_le_mul' (mul_le_mul' hinv le_rfl) le_rfl + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/HamiltonJacobiPlanBound.lean b/lean/OAI/Geometry/RCD/Transport/HamiltonJacobiPlanBound.lean new file mode 100644 index 0000000000000000000000000000000000000000..fa1b600ac2eddbcad638f3989510d27600e1e28c --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/HamiltonJacobiPlanBound.lean @@ -0,0 +1,61 @@ +import OAI.Geometry.RCD.Metric.HamiltonJacobiDensity +import OAI.Analysis.RCDHeat.SobolevTestPlan + +namespace OAI + +/-! # The Hamilton--Jacobi bound on a compressed geodesic plan + +The actual squared gradient inequality implies the sharp quadratic +transport-action bound, at each time and on the same interior region. +-/ + +open Set Filter MeasureTheory +open scoped NNReal ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem hamilton_jacobi_plan_bound (μ : Measure X) (Q : QuadraticCheegerEnergy μ) + (π : Measure C(Time,X)) [IsFiniteMeasure π] + {C : ℝ≥0∞} (hC : C ≠ ∞) + (hcomp : ∀ t : Time, π.map (fun γ => γ t) ≤ C • μ) + (hLength : MemLp (fun γ : C(Time,X) => dist (γ 0) (γ 1)) 2 π) + (u : SobolevSpace μ Q) (D : Lp ℝ 2 μ) (t : Time) + {S : Set X} (hS : MeasurableSet S) (hs : ∀ᵐ γ ∂π, γ t ∈ S) + (hbound : ∀ᵐ x ∂μ.restrict S, (SobolevSpace.minimalSlope μ Q u x)^2 ≤ 2*D x) : + -(∫ γ : C(Time,X), (dist (γ 0) (γ 1))^2 ∂π)/2 ≤ + (∫ γ : C(Time,X), D (γ t) ∂π) - + ∫ γ : C(Time,X), dist (γ 0) (γ 1)*SobolevSpace.minimalSlope μ Q u (γ t) ∂π := by + have hDm : MemLp (fun γ : C(Time,X) => D (γ t)) 2 π := + compressionPullback_memLp μ π _ (measurable_path_eval t) hC (hcomp t) D + have hGm : MemLp (fun γ : C(Time,X) => SobolevSpace.minimalSlope μ Q u (γ t)) 2 π := + compressionPullback_memLp μ π _ (measurable_path_eval t) hC (hcomp t) + (SobolevSpace.minimalSlope μ Q u) + have hB : ∀ᵐ γ ∂π, (SobolevSpace.minimalSlope μ Q u (γ t))^2 ≤ 2*D (γ t) := by + have hx := (ae_restrict_iff' hS).mp hbound + have hy := ae_of_ae_map (measurable_path_eval t).aemeasurable + ((Measure.absolutelyContinuous_of_le_smul (hcomp t)).ae_le hx) + filter_upwards [hy,hs] with γ hγ hsγ + exact hγ hsγ + have hiD := hDm.integrable (by norm_num : (1:ℝ≥0∞) ≤ 2) + have hiG : Integrable (fun γ : C(Time,X) => + dist (γ 0) (γ 1)*SobolevSpace.minimalSlope μ Q u (γ t)) π := + hLength.integrable_mul hGm + have hi := integral_mono_ae (hLength.integrable_sq.neg.div_const 2) (hiD.sub hiG) + (hB.mono fun γ hγ => by + have hsq := sq_nonneg (SobolevSpace.minimalSlope μ Q u (γ t)-dist (γ 0) (γ 1)) + change -(dist (γ 0) (γ 1))^2/2 ≤ D (γ t)- + dist (γ 0) (γ 1)*SobolevSpace.minimalSlope μ Q u (γ t) + nlinarith) + simp only [Pi.neg_apply,Pi.sub_apply,integral_div,integral_neg] at hi + change -(∫ γ : C(Time,X), (dist (γ 0) (γ 1))^2 ∂π)/2 ≤ + ∫ γ : C(Time,X), D (γ t)-dist (γ 0) (γ 1)*SobolevSpace.minimalSlope μ Q u (γ t) ∂π at hi + rw [integral_sub hiD hiG] at hi + exact hi + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/HarmonicFamilyGeodesicAffine.lean b/lean/OAI/Geometry/RCD/Transport/HarmonicFamilyGeodesicAffine.lean new file mode 100644 index 0000000000000000000000000000000000000000..177c79f19e9da2872dcfab778b367bea56461947 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/HarmonicFamilyGeodesicAffine.lean @@ -0,0 +1,50 @@ +import OAI.Geometry.RCD.Transport.LocalHarmonicGeodesic + +namespace OAI + +/-! # One full-measure geodesic set for the entire harmonic coordinate family -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped Topology NNReal ENNReal +noncomputable section +namespace RegularPointCoordinates.NoncollapsedRCD +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + {n : ℕ} (hX : NoncollapsedRCD 0 n X) (hn : 2 ≤ n) (p : X) [SeparableSpace X] + [IsLocallyFiniteMeasure (hausdorff n X)] [(hausdorff n X).Regular] +attribute [local instance] pathBorel pathBorelSpace + +include hn in +theorem harmonic_family_affine_on_geodesics + (π : Measure C(Time,X)) [IsProbabilityMeasure π] + (hgeo : ∀ᵐ γ ∂π, IsGeodesic γ) + (hopt : IsOptimalCoupling (π.map (fun γ => γ 0)) (π.map (fun γ => γ 1)) + (π.map (fun γ => (γ 0,γ 1)))) + {C : ℝ≥0∞} (hC : C ≠ ∞) + (hcomp : ∀ t : Time, π.map (fun γ => γ t) ≤ C • hausdorff n X) + {R : ℝ} (hR : 1 ≤ R) + (hs₀ : ∀ᵐ x ∂π.map (fun γ => γ 0), dist x p ≤ R) + (hs₁ : ∀ᵐ x ∂π.map (fun γ => γ 1), dist x p ≤ R) + (u : Fin n → SobolevSpace (hausdorff n X) hX.quadratic) (v : X → Euclidean n) + {b : ℝ} (hb : 50*R < b) + (hu : ∀ i, SobolevSpace.toLp (hausdorff n X) hX.quadratic (u i) + =ᵐ[(hausdorff n X).restrict (ball p b)] fun x => v x i) + (hH : ∀ i, IsSobolevHarmonicOn (hausdorff n X) hX.quadratic (ball p b) (u i)) + (L : Fin n → ℝ≥0) (hL : ∀ i, ∀ᵐ x ∂(hausdorff n X).restrict (ball p b), + localGamma (hausdorff n X) hX.quadratic (u i) (u i) x ≤ (L i:ℝ)^2) + (c : Fin n → ℝ) (hc : ∀ i, localGamma (hausdorff n X) hX.quadratic (u i) (u i) + =ᵐ[(hausdorff n X).restrict (ball p b)] fun _ => c i) + (hv : ContinuousOn v (ball p b)) : + ∀ᵐ γ ∂π, ∀ t : Time, v (γ t)=(1-(t:ℝ)) • v (γ 0)+(t:ℝ) • v (γ 1) := by + have hi (i : Fin n) : ∀ᵐ γ ∂π, ∀ t : Time, + v (γ t) i=(1-(t:ℝ))*v (γ 0) i+(t:ℝ)*v (γ 1) i := + hX.local_harmonic_coordinate_affine_on_geodesics hn p π hgeo hopt hC hcomp hR hs₀ hs₁ + (u i) (fun x => v x i) hb (hu i) (hH i) (L i) (hL i) (c i) (hc i) (by fun_prop) + filter_upwards [ae_all_iff.mpr hi] with γ hγ t + ext i + simpa only [PiLp.add_apply,PiLp.smul_apply,smul_eq_mul] using hγ i t + +end RegularPointCoordinates.NoncollapsedRCD + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/HarmonicGeodesicAffine.lean b/lean/OAI/Geometry/RCD/Transport/HarmonicGeodesicAffine.lean new file mode 100644 index 0000000000000000000000000000000000000000..6e50eec451e3dec7ba77d122d7be7bfd5a439de8 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/HarmonicGeodesicAffine.lean @@ -0,0 +1,103 @@ +import OAI.Geometry.RCD.Transport.LocalHarmonicBoundedPlan +import OAI.Geometry.RCD.Coordinates.NormalizedSubplanData +import OAI.Geometry.RCD.Harmonic.AffinePathMeans + +namespace OAI + +/-! # Local harmonic constant-energy coordinates are affine on almost every optimal geodesic -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped Topology NNReal ENNReal +noncomputable section +namespace RegularPointCoordinates.NoncollapsedRCD +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + {n : ℕ} (hX : NoncollapsedRCD 0 n X) (hn : 2 ≤ n) (p : X) [SeparableSpace X] + [IsLocallyFiniteMeasure (hausdorff n X)] [(hausdorff n X).Regular] +attribute [local instance] pathBorel pathBorelSpace + +include hn in +theorem harmonic_coordinate_affine_on_geodesics + (π : Measure C(Time,X)) [IsProbabilityMeasure π] + (hgeo : ∀ᵐ γ ∂π, IsGeodesic γ) + (hopt : IsOptimalCoupling (π.map (fun γ => γ 0)) (π.map (fun γ => γ 1)) + (π.map (fun γ => (γ 0,γ 1)))) + {C : ℝ≥0∞} (hC : C ≠ ∞) + (hcomp : ∀ t : Time, π.map (fun γ => γ t) ≤ C • hausdorff n X) + {R : ℝ} (hR : 1 ≤ R) + (hs₀ : ∀ᵐ x ∂π.map (fun γ => γ 0), dist x p ≤ R) + (hs₁ : ∀ᵐ x ∂π.map (fun γ => γ 1), dist x p ≤ R) + (u : SobolevSpace (hausdorff n X) hX.quadratic) (V : X → ℝ) + {b : ℝ} (hb : 50*R < b) + (hu : SobolevSpace.toLp (hausdorff n X) hX.quadratic u + =ᵐ[(hausdorff n X).restrict (ball p b)] V) + (hH : IsSobolevHarmonicOn (hausdorff n X) hX.quadratic (ball p b) u) + (L : ℝ≥0) (hL : ∀ᵐ x ∂(hausdorff n X).restrict (ball p b), + localGamma (hausdorff n X) hX.quadratic u u x ≤ (L:ℝ)^2) + (c : ℝ) (hc : localGamma (hausdorff n X) hX.quadratic u u + =ᵐ[(hausdorff n X).restrict (ball p b)] fun _ => c) + (hV : Continuous V) (hVc : HasCompactSupport V) : + ∀ᵐ γ ∂π, ∀ t : Time, V (γ t)=(1-(t:ℝ))*V (γ 0)+(t:ℝ)*V (γ 1) := by + have hfin := finite_second_moment_cost + (finiteSecondMoment_of_bounded (π.map (fun γ => γ 0)) p hs₀) + (finiteSecondMoment_of_bounded (π.map (fun γ => γ 1)) p hs₁) hopt.1 hopt.2.1 + apply affine_paths_of_normalized_means π V hV hVc + intro κ hk hk0 + obtain ⟨hprob,hgeoκ,hoptκ,hcompκ,hsκ₀,hsκ₁⟩ := normalized_subplan_data π hgeo hopt hfin + (hausdorff n X) hcomp p hs₀ hs₁ κ hk hk0 + let := hprob + have hCκ : (κ univ)⁻¹*C ≠ ∞ := ENNReal.mul_ne_top (ENNReal.inv_ne_top.mpr hk0) hC + exact hX.local_harmonic_mean_on_bounded_plan hn p ((κ univ)⁻¹ • κ) + hgeoκ hoptκ hCκ hcompκ hR hsκ₀ hsκ₁ u V hb hu hH L hL c hc + +include hn in +theorem harmonic_coordinate_affine_on_geodesics_continuous + (π : Measure C(Time,X)) [IsProbabilityMeasure π] + (hgeo : ∀ᵐ γ ∂π, IsGeodesic γ) + (hopt : IsOptimalCoupling (π.map (fun γ => γ 0)) (π.map (fun γ => γ 1)) + (π.map (fun γ => (γ 0,γ 1)))) + {C : ℝ≥0∞} (hC : C ≠ ∞) + (hcomp : ∀ t : Time, π.map (fun γ => γ t) ≤ C • hausdorff n X) + {R : ℝ} (hR : 1 ≤ R) + (hs₀ : ∀ᵐ x ∂π.map (fun γ => γ 0), dist x p ≤ R) + (hs₁ : ∀ᵐ x ∂π.map (fun γ => γ 1), dist x p ≤ R) + (u : SobolevSpace (hausdorff n X) hX.quadratic) (V : X → ℝ) + {b : ℝ} (hb : 50*R < b) + (hu : SobolevSpace.toLp (hausdorff n X) hX.quadratic u + =ᵐ[(hausdorff n X).restrict (ball p b)] V) + (hH : IsSobolevHarmonicOn (hausdorff n X) hX.quadratic (ball p b) u) + (L : ℝ≥0) (hL : ∀ᵐ x ∂(hausdorff n X).restrict (ball p b), + localGamma (hausdorff n X) hX.quadratic u u x ≤ (L:ℝ)^2) + (c : ℝ) (hc : localGamma (hausdorff n X) hX.quadratic u u + =ᵐ[(hausdorff n X).restrict (ball p b)] fun _ => c) + (hV : Continuous V) : + ∀ᵐ γ ∂π, ∀ t : Time, V (γ t)=(1-(t:ℝ))*V (γ 0)+(t:ℝ)*V (γ 1) := by + have hb0 : 0 < b := by linarith + let W := fun x => radialCutoff p b x*V x + have hW : Continuous W := (radialCutoff_lipschitz p hb0).continuous.mul hV + have hWc : HasCompactSupport W := (radialCutoff_hasCompactSupport p hb0).mul_right + have huW : SobolevSpace.toLp (hausdorff n X) hX.quadratic u + =ᵐ[(hausdorff n X).restrict (ball p b)] W := by + filter_upwards [hu,ae_restrict_mem measurableSet_ball] with x hx hxb + rw [hx] + dsimp only [W] + have hxrad : dist p x ≤ b := by + have hx' : dist x p < b := hxb + simpa only [dist_comm] using hx'.le + rw [radialCutoff_eq_one p hb0 hxrad,one_mul] + have haff := hX.harmonic_coordinate_affine_on_geodesics hn p π hgeo hopt hC hcomp hR hs₀ hs₁ + u W hb huW hH L hL c hc hW hWc + have hbounded := optimal_geodesic_plan_bounded (π.map (fun γ => γ 0)) + (π.map (fun γ => γ 1)) π hgeo hopt p (zero_le_one.trans hR) hs₀ hs₁ + filter_upwards [haff,hbounded] with γ hγ hbγ t + have heq (s : Time) : W (γ s)=V (γ s) := by + dsimp only [W] + rw [radialCutoff_eq_one p hb0 (by + rw [dist_comm] + exact (hbγ.2 s).trans (by linarith)),one_mul] + simpa only [heq] using hγ t + +end RegularPointCoordinates.NoncollapsedRCD + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/HarmonicOptimalPlanMean.lean b/lean/OAI/Geometry/RCD/Transport/HarmonicOptimalPlanMean.lean new file mode 100644 index 0000000000000000000000000000000000000000..072b79731789030ae6efd1399b3d52566019526b --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/HarmonicOptimalPlanMean.lean @@ -0,0 +1,71 @@ +import OAI.Geometry.RCD.Transport.CompactHarmonicAffinePlan +import OAI.Geometry.RCD.Transport.CompressedFiniteUnique + +namespace OAI + +/-! # Original harmonic-coordinate means on every compressed optimal plan -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped Topology NNReal ENNReal +noncomputable section +namespace RegularPointCoordinates.NoncollapsedRCD +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + {n : ℕ} (hX : NoncollapsedRCD 0 n X) (hn : 2 ≤ n) (p : X) [SeparableSpace X] + [IsLocallyFiniteMeasure (hausdorff n X)] [(hausdorff n X).Regular] + {S T : Set X} [CompactSpace S] [CompactSpace T] + {μ : Measure S} {ν : Measure T} [IsProbabilityMeasure μ] [IsProbabilityMeasure ν] +attribute [local instance] pathBorel pathBorelSpace + +include hn in +theorem compact_harmonic_mean_on_optimal_plan (a₀ : S) (b₀ : T) + (ρ₀ ρ₁ : X → ℝ) (hm₀ : Measurable ρ₀) (hm₁ : Measurable ρ₁) + (hp₀ : ∀ x, 0 ≤ ρ₀ x) (hp₁ : ∀ x, 0 ≤ ρ₁ x) {C₀ C₁ : ℝ≥0} + (hC₀ : ∀ᵐ x ∂hausdorff n X, |ρ₀ x| ≤ C₀) + (hC₁ : ∀ᵐ x ∂hausdorff n X, |ρ₁ x| ≤ C₁) + (hμ : μ.map Subtype.val=(hausdorff n X).withDensity (fun x => ENNReal.ofReal (ρ₀ x))) + (hν : ν.map Subtype.val=(hausdorff n X).withDensity (fun x => ENNReal.ofReal (ρ₁ x))) + {R : ℝ} (hR : 1 ≤ R) (hS : ∀ y:S, dist p y ≤ R) (hT : ∀ y:T, dist p y ≤ R) + (π : Measure C(Time,X)) [IsProbabilityMeasure π] + (hgeo : ∀ᵐ γ ∂π, IsGeodesic γ) + (hopt : IsOptimalCoupling (μ.map Subtype.val) (ν.map Subtype.val) + (π.map (fun γ => (γ 0,γ 1)))) + {C : ℝ≥0∞} (hC : C ≠ ∞) + (hcomp : ∀ t : Time, π.map (fun γ => γ t) ≤ C • hausdorff n X) + (u : SobolevSpace (hausdorff n X) hX.quadratic) (d : Lp ℝ 2 (hausdorff n X)) + (hd : IsWeakLaplacian (hausdorff n X) hX.quadratic u d) + (U : X → ℝ) (L A : ℝ≥0) (hU : LipschitzWith L U) (hUc : HasCompactSupport U) + (hu : SobolevSpace.toLp (hausdorff n X) hX.quadratic u =ᵐ[hausdorff n X] U) + (hA : ∀ᵐ x ∂hausdorff n X, |SobolevSpace.toLp (hausdorff n X) hX.quadratic u x| ≤ A) + {b : ℝ} (hb : 24*R < b) + (hd0 : d =ᵐ[(hausdorff n X).restrict (ball p b)] fun _ => 0) (c : ℝ) + (hc : localGamma (hausdorff n X) hX.quadratic u u + =ᵐ[(hausdorff n X).restrict (ball p b)] fun _ => c) : + ∀ t : Time, (∫ γ, U (γ t) ∂π) = + (1-(t:ℝ))*(∫ x : S, U x ∂μ)+(t:ℝ)*(∫ x : T, U x ∂ν) := by + have he1 (k : ℕ) : heatStep k ≤ 1 := by + unfold heatStep + exact pow_le_one₀ (by norm_num) (by norm_num) + obtain ⟨D⟩ := hX.exists_compact_heat_scaling_data hn p le_rfl a₀ b₀ μ ν + ρ₀ ρ₁ hm₀ hm₁ hp₀ hp₁ hC₀ hC₁ hμ hν heatStep heatStep_pos he1 heatStep_tendsto + (zero_le_one.trans hR) hS hT + obtain ⟨ρ,B,hB,hgρ,hpρ,hcρ,haff⟩ := D.exists_original_harmonic_affine_plan a₀ b₀ + he1 heatStep_tendsto ρ₀ ρ₁ hm₀ hm₁ hp₀ hp₁ hC₀ hC₁ hμ hν hR hS hT + have hs₀ : ∀ᵐ x ∂μ.map Subtype.val, dist x p ≤ R := by + apply (ae_map_iff measurable_subtype_coe.aemeasurable + (measurableSet_le (by fun_prop) measurable_const)).mpr + exact Eventually.of_forall fun y => by simpa only [dist_comm] using hS y + have hs₁ : ∀ᵐ x ∂ν.map Subtype.val, dist x p ≤ R := by + apply (ae_map_iff measurable_subtype_coe.aemeasurable + (measurableSet_le (by fun_prop) measurable_const)).mpr + exact Eventually.of_forall fun y => by simpa only [dist_comm] using hT y + have heq := hX.compressed_plan_unique_finite hn p (zero_le_one.trans hR) + π (ρ : Measure C(Time,X)) hgeo hgρ hopt hpρ hC hB hcomp hcρ hs₀ hs₁ + intro t + rw [heq,← integral_map (measurable_path_eval t).aemeasurable hU.continuous.aestronglyMeasurable] + exact haff u d hd U L A hU hUc hu hA hb hd0 c hc t + +end RegularPointCoordinates.NoncollapsedRCD + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/HopfDirichletSequence.lean b/lean/OAI/Geometry/RCD/Transport/HopfDirichletSequence.lean new file mode 100644 index 0000000000000000000000000000000000000000..0d82f95ae037987c757c956ee020259cd7e65cf1 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/HopfDirichletSequence.lean @@ -0,0 +1,95 @@ +import OAI.Geometry.RCD.Transport.DiagonalHopfRecoverySlope +import OAI.Geometry.RCD.Transport.CompactHopfDirichlet + +namespace OAI + +/-! # Actual compact Dirichlet sequences with the sharp local differential bound -/ + +open Set Metric Filter MeasureTheory +open scoped ContDiff Topology NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem NoncollapsedRCD.hopf_dirichlet_sequence_supported {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) {S b c : ℝ} (hbc : b ε k/t k) atTop (𝓝 0) := error_div_hopfRecoveryTime_tendsto hεlim hε + have heratio : Tendsto (fun k => (M:ℝ)*ε k/t k) atTop (𝓝 0) := by + simpa only [mul_div_assoc,mul_zero] using hratio.const_mul (M:ℝ) + have hroomlim : Tendsto (fun k => b+2*t k*(M:ℝ)) atTop (𝓝 b) := by + simpa only [mul_zero,zero_mul,add_zero] using ((htlim.const_mul 2).mul_const (M:ℝ)).const_add b + obtain ⟨N,hN⟩ := eventually_atTop.mp (hroomlim.eventually (Iio_mem_nhds hbc)) + have hrec (k : ℕ) := compact_hopf_dirichlet μ hX.quadratic hX.geodesic + (hr (k+N)) (ht (k+N)) ((hN (k+N) (Nat.le_add_left N k)).trans hcS) (hF (k+N)) (hFs (k+N)) + choose w hw hws using hrec + refine ⟨N,w,?_,?_,?_⟩ + · have herrorlim : Tendsto (fun k => (M:ℝ)*ε k+t k*(M:ℝ)^2/2) atTop (𝓝 0) := by + simpa only [mul_zero,zero_mul,zero_div,zero_add] using + (hεlim.const_mul (M:ℝ)).add ((htlim.mul_const ((M:ℝ)^2)).div_const 2) + intro η hη + have hev := (tendsto_add_atTop_nat N).eventually (herrorlim.eventually (Iio_mem_nhds hη)) + filter_upwards [hev] with k hk + filter_upwards [ae_restrict_of_ae (hw k),ae_restrict_mem measurableSet_ball] with x hx hball + rw [hx] + obtain ⟨hlo,hhi⟩ := hopfLax_bounds (hF (k+N)) (mul_pos (ht (k+N)) (sq_pos_of_pos (hr (k+N)))) x + have he := abs_le.mp (hFe (k+N) x hball.le) + have hid : (t (k+N)*r (k+N)^2)*((M:ℝ)/r (k+N))^2/2=t (k+N)*(M:ℝ)^2/2 := by + field_simp [(hr (k+N)).ne'] + change F (k+N) x-(t (k+N)*r (k+N)^2)*((M:ℝ)/r (k+N))^2/2≤_ at hlo + rw [hid] at hlo + exact abs_le.mpr ⟨by linarith,by linarith⟩ + · intro ρ hρ hρS η hη + have hbase := diagonal_hopf_recovery_slope hψ hψs hψL hρ hρS p r ε + (fun k => (M:ℝ)*ε k) t v F hr hε (fun k => mul_nonneg M.coe_nonneg (hε k)) ht + hεlim htlim hratio heratio hv hF hFe η hη + filter_upwards [(tendsto_add_atTop_nat N).eventually hbase] with k hk + filter_upwards [ae_restrict_of_ae (hws k),ae_restrict_mem measurableSet_ball] with x hx hball + exact (mul_le_mul_of_nonneg_left hx (hr (k+N)).le).trans (hk x hball.le) + + · intro k + filter_upwards [hw k] with x hx hnot + rw [hx] + apply hopfLax_zero_outside (hF (k+N)) (p (k+N)) (b*r (k+N)) + (fun y hy => ?_) (mul_pos (ht (k+N)) (sq_pos_of_pos (hr (k+N)))) + · have hd : c*r (k+N)≤dist (p (k+N)) x := by + simpa only [mem_ball,dist_comm,not_lt] using hnot + have hb := mul_lt_mul_of_pos_right (hN (k+N) (Nat.le_add_left N k)) (hr (k+N)) + have heq : b*r (k+N)+2*(t (k+N)*r (k+N)^2)*((M:ℝ)/r (k+N))= + (b+2*t (k+N)*(M:ℝ))*r (k+N) := by field_simp + change b*r (k+N)+2*(t (k+N)*r (k+N)^2)*((M:ℝ)/r (k+N)) Real.sqrt (ε k)+1/((k:ℝ)+1)) atTop (𝓝 0) + simpa only [Real.sqrt_zero,zero_add] using + hε.sqrt.add (tendsto_one_div_add_atTop_nhds_zero_nat (𝕜:=ℝ)) + +theorem error_div_hopfRecoveryTime_tendsto {ε : ℕ → ℝ} + (hε : Tendsto ε atTop (𝓝 0)) (hε0 : ∀ k, 0≤ε k) : + Tendsto (fun k => ε k/hopfRecoveryTime ε k) atTop (𝓝 0) := by + apply squeeze_zero (fun k => div_nonneg (hε0 k) (hopfRecoveryTime_pos ε k).le) + (fun k => ?_) (by simpa only [Real.sqrt_zero] using hε.sqrt) + apply (div_le_iff₀ (hopfRecoveryTime_pos ε k)).mpr + have hs := Real.sq_sqrt (hε0 k) + have hp : 0≤1/((k:ℝ)+1) := by positivity + dsimp only [hopfRecoveryTime] + nlinarith [Real.sqrt_nonneg (ε k)] + +theorem pointedHopfSlopeError_eq {t M ε e : ℝ} (ht : 0 ε k/t k) atTop (𝓝 0)) + (he : Tendsto (fun k => e k/t k) atTop (𝓝 0)) : + Tendsto (fun k => (Real.sqrt (2*t k*pointedHopfError (t k) M (ε k) (e k))+ε k)/t k) + atTop (𝓝 0) := by + have h := (((he.const_mul 4).add (hε.const_mul (14*M))).add + ((hε.pow 2).const_mul 5)).sqrt.add hε + simp only [mul_zero,zero_pow (by decide : (2:ℕ)≠0),zero_add,Real.sqrt_zero] at h + apply h.congr' + exact Eventually.of_forall fun k => (pointedHopfSlopeError_eq (ht k)).symm + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/HyperbolicChord.lean b/lean/OAI/Geometry/RCD/Transport/HyperbolicChord.lean new file mode 100644 index 0000000000000000000000000000000000000000..6c4ab5d8fc227c299ee68407c54281bb5f68abdb --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/HyperbolicChord.lean @@ -0,0 +1,47 @@ +import OAI.Geometry.RCD.Heat.DiscreteGaussianComparison +import Mathlib.Analysis.SpecialFunctions.Trigonometric.DerivHyp + +namespace OAI + +/-! # The hyperbolic comparison chord and its exact neighboring-point identity -/ + +noncomputable section +namespace RegularPointCoordinates + +def hyperbolicChord (c A B t : ℝ) : ℝ := + (Real.sinh (c*(1-t))*A+Real.sinh (c*t)*B)/Real.sinh c + +@[simp] theorem hyperbolicChord_zero {c : ℝ} (hc : 0 < c) (A B : ℝ) : + hyperbolicChord c A B 0=A := by + simp [hyperbolicChord,(Real.sinh_pos_iff.mpr hc).ne'] + +@[simp] theorem hyperbolicChord_one {c : ℝ} (hc : 0 < c) (A B : ℝ) : + hyperbolicChord c A B 1=B := by + simp [hyperbolicChord,(Real.sinh_pos_iff.mpr hc).ne'] + +theorem continuous_hyperbolicChord (c A B : ℝ) : Continuous (hyperbolicChord c A B) := by + unfold hyperbolicChord + fun_prop + +theorem hyperbolicChord_nonneg {c A B t : ℝ} (hc : 0 < c) (hA : 0 ≤ A) (hB : 0 ≤ B) + (ht0 : 0 ≤ t) (ht1 : t ≤ 1) : 0 ≤ hyperbolicChord c A B t := by + apply div_nonneg _ (Real.sinh_pos_iff.mpr hc).le + exact add_nonneg (mul_nonneg (Real.sinh_nonneg_iff.mpr (mul_nonneg hc.le (sub_nonneg.mpr ht1))) hA) + (mul_nonneg (Real.sinh_nonneg_iff.mpr (mul_nonneg hc.le ht0)) hB) + +theorem hyperbolicChord_neighbor_sum (c A B t h : ℝ) : + hyperbolicChord c A B (t-h)+hyperbolicChord c A B (t+h)= + 2*Real.cosh (c*h)*hyperbolicChord c A B t := by + have h₀ : c*(1-(t-h))=c*(1-t)+c*h := by ring + have h₁ : c*(1-(t+h))=c*(1-t)-c*h := by ring + have h₂ : c*(t-h)=c*t-c*h := by ring + have h₃ : c*(t+h)=c*t+c*h := by ring + unfold hyperbolicChord + rw [h₀,h₁,h₂,h₃,Real.sinh_add,Real.sinh_sub,Real.sinh_sub,Real.sinh_add] + ring + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/HyperbolicChordLimit.lean b/lean/OAI/Geometry/RCD/Transport/HyperbolicChordLimit.lean new file mode 100644 index 0000000000000000000000000000000000000000..ef7f696515f02dea715ace99ceab9f674e9f743b --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/HyperbolicChordLimit.lean @@ -0,0 +1,50 @@ +import OAI.Geometry.RCD.Transport.HyperbolicChord +import Mathlib.Analysis.Calculus.Deriv.Slope + +namespace OAI + +/-! # The flat limit of the hyperbolic chord -/ + +open Set Filter +open scoped Topology +noncomputable section +namespace RegularPointCoordinates + +theorem tendsto_sinh_ratio_zero (a : ℝ) : + Tendsto (fun q : ℝ => Real.sinh (a*q)/Real.sinh q) (𝓝[≠] 0) (𝓝 a) := by + have ha : HasDerivAt (fun q : ℝ => Real.sinh (a*q)) a 0 := by + simpa using ((hasDerivAt_id (0:ℝ)).const_mul a).sinh + have h₁ : Tendsto (fun q : ℝ => Real.sinh (a*q)/q) (𝓝[≠] 0) (𝓝 a) := by + simpa [slope_fun_def_field] using ha.tendsto_slope + have h₂ : Tendsto (fun q : ℝ => Real.sinh q/q) (𝓝[≠] 0) (𝓝 (1:ℝ)) := by + simpa [slope_fun_def_field] using (Real.hasDerivAt_sinh 0).tendsto_slope + have hh := h₁.div h₂ (by norm_num) + simp only [div_one] at hh + apply hh.congr' + filter_upwards [self_mem_nhdsWithin] with q hq + have hq0 : q ≠ 0 := hq + simp only [Pi.div_apply] + field_simp [hq0, Real.sinh_ne_zero.mpr hq0] + +theorem tendsto_hyperbolicChord_zero (A B t : ℝ) : + Tendsto (fun q : ℝ => hyperbolicChord q A B t) (𝓝[≠] 0) + (𝓝 ((1-t)*A+t*B)) := by + have hh := ((tendsto_sinh_ratio_zero (1-t)).mul_const A).add + ((tendsto_sinh_ratio_zero t).mul_const B) + convert hh using 1 + ext q + simp only [hyperbolicChord, mul_comm q] + ring + +theorem continuousAt_hyperbolicChord_parameter {q : ℝ} (hq : 0 < q) (A B t : ℝ) : + ContinuousAt (fun q : ℝ => hyperbolicChord q A B t) q := by + unfold hyperbolicChord + exact (((Real.continuous_sinh.comp (continuous_id.mul_const (1-t))).mul_const A).add + ((Real.continuous_sinh.comp (continuous_id.mul_const t)).mul_const B)).continuousAt.div + Real.continuous_sinh.continuousAt (Real.sinh_pos_iff.mpr hq).ne' + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/HyperbolicDistortion.lean b/lean/OAI/Geometry/RCD/Transport/HyperbolicDistortion.lean new file mode 100644 index 0000000000000000000000000000000000000000..35a6a9dbe617347de5599c5103b4d2e7df372805 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/HyperbolicDistortion.lean @@ -0,0 +1,162 @@ +import OAI.Geometry.RCD.Metric.LowerCurvatureVolume + +namespace OAI + +/-! # Sharp radial distortion on bounded annuli + +The curvature-dimension coefficients retain their hyperbolic radial factor. +These scalar comparisons will be used with the actual transport plan to +compare annuli before integrating the radial volume density. +-/ + +open Set +open scoped ENNReal + +namespace RegularPointCoordinates + +theorem sinh_mul_cosh_sub_nonneg {x : ℝ} (hx : 0 ≤ x) : + 0 ≤ Real.sinh x * Real.cosh x - x := by + let f : ℝ → ℝ := fun y => Real.sinh y * Real.cosh y - y + have hd (y : ℝ) : HasDerivAt f + (Real.cosh y ^ 2 + Real.sinh y ^ 2 - 1) y := by + convert ((Real.hasDerivAt_sinh y).mul (Real.hasDerivAt_cosh y)).sub + (hasDerivAt_id y) using 1 <;> first | rfl | ring + have hm : MonotoneOn f (Ici 0) := by + apply monotoneOn_of_hasDerivWithinAt_nonneg (convex_Ici (0 : ℝ)) + · exact ((Real.continuous_sinh.mul Real.continuous_cosh).sub continuous_id).continuousOn + · intro y _ + exact (hd y).hasDerivWithinAt + · intro y _ + nlinarith [Real.cosh_sq_sub_sinh_sq y, sq_nonneg (Real.sinh y)] + simpa only [f, Real.sinh_zero, mul_zero, zero_mul, sub_zero] using hm (by simp) hx hx + +theorem monotone_hyperbolic_radial_logDerivative : + MonotoneOn (fun x : ℝ => x * Real.cosh x / Real.sinh x) (Ioi 0) := by + have hd (x : ℝ) (hx : 0 < x) : + HasDerivAt (fun x : ℝ => x * Real.cosh x / Real.sinh x) + ((Real.sinh x * Real.cosh x - x) / Real.sinh x ^ 2) x := by + convert (((hasDerivAt_id x).mul (Real.hasDerivAt_cosh x)).div + (Real.hasDerivAt_sinh x) (Real.sinh_pos_iff.mpr hx).ne') using 1 + · rfl + have hh := Real.cosh_sq_sub_sinh_sq x + simp only [id_eq, Pi.mul_apply] + field_simp + nlinarith [congrArg (fun z : ℝ => x * z) hh] + apply monotoneOn_of_hasDerivWithinAt_nonneg (convex_Ioi (0 : ℝ)) + · intro x hx + exact (hd x hx).continuousAt.continuousWithinAt + · intro x hx + exact (hd x (by simpa only [interior_Ioi, mem_Ioi] using hx)).hasDerivWithinAt + · intro x hx + have hx0 : 0 < x := by simpa only [interior_Ioi, mem_Ioi] using hx + exact div_nonneg (sinh_mul_cosh_sub_nonneg hx0.le) (sq_nonneg _) + +theorem antitone_sinh_radial_ratio {t : ℝ} (ht : 0 < t) (ht1 : t ≤ 1) : + AntitoneOn (fun x : ℝ => Real.sinh (t * x) / Real.sinh x) (Ioi 0) := by + have hd (x : ℝ) (hx : 0 < x) : + HasDerivAt (fun x : ℝ => Real.sinh (t * x) / Real.sinh x) + ((t * Real.cosh (t * x) * Real.sinh x - + Real.sinh (t * x) * Real.cosh x) / Real.sinh x ^ 2) x := by + convert (((hasDerivAt_id x).const_mul t).sinh.div + (Real.hasDerivAt_sinh x) (Real.sinh_pos_iff.mpr hx).ne') using 1 + · rfl + · simp only [id_eq] + ring + apply antitoneOn_of_hasDerivWithinAt_nonpos (convex_Ioi (0 : ℝ)) + · intro x hx + exact (hd x hx).continuousAt.continuousWithinAt + · intro x hx + exact (hd x (by simpa only [interior_Ioi, mem_Ioi] using hx)).hasDerivWithinAt + · intro x hx + have hx0 : 0 < x := by simpa only [interior_Ioi, mem_Ioi] using hx + have htx : 0 < t * x := mul_pos ht hx0 + have hm := monotone_hyperbolic_radial_logDerivative htx hx0 + (mul_le_of_le_one_left hx0.le ht1) + have hs := Real.sinh_pos_iff.mpr hx0 + have hts := Real.sinh_pos_iff.mpr htx + have hc := (div_le_div_iff₀ hts hs).mp hm + have hc' : t * Real.cosh (t * x) * Real.sinh x ≤ + Real.sinh (t * x) * Real.cosh x := by + apply (mul_le_mul_iff_right₀ hx0).mp + nlinarith only [hc] + apply div_nonpos_of_nonpos_of_nonneg _ (sq_nonneg _) + linarith only [hc'] + +theorem sinh_radial_ratio_le_time {t x : ℝ} (ht : 0 ≤ t) (ht1 : t ≤ 1) + (hx : 0 < x) : Real.sinh (t * x) / Real.sinh x ≤ t := by + have hconv : ConvexOn ℝ (Ici 0) Real.sinh := by + apply convexOn_of_hasDerivWithinAt2_nonneg (convex_Ici (0 : ℝ)) + Real.continuous_sinh.continuousOn + (fun x _ => (Real.hasDerivAt_sinh x).hasDerivWithinAt) + (fun x _ => (Real.hasDerivAt_cosh x).hasDerivWithinAt) + intro x hx + exact (Real.sinh_pos_iff.mpr (by simpa only [interior_Ici, mem_Ioi] using hx)).le + have hc := hconv.2 + (show (0 : ℝ) ∈ Ici 0 by simp) (show x ∈ Ici 0 from hx.le) + (sub_nonneg.mpr ht1) ht (by ring : 1 - t + t = 1) + apply (div_le_iff₀ (Real.sinh_pos_iff.mpr hx)).mpr + simpa only [smul_eq_mul, mul_zero, Real.sinh_zero, zero_add] using hc + +theorem sigma_neg_eq {K N θ : ℝ} (hK : K < 0) (hN : 1 < N) (hθ : 0 < θ) + (t : ℝ) : + sigma K N t θ = ENNReal.ofReal + (Real.sinh (t * θ * Real.sqrt (-K / (N - 1))) / + Real.sinh (θ * Real.sqrt (-K / (N - 1)))) := by + have hn : 0 < (N - 1) * Real.pi ^ 2 := mul_pos (sub_pos.mpr hN) + (sq_pos_of_pos Real.pi_pos) + have hk : K * θ ^ 2 ≤ 0 := mul_nonpos_of_nonpos_of_nonneg hK.le (sq_nonneg θ) + simp only [sigma, ite_eq_right (not_or.mpr ⟨hθ.ne', hK.ne⟩), + ite_eq_right (by linarith : ¬(N - 1) * Real.pi ^ 2 ≤ K * θ ^ 2), + ite_eq_right (not_lt.mpr hK.le)] + +theorem sigma_antitone_distance_nonpos_curvature {K N t θ D : ℝ} + (hK : K ≤ 0) (hN : 1 < N) (ht : 0 < t) (ht1 : t ≤ 1) + (hθ : 0 ≤ θ) (hθD : θ ≤ D) : sigma K N t D ≤ sigma K N t θ := by + by_cases hK0 : K = 0 + · simp [sigma, hK0] + have hKneg : K < 0 := lt_of_le_of_ne hK hK0 + by_cases hD0 : D = 0 + · have hθ0 : θ = 0 := le_antisymm (by simpa only [hD0] using hθD) hθ + simp only [hD0, hθ0, le_refl] + have hD : 0 < D := lt_of_le_of_ne (hθ.trans hθD) (Ne.symm hD0) + have ha : 0 < Real.sqrt (-K / (N - 1)) := + Real.sqrt_pos.mpr (div_pos (neg_pos.mpr hKneg) (sub_pos.mpr hN)) + rw [sigma_neg_eq hKneg hN hD] + by_cases hθ0 : θ = 0 + · simp only [sigma, hθ0, true_or, ite_true] + apply ENNReal.ofReal_le_ofReal + simpa only [mul_assoc] using sinh_radial_ratio_le_time ht.le ht1 (mul_pos hD ha) + have hθpos : 0 < θ := lt_of_le_of_ne hθ (Ne.symm hθ0) + rw [sigma_neg_eq hKneg hN hθpos] + apply ENNReal.ofReal_le_ofReal + simpa only [mul_assoc] using antitone_sinh_radial_ratio ht ht1 + (mul_pos hθpos ha) (mul_pos hD ha) (mul_le_mul_of_nonneg_right hθD ha.le) + +theorem tau_antitone_distance_nonpos_curvature {K N t θ D : ℝ} + (hK : K ≤ 0) (hN : 1 < N) (ht : 0 < t) (ht1 : t < 1) + (hθ : 0 ≤ θ) (hθD : θ ≤ D) : tau K N t D ≤ tau K N t θ := by + have hα : 0 ≤ 1 - 1 / N := sub_nonneg.mpr + ((div_le_one (zero_lt_one.trans hN)).mpr hN.le) + simp only [tau, ite_eq_right ht.ne', ite_eq_right (ne_of_lt ht1)] + exact mul_le_mul_right (ENNReal.rpow_le_rpow + (sigma_antitone_distance_nonpos_curvature hK hN ht ht1.le hθ hθD) hα) _ + +theorem tau_nat_power {K t θ : ℝ} {n : ℕ} (hn : 2 ≤ n) + (ht : 0 < t) (ht1 : t < 1) : + tau K n t θ ^ n = ENNReal.ofReal t * sigma K n t θ ^ (n - 1) := by + have hn0 : (n : ℝ) ≠ 0 := by exact_mod_cast (show n ≠ 0 by omega) + have hfirst : ((ENNReal.ofReal t) ^ (1 / (n : ℝ))) ^ n = ENNReal.ofReal t := by + rw [← ENNReal.rpow_natCast, ← ENNReal.rpow_mul, + one_div_mul_cancel hn0, ENNReal.rpow_one] + have hexponent : (1 - 1 / (n : ℝ)) * n = ((n - 1 : ℕ) : ℝ) := by + rw [Nat.cast_sub (by omega)] + push_cast + field_simp + have hsecond : ((sigma K n t θ) ^ (1 - 1 / (n : ℝ))) ^ n = + sigma K n t θ ^ (n - 1) := by + rw [← ENNReal.rpow_natCast, ← ENNReal.rpow_mul, hexponent, ENNReal.rpow_natCast] + simp only [tau, ite_eq_right ht.ne', ite_eq_right (ne_of_lt ht1), mul_pow, hfirst, hsecond] + +end RegularPointCoordinates + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/InitialEntropyObstruction.lean b/lean/OAI/Geometry/RCD/Transport/InitialEntropyObstruction.lean new file mode 100644 index 0000000000000000000000000000000000000000..3eaddf3d0cc36ee87e8f6d8efcea9d9509e7d806 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/InitialEntropyObstruction.lean @@ -0,0 +1,99 @@ +import OAI.Geometry.RCD.Transport.BoundedEntropyClosed +import OAI.Geometry.RCD.Transport.CompressedPlanMixture + +namespace OAI + +/-! # An entropy gap cannot persist immediately after a common initial marginal -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped ENNReal Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] [SeparableSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem initial_entropy_obstruction (μ : Measure X) [SigmaFinite μ] + {B : Set X} (hB : MeasurableSet B) [IsFiniteMeasure (μ.restrict B)] + (π₀ π₁ : Measure C(Time,X)) [IsProbabilityMeasure π₀] [IsProbabilityMeasure π₁] + {C : ℝ≥0∞} (hC : C ≠ ∞) + (hc₀ : ∀ t : Time, π₀.map (fun γ => γ t) ≤ C • μ) + (hc₁ : ∀ t : Time, π₁.map (fun γ => γ t) ≤ C • μ) + (hs₀ : ∀ t : Time, ∀ᵐ x ∂π₀.map (fun γ => γ t), x ∈ B) + (hs₁ : ∀ t : Time, ∀ᵐ x ∂π₁.map (fun γ => γ t), x ∈ B) + {A : ℝ} + (hch₀ : EntropyChord (fun t => boltzmannEntropy μ (π₀.map (fun γ => γ t))) A) + (hch₁ : EntropyChord (fun t => boltzmannEntropy μ (π₁.map (fun γ => γ t))) A) + (hinit : π₀.map (fun γ => γ 0)=π₁.map (fun γ => γ 0)) + (hsep : ∀ t : Time, 0 < (t:ℝ) → (t:ℝ) < 1 → + π₀.map (fun γ => γ t) ⟂ₘ π₁.map (fun γ => γ t)) : False := by + let π := (2:ℝ≥0∞)⁻¹ • (π₀+π₁) + let : IsProbabilityMeasure π := ⟨by + change (2:ℝ≥0∞)⁻¹*(π₀ univ+π₁ univ)=1 + simp only [measure_univ] + norm_num + exact ENNReal.inv_mul_cancel (by norm_num) (by norm_num)⟩ + let E₀ := fun t : Time => boltzmannEntropy μ (π₀.map (fun γ => γ t)) + let E₁ := fun t : Time => boltzmannEntropy μ (π₁.map (fun γ => γ t)) + let a := fun t : Time => (1-(t:ℝ))*E₀ 0+(t:ℝ)*(E₀ 1+E₁ 1)/2+ + A*(t:ℝ)*(1-(t:ℝ))-Real.log 2 + have ha : Continuous a := by + dsimp only [a] + fun_prop + have hc (t : Time) : π.map (fun γ => γ t) ≤ C • μ := + half_mixture_compression μ π₀ π₁ hc₀ hc₁ t + have hs (t : Time) : ∀ᵐ x ∂π.map (fun γ => γ t), x ∈ B := by + rw [show π=(2:ℝ≥0∞)⁻¹ • (π₀+π₁) from rfl,half_mixture_map_eval] + exact (ae_add_measure_iff.mpr ⟨hs₀ t,hs₁ t⟩).filter_mono Measure.smul_absolutelyContinuous.ae_le + have hb (t : Time) (ht0 : 0 < (t:ℝ)) (ht1 : (t:ℝ) < 1) : + boltzmannEntropy μ (π.map (fun γ => γ t)) ≤ a t := by + have he : timeSegment 0 1 t=t := by ext; simp [timeSegment] + have hh₀ := hch₀ 0 1 t + have hh₁ := hch₁ 0 1 t + simp only [he,show ((0:Time):ℝ)=0 from rfl,show ((1:Time):ℝ)=1 from rfl] at hh₀ hh₁ + have heinit : E₁ 0=E₀ 0 := congrArg (boltzmannEntropy μ) hinit.symm + have heq : boltzmannEntropy μ (π.map (fun γ => γ t))=(E₀ t+E₁ t)/2-Real.log 2 := by + rw [show π=(2:ℝ≥0∞)⁻¹ • (π₀+π₁) from rfl,half_mixture_map_eval] + exact boltzmannEntropy_half_mixture μ _ _ + (Measure.absolutelyContinuous_of_le_smul (hc₀ t)) + (Measure.absolutelyContinuous_of_le_smul (hc₁ t)) (hsep t ht0 ht1) + (entropy_integrable_of_bounded_support μ _ hC (hc₀ t) hB (hs₀ t)) + (entropy_integrable_of_bounded_support μ _ hC (hc₁ t) hB (hs₁ t)) + change E₀ t ≤ (1-(t:ℝ))*E₀ 0+(t:ℝ)*E₀ 1+A*(t:ℝ)*(1-(t:ℝ))*|0-1|^2 at hh₀ + change E₁ t ≤ (1-(t:ℝ))*E₁ 0+(t:ℝ)*E₁ 1+A*(t:ℝ)*(1-(t:ℝ))*|0-1|^2 at hh₁ + rw [heinit] at hh₁ + simp only [zero_sub,abs_neg,abs_one,one_pow,mul_one] at hh₀ hh₁ + rw [heq] + dsimp only [a] + linarith + let u : ℕ → Time := fun j => ⟨(1/((j:ℝ)+1))/2,by + constructor + · positivity + · have h := one_div_le_one_div_of_le (by norm_num : (0:ℝ)<1) + (by have := Nat.cast_nonneg (α:=ℝ) j; linarith : (1:ℝ)≤j+1) + linarith⟩ + have hu0 (j : ℕ) : 0 < ((u j):ℝ) := by dsimp [u]; positivity + have hu1 (j : ℕ) : ((u j):ℝ) < 1 := by + have h := one_div_le_one_div_of_le (by norm_num : (0:ℝ)<1) + (by have := Nat.cast_nonneg (α:=ℝ) j; linarith : (1:ℝ)≤j+1) + change (1/((j:ℝ)+1))/2<1 + linarith + have hu : Tendsto u atTop (𝓝 0) := by + apply tendsto_subtype_rng.mpr + change Tendsto (fun j : ℕ => (1/((j:ℝ)+1))/2) atTop (𝓝 (0:ℝ)) + simpa only [zero_div] using + (tendsto_one_div_add_atTop_nhds_zero_nat (𝕜:=ℝ)).div_const 2 + have hzero := bounded_entropy_time_limit μ hB π hC hc hs a ha hu (fun j => hb (u j) (hu0 j) (hu1 j)) + have he0 : π.map (fun γ => γ 0)=π₀.map (fun γ => γ 0) := + half_mixture_eval_eq π₀ π₁ 0 hinit + rw [he0] at hzero + change E₀ 0 ≤ a 0 at hzero + simp only [a,show ((0:Time):ℝ)=0 from rfl,sub_zero,one_mul,zero_mul,add_zero,mul_zero] at hzero + have hlog : 0 < Real.log 2 := Real.log_pos (by norm_num) + linarith + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/LastPathAgreement.lean b/lean/OAI/Geometry/RCD/Transport/LastPathAgreement.lean new file mode 100644 index 0000000000000000000000000000000000000000..750a6d13bab2dffa4e42fb13faaae0b152dd653f --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/LastPathAgreement.lean @@ -0,0 +1,78 @@ +import OAI.Geometry.RCD.Transport.PathAgreement + +namespace OAI + +/-! # The last meeting of two paths before a fixed time + +The last meeting time is measurable. After it, the paths remain distinct up +to the fixed time. Adding time zero makes the definition total; on pairs +with a common initial point it is an actual meeting time. +-/ + +open Set Filter MeasureTheory TopologicalSpace +open scoped Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] + +def pathMeetingTimes (q : Time) (z : C(Time,X)×C(Time,X)) : Set Time := + {t | t=0 ∨ t≤q ∧ z.1 t=z.2 t} + +def lastPathAgreement (q : Time) (z : C(Time,X)×C(Time,X)) : Time := + sSup (pathMeetingTimes q z) + +theorem lastPathAgreement_isGreatest (q : Time) (z : C(Time,X)×C(Time,X)) : + IsGreatest (pathMeetingTimes q z) (lastPathAgreement q z) := by + have hc : IsClosed (pathMeetingTimes q z) := + isClosed_singleton.union (isClosed_Iic.inter (isClosed_eq z.1.continuous z.2.continuous)) + exact hc.isCompact.isGreatest_sSup ⟨0,Or.inl rfl⟩ + +theorem lastPathAgreement_le (q : Time) (z : C(Time,X)×C(Time,X)) : + lastPathAgreement q z≤q := by + have h := (lastPathAgreement_isGreatest q z).1 + rcases h with h | h + · rw [h] + exact q.property.1 + · exact h.1 + +theorem lastPathAgreement_eq (q : Time) {z : C(Time,X)×C(Time,X)} (hz : z.1 0=z.2 0) : + z.1 (lastPathAgreement q z)=z.2 (lastPathAgreement q z) := by + rcases (lastPathAgreement_isGreatest q z).1 with h | h + · rw [h] + exact hz + · exact h.2 + +theorem ne_after_lastPathAgreement (q : Time) (z : C(Time,X)×C(Time,X)) + {t : Time} (ht : lastPathAgreement q z sigma K N (1/2) (upperLength ε d/2)) := by + exact (measurable_of_countable (fun i : ℕ => + sigma K N (1/2) ((((i:ℝ)+1)*ε)/2))).comp (measurable_id.div_const ε).nat_floor + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [SeparableSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem midpoint_bin_lintegral (K N : ℝ) (π : Measure C(Time,X)) + {D ε : ℝ} (hε : 0<ε) (hD : ∀ᵐ γ ∂π, dist (γ 0) (γ 1)≤D) + (g : C(Time,X) → ℝ≥0∞) (hg : Measurable g) : + (∫⁻ γ, sigma K N (1/2) (upperLength ε (dist (γ 0) (γ 1))/2)*g γ ∂π)= + ∑ i∈Finset.range (⌊D/ε⌋₊+1), sigma K N (1/2) ((((i:ℝ)+1)*ε)/2)* + ∫⁻ γ, g γ ∂π.restrict {γ | dist (γ 0) (γ 1)∈lengthBin ε i} := by + let κ := fun i => π.restrict {γ | dist (γ 0) (γ 1)∈lengthBin ε i} + have hsum := bounded_length_uniform_partition π hε hD + calc + _ = ∫⁻ γ, sigma K N (1/2) (upperLength ε (dist (γ 0) (γ 1))/2)*g γ + ∂∑ i∈Finset.range (⌊D/ε⌋₊+1), κ i := by rw [hsum] + _ = ∑ i∈Finset.range (⌊D/ε⌋₊+1), + ∫⁻ γ, sigma K N (1/2) (upperLength ε (dist (γ 0) (γ 1))/2)*g γ ∂κ i := + lintegral_finsetSum_measure _ _ _ + _ = _ := by + apply Finset.sum_congr rfl + intro i _ + rw [←lintegral_const_mul _ hg] + apply lintegral_congr_ae + filter_upwards [ae_restrict_mem ((lengthBin_measurable ε i).preimage + ((measurable_path_eval 0).dist (measurable_path_eval 1)))] with γ hγ + rw [upperLength,floor_eq_of_mem_lengthBin hε hγ] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/LengthComponentCompression.lean b/lean/OAI/Geometry/RCD/Transport/LengthComponentCompression.lean new file mode 100644 index 0000000000000000000000000000000000000000..d230f73ae916af10730d05a01f3e4a14067d280c --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/LengthComponentCompression.lean @@ -0,0 +1,82 @@ +import OAI.Geometry.RCD.Transport.LengthComponentNode +import OAI.Geometry.RCD.Transport.LengthComponentDyadic +import OAI.Geometry.RCD.Transport.MaximalTreeCompression + +namespace OAI + +/-! # Compression at the length of a component, independent of total diameter + +Normalization cancels from the inherited density budget. This estimate is +uniform for fixed length windows when bounded endpoint approximations grow. +-/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped ENNReal Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem NoncollapsedRCD.length_component_compression + (K : ℝ) (n : ℕ) (hn : 2≤n) (hX : NoncollapsedRCD K n X) + {q : ℝ} (hq0 : 0 (γ 0,γ 1)))) + {C : ℝ≥0∞} (hC : C≠∞) (hc : ∀ t : Time, π.map (fun γ => γ t)≤C • hausdorff n X) + (hm : ∀ m, RenyiDyadicMaximal (hausdorff n X) q (fun t => π.map (fun γ => γ t)) m) + {S : Set ℝ} (hS : MeasurableSet S) (κ : Measure C(Time,X)) + (heκ : κ=π.restrict {γ | dist (γ 0) (γ 1)∈S}) + {D : ℝ} (hD0 : 0≤D) (hD : ∀ᵐ γ ∂κ, dist (γ 0) (γ 1)≤D) : + ∀ t, κ.map (fun γ => γ t)≤compressionBudget K n D a.capacity • hausdorff n X := by + let : SeparableSpace X := hX.separable + let := a.left_probability + let := a.right_probability + have hκ : κ≤π := by rw [heκ]; exact Measure.restrict_le_self + let : IsFiniteMeasure κ := isFiniteMeasure_of_le π hκ + by_cases hκ0 : κ univ=0 + · have he : κ=0 := Measure.measure_univ_eq_zero.mp hκ0 + simp only [he,Measure.map_zero] + exact fun _ => bot_le + have hκtop : κ univ≠∞ := measure_ne_top κ univ + have he := optimalPlan_endpoints a.left a.right π hp + have hpp : IsOptimalCoupling (π.map (fun γ => γ 0)) (π.map (fun γ => γ 1)) + (π.map (fun γ => (γ 0,γ 1))) := by rw [he.1,he.2]; exact hp + have hfin := finite_second_moment_cost + (finiteSecondMoment_of_bounded a.left a.center a.left_support) + (finiteSecondMoment_of_bounded a.right a.center a.right_support) hp.1 hp.2.1 + let πn := (κ univ)⁻¹ • κ + obtain ⟨hπn,hgn,hpn,_⟩ := normalized_optimal_subplan π hg hpp hfin κ hκ hκ0 + let : IsProbabilityMeasure πn := hπn + have heval (t : Time) : πn.map (fun γ => γ t)=(κ univ)⁻¹ • κ.map (fun γ => γ t) := + Measure.map_smul _ (measurable_path_eval t).aemeasurable + obtain ⟨b,hb0,hb1,hbD,hbC⟩ := + hX.compressed_subplan_node_capacity K n hn a π hg hp hC hc κ hκ hκ0 hD0 hD + have hpb : IsOptimalCoupling b.left b.right (πn.map (fun γ => (γ 0,γ 1))) := by + rw [hb0,hb1,←heval,←heval]; exact hpn + have hmn (m) := hX.length_component_dyadic_maximal K n hn hq0 hq1 hC m a π inferInstance + hg hp hc (hm m) S hS κ heκ hκ0 + have hh := hX.maximal_tree_compression K n hn hq0 hq1 b πn hgn hpb hmn + rw [hbD,hbC] at hh + have hbudget : compressionBudget K n D ((κ univ)⁻¹*a.capacity)= + (κ univ)⁻¹*compressionBudget K n D a.capacity := by + unfold compressionBudget compressionStep + ring + intro t B + have hb := hh t B + rw [heval,hbudget] at hb + change (κ univ)⁻¹*(κ.map (fun γ => γ t)) B≤ + ((κ univ)⁻¹*compressionBudget K n D a.capacity)*(hausdorff n X) B at hb + change (κ.map (fun γ => γ t)) B≤compressionBudget K n D a.capacity*(hausdorff n X) B + calc + _ = κ univ*((κ univ)⁻¹*(κ.map (fun γ => γ t)) B) := by + rw [←mul_assoc,ENNReal.mul_inv_cancel hκ0 hκtop,one_mul] + _ ≤ κ univ*(((κ univ)⁻¹*compressionBudget K n D a.capacity)*(hausdorff n X) B) := + mul_le_mul' le_rfl hb + _ = _ := by rw [←mul_assoc,←mul_assoc,ENNReal.mul_inv_cancel hκ0 hκtop,one_mul] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/LengthComponentDyadic.lean b/lean/OAI/Geometry/RCD/Transport/LengthComponentDyadic.lean new file mode 100644 index 0000000000000000000000000000000000000000..1e0ef0ff32d378b230d5f4161562b63be18c5ae7 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/LengthComponentDyadic.lean @@ -0,0 +1,94 @@ +import OAI.Geometry.RCD.Transport.GlobalLengthRootMaximality +import OAI.Geometry.RCD.Transport.CompressedPlanChildren +import OAI.Geometry.RCD.Transport.LengthRestrictionSubpath + +namespace OAI + +/-! # Whole length components inherit all dyadic maximality + +Half-subpath restriction rescales the length label. The endpoint speed +identity therefore transfers every level of the actual variational tree. +-/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped ENNReal Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem NoncollapsedRCD.length_component_dyadic_maximal + (K : ℝ) (n : ℕ) (hn : 2≤n) (hX : NoncollapsedRCD K n X) + {q : ℝ} (hq0 : 0 (γ 0,γ 1))) → + (∀ t : Time, π.map (fun γ => γ t)≤C • hausdorff n X) → + RenyiDyadicMaximal (hausdorff n X) q (fun t => π.map (fun γ => γ t)) m → + ∀ (S : Set ℝ), MeasurableSet S → ∀ κ : Measure C(Time,X), + κ=π.restrict {γ | dist (γ 0) (γ 1)∈S} → κ univ≠0 → + RenyiDyadicMaximal (hausdorff n X) q + (fun t => ((κ univ)⁻¹ • κ).map (fun γ => γ t)) m := by + let : SeparableSpace X := hX.separable + let : CompleteSpace X := hX.complete + induction m with + | zero => intro a π hπ hg hp hc hm S hS κ heκ hκ0; trivial + | succ m ih => + intro a π hπ hg hp hc hm S hS κ heκ hκ0 + let := hπ + let : Nonempty X := ⟨a.center⟩ + let := a.left_probability + let := a.right_probability + have he := optimalPlan_endpoints a.left a.right π hp + have hr := hm.1 + dsimp only at hr + rw [he.1,he.2] at hr + have hroot := hX.global_root_length_component K n hn a π hg hp hC hc hS κ heκ hκ0 hq0 hq1 hr + obtain ⟨a₀,a₁,h00,h0m,h1m,h11,_,_⟩ := compressed_plan_children a π hg hp hC hc + have hpp : IsOptimalCoupling (π.map (fun γ => γ 0)) (π.map (fun γ => γ 1)) + (π.map (fun γ => (γ 0,γ 1))) := by rw [he.1,he.2]; exact hp + have hfin := finite_second_moment_cost + (finiteSecondMoment_of_bounded a.left a.center a.left_support) + (finiteSecondMoment_of_bounded a.right a.center a.right_support) hp.1 hp.2.1 + obtain ⟨hL,hgL,hpL⟩ := geodesic_subpath_law π hg hpp hfin 0 midpointTime + obtain ⟨hR,hgR,hpR⟩ := geodesic_subpath_law π hg hpp hfin midpointTime 1 + have hpL' : IsOptimalCoupling a₀.left a₀.right + ((π.map (subpath 0 midpointTime)).map (fun γ => (γ 0,γ 1))) := by rw [h00,h0m]; exact hpL + have hpR' : IsOptimalCoupling a₁.left a₁.right + ((π.map (subpath midpointTime 1)).map (fun γ => (γ 0,γ 1))) := by rw [h1m,h11]; exact hpR + have hcL (t : Time) : (π.map (subpath 0 midpointTime)).map (fun γ => γ t)≤C • hausdorff n X := by + rw [subpath_map_eval]; exact hc _ + have hcR (t : Time) : (π.map (subpath midpointTime 1)).map (fun γ => γ t)≤C • hausdorff n X := by + rw [subpath_map_eval]; exact hc _ + have hmL := hm.2.1.congr (fun t => (subpath_map_eval π 0 midpointTime t).symm) + have hmR := hm.2.2.congr (fun t => (subpath_map_eval π midpointTime 1 t).symm) + let T := (fun d : ℝ => 2*d) ⁻¹' S + have hT : MeasurableSet T := hS.preimage (measurable_const.mul measurable_id) + have hκL : κ.map (subpath 0 midpointTime)= + (π.map (subpath 0 midpointTime)).restrict {γ | dist (γ 0) (γ 1)∈T} := by + rw [heκ] + exact length_restriction_subpath π hg 0 midpointTime (by norm_num [midpointTime]) hS + have hκR : κ.map (subpath midpointTime 1)= + (π.map (subpath midpointTime 1)).restrict {γ | dist (γ 0) (γ 1)∈T} := by + rw [heκ] + exact length_restriction_subpath π hg midpointTime 1 (by norm_num [midpointTime]) hS + have hmass (s t : Time) : (κ.map (subpath s t)) univ=κ univ := by + rw [Measure.map_apply (subpath_measurable s t) MeasurableSet.univ,preimage_univ] + have hiL := ih a₀ _ hL hgL hpL' hcL hmL T hT _ hκL (by rwa [hmass]) + have hiR := ih a₁ _ hR hgR hpR' hcR hmR T hT _ hκR (by rwa [hmass]) + have heval (s t r : Time) : + (((κ.map (subpath s t)) univ)⁻¹ • κ.map (subpath s t)).map (fun γ => γ r)= + ((κ univ)⁻¹ • κ).map (fun γ => γ (timeSegment s t r)) := by + rw [Measure.map_smul _ (measurable_path_eval r).aemeasurable,hmass,subpath_map_eval, + Measure.map_smul _ (measurable_path_eval _).aemeasurable] + refine ⟨?_,hiL.congr (fun t => heval 0 midpointTime t), + hiR.congr (fun t => heval midpointTime 1 t)⟩ + simpa only [RenyiMidpointMaximal,RenyiMaximizingPlan, + Measure.map_smul _ (measurable_path_eval 0).aemeasurable, + Measure.map_smul _ (measurable_path_eval 1).aemeasurable] using hroot + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/LengthComponentIntegral.lean b/lean/OAI/Geometry/RCD/Transport/LengthComponentIntegral.lean new file mode 100644 index 0000000000000000000000000000000000000000..4f861c66be148754baf357c83042c1cd81869abd --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/LengthComponentIntegral.lean @@ -0,0 +1,75 @@ +import OAI.Geometry.RCD.Transport.ComponentScalarMidpoint + +namespace OAI + +/-! # Exact Rényi sums for finite length partitions + +Disjoint length bins give disjoint spatial components at every interior +time. No such assertion is made at the two endpoints. +-/ + +open Set Filter MeasureTheory Metric TopologicalSpace Function +open scoped Topology ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem sum_length_restrictions [SeparableSpace X] {ι : Type*} + (π : Measure C(Time,X)) (S : ι → Set ℝ) (s : Finset ι) + (hS : ∀ i, MeasurableSet (S i)) + (hd : (s : Set ι).Pairwise (Disjoint on S)) + (hcover : ∀ᵐ γ ∂π, ∃ i∈s, dist (γ 0) (γ 1)∈S i) : + (∑ i∈s, π.restrict {γ | dist (γ 0) (γ 1)∈S i})=π := by + classical + let A := fun i => {γ : C(Time,X) | dist (γ 0) (γ 1)∈S i} + have hA (i) : MeasurableSet (A i) := + (hS i).preimage ((measurable_path_eval 0).dist (measurable_path_eval 1)) + have hAd : (s : Set ι).Pairwise (Disjoint on A) := by + intro i hi j hj hij + exact (hd hi hj hij).preimage _ + have hae : ∀ᵐ γ ∂π, γ∈⋃ i∈s, A i := by + simpa only [mem_iUnion,exists_prop,A,mem_ofPred_eq] using hcover + change (∑ i∈s, π.restrict (A i))=π + rw [←Measure.sum_coe_finset,←Measure.restrict_biUnion_finset hAd hA] + exact Measure.restrict_eq_self_of_ae_mem hae + +theorem NoncollapsedRCD.length_partition_renyiIntegral + (K : ℝ) (n : ℕ) (hn : 2≤n) (hX : NoncollapsedRCD K n X) + (a : RenyiTransportNode n X) (π : Measure C(Time,X)) [IsProbabilityMeasure π] + (hg : ∀ᵐ γ ∂π, IsGeodesic γ) + (hp : IsOptimalCoupling a.left a.right (π.map (fun γ => (γ 0,γ 1)))) + {ι : Type*} (S : ι → Set ℝ) (s : Finset ι) (hS : ∀ i, MeasurableSet (S i)) + (hd : (s : Set ι).Pairwise (Disjoint on S)) + (hcover : ∀ᵐ γ ∂π, ∃ i∈s, dist (γ 0) (γ 1)∈S i) + {N : ℝ} (hN : 1 γ t)) N)= + renyiIntegral (hausdorff n X) (π.map (fun γ => γ t)) N := by + let : SeparableSpace X := hX.separable + let : IsProbabilityMeasure a.left := a.left_probability + let : IsProbabilityMeasure a.right := a.right_probability + let μ := hausdorff n X + let : IsLocallyFiniteMeasure μ := locallyFinite_of_finiteOnBounded μ hX.finiteOnBounded + let κ := fun i => π.restrict {γ | dist (γ 0) (γ 1)∈S i} + have hA (i) : MeasurableSet {γ : C(Time,X) | dist (γ 0) (γ 1)∈S i} := + (hS i).preimage ((measurable_path_eval 0).dist (measurable_path_eval 1)) + have hsep : ∀ i∈s, ∀ j∈s, i≠j → (κ i).map (fun γ => γ t) ⟂ₘ (κ j).map (fun γ => γ t) := by + intro i hi j hj hij + have hκi : ∀ᵐ γ ∂κ i, dist (γ 0) (γ 1)∈S i := ae_restrict_mem (hA i) + have hκj : ∀ᵐ γ ∂κ j, dist (γ 0) (γ 1)∉S i := + (ae_restrict_mem (hA j)).mono (fun γ hγ hx => Set.disjoint_left.mp (hd hi hj hij) hx hγ) + exact hX.optimal_components_mutuallySingular K n hn a.left a.right + (Measure.absolutelyContinuous_of_le_smul a.left_bound) a.center a.radius_nonneg + a.left_support a.right_support π π hg hg hp hp (κ i) (κ j) + Measure.restrict_le_self Measure.restrict_le_self ht0 ht1 (hS i) hκi hκj + have he := renyiIntegral_finset_additive μ (fun i => (κ i).map (fun γ => γ t)) s hsep hN + rw [←he,←Measure.map_finset_sum (measurable_path_eval t).aemeasurable] + congr 2 + exact sum_length_restrictions π S s hS hd hcover + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/LengthComponentNode.lean b/lean/OAI/Geometry/RCD/Transport/LengthComponentNode.lean new file mode 100644 index 0000000000000000000000000000000000000000..73ee15f87320a70700affd5bb122dcada9581af8 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/LengthComponentNode.lean @@ -0,0 +1,54 @@ +import OAI.Geometry.RCD.Transport.CompressedSubplanNode + +namespace OAI + +/-! # Component nodes retain the original endpoint density budget -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped ENNReal Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem NoncollapsedRCD.compressed_subplan_node_capacity + (K : ℝ) (n : ℕ) (hn : 2≤n) (hX : NoncollapsedRCD K n X) + (a : RenyiTransportNode n X) (π : Measure C(Time,X)) [IsProbabilityMeasure π] + (hg : ∀ᵐ γ ∂π, IsGeodesic γ) + (hp : IsOptimalCoupling a.left a.right (π.map (fun γ => (γ 0,γ 1)))) + {C : ℝ≥0∞} (hC : C≠∞) (hc : ∀ t : Time, π.map (fun γ => γ t)≤C • hausdorff n X) + (κ : Measure C(Time,X)) (hκ : κ≤π) (hκ0 : κ univ≠0) + {D : ℝ} (hD0 : 0≤D) (hD : ∀ᵐ γ ∂κ, dist (γ 0) (γ 1)≤D) : + ∃ b : RenyiTransportNode n X, + b.left=(κ univ)⁻¹ • κ.map (fun γ => γ 0) ∧ + b.right=(κ univ)⁻¹ • κ.map (fun γ => γ 1) ∧ b.distance=D ∧ + b.capacity=(κ univ)⁻¹*a.capacity := by + let : SeparableSpace X := hX.separable + obtain ⟨b,hb0,hb1,hbD⟩ := hX.compressed_subplan_node K n hn a π hg hp hC hc κ hκ hκ0 hD0 hD + have he := optimalPlan_endpoints a.left a.right π hp + let c := (κ univ)⁻¹*a.capacity + have hcf : c≠∞ := ENNReal.mul_ne_top (ENNReal.inv_ne_top.mpr hκ0) a.capacity_finite + have hend (t : Time) (ht : t=0 ∨ t=1) : π.map (fun γ => γ t)≤a.capacity • hausdorff n X := by + rcases ht with rfl | rfl + · rw [he.1]; exact a.left_bound + · rw [he.2]; exact a.right_bound + have hcκ (t : Time) (ht : t=0 ∨ t=1) : + (κ univ)⁻¹ • κ.map (fun γ => γ t)≤c • hausdorff n X := by + intro B + change (κ univ)⁻¹*(κ.map (fun γ => γ t)) B≤c*(hausdorff n X) B + calc + _ ≤ (κ univ)⁻¹*(π.map (fun γ => γ t)) B := + mul_le_mul' le_rfl (Measure.map_mono hκ (measurable_path_eval t) B) + _ ≤ (κ univ)⁻¹*(a.capacity*(hausdorff n X) B) := mul_le_mul' le_rfl (hend t ht B) + _ = _ := (mul_assoc _ _ _).symm + let bC : RenyiTransportNode n X := { b with + capacity:=c, capacity_finite:=hcf, + left_bound:=by rw [hb0]; exact hcκ 0 (Or.inl rfl), + right_bound:=by rw [hb1]; exact hcκ 1 (Or.inr rfl) } + exact ⟨bC,hb0,hb1,hbD,rfl⟩ + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/LengthReplacementSeparation.lean b/lean/OAI/Geometry/RCD/Transport/LengthReplacementSeparation.lean new file mode 100644 index 0000000000000000000000000000000000000000..08b1a7f115283a1a8c80ad2c0cf8732f809ddde8 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/LengthReplacementSeparation.lean @@ -0,0 +1,61 @@ +import OAI.Geometry.RCD.Transport.OptimalComponentSeparation + +namespace OAI + +/-! # Length-preserving replacements remain separated from untouched mass + +Fixing one interior component marginal preserves its length class. Every +other interior marginal of that replacement is therefore singular to the +untouched complementary component. This supplies the geometric premise +of the proved Rényi subplan comparison. +-/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped Topology ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem NoncollapsedRCD.length_replacement_separated + (K : ℝ) (n : ℕ) (hn : 2≤n) (hX : NoncollapsedRCD K n X) + (ν₀ ν₁ : Measure X) [IsProbabilityMeasure ν₀] [IsProbabilityMeasure ν₁] + (hac : ν₀ ≪ hausdorff n X) (p : X) {R : ℝ} (hR : 0≤R) + (hs0 : ∀ᵐ x ∂ν₀, dist x p≤R) (hs1 : ∀ᵐ x ∂ν₁, dist x p≤R) + (π : Measure C(Time,X)) [IsProbabilityMeasure π] + (hgπ : ∀ᵐ γ ∂π, IsGeodesic γ) + (hpπ : IsOptimalCoupling ν₀ ν₁ (π.map (fun γ => (γ 0,γ 1)))) + {S : Set ℝ} (hS : MeasurableSet S) + (κ τ : Measure C(Time,X)) (hκeq : κ=π.restrict {γ | dist (γ 0) (γ 1)∈S}) + (ht : IsOptimalCoupling (κ.map (fun γ => γ 0)) (κ.map (fun γ => γ 1)) + (τ.map (fun γ => (γ 0,γ 1)))) (hgt : ∀ᵐ γ ∂τ, IsGeodesic γ) + {t u : Time} (ht0 : 0<(t:ℝ)) (ht1 : (t:ℝ)<1) + (he : κ.map (fun γ => γ t)=τ.map (fun γ => γ t)) + (hu0 : 0<(u:ℝ)) (hu1 : (u:ℝ)<1) : + (π-κ).map (fun γ => γ u) ⟂ₘ τ.map (fun γ => γ u) := by + let : SeparableSpace X := hX.separable + have hA : MeasurableSet {γ : C(Time,X) | dist (γ 0) (γ 1)∈S} := + hS.preimage ((measurable_path_eval 0).dist (measurable_path_eval 1)) + have hκ : κ≤π := by rw [hκeq]; exact Measure.restrict_le_self + let : IsFiniteMeasure κ := isFiniteMeasure_of_le π hκ + obtain ⟨hρ,hgρ,hpρ⟩ := optimalPlan_replace_subplan hpπ hgπ hκ ht hgt + let ρ := π-κ+τ + let : IsProbabilityMeasure ρ := hρ + have hτ : τ≤ρ := Measure.le_add_left le_rfl + have hκS : ∀ᵐ γ ∂κ, dist (γ 0) (γ 1)∈S := by + rw [hκeq] + exact ae_restrict_mem hA + have hτS := hX.optimal_submeasure_length_transfer K n hn ν₀ ν₁ hac p hR hs0 hs1 + π ρ hgπ hgρ hpπ hpρ κ τ hκ hτ ht0 ht1 he hS hκS + have hresid : ∀ᵐ γ ∂π-κ, dist (γ 0) (γ 1)∉S := by + apply ae_iff.mpr + simp only [not_not] + rw [Measure.sub_apply hA hκ,hκeq,Measure.restrict_apply hA,inter_self,tsub_self] + exact (hX.optimal_components_mutuallySingular K n hn ν₀ ν₁ hac p hR hs0 hs1 + ρ π hgρ hgπ hpρ hpπ τ (π-κ) hτ Measure.sub_le hu0 hu1 hS hτS hresid).symm + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/LengthRestrictionSubpath.lean b/lean/OAI/Geometry/RCD/Transport/LengthRestrictionSubpath.lean new file mode 100644 index 0000000000000000000000000000000000000000..e081581afb66578d7154bbad66d5bb37ad7600ef --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/LengthRestrictionSubpath.lean @@ -0,0 +1,34 @@ +import OAI.Geometry.RCD.Transport.OptimalLengthLaw + +namespace OAI + +/-! # Restricting length classes commutes with either half subpath -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped ENNReal Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [SeparableSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem length_restriction_subpath + (π : Measure C(Time,X)) (hg : ∀ᵐ γ ∂π, IsGeodesic γ) + (s t : Time) (hst : |(s:ℝ)-(t:ℝ)|=1/2) + {S : Set ℝ} (hS : MeasurableSet S) : + (π.restrict {γ | dist (γ 0) (γ 1)∈S}).map (subpath s t)= + (π.map (subpath s t)).restrict {γ | 2*dist (γ 0) (γ 1)∈S} := by + have hA : MeasurableSet {γ : C(Time,X) | 2*dist (γ 0) (γ 1)∈S} := + hS.preimage (measurable_const.mul ((measurable_path_eval 0).dist (measurable_path_eval 1))) + rw [Measure.restrict_map (subpath_measurable s t) hA] + apply congrArg (fun ν : Measure C(Time,X) => ν.map (subpath s t)) + apply Measure.restrict_congr_set + filter_upwards [hg] with γ hγ + simp only [mem_ofPred_eq,mem_preimage,subpath_zero,subpath_one,hγ s t,hst] + congr 1 + ring + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/LengthRootMaximality.lean b/lean/OAI/Geometry/RCD/Transport/LengthRootMaximality.lean new file mode 100644 index 0000000000000000000000000000000000000000..39c5babc5dfdae3322dbf8dd2c65bbda5b0c969a --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/LengthRootMaximality.lean @@ -0,0 +1,82 @@ +import OAI.Geometry.RCD.Transport.OptimalInitialSubmeasure +import OAI.Geometry.RCD.Coordinates.RenyiNormalizedComparison +import OAI.Geometry.RCD.Transport.OptimalComponentSeparation + +namespace OAI + +/-! # Maximality of an entire length component + +The initial speed identity ensures that any optimal replacement stays in +the same length class. Its interior mass is disjoint from the untouched +class, so exact Rényi additivity transfers maximality to the component. +-/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped ENNReal Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem NoncollapsedRCD.renyi_root_length_component_maximal + (K : ℝ) (n : ℕ) (hn : 2≤n) (hX : NoncollapsedRCD K n X) + (a : RenyiTransportNode n X) (π : Measure C(Time,X)) [IsProbabilityMeasure π] + (hg : ∀ᵐ γ ∂π, IsGeodesic γ) + (hp : IsOptimalCoupling a.left a.right (π.map (fun γ => (γ 0,γ 1)))) + {C : ℝ≥0∞} (hC : C≠∞) (hc : ∀ t : Time, π.map (fun γ => γ t)≤C • hausdorff n X) + (μ : Measure X) [IsFiniteMeasure μ] + {S : Set ℝ} (hS : MeasurableSet S) + (κ : Measure C(Time,X)) (hκeq : κ=π.restrict {γ | dist (γ 0) (γ 1)∈S}) + (hκ0 : κ univ≠0) {q : ℝ} (hq0 : 0 γ 0)) + ((κ univ)⁻¹ • κ.map (fun γ => γ 1)) ((κ univ)⁻¹ • κ) midpointTime q := by + let : SeparableSpace X := hX.separable + let := a.left_probability + let := a.right_probability + have hκ : κ≤π := by rw [hκeq]; exact Measure.restrict_le_self + let : IsFiniteMeasure κ := isFiniteMeasure_of_le π hκ + have hκtop : κ univ≠∞ := measure_ne_top κ univ + have hA : MeasurableSet {γ : C(Time,X) | dist (γ 0) (γ 1)∈S} := + hS.preimage ((measurable_path_eval 0).dist (measurable_path_eval 1)) + have hκS : ∀ᵐ γ ∂κ, dist (γ 0) (γ 1)∈S := by rw [hκeq]; exact ae_restrict_mem hA + have hres : ∀ᵐ γ ∂π-κ, dist (γ 0) (γ 1)∉S := by + apply ae_iff.mpr + simp only [not_not] + rw [Measure.sub_apply hA hκ,hκeq,Measure.restrict_apply hA,inter_self,tsub_self] + have hac : a.left ≪ hausdorff n X := Measure.absolutelyContinuous_of_le_smul a.left_bound + have hsκ := (hX.optimal_components_mutuallySingular K n hn a.left a.right hac + a.center a.radius_nonneg a.left_support a.right_support π π hg hg hp hp + κ (π-κ) hκ Measure.sub_le (t:=midpointTime) (by norm_num [midpointTime]) + (by norm_num [midpointTime]) hS hκS hres).symm + intro σ hσ hgσ hpσ + let := hσ + let τ := κ univ • σ + have hτ : IsOptimalCoupling (κ.map (fun γ => γ 0)) (κ.map (fun γ => γ 1)) + (τ.map (fun γ => (γ 0,γ 1))) := by + have hh := hpσ.smul hκ0 hκtop + simpa only [τ,Measure.map_smul _ ((measurable_path_eval 0).prodMk (measurable_path_eval 1)).aemeasurable, + smul_smul,ENNReal.mul_inv_cancel hκ0 hκtop,one_smul] using hh + have hgτ : ∀ᵐ γ ∂τ, IsGeodesic γ := hgσ.filter_mono Measure.smul_absolutelyContinuous.ae_le + obtain ⟨hρ,hgρ,hpρ⟩ := optimalPlan_replace_subplan hp hg hκ hτ hgτ + let ρ := π-κ+τ + let : IsProbabilityMeasure ρ := hρ + have hτle : τ≤ρ := Measure.le_add_left le_rfl + have hτS := hX.optimal_initial_submeasure_length_transfer K n hn a π ρ hg hgρ hp hpρ + hC hc κ τ hκ hτle (optimalPlan_endpoints _ _ τ hτ).1.symm hS hκS + have hsτ := (hX.optimal_components_mutuallySingular K n hn a.left a.right hac + a.center a.radius_nonneg a.left_support a.right_support ρ π hgρ hg hpρ hp + τ (π-κ) hτle Measure.sub_le (t:=midpointTime) (by norm_num [midpointTime]) + (by norm_num [midpointTime]) hS hτS hres).symm + have hsσ : (π-κ).map (fun γ => γ midpointTime) ⟂ₘ σ.map (fun γ => γ midpointTime) := by + rw [show τ.map (fun γ => γ midpointTime)=κ univ • σ.map (fun γ => γ midpointTime) from + Measure.map_smul _ (measurable_path_eval midpointTime).aemeasurable] at hsτ + exact hsτ.mono_ac Measure.AbsolutelyContinuous.rfl (Measure.absolutelyContinuous_smul hκ0) + simpa only [Measure.map_smul _ (measurable_path_eval midpointTime).aemeasurable] using + hmax.normalized_subplan_comparison μ hq0 hq1 hg hp hκ hκ0 hpσ hgσ hsκ hsσ + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/LocalBochnerTransport.lean b/lean/OAI/Geometry/RCD/Transport/LocalBochnerTransport.lean new file mode 100644 index 0000000000000000000000000000000000000000..ec63dd13dfe74a717575d616f851ae7205447fb8 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/LocalBochnerTransport.lean @@ -0,0 +1,144 @@ +import OAI.Geometry.RCD.Coordinates.ExactNormalizationComparison +import OAI.Geometry.RCD.Sobolev.LocalBochnerInput +import OAI.Geometry.RCD.Harmonic.TransformedColumns +import OAI.Geometry.RCD.Coordinates.NormalizedBochnerMass + +namespace OAI + +/-! +# Transport of the canonical Bochner family + +One positive bilinear measure supplies every local coordinate normalization. +Restriction and linear coordinate changes preserve this measure and its +singular part through the corresponding pullbacks. +-/ + +open Set Metric MeasureTheory +open scoped NNReal InnerProductSpace + +noncomputable section + +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] [FiniteDimensional ℝ E] + {U : E →L[ℝ] SobolevSpace μ hQ} {M : PositiveBilinearMeasure X E} + {κ : ℝ} {p : X} {r : ℝ} {L : ℝ≥0} {v : E} + +/-- Restriction keeps the same energy representative and the same measure. -/ +def LocalHarmonicEnergy.restrict + (G : LocalHarmonicEnergy μ hQ U M κ p r L v) + {q : X} {s : ℝ} (hsub : ball q (2 * s) ⊆ ball p (2 * r)) : + LocalHarmonicEnergy μ hQ U M κ q s L v where + energy := G.energy + representative := ae_restrict_of_ae_restrict_of_subset hsub G.representative + bounded := G.bounded + measure_laplacian φ w hw hws hwsub hwφ := + G.measure_laplacian φ w hw hws (hwsub.trans hsub) hwφ + +/-- Linear coordinate changes pull back the full positive measure, including +its singular part. The global extension bound pays only the operator norm. -/ +def LocalHarmonicEnergy.comp (A : E →L[ℝ] E) + (G : LocalHarmonicEnergy μ hQ U M κ p r L (A v)) : + LocalHarmonicEnergy μ hQ (U.comp A) (M.comap A.toLinearMap) κ p r (L * ‖A‖₊) v where + energy := G.energy + representative := G.representative + bounded := by + filter_upwards [G.bounded] with x hx + apply hx.trans + simp only [NNReal.coe_mul, NNReal.coe_pow, coe_nnnorm] + calc + (L : ℝ) ^ 2 * ‖A v‖ ^ 2 ≤ (L : ℝ) ^ 2 * (‖A‖ * ‖v‖) ^ 2 := + mul_le_mul_of_nonneg_left (pow_le_pow_left₀ (norm_nonneg _) (A.le_opNorm v) 2) (sq_nonneg _) + _ = _ := by ring + measure_laplacian := G.measure_laplacian + +/-- A normalized splitting error controls the original Bochner measure +in the transformed direction. All scales use the same original measure. -/ +theorem transformed_harmonic_mass_le [IsFiniteMeasureOnCompacts μ] + {n : ℕ} (u : Fin n → SobolevSpace μ hQ) + (M : PositiveBilinearMeasure X (Euclidean n)) + {p : X} {r ρ C κ : ℝ} {L : ℝ≥0} + (G : ∀ v, LocalHarmonicEnergy μ hQ (sobolevColumnMap μ hQ u) M κ p r L v) + (A : Euclidean n ≃L[ℝ] Euclidean n) + (χ : GoodLaplacianCutoff μ hQ p ρ C) + (hρ : 0 < ρ) (hρr : ρ < r) (hC : 0 ≤ C) (hκ : 0 ≤ κ) + {ε : ℝ} (hε : 0 ≤ ε) + (herror : ∀ i j : Fin n, ∫ x in closedBall p (2 * ρ), + |localGamma μ hQ (transformedColumn μ hQ u A i) + (transformedColumn μ hQ u A j) x - (if i = j then 1 else 0)| ∂μ ≤ ε) + (v : Euclidean n) : + ⟪A v, M.massOperator (ball p ρ) (A v)⟫_ℝ ≤ + ((C / ρ ^ 2) * ((n : ℝ) ^ 2 * ε) / 2 + + κ * ((n : ℝ) ^ 2 * ε + μ.real (closedBall p (2 * ρ)))) * ‖v‖ ^ 2 := by + have hG (v : Euclidean n) : LocalHarmonicEnergy μ hQ + (sobolevColumnMap μ hQ (transformedColumn μ hQ u A)) + (M.comap A.toLinearMap) κ p r (L * ‖(A : Euclidean n →L[ℝ] Euclidean n)‖₊) v := by + rw [sobolevColumnMap_transformed] + exact (G (A v)).comp μ hQ (A : Euclidean n →L[ℝ] Euclidean n) + have h := χ.harmonic_mass_le μ hQ hρ hρr hC hκ (transformedColumn μ hQ u A) + (M.comap A.toLinearMap) hG hε herror v + have he : (M.comap A.toLinearMap).massOperator (ball p ρ) = + (A : Euclidean n →L[ℝ] Euclidean n).adjoint.comp + ((M.massOperator (ball p ρ)).comp (A : Euclidean n →L[ℝ] Euclidean n)) := + M.comap_massOperator (A : Euclidean n →L[ℝ] Euclidean n) (ball p ρ) + rw [he] at h + simpa only [ContinuousLinearMap.comp_apply, + ContinuousLinearMap.adjoint_inner_right, ContinuousLinearEquiv.coe_coe] using h + +/-- The dimensionless splitting estimate applies to the same original +measure in every transformed direction. -/ +theorem transformed_normalized_bochner_mass_le [IsFiniteMeasureOnCompacts μ] + {n : ℕ} (u : Fin n → SobolevSpace μ hQ) + (M : PositiveBilinearMeasure X (Euclidean n)) + {p : X} {r ε C κ : ℝ} {L : ℝ≥0} + (G : ∀ v, LocalHarmonicEnergy μ hQ (sobolevColumnMap μ hQ u) M κ p r L v) + (A : Euclidean n ≃L[ℝ] Euclidean n) {w : X → Euclidean n} + (h : FirstOrderSplittingOn μ hQ p (8 * r) ε (transformedColumn μ hQ u A) w) + (hr : 0 < r) (hε : 0 ≤ ε) (hC : 0 ≤ C) (hκ : 0 ≤ κ) + (hvol : 0 < μ.real (ball p (8 * r))) + (χ : GoodLaplacianCutoff μ hQ p (r / 2) C) (v : Euclidean n) : + (r ^ 2 / μ.real (ball p (8 * r))) * ⟪A v, M.massOperator (ball p (r / 2)) (A v)⟫_ℝ ≤ + (2 * C * (n : ℝ) ^ 2 * ε + κ * r ^ 2 * ((n : ℝ) ^ 2 * ε + 1)) * ‖v‖ ^ 2 := by + have hG (v : Euclidean n) : LocalHarmonicEnergy μ hQ + (sobolevColumnMap μ hQ (transformedColumn μ hQ u A)) + (M.comap A.toLinearMap) κ p r (L * ‖(A : Euclidean n →L[ℝ] Euclidean n)‖₊) v := by + rw [sobolevColumnMap_transformed] + exact (G (A v)).comp μ hQ (A : Euclidean n →L[ℝ] Euclidean n) + have hb := splitting_normalized_bochner_mass_le μ hQ h hr hε hC hκ hvol χ + (M.comap A.toLinearMap) hG v + have he : (M.comap A.toLinearMap).massOperator (ball p (r / 2)) = + (A : Euclidean n →L[ℝ] Euclidean n).adjoint.comp + ((M.massOperator (ball p (r / 2))).comp (A : Euclidean n →L[ℝ] Euclidean n)) := + M.comap_massOperator (A : Euclidean n →L[ℝ] Euclidean n) (ball p (r / 2)) + rw [he] at hb + simpa only [ContinuousLinearMap.comp_apply, + ContinuousLinearMap.adjoint_inner_right, ContinuousLinearEquiv.coe_coe] using hb + +/-- Returning from exact normalized directions gives a relative mass +bound in the original mean Gram. -/ +theorem original_gram_bochner_mass_le [IsFiniteMeasureOnCompacts μ] + {n : ℕ} (u : Fin n → SobolevSpace μ hQ) + (M : PositiveBilinearMeasure X (Euclidean n)) + {p : X} {r ε C κ : ℝ} {L : ℝ≥0} + (G : ∀ v, LocalHarmonicEnergy μ hQ (sobolevColumnMap μ hQ u) M κ p r L v) + (A : Euclidean n ≃L[ℝ] Euclidean n) {w : X → Euclidean n} + (h : FirstOrderSplittingOn μ hQ p (8 * r) ε (transformedColumn μ hQ u A) w) + (hexact : IsExactMeanNormalization μ hQ (sobolevColumnMap μ hQ u) + (ball p (8 * r)) measurableSet_ball A) + (hr : 0 < r) (hε : 0 ≤ ε) (hC : 0 ≤ C) (hκ : 0 ≤ κ) + (hvol : 0 < μ.real (ball p (8 * r))) + (χ : GoodLaplacianCutoff μ hQ p (r / 2) C) (v : Euclidean n) : + (r ^ 2 / μ.real (ball p (8 * r))) * ⟪v, M.massOperator (ball p (r / 2)) v⟫_ℝ ≤ + (2 * C * (n : ℝ) ^ 2 * ε + κ * r ^ 2 * ((n : ℝ) ^ 2 * ε + 1)) * + ⟪v, sobolevMeanGram μ hQ (sobolevColumnMap μ hQ u) (ball p (8 * r)) measurableSet_ball v⟫_ℝ := by + have hb := transformed_normalized_bochner_mass_le μ hQ u M G A h hr hε hC hκ hvol χ (A.symm v) + simpa only [ContinuousLinearEquiv.apply_symm_apply, + exact_mean_inverse_norm_sq μ hQ (sobolevColumnMap μ hQ u) (ball p (8 * r)) measurableSet_ball A hexact v] using hb + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/LocalFeatureConvexImage.lean b/lean/OAI/Geometry/RCD/Transport/LocalFeatureConvexImage.lean new file mode 100644 index 0000000000000000000000000000000000000000..53a372aede49878a37014658319e55f9a443cbb5 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/LocalFeatureConvexImage.lean @@ -0,0 +1,51 @@ +import OAI.Geometry.RCD.Transport.LocalMidpointFeatures +import OAI.Geometry.RCD.Transport.ClosedMidpointConvex + +namespace OAI + +/-! # Compact convex images of the local distance coordinates -/ + +open Set Metric +noncomputable section +namespace RegularPointCoordinates +variable {Y : Type*} [MetricSpace Y] {q : Y} + +def localDistanceFeature (q x : Y) : ball q (1:ℝ) → ℝ := + fun z => quadraticDistanceFeature q x z + +theorem continuous_localDistanceFeature (q : Y) : Continuous (localDistanceFeature q) := by + apply continuous_pi + intro z + dsimp only [localDistanceFeature,quadraticDistanceFeature] + fun_prop + +variable [ProperSpace Y] + +theorem compact_local_feature_image (q : Y) (ρ : ℝ) : + IsCompact (localDistanceFeature q '' closedBall q ρ) := + (isCompact_closedBall q ρ).image (continuous_localDistanceFeature q) + +theorem LocalQuadraticMidpointGeometry.convex_local_feature_image + (G : LocalQuadraticMidpointGeometry q) {ρ : ℝ} (hρ : 0 ≤ ρ) (hρhalf : ρ < 1/2) : + Convex ℝ (localDistanceFeature q '' closedBall q ρ) := by + apply isClosed_convex_of_midpoints (compact_local_feature_image q ρ).isClosed + rintro _ ⟨x,hx,rfl⟩ _ ⟨y,hy,rfl⟩ + let x' : ball q (1/2:ℝ) := ⟨x,hx.trans_lt hρhalf⟩ + let y' : ball q (1/2:ℝ) := ⟨y,hy.trans_lt hρhalf⟩ + let z := G.mid x' y' + have hz : (z:Y) ∈ closedBall q ρ := by + have hh := G.quadratic x' y' q (by simp) + change dist q (z:Y)^2 = (dist q x^2+dist q y^2)/2-dist x y^2/4 at hh + simp only [dist_comm q] at hh + have hx2 := pow_le_pow_left₀ dist_nonneg hx 2 + have hy2 := pow_le_pow_left₀ dist_nonneg hy 2 + apply (sq_le_sq₀ dist_nonneg hρ).mp + nlinarith [sq_nonneg (dist x y)] + refine ⟨z,hz,?_⟩ + exact G.feature_mid x' y' + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/LocalFeatureInner.lean b/lean/OAI/Geometry/RCD/Transport/LocalFeatureInner.lean new file mode 100644 index 0000000000000000000000000000000000000000..4260d96d1e68c6dd682074b2d54fbeed993c06a6 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/LocalFeatureInner.lean @@ -0,0 +1,73 @@ +import OAI.Geometry.RCD.Transport.LocalFeatureSpace +import Mathlib.Analysis.InnerProductSpace.Basic + +namespace OAI + +/-! # The positive definite pairing supplied by local distance coordinates -/ + +open Set Metric +noncomputable section +namespace RegularPointCoordinates.LocalQuadraticMidpointGeometry +variable {Y : Type*} [MetricSpace Y] [ProperSpace Y] {q : Y} + (G : LocalQuadraticMidpointGeometry q) + +theorem localInner_add_left (u v w : G.localFeatureSpace) : + G.localInner (u+v) w = G.localInner u w+G.localInner v w := by + dsimp only [localInner] + change _ * (((u:ball q (1:ℝ)→ℝ) _ + (v:ball q (1:ℝ)→ℝ) _) - + ((u:ball q (1:ℝ)→ℝ) _ + (v:ball q (1:ℝ)→ℝ) _)) = _ + ring + +theorem localInner_smul_left (u v : G.localFeatureSpace) (c : ℝ) : + G.localInner (c • u) v = c * G.localInner u v := by + dsimp only [localInner] + change _ * (c * (u:ball q (1:ℝ)→ℝ) _ - c * (u:ball q (1:ℝ)→ℝ) _) = _ + ring + +theorem localInner_definite (u : G.localFeatureSpace) (hu : G.localInner u u = 0) : u = 0 := by + have he := G.localInner_self u + rw [hu] at he + rcases mul_eq_zero.mp he.symm with hs | hd + · have hs0 := sq_eq_zero_iff.mp hs + apply Subtype.ext + rw [(G.featureRepresentation u).eq_feature,hs0,zero_smul] + rfl + · have hd0 := sq_eq_zero_iff.mp hd + have hxy : (G.featureRepresentation u).first = (G.featureRepresentation u).second := + Subtype.ext (dist_eq_zero.mp hd0) + apply Subtype.ext + rw [(G.featureRepresentation u).eq_feature,hxy,sub_self,smul_zero] + rfl + +@[instance_reducible] def localFeatureInnerCore : InnerProductSpace.Core ℝ G.localFeatureSpace where + inner := G.localInner + conj_inner_symm u v := by + change G.localInner v u = G.localInner u v + exact G.localInner_symm v u + re_inner_nonneg u := by + change 0 ≤ G.localInner u u + rw [G.localInner_self] + positivity + add_left := G.localInner_add_left + smul_left := G.localInner_smul_left + definite := G.localInner_definite + +def featureVector (x : closedBall q (1/4:ℝ)) : G.localFeatureSpace := + ⟨localDistanceFeature q x,mem_convexDifferenceSpace _ _ _ ⟨x,x.property,rfl⟩⟩ + +theorem localInner_featureVectors (x y : closedBall q (1/4:ℝ)) : + G.localInner (G.featureVector x) (G.featureVector y) = quadraticDistanceFeature q x y := by + let r := G.featureRepresentation (G.featureVector y) + change r.scale * (quadraticDistanceFeature q x r.first-quadraticDistanceFeature q x r.second) = _ + rw [quadraticDistanceFeature_symm q (x:Y) (r.first:Y), + quadraticDistanceFeature_symm q (x:Y) (r.second:Y)] + have hh := G.representation_eval (G.featureVector y) (featureTestPoint x) + change quadraticDistanceFeature q y x = + r.scale * (quadraticDistanceFeature q r.first x-quadraticDistanceFeature q r.second x) at hh + exact hh.symm.trans (quadraticDistanceFeature_symm q (y:Y) (x:Y)) + +end RegularPointCoordinates.LocalQuadraticMidpointGeometry + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/LocalFeatureSpace.lean b/lean/OAI/Geometry/RCD/Transport/LocalFeatureSpace.lean new file mode 100644 index 0000000000000000000000000000000000000000..8e248a36136db03ea2233625ff53148edb1d691d --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/LocalFeatureSpace.lean @@ -0,0 +1,84 @@ +import OAI.Geometry.RCD.Transport.LocalFeatureConvexImage +import OAI.Geometry.RCD.Sobolev.ConvexDifferenceSpace + +namespace OAI + +/-! # The vector space generated by local squared-distance coordinates -/ + +open Set Metric +noncomputable section +namespace RegularPointCoordinates.LocalQuadraticMidpointGeometry +variable {Y : Type*} [MetricSpace Y] [ProperSpace Y] {q : Y} + (G : LocalQuadraticMidpointGeometry q) + +omit [ProperSpace Y] in +private theorem zero_in_image : (0 : ball q (1:ℝ) → ℝ) ∈ + localDistanceFeature q '' closedBall q (1/4:ℝ) := by + refine ⟨q,by simp,?_⟩ + funext z + exact congrFun (quadraticDistanceFeature_self q) z + +def localFeatureSpace : Submodule ℝ (ball q (1:ℝ) → ℝ) := + convexDifferenceSpace (localDistanceFeature q '' closedBall q (1/4:ℝ)) + (G.convex_local_feature_image (by norm_num) (by norm_num)) zero_in_image + +structure FeatureRepresentation (u : G.localFeatureSpace) where + scale : ℝ + nonneg : 0 ≤ scale + first : closedBall q (1/4:ℝ) + second : closedBall q (1/4:ℝ) + eq_feature : (u : ball q (1:ℝ) → ℝ) = + scale • (localDistanceFeature q first-localDistanceFeature q second) + +theorem exists_featureRepresentation (u : G.localFeatureSpace) : + Nonempty (G.FeatureRepresentation u) := by + obtain ⟨a,ha,f,hf,g,hg,he⟩ := u.property + obtain ⟨x,hx,rfl⟩ := hf + obtain ⟨y,hy,rfl⟩ := hg + exact ⟨⟨a,ha,⟨x,hx⟩,⟨y,hy⟩,he⟩⟩ + +def featureRepresentation (u : G.localFeatureSpace) : G.FeatureRepresentation u := + Classical.choice (G.exists_featureRepresentation u) + +omit G in +def featureTestPoint (x : closedBall q (1/4:ℝ)) : ball q (1:ℝ) := + ⟨x,x.property.trans_lt (by norm_num : (1/4:ℝ)<1)⟩ + +theorem representation_eval (u : G.localFeatureSpace) (z : ball q (1:ℝ)) : + (u : ball q (1:ℝ) → ℝ) z = + (G.featureRepresentation u).scale * + (quadraticDistanceFeature q (G.featureRepresentation u).first z- + quadraticDistanceFeature q (G.featureRepresentation u).second z) := by + have hh := congrFun (G.featureRepresentation u).eq_feature z + exact hh + +def localInner (u v : G.localFeatureSpace) : ℝ := + (G.featureRepresentation v).scale * + ((u : ball q (1:ℝ) → ℝ) (featureTestPoint (G.featureRepresentation v).first)- + (u : ball q (1:ℝ) → ℝ) (featureTestPoint (G.featureRepresentation v).second)) + +theorem localInner_symm (u v : G.localFeatureSpace) : G.localInner u v = G.localInner v u := by + dsimp only [localInner] + rw [G.representation_eval,G.representation_eval,G.representation_eval,G.representation_eval] + dsimp only [featureTestPoint] + rw [quadraticDistanceFeature_symm q (G.featureRepresentation u).first (G.featureRepresentation v).first, + quadraticDistanceFeature_symm q (G.featureRepresentation u).second (G.featureRepresentation v).first, + quadraticDistanceFeature_symm q (G.featureRepresentation u).first (G.featureRepresentation v).second, + quadraticDistanceFeature_symm q (G.featureRepresentation u).second (G.featureRepresentation v).second] + ring + +theorem localInner_self (u : G.localFeatureSpace) : G.localInner u u = + (G.featureRepresentation u).scale^2 * + dist ((G.featureRepresentation u).first:Y) ((G.featureRepresentation u).second:Y)^2 := by + dsimp only [localInner] + rw [G.representation_eval,G.representation_eval] + dsimp only [featureTestPoint,quadraticDistanceFeature] + rw [dist_self,dist_self,dist_comm ((G.featureRepresentation u).second:Y) + ((G.featureRepresentation u).first:Y)] + ring + +end RegularPointCoordinates.LocalQuadraticMidpointGeometry + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/LocalHarmonicBoundedPlan.lean b/lean/OAI/Geometry/RCD/Transport/LocalHarmonicBoundedPlan.lean new file mode 100644 index 0000000000000000000000000000000000000000..153bcb736e1857e021ee2eb79ac1e3e9add00edc --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/LocalHarmonicBoundedPlan.lean @@ -0,0 +1,66 @@ +import OAI.Geometry.RCD.Transport.LocalHarmonicOptimalMean +import OAI.Geometry.RCD.Metric.DominatedCompactProbability +import OAI.Geometry.RCD.Transport.CompressedFiniteUnique + +namespace OAI + +/-! # Affine local harmonic means for bounded ambient endpoint laws -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped Topology NNReal ENNReal +noncomputable section +namespace RegularPointCoordinates.NoncollapsedRCD +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + {n : ℕ} (hX : NoncollapsedRCD 0 n X) (hn : 2 ≤ n) (p : X) [SeparableSpace X] + [IsLocallyFiniteMeasure (hausdorff n X)] [(hausdorff n X).Regular] +attribute [local instance] pathBorel pathBorelSpace + +include hn in +theorem local_harmonic_mean_on_bounded_plan + (π : Measure C(Time,X)) [IsProbabilityMeasure π] + (hgeo : ∀ᵐ γ ∂π, IsGeodesic γ) + (hopt : IsOptimalCoupling (π.map (fun γ => γ 0)) (π.map (fun γ => γ 1)) + (π.map (fun γ => (γ 0,γ 1)))) + {C : ℝ≥0∞} (hC : C ≠ ∞) + (hcomp : ∀ t : Time, π.map (fun γ => γ t) ≤ C • hausdorff n X) + {R : ℝ} (hR : 1 ≤ R) + (hs₀ : ∀ᵐ x ∂π.map (fun γ => γ 0), dist x p ≤ R) + (hs₁ : ∀ᵐ x ∂π.map (fun γ => γ 1), dist x p ≤ R) + (u : SobolevSpace (hausdorff n X) hX.quadratic) (V : X → ℝ) + {b : ℝ} (hb : 50*R < b) + (hu : SobolevSpace.toLp (hausdorff n X) hX.quadratic u + =ᵐ[(hausdorff n X).restrict (ball p b)] V) + (hH : IsSobolevHarmonicOn (hausdorff n X) hX.quadratic (ball p b) u) + (L : ℝ≥0) (hL : ∀ᵐ x ∂(hausdorff n X).restrict (ball p b), + localGamma (hausdorff n X) hX.quadratic u u x ≤ (L:ℝ)^2) + (c : ℝ) (hc : localGamma (hausdorff n X) hX.quadratic u u + =ᵐ[(hausdorff n X).restrict (ball p b)] fun _ => c) : + ∀ t : Time, (∫ γ, V (γ t) ∂π) = + (1-(t:ℝ))*(∫ γ, V (γ 0) ∂π)+(t:ℝ)*(∫ γ, V (γ 1) ∂π) := by + let m := hausdorff n X + let S := closedBall p R + have hSm : MeasurableSet S := measurableSet_closedBall + let : CompactSpace S := isCompact_iff_compactSpace.mp (isCompact_closedBall p R) + have hs (t : Time) (ht : ∀ᵐ x ∂π.map (fun γ => γ t), dist x p ≤ R) : + ∀ᵐ x ∂π.map (fun γ => γ t), x ∈ S := by + simpa only [S,mem_closedBall] using ht + obtain ⟨μ,ρ₀,C₀,hprob₀,hμ,hm₀,hp₀,hC₀,hd₀⟩ := dominated_supported_probability_law + m (π.map (fun γ => γ 0)) S hSm (hs 0 hs₀) hC (hcomp 0) + obtain ⟨ν,ρ₁,C₁,hprob₁,hν,hm₁,hp₁,hC₁,hd₁⟩ := dominated_supported_probability_law + m (π.map (fun γ => γ 1)) S hSm (hs 1 hs₁) hC (hcomp 1) + let := hprob₀ + let := hprob₁ + obtain ⟨a₀⟩ := nonempty_of_isProbabilityMeasure μ + obtain ⟨b₀⟩ := nonempty_of_isProbabilityMeasure ν + have hopt' : IsOptimalCoupling (μ.map Subtype.val) (ν.map Subtype.val) + (π.map (fun γ => (γ 0,γ 1))) := by rw [hμ,hν]; exact hopt + exact hX.local_harmonic_mean_on_optimal_plan hn p a₀ b₀ ρ₀ ρ₁ hm₀ hm₁ hp₀ hp₁ + hC₀ hC₁ hd₀ hd₁ hR (fun y => by simpa only [S,mem_closedBall,dist_comm] using y.property) + (fun y => by simpa only [S,mem_closedBall,dist_comm] using y.property) + π hgeo hopt' hC hcomp u V hb hu hH L hL c hc + +end RegularPointCoordinates.NoncollapsedRCD + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/LocalHarmonicGeodesic.lean b/lean/OAI/Geometry/RCD/Transport/LocalHarmonicGeodesic.lean new file mode 100644 index 0000000000000000000000000000000000000000..79ca5aabaf10175279c3a53f93a0044164659871 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/LocalHarmonicGeodesic.lean @@ -0,0 +1,69 @@ +import OAI.Geometry.RCD.Transport.HarmonicGeodesicAffine +import Mathlib.Topology.TietzeExtension + +namespace OAI + +/-! # Pointwise affine geodesics for genuinely local continuous harmonic coordinates -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped Topology NNReal ENNReal +noncomputable section +namespace RegularPointCoordinates.NoncollapsedRCD +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + {n : ℕ} (hX : NoncollapsedRCD 0 n X) (hn : 2 ≤ n) (p : X) [SeparableSpace X] + [IsLocallyFiniteMeasure (hausdorff n X)] [(hausdorff n X).Regular] +attribute [local instance] pathBorel pathBorelSpace + +include hn in +theorem local_harmonic_coordinate_affine_on_geodesics + (π : Measure C(Time,X)) [IsProbabilityMeasure π] + (hgeo : ∀ᵐ γ ∂π, IsGeodesic γ) + (hopt : IsOptimalCoupling (π.map (fun γ => γ 0)) (π.map (fun γ => γ 1)) + (π.map (fun γ => (γ 0,γ 1)))) + {C : ℝ≥0∞} (hC : C ≠ ∞) + (hcomp : ∀ t : Time, π.map (fun γ => γ t) ≤ C • hausdorff n X) + {R : ℝ} (hR : 1 ≤ R) + (hs₀ : ∀ᵐ x ∂π.map (fun γ => γ 0), dist x p ≤ R) + (hs₁ : ∀ᵐ x ∂π.map (fun γ => γ 1), dist x p ≤ R) + (u : SobolevSpace (hausdorff n X) hX.quadratic) (V : X → ℝ) + {b : ℝ} (hb : 50*R < b) + (hu : SobolevSpace.toLp (hausdorff n X) hX.quadratic u + =ᵐ[(hausdorff n X).restrict (ball p b)] V) + (hH : IsSobolevHarmonicOn (hausdorff n X) hX.quadratic (ball p b) u) + (L : ℝ≥0) (hL : ∀ᵐ x ∂(hausdorff n X).restrict (ball p b), + localGamma (hausdorff n X) hX.quadratic u u x ≤ (L:ℝ)^2) + (c : ℝ) (hc : localGamma (hausdorff n X) hX.quadratic u u + =ᵐ[(hausdorff n X).restrict (ball p b)] fun _ => c) + (hV : ContinuousOn V (ball p b)) : + ∀ᵐ γ ∂π, ∀ t : Time, V (γ t)=(1-(t:ℝ))*V (γ 0)+(t:ℝ)*V (γ 1) := by + let r := (50*R+b)/2 + have hrb : r V x,continuousOn_iff_continuous_domRestrict.mp (hV.mono hclosed)⟩ + obtain ⟨W,hW⟩ := f.exists_restrict_eq isClosed_closedBall + have heq (x : X) (hx : x ∈ closedBall p r) : W x=V x := by + exact congrArg (fun g : C(closedBall p r,ℝ) => g ⟨x,hx⟩) hW + have hsub : ball p r ⊆ ball p b := ball_subset_ball hrb.le + have huW : SobolevSpace.toLp (hausdorff n X) hX.quadratic u + =ᵐ[(hausdorff n X).restrict (ball p r)] W := by + filter_upwards [ae_restrict_of_ae_restrict_of_subset hsub hu,ae_restrict_mem measurableSet_ball] + with x hx hxr + exact hx.trans (heq x (ball_subset_closedBall hxr)).symm + have haff := hX.harmonic_coordinate_affine_on_geodesics_continuous hn p π hgeo hopt hC hcomp + hR hs₀ hs₁ u W hr50 huW (hH.mono _ _ hsub) L + (ae_restrict_of_ae_restrict_of_subset hsub hL) c + (ae_restrict_of_ae_restrict_of_subset hsub hc) W.continuous + have hbounded := optimal_geodesic_plan_bounded (π.map (fun γ => γ 0)) + (π.map (fun γ => γ 1)) π hgeo hopt p (zero_le_one.trans hR) hs₀ hs₁ + filter_upwards [haff,hbounded] with γ hγ hbγ t + have he (s : Time) : W (γ s)=V (γ s) := heq _ (by + rw [mem_closedBall] + exact (hbγ.2 s).trans (by linarith)) + simpa only [he] using hγ t + +end RegularPointCoordinates.NoncollapsedRCD + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/LocalHarmonicOptimalMean.lean b/lean/OAI/Geometry/RCD/Transport/LocalHarmonicOptimalMean.lean new file mode 100644 index 0000000000000000000000000000000000000000..e4857cda90a2c7052e2f1620b8d0dd4002b7e585 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/LocalHarmonicOptimalMean.lean @@ -0,0 +1,103 @@ +import OAI.Geometry.RCD.Transport.HarmonicOptimalPlanMean +import OAI.Geometry.RCD.Coordinates.LocalPoissonRegularExtension +import OAI.Geometry.RCD.Transport.CompressedFiniteUnique + +namespace OAI + +/-! # Local harmonic coordinates need no global compact extension hypothesis -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped Topology NNReal ENNReal +noncomputable section +namespace RegularPointCoordinates.NoncollapsedRCD +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + {n : ℕ} (hX : NoncollapsedRCD 0 n X) (hn : 2 ≤ n) (p : X) [SeparableSpace X] + [IsLocallyFiniteMeasure (hausdorff n X)] [(hausdorff n X).Regular] + {S T : Set X} [CompactSpace S] [CompactSpace T] + {μ : Measure S} {ν : Measure T} [IsProbabilityMeasure μ] [IsProbabilityMeasure ν] +attribute [local instance] pathBorel pathBorelSpace + +include hn in +theorem local_harmonic_mean_on_optimal_plan (a₀ : S) (b₀ : T) + (ρ₀ ρ₁ : X → ℝ) (hm₀ : Measurable ρ₀) (hm₁ : Measurable ρ₁) + (hp₀ : ∀ x, 0 ≤ ρ₀ x) (hp₁ : ∀ x, 0 ≤ ρ₁ x) {C₀ C₁ : ℝ≥0} + (hC₀ : ∀ᵐ x ∂hausdorff n X, |ρ₀ x| ≤ C₀) + (hC₁ : ∀ᵐ x ∂hausdorff n X, |ρ₁ x| ≤ C₁) + (hμ : μ.map Subtype.val=(hausdorff n X).withDensity (fun x => ENNReal.ofReal (ρ₀ x))) + (hν : ν.map Subtype.val=(hausdorff n X).withDensity (fun x => ENNReal.ofReal (ρ₁ x))) + {R : ℝ} (hR : 1 ≤ R) (hS : ∀ y:S, dist p y ≤ R) (hT : ∀ y:T, dist p y ≤ R) + (π : Measure C(Time,X)) [IsProbabilityMeasure π] + (hgeo : ∀ᵐ γ ∂π, IsGeodesic γ) + (hopt : IsOptimalCoupling (μ.map Subtype.val) (ν.map Subtype.val) + (π.map (fun γ => (γ 0,γ 1)))) + {C : ℝ≥0∞} (hC : C ≠ ∞) + (hcomp : ∀ t : Time, π.map (fun γ => γ t) ≤ C • hausdorff n X) + (u : SobolevSpace (hausdorff n X) hX.quadratic) (V : X → ℝ) + {b : ℝ} (hb : 50*R < b) + (hu : SobolevSpace.toLp (hausdorff n X) hX.quadratic u + =ᵐ[(hausdorff n X).restrict (ball p b)] V) + (hH : IsSobolevHarmonicOn (hausdorff n X) hX.quadratic (ball p b) u) + (L : ℝ≥0) (hL : ∀ᵐ x ∂(hausdorff n X).restrict (ball p b), + localGamma (hausdorff n X) hX.quadratic u u x ≤ (L:ℝ)^2) + (c : ℝ) (hc : localGamma (hausdorff n X) hX.quadratic u u + =ᵐ[(hausdorff n X).restrict (ball p b)] fun _ => c) : + ∀ t : Time, (∫ γ, V (γ t) ∂π) = + (1-(t:ℝ))*(∫ γ, V (γ 0) ∂π)+(t:ℝ)*(∫ γ, V (γ 1) ∂π) := by + let m := hausdorff n X + let q := hX.quadratic + have h25 : 0 < 25*R := by linarith + obtain ⟨F,d,hd,hFu,hd0⟩ := hX.local_poisson_regular_extension hn u 0 h25 + (show 2*(25*R) c := + (localGamma_pair_congr_ae m q hFu hFu).trans + (ae_restrict_of_ae_restrict_of_subset hsmall hc) + have haff := hX.compact_harmonic_mean_on_optimal_plan hn p a₀ b₀ + ρ₀ ρ₁ hm₀ hm₁ hp₀ hp₁ hC₀ hC₁ hμ hν hR hS hT π hgeo hopt hC hcomp + F.val d hd U M A' hU hUc hFU hA (show 24*R<25*R by linarith) hd0 c hFc + have hs₀ : ∀ᵐ x ∂μ.map Subtype.val, dist x p ≤ R := by + apply (ae_map_iff measurable_subtype_coe.aemeasurable + (measurableSet_le (by fun_prop) measurable_const)).mpr + exact Eventually.of_forall fun y => by simpa only [dist_comm] using hS y + have hs₁ : ∀ᵐ x ∂ν.map Subtype.val, dist x p ≤ R := by + apply (ae_map_iff measurable_subtype_coe.aemeasurable + (measurableSet_le (by fun_prop) measurable_const)).mpr + exact Eventually.of_forall fun y => by simpa only [dist_comm] using hT y + have hbounded := optimal_geodesic_plan_bounded (μ.map Subtype.val) (ν.map Subtype.val) + π hgeo hopt p (zero_le_one.trans hR) hs₀ hs₁ + have hUV : U =ᵐ[m.restrict (ball p (25*R))] V := + (Filter.EventuallyEq.symm (ae_restrict_of_ae hFU)).trans + (hFu.trans (ae_restrict_of_ae_restrict_of_subset hsmall hu)) + have hsame (t : Time) : (fun γ => U (γ t)) =ᵐ[π] fun γ => V (γ t) := by + have he := (Measure.absolutelyContinuous_of_le_smul (hcomp t)).restrict (ball p (25*R)) |>.ae_eq hUV + change ∀ᵐ x ∂(π.map (fun γ => γ t)).restrict (ball p (25*R)), U x=V x at he + rw [ae_restrict_iff' measurableSet_ball] at he + have he' := ae_of_ae_map (measurable_path_eval t).aemeasurable he + filter_upwards [he',hbounded] with γ heγ hγ + apply heγ + rw [mem_ball] + exact (hγ.2 t).trans_lt (show 3*R<25*R by linarith) + have hends := optimalPlan_endpoints (μ.map Subtype.val) (ν.map Subtype.val) π hopt + have he0 : (∫ x:S, U x ∂μ)=∫ γ, U (γ 0) ∂π := by + rw [← integral_map (measurable_path_eval 0).aemeasurable hU.continuous.aestronglyMeasurable,hends.1] + exact (integral_map measurable_subtype_coe.aemeasurable hU.continuous.aestronglyMeasurable).symm + have he1 : (∫ x:T, U x ∂ν)=∫ γ, U (γ 1) ∂π := by + rw [← integral_map (measurable_path_eval 1).aemeasurable hU.continuous.aestronglyMeasurable,hends.2] + exact (integral_map measurable_subtype_coe.aemeasurable hU.continuous.aestronglyMeasurable).symm + intro t + have hh := haff t + rw [he0,he1,integral_congr_ae (hsame t),integral_congr_ae (hsame 0),integral_congr_ae (hsame 1)] at hh + exact hh + +end RegularPointCoordinates.NoncollapsedRCD + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/LocalHilbertEmbedding.lean b/lean/OAI/Geometry/RCD/Transport/LocalHilbertEmbedding.lean new file mode 100644 index 0000000000000000000000000000000000000000..837583fc8cc1a7c26318fc86323d00f1186ffa4b --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/LocalHilbertEmbedding.lean @@ -0,0 +1,69 @@ +import OAI.Geometry.RCD.Transport.LocalFeatureInner +import Mathlib.Analysis.InnerProductSpace.PiL2 + +namespace OAI + +/-! # A genuine inner-product realization of the local midpoint geometry -/ + +open Set Metric +open scoped InnerProductSpace +noncomputable section +namespace RegularPointCoordinates.LocalQuadraticMidpointGeometry +universe u +variable {Y : Type u} [MetricSpace Y] [ProperSpace Y] {q : Y} + (G : LocalQuadraticMidpointGeometry q) + +include G in +theorem exists_local_inner_product_embedding : + ∃ (E : Type u) (m : NormedAddCommGroup E), + letI := m + ∃ (_ : InnerProductSpace ℝ E) (f : closedBall q (1/4:ℝ) → E), + Isometry f ∧ Convex ℝ (range f) ∧ IsCompact (range f) ∧ + Submodule.span ℝ (range f) = ⊤ ∧ f ⟨q,by simp⟩ = 0 := by + let E := G.localFeatureSpace + let : InnerProductSpace.Core ℝ E := G.localFeatureInnerCore + let : NormedAddCommGroup E := InnerProductSpace.Core.toNormedAddCommGroup (𝕜:=ℝ) + let : InnerProductSpace ℝ E := InnerProductSpace.ofCore + (inferInstance : PreInnerProductSpace.Core ℝ E) + let : TopologicalSpace E := + (inferInstance : NormedAddCommGroup E).toMetricSpace.toUniformSpace.toTopologicalSpace + let f : closedBall q (1/4:ℝ) → E := G.featureVector + have hinner (x y : closedBall q (1/4:ℝ)) : + ⟪f x,f y⟫_ℝ = quadraticDistanceFeature q x y := G.localInner_featureVectors x y + have hiso : Isometry f := by + apply Isometry.of_dist_eq + intro x y + apply (sq_eq_sq₀ dist_nonneg dist_nonneg).mp + rw [dist_eq_norm,norm_sub_sq_real,← real_inner_self_eq_norm_sq, + ← real_inner_self_eq_norm_sq,hinner,hinner,hinner] + simp only [quadraticDistanceFeature,dist_self,zero_pow (by norm_num : 2≠0)] + change _ = dist (x:Y) (y:Y)^2 + ring + have hconvex : Convex ℝ (range f) := by + apply convex_iff_add_mem.mpr + rintro _ ⟨x,rfl⟩ _ ⟨y,rfl⟩ a b ha hb hab + have hc := G.convex_local_feature_image (by norm_num : (0:ℝ)≤1/4) (by norm_num : (1/4:ℝ)<1/2) + obtain ⟨z,hz,he⟩ := hc ⟨x,x.property,rfl⟩ ⟨y,y.property,rfl⟩ ha hb hab + exact ⟨⟨z,hz⟩,Subtype.ext he⟩ + have hcompact : IsCompact (range f) := by + simpa only [image_univ] using isCompact_univ.image hiso.continuous + have hspan : Submodule.span ℝ (range f) = ⊤ := by + apply top_unique + intro u _ + let w := G.featureRepresentation u + have he : u = w.scale • (f w.first-f w.second) := Subtype.ext w.eq_feature + rw [he] + apply Submodule.smul_mem + exact Submodule.sub_mem _ (Submodule.subset_span ⟨w.first,rfl⟩) + (Submodule.subset_span ⟨w.second,rfl⟩) + have hzero : f ⟨q,by simp⟩ = 0 := by + apply Subtype.ext + funext z + exact congrFun (quadraticDistanceFeature_self q) z + exact ⟨E,inferInstance,inferInstance,f,hiso,hconvex,hcompact,hspan,hzero⟩ + +end RegularPointCoordinates.LocalQuadraticMidpointGeometry + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/LocalLipschitzPlanMean.lean b/lean/OAI/Geometry/RCD/Transport/LocalLipschitzPlanMean.lean new file mode 100644 index 0000000000000000000000000000000000000000..5a9f31518e9d25463da22e23b86eafbd5928b89b --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/LocalLipschitzPlanMean.lean @@ -0,0 +1,45 @@ +import OAI.Geometry.RCD.Sobolev.ContinuousPathMean + +namespace OAI + +/-! # Normalized means retain the local coordinate Lipschitz bound -/ + +open Set Filter MeasureTheory Metric +open scoped Topology NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +omit [MeasurableSpace X] [BorelSpace X] in +theorem normalized_path_mean_lipschitz + (π : Measure C(Time,X)) [IsProbabilityMeasure π] + (U : X → ℝ) (hU : ∀ t : Time, Integrable (fun γ => U (γ t)) π) + {S : Set X} {L D : ℝ≥0} (hLip : LipschitzOnWith L U S) + (hgeo : ∀ᵐ γ ∂π, IsGeodesic γ) (hstay : ∀ᵐ γ ∂π, ∀ t : Time, γ t∈S) + {r : ℝ} (hr : 0 < r) (hlen : ∀ᵐ γ ∂π, dist (γ 0) (γ 1) ≤ (D:ℝ)*r) : + LipschitzWith (L*D) (fun t : Time => (∫ γ, U (γ t) ∂π)/r) := by + apply LipschitzWith.of_dist_le_mul + intro s t + have hb : ∀ᵐ γ ∂π, ‖U (γ s)-U (γ t)‖ ≤ ((L:ℝ)*(D:ℝ)*dist s t)*r := by + filter_upwards [hgeo,hstay,hlen] with γ hg hs hl + rw [Real.norm_eq_abs] + calc + _ ≤ (L:ℝ)*dist (γ s) (γ t) := by + simpa only [Real.dist_eq] using hLip.dist_le_mul (γ s) (hs s) (γ t) (hs t) + _ = (L:ℝ)*(dist s t*dist (γ 0) (γ 1)) := by + rw [hg s t] + rfl + _ ≤ (L:ℝ)*(dist s t*((D:ℝ)*r)) := by gcongr + _ = _ := by ring + have hi := norm_integral_le_of_norm_le_const hb + rw [integral_sub (hU s) (hU t),probReal_univ,mul_one,Real.norm_eq_abs] at hi + rw [Real.dist_eq,← sub_div,abs_div,abs_of_pos hr] + apply (div_le_iff₀ hr).mpr + exact hi + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/LocalMidpointDensityComparison.lean b/lean/OAI/Geometry/RCD/Transport/LocalMidpointDensityComparison.lean new file mode 100644 index 0000000000000000000000000000000000000000..e1001674cef4fb88a9b80d953f261016c49f63cc --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/LocalMidpointDensityComparison.lean @@ -0,0 +1,76 @@ +import OAI.Geometry.RCD.Metric.EuclideanAbsoluteContinuousBalls + +namespace OAI + +/-! # Comparing Lebesgue densities by midpoint contraction -/ + +open Set Metric Filter MeasureTheory +open scoped Topology +noncomputable section +namespace RegularPointCoordinates + +theorem local_midpoint_density_le {n : ℕ} (hn : 0 < n) + (μ : FiniteMeasure (Euclidean n)) (hμ : (μ : Measure (Euclidean n)) ≪ volume) + (z : Euclidean n) {δ : ℝ} (hδ : 0 < δ) + (hc : ∀ u ∈ ball z δ, ∀ v ∈ ball z δ, ∀ r : ℝ, 0 < r → r ≤ δ → + (1/2:ℝ)^n*(μ : Measure (Euclidean n)).real (ball v r) ≤ + (μ : Measure (Euclidean n)).real (closedBall ((1/2:ℝ) • (u+v)) (r/2))) + {x y : Euclidean n} (hx : x ∈ ball z (δ/4)) (hy : y ∈ ball z (δ/4)) + {a b : ℝ} + (hlimx : Tendsto (fun r => (μ : Measure (Euclidean n)).real (closedBall x r)/ + volume.real (closedBall x r)) (𝓝[>] 0) (𝓝 a)) + (hlimy : Tendsto (fun r => (μ : Measure (Euclidean n)).real (closedBall y r)/ + volume.real (closedBall y r)) (𝓝[>] 0) (𝓝 b)) : a ≤ b := by + let u := y+(y-x) + have huy : dist u y = dist y x := by simp [u,dist_eq_norm] + have hu : u ∈ ball z δ := by + have h1 := dist_triangle u y z + have h2 := dist_triangle y z x + rw [huy] at h1 + rw [dist_comm z x] at h2 + have hx' : dist x z < δ/4 := hx + have hy' : dist y z < δ/4 := hy + change dist u z < δ + linarith + have hxδ : x ∈ ball z δ := (ball_subset_ball (by linarith)) hx + have hmid : (1/2:ℝ) • (u+x)=y := by dsimp only [u]; module + have hhalf : Tendsto (fun r : ℝ => r/2) (𝓝[>] 0) (𝓝[>] 0) := by + apply tendsto_nhdsWithin_iff.mpr + constructor + · have hh : Tendsto (fun r : ℝ => r) (𝓝[>] 0) (𝓝 0) := + tendsto_id.mono_right nhdsWithin_le_nhds + simpa only [zero_div] using hh.div_const 2 + · filter_upwards [self_mem_nhdsWithin] with r hr + change 0 < r/2 + exact div_pos (show 0 < r from hr) (by norm_num) + have hlimy' := hlimy.comp hhalf + apply le_of_tendsto_of_tendsto hlimx hlimy' + filter_upwards [Ioo_mem_nhdsGT hδ] with r hr + have hm := hc u hu x hxδ r hr.1 hr.2.le + rw [hmid] at hm + have he : (μ : Measure (Euclidean n)).real (closedBall x r) = + (μ : Measure (Euclidean n)).real (ball x r) := + congrArg ENNReal.toReal (absolutelyContinuous_closedBall_eq_ball hn _ hμ x r) + rw [← he] at hm + exact half_ball_density_le hn _ x y hr.1 hm + +theorem local_midpoint_density_eq {n : ℕ} (hn : 0 < n) + (μ : FiniteMeasure (Euclidean n)) (hμ : (μ : Measure (Euclidean n)) ≪ volume) + (z : Euclidean n) {δ : ℝ} (hδ : 0 < δ) + (hc : ∀ u ∈ ball z δ, ∀ v ∈ ball z δ, ∀ r : ℝ, 0 < r → r ≤ δ → + (1/2:ℝ)^n*(μ : Measure (Euclidean n)).real (ball v r) ≤ + (μ : Measure (Euclidean n)).real (closedBall ((1/2:ℝ) • (u+v)) (r/2))) + {x y : Euclidean n} (hx : x ∈ ball z (δ/4)) (hy : y ∈ ball z (δ/4)) + {a b : ℝ} + (hlimx : Tendsto (fun r => (μ : Measure (Euclidean n)).real (closedBall x r)/ + volume.real (closedBall x r)) (𝓝[>] 0) (𝓝 a)) + (hlimy : Tendsto (fun r => (μ : Measure (Euclidean n)).real (closedBall y r)/ + volume.real (closedBall y r)) (𝓝[>] 0) (𝓝 b)) : a = b := + le_antisymm (local_midpoint_density_le hn μ hμ z hδ hc hx hy hlimx hlimy) + (local_midpoint_density_le hn μ hμ z hδ hc hy hx hlimy hlimx) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/LocalMidpointDensityConstant.lean b/lean/OAI/Geometry/RCD/Transport/LocalMidpointDensityConstant.lean new file mode 100644 index 0000000000000000000000000000000000000000..4206be5174f685be65437aa0819c08147bb16ff9 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/LocalMidpointDensityConstant.lean @@ -0,0 +1,41 @@ +import OAI.Geometry.RCD.Transport.LocalMidpointDensityComparison + +namespace OAI + +/-! # Almost-everywhere constant density on a midpoint-contraction neighborhood -/ + +open Set Metric Filter MeasureTheory +open scoped Topology +noncomputable section +namespace RegularPointCoordinates + +theorem local_midpoint_density_constant {n : ℕ} (hn : 0 < n) + (μ : FiniteMeasure (Euclidean n)) (hμ : (μ : Measure (Euclidean n)) ≪ volume) + (z : Euclidean n) {δ : ℝ} (hδ : 0 < δ) + (hc : ∀ u ∈ ball z δ, ∀ v ∈ ball z δ, ∀ r : ℝ, 0 < r → r ≤ δ → + (1/2:ℝ)^n*(μ : Measure (Euclidean n)).real (ball v r) ≤ + (μ : Measure (Euclidean n)).real (closedBall ((1/2:ℝ) • (u+v)) (r/2))) : + ∃ c : ℝ, 0 ≤ c ∧ ∀ᵐ x ∂volume.restrict (ball z (δ/4)), + ((μ : Measure (Euclidean n)).rnDeriv volume x).toReal=c := by + have hgood := euclidean_energy_density_limit μ + have hex : ∃ x ∈ ball z (δ/4), + Tendsto (fun r => (μ : Measure (Euclidean n)).real (closedBall x r)/ + volume.real (closedBall x r)) (𝓝[>] 0) + (𝓝 (((μ : Measure (Euclidean n)).rnDeriv volume x).toReal)) := by + by_contra hnot + have hnull : ∀ᵐ x ∂(volume : Measure (Euclidean n)), x ∉ ball z (δ/4) := by + filter_upwards [hgood] with x hx hball + exact hnot ⟨x,hball,hx⟩ + have he : volume (ball z (δ/4))=0 := by + simpa only [not_not,Set.ofPred_mem_eq] using ae_iff.mp hnull + exact (measure_ball_pos volume z (by positivity)).ne' he + obtain ⟨x,hx,hlimx⟩ := hex + refine ⟨((μ : Measure (Euclidean n)).rnDeriv volume x).toReal,ENNReal.toReal_nonneg,?_⟩ + filter_upwards [ae_restrict_of_ae hgood,ae_restrict_mem measurableSet_ball] with y hy hyball + exact local_midpoint_density_eq hn μ hμ z hδ hc hyball hx hy hlimx + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/LocalMidpointFeatures.lean b/lean/OAI/Geometry/RCD/Transport/LocalMidpointFeatures.lean new file mode 100644 index 0000000000000000000000000000000000000000..8e6061d9926b1185a8c1fff3ca406f1e2b98b96e --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/LocalMidpointFeatures.lean @@ -0,0 +1,72 @@ +import OAI.Geometry.RCD.Transport.LocalQuadraticMidpointGeometry +import OAI.Geometry.RCD.Harmonic.QuadraticDistanceFeature + +namespace OAI + +/-! # Squared-distance coordinates of the local midpoint geometry -/ + +open Set Metric +noncomputable section +namespace RegularPointCoordinates.LocalQuadraticMidpointGeometry +variable {Y : Type*} [MetricSpace Y] {q : Y} (G : LocalQuadraticMidpointGeometry q) + +abbrev feature (x : ball q (1/2:ℝ)) : ball q (1:ℝ) → ℝ := + fun z => quadraticDistanceFeature q x z + +private theorem in_large (x : ball q (1/2:ℝ)) : (x:Y) ∈ ball q (1:ℝ) := + x.property.trans (by norm_num : (1/2:ℝ)<1) + +omit G in +theorem feature_injective : Function.Injective (feature (q:=q)) := by + intro x y h + have hx := congrFun h ⟨x,in_large x⟩ + have hy := congrFun h ⟨y,in_large y⟩ + change quadraticDistanceFeature q x x = quadraticDistanceFeature q y x at hx + change quadraticDistanceFeature q x y = quadraticDistanceFeature q y y at hy + simp only [quadraticDistanceFeature,dist_self,zero_pow (by norm_num : 2≠0),sub_zero] at hx hy + rw [dist_comm (y:Y) (x:Y)] at hx + apply Subtype.ext + apply dist_eq_zero.mp + apply sq_eq_zero_iff.mp + nlinarith only [hx,hy] + +omit G in +theorem feature_continuous : Continuous (feature (q:=q)) := by + apply continuous_pi + intro z + dsimp only [feature,quadraticDistanceFeature] + exact ((((continuous_const.dist continuous_subtype_val).pow 2).add continuous_const).sub + ((continuous_subtype_val.dist continuous_const).pow 2)).div_const 2 + +theorem feature_mid (x y : ball q (1/2:ℝ)) : + feature (G.mid x y) = (1/2:ℝ) • (feature x + feature y) := by + funext z + have hq := G.quadratic x y q (by simp) + have hz := G.quadratic x y z z.property + dsimp only [feature,quadraticDistanceFeature,Pi.smul_apply,Pi.add_apply,smul_eq_mul] + rw [dist_comm (G.mid x y:Y) (z:Y),hq,hz] + rw [dist_comm (x:Y) (z:Y),dist_comm (y:Y) (z:Y)] + ring + +omit G in +@[simp] theorem feature_center : feature (q:=q) ⟨q,by simp⟩ = 0 := by + funext z + exact congrFun (quadraticDistanceFeature_self q) z + +theorem feature_half (x : ball q (1/2:ℝ)) : + feature (G.mid ⟨q,by simp⟩ x) = (1/2:ℝ) • feature x := by + rw [G.feature_mid,feature_center,zero_add] + +theorem mid_medial (w x y z : ball q (1/2:ℝ)) : + G.mid (G.mid w x) (G.mid y z) = G.mid (G.mid w y) (G.mid x z) := by + apply feature_injective + simp only [G.feature_mid] + funext a + simp only [Pi.smul_apply,Pi.add_apply,smul_eq_mul] + ring + +end RegularPointCoordinates.LocalQuadraticMidpointGeometry + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/LocalPlanGradientMean.lean b/lean/OAI/Geometry/RCD/Transport/LocalPlanGradientMean.lean new file mode 100644 index 0000000000000000000000000000000000000000..d26e8c19b890b6514977df106e06f496c9e6e3d5 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/LocalPlanGradientMean.lean @@ -0,0 +1,59 @@ +import OAI.Geometry.RCD.Transport.PlanGradientMean + +namespace OAI + +/-! # Local mean endpoint control from a bounded relaxed gradient -/ + +open Set Filter MeasureTheory +open scoped ENNReal NNReal Topology + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) [μ.Regular] +attribute [local instance] pathBorel pathBorelSpace + +/-- A bounded-compression geodesic plan reads the actual relaxed gradient +as an upper gradient, without a compression factor in the final bound. -/ +theorem IsRelaxedSlope.testPlan_mean_increment_on + (π : Measure C(Time,X)) [IsProbabilityMeasure π] + (hgeo : ∀ᵐ γ ∂π, IsGeodesic γ) {C : ℝ≥0∞} (hC : C ≠ ∞) + (hcomp : ∀ t : Time, π.map (fun γ => γ t) ≤ C • μ) + (hD : MemLp (fun γ : C(Time,X) => dist (γ 0) (γ 1)) 2 π) + {D L : ℝ} (hL : 0 ≤ L) (hDb : ∀ᵐ γ ∂π, dist (γ 0) (γ 1) ≤ D) + {Ω : Set X} (hstay : ∀ t : Time, ∀ᵐ x ∂π.map (fun γ => γ t), x ∈ Ω) + {u G : Lp ℝ 2 μ} (hG : IsRelaxedSlope μ u G) + (hGb : ∀ᵐ x ∂μ.restrict Ω, G x ≤ L) : + (∫ γ : C(Time,X), |u (γ 1)-u (γ 0)| ∂π) ≤ D*L := by + have hflux (r : ℝ) : (∫ γ : C(Time,X), dist (γ 0) (γ 1)*G (geodesicExtension γ r) ∂π) ≤ D*L := by + let t := Set.projIcc 0 1 zero_le_one r + have hgb : ∀ᵐ γ ∂π, G (γ t) ≤ L := ae_of_ae_map (measurable_path_eval t).aemeasurable + ((Measure.absolutelyContinuous_of_le_smul + ((compression_iff_localized μ _ (hstay t) C).mp (hcomp t))).ae_le hGb) + have hi : Integrable (fun γ : C(Time,X) => dist (γ 0) (γ 1)*G (γ t)) π := + hD.integrable_mul (compressionPullback_memLp μ π _ (measurable_path_eval t) hC (hcomp t) G) + calc + _ ≤ ∫ _γ : C(Time,X), D*L ∂π := by + apply integral_mono_ae hi (integrable_const _) + filter_upwards [hgb,hDb] with γ hg hd + exact (mul_le_mul_of_nonneg_left hg dist_nonneg).trans + (mul_le_mul_of_nonneg_right hd hL) + _ = _ := by simp + have hh := hG.testPlan_integrated_subinterval μ π hgeo hC hcomp hD 1 + have hI : IntervalIntegrable (fun r => ∫ γ : C(Time,X), + dist (γ 0) (γ 1)*G (geodesicExtension γ r) ∂π) volume 0 1 := + (testPlan_flux_continuous μ π hgeo hC hcomp hD G).intervalIntegrable 0 1 + have hupper : (∫ r in (0:ℝ)..1, ∫ γ : C(Time,X), + dist (γ 0) (γ 1)*G (geodesicExtension γ r) ∂π) ≤ D*L := by + calc + _ ≤ ∫ _r in (0:ℝ)..1, D*L := + intervalIntegral.integral_mono_on zero_le_one hI intervalIntegrable_const (fun r _ => hflux r) + _ = _ := by simp + exact hh.trans hupper + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/LocalQuadraticMidpointGeometry.lean b/lean/OAI/Geometry/RCD/Transport/LocalQuadraticMidpointGeometry.lean new file mode 100644 index 0000000000000000000000000000000000000000..dbf5fe56df05dcaf50d93939a613b19022f32be8 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/LocalQuadraticMidpointGeometry.lean @@ -0,0 +1,67 @@ +import OAI.Geometry.RCD.Transport.QuadraticMidpointError + +namespace OAI + +/-! # Metric algebra of the local quadratic midpoints used for rigidity -/ + +open Set Metric +noncomputable section +namespace RegularPointCoordinates +variable {Y : Type*} [MetricSpace Y] + +structure LocalQuadraticMidpointGeometry (q : Y) where + mid : ball q (1/2:ℝ) → ball q (1/2:ℝ) → ball q (1/2:ℝ) + left : ∀ (x y : ball q (1/2:ℝ)), dist (x:Y) (mid x y:Y) = dist (x:Y) (y:Y)/2 + right : ∀ (x y : ball q (1/2:ℝ)), dist (mid x y:Y) (y:Y) = dist (x:Y) (y:Y)/2 + quadratic : ∀ (x y : ball q (1/2:ℝ)), ∀ z ∈ ball q (1:ℝ), + dist z (mid x y:Y)^2 = (dist z (x:Y)^2+dist z (y:Y)^2)/2-dist (x:Y) (y:Y)^2/4 + +namespace LocalQuadraticMidpointGeometry +variable {q : Y} (G : LocalQuadraticMidpointGeometry q) + +private theorem mem_large (x : ball q (1/2:ℝ)) : (x:Y) ∈ ball q (1:ℝ) := + x.property.trans (by norm_num : (1/2:ℝ) < 1) + +theorem unique (x y c : ball q (1/2:ℝ)) + (hleft : dist (x:Y) (c:Y) = dist (x:Y) (y:Y)/2) + (hright : dist (c:Y) (y:Y) = dist (x:Y) (y:Y)/2) : c = G.mid x y := by + apply Subtype.ext + apply dist_eq_zero.mp + apply sq_eq_zero_iff.mp + rw [G.quadratic x y c (mem_large c),dist_comm (c:Y) (x:Y),hleft,hright] + ring + +@[simp] theorem mid_self (x : ball q (1/2:ℝ)) : G.mid x x = x := by + symm + apply G.unique <;> simp + +theorem mid_comm (x y : ball q (1/2:ℝ)) : G.mid x y = G.mid y x := by + apply G.unique + · rw [dist_comm (y:Y),G.right,dist_comm (y:Y) (x:Y)] + · rw [dist_comm _ (x:Y),G.left,dist_comm (y:Y) (x:Y)] + +theorem half_distance (p x y : ball q (1/2:ℝ)) : + dist (G.mid p x:Y) (G.mid p y:Y) = dist (x:Y) (y:Y)/2 := by + have h₁ := G.quadratic p x (G.mid p y) (mem_large (G.mid p y)) + have h₂ := G.quadratic p y x (mem_large x) + rw [dist_comm (G.mid p y:Y) (p:Y),G.left] at h₁ + rw [dist_comm (G.mid p y:Y) (x:Y),h₂] at h₁ + rw [dist_comm (x:Y) (p:Y)] at h₁ + rw [dist_comm (G.mid p y:Y) (G.mid p x:Y)] at h₁ + apply (sq_eq_sq₀ dist_nonneg (div_nonneg dist_nonneg (by norm_num))).mp + nlinarith only [h₁] + +theorem mid_distance_le (x y x' y' : ball q (1/2:ℝ)) : + dist (G.mid x y:Y) (G.mid x' y':Y) ≤ (dist (x:Y) (x':Y)+dist (y:Y) (y':Y))/2 := by + calc + _ ≤ dist (G.mid x y:Y) (G.mid x y':Y)+dist (G.mid x y':Y) (G.mid x' y':Y) := dist_triangle _ _ _ + _ = dist (y:Y) (y':Y)/2+dist (x:Y) (x':Y)/2 := by + rw [G.half_distance,G.mid_comm x y',G.mid_comm x' y',G.half_distance] + _ = _ := by ring + +end LocalQuadraticMidpointGeometry +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/LocalRenyiMaximality.lean b/lean/OAI/Geometry/RCD/Transport/LocalRenyiMaximality.lean new file mode 100644 index 0000000000000000000000000000000000000000..dfd9b0761ab8a3d51227281bf6ff646bd161e8fd --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/LocalRenyiMaximality.lean @@ -0,0 +1,59 @@ +import OAI.Geometry.RCD.Transport.RenyiSubplanMaximality + +namespace OAI + +/-! # Localizing the reference measure without changing maximality -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped Topology ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +omit [BorelSpace X] in +theorem RenyiMaximizingPlan.local_of_global (μ : Measure X) [SigmaFinite μ] + {B : Set X} (hB : MeasurableSet B) [IsFiniteMeasure (μ.restrict B)] + {ν₀ ν₁ : Measure X} {π : Measure C(Time,X)} [IsProbabilityMeasure π] + {t : Time} {q : ℝ} (hq0 : 0 γ t), x∈B) + (hs : ∀ κ : Measure C(Time,X), IsProbabilityMeasure κ → + (∀ᵐ γ ∂κ, IsGeodesic γ) → IsOptimalCoupling ν₀ ν₁ (κ.map (fun γ => (γ 0,γ 1))) → + ∀ᵐ x ∂κ.map (fun γ => γ t), x∈B) : + RenyiMaximizingPlan (μ.restrict B) ν₀ ν₁ π t q := by + intro κ hκ hgκ hpκ + let := hκ + rw [←(renyiPower_localized μ _ hB (hs κ hκ hgκ hpκ) hq0 hq1.le).2, + ←(renyiPower_localized μ _ hB hsπ hq0 hq1.le).2] + exact hmax κ hκ hgκ hpκ + +theorem NoncollapsedRCD.renyiNode_localMaximal + (K : ℝ) (n : ℕ) (_hn : 2≤n) (hX : NoncollapsedRCD K n X) + {q : ℝ} (hq0 : 0 (γ 0,γ 1)))) : + ∀ᵐ x ∂κ.map (fun γ => γ midpointTime), x∈B := by + apply (ae_map_iff (measurable_path_eval midpointTime).aemeasurable measurableSet_closedBall).mpr + exact (optimal_geodesic_plan_bounded a.left a.right κ hg hp a.center a.radius_nonneg + a.left_support a.right_support).mono (fun γ hγ => hγ.2 midpointTime) + exact s.maximal.local_of_global μ measurableSet_closedBall hq0 hq1 + (hs s.plan s.geodesic s.optimal) (fun κ _ hg hp => hs κ hg hp) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/LocalSmoothEntropy.lean b/lean/OAI/Geometry/RCD/Transport/LocalSmoothEntropy.lean new file mode 100644 index 0000000000000000000000000000000000000000..d129268ddcad44ae64adc4d6fe8819577d6b4eca --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/LocalSmoothEntropy.lean @@ -0,0 +1,103 @@ +import OAI.Geometry.RCD.Sobolev.CompactScalarPrimitive +import Mathlib.Analysis.Calculus.BumpFunction.FiniteDimension +import Mathlib.Analysis.SpecialFunctions.Log.Deriv + +namespace OAI + +/-! # A finite-jet extension of the regularized entropy + +On the prescribed bounded nonnegative interval the second derivative is +exactly the reciprocal of the value plus epsilon. The two primitives +vanish at zero and have the global bounds needed for L² heat calculus. +-/ + +open Set Filter Metric MeasureTheory +open scoped Topology NNReal Interval +noncomputable section +namespace RegularPointCoordinates + +theorem exists_local_smooth_entropy {ε M : ℝ} (hε : 0 < ε) (hM : 0 ≤ M) : + ∃ (Φ φ ψ : ℝ → ℝ) (C D B E : ℝ≥0), + LipschitzWith C Φ ∧ LipschitzWith D φ ∧ Continuous ψ ∧ + Φ 0=0 ∧ φ 0=0 ∧ + (∀ a, HasDerivAt Φ (φ a) a) ∧ (∀ a, HasDerivAt φ (ψ a) a) ∧ + (∀ a, |φ a| ≤ B) ∧ (∀ a, |ψ a| ≤ E) ∧ + ∀ a ∈ Icc 0 M, ψ a=(ε+a)⁻¹ ∧ + φ a=Real.log (ε+a)-Real.log ε ∧ + Φ a=(ε+a)*(Real.log (ε+a)-Real.log ε)-a := by + let c := M+1 + let κ : ContDiffBump c := ⟨c+ε/4,c+ε/2,by dsimp [c]; linarith,by linarith⟩ + let ψ := fun a => κ a*(ε+a)⁻¹ + have hc0 : κ.rOut < dist (-ε) c := by + change c+ε/2 < |(-ε)-c| + rw [abs_of_neg (show -ε-c<0 by dsimp [c]; linarith)] + linarith + have hz : ψ =ᶠ[𝓝 (-ε)] (fun _ => 0) := by + have hn := (isOpen_lt continuous_const (continuous_id.dist continuous_const)).mem_nhds hc0 + filter_upwards [hn] with a ha + change κ a*(ε+a)⁻¹=0 + have hak : κ a=0 := κ.zero_of_le_dist (show κ.rOut ≤ dist a c from ha.le) + rw [hak,zero_mul] + have hc : Continuous ψ := continuous_iff_continuousAt.mpr fun a => by + by_cases ha : a = -ε + · subst a + exact continuousAt_const.congr_of_eventuallyEq hz + · exact κ.continuous.continuousAt.mul + ((continuous_const.add continuous_id).continuousAt.inv₀ (by change ε+a≠0; intro he; apply ha; linarith)) + have hs : HasCompactSupport ψ := κ.hasCompactSupport.mul_right + have heq (a : ℝ) (ha : a ∈ Icc 0 M) : ψ a=(ε+a)⁻¹ := by + have hai : a ∈ ball c κ.rIn := by + change |a-c| < c+ε/4 + rw [abs_of_neg (show a-c<0 by dsimp [c]; linarith [ha.2])] + linarith [ha.1] + change κ a*(ε+a)⁻¹=(ε+a)⁻¹ + rw [κ.one_of_mem_closedBall (Metric.ball_subset_closedBall hai),one_mul] + obtain ⟨Φ,φ,C,D,B,E,hΦ,hφ,hΦ0,hφ0,hdΦ,hdφ,hB,hE,hφI,hΦI⟩ := + compact_scalar_two_primitives hc hs + refine ⟨Φ,φ,ψ,C,D,B,E,hΦ,hφ,hc,hΦ0,hφ0,hdΦ,hdφ,hB,hE,?_⟩ + intro a ha + have hpos (s : ℝ) (hs : s ∈ Icc 0 a) : 0 < ε+s := by linarith [hs.1] + have hlog (s : ℝ) (hs : s ∈ Icc 0 M) : + φ s=Real.log (ε+s)-Real.log ε := by + rw [hφI] + have hint : IntervalIntegrable (fun x => (ε+x)⁻¹) volume 0 s := + ((continuousOn_const.add continuousOn_id).inv₀ + (fun x hx => by change ε+x≠0; linarith [hx.1])).intervalIntegrable_of_Icc hs.1 + calc + _ = ∫ x in 0..s, (ε+x)⁻¹ := intervalIntegral.integral_congr fun x hx => + heq x ⟨(uIcc_of_le hs.1 ▸ hx).1,le_trans (uIcc_of_le hs.1 ▸ hx).2 hs.2⟩ + _ = _ := by + simpa only [add_zero] using intervalIntegral.integral_eq_sub_of_hasDerivAt + (f := fun x => Real.log (ε+x)) (fun x hx => by + have hp : 0 < ε+x := by rw [uIcc_of_le hs.1] at hx; linarith [hx.1] + simpa only [id_eq,one_div] using ((hasDerivAt_id x).const_add ε).log hp.ne') hint + refine ⟨heq a ha,hlog a ha,?_⟩ + rw [hΦI] + let G := fun s => (ε+s)*(Real.log (ε+s)-Real.log ε)-s + have hdG (s : ℝ) (hs : s ∈ Icc 0 a) : + HasDerivAt G (Real.log (ε+s)-Real.log ε) s := by + have hd := (((hasDerivAt_id s).const_add ε).mul + ((((hasDerivAt_id s).const_add ε).log (hpos s hs).ne').sub_const (Real.log ε))).sub (hasDerivAt_id s) + change HasDerivAt G + (1*(Real.log (ε+s)-Real.log ε)+(ε+s)*(1/(ε+s))-1) s at hd + have he : 1*(Real.log (ε+s)-Real.log ε)+(ε+s)*(1/(ε+s))-1 = + Real.log (ε+s)-Real.log ε := by + rw [one_mul,one_div,mul_inv_cancel₀ (hpos s hs).ne'] + ring + rw [he] at hd + exact hd + have hint : IntervalIntegrable (fun s => Real.log (ε+s)-Real.log ε) volume 0 a := + ((continuousOn_const.add continuousOn_id).log + (fun x hx => (hpos x hx).ne')).sub continuousOn_const |>.intervalIntegrable_of_Icc ha.1 + calc + _ = ∫ s in 0..a, Real.log (ε+s)-Real.log ε := intervalIntegral.integral_congr fun s hs => + hlog s ⟨(uIcc_of_le ha.1 ▸ hs).1,le_trans (uIcc_of_le ha.1 ▸ hs).2 ha.2⟩ + _ = G a-G 0 := intervalIntegral.integral_eq_sub_of_hasDerivAt + (fun s hs => hdG s (uIcc_of_le ha.1 ▸ hs)) hint + _ = _ := by simp only [G,add_zero,sub_self,mul_zero,sub_zero] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/LocalizedPlanEnergy.lean b/lean/OAI/Geometry/RCD/Transport/LocalizedPlanEnergy.lean new file mode 100644 index 0000000000000000000000000000000000000000..e1c550a5fdbc29bcde4353eda3422dd5d076a1b9 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/LocalizedPlanEnergy.lean @@ -0,0 +1,95 @@ +import OAI.Analysis.RCDHeat.ExistingAnalytic + +namespace OAI + +/-! # Local energy control along a bounded-compression plan + +The squared endpoint difference only uses energy on the region containing +the paths. This localization is needed for the interior Poincare input. +-/ + +open Set Filter MeasureTheory +open scoped Topology ENNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem IsRelaxedSlope.testPlan_integrated_square_on + (μ : Measure X) (π : Measure C(Time, X)) [IsFiniteMeasure π] + (hgeo : ∀ᵐ γ ∂π, IsGeodesic γ) {C : ℝ≥0∞} (hC : C ≠ ∞) + (hcomp : ∀ t : Time, π.map (fun γ => γ t) ≤ C • μ) + (hD : MemLp (fun γ : C(Time, X) => dist (γ 0) (γ 1)) 2 π) + {D : ℝ} (hDb : ∀ᵐ γ ∂π, dist (γ 0) (γ 1) ≤ D) + {Ω : Set X} + (hstay : ∀ t : Time, ∀ᵐ x ∂π.map (fun γ => γ t), x ∈ Ω) + {u G : Lp ℝ 2 μ} (hG : IsRelaxedSlope μ u G) : + (∫ γ : C(Time, X), (u (γ 1) - u (γ 0)) ^ 2 ∂π) ≤ + D ^ 2 * (C.toReal * ∫ x in Ω, G x ^ 2 ∂μ) := by + have hiu (s : Time) : MemLp (fun γ : C(Time, X) => u (γ s)) 2 π := + compressionPullback_memLp μ π _ (measurable_path_eval s) hC (hcomp s) u + have hleft := ((hiu 1).sub (hiu 0)).integrable_sq + have hprod : Integrable (fun z : ℝ × C(Time, X) => G (geodesicExtension z.2 z.1) ^ 2) + ((volume.restrict (Icc (0 : ℝ) 1)).prod π) := + (testPlanMeasure_eval_memLp μ π hC hcomp G).integrable_sq + have hb (r : ℝ) : (∫ γ : C(Time, X), G (geodesicExtension γ r) ^ 2 ∂π) ≤ + C.toReal * ∫ x in Ω, G x ^ 2 ∂μ := by + let s := Set.projIcc 0 1 zero_le_one r + have hm : AEMeasurable (fun γ : C(Time, X) => γ s) π := + (measurable_path_eval s).aemeasurable + change (∫ γ : C(Time, X), G (γ s) ^ 2 ∂π) ≤ _ + have hsm : AEStronglyMeasurable (fun x => G x ^ 2) (π.map (fun γ => γ s)) := + ((Lp.stronglyMeasurable G).pow 2).aestronglyMeasurable + rw [← integral_map hm hsm] + have hc := (compression_iff_localized μ _ (hstay s) C).mp (hcomp s) + have hh := integral_mono_measure hc (ae_of_all _ fun x => sq_nonneg (G x)) + ((Lp.memLp G).integrable_sq.integrableOn.smul_measure hC) + simpa only [integral_smul_measure, smul_eq_mul] using hh + have hbound : (∫ γ : C(Time, X), (∫ r in Icc (0 : ℝ) 1, + G (geodesicExtension γ r) ^ 2) ∂π) ≤ C.toReal * ∫ x in Ω, G x ^ 2 ∂μ := by + rw [← integral_prod_symm _ hprod, integral_prod _ hprod] + calc + _ ≤ ∫ _r in Icc (0 : ℝ) 1, C.toReal * ∫ x in Ω, G x ^ 2 ∂μ := + integral_mono hprod.integral_prod_left (integrable_const _) hb + _ = _ := by simp + have hae : ∀ᵐ γ ∂π, (u (γ 1) - u (γ 0)) ^ 2 ≤ + D ^ 2 * ∫ r in Icc (0 : ℝ) 1, G (geodesicExtension γ r) ^ 2 := by + filter_upwards [hG.testPlan_ae_subinterval μ π hgeo hC hcomp hD 0 1 zero_le_one, + hprod.prod_left_ae, hDb] with γ hγ hi hdb + have hmt : MemLp (fun r => G (geodesicExtension γ r)) 2 + (volume.restrict (Icc (0 : ℝ) 1)) := by + apply (memLp_two_iff_integrable_sq _).mpr hi + exact ((Lp.stronglyMeasurable G).comp_measurable + (γ.continuous.comp (LipschitzWith.projIcc zero_le_one).continuous).measurable).aestronglyMeasurable + have hcs := integral_sq_le_mass_mul_sq _ hmt + simp only [Measure.restrict_apply_univ, Real.volume_Icc, sub_zero, + ENNReal.ofReal_one, ENNReal.toReal_one, one_mul] at hcs + change |u (γ 1) - u (γ 0)| ≤ dist (γ 0) (γ 1) * + (∫ r in (0 : ℝ)..1, G (geodesicExtension γ r)) at hγ + have hsq := mul_self_le_mul_self (abs_nonneg _) hγ + rw [intervalIntegral.integral_of_le zero_le_one, ← integral_Icc_eq_integral_Ioc] at hsq + simp only [← sq, sq_abs, mul_pow] at hsq + calc + _ ≤ dist (γ 0) (γ 1) ^ 2 * + (∫ r in Icc (0 : ℝ) 1, G (geodesicExtension γ r)) ^ 2 := hsq + _ ≤ dist (γ 0) (γ 1) ^ 2 * + (∫ r in Icc (0 : ℝ) 1, G (geodesicExtension γ r) ^ 2) := + mul_le_mul_of_nonneg_left hcs (sq_nonneg _) + _ ≤ _ := mul_le_mul_of_nonneg_right + (sq_le_sq₀ dist_nonneg (dist_nonneg.trans hdb) |>.mpr hdb) + (integral_nonneg fun _ => sq_nonneg _) + calc + _ ≤ ∫ γ : C(Time, X), D ^ 2 * + (∫ r in Icc (0 : ℝ) 1, G (geodesicExtension γ r) ^ 2) ∂π := + integral_mono_ae hleft (hprod.integral_prod_right.const_mul _) hae + _ = D ^ 2 * (∫ γ : C(Time, X), + (∫ r in Icc (0 : ℝ) 1, G (geodesicExtension γ r) ^ 2) ∂π) := integral_const_mul _ _ + _ ≤ _ := mul_le_mul_of_nonneg_left hbound (sq_nonneg D) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/MaximalCompressionChildren.lean b/lean/OAI/Geometry/RCD/Transport/MaximalCompressionChildren.lean new file mode 100644 index 0000000000000000000000000000000000000000..4351af69e2c54ff5c74fe7677a928648ef27fad6 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/MaximalCompressionChildren.lean @@ -0,0 +1,73 @@ +import OAI.Geometry.RCD.Transport.MaximalMidpointCompression + +namespace OAI + +/-! # Actual half nodes with their sharper inherited compression budget -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped ENNReal Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem NoncollapsedRCD.maximal_compression_children + (K : ℝ) (n : ℕ) (hn : 2≤n) (hX : NoncollapsedRCD K n X) + (a : RenyiTransportNode n X) (π : Measure C(Time,X)) [IsProbabilityMeasure π] + (hg : ∀ᵐ γ ∂π, IsGeodesic γ) + (hp : IsOptimalCoupling a.left a.right (π.map (fun γ => (γ 0,γ 1)))) + {q : ℝ} (hq0 : 0 γ 0) ∧ a₀.right=π.map (fun γ => γ midpointTime) ∧ + a₁.left=π.map (fun γ => γ midpointTime) ∧ a₁.right=π.map (fun γ => γ 1) ∧ + a₀.distance=a.distance/2 ∧ a₁.distance=a.distance/2 ∧ + a₀.capacity=compressionStep K n a.distance a.capacity ∧ + a₁.capacity=compressionStep K n a.distance a.capacity := by + let : SeparableSpace X := hX.separable + let : CompleteSpace X := hX.complete + let : Nonempty X := ⟨a.center⟩ + let := a.left_probability + let := a.right_probability + have he := optimalPlan_endpoints a.left a.right π hp + have hpp : IsOptimalCoupling (π.map (fun γ => γ 0)) (π.map (fun γ => γ 1)) + (π.map (fun γ => (γ 0,γ 1))) := by rw [he.1,he.2]; exact hp + have hfin := finite_second_moment_cost + (finiteSecondMoment_of_bounded a.left a.center a.left_support) + (finiteSecondMoment_of_bounded a.right a.center a.right_support) hp.1 hp.2.1 + have hDa : OptimalPlanDistanceBound (π.map (fun γ => γ 0)) (π.map (fun γ => γ 1)) a.distance := by + rw [he.1,he.2]; exact a.distance_bound + have hD := OptimalPlanDistanceBound.midpoint_halves π hg hpp hfin hDa + let C := compressionStep K n a.distance a.capacity + have hC : C≠∞ := compressionStep_ne_top K n a.distance a.capacity_finite + have hinc : a.capacity≤C := le_compressionStep K n a.distance a.capacity (Nat.cast_nonneg _) a.distance_nonneg + have h0 : π.map (fun γ => γ 0)≤C • hausdorff n X := by + rw [he.1] + exact a.left_bound.trans (by intro B; exact mul_le_mul' hinc le_rfl) + have h1 : π.map (fun γ => γ 1)≤C • hausdorff n X := by + rw [he.2] + exact a.right_bound.trans (by intro B; exact mul_le_mul' hinc le_rfl) + have hmid : π.map (fun γ => γ midpointTime)≤C • hausdorff n X := + (hX.maximal_midpoint_compressed K n hn a π hg hp hq0 hq1 hm).trans + (by intro B; exact mul_le_mul' (midpointCapacity_le_compressionStep K n a.distance a.capacity + (Nat.cast_nonneg _) a.distance_nonneg) le_rfl) + have hs (t : Time) : ∀ᵐ x ∂π.map (fun γ => γ t), dist x a.center≤3*a.radius := by + apply (ae_map_iff (measurable_path_eval t).aemeasurable + (measurableSet_le (measurable_id.dist measurable_const) measurable_const)).mpr + exact (optimal_geodesic_plan_bounded a.left a.right π hg hp a.center a.radius_nonneg + a.left_support a.right_support).mono (fun γ hγ => hγ.2 t) + let a₀ : RenyiTransportNode n X := + ⟨π.map (fun γ => γ 0),π.map (fun γ => γ midpointTime),inferInstance,inferInstance, + a.center,3*a.radius,mul_nonneg (by norm_num) a.radius_nonneg,hs 0,hs midpointTime, + C,hC,h0,hmid,a.distance/2,div_nonneg a.distance_nonneg (by norm_num),hD.1⟩ + let a₁ : RenyiTransportNode n X := + ⟨π.map (fun γ => γ midpointTime),π.map (fun γ => γ 1),inferInstance,inferInstance, + a.center,3*a.radius,mul_nonneg (by norm_num) a.radius_nonneg,hs midpointTime,hs 1, + C,hC,hmid,h1,a.distance/2,div_nonneg a.distance_nonneg (by norm_num),hD.2⟩ + exact ⟨a₀,a₁,rfl,rfl,rfl,rfl,rfl,rfl,rfl,rfl⟩ + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/MaximalMidpointCompression.lean b/lean/OAI/Geometry/RCD/Transport/MaximalMidpointCompression.lean new file mode 100644 index 0000000000000000000000000000000000000000..e2f953d1b4323e47fa24b3694c924d47fd1baebe --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/MaximalMidpointCompression.lean @@ -0,0 +1,47 @@ +import OAI.Geometry.RCD.Transport.MaximalScalarMidpoint + +namespace OAI + +/-! # Compression of any actual maximal midpoint -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped ENNReal Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem NoncollapsedRCD.maximal_midpoint_compressed + (K : ℝ) (n : ℕ) (hn : 2≤n) (hX : NoncollapsedRCD K n X) + (a : RenyiTransportNode n X) (π : Measure C(Time,X)) [IsProbabilityMeasure π] + (hg : ∀ᵐ γ ∂π, IsGeodesic γ) + (hp : IsOptimalCoupling a.left a.right (π.map (fun γ => (γ 0,γ 1)))) + {q : ℝ} (hq0 : 0 γ midpointTime) ≤ midpointCapacity K n a.distance a.capacity • hausdorff n X := by + let : SeparableSpace X := hX.separable + let := a.left_probability + let := a.right_probability + let μ := hausdorff n X + let : IsLocallyFiniteMeasure μ := locallyFinite_of_finiteOnBounded μ hX.finiteOnBounded + let B := closedBall a.center (3*a.radius) + let : IsFiniteMeasure (μ.restrict B) := ⟨by + simpa [μ,B] using hX.finiteOnBounded B isBounded_closedBall⟩ + have hs (κ : Measure C(Time,X)) (hgκ : ∀ᵐ γ ∂κ, IsGeodesic γ) + (hpκ : IsOptimalCoupling a.left a.right (κ.map (fun γ => (γ 0,γ 1)))) : + ∀ᵐ x ∂κ.map (fun γ => γ midpointTime), x∈B := by + apply (ae_map_iff (measurable_path_eval midpointTime).aemeasurable measurableSet_closedBall).mpr + exact (optimal_geodesic_plan_bounded a.left a.right κ hgκ hpκ a.center a.radius_nonneg + a.left_support a.right_support).mono (fun γ hγ => hγ.2 midpointTime) + have hml := hm.local_of_global μ measurableSet_closedBall hq0 hq1 (hs π hg hp) + (fun κ _ hgκ hpκ => hs κ hgκ hpκ) + exact hX.renyi_midpoint_compressed_short K n hn a.left a.right a.capacity_finite + a.left_bound a.right_bound (finiteSecondMoment_of_bounded _ a.center a.left_support) + (finiteSecondMoment_of_bounded _ a.center a.right_support) a.center a.radius_nonneg + a.left_support a.right_support a.distance a.distance_bound π hg hp hq0 hq1 hml + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/MaximalScalarMidpoint.lean b/lean/OAI/Geometry/RCD/Transport/MaximalScalarMidpoint.lean new file mode 100644 index 0000000000000000000000000000000000000000..a3a67c6a7d9db0b7a7ec58dcbba177c1122739c3 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/MaximalScalarMidpoint.lean @@ -0,0 +1,59 @@ +import OAI.Geometry.RCD.Transport.RenyiScalarMidpoint +import OAI.Geometry.RCD.Transport.LocalRenyiMaximality + +namespace OAI + +/-! # The scalar reduced estimate for any actual maximal midpoint + +No selected-plan identity is required. The proved compression theorem +supplies the node's midpoint bound for the given variational maximizer. +-/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped Topology ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem NoncollapsedRCD.maximal_scalar_midpoint + (K : ℝ) (n : ℕ) (hn : 2≤n) (hX : NoncollapsedRCD K n X) (hK : K≤0) + {N : ℝ} (hN : (n:ℝ)≤N) (a : RenyiTransportNode n X) + (π : Measure C(Time,X)) [IsProbabilityMeasure π] + (hg : ∀ᵐ γ ∂π, IsGeodesic γ) + (hp : IsOptimalCoupling a.left a.right (π.map (fun γ => (γ 0,γ 1)))) + (hm : RenyiMaximizingPlan (hausdorff n X) a.left a.right π midpointTime (1-1/N)) : + sigma K (N+1) (1/2) a.distance * + (renyiIntegral (hausdorff n X) a.left N+renyiIntegral (hausdorff n X) a.right N) ≤ + renyiIntegral (hausdorff n X) (π.map (fun γ => γ midpointTime)) N := by + let : SeparableSpace X := hX.separable + let := a.left_probability + let := a.right_probability + let μ := hausdorff n X + let : IsLocallyFiniteMeasure μ := locallyFinite_of_finiteOnBounded μ hX.finiteOnBounded + let B := closedBall a.center (3*a.radius) + let : IsFiniteMeasure (μ.restrict B) := ⟨by + simpa [μ,B] using hX.finiteOnBounded B isBounded_closedBall⟩ + have hnR : (2:ℝ)≤n := by exact_mod_cast hn + have hN1 : 1 (γ 0,γ 1)))) : + ∀ᵐ x ∂κ.map (fun γ => γ midpointTime), x∈B := by + apply (ae_map_iff (measurable_path_eval midpointTime).aemeasurable measurableSet_closedBall).mpr + exact (optimal_geodesic_plan_bounded a.left a.right κ hgκ hpκ a.center a.radius_nonneg + a.left_support a.right_support).mono (fun γ hγ => hγ.2 midpointTime) + have hml := hm.local_of_global μ measurableSet_closedBall hq0 hq1 (hs π hg hp) + (fun κ _ hgκ hpκ => hs κ hgκ hpκ) + have hcap := hX.renyi_midpoint_compressed_short K n hn a.left a.right a.capacity_finite + a.left_bound a.right_bound (finiteSecondMoment_of_bounded _ a.center a.left_support) + (finiteSecondMoment_of_bounded _ a.center a.right_support) a.center a.radius_nonneg + a.left_support a.right_support a.distance a.distance_bound π hg hp hq0 hq1 hml + exact hX.renyiNode_scalar_midpoint K n hn hK hN a ⟨π,inferInstance,hg,hp,hcap,hm⟩ + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/MaximalTreeCompression.lean b/lean/OAI/Geometry/RCD/Transport/MaximalTreeCompression.lean new file mode 100644 index 0000000000000000000000000000000000000000..660751a0ce9faf7179dd2e9d3bdb3ab620ca9e28 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/MaximalTreeCompression.lean @@ -0,0 +1,111 @@ +import OAI.Geometry.RCD.Transport.MaximalCompressionChildren +import OAI.Geometry.RCD.Transport.RenyiTreeCompression + +namespace OAI + +/-! # The sharp uniform budget for any actual maximal tree + +This estimate depends on endpoint density and transport length, not on a +pre-existing compression constant for the full ambient plan. +-/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped ENNReal Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem NoncollapsedRCD.maximal_tree_dyadic_compression + (K : ℝ) (n : ℕ) (hn : 2≤n) (hX : NoncollapsedRCD K n X) + {q : ℝ} (hq0 : 0 (γ 0,γ 1))) → + RenyiDyadicMaximal (hausdorff n X) q (fun t => π.map (fun γ => γ t)) m → + ∀ t∈dyadicGrid m, π.map (fun γ => γ t)≤compressionBudget K n a.distance a.capacity • hausdorff n X := by + let : SeparableSpace X := hX.separable + let : CompleteSpace X := hX.complete + induction m with + | zero => + intro a π hπ hg hp hm t ht + have he := optimalPlan_endpoints a.left a.right π hp + have hb := le_compressionBudget K n a.distance a.capacity (Nat.cast_nonneg _) a.distance_nonneg + rcases ht with rfl | ht + · rw [he.1] + exact a.left_bound.trans (by intro B; exact mul_le_mul' hb le_rfl) + · have ht' : t=1 := ht + subst t + rw [he.2] + exact a.right_bound.trans (by intro B; exact mul_le_mul' hb le_rfl) + | succ m ih => + intro a π hπ hg hp hm t ht + let := hπ + let : Nonempty X := ⟨a.center⟩ + let := a.left_probability + let := a.right_probability + have he := optimalPlan_endpoints a.left a.right π hp + have hr := hm.1 + dsimp only at hr + rw [he.1,he.2] at hr + obtain ⟨a₀,a₁,h00,h0m,h1m,h11,hd0,hd1,hc0,hc1⟩ := + hX.maximal_compression_children K n hn a π hg hp hq0 hq1 hr + have hpp : IsOptimalCoupling (π.map (fun γ => γ 0)) (π.map (fun γ => γ 1)) + (π.map (fun γ => (γ 0,γ 1))) := by rw [he.1,he.2]; exact hp + have hfin := finite_second_moment_cost + (finiteSecondMoment_of_bounded a.left a.center a.left_support) + (finiteSecondMoment_of_bounded a.right a.center a.right_support) hp.1 hp.2.1 + obtain ⟨hL,hgL,hpL⟩ := geodesic_subpath_law π hg hpp hfin 0 midpointTime + obtain ⟨hR,hgR,hpR⟩ := geodesic_subpath_law π hg hpp hfin midpointTime 1 + have hpL' : IsOptimalCoupling a₀.left a₀.right + ((π.map (subpath 0 midpointTime)).map (fun γ => (γ 0,γ 1))) := by rw [h00,h0m]; exact hpL + have hpR' : IsOptimalCoupling a₁.left a₁.right + ((π.map (subpath midpointTime 1)).map (fun γ => (γ 0,γ 1))) := by rw [h1m,h11]; exact hpR + have hmL := hm.2.1.congr (fun s => (subpath_map_eval π 0 midpointTime s).symm) + have hmR := hm.2.2.congr (fun s => (subpath_map_eval π midpointTime 1 s).symm) + rcases ht with ⟨s,hs,rfl⟩ | ⟨s,hs,rfl⟩ + · have hh := ih a₀ _ hL hgL hpL' hmL s hs + simpa only [subpath_map_eval,hd0,hc0,compressionBudget_halve] using hh + · have hh := ih a₁ _ hR hgR hpR' hmR s hs + simpa only [subpath_map_eval,hd1,hc1,compressionBudget_halve] using hh + +theorem NoncollapsedRCD.maximal_tree_compression + (K : ℝ) (n : ℕ) (hn : 2≤n) (hX : NoncollapsedRCD K n X) + {q : ℝ} (hq0 : 0 (γ 0,γ 1)))) + (hm : ∀ m, RenyiDyadicMaximal (hausdorff n X) q (fun t => π.map (fun γ => γ t)) m) : + ∀ t, π.map (fun γ => γ t)≤compressionBudget K n a.distance a.capacity • hausdorff n X := by + let : SeparableSpace X := hX.separable + let : ProperSpace X := hX.proper K n hn + let := a.left_probability + let := a.right_probability + let μ := hausdorff n X + let B := closedBall a.center (3*a.radius) + let : IsFiniteMeasure (μ.restrict B) := ⟨by + simpa [μ,B] using hX.finiteOnBounded B isBounded_closedBall⟩ + let v : ProbabilityMeasure C(Time,X) := ⟨π,inferInstance⟩ + let cap := compressionBudget K n a.distance a.capacity + have hcap : cap≠∞ := compressionBudget_ne_top K n a.distance a.capacity_finite + have hs (t : Time) : ∀ᵐ x ∂π.map (fun γ => γ t), x∈B := by + apply (ae_map_iff (measurable_path_eval t).aemeasurable measurableSet_closedBall).mpr + exact (optimal_geodesic_plan_bounded a.left a.right π hg hp a.center a.radius_nonneg + a.left_support a.right_support).mono (fun γ hγ => hγ.2 t) + let T : Set Time := {t | π.map (fun γ => γ t)≤cap • μ.restrict B} + have hT : IsClosed T := (isClosed_probability_domination (μ.restrict B) hcap).preimage + (continuous_time_marginals v) + have hd : (⋃ m, dyadicGrid m)⊆T := by + intro t ht + obtain ⟨m,htm⟩ := mem_iUnion.mp ht + exact (compression_iff_localized μ _ (hs t) cap).mp + (hX.maximal_tree_dyadic_compression K n hn hq0 hq1 m a π inferInstance hg hp (hm m) t htm) + have hall := closure_minimal hd hT + rw [dense_dyadicGrid.closure_eq] at hall + exact fun t => (compression_iff_localized μ _ (hs t) cap).mpr (hall (mem_univ t)) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/MaximalTreeScalarChord.lean b/lean/OAI/Geometry/RCD/Transport/MaximalTreeScalarChord.lean new file mode 100644 index 0000000000000000000000000000000000000000..c87873931e7aef3ac1b06cd323a72799d18b6079 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/MaximalTreeScalarChord.lean @@ -0,0 +1,89 @@ +import OAI.Geometry.RCD.Transport.CompressedPlanChildren +import OAI.Geometry.RCD.Transport.ReducedChord + +namespace OAI + +/-! # Scalar interpolation on any compressed tree of maximal midpoints + +The construction need not be a particular selected tree. Only its actual +midpoint maximality and uniform compression enter the induction. +-/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped ENNReal Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem NoncollapsedRCD.maximal_tree_scalar_chord + (K : ℝ) (n : ℕ) (hn : 2≤n) (hX : NoncollapsedRCD K n X) (hK : K≤0) + {N : ℝ} (hN : (n:ℝ)≤N) {C : ℝ≥0∞} (hC : C≠∞) (m : ℕ) : + ∀ (a : RenyiTransportNode n X) (π : Measure C(Time,X)) (_hπ : IsProbabilityMeasure π), + (∀ᵐ γ ∂π, IsGeodesic γ) → + IsOptimalCoupling a.left a.right (π.map (fun γ => (γ 0,γ 1))) → + (∀ t : Time, π.map (fun γ => γ t)≤C • hausdorff n X) → + RenyiDyadicMaximal (hausdorff n X) (1-1/N) (fun t => π.map (fun γ => γ t)) m → + ∀ t∈dyadicGrid m, + reducedChord K (N+1) a.distance + (renyiIntegral (hausdorff n X) (π.map (fun γ => γ 0)) N) + (renyiIntegral (hausdorff n X) (π.map (fun γ => γ 1)) N) t ≤ + renyiIntegral (hausdorff n X) (π.map (fun γ => γ t)) N := by + let : SeparableSpace X := hX.separable + let : CompleteSpace X := hX.complete + have hNp : 1 + intro a π hπ hg hp hc hm t ht + rcases ht with rfl | ht + · rw [reducedChord_zero hK hNp a.distance_nonneg] + · have he : t=1 := ht + subst t + rw [reducedChord_one hK hNp a.distance_nonneg] + | succ m ih => + intro a π hπ hg hp hc hm t ht + let := hπ + let : Nonempty X := ⟨a.center⟩ + let := a.left_probability + let := a.right_probability + have he := optimalPlan_endpoints a.left a.right π hp + have hroot := hm.1 + dsimp only at hroot + rw [he.1,he.2] at hroot + have hmid := hX.maximal_scalar_midpoint K n hn hK hN a π hg hp hroot + rw [←he.1,←he.2] at hmid + obtain ⟨a₀,a₁,h00,h0m,h1m,h11,hd0,hd1⟩ := compressed_plan_children a π hg hp hC hc + have hpp : IsOptimalCoupling (π.map (fun γ => γ 0)) (π.map (fun γ => γ 1)) + (π.map (fun γ => (γ 0,γ 1))) := by rw [he.1,he.2]; exact hp + have hfin := finite_second_moment_cost + (finiteSecondMoment_of_bounded a.left a.center a.left_support) + (finiteSecondMoment_of_bounded a.right a.center a.right_support) hp.1 hp.2.1 + obtain ⟨hL,hgL,hpL⟩ := geodesic_subpath_law π hg hpp hfin 0 midpointTime + obtain ⟨hR,hgR,hpR⟩ := geodesic_subpath_law π hg hpp hfin midpointTime 1 + have hpL' : IsOptimalCoupling a₀.left a₀.right + ((π.map (subpath 0 midpointTime)).map (fun γ => (γ 0,γ 1))) := by rw [h00,h0m]; exact hpL + have hpR' : IsOptimalCoupling a₁.left a₁.right + ((π.map (subpath midpointTime 1)).map (fun γ => (γ 0,γ 1))) := by rw [h1m,h11]; exact hpR + have hcL (s : Time) : (π.map (subpath 0 midpointTime)).map (fun γ => γ s)≤C • hausdorff n X := by + rw [subpath_map_eval]; exact hc _ + have hcR (s : Time) : (π.map (subpath midpointTime 1)).map (fun γ => γ s)≤C • hausdorff n X := by + rw [subpath_map_eval]; exact hc _ + have hmL := hm.2.1.congr (fun s => (subpath_map_eval π 0 midpointTime s).symm) + have hmR := hm.2.2.congr (fun s => (subpath_map_eval π midpointTime 1 s).symm) + rcases ht with ⟨s,hs,rfl⟩ | ⟨s,hs,rfl⟩ + · rw [reducedChord_lower hK hNp a.distance_nonneg] + refine (reducedChord_mono le_rfl hmid s).trans ?_ + simpa only [hd0,subpath_map_eval,lowerTime,timeSegment_zero,timeSegment_one] using + ih a₀ _ hL hgL hpL' hcL hmL s hs + · rw [reducedChord_upper hK hNp a.distance_nonneg] + refine (reducedChord_mono hmid le_rfl s).trans ?_ + simpa only [hd1,subpath_map_eval,upperTime,timeSegment_zero,timeSegment_one] using + ih a₁ _ hR hgR hpR' hcR hmR s hs + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/MeasuredTransportData.lean b/lean/OAI/Geometry/RCD/Transport/MeasuredTransportData.lean new file mode 100644 index 0000000000000000000000000000000000000000..ab98e9ad501c631c6dd03a6288f4f6aaf67717ff --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/MeasuredTransportData.lean @@ -0,0 +1,72 @@ +import OAI.Geometry.RCD.Metric.MeasuredDensityPair +import OAI.Geometry.RCD.Transport.BoundedDensityPlanFamily + +namespace OAI + +/-! # Actual bounded transport families supplied by compact Euclidean densities -/ + +open Set Filter MeasureTheory Metric +open scoped Topology ENNReal BoundedContinuousFunction +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +/-- Bounded source measures, optimal transport plans, compression estimates, +and convergence of their Euclidean pushforwards. -/ +structure MeasuredTransportData {K : ℝ} {n : ℕ} (hX : NoncollapsedRCD K n X) + (p : ℕ → X) (r : ℕ → ℝ) (S τ : ℝ) (v : ℕ → X → Euclidean n) + (α β : ProbabilityMeasure (Euclidean n)) (c₀ : ℝ) where + offset : ℕ + left : ℕ → ProbabilityMeasure X + right : ℕ → ProbabilityMeasure X + control : ℕ → ℝ + plan : ℕ → ProbabilityMeasure C(Time,X) + control_nonneg : ∀ k, 0≤control k + control_limit : Tendsto control atTop (𝓝 c₀) + left_bound : ∀ k, (left k : Measure X)≤ + (ENNReal.ofReal (control k)*(hausdorff n X (ball (p (k+offset)) (S*r (k+offset))))⁻¹) • hausdorff n X + right_bound : ∀ k, (right k : Measure X)≤ + (ENNReal.ofReal (control k)*(hausdorff n X (ball (p (k+offset)) (S*r (k+offset))))⁻¹) • hausdorff n X + left_support : ∀ k, ∀ᵐ x ∂(left k : Measure X), dist x (p (k+offset))≤τ*r (k+offset) + right_support : ∀ k, ∀ᵐ x ∂(right k : Measure X), dist x (p (k+offset))≤τ*r (k+offset) + left_limit : Tendsto (fun k => (left k).map (v (k+offset))) atTop (𝓝 α) + right_limit : Tendsto (fun k => (right k).map (v (k+offset))) atTop (𝓝 β) + geodesic : ∀ k, ∀ᵐ γ ∂(plan k : Measure C(Time,X)), IsGeodesic γ + optimal : ∀ k, IsOptimalCoupling (left k) (right k) + ((plan k : Measure C(Time,X)).map (fun γ => (γ 0,γ 1))) + compression : ∀ k t, (plan k : Measure C(Time,X)).map (fun γ => γ t)≤ + compressionBudget K n (2*(τ*r (k+offset))) + (ENNReal.ofReal (control k)*(hausdorff n X (ball (p (k+offset)) (S*r (k+offset))))⁻¹) • hausdorff n X + +theorem NoncollapsedRCD.measured_transport_data {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (hn : 2≤n) {S ρ τ : ℝ} + (hS : 0 ENNReal.ofReal (c k)* + (hausdorff n X (ball (p (k+N)) (S*r (k+N))))⁻¹ + have hC (k : ℕ) : C k≠⊤ := ENNReal.mul_ne_top ENNReal.ofReal_ne_top + (ENNReal.inv_ne_top.mpr (hX.fullSupport _ _ (mul_pos hS (hr (k+N)))).ne') + obtain ⟨P,hgeo,hopt,_,hcomp⟩ := hX.bounded_density_plan_family hn + (fun k => p (k+N)) (fun k => τ*r (k+N)) (fun k => mul_nonneg hτ (hr (k+N)).le) + ν₀ ν₁ C hC hb₀ hb₁ hs₀ hs₁ + exact ⟨⟨N,ν₀,ν₁,c,P,hc,hcl,hb₀,hb₁,hs₀,hs₁,hw₀,hw₁,hgeo,hopt,hcomp⟩⟩ + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/MeasuredTransportSupport.lean b/lean/OAI/Geometry/RCD/Transport/MeasuredTransportSupport.lean new file mode 100644 index 0000000000000000000000000000000000000000..23a560c36ed384950a3ac0c7d4a9a74dc4cf9227 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/MeasuredTransportSupport.lean @@ -0,0 +1,48 @@ +import OAI.Geometry.RCD.Transport.MeasuredTransportData +import OAI.Geometry.RCD.Metric.MeasuredDensityPairSupport + +namespace OAI + +/-! # Actual transport families retain the supports of both source densities -/ + +open Set Filter MeasureTheory Metric +open scoped Topology ENNReal BoundedContinuousFunction +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem NoncollapsedRCD.measured_transport_data_nonzero {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (hn : 2≤n) {S ρ τ : ℝ} + (hS : 0 ENNReal.ofReal (c k)* + (hausdorff n X (ball (p (k+N)) (S*r (k+N))))⁻¹ + have hC (k : ℕ) : C k≠⊤ := ENNReal.mul_ne_top ENNReal.ofReal_ne_top + (ENNReal.inv_ne_top.mpr (hX.fullSupport _ _ (mul_pos hS (hr (k+N)))).ne') + obtain ⟨P,hgeo,hopt,_,hcomp⟩ := hX.bounded_density_plan_family hn + (fun k => p (k+N)) (fun k => τ*r (k+N)) (fun k => mul_nonneg hτ (hr (k+N)).le) + ν₀ ν₁ C hC hb₀ hb₁ hs₀ hs₁ + exact ⟨⟨N,ν₀,ν₁,c,P,hc,hcl,hb₀,hb₁,hs₀,hs₁,hw₀,hw₁,hgeo,hopt,hcomp⟩,hn₀,hn₁⟩ + + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/MeasuredTransportValues.lean b/lean/OAI/Geometry/RCD/Transport/MeasuredTransportValues.lean new file mode 100644 index 0000000000000000000000000000000000000000..22fca7381b0d78e6957cb0f2e3dc0c41818b73a7 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/MeasuredTransportValues.lean @@ -0,0 +1,74 @@ +import OAI.Geometry.RCD.Transport.MeasuredTransportData +import OAI.Geometry.RCD.Metric.PointedMeasureValues + +namespace OAI + +/-! # The endpoint means of actual Sobolev functions have the prescribed value limits -/ + +open Set Filter MeasureTheory Metric +open scoped Topology ENNReal NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem MeasuredTransportData.mean_difference_tendsto {K : ℝ} {n : ℕ} + {hX : NoncollapsedRCD K n X} {p : ℕ → X} {r ε : ℕ → ℝ} {S τ B : ℝ} + {v : ℕ → X → Euclidean n} {α β : ProbabilityMeasure (Euclidean n)} {c₀ : ℝ} + (D : MeasuredTransportData hX p r S τ v α β c₀) + (hS : 0 + (∫ γ : C(Time,X), SobolevSpace.toLp (hausdorff n X) hX.quadratic (w k) (γ 1) + ∂(D.plan k : Measure C(Time,X)))- + (∫ γ : C(Time,X), SobolevSpace.toLp (hausdorff n X) hX.quadratic (w k) (γ 0) + ∂(D.plan k : Measure C(Time,X)))) atTop + (𝓝 ((∫ z, g z ∂(β : Measure (Euclidean n)))-(∫ z, g z ∂(α : Measure (Euclidean n))))) := by + let μ := hausdorff n X + let C := fun k => ENNReal.ofReal (D.control k)*(μ (ball (p (k+D.offset)) (S*r (k+D.offset))))⁻¹ + have hC (k : ℕ) : C k≠⊤ := ENNReal.mul_ne_top ENNReal.ofReal_ne_top + (ENNReal.inv_ne_top.mpr (hX.fullSupport _ _ (mul_pos hS (hr _))).ne') + have hmean (σ : ℕ → ProbabilityMeasure X) + (hb : ∀ k, (σ k : Measure X)≤C k • μ) + (hs : ∀ k, ∀ᵐ x ∂(σ k : Measure X), dist x (p (k+D.offset))≤τ*r (k+D.offset)) + {ν : ProbabilityMeasure (Euclidean n)} + (hw : Tendsto (fun k => (σ k).map (v (k+D.offset))) atTop (𝓝 ν)) : + Tendsto (fun k => ∫ x, SobolevSpace.toLp μ hX.quadratic (w k) x ∂(σ k : Measure X)) + atTop (𝓝 (∫ z, g z ∂(ν : Measure (Euclidean n)))) := by + refine pointed_local_value_integrals hτ (hτB.le.trans hBS) hτB + (fun k => p (k+D.offset)) (fun k => r (k+D.offset)) (fun k => ε (k+D.offset)) + (fun k => v (k+D.offset)) (fun k => hr (k+D.offset)) + (hεlim.comp (tendsto_add_atTop_nat D.offset)) (fun k => (hv (k+D.offset)).metric) + (fun k => (hv (k+D.offset)).measurable) σ hs hw (fun k => SobolevSpace.toLp μ hX.quadratic (w k)) ?_ hg ?_ + · intro k + exact ((Lp.memLp _).of_measure_le_smul (hC k) (hb k)).integrable (by norm_num) + · intro δ hδ + filter_upwards [hclose δ hδ] with k hk + have he := (Measure.absolutelyContinuous_of_le_smul (hb k)).ae_le hk + filter_upwards [he,hs k] with x hx hsx + exact hx hsx + have hl := hmean D.left D.left_bound D.left_support D.left_limit + have hr' := hmean D.right D.right_bound D.right_support D.right_limit + have hend (k : ℕ) := optimalPlan_endpoints (D.left k : Measure X) (D.right k : Measure X) + (D.plan k : Measure C(Time,X)) (D.optimal k) + have he0 (k : ℕ) : (∫ γ : C(Time,X), SobolevSpace.toLp μ hX.quadratic (w k) (γ 0) + ∂(D.plan k : Measure C(Time,X)))=∫ x, SobolevSpace.toLp μ hX.quadratic (w k) x ∂(D.left k : Measure X) := by + rw [← integral_map (measurable_path_eval 0).aemeasurable + (Lp.stronglyMeasurable _).aestronglyMeasurable,(hend k).1] + have he1 (k : ℕ) : (∫ γ : C(Time,X), SobolevSpace.toLp μ hX.quadratic (w k) (γ 1) + ∂(D.plan k : Measure C(Time,X)))=∫ x, SobolevSpace.toLp μ hX.quadratic (w k) x ∂(D.right k : Measure X) := by + rw [← integral_map (measurable_path_eval 1).aemeasurable + (Lp.stronglyMeasurable _).aestronglyMeasurable,(hend k).2] + simpa only [he0,he1,μ] using hr'.sub hl + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/MeetingPairCollapse.lean b/lean/OAI/Geometry/RCD/Transport/MeetingPairCollapse.lean new file mode 100644 index 0000000000000000000000000000000000000000..51a0b3a623b0fbaa35fcb466dd1a916e8bf9d5e9 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/MeetingPairCollapse.lean @@ -0,0 +1,116 @@ +import OAI.Geometry.RCD.Transport.MeetingSpliceOptimality +import OAI.Geometry.RCD.Transport.CompressedPlanMixture + +namespace OAI + +/-! # Conditional meeting pairs collapse by forward and backward nonbranching -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped ENNReal NNReal Topology +noncomputable section +namespace RegularPointCoordinates.NoncollapsedRCD +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] [SeparableSpace X] {K : ℝ} {n : ℕ} + [IsLocallyFiniteMeasure (hausdorff n X)] (hX : NoncollapsedRCD K n X) +include hX +attribute [local instance] pathBorel pathBorelSpace + +theorem contacting_pair_collapse (hn : 2 ≤ n) (p : X) {R : ℝ} (hR : 0 ≤ R) + (π : Measure C(Time,X)) [IsProbabilityMeasure π] (hg : ∀ᵐ γ ∂π, IsGeodesic γ) + (hp : IsOptimalCoupling (π.map (fun γ => γ 0)) (π.map (fun γ => γ 1)) + (π.map (fun γ => (γ 0,γ 1)))) + {C : ℝ≥0} (hC : 0 < C) + (hc : ∀ t : Time, π.map (fun γ => γ t) ≤ ENNReal.ofReal C • hausdorff n X) + (hs₀ : ∀ᵐ x ∂π.map (fun γ => γ 0), dist x p ≤ R) + (hs₁ : ∀ᵐ x ∂π.map (fun γ => γ 1), dist x p ≤ R) + {φ ψ : X → ℝ} (hφ : Measurable φ) (hψ : Measurable ψ) + (had : ∀ x y, φ x+ψ y ≤ dist x y^2/2) + (hcontact : ∀ᵐ γ ∂π, φ (γ 0)+ψ (γ 1)=dist (γ 0) (γ 1)^2/2) + (σ : Measure (C(Time,X)×C(Time,X))) [IsProbabilityMeasure σ] + (hl : σ.map Prod.fst=π) (hr : σ.map Prod.snd=π) + (t : Time) (ht0 : 0 < (t:ℝ)) (ht1 : (t:ℝ) < 1) + (hmeet : ∀ᵐ z ∂σ, z.1 t=z.2 t) : ∀ᵐ z ∂σ, z.1=z.2 := by + let τ := σ.map (meetingSplice t) + obtain ⟨hgτ,hτ₀,hτ₁,hpτ⟩ := meeting_splice_optimal π hg hp hφ hψ had hcontact σ hl hr t ht0 ht1 hmeet + let ξ := (2:ℝ≥0∞)⁻¹ • (π+τ) + obtain ⟨hprob,hgξ,hpξ,hπξ,hτξ⟩ := half_mixture_plan_data π τ hg hgτ hp hpτ + let : IsProbabilityMeasure ξ := hprob + let B : ℝ≥0 := C+C + have hB : 0 < B := add_pos hC hC + have hBe : ENNReal.ofReal B=ENNReal.ofReal C+ENNReal.ofReal C := + ENNReal.ofReal_add C.coe_nonneg C.coe_nonneg + have hcπ (u : Time) : π.map (fun γ => γ u) ≤ ENNReal.ofReal B • hausdorff n X := by + rw [hBe,add_smul] + exact (hc u).trans (Measure.le_add_right le_rfl) + have hcτ (u : Time) : τ.map (fun γ => γ u) ≤ ENNReal.ofReal B • hausdorff n X := by + rw [hBe,add_smul] + have h := meetingSplice_compression t u σ + rw [hl,hr] at h + exact h.trans (add_le_add (hc u) (hc u)) + have hcξ (u : Time) : ξ.map (fun γ => γ u) ≤ ENNReal.ofReal B • hausdorff n X := + half_mixture_compression (hausdorff n X) π τ hcπ hcτ u + have hξ₀ : ξ.map (fun γ => γ 0)=π.map (fun γ => γ 0) := by + rw [half_mixture_map_eval,hτ₀,half_smul_self] + have hξ₁ : ξ.map (fun γ => γ 1)=π.map (fun γ => γ 1) := by + rw [half_mixture_map_eval,hτ₁,half_smul_self] + have hpξ' : IsOptimalCoupling (ξ.map (fun γ => γ 0)) (ξ.map (fun γ => γ 1)) + (ξ.map (fun γ => (γ 0,γ 1))) := by rwa [hξ₀,hξ₁] + have hsξ₀ : ∀ᵐ x ∂ξ.map (fun γ => γ 0), dist x p ≤ R := by rwa [hξ₀] + have hsξ₁ : ∀ᵐ x ∂ξ.map (fun γ => γ 1), dist x p ≤ R := by rwa [hξ₁] + let F := fun z : C(Time,X)×C(Time,X) => (z.1,meetingSplice t z) + let G := fun z : C(Time,X)×C(Time,X) => (z.2,meetingSplice t z) + have hF : Measurable F := measurable_fst.prodMk (measurable_meetingSplice t) + have hG : Measurable G := measurable_snd.prodMk (measurable_meetingSplice t) + have hF₀ : (σ.map F).map Prod.fst=π := by + simpa only [Measure.map_map measurable_fst hF,Function.comp_def,F] using hl + have hG₀ : (σ.map G).map Prod.fst=π := by + simpa only [Measure.map_map measurable_fst hG,Function.comp_def,G] using hr + have hF₁ : (σ.map F).map Prod.snd=τ := by + rw [Measure.map_map measurable_snd hF]; rfl + have hG₁ : (σ.map G).map Prod.snd=τ := by + rw [Measure.map_map measurable_snd hG]; rfl + have hdomF₀ : ((2:ℝ≥0∞)⁻¹ • σ.map F).map Prod.fst ≤ ξ := by + rw [Measure.map_smul _ measurable_fst.aemeasurable,hF₀]; exact hπξ + have hdomF₁ : ((2:ℝ≥0∞)⁻¹ • σ.map F).map Prod.snd ≤ ξ := by + rw [Measure.map_smul _ measurable_snd.aemeasurable,hF₁]; exact hτξ + have hdomG₀ : ((2:ℝ≥0∞)⁻¹ • σ.map G).map Prod.fst ≤ ξ := by + rw [Measure.map_smul _ measurable_fst.aemeasurable,hG₀]; exact hπξ + have hdomG₁ : ((2:ℝ≥0∞)⁻¹ • σ.map G).map Prod.snd ≤ ξ := by + rw [Measure.map_smul _ measurable_snd.aemeasurable,hG₁]; exact hτξ + have hpast : ∀ᵐ z ∂((2:ℝ≥0∞)⁻¹ • σ.map F), z ∈ pathAgreement (t:ℝ) := by + have hpast0 : ∀ᵐ z ∂σ.map F, z ∈ pathAgreement (t:ℝ) := by + apply (ae_map_iff hF.aemeasurable (measurableSet_pathAgreement _)).mpr + exact .of_forall fun z r hr => (meetingSplice_left t z hr).symm + exact hpast0.filter_mono Measure.smul_absolutelyContinuous.ae_le + have hsuffix : ∀ᵐ z ∂((2:ℝ≥0∞)⁻¹ • σ.map G), ∀ r : Time, t ≤ r → z.1 r=z.2 r := by + have hsource : ∀ᵐ z ∂σ, ∀ r : Time, t ≤ r → z.2 r=meetingSplice t z r := + hmeet.mono fun z hz r hr => (meetingSplice_right t z hz hr).symm + have hclosed : IsClosed {z : C(Time,X)×C(Time,X) | ∀ r : Time, t ≤ r → z.1 r=z.2 r} := by + simp only [ofPred_forall] + apply isClosed_iInter + intro r + apply isClosed_iInter + intro _ + exact isClosed_eq ((continuous_eval_const r).comp continuous_fst) + ((continuous_eval_const r).comp continuous_snd) + have hh' : ∀ᵐ z ∂σ.map G, ∀ r : Time, t ≤ r → z.1 r=z.2 r := + (ae_map_iff hG.aemeasurable hclosed.measurableSet).mpr hsource + exact hh'.filter_mono Measure.smul_absolutelyContinuous.ae_le + let : IsFiniteMeasure ((2:ℝ≥0∞)⁻¹ • σ.map F) := (σ.map F).smul_finite (by norm_num) + let : IsFiniteMeasure ((2:ℝ≥0∞)⁻¹ • σ.map G) := (σ.map G).smul_finite (by norm_num) + have hleft := hX.paired_common_prefix_unique hn p hR ξ hgξ hpξ' hB hcξ hsξ₀ hsξ₁ + ((2:ℝ≥0∞)⁻¹ • σ.map F) hdomF₀ hdomF₁ t ht0 hpast + have hright := hX.paired_common_suffix_unique hn p hR ξ hgξ hpξ' hB hcξ hsξ₀ hsξ₁ + ((2:ℝ≥0∞)⁻¹ • σ.map G) hdomG₀ hdomG₁ t ht1 hsuffix + have haF := hleft.filter_mono (Measure.absolutelyContinuous_smul (by norm_num : (2:ℝ≥0∞)⁻¹ ≠ 0)).ae_le + have haG := hright.filter_mono (Measure.absolutelyContinuous_smul (by norm_num : (2:ℝ≥0∞)⁻¹ ≠ 0)).ae_le + have hleft' := ae_of_ae_map (p:=fun z : C(Time,X)×C(Time,X) => z.1=z.2) hF.aemeasurable haF + have hright' := ae_of_ae_map (p:=fun z : C(Time,X)×C(Time,X) => z.1=z.2) hG.aemeasurable haG + filter_upwards [hleft',hright'] with z hz₀ hz₁ + exact hz₀.trans hz₁.symm + +end RegularPointCoordinates.NoncollapsedRCD + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/MeetingSplice.lean b/lean/OAI/Geometry/RCD/Transport/MeetingSplice.lean new file mode 100644 index 0000000000000000000000000000000000000000..6e058c7d146a0ad353496c9db16463152e921fac --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/MeetingSplice.lean @@ -0,0 +1,77 @@ +import OAI.Geometry.RCD.Transport.MeetingSpliceGeometry +import OAI.Geometry.RCD.Transport.ResolvedBranchMeasure + +namespace OAI + +/-! # A measurable total splice at a prescribed meeting time -/ + +open Set Filter MeasureTheory TopologicalSpace +open scoped Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] + +def meetingSplice (t : Time) (z : C(Time,X)×C(Time,X)) : C(Time,X) := by + classical + exact if h : z.1 t=z.2 t then splicePathAt t z.1 z.2 h else z.1 + +theorem meetingSplice_apply (t : Time) (z : C(Time,X)×C(Time,X)) + (hz : z.1 t=z.2 t) (r : Time) : + meetingSplice t z r=if r ≤ t then z.1 r else z.2 r := by + simp [meetingSplice,hz,splicePathAt] + +theorem meetingSplice_left (t : Time) (z : C(Time,X)×C(Time,X)) + {r : Time} (hr : r ≤ t) : meetingSplice t z r=z.1 r := by + classical + by_cases hz : z.1 t=z.2 t <;> simp [meetingSplice,splicePathAt,hz,hr] + +theorem meetingSplice_right (t : Time) (z : C(Time,X)×C(Time,X)) + (hz : z.1 t=z.2 t) {r : Time} (hr : t ≤ r) : meetingSplice t z r=z.2 r := by + classical + simp only [meetingSplice,dite_eq_left hz] + exact splicePathAt_right _ _ _ _ hr + +theorem meetingSplice_choice (t : Time) (z : C(Time,X)×C(Time,X)) (r : Time) : + meetingSplice t z r=z.1 r ∨ meetingSplice t z r=z.2 r := by + by_cases hr : r ≤ t + · exact Or.inl (meetingSplice_left t z hr) + · by_cases hz : z.1 t=z.2 t + · exact Or.inr (meetingSplice_right t z hz (le_of_not_ge hr)) + · simp [meetingSplice,hz] + +variable [MeasurableSpace X] [BorelSpace X] [SeparableSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem measurable_meetingSplice (t : Time) : Measurable (meetingSplice (X:=X) t) := by + classical + apply ContinuousMap.measurable_iff_eval.mpr + intro r + have hE : MeasurableSet {z : C(Time,X)×C(Time,X) | z.1 t=z.2 t} := + measurableSet_eq_fun ((measurable_path_eval t).comp measurable_fst) + ((measurable_path_eval t).comp measurable_snd) + have hinner : Measurable (fun z : C(Time,X)×C(Time,X) => if r ≤ t then z.1 r else z.2 r) := by + split_ifs + · exact (measurable_path_eval r).comp measurable_fst + · exact (measurable_path_eval r).comp measurable_snd + have h : Measurable (fun z : C(Time,X)×C(Time,X) => + if z.1 t=z.2 t then (if r ≤ t then z.1 r else z.2 r) else z.1 r) := + Measurable.ite hE hinner ((measurable_path_eval r).comp measurable_fst) + convert h using 1 + funext z + by_cases hz : z.1 t=z.2 t <;> simp [meetingSplice,splicePathAt,hz] + +theorem meetingSplice_compression (t r : Time) (σ : Measure (C(Time,X)×C(Time,X))) : + (σ.map (meetingSplice t)).map (fun γ => γ r) ≤ + (σ.map Prod.fst).map (fun γ => γ r)+(σ.map Prod.snd).map (fun γ => γ r) := by + rw [Measure.map_map (measurable_path_eval r) (measurable_meetingSplice t), + Measure.map_map (measurable_path_eval r) measurable_fst, + Measure.map_map (measurable_path_eval r) measurable_snd] + exact map_le_add_of_choice σ ((measurable_path_eval r).comp measurable_fst) + ((measurable_path_eval r).comp measurable_snd) ((measurable_path_eval r).comp (measurable_meetingSplice t)) + (fun z => meetingSplice_choice t z r) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/MeetingSpliceGeometry.lean b/lean/OAI/Geometry/RCD/Transport/MeetingSpliceGeometry.lean new file mode 100644 index 0000000000000000000000000000000000000000..1192a804252bbe81c6d3051d7a11282d7ba4a7d7 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/MeetingSpliceGeometry.lean @@ -0,0 +1,66 @@ +import OAI.Geometry.RCD.Transport.PathMeetingSplice +import OAI.Geometry.RCD.Transport.ContactCrossLength + +namespace OAI + +/-! # Splicing arbitrary contacting geodesics at an interior meeting -/ + +open Set Filter MeasureTheory TopologicalSpace +open scoped Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] + +theorem splicePathAt_isGeodesic_of_cross_length (t : Time) (γ ζ : C(Time,X)) (he : γ t=ζ t) + (hγ : IsGeodesic γ) (hζ : IsGeodesic ζ) + (hcross : dist (γ 0) (ζ 1)=dist (ζ 0) (ζ 1)) + (hlen : dist (γ 0) (γ 1)=dist (ζ 0) (ζ 1)) : + IsGeodesic (splicePathAt t γ ζ he) := by + have hordered (s u : Time) (hsu : s ≤ u) : + dist (splicePathAt t γ ζ he s) (splicePathAt t γ ζ he u) ≤ + ((u:ℝ)-(s:ℝ))*dist (ζ 0) (ζ 1) := by + by_cases hut : u ≤ t + · rw [splicePathAt_left t γ ζ he (hsu.trans hut),splicePathAt_left t γ ζ he hut, + hγ,hlen,abs_sub_comm (s:ℝ) (u:ℝ), + abs_of_nonneg (sub_nonneg.mpr (show (s:ℝ) ≤ (u:ℝ) from hsu))] + by_cases hts : t ≤ s + · rw [splicePathAt_right t γ ζ he hts,splicePathAt_right t γ ζ he (hts.trans hsu), + hζ,abs_sub_comm (s:ℝ) (u:ℝ), + abs_of_nonneg (sub_nonneg.mpr (show (s:ℝ) ≤ (u:ℝ) from hsu))] + have hst : s ≤ t := (lt_of_not_ge hts).le + have htu : t ≤ u := (lt_of_not_ge hut).le + rw [splicePathAt_left t γ ζ he hst,splicePathAt_right t γ ζ he htu] + calc + dist (γ s) (ζ u) ≤ dist (γ s) (γ t)+dist (γ t) (ζ u) := dist_triangle _ _ _ + _ = ((t:ℝ)-(s:ℝ))*dist (ζ 0) (ζ 1)+((u:ℝ)-(t:ℝ))*dist (ζ 0) (ζ 1) := by + rw [hγ,he,hζ,hlen,abs_sub_comm (s:ℝ) (t:ℝ), + abs_of_nonneg (sub_nonneg.mpr (show (s:ℝ) ≤ (t:ℝ) from hst)),abs_sub_comm (t:ℝ) (u:ℝ), + abs_of_nonneg (sub_nonneg.mpr (show (t:ℝ) ≤ (u:ℝ) from htu))] + _ = _ := by ring + apply isGeodesic_of_dist_le + intro s u + rw [splicePathAt_zero,splicePathAt_one,hcross] + rcases le_total s u with hsu | hus + · rw [abs_sub_comm (s:ℝ) (u:ℝ), + abs_of_nonneg (sub_nonneg.mpr (show (s:ℝ) ≤ (u:ℝ) from hsu))] + exact hordered s u hsu + · rw [abs_of_nonneg (sub_nonneg.mpr (show (u:ℝ) ≤ (s:ℝ) from hus)),dist_comm] + exact hordered u s hus + + +theorem contacting_splice_isGeodesic {φ ψ : X → ℝ} + (had : ∀ x y, φ x+ψ y ≤ dist x y^2/2) + {γ ζ : C(Time,X)} (hg : IsGeodesic γ) (hz : IsGeodesic ζ) + (hγ : φ (γ 0)+ψ (γ 1)=dist (γ 0) (γ 1)^2/2) + (hζ : φ (ζ 0)+ψ (ζ 1)=dist (ζ 0) (ζ 1)^2/2) + {t : Time} (ht0 : 0 < (t:ℝ)) (ht1 : (t:ℝ) < 1) (hmeet : γ t=ζ t) : + IsGeodesic (splicePathAt t γ ζ hmeet) := by + have hlen := contacting_geodesics_equal_length had hg hz hγ hζ ht0 ht1 hmeet + have hcross := (contacting_geodesics_cross_length had hg hz hγ hζ ht0 ht1 hmeet).1 + exact splicePathAt_isGeodesic_of_cross_length t γ ζ hmeet hg hz (hcross.trans hlen) hlen + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/MeetingSpliceOptimality.lean b/lean/OAI/Geometry/RCD/Transport/MeetingSpliceOptimality.lean new file mode 100644 index 0000000000000000000000000000000000000000..d53297ee85d0184e4a5077f9e35c3a3064fa3adf --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/MeetingSpliceOptimality.lean @@ -0,0 +1,89 @@ +import OAI.Geometry.RCD.Transport.MeetingSplice + +namespace OAI + +/-! # Splicing a conditional pair preserves the actual optimal cost -/ + +open Set Filter MeasureTheory TopologicalSpace +open scoped ENNReal Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [SeparableSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem meeting_splice_optimal (π : Measure C(Time,X)) [IsProbabilityMeasure π] + (hg : ∀ᵐ γ ∂π, IsGeodesic γ) + (hp : IsOptimalCoupling (π.map (fun γ => γ 0)) (π.map (fun γ => γ 1)) + (π.map (fun γ => (γ 0,γ 1)))) + {φ ψ : X → ℝ} (hφ : Measurable φ) (hψ : Measurable ψ) + (had : ∀ x y, φ x+ψ y ≤ dist x y^2/2) + (hcontact : ∀ᵐ γ ∂π, φ (γ 0)+ψ (γ 1)=dist (γ 0) (γ 1)^2/2) + (σ : Measure (C(Time,X)×C(Time,X))) [IsProbabilityMeasure σ] + (hl : σ.map Prod.fst=π) (hr : σ.map Prod.snd=π) + (t : Time) (ht0 : 0 < (t:ℝ)) (ht1 : (t:ℝ) < 1) + (hmeet : ∀ᵐ z ∂σ, z.1 t=z.2 t) : + let τ := σ.map (meetingSplice t) + (∀ᵐ γ ∂τ, IsGeodesic γ) ∧ + τ.map (fun γ => γ 0)=π.map (fun γ => γ 0) ∧ + τ.map (fun γ => γ 1)=π.map (fun γ => γ 1) ∧ + IsOptimalCoupling (π.map (fun γ => γ 0)) (π.map (fun γ => γ 1)) + (τ.map (fun γ => (γ 0,γ 1))) := by + have hcset : MeasurableSet {γ : C(Time,X) | φ (γ 0)+ψ (γ 1)=dist (γ 0) (γ 1)^2/2} := + measurableSet_eq_fun ((hφ.comp (measurable_path_eval 0)).add (hψ.comp (measurable_path_eval 1))) + ((((measurable_path_eval 0).dist (measurable_path_eval 1)).pow_const 2).div_const 2) + have hg₀ : ∀ᵐ z ∂σ, IsGeodesic z.1 := by + apply (ae_map_iff measurable_fst.aemeasurable isClosed_geodesicSet.measurableSet).mp + rwa [hl] + have hg₁ : ∀ᵐ z ∂σ, IsGeodesic z.2 := by + apply (ae_map_iff measurable_snd.aemeasurable isClosed_geodesicSet.measurableSet).mp + rwa [hr] + have hc₀ : ∀ᵐ z ∂σ, φ (z.1 0)+ψ (z.1 1)=dist (z.1 0) (z.1 1)^2/2 := by + apply (ae_map_iff measurable_fst.aemeasurable hcset).mp + rwa [hl] + have hc₁ : ∀ᵐ z ∂σ, φ (z.2 0)+ψ (z.2 1)=dist (z.2 0) (z.2 1)^2/2 := by + apply (ae_map_iff measurable_snd.aemeasurable hcset).mp + rwa [hr] + let τ := σ.map (meetingSplice t) + have hτ₀ : τ.map (fun γ => γ 0)=π.map (fun γ => γ 0) := by + rw [←hl,Measure.map_map (measurable_path_eval 0) measurable_fst, + Measure.map_map (measurable_path_eval 0) (measurable_meetingSplice t)] + apply Measure.map_congr + exact .of_forall fun z => meetingSplice_left t z t.property.1 + have hτ₁ : τ.map (fun γ => γ 1)=π.map (fun γ => γ 1) := by + rw [←hr,Measure.map_map (measurable_path_eval 1) measurable_snd, + Measure.map_map (measurable_path_eval 1) (measurable_meetingSplice t)] + apply Measure.map_congr + exact hmeet.mono fun z hz => meetingSplice_right t z hz t.property.2 + have hcost : transportCost (τ.map (fun γ => (γ 0,γ 1)))= + transportCost (π.map (fun γ => (γ 0,γ 1))) := by + have hm := (measurable_path_eval (X:=X) 0).prodMk (measurable_path_eval 1) + have hdist : Measurable (fun z : X×X => ENNReal.ofReal (dist z.1 z.2)^2) := + ((measurable_fst.dist measurable_snd).ennreal_ofReal).pow_const 2 + have hpath : Measurable (fun γ : C(Time,X) => ENNReal.ofReal (dist (γ 0) (γ 1))^2) := + (((measurable_path_eval 0).dist (measurable_path_eval 1)).ennreal_ofReal).pow_const 2 + unfold transportCost + simp_rw [lintegral_map hdist hm] + rw [←hl,lintegral_map hpath measurable_fst] + change (∫⁻ γ, ENNReal.ofReal (dist (γ 0) (γ 1))^2 ∂σ.map (meetingSplice t))=_ + rw [lintegral_map hpath (measurable_meetingSplice t)] + apply lintegral_congr_ae + filter_upwards [hg₀,hg₁,hc₀,hc₁,hmeet] with z hz₀ hz₁ hc₀ hc₁ hz + rw [meetingSplice_left t z t.property.1,meetingSplice_right t z hz t.property.2, + (contacting_geodesics_cross_length had hz₀ hz₁ hc₀ hc₁ ht0 ht1 hz).1] + refine ⟨?_,hτ₀,hτ₁,?_,?_,?_⟩ + · apply (ae_map_iff (measurable_meetingSplice t).aemeasurable isClosed_geodesicSet.measurableSet).mpr + filter_upwards [hg₀,hg₁,hc₀,hc₁,hmeet] with z hz₀ hz₁ hc₀ hc₁ hz + simpa only [meetingSplice,dite_eq_left hz] using contacting_splice_isGeodesic had hz₀ hz₁ hc₀ hc₁ ht0 ht1 hz + · simpa only [Measure.map_map measurable_fst + ((measurable_path_eval 0).prodMk (measurable_path_eval 1)),Function.comp_def] using hτ₀ + · simpa only [Measure.map_map measurable_snd + ((measurable_path_eval 0).prodMk (measurable_path_eval 1)),Function.comp_def] using hτ₁ + · intro η hη₀ hη₁ + rw [hcost] + exact hp.2.2 η hη₀ hη₁ + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/MetricLimitCompactMidpoint.lean b/lean/OAI/Geometry/RCD/Transport/MetricLimitCompactMidpoint.lean new file mode 100644 index 0000000000000000000000000000000000000000..3ea9306d18b5c4109cfc0261c384555bb3c62384 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/MetricLimitCompactMidpoint.lean @@ -0,0 +1,62 @@ +import OAI.Geometry.RCD.Transport.MetricLimitSetMidpoint +import OAI.Geometry.RCD.Transport.MidpointThickening +import OAI.Geometry.RCD.Metric.ClosedThickeningMass + +namespace OAI + +/-! # The exact compact-set midpoint inequality in the actual metric limit -/ + +open Set Metric Filter MeasureTheory +open scoped Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + +theorem NoncollapsedRCD.metric_limit_compact_midpoint {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (hn : 2 ≤ n) (hK : K ≤ 0) + {S a : ℝ} (ha : 0 ≤ a) (hroom : 3*a < S) + {A B : Set (Euclidean n)} (hA : IsCompact A) (hB : IsCompact B) + (hAsub : A ⊆ closedBall 0 a) (hBsub : B ⊆ closedBall 0 a) + (p : ℕ → X) (r ε : ℕ → ℝ) (V : ℕ → X → Euclidean n) + (hr : ∀ k, 0 < r k) (hε : Tendsto ε atTop (𝓝 0)) + (hcurv : ∀ k, -ε k ≤ K*(r k)^2) (hVm : ∀ k, Measurable (V k)) + (hV : ∀ k, IsPointedApproximation (p k) 0 (r k) S (ε k) (V k)) + (hfin : ∀ k, hausdorff n X (ball (p k) (S*r k)) ≠ ⊤) + {Q : ProbabilityMeasure (Euclidean n)} + (hlim : Tendsto (fun k => normalizedBallPushforward (hausdorff n X) + (p k) (r k) S (V k) (hfin k)) atTop (𝓝 Q)) : + min ((Q : Measure (Euclidean n)).real A) ((Q : Measure (Euclidean n)).real B) ≤ + (Q : Measure (Euclidean n)).real (midpointSet A B) := by + apply finite_measure_closed_of_thickenings _ (isCompact_midpointSet hA hB).isClosed + intro κ hκ + let δ := min (κ/2) ((S-3*a)/8) + have hδ : 0 < δ := lt_min (half_pos hκ) (by linarith only [hroom]) + have hδκ : δ ≤ κ/2 := min_le_left _ _ + have hδS : δ ≤ (S-3*a)/8 := min_le_right _ _ + have hAt : thickening δ A ⊆ closedBall 0 (a+δ) := + (thickening_subset_ball_of_subset_closedBall hAsub).trans ball_subset_closedBall + have hBt : thickening δ B ⊆ closedBall 0 (a+δ) := + (thickening_subset_ball_of_subset_closedBall hBsub).trans ball_subset_closedBall + have hm := hX.metric_limit_set_midpoint_enlarged hn hK + (S := S) (ρ := a+2*δ) (σ := a+δ) (η := a+δ) (κ := κ-δ) + (by linarith only [ha,hroom]) (by positivity) + (by linarith only [ha,hroom,hδS]) (by linarith only [hδ]) + (by linarith only [hκ,hδκ]) 0 isOpen_thickening isOpen_thickening hAt hBt + (fun x hx => by simpa only [mem_closedBall,dist_zero_right] using hAt hx) + (fun x hx => by simpa only [mem_closedBall,dist_zero_right] using hBt hx) + (by linarith only [hroom,hδS]) p r ε V hr hε hcurv hVm hV hfin hlim + have hleft : min ((Q : Measure (Euclidean n)).real A) ((Q : Measure (Euclidean n)).real B) ≤ + min ((Q : Measure (Euclidean n)).real (thickening δ A)) + ((Q : Measure (Euclidean n)).real (thickening δ B)) := + min_le_min (measureReal_mono (self_subset_thickening hδ A) (measure_ne_top _ _)) + (measureReal_mono (self_subset_thickening hδ B) (measure_ne_top _ _)) + have hsub := cthickening_midpointSet_thickening_subset A B + (κ := κ-δ) (δ := δ) (by linarith only [hκ,hδκ]) + rw [sub_add_cancel] at hsub + exact hleft.trans (hm.trans (measureReal_mono hsub (measure_ne_top _ _))) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/MetricLimitMidpointContraction.lean b/lean/OAI/Geometry/RCD/Transport/MetricLimitMidpointContraction.lean new file mode 100644 index 0000000000000000000000000000000000000000..ac7f213dbc5495fac98cb878067a526676d73ca7 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/MetricLimitMidpointContraction.lean @@ -0,0 +1,103 @@ +import OAI.Geometry.RCD.Transport.MetricLocalMidpointLaw +import OAI.Geometry.RCD.Transport.CurvatureMidpointLimit +import OAI.Geometry.RCD.Transport.WeakMidpointMass + +namespace OAI + +/-! # Local midpoint contraction for the actual weak metric-law limit + +The proof passes the normalized CD inequality from the original spaces. +Open source balls and a closed enlarged target avoid a boundary assumption. +-/ + +open Set Metric Filter MeasureTheory +open scoped Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + +omit [BorelSpace X] in +theorem normalizedBallPushforward_preimage_ne_zero {n : ℕ} + (μ : Measure X) (p : X) (r S : ℝ) (V : X → Euclidean n) + (hfin : μ (ball p (S*r)) ≠ ⊤) (hpos : 0 < μ.real (ball p (S*r))) + (hVm : Measurable V) {A : Set (Euclidean n)} (hA : MeasurableSet A) + (hP : 0 < (normalizedBallPushforward μ p r S V hfin : Measure (Euclidean n)).real A) : + μ (V ⁻¹' A ∩ ball p (S*r)) ≠ 0 := by + intro hz + rw [normalizedBallPushforward_real μ p r S V hfin hpos hVm hA] at hP + have he : μ.real (V ⁻¹' A ∩ ball p (S*r))=0 := by + simp only [Measure.real,hz,ENNReal.toReal_zero] + rw [he,mul_zero] at hP + exact lt_irrefl 0 hP + +theorem NoncollapsedRCD.metric_limit_midpoint_enlarged {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (hn : 2 ≤ n) (hK : K ≤ 0) + {S ρ η a b κ : ℝ} (hS : 0 < S) (hρ : 0 ≤ ρ) (hρS : ρ < S) + (hκ : 0 < κ) + (x y z : Euclidean n) (hxa : ‖x‖+a < ρ) (hyb : ‖y‖+b < ρ) + (hx : closedBall x a ⊆ closedBall z η) (hy : closedBall y b ⊆ closedBall z η) + (hroom : ρ+2*η < S) + (p : ℕ → X) (r ε : ℕ → ℝ) (V : ℕ → X → Euclidean n) + (hr : ∀ k, 0 < r k) (hε : Tendsto ε atTop (𝓝 0)) + (hcurv : ∀ k, -ε k ≤ K*(r k)^2) (hVm : ∀ k, Measurable (V k)) + (hV : ∀ k, IsPointedApproximation (p k) 0 (r k) S (ε k) (V k)) + (hfin : ∀ k, hausdorff n X (ball (p k) (S*r k)) ≠ ⊤) + {Q : ProbabilityMeasure (Euclidean n)} + (hlim : Tendsto (fun k => normalizedBallPushforward (hausdorff n X) + (p k) (r k) S (V k) (hfin k)) atTop (𝓝 Q)) + (hAx : 0 < (Q : Measure (Euclidean n)).real (ball x a)) + (hBy : 0 < (Q : Measure (Euclidean n)).real (ball y b)) : + (1/2:ℝ)^n*(Q : Measure (Euclidean n)).real (ball y b) ≤ + (Q : Measure (Euclidean n)).real + (closedBall ((1/2:ℝ) • (x+y)) ((a+b)/2+κ)) := by + let P := fun k => normalizedBallPushforward (hausdorff n X) + (p k) (r k) S (V k) (hfin k) + have hpos (k : ℕ) : 0 < (hausdorff n X).real (ball (p k) (S*r k)) := + ENNReal.toReal_pos (hX.fullSupport _ _ (mul_pos hS (hr k))).ne' (hfin k) + have hcoef := (midpointFloor_real_tendsto_half hn hK (fun k => (hr k).le) hε hcurv + (d := 2*ρ)).pow n + have herror : Tendsto (fun k => Real.sqrt (2*(ε k*(4*ρ+ε k)))) atTop (𝓝 0) := by + have hc : Continuous (fun t : ℝ => Real.sqrt (2*(t*(4*ρ+t)))) := by fun_prop + simpa only [Function.comp_def,mul_zero,zero_mul,Real.sqrt_zero] using + (hc.tendsto 0).comp hε + have hAP := probability_open_eventual_lower hlim isOpen_ball (half_lt_self hAx) + have hBP := probability_open_eventual_lower hlim isOpen_ball (half_lt_self hBy) + apply probability_open_closed_contraction hlim isOpen_ball isClosed_closedBall + (pow_pos (by norm_num : (0:ℝ)<1/2) n) hcoef + filter_upwards [hAP,hBP,herror.eventually (Iio_mem_nhds hκ), + hε.eventually (Iio_mem_nhds (show (0:ℝ)<(ρ-(‖x‖+a))/2 by linarith)), + hε.eventually (Iio_mem_nhds (show (0:ℝ)<(ρ-(‖y‖+b))/2 by linarith)), + hε.eventually (Iio_mem_nhds (show (0:ℝ) normalizedBallPushforward (hausdorff n X) + (p k) (r k) S (V k) (hfin k)) atTop (𝓝 Q)) + (hAx : 0 < (Q : Measure (Euclidean n)).real (ball x a)) + (hBy : 0 < (Q : Measure (Euclidean n)).real (ball y b)) : + (1/2:ℝ)^n*(Q : Measure (Euclidean n)).real (ball y b) ≤ + (Q : Measure (Euclidean n)).real (closedBall ((1/2:ℝ) • (x+y)) ((a+b)/2)) := by + apply finite_measure_closedBall_of_enlargements (Q : Measure (Euclidean n)) + intro κ hκ + exact hX.metric_limit_midpoint_enlarged hn hK hS hρ hρS hκ x y z hxa hyb hx hy + hroom p r ε V hr hε hcurv hVm hV hfin hlim hAx hBy + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/MetricLimitSetMidpoint.lean b/lean/OAI/Geometry/RCD/Transport/MetricLimitSetMidpoint.lean new file mode 100644 index 0000000000000000000000000000000000000000..cc583f998d20df3c0b8497a4ac29c2026441f9ce --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/MetricLimitSetMidpoint.lean @@ -0,0 +1,72 @@ +import OAI.Geometry.RCD.Transport.MetricSetMidpointLaw +import OAI.Geometry.RCD.Transport.MetricLimitMidpointContraction +import OAI.Geometry.RCD.Sobolev.WeakMinMass +import OAI.Geometry.RCD.Transport.MidpointMinCoefficientLimit + +namespace OAI + +/-! # The two-source midpoint inequality for the actual weak metric limit -/ + +open Set Metric Filter MeasureTheory +open scoped Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + +theorem NoncollapsedRCD.metric_limit_set_midpoint_enlarged {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (hn : 2 ≤ n) (hK : K ≤ 0) + {S ρ σ η κ : ℝ} (hS : 0 < S) (hρ : 0 ≤ ρ) (hρS : ρ < S) + (hσρ : σ < ρ) (hκ : 0 < κ) (z : Euclidean n) + {A B : Set (Euclidean n)} (hA : IsOpen A) (hB : IsOpen B) + (hAsub : A ⊆ closedBall z η) (hBsub : B ⊆ closedBall z η) + (hAnorm : ∀ a ∈ A, ‖a‖ ≤ σ) (hBnorm : ∀ b ∈ B, ‖b‖ ≤ σ) + (hroom : ρ+2*η < S) + (p : ℕ → X) (r ε : ℕ → ℝ) (V : ℕ → X → Euclidean n) + (hr : ∀ k, 0 < r k) (hε : Tendsto ε atTop (𝓝 0)) + (hcurv : ∀ k, -ε k ≤ K*(r k)^2) (hVm : ∀ k, Measurable (V k)) + (hV : ∀ k, IsPointedApproximation (p k) 0 (r k) S (ε k) (V k)) + (hfin : ∀ k, hausdorff n X (ball (p k) (S*r k)) ≠ ⊤) + {Q : ProbabilityMeasure (Euclidean n)} + (hlim : Tendsto (fun k => normalizedBallPushforward (hausdorff n X) + (p k) (r k) S (V k) (hfin k)) atTop (𝓝 Q)) : + min ((Q : Measure (Euclidean n)).real A) ((Q : Measure (Euclidean n)).real B) ≤ + (Q : Measure (Euclidean n)).real (cthickening κ (midpointSet A B)) := by + by_cases hApos : 0 < (Q : Measure (Euclidean n)).real A + swap + · exact (min_le_left _ _).trans ((le_of_not_gt hApos).trans measureReal_nonneg) + by_cases hBpos : 0 < (Q : Measure (Euclidean n)).real B + swap + · exact (min_le_right _ _).trans ((le_of_not_gt hBpos).trans measureReal_nonneg) + let P := fun k => normalizedBallPushforward (hausdorff n X) (p k) (r k) S (V k) (hfin k) + have hpos (k : ℕ) : 0 < (hausdorff n X).real (ball (p k) (S*r k)) := + ENNReal.toReal_pos (hX.fullSupport _ _ (mul_pos hS (hr k))).ne' (hfin k) + have hcoef := midpoint_min_coefficient_tendsto_one hn hK (fun k => (hr k).le) hε hcurv (d := 2*ρ) + have herror : Tendsto (fun k => Real.sqrt (2*(ε k*(4*ρ+ε k)))) atTop (𝓝 0) := by + have hc : Continuous (fun t : ℝ => Real.sqrt (2*(t*(4*ρ+t)))) := by fun_prop + simpa only [Function.comp_def,mul_zero,zero_mul,Real.sqrt_zero] using (hc.tendsto 0).comp hε + have hAP := probability_open_eventual_lower hlim hA (half_lt_self hApos) + have hBP := probability_open_eventual_lower hlim hB (half_lt_self hBpos) + have hresult := probability_open_closed_min_contraction hlim hA hB + (isClosed_cthickening : IsClosed (cthickening κ (midpointSet A B))) zero_lt_one hcoef + simp only [one_mul] at hresult + apply hresult + filter_upwards [hAP,hBP,herror.eventually (Iio_mem_nhds hκ), + hε.eventually (Iio_mem_nhds (show (0:ℝ)<(ρ-σ)/2 by linarith only [hσρ])), + hε.eventually (Iio_mem_nhds (show (0:ℝ) by linarith only [hAnorm a ha,hksmall]) + (fun b hb => by linarith only [hBnorm b hb,hksmall]) hA0 hB0 (hfin k) + exact hm.trans (measureReal_mono (cthickening_mono hkerr.le _) (measure_ne_top _ _)) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/MetricLocalMidpointLaw.lean b/lean/OAI/Geometry/RCD/Transport/MetricLocalMidpointLaw.lean new file mode 100644 index 0000000000000000000000000000000000000000..03577f4d83a645bf1aa3cc9ac7568d29525beb08 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/MetricLocalMidpointLaw.lean @@ -0,0 +1,85 @@ +import OAI.Geometry.RCD.Transport.MetricLocalMidpointVolume +import OAI.Geometry.RCD.Metric.MetricLawMass + +namespace OAI + +/-! # The midpoint contraction for the actual normalized metric laws -/ + +open Set Metric MeasureTheory +open scoped ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + +omit [MeasurableSpace X] [BorelSpace X] in +theorem pointed_inner_preimage_eq {n : ℕ} {p : X} {r S ρ ε a : ℝ} + (hr : 0 < r) (hS : 0 ≤ S) (hρS : ρ < S) + {V : X → Euclidean n} (hV : IsPointedApproximation p 0 r S ε V) + (z : Euclidean n) (hz : ‖z‖+a+2*ε ≤ ρ) : + V ⁻¹' closedBall z a ∩ closedBall p (ρ*r) = + V ⁻¹' closedBall z a ∩ ball p (S*r) := by + ext u + constructor + · rintro ⟨hu,hrho⟩ + exact ⟨hu,hrho.trans_lt (mul_lt_mul_of_pos_right hρS hr)⟩ + · rintro ⟨hu,hball⟩ + refine ⟨hu,?_⟩ + have hv := (abs_le.mp (pointed_radial_distance hr hS hV hball.le)).1 + have hdist : ‖V u-z‖ ≤ a := by + simpa only [mem_preimage,mem_closedBall,dist_eq_norm] using hu + have hnorm : ‖V u‖ ≤ a+‖z‖ := by + have hh := norm_add_le (V u-z) z + simp only [sub_add_cancel] at hh + linarith + change dist u p ≤ ρ*r + apply (div_le_iff₀ hr).mp + linarith + +theorem NoncollapsedRCD.metric_local_midpoint_law {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (hn : 2 ≤ n) + {p : X} {r S ρ η ε a b : ℝ} + (hr : 0 < r) (hS : 0 < S) (hρ : 0 ≤ ρ) (hρS : ρ < S) (hε : 0 ≤ ε) + (hroom : ρ+2*η+ε < S) + (V : X → Euclidean n) (hVm : Measurable V) + (hV : IsPointedApproximation p 0 r S ε V) (x y z : Euclidean n) + (hx : closedBall x a ⊆ closedBall z η) (hy : closedBall y b ⊆ closedBall z η) + (hxa : ‖x‖+a+2*ε ≤ ρ) (hyb : ‖y‖+b+2*ε ≤ ρ) + (hA0 : hausdorff n X (V ⁻¹' closedBall x a ∩ ball p (S*r)) ≠ 0) + (hB0 : hausdorff n X (V ⁻¹' closedBall y b ∩ ball p (S*r)) ≠ 0) + (hfin : hausdorff n X (ball p (S*r)) ≠ ⊤) : + let P := (normalizedBallPushforward (hausdorff n X) p r S V hfin : Measure (Euclidean n)) + (midpointFloor K n (2*ρ*r)).toReal^n * P.real (closedBall y b) ≤ + P.real (closedBall ((1/2:ℝ) • (x+y)) + ((a+b)/2+Real.sqrt (2*(ε*(4*ρ+ε))))) := by + let μ := hausdorff n X + have heA := pointed_inner_preimage_eq hr hS.le hρS hV x hxa + have heB := pointed_inner_preimage_eq hr hS.le hρS hV y hyb + have hm := hX.metric_local_midpoint_volume hn hr hρ hρS.le hε hroom.le V hVm hV + x y z hx hy (by rwa [heA]) (by rwa [heB]) + dsimp only at hm + have hp := midpoint_root_bound_to_mass (by omega : 0 < n) hm + let C := V ⁻¹' closedBall ((1/2:ℝ) • (x+y)) + ((a+b)/2+Real.sqrt (2*(ε*(4*ρ+ε)))) ∩ closedBall p ((ρ+2*η+ε)*r) + have hCfin : μ C ≠ ⊤ := + (hX.finiteOnBounded C (isBounded_closedBall.subset inter_subset_right)).ne + have hpr := ENNReal.toReal_mono hCfin hp + simp only [ENNReal.toReal_mul,ENNReal.toReal_pow,heB] at hpr + have hCsub : C ⊆ V ⁻¹' closedBall ((1/2:ℝ) • (x+y)) + ((a+b)/2+Real.sqrt (2*(ε*(4*ρ+ε)))) ∩ ball p (S*r) := by + intro u hu + exact ⟨hu.1,hu.2.trans_lt (mul_lt_mul_of_pos_right hroom hr)⟩ + have hCmono := measureReal_mono hCsub + (ne_of_lt ((measure_mono inter_subset_right).trans_lt (lt_top_iff_ne_top.mpr hfin))) + have hpos : 0 < μ.real (ball p (S*r)) := + ENNReal.toReal_pos (hX.fullSupport p (S*r) (mul_pos hS hr)).ne' hfin + dsimp only + rw [normalizedBallPushforward_real μ p r S V hfin hpos hVm measurableSet_closedBall, + normalizedBallPushforward_real μ p r S V hfin hpos hVm measurableSet_closedBall] + have hs := mul_le_mul_of_nonneg_left (hpr.trans hCmono) (inv_nonneg.mpr hpos.le) + simpa only [μ,Measure.real,mul_left_comm] using hs + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/MetricLocalMidpointVolume.lean b/lean/OAI/Geometry/RCD/Transport/MetricLocalMidpointVolume.lean new file mode 100644 index 0000000000000000000000000000000000000000..cd401531baa94aa199915d5e62b0a3e33379a596 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/MetricLocalMidpointVolume.lean @@ -0,0 +1,93 @@ +import OAI.Geometry.RCD.Transport.MetricPreimageMidpointVolume +import OAI.Geometry.RCD.Transport.PointedLocalGeodesic + +namespace OAI + +/-! # Local midpoint volume control throughout the approximation ball + +The endpoints can be near any interior target point. The radius condition +only keeps their short connecting geodesics inside the working region. +-/ + +open Set Metric MeasureTheory +open scoped ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + +omit [MeasurableSpace X] [BorelSpace X] in +theorem pointed_local_geodesic_radius {n : ℕ} {p : X} {r S ρ η ε : ℝ} + (hr : 0 < r) (hρS : ρ ≤ S) + {V : X → Euclidean n} (hV : IsPointedApproximation p 0 r S ε V) + {γ : C(Time,X)} (hg : IsGeodesic γ) + (h0 : dist (γ 0) p ≤ ρ*r) (h1 : dist (γ 1) p ≤ ρ*r) + {z : Euclidean n} (hz0 : V (γ 0) ∈ closedBall z η) + (hz1 : V (γ 1) ∈ closedBall z η) (t : Time) : + dist (γ t) p ≤ (ρ+2*η+ε)*r := by + have hsr := mul_le_mul_of_nonneg_right hρS hr.le + have hd := (abs_le.mp (hV.2.1 _ _ (h0.trans hsr) (h1.trans hsr))).1 + have him := dist_triangle (V (γ 0)) z (V (γ 1)) + rw [dist_comm z (V (γ 1))] at him + have hD : dist (γ 0) (γ 1) ≤ (2*η+ε)*r := by + apply (div_le_iff₀ hr).mp + change dist (V (γ 0)) z ≤ η at hz0 + change dist (V (γ 1)) z ≤ η at hz1 + linarith + have ht : dist (γ t) (γ 0) ≤ dist (γ 0) (γ 1) := by + rw [hg t 0] + change |(t:ℝ)-0| * dist (γ 0) (γ 1) ≤ dist (γ 0) (γ 1) + simp only [sub_zero,abs_of_nonneg t.2.1] + exact mul_le_of_le_one_left dist_nonneg t.2.2 + have hb := dist_triangle (γ t) (γ 0) p + nlinarith + +theorem NoncollapsedRCD.metric_local_midpoint_volume {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (hn : 2 ≤ n) + {p : X} {r S ρ η ε a b : ℝ} + (hr : 0 < r) (hρ : 0 ≤ ρ) (hρS : ρ ≤ S) (hε : 0 ≤ ε) + (hroom : ρ+2*η+ε ≤ S) + (V : X → Euclidean n) (hVm : Measurable V) + (hV : IsPointedApproximation p 0 r S ε V) (x y z : Euclidean n) + (hx : closedBall x a ⊆ closedBall z η) (hy : closedBall y b ⊆ closedBall z η) + (hA0 : hausdorff n X (V ⁻¹' closedBall x a ∩ closedBall p (ρ*r)) ≠ 0) + (hB0 : hausdorff n X (V ⁻¹' closedBall y b ∩ closedBall p (ρ*r)) ≠ 0) : + let A := V ⁻¹' closedBall x a ∩ closedBall p (ρ*r) + let B := V ⁻¹' closedBall y b ∩ closedBall p (ρ*r) + let C := V ⁻¹' closedBall ((1/2:ℝ) • (x+y)) + ((a+b)/2+Real.sqrt (2*(ε*(4*ρ+ε)))) ∩ closedBall p ((ρ+2*η+ε)*r) + midpointFloor K n (2*ρ*r)* + ((hausdorff n X A)^(1/(n:ℝ))+(hausdorff n X B)^(1/(n:ℝ))) ≤ + (hausdorff n X C)^(1/(n:ℝ)) := by + let μ := hausdorff n X + let := hX.separable + let := locallyFinite_of_finiteOnBounded μ hX.finiteOnBounded + dsimp only + let A := V ⁻¹' closedBall x a ∩ closedBall p (ρ*r) + let B := V ⁻¹' closedBall y b ∩ closedBall p (ρ*r) + have hA : MeasurableSet A := (hVm measurableSet_closedBall).inter measurableSet_closedBall + have hB : MeasurableSet B := (hVm measurableSet_closedBall).inter measurableSet_closedBall + have hAfin : μ A ≠ ∞ := (hX.finiteOnBounded A (isBounded_closedBall.subset inter_subset_right)).ne + have hBfin : μ B ≠ ∞ := (hX.finiteOnBounded B (isBounded_closedBall.subset inter_subset_right)).ne + apply hX.cd.midpoint_support_volume_bound μ hn A B _ hA hB + ((hVm measurableSet_closedBall).inter measurableSet_closedBall) hA0 hAfin hB0 hBfin + (uniformOn_finiteSecondMoment μ A hA hA0 hAfin p (ρ*r) (fun _ hu => hu.2)) + (uniformOn_finiteSecondMoment μ B hB hB0 hBfin p (ρ*r) (fun _ hu => hu.2)) (2*ρ*r) + · intro u hu v hv + have hd := dist_triangle u p v + rw [dist_comm p v] at hd + have hu' : dist u p ≤ ρ*r := hu.2 + have hv' : dist v p ≤ ρ*r := hv.2 + linarith + · intro γ hg h0 h1 + have hp0 : dist (γ 0) p ≤ ρ*r := h0.2 + have hp1 : dist (γ 1) p ≤ ρ*r := h1.2 + have hpoints := pointed_local_geodesic_radius hr hρS hV hg hp0 hp1 (hx h0.1) (hy h1.1) + refine ⟨pointed_midpoint_balls_within hr hρ hε hV hg hp0 hp1 + (fun t => (hpoints t).trans (mul_le_mul_of_nonneg_right hroom hr.le)) h0.1 h1.1, + hpoints midpointTime⟩ + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/MetricPreimageMidpointVolume.lean b/lean/OAI/Geometry/RCD/Transport/MetricPreimageMidpointVolume.lean new file mode 100644 index 0000000000000000000000000000000000000000..56080d805667d26ccdb2b6a315e16aa3e3ab6bfe --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/MetricPreimageMidpointVolume.lean @@ -0,0 +1,65 @@ +import OAI.Geometry.RCD.Transport.MidpointSupportVolume +import OAI.Geometry.RCD.Transport.PointedMidpointBalls +import OAI.Geometry.RCD.Coordinates.Proper + +namespace OAI + +/-! # Midpoint volume control for preimages under metric approximation maps -/ + +open Set Metric MeasureTheory +open scoped ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + +theorem NoncollapsedRCD.metric_preimage_midpoint_volume {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (hn : 2 ≤ n) + {p : X} {r S ρ ε a b : ℝ} (hr : 0 hx.2)) + (uniformOn_finiteSecondMoment μ B hB hB0 hBfin p (ρ*r) (fun _ hx => hx.2)) (2*ρ*r) + · intro u hu v hv + have hd := dist_triangle u p v + rw [dist_comm p v] at hd + have hu' : dist u p≤ρ*r := hu.2 + have hv' : dist v p≤ρ*r := hv.2 + linarith + · intro γ hg h0 h1 + have hp0 : dist (γ 0) p≤ρ*r := h0.2 + have hp1 : dist (γ 1) p≤ρ*r := h1.2 + refine ⟨pointed_midpoint_balls hr hρ hε hroom hV hg hp0 hp1 h0.1 h1.1,?_⟩ + have hd := dist_triangle (γ 0) p (γ 1) + rw [dist_comm p (γ 1)] at hd + have hm := dist_triangle (γ midpointTime) (γ 0) p + rw [hg midpointTime 0] at hm + norm_num [midpointTime] at hm + change dist (γ midpointTime) p≤3*ρ*r + nlinarith [mul_nonneg hρ hr.le] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/MetricSetMidpointLaw.lean b/lean/OAI/Geometry/RCD/Transport/MetricSetMidpointLaw.lean new file mode 100644 index 0000000000000000000000000000000000000000..fa0ba305f0d05e242d5e581f5a5ea38e81c7d8ad --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/MetricSetMidpointLaw.lean @@ -0,0 +1,82 @@ +import OAI.Geometry.RCD.Transport.MetricSetMidpointVolume +import OAI.Geometry.RCD.Transport.MetricLocalMidpointLaw + +namespace OAI + +/-! # Both endpoint masses in the normalized metric-law midpoint bound -/ + +open Set Metric MeasureTheory +open scoped ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + +omit [MeasurableSpace X] [BorelSpace X] in +theorem pointed_inner_set_preimage_eq {n : ℕ} {p : X} {r S ρ ε : ℝ} + (hr : 0 < r) (hS : 0 ≤ S) (hρS : ρ < S) + {V : X → Euclidean n} (hV : IsPointedApproximation p 0 r S ε V) + {A : Set (Euclidean n)} (hA : ∀ z ∈ A, ‖z‖+2*ε ≤ ρ) : + V ⁻¹' A ∩ closedBall p (ρ*r) = V ⁻¹' A ∩ ball p (S*r) := by + ext x + constructor + · rintro ⟨hx,hρ⟩ + exact ⟨hx,hρ.trans_lt (mul_lt_mul_of_pos_right hρS hr)⟩ + · rintro ⟨hx,hball⟩ + refine ⟨hx,?_⟩ + have hv := (abs_le.mp (pointed_radial_distance hr hS hV hball.le)).1 + exact (div_le_iff₀ hr).mp (by linarith only [hv,hA (V x) hx]) + +theorem NoncollapsedRCD.metric_set_midpoint_law {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (hn : 2 ≤ n) + {p : X} {r S ρ η ε : ℝ} (hr : 0 < r) (hS : 0 < S) (hρ : 0 ≤ ρ) (hρS : ρ < S) + (he : 0 ≤ ε) (hroom : ρ+2*η+ε < S) + (V : X → Euclidean n) (hVm : Measurable V) (hV : IsPointedApproximation p 0 r S ε V) + {A B : Set (Euclidean n)} (hA : MeasurableSet A) (hB : MeasurableSet B) (z : Euclidean n) + (hAsub : A ⊆ closedBall z η) (hBsub : B ⊆ closedBall z η) + (hAnorm : ∀ a ∈ A, ‖a‖+2*ε ≤ ρ) (hBnorm : ∀ b ∈ B, ‖b‖+2*ε ≤ ρ) + (hA0 : hausdorff n X (V ⁻¹' A ∩ ball p (S*r)) ≠ 0) + (hB0 : hausdorff n X (V ⁻¹' B ∩ ball p (S*r)) ≠ 0) + (hfin : hausdorff n X (ball p (S*r)) ≠ ⊤) : + let P := (normalizedBallPushforward (hausdorff n X) p r S V hfin : Measure (Euclidean n)) + (2*midpointFloor K n (2*ρ*r)).toReal^n*min (P.real A) (P.real B) ≤ + P.real (cthickening (Real.sqrt (2*(ε*(4*ρ+ε)))) (midpointSet A B)) := by + let μ := hausdorff n X + have heA := pointed_inner_set_preimage_eq hr hS.le hρS hV hAnorm + have heB := pointed_inner_set_preimage_eq hr hS.le hρS hV hBnorm + have hm := hX.metric_set_midpoint_volume hn hr hρ hρS.le he hroom.le V hVm hV hA hB z + hAsub hBsub (by rwa [heA]) (by rwa [heB]) + let C := V ⁻¹' cthickening (Real.sqrt (2*(ε*(4*ρ+ε)))) (midpointSet A B) ∩ + closedBall p ((ρ+2*η+ε)*r) + have hCfin : μ C ≠ ⊤ := (hX.finiteOnBounded C (isBounded_closedBall.subset inter_subset_right)).ne + have hA_fin : μ (V ⁻¹' A ∩ ball p (S*r)) ≠ ⊤ := measure_ne_top_of_subset inter_subset_right hfin + have hB_fin : μ (V ⁻¹' B ∩ ball p (S*r)) ≠ ⊤ := measure_ne_top_of_subset inter_subset_right hfin + have hmin : (min (μ (V ⁻¹' A ∩ ball p (S*r))) (μ (V ⁻¹' B ∩ ball p (S*r)))).toReal = + min (μ.real (V ⁻¹' A ∩ ball p (S*r))) (μ.real (V ⁻¹' B ∩ ball p (S*r))) := by + dsimp only [Measure.real] + rcases le_total (μ (V ⁻¹' A ∩ ball p (S*r))) (μ (V ⁻¹' B ∩ ball p (S*r))) with h | h + · rw [min_eq_left h,min_eq_left (ENNReal.toReal_mono hB_fin h)] + · rw [min_eq_right h,min_eq_right (ENNReal.toReal_mono hA_fin h)] + dsimp only [μ] at hmin + have hp := ENNReal.toReal_mono hCfin hm + simp only [ENNReal.toReal_mul,ENNReal.toReal_pow,heA,heB,hmin] at hp + have hCsub : C ⊆ V ⁻¹' cthickening (Real.sqrt (2*(ε*(4*ρ+ε)))) (midpointSet A B) ∩ ball p (S*r) := by + intro x hx + exact ⟨hx.1,hx.2.trans_lt (mul_lt_mul_of_pos_right hroom hr)⟩ + have hCmono := measureReal_mono hCsub (measure_ne_top_of_subset inter_subset_right hfin) + have hpos : 0 < μ.real (ball p (S*r)) := + ENNReal.toReal_pos (hX.fullSupport p (S*r) (mul_pos hS hr)).ne' hfin + dsimp only + rw [normalizedBallPushforward_real μ p r S V hfin hpos hVm hA, + normalizedBallPushforward_real μ p r S V hfin hpos hVm hB, + normalizedBallPushforward_real μ p r S V hfin hpos hVm isClosed_cthickening.measurableSet] + have hs := mul_le_mul_of_nonneg_left (hp.trans hCmono) (inv_nonneg.mpr hpos.le) + rw [← mul_min_of_nonneg _ _ (inv_nonneg.mpr hpos.le)] + simp only [ENNReal.toReal_mul] + convert hs using 1 + ring + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/MetricSetMidpointVolume.lean b/lean/OAI/Geometry/RCD/Transport/MetricSetMidpointVolume.lean new file mode 100644 index 0000000000000000000000000000000000000000..3f18d514ad02bdf8e470633261364cc04103f1c0 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/MetricSetMidpointVolume.lean @@ -0,0 +1,64 @@ +import OAI.Geometry.RCD.Transport.PointedMidpointSets +import OAI.Geometry.RCD.Transport.MetricLocalMidpointVolume +import OAI.Geometry.RCD.Transport.MidpointMinMass + +namespace OAI + +/-! # The actual CD midpoint inequality for arbitrary bounded target sets -/ + +open Set Metric MeasureTheory +open scoped ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + +theorem NoncollapsedRCD.metric_set_midpoint_volume {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (hn : 2 ≤ n) + {p : X} {r S ρ η ε : ℝ} (hr : 0 < r) (hρ : 0 ≤ ρ) (hρS : ρ ≤ S) + (he : 0 ≤ ε) (hroom : ρ+2*η+ε ≤ S) + (V : X → Euclidean n) (hVm : Measurable V) (hV : IsPointedApproximation p 0 r S ε V) + {A B : Set (Euclidean n)} (hA : MeasurableSet A) (hB : MeasurableSet B) (z : Euclidean n) + (hAsub : A ⊆ closedBall z η) (hBsub : B ⊆ closedBall z η) + (hA0 : hausdorff n X (V ⁻¹' A ∩ closedBall p (ρ*r)) ≠ 0) + (hB0 : hausdorff n X (V ⁻¹' B ∩ closedBall p (ρ*r)) ≠ 0) : + let P := V ⁻¹' A ∩ closedBall p (ρ*r) + let Q := V ⁻¹' B ∩ closedBall p (ρ*r) + let C := V ⁻¹' cthickening (Real.sqrt (2*(ε*(4*ρ+ε)))) (midpointSet A B) ∩ + closedBall p ((ρ+2*η+ε)*r) + (2*midpointFloor K n (2*ρ*r))^n*min (hausdorff n X P) (hausdorff n X Q) ≤ hausdorff n X C := by + let μ := hausdorff n X + let := hX.separable + let := locallyFinite_of_finiteOnBounded μ hX.finiteOnBounded + dsimp only + let P := V ⁻¹' A ∩ closedBall p (ρ*r) + let Q := V ⁻¹' B ∩ closedBall p (ρ*r) + have hP : MeasurableSet P := (hVm hA).inter measurableSet_closedBall + have hQ : MeasurableSet Q := (hVm hB).inter measurableSet_closedBall + have hPfin : μ P ≠ ∞ := (hX.finiteOnBounded P (isBounded_closedBall.subset inter_subset_right)).ne + have hQfin : μ Q ≠ ∞ := (hX.finiteOnBounded Q (isBounded_closedBall.subset inter_subset_right)).ne + apply midpoint_root_bound_to_min_mass (by omega : 0 < n) + apply hX.cd.midpoint_support_volume_bound μ hn P Q _ hP hQ + ((hVm isClosed_cthickening.measurableSet).inter measurableSet_closedBall) + hA0 hPfin hB0 hQfin + (uniformOn_finiteSecondMoment μ P hP hA0 hPfin p (ρ*r) (fun _ hu => hu.2)) + (uniformOn_finiteSecondMoment μ Q hQ hB0 hQfin p (ρ*r) (fun _ hu => hu.2)) (2*ρ*r) + · intro x hx y hy + have hd := dist_triangle x p y + rw [dist_comm p y] at hd + have hx' : dist x p ≤ ρ*r := hx.2 + have hy' : dist y p ≤ ρ*r := hy.2 + linarith only [hd,hx',hy'] + · intro γ hg h0 h1 + have hp0 : dist (γ 0) p ≤ ρ*r := h0.2 + have hp1 : dist (γ 1) p ≤ ρ*r := h1.2 + have hpoints := pointed_local_geodesic_radius hr hρS hV hg hp0 hp1 + (hAsub h0.1) (hBsub h1.1) + exact ⟨pointed_midpoint_sets_within hr hρ he hV hg hp0 hp1 + (fun t => (hpoints t).trans (mul_le_mul_of_nonneg_right hroom hr.le)) h0.1 h1.1, + hpoints midpointTime⟩ + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/MidpointDimensionAlgebra.lean b/lean/OAI/Geometry/RCD/Transport/MidpointDimensionAlgebra.lean new file mode 100644 index 0000000000000000000000000000000000000000..38db3f60ea4a55cb52890f9dfabc6792cf859f3d --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/MidpointDimensionAlgebra.lean @@ -0,0 +1,58 @@ +import OAI.Geometry.RCD.Harmonic.LogCosQuadratic + +namespace OAI + +/-! # Scalar algebra for the full-to-reduced midpoint comparison -/ + +open Set +open scoped ENNReal +noncomputable section +namespace RegularPointCoordinates + +theorem half_power_reciprocal {C : ℝ} (hC : 0 < C) (p : ℝ) : + (1/2:ℝ)^p*(1/(2*C))^(1-p) = (1/2)/C^(1-p) := by + rw [show 1/(2*C)=(1/2:ℝ)*C⁻¹ by ring,Real.mul_rpow (by norm_num) (inv_nonneg.mpr hC.le), + ←mul_assoc,←Real.rpow_add (by norm_num : (0:ℝ)<1/2), + show p+(1-p)=1 by ring,Real.rpow_one,Real.inv_rpow hC.le,div_eq_mul_inv] + rfl + +theorem dimension_scaled_sqrt {N : ℝ} (hN : 1 < N) (A : ℝ) : + Real.sqrt (1-1/N)*Real.sqrt (A/(N-1)) = Real.sqrt (A/N) := by + have hN0 : 0 < N := by linarith + have hq : 0 ≤ 1-1/N := sub_nonneg.mpr ((div_le_one hN0).mpr hN.le) + rw [←Real.sqrt_mul hq] + congr 1 + field_simp [hN0.ne', (sub_pos.mpr hN).ne'] + +theorem cosh_dimension_rpow {c x : ℝ} (hc0 : 0 ≤ c) (hc1 : c ≤ 1) (hx : 0 ≤ x) : + (Real.cosh x)^c ≤ Real.cosh (Real.sqrt c*x) := by + have h := Real.exp_le_exp.mpr (log_cosh_sqrt_mul_ge hc0 hc1 hx) + rw [Real.exp_log (Real.cosh_pos _)] at h + simpa only [Real.rpow_def_of_pos (Real.cosh_pos x),mul_comm] using h + +theorem cos_dimension_rpow {c x : ℝ} (hc0 : 0 ≤ c) (hc1 : c ≤ 1) + (hx : 0 ≤ x) (hxp : x < Real.pi/2) : + (Real.cos x)^c ≤ Real.cos (Real.sqrt c*x) := by + have hp : 0 < Real.cos x := Real.cos_pos_of_mem_Ioo ⟨by linarith [Real.pi_pos],hxp⟩ + have hs1 : Real.sqrt c ≤ 1 := by nlinarith [Real.sq_sqrt hc0,Real.sqrt_nonneg c] + have hy : Real.sqrt c*x < Real.pi/2 := (mul_le_of_le_one_left hx hs1).trans_lt hxp + have hpy : 0 < Real.cos (Real.sqrt c*x) := + Real.cos_pos_of_mem_Ioo ⟨by nlinarith [Real.sqrt_nonneg c,Real.pi_pos],hy⟩ + have h := Real.exp_le_exp.mpr (log_cos_sqrt_mul_ge hc0 hc1 hx hxp) + rw [Real.exp_log hpy] at h + simpa only [Real.rpow_def_of_pos hp,mul_comm] using h + +theorem tau_midpoint_of_sigma {K N θ C : ℝ} (hC : 0 < C) + (hs : sigma K N (1/2) θ = ENNReal.ofReal (1/(2*C))) : + tau K N (1/2) θ = ENNReal.ofReal ((1/2)/C^(1-1/N)) := by + unfold tau + norm_num only [show (1/2:ℝ)≠0 by norm_num,show (1/2:ℝ)≠1 by norm_num,ite_false] + rw [hs,ENNReal.ofReal_rpow_of_pos (by norm_num : (0:ℝ)<1/2), + ENNReal.ofReal_rpow_of_pos (by positivity : 0 < 1/(2*C)), + ←ENNReal.ofReal_mul (Real.rpow_nonneg (by norm_num) _),half_power_reciprocal hC] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/MidpointLengthApproximation.lean b/lean/OAI/Geometry/RCD/Transport/MidpointLengthApproximation.lean new file mode 100644 index 0000000000000000000000000000000000000000..543c82a395632ce3fbe66999300d9dee5e3b9953 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/MidpointLengthApproximation.lean @@ -0,0 +1,74 @@ +import OAI.Geometry.RCD.Transport.UniformLengthPartition +import OAI.Geometry.RCD.Transport.MidpointReducedComparison + +namespace OAI + +/-! # Exact midpoint distortion as the limit of finite length bins -/ + +open Set Filter TopologicalSpace +open scoped ENNReal Topology +noncomputable section +namespace RegularPointCoordinates + +def upperLength (ε d : ℝ) : ℝ := ((⌊d/ε⌋₊:ℝ)+1)*ε + +theorem upperLength_pos {ε d : ℝ} (hε : 0<ε) : 0 upperLength (ε m) d) atTop (𝓝 d) := by + have hupper : Tendsto (fun m => d+ε m) atTop (𝓝 d) := by + simpa only [add_zero] using tendsto_const_nhds.add ht + exact tendsto_of_tendsto_of_tendsto_of_le_of_le tendsto_const_nhds hupper + (fun m => le_upperLength (hε m) hd) (fun m => upperLength_le_add (hε m) hd) + +theorem sigma_nonpos_midpoint_eq {K N d : ℝ} (hK : K≤0) (hN : 1 sigma K N (1/2) (upperLength (ε m) d/2)) atTop + (𝓝 (sigma K N (1/2) (d/2))) := by + let F := fun x : ℝ => ENNReal.ofReal (1/(2*Real.cosh (x*Real.sqrt (-K/(N-1))/2))) + have hF : Continuous F := by + apply ENNReal.continuous_ofReal.comp + apply Continuous.div continuous_const + · fun_prop + · intro x + exact mul_ne_zero (by norm_num) (Real.cosh_pos _).ne' + have hh := hF.continuousAt.tendsto.comp ((upperLength_tendsto hε ht hd).div_const 2) + rw [sigma_nonpos_midpoint_eq hK hN (div_nonneg hd (by norm_num))] + apply hh.congr' + exact Eventually.of_forall (fun m => (sigma_nonpos_midpoint_eq hK hN + (div_nonneg (upperLength_pos (hε m)).le (by norm_num))).symm) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/MidpointMinCoefficientLimit.lean b/lean/OAI/Geometry/RCD/Transport/MidpointMinCoefficientLimit.lean new file mode 100644 index 0000000000000000000000000000000000000000..8b78aec9815caea79a71ed5c0e54e88d253d4645 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/MidpointMinCoefficientLimit.lean @@ -0,0 +1,25 @@ +import OAI.Geometry.RCD.Transport.CurvatureMidpointLimit + +namespace OAI + +/-! # The two-source midpoint coefficient tends to one -/ + +open Filter +open scoped Topology ENNReal +noncomputable section +namespace RegularPointCoordinates + +theorem midpoint_min_coefficient_tendsto_one {K d : ℝ} {n : ℕ} + (hn : 2 ≤ n) (hK : K ≤ 0) {r ε : ℕ → ℝ} + (hr : ∀ k, 0 ≤ r k) (hε : Tendsto ε atTop (𝓝 0)) + (hcurv : ∀ k, -ε k ≤ K*(r k)^2) : + Tendsto (fun k => (2*midpointFloor K n (d*r k)).toReal^n) atTop (𝓝 1) := by + have hh := ((midpointFloor_real_tendsto_half hn hK hr hε hcurv (d := d)).const_mul 2).pow n + simpa only [ENNReal.toReal_mul,ENNReal.toReal_ofNat, + show (2:ℝ)*(1/2)=1 by norm_num,one_pow] using hh + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/MidpointMinMass.lean b/lean/OAI/Geometry/RCD/Transport/MidpointMinMass.lean new file mode 100644 index 0000000000000000000000000000000000000000..409134d0b67ec52ec3c07c357bde40d37253f222 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/MidpointMinMass.lean @@ -0,0 +1,36 @@ +import OAI.Geometry.RCD.Transport.MidpointSupportVolume + +namespace OAI + +/-! # Both endpoint masses in the midpoint estimate -/ + +open scoped ENNReal +noncomputable section +namespace RegularPointCoordinates + +/-- Keeping the smaller endpoint mass preserves the factor two needed +for the isodiametric argument with reflected sets. -/ +theorem midpoint_root_bound_to_min_mass {n : ℕ} (hn : 0 < n) + {a b c d : ℝ≥0∞} + (h : c*(a^(1/(n:ℝ))+b^(1/(n:ℝ))) ≤ d^(1/(n:ℝ))) : + (2*c)^n*min a b ≤ d := by + have hq : 0 ≤ 1/(n:ℝ) := by positivity + have ha := ENNReal.rpow_le_rpow (min_le_left a b) hq + have hb := ENNReal.rpow_le_rpow (min_le_right a b) hq + have hs : (2:ℝ≥0∞)*(min a b)^(1/(n:ℝ)) ≤ a^(1/(n:ℝ))+b^(1/(n:ℝ)) := by + rw [two_mul] + exact add_le_add ha hb + have hp : (2*c)*(min a b)^(1/(n:ℝ)) ≤ d^(1/(n:ℝ)) := by + calc + _ = c*(2*(min a b)^(1/(n:ℝ))) := by ac_rfl + _ ≤ _ := (mul_le_mul' le_rfl hs).trans h + have he (x : ℝ≥0∞) : (x^(1/(n:ℝ)))^n=x := by + rw [← ENNReal.rpow_natCast,← ENNReal.rpow_mul, + one_div_mul_cancel (by exact_mod_cast hn.ne' : (n:ℝ)≠0),ENNReal.rpow_one] + simpa only [mul_pow,he] using pow_le_pow_left' hp n + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/MidpointReducedComparison.lean b/lean/OAI/Geometry/RCD/Transport/MidpointReducedComparison.lean new file mode 100644 index 0000000000000000000000000000000000000000..91281dd7fec8d654b7b8f48635a12f23ecea2e54 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/MidpointReducedComparison.lean @@ -0,0 +1,104 @@ +import OAI.Geometry.RCD.Transport.MidpointDimensionAlgebra + +namespace OAI + +/-! # The reduced midpoint coefficient is bounded by the full CD coefficient -/ + +open Set +open scoped ENNReal +noncomputable section +namespace RegularPointCoordinates + +theorem sigma_negative_midpoint {K N θ : ℝ} (hK : K < 0) (hN : 1 < N) (hθ : 0 < θ) : + sigma K N (1/2) θ = + ENNReal.ofReal (1/(2*Real.cosh (θ*Real.sqrt (-K/(N-1))/2))) := by + rw [sigma_neg_eq hK hN hθ] + have hz : 0 < θ*Real.sqrt (-K/(N-1)) := + mul_pos hθ (Real.sqrt_pos.mpr (div_pos (neg_pos.mpr hK) (sub_pos.mpr hN))) + rw [show (1/2:ℝ)*θ*Real.sqrt (-K/(N-1)) = (θ*Real.sqrt (-K/(N-1)))/2 by ring, + sinh_half_div_sinh _ hz] + +theorem reduced_midpoint_le_tau_negative {K N θ : ℝ} + (hK : K < 0) (hN : 1 < N) (hθ : 0 < θ) : + sigma K (N+1) (1/2) θ ≤ tau K N (1/2) θ := by + let c := 1-1/N + let x := θ*Real.sqrt (-K/(N-1))/2 + have hN0 : 0 < N := by linarith + have hc0 : 0 ≤ c := sub_nonneg.mpr ((div_le_one hN0).mpr hN.le) + have hc1 : c ≤ 1 := by have := one_div_pos.mpr hN0; dsimp [c]; linarith + have hx : 0 ≤ x := by dsimp [x]; positivity + have he : Real.sqrt c*x = θ*Real.sqrt (-K/N)/2 := by + calc + _ = θ/2*(Real.sqrt (1-1/N)*Real.sqrt (-K/(N-1))) := by dsimp [x,c]; ring + _ = _ := by rw [dimension_scaled_sqrt hN]; ring + have hpow := cosh_dimension_rpow hc0 hc1 hx + rw [he] at hpow + rw [sigma_negative_midpoint hK (by linarith : 1 < N+1) hθ, + show N+1-1=N by ring, + tau_midpoint_of_sigma (Real.cosh_pos x) (sigma_negative_midpoint hK hN hθ)] + apply ENNReal.ofReal_le_ofReal + calc + _ = (1/2:ℝ)/Real.cosh (θ*Real.sqrt (-K/N)/2) := by ring + _ ≤ (1/2:ℝ)/(Real.cosh x)^c := + div_le_div_of_nonneg_left (by norm_num) (Real.rpow_pos_of_pos (Real.cosh_pos x) c) hpow + +theorem sin_half_div_sin_exact {z : ℝ} (hz : 0 < z) (hzp : z < Real.pi) : + Real.sin (z/2)/Real.sin z = 1/(2*Real.cos (z/2)) := by + have hs : Real.sin (z/2) ≠ 0 := (Real.sin_pos_of_pos_of_lt_pi (by linarith) + (by linarith)).ne' + have hc : Real.cos (z/2) ≠ 0 := (Real.cos_pos_of_mem_Ioo ⟨by linarith [Real.pi_pos], + by linarith⟩).ne' + have he : Real.sin z = 2*Real.sin (z/2)*Real.cos (z/2) := by + simpa only [show 2*(z/2)=z by ring] using Real.sin_two_mul (z/2) + rw [he] + field_simp + +theorem sigma_positive_midpoint {K N θ : ℝ} (hK : 0 < K) (hN : 1 < N) (hθ : 0 < θ) + (hc : θ*Real.sqrt (K/(N-1)) < Real.pi) : + sigma K N (1/2) θ = + ENNReal.ofReal (1/(2*Real.cos (θ*Real.sqrt (K/(N-1))/2))) := by + rw [sigma_pos_eq hK hN hθ hc] + have hz : 0 < θ*Real.sqrt (K/(N-1)) := + mul_pos hθ (Real.sqrt_pos.mpr (div_pos hK (sub_pos.mpr hN))) + rw [show (1/2:ℝ)*(θ*Real.sqrt (K/(N-1))) = (θ*Real.sqrt (K/(N-1)))/2 by ring, + sin_half_div_sin_exact hz hc] + +theorem reduced_midpoint_le_tau_positive {K N θ : ℝ} + (hK : 0 < K) (hN : 1 < N) (hθ : 0 < θ) + (hc : θ*Real.sqrt (K/(N-1)) < Real.pi) : + sigma K (N+1) (1/2) θ ≤ tau K N (1/2) θ := by + let c := 1-1/N + let x := θ*Real.sqrt (K/(N-1))/2 + have hN0 : 0 < N := by linarith + have hc0 : 0 ≤ c := sub_nonneg.mpr ((div_le_one hN0).mpr hN.le) + have hc1 : c ≤ 1 := by have := one_div_pos.mpr hN0; dsimp [c]; linarith + have hx : 0 ≤ x := by dsimp [x]; positivity + have hxp : x < Real.pi/2 := by dsimp [x]; linarith + have he : Real.sqrt c*x = θ*Real.sqrt (K/N)/2 := by + calc + _ = θ/2*(Real.sqrt (1-1/N)*Real.sqrt (K/(N-1))) := by dsimp [x,c]; ring + _ = _ := by rw [dimension_scaled_sqrt hN]; ring + have hs1 : Real.sqrt c ≤ 1 := by nlinarith [Real.sq_sqrt hc0,Real.sqrt_nonneg c] + have hred : θ*Real.sqrt (K/N) < Real.pi := by + have hh : Real.sqrt c*x ≤ x := mul_le_of_le_one_left hx hs1 + rw [he] at hh + dsimp [x] at hh + linarith + have hpow := cos_dimension_rpow hc0 hc1 hx hxp + rw [he] at hpow + have hcx : 0 < Real.cos x := Real.cos_pos_of_mem_Ioo ⟨by linarith [Real.pi_pos],hxp⟩ + have hred' : θ*Real.sqrt (K/(N+1-1)) < Real.pi := by simpa using hred + rw [sigma_positive_midpoint hK (by linarith : 1 < N+1) hθ hred', + show N+1-1=N by ring, + tau_midpoint_of_sigma hcx (sigma_positive_midpoint hK hN hθ hc)] + apply ENNReal.ofReal_le_ofReal + calc + _ = (1/2:ℝ)/Real.cos (θ*Real.sqrt (K/N)/2) := by ring + _ ≤ (1/2:ℝ)/(Real.cos x)^c := + div_le_div_of_nonneg_left (by norm_num) (Real.rpow_pos_of_pos hcx c) hpow + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/MidpointSupportVolume.lean b/lean/OAI/Geometry/RCD/Transport/MidpointSupportVolume.lean new file mode 100644 index 0000000000000000000000000000000000000000..e8cece6a3d18ec5419002063c374fe57ec3bc7d9 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/MidpointSupportVolume.lean @@ -0,0 +1,89 @@ +import OAI.Geometry.RCD.Transport.AsymmetricMidpoint + +namespace OAI + +/-! # Both endpoint volumes in the actual CD midpoint inequality + +This form applies to the preimages of Euclidean balls under metric +approximations. No measured limit or volume convergence is assumed. +-/ + +open Set Filter MeasureTheory Metric +open scoped ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem FullCD.midpoint_support_volume_bound (μ : Measure X) [SigmaFinite μ] + {K : ℝ} {n : ℕ} (hcd : FullCD μ K n) (hn : 2 ≤ n) + (A B C : Set X) (hA : MeasurableSet A) (hB : MeasurableSet B) (hC : MeasurableSet C) + (hA0 : μ A ≠ 0) (hAtop : μ A ≠ ∞) (hB0 : μ B ≠ 0) (hBtop : μ B ≠ ∞) + (hMA : FiniteSecondMoment (uniformOn μ A)) (hMB : FiniteSecondMoment (uniformOn μ B)) + (D : ℝ) (hD : ∀ x ∈ A, ∀ y ∈ B, dist x y ≤ D) + (hmid : ∀ γ : C(Time,X), IsGeodesic γ → γ 0 ∈ A → γ 1 ∈ B → γ midpointTime ∈ C) : + midpointFloor K n D*((μ A)^(1/(n:ℝ))+(μ B)^(1/(n:ℝ))) ≤ (μ C)^(1/(n:ℝ)) := by + let := uniformOn_probability μ A hA0 hAtop + let := uniformOn_probability μ B hB0 hBtop + obtain ⟨π,hπ,hgeo,hopt,hentropy⟩ := hcd (uniformOn μ A) (uniformOn μ B) + inferInstance inferInstance (uniformOn_absolutelyContinuous μ A) + (uniformOn_absolutelyContinuous μ B) hMA hMB + let := hπ + obtain ⟨heA,heB⟩ := optimalPlan_endpoints _ _ π hopt + have h0 : ∀ᵐ γ ∂π, γ 0 ∈ A := by + apply ae_of_ae_map (measurable_path_eval 0).aemeasurable + rw [heA] + exact uniformOn_ae_mem μ A hA + have h1 : ∀ᵐ γ ∂π, γ 1 ∈ B := by + apply ae_of_ae_map (measurable_path_eval 1).aemeasurable + rw [heB] + exact uniformOn_ae_mem μ B hB + have hrA : ∀ᵐ γ ∂π, + ((uniformOn μ A).rnDeriv μ (γ 0))^(-(1/(n:ℝ)))=(μ A)^(1/(n:ℝ)) := by + apply ae_of_ae_map (measurable_path_eval (X := X) 0).aemeasurable + (p := fun x => ((uniformOn μ A).rnDeriv μ x)^(-(1/(n:ℝ)))=(μ A)^(1/(n:ℝ))) + rw [heA] + exact uniformOn_rnDeriv_neg_power μ A hA n + have hrB : ∀ᵐ γ ∂π, + ((uniformOn μ B).rnDeriv μ (γ 1))^(-(1/(n:ℝ)))=(μ B)^(1/(n:ℝ)) := by + apply ae_of_ae_map (measurable_path_eval (X := X) 1).aemeasurable + (p := fun x => ((uniformOn μ B).rnDeriv μ x)^(-(1/(n:ℝ)))=(μ B)^(1/(n:ℝ))) + rw [heB] + exact uniformOn_rnDeriv_neg_power μ B hB n + have hs : ∀ᵐ x ∂π.map (fun γ => γ midpointTime), x ∈ C := by + apply (ae_map_iff (measurable_path_eval midpointTime).aemeasurable hC).mpr + filter_upwards [hgeo,h0,h1] with γ hg ha hb + exact hmid γ hg ha hb + have hn1 : (1:ℝ) γ midpointTime)) n := hentropy n le_rfl midpointTime + _ ≤ (μ C)^(1/(n:ℝ)) := renyiIntegral_le_support_volume μ _ C hC hs n hn1 + +theorem midpoint_root_bound_to_mass {n : ℕ} (hn : 0 < n) + {a b c d : ℝ≥0∞} + (h : c*(a^(1/(n:ℝ))+b^(1/(n:ℝ))) ≤ d^(1/(n:ℝ))) : + c^n*b ≤ d := by + have hb : b^(1/(n:ℝ)) ≤ a^(1/(n:ℝ))+b^(1/(n:ℝ)) := le_add_left le_rfl + have hp := pow_le_pow_left' ((mul_le_mul' (le_refl c) hb).trans h) n + have he (x : ℝ≥0∞) : (x^(1/(n:ℝ)))^n=x := by + rw [← ENNReal.rpow_natCast,← ENNReal.rpow_mul, + one_div_mul_cancel (by exact_mod_cast hn.ne' : (n:ℝ)≠0),ENNReal.rpow_one] + simpa only [mul_pow,he] using hp + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/MidpointThickening.lean b/lean/OAI/Geometry/RCD/Transport/MidpointThickening.lean new file mode 100644 index 0000000000000000000000000000000000000000..007fcbf8032caa35f2a8b03fe89116ab7c166604 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/MidpointThickening.lean @@ -0,0 +1,48 @@ +import OAI.Geometry.RCD.Transport.PointedMidpointSets + +namespace OAI + +/-! # Quantitative thickening of midpoint sets -/ + +open Set Metric +noncomputable section +namespace RegularPointCoordinates + +theorem thickening_subset_ball_of_subset_closedBall {n : ℕ} + {A : Set (Euclidean n)} {a δ : ℝ} (hA : A ⊆ closedBall 0 a) : + thickening δ A ⊆ ball 0 (a+δ) := by + intro x hx + obtain ⟨y,hy,hxy⟩ := mem_thickening_iff.mp hx + have hy0 := mem_closedBall.mp (hA hy) + have ht := dist_triangle x y 0 + exact mem_ball.mpr (by linarith only [hxy,hy0,ht]) + +theorem midpointSet_thickening_subset {n : ℕ} + (A B : Set (Euclidean n)) (δ : ℝ) : + midpointSet (thickening δ A) (thickening δ B) ⊆ + thickening δ (midpointSet A B) := by + rintro x ⟨⟨a,b⟩,⟨ha,hb⟩,rfl⟩ + obtain ⟨a',ha',haa⟩ := mem_thickening_iff.mp ha + obtain ⟨b',hb',hbb⟩ := mem_thickening_iff.mp hb + apply mem_thickening_iff.mpr + refine ⟨(1/2:ℝ) • (a'+b'),⟨(a',b'),⟨ha',hb'⟩,rfl⟩,?_⟩ + rw [dist_eq_norm,← smul_sub,norm_smul, + Real.norm_of_nonneg (by norm_num : (0:ℝ) ≤ 1/2)] + have he : a+b-(a'+b')=(a-a')+(b-b') := by abel + rw [he] + have ht := norm_add_le (a-a') (b-b') + rw [dist_eq_norm] at haa hbb + linarith only [ht,haa,hbb] + +theorem cthickening_midpointSet_thickening_subset {n : ℕ} + (A B : Set (Euclidean n)) {κ δ : ℝ} (hκ : 0 ≤ κ) : + cthickening κ (midpointSet (thickening δ A) (thickening δ B)) ⊆ + cthickening (κ+δ) (midpointSet A B) := + (cthickening_subset_of_subset κ (midpointSet_thickening_subset A B δ)).trans + (cthickening_thickening_subset hκ δ (midpointSet A B)) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/NearbyAffineGeodesic.lean b/lean/OAI/Geometry/RCD/Transport/NearbyAffineGeodesic.lean new file mode 100644 index 0000000000000000000000000000000000000000..88ef58ac8494734027dd5fb2b3e3dd1fa99ba35c --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/NearbyAffineGeodesic.lean @@ -0,0 +1,52 @@ +import OAI.Geometry.RCD.Transport.HarmonicFamilyGeodesicAffine +import OAI.Geometry.RCD.Transport.BoundedEndpointPlan + +namespace OAI + +/-! # Affine harmonic-coordinate geodesics with endpoints near prescribed points -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped Topology NNReal ENNReal +noncomputable section +namespace RegularPointCoordinates.NoncollapsedRCD +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + {n : ℕ} (hX : NoncollapsedRCD 0 n X) (hn : 2 ≤ n) (p : X) [SeparableSpace X] + [IsLocallyFiniteMeasure (hausdorff n X)] [(hausdorff n X).Regular] +attribute [local instance] pathBorel pathBorelSpace + +include hn in +theorem exists_nearby_affine_geodesic {R : ℝ} (hR : 1 ≤ R) + (u : Fin n → SobolevSpace (hausdorff n X) hX.quadratic) (v : X → Euclidean n) + {b : ℝ} (hb : 50*R < b) + (hu : ∀ i, SobolevSpace.toLp (hausdorff n X) hX.quadratic (u i) + =ᵐ[(hausdorff n X).restrict (ball p b)] fun x => v x i) + (hH : ∀ i, IsSobolevHarmonicOn (hausdorff n X) hX.quadratic (ball p b) (u i)) + (L : Fin n → ℝ≥0) (hL : ∀ i, ∀ᵐ x ∂(hausdorff n X).restrict (ball p b), + localGamma (hausdorff n X) hX.quadratic (u i) (u i) x ≤ (L i:ℝ)^2) + (c : Fin n → ℝ) (hc : ∀ i, localGamma (hausdorff n X) hX.quadratic (u i) (u i) + =ᵐ[(hausdorff n X).restrict (ball p b)] fun _ => c i) + (hv : ContinuousOn v (ball p b)) + {x y : X} {ρ : ℝ} (hρ : 0 < ρ) (hρR : ρ ≤ R/2) + (hx : dist x p ≤ R/2) (hy : dist y p ≤ R/2) : + ∃ γ : C(Time,X), IsGeodesic γ ∧ dist (γ 0) x < ρ ∧ dist (γ 1) y < ρ ∧ + (∀ t : Time, dist (γ t) p ≤ 3*R) ∧ + ∀ t : Time, v (γ t)=(1-(t:ℝ)) • v (γ 0)+(t:ℝ) • v (γ 1) := by + have hsub (z : X) (hz : dist z p ≤ R/2) : ball z ρ ⊆ closedBall p R := by + intro w hw + have hdist : dist w z < ρ := hw + change dist w p ≤ R + linarith [dist_triangle w z p] + obtain ⟨π,hπ,C,hC,hgeo,hopt,hcomp,hends,hs₀,hs₁⟩ := hX.bounded_endpoint_plan hn p + (show 0 dist (γ 0) (γ 1)) 2 π ∧ + (∀ t : Time, π.map (fun γ => γ t) ≤ C • hausdorff n X) ∧ + (∀ᵐ γ ∂π, dist (γ 0) x < ρ ∧ dist (γ 1) y < ρ ∧ + ∀ t : Time, dist (γ t) x ≤ 3*(dist x y+ρ)) := by + let := hX.separable + let μ := hausdorff n X + let A := ball x ρ + let B := ball y ρ + let R := dist x y+ρ + have hR : 0 < R := add_pos_of_nonneg_of_pos dist_nonneg hρ + have hA0 : μ A ≠ 0 := (hX.fullSupport x ρ hρ).ne' + have hB0 : μ B ≠ 0 := (hX.fullSupport y ρ hρ).ne' + have hAt : μ A ≠ ∞ := (hX.finiteOnBounded A isBounded_ball).ne + have hBt : μ B ≠ ∞ := (hX.finiteOnBounded B isBounded_ball).ne + let C := max (μ A)⁻¹ (μ B)⁻¹ + have hC : C ≠ ∞ := max_ne_top (ENNReal.inv_ne_top.mpr hA0) (ENNReal.inv_ne_top.mpr hB0) + let := uniformOn_probability μ A hA0 hAt + let := uniformOn_probability μ B hB0 hBt + have hbA : ∀ᵐ w ∂uniformOn μ A, dist w x ≤ R := by + filter_upwards [uniformOn_ae_mem μ A measurableSet_ball] with w hw + change dist w x < ρ at hw + dsimp only [R] + linarith [dist_nonneg (x := x) (y := y)] + have hbB : ∀ᵐ w ∂uniformOn μ B, dist w x ≤ R := by + filter_upwards [uniformOn_ae_mem μ B measurableSet_ball] with w hw + change dist w y < ρ at hw + have hh := dist_triangle w y x + rw [dist_comm y x] at hh + dsimp only [R] + linarith + obtain ⟨π,hπ,hgeo,hopt,hi,hcomp⟩ := hX.exists_bounded_entropy_plan K n hn + (uniformOn μ A) (uniformOn μ B) hC (uniformOn_le_scaled μ A (le_max_left _ _)) + (uniformOn_le_scaled μ B (le_max_right _ _)) x hR.le hbA hbB + let := hπ + obtain ⟨h0,h1⟩ := optimalPlan_endpoints (uniformOn μ A) (uniformOn μ B) π hopt + have hp := optimal_geodesic_plan_bounded (uniformOn μ A) (uniformOn μ B) + π hgeo hopt x hR.le hbA hbB + have hstart : ∀ᵐ γ ∂π, γ 0 ∈ A := by + apply ae_of_ae_map (measurable_path_eval 0).aemeasurable + rw [h0] + exact uniformOn_ae_mem μ A measurableSet_ball + have hfinish : ∀ᵐ γ ∂π, γ 1 ∈ B := by + apply ae_of_ae_map (measurable_path_eval 1).aemeasurable + rw [h1] + exact uniformOn_ae_mem μ B measurableSet_ball + refine ⟨π,hπ,compressionBudget K n (2*R) C,compressionBudget_ne_top K n _ hC,hgeo,?_, + fun t => (hcomp t).1,?_⟩ + · exact (memLp_two_iff_integrable_sq + ((measurable_path_eval 0).dist (measurable_path_eval 1)).aestronglyMeasurable).mpr hi + · filter_upwards [hstart,hfinish,hp] with γ hγ0 hγ1 hγ + exact ⟨hγ0,hγ1,hγ.2⟩ + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/NearbyEndpointPlan.lean b/lean/OAI/Geometry/RCD/Transport/NearbyEndpointPlan.lean new file mode 100644 index 0000000000000000000000000000000000000000..3c73e6ad4ee241310f71321e00e198581bed1650 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/NearbyEndpointPlan.lean @@ -0,0 +1,89 @@ +import OAI.Geometry.RCD.Transport.NearbySegment + +namespace OAI + +/-! # Actual nearby-endpoint plans with an explicit normalized compression bound -/ + +open Set Filter MeasureTheory Metric +open scoped ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem NoncollapsedRCD.nearby_endpoint_plan {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (hn : 2≤n) (hK : K≤0) + {p x y : X} {R ρ : ℝ} (hR : 0 γ 0)) (π.map (fun γ => γ 1)) + (π.map (fun γ => (γ 0,γ 1))) ∧ + (∀ t : Time, π.map (fun γ => γ t)≤ + ENNReal.ofReal (segmentCost n*R^n/((hausdorff n X).real (ball p R)*ρ^n)) • hausdorff n X) ∧ + ∀ᵐ γ ∂π, dist (γ 0) x<ρ ∧ dist (γ 1) y<ρ ∧ ∀ t : Time, dist (γ t) p≤3*R := by + let μ := hausdorff n X + have hsub (z : X) (hz : dist z p≤R/2) : ball z ρ⊆closedBall p R := by + intro w hw + have ht := dist_triangle w z p + have hwz : dist w z<ρ := hw + change dist w p≤R + linarith + let A := ball x ρ + let B := ball y ρ + let C : ℝ≥0∞ := max (μ A)⁻¹ (μ B)⁻¹ + have hA0 : μ A≠0 := (hX.fullSupport x ρ hρ).ne' + have hB0 : μ B≠0 := (hX.fullSupport y ρ hρ).ne' + have hAt : μ A≠∞ := (hX.finiteOnBounded _ isBounded_ball).ne + have hBt : μ B≠∞ := (hX.finiteOnBounded _ isBounded_ball).ne + have hC : C≠∞ := max_ne_top (ENNReal.inv_ne_top.mpr hA0) (ENNReal.inv_ne_top.mpr hB0) + let := uniformOn_probability μ A hA0 hAt + let := uniformOn_probability μ B hB0 hBt + have hbA : ∀ᵐ z ∂uniformOn μ A, dist z p≤R := + (uniformOn_ae_mem μ A measurableSet_ball).mono (fun _ hz => hsub x hx hz) + have hbB : ∀ᵐ z ∂uniformOn μ B, dist z p≤R := + (uniformOn_ae_mem μ B measurableSet_ball).mono (fun _ hz => hsub y hy hz) + obtain ⟨π,hπ,hgeo,hopt,_hi,hall⟩ := hX.exists_bounded_entropy_plan K n hn + (uniformOn μ A) (uniformOn μ B) hC (uniformOn_le_scaled μ A (le_max_left _ _)) + (uniformOn_le_scaled μ B (le_max_right _ _)) p hR.le hbA hbB + let := hπ + have hend := optimalPlan_endpoints (uniformOn μ A) (uniformOn μ B) π hopt + have hpaths := optimal_geodesic_plan_bounded (uniformOn μ A) (uniformOn μ B) + π hgeo hopt p hR.le hbA hbB + have hstart : ∀ᵐ γ ∂π, γ 0∈A := by + apply ae_of_ae_map (measurable_path_eval 0).aemeasurable + rw [hend.1] + exact uniformOn_ae_mem μ A measurableSet_ball + have hfinish : ∀ᵐ γ ∂π, γ 1∈B := by + apply ae_of_ae_map (measurable_path_eval 1).aemeasurable + rw [hend.2] + exact uniformOn_ae_mem μ B measurableSet_ball + have hCb : (compressionBudget K n (2*R) C).toReal≤ + segmentCost n*R^n/(μ.real (ball p R)*ρ^n) := by + have he := compressionBudget_le_of_rescaled_curvature hn hK hcurv C + have hc := hX.endpoint_ball_compression_bound (p:=p) (x:=x) (y:=y) hn hR hρ (by linarith) + (by linarith) (by linarith) (by nlinarith : -1≤K*(2*R)^2) + exact he.trans (by + have hh := mul_le_mul_of_nonneg_left hc (Real.exp_pos (n:ℝ)).le + convert hh using 1 + dsimp only [segmentCost] + ring) + have hC' : compressionBudget K n (2*R) C≤ + ENNReal.ofReal (segmentCost n*R^n/(μ.real (ball p R)*ρ^n)) := by + rw [← ENNReal.ofReal_toReal (compressionBudget_ne_top K n (2*R) hC)] + exact ENNReal.ofReal_le_ofReal hCb + refine ⟨π,hπ,hgeo,?_,?_,?_⟩ + · rwa [hend.1,hend.2] + · intro t + apply (hall t).1.trans + apply Measure.le_iff.mpr + intro U _hU + simpa only [Measure.smul_apply,smul_eq_mul] using mul_le_mul' hC' le_rfl + · filter_upwards [hstart,hfinish,hpaths] with γ ha hb hp + exact ⟨ha,hb,hp.2⟩ + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/NearbyPlanCompression.lean b/lean/OAI/Geometry/RCD/Transport/NearbyPlanCompression.lean new file mode 100644 index 0000000000000000000000000000000000000000..a77f8ac2e852ef4c6968b1638aa81890fbf0943e --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/NearbyPlanCompression.lean @@ -0,0 +1,63 @@ +import OAI.Geometry.RCD.Transport.NearbyEndpointPlan +import OAI.Geometry.RCD.Coordinates.RegularMovingVolume + +namespace OAI + +/-! # Uniform normalized compression for actual nearby-endpoint plans -/ + +open Set Filter Metric MeasureTheory +open scoped Topology ENNReal +noncomputable section +namespace RegularPointCoordinates.NoncollapsedRCD +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + {K : ℝ} {n : ℕ} (hX : NoncollapsedRCD K n X) + +include hX in +theorem near_regular_compression_bound (hn : 2 ≤ n) {o : X} (ho : IsRegular n o) + (p z : ℕ → X) (R : ℕ → ℝ) (hp : Tendsto p atTop (𝓝 o)) + (hz : Tendsto z atTop (𝓝 o)) (hR : ∀ k, 0 < R k) (hR0 : Tendsto R atTop (𝓝 0)) + {A θ : ℝ} (hA : 0 < A) (hθ : 0 < θ) : + ∃ C : ℝ, 0 ≤ C ∧ ∀ k, + (ENNReal.ofReal (segmentCost n * (R k)^n / + ((hausdorff n X).real (ball (p k) (R k)) * (θ * R k)^n))).toReal * + (hausdorff n X).real (ball (z k) (A * R k)) ≤ C := by + let μ := hausdorff n X + let f k := μ.real (ball (p k) (R k)) / (R k)^n + let g k := μ.real (ball (z k) (A * R k)) / (A * R k)^n + have hf : Tendsto f atTop (𝓝 (euclideanUnitVolume n)) := + hX.regular_moving_volume_limit hn ho p R hp hR hR0 + have hg : Tendsto g atTop (𝓝 (euclideanUnitVolume n)) := + hX.regular_moving_volume_limit hn ho z (fun k => A * R k) hz + (fun k => mul_pos hA (hR k)) (by simpa using hR0.const_mul A) + have hv (k : ℕ) : 0 < μ.real (ball (p k) (R k)) := + ENNReal.toReal_pos (hX.fullSupport _ _ (hR k)).ne' + (hX.finiteOnBounded _ isBounded_ball).ne + have hcost : 0 ≤ segmentCost n := by + dsimp only [segmentCost] + positivity + have he (k : ℕ) : + (ENNReal.ofReal (segmentCost n * (R k)^n / + (μ.real (ball (p k) (R k)) * (θ * R k)^n))).toReal * + μ.real (ball (z k) (A * R k)) = + (segmentCost n * A^n / θ^n) * (g k / f k) := by + rw [ENNReal.toReal_ofReal (by + exact div_nonneg (mul_nonneg hcost (pow_pos (hR k) n).le) + (mul_pos (hv k) (pow_pos (mul_pos hθ (hR k)) n)).le)] + dsimp only [f,g] + rw [mul_pow,mul_pow] + field_simp [hA.ne',hθ.ne',(hR k).ne',(hv k).ne'] + have hh : Tendsto (fun k => + (ENNReal.ofReal (segmentCost n * (R k)^n / + (μ.real (ball (p k) (R k)) * (θ * R k)^n))).toReal * + μ.real (ball (z k) (A * R k))) atTop + (𝓝 ((segmentCost n * A^n / θ^n) * (euclideanUnitVolume n / euclideanUnitVolume n))) := by + exact ((hg.div hf (euclideanUnitVolume_pos n).ne').const_mul _).congr + (fun k => (he k).symm) + obtain ⟨C,hC⟩ := hh.bddAbove_range + exact ⟨max 0 C,le_max_left _ _,fun k => (hC (mem_range_self k)).trans (le_max_right _ _)⟩ + +end RegularPointCoordinates.NoncollapsedRCD + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/NearbySegment.lean b/lean/OAI/Geometry/RCD/Transport/NearbySegment.lean new file mode 100644 index 0000000000000000000000000000000000000000..4b93d6148126e9d07aeacca99b87d082c55db30f --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/NearbySegment.lean @@ -0,0 +1,82 @@ +import OAI.Geometry.RCD.Transport.NearbySegmentCompression + +namespace OAI + +/-! # Controlled segments with endpoints near prescribed points + +Only a dimensional constant and the explicit endpoint radius loss occur. +The estimate uses the original Hausdorff measure and permits every real K. +-/ + +open Set Filter Metric MeasureTheory +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +def segmentCost (n : ℕ) : ℝ := Real.exp (n:ℝ)*(Real.cosh 1^(n-1)*2^n) + +theorem NoncollapsedRCD.nearby_defect_segment {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (hn : 2 ≤ n) {p x y : X} {R ρ : ℝ} + (hR : 0 < R) (hρ : 0 < ρ) (hρR : ρ ≤ R/2) + (hx : dist x p ≤ R/2) (hy : dist y p ≤ R/2) + (hcurv : -1 ≤ K*(4*R)^2) + {F : X → ℝ} (hF : IntegrableOn F (ball p (8*R)) (hausdorff n X)) + (hFpos : ∀ᵐ z ∂(hausdorff n X).restrict (ball p (8*R)), 0 ≤ F z) + {P : X → Prop} (hP : ∀ᵐ z ∂(hausdorff n X).restrict (ball p (8*R)), P z) : + ∃ γ : C(Time,X), IsGeodesic γ ∧ dist (γ 0) x < ρ ∧ dist (γ 1) y < ρ ∧ + (∀ t : Time, dist (γ t) p ≤ 3*R) ∧ + (∀ᵐ t ∂volume.restrict (Icc (0:ℝ) 1), P (geodesicExtension γ t)) ∧ + |dist (γ 0) (γ 1)-dist x y| ≤ 2*ρ ∧ + IntegrableOn (fun t => F (geodesicExtension γ t)) (Icc (0:ℝ) 1) ∧ + (∫ t in Icc (0:ℝ) 1, F (geodesicExtension γ t)) ≤ + (segmentCost n*R^n/((hausdorff n X).real (ball p R)*ρ^n))* + ∫ z in ball p (8*R), F z ∂hausdorff n X := by + let K' := min K 0 + have hK' : K' ≤ 0 := min_le_right _ _ + have hY : NoncollapsedRCD K' n X := by + by_cases hK : K ≤ 0 + · simpa only [K',min_eq_left hK] using hX + · simpa only [K',min_eq_right (le_of_not_ge hK)] using + hX.zero_of_nonneg_curvature hn (le_of_not_ge hK) + have hc4 : -1 ≤ K'*(4*R)^2 := by + by_cases hK : K ≤ 0 + · simpa only [K',min_eq_left hK] using hcurv + · simp only [K',min_eq_right (le_of_not_ge hK),zero_mul] + norm_num + have hc2 : -1 ≤ K'*(2*R)^2 := by nlinarith + have hsub (z : X) (hz : dist z p ≤ R/2) : ball z ρ ⊆ closedBall p R := by + intro w hw + have htri := dist_triangle w z p + have hwz : dist w z < ρ := hw + change dist w p ≤ R + linarith + obtain ⟨γ,hg,ha,hb,hstay,hPγ,hinner,hbound⟩ := hY.exists_defect_segment hn p hR + measurableSet_ball measurableSet_ball (hY.fullSupport x ρ hρ).ne' + (hY.fullSupport y ρ hρ).ne' (hsub x hx) (hsub y hy) hF hFpos hP + have ha' : dist (γ 0) x < ρ := ha + have hb' : dist (γ 1) y < ρ := hb + refine ⟨γ,hg,ha',hb',hstay,hPγ,?_,hinner,?_⟩ + · apply abs_le.mpr + have hupper := dist_triangle (γ 0) x y + have hupper' := dist_triangle (γ 0) y (γ 1) + have hlower := dist_triangle x (γ 0) (γ 1) + have hlower' := dist_triangle x (γ 1) y + rw [dist_comm y (γ 1)] at hupper' + rw [dist_comm x (γ 0)] at hlower + constructor <;> linarith + · have hE := compressionBudget_le_of_rescaled_curvature hn hK' hc4 + (max ((hausdorff n X) (ball x ρ))⁻¹ ((hausdorff n X) (ball y ρ))⁻¹) + have hC := hY.endpoint_ball_compression_bound (p:=p) (x:=x) (y:=y) hn hR hρ (by linarith) (by linarith) + (by linarith) hc2 + have hcoeff := hE.trans (mul_le_mul_of_nonneg_left hC (Real.exp_pos (n:ℝ)).le) + have hI : 0 ≤ ∫ z in ball p (8*R), F z ∂hausdorff n X := integral_nonneg_of_ae hFpos + apply hbound.trans + convert mul_le_mul_of_nonneg_right hcoeff hI using 1 + dsimp only [segmentCost] + ring + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/NearbySegmentCompression.lean b/lean/OAI/Geometry/RCD/Transport/NearbySegmentCompression.lean new file mode 100644 index 0000000000000000000000000000000000000000..b202b0658fac712c70b78a0690977fc699873f16 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/NearbySegmentCompression.lean @@ -0,0 +1,80 @@ +import OAI.Geometry.RCD.Metric.NearbySmallBallMass +import OAI.Geometry.RCD.Harmonic.DefectSegment + +namespace OAI + +/-! # Compression cost for small endpoint balls + +The local segment estimate must be uniform when its endpoints move. The +actual Bishop--Gromov lower bound controls both endpoint normalizations. +-/ + +open Set Filter Metric MeasureTheory +open scoped ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + +theorem inverse_mass_le_of_scaled_lower {M a D s : ℝ} + (ha : 0 < a) (hMs : 0 < M*s) (hlower : M*s ≤ D*a) : + a⁻¹ ≤ D/(M*s) := by + apply (le_div_iff₀ hMs).mpr + calc + a⁻¹*(M*s) = (M*s)/a := by ring + _ ≤ D := (div_le_iff₀ ha).mpr hlower + +theorem NoncollapsedRCD.endpoint_ball_compression_bound {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (hn : 2 ≤ n) {p x y : X} {R ρ : ℝ} + (hR : 0 < R) (hρ : 0 < ρ) (hρR : ρ ≤ R) + (hx : dist x p ≤ R) (hy : dist y p ≤ R) + (hcurv : -1 ≤ K*(2*R)^2) : + (max ((hausdorff n X) (ball x ρ))⁻¹ ((hausdorff n X) (ball y ρ))⁻¹).toReal ≤ + ((Real.cosh 1^(n-1)*2^n)*R^n)/((hausdorff n X).real (ball p R)*ρ^n) := by + let μ := hausdorff n X + have hM : 0 < μ.real (ball p R) := ENNReal.toReal_pos + (hX.fullSupport p R hR).ne' (hX.finiteOnBounded _ isBounded_ball).ne + have ha : 0 < μ.real (ball x ρ) := ENNReal.toReal_pos + (hX.fullSupport x ρ hρ).ne' (hX.finiteOnBounded _ isBounded_ball).ne + have hb : 0 < μ.real (ball y ρ) := ENNReal.toReal_pos + (hX.fullSupport y ρ hρ).ne' (hX.finiteOnBounded _ isBounded_ball).ne + have hxa := inverse_mass_le_of_scaled_lower ha (mul_pos hM (pow_pos hρ n)) + (hX.nearby_small_ball_mass hn hR hx hρ hρR hcurv) + have hyb := inverse_mass_le_of_scaled_lower hb (mul_pos hM (pow_pos hρ n)) + (hX.nearby_small_ball_mass hn hR hy hρ hρR hcurv) + by_cases hxy : μ (ball x ρ) ≤ μ (ball y ρ) + · rw [max_eq_left (ENNReal.inv_le_inv.mpr hxy),ENNReal.toReal_inv] + exact hxa + · rw [max_eq_right (ENNReal.inv_le_inv.mpr (le_of_not_ge hxy)),ENNReal.toReal_inv] + exact hyb + +theorem compressionBudget_le_of_rescaled_curvature {K R : ℝ} {n : ℕ} + (hn : 2 ≤ n) (hK : K ≤ 0) (hcurv : -1 ≤ K*(4*R)^2) + (C : ℝ≥0∞) : + (compressionBudget K n (2*R) C).toReal ≤ Real.exp (n:ℝ)*C.toReal := by + have hn1 : 1 ≤ (n:ℝ)-1 := by + have hh : (2:ℝ) ≤ n := by exact_mod_cast hn + linarith + have hn1pos : 0 < (n:ℝ)-1 := lt_of_lt_of_le zero_lt_one hn1 + have hKbound : |K| * (4*R)^2 ≤ 1 := by rw [abs_of_nonpos hK]; nlinarith + have hs : (4*R*Real.sqrt (|K|/((n:ℝ)-1)))^2 ≤ 1 := by + rw [mul_pow,Real.sq_sqrt (div_nonneg (abs_nonneg K) hn1pos.le)] + have heq : (4*R)^2*(|K|/((n:ℝ)-1)) = (|K| * (4*R)^2)/((n:ℝ)-1) := by ring + rw [heq] + exact (div_le_one hn1pos).mpr (hKbound.trans hn1) + have hroot : 4*R*Real.sqrt (|K|/((n:ℝ)-1)) ≤ 1 := by nlinarith + have hexp : Real.exp ((n:ℝ)*(4*R)*Real.sqrt (|K|/((n:ℝ)-1))) ≤ + Real.exp (n:ℝ) := by + apply Real.exp_le_exp.mpr + have hh := mul_le_mul_of_nonneg_left hroot (Nat.cast_nonneg n : (0:ℝ)≤n) + nlinarith only [hh] + simp only [compressionBudget,compressionStep,ENNReal.toReal_mul, + ENNReal.toReal_ofReal (Real.exp_pos _).le] + have heq : (2:ℝ)*(2*R)=4*R := by ring + rw [heq] + exact mul_le_mul_of_nonneg_right hexp ENNReal.toReal_nonneg + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/NoResolvedBranchWindow.lean b/lean/OAI/Geometry/RCD/Transport/NoResolvedBranchWindow.lean new file mode 100644 index 0000000000000000000000000000000000000000..7e2696635fa6a9cef7eb336131526896fe9c16cf --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/NoResolvedBranchWindow.lean @@ -0,0 +1,72 @@ +import OAI.Geometry.RCD.Transport.PairedEntropyDeficit +import OAI.Geometry.RCD.Transport.ResolvedBranchSelection +import OAI.Geometry.RCD.Transport.BranchMeshObstruction + +namespace OAI + +/-! # No positive resolved branch window in a compressed optimal RCD plan -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped ENNReal NNReal Topology +noncomputable section +namespace RegularPointCoordinates.NoncollapsedRCD +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] [SeparableSpace X] {K : ℝ} {n : ℕ} + [IsLocallyFiniteMeasure (hausdorff n X)] (hX : NoncollapsedRCD K n X) +include hX +attribute [local instance] pathBorel pathBorelSpace + +theorem no_resolved_branch_window (hn : 2 ≤ n) (p : X) {R : ℝ} (hR : 0 ≤ R) + (π : Measure C(Time,X)) [IsProbabilityMeasure π] (hg : ∀ᵐ γ ∂π, IsGeodesic γ) + (hp : IsOptimalCoupling (π.map (fun γ => γ 0)) (π.map (fun γ => γ 1)) + (π.map (fun γ => (γ 0,γ 1)))) + {C : ℝ≥0} (hC : 0 < C) + (hc : ∀ t : Time, π.map (fun γ => γ t) ≤ ENNReal.ofReal C • hausdorff n X) + (hs₀ : ∀ᵐ x ∂π.map (fun γ => γ 0), dist x p ≤ R) + (hs₁ : ∀ᵐ x ∂π.map (fun γ => γ 1), dist x p ≤ R) + (σ : Measure (C(Time,X)×C(Time,X))) [IsFiniteMeasure σ] (hσ : σ univ ≠ 0) + (hl : σ.map Prod.fst ≤ π) (hr : σ.map Prod.snd ≤ π) + (T S q : Time) (hT : 0 < T) (hTS : T < S) (hS : S < 1) (hSq : S ≤ q) + (h0 : ∀ᵐ z ∂σ, z.1 0=z.2 0) + (hroot : ∀ᵐ z ∂σ, (T:ℝ) ≤ (lastPathAgreement q z:ℝ) ∧ + (lastPathAgreement q z:ℝ) < (S:ℝ)) : False := by + let c := σ.real univ/(5*((S:ℝ)-(T:ℝ))) + have hmass : 0 < σ.real univ := ENNReal.toReal_pos hσ (measure_ne_top _ _) + have hST : 0 < (S:ℝ)-(T:ℝ) := sub_pos.mpr hTS + have hc0 : 0 < c := div_pos hmass (mul_pos (by norm_num) hST) + have hA : 0 ≤ (|K|/2)*(2*R)^2 := mul_nonneg (div_nonneg (abs_nonneg K) (by norm_num)) (sq_nonneg _) + obtain ⟨N,hN,hob⟩ := exists_branch_mesh_obstruction + (show (0:ℝ) < T from hT) (show (S:ℝ) < 1 from hS) + (show (T:ℝ) < S from hTS) hc0 (show (0:ℝ) < C from hC) hA + (B := -Real.log ((hausdorff n X).real (closedBall p (3*R)))) + obtain ⟨s,t,κ,hTs,hst,htS,hstep,hκ,hκmass,hcommon,hsing⟩ := + select_resolved_branches σ hσ T S q hTS.le hSq h0 hroot hN + let : IsFiniteMeasure κ := isFiniteMeasure_of_le σ hκ + have hκpos : 0 < κ.real univ := lt_trans (div_pos hmass (by positivity)) hκmass + have hκ0 : κ univ ≠ 0 := by + intro he + have hz : κ.real univ=0 := by simp only [Measure.real,he,ENNReal.toReal_zero] + linarith + have hst' : s < t := by + change (s:ℝ) < (t:ℝ) + have hstep0 : 0 < (t:ℝ)-(s:ℝ) := by rw [hstep]; exact div_pos hST (Nat.cast_pos.mpr hN) + linarith + have hle0 : κ.map Prod.fst ≤ π := (Measure.map_mono hκ measurable_fst).trans hl + have hle1 : κ.map Prod.snd ≤ π := (Measure.map_mono hκ measurable_snd).trans hr + have hdef := hX.paired_entropy_deficit hn p hR π hg hp hC hc hs₀ hs₁ κ hκ0 hle0 hle1 q s t + (hT.trans_le hTs) hst' (htS.trans_lt hS) hcommon hsing + have hcm : c*(((S:ℝ)-(T:ℝ))/(N:ℝ)) ≤ κ.real univ := by + have he : c*(((S:ℝ)-(T:ℝ))/(N:ℝ))=σ.real univ/(5*(N:ℝ)) := by + dsimp only [c] + field_simp + rw [he] + exact hκmass.le + apply hob (s:ℝ) (κ.real univ) hTs (hst.trans htS) hcm + rw [hstep] at hdef + simpa only [sub_neg_eq_add] using hdef + +end RegularPointCoordinates.NoncollapsedRCD + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/ObservableSubplanDensity.lean b/lean/OAI/Geometry/RCD/Transport/ObservableSubplanDensity.lean new file mode 100644 index 0000000000000000000000000000000000000000..cefa08719db87429b2342cc170eef1e5e2dc791b --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/ObservableSubplanDensity.lean @@ -0,0 +1,32 @@ +import OAI.Geometry.RCD.Transport.ObservableSubplans +import Mathlib.MeasureTheory.Measure.Decomposition.RadonNikodym + +namespace OAI + +/-! # A subplan retains the original density along an invertible observable -/ + +open Set Filter MeasureTheory +noncomputable section +namespace RegularPointCoordinates +variable {A B : Type*} [MeasurableSpace A] [MeasurableSpace B] + +theorem rnDeriv_restricted_map_ae (π : Measure A) [IsFiniteMeasure π] + (μ : Measure B) [SigmaFinite μ] {f : A → B} {g : B → A} + (hf : Measurable f) (hg : Measurable g) (hinv : ∀ᵐ a ∂π, g (f a)=a) + (hac : π.map f ≪ μ) {S : Set A} (hS : MeasurableSet S) : + ∀ᵐ a ∂π.restrict S, ((π.restrict S).map f).rnDeriv μ (f a)=(π.map f).rnDeriv μ (f a) := by + have hE := hS.preimage hg + have hr := Measure.rnDeriv_restrict (π.map f) μ hE + rw [←restrict_map_of_ae_left_inverse π hf hg hinv hS] at hr + have hsub : (π.restrict S).map f ≪ μ := + (Measure.map_mono Measure.restrict_le_self hf).absolutelyContinuous.trans hac + have hpull := ae_of_ae_map (μ:=π.restrict S) hf.aemeasurable (hr.filter_mono hsub.ae_le) + filter_upwards [hpull,hinv.filter_mono Measure.restrict_le_self.absolutelyContinuous.ae_le, + ae_restrict_mem hS] with a ha hi hs + simpa only [indicator_of_mem (show f a ∈ g ⁻¹' S by simpa only [mem_preimage,hi] using hs)] using ha + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/ObservableSubplans.lean b/lean/OAI/Geometry/RCD/Transport/ObservableSubplans.lean new file mode 100644 index 0000000000000000000000000000000000000000..0972d66533681610f9739d44be3445c6339030ed --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/ObservableSubplans.lean @@ -0,0 +1,61 @@ +import Mathlib.MeasureTheory.Measure.Map +import Mathlib.MeasureTheory.Measure.MutuallySingular + +namespace OAI + +/-! # An observable with a measurable inverse retains measurable subplans -/ + +open Set Filter MeasureTheory +noncomputable section +namespace RegularPointCoordinates +variable {A B : Type*} [MeasurableSpace A] [MeasurableSpace B] + +theorem restrict_map_of_ae_left_inverse (μ : Measure A) {f : A → B} {g : B → A} + (hf : Measurable f) (hg : Measurable g) (hinv : ∀ᵐ a ∂μ, g (f a)=a) + {S : Set A} (hS : MeasurableSet S) : + (μ.restrict S).map f=(μ.map f).restrict (g ⁻¹' S) := by + rw [Measure.restrict_map hf (hS.preimage hg)] + congr 1 + apply Measure.restrict_congr_set + filter_upwards [hinv] with a ha + change (a ∈ S)=(g (f a) ∈ S) + rw [ha] + +theorem mapped_restrictions_mutuallySingular (μ : Measure A) {f : A → B} {g : B → A} + (hf : Measurable f) (hg : Measurable g) (hinv : ∀ᵐ a ∂μ, g (f a)=a) + {S : Set A} (hS : MeasurableSet S) : + (μ.restrict S).map f ⟂ₘ (μ.restrict Sᶜ).map f := by + rw [restrict_map_of_ae_left_inverse μ hf hg hinv hS, + restrict_map_of_ae_left_inverse μ hf hg hinv hS.compl,preimage_compl] + refine ⟨(g ⁻¹' S)ᶜ,(hS.preimage hg).compl,?_,?_⟩ + · rw [Measure.restrict_apply (hS.preimage hg).compl,compl_inter_self,measure_empty] + · rw [compl_compl,Measure.restrict_apply (hS.preimage hg),inter_compl_self,measure_empty] + +theorem mutuallySingular_map_of_ae_left_inverse (μ ν ρ : Measure A) + {f : A → B} {g : B → A} (hf : Measurable f) (hg : Measurable g) + (hinv : ∀ᵐ a ∂μ, g (f a)=a) (hν : ν ≪ μ) (hρ : ρ ≪ μ) + (hs : ν ⟂ₘ ρ) : ν.map f ⟂ₘ ρ.map f := by + obtain ⟨S,hS,hνS,hρS⟩ := hs + refine ⟨g ⁻¹' S,hS.preimage hg,?_,?_⟩ + · rw [Measure.map_apply hf (hS.preimage hg)] + calc + ν (f ⁻¹' (g ⁻¹' S)) = ν S := by + apply measure_congr + filter_upwards [hinv.filter_mono hν.ae_le] with a ha + change (g (f a) ∈ S)=(a ∈ S) + rw [ha] + _ = 0 := hνS + · rw [←preimage_compl,Measure.map_apply hf (hS.compl.preimage hg)] + calc + ρ (f ⁻¹' (g ⁻¹' Sᶜ)) = ρ Sᶜ := by + apply measure_congr + filter_upwards [hinv.filter_mono hρ.ae_le] with a ha + change (g (f a) ∈ Sᶜ)=(a ∈ Sᶜ) + rw [ha] + _ = 0 := hρS + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/OptimalAveragePlan.lean b/lean/OAI/Geometry/RCD/Transport/OptimalAveragePlan.lean new file mode 100644 index 0000000000000000000000000000000000000000..a035e2315017c140d28a8df214eba2d64ffb180d --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/OptimalAveragePlan.lean @@ -0,0 +1,67 @@ +import OAI.Geometry.RCD.Transport.OptimalCommonContactSet +import OAI.Analysis.RCDHeat.KantorovichRadius + +namespace OAI + +/-! # A common optimal plan dominating two prescribed optimizers -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped ENNReal Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem optimalPlan_average {ν₀ ν₁ : Measure X} + (π ρ : Measure C(Time,X)) [IsProbabilityMeasure π] [IsProbabilityMeasure ρ] + (hgπ : ∀ᵐ γ ∂π, IsGeodesic γ) (hgρ : ∀ᵐ γ ∂ρ, IsGeodesic γ) + (hpπ : IsOptimalCoupling ν₀ ν₁ (π.map (fun γ => (γ 0,γ 1)))) + (hpρ : IsOptimalCoupling ν₀ ν₁ (ρ.map (fun γ => (γ 0,γ 1)))) : + ∃ τ : Measure C(Time,X), IsProbabilityMeasure τ ∧ + (∀ᵐ γ ∂τ, IsGeodesic γ) ∧ + IsOptimalCoupling ν₀ ν₁ (τ.map (fun γ => (γ 0,γ 1))) ∧ π ≪ τ ∧ ρ ≪ τ := by + let c : ℝ≥0∞ := ENNReal.ofReal (1/2) + have hc0 : c≠0 := by norm_num [c] + have hcc : c+c=1 := by + dsimp only [c] + rw [←ENNReal.ofReal_add (by norm_num) (by norm_num)] + norm_num + let τ := c • π+c • ρ + have hπac : π ≪ τ := (Measure.absolutelyContinuous_smul hc0).trans + (show c • π≤τ from Measure.le_add_right le_rfl).absolutelyContinuous + have hρac : ρ ≪ τ := (Measure.absolutelyContinuous_smul hc0).trans + (show c • ρ≤τ from Measure.le_add_left le_rfl).absolutelyContinuous + have hτ : IsProbabilityMeasure τ := ⟨by + change c*π univ+c*ρ univ=1 + simp only [measure_univ,mul_one,hcc]⟩ + have hm : Measurable (fun γ : C(Time,X) => (γ 0,γ 1)) := + (measurable_path_eval 0).prodMk (measurable_path_eval 1) + have hmap : τ.map (fun γ => (γ 0,γ 1))= + c • π.map (fun γ => (γ 0,γ 1))+c • ρ.map (fun γ => (γ 0,γ 1)) := by + dsimp only [τ] + rw [Measure.map_add _ _ hm,Measure.map_smul _ hm.aemeasurable,Measure.map_smul _ hm.aemeasurable] + have heq (ν : Measure X) : c • ν+c • ν=ν := by rw [←add_smul,hcc,one_smul] + have hp : IsOptimalCoupling ν₀ ν₁ (τ.map (fun γ => (γ 0,γ 1))) := by + rw [hmap] + refine ⟨?_,?_,?_⟩ + · rw [Measure.map_add _ _ measurable_fst,Measure.map_smul _ measurable_fst.aemeasurable, + Measure.map_smul _ measurable_fst.aemeasurable,hpπ.1,hpρ.1,heq] + · rw [Measure.map_add _ _ measurable_snd,Measure.map_smul _ measurable_snd.aemeasurable, + Measure.map_smul _ measurable_snd.aemeasurable,hpπ.2.1,hpρ.2.1,heq] + · intro η hη0 hη1 + rw [transportCost_add,transportCost_smul,transportCost_smul] + calc + _ ≤ c*transportCost η+c*transportCost η := + add_le_add (mul_le_mul' le_rfl (hpπ.2.2 η hη0 hη1)) + (mul_le_mul' le_rfl (hpρ.2.2 η hη0 hη1)) + _ = _ := by rw [←add_mul,hcc,one_mul] + refine ⟨τ,hτ,?_,hp,hπac,hρac⟩ + apply ae_add_measure_iff.mpr + exact ⟨hgπ.filter_mono Measure.smul_absolutelyContinuous.ae_le, + hgρ.filter_mono Measure.smul_absolutelyContinuous.ae_le⟩ + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/OptimalCommonContactSet.lean b/lean/OAI/Geometry/RCD/Transport/OptimalCommonContactSet.lean new file mode 100644 index 0000000000000000000000000000000000000000..2d06d997e72009a9d81e4196ec7a306eeea03dd0 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/OptimalCommonContactSet.lean @@ -0,0 +1,97 @@ +import OAI.Geometry.RCD.Transport.OptimalLengthLocalization + +namespace OAI + +/-! # One contact set for all optimal plans with fixed endpoints + +The same optimal dual pair contacts every optimal coupling. Consequently +the compact set used for length localization can be fixed before replacing +or refining any segment of a plan. +-/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped Topology ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem optimalPlan_contact_transfer [SeparableSpace X] {ν₀ ν₁ : Measure X} + {π σ : Measure C(Time,X)} [IsProbabilityMeasure π] [IsProbabilityMeasure σ] + (hp : IsOptimalCoupling ν₀ ν₁ (π.map (fun γ => (γ 0,γ 1)))) + (hs : IsOptimalCoupling ν₀ ν₁ (σ.map (fun γ => (γ 0,γ 1)))) + (hdiπ : Integrable (fun γ : C(Time,X) => dist (γ 0) (γ 1)^2) π) + (hdiσ : Integrable (fun γ : C(Time,X) => dist (γ 0) (γ 1)^2) σ) + {φ ψ : X → ℝ} (hφ : Integrable φ ν₀) (hψ : Integrable ψ ν₁) + (had : ∀ x y, φ x+ψ y ≤ dist x y^2/2) + (hcontact : ∀ᵐ γ ∂π, φ (γ 0)+ψ (γ 1)=dist (γ 0) (γ 1)^2/2) : + ∀ᵐ γ ∂σ, φ (γ 0)+ψ (γ 1)=dist (γ 0) (γ 1)^2/2 := by + have he := optimalPlan_endpoints ν₀ ν₁ σ hs + have hiφ : Integrable (fun γ : C(Time,X) => φ (γ 0)) σ := + Integrable.comp_measurable (he.1.symm ▸ hφ) (measurable_path_eval 0) + have hiψ : Integrable (fun γ : C(Time,X) => ψ (γ 1)) σ := + Integrable.comp_measurable (he.2.symm ▸ hψ) (measurable_path_eval 1) + have hsum : Integrable (fun γ : C(Time,X) => φ (γ 0)+ψ (γ 1)) σ := hiφ.add hiψ + have hid := (hdiσ.div_const 2).sub hsum + have hnonneg : ∀ γ : C(Time,X), 0 ≤ dist (γ 0) (γ 1)^2/2-(φ (γ 0)+ψ (γ 1)) := + fun γ => sub_nonneg.mpr (had (γ 0) (γ 1)) + have hcost := optimal_plan_cost_real hs hdiσ + have hdual := optimal_plan_dual_eq hp hdiπ hφ hψ hcontact + have hint : (∫ γ, dist (γ 0) (γ 1)^2/2-(φ (γ 0)+ψ (γ 1)) ∂σ)=0 := by + rw [integral_sub (hdiσ.div_const 2) hsum,integral_add hiφ hiψ,integral_div] + rw [←integral_map (measurable_path_eval 0).aemeasurable + (he.1.symm ▸ hφ.aestronglyMeasurable), + ←integral_map (measurable_path_eval 1).aemeasurable + (he.2.symm ▸ hψ.aestronglyMeasurable),he.1,he.2] + rw [hdual,←hcost,sub_self] + have hz := (integral_eq_zero_iff_of_nonneg hnonneg hid).mp hint + filter_upwards [hz] with γ hγ + exact (sub_eq_zero.mp hγ).symm + +theorem NoncollapsedRCD.common_optimal_length_set + (K : ℝ) (n : ℕ) (hn : 2 ≤ n) (hX : NoncollapsedRCD K n X) + (ν₀ ν₁ : Measure X) [IsProbabilityMeasure ν₀] [IsProbabilityMeasure ν₁] + (hac : ν₀ ≪ hausdorff n X) (p : X) {R : ℝ} (hR : 0 ≤ R) + (hs0 : ∀ᵐ x ∂ν₀, dist x p ≤ R) (hs1 : ∀ᵐ x ∂ν₁, dist x p ≤ R) + (π : Measure C(Time,X)) [IsProbabilityMeasure π] (_hg : ∀ᵐ γ ∂π, IsGeodesic γ) + (hp : IsOptimalCoupling ν₀ ν₁ (π.map (fun γ => (γ 0,γ 1)))) : + ∃ E : Set C(Time,X), IsCompact E ∧ + (∀ σ : Measure C(Time,X), IsProbabilityMeasure σ → + (∀ᵐ γ ∂σ, IsGeodesic γ) → IsOptimalCoupling ν₀ ν₁ (σ.map (fun γ => (γ 0,γ 1))) → + ∀ᵐ γ ∂σ, γ∈E) ∧ + ∀ γ∈E, ∀ ζ∈E, ∀ t : Time, 0 < (t:ℝ) → (t:ℝ) < 1 → γ t=ζ t → + dist (γ 0) (γ 1)=dist (ζ 0) (ζ 1) := by + let : ProperSpace X := hX.proper K n hn + let : SeparableSpace X := hX.separable + let μ := hausdorff n X + let : IsLocallyFiniteMeasure μ := locallyFinite_of_finiteOnBounded μ hX.finiteOnBounded + obtain ⟨u,φ,ψ,L,hφ,hψ,hsφ,hsψ,_,had,hcontact,_⟩ := hp.bounded_sobolev_potential + μ hX.quadratic hX.geodesic ν₀ ν₁ hac p hR hs0 hs1 + have hcae : ∀ᵐ γ ∂π, φ (γ 0)+ψ (γ 1)=dist (γ 0) (γ 1)^2/2 := + ae_of_ae_map ((measurable_path_eval 0).prodMk (measurable_path_eval 1)).aemeasurable hcontact + have hip := optimalPlan_dist_sq_integrable ν₀ ν₁ π hp p + (integrable_dist_sq_of_ae_bounded ν₀ p hs0) (integrable_dist_sq_of_ae_bounded ν₁ p hs1) + let G := {γ : C(Time,X) | IsGeodesic γ ∧ ∀ t, dist (γ t) p ≤ 3*R} + let F := {γ : C(Time,X) | φ (γ 0)+ψ (γ 1)=dist (γ 0) (γ 1)^2/2} + have hG : IsCompact G := isCompact_bounded_geodesics p (by positivity) + have hF : IsClosed F := isClosed_eq + ((hφ.continuous.comp (continuous_eval_const 0)).add + (hψ.continuous.comp (continuous_eval_const 1))) + ((((continuous_eval_const 0).dist (continuous_eval_const 1)).pow 2).div_const 2) + refine ⟨G∩F,hG.inter_right hF,?_,?_⟩ + · intro σ hσ hgeo hopt + let := hσ + have his := optimalPlan_dist_sq_integrable ν₀ ν₁ σ hopt p + (integrable_dist_sq_of_ae_bounded ν₀ p hs0) (integrable_dist_sq_of_ae_bounded ν₁ p hs1) + have hscontact := optimalPlan_contact_transfer hp hopt hip his + (hφ.continuous.integrable_of_hasCompactSupport hsφ) + (hψ.continuous.integrable_of_hasCompactSupport hsψ) had hcae + exact (optimal_geodesic_plan_bounded ν₀ ν₁ σ hgeo hopt p hR hs0 hs1).and hscontact + · intro γ hγ ζ hζ t ht0 ht1 hm + exact contacting_geodesics_equal_length had hγ.1.1 hζ.1.1 hγ.2 hζ.2 ht0 ht1 hm + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/OptimalComponentSeparation.lean b/lean/OAI/Geometry/RCD/Transport/OptimalComponentSeparation.lean new file mode 100644 index 0000000000000000000000000000000000000000..9941259d904d8e3bc50e059171c019672a303573 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/OptimalComponentSeparation.lean @@ -0,0 +1,64 @@ +import OAI.Geometry.RCD.Transport.OptimalSubmeasureLength + +namespace OAI + +/-! # Spatial separation of arbitrary length-labelled subcomponents -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped Topology ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem length_labelled_marginals_mutuallySingular + (η ζ : Measure C(Time,X)) (t : Time) (L : C(X,ℝ)) + (hLη : ∀ᵐ γ ∂η, L (γ t)=dist (γ 0) (γ 1)) + (hLζ : ∀ᵐ γ ∂ζ, L (γ t)=dist (γ 0) (γ 1)) + {S : Set ℝ} (hS : MeasurableSet S) + (hη : ∀ᵐ γ ∂η, dist (γ 0) (γ 1)∈S) + (hζ : ∀ᵐ γ ∂ζ, dist (γ 0) (γ 1)∉S) : + η.map (fun γ => γ t) ⟂ₘ ζ.map (fun γ => γ t) := by + have hη' : ∀ᵐ x ∂η.map (fun γ => γ t), x∈L ⁻¹' S := by + apply (ae_map_iff (measurable_path_eval t).aemeasurable + (hS.preimage L.continuous.measurable)).mpr + filter_upwards [hLη,hη] with γ hγ hγS + change L (γ t)∈S + rwa [hγ] + have hζ' : ∀ᵐ x ∂ζ.map (fun γ => γ t), x∉L ⁻¹' S := by + apply (ae_map_iff (measurable_path_eval t).aemeasurable + (hS.preimage L.continuous.measurable).compl).mpr + filter_upwards [hLζ,hζ] with γ hγ hγS + change L (γ t)∉S + rwa [hγ] + refine ⟨(L ⁻¹' S)ᶜ,(hS.preimage L.continuous.measurable).compl,?_,?_⟩ + · exact ae_iff.mp hη' + · rw [compl_compl] + simpa only [not_not,Set.ofPred_mem_eq] using ae_iff.mp hζ' + +theorem NoncollapsedRCD.optimal_components_mutuallySingular + (K : ℝ) (n : ℕ) (hn : 2≤n) (hX : NoncollapsedRCD K n X) + (ν₀ ν₁ : Measure X) [IsProbabilityMeasure ν₀] [IsProbabilityMeasure ν₁] + (hac : ν₀ ≪ hausdorff n X) (p : X) {R : ℝ} (hR : 0≤R) + (hs0 : ∀ᵐ x ∂ν₀, dist x p≤R) (hs1 : ∀ᵐ x ∂ν₁, dist x p≤R) + (π ρ : Measure C(Time,X)) [IsProbabilityMeasure π] [IsProbabilityMeasure ρ] + (hgπ : ∀ᵐ γ ∂π, IsGeodesic γ) (hgρ : ∀ᵐ γ ∂ρ, IsGeodesic γ) + (hpπ : IsOptimalCoupling ν₀ ν₁ (π.map (fun γ => (γ 0,γ 1)))) + (hpρ : IsOptimalCoupling ν₀ ν₁ (ρ.map (fun γ => (γ 0,γ 1)))) + (η ζ : Measure C(Time,X)) (hη : η≤π) (hζ : ζ≤ρ) + {t : Time} (ht0 : 0<(t:ℝ)) (ht1 : (t:ℝ)<1) + {S : Set ℝ} (hS : MeasurableSet S) + (hηS : ∀ᵐ γ ∂η, dist (γ 0) (γ 1)∈S) + (hζS : ∀ᵐ γ ∂ζ, dist (γ 0) (γ 1)∉S) : + η.map (fun γ => γ t) ⟂ₘ ζ.map (fun γ => γ t) := by + obtain ⟨L,hL⟩ := hX.common_optimal_length_observable K n hn ν₀ ν₁ hac p hR hs0 hs1 + π hgπ hpπ ht0 ht1 + exact length_labelled_marginals_mutuallySingular η ζ t L + ((hL π inferInstance hgπ hpπ).filter_mono hη.absolutelyContinuous.ae_le) + ((hL ρ inferInstance hgρ hpρ).filter_mono hζ.absolutelyContinuous.ae_le) hS hηS hζS + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/OptimalDualSaturation.lean b/lean/OAI/Geometry/RCD/Transport/OptimalDualSaturation.lean new file mode 100644 index 0000000000000000000000000000000000000000..808fe191833cdab5041d7c3872dd7e4e09e5d0cf --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/OptimalDualSaturation.lean @@ -0,0 +1,57 @@ +import OAI.Geometry.RCD.Transport.CompactDualCost + +namespace OAI + +/-! # Every cost-minimizing coupling saturates the same dual pair -/ + +open Set Filter MeasureTheory +noncomputable section +namespace RegularPointCoordinates +variable {X Y : Type*} [MetricSpace X] [MetricSpace Y] + [MeasurableSpace X] [MeasurableSpace Y] [BorelSpace X] [BorelSpace Y] + [CompactSpace X] [CompactSpace Y] [SecondCountableTopology Y] + (μ : Measure X) (ν : Measure Y) [IsProbabilityMeasure μ] + +theorem compact_dual_saturation_of_cost_le (Q P : Measure (X × Y)) + (hQl : Q.map Prod.fst=μ) (hQr : Q.map Prod.snd=ν) + (hPl : P.map Prod.fst=μ) (hPr : P.map Prod.snd=ν) + (f : C(X,ℝ)) (g : C(Y,ℝ)) (cost : C(X × Y,ℝ)) (c : ℝ) + (hdual : ∀ x y, y ∈ ν.support → f x+g y+c ≤ cost (x,y)) + (heq : ∀ᵐ z ∂Q, f z.1+g z.2+c=cost z) + (hcost : (∫ z, cost z ∂P) ≤ ∫ z, cost z ∂Q) : + ∀ᵐ z ∂P, f z.1+g z.2+c=cost z := by + let : IsProbabilityMeasure (P.map Prod.fst) := by rw [hPl]; infer_instance + let : IsProbabilityMeasure P := Measure.isProbabilityMeasure_of_map measurable_fst.aemeasurable + let pot : C(X × Y,ℝ) := ⟨fun z => f z.1+g z.2+c,by fun_prop⟩ + have hQi : (∫ z, cost z ∂Q)=(∫ x, f x ∂μ)+(∫ y, g y ∂ν)+c := by + calc + _ = ∫ z, f z.1+g z.2+c ∂Q := integral_congr_ae (by + filter_upwards [heq] with z hz + exact hz.symm) + _ = _ := coupling_potential_integral μ ν Q hQl hQr f g c + have hPi : (∫ z, pot z ∂P)=(∫ x, f x ∂μ)+(∫ y, g y ∂ν)+c := + coupling_potential_integral μ ν P hPl hPr f g c + have hi : Integrable cost P := cost.continuous.integrable_of_hasCompactSupport + (HasCompactSupport.of_compactSpace _) + have hp : Integrable pot P := pot.continuous.integrable_of_hasCompactSupport + (HasCompactSupport.of_compactSpace _) + have hnonneg : ∀ᵐ z ∂P, 0 ≤ cost z-pot z := by + filter_upwards [coupling_snd_support (ν := ν) (π := P) hPr] with z hz + exact sub_nonneg.mpr (hdual z.1 z.2 hz) + have hzero : (∫ z, cost z-pot z ∂P)=0 := by + apply le_antisymm + · rw [integral_sub (f := fun z : X × Y => cost z) (g := fun z : X × Y => pot z) hi hp,hPi] + rw [hQi] at hcost + linarith + · exact integral_nonneg_of_ae hnonneg + have hh := (integral_eq_zero_iff_of_nonneg_ae hnonneg (hi.sub hp)).mp hzero + filter_upwards [hh] with z hz + change cost z-pot z=0 at hz + change pot z=cost z + linarith + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/OptimalExactSplice.lean b/lean/OAI/Geometry/RCD/Transport/OptimalExactSplice.lean new file mode 100644 index 0000000000000000000000000000000000000000..890235b7699cac8c79cd7a5a6b496b1357bac1da --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/OptimalExactSplice.lean @@ -0,0 +1,63 @@ +import OAI.Geometry.RCD.Transport.OptimalMidpointSplice + +namespace OAI + +/-! # Exact path laws of an optimal midpoint splice + +The gluing construction retains each entire half-path law. This lets +geometric length bounds pass to a replacement, beyond its one-time marginals. +-/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped Topology ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [SeparableSpace X] [CompleteSpace X] [Nonempty X] +attribute [local instance] pathBorel pathBorelSpace + +omit [MeasurableSpace X] [BorelSpace X] [SeparableSpace X] [CompleteSpace X] [Nonempty X] in +theorem joinMatched_subpath_left (z : MatchedPaths X) : + subpath 0 midpointTime (joinMatched z)=z.val.1 := by + ext t + exact joinMatched_lowerTime z t + +omit [MeasurableSpace X] [BorelSpace X] [SeparableSpace X] [CompleteSpace X] [Nonempty X] in +theorem joinMatched_subpath_right (z : MatchedPaths X) : + subpath midpointTime 1 (joinMatched z)=z.val.2 := by + ext t + exact joinMatched_upperTime z t + +theorem exists_optimal_midpoint_splice_exact + (π : Measure C(Time,X)) [IsProbabilityMeasure π] + (hg : ∀ᵐ γ ∂π, IsGeodesic γ) + (hp : IsOptimalCoupling (π.map (fun γ => γ 0)) (π.map (fun γ => γ 1)) + (π.map (fun γ => (γ 0,γ 1)))) + (hfin : transportCost (π.map (fun γ => (γ 0,γ 1)))≠∞) + (q₀ q₁ : Measure C(Time,X)) [IsProbabilityMeasure q₀] [IsProbabilityMeasure q₁] + (hg₀ : ∀ᵐ γ ∂q₀, IsGeodesic γ) (hg₁ : ∀ᵐ γ ∂q₁, IsGeodesic γ) + (hp₀ : IsOptimalCoupling (π.map (fun γ => γ 0)) (π.map (fun γ => γ midpointTime)) + (q₀.map (fun γ => (γ 0,γ 1)))) + (hp₁ : IsOptimalCoupling (π.map (fun γ => γ midpointTime)) (π.map (fun γ => γ 1)) + (q₁.map (fun γ => (γ 0,γ 1)))) : + ∃ τ : Measure C(Time,X), IsProbabilityMeasure τ ∧ + (∀ᵐ γ ∂τ, IsGeodesic γ) ∧ + IsOptimalCoupling (π.map (fun γ => γ 0)) (π.map (fun γ => γ 1)) + (τ.map (fun γ => (γ 0,γ 1))) ∧ + τ.map (subpath 0 midpointTime)=q₀ ∧ τ.map (subpath midpointTime 1)=q₁ := by + have he₀ := optimalPlan_endpoints _ _ q₀ hp₀ + have he₁ := optimalPlan_endpoints _ _ q₁ hp₁ + obtain ⟨ρ,hρ,hρ₀,hρ₁⟩ := exists_matched_path_law q₀ q₁ (he₀.2.trans he₁.1.symm) + let := hρ + obtain ⟨hpτ,hgτ,_⟩ := midpoint_matched_law_optimal π hg hp hfin q₀ q₁ hg₀ hg₁ hp₀ hp₁ ρ hρ₀ hρ₁ + refine ⟨ρ.map joinMatched,inferInstance,hgτ,hpτ,?_,?_⟩ + · rw [Measure.map_map (subpath_measurable 0 midpointTime) joinMatched_continuous.measurable] + simpa only [Function.comp_def,joinMatched_subpath_left] using hρ₀ + · rw [Measure.map_map (subpath_measurable midpointTime 1) joinMatched_continuous.measurable] + simpa only [Function.comp_def,joinMatched_subpath_right] using hρ₁ + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/OptimalGeodesicLengths.lean b/lean/OAI/Geometry/RCD/Transport/OptimalGeodesicLengths.lean new file mode 100644 index 0000000000000000000000000000000000000000..9628697a47a31033d418e7666669b4873a1fa569 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/OptimalGeodesicLengths.lean @@ -0,0 +1,102 @@ +import OAI.Geometry.RCD.Transport.RenyiMidpointCompression + +namespace OAI + +/-! # Length localization of optimal geodesics + +Two contacting quadratic-cost geodesics which meet at an interior time +have the same total length. A bounded RCD optimal plan therefore has a +compact full-measure set on which length is constant on every interior +evaluation fiber. This is the localization in Rajala, arXiv:1202.6514, +Lemma 2.6. +-/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped Topology ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] + +theorem equal_lengths_of_cross_cost {a b c d t : ℝ} + (_ha : 0 ≤ a) (_hb : 0 ≤ b) (hc : 0 ≤ c) (hd : 0 ≤ d) + (ht0 : 0 < t) (ht1 : t < 1) + (hcost : a^2+b^2 ≤ c^2+d^2) + (hcross0 : c ≤ t*a+(1-t)*b) (hcross1 : d ≤ t*b+(1-t)*a) : a=b := by + have h0 := pow_le_pow_left₀ hc hcross0 2 + have h1 := pow_le_pow_left₀ hd hcross1 2 + have he : (t*a+(1-t)*b)^2+(t*b+(1-t)*a)^2-(a^2+b^2) = + -(2*t*(1-t)*(a-b)^2) := by ring + have hz : 2*t*(1-t)*(a-b)^2 ≤ 0 := by linarith + have hp : 0 < 2*t*(1-t) := by positivity + have hs : (a-b)^2 ≤ 0 := le_of_not_gt fun hs => (not_lt_of_ge hz) (mul_pos hp hs) + nlinarith [sq_nonneg (a-b)] + +theorem contacting_geodesics_equal_length {φ ψ : X → ℝ} + (had : ∀ x y, φ x+ψ y ≤ dist x y^2/2) + {γ ζ : C(Time,X)} (hg : IsGeodesic γ) (hz : IsGeodesic ζ) + (hγ : φ (γ 0)+ψ (γ 1)=dist (γ 0) (γ 1)^2/2) + (hζ : φ (ζ 0)+ψ (ζ 1)=dist (ζ 0) (ζ 1)^2/2) + {t : Time} (ht0 : 0 < (t:ℝ)) (ht1 : (t:ℝ) < 1) (hmeet : γ t=ζ t) : + dist (γ 0) (γ 1)=dist (ζ 0) (ζ 1) := by + have hcross0 : dist (γ 0) (ζ 1) ≤ (t:ℝ)*dist (γ 0) (γ 1)+(1-(t:ℝ))*dist (ζ 0) (ζ 1) := by + calc + _ ≤ dist (γ 0) (γ t)+dist (γ t) (ζ 1) := dist_triangle _ _ _ + _ = _ := by + rw [hg 0 t,hmeet,hz t 1] + change |(0:ℝ)-(t:ℝ)| *dist (γ 0) (γ 1)+|(t:ℝ)-1| *dist (ζ 0) (ζ 1) = _ + rw [zero_sub,abs_neg,abs_of_pos ht0] + rw [abs_of_nonpos (by linarith : (t:ℝ)-1 ≤ 0)] + ring + have hcross1 : dist (ζ 0) (γ 1) ≤ (t:ℝ)*dist (ζ 0) (ζ 1)+(1-(t:ℝ))*dist (γ 0) (γ 1) := by + calc + _ ≤ dist (ζ 0) (ζ t)+dist (ζ t) (γ 1) := dist_triangle _ _ _ + _ = _ := by + rw [hz 0 t,←hmeet,hg t 1] + change |(0:ℝ)-(t:ℝ)| *dist (ζ 0) (ζ 1)+|(t:ℝ)-1| *dist (γ 0) (γ 1) = _ + rw [zero_sub,abs_neg,abs_of_pos ht0] + rw [abs_of_nonpos (by linarith : (t:ℝ)-1 ≤ 0)] + ring + have hcost : dist (γ 0) (γ 1)^2+dist (ζ 0) (ζ 1)^2 ≤ + dist (γ 0) (ζ 1)^2+dist (ζ 0) (γ 1)^2 := by + linarith [had (γ 0) (ζ 1),had (ζ 0) (γ 1)] + exact equal_lengths_of_cross_cost dist_nonneg dist_nonneg dist_nonneg dist_nonneg + ht0 ht1 hcost hcross0 hcross1 + +variable [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem NoncollapsedRCD.optimal_length_fibers + (K : ℝ) (n : ℕ) (hn : 2 ≤ n) (hX : NoncollapsedRCD K n X) + (ν₀ ν₁ : Measure X) [IsProbabilityMeasure ν₀] [IsProbabilityMeasure ν₁] + (hac : ν₀ ≪ hausdorff n X) (p : X) {R : ℝ} (hR : 0 ≤ R) + (hs0 : ∀ᵐ x ∂ν₀, dist x p ≤ R) (hs1 : ∀ᵐ x ∂ν₁, dist x p ≤ R) + (π : Measure C(Time,X)) (hg : ∀ᵐ γ ∂π, IsGeodesic γ) + (hp : IsOptimalCoupling ν₀ ν₁ (π.map (fun γ => (γ 0,γ 1)))) : + ∃ E : Set C(Time,X), IsCompact E ∧ (∀ᵐ γ ∂π, γ∈E) ∧ + ∀ γ∈E, ∀ ζ∈E, ∀ t : Time, 0 < (t:ℝ) → (t:ℝ) < 1 → γ t=ζ t → + dist (γ 0) (γ 1)=dist (ζ 0) (ζ 1) := by + let : ProperSpace X := hX.proper K n hn + let : SeparableSpace X := hX.separable + let : IsLocallyFiniteMeasure (hausdorff n X) := + locallyFinite_of_finiteOnBounded _ hX.finiteOnBounded + obtain ⟨u,φ,ψ,L,hφ,hψ,_,_,_,had,hcontact,_⟩ := hp.bounded_sobolev_potential + (hausdorff n X) hX.quadratic hX.geodesic ν₀ ν₁ hac p hR hs0 hs1 + let G := {γ : C(Time,X) | IsGeodesic γ ∧ ∀ t, dist (γ t) p ≤ 3*R} + let F := {γ : C(Time,X) | φ (γ 0)+ψ (γ 1)=dist (γ 0) (γ 1)^2/2} + have hG : IsCompact G := isCompact_bounded_geodesics p (by positivity) + have hF : IsClosed F := isClosed_eq + ((hφ.continuous.comp (continuous_eval_const 0)).add + (hψ.continuous.comp (continuous_eval_const 1))) + ((((continuous_eval_const 0).dist (continuous_eval_const 1)).pow 2).div_const 2) + have hcae : ∀ᵐ γ ∂π, γ∈F := ae_of_ae_map + ((measurable_path_eval 0).prodMk (measurable_path_eval 1)).aemeasurable hcontact + refine ⟨G∩F,hG.inter_right hF,?_,?_⟩ + · exact (optimal_geodesic_plan_bounded ν₀ ν₁ π hg hp p hR hs0 hs1).and hcae + · intro γ hγ ζ hζ t ht0 ht1 hm + exact contacting_geodesics_equal_length had hγ.1.1 hζ.1.1 hγ.2 hζ.2 ht0 ht1 hm + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/OptimalInitialLength.lean b/lean/OAI/Geometry/RCD/Transport/OptimalInitialLength.lean new file mode 100644 index 0000000000000000000000000000000000000000..191efe7fc013a2bce24ff1e97aeba8dee6d85cf4 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/OptimalInitialLength.lean @@ -0,0 +1,73 @@ +import OAI.Geometry.RCD.Transport.OptimalSpeedTransfer +import OAI.Geometry.RCD.Transport.RenyiTransportNode + +namespace OAI + +/-! # Common initial length of two optimal plans + +Only the reference optimizer needs bounded compression. A potential for +the average coupling bounds the speed on both optimizers. The +Sobolev speed identity and equality of costs make both bounds equalities. +-/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped ENNReal Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem NoncollapsedRCD.common_optimal_initial_length + (K : ℝ) (n : ℕ) (hn : 2≤n) (hX : NoncollapsedRCD K n X) + (a : RenyiTransportNode n X) (π ρ : Measure C(Time,X)) + [IsProbabilityMeasure π] [IsProbabilityMeasure ρ] + (hgπ : ∀ᵐ γ ∂π, IsGeodesic γ) (hgρ : ∀ᵐ γ ∂ρ, IsGeodesic γ) + (hpπ : IsOptimalCoupling a.left a.right (π.map (fun γ => (γ 0,γ 1)))) + (hpρ : IsOptimalCoupling a.left a.right (ρ.map (fun γ => (γ 0,γ 1)))) + {C : ℝ≥0∞} (hC : C≠∞) (hcomp : ∀ t : Time, π.map (fun γ => γ t)≤C • hausdorff n X) : + ∃ G : X → ℝ, Measurable G ∧ + (∀ᵐ γ ∂π, G (γ 0)=dist (γ 0) (γ 1)) ∧ + ∀ᵐ γ ∂ρ, G (γ 0)=dist (γ 0) (γ 1) := by + let : SeparableSpace X := hX.separable + let : ProperSpace X := hX.proper K n hn + let : IsProbabilityMeasure a.left := a.left_probability + let : IsProbabilityMeasure a.right := a.right_probability + let μ := hausdorff n X + let : IsLocallyFiniteMeasure μ := locallyFinite_of_finiteOnBounded μ hX.finiteOnBounded + have hac : a.left ≪ μ := Measure.absolutelyContinuous_of_le_smul a.left_bound + obtain ⟨τ,hτ,_,hpτ,hπac,hρac⟩ := optimalPlan_average π ρ hgπ hgρ hpπ hpρ + let := hτ + obtain ⟨u,φ,ψ,L,_,_,_,_,hu,had,hct,hbt⟩ := hpτ.bounded_sobolev_potential + μ hX.quadratic hX.geodesic a.left a.right hac a.center a.radius_nonneg a.left_support a.right_support + have hm : Measurable (fun γ : C(Time,X) => (γ 0,γ 1)) := + (measurable_path_eval 0).prodMk (measurable_path_eval 1) + have hct' := ae_of_ae_map hm.aemeasurable hct + have hbt' := ae_of_ae_map hm.aemeasurable hbt + let G := SobolevSpace.minimalSlope μ hX.quadratic u + have hip := optimalPlan_dist_sq_integrable a.left a.right π hpπ a.center + (integrable_dist_sq_of_ae_bounded a.left a.center a.left_support) + (integrable_dist_sq_of_ae_bounded a.right a.center a.right_support) + have hir := optimalPlan_dist_sq_integrable a.left a.right ρ hpρ a.center + (integrable_dist_sq_of_ae_bounded a.left a.center a.left_support) + (integrable_dist_sq_of_ae_bounded a.right a.center a.right_support) + have hD : MemLp (fun γ : C(Time,X) => dist (γ 0) (γ 1)) 2 π := + (memLp_two_iff_integrable_sq ((measurable_path_eval 0).dist + (measurable_path_eval 1)).aestronglyMeasurable).mpr hip + have hgp : ∀ᵐ γ ∂π, G (γ 0)=dist (γ 0) (γ 1) := + (SobolevSpace.minimalSlope_isRelaxed μ hX.quadratic u).kantorovich_gradient_eq_displacement + μ π hgπ hC hcomp hD hu had (hct'.filter_mono hπac.ae_le) (hbt'.filter_mono hπac.ae_le) + have hnn : ∀ᵐ γ ∂ρ, 0≤G (γ 0) := by + have hnμ : ∀ᵐ x ∂μ, 0≤G x := (Lp.coeFn_nonneg G).mpr + (SobolevSpace.minimalSlope_nonneg μ hX.quadratic u) + have hn0 := hnμ.filter_mono hac.ae_le + rw [←(optimalPlan_endpoints a.left a.right ρ hpρ).1] at hn0 + exact ae_of_ae_map (measurable_path_eval 0).aemeasurable hn0 + exact ⟨G,(Lp.stronglyMeasurable G).measurable,hgp, + optimal_initial_speed_transfer π ρ hpπ hpρ hip hir G (Lp.stronglyMeasurable G).measurable + hgp hnn (hbt'.filter_mono hρac.ae_le)⟩ + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/OptimalInitialSubmeasure.lean b/lean/OAI/Geometry/RCD/Transport/OptimalInitialSubmeasure.lean new file mode 100644 index 0000000000000000000000000000000000000000..7ea8ba8fefcae91310f5f847433c8bacb51fde11 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/OptimalInitialSubmeasure.lean @@ -0,0 +1,64 @@ +import OAI.Geometry.RCD.Transport.OptimalInitialLength +import OAI.Geometry.RCD.Transport.OptimalSubmeasureLength + +namespace OAI + +/-! # Endpoint preservation of length classes for optimal submeasures + +Compression of the reference plan gives its initial Kantorovich speed. +Thus the initial component marginal already fixes every measurable length +class, without prescribing an interior marginal of the competitor. +-/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped ENNReal Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem NoncollapsedRCD.optimal_initial_submeasure_length_transfer + (K : ℝ) (n : ℕ) (hn : 2≤n) (hX : NoncollapsedRCD K n X) + (a : RenyiTransportNode n X) (π ρ : Measure C(Time,X)) + [IsProbabilityMeasure π] [IsProbabilityMeasure ρ] + (hgπ : ∀ᵐ γ ∂π, IsGeodesic γ) (hgρ : ∀ᵐ γ ∂ρ, IsGeodesic γ) + (hpπ : IsOptimalCoupling a.left a.right (π.map (fun γ => (γ 0,γ 1)))) + (hpρ : IsOptimalCoupling a.left a.right (ρ.map (fun γ => (γ 0,γ 1)))) + {C : ℝ≥0∞} (hC : C≠∞) (hc : ∀ t : Time, π.map (fun γ => γ t)≤C • hausdorff n X) + (η ζ : Measure C(Time,X)) (hη : η≤π) (hζ : ζ≤ρ) + (he : η.map (fun γ => γ 0)=ζ.map (fun γ => γ 0)) + {S : Set ℝ} (hS : MeasurableSet S) + (hηS : ∀ᵐ γ ∂η, dist (γ 0) (γ 1)∈S) : + ∀ᵐ γ ∂ζ, dist (γ 0) (γ 1)∈S := by + obtain ⟨G,hG,hGπ,hGρ⟩ := hX.common_optimal_initial_length K n hn a π ρ hgπ hgρ hpπ hpρ hC hc + have hGη := hGπ.filter_mono hη.absolutelyContinuous.ae_le + have hGζ := hGρ.filter_mono hζ.absolutelyContinuous.ae_le + have heη : ∀ᵐ x ∂η.map (fun γ => γ 0), G x∈S := by + apply (ae_map_iff (measurable_path_eval 0).aemeasurable (hS.preimage hG)).mpr + filter_upwards [hGη,hηS] with γ hγ hγS + rwa [hγ] + rw [he] at heη + have heζ := ae_of_ae_map (measurable_path_eval 0).aemeasurable heη + filter_upwards [hGζ,heζ] with γ hγ hγS + rwa [←hγ] + +theorem NoncollapsedRCD.compressed_optimal_distance_bound + (K : ℝ) (n : ℕ) (hn : 2≤n) (hX : NoncollapsedRCD K n X) + (a : RenyiTransportNode n X) (π : Measure C(Time,X)) [IsProbabilityMeasure π] + (hg : ∀ᵐ γ ∂π, IsGeodesic γ) + (hp : IsOptimalCoupling a.left a.right (π.map (fun γ => (γ 0,γ 1)))) + {C : ℝ≥0∞} (hC : C≠∞) (hc : ∀ t : Time, π.map (fun γ => γ t)≤C • hausdorff n X) + {D : ℝ} (hD : ∀ᵐ γ ∂π, dist (γ 0) (γ 1)≤D) : + OptimalPlanDistanceBound a.left a.right D := by + intro ρ hρ hgρ hpρ + let := hρ + have heπ := optimalPlan_endpoints a.left a.right π hp + have heρ := optimalPlan_endpoints a.left a.right ρ hpρ + exact hX.optimal_initial_submeasure_length_transfer K n hn a π ρ hg hgρ hp hpρ hC hc + π ρ le_rfl le_rfl (heπ.1.trans heρ.1.symm) measurableSet_Iic hD + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/OptimalLengthLaw.lean b/lean/OAI/Geometry/RCD/Transport/OptimalLengthLaw.lean new file mode 100644 index 0000000000000000000000000000000000000000..4bc61a729e9fbaae29fad6d6d765eb985519435e --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/OptimalLengthLaw.lean @@ -0,0 +1,82 @@ +import OAI.Geometry.RCD.Transport.OptimalLengthObservable + +namespace OAI + +/-! # Length labels survive optimal-plan replacement + +An interior marginal fixes the joint law of position and total geodesic +length. Consequently every measurable length restriction has the same +interior marginal before and after replacement. +-/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped Topology ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem eval_length_law (π : Measure C(Time,X)) (t : Time) (L : C(X,ℝ)) + (hL : ∀ᵐ γ ∂π, L (γ t)=dist (γ 0) (γ 1)) : + π.map (fun γ => (γ t,dist (γ 0) (γ 1))) = + (π.map (fun γ => γ t)).map (fun x => (x,L x)) := by + have he : π.map (fun γ => (γ t,dist (γ 0) (γ 1))) = + π.map ((fun x : X => (x,L x)) ∘ (fun γ : C(Time,X) => γ t)) := + Measure.map_congr (hL.mono (fun γ hγ => Prod.ext rfl hγ.symm)) + exact he.trans (Measure.map_map + (show Measurable (fun x : X => (x,L x)) from measurable_id.prodMk L.continuous.measurable) + (measurable_path_eval t)).symm + +theorem length_restriction_eval (π : Measure C(Time,X)) (t : Time) (L : C(X,ℝ)) + (hL : ∀ᵐ γ ∂π, L (γ t)=dist (γ 0) (γ 1)) + {S : Set ℝ} (hS : MeasurableSet S) : + (π.restrict {γ | dist (γ 0) (γ 1)∈S}).map (fun γ => γ t) = + (π.map (fun γ => γ t)).restrict (L ⁻¹' S) := by + rw [Measure.restrict_map (measurable_path_eval t) (hS.preimage L.continuous.measurable)] + apply congrArg (fun m : Measure C(Time,X) => m.map (fun γ => γ t)) + apply Measure.restrict_congr_set + filter_upwards [hL] with γ hγ + exact propext (by change dist (γ 0) (γ 1)∈S ↔ L (γ t)∈S; rw [hγ]) + +theorem NoncollapsedRCD.optimal_eval_length_law_eq + (K : ℝ) (n : ℕ) (hn : 2 ≤ n) (hX : NoncollapsedRCD K n X) + (ν₀ ν₁ : Measure X) [IsProbabilityMeasure ν₀] [IsProbabilityMeasure ν₁] + (hac : ν₀ ≪ hausdorff n X) (p : X) {R : ℝ} (hR : 0 ≤ R) + (hs0 : ∀ᵐ x ∂ν₀, dist x p ≤ R) (hs1 : ∀ᵐ x ∂ν₁, dist x p ≤ R) + (π σ : Measure C(Time,X)) [IsProbabilityMeasure π] [IsProbabilityMeasure σ] + (hgπ : ∀ᵐ γ ∂π, IsGeodesic γ) (hgσ : ∀ᵐ γ ∂σ, IsGeodesic γ) + (hpπ : IsOptimalCoupling ν₀ ν₁ (π.map (fun γ => (γ 0,γ 1)))) + (hpσ : IsOptimalCoupling ν₀ ν₁ (σ.map (fun γ => (γ 0,γ 1)))) + {t : Time} (ht0 : 0 < (t:ℝ)) (ht1 : (t:ℝ) < 1) + (heq : π.map (fun γ => γ t)=σ.map (fun γ => γ t)) : + π.map (fun γ => (γ t,dist (γ 0) (γ 1))) = + σ.map (fun γ => (γ t,dist (γ 0) (γ 1))) := by + obtain ⟨L,hL⟩ := hX.common_optimal_length_observable K n hn ν₀ ν₁ hac p hR hs0 hs1 + π hgπ hpπ ht0 ht1 + rw [eval_length_law π t L (hL π inferInstance hgπ hpπ), + eval_length_law σ t L (hL σ inferInstance hgσ hpσ),heq] + +theorem NoncollapsedRCD.optimal_length_restriction_eval_eq + (K : ℝ) (n : ℕ) (hn : 2 ≤ n) (hX : NoncollapsedRCD K n X) + (ν₀ ν₁ : Measure X) [IsProbabilityMeasure ν₀] [IsProbabilityMeasure ν₁] + (hac : ν₀ ≪ hausdorff n X) (p : X) {R : ℝ} (hR : 0 ≤ R) + (hs0 : ∀ᵐ x ∂ν₀, dist x p ≤ R) (hs1 : ∀ᵐ x ∂ν₁, dist x p ≤ R) + (π σ : Measure C(Time,X)) [IsProbabilityMeasure π] [IsProbabilityMeasure σ] + (hgπ : ∀ᵐ γ ∂π, IsGeodesic γ) (hgσ : ∀ᵐ γ ∂σ, IsGeodesic γ) + (hpπ : IsOptimalCoupling ν₀ ν₁ (π.map (fun γ => (γ 0,γ 1)))) + (hpσ : IsOptimalCoupling ν₀ ν₁ (σ.map (fun γ => (γ 0,γ 1)))) + {t : Time} (ht0 : 0 < (t:ℝ)) (ht1 : (t:ℝ) < 1) + (heq : π.map (fun γ => γ t)=σ.map (fun γ => γ t)) + {S : Set ℝ} (hS : MeasurableSet S) : + (π.restrict {γ | dist (γ 0) (γ 1)∈S}).map (fun γ => γ t) = + (σ.restrict {γ | dist (γ 0) (γ 1)∈S}).map (fun γ => γ t) := by + obtain ⟨L,hL⟩ := hX.common_optimal_length_observable K n hn ν₀ ν₁ hac p hR hs0 hs1 + π hgπ hpπ ht0 ht1 + rw [length_restriction_eval π t L (hL π inferInstance hgπ hpπ) hS, + length_restriction_eval σ t L (hL σ inferInstance hgσ hpσ) hS,heq] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/OptimalLengthLocalization.lean b/lean/OAI/Geometry/RCD/Transport/OptimalLengthLocalization.lean new file mode 100644 index 0000000000000000000000000000000000000000..67d8fe5c83212cad797e576c58f7b19e6dfb7dd6 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/OptimalLengthLocalization.lean @@ -0,0 +1,82 @@ +import OAI.Geometry.RCD.Transport.OptimalGeodesicLengths + +namespace OAI + +/-! # Spatial localization of length-truncated optimal plans + +Each length threshold is detected by a compact set at any interior time. +Consequently the two length-truncated marginals are mutually singular. +-/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped Topology ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem length_sublevel_evaluation (π : Measure C(Time,X)) + {E : Set C(Time,X)} (hE : IsCompact E) (hfull : ∀ᵐ γ ∂π, γ∈E) + {t : Time} (hfib : ∀ γ∈E, ∀ ζ∈E, γ t=ζ t → + dist (γ 0) (γ 1)=dist (ζ 0) (ζ 1)) (C : ℝ) : + ∃ A : Set X, IsCompact A ∧ + (π.restrict {γ | dist (γ 0) (γ 1) ≤ C}).map (fun γ => γ t) = + (π.map (fun γ => γ t)).restrict A ∧ + (π.restrict {γ | C < dist (γ 0) (γ 1)}).map (fun γ => γ t) = + (π.map (fun γ => γ t)).restrict Aᶜ := by + let L := {γ : C(Time,X) | dist (γ 0) (γ 1) ≤ C} + have hL : IsClosed L := isClosed_le ((continuous_eval_const 0).dist + (continuous_eval_const 1)) continuous_const + let A := (fun γ => γ t) '' (E∩L) + have hA : IsCompact A := (hE.inter_right hL).image (continuous_eval_const t) + have he (γ : C(Time,X)) (hγ : γ∈E) : γ t∈A ↔ γ∈L := by + constructor + · rintro ⟨ζ,⟨hζ,hζL⟩,heq⟩ + change dist (γ 0) (γ 1) ≤ C + rw [hfib γ hγ ζ hζ heq.symm] + exact hζL + · intro hγL + exact ⟨γ,⟨hγ,hγL⟩,rfl⟩ + have hlow : L =ᵐ[π] (fun γ => γ t) ⁻¹' A := by + filter_upwards [hfull] with γ hγ + exact propext (he γ hγ).symm + have hhigh : {γ : C(Time,X) | C < dist (γ 0) (γ 1)} =ᵐ[π] + (fun γ => γ t) ⁻¹' Aᶜ := by + filter_upwards [hfull] with γ hγ + apply propext + change C < dist (γ 0) (γ 1) ↔ ¬γ t∈A + rw [he γ hγ] + exact lt_iff_not_ge + refine ⟨A,hA,?_,?_⟩ + · rw [Measure.restrict_map (measurable_path_eval t) hA.measurableSet] + exact congrArg (fun m : Measure C(Time,X) => m.map (fun γ => γ t)) + (Measure.restrict_congr_set hlow) + · rw [Measure.restrict_map (measurable_path_eval t) hA.measurableSet.compl] + exact congrArg (fun m : Measure C(Time,X) => m.map (fun γ => γ t)) + (Measure.restrict_congr_set hhigh) + +theorem NoncollapsedRCD.optimal_length_marginals_mutuallySingular + (K : ℝ) (n : ℕ) (hn : 2 ≤ n) (hX : NoncollapsedRCD K n X) + (ν₀ ν₁ : Measure X) [IsProbabilityMeasure ν₀] [IsProbabilityMeasure ν₁] + (hac : ν₀ ≪ hausdorff n X) (p : X) {R : ℝ} (hR : 0 ≤ R) + (hs0 : ∀ᵐ x ∂ν₀, dist x p ≤ R) (hs1 : ∀ᵐ x ∂ν₁, dist x p ≤ R) + (π : Measure C(Time,X)) (hg : ∀ᵐ γ ∂π, IsGeodesic γ) + (hp : IsOptimalCoupling ν₀ ν₁ (π.map (fun γ => (γ 0,γ 1)))) + {t : Time} (ht0 : 0 < (t:ℝ)) (ht1 : (t:ℝ) < 1) (C : ℝ) : + ((π.restrict {γ | dist (γ 0) (γ 1) ≤ C}).map (fun γ => γ t)) ⟂ₘ + ((π.restrict {γ | C < dist (γ 0) (γ 1)}).map (fun γ => γ t)) := by + obtain ⟨E,hE,hfull,hfib⟩ := hX.optimal_length_fibers K n hn ν₀ ν₁ hac p hR hs0 hs1 π hg hp + obtain ⟨A,hA,hlo,hhi⟩ := length_sublevel_evaluation π hE hfull + (fun γ hγ ζ hζ => hfib γ hγ ζ hζ t ht0 ht1) C + rw [hlo,hhi] + refine ⟨Aᶜ,hA.measurableSet.compl,?_,?_⟩ + · rw [Measure.restrict_apply hA.measurableSet.compl] + simp + · rw [Measure.restrict_apply hA.measurableSet.compl.compl] + simp + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/OptimalLengthObservable.lean b/lean/OAI/Geometry/RCD/Transport/OptimalLengthObservable.lean new file mode 100644 index 0000000000000000000000000000000000000000..bbc7568f71f0f61afc0eb3424ccd6f563ee8b3f7 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/OptimalLengthObservable.lean @@ -0,0 +1,72 @@ +import OAI.Geometry.RCD.Transport.OptimalCommonContactSet +import Mathlib.Topology.TietzeExtension + +namespace OAI + +/-! # The length of an optimal geodesic is visible at every interior time + +On the common compact contact set, length is constant on evaluation fibers. +The quotient map and Tietze extension give one continuous spatial observable +for every optimal plan with the prescribed endpoints. This retains variable +length weights when segments of the plan are replaced. +-/ + +open Set Filter MeasureTheory Metric TopologicalSpace Topology +open scoped Topology ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +omit [MeasurableSpace X] [BorelSpace X] in +theorem compact_length_observable {E : Set C(Time,X)} (hE : IsCompact E) + {t : Time} (hfib : ∀ γ∈E, ∀ ζ∈E, γ t=ζ t → + dist (γ 0) (γ 1)=dist (ζ 0) (ζ 1)) : + ∃ L : C(X,ℝ), ∀ γ∈E, L (γ t)=dist (γ 0) (γ 1) := by + let A := (fun γ : C(Time,X) => γ t) '' E + let e : C(E,A) := ⟨fun γ => ⟨γ.val t,⟨γ.val,γ.property,rfl⟩⟩, + ((continuous_eval_const t).comp continuous_subtype_val).subtype_mk _⟩ + let l : C(E,ℝ) := ⟨fun γ => dist (γ.val 0) (γ.val 1), + ((continuous_eval_const 0).comp continuous_subtype_val).dist + ((continuous_eval_const 1).comp continuous_subtype_val)⟩ + let : CompactSpace E := isCompact_iff_compactSpace.mp hE + have he : Function.Surjective e := by + rintro ⟨x,γ,hγ,rfl⟩ + exact ⟨⟨γ,hγ⟩,rfl⟩ + have hq : IsQuotientMap e := IsQuotientMap.of_surjective_continuous he e.continuous + have hl : Function.FactorsThrough l e := by + intro γ ζ heq + exact hfib γ γ.property ζ ζ.property (congrArg Subtype.val heq) + let lA := hq.lift l hl + have hA : IsCompact A := hE.image (continuous_eval_const t) + obtain ⟨L,hL⟩ := ContinuousMap.exists_restrict_eq hA.isClosed lA + refine ⟨L,?_⟩ + intro γ hγ + have h1 := congrArg (fun f : C(A,ℝ) => f (e ⟨γ,hγ⟩)) hL + have h2 := congrArg (fun f : C(E,ℝ) => f ⟨γ,hγ⟩) (hq.lift_comp l hl) + exact h1.trans h2 + +theorem NoncollapsedRCD.common_optimal_length_observable + (K : ℝ) (n : ℕ) (hn : 2 ≤ n) (hX : NoncollapsedRCD K n X) + (ν₀ ν₁ : Measure X) [IsProbabilityMeasure ν₀] [IsProbabilityMeasure ν₁] + (hac : ν₀ ≪ hausdorff n X) (p : X) {R : ℝ} (hR : 0 ≤ R) + (hs0 : ∀ᵐ x ∂ν₀, dist x p ≤ R) (hs1 : ∀ᵐ x ∂ν₁, dist x p ≤ R) + (π : Measure C(Time,X)) [IsProbabilityMeasure π] + (hg : ∀ᵐ γ ∂π, IsGeodesic γ) + (hp : IsOptimalCoupling ν₀ ν₁ (π.map (fun γ => (γ 0,γ 1)))) + {t : Time} (ht0 : 0 < (t:ℝ)) (ht1 : (t:ℝ) < 1) : + ∃ L : C(X,ℝ), ∀ σ : Measure C(Time,X), IsProbabilityMeasure σ → + (∀ᵐ γ ∂σ, IsGeodesic γ) → + IsOptimalCoupling ν₀ ν₁ (σ.map (fun γ => (γ 0,γ 1))) → + ∀ᵐ γ ∂σ, L (γ t)=dist (γ 0) (γ 1) := by + obtain ⟨E,hE,hfull,hfib⟩ := hX.common_optimal_length_set K n hn ν₀ ν₁ hac p hR + hs0 hs1 π hg hp + obtain ⟨L,hL⟩ := compact_length_observable hE + (fun γ hγ ζ hζ => hfib γ hγ ζ hζ t ht0 ht1) + exact ⟨L,fun σ hσ hgσ hpσ => (hfull σ hσ hgσ hpσ).mono (fun γ hγ => hL γ hγ)⟩ + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/OptimalMidpointSplice.lean b/lean/OAI/Geometry/RCD/Transport/OptimalMidpointSplice.lean new file mode 100644 index 0000000000000000000000000000000000000000..098a89b1c5f81a92b4951d20695f95220ffecc90 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/OptimalMidpointSplice.lean @@ -0,0 +1,73 @@ +import OAI.Geometry.RCD.Transport.CanonicalRenyiConstruction + +namespace OAI + +/-! # Splicing an optimal half-plan while preserving the other half + +This interface retains the complete family of marginals on each half, +including the shared midpoint needed for length-class localization. +-/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped Topology ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [SeparableSpace X] [CompleteSpace X] [Nonempty X] +attribute [local instance] pathBorel pathBorelSpace + +theorem exists_optimal_midpoint_splice + (π : Measure C(Time,X)) [IsProbabilityMeasure π] + (hg : ∀ᵐ γ ∂π, IsGeodesic γ) + (hp : IsOptimalCoupling (π.map (fun γ => γ 0)) (π.map (fun γ => γ 1)) + (π.map (fun γ => (γ 0,γ 1)))) + (hfin : transportCost (π.map (fun γ => (γ 0,γ 1)))≠∞) + (q₀ q₁ : Measure C(Time,X)) [IsProbabilityMeasure q₀] [IsProbabilityMeasure q₁] + (hg₀ : ∀ᵐ γ ∂q₀, IsGeodesic γ) (hg₁ : ∀ᵐ γ ∂q₁, IsGeodesic γ) + (hp₀ : IsOptimalCoupling (π.map (fun γ => γ 0)) (π.map (fun γ => γ midpointTime)) + (q₀.map (fun γ => (γ 0,γ 1)))) + (hp₁ : IsOptimalCoupling (π.map (fun γ => γ midpointTime)) (π.map (fun γ => γ 1)) + (q₁.map (fun γ => (γ 0,γ 1)))) : + ∃ τ : Measure C(Time,X), IsProbabilityMeasure τ ∧ + (∀ᵐ γ ∂τ, IsGeodesic γ) ∧ + IsOptimalCoupling (π.map (fun γ => γ 0)) (π.map (fun γ => γ 1)) + (τ.map (fun γ => (γ 0,γ 1))) ∧ + (∀ t, τ.map (fun γ => γ (lowerTime t))=q₀.map (fun γ => γ t)) ∧ + (∀ t, τ.map (fun γ => γ (upperTime t))=q₁.map (fun γ => γ t)) := by + have he₀ := optimalPlan_endpoints _ _ q₀ hp₀ + have he₁ := optimalPlan_endpoints _ _ q₁ hp₁ + obtain ⟨ρ,hρ,hρ₀,hρ₁⟩ := exists_matched_path_law q₀ q₁ (he₀.2.trans he₁.1.symm) + let := hρ + obtain ⟨hpτ,hgτ,_⟩ := midpoint_matched_law_optimal π hg hp hfin q₀ q₁ hg₀ hg₁ hp₀ hp₁ ρ hρ₀ hρ₁ + exact ⟨ρ.map joinMatched,inferInstance,hgτ,hpτ, + joined_law_eval_lowerTime ρ q₀ hρ₀,joined_law_eval_upperTime ρ q₁ hρ₁⟩ + +theorem exists_optimal_left_splice + (π : Measure C(Time,X)) [IsProbabilityMeasure π] + (hg : ∀ᵐ γ ∂π, IsGeodesic γ) + (hp : IsOptimalCoupling (π.map (fun γ => γ 0)) (π.map (fun γ => γ 1)) + (π.map (fun γ => (γ 0,γ 1)))) + (hfin : transportCost (π.map (fun γ => (γ 0,γ 1)))≠∞) + (q : Measure C(Time,X)) [IsProbabilityMeasure q] + (hgq : ∀ᵐ γ ∂q, IsGeodesic γ) + (hpq : IsOptimalCoupling (π.map (fun γ => γ 0)) (π.map (fun γ => γ midpointTime)) + (q.map (fun γ => (γ 0,γ 1)))) : + ∃ τ : Measure C(Time,X), IsProbabilityMeasure τ ∧ + (∀ᵐ γ ∂τ, IsGeodesic γ) ∧ + IsOptimalCoupling (π.map (fun γ => γ 0)) (π.map (fun γ => γ 1)) + (τ.map (fun γ => (γ 0,γ 1))) ∧ + (∀ t, τ.map (fun γ => γ (lowerTime t))=q.map (fun γ => γ t)) ∧ + (∀ t, τ.map (fun γ => γ (upperTime t))=π.map (fun γ => γ (upperTime t))) := by + obtain ⟨hq₁,hg₁,hp₁⟩ := geodesic_subpath_law π hg hp hfin midpointTime 1 + let := hq₁ + obtain ⟨τ,hτ,hgτ,hpτ,hl,hr⟩ := exists_optimal_midpoint_splice π hg hp hfin + q (π.map (subpath midpointTime 1)) hgq hg₁ hpq hp₁ + refine ⟨τ,hτ,hgτ,hpτ,hl,?_⟩ + intro t + exact (hr t).trans (subpath_map_eval π midpointTime 1 t) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/OptimalRadialMidpoint.lean b/lean/OAI/Geometry/RCD/Transport/OptimalRadialMidpoint.lean new file mode 100644 index 0000000000000000000000000000000000000000..ae4450c10b1c63b761abb6b986cb481058b27fc3 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/OptimalRadialMidpoint.lean @@ -0,0 +1,76 @@ +import OAI.Geometry.RCD.Transport.RadialMidpointRigidity + +namespace OAI + +/-! # An optimal replacement to a radial midpoint remains radial + +The finite quadratic transport cost and the midpoint marginal determine +both radial moments. Equality in the integrated triangle inequality +therefore forces the same pole on every replacement path. +-/ + +open Set Filter Metric MeasureTheory TopologicalSpace +open scoped ENNReal + +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [SeparableSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem optimal_radial_midpoint + (q : Measure C(Time, X)) [IsProbabilityMeasure q] (p : X) + (hq : ∀ᵐ γ ∂q, IsGeodesic γ) (hend : q.map (fun γ => γ 1) = Measure.dirac p) + (hfinite : transportCost (q.map (fun γ => (γ 0, γ 1))) ≠ ∞) + (π : Measure C(Time, X)) [IsProbabilityMeasure π] + (hp : IsOptimalCoupling (q.map (fun γ => γ 0)) (q.map (fun γ => γ midpointTime)) + (π.map (fun γ => (γ 0, γ 1)))) : + ∀ᵐ γ ∂π, dist (γ 0) (γ 1) = dist (γ 1) p ∧ + dist (γ 0) p = dist (γ 0) (γ 1) + dist (γ 1) p := by + have hf (s t : Time) : (q.map (fun γ => (γ s, γ t))).map Prod.fst = + q.map (fun γ => γ s) := by + rw [Measure.map_map measurable_fst ((measurable_path_eval s).prodMk (measurable_path_eval t))] + rfl + have hs (s t : Time) : (q.map (fun γ => (γ s, γ t))).map Prod.snd = + q.map (fun γ => γ t) := by + rw [Measure.map_map measurable_snd ((measurable_path_eval s).prodMk (measurable_path_eval t))] + rfl + have hm : Measurable (fun x : X => ENNReal.ofReal (dist x p) ^ 2) := by fun_prop + have hπends := optimalPlan_endpoints _ _ π hp + let C := transportCost (q.map (fun γ => (γ 0, γ 1))) + have hC0 : C = ∫⁻ γ, ENNReal.ofReal (dist (γ 0) p) ^ 2 ∂π := by + have he := transportCost_eq_moment_of_dirac (q.map (fun γ => γ 0)) p + (q.map (fun γ => (γ 0, γ 1))) (hf 0 1) ((hs 0 1).trans hend) + rw [← hπends.1, lintegral_map hm (measurable_path_eval 0)] at he + exact he + have hhalfcost : transportCost (q.map (fun γ => (γ 0, γ midpointTime))) = (4 : ℝ≥0∞)⁻¹ * C := by + rw [geodesic_plan_cost q hq 0 midpointTime] + congr 1 + norm_num [midpointTime, ENNReal.ofReal_div_of_pos, ← ENNReal.inv_pow] + have hπcost : (∫⁻ γ, ENNReal.ofReal (dist (γ 0) (γ 1)) ^ 2 ∂π) ≤ (4 : ℝ≥0∞)⁻¹ * C := by + rw [← transportCost_plan_lintegral] + rw [← hhalfcost] + exact hp.2.2 _ (hf 0 midpointTime) (hs 0 midpointTime) + have hC1 : (∫⁻ γ, ENNReal.ofReal (dist (γ 1) p) ^ 2 ∂π) = (4 : ℝ≥0∞)⁻¹ * C := by + have he := transportCost_eq_moment_of_dirac (q.map (fun γ => γ midpointTime)) p + (q.map (fun γ => (γ midpointTime, γ 1))) (hf midpointTime 1) + ((hs midpointTime 1).trans hend) + rw [← hπends.2, lintegral_map hm (measurable_path_eval 1)] at he + rw [← he, geodesic_plan_cost q hq midpointTime 1] + congr 1 + norm_num [midpointTime, ENNReal.ofReal_div_of_pos, ← ENNReal.inv_pow] + obtain ⟨_, hr⟩ := quadratic_gluing_saturation π + (fun γ => dist (γ 0) (γ 1)) (fun γ => dist (γ 1) p) (fun γ => dist (γ 0) p) + ((measurable_path_eval 0).dist (measurable_path_eval 1)) + ((measurable_path_eval 1).dist measurable_const) + ((measurable_path_eval 0).dist measurable_const) + (Eventually.of_forall fun _ => dist_nonneg) (Eventually.of_forall fun _ => dist_nonneg) + (Eventually.of_forall fun _ => dist_nonneg) + (Eventually.of_forall fun γ => dist_triangle (γ 0) (γ 1) p) + C hfinite hπcost hC1.le hC0.le + filter_upwards [hr] with γ hγ + refine ⟨hγ.1, ?_⟩ + linarith [hγ.1, hγ.2] + +end RegularPointCoordinates + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/OptimalRadialTime.lean b/lean/OAI/Geometry/RCD/Transport/OptimalRadialTime.lean new file mode 100644 index 0000000000000000000000000000000000000000..92ff41a3132797753d58f0539d8e84aa50991824 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/OptimalRadialTime.lean @@ -0,0 +1,103 @@ +import OAI.Geometry.RCD.Harmonic.WeightedRadialRigidity + +namespace OAI + +/-! # Optimal replacements of a radial-time marginal remain radial -/ + +open Set Filter Metric MeasureTheory +open scoped ENNReal + +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [TopologicalSpace.SeparableSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem optimal_radial_time + (q : Measure C(Time, X)) [IsProbabilityMeasure q] (p : X) {R : ℝ} (_hR : 0 ≤ R) + (hq : ∀ᵐ γ ∂q, IsGeodesic γ ∧ ∀ s, dist (γ s) p ≤ R) + (hend : q.map (fun γ => γ 1) = Measure.dirac p) + (t : Time) (ht : 0 < (t : ℝ)) (ht1 : (t : ℝ) < 1) + (π : Measure C(Time, X)) [IsProbabilityMeasure π] + (hπD : Integrable (fun γ : C(Time, X) => dist (γ 0) (γ 1) ^ 2) π) + (hp : IsOptimalCoupling (q.map (fun γ => γ 0)) (q.map (fun γ => γ t)) + (π.map (fun γ => (γ 0, γ 1)))) : + ∀ᵐ γ ∂π, dist (γ 0) (γ 1) = (t : ℝ) * dist (γ 0) p ∧ + dist (γ 1) p = (1 - (t : ℝ)) * dist (γ 0) p ∧ + dist (γ 0) p = dist (γ 0) (γ 1) + dist (γ 1) p := by + have hf (s u : Time) : (q.map (fun γ => (γ s, γ u))).map Prod.fst = + q.map (fun γ => γ s) := by + rw [Measure.map_map measurable_fst ((measurable_path_eval s).prodMk (measurable_path_eval u))] + rfl + have hs (s u : Time) : (q.map (fun γ => (γ s, γ u))).map Prod.snd = + q.map (fun γ => γ u) := by + rw [Measure.map_map measurable_snd ((measurable_path_eval s).prodMk (measurable_path_eval u))] + rfl + have hqe : ∀ᵐ γ ∂q, γ 1 = p := by + apply ae_of_ae_map (measurable_path_eval 1).aemeasurable (p := fun x : X => x = p) + rw [hend] + simp + have hπends := optimalPlan_endpoints _ _ π hp + have hpbd (s u : Time) (he : π.map (fun γ => γ s) = q.map (fun γ => γ u)) : + ∀ᵐ γ ∂π, dist (γ s) p ≤ R := by + apply ae_of_ae_map (measurable_path_eval s).aemeasurable + (p := fun x : X => dist x p ≤ R) + rw [he] + apply (ae_map_iff (measurable_path_eval u).aemeasurable + (measurableSet_le (measurable_id.dist measurable_const) measurable_const)).mpr + exact hq.mono fun _ hγ => hγ.2 u + have hi (ν : Measure C(Time, X)) [IsFiniteMeasure ν] (s : Time) + (hb : ∀ᵐ γ ∂ν, dist (γ s) p ≤ R) : + Integrable (fun γ : C(Time, X) => dist (γ s) p ^ 2) ν := by + apply Integrable.mono' (integrable_const (R ^ 2)) + (((measurable_path_eval s).dist measurable_const).pow_const 2).aestronglyMeasurable + filter_upwards [hb] with γ hγ + rw [Real.norm_eq_abs, abs_of_nonneg (sq_nonneg _)] + exact pow_le_pow_left₀ dist_nonneg hγ 2 + have hiq : Integrable (fun γ : C(Time, X) => dist (γ 0) (γ 1) ^ 2) q := by + apply Integrable.mono' (integrable_const ((2 * R) ^ 2)) + (((measurable_path_eval 0).dist (measurable_path_eval 1)).pow_const 2).aestronglyMeasurable + filter_upwards [hq] with γ hγ + rw [Real.norm_eq_abs, abs_of_nonneg (sq_nonneg _)] + apply pow_le_pow_left₀ dist_nonneg _ 2 + have htri := dist_triangle (γ 0) p (γ 1) + rw [dist_comm p (γ 1)] at htri + linarith [hγ.2 0, hγ.2 1] + let C := ∫ γ, dist (γ 0) (γ 1) ^ 2 ∂q + have hC : 0 ≤ C := integral_nonneg fun _ => sq_nonneg _ + have hmd : Measurable (fun x : X => dist x p ^ 2) := by fun_prop + have hC0 : (∫ γ, dist (γ 0) p ^ 2 ∂π) = C := by + rw [← integral_map (measurable_path_eval 0).aemeasurable + hmd.aestronglyMeasurable, hπends.1, + integral_map (measurable_path_eval 0).aemeasurable + hmd.aestronglyMeasurable] + apply integral_congr_ae + filter_upwards [hqe] with γ hγ + rw [hγ] + have hC1 : (∫ γ, dist (γ 1) p ^ 2 ∂π) = (1 - (t : ℝ)) ^ 2 * C := by + rw [← integral_map (measurable_path_eval 1).aemeasurable + hmd.aestronglyMeasurable, hπends.2, + integral_map (measurable_path_eval t).aemeasurable + hmd.aestronglyMeasurable] + rw [← integral_const_mul] + apply integral_congr_ae + filter_upwards [hq, hqe] with γ hγ he + rw [← he, hγ.1 t 1] + change (|(t : ℝ) - 1| * dist (γ 0) (γ 1)) ^ 2 = _ + rw [abs_sub_comm, abs_of_nonneg (sub_nonneg.mpr t.2.2), mul_pow] + have hcostE := hp.2.2 (q.map (fun γ => (γ 0, γ t))) (hf 0 t) (hs 0 t) + rw [transportCost_plan_eq_integral π hπD, geodesic_plan_cost q (hq.mono fun _ hγ => hγ.1) 0 t, + transportCost_plan_eq_integral q hiq] at hcostE + change ENNReal.ofReal (∫ γ, dist (γ 0) (γ 1) ^ 2 ∂π) ≤ + ENNReal.ofReal |0 - (t : ℝ)| ^ 2 * ENNReal.ofReal C at hcostE + rw [zero_sub, abs_neg, abs_of_nonneg t.2.1, + ← ENNReal.ofReal_pow t.2.1, ← ENNReal.ofReal_mul (sq_nonneg _)] at hcostE + have hcost : (∫ γ, dist (γ 0) (γ 1) ^ 2 ∂π) ≤ (t : ℝ) ^ 2 * C := by + have hh := ENNReal.toReal_mono ENNReal.ofReal_ne_top hcostE + simpa only [ENNReal.toReal_ofReal (integral_nonneg fun _ => sq_nonneg _), + ENNReal.toReal_ofReal (mul_nonneg (sq_nonneg _) hC)] using hh + exact weighted_radial_rigidity_of_moments π p ht ht1 hπD + (hi π 0 (hpbd 0 0 hπends.1)) (hi π 1 (hpbd 1 t hπends.2)) hcost hC0 hC1 + +end RegularPointCoordinates + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/OptimalRightSplice.lean b/lean/OAI/Geometry/RCD/Transport/OptimalRightSplice.lean new file mode 100644 index 0000000000000000000000000000000000000000..bf78e575a2b93b3e23922588b91362ca1d9819b7 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/OptimalRightSplice.lean @@ -0,0 +1,85 @@ +import OAI.Geometry.RCD.Transport.OptimalSubplanSplice + +namespace OAI + +/-! # Splicing the right half while preserving the left half -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped Topology ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [SeparableSpace X] [CompleteSpace X] [Nonempty X] +attribute [local instance] pathBorel pathBorelSpace + +theorem exists_optimal_right_splice + (π : Measure C(Time,X)) [IsProbabilityMeasure π] + (hg : ∀ᵐ γ ∂π, IsGeodesic γ) + (hp : IsOptimalCoupling (π.map (fun γ => γ 0)) (π.map (fun γ => γ 1)) + (π.map (fun γ => (γ 0,γ 1)))) + (hfin : transportCost (π.map (fun γ => (γ 0,γ 1)))≠∞) + (q : Measure C(Time,X)) [IsProbabilityMeasure q] + (hgq : ∀ᵐ γ ∂q, IsGeodesic γ) + (hpq : IsOptimalCoupling (π.map (fun γ => γ midpointTime)) (π.map (fun γ => γ 1)) + (q.map (fun γ => (γ 0,γ 1)))) : + ∃ τ : Measure C(Time,X), IsProbabilityMeasure τ ∧ + (∀ᵐ γ ∂τ, IsGeodesic γ) ∧ + IsOptimalCoupling (π.map (fun γ => γ 0)) (π.map (fun γ => γ 1)) + (τ.map (fun γ => (γ 0,γ 1))) ∧ + (∀ t, τ.map (fun γ => γ (upperTime t))=q.map (fun γ => γ t)) ∧ + (∀ t, τ.map (fun γ => γ (lowerTime t))=π.map (fun γ => γ (lowerTime t))) := by + obtain ⟨hq₀,hg₀,hp₀⟩ := geodesic_subpath_law π hg hp hfin 0 midpointTime + let := hq₀ + obtain ⟨τ,hτ,hgτ,hpτ,hl,hr⟩ := exists_optimal_midpoint_splice π hg hp hfin + (π.map (subpath 0 midpointTime)) q hg₀ hgq hp₀ hpq + refine ⟨τ,hτ,hgτ,hpτ,hr,?_⟩ + intro t + exact (hl t).trans (subpath_map_eval π 0 midpointTime t) + +theorem exists_optimal_right_subplan_splice + (π : Measure C(Time,X)) [IsProbabilityMeasure π] + (hg : ∀ᵐ γ ∂π, IsGeodesic γ) + (hp : IsOptimalCoupling (π.map (fun γ => γ 0)) (π.map (fun γ => γ 1)) + (π.map (fun γ => (γ 0,γ 1)))) + (hfin : transportCost (π.map (fun γ => (γ 0,γ 1)))≠∞) + (κ : Measure C(Time,X)) (hκ : κ≤π) (hκ0 : κ univ≠0) + (q : Measure C(Time,X)) [IsProbabilityMeasure q] + (hgq : ∀ᵐ γ ∂q, IsGeodesic γ) + (hpq : IsOptimalCoupling ((κ univ)⁻¹ • κ.map (fun γ => γ midpointTime)) + ((κ univ)⁻¹ • κ.map (fun γ => γ 1)) + (q.map (fun γ => (γ 0,γ 1)))) : + ∃ τ : Measure C(Time,X), IsFiniteMeasure τ ∧ + (∀ᵐ γ ∂τ, IsGeodesic γ) ∧ + IsOptimalCoupling (κ.map (fun γ => γ 0)) (κ.map (fun γ => γ 1)) + (τ.map (fun γ => (γ 0,γ 1))) ∧ + (∀ t, τ.map (fun γ => γ (upperTime t))=κ univ • q.map (fun γ => γ t)) ∧ + (∀ t, τ.map (fun γ => γ (lowerTime t))=κ.map (fun γ => γ (lowerTime t))) := by + let : IsFiniteMeasure κ := isFiniteMeasure_of_le π hκ + have hc : κ univ≠∞ := measure_ne_top κ univ + let πn := (κ univ)⁻¹ • κ + obtain ⟨hπn,hgπn,hpπn,hfinπn⟩ := normalized_optimal_subplan π hg hp hfin κ hκ hκ0 + let : IsProbabilityMeasure πn := hπn + have heval (s : Time) : πn.map (fun γ => γ s)=(κ univ)⁻¹ • κ.map (fun γ => γ s) := + Measure.map_smul _ (measurable_path_eval s).aemeasurable + have hpq' : IsOptimalCoupling (πn.map (fun γ => γ midpointTime)) + (πn.map (fun γ => γ 1)) (q.map (fun γ => (γ 0,γ 1))) := by + rwa [heval,heval] + obtain ⟨τ,hτ,hgτ,hpτ,hl,hr⟩ := exists_optimal_right_splice πn hgπn hpπn hfinπn q hgq hpq' + let := hτ + refine ⟨κ univ • τ,Measure.smul_finite _ hc,?_,?_,?_,?_⟩ + · exact hgτ.filter_mono Measure.smul_absolutelyContinuous.ae_le + · have hh := hpτ.smul hκ0 hc + rw [heval,heval,smul_smul,smul_smul,ENNReal.mul_inv_cancel hκ0 hc,one_smul,one_smul] at hh + rwa [Measure.map_smul _ ((measurable_path_eval 0).prodMk (measurable_path_eval 1)).aemeasurable] + · intro t + rw [Measure.map_smul _ (measurable_path_eval _).aemeasurable,hl] + · intro t + rw [Measure.map_smul _ (measurable_path_eval _).aemeasurable,hr,heval, + smul_smul,ENNReal.mul_inv_cancel hκ0 hc,one_smul] + + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/OptimalSpeedTransfer.lean b/lean/OAI/Geometry/RCD/Transport/OptimalSpeedTransfer.lean new file mode 100644 index 0000000000000000000000000000000000000000..3918c490547b6210a3a26b276426f5dab9956e70 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/OptimalSpeedTransfer.lean @@ -0,0 +1,58 @@ +import OAI.Geometry.RCD.Transport.OptimalAveragePlan + +namespace OAI + +/-! # Transferring a fixed initial speed from one optimizer to another + +The common initial marginal identifies the slope-square integral. Equality +of optimal costs then turns the pointwise speed bound into equality, even +when the second plan has no compression estimate. +-/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped ENNReal Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [SeparableSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem optimal_initial_speed_transfer {ν₀ ν₁ : Measure X} + (π ρ : Measure C(Time,X)) [IsProbabilityMeasure π] [IsProbabilityMeasure ρ] + (hp : IsOptimalCoupling ν₀ ν₁ (π.map (fun γ => (γ 0,γ 1)))) + (hr : IsOptimalCoupling ν₀ ν₁ (ρ.map (fun γ => (γ 0,γ 1)))) + (hip : Integrable (fun γ : C(Time,X) => dist (γ 0) (γ 1)^2) π) + (hir : Integrable (fun γ : C(Time,X) => dist (γ 0) (γ 1)^2) ρ) + (G : X → ℝ) (hG : Measurable G) + (hgp : ∀ᵐ γ ∂π, G (γ 0)=dist (γ 0) (γ 1)) + (hgn : ∀ᵐ γ ∂ρ, 0≤G (γ 0)) + (hgr : ∀ᵐ γ ∂ρ, G (γ 0)≤dist (γ 0) (γ 1)) : + ∀ᵐ γ ∂ρ, G (γ 0)=dist (γ 0) (γ 1) := by + have hiG : Integrable (fun γ : C(Time,X) => G (γ 0)^2) ρ := by + apply hir.mono' ((hG.comp (measurable_path_eval 0)).pow_const 2).aestronglyMeasurable + filter_upwards [hgn,hgr] with γ h0 hle + rw [Real.norm_eq_abs,abs_of_nonneg (sq_nonneg _)] + exact sq_le_sq₀ h0 dist_nonneg |>.mpr hle + have hsame : (∫ γ, G (γ 0)^2 ∂π)=(∫ γ, G (γ 0)^2 ∂ρ) := by + rw [←integral_map (measurable_path_eval 0).aemeasurable (hG.pow_const 2).aestronglyMeasurable, + ←integral_map (measurable_path_eval 0).aemeasurable (hG.pow_const 2).aestronglyMeasurable, + (optimalPlan_endpoints ν₀ ν₁ π hp).1,(optimalPlan_endpoints ν₀ ν₁ ρ hr).1] + have hcost : (∫ γ, dist (γ 0) (γ 1)^2 ∂π)=(∫ γ, dist (γ 0) (γ 1)^2 ∂ρ) := + (optimal_plan_cost_real hp hip).symm.trans (optimal_plan_cost_real hr hir) + have hs : ∀ᵐ γ ∂ρ, 0≤dist (γ 0) (γ 1)^2-G (γ 0)^2 := by + filter_upwards [hgn,hgr] with γ h0 hle + exact sub_nonneg.mpr (sq_le_sq₀ h0 dist_nonneg |>.mpr hle) + have hz : (∫ γ, dist (γ 0) (γ 1)^2-G (γ 0)^2 ∂ρ)=0 := by + rw [integral_sub hir hiG,←hcost,←hsame] + have he : (∫ γ, G (γ 0)^2 ∂π)=(∫ γ, dist (γ 0) (γ 1)^2 ∂π) := + integral_congr_ae (hgp.mono (fun γ hγ => congrArg (fun x : ℝ => x^2) hγ)) + rw [he,sub_self] + filter_upwards [(integral_eq_zero_iff_of_nonneg_ae hs (hir.sub hiG)).mp hz,hgn] with γ hγ hn + change dist (γ 0) (γ 1)^2-G (γ 0)^2=0 at hγ + exact (sq_eq_sq₀ hn dist_nonneg).mp (by linarith) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/OptimalSubmeasureLength.lean b/lean/OAI/Geometry/RCD/Transport/OptimalSubmeasureLength.lean new file mode 100644 index 0000000000000000000000000000000000000000..ac49ec739f9429a5c675e59409b05d87712a5c7f --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/OptimalSubmeasureLength.lean @@ -0,0 +1,54 @@ +import OAI.Geometry.RCD.Transport.OptimalLengthLaw + +namespace OAI + +/-! # Length labels transfer to submeasures through one interior marginal + +The common contact set determines geodesic length from any interior +position. Equality of the component marginals at that time therefore +preserves each measurable length class under optimal-plan replacement. +-/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped Topology ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem NoncollapsedRCD.optimal_submeasure_length_transfer + (K : ℝ) (n : ℕ) (hn : 2≤n) (hX : NoncollapsedRCD K n X) + (ν₀ ν₁ : Measure X) [IsProbabilityMeasure ν₀] [IsProbabilityMeasure ν₁] + (hac : ν₀ ≪ hausdorff n X) (p : X) {R : ℝ} (hR : 0≤R) + (hs0 : ∀ᵐ x ∂ν₀, dist x p≤R) (hs1 : ∀ᵐ x ∂ν₁, dist x p≤R) + (π ρ : Measure C(Time,X)) [IsProbabilityMeasure π] [IsProbabilityMeasure ρ] + (hgπ : ∀ᵐ γ ∂π, IsGeodesic γ) (hgρ : ∀ᵐ γ ∂ρ, IsGeodesic γ) + (hpπ : IsOptimalCoupling ν₀ ν₁ (π.map (fun γ => (γ 0,γ 1)))) + (hpρ : IsOptimalCoupling ν₀ ν₁ (ρ.map (fun γ => (γ 0,γ 1)))) + (η ζ : Measure C(Time,X)) (hη : η≤π) (hζ : ζ≤ρ) + {t : Time} (ht0 : 0<(t:ℝ)) (ht1 : (t:ℝ)<1) + (he : η.map (fun γ => γ t)=ζ.map (fun γ => γ t)) + {S : Set ℝ} (hS : MeasurableSet S) + (hηS : ∀ᵐ γ ∂η, dist (γ 0) (γ 1)∈S) : + ∀ᵐ γ ∂ζ, dist (γ 0) (γ 1)∈S := by + obtain ⟨L,hL⟩ := hX.common_optimal_length_observable K n hn ν₀ ν₁ hac p hR hs0 hs1 + π hgπ hpπ ht0 ht1 + have hLη : ∀ᵐ γ ∂η, L (γ t)=dist (γ 0) (γ 1) := + (hL π inferInstance hgπ hpπ).filter_mono hη.absolutelyContinuous.ae_le + have hLζ : ∀ᵐ γ ∂ζ, L (γ t)=dist (γ 0) (γ 1) := + (hL ρ inferInstance hgρ hpρ).filter_mono hζ.absolutelyContinuous.ae_le + have heη : ∀ᵐ x ∂η.map (fun γ => γ t), L x∈S := by + apply (ae_map_iff (measurable_path_eval t).aemeasurable + (hS.preimage L.continuous.measurable)).mpr + filter_upwards [hLη,hηS] with γ hγ hγS + rwa [hγ] + rw [he] at heη + have heζ := ae_of_ae_map (measurable_path_eval t).aemeasurable heη + filter_upwards [hLζ,heζ] with γ hγ hγS + rwa [←hγ] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/OptimalSubplanSplice.lean b/lean/OAI/Geometry/RCD/Transport/OptimalSubplanSplice.lean new file mode 100644 index 0000000000000000000000000000000000000000..a89d615673925b65cac20683c6674a51c274c000 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/OptimalSubplanSplice.lean @@ -0,0 +1,64 @@ +import OAI.Geometry.RCD.Coordinates.NormalizedOptimalSubplan + +namespace OAI + +/-! # Splicing an actual subplan through its fixed interior marginal + +A normalized half-plan is lifted back to the original component mass. +Both outside endpoint marginals and the entire untouched half are retained. +-/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped Topology ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [SeparableSpace X] [CompleteSpace X] [Nonempty X] +attribute [local instance] pathBorel pathBorelSpace + +theorem exists_optimal_left_subplan_splice + (π : Measure C(Time,X)) [IsProbabilityMeasure π] + (hg : ∀ᵐ γ ∂π, IsGeodesic γ) + (hp : IsOptimalCoupling (π.map (fun γ => γ 0)) (π.map (fun γ => γ 1)) + (π.map (fun γ => (γ 0,γ 1)))) + (hfin : transportCost (π.map (fun γ => (γ 0,γ 1)))≠∞) + (κ : Measure C(Time,X)) (hκ : κ≤π) (hκ0 : κ univ≠0) + (q : Measure C(Time,X)) [IsProbabilityMeasure q] + (hgq : ∀ᵐ γ ∂q, IsGeodesic γ) + (hpq : IsOptimalCoupling ((κ univ)⁻¹ • κ.map (fun γ => γ 0)) + ((κ univ)⁻¹ • κ.map (fun γ => γ midpointTime)) + (q.map (fun γ => (γ 0,γ 1)))) : + ∃ τ : Measure C(Time,X), IsFiniteMeasure τ ∧ + (∀ᵐ γ ∂τ, IsGeodesic γ) ∧ + IsOptimalCoupling (κ.map (fun γ => γ 0)) (κ.map (fun γ => γ 1)) + (τ.map (fun γ => (γ 0,γ 1))) ∧ + (∀ t, τ.map (fun γ => γ (lowerTime t))=κ univ • q.map (fun γ => γ t)) ∧ + (∀ t, τ.map (fun γ => γ (upperTime t))=κ.map (fun γ => γ (upperTime t))) := by + let : IsFiniteMeasure κ := isFiniteMeasure_of_le π hκ + have hc : κ univ≠∞ := measure_ne_top κ univ + let πn := (κ univ)⁻¹ • κ + obtain ⟨hπn,hgπn,hpπn,hfinπn⟩ := normalized_optimal_subplan π hg hp hfin κ hκ hκ0 + let : IsProbabilityMeasure πn := hπn + have heval (s : Time) : πn.map (fun γ => γ s)=(κ univ)⁻¹ • κ.map (fun γ => γ s) := + Measure.map_smul _ (measurable_path_eval s).aemeasurable + have hpq' : IsOptimalCoupling (πn.map (fun γ => γ 0)) + (πn.map (fun γ => γ midpointTime)) (q.map (fun γ => (γ 0,γ 1))) := by + rwa [heval,heval] + obtain ⟨τ,hτ,hgτ,hpτ,hl,hr⟩ := exists_optimal_left_splice πn hgπn hpπn hfinπn q hgq hpq' + let := hτ + refine ⟨κ univ • τ,Measure.smul_finite _ hc,?_,?_,?_,?_⟩ + · exact hgτ.filter_mono Measure.smul_absolutelyContinuous.ae_le + · have hh := hpτ.smul hκ0 hc + rw [heval,heval,smul_smul,smul_smul,ENNReal.mul_inv_cancel hκ0 hc,one_smul,one_smul] at hh + rwa [Measure.map_smul _ ((measurable_path_eval 0).prodMk (measurable_path_eval 1)).aemeasurable] + · intro t + rw [Measure.map_smul _ (measurable_path_eval _).aemeasurable,hl] + · intro t + rw [Measure.map_smul _ (measurable_path_eval _).aemeasurable,hr,heval, + smul_smul,ENNReal.mul_inv_cancel hκ0 hc,one_smul] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/OptimalTripletCompletion.lean b/lean/OAI/Geometry/RCD/Transport/OptimalTripletCompletion.lean new file mode 100644 index 0000000000000000000000000000000000000000..4b273ab252d6ffdd490d052767b3a73ebef658c6 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/OptimalTripletCompletion.lean @@ -0,0 +1,72 @@ +import OAI.Geometry.RCD.Transport.WeightedMatchedOptimality + +namespace OAI + +/-! # A bounded geodesic triplet law extends to a compressed optimal plan + +The two half plans are constructed from curvature-dimension transport. +Sharp quadratic saturation proves their concatenation is geodesic. +-/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped Topology ENNReal +noncomputable section +namespace RegularPointCoordinates.NoncollapsedRCD +variable {A X : Type*} [MeasurableSpace A] [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] [SeparableSpace X] {K : ℝ} {n : ℕ} + [IsLocallyFiniteMeasure (hausdorff n X)] +attribute [local instance] pathBorel pathBorelSpace + +omit [IsLocallyFiniteMeasure (hausdorff n X)] in +theorem complete_optimal_triplets (hX : NoncollapsedRCD K n X) (hn : 2 ≤ n) + (P : Measure A) [IsProbabilityMeasure P] + (x a b : A → X) (hx : Measurable x) (ha : Measurable a) (hb : Measurable b) + (t : Ioo (0:ℝ) 1) + (hp : IsOptimalCoupling (P.map a) (P.map b) (P.map (fun z => (a z,b z)))) + (hgeo : ∀ᵐ z ∂P, dist (x z) (a z)=(t:ℝ)*dist (a z) (b z) ∧ + dist (x z) (b z)=(1-(t:ℝ))*dist (a z) (b z)) + {C : ℝ≥0∞} (hC : C ≠ ∞) + (hcx : P.map x ≤ C • hausdorff n X) + (hca : P.map a ≤ C • hausdorff n X) + (hcb : P.map b ≤ C • hausdorff n X) + (p : X) {R : ℝ} (hR : 0 ≤ R) + (hsx : ∀ᵐ y ∂P.map x, dist y p ≤ R) + (hsa : ∀ᵐ y ∂P.map a, dist y p ≤ R) + (hsb : ∀ᵐ y ∂P.map b, dist y p ≤ R) : + ∃ τ : Measure C(Time,X), IsProbabilityMeasure τ ∧ + (∀ᵐ γ ∂τ, IsGeodesic γ) ∧ + IsOptimalCoupling (P.map a) (P.map b) (τ.map (fun γ => (γ 0,γ 1))) ∧ + τ.map (fun γ => γ ⟨t,t.property.1.le,t.property.2.le⟩)=P.map x ∧ + ∀ s : Time, τ.map (fun γ => γ s) ≤ compressionBudget K n (2*R) C • hausdorff n X := by + let : Nonempty X := ⟨p⟩ + let : IsProbabilityMeasure (P.map x) := inferInstance + let : IsProbabilityMeasure (P.map a) := inferInstance + let : IsProbabilityMeasure (P.map b) := inferInstance + obtain ⟨q₀,hq₀,hg₀,hp₀,_,hc₀⟩ := hX.exists_bounded_entropy_plan K n hn + (P.map a) (P.map x) hC hca hcx p hR hsa hsx + obtain ⟨q₁,hq₁,hg₁,hp₁,_,hc₁⟩ := hX.exists_bounded_entropy_plan K n hn + (P.map x) (P.map b) hC hcx hcb p hR hsx hsb + let := hq₀ + let := hq₁ + have he₀ := optimalPlan_endpoints _ _ q₀ hp₀ + have he₁ := optimalPlan_endpoints _ _ q₁ hp₁ + obtain ⟨ρ,hρ,hρ₀,hρ₁⟩ := exists_matched_path_law q₀ q₁ (he₀.2.trans he₁.1.symm) + let := hρ + have hfin := finite_second_moment_cost (finiteSecondMoment_of_bounded (P.map a) p hsa) + (finiteSecondMoment_of_bounded (P.map b) p hsb) hp.1 hp.2.1 + obtain ⟨hopt,hg⟩ := weighted_matched_law_optimal P x a b hx ha hb t hp hfin hgeo + q₀ q₁ hg₀ hg₁ hp₀ hp₁ ρ hρ₀ hρ₁ + refine ⟨ρ.map (weightedJoin t),inferInstance, + hg,hopt,(weightedJoin_law_split t ρ q₀ hρ₀).trans he₀.2,?_⟩ + intro s + by_cases hs : (s:ℝ) ≤ t + · rw [weightedJoin_law_left t ρ q₀ hρ₀ s hs] + exact (hc₀ _).1 + · rw [weightedJoin_law_right t ρ q₁ hρ₁ s (le_of_not_ge hs)] + exact (hc₁ _).1 + +end RegularPointCoordinates.NoncollapsedRCD + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/OrthonormalHarmonicGeodesic.lean b/lean/OAI/Geometry/RCD/Transport/OrthonormalHarmonicGeodesic.lean new file mode 100644 index 0000000000000000000000000000000000000000..f59555d5667052fb5373f4d1f4dfd7093a8ccd14 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/OrthonormalHarmonicGeodesic.lean @@ -0,0 +1,71 @@ +import OAI.Geometry.RCD.Transport.ExactAffineGeodesic +import OAI.Geometry.RCD.Sobolev.OrthonormalHarmonicLipschitz +import Mathlib.Analysis.Normed.Affine.AddTorsor + +namespace OAI + +/-! # Exact horizontal speeds and vertical geodesics for orthonormal coordinates -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped Topology NNReal ENNReal +noncomputable section +namespace RegularPointCoordinates + +theorem coordinate_speed_of_affine {X : Type*} {n : ℕ} (v : X → Euclidean n) + (γ : Time → X) + (h : ∀ t : Time, v (γ t)=(1-(t:ℝ)) • v (γ 0)+(t:ℝ) • v (γ 1)) + (s t : Time) : + dist (v (γ s)) (v (γ t))=|(s:ℝ)-(t:ℝ)| * dist (v (γ 0)) (v (γ 1)) := by + rw [h s,h t] + simpa only [AffineMap.lineMap_apply_module,Real.dist_eq] using + dist_lineMap_lineMap (v (γ 0)) (v (γ 1)) (s:ℝ) (t:ℝ) + +namespace NoncollapsedRCD +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + {n : ℕ} (hX : NoncollapsedRCD 0 n X) (hn : 2≤n) (p : X) [SeparableSpace X] + [IsLocallyFiniteMeasure (hausdorff n X)] [(hausdorff n X).Regular] + +include hn in +theorem orthonormal_harmonic_geodesic {R : ℝ} (hR : 1≤R) + (u : Fin n → SobolevSpace (hausdorff n X) hX.quadratic) (v : X → Euclidean n) + {b : ℝ} (hb : 50*R v x i) + (hH : ∀ i, IsSobolevHarmonicOn (hausdorff n X) hX.quadratic (ball p b) (u i)) + (hgram : ∀ i j, localGamma (hausdorff n X) hX.quadratic (u i) (u j) + =ᵐ[(hausdorff n X).restrict (ball p b)] fun _ => if i=j then 1 else 0) + (hv : ContinuousOn v (ball p b)) : + LipschitzOnWith 1 v (ball p (4*R)) ∧ + ∀ x y : X, dist x p≤R/2 → dist y p≤R/2 → + ∃ γ : C(Time,X), IsGeodesic γ ∧ γ 0=x ∧ γ 1=y ∧ + (∀ t : Time, dist (γ t) p≤3*R) ∧ + (∀ t : Time, v (γ t)=(1-(t:ℝ)) • v x+(t:ℝ) • v y) ∧ + (∀ s t : Time, dist (v (γ s)) (v (γ t))=|(s:ℝ)-(t:ℝ)| * dist (v x) (v y)) ∧ + (v x=v y → ∀ t : Time, v (γ t)=v x) := by + have hsub : ball p (8*(4*R))⊆ball p b := ball_subset_ball (by linarith) + have hLip := hX.orthonormal_coordinates_lipschitz hn p (by linarith : 0<4*R) u v + (hv.mono hsub) (fun i => ae_restrict_of_ae_restrict_of_subset hsub (hu i)) + (fun i j => ae_restrict_of_ae_restrict_of_subset hsub (hgram i j)) + refine ⟨hLip,?_⟩ + intro x y hx hy + have hdiag (i : Fin n) : localGamma (hausdorff n X) hX.quadratic (u i) (u i) + =ᵐ[(hausdorff n X).restrict (ball p b)] fun _ => (1:ℝ) := by + simpa only [ite_true] using hgram i i + obtain ⟨γ,hγ,h₀,h₁,hstay,haff⟩ := hX.exists_exact_affine_geodesic hn p hR u v hb hu hH + (fun _ => 1) (fun i => (hdiag i).mono fun _ he => by simpa only [NNReal.coe_one,one_pow] using he.le) + (fun _ => 1) hdiag hv hx hy + refine ⟨γ,hγ,h₀,h₁,hstay,haff,?_,?_⟩ + · intro s t + have hh : ∀ t : Time, v (γ t)=(1-(t:ℝ)) • v (γ 0)+(t:ℝ) • v (γ 1) := by + simpa only [h₀,h₁] using haff + simpa only [h₀,h₁] using coordinate_speed_of_affine v γ hh s t + · intro hxy t + rw [haff t,← hxy,← add_smul] + simp + +end NoncollapsedRCD +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/PairedBranchLaws.lean b/lean/OAI/Geometry/RCD/Transport/PairedBranchLaws.lean new file mode 100644 index 0000000000000000000000000000000000000000..03983a52d629617db357cf1de521ad87bc24853d --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/PairedBranchLaws.lean @@ -0,0 +1,57 @@ +import OAI.Geometry.RCD.Transport.ResolvedBranchMixture + +namespace OAI + +/-! # Equal and singular marginals of normalized paired branch laws -/ + +open Set Filter MeasureTheory TopologicalSpace +open scoped ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [SeparableSpace X] +attribute [local instance] pathBorel pathBorelSpace + +omit [SeparableSpace X] in +theorem normalized_pair_left_eval (σ : Measure (C(Time,X)×C(Time,X))) (t : Time) : + (((σ univ)⁻¹ • σ).map Prod.fst).map (fun γ => γ t)= + (σ univ)⁻¹ • σ.map (fun z => z.1 t) := by + rw [Measure.map_map (measurable_path_eval t) measurable_fst] + exact Measure.map_smul _ ((measurable_path_eval t).comp measurable_fst).aemeasurable + +theorem normalized_pair_right_eval (σ : Measure (C(Time,X)×C(Time,X))) (q t : Time) : + (((σ univ)⁻¹ • σ).map (resolvePathBranch q)).map (fun γ => γ t)= + (σ univ)⁻¹ • σ.map (fun z => resolvePathBranch q z t) := by + rw [Measure.map_map (measurable_path_eval t) (measurable_resolvePathBranch q)] + exact Measure.map_smul _ ((measurable_path_eval t).comp (measurable_resolvePathBranch q)).aemeasurable + +theorem normalized_pair_eval_eq (σ : Measure (C(Time,X)×C(Time,X))) (q t : Time) + (he : σ.map (fun z => z.1 t)=σ.map (fun z => resolvePathBranch q z t)) : + (((σ univ)⁻¹ • σ).map Prod.fst).map (fun γ => γ t)= + (((σ univ)⁻¹ • σ).map (resolvePathBranch q)).map (fun γ => γ t) := by + rw [normalized_pair_left_eval,normalized_pair_right_eval,he] + +theorem normalized_pair_eval_singular (σ : Measure (C(Time,X)×C(Time,X))) (q t : Time) + (hs : σ.map (fun z => z.1 t) ⟂ₘ σ.map (fun z => resolvePathBranch q z t)) : + (((σ univ)⁻¹ • σ).map Prod.fst).map (fun γ => γ t) ⟂ₘ + (((σ univ)⁻¹ • σ).map (resolvePathBranch q)).map (fun γ => γ t) := by + rw [normalized_pair_left_eval,normalized_pair_right_eval] + exact ((hs.smul _).symm.smul _).symm + +omit [SeparableSpace X] in +theorem half_mixture_map_eval (τ₀ τ₁ : Measure C(Time,X)) (t : Time) : + ((2:ℝ≥0∞)⁻¹ • (τ₀+τ₁)).map (fun γ => γ t)= + (2:ℝ≥0∞)⁻¹ • (τ₀.map (fun γ => γ t)+τ₁.map (fun γ => γ t)) := by + rw [Measure.map_smul _ (measurable_path_eval t).aemeasurable, + Measure.map_add _ _ (measurable_path_eval t)] + +omit [SeparableSpace X] in +theorem half_mixture_eval_eq (τ₀ τ₁ : Measure C(Time,X)) (t : Time) + (he : τ₀.map (fun γ => γ t)=τ₁.map (fun γ => γ t)) : + ((2:ℝ≥0∞)⁻¹ • (τ₀+τ₁)).map (fun γ => γ t)=τ₀.map (fun γ => γ t) := by + rw [half_mixture_map_eval,←he,half_smul_self] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/PairedEntropyChords.lean b/lean/OAI/Geometry/RCD/Transport/PairedEntropyChords.lean new file mode 100644 index 0000000000000000000000000000000000000000..a4e2ea50feb1f85ad3818e2692ea379535616dd6 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/PairedEntropyChords.lean @@ -0,0 +1,61 @@ +import OAI.Geometry.RCD.Transport.ResolvedBranchMixture +import OAI.Geometry.RCD.Transport.ResolvedSubplanEntropy +import OAI.Geometry.RCD.Transport.EntropyChordAlgebra + +namespace OAI + +/-! # Three entropy chords supplied by the actual paired transport law -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped ENNReal NNReal Topology +noncomputable section +namespace RegularPointCoordinates.NoncollapsedRCD +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] [SeparableSpace X] {K : ℝ} {n : ℕ} + [IsLocallyFiniteMeasure (hausdorff n X)] (hX : NoncollapsedRCD K n X) +include hX +attribute [local instance] pathBorel pathBorelSpace + +theorem paired_entropy_chords (hn : 2 ≤ n) (p : X) {R : ℝ} (hR : 0 ≤ R) + (π : Measure C(Time,X)) [IsProbabilityMeasure π] (hg : ∀ᵐ γ ∂π, IsGeodesic γ) + (hp : IsOptimalCoupling (π.map (fun γ => γ 0)) (π.map (fun γ => γ 1)) + (π.map (fun γ => (γ 0,γ 1)))) + {C : ℝ≥0} (hc : ∀ t : Time, π.map (fun γ => γ t) ≤ ENNReal.ofReal C • hausdorff n X) + (hs₀ : ∀ᵐ x ∂π.map (fun γ => γ 0), dist x p ≤ R) + (hs₁ : ∀ᵐ x ∂π.map (fun γ => γ 1), dist x p ≤ R) + (σ : Measure (C(Time,X)×C(Time,X))) [IsFiniteMeasure σ] (hσ : σ univ ≠ 0) + (hl : σ.map Prod.fst ≤ π) (hr : σ.map Prod.snd ≤ π) (q : Time) : + let τ₀ := ((σ univ)⁻¹ • σ).map Prod.fst + let τ₁ := ((σ univ)⁻¹ • σ).map (resolvePathBranch q) + let τm := (2:ℝ≥0∞)⁻¹ • (τ₀+τ₁) + EntropyChord (fun t => boltzmannEntropy (hausdorff n X) (τ₀.map (fun γ => γ t))) + ((|K|/2)*(2*R)^2) ∧ + EntropyChord (fun t => boltzmannEntropy (hausdorff n X) (τ₁.map (fun γ => γ t))) + ((|K|/2)*(2*R)^2) ∧ + EntropyChord (fun t => boltzmannEntropy (hausdorff n X) (τm.map (fun γ => γ t))) + ((|K|/2)*(2*R)^2) := by + have hmass : (σ.map diagonalFirst) univ=σ univ := by + rw [Measure.map_apply measurable_diagonalFirst MeasurableSet.univ,preimage_univ] + have hleft : (((σ.map diagonalFirst) univ)⁻¹ • σ.map diagonalFirst).map (resolvePathBranch q)= + ((σ univ)⁻¹ • σ).map Prod.fst := by + rw [hmass,Measure.map_smul _ (measurable_resolvePathBranch q).aemeasurable, + diagonalFirst_resolved,Measure.map_smul _ measurable_fst.aemeasurable] + have hld : (σ.map diagonalFirst).map Prod.fst ≤ π := by rwa [diagonalFirst_fst] + have hrd : (σ.map diagonalFirst).map Prod.snd ≤ π := by rwa [diagonalFirst_snd] + refine ⟨?_,?_,?_⟩ + · intro s t r + have h := hX.resolved_subplan_entropy_chord hn p hR π hg hp hc hs₀ hs₁ + (σ.map diagonalFirst) (by rwa [hmass]) hld hrd q s t r + simpa only [hleft] using h + · exact fun s t r => hX.resolved_subplan_entropy_chord hn p hR π hg hp hc hs₀ hs₁ σ hσ hl hr q s t r + · intro s t r + obtain ⟨hlm,hrm⟩ := halfResolvedPair_dominated σ π hl hr + have h := hX.resolved_subplan_entropy_chord hn p hR π hg hp hc hs₀ hs₁ + (halfResolvedPair σ) (by rwa [halfResolvedPair_mass]) hlm hrm q s t r + simpa only [normalized_halfResolvedPair] using h + +end RegularPointCoordinates.NoncollapsedRCD + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/PairedEntropyDeficit.lean b/lean/OAI/Geometry/RCD/Transport/PairedEntropyDeficit.lean new file mode 100644 index 0000000000000000000000000000000000000000..0ff0ac419ae46f2e3af7b6ea1cf9c90fb38265b7 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/PairedEntropyDeficit.lean @@ -0,0 +1,95 @@ +import OAI.Geometry.RCD.Transport.PairedBranchLaws +import OAI.Geometry.RCD.Transport.PairedEntropyChords +import OAI.Geometry.RCD.Transport.ResolvedSubplanEntropyBounds + +namespace OAI + +/-! # The quantitative entropy obstruction for an actual separated pair -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped ENNReal NNReal Topology +noncomputable section +namespace RegularPointCoordinates.NoncollapsedRCD +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] [SeparableSpace X] {K : ℝ} {n : ℕ} + [IsLocallyFiniteMeasure (hausdorff n X)] (hX : NoncollapsedRCD K n X) +include hX +attribute [local instance] pathBorel pathBorelSpace + +theorem paired_entropy_deficit (hn : 2 ≤ n) (p : X) {R : ℝ} (hR : 0 ≤ R) + (π : Measure C(Time,X)) [IsProbabilityMeasure π] (hg : ∀ᵐ γ ∂π, IsGeodesic γ) + (hp : IsOptimalCoupling (π.map (fun γ => γ 0)) (π.map (fun γ => γ 1)) + (π.map (fun γ => (γ 0,γ 1)))) + {C : ℝ≥0} (hC : 0 < C) + (hc : ∀ t : Time, π.map (fun γ => γ t) ≤ ENNReal.ofReal C • hausdorff n X) + (hs₀ : ∀ᵐ x ∂π.map (fun γ => γ 0), dist x p ≤ R) + (hs₁ : ∀ᵐ x ∂π.map (fun γ => γ 1), dist x p ≤ R) + (σ : Measure (C(Time,X)×C(Time,X))) [IsFiniteMeasure σ] (hσ : σ univ ≠ 0) + (hl : σ.map Prod.fst ≤ π) (hr : σ.map Prod.snd ≤ π) (q s t : Time) + (hs : 0 < s) (hst : s < t) (ht : t < 1) + (hcommon : ∀ r : Time, r ≤ s → + σ.map (fun z => z.1 r)=σ.map (fun z => resolvePathBranch q z r)) + (hsing : σ.map (fun z => z.1 t) ⟂ₘ σ.map (fun z => resolvePathBranch q z t)) : + (s:ℝ)*(1-(s:ℝ))*Real.log 2 ≤ ((t:ℝ)-(s:ℝ))* + (Real.log (2*(C:ℝ)/σ.real univ)+Real.log ((hausdorff n X).real (closedBall p (3*R)))+ + ((|K|/2)*(2*R)^2)*(s:ℝ)*(1-(s:ℝ))) := by + let τ₀ := ((σ univ)⁻¹ • σ).map Prod.fst + let τ₁ := ((σ univ)⁻¹ • σ).map (resolvePathBranch q) + let τm := (2:ℝ≥0∞)⁻¹ • (τ₀+τ₁) + let E₀ := fun u : Time => boltzmannEntropy (hausdorff n X) (τ₀.map (fun γ => γ u)) + let E₁ := fun u : Time => boltzmannEntropy (hausdorff n X) (τ₁.map (fun γ => γ u)) + let Em := fun u : Time => boltzmannEntropy (hausdorff n X) (τm.map (fun γ => γ u)) + let : NeZero σ := ⟨by intro he; apply hσ; rw [he]; rfl⟩ + let : IsProbabilityMeasure ((σ univ)⁻¹ • σ) := inferInstance + let : IsProbabilityMeasure τ₀ := inferInstance + let : IsProbabilityMeasure τ₁ := inferInstance + have hmass : (σ.map diagonalFirst) univ=σ univ := by + rw [Measure.map_apply measurable_diagonalFirst MeasurableSet.univ,preimage_univ] + have hleft : (((σ.map diagonalFirst) univ)⁻¹ • σ.map diagonalFirst).map (resolvePathBranch q)=τ₀ := by + rw [hmass,Measure.map_smul _ (measurable_resolvePathBranch q).aemeasurable, + diagonalFirst_resolved] + exact (Measure.map_smul _ measurable_fst.aemeasurable).symm + have hld : (σ.map diagonalFirst).map Prod.fst ≤ π := by rwa [diagonalFirst_fst] + have hrd : (σ.map diagonalFirst).map Prod.snd ≤ π := by rwa [diagonalFirst_snd] + have hb₀ (u : Time) := hX.resolved_subplan_entropy_bounds p hR π hg hp hC hc hs₀ hs₁ + (σ.map diagonalFirst) (by rwa [hmass]) hld hrd q u + simp only [hleft] at hb₀ + simp only [Measure.real,hmass] at hb₀ + have hb₁ (u : Time) := hX.resolved_subplan_entropy_bounds p hR π hg hp hC hc hs₀ hs₁ σ hσ hl hr q u + have hequal (u : Time) (hu : u ≤ s) : τ₀.map (fun γ => γ u)=τ₁.map (fun γ => γ u) := + normalized_pair_eval_eq σ q u (hcommon u hu) + have hem (u : Time) (hu : u ≤ s) : τm.map (fun γ => γ u)=τ₀.map (fun γ => γ u) := + half_mixture_eval_eq τ₀ τ₁ u (hequal u hu) + have hc₀ : E₀ s=Em s := congrArg (boltzmannEntropy (hausdorff n X)) (hem s le_rfl).symm + have hc₁ : E₁ s=Em s := by + change boltzmannEntropy _ _=boltzmannEntropy _ _ + rw [hem s le_rfl,hequal s le_rfl] + have ha₁ : τ₁.map (fun γ => γ t) ≪ hausdorff n X := + Measure.absolutelyContinuous_of_le_smul + (normalized_resolved_compression (hausdorff n X) π σ hl hr hc q t) + have ha₀ : τ₀.map (fun γ => γ t) ≪ hausdorff n X := by + rw [←hleft] + exact Measure.absolutelyContinuous_of_le_smul + (normalized_resolved_compression (hausdorff n X) π (σ.map diagonalFirst) hld hrd hc q t) + have hsep : Em t=(E₀ t+E₁ t)/2-Real.log 2 := by + dsimp only [Em,E₀,E₁,τm] + rw [half_mixture_map_eval] + exact boltzmannEntropy_half_mixture (hausdorff n X) _ _ ha₀ ha₁ + (normalized_pair_eval_singular σ q t hsing) (hb₀ t).2.2 (hb₁ t).2.2 + obtain ⟨hch₀,hch₁,hchm⟩ := hX.paired_entropy_chords hn p hR π hg hp hc hs₀ hs₁ σ hσ hl hr q + have hMm : Em 0 ≤ Real.log (2*(C:ℝ)/σ.real univ) := by + dsimp only [Em] + rw [hem 0 s.property.1] + exact (hb₀ 0).2.1 + have hB : -Real.log ((hausdorff n X).real (closedBall p (3*R))) ≤ Em s := by + rw [←hc₀] + exact (hb₀ s).1 + have h := entropy_chord_branch_deficit hch₀ hch₁ hchm s t hs hst ht hc₀ hc₁ hsep + (hb₀ 1).2.1 (hb₁ 1).2.1 hMm hB + simpa only [Measure.real,sub_neg_eq_add] using h + +end RegularPointCoordinates.NoncollapsedRCD + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/PairedInitialObstruction.lean b/lean/OAI/Geometry/RCD/Transport/PairedInitialObstruction.lean new file mode 100644 index 0000000000000000000000000000000000000000..3156f52ab5c3e664c87daf4293c400b82c50cd54 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/PairedInitialObstruction.lean @@ -0,0 +1,93 @@ +import OAI.Geometry.RCD.Transport.CompressedEvaluationInverse +import OAI.Geometry.RCD.Transport.ObservableSubplans +import OAI.Geometry.RCD.Transport.InitialEntropyObstruction +import OAI.Geometry.RCD.Coordinates.NormalizedSubplanData + +namespace OAI + +/-! # Paired subplans cannot separate immediately from the same initial law -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped ENNReal NNReal Topology +noncomputable section +namespace RegularPointCoordinates.NoncollapsedRCD +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] [SeparableSpace X] {K : ℝ} {n : ℕ} + [IsLocallyFiniteMeasure (hausdorff n X)] (hX : NoncollapsedRCD K n X) +include hX +attribute [local instance] pathBorel pathBorelSpace + +theorem paired_initial_obstruction (hn : 2 ≤ n) (p : X) {R : ℝ} (hR : 0 ≤ R) + (π : Measure C(Time,X)) [IsProbabilityMeasure π] (hg : ∀ᵐ γ ∂π, IsGeodesic γ) + (hp : IsOptimalCoupling (π.map (fun γ => γ 0)) (π.map (fun γ => γ 1)) + (π.map (fun γ => (γ 0,γ 1)))) + {C : ℝ≥0} (hC : 0 < C) + (hc : ∀ t : Time, π.map (fun γ => γ t) ≤ ENNReal.ofReal C • hausdorff n X) + (hs₀ : ∀ᵐ x ∂π.map (fun γ => γ 0), dist x p ≤ R) + (hs₁ : ∀ᵐ x ∂π.map (fun γ => γ 1), dist x p ≤ R) + (σ : Measure (C(Time,X)×C(Time,X))) [IsFiniteMeasure σ] (hσ : σ univ ≠ 0) + (hl : σ.map Prod.fst ≤ π) (hr : σ.map Prod.snd ≤ π) + (hinit : ∀ᵐ z ∂σ, z.1 0=z.2 0) + (hsep : σ.map Prod.fst ⟂ₘ σ.map Prod.snd) : False := by + let μ := hausdorff n X + have hfin := coupling_transportCost_ne_top hp.1 hp.2.1 p + (integrable_dist_sq_of_ae_bounded _ p hs₀) (integrable_dist_sq_of_ae_bounded _ p hs₁) + have hlmass : (σ.map Prod.fst) univ=σ univ := by + rw [Measure.map_apply measurable_fst MeasurableSet.univ,preimage_univ] + have hrmass : (σ.map Prod.snd) univ=σ univ := by + rw [Measure.map_apply measurable_snd MeasurableSet.univ,preimage_univ] + let c := (σ univ)⁻¹ + let ρ₀ := c • σ.map Prod.fst + let ρ₁ := c • σ.map Prod.snd + have hdata₀ := normalized_subplan_data π hg hp hfin μ hc p hs₀ hs₁ + (σ.map Prod.fst) hl (by rwa [hlmass]) + have hdata₁ := normalized_subplan_data π hg hp hfin μ hc p hs₀ hs₁ + (σ.map Prod.snd) hr (by rwa [hrmass]) + simp only [hlmass] at hdata₀ + simp only [hrmass] at hdata₁ + obtain ⟨hprob₀,hg₀,hp₀,hc₀,hs₀₀,hs₀₁⟩ := hdata₀ + obtain ⟨hprob₁,hg₁,hp₁,hc₁,hs₁₀,hs₁₁⟩ := hdata₁ + let : IsProbabilityMeasure ρ₀ := hprob₀ + let : IsProbabilityMeasure ρ₁ := hprob₁ + let D : ℝ≥0 := ⟨(c*ENNReal.ofReal C).toReal,ENNReal.toReal_nonneg⟩ + have hDe : ENNReal.ofReal D=c*ENNReal.ofReal C := + ENNReal.ofReal_toReal (ENNReal.mul_ne_top (ENNReal.inv_ne_top.mpr hσ) ENNReal.ofReal_ne_top) + have hc₀' (t : Time) : ρ₀.map (fun γ => γ t) ≤ ENNReal.ofReal D • μ := by + rw [hDe]; exact hc₀ t + have hc₁' (t : Time) : ρ₁.map (fun γ => γ t) ≤ ENNReal.ofReal D • μ := by + rw [hDe]; exact hc₁ t + have hch₀ : EntropyChord (fun t => boltzmannEntropy μ (ρ₀.map (fun γ => γ t))) ((|K|/2)*(2*R)^2) := + hX.bounded_plan_entropy_chord hn p hR ρ₀ hg₀ hp₀ hc₀' hs₀₀ hs₀₁ + have hch₁ : EntropyChord (fun t => boltzmannEntropy μ (ρ₁.map (fun γ => γ t))) ((|K|/2)*(2*R)^2) := + hX.bounded_plan_entropy_chord hn p hR ρ₁ hg₁ hp₁ hc₁' hs₁₀ hs₁₁ + have hi : ρ₀.map (fun γ => γ 0)=ρ₁.map (fun γ => γ 0) := by + dsimp only [ρ₀,ρ₁] + rw [Measure.map_smul _ (measurable_path_eval 0).aemeasurable, + Measure.map_smul _ (measurable_path_eval 0).aemeasurable, + Measure.map_map (measurable_path_eval 0) measurable_fst, + Measure.map_map (measurable_path_eval 0) measurable_snd] + congr 1 + exact Measure.map_congr hinit + have hpath : ρ₀ ⟂ₘ ρ₁ := ((hsep.smul c).symm.smul c).symm + have hac₀ : ρ₀ ≪ π := hl.absolutelyContinuous.smul_left c + have hac₁ : ρ₁ ≪ π := hr.absolutelyContinuous.smul_left c + have hfuture (t : Time) (ht0 : 0 < (t:ℝ)) (ht1 : (t:ℝ) < 1) : + ρ₀.map (fun γ => γ t) ⟂ₘ ρ₁.map (fun γ => γ t) := by + obtain ⟨g,hg,hgi⟩ := hX.compressed_evaluation_inverse hn p hR π hg hp hC hc hs₀ hs₁ t ht0 ht1 + exact mutuallySingular_map_of_ae_left_inverse π ρ₀ ρ₁ (measurable_path_eval t) hg hgi hac₀ hac₁ hpath + let : IsFiniteMeasure (μ.restrict (closedBall p (3*R))) := ⟨by + simpa [μ] using hX.finiteOnBounded (closedBall p (3*R)) isBounded_closedBall⟩ + have hstay₀ (t : Time) : ∀ᵐ x ∂ρ₀.map (fun γ => γ t), x ∈ closedBall p (3*R) := by + apply (ae_map_iff (measurable_path_eval t).aemeasurable measurableSet_closedBall).mpr + exact (optimal_geodesic_plan_bounded _ _ ρ₀ hg₀ hp₀ p hR hs₀₀ hs₀₁).mono fun γ hγ => hγ.2 t + have hstay₁ (t : Time) : ∀ᵐ x ∂ρ₁.map (fun γ => γ t), x ∈ closedBall p (3*R) := by + apply (ae_map_iff (measurable_path_eval t).aemeasurable measurableSet_closedBall).mpr + exact (optimal_geodesic_plan_bounded _ _ ρ₁ hg₁ hp₁ p hR hs₁₀ hs₁₁).mono fun γ hγ => hγ.2 t + exact initial_entropy_obstruction μ measurableSet_closedBall ρ₀ ρ₁ ENNReal.ofReal_ne_top + hc₀' hc₁' hstay₀ hstay₁ hch₀ hch₁ hi hfuture + +end RegularPointCoordinates.NoncollapsedRCD + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/PairedInitialUniqueness.lean b/lean/OAI/Geometry/RCD/Transport/PairedInitialUniqueness.lean new file mode 100644 index 0000000000000000000000000000000000000000..4855afc4f300885b66a5199cf32983a9e9fda4c7 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/PairedInitialUniqueness.lean @@ -0,0 +1,50 @@ +import OAI.Geometry.RCD.Transport.PairedInitialObstruction +import OAI.Geometry.RCD.Metric.SeparatedPairRestriction + +namespace OAI + +/-! # The initial point determines a compressed optimal path almost everywhere -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped ENNReal NNReal Topology +noncomputable section +namespace RegularPointCoordinates.NoncollapsedRCD +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] [SeparableSpace X] {K : ℝ} {n : ℕ} + [IsLocallyFiniteMeasure (hausdorff n X)] (hX : NoncollapsedRCD K n X) +include hX +attribute [local instance] pathBorel pathBorelSpace + +theorem paired_common_initial_unique (hn : 2 ≤ n) (p : X) {R : ℝ} (hR : 0 ≤ R) + (π : Measure C(Time,X)) [IsProbabilityMeasure π] (hg : ∀ᵐ γ ∂π, IsGeodesic γ) + (hp : IsOptimalCoupling (π.map (fun γ => γ 0)) (π.map (fun γ => γ 1)) + (π.map (fun γ => (γ 0,γ 1)))) + {C : ℝ≥0} (hC : 0 < C) + (hc : ∀ t : Time, π.map (fun γ => γ t) ≤ ENNReal.ofReal C • hausdorff n X) + (hs₀ : ∀ᵐ x ∂π.map (fun γ => γ 0), dist x p ≤ R) + (hs₁ : ∀ᵐ x ∂π.map (fun γ => γ 1), dist x p ≤ R) + (σ : Measure (C(Time,X)×C(Time,X))) [IsFiniteMeasure σ] + (hl : σ.map Prod.fst ≤ π) (hr : σ.map Prod.snd ≤ π) + (hinit : ∀ᵐ z ∂σ, z.1 0=z.2 0) + : ∀ᵐ z ∂σ, z.1=z.2 := by + by_contra hbad + have hneq : σ {z | z.1 ≠ z.2} ≠ 0 := by simpa only [ae_iff] using hbad + have hpos : 0 < σ.real {z | z.1 ≠ z.2} := + ENNReal.toReal_pos hneq (measure_ne_top _ _) + obtain ⟨S,_,hm,hsing⟩ := exists_separated_restriction σ measurable_fst measurable_snd hpos + let τ := σ.restrict S + have hτ0 : τ univ ≠ 0 := by + have hh : 0 < τ.real univ := (div_pos hpos (by norm_num)).trans hm + intro he + simp [Measure.real,he] at hh + have hτinit : ∀ᵐ z ∂τ, z.1 0=z.2 0 := + hinit.filter_mono Measure.restrict_le_self.absolutelyContinuous.ae_le + exact hX.paired_initial_obstruction hn p hR π hg hp hC hc hs₀ hs₁ τ hτ0 + ((Measure.map_mono Measure.restrict_le_self measurable_fst).trans hl) + ((Measure.map_mono Measure.restrict_le_self measurable_snd).trans hr) hτinit hsing + +end RegularPointCoordinates.NoncollapsedRCD + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/PairedLipschitzCompactness.lean b/lean/OAI/Geometry/RCD/Transport/PairedLipschitzCompactness.lean new file mode 100644 index 0000000000000000000000000000000000000000..f1c31429b14ab0585a4d1f2da00a06feb6c7cfce --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/PairedLipschitzCompactness.lean @@ -0,0 +1,52 @@ +import OAI.Geometry.RCD.Sobolev.CountableLipschitzCompactness + +namespace OAI + +/-! # One subsequence for all spatial regions and prescribed time slices -/ + +open Set Filter +open scoped NNReal Topology BoundedContinuousFunction +noncomputable section +namespace RegularPointCoordinates + +theorem paired_uniform_lipschitz_subsequence + {Y : ℕ → Type*} [∀ m, MetricSpace (Y m)] [∀ m, CompactSpace (Y m)] + (f : ∀ m, ℕ → ℕ → Y m → ℝ) (L : ℕ → ℕ → ℝ≥0) (A : ℕ → ℕ → ℝ) + (hl : ∀ m i k, LipschitzWith (L m i) (f m i k)) + (hb : ∀ m i k x, |f m i k x| ≤ A m i) : + ∃ (g : ∀ m, ℕ → Y m → ℝ) (a : ℕ → ℕ), StrictMono a ∧ + ∀ m i, LipschitzWith (L m i) (g m i) ∧ (∀ x, |g m i x| ≤ A m i) ∧ + TendstoUniformly (fun k => f m i (a k)) (g m i) atTop := by + let F : ∀ j : ℕ × ℕ, ℕ → Y j.1 →ᵇ ℝ := fun j k => + BoundedContinuousFunction.mkOfCompact ⟨f j.1 j.2 k,(hl j.1 j.2 k).continuous⟩ + have hc (j : ℕ × ℕ) : IsCompact (closure (range (F j))) := by + apply BoundedContinuousFunction.arzela_ascoli (Icc (-(A j.1 j.2)) (A j.1 j.2)) + isCompact_Icc (range (F j)) + · rintro q x ⟨k,rfl⟩ + exact abs_le.mp (hb j.1 j.2 k x) + · apply Metric.equicontinuous_of_continuity_modulus (fun r : ℝ => (L j.1 j.2:ℝ)*r) + (by simpa only [mul_zero] using + (show Continuous (fun r : ℝ => (L j.1 j.2:ℝ)*r) by fun_prop).tendsto (0:ℝ)) + rintro x y ⟨q,k,rfl⟩ + exact (hl j.1 j.2 k).dist_le_mul x y + obtain ⟨g,_,a,ha,hlim⟩ := (isCompact_pi_infinite hc).tendsto_subseq + (fun k j => subset_closure (mem_range_self k)) + have hm (m i : ℕ) : Tendsto (fun k => F (m,i) (a k)) atTop (𝓝 (g (m,i))) := + ((continuous_apply (m,i)).tendsto g).comp hlim + have hp (m i : ℕ) (x : Y m) : Tendsto (fun k => f m i (a k) x) atTop (𝓝 (g (m,i) x)) := + ((BoundedContinuousFunction.lipschitz_eval_const x).continuous.tendsto (g (m,i))).comp (hm m i) + refine ⟨fun m i => g (m,i),a,ha,?_⟩ + intro m i + refine ⟨?_,?_,BoundedContinuousFunction.tendsto_iff_tendstoUniformly.mp (hm m i)⟩ + · apply LipschitzWith.of_dist_le_mul + intro x y + exact le_of_tendsto ((hp m i x).dist (hp m i y)) + (Eventually.of_forall fun k => (hl m i (a k)).dist_le_mul x y) + · intro x + exact le_of_tendsto (hp m i x).abs (Eventually.of_forall fun k => hb m i (a k) x) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/PairedPathUniqueness.lean b/lean/OAI/Geometry/RCD/Transport/PairedPathUniqueness.lean new file mode 100644 index 0000000000000000000000000000000000000000..2bb679ac5a8dce0f01db624b2b5ff2758896eb12 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/PairedPathUniqueness.lean @@ -0,0 +1,52 @@ +import OAI.Geometry.RCD.Transport.PairedPrefixUniqueness +import Mathlib.Topology.Order.DenselyOrdered + +namespace OAI + +/-! # One common null set gives uniqueness of entire paired paths -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped ENNReal NNReal Topology +noncomputable section +namespace RegularPointCoordinates.NoncollapsedRCD +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] [SeparableSpace X] {K : ℝ} {n : ℕ} + [IsLocallyFiniteMeasure (hausdorff n X)] (hX : NoncollapsedRCD K n X) +include hX +attribute [local instance] pathBorel pathBorelSpace + +theorem paired_common_prefix_unique (hn : 2 ≤ n) (p : X) {R : ℝ} (hR : 0 ≤ R) + (π : Measure C(Time,X)) [IsProbabilityMeasure π] (hg : ∀ᵐ γ ∂π, IsGeodesic γ) + (hp : IsOptimalCoupling (π.map (fun γ => γ 0)) (π.map (fun γ => γ 1)) + (π.map (fun γ => (γ 0,γ 1)))) + {C : ℝ≥0} (hC : 0 < C) + (hc : ∀ t : Time, π.map (fun γ => γ t) ≤ ENNReal.ofReal C • hausdorff n X) + (hs₀ : ∀ᵐ x ∂π.map (fun γ => γ 0), dist x p ≤ R) + (hs₁ : ∀ᵐ x ∂π.map (fun γ => γ 1), dist x p ≤ R) + (σ : Measure (C(Time,X)×C(Time,X))) [IsFiniteMeasure σ] + (hl : σ.map Prod.fst ≤ π) (hr : σ.map Prod.snd ≤ π) + (T : Time) (hT : 0 < T) (hpast : ∀ᵐ z ∂σ, z ∈ pathAgreement (T:ℝ)) : + ∀ᵐ z ∂σ, z.1=z.2 := by + obtain ⟨D,hD,hdense,_,hnotop⟩ := exists_countable_dense_no_bot_top Time + let : Countable D := hD.to_subtype + have hq (q : D) : (q:Time) < 1 := by + by_contra h + have he : (q:Time)=1 := le_antisymm q.val.property.2 (le_of_not_gt h) + have hn := hnotop 1 (fun a => a.property.2) + exact hn (he ▸ q.property) + have ha : ∀ q : D, ∀ᵐ z ∂σ, z.1 (q:Time)=z.2 (q:Time) := + fun q => hX.paired_common_prefix_point hn p hR π hg hp hC hc hs₀ hs₁ σ hl hr T q hT (hq q) hpast + filter_upwards [ae_all_iff.mpr ha] with z hz + apply ContinuousMap.ext + have hclosed : IsClosed {q : Time | z.1 q=z.2 q} := + isClosed_eq z.1.continuous z.2.continuous + have hsub : D ⊆ {q : Time | z.1 q=z.2 q} := fun q hq => hz ⟨q,hq⟩ + have hall := closure_minimal hsub hclosed + rw [hdense.closure_eq] at hall + exact fun q => hall (mem_univ q) + +end RegularPointCoordinates.NoncollapsedRCD + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/PairedPrefixUniqueness.lean b/lean/OAI/Geometry/RCD/Transport/PairedPrefixUniqueness.lean new file mode 100644 index 0000000000000000000000000000000000000000..a34c0c18ae305d2f8c6c9f18b5271d226708fc71 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/PairedPrefixUniqueness.lean @@ -0,0 +1,64 @@ +import OAI.Geometry.RCD.Transport.NoResolvedBranchWindow + +namespace OAI + +/-! # A common positive prefix determines a compressed optimal path -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped ENNReal NNReal Topology +noncomputable section +namespace RegularPointCoordinates.NoncollapsedRCD +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] [SeparableSpace X] {K : ℝ} {n : ℕ} + [IsLocallyFiniteMeasure (hausdorff n X)] (hX : NoncollapsedRCD K n X) +include hX +attribute [local instance] pathBorel pathBorelSpace + +theorem paired_common_prefix_point (hn : 2 ≤ n) (p : X) {R : ℝ} (hR : 0 ≤ R) + (π : Measure C(Time,X)) [IsProbabilityMeasure π] (hg : ∀ᵐ γ ∂π, IsGeodesic γ) + (hp : IsOptimalCoupling (π.map (fun γ => γ 0)) (π.map (fun γ => γ 1)) + (π.map (fun γ => (γ 0,γ 1)))) + {C : ℝ≥0} (hC : 0 < C) + (hc : ∀ t : Time, π.map (fun γ => γ t) ≤ ENNReal.ofReal C • hausdorff n X) + (hs₀ : ∀ᵐ x ∂π.map (fun γ => γ 0), dist x p ≤ R) + (hs₁ : ∀ᵐ x ∂π.map (fun γ => γ 1), dist x p ≤ R) + (σ : Measure (C(Time,X)×C(Time,X))) [IsFiniteMeasure σ] + (hl : σ.map Prod.fst ≤ π) (hr : σ.map Prod.snd ≤ π) + (T q : Time) (hT : 0 < T) (hq : q < 1) + (hpast : ∀ᵐ z ∂σ, z ∈ pathAgreement (T:ℝ)) : + ∀ᵐ z ∂σ, z.1 q=z.2 q := by + by_cases hqT : q ≤ T + · exact hpast.mono fun z hz => hz q hqT + have hTq : T < q := lt_of_not_ge hqT + by_contra hbad + let F : Set (C(Time,X)×C(Time,X)) := {z | z.1 q ≠ z.2 q} + have hF : MeasurableSet F := (measurableSet_eq_fun + ((measurable_path_eval q).comp measurable_fst) + ((measurable_path_eval q).comp measurable_snd)).compl + have hFpos : σ F ≠ 0 := by + simpa only [ae_iff,F] using hbad + let ρ := σ.restrict F + have hρ0 : ρ univ ≠ 0 := by simpa only [ρ,Measure.restrict_apply_univ] using hFpos + have hρpast : ∀ᵐ z ∂ρ, z ∈ pathAgreement (T:ℝ) := + hpast.filter_mono Measure.restrict_le_self.absolutelyContinuous.ae_le + have hρdiff : ∀ᵐ z ∂ρ, z.1 q ≠ z.2 q := ae_restrict_mem hF + obtain ⟨S,hTS,hSq,hA,hA0,_⟩ := exists_resolved_branch_window ρ hρ0 T q hTq.le hρpast hρdiff + let A : Set (C(Time,X)×C(Time,X)) := {z | (lastPathAgreement q z:ℝ) < (S:ℝ)} + let κ := ρ.restrict A + have hκσ : κ ≤ σ := Measure.restrict_le_self.trans Measure.restrict_le_self + have hκpast : ∀ᵐ z ∂κ, z ∈ pathAgreement (T:ℝ) := + hpast.filter_mono hκσ.absolutelyContinuous.ae_le + have hκroot : ∀ᵐ z ∂κ, (T:ℝ) ≤ (lastPathAgreement q z:ℝ) ∧ + (lastPathAgreement q z:ℝ) < (S:ℝ) := by + filter_upwards [hκpast,ae_restrict_mem hA] with z hz ha + exact ⟨(lastPathAgreement_isGreatest q z).2 (Or.inr ⟨hTq.le,hz T le_rfl⟩),ha⟩ + exact hX.no_resolved_branch_window hn p hR π hg hp hC hc hs₀ hs₁ κ hA0 + ((Measure.map_mono hκσ measurable_fst).trans hl) + ((Measure.map_mono hκσ measurable_snd).trans hr) T S q hT hTS (hSq.trans hq) hSq.le + (hκpast.mono fun z hz => hz 0 T.property.1) hκroot + +end RegularPointCoordinates.NoncollapsedRCD + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/PairedSuffixUniqueness.lean b/lean/OAI/Geometry/RCD/Transport/PairedSuffixUniqueness.lean new file mode 100644 index 0000000000000000000000000000000000000000..ad5afe4e9d68f8c8e50dfed920181bea6ec1b3ef --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/PairedSuffixUniqueness.lean @@ -0,0 +1,77 @@ +import OAI.Geometry.RCD.Transport.PairedPathUniqueness +import OAI.Geometry.RCD.Transport.PathReversal + +namespace OAI + +/-! # The same uniqueness argument for a common terminal interval -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped ENNReal NNReal Topology +noncomputable section +namespace RegularPointCoordinates.NoncollapsedRCD +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] [SeparableSpace X] {K : ℝ} {n : ℕ} + [IsLocallyFiniteMeasure (hausdorff n X)] (hX : NoncollapsedRCD K n X) +include hX +attribute [local instance] pathBorel pathBorelSpace + +theorem paired_common_suffix_unique (hn : 2 ≤ n) (p : X) {R : ℝ} (hR : 0 ≤ R) + (π : Measure C(Time,X)) [IsProbabilityMeasure π] (hg : ∀ᵐ γ ∂π, IsGeodesic γ) + (hp : IsOptimalCoupling (π.map (fun γ => γ 0)) (π.map (fun γ => γ 1)) + (π.map (fun γ => (γ 0,γ 1)))) + {C : ℝ≥0} (hC : 0 < C) + (hc : ∀ t : Time, π.map (fun γ => γ t) ≤ ENNReal.ofReal C • hausdorff n X) + (hs₀ : ∀ᵐ x ∂π.map (fun γ => γ 0), dist x p ≤ R) + (hs₁ : ∀ᵐ x ∂π.map (fun γ => γ 1), dist x p ≤ R) + (σ : Measure (C(Time,X)×C(Time,X))) [IsFiniteMeasure σ] + (hl : σ.map Prod.fst ≤ π) (hr : σ.map Prod.snd ≤ π) + (q : Time) (hq : q < 1) + (hsuffix : ∀ᵐ z ∂σ, ∀ r : Time, q ≤ r → z.1 r=z.2 r) : + ∀ᵐ z ∂σ, z.1=z.2 := by + let : CompleteSpace X := hX.complete + let : Nonempty X := nonempty_of_isProbabilityMeasure (π.map (fun γ => γ 0)) + have hfin := coupling_transportCost_ne_top hp.1 hp.2.1 p + (integrable_dist_sq_of_ae_bounded _ p hs₀) (integrable_dist_sq_of_ae_bounded _ p hs₁) + obtain ⟨_,hgrev,hprev⟩ := geodesic_subpath_law π hg hp hfin 1 0 + let πr := π.map (subpath 1 0) + have hcomp (r : Time) : πr.map (fun γ => γ r) ≤ ENNReal.ofReal C • hausdorff n X := by + rw [show πr=π.map (subpath 1 0) from rfl,subpath_map_eval] + exact hc _ + have hprev' : IsOptimalCoupling (πr.map (fun γ => γ 0)) (πr.map (fun γ => γ 1)) + (πr.map (fun γ => (γ 0,γ 1))) := by + simpa only [πr,subpath_map_eval,timeSegment_zero,timeSegment_one] using hprev + have hsrev₀ : ∀ᵐ x ∂πr.map (fun γ => γ 0), dist x p ≤ R := by + simpa only [πr,subpath_map_eval,timeSegment_zero] using hs₁ + have hsrev₁ : ∀ᵐ x ∂πr.map (fun γ => γ 1), dist x p ≤ R := by + simpa only [πr,subpath_map_eval,timeSegment_one] using hs₀ + let F := fun z : C(Time,X)×C(Time,X) => (subpath 1 0 z.1,subpath 1 0 z.2) + have hF : Measurable F := ((subpath_measurable 1 0).comp measurable_fst).prodMk + ((subpath_measurable 1 0).comp measurable_snd) + have hlr : (σ.map F).map Prod.fst ≤ πr := by + simpa only [Measure.map_map measurable_fst hF, + Measure.map_map (subpath_measurable 1 0) measurable_fst,Function.comp_def,F] using + Measure.map_mono hl (subpath_measurable 1 0) + have hrr : (σ.map F).map Prod.snd ≤ πr := by + simpa only [Measure.map_map measurable_snd hF, + Measure.map_map (subpath_measurable 1 0) measurable_snd,Function.comp_def,F] using + Measure.map_mono hr (subpath_measurable 1 0) + have hqr : 0 < timeSegment 1 0 q := by + change (0:ℝ) < (timeSegment 1 0 q:ℝ) + rw [timeSegment_one_zero_coe] + exact sub_pos.mpr hq + have hpast : ∀ᵐ z ∂σ.map F, z ∈ pathAgreement (timeSegment 1 0 q:ℝ) := by + apply (ae_map_iff hF.aemeasurable (measurableSet_pathAgreement _)).mpr + filter_upwards [hsuffix] with z hz + intro r hr + exact reversed_pair_agreement q z.1 z.2 hz r + (by simpa only [timeSegment_one_zero_coe] using hr) + have hu := hX.paired_common_prefix_unique hn p hR πr hgrev hprev' hC hcomp hsrev₀ hsrev₁ + (σ.map F) hlr hrr (timeSegment 1 0 q) hqr hpast + have hpull := ae_of_ae_map (p:=fun z : C(Time,X)×C(Time,X) => z.1=z.2) hF.aemeasurable hu + exact hpull.mono fun z hz => subpath_reverse_injective hz + +end RegularPointCoordinates.NoncollapsedRCD + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/PathAgreement.lean b/lean/OAI/Geometry/RCD/Transport/PathAgreement.lean new file mode 100644 index 0000000000000000000000000000000000000000..e668b7f929ae44f7aee63889d42c29bb3dba86d0 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/PathAgreement.lean @@ -0,0 +1,58 @@ +import OAI.Geometry.RCD.Metric.IntervalMassDrop +import OAI.Geometry.RCD.Metric.SeparatedPairRestriction +import OAI.Analysis.RCDHeat.DynamicalPlan + +namespace OAI + +/-! # Measurable common prefixes of paired paths -/ + +open Set Filter MeasureTheory TopologicalSpace +open scoped Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] + +def pathAgreement (t : ℝ) : Set (C(Time,X)×C(Time,X)) := + {z | ∀ r : Time, (r:ℝ)≤t → z.1 r=z.2 r} + +theorem antitone_pathAgreement : Antitone (pathAgreement (X:=X)) := by + intro s t hst z hz r hr + exact hz r (hr.trans hst) + +theorem isClosed_pathAgreement (t : ℝ) : IsClosed (pathAgreement (X:=X) t) := by + change IsClosed {z : C(Time,X)×C(Time,X) | ∀ r : Time, (r:ℝ)≤t → z.1 r=z.2 r} + simp only [ofPred_forall] + apply isClosed_iInter + intro r + apply isClosed_iInter + intro _ + exact isClosed_eq ((continuous_eval_const r).comp continuous_fst) + ((continuous_eval_const r).comp continuous_snd) + +variable [MeasurableSpace X] [BorelSpace X] [SeparableSpace X] +attribute [local instance] pathBorel pathBorelSpace + +omit [MeasurableSpace X] [BorelSpace X] in +theorem measurableSet_pathAgreement (t : ℝ) : MeasurableSet (pathAgreement (X:=X) t) := + (isClosed_pathAgreement t).measurableSet + +omit [MeasurableSpace X] [BorelSpace X] in +theorem exists_path_agreement_mass_drop (σ : Measure (C(Time,X)×C(Time,X))) + [IsFiniteMeasure σ] {a b : ℝ} (hab : a≤b) {n : ℕ} (hn : 0 z.1 r)=(σ.restrict S).map (fun z => z.2 r) := by + apply Measure.map_congr + exact (ae_restrict_mem hS).mono fun z hz => hSa hz r hr + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/PathMeetingSplice.lean b/lean/OAI/Geometry/RCD/Transport/PathMeetingSplice.lean new file mode 100644 index 0000000000000000000000000000000000000000..d4f995e08d51ad6ad49971826d11077e9acd896f --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/PathMeetingSplice.lean @@ -0,0 +1,90 @@ +import OAI.Geometry.RCD.Transport.LastPathAgreement +import OAI.Analysis.RCDHeat.ExistingAnalytic + +namespace OAI + +/-! # Splicing equal-speed geodesics at a meeting point -/ + +open Set Filter MeasureTheory TopologicalSpace +open scoped Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] + +def splicePathAt (t : Time) (γ ζ : C(Time,X)) (h : γ t=ζ t) : C(Time,X) where + toFun s := if s ≤ t then γ s else ζ s + continuous_toFun := γ.continuous.if_le ζ.continuous continuous_id continuous_const + (fun s hs => by simpa only [hs] using h) + +theorem splicePathAt_left (t : Time) (γ ζ : C(Time,X)) (h : γ t=ζ t) + {s : Time} (hs : s ≤ t) : splicePathAt t γ ζ h s=γ s := by + simp [splicePathAt,hs] + +theorem splicePathAt_right (t : Time) (γ ζ : C(Time,X)) (h : γ t=ζ t) + {s : Time} (hs : t ≤ s) : splicePathAt t γ ζ h s=ζ s := by + rcases eq_or_lt_of_le hs with he | he + · subst s + simpa [splicePathAt] using h + · simp [splicePathAt,not_le.mpr he] + +theorem splicePathAt_zero (t : Time) (γ ζ : C(Time,X)) (h : γ t=ζ t) : + splicePathAt t γ ζ h 0=γ 0 := + splicePathAt_left t γ ζ h t.property.1 + +theorem splicePathAt_one (t : Time) (γ ζ : C(Time,X)) (h : γ t=ζ t) : + splicePathAt t γ ζ h 1=ζ 1 := + splicePathAt_right t γ ζ h t.property.2 + +theorem geodesic_length_eq_of_meeting {γ ζ : C(Time,X)} + (hγ : IsGeodesic γ) (hζ : IsGeodesic ζ) (h0 : γ 0=ζ 0) + {t : Time} (ht : 0<(t:ℝ)) (he : γ t=ζ t) : + dist (γ 0) (γ 1)=dist (ζ 0) (ζ 1) := by + have hg := hγ 0 t + have hz := hζ 0 t + change dist (γ 0) (γ t) = |0-(t:ℝ)| * dist (γ 0) (γ 1) at hg + change dist (ζ 0) (ζ t) = |0-(t:ℝ)| * dist (ζ 0) (ζ 1) at hz + rw [h0,he] at hg + rw [zero_sub,abs_neg,abs_of_pos ht] at hg hz + rw [h0] + nlinarith + +theorem splicePathAt_isGeodesic (t : Time) (γ ζ : C(Time,X)) (he : γ t=ζ t) + (hγ : IsGeodesic γ) (hζ : IsGeodesic ζ) (h0 : γ 0=ζ 0) + (hlen : dist (γ 0) (γ 1)=dist (ζ 0) (ζ 1)) : + IsGeodesic (splicePathAt t γ ζ he) := by + have hordered (s u : Time) (hsu : s ≤ u) : + dist (splicePathAt t γ ζ he s) (splicePathAt t γ ζ he u) ≤ + ((u:ℝ)-(s:ℝ))*dist (ζ 0) (ζ 1) := by + by_cases hut : u ≤ t + · rw [splicePathAt_left t γ ζ he (hsu.trans hut),splicePathAt_left t γ ζ he hut, + hγ,hlen,abs_sub_comm (s:ℝ) (u:ℝ), + abs_of_nonneg (sub_nonneg.mpr (show (s:ℝ) ≤ (u:ℝ) from hsu))] + by_cases hts : t ≤ s + · rw [splicePathAt_right t γ ζ he hts,splicePathAt_right t γ ζ he (hts.trans hsu), + hζ,abs_sub_comm (s:ℝ) (u:ℝ), + abs_of_nonneg (sub_nonneg.mpr (show (s:ℝ) ≤ (u:ℝ) from hsu))] + have hst : s ≤ t := (lt_of_not_ge hts).le + have htu : t ≤ u := (lt_of_not_ge hut).le + rw [splicePathAt_left t γ ζ he hst,splicePathAt_right t γ ζ he htu] + calc + dist (γ s) (ζ u) ≤ dist (γ s) (γ t)+dist (γ t) (ζ u) := dist_triangle _ _ _ + _ = ((t:ℝ)-(s:ℝ))*dist (ζ 0) (ζ 1)+((u:ℝ)-(t:ℝ))*dist (ζ 0) (ζ 1) := by + rw [hγ,he,hζ,hlen,abs_sub_comm (s:ℝ) (t:ℝ), + abs_of_nonneg (sub_nonneg.mpr (show (s:ℝ) ≤ (t:ℝ) from hst)),abs_sub_comm (t:ℝ) (u:ℝ), + abs_of_nonneg (sub_nonneg.mpr (show (t:ℝ) ≤ (u:ℝ) from htu))] + _ = _ := by ring + apply isGeodesic_of_dist_le + intro s u + rw [splicePathAt_zero,splicePathAt_one,h0] + rcases le_total s u with hsu | hus + · rw [abs_sub_comm (s:ℝ) (u:ℝ), + abs_of_nonneg (sub_nonneg.mpr (show (s:ℝ) ≤ (u:ℝ) from hsu))] + exact hordered s u hsu + · rw [abs_of_nonneg (sub_nonneg.mpr (show (u:ℝ) ≤ (s:ℝ) from hus)),dist_comm] + exact hordered u s hus + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/PathReversal.lean b/lean/OAI/Geometry/RCD/Transport/PathReversal.lean new file mode 100644 index 0000000000000000000000000000000000000000..f13996ac08d859be62fe7541f06c6c30040d53c9 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/PathReversal.lean @@ -0,0 +1,41 @@ +import OAI.Analysis.RCDHeat.CompressionIntegral +import OAI.Geometry.RCD.Transport.PathAgreement + +namespace OAI + +/-! # Time reversal and final-interval agreement -/ + +open Set +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] + +@[simp] theorem timeSegment_one_zero_coe (t : Time) : (timeSegment 1 0 t:ℝ)=1-(t:ℝ) := by + simp [timeSegment] + +@[simp] theorem timeSegment_reverse_reverse (t : Time) : + timeSegment 1 0 (timeSegment 1 0 t)=t := by + apply Subtype.ext + simp + +@[simp] theorem subpath_reverse_reverse (γ : C(Time,X)) : subpath 1 0 (subpath 1 0 γ)=γ := by + ext t + change γ (timeSegment 1 0 (timeSegment 1 0 t))=γ t + rw [timeSegment_reverse_reverse] + +theorem subpath_reverse_injective : Function.Injective (subpath (X:=X) 1 0) := by + intro γ ζ he + have h := congrArg (subpath 1 0) he + simpa only [subpath_reverse_reverse] using h + +theorem reversed_pair_agreement (q : Time) (γ ζ : C(Time,X)) + (he : ∀ r : Time, q ≤ r → γ r=ζ r) : + (subpath 1 0 γ,subpath 1 0 ζ) ∈ pathAgreement (1-(q:ℝ)) := by + intro r hr + apply he + change (q:ℝ) ≤ (timeSegment 1 0 r:ℝ) + rw [timeSegment_one_zero_coe] + linarith + +end RegularPointCoordinates + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/PlanEndpointComparison.lean b/lean/OAI/Geometry/RCD/Transport/PlanEndpointComparison.lean new file mode 100644 index 0000000000000000000000000000000000000000..a7416fc51ea183bff1fcde788539636e65dbd805 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/PlanEndpointComparison.lean @@ -0,0 +1,62 @@ +import OAI.Geometry.RCD.Transport.NearbyBallPlan + +namespace OAI + +/-! # Endpoint value and cost errors for small-ball transport plans -/ + +open Set Filter Metric MeasureTheory +open scoped ENNReal NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +omit [MeasurableSpace X] [BorelSpace X] in +theorem endpoint_ball_plan_cost_bound (π : Measure C(Time,X)) [IsProbabilityMeasure π] + (hL : MemLp (fun γ : C(Time,X) => dist (γ 0) (γ 1)) 2 π) + (x y : X) {ρ : ℝ} + (hs : ∀ᵐ γ ∂π, dist (γ 0) x < ρ ∧ dist (γ 1) y < ρ) : + (∫ γ : C(Time,X), (dist (γ 0) (γ 1))^2 ∂π) ≤ (dist x y+2*ρ)^2 := by + have hb : ∀ᵐ γ ∂π, (dist (γ 0) (γ 1))^2 ≤ (dist x y+2*ρ)^2 := by + filter_upwards [hs] with γ hγ + have h0 := dist_triangle (γ 0) x y + have h1 := dist_triangle (γ 0) y (γ 1) + rw [dist_comm y (γ 1)] at h1 + apply pow_le_pow_left₀ dist_nonneg + linarith [hγ.1,hγ.2] + have hi := integral_mono_ae hL.integrable_sq (integrable_const ((dist x y+2*ρ)^2)) hb + simpa only [integral_const,probReal_univ,smul_eq_mul,one_mul] using hi + +theorem plan_endpoint_lipschitz_error (π : Measure C(Time,X)) [IsProbabilityMeasure π] + (f : X → ℝ) (hf : Measurable f) {Ω : Set X} {L : ℝ≥0} + (hL : LipschitzOnWith L f Ω) (x : X) (hx : x ∈ Ω) + (t : Time) {ρ : ℝ} + (hs : ∀ᵐ γ ∂π, γ t ∈ Ω ∧ dist (γ t) x < ρ) : + |(∫ γ : C(Time,X), f (γ t) ∂π)-f x| ≤ (L:ℝ)*ρ := by + have hbound : ∀ᵐ γ ∂π, |f (γ t)-f x| ≤ (L:ℝ)*ρ := by + filter_upwards [hs] with γ hγ + have hh := hL.dist_le_mul _ hγ.1 x hx + rw [Real.dist_eq] at hh + exact hh.trans (mul_le_mul_of_nonneg_left hγ.2.le L.coe_nonneg) + have hi : Integrable (fun γ : C(Time,X) => f (γ t)-f x) π := + Integrable.of_bound ((hf.comp (measurable_path_eval t)).aestronglyMeasurable.sub aestronglyMeasurable_const) + ((L:ℝ)*ρ) (by simpa only [Real.norm_eq_abs] using hbound) + have hfint : Integrable (fun γ : C(Time,X) => f (γ t)) π := by + have hh : Integrable (fun γ : C(Time,X) => (f (γ t)-f x)+f x) π := + hi.add (integrable_const (f x)) + simpa only [sub_add_cancel] using hh + have he : (∫ γ : C(Time,X), f (γ t) ∂π)-f x = + ∫ γ : C(Time,X), f (γ t)-f x ∂π := by + rw [integral_sub hfint (integrable_const _),integral_const, + probReal_univ,smul_eq_mul,one_mul] + rw [he] + calc + _ ≤ ∫ γ : C(Time,X), |f (γ t)-f x| ∂π := abs_integral_le_integral_abs + _ ≤ ∫ _ : C(Time,X), (L:ℝ)*ρ ∂π := integral_mono_ae hi.abs (integrable_const _) hbound + _ = _ := by rw [integral_const,probReal_univ,smul_eq_mul,one_mul] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/PlanEntropyDerivative.lean b/lean/OAI/Geometry/RCD/Transport/PlanEntropyDerivative.lean new file mode 100644 index 0000000000000000000000000000000000000000..75e73363108a7bfcba9a70e42341165ae0737731 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/PlanEntropyDerivative.lean @@ -0,0 +1,67 @@ +import OAI.Geometry.RCD.Heat.ExactEntropyPower +import OAI.Geometry.RCD.Coordinates.RegularizedEntropyFirstVariation +import OAI.Geometry.RCD.Heat.EntropyPowerBarrier + +namespace OAI + +/-! # Finite-dimensional first variation on the actual compressed RCD plan -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped ENNReal NNReal Topology +noncomputable section +namespace RegularPointCoordinates.NoncollapsedRCD +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] [SeparableSpace X] {K : ℝ} {n : ℕ} + [IsLocallyFiniteMeasure (hausdorff n X)] (hX : NoncollapsedRCD K n X) +include hX +attribute [local instance] pathBorel pathBorelSpace + +theorem entropic_plan_first_variation (hn : 2 ≤ n) (hK : K ≤ 0) + {N : ℝ} (hN : (n:ℝ) ≤ N) (a : RenyiTransportNode n X) + (π : Measure C(Time,X)) [IsProbabilityMeasure π] + (hg : ∀ᵐ γ ∂π, IsGeodesic γ) + (hp : IsOptimalCoupling a.left a.right (π.map (fun γ => (γ 0,γ 1)))) + {C : ℝ≥0} (hC : 0 < C) + (hc : ∀ t : Time, π.map (fun γ => γ t) ≤ ENNReal.ofReal C • hausdorff n X) + (r : Lp ℝ 2 (hausdorff n X)) {h : X → ℝ} + (hr : (r : X → ℝ) =ᵐ[hausdorff n X] fun x => h x^2) + (hrn : (fun x => h x^2) =ᵐ[hausdorff n X] fun x => (a.left.rnDeriv (hausdorff n X) x).toReal) + {d : ℝ} (hd : Tendsto (regularizedPlanLogSecant π h) (𝓝[>] (0:ℝ)) (𝓝 d)) : + d ≤ entropyPowerRate N (-(K*(wassersteinSq a.left a.right).toReal/N)) + (Real.exp (-boltzmannEntropy (hausdorff n X) a.left/N)) + (Real.exp (-boltzmannEntropy (hausdorff n X) a.right/N)) := by + let μ := hausdorff n X + let c := -(K*(wassersteinSq a.left a.right).toReal/N) + let A := Real.exp (-boltzmannEntropy μ a.left/N) + let B := Real.exp (-boltzmannEntropy μ a.right/N) + let := a.left_probability + let := a.right_probability + have hnR : (2:ℝ) ≤ n := by exact_mod_cast hn + have hN0 : 0 < N := by linarith + have hc0 : 0 ≤ c := neg_nonneg.mpr (div_nonpos_of_nonpos_of_nonneg + (mul_nonpos_of_nonpos_of_nonneg hK ENNReal.toReal_nonneg) hN0.le) + have he := optimalPlan_endpoints a.left a.right π hp + have hs (s : Time) : ∀ᵐ x ∂π.map (fun γ => γ s), x ∈ closedBall a.center (3*a.radius) := by + apply (ae_map_iff (measurable_path_eval s).aemeasurable measurableSet_closedBall).mpr + exact (optimal_geodesic_plan_bounded _ _ π hg hp a.center a.radius_nonneg + a.left_support a.right_support).mono fun γ hγ => hγ.2 s + let : IsFiniteMeasure (μ.restrict (closedBall a.center (3*a.radius))) := + isFiniteMeasure_restrict.mpr (isCompact_closedBall a.center (3*a.radius)).measure_lt_top.ne + have het (s : Time) := entropy_integrable_of_bounded_support μ (π.map (fun γ => γ s)) + ENNReal.ofReal_ne_top (hc s) measurableSet_closedBall (hs s) + have hA : 0 < A := Real.exp_pos _ + have hbar (s : Time) : entropyPowerChord c A B s ≤ + Real.exp (-boltzmannEntropy μ (π.map (fun γ => γ s))/N) := + hX.exact_entropy_power_interpolation hn hK hN a π hg hp hC hc s + have hh := regularized_entropy_power_first_variation μ a.left r hr hrn + (by simpa only [he.1] using het 0) π he.1 ENNReal.ofReal_ne_top hc measurableSet_closedBall hs het + hN0 (entropyPowerChord_zero hc0 A B) (hasDerivAt_entropyPowerChord_zero c A B) hbar hd + change d ≤ entropyPowerRate N c A B + rw [entropyPowerRate_eq hc0 hA] + simpa only [entropyPowerChord_zero hc0] using hh + +end RegularPointCoordinates.NoncollapsedRCD + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/PlanGradientMean.lean b/lean/OAI/Geometry/RCD/Transport/PlanGradientMean.lean new file mode 100644 index 0000000000000000000000000000000000000000..7d90369eecf0eefce7757862d74f96b0177ad57c --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/PlanGradientMean.lean @@ -0,0 +1,56 @@ +import OAI.Analysis.RCDHeat.ExistingAnalytic + +namespace OAI + +/-! # Mean endpoint control from a bounded relaxed gradient -/ + +open Set Filter MeasureTheory +open scoped ENNReal NNReal Topology + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) [μ.Regular] +attribute [local instance] pathBorel pathBorelSpace + +/-- A bounded-compression geodesic plan reads the actual relaxed gradient +as an upper gradient, without a compression factor in the final bound. -/ +theorem IsRelaxedSlope.testPlan_mean_increment_le + (π : Measure C(Time,X)) [IsProbabilityMeasure π] + (hgeo : ∀ᵐ γ ∂π, IsGeodesic γ) {C : ℝ≥0∞} (hC : C ≠ ∞) + (hcomp : ∀ t : Time, π.map (fun γ => γ t) ≤ C • μ) + (hD : MemLp (fun γ : C(Time,X) => dist (γ 0) (γ 1)) 2 π) + {D L : ℝ} (hL : 0 ≤ L) (hDb : ∀ᵐ γ ∂π, dist (γ 0) (γ 1) ≤ D) + {u G : Lp ℝ 2 μ} (hG : IsRelaxedSlope μ u G) (hGb : ∀ᵐ x ∂μ, G x ≤ L) : + (∫ γ : C(Time,X), |u (γ 1)-u (γ 0)| ∂π) ≤ D*L := by + have hflux (r : ℝ) : (∫ γ : C(Time,X), dist (γ 0) (γ 1)*G (geodesicExtension γ r) ∂π) ≤ D*L := by + let t := Set.projIcc 0 1 zero_le_one r + have hgb : ∀ᵐ γ ∂π, G (γ t) ≤ L := ae_of_ae_map (measurable_path_eval t).aemeasurable + ((Measure.absolutelyContinuous_of_le_smul (hcomp t)).ae_le hGb) + have hi : Integrable (fun γ : C(Time,X) => dist (γ 0) (γ 1)*G (γ t)) π := + hD.integrable_mul (compressionPullback_memLp μ π _ (measurable_path_eval t) hC (hcomp t) G) + calc + _ ≤ ∫ _γ : C(Time,X), D*L ∂π := by + apply integral_mono_ae hi (integrable_const _) + filter_upwards [hgb,hDb] with γ hg hd + exact (mul_le_mul_of_nonneg_left hg dist_nonneg).trans + (mul_le_mul_of_nonneg_right hd hL) + _ = _ := by simp + have hh := hG.testPlan_integrated_subinterval μ π hgeo hC hcomp hD 1 + have hI : IntervalIntegrable (fun r => ∫ γ : C(Time,X), + dist (γ 0) (γ 1)*G (geodesicExtension γ r) ∂π) volume 0 1 := + (testPlan_flux_continuous μ π hgeo hC hcomp hD G).intervalIntegrable 0 1 + have hupper : (∫ r in (0:ℝ)..1, ∫ γ : C(Time,X), + dist (γ 0) (γ 1)*G (geodesicExtension γ r) ∂π) ≤ D*L := by + calc + _ ≤ ∫ _r in (0:ℝ)..1, D*L := + intervalIntegral.integral_mono_on zero_le_one hI intervalIntegrable_const (fun r _ => hflux r) + _ = _ := by simp + exact hh.trans hupper + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/PlanLimitMarginals.lean b/lean/OAI/Geometry/RCD/Transport/PlanLimitMarginals.lean new file mode 100644 index 0000000000000000000000000000000000000000..3dca5ab5b7103edea603e078b7ea276dceccb7a9 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/PlanLimitMarginals.lean @@ -0,0 +1,66 @@ +import OAI.Geometry.RCD.Transport.PointedTransportMarginals + +namespace OAI + +/-! # Identification of the marginals of a limiting endpoint law -/ + +open Set Filter MeasureTheory +open scoped Topology +noncomputable section +namespace RegularPointCoordinates +variable {X Y : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [MetricSpace Y] [MeasurableSpace Y] [BorelSpace Y] [SecondCountableTopology Y] +attribute [local instance] pathBorel pathBorelSpace + +theorem mapped_plan_limit_marginals + (P : ℕ → ProbabilityMeasure C(Time,X)) (v : ℕ → X → Y) + (hm : ∀ k, Measurable (v k)) (ν₀ ν₁ : ℕ → ProbabilityMeasure X) + (hend0 : ∀ k, (P k : Measure C(Time,X)).map (fun γ => γ 0)=ν₀ k) + (hend1 : ∀ k, (P k : Measure C(Time,X)).map (fun γ => γ 1)=ν₁ k) + {Q : ProbabilityMeasure (Y×Y)} + (hpair : Tendsto (fun k => (P k).map (fun γ => (v k (γ 0),v k (γ 1)))) atTop (𝓝 Q)) + {α β : ProbabilityMeasure Y} + (hα : Tendsto (fun k => (ν₀ k).map (v k)) atTop (𝓝 α)) + (hβ : Tendsto (fun k => (ν₁ k).map (v k)) atTop (𝓝 β)) : + (Q : Measure (Y×Y)).map Prod.fst=α ∧ (Q : Measure (Y×Y)).map Prod.snd=β := by + have heq (k : ℕ) (j : Time) (ν : ProbabilityMeasure X) + (hj : (P k : Measure C(Time,X)).map (fun γ => γ j)=ν) : + (P k).map (fun γ => v k (γ j))=ν.map (v k) := by + apply ProbabilityMeasure.toMeasure_injective + simp only [ProbabilityMeasure.toMeasure_map] + calc + _ = Measure.map ((v k) ∘ fun γ => γ j) (P k : Measure C(Time,X)) := rfl + _ = Measure.map (v k) ((P k : Measure C(Time,X)).map (fun γ => γ j)) := + (Measure.map_map (hm k) (measurable_path_eval j)).symm + _ = _ := congrArg (Measure.map (v k)) hj + have hp0 := ProbabilityMeasure.tendsto_map_of_tendsto_of_continuous _ _ hpair continuous_fst + have hp1 := ProbabilityMeasure.tendsto_map_of_tendsto_of_continuous _ _ hpair continuous_snd + have he (k : ℕ) : Measurable (fun γ : C(Time,X) => (v k (γ 0),v k (γ 1))) := + ((hm k).comp (measurable_path_eval 0)).prodMk ((hm k).comp (measurable_path_eval 1)) + have hf (k : ℕ) : + ((P k).map (fun γ => (v k (γ 0),v k (γ 1)))).map Prod.fst=(ν₀ k).map (v k) := by + calc + _ = (P k).map (fun γ => v k (γ 0)) := by + apply ProbabilityMeasure.toMeasure_injective + simpa only [ProbabilityMeasure.toMeasure_map,Function.comp_def] using + Measure.map_map measurable_fst (he k) (μ := (P k : Measure C(Time,X))) + _ = _ := heq k 0 (ν₀ k) (hend0 k) + have hg (k : ℕ) : + ((P k).map (fun γ => (v k (γ 0),v k (γ 1)))).map Prod.snd=(ν₁ k).map (v k) := by + calc + _ = (P k).map (fun γ => v k (γ 1)) := by + apply ProbabilityMeasure.toMeasure_injective + simpa only [ProbabilityMeasure.toMeasure_map,Function.comp_def] using + Measure.map_map measurable_snd (he k) (μ := (P k : Measure C(Time,X))) + _ = _ := heq k 1 (ν₁ k) (hend1 k) + simp only [hf] at hp0 + simp only [hg] at hp1 + have hh0 := congrArg ProbabilityMeasure.toMeasure (tendsto_nhds_unique hp0 hα) + have hh1 := congrArg ProbabilityMeasure.toMeasure (tendsto_nhds_unique hp1 hβ) + simpa only [ProbabilityMeasure.toMeasure_map] using And.intro hh0 hh1 + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/PlanLogDensity.lean b/lean/OAI/Geometry/RCD/Transport/PlanLogDensity.lean new file mode 100644 index 0000000000000000000000000000000000000000..f1bfabacb55833c2bcab50bb31856f59e550d8fc --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/PlanLogDensity.lean @@ -0,0 +1,39 @@ +import OAI.Geometry.RCD.Metric.LogInverseDensity +import OAI.Geometry.RCD.Transport.BoundedPlanEntropyBounds + +namespace OAI + +/-! # Logarithmic density identities along the actual bounded transport law -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped ENNReal NNReal Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] [SeparableSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem bounded_plan_log_density (μ : Measure X) [SigmaFinite μ] [IsLocallyFiniteMeasure μ] + (p : X) {R : ℝ} (hR : 0 ≤ R) + (π : Measure C(Time,X)) [IsProbabilityMeasure π] (hg : ∀ᵐ γ ∂π, IsGeodesic γ) + (hp : IsOptimalCoupling (π.map (fun γ => γ 0)) (π.map (fun γ => γ 1)) + (π.map (fun γ => (γ 0,γ 1)))) + {C : ℝ} (hC : 0 < C) (hc : ∀ t : Time, π.map (fun γ => γ t) ≤ ENNReal.ofReal C • μ) + (hs₀ : ∀ᵐ x ∂π.map (fun γ => γ 0), dist x p ≤ R) + (hs₁ : ∀ᵐ x ∂π.map (fun γ => γ 1), dist x p ≤ R) (N : ℝ) (t : Time) : + Integrable (fun γ => Real.log (((π.map (fun γ => γ t)).rnDeriv μ (γ t))^(-(1/N))).toReal) π ∧ + (∫ γ, Real.log (((π.map (fun γ => γ t)).rnDeriv μ (γ t))^(-(1/N))).toReal ∂π)= + -(boltzmannEntropy μ (π.map (fun γ => γ t)))/N := by + have he := (bounded_plan_entropy_bounds μ p hR π hg hp hC hc hs₀ hs₁ t).2.2 + have hl := log_inverse_density_integral μ (π.map (fun γ => γ t)) + (Measure.absolutelyContinuous_of_le_smul (hc t)) he N + refine ⟨hl.1.comp_measurable (measurable_path_eval t),?_⟩ + rw [←integral_map (measurable_path_eval t).aemeasurable + ((((π.map (fun γ => γ t)).measurable_rnDeriv μ).pow_const _).ennreal_toReal.log).aestronglyMeasurable] + exact hl.2 + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/PlanMeanEnergy.lean b/lean/OAI/Geometry/RCD/Transport/PlanMeanEnergy.lean new file mode 100644 index 0000000000000000000000000000000000000000..aa733e2bd782db675e573a60b6e045a07da5f1e5 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/PlanMeanEnergy.lean @@ -0,0 +1,49 @@ +import OAI.Geometry.RCD.Transport.TransportCostEnergy + +namespace OAI + +/-! # Mean variation along a fixed compressed transport plan -/ + +open Set Filter MeasureTheory +open scoped Topology ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem SobolevSpace.plan_mean_energy (μ : Measure X) [μ.Regular] + (hQ : QuadraticCheegerEnergy μ) (w : SobolevSpace μ hQ) + (P : ProbabilityMeasure C(Time,X)) + (hgeo : ∀ᵐ γ ∂(P : Measure C(Time,X)), IsGeodesic γ) + {C : ℝ≥0∞} (hC : C≠⊤) + (hcomp : ∀ t : Time, (P : Measure C(Time,X)).map (fun γ => γ t)≤C • μ) + (hD : MemLp (fun γ : C(Time,X) => dist (γ 0) (γ 1)) 2 (P : Measure C(Time,X))) + {Ω : Set X} (hstay : ∀ t : Time, ∀ᵐ x ∂(P : Measure C(Time,X)).map (fun γ => γ t), x∈Ω) : + ((∫ γ : C(Time,X), SobolevSpace.toLp μ hQ w (γ 1) ∂(P : Measure C(Time,X)))- + (∫ γ : C(Time,X), SobolevSpace.toLp μ hQ w (γ 0) ∂(P : Measure C(Time,X))))^2≤ + (∫ γ : C(Time,X), dist (γ 0) (γ 1)^2 ∂(P : Measure C(Time,X)))* + (C.toReal*∫ x in Ω, localGamma μ hQ w w x ∂μ) := by + let u := SobolevSpace.toLp μ hQ w + have hu (t : Time) : MemLp (fun γ : C(Time,X) => u (γ t)) 2 (P : Measure C(Time,X)) := + compressionPullback_memLp μ (P : Measure C(Time,X)) _ (measurable_path_eval t) hC (hcomp t) u + have hh := norm_integral_le_integral_norm (μ := (P : Measure C(Time,X))) + (fun γ : C(Time,X) => u (γ 1)-u (γ 0)) + rw [integral_sub ((hu 1).integrable (by norm_num)) ((hu 0).integrable (by norm_num)), + Real.norm_eq_abs] at hh + have hs := pow_le_pow_left₀ (abs_nonneg _) hh 2 + simp only [Real.norm_eq_abs,sq_abs] at hs + have hb := (SobolevSpace.minimalSlope_isRelaxed μ hQ w).testPlan_cost_energy μ + (P : Measure C(Time,X)) hgeo hC hcomp hD hstay + have he : (∫ x in Ω, (SobolevSpace.minimalSlope μ hQ w x)^2 ∂μ)= + ∫ x in Ω, localGamma μ hQ w w x ∂μ := by + apply integral_congr_ae + filter_upwards [ae_restrict_of_ae (localGamma_self μ hQ w)] with x hx + exact hx.symm + rw [he] at hb + exact hs.trans hb + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/PointedGeodesicBall.lean b/lean/OAI/Geometry/RCD/Transport/PointedGeodesicBall.lean new file mode 100644 index 0000000000000000000000000000000000000000..1dac9f0fe91948ad5c95624243d2f2d7d3c966b9 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/PointedGeodesicBall.lean @@ -0,0 +1,85 @@ +import OAI.Geometry.RCD.Transport.PointedGeodesicInterpolation +import OAI.Geometry.RCD.Harmonic.PointedRadialDistance +import OAI.Analysis.RCDHeat.DynamicalPlan + +namespace OAI + +/-! # Source geodesics remain asymptotically in the Euclidean endpoint ball -/ + +open Set Filter Metric MeasureTheory +open scoped Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] + +theorem pointed_geodesic_radius_bound {n : ℕ} {p : X} {r S ρ ε : ℝ} + (hr : 0 4*ε k+Real.sqrt (2*(ε k*(4*ρ+ε k)))) atTop (𝓝 0) := by + simpa only [mul_zero,zero_mul,Real.sqrt_zero,add_zero] using + (hεlim.const_mul 4).add (((hεlim.mul (hεlim.const_add (4*ρ))).const_mul 2).sqrt) + filter_upwards [he.eventually (Iio_mem_nhds (sub_pos.mpr hρR))] with k hk + filter_upwards [hgeo k,h0 k,h1 k] with γ hγ hγ0 hγ1 + intro t + apply (div_le_iff₀ (hr k)).mp + exact (pointed_geodesic_radius_bound (hr k) hρ (hε k) hroom (hv k) hγ hγ0 hγ1 t).trans + (by linarith) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/PointedGeodesicInterpolation.lean b/lean/OAI/Geometry/RCD/Transport/PointedGeodesicInterpolation.lean new file mode 100644 index 0000000000000000000000000000000000000000..b65857a1f0b156a3761da399d1946800e0280e0f --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/PointedGeodesicInterpolation.lean @@ -0,0 +1,70 @@ +import OAI.Geometry.RCD.Metric.EuclideanSegmentError + +namespace OAI + +/-! # Images of short source geodesics approach Euclidean affine segments + +This estimate applies to every geodesic in a bounded endpoint region; no +choice of optimal plan or pointwise regularity of the approximation map +is required. +-/ + +open Set Metric +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] + +theorem pointed_geodesic_interpolation {n : ℕ} {p : X} {r S ρ ε : ℝ} + (hr : 0 pointedHopfError t M (ε k) (e k)) atTop (𝓝 0) := by + have hc : Continuous (fun p : ℝ×ℝ => pointedHopfError t M p.1 p.2) := by + unfold pointedHopfError + fun_prop + simpa only [pointedHopfError,Function.comp_def,mul_zero,zero_mul,add_zero,zero_div] using + hc.continuousAt.tendsto.comp (hε.prodMk_nhds he) + +theorem pointedHopfSlopeError_tendsto {t M : ℝ} {ε e : ℕ → ℝ} + (hε : Tendsto ε atTop (𝓝 0)) (he : Tendsto e atTop (𝓝 0)) : + Tendsto (fun k => (Real.sqrt (2*t*pointedHopfError t M (ε k) (e k))+ε k)/t) + atTop (𝓝 0) := by + have h := (((pointedHopfError_tendsto (t:=t) (M:=M) hε he).const_mul (2*t)).sqrt.add hε).div_const t + simpa only [mul_zero,Real.sqrt_zero,zero_add,zero_div] using h + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/PointedHopfLaxLower.lean b/lean/OAI/Geometry/RCD/Transport/PointedHopfLaxLower.lean new file mode 100644 index 0000000000000000000000000000000000000000..2c5d543a928eeeaaff1965c4e69bc08a306b285a --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/PointedHopfLaxLower.lean @@ -0,0 +1,59 @@ +import OAI.Geometry.RCD.Coordinates.QuadraticMetricError +import OAI.Analysis.RCDHeat.HopfHeat + +namespace OAI + +/-! # Lower convergence bound for the actual Hopf--Lax recovered tests -/ + +open Set Metric +open scoped NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [ProperSpace X] + +theorem pointed_hopfLax_lower {n : ℕ} {p x : X} {r S ρ ε t e : ℝ} + (hr : 0 Real.sqrt (2*(ε k*(4*τ+ε k))) + have he : Tendsto e atTop (𝓝 0) := by + simpa only [mul_zero,zero_mul,Real.sqrt_zero] using + ((hεlim.mul (hεlim.const_add (4*τ))).const_mul 2).sqrt + have hrad : Tendsto (fun k => e k+2*ε k) atTop (𝓝 0) := by + simpa only [mul_zero,add_zero] using he.add (hεlim.const_mul 2) + filter_upwards [hεlim.eventually (Iio_mem_nhds (sub_pos.mpr hroom)), + he.eventually (Iio_mem_nhds (sub_pos.mpr hηB)), + hrad.eventually (Iio_mem_nhds (sub_pos.mpr hzR))] with k hk hki hkr + filter_upwards [hgeo k,h0 k,h1 k,hz0 k,hz1 k] with γ hγ hγ0 hγ1 hγz0 hγz1 + have hroomk : τ+2*η+ε k≤S := by linarith + have hpoints := pointed_local_geodesic_within (hr k) hτS.le hroomk (hv k) + hγ hγ0 hγ1 z hγz0 hγz1 + intro t + have him := pointed_local_geodesic_image (hr k) hτ hτS.le (hε k) hroomk (hv k) + hγ hγ0 hγ1 z hγz0 hγz1 t + change dist (v k (γ t)) z≤η+e k at him + have hnorm : ‖v k (γ t)‖≤η+e k+‖z‖ := by + have ht := dist_triangle (v k (γ t)) z 0 + simp only [dist_zero_right] at ht + linarith + have hphysical := (abs_le.mp (pointed_radial_distance (hr k) (hτ.trans hτS.le) + (hv k) (hpoints t))).1 + refine ⟨(div_le_iff₀ (hr k)).mp ?_,?_⟩ + · linarith + · exact him.trans (by linarith) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/PointedMidpointBalls.lean b/lean/OAI/Geometry/RCD/Transport/PointedMidpointBalls.lean new file mode 100644 index 0000000000000000000000000000000000000000..e011d1305c1cc685a2fcd24ddf9157abff3e4ecd --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/PointedMidpointBalls.lean @@ -0,0 +1,59 @@ +import OAI.Geometry.RCD.Transport.PointedGeodesicWithin + +namespace OAI + +/-! # Metric preimages of balls interpolate inside the expected midpoint ball -/ + +open Set Metric +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] + +theorem pointed_midpoint_balls_within {n : ℕ} {p : X} {r S ρ ε a b : ℝ} + (hr : 0 (1/2:ℝ) • (z.1+z.2)) '' (A ×ˢ B) + +theorem isCompact_midpointSet {n : ℕ} {A B : Set (Euclidean n)} + (hA : IsCompact A) (hB : IsCompact B) : IsCompact (midpointSet A B) := + (hA.prod hB).image (by fun_prop) + +theorem pointed_midpoint_sets_within {X : Type*} [MetricSpace X] {n : ℕ} + {p : X} {r S ρ ε : ℝ} (hr : 0 < r) (hρ : 0 ≤ ρ) (he : 0 ≤ ε) + {V : X → Euclidean n} (hV : IsPointedApproximation p 0 r S ε V) + {A B : Set (Euclidean n)} {γ : C(Time,X)} (hγ : IsGeodesic γ) + (h0 : dist (γ 0) p ≤ ρ*r) (h1 : dist (γ 1) p ≤ ρ*r) + (hpoints : ∀ t : Time, dist (γ t) p ≤ S*r) + (hA : V (γ 0) ∈ A) (hB : V (γ 1) ∈ B) : + V (γ midpointTime) ∈ cthickening (Real.sqrt (2*(ε*(4*ρ+ε)))) (midpointSet A B) := by + have hh := pointed_geodesic_interpolation_within hr hρ he hV hγ h0 h1 hpoints midpointTime + have hmid : (1/2:ℝ) • (V (γ 0)+V (γ 1)) ∈ midpointSet A B := + ⟨(V (γ 0),V (γ 1)),⟨hA,hB⟩,rfl⟩ + apply mem_cthickening_of_dist_le _ _ _ _ hmid + simpa only [midpointTime,show (1-(1/2:ℝ))=1/2 by norm_num,smul_add] using hh + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/PointedOptimalEndpointCompactness.lean b/lean/OAI/Geometry/RCD/Transport/PointedOptimalEndpointCompactness.lean new file mode 100644 index 0000000000000000000000000000000000000000..f8b602922af1fecd533204c3d77a34263c3c9c62 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/PointedOptimalEndpointCompactness.lean @@ -0,0 +1,56 @@ +import OAI.Geometry.RCD.Transport.PointedOptimalLimit +import OAI.Geometry.RCD.Metric.PointedEndpointCompactness + +namespace OAI + +/-! # Optimal endpoint limits on every strict interior physical ball -/ + +open Set Filter MeasureTheory Metric +open scoped Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem NoncollapsedRCD.pointed_optimal_endpoint_subsequence {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (hn : 2≤n) {S ρ : ℝ} + (_hS : 0 (γ 0,γ 1)))) + (hs0 : ∀ k, ∀ᵐ x ∂(ν₀ k : Measure X), dist x (p k)≤ρ*r k) + (hs1 : ∀ k, ∀ᵐ x ∂(ν₁ k : Measure X), dist x (p k)≤ρ*r k) : + ∃ Q : ProbabilityMeasure (Euclidean n × Euclidean n), ∃ t : ℕ → ℕ, + StrictMono t ∧ + IsOptimalCoupling ((Q : Measure (Euclidean n × Euclidean n)).map Prod.fst) + ((Q : Measure (Euclidean n × Euclidean n)).map Prod.snd) Q ∧ + Tendsto (fun k => (P (t k)).map (fun γ => (v (t k) (γ 0),v (t k) (γ 1)))) atTop (𝓝 Q) ∧ + Tendsto (fun k => ∫ γ : C(Time,X), (dist (γ 0) (γ 1)/r (t k))^2 + ∂(P (t k) : Measure C(Time,X))) atTop + (𝓝 (∫ z, dist z.1 z.2^2 ∂(Q : Measure (Euclidean n × Euclidean n)))) := by + have hend (k : ℕ) := optimalPlan_endpoints (ν₀ k : Measure X) (ν₁ k : Measure X) + (P k : Measure C(Time,X)) (hp k) + have h0 (k : ℕ) : ∀ᵐ γ ∂(P k : Measure C(Time,X)), dist (γ 0) (p k)≤ρ*r k := + ae_of_ae_map (measurable_path_eval 0).aemeasurable ((hend k).1.symm ▸ hs0 k) + have h1 (k : ℕ) : ∀ᵐ γ ∂(P k : Measure C(Time,X)), dist (γ 1) (p k)≤ρ*r k := + ae_of_ae_map (measurable_path_eval 1).aemeasurable ((hend k).2.symm ▸ hs1 k) + obtain ⟨Q,t,ht,hpair,hcost⟩ := pointed_endpoint_plan_subsequence hρ hρS.le p r ε v hr hε hε1 + hεlim hv hm P h0 h1 + refine ⟨Q,t,ht,?_,hpair,hcost⟩ + exact hX.pointed_optimal_limit hn hρ hρS (p ∘ t) (r ∘ t) (ε ∘ t) (v ∘ t) + (fun k => hr (t k)) (fun k => hε (t k)) (fun k => hε1 (t k)) + (hεlim.comp ht.tendsto_atTop) (fun k => hv (t k)) (fun k => hm (t k)) (P ∘ t) + (ν₀ ∘ t) (ν₁ ∘ t) (fun k => hac (t k)) (fun k => hp (t k)) + (fun k => hs0 (t k)) (fun k => hs1 (t k)) hpair hcost + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/PointedOptimalLimit.lean b/lean/OAI/Geometry/RCD/Transport/PointedOptimalLimit.lean new file mode 100644 index 0000000000000000000000000000000000000000..90ef38724180635c9da2e7d5e7c38f99e2e7d37b --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/PointedOptimalLimit.lean @@ -0,0 +1,85 @@ +import OAI.Geometry.RCD.Transport.TransportPotentialCompactness +import OAI.Geometry.RCD.Transport.PointedPotentialContact +import OAI.Geometry.RCD.Transport.BoundedCouplingDual + +namespace OAI + +/-! # Optimality of the actual Euclidean endpoint limit + +The proof transfers the original optimal potentials, preserves their exact +contact integral, and tests every coupling of the limiting marginals. +-/ + +open Set Filter MeasureTheory Metric +open scoped Topology NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem NoncollapsedRCD.pointed_optimal_limit {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (hn : 2≤n) {S ρ : ℝ} (hρ : 0≤ρ) (hρS : ρ (γ 0,γ 1)))) + (hs0 : ∀ k, ∀ᵐ x ∂(ν₀ k : Measure X), dist x (p k)≤ρ*r k) + (hs1 : ∀ k, ∀ᵐ x ∂(ν₁ k : Measure X), dist x (p k)≤ρ*r k) + {Q : ProbabilityMeasure (Euclidean n × Euclidean n)} + (hpair : Tendsto (fun k => (P k).map (fun γ => (v k (γ 0),v k (γ 1)))) atTop (𝓝 Q)) + (hcost : Tendsto (fun k => ∫ γ : C(Time,X), (dist (γ 0) (γ 1)/r k)^2 + ∂(P k : Measure C(Time,X))) atTop + (𝓝 (∫ z, dist z.1 z.2^2 ∂(Q : Measure (Euclidean n × Euclidean n))))) : + IsOptimalCoupling ((Q : Measure (Euclidean n × Euclidean n)).map Prod.fst) + ((Q : Measure (Euclidean n × Euclidean n)).map Prod.snd) Q := by + have hend (k : ℕ) := optimalPlan_endpoints (ν₀ k : Measure X) (ν₁ k : Measure X) + (P k : Measure C(Time,X)) (hp k) + have h0 (k : ℕ) : ∀ᵐ γ ∂(P k : Measure C(Time,X)), dist (γ 0) (p k)≤ρ*r k := + ae_of_ae_map (measurable_path_eval 0).aemeasurable ((hend k).1.symm ▸ hs0 k) + have h1 (k : ℕ) : ∀ᵐ γ ∂(P k : Measure C(Time,X)), dist (γ 1) (p k)≤ρ*r k := + ae_of_ae_map (measurable_path_eval 1).aemeasurable ((hend k).2.symm ▸ hs1 k) + obtain ⟨φ,ψ,f,g,t,hdata,ht,hf,hg,hφ,hψ,had⟩ := hX.transport_potential_compactness hn + (hρ.trans hρS.le) hρ p r ε v hr hε hε1 hεlim hv ν₀ ν₁ + (fun k => (P k : Measure C(Time,X)).map (fun γ => (γ 0,γ 1))) hac hp hs0 hs1 + let B := (ρ+S)/2 + have hρB : ρ φ (t k) (γ 0)+ψ (t k) (γ 1)) + (P (t k) : Measure C(Time,X)) := by + have hφi : Integrable (fun γ : C(Time,X) => φ (t k) (γ 0)) + (P (t k) : Measure C(Time,X)) := + (integrable_const (10*ρ^2)).mono' + (((hdata (t k)).1.continuous.comp (continuous_eval_const 0)).aestronglyMeasurable) + (Eventually.of_forall fun γ => by simpa only [Real.norm_eq_abs] using (hdata (t k)).2.2.1 (γ 0)) + have hψi : Integrable (fun γ : C(Time,X) => ψ (t k) (γ 1)) + (P (t k) : Measure C(Time,X)) := + (integrable_const (10*ρ^2)).mono' + (((hdata (t k)).2.1.continuous.comp (continuous_eval_const 1)).aestronglyMeasurable) + (Eventually.of_forall fun γ => by simpa only [Real.norm_eq_abs] using (hdata (t k)).2.2.2.1 (γ 1)) + exact hφi.add hψi + have hc (k : ℕ) : ∀ᵐ γ ∂(P (t k) : Measure C(Time,X)), + φ (t k) (γ 0)+ψ (t k) (γ 1)=(dist (γ 0) (γ 1)/r (t k))^2/2 := + ae_of_ae_map ((measurable_path_eval 0).prodMk (measurable_path_eval 1)).aemeasurable + (hdata (t k)).2.2.2.2.2 + have hcontact := pointed_potential_contact hρ hρB hBS (p ∘ t) (r ∘ t) (ε ∘ t) (v ∘ t) + (fun k => hr (t k)) (hεlim.comp ht.tendsto_atTop) (fun k => hv (t k)) + (fun k => hm (t k)) (P ∘ t) (fun k => h0 (t k)) (fun k => h1 (t k)) + (hpair.comp ht.tendsto_atTop) (hcost.comp ht.tendsto_atTop) + (fun k => φ (t k)) (fun k => ψ (t k)) hf hg hi hφ hψ hc + have hQ := pointed_pair_limit_support hρ hρS.le hρB p r ε v hr hεlim hv hm P h0 h1 hpair + apply bounded_coupling_optimal_of_dual (hρ.trans hρB.le) Q hQ hf hg _ hcontact + intro a ha b hb + apply had a b + · exact (show ‖a‖≤B by simpa only [mem_closedBall,dist_zero_right] using ha).trans_lt hBS + · exact (show ‖b‖≤B by simpa only [mem_closedBall,dist_zero_right] using hb).trans_lt hBS + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/PointedPlanCompactness.lean b/lean/OAI/Geometry/RCD/Transport/PointedPlanCompactness.lean new file mode 100644 index 0000000000000000000000000000000000000000..1940d8f92a233c06fe9df7062b771efca10a7f52 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/PointedPlanCompactness.lean @@ -0,0 +1,68 @@ +import OAI.Geometry.RCD.Transport.PointedTransportMarginals +import OAI.Geometry.RCD.Metric.EuclideanPairCompactness +import OAI.Geometry.RCD.Transport.PointedPlanCost + +namespace OAI + +/-! # Constructive compactness of bounded source plans in Euclidean coordinates -/ + +open Set Filter MeasureTheory Metric +open scoped Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem pointed_plan_subsequence {n : ℕ} {S ρ : ℝ} + (hρ : 0≤ρ) (hroom : 3*ρ≤S) + (p : ℕ → X) (r ε : ℕ → ℝ) (v : ℕ → X → Euclidean n) + (hr : ∀ k, 0 (P (t k)).map (fun γ => (v (t k) (γ 0),v (t k) (γ 1)))) atTop (𝓝 Q) ∧ + Tendsto (fun k => ∫ γ : C(Time,X), (dist (γ 0) (γ 1)/r (t k))^2 + ∂(P (t k) : Measure C(Time,X))) atTop + (𝓝 (∫ z, dist z.1 z.2^2 ∂(Q : Measure (Euclidean n × Euclidean n)))) ∧ + ∀ s : Time, Tendsto (fun k => (P (t k)).map (fun γ => v (t k) (γ s))) atTop + (𝓝 (Q.map (fun xy => (1-(s:ℝ)) • xy.1+(s:ℝ) • xy.2))) := by + let e := fun k (γ : C(Time,X)) => (v k (γ 0),v k (γ 1)) + have he (k : ℕ) : Measurable (e k) := + ((hm k).comp (measurable_path_eval 0)).prodMk ((hm k).comp (measurable_path_eval 1)) + have hρS : ρ≤S := by linarith + have hS : 0≤S := hρ.trans hρS + have hb (k : ℕ) : ∀ᵐ xy ∂((P k).map (e k) : Measure (Euclidean n × Euclidean n)), + xy∈closedBall (0:Euclidean n) (ρ+2) ×ˢ closedBall (0:Euclidean n) (ρ+2) := by + rw [ProbabilityMeasure.toMeasure_map] + apply (ae_map_iff (he k).aemeasurable (measurableSet_closedBall.prod measurableSet_closedBall)).mpr + filter_upwards [h0 k,h1 k] with γ hg0 hg1 + have hnorm (j : Time) (hj : dist (γ j) (p k)≤ρ*r k) : ‖v k (γ j)‖≤ρ+2 := by + have hrad := (abs_le.mp (pointed_radial_distance (hr k) hS (hv k) + (hj.trans (mul_le_mul_of_nonneg_right hρS (hr k).le)))).2 + have hd := (div_le_iff₀ (hr k)).mpr hj + linarith [hε1 k] + exact ⟨by simpa only [mem_closedBall,dist_zero_right] using hnorm 0 hg0, + by simpa only [mem_closedBall,dist_zero_right] using hnorm 1 hg1⟩ + obtain ⟨Q,t,ht,hpair,hQ⟩ := euclidean_pair_subsequence (fun k => (P k).map (e k)) (ρ+2) hb + refine ⟨Q,t,ht,hpair,?_,?_⟩ + · exact pointed_plan_cost_tendsto hρ hρS (by linarith : 0≤ρ+2) + (p ∘ t) (r ∘ t) (ε ∘ t) (v ∘ t) + (fun k => hr (t k)) (fun k => hε (t k)) (hεlim.comp ht.tendsto_atTop) + (fun k => hv (t k)) (fun k => hm (t k)) (P ∘ t) + (fun k => h0 (t k)) (fun k => h1 (t k)) hpair (fun k => hb (t k)) hQ + · intro s + exact pointed_transport_marginals_tendsto hρ hroom (p ∘ t) (r ∘ t) (ε ∘ t) (v ∘ t) + (fun k => hr (t k)) (fun k => hε (t k)) (hεlim.comp ht.tendsto_atTop) + (fun k => hv (t k)) (fun k => hm (t k)) (P ∘ t) + (fun k => hgeo (t k)) (fun k => h0 (t k)) (fun k => h1 (t k)) hpair s + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/PointedPlanCost.lean b/lean/OAI/Geometry/RCD/Transport/PointedPlanCost.lean new file mode 100644 index 0000000000000000000000000000000000000000..b48130a6323cde1e1c070b5cd65fc52281d2ddf7 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/PointedPlanCost.lean @@ -0,0 +1,100 @@ +import OAI.Geometry.RCD.Coordinates.QuadraticMetricError +import OAI.Analysis.RCDHeat.DynamicalPlan +import OAI.Geometry.RCD.Metric.EuclideanPairCost + +namespace OAI + +/-! # Exact quadratic-cost transfer through the prescribed approximation maps -/ + +open Set Filter MeasureTheory Metric +open scoped Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem pointed_plan_cost_error {n : ℕ} {p : X} {r S ρ ε : ℝ} + (hr : 0 (dist (γ 0) (γ 1)/r)^2) (P : Measure C(Time,X)) := + (integrable_const ((2*ρ)^2)).mono' + (((((continuous_eval_const 0).dist (continuous_eval_const 1)).measurable).div_const r).pow_const 2).aestronglyMeasurable + (hd.mono fun γ hg => by + simpa only [Real.norm_eq_abs,abs_of_nonneg (sq_nonneg (dist (γ 0) (γ 1)/r))] using + pow_le_pow_left₀ (div_nonneg dist_nonneg hr.le) hg 2) + have hit : Integrable (fun γ : C(Time,X) => dist (v (γ 0)) (v (γ 1))^2) (P : Measure C(Time,X)) := + (integrable_const ((2*ρ+ε)^2)).mono' + ((((hm.comp (measurable_path_eval 0)).dist (hm.comp (measurable_path_eval 1))).pow_const 2).aestronglyMeasurable) + (ht.mono fun γ hg => by + simpa only [Real.norm_eq_abs,abs_of_nonneg (sq_nonneg (dist (v (γ 0)) (v (γ 1))))] using + pow_le_pow_left₀ dist_nonneg hg 2) + rw [← integral_sub hit his] + have hh := norm_integral_le_of_norm_le_const (μ := (P : Measure C(Time,X))) + (f := fun γ => dist (v (γ 0)) (v (γ 1))^2-(dist (γ 0) (γ 1)/r)^2) + (by simpa only [Real.norm_eq_abs] using he) + simpa only [Real.norm_eq_abs,Measure.real,measure_univ,ENNReal.toReal_one,mul_one] using hh + +/-- The actual rescaled source costs converge to the cost of the same limiting +endpoint law; no optimality or continuity of the approximation maps is needed. -/ +theorem pointed_plan_cost_tendsto {n : ℕ} {S ρ B : ℝ} + (hρ : 0≤ρ) (hρS : ρ≤S) (hB : 0≤B) + (p : ℕ → X) (r ε : ℕ → ℝ) (v : ℕ → X → Euclidean n) + (hr : ∀ k, 0 (P k).map (fun γ => (v k (γ 0),v k (γ 1)))) atTop (𝓝 Q)) + (hbs : ∀ k, ∀ᵐ z ∂((P k).map (fun γ => (v k (γ 0),v k (γ 1))) : + Measure (Euclidean n × Euclidean n)), + z∈closedBall (0:Euclidean n) B ×ˢ closedBall (0:Euclidean n) B) + (hb : ∀ᵐ z ∂(Q : Measure (Euclidean n × Euclidean n)), + z∈closedBall (0:Euclidean n) B ×ˢ closedBall (0:Euclidean n) B) : + Tendsto (fun k => ∫ γ : C(Time,X), (dist (γ 0) (γ 1)/r k)^2 + ∂(P k : Measure C(Time,X))) atTop + (𝓝 (∫ z, dist z.1 z.2^2 ∂(Q : Measure (Euclidean n × Euclidean n)))) := by + have ht := bounded_pair_cost_tendsto hB _ Q hpair hbs hb + have heq (k : ℕ) : + (∫ z, dist z.1 z.2^2 ∂((P k).map (fun γ => (v k (γ 0),v k (γ 1))) : + Measure (Euclidean n × Euclidean n)))= + ∫ γ, dist (v k (γ 0)) (v k (γ 1))^2 ∂(P k : Measure C(Time,X)) := by + rw [ProbabilityMeasure.toMeasure_map,integral_map] + · exact (((hm k).comp (measurable_path_eval 0)).prodMk + ((hm k).comp (measurable_path_eval 1))).aemeasurable + · exact ((continuous_fst.dist continuous_snd).pow 2).aestronglyMeasurable + simp_rw [heq] at ht + apply ht.congr_dist + apply squeeze_zero (fun _ => dist_nonneg) + (fun k => by simpa only [Real.dist_eq] using + pointed_plan_cost_error (hr k) hρ hρS (hε k) (hv k) (hm k) (P k) (h0 k) (h1 k)) + simpa only [zero_mul] using hεlim.mul (hεlim.const_add (4*ρ)) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/PointedPlanSupport.lean b/lean/OAI/Geometry/RCD/Transport/PointedPlanSupport.lean new file mode 100644 index 0000000000000000000000000000000000000000..4ab43229f6608fc0b713775724da3ef1e1ae75e2 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/PointedPlanSupport.lean @@ -0,0 +1,58 @@ +import OAI.Geometry.RCD.Transport.PointedPlanCompactness + +namespace OAI + +/-! # Interior support of the limiting endpoint law -/ + +open Set Filter MeasureTheory Metric +open scoped Topology +noncomputable section +namespace RegularPointCoordinates + + theorem weak_limit_ae_closed {Y : Type*} [MetricSpace Y] + [MeasurableSpace Y] [BorelSpace Y] + (νs : ℕ → ProbabilityMeasure Y) {ν : ProbabilityMeasure Y} + (hlim : Tendsto νs atTop (𝓝 ν)) {A : Set Y} (hA : IsClosed A) + (hs : ∀ᶠ k in atTop, ∀ᵐ z ∂(νs k : Measure Y), z∈A) : + ∀ᵐ z ∂(ν : Measure Y), z∈A := by + apply ae_iff.mpr + change (ν : Measure Y) Aᶜ=0 + have hz : ∀ᶠ k in atTop, (νs k : Measure Y) Aᶜ=0 := hs.mono (fun _ hk => ae_iff.mp hk) + have hh := ProbabilityMeasure.le_liminf_measure_open_of_tendsto hlim hA.isOpen_compl + simpa only [liminf_congr hz,liminf_const,le_zero_iff] using hh + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem pointed_pair_limit_support {n : ℕ} {S ρ B : ℝ} + (hρ : 0≤ρ) (hρS : ρ≤S) (hρB : ρ (P k).map (fun γ => (v k (γ 0),v k (γ 1)))) atTop (𝓝 Q)) : + ∀ᵐ z ∂(Q : Measure (Euclidean n × Euclidean n)), + z∈closedBall (0:Euclidean n) B ×ˢ closedBall (0:Euclidean n) B := by + apply weak_limit_ae_closed _ hpair (isClosed_closedBall.prod isClosed_closedBall) + filter_upwards [hεlim.eventually (Iio_mem_nhds (half_pos (sub_pos.mpr hρB)))] with k hk + rw [ProbabilityMeasure.toMeasure_map] + apply (ae_map_iff (((hm k).comp (measurable_path_eval 0)).prodMk + ((hm k).comp (measurable_path_eval 1))).aemeasurable + (measurableSet_closedBall.prod measurableSet_closedBall)).mpr + filter_upwards [h0 k,h1 k] with γ hg0 hg1 + have hb (j : Time) (hj : dist (γ j) (p k)≤ρ*r k) : v k (γ j)∈closedBall 0 B := by + have ha := (abs_le.mp (pointed_radial_distance (hr k) (hρ.trans hρS) (hv k) + (hj.trans (mul_le_mul_of_nonneg_right hρS (hr k).le)))).2 + have hd := (div_le_iff₀ (hr k)).mpr hj + rw [mem_closedBall,dist_zero_right] + linarith + exact ⟨hb 0 hg0,hb 1 hg1⟩ + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/PointedPotentialContact.lean b/lean/OAI/Geometry/RCD/Transport/PointedPotentialContact.lean new file mode 100644 index 0000000000000000000000000000000000000000..9136daae8c32e87316c4b5b88921776eac948161 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/PointedPotentialContact.lean @@ -0,0 +1,90 @@ +import OAI.Geometry.RCD.Transport.PointedPlanSupport +import OAI.Geometry.RCD.Sobolev.WeakMapUniformIntegrals +import OAI.Geometry.RCD.Sobolev.BoundedLocalRepresentative + +namespace OAI + +/-! # The exact contact integral for the limiting Euclidean potentials -/ + +open Set Filter MeasureTheory Metric +open scoped Topology NNReal BoundedContinuousFunction +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem pointed_potential_contact {n : ℕ} {S ρ B : ℝ} + (hρ : 0≤ρ) (hρB : ρ (P k).map (fun γ => (v k (γ 0),v k (γ 1)))) atTop (𝓝 Q)) + (hcost : Tendsto (fun k => ∫ γ : C(Time,X), (dist (γ 0) (γ 1)/r k)^2 + ∂(P k : Measure C(Time,X))) atTop + (𝓝 (∫ z, dist z.1 z.2^2 ∂(Q : Measure (Euclidean n × Euclidean n))))) + (φ ψ : ℕ → X → ℝ) {f g : Euclidean n → ℝ} {L M : ℝ≥0} + (hf : LipschitzWith L f) (hg : LipschitzWith M g) + (hi : ∀ k, Integrable (fun γ : C(Time,X) => φ k (γ 0)+ψ k (γ 1)) + (P k : Measure C(Time,X))) + (hφ : ∀ δ : ℝ, 0<δ → ∀ᶠ k in atTop, ∀ x, + dist x (p k)≤S*r k → |φ k x-f (v k x)|<δ) + (hψ : ∀ δ : ℝ, 0<δ → ∀ᶠ k in atTop, ∀ x, + dist x (p k)≤S*r k → |ψ k x-g (v k x)|<δ) + (hc : ∀ k, ∀ᵐ γ ∂(P k : Measure C(Time,X)), + φ k (γ 0)+ψ k (γ 1)=(dist (γ 0) (γ 1)/r k)^2/2) : + (∫ z, f z.1+g z.2 ∂(Q : Measure (Euclidean n × Euclidean n)))= + (∫ z, dist z.1 z.2^2 ∂(Q : Measure (Euclidean n × Euclidean n)))/2 := by + have hρS : ρ≤S := hρB.le.trans hBS.le + have hB : 0≤B := hρ.trans hρB.le + obtain ⟨F,hF⟩ := bounded_local_representative hB hf.lipschitzOnWith + obtain ⟨G,hG⟩ := bounded_local_representative hB hg.lipschitzOnWith + let H : (Euclidean n × Euclidean n) →ᵇ ℝ := + F.compContinuous ⟨Prod.fst,continuous_fst⟩+G.compContinuous ⟨Prod.snd,continuous_snd⟩ + have himage : ∀ᶠ k in atTop, ∀ x, dist x (p k)≤ρ*r k → v k x∈closedBall 0 B := by + filter_upwards [hεlim.eventually (Iio_mem_nhds (half_pos (sub_pos.mpr hρB)))] with k hk x hx + have ha := (abs_le.mp (pointed_radial_distance (hr k) (hρ.trans hρS) (hv k) + (hx.trans (mul_le_mul_of_nonneg_right hρS (hr k).le)))).2 + have hd := (div_le_iff₀ (hr k)).mpr hx + rw [mem_closedBall,dist_zero_right] + linarith + have herr : ∀ δ : ℝ, 0<δ → ∀ᶠ k in atTop, ∀ᵐ γ ∂(P k : Measure C(Time,X)), + |(φ k (γ 0)+ψ k (γ 1))-H (v k (γ 0),v k (γ 1))|≤δ := by + intro δ hδ + filter_upwards [himage,hφ (δ/2) (half_pos hδ),hψ (δ/2) (half_pos hδ)] with k hk hf' hg' + filter_upwards [h0 k,h1 k] with γ hγ0 hγ1 + change |(φ k (γ 0)+ψ k (γ 1))-(F (v k (γ 0))+G (v k (γ 1)))|≤δ + rw [hF (hk _ hγ0),hG (hk _ hγ1)] + have hp0 := hf' (γ 0) (hγ0.trans (mul_le_mul_of_nonneg_right hρS (hr k).le)) + have hp1 := hg' (γ 1) (hγ1.trans (mul_le_mul_of_nonneg_right hρS (hr k).le)) + have hh := abs_add_le (φ k (γ 0)-f (v k (γ 0))) (ψ k (γ 1)-g (v k (γ 1))) + have heq : φ k (γ 0)-f (v k (γ 0))+(ψ k (γ 1)-g (v k (γ 1)))= + φ k (γ 0)+ψ k (γ 1)-(f (v k (γ 0))+g (v k (γ 1))) := by ring + rw [heq] at hh + linarith + have ht := weak_map_uniform_integrals P (fun k γ => (v k (γ 0),v k (γ 1))) + (fun k => ((hm k).comp (measurable_path_eval 0)).prodMk + ((hm k).comp (measurable_path_eval 1))) hpair + (fun k γ => φ k (γ 0)+ψ k (γ 1)) hi H herr + have heq (k : ℕ) : + (∫ γ : C(Time,X), φ k (γ 0)+ψ k (γ 1) ∂(P k : Measure C(Time,X)))= + (∫ γ : C(Time,X), (dist (γ 0) (γ 1)/r k)^2 ∂(P k : Measure C(Time,X)))/2 := by + rw [integral_congr_ae (hc k),integral_div] + simp_rw [heq] at ht + have he := tendsto_nhds_unique ht (hcost.div_const 2) + have hQ := pointed_pair_limit_support hρ hρS hρB p r ε v hr hεlim hv hm P h0 h1 hpair + have hH : (∫ z, H z ∂(Q : Measure (Euclidean n × Euclidean n)))= + ∫ z, f z.1+g z.2 ∂(Q : Measure (Euclidean n × Euclidean n)) := by + apply integral_congr_ae + filter_upwards [hQ] with z hz + exact congrArg₂ (·+·) (hF hz.1) (hG hz.2) + rwa [hH] at he + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/PointedTransportMarginals.lean b/lean/OAI/Geometry/RCD/Transport/PointedTransportMarginals.lean new file mode 100644 index 0000000000000000000000000000000000000000..846d75ddc138134d6f14fd293d0d36279802a548 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/PointedTransportMarginals.lean @@ -0,0 +1,62 @@ +import OAI.Geometry.RCD.Transport.PointedGeodesicInterpolation +import OAI.Geometry.RCD.Sobolev.WeakMapPerturbation +import OAI.Analysis.RCDHeat.DynamicalPlan + +namespace OAI + +/-! # Affine Euclidean limits of the actual source transport marginals + +Once the endpoint-pair laws converge, every fixed intermediate-time law +converges to the affine interpolation of that same limiting pair law. +-/ + +open Set Filter MeasureTheory Metric +open scoped Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem pointed_transport_marginals_tendsto {n : ℕ} {S ρ : ℝ} + (hρ : 0≤ρ) (hroom : 3*ρ≤S) + (p : ℕ → X) (r ε : ℕ → ℝ) (v : ℕ → X → Euclidean n) + (hr : ∀ k, 0 (P k).map (fun γ => (v k (γ 0),v k (γ 1)))) atTop (𝓝 Q)) + (t : Time) : + Tendsto (fun k => (P k).map (fun γ => v k (γ t))) atTop + (𝓝 (Q.map (fun xy => (1-(t:ℝ)) • xy.1+(t:ℝ) • xy.2))) := by + let A : Euclidean n × Euclidean n → Euclidean n := + fun xy => (1-(t:ℝ)) • xy.1+(t:ℝ) • xy.2 + have hA : Continuous A := by + dsimp only [A] + fun_prop + let e := fun k (γ : C(Time,X)) => (v k (γ 0),v k (γ 1)) + have he (k : ℕ) : Measurable (e k) := + ((hm k).comp (measurable_path_eval 0)).prodMk ((hm k).comp (measurable_path_eval 1)) + have ha := ProbabilityMeasure.tendsto_map_of_tendsto_of_continuous _ _ hpair hA + change Tendsto (fun k => ((P k).map (e k)).map A) atTop (𝓝 (Q.map A)) at ha + have heq (k : ℕ) : ((P k).map (e k)).map A=(P k).map (fun γ => A (e k γ)) := by + apply ProbabilityMeasure.toMeasure_injective + simp only [ProbabilityMeasure.toMeasure_map,Measure.map_map hA.measurable (he k),Function.comp_def] + have hag : Tendsto (fun k => (P k).map (fun γ => A (e k γ))) atTop (𝓝 (Q.map A)) := by + simpa only [heq] using ha + have hd : Tendsto (fun k => Real.sqrt (2*(ε k*(4*ρ+ε k)))) atTop (𝓝 0) := by + simpa only [mul_zero,zero_mul,Real.sqrt_zero] using + ((hεlim.mul (hεlim.const_add (4*ρ))).const_mul 2).sqrt + apply weak_limit_of_map_error P (fun k γ => v k (γ t)) (fun k γ => A (e k γ)) + (fun k => (hm k).comp (measurable_path_eval t)) (fun k => hA.measurable.comp (he k)) hd _ hag + intro k + filter_upwards [hgeo k,h0 k,h1 k] with γ hg hg0 hg1 + exact pointed_geodesic_interpolation (hr k) hρ (hε k) hroom (hv k) hg hg0 hg1 t + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/PointedVerticalGeodesic.lean b/lean/OAI/Geometry/RCD/Transport/PointedVerticalGeodesic.lean new file mode 100644 index 0000000000000000000000000000000000000000..09d55c8da8184d3a24c31464778b05a0caa56dda --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/PointedVerticalGeodesic.lean @@ -0,0 +1,93 @@ +import OAI.Geometry.RCD.Metric.ProductVerticalDeviation + +namespace OAI + +/-! # Actual geodesics under a pointed product approximation -/ + +open Set Metric +noncomputable section +namespace RegularPointCoordinates + +variable {X Z : Type*} [MetricSpace X] [MetricSpace Z] {n : ℕ} + +/-- The geodesic from the base point to a lift of a vertical target stays +quantitatively near the vertical fiber. The factor need not be geodesic. -/ +theorem pointed_vertical_geodesic {p x : X} {z₀ z₁ : Z} {ρ ε : ℝ} + (hρ : 0 < ρ) (he : 0 ≤ ε) + {f : X → WithLp 2 (Euclidean n × Z)} + (hf : IsPointedApproximation p (WithLp.toLp 2 (0,z₀)) ρ 1 ε f) + (hx : dist x p ≤ ρ) (hfx : dist (f x) (WithLp.toLp 2 (0,z₁)) ≤ ε) + {γ : C(Time,X)} (hγ : IsGeodesic γ) (h0 : γ 0=p) (h1 : γ 1=x) : + (∀ t, dist (γ t) p ≤ ρ) ∧ + (∀ t, ‖(f (γ t)).fst‖ ≤ Real.sqrt (14*ε*(dist z₀ z₁+7*ε))) ∧ + (∀ t, dist (f (γ t)).snd z₀ ≤ dist z₀ z₁+5*ε) ∧ + dist z₀ z₁-3*ε ≤ dist p x/ρ := by + have htime (t : Time) : dist (γ t) p=(t:ℝ)*dist p x := by + have hh := hγ t 0 + rw [h0,h1] at hh + change dist (γ t) p=|(t:ℝ)-0| * dist p x at hh + simpa only [sub_zero,abs_of_nonneg t.2.1] using hh + have htime1 (t : Time) : dist (γ t) x=(1-(t:ℝ))*dist p x := by + have hh := hγ t 1 + rw [h0,h1] at hh + change dist (γ t) x=|(t:ℝ)-1| * dist p x at hh + simpa only [abs_of_nonpos (sub_nonpos.mpr t.2.2),neg_sub] using hh + have hpoints (t : Time) : dist (γ t) p ≤ ρ := by + rw [htime] + exact (mul_le_of_le_one_left dist_nonneg t.2.2).trans (by simpa [dist_comm] using hx) + have hp : dist p p ≤ 1*ρ := by simpa using hρ.le + have hx' : dist x p ≤ 1*ρ := by simpa using hx + have hfpx := abs_le.mp (hf.2.1 p x hp hx') + have hvertical : dist (WithLp.toLp 2 ((0:Euclidean n),z₀)) + (WithLp.toLp 2 (0,z₁))=dist z₀ z₁ := by + rw [metric_product_distance_L2] + simp only [WithLp.fst,WithLp.snd,dist_self,zero_pow (by norm_num : (2:ℕ)≠0), + zero_add,Real.sqrt_sq dist_nonneg] + have hupper : dist p x/ρ ≤ dist z₀ z₁+3*ε := by + have ht := dist_triangle (f p) (WithLp.toLp 2 (0,z₀)) (f x) + have ht' := dist_triangle (WithLp.toLp 2 ((0:Euclidean n),z₀)) + (WithLp.toLp 2 (0,z₁)) (f x) + rw [hvertical,dist_comm (WithLp.toLp 2 ((0:Euclidean n),z₁)) (f x)] at ht' + linarith [hf.1] + have hlower : dist z₀ z₁-3*ε ≤ dist p x/ρ := by + have ht := dist_triangle (WithLp.toLp 2 ((0:Euclidean n),z₀)) (f p) + (WithLp.toLp 2 (0,z₁)) + have ht' := dist_triangle (f p) (f x) (WithLp.toLp 2 (0,z₁)) + rw [hvertical,dist_comm (WithLp.toLp 2 ((0:Euclidean n),z₀)) (f p)] at ht + linarith [hf.1] + have hdist0 (t : Time) : dist (f (γ t)) (WithLp.toLp 2 (0,z₀)) ≤ + (t:ℝ)*(dist p x/ρ)+2*ε := by + have hh := (abs_le.mp (hf.2.1 (γ t) p (by simpa using hpoints t) hp)).2 + rw [htime] at hh + have ht := dist_triangle (f (γ t)) (f p) (WithLp.toLp 2 (0,z₀)) + have heq : (t:ℝ)*dist p x/ρ=(t:ℝ)*(dist p x/ρ) := by ring + rw [heq] at hh + linarith [hf.1] + have hdist1 (t : Time) : dist (f (γ t)) (WithLp.toLp 2 (0,z₁)) ≤ + (1-(t:ℝ))*(dist p x/ρ)+2*ε := by + have hh := (abs_le.mp (hf.2.1 (γ t) x (by simpa using hpoints t) hx')).2 + rw [htime1] at hh + have ht := dist_triangle (f (γ t)) (f x) (WithLp.toLp 2 (0,z₁)) + have heq : (1-(t:ℝ))*dist p x/ρ=(1-(t:ℝ))*(dist p x/ρ) := by ring + rw [heq] at hh + linarith + refine ⟨hpoints,?_,?_,hlower⟩ + · intro t + have hd : dist (f (γ t)) (WithLp.toLp 2 (0,z₀))+ + dist (f (γ t)) (WithLp.toLp 2 (0,z₁)) ≤ dist z₀ z₁+7*ε := by + linarith [hdist0 t,hdist1 t] + have hs := product_vertical_deviation (f (γ t)) z₀ z₁ (by positivity : 0 ≤ 7*ε) hd + apply (Real.le_sqrt (norm_nonneg _) (by positivity)).mpr + nlinarith only [hs] + · intro t + have hpbound : (t:ℝ)*(dist p x/ρ) ≤ dist p x/ρ := + mul_le_of_le_one_left (div_nonneg dist_nonneg hρ.le) t.2.2 + have hproj := WithLp.dist_snd_le (f (γ t)) (WithLp.toLp 2 (0,z₀)) + change dist (f (γ t)).snd z₀ ≤ _ at hproj + linarith [hdist0 t] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/PointwisePlanComparison.lean b/lean/OAI/Geometry/RCD/Transport/PointwisePlanComparison.lean new file mode 100644 index 0000000000000000000000000000000000000000..77da25b651e96d63f33ac48e326eb944da758a4b --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/PointwisePlanComparison.lean @@ -0,0 +1,81 @@ +import OAI.Geometry.RCD.Transport.PlanEndpointComparison + +namespace OAI + +/-! # Pointwise action comparison from compressed small-ball plans -/ + +open Set Filter Metric MeasureTheory +open scoped Topology ENNReal NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem NoncollapsedRCD.pointwise_comparison_of_plans {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (hn : 2 ≤ n) (z : X) + (F G : X → ℝ) (hF : Measurable F) (hG : Measurable G) {T : ℝ} (hT : 0 < T) + (hLip : ∀ r : ℝ, 0 < r → ∃ L : ℝ≥0, + LipschitzOnWith L F (closedBall z r) ∧ LipschitzOnWith L G (closedBall z r)) + (hplan : ∀ r : ℝ, 0 < r → ∀ (π : Measure C(Time,X)) [IsProbabilityMeasure π], + (∀ᵐ γ ∂π, IsGeodesic γ) → + ∀ C : ℝ≥0∞, C ≠ ∞ → + (∀ t : Time, π.map (fun γ => γ t) ≤ C • hausdorff n X) → + MemLp (fun γ : C(Time,X) => dist (γ 0) (γ 1)) 2 π → + (∀ t : Time, ∀ᵐ γ ∂π, γ t ∈ closedBall z r) → + (∫ γ : C(Time,X), F (γ 0) ∂π)-(∫ γ : C(Time,X), G (γ 1) ∂π) ≤ + (∫ γ : C(Time,X), (dist (γ 0) (γ 1))^2 ∂π)/(2*T)) + (x y : X) : F x-G y ≤ (dist x y)^2/(2*T) := by + let r := dist x z+3*(dist x y+1)+1 + have hr : 0 < r := by dsimp only [r]; positivity + have hx : x ∈ closedBall z r := by + change dist x z ≤ r + dsimp only [r] + linarith [dist_nonneg (x := x) (y := y)] + have hy : y ∈ closedBall z r := by + change dist y z ≤ r + have hh := dist_triangle y x z + rw [dist_comm y x] at hh + dsimp only [r] + linarith [dist_nonneg (x := x) (y := y)] + obtain ⟨L,hLF,hLG⟩ := hLip r hr + have hb (ρ : ℝ) (hρ : 0 < ρ) (hρ1 : ρ ≤ 1) : + F x-G y ≤ (dist x y+2*ρ)^2/(2*T)+2*(L:ℝ)*ρ := by + obtain ⟨π,hπ,C,hC,hgeo,hLength,hcomp,hnear⟩ := hX.nearby_ball_plan hn x y hρ + let := hπ + have hstay (t : Time) : ∀ᵐ γ ∂π, γ t ∈ closedBall z r := by + filter_upwards [hnear] with γ hγ + change dist (γ t) z ≤ r + have hh := dist_triangle (γ t) x z + have ht := hγ.2.2 t + dsimp only [r] + linarith + have hvalue₀ := plan_endpoint_lipschitz_error π F hF hLF x hx 0 + (by + filter_upwards [hnear,hstay 0] with γ hγ hs + exact ⟨hs,hγ.1⟩) + have hvalue₁ := plan_endpoint_lipschitz_error π G hG hLG y hy 1 + (by + filter_upwards [hnear,hstay 1] with γ hγ hs + exact ⟨hs,hγ.2.1⟩) + have hcost := endpoint_ball_plan_cost_bound π hLength x y + (hnear.mono fun γ hγ => ⟨hγ.1,hγ.2.1⟩) + have hcmp := (hplan r hr π hgeo C hC hcomp hLength hstay).trans + (div_le_div_of_nonneg_right hcost (by positivity : 0 ≤ 2*T)) + have h0 := (abs_le.mp hvalue₀).1 + have h1 := (abs_le.mp hvalue₁).2 + linarith + have hc : ContinuousAt (fun ρ : ℝ => (dist x y+2*ρ)^2/(2*T)+2*(L:ℝ)*ρ) 0 := by fun_prop + have hl : Tendsto (fun ρ : ℝ => (dist x y+2*ρ)^2/(2*T)+2*(L:ℝ)*ρ) + (𝓝[>] 0) (𝓝 ((dist x y)^2/(2*T))) := by + simpa only [mul_zero,add_zero] using hc.tendsto.mono_left nhdsWithin_le_nhds + apply le_of_tendsto_of_tendsto tendsto_const_nhds hl + have hsmall : ∀ᶠ ρ in 𝓝[>] (0:ℝ), ρ < 1 := + (gt_mem_nhds (show (0:ℝ) < 1 by norm_num)).filter_mono nhdsWithin_le_nhds + filter_upwards [self_mem_nhdsWithin,hsmall] with ρ hρ hρ1 + exact hb ρ hρ hρ1.le + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/PointwiseReduced.lean b/lean/OAI/Geometry/RCD/Transport/PointwiseReduced.lean new file mode 100644 index 0000000000000000000000000000000000000000..b7844204235ea3b1f6a441bf39d1a9a69acb5384 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/PointwiseReduced.lean @@ -0,0 +1,99 @@ +import OAI.Geometry.RCD.Transport.UnnormalizedReduced +import OAI.Geometry.RCD.Transport.CompressedSubplanDensity +import OAI.Geometry.RCD.Transport.EndpointChordLimit +import Mathlib.MeasureTheory.Function.AEEqOfLIntegral + +namespace OAI + +/-! # Pointwise reduced density interpolation along the actual optimal plan + +Every measurable path restriction has the reduced integral bound. All of its +marginal densities agree with the original densities along that restriction, +so localization gives the pointwise inequality without a Jensen reversal. +-/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped ENNReal NNReal Topology +noncomputable section +namespace RegularPointCoordinates.NoncollapsedRCD +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] [SeparableSpace X] {K : ℝ} {n : ℕ} + [IsLocallyFiniteMeasure (hausdorff n X)] (hX : NoncollapsedRCD K n X) +include hX +attribute [local instance] pathBorel pathBorelSpace + +theorem pointwise_reduced_interpolation (hn : 2 ≤ n) (hK : K ≤ 0) + {N : ℝ} (hN : (n:ℝ) ≤ N) (a : RenyiTransportNode n X) + (π : Measure C(Time,X)) [IsProbabilityMeasure π] + (hg : ∀ᵐ γ ∂π, IsGeodesic γ) + (hp : IsOptimalCoupling a.left a.right (π.map (fun γ => (γ 0,γ 1)))) + {C : ℝ≥0} (hC : 0 < C) + (hc : ∀ t : Time, π.map (fun γ => γ t) ≤ ENNReal.ofReal C • hausdorff n X) + (t : Time) : + ∀ᵐ γ ∂π, + sigma K (N+1) (1-(t:ℝ)) (dist (γ 0) (γ 1))* + ((π.map (fun γ => γ 0)).rnDeriv (hausdorff n X) (γ 0))^(-(1/N))+ + sigma K (N+1) (t:ℝ) (dist (γ 0) (γ 1))* + ((π.map (fun γ => γ 1)).rnDeriv (hausdorff n X) (γ 1))^(-(1/N)) ≤ + ((π.map (fun γ => γ t)).rnDeriv (hausdorff n X) (γ t))^(-(1/N)) := by + let μ := hausdorff n X + have hN1 : 1 < N := by + have hnR : (2:ℝ) ≤ n := by exact_mod_cast hn + linarith + have hNp : 1 < N+1 := by linarith + let F := fun γ : C(Time,X) => + sigma K (N+1) (1-(t:ℝ)) (dist (γ 0) (γ 1))* + ((π.map (fun γ => γ 0)).rnDeriv μ (γ 0))^(-(1/N))+ + sigma K (N+1) (t:ℝ) (dist (γ 0) (γ 1))* + ((π.map (fun γ => γ 1)).rnDeriv μ (γ 1))^(-(1/N)) + let G := fun γ : C(Time,X) => ((π.map (fun γ => γ t)).rnDeriv μ (γ t))^(-(1/N)) + have hm (s : Time) : Measurable (fun γ : C(Time,X) => + ((π.map (fun γ => γ s)).rnDeriv μ (γ s))^(-(1/N))) := + (((π.map (fun γ => γ s)).measurable_rnDeriv μ).comp (measurable_path_eval s)).pow_const _ + have hF : Measurable F := + ((measurable_path_sigma_nonpos hK hNp (sub_nonneg.mpr t.property.2) + (by linarith [t.property.1])).mul (hm 0)).add + ((measurable_path_sigma_nonpos hK hNp t.property.1 t.property.2).mul (hm 1)) + have he := optimalPlan_endpoints a.left a.right π hp + have hpp : IsOptimalCoupling (π.map (fun γ => γ 0)) (π.map (fun γ => γ 1)) + (π.map (fun γ => (γ 0,γ 1))) := by rwa [he.1,he.2] + have hs₀ : ∀ᵐ x ∂π.map (fun γ => γ 0), dist x a.center ≤ a.radius := by rw [he.1]; exact a.left_support + have hs₁ : ∀ᵐ x ∂π.map (fun γ => γ 1), dist x a.center ≤ a.radius := by rw [he.2]; exact a.right_support + change F ≤ᵐ[π] G + apply ae_le_of_forall_setLIntegral_le_of_sigmaFinite hF + intro S hS _ + by_cases hz : π S=0 + · have hr : π.restrict S=0 := Measure.restrict_eq_zero.mpr hz + rw [hr] + simp + let κ := π.restrict S + have hk0 : κ univ ≠ 0 := by simpa only [κ,Measure.restrict_apply_univ] using hz + have hden (s : Time) : ∀ᵐ γ ∂κ, + (κ.map (fun γ => γ s)).rnDeriv μ (γ s)=(π.map (fun γ => γ s)).rnDeriv μ (γ s) := + hX.restricted_plan_density hn a.center a.radius_nonneg π hg hpp hC hc hs₀ hs₁ hS s + have hbound := hX.subplan_reduced hn hK hN a π hg hp ENNReal.ofReal_ne_top hc + κ Measure.restrict_le_self hk0 t + unfold ReducedRenyiChordBound at hbound + have hlhs : (∫⁻ γ, sigma K (N+1) (1-(t:ℝ)) (dist (γ 0) (γ 1))* + ((κ.map (fun γ => γ 0)).rnDeriv μ (γ 0))^(-(1/N))+ + sigma K (N+1) (t:ℝ) (dist (γ 0) (γ 1))* + ((κ.map (fun γ => γ 1)).rnDeriv μ (γ 1))^(-(1/N)) ∂κ) = ∫⁻ γ, F γ ∂κ := by + apply lintegral_congr_ae + filter_upwards [hden 0,hden 1] with γ hγ₀ hγ₁ + rw [hγ₀,hγ₁] + have hrhs : renyiIntegral μ (κ.map (fun γ => γ t)) N=∫⁻ γ, G γ ∂κ := by + rw [renyiIntegral_eq_inverse_density μ _ + ((Measure.map_mono Measure.restrict_le_self (measurable_path_eval t)).absolutelyContinuous.trans + (Measure.absolutelyContinuous_of_le_smul (hc t))) hN1, + lintegral_map (((κ.map (fun γ => γ t)).measurable_rnDeriv μ).pow_const _) + (measurable_path_eval t)] + apply lintegral_congr_ae + exact (hden t).mono fun γ hγ => congrArg (fun r : ℝ≥0∞ => r^(-(1/N))) hγ + rw [hlhs,hrhs] at hbound + exact hbound + +end RegularPointCoordinates.NoncollapsedRCD + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/PositiveExponentialTilt.lean b/lean/OAI/Geometry/RCD/Transport/PositiveExponentialTilt.lean new file mode 100644 index 0000000000000000000000000000000000000000..9712bc7ccc28201281786965560b7afb74278144 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/PositiveExponentialTilt.lean @@ -0,0 +1,44 @@ +import OAI.Geometry.RCD.Heat.BoundedExponentialIntegral + +namespace OAI + +/-! # Strict positivity of bounded exponential tilts + +The lower bound retains the mass of the original integrable weight. +It applies to the compact-support positive kernel rows without a +pointwise positive lower bound on the endpoint density. +-/ + +open Set Filter MeasureTheory +open scoped NNReal +noncomputable section +namespace RegularPointCoordinates +variable {Y : Type*} [MeasurableSpace Y] (μ : Measure Y) + +theorem exponential_tilt_mass_lower {r g : Y → ℝ} (hr : Integrable r μ) + (hr0 : ∀ᵐ x ∂μ, 0 ≤ r x) (hg : Measurable g) + {M : ℝ≥0} (hgb : ∀ x, |g x| ≤ M) (t : ℝ) : + Real.exp (- (|t| * M)) * (∫ x, r x ∂μ) ≤ + ∫ x, Real.exp (t*g x)*r x ∂μ := by + rw [← integral_const_mul] + apply integral_mono_ae (hr.const_mul _) (bounded_exp_mul_integrable μ hr hg hgb t) + filter_upwards [hr0] with x hx + apply mul_le_mul_of_nonneg_right _ hx + apply Real.exp_le_exp.mpr + have hb : |t*g x| ≤ |t| * M := by + rw [abs_mul] + exact mul_le_mul_of_nonneg_left (hgb x) (abs_nonneg t) + exact (neg_le_neg hb).trans (neg_abs_le _) + +theorem exponential_tilt_mass_pos {r g : Y → ℝ} (hr : Integrable r μ) + (hr0 : ∀ᵐ x ∂μ, 0 ≤ r x) (hmass : 0 < ∫ x, r x ∂μ) + (hg : Measurable g) {M : ℝ≥0} (hgb : ∀ x, |g x| ≤ M) (t : ℝ) : + 0 < ∫ x, Real.exp (t*g x)*r x ∂μ := + (mul_pos (Real.exp_pos _) hmass).trans_le + (exponential_tilt_mass_lower μ hr hr0 hg hgb t) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/PrescribedPlanCompression.lean b/lean/OAI/Geometry/RCD/Transport/PrescribedPlanCompression.lean new file mode 100644 index 0000000000000000000000000000000000000000..f6cf630e766d0366495e1239469420a77f474b2e --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/PrescribedPlanCompression.lean @@ -0,0 +1,46 @@ +import OAI.Geometry.RCD.Transport.CompressedFiniteUnique + +namespace OAI + +/-! # Sharpening compression on a prescribed optimal plan + +Uniqueness transfers the short-distance compression estimate from the +constructed entropy plan to the same plan used by the energy argument. +-/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped Topology ENNReal +noncomputable section +namespace RegularPointCoordinates.NoncollapsedRCD +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem prescribed_plan_compression {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (hn : 2≤n) + (ν₀ ν₁ : Measure X) [IsProbabilityMeasure ν₀] [IsProbabilityMeasure ν₁] + {C B : ℝ≥0∞} (hC : C≠⊤) (hB : B≠⊤) + (h0 : ν₀≤C • hausdorff n X) (h1 : ν₁≤C • hausdorff n X) + (p : X) {R D : ℝ} (hR : 0≤R) (hD : 0≤D) + (hs0 : ∀ᵐ x ∂ν₀, dist x p≤R) (hs1 : ∀ᵐ x ∂ν₁, dist x p≤R) + (hd : OptimalPlanDistanceBound ν₀ ν₁ D) + (π : Measure C(Time,X)) [IsProbabilityMeasure π] + (hg : ∀ᵐ γ ∂π, IsGeodesic γ) + (hp : IsOptimalCoupling ν₀ ν₁ (π.map (fun γ => (γ 0,γ 1)))) + (hc : ∀ t : Time, π.map (fun γ => γ t)≤B • hausdorff n X) : + ∀ t : Time, π.map (fun γ => γ t)≤compressionBudget K n D C • hausdorff n X := by + let : ProperSpace X := hX.proper K n hn + let : SeparableSpace X := hX.separable + let : IsLocallyFiniteMeasure (hausdorff n X) := locallyFinite_of_finiteOnBounded _ hX.finiteOnBounded + obtain ⟨ρ,hρ,hgρ,hpρ,hcρ⟩ := + hX.exists_compressed_entropy_plan K n hn ν₀ ν₁ hC h0 h1 p hR hs0 hs1 D hD hd + let : IsProbabilityMeasure ρ := hρ + have he := hX.compressed_plan_unique_finite hn p hR π ρ hg hgρ hp hpρ hB + (compressionBudget_ne_top K n D hC) hc (fun t => (hcρ t).1) hs0 hs1 + rw [he] + exact fun t => (hcρ t).1 + +end RegularPointCoordinates.NoncollapsedRCD + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/QuadraticGeodesicGeometry.lean b/lean/OAI/Geometry/RCD/Transport/QuadraticGeodesicGeometry.lean new file mode 100644 index 0000000000000000000000000000000000000000..c639a31c29c941d6bb941f493fae42dc2d6b276c --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/QuadraticGeodesicGeometry.lean @@ -0,0 +1,93 @@ +import OAI.Geometry.RCD.Transport.QuadraticGeodesicUniqueness +import OAI.Analysis.RCDHeat.CompressionIntegral + +namespace OAI + +/-! # Metric operations supplied by exact quadratic geodesics + +Exact quadratic distance identities determine unique geodesics and +radial similarities, including their composition and reversal laws. +-/ + +open Set Metric +noncomputable section +namespace RegularPointCoordinates +variable (X : Type*) [MetricSpace X] + +structure QuadraticGeodesicGeometry where + path : X → X → C(Time,X) + geodesic : ∀ x y, IsGeodesic (path x y) + initial : ∀ x y, path x y 0=x + terminal : ∀ x y, path x y 1=y + quadratic : ∀ x y z (t : Time), dist z (path x y t)^2 = + (1-(t:ℝ))*dist z x^2+(t:ℝ)*dist z y^2-(t:ℝ)*(1-(t:ℝ))*dist x y^2 + +namespace QuadraticGeodesicGeometry +variable {X} (G : QuadraticGeodesicGeometry X) + +theorem unique (x y : X) (γ : C(Time,X)) (hg : IsGeodesic γ) + (h0 : γ 0=x) (h1 : γ 1=y) : γ=G.path x y := by + apply quadratic_geodesic_unique (G.path x y) γ hg + (h0.trans (G.initial x y).symm) (h1.trans (G.terminal x y).symm) + simpa only [G.initial,G.terminal] using G.quadratic x y + +def radial (p : X) (t : Time) (x : X) : X := G.path p x t + +@[simp] theorem radial_zero (p x : X) : G.radial p 0 x=p := G.initial p x +@[simp] theorem radial_one (p x : X) : G.radial p 1 x=x := G.terminal p x + +theorem dist_radial (p x y : X) (t : Time) : + dist (G.radial p t x) (G.radial p t y)=(t:ℝ)*dist x y := by + have he := quadratic_radial_distance (G.path p x) (G.path p y) (G.geodesic p y) + ((G.initial p x).trans (G.initial p y).symm) + (by simpa only [G.initial,G.terminal] using G.quadratic p x) + (by simpa only [G.initial,G.terminal] using G.quadratic p y) t + simpa only [radial,G.terminal] using he + +theorem radial_lipschitz (p : X) (t : Time) : + LipschitzWith ⟨t,t.property.1⟩ (G.radial p t) := by + apply LipschitzWith.of_dist_le_mul + intro x y + exact (G.dist_radial p x y t).le + +theorem radial_antilipschitz (p : X) (t : Time) (ht : 0<(t:ℝ)) : + AntilipschitzWith ⟨(t:ℝ)⁻¹,inv_nonneg.mpr ht.le⟩ (G.radial p t) := by + apply AntilipschitzWith.of_le_mul_dist + intro x y + rw [G.dist_radial] + change dist x y ≤ (t:ℝ)⁻¹*((t:ℝ)*dist x y) + rw [← mul_assoc,inv_mul_cancel₀ ht.ne',one_mul] + +@[simp] theorem radial_self (p : X) (t : Time) : G.radial p t p=p := by + have hh := G.geodesic p p t 0 + rw [G.initial,G.terminal,dist_self,mul_zero] at hh + exact dist_eq_zero.mp hh + +theorem radial_comp (p x : X) (s t : Time) : + G.radial p s (G.radial p t x) = + G.radial p ⟨(s:ℝ)*(t:ℝ),mul_nonneg s.property.1 t.property.1, + (mul_le_mul_of_nonneg_right s.property.2 t.property.1).trans (by simpa using t.property.2)⟩ x := by + have he := G.unique p (G.radial p t x) (subpath 0 t (G.path p x)) + ((G.geodesic p x).subpath 0 t) + (by simp only [subpath_zero,G.initial]) (by simp only [subpath_one,radial]) + have hh := congrArg (fun γ : C(Time,X) => γ s) he + change G.path p x (timeSegment 0 t s)=G.radial p s (G.radial p t x) at hh + rw [← hh] + congr 1 + apply Subtype.ext + change (1-(s:ℝ))*0+(s:ℝ)*(t:ℝ)=(s:ℝ)*(t:ℝ) + ring + +theorem reverse_path (x y : X) (t : Time) : + G.path x y (timeSegment 1 0 t)=G.path y x t := by + have he := G.unique y x (subpath 1 0 (G.path x y)) + ((G.geodesic x y).subpath 1 0) + (by simp only [subpath_zero,G.terminal]) (by simp only [subpath_one,G.initial]) + exact congrArg (fun γ : C(Time,X) => γ t) he + +end QuadraticGeodesicGeometry +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/QuadraticGeodesicUniqueness.lean b/lean/OAI/Geometry/RCD/Transport/QuadraticGeodesicUniqueness.lean new file mode 100644 index 0000000000000000000000000000000000000000..978e1d3a1dca4f5245ae7721e540ea8b59a6a792 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/QuadraticGeodesicUniqueness.lean @@ -0,0 +1,65 @@ +import OAI.Geometry.RCD.Transport.RadialGeodesic + +namespace OAI + +/-! # Uniqueness forced by the quadratic distance identities + +The identity is tested at a point on a competing geodesic. Its right hand +side then vanishes, so no nonbranching assumption is needed. +-/ + +open Set Metric +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] + +theorem quadratic_geodesic_unique (γ η : C(Time,X)) (hη : IsGeodesic η) + (h0 : η 0=γ 0) (h1 : η 1=γ 1) + (he : ∀ z : X, ∀ t : Time, dist z (γ t)^2 = + (1-(t:ℝ))*dist z (γ 0)^2+(t:ℝ)*dist z (γ 1)^2- + (t:ℝ)*(1-(t:ℝ))*dist (γ 0) (γ 1)^2) : η=γ := by + ext t + have hx : dist (η t) (γ 0)=(t:ℝ)*dist (γ 0) (γ 1) := by + have hh := hη t 0 + rw [h0,h1] at hh + change dist (η t) (γ 0)=|(t:ℝ)-0| *dist (γ 0) (γ 1) at hh + simpa only [sub_zero,abs_of_nonneg t.property.1] using hh + have hy : dist (η t) (γ 1)=(1-(t:ℝ))*dist (γ 0) (γ 1) := by + have hh := hη t 1 + rw [h0,h1] at hh + change dist (η t) (γ 1)=|(t:ℝ)-1| *dist (γ 0) (γ 1) at hh + rw [abs_sub_comm,abs_of_nonneg (sub_nonneg.mpr t.property.2)] at hh + exact hh + have hz : dist (η t) (γ t)^2=0 := by + rw [he (η t) t,hx,hy] + ring + exact dist_eq_zero.mp (sq_eq_zero_iff.mp hz) + +theorem quadratic_radial_distance + (γ η : C(Time,X)) (hη : IsGeodesic η) (h0 : γ 0=η 0) + (hγe : ∀ z : X, ∀ t : Time, dist z (γ t)^2 = + (1-(t:ℝ))*dist z (γ 0)^2+(t:ℝ)*dist z (γ 1)^2- + (t:ℝ)*(1-(t:ℝ))*dist (γ 0) (γ 1)^2) + (hηe : ∀ z : X, ∀ t : Time, dist z (η t)^2 = + (1-(t:ℝ))*dist z (η 0)^2+(t:ℝ)*dist z (η 1)^2- + (t:ℝ)*(1-(t:ℝ))*dist (η 0) (η 1)^2) (t : Time) : + dist (γ t) (η t)=(t:ℝ)*dist (γ 1) (η 1) := by + have hr : dist (η t) (γ 0)=(t:ℝ)*dist (η 0) (η 1) := by + rw [h0,hη t 0] + change |(t:ℝ)-0| *dist (η 0) (η 1)=(t:ℝ)*dist (η 0) (η 1) + simp only [sub_zero,abs_of_nonneg t.property.1] + have hm := hηe (γ 1) t + rw [← h0] at hm + rw [dist_comm (γ 1) (γ 0)] at hm + have he := hγe (η t) t + rw [hr,dist_comm (η t) (γ 1),hm,← h0] at he + have hs : dist (γ t) (η t)^2=((t:ℝ)*dist (γ 1) (η 1))^2 := by + rw [dist_comm] + nlinarith only [he] + exact (sq_eq_sq₀ dist_nonneg (mul_nonneg t.property.1 dist_nonneg)).mp hs + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/QuadraticMidpointError.lean b/lean/OAI/Geometry/RCD/Transport/QuadraticMidpointError.lean new file mode 100644 index 0000000000000000000000000000000000000000..59ecd6123bce1e52938b249925bec681ecf8c8ae --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/QuadraticMidpointError.lean @@ -0,0 +1,111 @@ +import OAI.Geometry.RCD.Harmonic.InteriorQuadraticDefect + +namespace OAI + +/-! # Recovering the full midpoint law from interior time intervals -/ + +open Set Metric MeasureTheory +noncomputable section +namespace RegularPointCoordinates + +theorem quadratic_midpoint_error_bound (f₀ f₁ fa fb fm c C δ ε : ℝ) + (hδ0 : 0≤δ) (hδ1 : δ≤1) (hc0 : 0≤c) (hc : c≤C) + (ha : |fa-f₀|≤ε) (hb : |fb-f₁|≤ε) : + |fm-(f₀+f₁)/2+c/8|≤|fm-(fa+fb)/2+c*(1-2*δ)^2/8|+ε+C*δ/2 := by + let I := fm-(fa+fb)/2+c*(1-2*δ)^2/8 + have he : fm-(f₀+f₁)/2+c/8=I+((fa-f₀)+(fb-f₁))/2+c*δ*(1-δ)/2 := by + dsimp only [I] + ring + have heps : |((fa-f₀)+(fb-f₁))/2|≤ε := by + rw [abs_div,abs_of_pos (by norm_num : (0:ℝ)<2)] + have hs := (abs_add_le (fa-f₀) (fb-f₁)).trans (add_le_add ha hb) + linarith + have hcurv0 : 0≤c*δ*(1-δ)/2 := by positivity + have hcurv : c*δ*(1-δ)/2≤C*δ/2 := by + have h1 : c*δ*(1-δ)≤c*δ := mul_le_of_le_one_right (mul_nonneg hc0 hδ0) (by linarith) + have h2 := mul_le_mul_of_nonneg_right hc hδ0 + linarith + rw [he] + calc + _ ≤ |I|+|((fa-f₀)+(fb-f₁))/2|+|c*δ*(1-δ)/2| := + (abs_add_le _ _).trans (add_le_add (abs_add_le _ _) le_rfl) + _ ≤ _ := by rw [abs_of_nonneg hcurv0]; linarith + +variable {X : Type*} [MetricSpace X] + +abbrev quadraticMidpointTime : Time := ⟨1/2,by norm_num⟩ + +theorem squared_distance_along_geodesic (γ : C(Time,X)) (hg : IsGeodesic γ) + (z : X) {R : ℝ} (hR : 0≤R) (h0 : dist z (γ 0)≤R) (h1 : dist z (γ 1)≤R) + (s t : Time) : + |dist z (γ s)^2/2-dist z (γ t)^2/2|≤6*R^2*|(s:ℝ)-t| := by + have hd : dist (γ 0) (γ 1)≤2*R := by + have hh := dist_triangle (γ 0) z (γ 1) + rw [dist_comm (γ 0) z] at hh + linarith + have hstay (u : Time) : dist z (γ u)≤3*R := by + have hh := hg 0 u + have hdist : dist (γ 0) (γ u)≤2*R := by + rw [hh] + have hu : |(0:Time)-(u:ℝ)|≤1 := by + change |(0:ℝ)-(u:ℝ)|≤1 + rw [zero_sub,abs_neg,abs_of_nonneg u.property.1] + exact u.property.2 + exact (mul_le_mul hu hd dist_nonneg zero_le_one).trans_eq (one_mul _) + linarith [dist_triangle z (γ 0) (γ u)] + have hdiff : |dist z (γ s)-dist z (γ t)|≤|(s:ℝ)-t| *(2*R) := by + calc + _ ≤ dist (γ s) (γ t) := by simpa only [dist_comm] using abs_dist_sub_le (γ s) (γ t) z + _ = |(s:ℝ)-t| *dist (γ 0) (γ 1) := hg s t + _ ≤ _ := mul_le_mul_of_nonneg_left hd (abs_nonneg _) + have hsum : (dist z (γ s)+dist z (γ t))/2≤3*R := by linarith [hstay s,hstay t] + rw [show dist z (γ s)^2/2-dist z (γ t)^2/2= + (dist z (γ s)-dist z (γ t))*((dist z (γ s)+dist z (γ t))/2) by ring, + abs_mul,abs_of_nonneg (by positivity : 0≤(dist z (γ s)+dist z (γ t))/2)] + exact (mul_le_mul hdiff hsum (by positivity) (by positivity)).trans_eq (by ring) + +def fullMidpointDefect (z : X) (γ : C(Time,X)) : ℝ := + dist z (γ quadraticMidpointTime)^2/2-(dist z (γ 0)^2/2+dist z (γ 1)^2/2)/2+ + dist (γ 0) (γ 1)^2/8 + +theorem fullMidpointDefect_le_interior (γ : C(Time,X)) (hg : IsGeodesic γ) + (z : X) {R δ : ℝ} (hR : 0≤R) (h0 : dist z (γ 0)≤R) (h1 : dist z (γ 1)≤R) + (hδ0 : 0<δ) (hδ1 : δ<1/2) (a b : Time) (ha : (a:ℝ)=δ) (hb : (b:ℝ)=1-δ) : + |fullMidpointDefect z γ|≤|interiorQuadraticDefect (fun x => dist z x^2/2) a b quadraticMidpointTime γ|+ + 8*R^2*δ := by + have hα := squared_distance_along_geodesic γ hg z hR h0 h1 a 0 + have hβ := squared_distance_along_geodesic γ hg z hR h0 h1 b 1 + rw [ha] at hα + rw [hb] at hβ + change |dist z (γ a)^2/2-dist z (γ 0)^2/2|≤6*R^2*|δ-0| at hα + have hα' : |dist z (γ a)^2/2-dist z (γ 0)^2/2|≤6*R^2*δ := by + simpa only [sub_zero,abs_of_pos hδ0] using hα + change |dist z (γ b)^2/2-dist z (γ 1)^2/2|≤6*R^2*|(1-δ)-1| at hβ + have heβ : |(1-δ)-1|=δ := by rw [show (1-δ)-1= -δ by ring,abs_neg,abs_of_pos hδ0] + rw [heβ] at hβ + have hd : dist (γ 0) (γ 1)≤2*R := by + have hh := dist_triangle (γ 0) z (γ 1) + rw [dist_comm (γ 0) z] at hh + linarith + have hcost : dist (γ 0) (γ 1)^2≤4*R^2 := by nlinarith [dist_nonneg (x:=γ 0) (y:=γ 1)] + have hestimate := quadratic_midpoint_error_bound + (dist z (γ 0)^2/2) (dist z (γ 1)^2/2) (dist z (γ a)^2/2) + (dist z (γ b)^2/2) (dist z (γ quadraticMidpointTime)^2/2) (dist (γ 0) (γ 1)^2) + (4*R^2) δ (6*R^2*δ) hδ0.le (by linarith) (sq_nonneg _) hcost hα' hβ + have hI : interiorQuadraticDefect (fun x => dist z x^2/2) a b quadraticMidpointTime γ= + dist z (γ quadraticMidpointTime)^2/2-(dist z (γ a)^2/2+dist z (γ b)^2/2)/2+ + dist (γ 0) (γ 1)^2*(1-2*δ)^2/8 := by + dsimp only [interiorQuadraticDefect,quadraticMidpointTime] + rw [ha,hb] + field_simp [show 1-δ-δ≠0 by linarith] + ring + change |fullMidpointDefect z γ|≤_ at hestimate + rw [← hI] at hestimate + convert hestimate using 1 + ring + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/QuadraticMidpointLimit.lean b/lean/OAI/Geometry/RCD/Transport/QuadraticMidpointLimit.lean new file mode 100644 index 0000000000000000000000000000000000000000..6a62aa64dcd6ccaf1ad32a21f7ee74b7fe7ed724 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/QuadraticMidpointLimit.lean @@ -0,0 +1,55 @@ +import OAI.Geometry.RCD.Transport.QuadraticMidpointError +import OAI.Geometry.RCD.Metric.PointedLiftDistances + +namespace OAI + +/-! # Passing normalized midpoint defects through fixed metric approximation maps -/ + +open Filter Metric +open scoped Topology +noncomputable section +namespace RegularPointCoordinates +variable {X Y : Type*} [MetricSpace X] [MetricSpace Y] + +theorem rescaled_fullMidpointDefect_tendsto (z : ℕ → X) (γ : ℕ → C(Time,X)) + (r : ℕ → ℝ) (hr : ∀ k, r k ≠ 0) {a b c d : ℝ} + (ha : Tendsto (fun k => dist (z k) (γ k quadraticMidpointTime)/r k) atTop (𝓝 a)) + (hb : Tendsto (fun k => dist (z k) (γ k 0)/r k) atTop (𝓝 b)) + (hc : Tendsto (fun k => dist (z k) (γ k 1)/r k) atTop (𝓝 c)) + (hd : Tendsto (fun k => dist (γ k 0) (γ k 1)/r k) atTop (𝓝 d)) : + Tendsto (fun k => fullMidpointDefect (z k) (γ k)/(r k)^2) atTop + (𝓝 (a^2/2-(b^2/2+c^2/2)/2+d^2/8)) := by + have hh := ((ha.pow 2 |>.div_const 2).sub + (((hb.pow 2 |>.div_const 2).add (hc.pow 2 |>.div_const 2)).div_const 2)).add + (hd.pow 2 |>.div_const 8) + apply hh.congr + intro k + dsimp only [fullMidpointDefect] + field_simp [hr k] + +theorem pointed_fullMidpointDefect_zero {q z₀ x y b : Y} {S : ℝ} + (p z : ℕ → X) (r ε : ℕ → ℝ) (V : ℕ → X → Y) (γ : ℕ → C(Time,X)) + (hr : ∀ k, 0 < r k) (hε : Tendsto ε atTop (𝓝 0)) + (hV : ∀ k, IsPointedApproximation (p k) q (r k) S (ε k) (V k)) + (hz : ∀ᶠ k in atTop, dist (z k) (p k) ≤ S * r k) + (hγ : ∀ᶠ k in atTop, ∀ t : Time, dist (γ k t) (p k) ≤ S * r k) + (hVz : Tendsto (fun k => V k (z k)) atTop (𝓝 z₀)) + (hV0 : Tendsto (fun k => V k (γ k 0)) atTop (𝓝 x)) + (hV1 : Tendsto (fun k => V k (γ k 1)) atTop (𝓝 y)) + (hVb : Tendsto (fun k => V k (γ k quadraticMidpointTime)) atTop (𝓝 b)) + (hdef : Tendsto (fun k => fullMidpointDefect (z k) (γ k)/(r k)^2) atTop (𝓝 0)) : + dist z₀ b^2 = (dist z₀ x^2+dist z₀ y^2)/2-dist x y^2/4 := by + have hm := rescaled_fullMidpointDefect_tendsto z γ r (fun k => (hr k).ne') + (pointed_lift_distance_tendsto p r ε V hε hV z (fun k => γ k quadraticMidpointTime) hz (hγ.mono fun _ h => h _) hVz hVb) + (pointed_lift_distance_tendsto p r ε V hε hV z (fun k => γ k 0) hz (hγ.mono fun _ h => h _) hVz hV0) + (pointed_lift_distance_tendsto p r ε V hε hV z (fun k => γ k 1) hz (hγ.mono fun _ h => h _) hVz hV1) + (pointed_lift_distance_tendsto p r ε V hε hV (fun k => γ k 0) (fun k => γ k 1) + (hγ.mono fun _ h => h _) (hγ.mono fun _ h => h _) hV0 hV1) + have he := tendsto_nhds_unique hm hdef + linarith + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/QuadraticMidpointSelection.lean b/lean/OAI/Geometry/RCD/Transport/QuadraticMidpointSelection.lean new file mode 100644 index 0000000000000000000000000000000000000000..7b3be0b73f9663bc68974359521f3ecd1a98c80d --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/QuadraticMidpointSelection.lean @@ -0,0 +1,89 @@ +import OAI.Geometry.RCD.Transport.QuadraticPlanIntegrability +import OAI.Geometry.RCD.Coordinates.DiagonalMeanSelection + +namespace OAI + +/-! # Simultaneous midpoint laws from a countable family of distance tests -/ + +open Set Filter Metric MeasureTheory +open scoped Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +omit [MeasurableSpace X] [BorelSpace X] in +theorem quadratic_midpoint_selection + (π : ℕ → ℕ → Measure C(Time,X)) [∀ m k, IsProbabilityMeasure (π m k)] + (z : ℕ → ℕ → X) (r : ℕ → ℕ → ℝ) (hr : ∀ i k, 0 + (∫ γ, |interiorQuadraticDefect (fun x => dist (z i k) x^2/2) + (a m) (b m) quadraticMidpointTime γ| ∂π m k)/(r i k)^2) atTop (𝓝 0)) + (P : ℕ → ℕ → C(Time,X) → Prop) (hP : ∀ m k, ∀ᵐ γ ∂π m k, P m k γ) : + ∃ (d : ℕ → ℕ) (γ : ℕ → C(Time,X)), Tendsto d atTop atTop ∧ + (∀ k, P (d k) k (γ k) ∧ IsGeodesic (γ k)) ∧ + ∀ i, Tendsto (fun k => fullMidpointDefect (z i k) (γ k)/(r i k)^2) atTop (𝓝 0) := by + let F m k γ := ∑ i∈Finset.range (m+1), + |interiorQuadraticDefect (fun x => dist (z i k) x^2/2) (a m) (b m) quadraticMidpointTime γ|/(r i k)^2 + have hI m i (him : i∈Finset.range (m+1)) k : Integrable + (fun γ => |interiorQuadraticDefect (fun x => dist (z i k) x^2/2) + (a m) (b m) quadraticMidpointTime γ|/(r i k)^2) (π m k) := by + have hie : i ≤ m := Nat.lt_succ_iff.mp (Finset.mem_range.mp him) + exact (quadratic_plan_interior_integrable (π m k) (hg m k) (z i k) (hr i k).le + ((hends m i hie k).mono fun _ h => h.1) ((hends m i hie k).mono fun _ h => h.2) + (a m) (b m) quadraticMidpointTime).abs.div_const _ + have hFI m k : Integrable (F m k) (π m k) := + integrable_finsetSum _ (fun i hi => hI m i hi k) + have hF0 m k γ : 0 ≤ F m k γ := Finset.sum_nonneg fun _ _ => div_nonneg (abs_nonneg _) (sq_nonneg _) + have hFlim m : Tendsto (fun k => ∫ γ, F m k γ ∂π m k) atTop (𝓝 0) := by + have hh := tendsto_finsetSum (Finset.range (m+1)) (fun i hi => + hlim m i (Nat.lt_succ_iff.mp (Finset.mem_range.mp hi))) + simpa only [F,integral_finsetSum _ (fun i hi => hI m i hi _),integral_div,Finset.sum_const_zero] using hh + let Q m k γ := P m k γ ∧ IsGeodesic γ ∧ ∀ i, i ≤ m → + dist (z i k) (γ 0)≤r i k ∧ dist (z i k) (γ 1)≤r i k + have hQ m k : ∀ᵐ γ ∂π m k, Q m k γ := by + have hh : ∀ᵐ γ ∂π m k, ∀ i, i ≤ m → + dist (z i k) (γ 0)≤r i k ∧ dist (z i k) (γ 1)≤r i k := by + apply ae_all_iff.mpr + intro i + by_cases hi : i ≤ m + · exact (hends m i hi k).mono fun _ h _ => h + · exact Eventually.of_forall fun _ h => (hi h).elim + exact (hP m k).and ((hg m k).and hh) + obtain ⟨d,γ,hd,hγ,hcost⟩ := diagonal_mean_selection π F Q hFI hF0 hQ hFlim + refine ⟨d,γ,hd,fun k => ⟨(hγ k).1,(hγ k).2.1⟩,?_⟩ + intro i + have hsmall : Tendsto (fun k => F (d k) k (γ k)+8*δ (d k)) atTop (𝓝 0) := by + simpa only [mul_zero,add_zero,Function.comp_apply] using hcost.add ((hδ0.comp hd).const_mul 8) + apply squeeze_zero_norm' _ hsmall + filter_upwards [hd.eventually_ge_atTop i] with k hik + have hE := fullMidpointDefect_le_interior (γ k) (hγ k).2.1 (z i k) (hr i k).le + ((hγ k).2.2 i hik).1 ((hγ k).2.2 i hik).2 (hδ (d k)).1 (hδ (d k)).2 + (a (d k)) (b (d k)) (ha (d k)) (hb (d k)) + have hpart : |interiorQuadraticDefect (fun x => dist (z i k) x^2/2) + (a (d k)) (b (d k)) quadraticMidpointTime (γ k)|/(r i k)^2≤F (d k) k (γ k) := by + dsimp only [F] + exact Finset.single_le_sum (fun j _ => + div_nonneg (abs_nonneg (interiorQuadraticDefect (fun x => dist (z j k) x^2/2) + (a (d k)) (b (d k)) quadraticMidpointTime (γ k))) (sq_nonneg (r j k))) + (Finset.mem_range.mpr (Nat.lt_succ_of_le hik)) + rw [Real.norm_eq_abs,abs_div,abs_of_pos (sq_pos_of_pos (hr i k))] + calc + _ ≤ (|interiorQuadraticDefect (fun x => dist (z i k) x^2/2) + (a (d k)) (b (d k)) quadraticMidpointTime (γ k)|+8*(r i k)^2*δ (d k))/(r i k)^2 := + div_le_div_of_nonneg_right hE (sq_nonneg _) + _ = |interiorQuadraticDefect (fun x => dist (z i k) x^2/2) + (a (d k)) (b (d k)) quadraticMidpointTime (γ k)|/(r i k)^2+8*δ (d k) := by + field_simp [(hr i k).ne'] + _ ≤ _ := add_le_add hpart le_rfl + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/QuadraticPlanIntegrability.lean b/lean/OAI/Geometry/RCD/Transport/QuadraticPlanIntegrability.lean new file mode 100644 index 0000000000000000000000000000000000000000..f04f49f2f9179e99a10056a342053644dbe5f8ca --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/QuadraticPlanIntegrability.lean @@ -0,0 +1,54 @@ +import OAI.Geometry.RCD.Transport.QuadraticMidpointError +import OAI.Geometry.RCD.Transport.BoundedGeodesicPlan + +namespace OAI + +/-! # Integrability of distance defects on bounded geodesic plans -/ + +open Set Filter Metric MeasureTheory +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +omit [MeasurableSpace X] [BorelSpace X] in +theorem quadratic_plan_integrable_data (π : Measure C(Time,X)) [IsFiniteMeasure π] + (hg : ∀ᵐ γ ∂π, IsGeodesic γ) (z : X) {R : ℝ} (hR : 0≤R) + (h0 : ∀ᵐ γ ∂π, dist z (γ 0)≤R) (h1 : ∀ᵐ γ ∂π, dist z (γ 1)≤R) : + (∀ s : Time, Integrable (fun γ => dist z (γ s)^2/2) π) ∧ + Integrable (fun γ : C(Time,X) => dist (γ 0) (γ 1)^2) π := by + constructor + · intro s + have hcont : Continuous (fun γ : C(Time,X) => dist z (γ s)^2/2) := + ((continuous_const.dist (continuous_eval_const s)).pow 2).div_const 2 + apply Integrable.of_bound hcont.aestronglyMeasurable ((3*R)^2/2) + filter_upwards [geodesic_plan_ball_support π hg z h0 h1] with γ hγ + have hd : dist z (γ s)≤3*R := by simpa only [mem_closedBall,dist_comm] using hγ s + rw [Real.norm_eq_abs,abs_of_nonneg (by positivity)] + nlinarith [dist_nonneg (x:=z) (y:=γ s)] + · have hcont : Continuous (fun γ : C(Time,X) => dist (γ 0) (γ 1)^2) := + ((continuous_eval_const 0).dist (continuous_eval_const 1)).pow 2 + apply Integrable.of_bound hcont.aestronglyMeasurable (4*R^2) + filter_upwards [h0,h1] with γ ha hb + have hd : dist (γ 0) (γ 1)≤2*R := by + have hh := dist_triangle (γ 0) z (γ 1) + rw [dist_comm (γ 0) z] at hh + linarith + rw [Real.norm_eq_abs,abs_of_nonneg (sq_nonneg _)] + nlinarith [dist_nonneg (x:=γ 0) (y:=γ 1)] + +omit [MeasurableSpace X] [BorelSpace X] in +theorem quadratic_plan_interior_integrable (π : Measure C(Time,X)) [IsFiniteMeasure π] + (hg : ∀ᵐ γ ∂π, IsGeodesic γ) (z : X) {R : ℝ} (hR : 0≤R) + (h0 : ∀ᵐ γ ∂π, dist z (γ 0)≤R) (h1 : ∀ᵐ γ ∂π, dist z (γ 1)≤R) + (l h t : Time) : + Integrable (interiorQuadraticDefect (fun x => dist z x^2/2) l h t) π := by + obtain ⟨hi,hd⟩ := quadratic_plan_integrable_data π hg z hR h0 h1 + exact ((hi t).sub (hi l) |>.sub (((hi h).sub (hi l)).div_const _ |>.mul_const _)).sub + ((hd.mul_const _).mul_const _ |>.div_const _) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/RadialDistortionContinuity.lean b/lean/OAI/Geometry/RCD/Transport/RadialDistortionContinuity.lean new file mode 100644 index 0000000000000000000000000000000000000000..544b758476b6d41c2f22d6b1e606b1d994f83585 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/RadialDistortionContinuity.lean @@ -0,0 +1,48 @@ +import OAI.Geometry.RCD.Transport.HyperbolicDistortion + +namespace OAI + +/-! # Continuity of the exact CD radial volume coefficient -/ + +open Set Filter +open scoped ENNReal Topology + +namespace RegularPointCoordinates + +theorem continuousAt_tau_nat_power_of_neg {K t R : ℝ} {n : ℕ} + (hK : K < 0) (hn : 2 ≤ n) (ht : 0 < t) (ht1 : t < 1) (hR : 0 < R) : + ContinuousAt (fun q : ℝ × ℝ => tau K n q.1 q.2 ^ n) (t, R) := by + have hn1 : (1 : ℝ) < n := by exact_mod_cast (show 1 < n by omega) + let a := Real.sqrt (-K / ((n : ℝ) - 1)) + have ha : 0 < a := Real.sqrt_pos.mpr (div_pos (neg_pos.mpr hK) (sub_pos.mpr hn1)) + let F : ℝ × ℝ → ℝ≥0∞ := fun q => ENNReal.ofReal q.1 * + ENNReal.ofReal (Real.sinh (q.1 * q.2 * a) / Real.sinh (q.2 * a)) ^ (n - 1) + have hratio : ContinuousAt + (fun q : ℝ × ℝ => Real.sinh (q.1 * q.2 * a) / Real.sinh (q.2 * a)) (t, R) := by + apply ContinuousAt.div + · fun_prop + · fun_prop + · exact (Real.sinh_pos_iff.mpr (mul_pos hR ha)).ne' + have hF : ContinuousAt F (t, R) := by + have hp : ContinuousAt (fun q : ℝ × ℝ => + ENNReal.ofReal (Real.sinh (q.1 * q.2 * a) / Real.sinh (q.2 * a)) ^ (n - 1)) + (t, R) := by + simpa only [ENNReal.rpow_natCast, Function.comp_def] using + (ENNReal.continuous_rpow_const (y := ((n - 1 : ℕ) : ℝ))).continuousAt.comp + (ENNReal.continuous_ofReal.continuousAt.comp hratio) + exact ENNReal.Tendsto.mul + (ENNReal.continuous_ofReal.comp continuous_fst).continuousAt + (Or.inl (ENNReal.ofReal_pos.mpr ht).ne') hp (Or.inr ENNReal.ofReal_ne_top) + apply hF.congr_of_eventuallyEq + have hlow : ∀ᶠ q : ℝ × ℝ in 𝓝 (t, R), 0 < q.1 := + continuous_fst.continuousAt.eventually (Ioi_mem_nhds ht) + have hupp : ∀ᶠ q : ℝ × ℝ in 𝓝 (t, R), q.1 < 1 := + continuous_fst.continuousAt.eventually (Iio_mem_nhds ht1) + have hr : ∀ᶠ q : ℝ × ℝ in 𝓝 (t, R), 0 < q.2 := + continuous_snd.continuousAt.eventually (Ioi_mem_nhds hR) + filter_upwards [hlow, hupp, hr] with q hq hq1 hqR + rw [tau_nat_power hn hq hq1, sigma_neg_eq hK hn1 hqR] + +end RegularPointCoordinates + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/RadialGeodesic.lean b/lean/OAI/Geometry/RCD/Transport/RadialGeodesic.lean new file mode 100644 index 0000000000000000000000000000000000000000..c2e30d79917494c727068642481844dea4e1caed --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/RadialGeodesic.lean @@ -0,0 +1,74 @@ +import OAI.Geometry.RCD.Metric.InwardDistance + +namespace OAI + +/-! # Radial midpoint rigidity and distance along a minimizing path + +The nonnegative quadratic midpoint defect has zero integral for an +optimal coupling to a radial midpoint. Its zero set consists precisely +of metric midpoints on rays towards the pole. +-/ + +open Set Metric + +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] + +theorem radial_midpoint_defect_nonneg (p x y : X) : + 0 ≤ 2 * dist x y ^ 2 + 2 * dist y p ^ 2 - dist x p ^ 2 := by + have ht := dist_triangle x y p + have ha := dist_nonneg (x := x) (y := p) + have hb := dist_nonneg (x := x) (y := y) + have hc := dist_nonneg (x := y) (y := p) + nlinarith [sq_nonneg (dist x y - dist y p)] + +theorem radial_midpoint_of_defect_zero {p x y : X} + (hz : 2 * dist x y ^ 2 + 2 * dist y p ^ 2 - dist x p ^ 2 = 0) : + dist x y = dist y p ∧ dist x p = dist x y + dist y p := by + have ht := dist_triangle x y p + have ha := dist_nonneg (x := x) (y := p) + have hb := dist_nonneg (x := x) (y := y) + have hc := dist_nonneg (x := y) (y := p) + have he : dist x y = dist y p := by + nlinarith [sq_nonneg (dist x y - dist y p)] + refine ⟨he, ?_⟩ + nlinarith + +theorem IsGeodesic.radial_distance {γ : C(Time, X)} (hγ : IsGeodesic γ) + {p : X} (hradial : dist (γ 0) p = dist (γ 0) (γ 1) + dist (γ 1) p) + (t : Time) : + dist (γ t) p = dist (γ 0) p - (t : ℝ) * dist (γ 0) (γ 1) := by + have hfirst : dist (γ 0) (γ t) = (t : ℝ) * dist (γ 0) (γ 1) := by + rw [hγ] + change |0 - (t : ℝ)| * dist (γ 0) (γ 1) = _ + rw [zero_sub, abs_neg, abs_of_nonneg t.2.1] + have hlast : dist (γ t) (γ 1) = (1 - (t : ℝ)) * dist (γ 0) (γ 1) := by + rw [hγ] + change |(t : ℝ) - 1| * dist (γ 0) (γ 1) = _ + rw [abs_sub_comm, abs_of_nonneg (sub_nonneg.mpr t.2.2)] + have hlo := dist_triangle (γ 0) (γ t) p + have hhi := dist_triangle (γ t) (γ 1) p + rw [hfirst] at hlo + rw [hlast] at hhi + linarith + +theorem IsGeodesic.inwardDistance_increment {γ : C(Time, X)} (hγ : IsGeodesic γ) + {p : X} {R : ℝ} (hR : dist (γ 0) p < R) + (hradial : dist (γ 0) p = dist (γ 0) (γ 1) + dist (γ 1) p) + (t : Time) : + |inwardDistance p R (γ t) - inwardDistance p R (γ 0)| = + (t : ℝ) * dist (γ 0) (γ 1) := by + have hd := hγ.radial_distance hradial t + have ht : 0 ≤ (t : ℝ) * dist (γ 0) (γ 1) := mul_nonneg t.2.1 dist_nonneg + have hin : dist p (γ t) < R := by rw [dist_comm, hd]; linarith + have hin0 : dist p (γ 0) < R := by simpa only [dist_comm] using hR + rw [inwardDistance, inwardDistance, max_eq_left (sub_nonneg.mpr hin.le), + max_eq_left (sub_nonneg.mpr hin0.le), dist_comm p (γ t), dist_comm p (γ 0), hd] + have he : R - (dist (γ 0) p - (t : ℝ) * dist (γ 0) (γ 1)) - + (R - dist (γ 0) p) = (t : ℝ) * dist (γ 0) (γ 1) := by ring + rw [he, abs_of_nonneg ht] + +end RegularPointCoordinates + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/RadialMidpoint.lean b/lean/OAI/Geometry/RCD/Transport/RadialMidpoint.lean new file mode 100644 index 0000000000000000000000000000000000000000..fae3dbff064cd66712010949844dcadf6d1346a3 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/RadialMidpoint.lean @@ -0,0 +1,76 @@ +import OAI.Geometry.RCD.Transport.ConcentratedMidpointLimit + +namespace OAI + +/-! # A radial transport plan with a controlled midpoint + +The second marginal is constructed by normalized balls shrinking to the +pole. The asymmetric CD estimate controls the midpoint independently of +those ball densities; compactness then gives the actual Dirac endpoint. +-/ + +open Set Filter Metric MeasureTheory TopologicalSpace +open scoped ENNReal Topology + +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem NoncollapsedRCD.exists_radial_midpoint_plan {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) (hn : 2 ≤ n) (ν₀ : ProbabilityMeasure X) + {C₀ : ℝ≥0∞} (hC₀ : C₀ ≠ ∞) (h0 : (ν₀ : Measure X) ≤ C₀ • hausdorff n X) + (p : X) {R : ℝ} (hR : 0 < R) + (hs0 : ∀ᵐ x ∂(ν₀ : Measure X), dist x p ≤ R) : + ∃ π : ProbabilityMeasure C(Time, X), + (∀ᵐ γ ∂(π : Measure C(Time, X)), IsGeodesic γ ∧ ∀ t, dist (γ t) p ≤ 3 * R) ∧ + π.map (fun γ => γ 0) = ν₀ ∧ + π.map (fun γ => γ 1) = (⟨Measure.dirac p, inferInstance⟩ : ProbabilityMeasure X) ∧ + (π.map (fun γ => γ midpointTime) : Measure X) ≤ + (C₀ / (midpointFloor K n (2 * R)) ^ n) • hausdorff n X := by + let := hX.separable + let := locallyFinite_of_finiteOnBounded (hausdorff n X) hX.finiteOnBounded + let μ := hausdorff n X + let ε (k : ℕ) : ℝ := R / ((k : ℝ) + 1) + have hε (k : ℕ) : 0 < ε k := div_pos hR (by positivity) + have hεle (k : ℕ) : ε k ≤ R := by + apply (div_le_iff₀ (show 0 < (k : ℝ) + 1 by positivity)).mpr + nlinarith [Nat.cast_nonneg (α := ℝ) k] + have hεlim : Tendsto ε atTop (𝓝 0) := by + simpa only [ε, div_eq_mul_inv, one_div, one_mul, mul_zero] using + tendsto_one_div_add_atTop_nhds_zero_nat.const_mul R + have hball0 (k : ℕ) : μ (ball p (ε k)) ≠ 0 := (hX.fullSupport p (ε k) (hε k)).ne' + have hballtop (k : ℕ) : μ (ball p (ε k)) ≠ ∞ := + (hX.finiteOnBounded _ isBounded_ball).ne + let ν (k : ℕ) : ProbabilityMeasure X := + ⟨uniformOn μ (ball p (ε k)), uniformOn_probability μ _ (hball0 k) (hballtop k)⟩ + have hsν (k : ℕ) : ∀ᵐ x ∂(ν k : Measure X), dist x p ≤ ε k := + (uniformOn_ae_mem μ (ball p (ε k)) measurableSet_ball).mono fun _ hx => hx.le + have hνlim := probability_tendsto_dirac_of_radius hεlim hsν + have hC : C₀ / (midpointFloor K n (2 * R)) ^ n ≠ ∞ := + ENNReal.div_ne_top hC₀ (pow_ne_zero _ (midpointFloor_pos K n (2 * R)).ne') + apply exists_concentrated_midpoint_limit μ p (by positivity : 0 ≤ 3 * R) ν₀ ν hνlim hC + intro k + have h1 : (ν k : Measure X) ≤ (μ (ball p (ε k)))⁻¹ • μ := by + intro A + exact mul_le_mul_right (Measure.restrict_le_self (μ := μ) (s := ball p (ε k)) A) _ + have hsk : ∀ᵐ x ∂(ν k : Measure X), dist x p ≤ R := + (hsν k).mono fun _ hx => hx.trans (hεle k) + obtain ⟨π, hπ, hg, hp, hm⟩ := hX.exists_asymmetric_midpoint hn (ν₀ : Measure X) + (ν k : Measure X) hC₀ (ENNReal.inv_ne_top.mpr (hball0 k)) h0 h1 p hR.le hs0 hsk + let := hπ + have he := optimalPlan_endpoints (ν₀ : Measure X) (ν k : Measure X) π hp + refine ⟨⟨π, hπ⟩, optimal_geodesic_plan_bounded _ _ π hg hp p hR.le hs0 hsk, ?_, ?_, ?_⟩ + · apply Subtype.ext + exact he.1 + · apply Subtype.ext + exact he.2 + · change π.map (fun γ => γ midpointTime) ≤ _ + apply hm.trans + intro A + exact mul_le_mul_left (midpointSupportFactor_inv_le K (by omega : 0 < n) (2 * R) + C₀ ((μ (ball p (ε k)))⁻¹)) (μ A) + +end RegularPointCoordinates + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/RadialMidpointRigidity.lean b/lean/OAI/Geometry/RCD/Transport/RadialMidpointRigidity.lean new file mode 100644 index 0000000000000000000000000000000000000000..2e54061eef92ca05ca3908ad1b6d34b964b51c35 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/RadialMidpointRigidity.lean @@ -0,0 +1,55 @@ +import OAI.Geometry.RCD.Transport.RadialGeodesic +import OAI.Geometry.RCD.Transport.DiracTransportCost + +namespace OAI + +/-! # Integral rigidity of a radial midpoint coupling + +The quadratic triangle defect is nonnegative. The two marginal moments +and the optimal half-cost force its integral to vanish, so every path +of the replacement plan is still radial almost everywhere. +-/ + +open Set Filter Metric MeasureTheory + +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +omit [MeasurableSpace X] [BorelSpace X] in +theorem radial_midpoint_rigidity_of_moments + (π : Measure C(Time, X)) (p : X) + (hD : Integrable (fun γ : C(Time, X) => dist (γ 0) (γ 1) ^ 2) π) + (h₀ : Integrable (fun γ : C(Time, X) => dist (γ 0) p ^ 2) π) + (h₁ : Integrable (fun γ : C(Time, X) => dist (γ 1) p ^ 2) π) + (hcost : (∫ γ, dist (γ 0) (γ 1) ^ 2 ∂π) ≤ + (∫ γ, dist (γ 0) p ^ 2 ∂π) / 4) + (hhalf : (∫ γ, dist (γ 1) p ^ 2 ∂π) = + (∫ γ, dist (γ 0) p ^ 2 ∂π) / 4) : + ∀ᵐ γ ∂π, dist (γ 0) (γ 1) = dist (γ 1) p ∧ + dist (γ 0) p = dist (γ 0) (γ 1) + dist (γ 1) p := by + let F (γ : C(Time, X)) := + 2 * dist (γ 0) (γ 1) ^ 2 + 2 * dist (γ 1) p ^ 2 - dist (γ 0) p ^ 2 + have hi : Integrable F π := ((hD.const_mul 2).add (h₁.const_mul 2)).sub h₀ + have hn : ∀ᵐ γ ∂π, 0 ≤ F γ := + Eventually.of_forall fun γ => radial_midpoint_defect_nonneg p (γ 0) (γ 1) + have hz : (∫ γ, F γ ∂π) = 0 := by + apply le_antisymm _ (integral_nonneg_of_ae hn) + rw [show (∫ γ, F γ ∂π) = + 2 * (∫ γ, dist (γ 0) (γ 1) ^ 2 ∂π) + + 2 * (∫ γ, dist (γ 1) p ^ 2 ∂π) - + (∫ γ, dist (γ 0) p ^ 2 ∂π) by + exact (integral_sub ((hD.const_mul 2).add (h₁.const_mul 2)) h₀).trans + (by simp only [Pi.add_apply] + rw [integral_add (hD.const_mul 2) (h₁.const_mul 2), + integral_const_mul, integral_const_mul])] + linarith + have he := (integral_eq_zero_iff_of_nonneg_ae hn hi).mp hz + filter_upwards [he] with γ hγ + apply radial_midpoint_of_defect_zero + exact hγ + +end RegularPointCoordinates + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/RadialPlanSlope.lean b/lean/OAI/Geometry/RCD/Transport/RadialPlanSlope.lean new file mode 100644 index 0000000000000000000000000000000000000000..5dff31241addaabd43c9845b568db7b7ddea05d2 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/RadialPlanSlope.lean @@ -0,0 +1,90 @@ +import OAI.Geometry.RCD.Metric.InwardDistance +import OAI.Analysis.RCDHeat.SobolevTestPlan + +namespace OAI + +/-! # Recovering slope one from a compressed radial plan + +An actual radial plan realizes the full metric speed of the distance +function. The weak-upper-gradient inequality then forces slope one at +its initial marginal. This isolates the analytic step from constructing +the radial plan by concentration of its final endpoint. +-/ + +open Set Filter Metric MeasureTheory +open scoped ENNReal Topology + +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) [μ.Regular] +attribute [local instance] pathBorel pathBorelSpace + +theorem IsRelaxedSlope.integral_speed_le_of_radial_plan + (π : Measure C(Time, X)) [IsFiniteMeasure π] + (hgeo : ∀ᵐ γ ∂π, IsGeodesic γ) + {C : ℝ≥0∞} (hC : C ≠ ∞) + (hcomp : ∀ t : Time, π.map (fun γ => γ t) ≤ C • μ) + (hD : MemLp (fun γ : C(Time, X) => dist (γ 0) (γ 1)) 2 π) + {u G : Lp ℝ 2 μ} (hG : IsRelaxedSlope μ u G) + (hradial : ∀ t : Time, ∀ᵐ γ ∂π, + |u (γ t) - u (γ 0)| = (t : ℝ) * dist (γ 0) (γ 1)) : + (∫ γ, dist (γ 0) (γ 1) ∂π) ≤ + ∫ γ, dist (γ 0) (γ 1) * G (γ 0) ∂π := by + apply le_of_forall_pos_le_add + intro ε hε + have hb := hG.testPlan_initial_bound μ π hgeo hC hcomp hD hε + have hsmall : ∀ᶠ t in 𝓝[>] (0 : ℝ), t < 1 := + (gt_mem_nhds (show (0 : ℝ) < 1 from zero_lt_one)).filter_mono nhdsWithin_le_nhds + have hev : ∀ᶠ t in 𝓝[>] (0 : ℝ), 0 < t ∧ t < 1 ∧ + (∫ γ : C(Time, X), |u (geodesicExtension γ t) - u (γ 0)| ∂π) / t < + (∫ γ, dist (γ 0) (γ 1) * G (γ 0) ∂π) + ε := by + filter_upwards [self_mem_nhdsWithin, hsmall, hb] with t ht hs hh + exact ⟨ht, hs, hh⟩ + obtain ⟨t, ht0, ht1, htb⟩ := hev.exists + let T : Time := ⟨t, ht0.le, ht1.le⟩ + have he : (∫ γ : C(Time, X), |u (geodesicExtension γ t) - u (γ 0)| ∂π) = + t * ∫ γ, dist (γ 0) (γ 1) ∂π := by + rw [← integral_const_mul] + apply integral_congr_ae + filter_upwards [hradial T] with γ hγ + have hge : geodesicExtension γ t = γ T := geodesicExtension_eq γ T + rw [hge] + exact hγ + rw [he, mul_div_cancel_left₀ _ ht0.ne'] at htb + exact htb.le + +theorem IsRelaxedSlope.eq_one_of_radial_plan + (π : Measure C(Time, X)) [IsFiniteMeasure π] + (hgeo : ∀ᵐ γ ∂π, IsGeodesic γ) + {C : ℝ≥0∞} (hC : C ≠ ∞) + (hcomp : ∀ t : Time, π.map (fun γ => γ t) ≤ C • μ) + (hD : MemLp (fun γ : C(Time, X) => dist (γ 0) (γ 1)) 2 π) + {u G : Lp ℝ 2 μ} (hG : IsRelaxedSlope μ u G) + (hradial : ∀ t : Time, ∀ᵐ γ ∂π, + |u (γ t) - u (γ 0)| = (t : ℝ) * dist (γ 0) (γ 1)) + (hupper : ∀ᵐ γ ∂π, G (γ 0) ≤ 1) + (hpositive : ∀ᵐ γ ∂π, 0 < dist (γ 0) (γ 1)) : + ∀ᵐ γ ∂π, G (γ 0) = 1 := by + have hflux := hG.integral_speed_le_of_radial_plan μ π hgeo hC hcomp hD hradial + have hGi : MemLp (fun γ : C(Time, X) => G (γ 0)) 2 π := + compressionPullback_memLp μ π _ (measurable_path_eval 0) hC (hcomp 0) G + have hi := hD.integrable (by norm_num) + have hip : Integrable (fun γ : C(Time, X) => dist (γ 0) (γ 1) * G (γ 0)) π := + hD.integrable_mul hGi + have hnonneg : ∀ᵐ γ ∂π, + 0 ≤ dist (γ 0) (γ 1) - dist (γ 0) (γ 1) * G (γ 0) := by + filter_upwards [hupper] with γ hγ + exact sub_nonneg.mpr (mul_le_of_le_one_right dist_nonneg hγ) + have hz : (∫ γ, dist (γ 0) (γ 1) - dist (γ 0) (γ 1) * G (γ 0) ∂π) = 0 := by + apply le_antisymm _ (integral_nonneg_of_ae hnonneg) + rw [integral_sub hi hip] + linarith + have hae := (integral_eq_zero_iff_of_nonneg_ae hnonneg (hi.sub hip)).mp hz + filter_upwards [hae, hpositive] with γ hγ hd + change dist (γ 0) (γ 1) - dist (γ 0) (γ 1) * G (γ 0) = 0 at hγ + nlinarith + +end RegularPointCoordinates + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/RadialTimeCompression.lean b/lean/OAI/Geometry/RCD/Transport/RadialTimeCompression.lean new file mode 100644 index 0000000000000000000000000000000000000000..10de7dedbe80a3004b3134dd9e3c9368a67d6ac2 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/RadialTimeCompression.lean @@ -0,0 +1,245 @@ +import OAI.Geometry.RCD.Harmonic.RadialTimeReplacement + +namespace OAI + +/-! # A compressed marginal at a prescribed radial time + +Actual CD replacements minimize excess mass at the chosen time. Only the +source capacity enters the resulting bound; bounded endpoint support is +used for compactness, independently of the sharper distortion supports. +-/ + +open Set Filter Metric MeasureTheory TopologicalSpace +open scoped ENNReal + +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem FullCD.improve_time_saturation + (μ : Measure X) [SigmaFinite μ] + (W : Set X) (hW : MeasurableSet W) [IsFiniteMeasure (μ.restrict W)] + (K : ℝ) (n : ℕ) (hcd : FullCD μ K n) (ν₀ ν₁ : Measure X) + [IsProbabilityMeasure ν₀] [IsProbabilityMeasure ν₁] + {C₀ C₁ C : ℝ≥0∞} (hC₀ : C₀ ≠ ∞) (_hC₁ : C₁ ≠ ∞) (hC : C ≠ ∞) (hCpos : C ≠ 0) + (h0 : ν₀ ≤ C₀ • μ) (h1 : ν₁ ≤ C₁ • μ) + (hm0 : FiniteSecondMoment ν₀) (hm1 : FiniteSecondMoment ν₁) + (s₀ s₁ : Set X) (hs0 : ∀ᵐ x ∂ν₀, x ∈ s₀) (hs1 : ∀ᵐ x ∂ν₁, x ∈ s₁) + (hn : 2 ≤ n) (t : Time) (β : ℝ≥0∞) + (hβ : ∀ x ∈ s₀, ∀ y ∈ s₁, β ≤ tau K n (1 - (t : ℝ)) (dist x y)) + (hsupport : ∀ (q : Measure C(Time, X)), IsProbabilityMeasure q → + (∀ᵐ γ ∂q, IsGeodesic γ) → + IsOptimalCoupling ν₀ ν₁ (q.map (fun γ => (γ 0, γ 1))) → + ∀ᵐ x ∂q.map (fun γ => γ t), x ∈ W) + (hfill : C⁻¹ ≤ timeSupportFactor n β C₀) + (π : Measure C(Time, X)) [IsProbabilityMeasure π] + (hg : ∀ᵐ γ ∂π, IsGeodesic γ) + (hp : IsOptimalCoupling ν₀ ν₁ (π.map (fun γ => (γ 0, γ 1)))) + (hpos : transportExcessMass (μ.restrict W) (π.map (fun γ => γ t)) C ≠ 0) + (hmin : ∀ (π' : Measure C(Time, X)), IsProbabilityMeasure π' → + (∀ᵐ γ ∂π', IsGeodesic γ) → + IsOptimalCoupling ν₀ ν₁ (π'.map (fun γ => (γ 0, γ 1))) → + transportExcessMass (μ.restrict W) (π.map (fun γ => γ t)) C ≤ + transportExcessMass (μ.restrict W) (π'.map (fun γ => γ t)) C) : + ∃ π' : Measure C(Time, X), IsProbabilityMeasure π' ∧ + (∀ᵐ γ ∂π', IsGeodesic γ) ∧ + IsOptimalCoupling ν₀ ν₁ (π'.map (fun γ => (γ 0, γ 1))) ∧ + transportExcessMass (μ.restrict W) (π'.map (fun γ => γ t)) C = + transportExcessMass (μ.restrict W) (π.map (fun γ => γ t)) C ∧ + (μ.restrict W) {x | C < (π.map (fun γ => γ t)).rnDeriv (μ.restrict W) x} + + transportExcessMass (μ.restrict W) (π.map (fun γ => γ t)) C / 2 * C⁻¹ < + (μ.restrict W) {x | C < (π'.map (fun γ => γ t)).rnDeriv (μ.restrict W) x} := by + let ν := π.map (fun γ => γ t) + have hvprob : IsProbabilityMeasure ν := + inferInstance + let e := transportExcessMass (μ.restrict W) ν C + let v := (μ.restrict W) {x | C < ν.rnDeriv (μ.restrict W) x} + have hetop : e ≠ ∞ := ne_top_of_le_ne_top (measure_ne_top ν univ) + (transportExcessMass_le (μ.restrict W) ν C) + obtain ⟨s, hs, hμs, hνs⟩ := (Measure.mutuallySingular_singularPart ν (μ.restrict W)).symm + have hthreshold : e / 2 + C * v < ν (s ∪ {x | C < ν.rnDeriv (μ.restrict W) x}) := by + rw [positive_region_mass (μ.restrict W) ν hC hs hμs hνs] + exact ENNReal.add_lt_add_right + (ENNReal.mul_ne_top hC (measure_ne_top (μ.restrict W) _)) (ENNReal.half_lt_self hpos hetop) + obtain ⟨δ, hδ0, hδtop, hδmass⟩ := + exists_buffer_positive_region (μ.restrict W) ν hC s hthreshold + let B := s ∪ {x | C + δ < ν.rnDeriv (μ.restrict W) x} + have hB : MeasurableSet B := hs.union + (measurableSet_lt measurable_const (ν.measurable_rnDeriv (μ.restrict W))) + have hB0 : ν B ≠ 0 := (lt_of_le_of_lt zero_le hδmass).ne' + let a := δ / (C + δ) + have ha : a ≤ 1 := ENNReal.div_le_of_le_mul + (by simp) + have ha0 : 0 < a := ENNReal.div_pos hδ0.ne' (ENNReal.add_ne_top.mpr ⟨hC, hδtop⟩) + have hrem : a • ν.restrict B ≤ ν - C • μ.restrict W := + buffer_fraction_le_excess (μ.restrict W) ν hC hδ0 hδtop hs hμs + let : IsFiniteMeasure (a • ν.restrict B) := + isFiniteMeasure_of_le ν (hrem.trans Measure.sub_le) + obtain ⟨π', η, hπ', hη, hg', hp', heq, hmass, hvol⟩ := + hcd.replace_time_region μ K n ν₀ ν₁ hC₀ h0 h1 hm0 hm1 s₀ s₁ hs0 hs1 + hn t β hβ π hg hp B hB hB0 ha0 ha + let := hπ' + let := hη + have hηle : η ≤ π'.map (fun γ => γ t) := by + rw [heq] + exact Measure.le_add_left le_rfl + have hηsupp : ∀ᵐ x ∂η, x ∈ W := + (hsupport π' hπ' hg' hp').filter_mono hηle.absolutelyContinuous.ae_le + have hvolLoc := hvol.trans_eq (ac_support_volume_restrict μ η hW hηsupp) + have hmin' := hmin π' hπ' hg' hp' + have hmass' : η univ = (a • ν.restrict B) univ := by + simpa only [Measure.smul_apply, smul_eq_mul, Measure.restrict_apply_univ] using hmass + have hequal : transportExcessMass (μ.restrict W) (π'.map (fun γ => γ t)) C = e := by + apply le_antisymm _ hmin' + rw [heq] + exact (transportExcessMass_add_le (μ.restrict W) (ν - a • ν.restrict B) η hC).trans_eq (by + rw [hmass', transportExcessMass_remove (μ.restrict W) ν (a • ν.restrict B) hC hrem]) + have hsaturated : ∀ᵐ x ∂μ.restrict W, η.rnDeriv (μ.restrict W) x ≠ 0 → + C < (π'.map (fun γ => γ t)).rnDeriv (μ.restrict W) x := by + rw [heq] + apply ac_support_saturated_of_minimizing_replacement (μ.restrict W) ν (a • ν.restrict B) η + hC hrem hmass' + simpa only [heq] using hmin' + refine ⟨π', hπ', hg', hp', hequal, ?_⟩ + have hgain : v + e / 2 * C⁻¹ < ν B * C⁻¹ := by + have hh := ENNReal.mul_lt_mul_left (ENNReal.inv_ne_zero.mpr hC) + (ENNReal.inv_ne_top.mpr hCpos) hδmass + convert hh using 1 + rw [add_mul, mul_assoc, mul_comm v, ← mul_assoc, ENNReal.mul_inv_cancel hCpos hC] + simp only [one_mul, add_comm] + exact hgain.trans_le (calc + ν B * C⁻¹ ≤ ν B * (timeSupportFactor n β C₀) := + mul_le_mul_right hfill _ + _ = timeSupportFactor n β C₀ * ν B := by ac_rfl + _ ≤ (μ.restrict W) {x | η.rnDeriv (μ.restrict W) x ≠ 0} := hvolLoc + _ ≤ (μ.restrict W) {x | C < (π'.map (fun γ => γ t)).rnDeriv (μ.restrict W) x} := + measure_mono_ae hsaturated) + + + +theorem FullCD.time_excess_minimizer_zero + (μ : Measure X) [SigmaFinite μ] + (W : Set X) (hW : MeasurableSet W) [IsFiniteMeasure (μ.restrict W)] + (K : ℝ) (n : ℕ) (hcd : FullCD μ K n) (ν₀ ν₁ : Measure X) + [IsProbabilityMeasure ν₀] [IsProbabilityMeasure ν₁] + {C₀ C₁ C : ℝ≥0∞} (hC₀ : C₀ ≠ ∞) (hC₁ : C₁ ≠ ∞) (hC : C ≠ ∞) (hCpos : C ≠ 0) + (h0 : ν₀ ≤ C₀ • μ) (h1 : ν₁ ≤ C₁ • μ) + (hm0 : FiniteSecondMoment ν₀) (hm1 : FiniteSecondMoment ν₁) + (s₀ s₁ : Set X) (hs0 : ∀ᵐ x ∂ν₀, x ∈ s₀) (hs1 : ∀ᵐ x ∂ν₁, x ∈ s₁) + (hn : 2 ≤ n) (t : Time) (β : ℝ≥0∞) + (hβ : ∀ x ∈ s₀, ∀ y ∈ s₁, β ≤ tau K n (1 - (t : ℝ)) (dist x y)) + (hsupport : ∀ (q : Measure C(Time, X)), IsProbabilityMeasure q → + (∀ᵐ γ ∂q, IsGeodesic γ) → + IsOptimalCoupling ν₀ ν₁ (q.map (fun γ => (γ 0, γ 1))) → + ∀ᵐ x ∂q.map (fun γ => γ t), x ∈ W) + (hfill : C⁻¹ ≤ timeSupportFactor n β C₀) + (π : Measure C(Time, X)) [IsProbabilityMeasure π] + (hg : ∀ᵐ γ ∂π, IsGeodesic γ) + (hp : IsOptimalCoupling ν₀ ν₁ (π.map (fun γ => (γ 0, γ 1)))) + (hmin : ∀ (π' : Measure C(Time, X)), IsProbabilityMeasure π' → + (∀ᵐ γ ∂π', IsGeodesic γ) → + IsOptimalCoupling ν₀ ν₁ (π'.map (fun γ => (γ 0, γ 1))) → + transportExcessMass (μ.restrict W) (π.map (fun γ => γ t)) C ≤ + transportExcessMass (μ.restrict W) (π'.map (fun γ => γ t)) C) : + transportExcessMass (μ.restrict W) (π.map (fun γ => γ t)) C = 0 := by + by_contra hpos + let e := transportExcessMass (μ.restrict W) (π.map (fun γ => γ t)) C + let A := {ρ : Measure C(Time, X) // IsProbabilityMeasure ρ ∧ + (∀ᵐ γ ∂ρ, IsGeodesic γ) ∧ + IsOptimalCoupling ν₀ ν₁ (ρ.map (fun γ => (γ 0, γ 1))) ∧ + transportExcessMass (μ.restrict W) (ρ.map (fun γ => γ t)) C = e} + have : Nonempty A := ⟨⟨π, inferInstance, hg, hp, rfl⟩⟩ + let v (ρ : A) := (μ.restrict W) {x | C < (ρ.val.map (fun γ => γ t)).rnDeriv (μ.restrict W) x} + let S := ⨆ ρ : A, v ρ + have hS : S ≠ ∞ := ne_top_of_le_ne_top (measure_ne_top (μ.restrict W) univ) + (iSup_le fun _ => measure_mono (subset_univ _)) + have hstep : S + e / 2 * C⁻¹ ≤ S := by + rw [ENNReal.iSup_add] + apply iSup_le + intro ρ + let : IsProbabilityMeasure ρ.val := ρ.property.1 + have hposρ : transportExcessMass (μ.restrict W) (ρ.val.map (fun γ => γ t)) C ≠ 0 := by + rw [ρ.property.2.2.2] + exact hpos + have hminρ : ∀ (π' : Measure C(Time, X)), IsProbabilityMeasure π' → + (∀ᵐ γ ∂π', IsGeodesic γ) → + IsOptimalCoupling ν₀ ν₁ (π'.map (fun γ => (γ 0, γ 1))) → + transportExcessMass (μ.restrict W) (ρ.val.map (fun γ => γ t)) C ≤ + transportExcessMass (μ.restrict W) (π'.map (fun γ => γ t)) C := by + intro π' hπ' hg' hp' + rw [ρ.property.2.2.2] + exact hmin π' hπ' hg' hp' + obtain ⟨π', hπ', hg', hp', hequal, hgain⟩ := + hcd.improve_time_saturation μ W hW K n ν₀ ν₁ + hC₀ hC₁ hC hCpos h0 h1 hm0 hm1 s₀ s₁ hs0 hs1 hn t β hβ hsupport hfill + ρ.val ρ.property.2.1 ρ.property.2.2.1 hposρ hminρ + let ρ' : A := ⟨π', hπ', hg', hp', hequal.trans ρ.property.2.2.2⟩ + rw [ρ.property.2.2.2] at hgain + exact hgain.le.trans (le_iSup v ρ') + have hδ : 0 < e / 2 * C⁻¹ := ENNReal.mul_pos + (ENNReal.div_pos hpos (by simp)).ne' (ENNReal.inv_ne_zero.mpr hC) + have hstrict := ENNReal.add_lt_add_left hS hδ + rw [add_zero] at hstrict + exact (not_lt_of_ge hstep) hstrict + + +section Attainment +variable [ProperSpace X] [SeparableSpace X] + +theorem FullCD.exists_compressed_time + (μ : Measure X) [SigmaFinite μ] (K : ℝ) (n : ℕ) (hcd : FullCD μ K n) + (ν₀ ν₁ : Measure X) [IsProbabilityMeasure ν₀] [IsProbabilityMeasure ν₁] + {C₀ C₁ C : ℝ≥0∞} (hC₀ : C₀ ≠ ∞) (hC₁ : C₁ ≠ ∞) (hC : C ≠ ∞) (hCpos : C ≠ 0) + (h0 : ν₀ ≤ C₀ • μ) (h1 : ν₁ ≤ C₁ • μ) + (hm0 : FiniteSecondMoment ν₀) (hm1 : FiniteSecondMoment ν₁) + (p : X) {R : ℝ} (hR : 0 ≤ R) + [IsFiniteMeasure (μ.restrict (closedBall p (3 * R)))] + [Measure.OuterRegular (μ.restrict (closedBall p (3 * R)))] + (hs0 : ∀ᵐ x ∂ν₀, dist x p ≤ R) (hs1 : ∀ᵐ x ∂ν₁, dist x p ≤ R) + (hn : 2 ≤ n) (t : Time) (β : ℝ≥0∞) + (s₀ s₁ : Set X) (hs₀ : ∀ᵐ x ∂ν₀, x ∈ s₀) (hs₁ : ∀ᵐ x ∂ν₁, x ∈ s₁) + (hβ : ∀ x ∈ s₀, ∀ y ∈ s₁, β ≤ tau K n (1 - (t : ℝ)) (dist x y)) + (hfill : C⁻¹ ≤ timeSupportFactor n β C₀) : + ∃ π : Measure C(Time, X), IsProbabilityMeasure π ∧ + (∀ᵐ γ ∂π, IsGeodesic γ) ∧ + IsOptimalCoupling ν₀ ν₁ (π.map (fun γ => (γ 0, γ 1))) ∧ + π.map (fun γ => γ t) ≤ C • μ := by + let W := closedBall p (3 * R) + have hW : MeasurableSet W := isClosed_closedBall.measurableSet + have hsupport : ∀ (q : Measure C(Time, X)), IsProbabilityMeasure q → + (∀ᵐ γ ∂q, IsGeodesic γ) → + IsOptimalCoupling ν₀ ν₁ (q.map (fun γ => (γ 0, γ 1))) → + ∀ᵐ x ∂q.map (fun γ => γ t), x ∈ W := by + intro q hq hgq hpq + apply (ae_map_iff (measurable_path_eval t).aemeasurable hW).mpr + exact (optimal_geodesic_plan_bounded ν₀ ν₁ q hgq hpq p hR hs0 hs1).mono + (fun γ hγ => hγ.2 t) + let v0 : ProbabilityMeasure X := ⟨ν₀, inferInstance⟩ + let v1 : ProbabilityMeasure X := ⟨ν₁, inferInstance⟩ + obtain ⟨q, hq, hgq, hpq, _⟩ := hcd ν₀ ν₁ inferInstance inferInstance + (Measure.absolutelyContinuous_of_le_smul h0) + (Measure.absolutelyContinuous_of_le_smul h1) hm0 hm1 + have hne : (OptimalGeodesicPlans v0 v1).Nonempty := ⟨⟨q, hq⟩, hgq, hpq⟩ + obtain ⟨π, hπ, hmπ⟩ := exists_optimal_geodesic_plan_minimizing_excess + (μ.restrict W) v0 v1 p hR hs0 hs1 hne t hC + have hmin : ∀ (q : Measure C(Time, X)), IsProbabilityMeasure q → + (∀ᵐ γ ∂q, IsGeodesic γ) → + IsOptimalCoupling ν₀ ν₁ (q.map (fun γ => (γ 0, γ 1))) → + transportExcessMass (μ.restrict W) ((π : Measure C(Time, X)).map (fun γ => γ t)) C ≤ + transportExcessMass (μ.restrict W) (q.map (fun γ => γ t)) C := by + intro q hq hgq hpq + exact hmπ ⟨q, hq⟩ ⟨hgq, hpq⟩ + have hz := hcd.time_excess_minimizer_zero μ W hW K n ν₀ ν₁ hC₀ hC₁ hC hCpos + h0 h1 hm0 hm1 s₀ s₁ hs₀ hs₁ hn t β hβ + hsupport hfill (π : Measure C(Time, X)) hπ.1 hπ.2 hmin + refine ⟨π, inferInstance, hπ.1, hπ.2, ?_⟩ + have hs := hsupport (π : Measure C(Time, X)) inferInstance hπ.1 hπ.2 + have ht := localized_excess_zero_iff μ ((π : Measure C(Time, X)).map (fun γ => γ t)) + (B := W) (C := C) hs hC + exact ht.mp hz + +end Attainment +end RegularPointCoordinates + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/RadialTransport.lean b/lean/OAI/Geometry/RCD/Transport/RadialTransport.lean new file mode 100644 index 0000000000000000000000000000000000000000..d525903a336c075943f3e0270725b5365dc197bb --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/RadialTransport.lean @@ -0,0 +1,122 @@ +import OAI.Geometry.RCD.Transport.RadialTransportEstimate + +namespace OAI + +/-! # The outer-ball estimate for an unnormalized radial residual -/ + +open Set Metric MeasureTheory +open scoped NNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) [IsFiniteMeasureOnCompacts μ] + +omit [ProperSpace X] [IsFiniteMeasureOnCompacts μ] in +/-- Positivity of the actual cutoff converts annular energy to the +larger-ball norm. The inner sphere is harmless under Bishop--Gromov. -/ +theorem radial_transport_outer_from_energy {n : ℕ} {R : ℝ} (hR : 2 ≤ R) + (z : X) {w : X → ℝ} (hw : MemLp w 2 μ) (hsphere : μ (sphere z R) = 0) : + let β := transportCutoffExponent n + let m := ((2 * R) ^ (-β) - (3 * R) ^ (-β)) / β + m * (∫ x in ball z (2 * R), (w x) ^ 2 ∂μ) ≤ + m * (∫ x in ball z R, (w x) ^ 2 ∂μ) + + ∫ x in ball z (4 * R), transportEnergyWeight n R z x * (w x) ^ 2 ∂μ := by + dsimp only + let m := ((2 * R) ^ (-transportCutoffExponent n) - (3 * R) ^ (-transportCutoffExponent n)) / + transportCutoffExponent n + let ν := μ.restrict (ball z (4 * R)) + have hnot : ∀ᵐ x ∂ν, dist z x ≠ R := by + have hh := ae_restrict_of_ae (s := ball z (4 * R)) (measure_eq_zero_iff_ae_notMem.mp hsphere) + filter_upwards [hh] with x hx + simpa only [mem_sphere, dist_comm] using hx + have hR0 : 0 < R := by linarith + have hbound := hnot.mono fun x hx => + (radial_transport_weight_geometry (n := n) hR (a := 0) le_rfl (by positivity) z x hx).1 + have hi : Integrable (fun x => transportEnergyWeight n R z x * (w x) ^ 2) ν := + (hw.restrict (ball z (4 * R))).integrable_sq.bdd_mul (transportEnergyWeight_measurable n hR0 z).aestronglyMeasurable + (hbound.mono fun x hx => by simpa only [Real.norm_eq_abs, abs_of_nonneg hx.1] using hx.2) + have hi₁ := ((hw.restrict (ball z (4 * R))).integrable_sq.indicator + (s := ball z (2 * R)) isOpen_ball.measurableSet).const_mul m + have hi₂ := ((hw.restrict (ball z (4 * R))).integrable_sq.indicator + (s := ball z R) isOpen_ball.measurableSet).const_mul m + have hp : ∀ᵐ x ∂ν, m * (ball z (2 * R)).indicator (fun x => (w x) ^ 2) x ≤ + m * (ball z R).indicator (fun x => (w x) ^ 2) x + + transportEnergyWeight n R z x * (w x) ^ 2 := by + filter_upwards [hnot] with x hx + have hh := mul_le_mul_of_nonneg_right (radial_transport_interior_weight (n := n) hR z x hx) + (sq_nonneg (w x)) + dsimp only [m] + by_cases h₁ : x ∈ ball z R <;> by_cases h₂ : x ∈ ball z (2 * R) <;> + simp [indicator, h₁, h₂] at hh ⊢ <;> nlinarith only [hh] + have h := integral_mono_ae hi₁ (hi₂.add hi) hp + simp only [Pi.add_apply] at h + rw [integral_const_mul, integral_add hi₂ hi, integral_const_mul, + integral_indicator isOpen_ball.measurableSet, integral_indicator isOpen_ball.measurableSet] at h + have h₁ : ball z R ⊆ ball z (4 * R) := ball_subset_ball (by linarith) + have h₂ : ball z (2 * R) ⊆ ball z (4 * R) := ball_subset_ball (by linarith) + simpa only [ν, m, Measure.restrict_restrict_of_subset h₁, + Measure.restrict_restrict_of_subset h₂] using h + +variable (hQ : QuadraticCheegerEnergy μ) + +/-- Quantitative radial transport in its squared-norm form. Both error +terms stay quadratic, and all constants are independent of the residual's +possibly tiny inner norm. -/ +theorem radial_transport_squared {n : ℕ} {R a : ℝ} (hR : 2 ≤ R) + (ha : 0 ≤ a) (han : a ≤ (n : ℝ) + 1) (z : X) + (f w : SobolevSpace μ hQ) + (hf : IsConstantLaplacianOn μ hQ (ball z (4 * R)) f a) + (C : ℝ≥0) (hw : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ w x| ≤ C) + (F e : X → ℝ) (hF : MemLp F 2 μ) (he : MemLp e 2 μ) + (heuler : localGamma μ hQ f w =ᵐ[μ.restrict (ball z (4 * R))] + fun x => SobolevSpace.toLp μ hQ w x + F x / 2) + (hradial : localGamma μ hQ f (inwardSobolev μ hQ z (3 * R)) + =ᵐ[μ.restrict (ball z (4 * R))] fun x => e x - dist z x) + (hsphere : μ (sphere z R) = 0) : + let β := transportCutoffExponent n + let D := (R ^ (-β) - (3 * R) ^ (-β)) / β + let Q := R ^ (-(β + 1)) + let m := ((2 * R) ^ (-β) - (3 * R) ^ (-β)) / β + (∫ x in ball z (2 * R), (SobolevSpace.toLp μ hQ w x) ^ 2 ∂μ) ≤ + (1 + 2 * ((a + 2) * D + D / 4) / m) * + (∫ x in ball z R, (SobolevSpace.toLp μ hQ w x) ^ 2 ∂μ) + + (2 * D / m) * (∫ x in ball z (4 * R), (F x) ^ 2 ∂μ) + + (2 * (C : ℝ) ^ 2 * Q / m) * (∫ x in ball z (4 * R), (e x) ^ 2 ∂μ) := by + dsimp only + have h₁ := radial_transport_annular_energy μ hQ hR ha han z f w hf C hw F e hF he heuler hradial hsphere + have h₂ := radial_transport_outer_from_energy μ (n := n) hR z (Lp.memLp (SobolevSpace.toLp μ hQ w)) hsphere + have hm := (radial_transport_cutoff_lower (n := n) hR z).1 + dsimp only at h₁ h₂ hm + have hh := h₂.trans (add_le_add le_rfl h₁) + rw [mul_comm + (((2 * R) ^ (-transportCutoffExponent n) - (3 * R) ^ (-transportCutoffExponent n)) / + transportCutoffExponent n) + (∫ x in ball z (2 * R), (SobolevSpace.toLp μ hQ w x) ^ 2 ∂μ)] at hh + have hdiv := (le_div_iff₀ hm).mpr hh + refine hdiv.trans_eq ?_ + have halgebra (m A B C x y z : ℝ) (hm : m ≠ 0) : + (m * x + (A * x + B * y + C * z)) / m = + (1 + A / m) * x + (B / m) * y + (C / m) * z := by + field_simp + ring + exact halgebra + (((2 * R) ^ (-transportCutoffExponent n) - (3 * R) ^ (-transportCutoffExponent n)) / + transportCutoffExponent n) + (2 * ((a + 2) * ((R ^ (-transportCutoffExponent n) - (3 * R) ^ (-transportCutoffExponent n)) / + transportCutoffExponent n) + + ((R ^ (-transportCutoffExponent n) - (3 * R) ^ (-transportCutoffExponent n)) / + transportCutoffExponent n) / 4)) + (2 * ((R ^ (-transportCutoffExponent n) - (3 * R) ^ (-transportCutoffExponent n)) / + transportCutoffExponent n)) + (2 * (C : ℝ) ^ 2 * R ^ (-(transportCutoffExponent n + 1))) + (∫ x in ball z R, (SobolevSpace.toLp μ hQ w x) ^ 2 ∂μ) + (∫ x in ball z (4 * R), (F x) ^ 2 ∂μ) + (∫ x in ball z (4 * R), (e x) ^ 2 ∂μ) hm.ne' + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/RadialTransportCutoff.lean b/lean/OAI/Geometry/RCD/Transport/RadialTransportCutoff.lean new file mode 100644 index 0000000000000000000000000000000000000000..cd07682689685d224577d44b022e2e62a2ec7b6f --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/RadialTransportCutoff.lean @@ -0,0 +1,80 @@ +import OAI.Geometry.RCD.Sobolev.RadialCutoffMass + +namespace OAI + +/-! # A radial power cutoff with the transport sign + +The power cutoff has a compact Sobolev representative and exact +chain rule. Taking exponent 2(n+4) gives the sign needed for radial transport +whenever the fixed inner radius is at least two. +-/ + +open Metric + +noncomputable section +namespace RegularPointCoordinates + +def transportCutoffExponent (n : ℕ) : ℝ := 2 * ((n : ℝ) + 4) + +theorem transportCutoffExponent_pos (n : ℕ) : 0 < transportCutoffExponent n := by + dsimp only [transportCutoffExponent] + positivity + +/-- The actual negative radial derivative dominates both its own size +and the zeroth-order transport coefficient throughout the outer annulus. -/ +theorem radial_transport_power_sign {n : ℕ} {a R t : ℝ} + (hR : 2 ≤ R) (ht : R ≤ t) (ha : 0 ≤ a) (han : a ≤ (n : ℝ) + 1) : + let β := transportCutoffExponent n + let φ := (t ^ (-β) - (3 * R) ^ (-β)) / β + t * t ^ (-(β + 1)) - (a + 2) * φ ≥ t ^ (-(β + 1)) + φ := by + let β := transportCutoffExponent n + have hβ : 0 < β := transportCutoffExponent_pos n + have ht0 : 0 < t := by linarith + have hR0 : 0 ≤ 3 * R := by linarith + have hpow : t * t ^ (-(β + 1)) = t ^ (-β) := by + calc + _ = t ^ (1 : ℝ) * t ^ (-(β + 1)) := by rw [Real.rpow_one] + _ = t ^ (1 - (β + 1)) := by rw [← Real.rpow_add ht0]; congr 1 + _ = _ := by congr 1; ring + have hq : 0 ≤ t ^ (-(β + 1)) := Real.rpow_nonneg ht0.le _ + have hV : 0 ≤ t ^ (-β) := Real.rpow_nonneg ht0.le _ + have hW : 0 ≤ (3 * R) ^ (-β) := Real.rpow_nonneg hR0 _ + have hcoeff : (a + 3) / β ≤ 1 / 2 := by + apply (div_le_iff₀ hβ).mpr + dsimp only [β, transportCutoffExponent] + linarith + have hforcing : (a + 3) * ((t ^ (-β) - (3 * R) ^ (-β)) / β) ≤ + (1 / 2 : ℝ) * t ^ (-β) := by + calc + _ ≤ (a + 3) * (t ^ (-β) / β) := by + apply mul_le_mul_of_nonneg_left _ (by linarith) + exact div_le_div_of_nonneg_right (sub_le_self _ hW) hβ.le + _ = ((a + 3) / β) * t ^ (-β) := by ring + _ ≤ _ := mul_le_mul_of_nonneg_right hcoeff hV + have hhalf : (1 / 2 : ℝ) * t ^ (-β) ≤ (t - 1) * t ^ (-(β + 1)) := by + have hh := mul_nonneg (show 0 ≤ t - 2 by linarith) hq + nlinarith only [hpow, hh] + dsimp only + change t * t ^ (-(β + 1)) - (a + 2) * ((t ^ (-β) - (3 * R) ^ (-β)) / β) ≥ _ + nlinarith only [hforcing.trans hhalf] + +variable {X : Type*} [MetricSpace X] + +/-- The radial power cutoff satisfies the coercive transport sign. -/ +theorem radial_transport_cutoff_sign {n : ℕ} {a R : ℝ} + (hR : 2 ≤ R) (ha : 0 ≤ a) (han : a ≤ (n : ℝ) + 1) (z x : X) + (hinner : R ≤ dist z x) (houter : dist z x ≤ 3 * R) : + let β := transportCutoffExponent n + dist z x * (dist z x) ^ (-(β + 1)) - + (a + 2) * radialPowerRep β R (3 * R) z x ≥ + (dist z x) ^ (-(β + 1)) + radialPowerRep β R (3 * R) z x := by + dsimp only + rw [radialPowerRep_annulus (transportCutoffExponent_pos n) (by linarith : 0 < R) + z x hinner houter] + exact radial_transport_power_sign hR hinner ha han + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/RadialTransportCutoffBounds.lean b/lean/OAI/Geometry/RCD/Transport/RadialTransportCutoffBounds.lean new file mode 100644 index 0000000000000000000000000000000000000000..8b48242b86861586c63a974702d068a6b71e8c18 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/RadialTransportCutoffBounds.lean @@ -0,0 +1,43 @@ +import OAI.Geometry.RCD.Transport.RadialTransportCutoff + +namespace OAI + +/-! # Positive interior weight of the radial transport cutoff -/ + +open Metric + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] + +/-- The fixed transport cutoff is uniformly positive through radius 2R, +although it vanishes outside radius 3R. -/ +theorem radial_transport_cutoff_lower {n : ℕ} {R : ℝ} (hR : 2 ≤ R) (z : X) : + let β := transportCutoffExponent n + let m := ((2 * R) ^ (-β) - (3 * R) ^ (-β)) / β + 0 < m ∧ ∀ x, dist z x ≤ 2 * R → m ≤ radialPowerRep β R (3 * R) z x := by + dsimp only + let β := transportCutoffExponent n + have hβ : 0 < β := transportCutoffExponent_pos n + have hR0 : 0 < R := by linarith + have hneg : -β < 0 := neg_neg_of_pos hβ + constructor + · exact div_pos (sub_pos.mpr (Real.rpow_lt_rpow_of_neg + (by positivity : 0 < 2 * R) (by linarith : 2 * R < 3 * R) hneg)) hβ + · intro x hx + by_cases hinner : dist z x ≤ R + · rw [radialPowerRep_inner hβ hR0 (by linarith : R ≤ 3 * R) z x hinner] + apply div_le_div_of_nonneg_right _ hβ.le + exact sub_le_sub_right (Real.rpow_le_rpow_of_nonpos hR0 (by linarith) hneg.le) _ + · rw [radialPowerRep_annulus hβ hR0 z x (le_of_not_ge hinner) + (by linarith : dist z x ≤ 3 * R)] + apply div_le_div_of_nonneg_right _ hβ.le + exact sub_le_sub_right (Real.rpow_le_rpow_of_nonpos + (lt_of_lt_of_le hR0 (le_of_not_ge hinner)) hx hneg.le) _ + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/RadialTransportError.lean b/lean/OAI/Geometry/RCD/Transport/RadialTransportError.lean new file mode 100644 index 0000000000000000000000000000000000000000..28031ede08ed0125c3cb339c560c1a61bc2c9023 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/RadialTransportError.lean @@ -0,0 +1,101 @@ +import OAI.Geometry.RCD.Coordinates.NormalizedLocalL2 + +namespace OAI + +/-! # The quadratic coefficient error in radial transport + +The bounded unnormalized residual is used before division by its inner-ball +norm. Weighted Young's inequality preserves the square of the Poisson error. +-/ + +open MeasureTheory + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MeasurableSpace X] (μ : Measure X) + +/-- The transport coefficient error absorbs one quarter of the weighted +residual energy and costs the SQUARE of the original Poisson error. -/ +theorem radial_transport_coefficient_error {w e ρ : X → ℝ} {C D : ℝ} + (hw : MemLp w 2 μ) (he : MemLp e 2 μ) (hρ : AEStronglyMeasurable ρ μ) + (hwbound : ∀ᵐ x ∂μ, |w x| ≤ C) + (hρbound : ∀ᵐ x ∂μ, 0 ≤ ρ x ∧ ρ x ≤ D) : + |∫ x, ρ x * e x * (w x) ^ 2 ∂μ| ≤ + (1 / 4 : ℝ) * (∫ x, ρ x * (w x) ^ 2 ∂μ) + + C ^ 2 * D * (∫ x, (e x) ^ 2 ∂μ) := by + have hiw : Integrable (fun x => ρ x * (w x) ^ 2) μ := + hw.integrable_sq.bdd_mul hρ (hρbound.mono fun x hx => by + simpa only [Real.norm_eq_abs, abs_of_nonneg hx.1] using hx.2) + have hiR : Integrable (fun x => (1 / 4 : ℝ) * (ρ x * (w x) ^ 2) + + C ^ 2 * D * (e x) ^ 2) μ := (hiw.const_mul _).add (he.integrable_sq.const_mul _) + have hb : ∀ᵐ x ∂μ, |ρ x * e x * (w x) ^ 2| ≤ + (1 / 4 : ℝ) * (ρ x * (w x) ^ 2) + C ^ 2 * D * (e x) ^ 2 := by + filter_upwards [hwbound, hρbound] with x hx hρx + have hy : |e x| * (w x) ^ 2 ≤ (w x) ^ 2 / 4 + C ^ 2 * (e x) ^ 2 := by + have hh : |e x| * (w x) ^ 2 ≤ C * |e x| * |w x| := by + calc + _ = |w x| * (|e x| * |w x|) := by rw [← sq_abs (w x)]; ring + _ ≤ C * (|e x| * |w x|) := + mul_le_mul_of_nonneg_right hx (mul_nonneg (abs_nonneg _) (abs_nonneg _)) + _ = _ := by ring + have hs := sq_nonneg (|w x| / 2 - C * |e x|) + rw [sub_sq, div_pow, mul_pow, sq_abs, sq_abs] at hs + nlinarith only [hh, hs] + calc + _ = ρ x * (|e x| * (w x) ^ 2) := by + rw [abs_mul, abs_mul, abs_of_nonneg hρx.1, abs_pow, sq_abs] + ring + _ ≤ ρ x * ((w x) ^ 2 / 4 + C ^ 2 * (e x) ^ 2) := mul_le_mul_of_nonneg_left hy hρx.1 + _ ≤ _ := by + have hh := mul_le_mul_of_nonneg_right hρx.2 (mul_nonneg (sq_nonneg C) (sq_nonneg (e x))) + nlinarith only [hh] + have hi : Integrable (fun x => ρ x * e x * (w x) ^ 2) μ := + hiR.mono' ((hρ.mul he.aestronglyMeasurable).mul (hw.aestronglyMeasurable.pow 2)) + (hb.mono fun x hx => by simpa only [Real.norm_eq_abs] using hx) + calc + _ ≤ ∫ x, |ρ x * e x * (w x) ^ 2| ∂μ := abs_integral_le_integral_abs + _ ≤ ∫ x, (1 / 4 : ℝ) * (ρ x * (w x) ^ 2) + C ^ 2 * D * (e x) ^ 2 ∂μ := + integral_mono_ae hi.abs hiR hb + _ = _ := by + rw [integral_add (hiw.const_mul _) (he.integrable_sq.const_mul _), + integral_const_mul, integral_const_mul] + +/-- The inhomogeneous forcing term absorbs another quarter of the +weighted residual energy. Only its original L2 norm enters the remainder. -/ +theorem radial_transport_forcing_error {w F ρ : X → ℝ} {D : ℝ} + (hw : MemLp w 2 μ) (hF : MemLp F 2 μ) (hρ : AEStronglyMeasurable ρ μ) + (hρbound : ∀ᵐ x ∂μ, 0 ≤ ρ x ∧ ρ x ≤ D) : + |∫ x, ρ x * (w x * F x) ∂μ| ≤ + (1 / 4 : ℝ) * (∫ x, ρ x * (w x) ^ 2 ∂μ) + + D * (∫ x, (F x) ^ 2 ∂μ) := by + have hρnorm : ∀ᵐ x ∂μ, ‖ρ x‖ ≤ D := hρbound.mono fun x hx => by + simpa only [Real.norm_eq_abs, abs_of_nonneg hx.1] using hx.2 + have hiw : Integrable (fun x => ρ x * (w x) ^ 2) μ := hw.integrable_sq.bdd_mul hρ hρnorm + have hi : Integrable (fun x => ρ x * (w x * F x)) μ := + (hw.integrable_mul hF).bdd_mul hρ hρnorm + have hiR : Integrable (fun x => (1 / 4 : ℝ) * (ρ x * (w x) ^ 2) + D * (F x) ^ 2) μ := + (hiw.const_mul _).add (hF.integrable_sq.const_mul _) + have hb : ∀ᵐ x ∂μ, |ρ x * (w x * F x)| ≤ + (1 / 4 : ℝ) * (ρ x * (w x) ^ 2) + D * (F x) ^ 2 := by + filter_upwards [hρbound] with x hx + have hs := sq_nonneg (|w x| / 2 - |F x|) + rw [sub_sq, div_pow, sq_abs, sq_abs] at hs + have hy : |w x| * |F x| ≤ (w x) ^ 2 / 4 + (F x) ^ 2 := by nlinarith only [hs] + rw [abs_mul, abs_of_nonneg hx.1, abs_mul] + have h₁ := mul_le_mul_of_nonneg_left hy hx.1 + have h₂ := mul_le_mul_of_nonneg_right hx.2 (sq_nonneg (F x)) + nlinarith only [h₁, h₂] + calc + _ ≤ ∫ x, |ρ x * (w x * F x)| ∂μ := abs_integral_le_integral_abs + _ ≤ ∫ x, (1 / 4 : ℝ) * (ρ x * (w x) ^ 2) + D * (F x) ^ 2 ∂μ := + integral_mono_ae hi.abs hiR hb + _ = _ := by + rw [integral_add (hiw.const_mul _) (hF.integrable_sq.const_mul _), + integral_const_mul, integral_const_mul] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/RadialTransportEstimate.lean b/lean/OAI/Geometry/RCD/Transport/RadialTransportEstimate.lean new file mode 100644 index 0000000000000000000000000000000000000000..4642f7592cfd7db92722dbdd2422548e8b048900 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/RadialTransportEstimate.lean @@ -0,0 +1,122 @@ +import OAI.Geometry.RCD.Transport.RadialTransportEulerIdentity +import OAI.Geometry.RCD.Transport.RadialTransportGeometry +import OAI.Geometry.RCD.Transport.WeightedTransportEnergy + +namespace OAI + +/-! # Radial transport for the constructed cutoff and the actual weak equation -/ + +open Set Metric MeasureTheory +open scoped NNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) [IsFiniteMeasureOnCompacts μ] (hQ : QuadraticCheegerEnergy μ) + +/-- The annular energy of the original bounded residual has a quadratic +bound from its inner norm and the two actual L2 errors. The cutoff and its +derivative are constructed, and the balance follows from the weak Laplacian. -/ +theorem radial_transport_annular_energy {n : ℕ} {R a : ℝ} (hR : 2 ≤ R) + (ha : 0 ≤ a) (han : a ≤ (n : ℝ) + 1) (z : X) + (f w : SobolevSpace μ hQ) + (hf : IsConstantLaplacianOn μ hQ (ball z (4 * R)) f a) + (C : ℝ≥0) (hw : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ w x| ≤ C) + (F e : X → ℝ) (hF : MemLp F 2 μ) (he : MemLp e 2 μ) + (heuler : localGamma μ hQ f w =ᵐ[μ.restrict (ball z (4 * R))] + fun x => SobolevSpace.toLp μ hQ w x + F x / 2) + (hradial : localGamma μ hQ f (inwardSobolev μ hQ z (3 * R)) + =ᵐ[μ.restrict (ball z (4 * R))] fun x => e x - dist z x) + (hsphere : μ (sphere z R) = 0) : + let β := transportCutoffExponent n + let D := (R ^ (-β) - (3 * R) ^ (-β)) / β + let Q := R ^ (-(β + 1)) + (∫ x in ball z (4 * R), transportEnergyWeight n R z x * + (SobolevSpace.toLp μ hQ w x) ^ 2 ∂μ) ≤ + 2 * ((a + 2) * D + D / 4) * (∫ x in ball z R, (SobolevSpace.toLp μ hQ w x) ^ 2 ∂μ) + + 2 * D * (∫ x in ball z (4 * R), (F x) ^ 2 ∂μ) + + 2 * (C : ℝ) ^ 2 * Q * (∫ x in ball z (4 * R), (e x) ^ 2 ∂μ) := by + dsimp only + let β := transportCutoffExponent n + let D := (R ^ (-β) - (3 * R) ^ (-β)) / β + let Q := R ^ (-(β + 1)) + let ν := μ.restrict (ball z (4 * R)) + let W : X → ℝ := SobolevSpace.toLp μ hQ w + let χ := radialPowerRep β R (3 * R) z + let ρ := transportDerivativeWeight n R z + let ζ := transportEnergyWeight n R z + have hR0 : 0 < R := by linarith + have hβ : 0 < β := transportCutoffExponent_pos n + have hQ0 : 0 ≤ Q := Real.rpow_nonneg hR0.le _ + have hD0 : 0 ≤ D := by + have hh := (radialPowerRep_bounds hβ hR0 (by linarith : R ≤ 3 * R) z z).1 + rw [radialPowerRep_inner hβ hR0 (by linarith : R ≤ 3 * R) z z (by simp; linarith)] at hh + exact hh + let η := radialPowerTest μ hQ (inwardSobolev μ hQ z (3 * R)) + hβ hR0 (by linarith : R ≤ 3 * R) + let Kfun := fun x => (a + 2) * χ x + localGamma μ hQ f η x + have hχlip : LipschitzWith ⟨Q, hQ0⟩ χ := radialPowerRep_lipschitz hβ hR0 z + have hχbd : ∀ x, 0 ≤ χ x ∧ χ x ≤ D := + radialPowerRep_bounds hβ hR0 (by linarith : R ≤ 3 * R) z + have hχabs : ∀ x, |χ x| ≤ (⟨D, hD0⟩ : ℝ≥0) := fun x => by + rw [abs_of_nonneg (hχbd x).1] + exact (hχbd x).2 + have hη : SobolevSpace.toLp μ hQ η =ᵐ[μ] χ := + radialPowerTest_inward_coe μ hQ hβ hR0 (by linarith : R ≤ 3 * R) z + have hbal := radial_transport_euler_identity μ hQ (ball z (4 * R)) isOpen_ball.measurableSet + f w η hf C ⟨D, hD0⟩ ⟨Q, hQ0⟩ hw χ hχlip + (radialPowerRep_compact (by linarith : R ≤ 3 * R) z) + hχabs (fun x => (hχbd x).1) + (radialPowerRep_tsupport (by linarith : R ≤ 3 * R) (by linarith : 3 * R < 4 * R) z) + hη F hF heuler + have hW : MemLp W 2 μ := Lp.memLp (SobolevSpace.toLp μ hQ w) + have hWsq : ∀ᵐ x ∂μ, ‖(W x) ^ 2‖ ≤ (C : ℝ) ^ 2 := by + filter_upwards [hw] with x hx + rw [Real.norm_eq_abs, abs_pow, sq_abs] + have hh := (sq_le_sq₀ (abs_nonneg _) C.coe_nonneg).mpr hx + simpa only [sq_abs] using hh + have hiχ : Integrable (fun x => χ x * (W x) ^ 2) μ := + hW.integrable_sq.bdd_mul hχlip.continuous.aestronglyMeasurable + (Filter.Eventually.of_forall fun x => by simpa only [Real.norm_eq_abs] using hχabs x) + have hK : Integrable (fun x => Kfun x * (W x) ^ 2) μ := by + convert (hiχ.const_mul (a + 2)).add + ((localGamma_memL1 μ hQ f η).bdd_mul (hW.aestronglyMeasurable.pow 2) hWsq) using 1 + funext x + simp only [Kfun, Pi.add_apply, Pi.pow_apply] + ring + have hnot : ∀ᵐ x ∂ν, dist z x ≠ R := by + have hh := ae_restrict_of_ae (s := ball z (4 * R)) (measure_eq_zero_iff_ae_notMem.mp hsphere) + filter_upwards [hh] with x hx + simpa only [mem_sphere, dist_comm] using hx + have hgeom := hnot.mono fun x hx => radial_transport_weight_geometry hR ha han z x hx + have hγ : localGamma μ hQ f η =ᵐ[ν] fun x => + ρ x * localGamma μ hQ f (inwardSobolev μ hQ z (3 * R)) x := + ae_restrict_of_ae (radial_transport_cutoff_gamma μ hQ n hR0 z f) + have hcoerce : ∀ᵐ x ∂ν, ζ x ≤ (a + 2) * D * (ball z R).indicator (fun _ => (1 : ℝ)) x - + Kfun x + ρ x * e x := by + filter_upwards [hgeom, hγ, hradial] with x hx hg hr + have hh := hx.2.2.2 + change localGamma μ hQ f η x = ρ x * localGamma μ hQ f (inwardSobolev μ hQ z (3 * R)) x at hg + change ζ x ≤ _ at hh ⊢ + dsimp only [Kfun] + rw [hg, hr] + convert hh using 1 + dsimp only [D, β, ρ, χ] + ring + have hE := weighted_transport_energy ν (ball z R) isOpen_ball.measurableSet + (hW.restrict (ball z (4 * R))) (he.restrict (ball z (4 * R))) (hF.restrict (ball z (4 * R))) hχlip.continuous.aestronglyMeasurable + (transportDerivativeWeight_measurable n R z).aestronglyMeasurable + (transportEnergyWeight_measurable n hR0 z).aestronglyMeasurable + (ae_restrict_of_ae hw) (Filter.Eventually.of_forall hχbd) + (Filter.Eventually.of_forall (transportDerivativeWeight_bounds n hR0 z)) + (hgeom.mono fun _ hx => hx.1) hK.integrableOn hcoerce + (hgeom.mono fun _ hx => hx.2.2.1) (hgeom.mono fun _ hx => hx.2.1) hbal + have hsub : ball z R ⊆ ball z (4 * R) := ball_subset_ball (by linarith) + simpa only [ν, W, ζ, D, Q, β, Measure.restrict_restrict_of_subset hsub] using hE + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/RadialTransportEulerIdentity.lean b/lean/OAI/Geometry/RCD/Transport/RadialTransportEulerIdentity.lean new file mode 100644 index 0000000000000000000000000000000000000000..a4925143a3a4e5c0a4d3664f9dac360d40ca4dcb --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/RadialTransportEulerIdentity.lean @@ -0,0 +1,77 @@ +import OAI.Geometry.RCD.Transport.RadialTransportIdentity + +namespace OAI + +/-! # The weak transport balance after substituting the Euler equation -/ + +open Set MeasureTheory +open scoped NNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +/-- Substitution into the proved weak product identity gives the exact +balance used by radial transport. The forcing is an actual L2 function. -/ +theorem radial_transport_euler_identity (Ω : Set X) (hΩ : MeasurableSet Ω) + (f w η : SobolevSpace μ hQ) {a : ℝ} + (hf : IsConstantLaplacianOn μ hQ Ω f a) (C D L : ℝ≥0) + (hw : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ w x| ≤ C) + (χ : X → ℝ) (hχ : LipschitzWith L χ) (hcpt : HasCompactSupport χ) + (hbound : ∀ x, |χ x| ≤ D) (hnonneg : ∀ x, 0 ≤ χ x) + (hsupp : tsupport χ ⊆ Ω) (hη : SobolevSpace.toLp μ hQ η =ᵐ[μ] χ) + (F : X → ℝ) (hF : MemLp F 2 μ) + (heuler : localGamma μ hQ f w =ᵐ[μ.restrict Ω] + fun x => SobolevSpace.toLp μ hQ w x + F x / 2) : + (∫ x in Ω, ((a + 2) * χ x + localGamma μ hQ f η x) * + (SobolevSpace.toLp μ hQ w x) ^ 2 ∂μ) = + -(∫ x in Ω, χ x * (SobolevSpace.toLp μ hQ w x * F x) ∂μ) := by + let W : X → ℝ := SobolevSpace.toLp μ hQ w + have hW : MemLp W 2 μ := Lp.memLp (SobolevSpace.toLp μ hQ w) + have hχnorm : ∀ᵐ x ∂μ, ‖χ x‖ ≤ D := Filter.Eventually.of_forall fun x => by + simpa only [Real.norm_eq_abs] using hbound x + have hI : Integrable (fun x => χ x * (W x) ^ 2) μ := + hW.integrable_sq.bdd_mul hχ.continuous.aestronglyMeasurable hχnorm + have hIF : Integrable (fun x => χ x * (W x * F x)) μ := + (hW.integrable_mul hF).bdd_mul hχ.continuous.aestronglyMeasurable hχnorm + have hWsq : ∀ᵐ x ∂μ, ‖(W x) ^ 2‖ ≤ (C : ℝ) ^ 2 := by + filter_upwards [hw] with x hx + change ‖(SobolevSpace.toLp μ hQ w x) ^ 2‖ ≤ _ + rw [Real.norm_eq_abs, abs_pow, sq_abs] + have hh := (sq_le_sq₀ (abs_nonneg _) C.coe_nonneg).mpr hx + rwa [sq_abs] at hh + have hJ : Integrable (fun x => (W x) ^ 2 * localGamma μ hQ f η x) μ := + (localGamma_memL1 μ hQ f η).bdd_mul (hW.aestronglyMeasurable.pow 2) hWsq + have hb := radial_transport_weak_identity μ hQ Ω hΩ f w η hf C D L hw χ hχ hcpt hbound hnonneg hsupp hη + have heq : (fun x => 2 * χ x * SobolevSpace.toLp μ hQ w x * localGamma μ hQ f w x + + (SobolevSpace.toLp μ hQ w x) ^ 2 * localGamma μ hQ f η x) =ᵐ[μ.restrict Ω] + fun x => 2 * (χ x * (W x) ^ 2) + χ x * (W x * F x) + (W x) ^ 2 * localGamma μ hQ f η x := by + filter_upwards [heuler] with x hx + rw [hx] + dsimp only [W] + ring + rw [integral_congr_ae heq] at hb + have hsplit := integral_add (μ := μ.restrict Ω) + (((hI.const_mul 2).add hIF).integrableOn) hJ.integrableOn + simp only [Pi.add_apply] at hsplit + rw [hsplit, integral_add (hI.const_mul 2).integrableOn hIF.integrableOn, + integral_const_mul] at hb + have hleft : (∫ x in Ω, ((a + 2) * χ x + localGamma μ hQ f η x) * (W x) ^ 2 ∂μ) = + (a + 2) * (∫ x in Ω, χ x * (W x) ^ 2 ∂μ) + + ∫ x in Ω, (W x) ^ 2 * localGamma μ hQ f η x ∂μ := by + calc + _ = ∫ x in Ω, (a + 2) * (χ x * (W x) ^ 2) + (W x) ^ 2 * localGamma μ hQ f η x ∂μ := by + apply integral_congr_ae + exact Filter.Eventually.of_forall fun x => by ring + _ = _ := by rw [integral_add (hI.const_mul (a + 2)).integrableOn hJ.integrableOn, integral_const_mul] + change (∫ x in Ω, ((a + 2) * χ x + localGamma μ hQ f η x) * (W x) ^ 2 ∂μ) = _ + rw [hleft] + linarith only [hb] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/RadialTransportForcing.lean b/lean/OAI/Geometry/RCD/Transport/RadialTransportForcing.lean new file mode 100644 index 0000000000000000000000000000000000000000..23ea7eb50d247839efcaa36fbc838d4703b01e57 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/RadialTransportForcing.lean @@ -0,0 +1,76 @@ +import OAI.Geometry.RCD.Sobolev.ProjectedEulerIdentity +import OAI.Geometry.RCD.Transport.RadialTransport + +namespace OAI + +/-! # Transport for the Sobolev forcing produced by affine projection -/ + +open Set Metric MeasureTheory +open scoped NNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) [IsFiniteMeasureOnCompacts μ] (hQ : QuadraticCheegerEnergy μ) + +omit [IsFiniteMeasureOnCompacts μ] in +/-- Convert the exact local L2 identity into the scalar equation used by +the weak divergence test. -/ +theorem radial_derivative_add_representative (Ω : Set X) + (f w q : SobolevSpace μ hQ) {B : ℝ} + (hf : ∀ᵐ x ∂μ.restrict Ω, localGamma μ hQ f f x ≤ B) + (heq : localRadialDerivative μ hQ Ω f hf w = SobolevSpace.restrictLp μ hQ Ω (w + q)) : + localGamma μ hQ f w =ᵐ[μ.restrict Ω] + fun x => SobolevSpace.toLp μ hQ w x + SobolevSpace.toLp μ hQ q x := by + have hd := localRadialDerivative_representative μ hQ Ω f w hf + rw [heq] at hd + have he := hd.symm.trans (SobolevSpace.restrictLp_coe μ hQ Ω (w + q)) + rw [map_add] at he + exact he.trans (ae_restrict_of_ae (Lp.coeFn_add _ _)) + +/-- The forcing in the projected Euler equation is a +Sobolev function. Its square enters the outer bound with a quadratic +coefficient, so the residual can later be normalized safely. -/ +theorem radial_transport_sobolev_forcing {n : ℕ} {R a : ℝ} (hR : 2 ≤ R) + (ha : 0 ≤ a) (han : a ≤ (n : ℝ) + 1) (z : X) + (f w q : SobolevSpace μ hQ) + (hlap : IsConstantLaplacianOn μ hQ (ball z (4 * R)) f a) + {B : ℝ} (hf : ∀ᵐ x ∂μ.restrict (ball z (4 * R)), localGamma μ hQ f f x ≤ B) + (C : ℝ≥0) (hw : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ w x| ≤ C) + (e : X → ℝ) (he : MemLp e 2 μ) + (heuler : localRadialDerivative μ hQ (ball z (4 * R)) f hf w = + SobolevSpace.restrictLp μ hQ (ball z (4 * R)) (w + q)) + (hradial : localGamma μ hQ f (inwardSobolev μ hQ z (3 * R)) + =ᵐ[μ.restrict (ball z (4 * R))] fun x => e x - dist z x) + (hsphere : μ (sphere z R) = 0) : + let β := transportCutoffExponent n + let D := (R ^ (-β) - (3 * R) ^ (-β)) / β + let Q := R ^ (-(β + 1)) + let m := ((2 * R) ^ (-β) - (3 * R) ^ (-β)) / β + (∫ x in ball z (2 * R), (SobolevSpace.toLp μ hQ w x) ^ 2 ∂μ) ≤ + (1 + 2 * ((a + 2) * D + D / 4) / m) * + (∫ x in ball z R, (SobolevSpace.toLp μ hQ w x) ^ 2 ∂μ) + + (8 * D / m) * (∫ x in ball z (4 * R), (SobolevSpace.toLp μ hQ q x) ^ 2 ∂μ) + + (2 * (C : ℝ) ^ 2 * Q / m) * (∫ x in ball z (4 * R), (e x) ^ 2 ∂μ) := by + have hF : MemLp (fun x => 2 * SobolevSpace.toLp μ hQ q x) 2 μ := + (Lp.memLp (SobolevSpace.toLp μ hQ q)).const_mul 2 + have hEq : localGamma μ hQ f w =ᵐ[μ.restrict (ball z (4 * R))] + fun x => SobolevSpace.toLp μ hQ w x + (2 * SobolevSpace.toLp μ hQ q x) / 2 := by + filter_upwards [radial_derivative_add_representative μ hQ _ f w q hf heuler] with x hx + rw [hx] + ring + have ht := radial_transport_squared μ hQ hR ha han z f w hlap C hw + (fun x => 2 * SobolevSpace.toLp μ hQ q x) e hF he hEq hradial hsphere + dsimp only at ht ⊢ + have hsq : (fun x => (2 * SobolevSpace.toLp μ hQ q x) ^ 2) = + fun x => (4 : ℝ) * (SobolevSpace.toLp μ hQ q x) ^ 2 := by funext x; ring + rw [hsq, integral_const_mul] at ht + convert ht using 1 + ring + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/RadialTransportGeometry.lean b/lean/OAI/Geometry/RCD/Transport/RadialTransportGeometry.lean new file mode 100644 index 0000000000000000000000000000000000000000..b646505dfb5f1357ef1207cf46e9d2c20d8f4942 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/RadialTransportGeometry.lean @@ -0,0 +1,127 @@ +import OAI.Geometry.RCD.Transport.RadialTransportWeight + +namespace OAI + +/-! # Geometric weights for the radial transport energy -/ + +open Set Metric MeasureTheory + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] + +def transportEnergyWeight (n : ℕ) (R : ℝ) (z : X) (x : X) : ℝ := + (transportAnnulus z R).indicator (fun x => + transportDerivativeWeight n R z x + radialPowerRep (transportCutoffExponent n) R (3 * R) z x) x + +/-- The sign and the two comparisons needed by the energy argument hold +for the constructed weights. Only the inner sphere is excluded. -/ +theorem radial_transport_weight_geometry {n : ℕ} {R a : ℝ} (hR : 2 ≤ R) + (ha : 0 ≤ a) (han : a ≤ (n : ℝ) + 1) (z x : X) (hne : dist z x ≠ R) : + let β := transportCutoffExponent n + let D := (R ^ (-β) - (3 * R) ^ (-β)) / β + let Q := R ^ (-(β + 1)) + let φ := radialPowerRep β R (3 * R) z x + let ρ := transportDerivativeWeight n R z x + let ζ := transportEnergyWeight n R z x + let I := (ball z R).indicator (fun _ => (1 : ℝ)) x + (0 ≤ ζ ∧ ζ ≤ D + Q) ∧ ρ ≤ ζ ∧ φ ≤ ζ + D * I ∧ + ζ ≤ (a + 2) * D * I - (a + 2) * φ + ρ * dist z x := by + dsimp only + have hR0 : 0 < R := by linarith + have hβ := transportCutoffExponent_pos n + have hφ := radialPowerRep_bounds hβ hR0 (by linarith : R ≤ 3 * R) z x + have hρ := transportDerivativeWeight_bounds n hR0 z x + have hD : 0 ≤ (R ^ (-transportCutoffExponent n) - (3 * R) ^ (-transportCutoffExponent n)) / + transportCutoffExponent n := by + have hh := (radialPowerRep_bounds hβ hR0 (by linarith : R ≤ 3 * R) z z).1 + rwa [radialPowerRep_inner hβ hR0 (by linarith : R ≤ 3 * R) z z (by simp; linarith)] at hh + by_cases hinner : dist z x < R + · have hmem : x ∈ ball z R := by simpa only [mem_ball, dist_comm] using hinner + have hnann : x ∉ transportAnnulus z R := fun hx => (not_lt_of_ge hx.1.le) hinner + simp only [transportEnergyWeight, transportDerivativeWeight, indicator_of_notMem hnann, + indicator_of_mem hmem, zero_add, zero_mul] + rw [radialPowerRep_inner hβ hR0 (by linarith : R ≤ 3 * R) z x hinner.le] + constructor + · exact ⟨le_rfl, add_nonneg hD (Real.rpow_nonneg hR0.le _)⟩ + · constructor + · exact le_rfl + · constructor <;> nlinarith + · have hrx : R < dist z x := lt_of_le_of_ne (le_of_not_gt hinner) hne.symm + have hnmem : x ∉ ball z R := by simpa only [mem_ball, dist_comm, not_lt] using hrx.le + by_cases hout : dist z x < 3 * R + · have hann : x ∈ transportAnnulus z R := ⟨hrx, hout⟩ + simp only [transportEnergyWeight, indicator_of_mem hann, indicator_of_notMem hnmem, + mul_zero, add_zero] + constructor + · exact ⟨add_nonneg hρ.1 hφ.1, by linarith [hρ.2, hφ.2]⟩ + · constructor + · linarith only [hφ.1] + · constructor + · linarith only [hρ.1] + · have hs := radial_transport_cutoff_sign hR ha han z x hrx.le hout.le + change (dist z x) * (dist z x) ^ (-(transportCutoffExponent n + 1)) - + (a + 2) * radialPowerRep (transportCutoffExponent n) R (3 * R) z x ≥ + (dist z x) ^ (-(transportCutoffExponent n + 1)) + + radialPowerRep (transportCutoffExponent n) R (3 * R) z x at hs + rw [transportDerivativeWeight, indicator_of_mem hann] + linarith only [hs] + · have hnann : x ∉ transportAnnulus z R := fun hx => hout hx.2 + rw [transportEnergyWeight, indicator_of_notMem hnann, + transportDerivativeWeight, indicator_of_notMem hnann, + radialPowerRep_zero (by linarith : R ≤ 3 * R) z x (le_of_not_gt hout), + indicator_of_notMem hnmem] + constructor + · exact ⟨le_rfl, add_nonneg hD (Real.rpow_nonneg hR0.le _)⟩ + · constructor + · exact le_rfl + · constructor <;> simp + +/-- The positive cutoff controls the desired larger ball by the inner +ball and the same annular energy. -/ +theorem radial_transport_interior_weight {n : ℕ} {R : ℝ} (hR : 2 ≤ R) + (z x : X) (hne : dist z x ≠ R) : + let β := transportCutoffExponent n + let m := ((2 * R) ^ (-β) - (3 * R) ^ (-β)) / β + m * (ball z (2 * R)).indicator (fun _ => (1 : ℝ)) x ≤ + m * (ball z R).indicator (fun _ => (1 : ℝ)) x + transportEnergyWeight n R z x := by + dsimp only + have hlow := radial_transport_cutoff_lower (n := n) hR z + have hβ := transportCutoffExponent_pos n + have hR0 : 0 < R := by linarith + by_cases hinner : dist z x < R + · have hi : x ∈ ball z R := by simpa only [mem_ball, dist_comm] using hinner + have ho : x ∈ ball z (2 * R) := ball_subset_ball (by linarith) hi + have hnann : x ∉ transportAnnulus z R := fun hx => (not_lt_of_ge hx.1.le) hinner + simp only [indicator_of_mem hi, indicator_of_mem ho, transportEnergyWeight, + indicator_of_notMem hnann, add_zero, le_refl] + · have hi : x ∉ ball z R := by simpa only [mem_ball, dist_comm] using hinner + have hrx : R < dist z x := lt_of_le_of_ne (le_of_not_gt hinner) hne.symm + by_cases ho : x ∈ ball z (2 * R) + · have hdx : dist z x < 2 * R := by simpa only [mem_ball, dist_comm] using ho + have hann : x ∈ transportAnnulus z R := ⟨hrx, by linarith⟩ + simp only [indicator_of_mem ho, indicator_of_notMem hi, mul_one, mul_zero, + zero_add, transportEnergyWeight, indicator_of_mem hann] + exact (hlow.2 x hdx.le).trans (le_add_of_nonneg_left + (transportDerivativeWeight_bounds n hR0 z x).1) + · simp only [indicator_of_notMem hi, indicator_of_notMem ho, mul_zero, zero_add] + by_cases hann : x ∈ transportAnnulus z R + · simp only [transportEnergyWeight, indicator_of_mem hann] + exact add_nonneg (transportDerivativeWeight_bounds n hR0 z x).1 + (radialPowerRep_bounds hβ hR0 (by linarith : R ≤ 3 * R) z x).1 + · simp only [transportEnergyWeight, indicator_of_notMem hann, le_refl] + +variable [MeasurableSpace X] [BorelSpace X] + +theorem transportEnergyWeight_measurable (n : ℕ) {R : ℝ} (hR : 0 < R) (z : X) : + Measurable (transportEnergyWeight n R z) := + ((transportDerivativeWeight_measurable n R z).add + (radialPowerRep_lipschitz (transportCutoffExponent_pos n) hR z).continuous.measurable).indicator + (transportAnnulus_measurableSet z R) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/RadialTransportIdentity.lean b/lean/OAI/Geometry/RCD/Transport/RadialTransportIdentity.lean new file mode 100644 index 0000000000000000000000000000000000000000..2f922c4e3035d1b6f0b05fdaf1a22d69d4937783 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/RadialTransportIdentity.lean @@ -0,0 +1,80 @@ +import OAI.Geometry.RCD.Harmonic.HarmonicQuadraticPotential +import OAI.Geometry.RCD.Sobolev.WeakRadialCancellation + +namespace OAI + +/-! # The weak transport identity tested on the unnormalized residual -/ + +open Set MeasureTheory +open scoped NNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +/-- The actual compact test χ w² is admissible in the local constant +Laplacian equation. This proves the transport balance before any division +by the inner-ball norm of w. -/ +theorem radial_transport_weak_identity (Ω : Set X) (hΩ : MeasurableSet Ω) + (f w η : SobolevSpace μ hQ) {a : ℝ} + (hf : IsConstantLaplacianOn μ hQ Ω f a) (C D L : ℝ≥0) + (hw : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ w x| ≤ C) + (χ : X → ℝ) (hχ : LipschitzWith L χ) (hcpt : HasCompactSupport χ) + (hbound : ∀ x, |χ x| ≤ D) (hnonneg : ∀ x, 0 ≤ χ x) + (hsupp : tsupport χ ⊆ Ω) (hη : SobolevSpace.toLp μ hQ η =ᵐ[μ] χ) : + (∫ x in Ω, 2 * χ x * SobolevSpace.toLp μ hQ w x * localGamma μ hQ f w x + + (SobolevSpace.toLp μ hQ w x) ^ 2 * localGamma μ hQ f η x ∂μ) = + -a * ∫ x in Ω, χ x * (SobolevSpace.toLp μ hQ w x) ^ 2 ∂μ := by + let w₂ := SobolevSpace.square μ hQ w C + have hw₂ : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ w₂ x| ≤ (C * C : ℝ≥0) := by + filter_upwards [SobolevSpace.square_coe μ hQ w C hw, hw] with x hx hb + change |SobolevSpace.toLp μ hQ (SobolevSpace.square μ hQ w C) x| ≤ _ + rw [hx, abs_pow, sq_abs] + have hb₂ := (sq_le_sq₀ (abs_nonneg _) C.coe_nonneg).mpr hb + rw [sq_abs] at hb₂ + simpa only [NNReal.coe_mul, pow_two] using hb₂ + have hηb : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ η x| ≤ D := by + filter_upwards [hη] with x hx + rw [hx] + exact hbound x + let q := SobolevSpace.product μ hQ η w₂ D (C * C) + have hq : q ∈ SobolevSpace.dirichlet μ hQ Ω := + bounded_cutoff_product_mem_dirichlet μ hQ Ω η w₂ D (C * C) L χ + hχ hcpt hbound hnonneg hsupp hη hw₂ + have he := hf q hq + rw [← integral_localGamma_dirichlet μ hQ Ω hΩ f ⟨q, hq⟩] at he + have hleft : (∫ x in Ω, localGamma μ hQ f q x ∂μ) = + ∫ x in Ω, 2 * χ x * SobolevSpace.toLp μ hQ w x * localGamma μ hQ f w x + + (SobolevSpace.toLp μ hQ w x) ^ 2 * localGamma μ hQ f η x ∂μ := by + apply integral_congr_ae + filter_upwards [ae_restrict_of_ae (localGamma_product_right μ hQ f η w₂ D (C * C) hηb hw₂), + ae_restrict_of_ae (localGamma_square μ hQ w f C hw), + ae_restrict_of_ae (localGamma_comm μ hQ f w₂), + ae_restrict_of_ae (localGamma_comm μ hQ f w), + ae_restrict_of_ae (SobolevSpace.square_coe μ hQ w C hw), ae_restrict_of_ae hη] + with x hp hs hc hcw hsquare hηx + change localGamma μ hQ f (SobolevSpace.product μ hQ η w₂ D (C * C)) x = _ + rw [hp, hηx, hc] + change _ = _ at hsquare + rw [show SobolevSpace.toLp μ hQ w₂ x = (SobolevSpace.toLp μ hQ w x) ^ 2 from hsquare, + show localGamma μ hQ w₂ f x = 2 * SobolevSpace.toLp μ hQ w x * localGamma μ hQ w f x from hs, + ← hcw] + ring + have hright : (∫ x in Ω, SobolevSpace.toLp μ hQ q x ∂μ) = + ∫ x in Ω, χ x * (SobolevSpace.toLp μ hQ w x) ^ 2 ∂μ := by + apply integral_congr_ae + filter_upwards [ae_restrict_of_ae (SobolevSpace.product_coe μ hQ η w₂ D (C * C) hηb hw₂), + ae_restrict_of_ae (SobolevSpace.square_coe μ hQ w C hw), ae_restrict_of_ae hη] + with x hp hs hηx + change SobolevSpace.toLp μ hQ (SobolevSpace.product μ hQ η w₂ D (C * C)) x = _ + rw [hp, hηx] + rw [show SobolevSpace.toLp μ hQ w₂ x = (SobolevSpace.toLp μ hQ w x) ^ 2 from hs] + rwa [hleft, hright] at he + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/RadialTransportWeight.lean b/lean/OAI/Geometry/RCD/Transport/RadialTransportWeight.lean new file mode 100644 index 0000000000000000000000000000000000000000..6dcad5a495b125bf3efb35c26e4b85a6ace76f2f --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/RadialTransportWeight.lean @@ -0,0 +1,83 @@ +import OAI.Geometry.RCD.Transport.RadialTransportCutoffBounds + +namespace OAI + +/-! # The actual annular derivative weight of the transport cutoff -/ + +open Set Metric MeasureTheory + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] + +def transportAnnulus (z : X) (R : ℝ) : Set X := + {x | R < dist z x ∧ dist z x < 3 * R} + +def transportDerivativeWeight (n : ℕ) (R : ℝ) (z : X) (x : X) : ℝ := + (transportAnnulus z R).indicator (fun x => (dist z x) ^ (-(transportCutoffExponent n + 1))) x + +theorem transportDerivativeWeight_bounds (n : ℕ) {R : ℝ} (hR : 0 < R) (z x : X) : + 0 ≤ transportDerivativeWeight n R z x ∧ + transportDerivativeWeight n R z x ≤ R ^ (-(transportCutoffExponent n + 1)) := by + by_cases hx : x ∈ transportAnnulus z R + · simp only [transportDerivativeWeight, indicator_of_mem hx] + exact ⟨Real.rpow_nonneg dist_nonneg _, + Real.rpow_le_rpow_of_nonpos hR hx.1.le (by linarith [transportCutoffExponent_pos n])⟩ + · simp only [transportDerivativeWeight, indicator_of_notMem hx] + exact ⟨le_rfl, Real.rpow_nonneg hR.le _⟩ + +variable [MeasurableSpace X] [BorelSpace X] + +theorem transportAnnulus_measurableSet (z : X) (R : ℝ) : MeasurableSet (transportAnnulus z R) := + (isOpen_lt continuous_const (continuous_const.dist continuous_id)).measurableSet.inter + (isOpen_lt (continuous_const.dist continuous_id) continuous_const).measurableSet + +theorem transportDerivativeWeight_measurable (n : ℕ) (R : ℝ) (z : X) : + Measurable (transportDerivativeWeight n R z) := + ((continuous_const.dist continuous_id).measurable.pow_const _).indicator + (transportAnnulus_measurableSet z R) + +variable [ProperSpace X] (μ : Measure X) [IsFiniteMeasureOnCompacts μ] + (hQ : QuadraticCheegerEnergy μ) + +/-- The exact derivative formula, including the constant inner part and +the zero exterior part. The error is the actual radial pairing defect. -/ +theorem radial_transport_cutoff_gamma (n : ℕ) {R : ℝ} (hR : 0 < R) (z : X) + (f : SobolevSpace μ hQ) : + let η := radialPowerTest μ hQ (inwardSobolev μ hQ z (3 * R)) + (transportCutoffExponent_pos n) hR (by linarith : R ≤ 3 * R) + localGamma μ hQ f η =ᵐ[μ] fun x => + transportDerivativeWeight n R z x * + (localGamma μ hQ f (inwardSobolev μ hQ z (3 * R)) x) := by + dsimp only + filter_upwards [radialPowerTest_gamma μ hQ f (inwardSobolev μ hQ z (3 * R)) + ((inwardSobolev_bounds μ hQ z (by linarith : 0 ≤ 3 * R)).mono fun _ hx => hx.1) + (transportCutoffExponent_pos n) hR (by linarith : R ≤ 3 * R), + inwardSobolev_coe μ hQ z (3 * R), + localGamma_comm μ hQ f (inwardSobolev μ hQ z (3 * R)), + localGamma_zero_on_level μ hQ (inwardSobolev μ hQ z (3 * R)) f 0] + with x hγ hu hcomm hz + rw [hγ, hu] + by_cases hout : dist z x < 3 * R + · have hu' : inwardDistance z (3 * R) x = 3 * R - dist z x := + max_eq_left (by linarith) + rw [hu'] + by_cases hin : R < dist z x + · have hx : x ∈ transportAnnulus z R := ⟨hin, hout⟩ + rw [ite_eq_left (by linarith), transportDerivativeWeight, indicator_of_mem hx] + congr 1 + simp only [radialPowerWeight, sub_sub_cancel, max_eq_right hin.le] + · have hx : x ∉ transportAnnulus z R := fun h => hin h.1 + rw [ite_eq_right (by linarith), transportDerivativeWeight, indicator_of_notMem hx, zero_mul] + · have hx : x ∉ transportAnnulus z R := fun h => hout h.2 + have hu' : inwardDistance z (3 * R) x = 0 := max_eq_right (by linarith) + have hzero := hcomm.trans (hz (hu.trans hu')) + rw [hu', ite_eq_left (by linarith), hzero, mul_zero, + transportDerivativeWeight, indicator_of_notMem hx, zero_mul] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/RecoveryLimit.lean b/lean/OAI/Geometry/RCD/Transport/RecoveryLimit.lean new file mode 100644 index 0000000000000000000000000000000000000000..2be67c9b03d397e4190e1986195f741408b3990d --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/RecoveryLimit.lean @@ -0,0 +1,71 @@ +import OAI.Geometry.RCD.Transport.ReducedRecovery +import OAI.Geometry.RCD.Transport.DominatedEndpointTails +import OAI.Geometry.RCD.Transport.WeakOptimalRecovery + +namespace OAI + +/-! # The actual noncompact recovery limit + +The bounded reduced-CD plans converge to an optimal geodesic plan. Every +bounded length window keeps its uniform compression constant. This does +not yet assert passage of the reduced entropy inequality to the limit. +-/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped ENNReal Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem NoncollapsedRCD.reduced_recovery_limit + (K : ℝ) (n : ℕ) (hn : 2≤n) (hX : NoncollapsedRCD K n X) (hK : K≤0) + {N : ℝ} (hN : (n:ℝ)≤N) (ρ : ProbabilityMeasure C(Time,X)) (p : X) + (hg : ∀ᵐ γ ∂(ρ : Measure C(Time,X)), IsGeodesic γ) + (hp : IsOptimalCoupling ((ρ : Measure C(Time,X)).map (fun γ => γ 0)) + ((ρ : Measure C(Time,X)).map (fun γ => γ 1)) + ((ρ : Measure C(Time,X)).map (fun γ => (γ 0,γ 1)))) + (hcost : transportCost ((ρ : Measure C(Time,X)).map (fun γ => (γ 0,γ 1)))≠∞) + {C : ℝ≥0∞} (hC : C≠∞) + (hc : ∀ t : Time, t=0 ∨ t=1 → (ρ : Measure C(Time,X)).map (fun γ => γ t)≤C • hausdorff n X) : + ∃ (π : ProbabilityMeasure C(Time,X)) (πs : ℕ → ProbabilityMeasure C(Time,X)), + Tendsto πs atTop (𝓝 π) ∧ + (∀ j t, ReducedRenyiChordBound (hausdorff n X) K N (πs j : Measure C(Time,X)) t) ∧ + (∀ᵐ γ ∂(π : Measure C(Time,X)), IsGeodesic γ) ∧ + IsOptimalCoupling ((ρ : Measure C(Time,X)).map (fun γ => γ 0)) + ((ρ : Measure C(Time,X)).map (fun γ => γ 1)) + ((π : Measure C(Time,X)).map (fun γ => (γ 0,γ 1))) ∧ + (∀ D : ℝ, 0≤D → ∀ t : Time, + (((π : Measure C(Time,X)).restrict {γ | dist (γ 0) (γ 1) γ t))≤ + compressionBudget K n D ((2 : ℝ≥0∞)*C) • hausdorff n X) ∧ + ∀ t : Time, (π : Measure C(Time,X)).map (fun γ => γ t) ≪ hausdorff n X := by + let : SeparableSpace X := hX.separable + let : ProperSpace X := hX.proper K n hn + let μ := hausdorff n X + let : IsLocallyFiniteMeasure μ := locallyFinite_of_finiteOnBounded μ hX.finiteOnBounded + obtain ⟨πs,hgs,hdom,he,hcs,hw,hcd⟩ := hX.reduced_recovery_sequence K n hn hK hN ρ p hg hp hcost hC hc + have ht := dominated_endpoint_tails πs (ρ.map (fun γ => γ 0)) (ρ.map (fun γ => γ 1)) p + (hdom 0 (Or.inl rfl)) (hdom 1 (Or.inr rfl)) + obtain ⟨π,φ,hφ,hlim⟩ := geodesic_plans_subsequence_of_endpoint_tails πs p hgs ht + have hcomp (D : ℝ) (hD : 0≤D) (t : Time) : + (((π : Measure C(Time,X)).restrict {γ | dist (γ 0) (γ 1) γ t))≤ + compressionBudget K n D ((2 : ℝ≥0∞)*C) • μ := by + apply weak_length_window_compression μ (πs ∘ φ) π hlim t D + (compressionBudget_ne_top K n D (ENNReal.mul_ne_top (by norm_num) hC)) + exact fun j => hw (φ j) D hD t + refine ⟨π,πs ∘ φ,hlim,fun j t => hcd (φ j) t, + weak_limit_geodesic _ π hlim (fun j => hgs (φ j)),?_,hcomp,?_⟩ + · exact weak_optimal_of_recovery _ π ρ hlim + ((he 0 (Or.inl rfl)).comp hφ.tendsto_atTop) + ((he 1 (Or.inr rfl)).comp hφ.tendsto_atTop) + (hcs.comp hφ.tendsto_atTop) hp + · intro t + apply absolutelyContinuous_of_length_windows μ (π : Measure C(Time,X)) t + intro j + exact Measure.absolutelyContinuous_of_le_smul (hcomp ((j:ℝ)+1) (by positivity) t) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/RecoveryPlanCost.lean b/lean/OAI/Geometry/RCD/Transport/RecoveryPlanCost.lean new file mode 100644 index 0000000000000000000000000000000000000000..923c33781bfea7e803353f050b3c5ddede869a68 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/RecoveryPlanCost.lean @@ -0,0 +1,43 @@ +import OAI.Geometry.RCD.Transport.BoundedOptimalRecovery +import OAI.Geometry.RCD.Transport.WeakPlanCost + +namespace OAI + +/-! # Full cost convergence from the integrable recovery moment -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped ENNReal Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [SeparableSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem path_cost_integrable (ρ : Measure C(Time,X)) + (hc : transportCost (ρ.map (fun γ => (γ 0,γ 1)))≠∞) : + Integrable (fun γ : C(Time,X) => dist (γ 0) (γ 1)^2) ρ := by + refine ⟨(((continuous_eval_const 0).dist (continuous_eval_const 1)).pow 2).measurable.aestronglyMeasurable,?_⟩ + rw [hasFiniteIntegral_iff_ofReal (Eventually.of_forall fun _ => sq_nonneg _)] + rw [←path_transportCost] + exact lt_top_iff_ne_top.mpr hc + +theorem recovery_cost_tendsto + (ρs : ℕ → ProbabilityMeasure C(Time,X)) (ρ : ProbabilityMeasure C(Time,X)) + (hdom : ∀ j, (ρs j : Measure C(Time,X))≤(2 : ℝ≥0∞) • (ρ : Measure C(Time,X))) + (hc : transportCost ((ρ : Measure C(Time,X)).map (fun γ => (γ 0,γ 1)))≠∞) + (hm : Tendsto (fun j => ∫γ,dist (γ 0) (γ 1)^2 ∂(ρs j : Measure C(Time,X))) + atTop (𝓝 (∫γ,dist (γ 0) (γ 1)^2 ∂(ρ : Measure C(Time,X))))) : + Tendsto (fun j => transportCost ((ρs j : Measure C(Time,X)).map (fun γ => (γ 0,γ 1)))) + atTop (𝓝 (transportCost ((ρ : Measure C(Time,X)).map (fun γ => (γ 0,γ 1))))) := by + have hi := path_cost_integrable (ρ : Measure C(Time,X)) hc + have hij (j) : Integrable (fun γ : C(Time,X) => dist (γ 0) (γ 1)^2) (ρs j : Measure C(Time,X)) := by + apply (hi.smul_measure (by norm_num : (2 : ℝ≥0∞)≠∞)).mono_measure + exact hdom j + simp_rw [transportCost_plan_eq_integral _ (hij _)] + rw [transportCost_plan_eq_integral _ hi] + exact ENNReal.continuous_ofReal.continuousAt.tendsto.comp hm + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/ReducedChord.lean b/lean/OAI/Geometry/RCD/Transport/ReducedChord.lean new file mode 100644 index 0000000000000000000000000000000000000000..03bbe81291157895ea60e71a5fd53aa23acf7c3c --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/ReducedChord.lean @@ -0,0 +1,68 @@ +import OAI.Geometry.RCD.Transport.ReducedDistortionNonpositive + +namespace OAI + +/-! # Exact subdivision of the reduced entropy chord -/ + +open Set +open scoped ENNReal +noncomputable section +namespace RegularPointCoordinates + +def reducedChord (K N D : ℝ) (A B : ℝ≥0∞) (t : Time) : ℝ≥0∞ := + sigma K N (1-(t:ℝ)) D*A+sigma K N (t:ℝ) D*B + +theorem reducedChord_zero {K N D : ℝ} (hK : K ≤ 0) (hN : 1 sigma K N (1-(t:ℝ)) (upperLength (ε m) (L x))*g₀ x+ + sigma K N (t:ℝ) (upperLength (ε m) (L x))*g₁ x + have hw (s : ℝ) (m : ℕ) : Measurable (fun x => sigma K N s (upperLength (ε m) (L x))) := + (measurable_of_countable (fun i : ℕ => sigma K N s (((i:ℝ)+1)*ε m))).comp + (hL.div_const (ε m)).nat_floor + have hm (m) : Measurable (F m) := ((hw _ m).mul hg₀).add ((hw _ m).mul hg₁) + have hh (s : ℝ) (hs0 : 0 sigma K N s (upperLength (ε m) (L x))*g x) atTop + (𝓝 (sigma K N s (L x)*g x)) := by + apply ENNReal.Tendsto.mul + (sigma_nonpos_length_tendsto hK hN hs0 hs1 (hL0 x) + (fun m => upperLength_pos (hε m)) (upperLength_tendsto hε hεt (hL0 x))) + (Or.inl (sigma_nonpos_ne_zero hK hN hs0 (hL0 x))) tendsto_const_nhds + (Or.inr (sigma_nonpos_ne_top hK hN (hL0 x))) + have hl (x) : Tendsto (fun m => F m x) atTop + (𝓝 (sigma K N (1-(t:ℝ)) (L x)*g₀ x+sigma K N (t:ℝ) (L x)*g₁ x)) := + (hh _ (by linarith) (by linarith) g₀ x).add (hh _ ht0 ht1.le g₁ x) + calc + _ = ∫⁻ x, liminf (fun m => F m x) atTop ∂μ := lintegral_congr (fun x => (hl x).liminf_eq.symm) + _ ≤ liminf (fun m => ∫⁻ x, F m x ∂μ) atTop := lintegral_liminf_le hm + _ ≤ liminf (fun _ : ℕ => B) atTop := Filter.liminf_le_liminf (Eventually.of_forall hb) + _ = B := by simp + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/ReducedChordScaling.lean b/lean/OAI/Geometry/RCD/Transport/ReducedChordScaling.lean new file mode 100644 index 0000000000000000000000000000000000000000..981a2f5ff00b202e195173c83bce680624e6cf01 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/ReducedChordScaling.lean @@ -0,0 +1,77 @@ +import OAI.Geometry.RCD.Transport.RenyiIntegralAdditivity +import OAI.Geometry.RCD.Transport.ReducedDyadicChord + +namespace OAI + +/-! # Exact cancellation of a finite nonzero mass in the reduced bound -/ + +open Set Filter MeasureTheory +open scoped ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem inverse_density_scaled_eval (μ : Measure X) [SigmaFinite μ] + (π : Measure C(Time,X)) [IsFiniteMeasure π] {c : ℝ≥0∞} (hc : c ≠ ∞) + (s : Time) (ha : π.map (fun γ => γ s) ≪ μ) (q : ℝ) : + ∀ᵐ γ ∂π, (((c • π).map (fun γ => γ s)).rnDeriv μ (γ s))^q = + c^q*((π.map (fun γ => γ s)).rnDeriv μ (γ s))^q := by + rw [Measure.map_smul _ (measurable_path_eval s).aemeasurable] + have he := Measure.rnDeriv_smul_left_of_ne_top (π.map (fun γ => γ s)) μ hc + have ht := Measure.rnDeriv_lt_top (π.map (fun γ => γ s)) μ + have hp := ae_of_ae_map (measurable_path_eval s).aemeasurable + ((he.and ht).filter_mono ha.ae_le) + filter_upwards [hp] with γ hγ + rw [hγ.1] + change (c*(π.map (fun γ => γ s)).rnDeriv μ (γ s))^q=_ + exact ENNReal.mul_rpow_of_ne_top hc hγ.2.ne q + +theorem reduced_chord_of_smul (μ : Measure X) [SigmaFinite μ] + (π : Measure C(Time,X)) [IsFiniteMeasure π] + {c : ℝ≥0∞} (hc0 : c ≠ 0) (hc : c ≠ ∞) + (ha₀ : π.map (fun γ => γ 0) ≪ μ) (ha₁ : π.map (fun γ => γ 1) ≪ μ) + {K N : ℝ} (hN : 1 < N) (t : Time) + (h : ReducedRenyiChordBound μ K N (c • π) t) : ReducedRenyiChordBound μ K N π t := by + let k := c^(1-1/N) + have hk0 : k ≠ 0 := (ENNReal.rpow_pos (pos_iff_ne_zero.mpr hc0) hc).ne' + have hkt : k ≠ ∞ := ENNReal.rpow_ne_top_of_ne_zero hc0 hc + have hcq : c*c^(-(1/N))=k := by + dsimp only [k] + rw [show 1-1/N=1+(-(1/N)) by ring,ENNReal.rpow_add _ _ hc0 hc,ENNReal.rpow_one] + let F := fun γ : C(Time,X) => + sigma K (N+1) (1-(t:ℝ)) (dist (γ 0) (γ 1))* + ((π.map (fun γ => γ 0)).rnDeriv μ (γ 0))^(-(1/N))+ + sigma K (N+1) (t:ℝ) (dist (γ 0) (γ 1))* + ((π.map (fun γ => γ 1)).rnDeriv μ (γ 1))^(-(1/N)) + have hleft : (∫⁻ γ, sigma K (N+1) (1-(t:ℝ)) (dist (γ 0) (γ 1))* + (((c • π).map (fun γ => γ 0)).rnDeriv μ (γ 0))^(-(1/N))+ + sigma K (N+1) (t:ℝ) (dist (γ 0) (γ 1))* + (((c • π).map (fun γ => γ 1)).rnDeriv μ (γ 1))^(-(1/N)) ∂(c • π))= + k*(∫⁻ γ, F γ ∂π) := by + rw [lintegral_smul_measure] + calc + _ = c*(∫⁻ γ, c^(-(1/N))*F γ ∂π) := by + congr 1 + apply lintegral_congr_ae + filter_upwards [inverse_density_scaled_eval μ π hc 0 ha₀ (-(1/N)), + inverse_density_scaled_eval μ π hc 1 ha₁ (-(1/N))] with γ hγ₀ hγ₁ + rw [hγ₀,hγ₁] + dsimp only [F] + ring + _ = _ := by + rw [lintegral_const_mul' _ _ (ENNReal.rpow_ne_top_of_ne_zero hc0 hc),←mul_assoc,hcq] + unfold ReducedRenyiChordBound at h ⊢ + rw [hleft,Measure.map_smul _ (measurable_path_eval t).aemeasurable, + renyiIntegral_smul μ _ hc hN] at h + change k*(∫⁻ γ, F γ ∂π) ≤ k*renyiIntegral μ (π.map (fun γ => γ t)) N at h + calc + _ = k⁻¹*(k*(∫⁻ γ, F γ ∂π)) := by rw [←mul_assoc,ENNReal.inv_mul_cancel hk0 hkt,one_mul] + _ ≤ k⁻¹*(k*renyiIntegral μ (π.map (fun γ => γ t)) N) := mul_le_mul' le_rfl h + _ = _ := by rw [←mul_assoc,ENNReal.inv_mul_cancel hk0 hkt,one_mul] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/ReducedDistanceLimit.lean b/lean/OAI/Geometry/RCD/Transport/ReducedDistanceLimit.lean new file mode 100644 index 0000000000000000000000000000000000000000..eb1ffac10626c69ee9b44c7bede4d5a637368d28 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/ReducedDistanceLimit.lean @@ -0,0 +1,77 @@ +import OAI.Geometry.RCD.Transport.MidpointLengthApproximation + +namespace OAI + +/-! # Distance continuity of reduced distortion, including zero length + +At zero length the sharp Gaussian lower bound and the linear upper bound +squeeze the hyperbolic ratio to its continuous value. +-/ + +open Set Filter TopologicalSpace +open scoped ENNReal Topology +namespace RegularPointCoordinates + +theorem sigma_nonpos_ne_top {K N t d : ℝ} (hK : K≤0) (hN : 1 sigma K N t (D m)) atTop (𝓝 (sigma K N t d)) := by + by_cases hK0 : K=0 + · simpa only [hK0,sigma,or_true,ite_true] using + (tendsto_const_nhds : Tendsto (fun _ : ℕ => ENNReal.ofReal t) atTop (𝓝 (ENNReal.ofReal t))) + have hKneg := lt_of_le_of_ne hK hK0 + let a := Real.sqrt (-K/(N-1)) + have ha : 0 Real.sinh (t*x*a)/Real.sinh (x*a) + have he (m) : sigma K N t (D m)=ENNReal.ofReal (F (D m)) := + sigma_neg_eq hKneg hN (hD m) t + simp_rw [he] + by_cases hd0 : d=0 + · have hl : Tendsto (fun m => t*Real.exp (((t*(D m*a))^2-(D m*a)^2)/6)) atTop (𝓝 t) := by + have hh : Continuous (fun x : ℝ => t*Real.exp (((t*(x*a))^2-(x*a)^2)/6)) := by fun_prop + simpa [hd0,Function.comp_def] using hh.continuousAt.tendsto.comp hlim + have hf : Tendsto (fun m => F (D m)) atTop (𝓝 t) := by + apply tendsto_of_tendsto_of_tendsto_of_le_of_le hl tendsto_const_nhds + · intro m + simpa only [F,mul_assoc] using sinh_mul_sharp_gaussian_lower (mul_pos (hD m) ha) ht.le ht1 + · intro m + simpa only [F,mul_assoc] using sinh_radial_ratio_le_time ht.le ht1 (mul_pos (hD m) ha) + simpa only [hd0,sigma,zero_mul,true_or,ite_true,Function.comp_def] using + ENNReal.continuous_ofReal.tendsto t |>.comp hf + · have hdpos : 0 γ 0)).rnDeriv μ (γ 0))^(-(1/N))+ + sigma K (N+1) (t:ℝ) (dist (γ 0) (γ 1))* + ((π.map (fun γ => γ 1)).rnDeriv μ (γ 1))^(-(1/N)) ∂π)≤ + renyiIntegral μ (π.map (fun γ => γ t)) N + +theorem NoncollapsedRCD.reduced_dyadic_chord + (K : ℝ) (n : ℕ) (hn : 2≤n) (hX : NoncollapsedRCD K n X) (hK : K≤0) + {N : ℝ} (hN : (n:ℝ)≤N) (a : RenyiTransportNode n X) + (π : Measure C(Time,X)) [IsProbabilityMeasure π] + (hg : ∀ᵐ γ ∂π, IsGeodesic γ) + (hp : IsOptimalCoupling a.left a.right (π.map (fun γ => (γ 0,γ 1)))) + {C : ℝ≥0∞} (hC : C≠∞) (hc : ∀ t : Time, π.map (fun γ => γ t)≤C • hausdorff n X) + {m : ℕ} (hm : RenyiDyadicMaximal (hausdorff n X) (1-1/N) (fun t => π.map (fun γ => γ t)) m) + {t : Time} (ht : t∈dyadicGrid m) (ht0 : 0<(t:ℝ)) (ht1 : (t:ℝ)<1) : + ReducedRenyiChordBound (hausdorff n X) K N π t := by + let : SeparableSpace X := hX.separable + let μ := hausdorff n X + let : IsLocallyFiniteMeasure μ := locallyFinite_of_finiteOnBounded μ hX.finiteOnBounded + have hN1 : 1 ((π.map (fun γ => γ s)).rnDeriv μ (γ s))^(-(1/N)) + have hgm (s : Time) : Measurable (g s) := + (((π.map (fun γ => γ s)).measurable_rnDeriv μ).comp (measurable_path_eval s)).pow_const _ + let ε := fun j : ℕ => (1/2:ℝ)^j + have hε (j) : 0<ε j := pow_pos (by norm_num) _ + have hεt : Tendsto ε atTop (𝓝 0) := tendsto_pow_atTop_nhds_zero_of_lt_one (by norm_num) (by norm_num) + have hD := a.distance_bound π inferInstance hg hp + apply reduced_chord_mesh_limit π hK (by linarith : 1 dist (γ 0) (γ 1)) + ((measurable_path_eval 0).dist (measurable_path_eval 1)) (fun _ => dist_nonneg) + (g 0) (g 1) (hgm 0) (hgm 1) hε hεt + intro j + have hb := weighted_chord_bin_entropy μ hN1 π + (Measure.absolutelyContinuous_of_le_smul (hc 0)) + (Measure.absolutelyContinuous_of_le_smul (hc 1)) + (sigma K (N+1) (1-(t:ℝ))) (sigma K (N+1) (t:ℝ)) (hε j) hD + apply hb.trans + exact hX.finite_component_scalar_chord K n hn hK hN a π hg hp hC hc hm + (lengthBin (ε j)) (Finset.range (⌊a.distance/ε j⌋₊+1)) (lengthBin_measurable (ε j)) + (fun _ _ _ _ hij => lengthBin_pairwise (hε j) hij) + (hD.mono (fun _ hd => lengthBin_finite_cover (hε j) dist_nonneg hd)) + (fun i => ((i:ℝ)+1)*ε j) (fun i _ => mul_nonneg (by positivity) (hε j).le) + (fun _ _ _ hd => hd.2.le) ht ht0 ht1 + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/ReducedInterpolation.lean b/lean/OAI/Geometry/RCD/Transport/ReducedInterpolation.lean new file mode 100644 index 0000000000000000000000000000000000000000..8408d4d5165d5714d13924d910905cb77d67e2ac --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/ReducedInterpolation.lean @@ -0,0 +1,99 @@ +import OAI.Geometry.RCD.Transport.FiniteContinuousChord +import OAI.Geometry.RCD.Transport.ReducedDyadicChord +import OAI.Geometry.RCD.Transport.RenyiChord + +namespace OAI + +/-! # A compressed optimal plan with exact reduced interpolation + +Finite length components inherit the whole maximal tree. Their scalar +interpolation bounds extend by upper semicontinuity, and shrinking the +length bins recovers the original endpoint-weighted distortion integral. +-/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped ENNReal Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem NoncollapsedRCD.compressed_reduced_interpolation + (K : ℝ) (n : ℕ) (hn : 2≤n) (hX : NoncollapsedRCD K n X) (hK : K≤0) + {N : ℝ} (hN : (n:ℝ)≤N) (a : RenyiTransportNode n X) + (π : Measure C(Time,X)) [IsProbabilityMeasure π] + (hg : ∀ᵐ γ ∂π, IsGeodesic γ) + (hp : IsOptimalCoupling a.left a.right (π.map (fun γ => (γ 0,γ 1)))) + {C : ℝ≥0∞} (hC : C≠∞) (hc : ∀ t : Time, π.map (fun γ => γ t)≤C • hausdorff n X) + (hm : ∀ m, RenyiDyadicMaximal (hausdorff n X) (1-1/N) (fun t => π.map (fun γ => γ t)) m) : + ∀ t, ReducedRenyiChordBound (hausdorff n X) K N π t := by + let : SeparableSpace X := hX.separable + let μ := hausdorff n X + let : IsLocallyFiniteMeasure μ := locallyFinite_of_finiteOnBounded μ hX.finiteOnBounded + have hN1 : 1 ((π.map (fun γ => γ s)).rnDeriv μ (γ s))^(-(1/N)) + have hgm (s : Time) : Measurable (g s) := + (((π.map (fun γ => γ s)).measurable_rnDeriv μ).comp (measurable_path_eval s)).pow_const _ + have he (s : Time) : (∫⁻ γ, g s γ ∂π)=renyiIntegral μ (π.map (fun γ => γ s)) N := by + rw [←lintegral_map (((π.map (fun γ => γ s)).measurable_rnDeriv μ).pow_const _) + (measurable_path_eval s),←renyiIntegral_eq_inverse_density μ _ + (Measure.absolutelyContinuous_of_le_smul (hc s)) hN1] + intro t + by_cases h0 : t=0 + · subst t + unfold ReducedRenyiChordBound + simp only [show ((0:Time):ℝ)=0 from rfl,sub_zero,sigma_nonpos_one hK hNp dist_nonneg, + sigma_nonpos_zero hK hNp dist_nonneg,one_mul,zero_mul,add_zero] + exact (he 0).le + by_cases h1 : t=1 + · subst t + unfold ReducedRenyiChordBound + simp only [show ((1:Time):ℝ)=1 from rfl,sub_self,sigma_nonpos_one hK hNp dist_nonneg, + sigma_nonpos_zero hK hNp dist_nonneg,one_mul,zero_mul,zero_add] + exact (he 1).le + have ht0 : 0<(t:ℝ) := lt_of_le_of_ne t.property.1 (by + intro hh; apply h0; exact Subtype.ext hh.symm) + have ht1 : (t:ℝ)<1 := lt_of_le_of_ne t.property.2 (by + intro hh; apply h1; exact Subtype.ext hh) + let ε := fun j : ℕ => (1/2:ℝ)^j + have hε (j) : 0<ε j := pow_pos (by norm_num) _ + have hεt : Tendsto ε atTop (𝓝 0) := tendsto_pow_atTop_nhds_zero_of_lt_one (by norm_num) (by norm_num) + have hD := a.distance_bound π inferInstance hg hp + apply reduced_chord_mesh_limit π hK hNp t ht0 ht1 + (fun γ : C(Time,X) => dist (γ 0) (γ 1)) + ((measurable_path_eval 0).dist (measurable_path_eval 1)) (fun _ => dist_nonneg) + (g 0) (g 1) (hgm 0) (hgm 1) hε hεt + intro j + have hb := weighted_chord_bin_entropy μ hN1 π + (Measure.absolutelyContinuous_of_le_smul (hc 0)) + (Measure.absolutelyContinuous_of_le_smul (hc 1)) + (sigma K (N+1) (1-(t:ℝ))) (sigma K (N+1) (t:ℝ)) (hε j) hD + apply hb.trans + exact hX.finite_component_chord_all_times K n hn hK hN a π hg hp hC hc hm + (lengthBin (ε j)) (Finset.range (⌊a.distance/ε j⌋₊+1)) (lengthBin_measurable (ε j)) + (fun _ _ _ _ hij => lengthBin_pairwise (hε j) hij) + (hD.mono (fun _ hd => lengthBin_finite_cover (hε j) dist_nonneg hd)) + (fun i => ((i:ℝ)+1)*ε j) (fun i _ => mul_nonneg (by positivity) (hε j).le) + (fun _ _ _ hd => hd.2.le) t + +theorem NoncollapsedRCD.exists_compressed_reduced_interpolation + (K : ℝ) (n : ℕ) (hn : 2≤n) (hX : NoncollapsedRCD K n X) (hK : K≤0) + {N : ℝ} (hN : (n:ℝ)≤N) (a : RenyiTransportNode n X) : + ∃ π : Measure C(Time,X), IsProbabilityMeasure π ∧ + (∀ᵐ γ ∂π, IsGeodesic γ) ∧ + IsOptimalCoupling a.left a.right (π.map (fun γ => (γ 0,γ 1))) ∧ + (∀ t : Time, π.map (fun γ => γ t)≤compressionBudget K n a.distance a.capacity • hausdorff n X) ∧ + ∀ t, ReducedRenyiChordBound (hausdorff n X) K N π t := by + obtain ⟨π,hπ,hg,hp,hc,hm,_⟩ := hX.exists_compressed_renyi_chord K n hn hK hN a + let := hπ + exact ⟨π,hπ,hg,hp,hc,hX.compressed_reduced_interpolation K n hn hK hN a π hg hp + (compressionBudget_ne_top K n a.distance a.capacity_finite) hc hm⟩ + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/ReducedMidpoint.lean b/lean/OAI/Geometry/RCD/Transport/ReducedMidpoint.lean new file mode 100644 index 0000000000000000000000000000000000000000..d0c676ec70767f66801297f16a28518966f2940a --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/ReducedMidpoint.lean @@ -0,0 +1,81 @@ +import OAI.Geometry.RCD.Transport.FullReducedMidpoint +import OAI.Geometry.RCD.Transport.RenyiMidpointInequality +import OAI.Geometry.RCD.Transport.RenyiMidpointShort + +namespace OAI + +/-! # A compressed midpoint with the exact reduced-CD lower bound + +The original full-CD witness supplies the distortion integral. The +actual Rényi maximizer is compressed at the transport-distance capacity. +The two plans remain explicit and need not have the same coupling. +-/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped Topology ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem NoncollapsedRCD.exists_compressed_reduced_midpoint + (K : ℝ) (n : ℕ) (hn : 2 ≤ n) (hX : NoncollapsedRCD K n X) + (ν₀ ν₁ : Measure X) [IsProbabilityMeasure ν₀] [IsProbabilityMeasure ν₁] + {C : ℝ≥0∞} (hC : C ≠ ∞) + (h0 : ν₀ ≤ C • hausdorff n X) (h1 : ν₁ ≤ C • hausdorff n X) + (hm0 : FiniteSecondMoment ν₀) (hm1 : FiniteSecondMoment ν₁) + (p : X) {R : ℝ} (hR : 0 ≤ R) + (hs0 : ∀ᵐ x ∂ν₀, dist x p ≤ R) (hs1 : ∀ᵐ x ∂ν₁, dist x p ≤ R) + (D : ℝ) (hD : OptimalPlanDistanceBound ν₀ ν₁ D) + {N : ℝ} (hN : (n:ℝ) ≤ N) : + ∃ π : Measure C(Time,X), IsProbabilityMeasure π ∧ + (∀ᵐ γ ∂π, IsGeodesic γ) ∧ IsOptimalCoupling ν₀ ν₁ (π.map (fun γ => (γ 0,γ 1))) ∧ + π.map (fun γ => γ midpointTime) ≤ midpointCapacity K n D C • hausdorff n X ∧ + ∃ τ : Measure C(Time,X), IsProbabilityMeasure τ ∧ + (∀ᵐ γ ∂τ, IsGeodesic γ) ∧ IsOptimalCoupling ν₀ ν₁ (τ.map (fun γ => (γ 0,γ 1))) ∧ + (∫⁻ γ, sigma K (N+1) (1/2) (dist (γ 0) (γ 1))*(ν₀.rnDeriv (hausdorff n X) (γ 0))^(-(1/N))+ + sigma K (N+1) (1/2) (dist (γ 0) (γ 1))*(ν₁.rnDeriv (hausdorff n X) (γ 1))^(-(1/N)) ∂τ) ≤ + renyiIntegral (hausdorff n X) (π.map (fun γ => γ midpointTime)) N := by + let : SeparableSpace X := hX.separable + have hnR : (2:ℝ) ≤ n := by exact_mod_cast hn + have hN1 : 1 < N := by linarith + have hq0 : 0 < 1-1/N := sub_pos.mpr ((div_lt_one (by linarith : 0 < N)).mpr hN1) + have hq1 : 1-1/N < 1 := by have := one_div_pos.mpr (by linarith : 0 < N); linarith + obtain ⟨π,hπ,hgπ,hpπ,hcap,hmax⟩ := hX.exists_compressed_renyi_maximizing_midpoint_short K n hn + ν₀ ν₁ hC h0 h1 hm0 hm1 p hR hs0 hs1 D hD hq0 hq1 + let := hπ + obtain ⟨τ,hτ,hgτ,hpτ,hcd⟩ := hX.cd ν₀ ν₁ inferInstance inferInstance + (Measure.absolutelyContinuous_of_le_smul h0) (Measure.absolutelyContinuous_of_le_smul h1) hm0 hm1 + let := hτ + let μ := hausdorff n X + let : IsLocallyFiniteMeasure μ := locallyFinite_of_finiteOnBounded μ hX.finiteOnBounded + let B := closedBall p (3*R) + let : IsFiniteMeasure (μ.restrict B) := ⟨by + simpa [μ,B] using hX.finiteOnBounded B isBounded_closedBall⟩ + have hsupport (σ : Measure C(Time,X)) (hgσ : ∀ᵐ γ ∂σ, IsGeodesic γ) + (hpσ : IsOptimalCoupling ν₀ ν₁ (σ.map (fun γ => (γ 0,γ 1)))) : + ∀ᵐ x ∂σ.map (fun γ => γ midpointTime), x∈B := by + apply (ae_map_iff (measurable_path_eval midpointTime).aemeasurable measurableSet_closedBall).mpr + exact (optimal_geodesic_plan_bounded ν₀ ν₁ σ hgσ hpσ p hR hs0 hs1).mono + (fun γ hγ => hγ.2 midpointTime) + refine ⟨π,hπ,hgπ,hpπ,hcap,τ,hτ,hgτ,hpτ,?_⟩ + have hl := hmax.renyiIntegral_le μ measurableSet_closedBall hN1 hgτ hpτ + (hsupport π hgπ hpπ) (hsupport τ hgτ hpτ) + have hc := (hcd N hN midpointTime).trans hl + have hm : + (∫⁻ γ, sigma K (N+1) (1/2) (dist (γ 0) (γ 1))*(ν₀.rnDeriv μ (γ 0))^(-(1/N))+ + sigma K (N+1) (1/2) (dist (γ 0) (γ 1))*(ν₁.rnDeriv μ (γ 1))^(-(1/N)) ∂τ) ≤ + ∫⁻ γ, tau K N (1/2) (dist (γ 0) (γ 1))*(ν₀.rnDeriv μ (γ 0))^(-(1/N))+ + tau K N (1/2) (dist (γ 0) (γ 1))*(ν₁.rnDeriv μ (γ 1))^(-(1/N)) ∂τ := by + apply lintegral_mono + intro γ + exact add_le_add (mul_le_mul' (reduced_midpoint_le_tau hN1 dist_nonneg) le_rfl) + (mul_le_mul' (reduced_midpoint_le_tau hN1 dist_nonneg) le_rfl) + apply hm.trans + convert hc using 1; norm_num [μ,midpointTime] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/ReducedRecovery.lean b/lean/OAI/Geometry/RCD/Transport/ReducedRecovery.lean new file mode 100644 index 0000000000000000000000000000000000000000..bfb45e359a034b286d3878d46d797a7e96f0bc15 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/ReducedRecovery.lean @@ -0,0 +1,81 @@ +import OAI.Geometry.RCD.Transport.BoundedEndpointNode +import OAI.Geometry.RCD.Transport.RecoveryPlanCost +import OAI.Geometry.RCD.Transport.SelectedPlanLengthWindows + +namespace OAI + +/-! # Actual compressed reduced-CD recovery of an unbounded optimal plan + +The fixed endpoint capacity controls each fixed length window independently +of the radii of the bounded recovery. The full transport costs converge. +-/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped ENNReal Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem NoncollapsedRCD.reduced_recovery_sequence + (K : ℝ) (n : ℕ) (hn : 2≤n) (hX : NoncollapsedRCD K n X) (hK : K≤0) + {N : ℝ} (hN : (n:ℝ)≤N) (ρ : ProbabilityMeasure C(Time,X)) (p : X) + (hg : ∀ᵐ γ ∂(ρ : Measure C(Time,X)), IsGeodesic γ) + (hp : IsOptimalCoupling ((ρ : Measure C(Time,X)).map (fun γ => γ 0)) + ((ρ : Measure C(Time,X)).map (fun γ => γ 1)) + ((ρ : Measure C(Time,X)).map (fun γ => (γ 0,γ 1)))) + (hcost : transportCost ((ρ : Measure C(Time,X)).map (fun γ => (γ 0,γ 1)))≠∞) + {C : ℝ≥0∞} (hC : C≠∞) + (hc : ∀ t : Time, t=0 ∨ t=1 → (ρ : Measure C(Time,X)).map (fun γ => γ t)≤C • hausdorff n X) : + ∃ πs : ℕ → ProbabilityMeasure C(Time,X), + (∀ j, ∀ᵐ γ ∂(πs j : Measure C(Time,X)), IsGeodesic γ) ∧ + (∀ t : Time, t=0 ∨ t=1 → ∀ j, (πs j : Measure C(Time,X)).map (fun γ => γ t)≤ + (2 : ℝ≥0∞) • (ρ : Measure C(Time,X)).map (fun γ => γ t)) ∧ + (∀ t : Time, t=0 ∨ t=1 → Tendsto (fun j => (πs j).map (fun γ => γ t)) + atTop (𝓝 (ρ.map (fun γ => γ t)))) ∧ + Tendsto (fun j => transportCost ((πs j : Measure C(Time,X)).map (fun γ => (γ 0,γ 1)))) + atTop (𝓝 (transportCost ((ρ : Measure C(Time,X)).map (fun γ => (γ 0,γ 1))))) ∧ + (∀ j D, 0≤D → ∀ t : Time, + (((πs j : Measure C(Time,X)).restrict {γ | dist (γ 0) (γ 1) γ t))≤ + compressionBudget K n D ((2 : ℝ≥0∞)*C) • hausdorff n X) ∧ + ∀ j t, ReducedRenyiChordBound (hausdorff n X) K N (πs j : Measure C(Time,X)) t := by + let : SeparableSpace X := hX.separable + obtain ⟨ρs,R,hR,hle,hgs,hs,hps,hlim,hint⟩ := bounded_optimal_recovery ρ p hg hp hcost + have h2C : (2 : ℝ≥0∞)*C≠∞ := ENNReal.mul_ne_top (by norm_num) hC + let a (j : ℕ) := boundedEndpointNode n (ρs j) p (hR j) (hs j) h2C + (bounded_recovery_endpoint_bound n _ _ (hle j) 0 (hc 0 (Or.inl rfl))) + (bounded_recovery_endpoint_bound n _ _ (hle j) 1 (hc 1 (Or.inr rfl))) + have hx (j : ℕ) := hX.exists_reduced_plan_with_length_windows K n hn hK hN (a j) + choose πs hπg hπp hπcd hπw using hx + have he (j : ℕ) (t : Time) (ht : t=0 ∨ t=1) : + (πs j : Measure C(Time,X)).map (fun γ => γ t)= + (ρs j : Measure C(Time,X)).map (fun γ => γ t) := by + have hh := optimalPlan_endpoints (a j).left (a j).right _ (hπp j) + rcases ht with rfl | rfl + · exact hh.1 + · exact hh.2 + have heP (j : ℕ) (t : Time) (ht : t=0 ∨ t=1) : + (πs j).map (fun γ => γ t)=(ρs j).map (fun γ => γ t) := by + apply ProbabilityMeasure.toMeasure_injective + exact he j t ht + refine ⟨πs,hπg,?_,?_,?_,hπw,hπcd⟩ + · intro t ht j + rw [he j t ht,←Measure.map_smul _ (measurable_path_eval t).aemeasurable] + exact Measure.map_mono (hle j) (measurable_path_eval t) + · intro t ht + simp_rw [heP _ t ht] + exact ProbabilityMeasure.tendsto_map_of_tendsto_of_continuous _ _ hlim (continuous_eval_const t) + · have hec (j : ℕ) : + transportCost ((πs j : Measure C(Time,X)).map (fun γ => (γ 0,γ 1)))= + transportCost ((ρs j : Measure C(Time,X)).map (fun γ => (γ 0,γ 1))) := by + exact le_antisymm ((hπp j).2.2 _ (hps j).1 (hps j).2.1) + ((hps j).2.2 _ (hπp j).1 (hπp j).2.1) + simp_rw [hec] + exact recovery_cost_tendsto ρs ρ hle hcost + (hint _ (path_cost_integrable (ρ : Measure C(Time,X)) hcost)) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/ReflectedMidpointDiameter.lean b/lean/OAI/Geometry/RCD/Transport/ReflectedMidpointDiameter.lean new file mode 100644 index 0000000000000000000000000000000000000000..4169632895c30be9805ffabbbe9856baa9728e37 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/ReflectedMidpointDiameter.lean @@ -0,0 +1,28 @@ +import OAI.Geometry.RCD.Transport.PointedMidpointSets + +namespace OAI + +/-! # The elementary diameter bound in the isodiametric argument -/ + +open Set Metric +noncomputable section +namespace RegularPointCoordinates + +/-- Midpoints of a set and its reflection lie in the ball whose radius +is half the original diameter. -/ +theorem reflected_midpoints_subset_closedBall {n : ℕ} {A : Set (Euclidean n)} + (hA : Bornology.IsBounded A) : + midpointSet A (Neg.neg '' A) ⊆ closedBall 0 (diam A/2) := by + rintro x ⟨⟨a,b⟩,⟨ha,hb⟩,rfl⟩ + obtain ⟨c,hc,rfl⟩ := hb + rw [mem_closedBall,dist_zero_right,norm_smul,Real.norm_of_nonneg (by norm_num : (0:ℝ)≤1/2)] + have hd := dist_le_diam_of_mem hA ha hc + rw [dist_eq_norm] at hd + rw [sub_eq_add_neg] at hd + linarith only [hd] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/ReflectedMidpointMass.lean b/lean/OAI/Geometry/RCD/Transport/ReflectedMidpointMass.lean new file mode 100644 index 0000000000000000000000000000000000000000..eb517da05ca866e08a7b7f7a9c2252ead3ee892a --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/ReflectedMidpointMass.lean @@ -0,0 +1,49 @@ +import OAI.Geometry.RCD.Metric.ConstantDensitySetMass +import OAI.Geometry.RCD.Transport.ReflectedMidpointDiameter + +namespace OAI + +/-! # Reflection turns the local midpoint bound into the sharp diameter bound -/ + +open Set Metric MeasureTheory +noncomputable section +namespace RegularPointCoordinates + +theorem compact_volume_le_diameter_ball_of_midpoint {n : ℕ} + (μ : Measure (Euclidean n)) {S a c : ℝ} (haS : a < S) (hc : 0 < c) + (hμ : μ.restrict (ball 0 S) = ENNReal.ofReal c • volume.restrict (ball 0 S)) + {A : Set (Euclidean n)} (hA : IsCompact A) (hAsub : A ⊆ closedBall 0 a) + (hmid : min (μ.real A) (μ.real (Neg.neg '' A)) ≤ + μ.real (midpointSet A (Neg.neg '' A))) : + volume.real A ≤ volume.real (closedBall (0 : Euclidean n) (diam A/2)) := by + have hN : IsCompact (Neg.neg '' A) := hA.image continuous_neg + have hNsub : Neg.neg '' A ⊆ closedBall 0 a := by + rintro x ⟨y,hy,rfl⟩ + simpa only [mem_closedBall,dist_zero_right,norm_neg] using hAsub hy + have hM := isCompact_midpointSet hA hN + have hMsub : midpointSet A (Neg.neg '' A) ⊆ closedBall 0 a := by + rintro x ⟨⟨y,z⟩,⟨hy,hz⟩,rfl⟩ + rw [mem_closedBall,dist_zero_right,norm_smul, + Real.norm_of_nonneg (by norm_num : (0:ℝ) ≤ 1/2)] + have hy0 : ‖y‖ ≤ a := by simpa only [mem_closedBall,dist_zero_right] using hAsub hy + have hz0 : ‖z‖ ≤ a := by simpa only [mem_closedBall,dist_zero_right] using hNsub hz + linarith only [norm_add_le y z,hy0,hz0] + have hAN := real_eq_mul_volume_of_restrict_eq μ hc.le hμ hA.measurableSet + (hAsub.trans (closedBall_subset_ball haS)) + have hNN := real_eq_mul_volume_of_restrict_eq μ hc.le hμ hN.measurableSet + (hNsub.trans (closedBall_subset_ball haS)) + have hMN := real_eq_mul_volume_of_restrict_eq μ hc.le hμ hM.measurableSet + (hMsub.trans (closedBall_subset_ball haS)) + have hneg : volume.real (Neg.neg '' A) = volume.real A := + by simpa only [image_neg_eq_neg,Measure.real] using + congrArg ENNReal.toReal (Measure.measure_neg volume A) + rw [hAN,hNN,hMN,hneg,min_self] at hmid + exact (le_of_mul_le_mul_left hmid hc).trans + (measureReal_mono (reflected_midpoints_subset_closedBall hA.isBounded) + (isCompact_closedBall (0 : Euclidean n) (diam A/2)).measure_lt_top.ne) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/RelativeEntropyDerivative.lean b/lean/OAI/Geometry/RCD/Transport/RelativeEntropyDerivative.lean new file mode 100644 index 0000000000000000000000000000000000000000..69389c2bb6e392e4a846b0ef07f0e61aecbe5d11 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/RelativeEntropyDerivative.lean @@ -0,0 +1,60 @@ +import OAI.Geometry.RCD.Transport.RelativeEntropyIntegral + +namespace OAI + +/-! # First variation of entropy with a uniform relative quadratic remainder -/ + +open Set Filter MeasureTheory +open scoped Topology NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MeasurableSpace X] (μ : Measure X) + +theorem relative_entropy_integral_hasDerivAt_zero {f : ℝ → X → ℝ} {r v : X → ℝ} + (hr : Measurable r) (hv : Measurable v) (hr0 : ∀ᵐ x ∂μ, 0≤r x) + (hf0 : ∀ t : ℝ, ∀ᵐ x ∂μ, 0≤f t x) (hzero : f 0=ᵐ[μ]r) + (hri : Integrable r μ) (hent : Integrable (fun x => r x*Real.log (r x)) μ) + (hf : ∀ t : ℝ, Integrable (fun x => f t x*Real.log (f t x)) μ) + {B C : ℝ≥0} (hb : ∀ᵐ x ∂μ, |v x|≤B*r x) + (he : ∀ᶠ t : ℝ in 𝓝 0, ∀ᵐ x ∂μ, |f t x-r x-t*v x|≤C*t^2*r x) : + HasDerivAt (fun t : ℝ => ∫ x, f t x*Real.log (f t x) ∂μ) + (∫ x, (1+Real.log (r x))*v x ∂μ) 0 := by + let I := ∫ x, r x ∂μ + let J := ∫ x, |r x*Real.log (r x)| ∂μ + have hI : 0≤I := integral_nonneg_of_ae hr0 + have hJ : 0≤J := integral_nonneg fun _ => abs_nonneg _ + have hF0 : (∫ x, f 0 x*Real.log (f 0 x) ∂μ)=(∫ x, r x*Real.log (r x) ∂μ) := + integral_congr_ae (hzero.fun_comp fun a : ℝ => a*Real.log a) + apply HasDerivAt.of_isLittleO + apply Asymptotics.IsLittleO.of_bound + intro ε hε + let η := ε/(2*((B:ℝ)+1)*(I+1)) + have hη : 0<η := div_pos hε (by positivity) + obtain ⟨δ,hδ,hunit⟩ := entropy_unit_remainder hη + have hsmall : η*(B:ℝ)*I≤ε/2 := by + calc + _ ≤ η*((B:ℝ)+1)*(I+1) := by gcongr <;> linarith + _ = ε/2 := by dsimp [η]; field_simp + let A := (η*(C:ℝ)+(C:ℝ))*I+(C:ℝ)*J + have hnear : ∀ᶠ t : ℝ in 𝓝 0, (B:ℝ)*|t|+(C:ℝ)*t^2<δ := by + have hc : Continuous (fun t : ℝ => (B:ℝ)*|t|+(C:ℝ)*t^2) := by fun_prop + exact hc.continuousAt.eventually (Iio_mem_nhds (by + simpa only [abs_zero,mul_zero,zero_pow (by decide : 2≠0),add_zero] using hδ)) + have hA : ∀ᶠ t : ℝ in 𝓝 0, |t| * A<ε/2 := by + exact (continuous_abs.mul_const A).continuousAt.eventually + (Iio_mem_nhds (by simpa only [abs_zero,zero_mul] using half_pos hε)) + filter_upwards [he,hnear,hA] with t he ht hAt + have hi := relative_entropy_integral_remainder μ hr hv hr0 (hf0 t) hη.le hri hent (hf t) hb he hunit ht + have hbound : (η*((B:ℝ)*|t|+(C:ℝ)*t^2)+(C:ℝ)*t^2)*I+(C:ℝ)*t^2*J≤ε*|t| := by + calc + _ = (η*(B:ℝ)*I+|t| * A)*|t| := by dsimp [A]; rw [←sq_abs t]; ring + _ ≤ (ε/2+ε/2)*|t| := + mul_le_mul_of_nonneg_right (add_le_add hsmall hAt.le) (abs_nonneg t) + _ = _ := by ring + simpa only [sub_zero,smul_eq_mul,Real.norm_eq_abs,hF0,mul_comm t] using hi.trans hbound + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/RelativeEntropyIntegral.lean b/lean/OAI/Geometry/RCD/Transport/RelativeEntropyIntegral.lean new file mode 100644 index 0000000000000000000000000000000000000000..dfdce0aef16f62a763a0e5b6bc5c648aa4dd647c --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/RelativeEntropyIntegral.lean @@ -0,0 +1,77 @@ +import OAI.Geometry.RCD.Transport.RelativeEntropyRemainder + +namespace OAI + +/-! # Integral control of the entropy remainder and its tangent -/ + +open Set Filter MeasureTheory +open scoped Topology NNReal +noncomputable section +namespace RegularPointCoordinates + +theorem relative_entropy_tangent_bound {r v B : ℝ} (hr : 0≤r) + (hv : |v|≤B*r) : |(1+Real.log r)*v|≤B*(r+|r*Real.log r|) := by + rw [abs_mul] + calc + _ ≤ (1+|Real.log r|)*(B*r) := + mul_le_mul (by simpa only [abs_one] using abs_add_le (1:ℝ) (Real.log r)) hv + (abs_nonneg _) (by positivity) + _ = _ := by rw [abs_mul,abs_of_nonneg hr]; ring + +variable {X : Type*} [MeasurableSpace X] (μ : Measure X) + +theorem relative_entropy_tangent_integrable {r v : X → ℝ} {B : ℝ} + (hr : Measurable r) (hv : Measurable v) (hr0 : ∀ᵐ x ∂μ, 0≤r x) + (hri : Integrable r μ) (hent : Integrable (fun x => r x*Real.log (r x)) μ) + (hb : ∀ᵐ x ∂μ, |v x|≤B*r x) : + Integrable (fun x => (1+Real.log (r x))*v x) μ := by + apply ((hri.add hent.abs).const_mul B).mono' ((measurable_const.add hr.log).mul hv).aestronglyMeasurable + filter_upwards [hr0,hb] with x hx hb + simpa only [Pi.add_apply,Pi.mul_apply,Real.norm_eq_abs] using relative_entropy_tangent_bound hx hb + +theorem relative_entropy_integral_remainder {r v f : X → ℝ} {ε δ B C t : ℝ} + (hr : Measurable r) (hv : Measurable v) (hr0 : ∀ᵐ x ∂μ, 0≤r x) + (hf0 : ∀ᵐ x ∂μ, 0≤f x) (hε : 0≤ε) + (hri : Integrable r μ) (hent : Integrable (fun x => r x*Real.log (r x)) μ) + (hfi : Integrable (fun x => f x*Real.log (f x)) μ) + (hb : ∀ᵐ x ∂μ, |v x|≤B*r x) + (he : ∀ᵐ x ∂μ, |f x-r x-t*v x|≤C*t^2*r x) + (hunit : ∀ y : ℝ, |y-1|<δ → |y*Real.log y-(y-1)|≤ε*|y-1|) + (ht : B*|t|+C*t^2<δ) : + |(∫ x, f x*Real.log (f x) ∂μ)-(∫ x, r x*Real.log (r x) ∂μ)- + t*(∫ x, (1+Real.log (r x))*v x ∂μ)| ≤ + (ε*(B*|t|+C*t^2)+C*t^2)*(∫ x, r x ∂μ)+ + C*t^2*(∫ x, |r x*Real.log (r x)| ∂μ) := by + have hvi := relative_entropy_tangent_integrable μ hr hv hr0 hri hent hb + have hbound : ∀ᵐ x ∂μ, + |f x*Real.log (f x)-r x*Real.log (r x)-t*((1+Real.log (r x))*v x)|≤ + (ε*(B*|t|+C*t^2)+C*t^2)*r x+C*t^2*|r x*Real.log (r x)| := by + filter_upwards [hr0,hf0,hb,he] with x hx hf hb he + rcases eq_or_lt_of_le hx with hz | hp + · have hv0 : v x=0 := by + rw [←hz,mul_zero] at hb + exact abs_eq_zero.mp (le_antisymm hb (abs_nonneg _)) + have hf0 : f x=0 := by + rw [←hz,hv0,mul_zero,sub_zero,sub_zero,mul_zero] at he + exact abs_eq_zero.mp (le_antisymm he (abs_nonneg _)) + simp only [←hz,hv0,hf0,zero_mul,mul_zero,sub_zero,abs_zero,add_zero] + exact le_rfl + · exact relative_entropy_remainder hε hp hf hunit hb he ht + have hAi : Integrable (fun x => f x*Real.log (f x)-r x*Real.log (r x)) μ := hfi.sub hent + have hBi : Integrable (fun x => t*((1+Real.log (r x))*v x)) μ := hvi.const_mul t + have hrem : Integrable (fun x => f x*Real.log (f x)-r x*Real.log (r x)- + t*((1+Real.log (r x))*v x)) μ := hAi.sub hBi + calc + _ = |∫ x, f x*Real.log (f x)-r x*Real.log (r x)-t*((1+Real.log (r x))*v x) ∂μ| := by + rw [integral_sub hAi hBi,integral_sub hfi hent,integral_const_mul] + _ ≤ ∫ x, |f x*Real.log (f x)-r x*Real.log (r x)-t*((1+Real.log (r x))*v x)| ∂μ := + abs_integral_le_integral_abs + _ ≤ ∫ x, (ε*(B*|t|+C*t^2)+C*t^2)*r x+C*t^2*|r x*Real.log (r x)| ∂μ := + integral_mono_ae hrem.abs ((hri.const_mul _).add (hent.abs.const_mul _)) hbound + _ = _ := by rw [integral_add (hri.const_mul _) (hent.abs.const_mul _),integral_const_mul,integral_const_mul] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/RelativeEntropyRemainder.lean b/lean/OAI/Geometry/RCD/Transport/RelativeEntropyRemainder.lean new file mode 100644 index 0000000000000000000000000000000000000000..ce77ee70e2b71365b3d9ee9b681f7f96374350e2 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/RelativeEntropyRemainder.lean @@ -0,0 +1,75 @@ +import OAI.Geometry.RCD.Transport.RelativePowerRemainder + +namespace OAI + +/-! # Relative quadratic perturbations of the Boltzmann entropy density -/ + +open Set Filter MeasureTheory Metric +open scoped Topology +noncomputable section +namespace RegularPointCoordinates + +theorem entropy_unit_remainder {ε : ℝ} (hε : 0<ε) : + ∃ δ : ℝ, 0<δ ∧ ∀ y : ℝ, |y-1|<δ → + |y*Real.log y-(y-1)|≤ε*|y-1| := by + have hd : HasDerivAt (fun y : ℝ => y*Real.log y) 1 1 := by + convert! (hasDerivAt_id (1:ℝ)).mul (Real.hasDerivAt_log one_ne_zero) using 1 + simp + obtain ⟨δ,hδ,hb⟩ := Metric.eventually_nhds_iff.mp (hd.isLittleO.bound hε) + refine ⟨δ,hδ,fun y hy => ?_⟩ + have h := hb (by simpa only [Real.dist_eq] using hy) + simpa only [Real.log_one,mul_zero,sub_zero,smul_eq_mul,one_mul,mul_one,Real.norm_eq_abs] using h + +theorem entropy_density_scale {r z : ℝ} (hr : 0 y^q) q 1 := by + simpa only [Real.one_rpow,mul_one] using + (Real.hasDerivAt_rpow_const (p := q) (Or.inl (one_ne_zero : (1:ℝ) ≠ 0))) + obtain ⟨δ,hδ,hb⟩ := Metric.eventually_nhds_iff.mp (hd.isLittleO.bound hε) + refine ⟨δ,hδ,fun y hy => ?_⟩ + have h := hb (by simpa only [Real.dist_eq] using hy) + simpa only [Real.one_rpow,smul_eq_mul,Real.norm_eq_abs,mul_comm q] using h + + theorem relative_power_remainder {q ε δ B C r z v t : ℝ} + (hε : 0 ≤ ε) (hr : 0 < r) (hz : 0 ≤ z) + (hunit : ∀ y : ℝ, |y-1| < δ → |y^q-1-q*(y-1)| ≤ ε*|y-1|) + (hv : |v| ≤ B*r) (he : |z-r-t*v| ≤ C*t^2*r) + (ht : B*|t|+C*t^2 < δ) : + |z^q-r^q-t*(q*r^(q-1)*v)| ≤ + (ε*(B*|t|+C*t^2)+|q| * C*t^2)*r^q := by + let u := z/r + let η := B*|t|+C*t^2 + have hdiff : |z-r| ≤ η*r := by + calc + _ = |t*v+(z-r-t*v)| := by congr 1; ring + _ ≤ |t*v|+|z-r-t*v| := abs_add_le _ _ + _ ≤ |t| * (B*r)+C*t^2*r := by + rw [abs_mul] + exact add_le_add (mul_le_mul_of_nonneg_left hv (abs_nonneg t)) he + _ = _ := by dsimp [η]; ring + have hu : |u-1| ≤ η := by + have hu' : u-1=(z-r)/r := by dsimp [u]; field_simp + rw [hu',abs_div,abs_of_pos hr] + exact (div_le_iff₀ hr).mpr hdiff + have huδ : |u-1| < δ := hu.trans_lt ht + have hunit' := (hunit u huδ).trans (mul_le_mul_of_nonneg_left hu hε) + have hrq : 0 ≤ r^q := Real.rpow_nonneg hr.le q + have hrq' : 0 ≤ r^(q-1) := Real.rpow_nonneg hr.le _ + have hmul : r^(q-1)*r=r^q := by + calc + _ = r^(q-1)*r^(1:ℝ) := by rw [Real.rpow_one] + _ = r^(q-1+1) := (Real.rpow_add hr _ _).symm + _ = _ := by congr 1; ring + have hzpow : z^q=r^q*u^q := by + rw [←Real.mul_rpow hr.le (div_nonneg hz hr.le)] + congr 1 + field_simp + have hid : z^q-r^q-t*(q*r^(q-1)*v) = + r^q*(u^q-1-q*(u-1))+(q*r^(q-1))*(z-r-t*v) := by + rw [hzpow,←hmul] + dsimp [u] + field_simp + ring + rw [hid] + calc + _ ≤ |r^q*(u^q-1-q*(u-1))|+|(q*r^(q-1))*(z-r-t*v)| := abs_add_le _ _ + _ = r^q*|u^q-1-q*(u-1)|+(|q| * r^(q-1))*|z-r-t*v| := by + rw [abs_mul,abs_mul,abs_mul,abs_of_nonneg hrq,abs_of_nonneg hrq'] + _ ≤ r^q*(ε*η)+(|q| * r^(q-1))*(C*t^2*r) := + add_le_add (mul_le_mul_of_nonneg_left hunit' hrq) + (mul_le_mul_of_nonneg_left he (mul_nonneg (abs_nonneg q) hrq')) + _ = r^q*(ε*η)+(|q| * C*t^2)*(r^(q-1)*r) := by ring + _ = _ := by rw [hmul]; dsimp [η]; ring + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/RenyiChord.lean b/lean/OAI/Geometry/RCD/Transport/RenyiChord.lean new file mode 100644 index 0000000000000000000000000000000000000000..19726dbbb84386684bd16d80b4ecf631128c37bf --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/RenyiChord.lean @@ -0,0 +1,47 @@ +import OAI.Geometry.RCD.Transport.RenyiTreeChord + +namespace OAI + +/-! # A compressed finite-dimensional Rényi chord from the actual RCD inputs + +The selected plan has all maximal dyadic midpoints, a uniform density +bound, the scalar reduced-CD chord, and continuous endpoint entropy. +The full position-dependent CD* estimate remains a separate step. +-/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped Topology ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem NoncollapsedRCD.exists_compressed_renyi_chord + (K : ℝ) (n : ℕ) (hn : 2≤n) (hX : NoncollapsedRCD K n X) (hK : K≤0) + {N : ℝ} (hN : (n:ℝ)≤N) (a : RenyiTransportNode n X) : + ∃ π : Measure C(Time,X), IsProbabilityMeasure π ∧ + (∀ᵐ γ ∂π, IsGeodesic γ) ∧ IsOptimalCoupling a.left a.right (π.map (fun γ => (γ 0,γ 1))) ∧ + (∀ t : Time, π.map (fun γ => γ t) ≤ compressionBudget K n a.distance a.capacity • hausdorff n X) ∧ + (∀ m, RenyiDyadicMaximal (hausdorff n X) (1-1/N) (fun t => π.map (fun γ => γ t)) m) ∧ + (∀ t, reducedChord K (N+1) a.distance (renyiIntegral (hausdorff n X) a.left N) + (renyiIntegral (hausdorff n X) a.right N) t ≤ + renyiIntegral (hausdorff n X) (π.map (fun γ => γ t)) N) ∧ + ContinuousAt (fun t : Time => renyiIntegral (hausdorff n X) (π.map (fun γ => γ t)) N) 0 ∧ + ContinuousAt (fun t : Time => renyiIntegral (hausdorff n X) (π.map (fun γ => γ t)) N) 1 := by + let : SeparableSpace X := hX.separable + let : ProperSpace X := hX.proper K n hn + have hnR : (2:ℝ)≤n := by exact_mod_cast hn + have hN1 : 1 (hf m).maximal,hX.plan_following_renyi_tree_chord K n hn hK hN S a π hg hp hf⟩ + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/RenyiDisjointAdditivity.lean b/lean/OAI/Geometry/RCD/Transport/RenyiDisjointAdditivity.lean new file mode 100644 index 0000000000000000000000000000000000000000..93a9b431bdac6d30178862d4d9e134c9580dabfb --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/RenyiDisjointAdditivity.lean @@ -0,0 +1,61 @@ +import OAI.Geometry.RCD.Transport.RenyiSemicontinuity + +namespace OAI + +/-! # Additivity of the Rényi integral on disjoint transport components + +Length-localized interior marginals are mutually singular. Their Rényi +integrals can therefore be added without losing the finite dimension. +-/ + +open Set Filter MeasureTheory +open scoped ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MeasurableSpace X] + +theorem rnDeriv_disjoint_ae (μ ν₀ ν₁ : Measure X) [SigmaFinite μ] + [IsFiniteMeasure ν₀] [IsFiniteMeasure ν₁] (hs : ν₀ ⟂ₘ ν₁) : + ∀ᵐ x ∂μ, ν₀.rnDeriv μ x=0 ∨ ν₁.rnDeriv μ x=0 := by + obtain ⟨S,hS,h0,h1⟩ := hs + have hr0 : ν₀.restrict Sᶜ=ν₀ := by + apply Measure.restrict_eq_self_of_ae_mem + apply ae_iff.mpr + simpa [mem_compl_iff] using h0 + have hr1 : ν₁.restrict S=ν₁ := by + apply Measure.restrict_eq_self_of_ae_mem + exact ae_iff.mpr h1 + have hd0 := Measure.rnDeriv_restrict ν₀ μ hS.compl + have hd1 := Measure.rnDeriv_restrict ν₁ μ hS + rw [hr0] at hd0 + rw [hr1] at hd1 + filter_upwards [hd0,hd1] with x hx0 hx1 + by_cases hx : x∈S + · left + simpa only [indicator_of_notMem (show x∉Sᶜ from fun h => h hx)] using hx0 + · right + simpa only [indicator_of_notMem hx] using hx1 + +theorem renyiPower_add_mutuallySingular (μ ν₀ ν₁ : Measure X) [IsFiniteMeasure μ] + [IsFiniteMeasure ν₀] [IsFiniteMeasure ν₁] (hs : ν₀ ⟂ₘ ν₁) + {q : ℝ} (hq0 : 0 < q) (hq1 : q < 1) : + (∫ x, ((ν₀+ν₁).rnDeriv μ x).toReal^q ∂μ) = + (∫ x, (ν₀.rnDeriv μ x).toReal^q ∂μ)+(∫ x, (ν₁.rnDeriv μ x).toReal^q ∂μ) := by + have hi0 := integrable_density_power μ _ (ν₀.measurable_rnDeriv μ).ennreal_toReal + Measure.integrable_toReal_rnDeriv (Eventually.of_forall fun _ => ENNReal.toReal_nonneg) hq0.le hq1.le + have hi1 := integrable_density_power μ _ (ν₁.measurable_rnDeriv μ).ennreal_toReal + Measure.integrable_toReal_rnDeriv (Eventually.of_forall fun _ => ENNReal.toReal_nonneg) hq0.le hq1.le + have he : (fun x => ((ν₀+ν₁).rnDeriv μ x).toReal^q) =ᵐ[μ] + fun x => (ν₀.rnDeriv μ x).toReal^q+(ν₁.rnDeriv μ x).toReal^q := by + filter_upwards [Measure.rnDeriv_add ν₀ ν₁ μ,rnDeriv_disjoint_ae μ ν₀ ν₁ hs] with x hx hd + rw [hx] + rcases hd with hd | hd + · simp only [Pi.add_apply,hd,zero_add,ENNReal.toReal_zero,Real.zero_rpow hq0.ne'] + · simp only [Pi.add_apply,hd,add_zero,ENNReal.toReal_zero,Real.zero_rpow hq0.ne'] + rw [integral_congr_ae he,integral_add hi0 hi1] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/RenyiDual.lean b/lean/OAI/Geometry/RCD/Transport/RenyiDual.lean new file mode 100644 index 0000000000000000000000000000000000000000..4c643e476c5704cef1026d2a20d2a88e48658571 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/RenyiDual.lean @@ -0,0 +1,152 @@ +import OAI.Geometry.RCD.Transport.RenyiDualScore + +namespace OAI + +/-! # The upper semicontinuous dual Rényi functional + +All tests in the infimum are bounded and continuous. Measurable bounded +tests give the same upper bounds by simultaneous L¹ approximation for the +reference measure and the transported measure. +-/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped Topology ENNReal BoundedContinuousFunction +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + +def scaledExpBCF (a : ℝ) (f : X →ᵇ ℝ) : X →ᵇ ℝ := + BoundedContinuousFunction.ofNormedAddCommGroup (fun x => Real.exp (a*f x)) + (Real.continuous_exp.comp (continuous_const.mul f.continuous)) + (Real.exp (|a| *‖f‖)) (fun x => by + rw [Real.norm_eq_abs, abs_of_pos (Real.exp_pos _)] + apply Real.exp_le_exp.mpr + exact (le_abs_self _).trans ((abs_mul _ _).trans_le + (mul_le_mul_of_nonneg_left (f.norm_coe_le_norm x) (abs_nonneg a)))) + +def renyiDualValue (μ ν : Measure X) (q : ℝ) (f : X → ℝ) : ℝ := + q*(∫ x, Real.exp ((q-1)*f x) ∂ν)+(1-q)*(∫ x, Real.exp (q*f x) ∂μ) + +def renyiDual (μ ν : Measure X) (q : ℝ) : ℝ≥0∞ := + ⨅ f : X →ᵇ ℝ, ENNReal.ofReal (renyiDualValue μ ν q f) + +theorem upperSemicontinuous_renyiDual (μ : Measure X) (q : ℝ) : + UpperSemicontinuous (fun ν : ProbabilityMeasure X => renyiDual μ ν q) := by + apply upperSemicontinuous_iInf + intro f + apply Continuous.upperSemicontinuous + apply ENNReal.continuous_ofReal.comp + change Continuous (fun ν : ProbabilityMeasure X => q*(∫ x, scaledExpBCF (q-1) f x ∂(ν : Measure X))+(1-q)*(∫ x, Real.exp (q*f x) ∂μ)) + exact (continuous_const.mul (ProbabilityMeasure.continuous_integral_boundedContinuousFunction + (scaledExpBCF (q-1) f))).add continuous_const + +theorem scaled_exp_error {M a u v : ℝ} (hu : |u| ≤ M) (hv : |v| ≤ M) : + |Real.exp (a*u)-Real.exp (a*v)| ≤ + (|a| *Real.exp (|a| *M))*|u-v| := by + have hau : a*u ≤ |a| *M := (le_abs_self _).trans + ((abs_mul _ _).trans_le (mul_le_mul_of_nonneg_left hu (abs_nonneg a))) + have hav : a*v ≤ |a| *M := (le_abs_self _).trans + ((abs_mul _ _).trans_le (mul_le_mul_of_nonneg_left hv (abs_nonneg a))) + have h := exp_error_le hau hav + rw [← mul_sub, abs_mul] at h + calc + _ ≤ Real.exp (|a| *M)*(|a| *|u-v|) := h + _ = _ := by ring + +omit [MetricSpace X] [BorelSpace X] in +theorem integral_scaled_exp_error (μ : Measure X) [IsFiniteMeasure μ] + {f g : X → ℝ} (hf : Measurable f) (hg : Measurable g) {M a : ℝ} + (hfb : ∀ x, |f x| ≤ M) (hgb : ∀ x, |g x| ≤ M) : + (∫ x, Real.exp (a*f x) ∂μ) ≤ (∫ x, Real.exp (a*g x) ∂μ)+ + (|a| *Real.exp (|a| *M))*(∫ x, |f x-g x| ∂μ) := by + have hb (u : X → ℝ) (hu : ∀ x, |u x| ≤ M) (x : X) : a*u x ≤ |a| *M := + (le_abs_self _).trans ((abs_mul _ _).trans_le + (mul_le_mul_of_nonneg_left (hu x) (abs_nonneg a))) + have hif := bounded_exp_integrable μ (measurable_const.mul hf) (hb f hfb) + have hig := bounded_exp_integrable μ (measurable_const.mul hg) (hb g hgb) + change Integrable (fun x => Real.exp (a*f x)) μ at hif + change Integrable (fun x => Real.exp (a*g x)) μ at hig + have hiabs : Integrable (fun x => |f x-g x|) μ := by + simpa only [Real.norm_eq_abs, Pi.sub_apply] using + ((bounded_measurable_integrable μ hf hfb).sub + (bounded_measurable_integrable μ hg hgb)).norm + have h := integral_mono hif (hig.add (hiabs.const_mul (|a| *Real.exp (|a| *M)))) + (fun x => by + have hx := (le_abs_self (Real.exp (a*f x)-Real.exp (a*g x))).trans + (scaled_exp_error (a := a) (hfb x) (hgb x)) + change Real.exp (a*f x) ≤ Real.exp (a*g x)+_ + linarith) + change (∫ x, Real.exp (a*f x) ∂μ) ≤ + ∫ x, Real.exp (a*g x)+(|a| * Real.exp (|a| * M))*|f x-g x| ∂μ at h + rw [integral_add hig (hiabs.const_mul _), integral_const_mul] at h + exact h + +omit [MetricSpace X] [BorelSpace X] in +theorem renyiDualValue_error (μ ν : Measure X) [IsFiniteMeasure μ] [IsFiniteMeasure ν] + {q : ℝ} (hq0 : 0 ≤ q) (hq1 : q ≤ 1) + {f g : X → ℝ} (hf : Measurable f) (hg : Measurable g) {M ε : ℝ} + (hfb : ∀ x, |f x| ≤ M) (hgb : ∀ x, |g x| ≤ M) + (heμ : (∫ x, |f x-g x| ∂μ) ≤ ε) (heν : (∫ x, |f x-g x| ∂ν) ≤ ε) : + renyiDualValue μ ν q f ≤ renyiDualValue μ ν q g+ + (q*(|q-1| *Real.exp (|q-1| *M))+(1-q)*(|q| *Real.exp (|q| *M)))*ε := by + have hν := integral_scaled_exp_error ν (a := q-1) hf hg hfb hgb + have hμ := integral_scaled_exp_error μ (a := q) hf hg hfb hgb + have hbν := mul_le_mul_of_nonneg_left heν + (show 0 ≤ |q-1| *Real.exp (|q-1| *M) by positivity) + have hbμ := mul_le_mul_of_nonneg_left heμ + (show 0 ≤ |q| *Real.exp (|q| *M) by positivity) + have heν' : (∫ x, Real.exp ((q-1)*f x) ∂ν) ≤ + (∫ x, Real.exp ((q-1)*g x) ∂ν)+(|q-1| * Real.exp (|q-1| * M))*ε := by + linarith + have heμ' : (∫ x, Real.exp (q*f x) ∂μ) ≤ + (∫ x, Real.exp (q*g x) ∂μ)+(|q| * Real.exp (|q| * M))*ε := by + linarith + have hν' := mul_le_mul_of_nonneg_left heν' hq0 + have hμ' := mul_le_mul_of_nonneg_left heμ' (sub_nonneg.mpr hq1) + dsimp [renyiDualValue] + nlinarith only [hν',hμ'] + +theorem renyiDualValue_measurable_ge [ProperSpace X] [SeparableSpace X] + (μ ν : Measure X) [IsFiniteMeasure μ] [IsFiniteMeasure ν] + {q : ℝ} (hq0 : 0 ≤ q) (hq1 : q ≤ 1) + {f : X → ℝ} (hf : Measurable f) {M : ℝ} (hM : 0 ≤ M) + (hb : ∀ x, |f x| ≤ M) {b : ℝ} + (h : ∀ g : X →ᵇ ℝ, b ≤ renyiDualValue μ ν q g) : + b ≤ renyiDualValue μ ν q f := by + apply le_of_forall_pos_le_add + intro ε hε + let C := q*(|q-1| *Real.exp (|q-1| *M))+(1-q)*(|q| *Real.exp (|q| *M)) + have hC : 0 ≤ C := by dsimp [C]; positivity + let δ := ε/(C+1) + have hδ : 0 < δ := div_pos hε (by positivity) + have hfi := bounded_measurable_integrable (μ+ν) hf hb + obtain ⟨g,hg,_⟩ := hfi.exists_boundedContinuous_integral_sub_le hδ + let u := clipBCF M hM g + have hu := clipBCF_abs_le M hM g + have hiμ := bounded_measurable_integrable μ hf hb + have hiν := bounded_measurable_integrable ν hf hb + have hsum := integral_add_measure (hiμ.sub (g.integrable μ)).norm + (hiν.sub (g.integrable ν)).norm + simp only [Pi.sub_apply] at hsum + rw [hsum] at hg + have hnμ : 0 ≤ ∫ x, ‖f x-g x‖ ∂μ := integral_nonneg fun _ => norm_nonneg _ + have hnν : 0 ≤ ∫ x, ‖f x-g x‖ ∂ν := integral_nonneg fun _ => norm_nonneg _ + have hbnd (ξ : Measure X) [IsFiniteMeasure ξ] (hi : Integrable f ξ) + (hg' : (∫ x, ‖f x-g x‖ ∂ξ) ≤ δ) : (∫ x, |u x-f x| ∂ξ) ≤ δ := by + have hh := integral_mono (hi.sub (u.integrable ξ)).norm + (hi.sub (g.integrable ξ)).norm (fun x => clip_error_le M (f x) (g x) hM (hb x)) + simpa only [Real.norm_eq_abs, Pi.sub_apply, abs_sub_comm (f _) (u _)] using hh.trans hg' + have heμ := hbnd μ hiμ (by linarith) + have heν := hbnd ν hiν (by linarith) + have herr := renyiDualValue_error μ ν hq0 hq1 u.continuous.measurable hf hu hb heμ heν + have hCδ : C*δ ≤ ε := by + have heq : (C+1)*δ = ε := by dsimp [δ]; field_simp + nlinarith [hδ] + exact (h u).trans (herr.trans (by dsimp only [C] at hCδ; linarith)) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/RenyiDualIntegral.lean b/lean/OAI/Geometry/RCD/Transport/RenyiDualIntegral.lean new file mode 100644 index 0000000000000000000000000000000000000000..80bd765bb26f67fd351b1ca0a227b8b7813af959 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/RenyiDualIntegral.lean @@ -0,0 +1,127 @@ +import OAI.Geometry.RCD.Transport.RenyiDual + +namespace OAI + +/-! # Dual scores and the absolutely continuous density + +The singular part of a finite measure is retained explicitly. In +particular the tangent inequality does not assume absolute continuity. +-/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped Topology ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + +omit [MetricSpace X] [BorelSpace X] in +theorem integral_renyiDualScore_logTest_tendsto (μ : Measure X) [IsFiniteMeasure μ] + {ρ : X → ℝ} (hρ : Measurable ρ) (hi : Integrable ρ μ) + (hρ0 : ∀ x, 0 ≤ ρ x) {q : ℝ} (hq0 : 0 < q) (hq1 : q < 1) : + Tendsto (fun k : ℕ => ∫ x, renyiDualScore q (ρ x) (entropyLogTest (k+1) (ρ x)) ∂μ) + atTop (𝓝 (∫ x, (ρ x)^q ∂μ)) := by + apply tendsto_integral_of_dominated_convergence (fun x => 1+ρ x) + · intro k + have hlog : Measurable (fun x => entropyLogTest (k+1) (ρ x)) := + (continuous_entropyLogTest _).measurable.comp hρ + exact (by unfold renyiDualScore; fun_prop : + Measurable (fun x => renyiDualScore q (ρ x) (entropyLogTest (k+1) (ρ x)))).aestronglyMeasurable + · exact (integrable_const 1).add hi + · intro k + filter_upwards [] with x + rw [Real.norm_eq_abs, abs_of_nonneg (renyiDualScore_nonneg hq0.le hq1.le (hρ0 x) _)] + exact renyiDualScore_logTest_bound hq0 hq1 (by positivity) (hρ0 x) + · exact Eventually.of_forall fun x => renyiDualScore_logTest_tendsto hq0 hq1 (hρ0 x) + +omit [MetricSpace X] [BorelSpace X] in +theorem renyiDualValue_decomposition (μ ν : Measure X) + [IsFiniteMeasure μ] [IsFiniteMeasure ν] {q : ℝ} + {f : X → ℝ} (hf : Measurable f) {M : ℝ} (hb : ∀ x, |f x| ≤ M) : + renyiDualValue μ ν q f = + (∫ x, renyiDualScore q (ν.rnDeriv μ x).toReal (f x) ∂μ)+ + q*(∫ x, Real.exp ((q-1)*f x) ∂ν.singularPart μ) := by + let ξ := ν.singularPart μ + let η := μ.withDensity (ν.rnDeriv μ) + let : IsFiniteMeasure ξ := isFiniteMeasure_of_le ν (Measure.singularPart_le ν μ) + let : IsFiniteMeasure η := isFiniteMeasure_of_le ν (Measure.withDensity_rnDeriv_le ν μ) + have hexp (a : ℝ) (m : Measure X) [IsFiniteMeasure m] : + Integrable (fun x => Real.exp (a*f x)) m := by + apply bounded_exp_integrable m (measurable_const.mul hf) + intro x + exact (le_abs_self _).trans ((abs_mul _ _).trans_le + (mul_le_mul_of_nonneg_left (hb x) (abs_nonneg a))) + have hid : Integrable (fun x => (ν.rnDeriv μ x).toReal*Real.exp ((q-1)*f x)) μ := by + simpa only [smul_eq_mul] using + (integrable_withDensity_iff_integrable_smul' (ν.measurable_rnDeriv μ) + (Measure.rnDeriv_lt_top ν μ)).mp (hexp (q-1) η) + have he : (∫ x, Real.exp ((q-1)*f x) ∂ν) = + (∫ x, Real.exp ((q-1)*f x) ∂ξ)+ + (∫ x, (ν.rnDeriv μ x).toReal*Real.exp ((q-1)*f x) ∂μ) := by + calc + _ = (∫ x, Real.exp ((q-1)*f x) ∂ξ)+(∫ x, Real.exp ((q-1)*f x) ∂η) := by + conv_lhs => rw [Measure.haveLebesgueDecomposition_add ν μ] + exact integral_add_measure (hexp (q-1) ξ) (hexp (q-1) η) + _ = _ := by + rw [show (∫ x, Real.exp ((q-1)*f x) ∂η) = + ∫ x, (ν.rnDeriv μ x).toReal*Real.exp ((q-1)*f x) ∂μ from by + change (∫ x, Real.exp ((q-1)*f x) ∂μ.withDensity (ν.rnDeriv μ)) = _ + rw [integral_withDensity_eq_integral_toReal_smul + (ν.measurable_rnDeriv μ) (Measure.rnDeriv_lt_top ν μ)] + rfl] + have hs : (∫ x, renyiDualScore q (ν.rnDeriv μ x).toReal (f x) ∂μ) = + q*(∫ x, (ν.rnDeriv μ x).toReal*Real.exp ((q-1)*f x) ∂μ)+ + (1-q)*(∫ x, Real.exp (q*f x) ∂μ) := by + unfold renyiDualScore + simp_rw [mul_assoc] + rw [integral_add (hid.const_mul q) ((hexp q μ).const_mul (1-q)), + integral_const_mul,integral_const_mul] + rw [hs] + unfold renyiDualValue + rw [he] + ring + +omit [MetricSpace X] [BorelSpace X] in +theorem renyiPower_le_dualValue (μ ν : Measure X) [IsFiniteMeasure μ] [IsFiniteMeasure ν] + {q : ℝ} (hq0 : 0 < q) (hq1 : q < 1) + {f : X → ℝ} (hf : Measurable f) {M : ℝ} (hb : ∀ x, |f x| ≤ M) : + (∫ x, (ν.rnDeriv μ x).toReal^q ∂μ) ≤ renyiDualValue μ ν q f := by + have hpow := integrable_density_power μ _ (ν.measurable_rnDeriv μ).ennreal_toReal + Measure.integrable_toReal_rnDeriv (Eventually.of_forall fun _ => ENNReal.toReal_nonneg) + hq0.le hq1.le + have hib (a : ℝ) : ∀ x, Real.exp (a*f x) ≤ Real.exp (|a| *M) := by + intro x + apply Real.exp_le_exp.mpr + exact (le_abs_self _).trans ((abs_mul _ _).trans_le + (mul_le_mul_of_nonneg_left (hb x) (abs_nonneg a))) + have hi0 : Integrable (fun x => (ν.rnDeriv μ x).toReal*Real.exp ((q-1)*f x)) μ := by + apply Integrable.mul_bdd (Measure.integrable_toReal_rnDeriv (μ := ν) (ν := μ)) + (by fun_prop) (c := Real.exp (|q-1| *M)) + filter_upwards [] with x + simpa only [Real.norm_eq_abs,abs_of_pos (Real.exp_pos _)] using hib (q-1) x + have hi1 := bounded_exp_integrable μ (measurable_const.mul hf) + (fun x => (le_abs_self _).trans ((abs_mul _ _).trans_le + (mul_le_mul_of_nonneg_left (hb x) (abs_nonneg q)))) + have hs : Integrable (fun x => renyiDualScore q (ν.rnDeriv μ x).toReal (f x)) μ := by + apply ((hi0.const_mul q).add (hi1.const_mul (1-q))).congr + filter_upwards [] with x + simp only [Pi.add_apply,Pi.mul_apply,renyiDualScore] + ring + have hle := integral_mono hpow hs (fun x => + rpow_le_renyiDualScore hq0 hq1 ENNReal.toReal_nonneg (f x)) + rw [renyiDualValue_decomposition μ ν hf hb] + exact hle.trans (le_add_of_nonneg_right (mul_nonneg hq0.le + (integral_nonneg fun _ => (Real.exp_pos _).le))) + +theorem renyiPower_le_dual (μ ν : Measure X) [IsFiniteMeasure μ] [IsFiniteMeasure ν] + {q : ℝ} (hq0 : 0 < q) (hq1 : q < 1) : + ENNReal.ofReal (∫ x, (ν.rnDeriv μ x).toReal^q ∂μ) ≤ renyiDual μ ν q := by + apply le_iInf + intro f + exact ENNReal.ofReal_le_ofReal (renyiPower_le_dualValue μ ν hq0 hq1 + f.continuous.measurable (fun x => f.norm_coe_le_norm x)) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/RenyiDualScore.lean b/lean/OAI/Geometry/RCD/Transport/RenyiDualScore.lean new file mode 100644 index 0000000000000000000000000000000000000000..4b47c458ccf8c96fbcea804ba6a14d7e4b5709d8 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/RenyiDualScore.lean @@ -0,0 +1,119 @@ +import OAI.Geometry.RCD.Transport.RenyiTangent +import OAI.Analysis.RCDHeat.ExistingAnalytic + +namespace OAI + +/-! # A bounded dual approximation for the finite Rényi entropy + +The logarithmic tests are clipped at finite levels. Their nonnegative +scores have an integrable bound independent of the clipping level. This +is the scalar ingredient of the semicontinuity used in the entropy +minimizing midpoint construction of Rajala, arXiv:1202.6514, Lemma 2.4. +-/ + +open Set Filter MeasureTheory +open scoped Topology +noncomputable section +namespace RegularPointCoordinates + +def renyiDualScore (q r s : ℝ) : ℝ := + q*r*Real.exp ((q-1)*s)+(1-q)*Real.exp (q*s) + +theorem renyiDualScore_nonneg {q r : ℝ} (hq0 : 0 ≤ q) (hq1 : q ≤ 1) + (hr : 0 ≤ r) (s : ℝ) : 0 ≤ renyiDualScore q r s := by + unfold renyiDualScore + positivity + +theorem renyiDualScore_log {q r : ℝ} (hr : 0 < r) : + renyiDualScore q r (Real.log r) = r^q := by + have he : r*Real.exp ((q-1)*Real.log r) = r^q := by + rw [mul_comm (q-1), ← Real.rpow_def_of_pos hr] + calc + r*r^(q-1) = r^(1:ℝ)*r^(q-1) := by rw [Real.rpow_one] + _ = r^(1+(q-1)) := (Real.rpow_add hr _ _).symm + _ = r^q := by congr 1; ring + unfold renyiDualScore + rw [mul_assoc, he, mul_comm q (Real.log r), ← Real.rpow_def_of_pos hr] + ring + +theorem rpow_le_renyiDualScore {q r : ℝ} (hq0 : 0 < q) (hq1 : q < 1) + (hr : 0 ≤ r) (s : ℝ) : r^q ≤ renyiDualScore q r s := by + have h := rpow_tangent_upper (Real.exp_pos s) hr hq0 hq1 + rw [Real.rpow_def_of_pos (Real.exp_pos _), Real.log_exp, + Real.rpow_def_of_pos (Real.exp_pos _), Real.log_exp] at h + calc + _ ≤ (1-q)*Real.exp (s*q)+q*Real.exp (s*(q-1))*r := h + _ = renyiDualScore q r s := by + rw [mul_comm s q, mul_comm s (q-1)] + unfold renyiDualScore + ring + +theorem renyiDualScore_logTest_bound {q M r : ℝ} (hq0 : 0 < q) (hq1 : q < 1) + (hM : 0 ≤ M) (hr : 0 ≤ r) : + renyiDualScore q r (entropyLogTest M r) ≤ 1+r := by + rcases le_total r (Real.exp (-M)) with hlo | hlo + · rw [entropyLogTest_low hM hlo] + have hmul := mul_le_mul_of_nonneg_right hlo (Real.exp_pos ((q-1)*(-M))).le + rw [← Real.exp_add] at hmul + have he : -M+(q-1)*(-M) = q*(-M) := by ring + rw [he] at hmul + have hexp : Real.exp (q*(-M)) ≤ 1 := Real.exp_le_one_iff.mpr (by nlinarith) + have hq := mul_le_mul_of_nonneg_left hmul hq0.le + dsimp [renyiDualScore] + nlinarith + · rcases le_total (Real.exp M) r with hhi | hhi + · rw [entropyLogTest_high hM hhi] + have he0 : Real.exp ((q-1)*M) ≤ 1 := Real.exp_le_one_iff.mpr (by nlinarith) + have he1 : Real.exp (q*M) ≤ r := + (Real.exp_le_exp.mpr (by nlinarith : q*M ≤ M)).trans hhi + have h0 := mul_le_mul_of_nonneg_left he0 (mul_nonneg hq0.le hr) + have h1 := mul_le_mul_of_nonneg_left he1 (by linarith : 0 ≤ 1-q) + dsimp [renyiDualScore] + nlinarith + · rw [entropyLogTest_middle hlo hhi, renyiDualScore_log ((Real.exp_pos _).trans_le hlo)] + by_cases hr1 : r ≤ 1 + · have h := Real.rpow_le_one hr hr1 hq0.le + linarith + · have h := Real.rpow_le_rpow_of_exponent_le (le_of_not_ge hr1) hq1.le + rw [Real.rpow_one] at h + linarith + +theorem renyiDualScore_logTest_tendsto {q r : ℝ} (hq0 : 0 < q) (_hq1 : q < 1) + (hr : 0 ≤ r) : + Tendsto (fun k : ℕ => renyiDualScore q r (entropyLogTest (k+1) r)) + atTop (𝓝 (r^q)) := by + rcases hr.eq_or_lt with hr | hr + · subst r + have he : ∀ k : ℕ, renyiDualScore q 0 (entropyLogTest (k+1) 0) = + (1-q)*Real.exp (-q*((k:ℝ)+1)) := by + intro k + rw [entropyLogTest_low (by positivity) (Real.exp_pos _).le] + dsimp [renyiDualScore] + simp only [mul_zero, zero_mul, zero_add] + congr 2 + ring + simp_rw [he, Real.zero_rpow hq0.ne'] + have ht : Tendsto (fun k : ℕ => -q*((k:ℝ)+1)) atTop atBot := by + have hnat : Tendsto (fun k : ℕ => (k:ℝ)) atTop atTop := tendsto_natCast_atTop_atTop + exact Filter.Tendsto.const_mul_atTop_of_neg (neg_neg_of_pos hq0) + (tendsto_atTop_add_const_right _ 1 hnat) + simpa using (tendsto_const_nhds.mul (Real.tendsto_exp_atBot.comp ht)) + · have hnat : Tendsto (fun k : ℕ => (k:ℝ)) atTop atTop := tendsto_natCast_atTop_atTop + have hev : ∀ᶠ k : ℕ in atTop, |Real.log r| ≤ (k:ℝ)+1 := + (tendsto_atTop_add_const_right _ 1 hnat).eventually (eventually_ge_atTop _) + apply tendsto_const_nhds.congr' + filter_upwards [hev] with k hk + obtain ⟨hlo,hhi⟩ := abs_le.mp hk + have hl : Real.exp (-((k:ℝ)+1)) ≤ r := by + rw [← Real.exp_log hr] + exact Real.exp_le_exp.mpr hlo + have hh : r ≤ Real.exp ((k:ℝ)+1) := by + rw [← Real.exp_log hr] + exact Real.exp_le_exp.mpr hhi + rw [entropyLogTest_middle hl hh, renyiDualScore_log hr] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/RenyiDyadicChord.lean b/lean/OAI/Geometry/RCD/Transport/RenyiDyadicChord.lean new file mode 100644 index 0000000000000000000000000000000000000000..934808136b22b9df40f1a3a668d67e82bb1ef99a --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/RenyiDyadicChord.lean @@ -0,0 +1,57 @@ +import OAI.Geometry.RCD.Transport.RenyiScalarMidpoint +import OAI.Geometry.RCD.Transport.ReducedChord + +namespace OAI + +/-! # The finite-dimensional scalar chord along the fixed dyadic tree + +This is Rajala's preliminary estimate (3.1), retaining the dimension in +the exact reduced coefficient. It will provide endpoint entropy continuity. +-/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped Topology ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [SeparableSpace X] [CompleteSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem FollowsRenyiTree.reducedChord + (K : ℝ) (n : ℕ) (hn : 2 ≤ n) (hX : NoncollapsedRCD K n X) (hK : K ≤ 0) + {N : ℝ} (hN : (n:ℝ) ≤ N) + (S : ∀ a : RenyiTransportNode n X, RenyiNodeSplit K (1-1/N) a) (m : ℕ) : + ∀ {a : RenyiTransportNode n X} {ν : Time → Measure X}, FollowsRenyiTree S a ν m → + ∀ t∈dyadicGrid m, + reducedChord K (N+1) a.distance (renyiIntegral (hausdorff n X) a.left N) + (renyiIntegral (hausdorff n X) a.right N) t ≤ renyiIntegral (hausdorff n X) (ν t) N := by + have hnR : (2:ℝ) ≤ n := by exact_mod_cast hn + have hNp : 1 + intro a ν h t ht + rcases ht with rfl | ht + · rw [reducedChord_zero hK hNp a.distance_nonneg,h.1] + · have he : t=1 := ht + subst t + rw [reducedChord_one hK hNp a.distance_nonneg,h.2] + | succ m ih => + intro a ν h t ht + have hm := hX.renyiNode_scalar_midpoint K n hn hK hN a (S a) + rcases ht with ⟨s,hs,rfl⟩ | ⟨s,hs,rfl⟩ + · rw [reducedChord_lower hK hNp a.distance_nonneg] + refine (reducedChord_mono le_rfl hm s).trans ?_ + have hi := ih h.2.2.2.1 s hs + simpa only [RenyiNodeSplit.leftNode_distance,RenyiNodeSplit.leftNode_left, + RenyiNodeSplit.leftNode_right] using hi + · rw [reducedChord_upper hK hNp a.distance_nonneg] + refine (reducedChord_mono hm le_rfl s).trans ?_ + have hi := ih h.2.2.2.2 s hs + simpa only [RenyiNodeSplit.rightNode_distance,RenyiNodeSplit.rightNode_left, + RenyiNodeSplit.rightNode_right] using hi + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/RenyiDyadicConstruction.lean b/lean/OAI/Geometry/RCD/Transport/RenyiDyadicConstruction.lean new file mode 100644 index 0000000000000000000000000000000000000000..d8bec878e85260e0bb5c9f0b9e3d98fdcff912e9 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/RenyiDyadicConstruction.lean @@ -0,0 +1,131 @@ +import OAI.Geometry.RCD.Transport.RenyiDyadicData + +namespace OAI + +/-! # Actual compressed optimal plans with maximal dyadic midpoints + +The tree is constructed by genuine midpoint maximization and optimal +matched-path gluing. The density budget is uniform in the tree depth. +-/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped Topology ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem NoncollapsedRCD.exists_dyadic_renyi_maximizing_plan + (K : ℝ) (n : ℕ) (hn : 2 ≤ n) (hX : NoncollapsedRCD K n X) + (q : ℝ) (hq0 : 0 < q) (hq1 : q < 1) (m : ℕ) : + ∀ (ν₀ ν₁ : Measure X), IsProbabilityMeasure ν₀ → IsProbabilityMeasure ν₁ → + ∀ (C : ℝ≥0∞), C ≠ ∞ → ν₀ ≤ C • hausdorff n X → ν₁ ≤ C • hausdorff n X → + ∀ (p : X) (R : ℝ), 0 ≤ R → + (∀ᵐ x ∂ν₀, dist x p ≤ R) → (∀ᵐ x ∂ν₁, dist x p ≤ R) → + ∀ (D : ℝ), 0 ≤ D → OptimalPlanDistanceBound ν₀ ν₁ D → + ∃ π : Measure C(Time,X), IsProbabilityMeasure π ∧ + (∀ᵐ γ ∂π, IsGeodesic γ) ∧ IsOptimalCoupling ν₀ ν₁ (π.map (fun γ => (γ 0,γ 1))) ∧ + (∀ t∈dyadicGrid m, π.map (fun γ => γ t) ≤ compressionBudget K n D C • hausdorff n X) ∧ + RenyiDyadicMaximal (hausdorff n X) q (fun t => π.map (fun γ => γ t)) m := by + let : SeparableSpace X := hX.separable + let : CompleteSpace X := hX.complete + have hn0 : (0:ℝ) ≤ n := Nat.cast_nonneg n + induction m with + | zero => + intro ν₀ ν₁ hν₀ hν₁ C hC h0 h1 p R hR hs0 hs1 D hD0 _ + let := hν₀ + let := hν₁ + have hm0 := finiteSecondMoment_of_bounded ν₀ p hs0 + have hm1 := finiteSecondMoment_of_bounded ν₁ p hs1 + obtain ⟨π,hπ,hg,hp,_⟩ := hX.cd ν₀ ν₁ hν₀ hν₁ + (Measure.absolutelyContinuous_of_le_smul h0) + (Measure.absolutelyContinuous_of_le_smul h1) hm0 hm1 + have he := optimalPlan_endpoints ν₀ ν₁ π hp + have hcap := le_compressionBudget K n D C hn0 hD0 + have h0' : ν₀ ≤ compressionBudget K n D C • hausdorff n X := + h0.trans (by intro S; exact mul_le_mul_left hcap _) + have h1' : ν₁ ≤ compressionBudget K n D C • hausdorff n X := + h1.trans (by intro S; exact mul_le_mul_left hcap _) + refine ⟨π,hπ,hg,hp,?_,trivial⟩ + intro t ht + rcases ht with rfl | ht + · rwa [he.1] + · have ht' : t=1 := ht + subst t + rwa [he.2] + | succ m ih => + intro ν₀ ν₁ hν₀ hν₁ C hC h0 h1 p R hR hs0 hs1 D hD0 hD + let := hν₀ + let := hν₁ + let : Nonempty X := ⟨p⟩ + have hm0 := finiteSecondMoment_of_bounded ν₀ p hs0 + have hm1 := finiteSecondMoment_of_bounded ν₁ p hs1 + obtain ⟨π,hπ,hg,hp,hmidcap,hmax⟩ := hX.exists_global_renyi_midpoint_short K n hn + ν₀ ν₁ hC h0 h1 p hR hs0 hs1 D hD hq0 hq1 + let := hπ + let νm := π.map (fun γ => γ midpointTime) + have hνm : IsProbabilityMeasure νm := inferInstance + let := hνm + have he := optimalPlan_endpoints ν₀ ν₁ π hp + have hp' : IsOptimalCoupling (π.map (fun γ => γ 0)) (π.map (fun γ => γ 1)) + (π.map (fun γ => (γ 0,γ 1))) := by rwa [he.1,he.2] + have hfin := finite_second_moment_cost hm0 hm1 hp.1 hp.2.1 + have hD' : OptimalPlanDistanceBound (π.map (fun γ => γ 0)) (π.map (fun γ => γ 1)) D := by + rwa [he.1,he.2] + obtain ⟨hDl,hDr⟩ := OptimalPlanDistanceBound.midpoint_halves π hg hp' hfin hD' + rw [he.1] at hDl + rw [he.2] at hDr + let C' := compressionStep K n D C + have hC' : C' ≠ ∞ := compressionStep_ne_top K n D hC + have hincrease : C ≤ C' := le_compressionStep K n D C hn0 hD0 + have h0' : ν₀ ≤ C' • hausdorff n X := h0.trans (by intro S; exact mul_le_mul_left hincrease _) + have h1' : ν₁ ≤ C' • hausdorff n X := h1.trans (by intro S; exact mul_le_mul_left hincrease _) + have hm' : νm ≤ C' • hausdorff n X := hmidcap.trans (by + intro S + exact mul_le_mul_left (midpointCapacity_le_compressionStep K n D C hn0 hD0) _) + have hsM : ∀ᵐ x ∂νm, dist x p ≤ 3*R := by + apply (ae_map_iff (measurable_path_eval midpointTime).aemeasurable + (measurableSet_le (measurable_id.dist measurable_const) measurable_const)).mpr + exact (optimal_geodesic_plan_bounded ν₀ ν₁ π hg hp p hR hs0 hs1).mono (fun _ h => h.2 midpointTime) + have hs0' : ∀ᵐ x ∂ν₀, dist x p ≤ 3*R := hs0.mono (fun _ h => by linarith) + have hs1' : ∀ᵐ x ∂ν₁, dist x p ≤ 3*R := hs1.mono (fun _ h => by linarith) + obtain ⟨q₀,hq₀,hg₀,hp₀,hgrid₀,htree₀⟩ := ih ν₀ νm hν₀ hνm C' hC' h0' hm' + p (3*R) (by positivity) hs0' hsM (D/2) (by positivity) hDl + obtain ⟨q₁,hq₁,hg₁,hp₁,hgrid₁,htree₁⟩ := ih νm ν₁ hνm hν₁ C' hC' hm' h1' + p (3*R) (by positivity) hsM hs1' (D/2) (by positivity) hDr + let := hq₀ + let := hq₁ + have he₀ := optimalPlan_endpoints ν₀ νm q₀ hp₀ + have he₁ := optimalPlan_endpoints νm ν₁ q₁ hp₁ + obtain ⟨ρ,hρ,hρ₀,hρ₁⟩ := exists_matched_path_law q₀ q₁ (he₀.2.trans he₁.1.symm) + let := hρ + have hp₀' : IsOptimalCoupling (π.map (fun γ => γ 0)) νm + (q₀.map (fun γ => (γ 0,γ 1))) := by rwa [he.1] + have hp₁' : IsOptimalCoupling νm (π.map (fun γ => γ 1)) + (q₁.map (fun γ => (γ 0,γ 1))) := by rwa [he.2] + obtain ⟨hpj,hgj,_⟩ := midpoint_matched_law_optimal π hg hp' hfin + q₀ q₁ hg₀ hg₁ hp₀' hp₁' ρ hρ₀ hρ₁ + rw [he.1,he.2] at hpj + refine ⟨ρ.map joinMatched,inferInstance,hgj,hpj,?_,?_⟩ + · intro t ht + rcases ht with ⟨s,hs,rfl⟩ | ⟨s,hs,rfl⟩ + · rw [joined_law_eval_lowerTime ρ q₀ hρ₀] + simpa only [show compressionBudget K n (D/2) C' = compressionBudget K n D C from + compressionBudget_halve K n D C] using hgrid₀ s hs + · rw [joined_law_eval_upperTime ρ q₁ hρ₁] + simpa only [show compressionBudget K n (D/2) C' = compressionBudget K n D C from + compressionBudget_halve K n D C] using hgrid₁ s hs + · refine ⟨?_,?_,?_⟩ + · intro κ hκ hgκ hpκ + dsimp only [] at hpκ ⊢ + rw [joined_law_eval_zero ρ q₀ hρ₀,he₀.1,joined_law_eval_one ρ q₁ hρ₁,he₁.2] at hpκ + rw [joined_law_eval_midpoint ρ q₀ hρ₀,he₀.2] + exact hmax κ hκ hgκ hpκ + · exact htree₀.congr (fun t => (joined_law_eval_lowerTime ρ q₀ hρ₀ t).symm) + · exact htree₁.congr (fun t => (joined_law_eval_upperTime ρ q₁ hρ₁ t).symm) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/RenyiDyadicData.lean b/lean/OAI/Geometry/RCD/Transport/RenyiDyadicData.lean new file mode 100644 index 0000000000000000000000000000000000000000..9bfe9d521f1653ff05f2aea605a743486ff85e6d --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/RenyiDyadicData.lean @@ -0,0 +1,40 @@ +import OAI.Geometry.RCD.Transport.GlobalRenyiMidpoint + +namespace OAI + +/-! # Maximal Rényi midpoints on a finite dyadic tree + +These predicates record the actual variational choices of the construction. +The reference is always the original measure, independent of support balls. +-/ + +open Set Filter MeasureTheory +open scoped Topology ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] +attribute [local instance] pathBorel pathBorelSpace + +def RenyiMidpointMaximal (μ : Measure X) (q : ℝ) (ν₀ νm ν₁ : Measure X) : Prop := + ∀ κ : Measure C(Time,X), IsProbabilityMeasure κ → + (∀ᵐ γ ∂κ, IsGeodesic γ) → IsOptimalCoupling ν₀ ν₁ (κ.map (fun γ => (γ 0,γ 1))) → + (∫ x, ((κ.map (fun γ => γ midpointTime)).rnDeriv μ x).toReal^q ∂μ) ≤ + ∫ x, (νm.rnDeriv μ x).toReal^q ∂μ + +def RenyiDyadicMaximal (μ : Measure X) (q : ℝ) (ν : Time → Measure X) : ℕ → Prop + | 0 => True + | m+1 => RenyiMidpointMaximal μ q (ν 0) (ν midpointTime) (ν 1) ∧ + RenyiDyadicMaximal μ q (fun t => ν (lowerTime t)) m ∧ + RenyiDyadicMaximal μ q (fun t => ν (upperTime t)) m + +theorem RenyiDyadicMaximal.congr {μ : Measure X} {q : ℝ} {ν η : Time → Measure X} + {m : ℕ} (h : RenyiDyadicMaximal μ q ν m) (he : ∀ t, ν t=η t) : + RenyiDyadicMaximal μ q η m := by + have hf := funext he + rwa [←hf] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/RenyiEnergyIntegrability.lean b/lean/OAI/Geometry/RCD/Transport/RenyiEnergyIntegrability.lean new file mode 100644 index 0000000000000000000000000000000000000000..c7b297a5fed40085662753e59a6f94723af422db --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/RenyiEnergyIntegrability.lean @@ -0,0 +1,77 @@ +import OAI.Geometry.RCD.Transport.RenyiGlobalVariation + +namespace OAI + +/-! # Integrability of the finite-dimensional energy weight -/ + +open Set Filter MeasureTheory +open scoped Topology ENNReal NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MeasurableSpace X] (μ : Measure X) + +theorem integrable_positive_power_of_bounded {r : X → ℝ} (hr : Measurable r) + (hp : ∀ᵐ x ∂μ, 0 (r x)^a) μ := by + have ht : Integrable (fun x => r x*(r x)^(a-1)) μ := by + apply hi.mul_bdd (hr.pow_const (a-1)).aestronglyMeasurable + filter_upwards [hp,hb] with x hx hm + rw [Real.norm_eq_abs,abs_of_pos (Real.rpow_pos_of_pos hx _)] + exact Real.rpow_le_rpow hx.le hm (by linarith) + apply ht.congr + filter_upwards [hp] with x hx + calc + _ = (r x)^(1:ℝ)*(r x)^(a-1) := by rw [Real.rpow_one] + _ = _ := by rw [←Real.rpow_add hx]; congr 1; ring + +theorem memLp_density_power {r : X → ℝ} (hr : Measurable r) + (hp : ∀ᵐ x ∂μ, 0 (r x)^q) 2 μ := by + apply (memLp_two_iff_integrable_sq (hr.pow_const q).aestronglyMeasurable).mpr + have hh := integrable_positive_power_of_bounded μ hr hp hi hb (show 1≤q*2 by linarith) + apply hh.congr + filter_upwards [hp] with x hx + rw [Real.rpow_mul hx.le,Real.rpow_two] + +variable [MetricSpace X] [BorelSpace X] [ProperSpace X] (hQ : QuadraticCheegerEnergy μ) + +/-- The usual relative gradient estimate for a positive log-Lipschitz +density makes the Rényi energy pairing integrable at every N >= 2. -/ +theorem renyi_energy_integrable_of_relative_gradient (u ρ : SobolevSpace μ hQ) + (hp : ∀ᵐ x ∂μ, 0 (q-1)*(SobolevSpace.toLp μ hQ ρ x)^(q-1)* + localGamma μ hQ u ρ x) μ := by + let r := SobolevSpace.toLp μ hQ ρ + have hr := (Lp.stronglyMeasurable r).measurable + have hpow := memLp_density_power μ hr hp hi hb hq + have hprod := (hpow.integrable_mul (Lp.memLp (SobolevSpace.minimalSlope μ hQ u))).const_mul (|q-1| * L) + apply hprod.mono' + · apply Measurable.aestronglyMeasurable + apply Measurable.mul ((hr.pow_const (q-1)).const_mul (q-1)) + unfold localGamma + fun_prop + · filter_upwards [hp,hrel,localGamma_abs_le μ hQ u ρ, + (Lp.coeFn_nonneg _).mpr (SobolevSpace.minimalSlope_nonneg μ hQ u)] with x hx hρ hΓ hu + rw [Real.norm_eq_abs,abs_mul,abs_mul,abs_of_pos (Real.rpow_pos_of_pos hx _)] + calc + _ ≤ |q-1| * (r x)^(q-1)*(SobolevSpace.minimalSlope μ hQ u x* + (L*r x)) := mul_le_mul_of_nonneg_left + (hΓ.trans (mul_le_mul_of_nonneg_left hρ hu)) (by positivity) + _ = (|q-1| * L)*((r x)^q*SobolevSpace.minimalSlope μ hQ u x) := by + have he : (r x)^(q-1)*r x=(r x)^q := by + calc + _ = (r x)^(q-1)*(r x)^(1:ℝ) := by rw [Real.rpow_one] + _ = _ := by rw [←Real.rpow_add hx]; congr 1; ring + calc + _ = (|q-1| * L)*(((r x)^(q-1)*r x)*SobolevSpace.minimalSlope μ hQ u x) := by ring + _ = _ := by rw [he] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/RenyiFiniteAdditivity.lean b/lean/OAI/Geometry/RCD/Transport/RenyiFiniteAdditivity.lean new file mode 100644 index 0000000000000000000000000000000000000000..16067a423e34c3195607ab5d58964f460f9dd2b0 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/RenyiFiniteAdditivity.lean @@ -0,0 +1,50 @@ +import OAI.Geometry.RCD.Transport.RenyiDisjointAdditivity +import OAI.Geometry.RCD.Transport.OptimalLengthLaw + +namespace OAI + +/-! # Finite length decomposition of the Rényi integral -/ + +open Set Filter MeasureTheory +open scoped ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MeasurableSpace X] + +theorem mutuallySingular_finset_sum_right {ι : Type*} (ν : ι → Measure X) + (μ : Measure X) (s : Finset ι) (h : ∀ i∈s, μ ⟂ₘ ν i) : μ ⟂ₘ ∑ i∈s, ν i := by + classical + induction s using Finset.induction_on with + | empty => simp + | @insert a s ha ih => + rw [Finset.sum_insert ha] + exact (h a (Finset.mem_insert_self _ _)).add_right + (ih (fun i hi => h i (Finset.mem_insert_of_mem hi))) + +theorem renyiPower_finset_additive {ι : Type*} (μ : Measure X) [IsFiniteMeasure μ] + (ν : ι → Measure X) [∀ i, IsFiniteMeasure (ν i)] (s : Finset ι) + (hs : ∀ i∈s, ∀ j∈s, i≠j → ν i ⟂ₘ ν j) {q : ℝ} (hq0 : 0 < q) (hq1 : q < 1) : + (∫ x, ((∑ i∈s, ν i).rnDeriv μ x).toReal^q ∂μ) = + ∑ i∈s, ∫ x, ((ν i).rnDeriv μ x).toReal^q ∂μ := by + classical + induction s using Finset.induction_on with + | empty => + simp only [Finset.sum_empty] + calc + _ = ∫ _ : X, (0:ℝ) ∂μ := integral_congr_ae ((Measure.rnDeriv_zero μ).mono + (fun x hx => by simp [hx,Real.zero_rpow hq0.ne'])) + _ = 0 := integral_zero X ℝ + | @insert a s ha ih => + rw [Finset.sum_insert ha] + have hsep : ν a ⟂ₘ ∑ i∈s, ν i := mutuallySingular_finset_sum_right ν (ν a) s + (fun i hi => hs a (Finset.mem_insert_self _ _) i (Finset.mem_insert_of_mem hi) + (fun he => ha (he ▸ hi))) + rw [renyiPower_add_mutuallySingular μ (ν a) _ hsep hq0 hq1, + ih (fun i hi j hj hij => hs i (Finset.mem_insert_of_mem hi) j (Finset.mem_insert_of_mem hj) hij), + Finset.sum_insert ha] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/RenyiGlobalVariation.lean b/lean/OAI/Geometry/RCD/Transport/RenyiGlobalVariation.lean new file mode 100644 index 0000000000000000000000000000000000000000..98c2f7aba1eaa8c35d4b94c73677ddec6c34f213 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/RenyiGlobalVariation.lean @@ -0,0 +1,84 @@ +import OAI.Geometry.RCD.Transport.RenyiPathTails + +namespace OAI + +/-! # Noncompact Rényi first variation by integrable path truncation -/ + +open Set Filter MeasureTheory +open scoped Topology ENNReal NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) [μ.Regular] (hQ : QuadraticCheegerEnergy μ) +attribute [local instance] pathBorel pathBorelSpace + +/-- Ordinary integrability of the explicit path majorant and weighted +energy density suffices to remove all path truncations. No finite-volume +or global positive lower bound is imposed on the density. -/ +theorem renyi_core_signed_variation + (π : Measure C(Time,X)) [IsFiniteMeasure π] + (hgeo : ∀ᵐ γ ∂π, IsGeodesic γ) {C : ℝ≥0∞} (hC : C≠∞) + (hcomp : ∀ t : Time, π.map (fun γ => γ t)≤C • μ) + (hD : MemLp (fun γ : C(Time,X) => dist (γ 0) (γ 1)) 2 π) + (u ρ : SobolevSpace μ hQ) + (hp : ∀ᵐ x ∂μ, 0 Real.log (SobolevSpace.toLp μ hQ ρ x)) =ᵐ[μ] g) + (h0 : π.map (fun γ => γ 0)=μ.withDensity + (fun x => ENNReal.ofReal (SobolevSpace.toLp μ hQ ρ x))) + {φ ψ : X → ℝ} (hu : φ=ᵐ[μ] SobolevSpace.toLp μ hQ u) + (had : ∀ x y, φ x+ψ y≤dist x y^2/2) + (hc : ∀ᵐ γ ∂π, φ (γ 0)+ψ (γ 1)=dist (γ 0) (γ 1)^2/2) + (hb : ∀ᵐ γ ∂π, SobolevSpace.minimalSlope μ hQ u (γ 0)≤dist (γ 0) (γ 1)) + {q : ℝ} (hq0 : 0 + (q-1)*(SobolevSpace.toLp μ hQ ρ x)^(q-1)*localGamma μ hQ u ρ x) μ) : + Tendsto (planInitialSecant π (fun x => (SobolevSpace.toLp μ hQ ρ x)^(q-1))) + (𝓝[>] (0:ℝ)) (𝓝 (-(∫ x, + (q-1)*(SobolevSpace.toLp μ hQ ρ x)^(q-1)*localGamma μ hQ u ρ x ∂μ))) := by + let r := SobolevSpace.toLp μ hQ ρ + let F : X → ℝ := fun x => (q-1)*(r x)^(q-1)*localGamma μ hQ u ρ x + let π' := inverseInitialDensityPlan π r + let A : ℕ → Set C(Time,X) := fun n => {γ | |pathLogControl g γ|≤(n:ℝ)} + have hA (n : ℕ) : MeasurableSet (A n) := + measurableSet_le (pathLogControl_measurable hg.continuous.measurable).abs measurable_const + have hinit : π'.map (fun γ => γ 0)=μ := + inverseInitialDensityPlan_initial μ π (Lp.stronglyMeasurable r).measurable hp h0 + have hiF : Integrable F (π'.map (fun γ => γ 0)) := by rw [hinit]; exact hEnergy + have hip := hiF.comp_measurable (measurable_path_eval 0) + have hInt : (∫ γ,F (γ 0) ∂π')=∫ x,F x ∂μ := by + rw [←integral_map (measurable_path_eval 0).aemeasurable hiF.aestronglyMeasurable,hinit] + apply tendsto_of_uniform_secant_tails + (fₙ := fun n => planInitialSecant (π.restrict (A n)) (fun x => (r x)^(q-1))) + (cₙ := fun n => -(∫γ in A n,F (γ 0) ∂π')) + (eₙ := fun n => ∫γ in (A n)ᶜ,renyiPathMajorant L q g γ ∂π) + · have ht := tendsto_integral_log_levels π' (pathLogControl_measurable hg.continuous.measurable) hip + simp only [Function.comp_apply] at ht + rw [hInt] at ht + exact ht.neg + · exact tendsto_integral_compl_log_levels π (pathLogControl_measurable hg.continuous.measurable) hTail + · exact renyi_core_path_set_variation μ hQ π hgeo hC hcomp hD u ρ hp hg hlog h0 hu had hc hb hq0 hq1 + · intro n + have hsmall : ∀ᶠ t in 𝓝[>] (0:ℝ), t<1/8 := + (gt_mem_nhds (by norm_num : (0:ℝ)<1/8)).filter_mono nhdsWithin_le_nhds + filter_upwards [hsmall,self_mem_nhdsWithin] with t ht1 ht0 + let s : Time := ⟨t,ht0.le,by linarith⟩ + apply planInitialSecant_restrict_error_of_majorant π + ((Lp.stronglyMeasurable r).measurable.pow_const _) hTail (hA n) s ht0 + have he (a : Time) : ∀ᵐ γ ∂π, (r (γ a))^(q-1)=Real.exp ((q-1)*g (γ a)) := by + have hpos := ae_of_ae_map (measurable_path_eval a).aemeasurable + ((Measure.absolutelyContinuous_of_le_smul (hcomp a)).ae_le hp) + have hrep := ae_of_ae_map (measurable_path_eval a).aemeasurable + ((Measure.absolutelyContinuous_of_le_smul (hcomp a)).ae_eq hlog) + filter_upwards [hpos,hrep] with γ hp' hr + rw [Real.rpow_def_of_pos hp',hr,mul_comm] + filter_upwards [he s,he 0,hgeo] with γ hs hzero hγ + rw [hs,hzero] + exact renyi_exp_path_increment hg hq1.le hγ s ht1.le + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/RenyiHomogeneity.lean b/lean/OAI/Geometry/RCD/Transport/RenyiHomogeneity.lean new file mode 100644 index 0000000000000000000000000000000000000000..223912191c23385e33dd8228347f45f254cf1823 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/RenyiHomogeneity.lean @@ -0,0 +1,30 @@ +import OAI.Geometry.RCD.Transport.RenyiSubplanMaximality + +namespace OAI + +/-! # Scaling the Rényi functional for normalized transport components -/ + +open Set Filter MeasureTheory +open scoped ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MeasurableSpace X] + +theorem renyiPower_smul (μ ν : Measure X) [SigmaFinite μ] [IsFiniteMeasure ν] + {c : ℝ≥0∞} (hc : c≠∞) (q : ℝ) : + (∫ x, ((c • ν).rnDeriv μ x).toReal^q ∂μ)= + c.toReal^q*(∫ x, (ν.rnDeriv μ x).toReal^q ∂μ) := by + calc + _ = ∫ x, c.toReal^q*(ν.rnDeriv μ x).toReal^q ∂μ := by + apply integral_congr_ae + filter_upwards [Measure.rnDeriv_smul_left_of_ne_top ν μ hc] with x hx + rw [hx] + change (c*ν.rnDeriv μ x).toReal^q=_ + rw [ENNReal.toReal_mul,Real.mul_rpow ENNReal.toReal_nonneg ENNReal.toReal_nonneg] + _ = _ := integral_const_mul _ _ + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/RenyiIntegralAdditivity.lean b/lean/OAI/Geometry/RCD/Transport/RenyiIntegralAdditivity.lean new file mode 100644 index 0000000000000000000000000000000000000000..5a7da81acf57e75cf3017a14ae95d247f0558fb6 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/RenyiIntegralAdditivity.lean @@ -0,0 +1,73 @@ +import OAI.Geometry.RCD.Transport.RenyiFiniteAdditivity + +namespace OAI + +/-! # Exact extended Rényi additivity for finite length decompositions + +This version works against the full sigma-finite reference measure. No +localization or finiteness of the reference volume is required. +-/ + +open Set Filter MeasureTheory +open scoped ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MeasurableSpace X] + +theorem renyiIntegral_add_mutuallySingular (μ ν₀ ν₁ : Measure X) [SigmaFinite μ] + [IsFiniteMeasure ν₀] [IsFiniteMeasure ν₁] (hs : ν₀ ⟂ₘ ν₁) + {N : ℝ} (hN : 1 (ν₀+ν₁).rnDeriv μ x^(1-1/N)) =ᵐ[μ] + fun x => ν₀.rnDeriv μ x^(1-1/N)+ν₁.rnDeriv μ x^(1-1/N) := by + filter_upwards [Measure.rnDeriv_add ν₀ ν₁ μ,rnDeriv_disjoint_ae μ ν₀ ν₁ hs] with x hx hd + rw [hx] + rcases hd with hd | hd + · simp only [Pi.add_apply,hd,zero_add,ENNReal.zero_rpow_of_pos hq] + · simp only [Pi.add_apply,hd,add_zero,ENNReal.zero_rpow_of_pos hq] + exact (lintegral_congr_ae he).trans + (lintegral_add_left ((ν₀.measurable_rnDeriv μ).pow_const _ ) _) + +theorem renyiIntegral_finset_additive {ι : Type*} (μ : Measure X) [SigmaFinite μ] + (ν : ι → Measure X) [∀ i, IsFiniteMeasure (ν i)] (s : Finset ι) + (hs : ∀ i∈s, ∀ j∈s, i≠j → ν i ⟂ₘ ν j) {N : ℝ} (hN : 1 + simp only [Finset.sum_empty] + have hq : 0<1-1/N := sub_pos.mpr ((div_lt_one (by linarith : 0 by + rw [hx] + change (0:ℝ≥0∞)^(1-1/N)=0 + exact ENNReal.zero_rpow_of_pos hq)) + _ = 0 := lintegral_zero + | @insert a s ha ih => + rw [Finset.sum_insert ha] + have hsep : ν a ⟂ₘ ∑ i∈s, ν i := mutuallySingular_finset_sum_right ν (ν a) s + (fun i hi => hs a (Finset.mem_insert_self _ _) i (Finset.mem_insert_of_mem hi) + (fun he => ha (he ▸ hi))) + rw [renyiIntegral_add_mutuallySingular μ (ν a) _ hsep hN, + ih (fun i hi j hj hij => hs i (Finset.mem_insert_of_mem hi) j (Finset.mem_insert_of_mem hj) hij), + Finset.sum_insert ha] + +theorem renyiIntegral_smul (μ ν : Measure X) [SigmaFinite μ] [IsFiniteMeasure ν] + {c : ℝ≥0∞} (hc : c≠∞) {N : ℝ} (hN : 1 (c • ν).rnDeriv μ x^(1-1/N)) =ᵐ[μ] + fun x => c^(1-1/N)*ν.rnDeriv μ x^(1-1/N) := by + filter_upwards [Measure.rnDeriv_smul_left_of_ne_top ν μ hc] with x hx + rw [hx] + exact ENNReal.mul_rpow_of_nonneg c (ν.rnDeriv μ x) hq + exact (lintegral_congr_ae he).trans + (lintegral_const_mul _ ((ν.measurable_rnDeriv μ).pow_const _)) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/RenyiInverseDensity.lean b/lean/OAI/Geometry/RCD/Transport/RenyiInverseDensity.lean new file mode 100644 index 0000000000000000000000000000000000000000..e5d3bff8d9696d4ca3a12bc84f6011d874afe30a --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/RenyiInverseDensity.lean @@ -0,0 +1,29 @@ +import OAI.Geometry.RCD.Transport.RenyiLocalization + +namespace OAI + +/-! # The inverse-density expression for the Rényi integral -/ + +open Set Filter MeasureTheory +open scoped ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MeasurableSpace X] + +theorem renyiIntegral_eq_inverse_density (μ ν : Measure X) [SigmaFinite μ] + [IsFiniteMeasure ν] (hac : ν ≪ μ) {N : ℝ} (hN : 1 < N) : + renyiIntegral μ ν N = ∫⁻ x, (ν.rnDeriv μ x)^(-(1/N)) ∂ν := by + have hq : 0 < 1-1/N := sub_pos.mpr ((div_lt_one (by linarith : 0 (γ 0,γ 1)))) + {S : Set ℝ} (hS : MeasurableSet S) + (κ : Measure C(Time,X)) (hκeq : κ=π.restrict {γ | dist (γ 0) (γ 1)∈S}) + (hκ0 : κ univ≠0) {q : ℝ} (hq0 : 0 γ 0)) (π.map (fun γ => γ midpointTime)) + (π.map (subpath 0 midpointTime)) midpointTime q) : + RenyiMaximizingPlan μ ((κ univ)⁻¹ • κ.map (fun γ => γ 0)) + ((κ univ)⁻¹ • κ.map (fun γ => γ midpointTime)) + ((κ univ)⁻¹ • κ.map (subpath 0 midpointTime)) midpointTime q := by + let : SeparableSpace X := hX.separable + let : CompleteSpace X := hX.complete + let : Nonempty X := ⟨p⟩ + have hA : MeasurableSet {γ : C(Time,X) | dist (γ 0) (γ 1)∈S} := + hS.preimage ((measurable_path_eval 0).dist (measurable_path_eval 1)) + have hκ : κ≤π := by rw [hκeq]; exact Measure.restrict_le_self + let : IsFiniteMeasure κ := isFiniteMeasure_of_le π hκ + have he := optimalPlan_endpoints ν₀ ν₁ π hpπ + have hp : IsOptimalCoupling (π.map (fun γ => γ 0)) (π.map (fun γ => γ 1)) + (π.map (fun γ => (γ 0,γ 1))) := by rw [he.1,he.2]; exact hpπ + have hfin := finite_second_moment_cost (finiteSecondMoment_of_bounded ν₀ p hs0) + (finiteSecondMoment_of_bounded ν₁ p hs1) hpπ.1 hpπ.2.1 + let πL := π.map (subpath 0 midpointTime) + let κL := κ.map (subpath 0 midpointTime) + have hκL : κL≤πL := Measure.map_mono hκ (subpath_measurable 0 midpointTime) + have hcK : κL univ=κ univ := by + simp only [κL,Measure.map_apply (subpath_measurable 0 midpointTime) MeasurableSet.univ,preimage_univ] + obtain ⟨hπL,hgL,hpL⟩ := geodesic_subpath_law π hgπ hp hfin 0 midpointTime + let : IsProbabilityMeasure πL := hπL + have heK (s : Time) : κL.map (fun γ => γ s)=κ.map (fun γ => γ (lowerTime s)) := + subpath_map_eval κ 0 midpointTime s + have hresid : (πL-κL).map (fun γ => γ midpointTime)= + (π-κ).map (fun γ => γ (lowerTime midpointTime)) := by + change (π.map (subpath 0 midpointTime)-κ.map (subpath 0 midpointTime)).map _=_ + rw [←subpath_map_sub π κ hκ 0 midpointTime] + exact subpath_map_eval (π-κ) 0 midpointTime midpointTime + have hu0 : 0<(lowerTime midpointTime:ℝ) := by norm_num [coe_lowerTime,midpointTime] + have hu1 : (lowerTime midpointTime:ℝ)<1 := by norm_num [coe_lowerTime,midpointTime] + have hκS : ∀ᵐ γ ∂κ, dist (γ 0) (γ 1)∈S := by rw [hκeq]; exact ae_restrict_mem hA + have hresS : ∀ᵐ γ ∂π-κ, dist (γ 0) (γ 1)∉S := by + apply ae_iff.mpr + simp only [not_not] + rw [Measure.sub_apply hA hκ,hκeq,Measure.restrict_apply hA,inter_self,tsub_self] + have hsκ : (πL-κL).map (fun γ => γ midpointTime) ⟂ₘ κL.map (fun γ => γ midpointTime) := by + rw [hresid,heK] + exact (hX.optimal_components_mutuallySingular K n hn ν₀ ν₁ hac p hR hs0 hs1 + π π hgπ hgπ hpπ hpπ κ (π-κ) hκ Measure.sub_le hu0 hu1 hS hκS hresS).symm + intro σ hσ hgσ hpσ + let := hσ + obtain ⟨τ,hτ,hgτ,hpτ,hl,hr⟩ := exists_optimal_left_subplan_splice π hgπ hp hfin κ hκ hκ0 σ hgσ hpσ + have hmid : κ.map (fun γ => γ midpointTime)=τ.map (fun γ => γ midpointTime) := by + simpa only [upperTime,timeSegment_zero] using (hr 0).symm + have hsep := hX.length_replacement_separated K n hn ν₀ ν₁ hac p hR hs0 hs1 π hgπ hpπ + hS κ τ hκeq hpτ hgτ (by norm_num [midpointTime]) (by norm_num [midpointTime]) hmid hu0 hu1 + rw [←hresid,hl] at hsep + have hsσ : (πL-κL).map (fun γ => γ midpointTime) ⟂ₘ σ.map (fun γ => γ midpointTime) := + hsep.mono_ac Measure.AbsolutelyContinuous.rfl (Measure.absolutelyContinuous_smul hκ0) + have hpσL : IsOptimalCoupling ((κL univ)⁻¹ • κL.map (fun γ => γ 0)) + ((κL univ)⁻¹ • κL.map (fun γ => γ 1)) (σ.map (fun γ => (γ 0,γ 1))) := by + simpa only [hcK,heK,lowerTime,timeSegment_zero,timeSegment_one] using hpσ + have hh := hmax.normalized_subplan_comparison μ hq0 hq1 hgL hpL hκL + (hcK ▸ hκ0) hpσL hgσ hsκ hsσ + simpa only [hcK,Measure.map_smul _ (measurable_path_eval midpointTime).aemeasurable] using hh + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/RenyiLocalVariation.lean b/lean/OAI/Geometry/RCD/Transport/RenyiLocalVariation.lean new file mode 100644 index 0000000000000000000000000000000000000000..a839a9c0da2a16d586c66bd05e8a86c8153f729e --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/RenyiLocalVariation.lean @@ -0,0 +1,132 @@ +import OAI.Geometry.RCD.Transport.RenyiSmoothDual + +namespace OAI + +/-! # Localized power first variation with its actual energy density -/ + +open Set Filter MeasureTheory +open scoped Topology ENNReal NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) [μ.Regular] (hQ : QuadraticCheegerEnergy μ) +attribute [local instance] pathBorel pathBorelSpace + +theorem path_renyi_smooth_variation (π : Measure C(Time,X)) [IsFiniteMeasure π] + (hgeo : ∀ᵐ γ ∂π, IsGeodesic γ) {C : ℝ≥0∞} (hC : C≠∞) + (hcomp : ∀ t : Time, π.map (fun γ => γ t)≤C • μ) + (hD : MemLp (fun γ : C(Time,X) => dist (γ 0) (γ 1)) 2 π) + {D : ℝ} (hDb : ∀ᵐ γ ∂π, dist (γ 0) (γ 1)≤D) + (u ρ : SobolevSpace μ hQ) {ε M q : ℝ} + (hε : 0<ε) (hq0 : 0 (SobolevSpace.toLp μ hQ ρ x)^(q-1))) + (𝓝[>] (0:ℝ)) (𝓝 (-weightedGradientPair μ hQ + ((inverseInitialDensityPlan π (SobolevSpace.toLp μ hQ ρ)).map (fun γ => γ 0)) + u (ρ.renyiSmooth μ hQ hε hq1.le))) := by + apply path_renyi_signed_variation μ hQ π hgeo hC hcomp hD hDb u ρ + (ρ.renyiSmooth μ hQ hε hq1.le) hε hq0 hq1 hbound + (renyiDualPower q ε-renyiSmoothDual ε q ε) _ hu had hc hb + intro t + have hrep := SobolevSpace.comp_coe μ hQ (renyiSmoothDual_lipschitz hε hq1.le) + (renyiSmoothDual_zero ε q) ρ + have hr := ae_of_ae_map (measurable_path_eval t).aemeasurable + ((Measure.absolutelyContinuous_of_le_smul (hcomp t)).ae_eq hrep) + filter_upwards [hr,hbound t] with γ he hγ + change SobolevSpace.toLp μ hQ (SobolevSpace.comp μ hQ _ _ ρ) (γ t)=_ at he ⊢ + rw [he] + exact renyiSmoothDual_formula hε hq0.ne' hγ.1 + +/-- The finite-dimensional power variation on a bounded path family is +the integral of the genuine carré-du-champ, with the exact density power. +Only the restricted family is bounded; the reference volume may be infinite. -/ +theorem renyi_core_path_set_variation + (π : Measure C(Time,X)) [IsFiniteMeasure π] + (hgeo : ∀ᵐ γ ∂π, IsGeodesic γ) {C : ℝ≥0∞} (hC : C≠∞) + (hcomp : ∀ t : Time, π.map (fun γ => γ t)≤C • μ) + (hD : MemLp (fun γ : C(Time,X) => dist (γ 0) (γ 1)) 2 π) + (u ρ : SobolevSpace μ hQ) + (hp : ∀ᵐ x ∂μ, 0 Real.log (SobolevSpace.toLp μ hQ ρ x)) =ᵐ[μ] g) + (h0 : π.map (fun γ => γ 0)=μ.withDensity + (fun x => ENNReal.ofReal (SobolevSpace.toLp μ hQ ρ x))) + {φ ψ : X → ℝ} (hu : φ=ᵐ[μ] SobolevSpace.toLp μ hQ u) + (had : ∀ x y, φ x+ψ y≤dist x y^2/2) + (hc : ∀ᵐ γ ∂π, φ (γ 0)+ψ (γ 1)=dist (γ 0) (γ 1)^2/2) + (hb : ∀ᵐ γ ∂π, SobolevSpace.minimalSlope μ hQ u (γ 0)≤dist (γ 0) (γ 1)) + {q : ℝ} (hq0 : 0 (SobolevSpace.toLp μ hQ ρ x)^(q-1))) (𝓝[>] (0:ℝ)) + (𝓝 (-(∫ γ in {γ | |pathLogControl g γ|≤(n:ℝ)}, + (q-1)*(SobolevSpace.toLp μ hQ ρ (γ 0))^(q-1)*localGamma μ hQ u ρ (γ 0) + ∂inverseInitialDensityPlan π (SobolevSpace.toLp μ hQ ρ)))) := by + let A : Set C(Time,X) := {γ | |pathLogControl g γ|≤(n:ℝ)} + let σ := π.restrict A + let r := SobolevSpace.toLp μ hQ ρ + let B : ℝ := (n:ℝ)+(L:ℝ)*(n:ℝ) + let ε : ℝ := Real.exp (-B) + have hε : 0<ε := Real.exp_pos _ + have hA : MeasurableSet A := + measurableSet_le (pathLogControl_measurable hg.continuous.measurable).abs measurable_const + have hm : ∀ᵐ γ ∂σ, |g (γ 0)|≤(n:ℝ) ∧ dist (γ 0) (γ 1)≤(n:ℝ) := + (ae_restrict_mem hA).mono fun _ hn => pathLogControl_bound hn + have hσ (s : Time) : σ.map (fun γ => γ s)≤C • μ := restrict_plan_compression μ π hcomp A s + have hrep (s : Time) : ∀ᵐ γ ∂σ, Real.log (r (γ s))=g (γ s) := + ae_of_ae_map (measurable_path_eval s).aemeasurable + ((Measure.absolutelyContinuous_of_le_smul (hσ s)).ae_eq hlog) + have hpos (s : Time) : ∀ᵐ γ ∂σ, 0 hh.2) + u ρ hε hq0 hq1 hbound hu had (ae_restrict_of_ae hc) (ae_restrict_of_ae hb) + have hinit := inverseInitialDensityPlan_initial μ π (Lp.stronglyMeasurable r).measurable hp h0 + have hν : (inverseInitialDensityPlan σ r).map (fun γ => γ 0)≤(1:ℝ≥0∞) • μ := by + rw [inverseInitialDensityPlan_restrict π r hA,one_smul] + exact (Measure.map_mono Measure.restrict_le_self (measurable_path_eval 0)).trans_eq hinit + rw [weightedGradientPair_eq_bracket μ hQ (C := 1) (by norm_num) hν, + ←integral_localGamma μ hQ (C := 1) (by norm_num) hν] at hd + have hΓ : Measurable (localGamma μ hQ u (ρ.renyiSmooth μ hQ hε hq1.le)) := by + unfold localGamma + fun_prop + rw [integral_map (measurable_path_eval 0).aemeasurable hΓ.aestronglyMeasurable] at hd + have heq : (∫ γ, localGamma μ hQ u (ρ.renyiSmooth μ hQ hε hq1.le) (γ 0) + ∂inverseInitialDensityPlan σ r)= + ∫ γ, (q-1)*r (γ 0)^(q-1)*localGamma μ hQ u ρ (γ 0) + ∂inverseInitialDensityPlan σ r := by + apply integral_congr_ae + have hrΓ := ae_of_ae_map (measurable_path_eval 0).aemeasurable + ((Measure.absolutelyContinuous_of_le_smul hν).ae_eq + (localGamma_renyiSmooth μ hQ u ρ hε hq1.le)) + filter_upwards [hrΓ,(inverseInitialDensityPlan_ac σ r).ae_le (hbound 0)] with γ hγ hr + change localGamma μ hQ u (ρ.renyiSmooth μ hQ hε hq1.le) (γ 0)= + renyiSmoothSlope ε q (r (γ 0))*localGamma μ hQ u ρ (γ 0) at hγ + simpa only [renyiSmoothSlope,max_eq_left hr.1] using hγ + rw [heq,inverseInitialDensityPlan_restrict π r hA] at hd + exact hd + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/RenyiLocalization.lean b/lean/OAI/Geometry/RCD/Transport/RenyiLocalization.lean new file mode 100644 index 0000000000000000000000000000000000000000..1b4db9e735b12dcad6c809b023755a0c6ceb908c --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/RenyiLocalization.lean @@ -0,0 +1,59 @@ +import OAI.Geometry.RCD.Transport.RenyiMidpointCompression + +namespace OAI + +/-! # Localization of finite Rényi integrals + +The reference measure is restricted only for compactness arguments. The +resulting values agree with the original Hausdorff-reference integrals, +including for supported measures which have a singular part. +-/ + +open Set Filter MeasureTheory +open scoped ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MeasurableSpace X] + +theorem renyiPower_localized (μ ν : Measure X) [SigmaFinite μ] [IsFiniteMeasure ν] + {B : Set X} (hB : MeasurableSet B) [IsFiniteMeasure (μ.restrict B)] + (hs : ∀ᵐ x ∂ν, x∈B) {q : ℝ} (hq0 : 0 < q) (hq1 : q ≤ 1) : + Integrable (fun x => (ν.rnDeriv μ x).toReal^q) μ ∧ + (∫ x, (ν.rnDeriv μ x).toReal^q ∂μ) = + ∫ x, (ν.rnDeriv (μ.restrict B) x).toReal^q ∂μ.restrict B := by + have he := density_transform_eq_indicator μ ν hB hs (fun r => r^q) + (Real.zero_rpow hq0.ne') + have hr : (fun x => (ν.rnDeriv μ x).toReal^q) =ᵐ[μ.restrict B] + fun x => (ν.rnDeriv (μ.restrict B) x).toReal^q := by + filter_upwards [rnDeriv_restrict_reference μ ν hB] with x hx + rw [hx] + have hil := integrable_density_power (μ.restrict B) _ + (ν.measurable_rnDeriv (μ.restrict B)).ennreal_toReal Measure.integrable_toReal_rnDeriv + (Eventually.of_forall fun _ => ENNReal.toReal_nonneg) hq0.le hq1 + have hir : Integrable (fun x => (ν.rnDeriv μ x).toReal^q) (μ.restrict B) := hil.congr hr.symm + refine ⟨((integrable_indicator_iff hB).mpr hir).congr he.symm,?_⟩ + calc + _ = ∫ x, B.indicator (fun x => (ν.rnDeriv μ x).toReal^q) x ∂μ := integral_congr_ae he + _ = ∫ x, (ν.rnDeriv μ x).toReal^q ∂μ.restrict B := integral_indicator hB + _ = _ := integral_congr_ae hr + +theorem renyiIntegral_localized (μ ν : Measure X) [SigmaFinite μ] [IsFiniteMeasure ν] + {B : Set X} (hB : MeasurableSet B) [IsFiniteMeasure (μ.restrict B)] + (hs : ∀ᵐ x ∂ν, x∈B) {N : ℝ} (hN : 1 < N) : + renyiIntegral μ ν N = renyiIntegral (μ.restrict B) ν N := by + have hN0 : 0 < N := by linarith + have hq0 : 0 < 1-1/N := sub_pos.mpr ((div_lt_one hN0).mpr hN) + have hq1 : 1-1/N ≤ 1 := by have := one_div_pos.mpr hN0; linarith + obtain ⟨hi,he⟩ := renyiPower_localized μ ν hB hs hq0 hq1 + have hil := integrable_density_power (μ.restrict B) _ + (ν.measurable_rnDeriv (μ.restrict B)).ennreal_toReal Measure.integrable_toReal_rnDeriv + (Eventually.of_forall fun _ => ENNReal.toReal_nonneg) hq0.le hq1 + exact (rnDeriv_power_lintegral_eq_of_integrable μ ν hq0.le hi).trans + ((congrArg ENNReal.ofReal he).trans + (rnDeriv_power_lintegral_eq_of_integrable (μ.restrict B) ν hq0.le hil).symm) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/RenyiMeasureReplacement.lean b/lean/OAI/Geometry/RCD/Transport/RenyiMeasureReplacement.lean new file mode 100644 index 0000000000000000000000000000000000000000..202594d1e69ec299bd5ba40cc5968734c2e5f4be --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/RenyiMeasureReplacement.lean @@ -0,0 +1,87 @@ +import OAI.Geometry.RCD.Transport.RenyiPerturbationIntegral +import OAI.Geometry.RCD.Transport.RenyiSemicontinuity + +namespace OAI + +/-! # Strict Rényi improvement for a measure replacement + +This converts the scalar replacement estimate to the actual measure +obtained by replacing a portion of a transport plan. +-/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped Topology ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MeasurableSpace X] + +theorem exists_measure_renyi_increase (μ ν η : Measure X) + [IsFiniteMeasure μ] [IsFiniteMeasure ν] [IsFiniteMeasure η] + (hac : ν ≪ μ) {q C : ℝ} (hq0 : 0 < q) (hq1 : q < 1) (hC : 0 < C) + (hη : η ≤ ENNReal.ofReal C • μ) + (hmass : η univ = ν {x | C < (ν.rnDeriv μ x).toReal}) + (hbad : ¬ν ≤ ENNReal.ofReal C • μ) : + ∃ a : ℝ, 0 < a ∧ a < 1 ∧ + (∫ x, (ν.rnDeriv μ x).toReal^q ∂μ) < + ∫ x, ((ν-ENNReal.ofReal a • ν.restrict {x | C < (ν.rnDeriv μ x).toReal}+ + ENNReal.ofReal a • η).rnDeriv μ x).toReal^q ∂μ := by + classical + let ρ := fun x => (ν.rnDeriv μ x).toReal + let h := fun x => min C (η.rnDeriv μ x).toReal + have hρ : Measurable ρ := (ν.measurable_rnDeriv μ).ennreal_toReal + have hh : Measurable h := measurable_const.min (η.measurable_rnDeriv μ).ennreal_toReal + have hρ0 : ∀ x, 0 ≤ ρ x := fun _ => ENNReal.toReal_nonneg + have hh0 : ∀ x, 0 ≤ h x := fun _ => le_min hC.le ENNReal.toReal_nonneg + have hhC : ∀ x, h x ≤ C := fun _ => min_le_left _ _ + have hηac : η ≪ μ := hη.absolutelyContinuous.trans Measure.smul_absolutelyContinuous + have hh_eq : h =ᵐ[μ] fun x => (η.rnDeriv μ x).toReal := by + filter_upwards [rnDeriv_le_const_of_le_smul μ η hη,Measure.rnDeriv_lt_top η μ] with x hx hxt + apply min_eq_right + exact (ENNReal.toReal_le_toReal hxt.ne ENNReal.ofReal_ne_top).mpr hx |>.trans_eq + (ENNReal.toReal_ofReal hC.le) + have hνeq : μ.withDensity (fun x => ENNReal.ofReal (ρ x)) = ν := + withDensity_ofReal_rnDeriv μ ν hac + have hηeq : μ.withDensity (fun x => ENNReal.ofReal (h x)) = η := by + calc + _ = μ.withDensity (fun x => ENNReal.ofReal (η.rnDeriv μ x).toReal) := + withDensity_congr_ae (hh_eq.fun_comp ENNReal.ofReal) + _ = η := withDensity_ofReal_rnDeriv μ η hηac + have hD : ∃ D : ℝ, C < D ∧ μ {x | D ≤ ρ x} ≠ 0 := by + by_contra hn + push Not at hn + have hae : ∀ᵐ x ∂μ, ρ x ≤ C := (ae_le_const_iff_forall_gt_measure_zero ρ C).mpr hn + apply hbad + rw [←hνeq,←withDensity_const] + exact withDensity_mono (hae.mono fun x hx => ENNReal.ofReal_le_ofReal hx) + obtain ⟨D,hDC,hDp⟩ := hD + have hMi : (∫ x, h x ∂μ) = ∫ x in {x | C < ρ x}, ρ x ∂μ := by + rw [integral_congr_ae hh_eq,Measure.integral_toReal_rnDeriv hηac, + Measure.setIntegral_toReal_rnDeriv hac] + exact congrArg ENNReal.toReal hmass + obtain ⟨a,ha0,ha1,_,hp⟩ := exists_renyi_increasing_perturbation μ hρ hh hρ0 hh0 + Measure.integrable_toReal_rnDeriv hq0 hq1 hC hDC hhC hDp hMi + refine ⟨a,ha0,ha1,?_⟩ + let p := fun x => entropyPerturb C a (ρ x) (h x) + have hpM : Measurable p := by + change Measurable ({x | C < ρ x}.piecewise (fun x => (1-a)*ρ x+a*h x) + (fun x => ρ x+a*h x)) + exact ((hρ.const_mul _).add (hh.const_mul _)).piecewise + (measurableSet_lt measurable_const hρ) (hρ.add (hh.const_mul _)) + have hp0 : ∀ x, 0 ≤ p x := fun x => + entropyPerturb_nonneg ha0.le ha1.le (hρ0 x) (hh0 x) + have hpEq : μ.withDensity (fun x => ENNReal.ofReal (p x)) = + ν-ENNReal.ofReal a • ν.restrict {x | C < ρ x}+ENNReal.ofReal a • η := by + rw [entropyPerturb_withDensity μ hρ hh hρ0 hh0 Measure.integrable_toReal_rnDeriv + C ha0.le ha1.le,hνeq,hηeq] + have heq : (fun x => ((ν-ENNReal.ofReal a • ν.restrict {x | C < ρ x}+ + ENNReal.ofReal a • η).rnDeriv μ x).toReal) =ᵐ[μ] p := by + rw [←hpEq] + filter_upwards [Measure.rnDeriv_withDensity μ hpM.ennreal_ofReal] with x hx + rw [hx,ENNReal.toReal_ofReal (hp0 x)] + exact hp.trans_eq (integral_congr_ae (heq.fun_comp fun r => r^q)).symm + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/RenyiMidpointAbsoluteContinuity.lean b/lean/OAI/Geometry/RCD/Transport/RenyiMidpointAbsoluteContinuity.lean new file mode 100644 index 0000000000000000000000000000000000000000..052bd3bad571dee559a6d38c56917b9ee7107ed1 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/RenyiMidpointAbsoluteContinuity.lean @@ -0,0 +1,78 @@ +import OAI.Geometry.RCD.Transport.RenyiOptimalMidpoint +import OAI.Geometry.RCD.Transport.RenyiSingularReplacement + +namespace OAI + +/-! # A Rényi-maximizing midpoint has no singular part -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped Topology ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +def RenyiMaximizingPlan (μ ν₀ ν₁ : Measure X) (π : Measure C(Time,X)) (t : Time) (q : ℝ) : Prop := + ∀ κ : Measure C(Time,X), IsProbabilityMeasure κ → + (∀ᵐ γ ∂κ, IsGeodesic γ) → IsOptimalCoupling ν₀ ν₁ (κ.map (fun γ => (γ 0,γ 1))) → + (∫ x, ((κ.map (fun γ => γ t)).rnDeriv μ x).toReal^q ∂μ) ≤ + ∫ x, ((π.map (fun γ => γ t)).rnDeriv μ x).toReal^q ∂μ + +theorem NoncollapsedRCD.renyi_midpoint_absolutelyContinuous + (K : ℝ) (n : ℕ) (hn : 2 ≤ n) (hX : NoncollapsedRCD K n X) + (ν₀ ν₁ : Measure X) [IsProbabilityMeasure ν₀] [IsProbabilityMeasure ν₁] + {C₀ : ℝ≥0∞} (hC₀ : C₀ ≠ ∞) + (h0 : ν₀ ≤ C₀ • hausdorff n X) (h1 : ν₁ ≤ C₀ • hausdorff n X) + (hm0 : FiniteSecondMoment ν₀) (hm1 : FiniteSecondMoment ν₁) + (p : X) {R : ℝ} (hR : 0 ≤ R) + (hs0 : ∀ᵐ x ∂ν₀, dist x p ≤ R) (hs1 : ∀ᵐ x ∂ν₁, dist x p ≤ R) + (π : Measure C(Time,X)) [IsProbabilityMeasure π] + (hg : ∀ᵐ γ ∂π, IsGeodesic γ) + (hp : IsOptimalCoupling ν₀ ν₁ (π.map (fun γ => (γ 0,γ 1)))) + {q : ℝ} (hq0 : 0 < q) (hq1 : q < 1) + (hmax : RenyiMaximizingPlan ((hausdorff n X).restrict (closedBall p (3*R))) + ν₀ ν₁ π midpointTime q) : + π.map (fun γ => γ midpointTime) ≪ (hausdorff n X).restrict (closedBall p (3*R)) := by + let : SeparableSpace X := hX.separable + let μ := (hausdorff n X).restrict (closedBall p (3*R)) + let : IsFiniteMeasure μ := ⟨by + simpa [μ] using hX.finiteOnBounded (closedBall p (3*R)) isBounded_closedBall⟩ + let ν := π.map (fun γ => γ midpointTime) + change ν ≪ μ + by_contra hnot + have hξ : ν.singularPart μ ≠ 0 := fun hz => hnot ((Measure.singularPart_eq_zero ν μ).mp hz) + obtain ⟨S,hS,hμS,hξSc⟩ := (Measure.mutuallySingular_singularPart ν μ).symm + have hrestrict : ν.singularPart μ = ν.restrict S := Measure.singularPart_eq_restrict hξSc hμS + have hνS : ν S ≠ 0 := by + intro hz + apply hξ + rw [hrestrict] + exact Measure.restrict_eq_zero.mpr hz + obtain ⟨σ,hσ,hgσ,hpσ,hmσ,hcapσ⟩ := hX.compressed_replacement_subplan K n hn + ν₀ ν₁ hC₀ h0 h1 hm0 hm1 p hR hs0 hs1 π hg hp S hS hνS + let := hσ + let η := σ.map (fun γ => γ midpointTime) + have hη : η ≪ μ := Measure.absolutelyContinuous_of_le_smul hcapσ + have hηpos : 0 < η univ := by + rw [show η univ=ν S from hmσ] + exact pos_iff_ne_zero.mpr hνS + have hstrict := renyi_singular_replacement_strict μ ν η hη hηpos hq0 hq1 + let κ := π.restrict ((fun γ => γ midpointTime) ⁻¹' S) + have hκ : κ ≤ π := Measure.restrict_le_self + obtain ⟨hprob,hgeo,hopt⟩ := optimalPlan_replace_subplan hp hg hκ hpσ hgσ + have hle := hmax (π-κ+σ) hprob hgeo hopt + have hκmid : κ.map (fun γ => γ midpointTime) = ν.restrict S := + (Measure.restrict_map (measurable_path_eval midpointTime) hS).symm + have hnew : (π-κ+σ).map (fun γ => γ midpointTime) = ν-ν.singularPart μ+η := by + rw [Measure.map_add _ _ (measurable_path_eval midpointTime), + map_sub_of_le π κ hκ _ (measurable_path_eval midpointTime),hκmid,hrestrict] + change (∫ x, (((π-κ+σ).map (fun γ => γ midpointTime)).rnDeriv μ x).toReal^q ∂μ) ≤ + ∫ x, (ν.rnDeriv μ x).toReal^q ∂μ at hle + rw [hnew] at hle + exact (not_lt_of_ge hle) hstrict + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/RenyiMidpointCompression.lean b/lean/OAI/Geometry/RCD/Transport/RenyiMidpointCompression.lean new file mode 100644 index 0000000000000000000000000000000000000000..5c9becc7a6f8e8b52b37433c3cc4ee41082bcdf2 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/RenyiMidpointCompression.lean @@ -0,0 +1,115 @@ +import OAI.Geometry.RCD.Transport.RenyiMidpointAbsoluteContinuity +import OAI.Geometry.RCD.Transport.RenyiMeasureReplacement + +namespace OAI + +/-! # Bounded density of the actual Rényi-maximizing midpoint + +The sharp midpoint capacity controls every Rényi maximizer. +The proof first removes singular mass and then uses strict improvement +under a bounded replacement of a density superlevel set. +-/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped Topology ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem NoncollapsedRCD.renyi_midpoint_compressed + (K : ℝ) (n : ℕ) (hn : 2 ≤ n) (hX : NoncollapsedRCD K n X) + (ν₀ ν₁ : Measure X) [IsProbabilityMeasure ν₀] [IsProbabilityMeasure ν₁] + {C₀ : ℝ≥0∞} (hC₀ : C₀ ≠ ∞) + (h0 : ν₀ ≤ C₀ • hausdorff n X) (h1 : ν₁ ≤ C₀ • hausdorff n X) + (hm0 : FiniteSecondMoment ν₀) (hm1 : FiniteSecondMoment ν₁) + (p : X) {R : ℝ} (hR : 0 ≤ R) + (hs0 : ∀ᵐ x ∂ν₀, dist x p ≤ R) (hs1 : ∀ᵐ x ∂ν₁, dist x p ≤ R) + (π : Measure C(Time,X)) [IsProbabilityMeasure π] + (hg : ∀ᵐ γ ∂π, IsGeodesic γ) + (hp : IsOptimalCoupling ν₀ ν₁ (π.map (fun γ => (γ 0,γ 1)))) + {q : ℝ} (hq0 : 0 < q) (hq1 : q < 1) + (hmax : RenyiMaximizingPlan ((hausdorff n X).restrict (closedBall p (3*R))) + ν₀ ν₁ π midpointTime q) : + π.map (fun γ => γ midpointTime) ≤ midpointCapacity K n (2*R) C₀ • hausdorff n X := by + let : SeparableSpace X := hX.separable + let μ := (hausdorff n X).restrict (closedBall p (3*R)) + let : IsFiniteMeasure μ := ⟨by + simpa [μ] using hX.finiteOnBounded (closedBall p (3*R)) isBounded_closedBall⟩ + let ν := π.map (fun γ => γ midpointTime) + let C := midpointCapacity K n (2*R) C₀ + have hCtop : C ≠ ∞ := midpointCapacity_ne_top K n (2*R) hC₀ + have hC0 : C ≠ 0 := (midpointCapacity_pos K n (2*R) (probability_capacity_ne_zero _ _ h0)).ne' + have hCreal : 0 < C.toReal := ENNReal.toReal_pos hC0 hCtop + have hCe : ENNReal.ofReal C.toReal = C := ENNReal.ofReal_toReal hCtop + have hac : ν ≪ μ := hX.renyi_midpoint_absolutelyContinuous K n hn ν₀ ν₁ hC₀ h0 h1 + hm0 hm1 p hR hs0 hs1 π hg hp hq0 hq1 hmax + have hsupport : ∀ᵐ x ∂ν, x ∈ closedBall p (3*R) := by + apply (ae_map_iff (measurable_path_eval midpointTime).aemeasurable measurableSet_closedBall).mpr + exact (optimal_geodesic_plan_bounded _ _ π hg hp p hR hs0 hs1).mono + (fun γ hγ => hγ.2 midpointTime) + by_contra hbad + have hbad' : ¬ν ≤ ENNReal.ofReal C.toReal • μ := by + rw [hCe] + exact fun h => hbad ((compression_iff_localized _ _ hsupport C).mpr h) + let B := {x | C.toReal < (ν.rnDeriv μ x).toReal} + have hB : MeasurableSet B := measurableSet_lt measurable_const (ν.measurable_rnDeriv μ).ennreal_toReal + have hm : ν B ≠ 0 := superlevel_mass_ne_zero_of_not_compressed μ ν hac hCreal hbad' + obtain ⟨σ,hσ,hgσ,hpσ,hmσ,hcapσ⟩ := hX.compressed_replacement_subplan K n hn + ν₀ ν₁ hC₀ h0 h1 hm0 hm1 p hR hs0 hs1 π hg hp B hB hm + let := hσ + let η := σ.map (fun γ => γ midpointTime) + obtain ⟨a,ha0,ha1,hgain⟩ := exists_measure_renyi_increase μ ν η hac hq0 hq1 hCreal + (by simpa only [hCe] using hcapσ) hmσ hbad' + let κ := π.restrict ((fun γ => γ midpointTime) ⁻¹' B) + have hκ : κ ≤ π := Measure.restrict_le_self + have haE : ENNReal.ofReal a ≤ 1 := by simpa using ENNReal.ofReal_le_ofReal ha1.le + have hsub : ENNReal.ofReal a • κ ≤ π := by + calc + _ ≤ (1:ℝ≥0∞) • κ := fun S => by + simpa only [Measure.smul_apply,smul_eq_mul] using mul_le_mul_left haE (κ S) + _ = κ := one_smul _ _ + _ ≤ π := hκ + have hs : IsOptimalCoupling ((ENNReal.ofReal a • κ).map (fun γ => γ 0)) + ((ENNReal.ofReal a • κ).map (fun γ => γ 1)) + ((ENNReal.ofReal a • σ).map (fun γ => (γ 0,γ 1))) := by + simpa only [Measure.map_smul _ (measurable_path_eval 0).aemeasurable, + Measure.map_smul _ (measurable_path_eval 1).aemeasurable, + Measure.map_smul _ ((measurable_path_eval 0).prodMk (measurable_path_eval 1)).aemeasurable] + using hpσ.smul (ENNReal.ofReal_pos.mpr ha0).ne' ENNReal.ofReal_ne_top + have hgs : ∀ᵐ γ ∂(ENNReal.ofReal a • σ), IsGeodesic γ := + hgσ.filter_mono Measure.smul_absolutelyContinuous.ae_le + obtain ⟨hprob,hgeo,hopt⟩ := optimalPlan_replace_subplan hp hg hsub hs hgs + have hle := hmax _ hprob hgeo hopt + have hκmid : κ.map (fun γ => γ midpointTime) = ν.restrict B := + (Measure.restrict_map (measurable_path_eval midpointTime) hB).symm + rw [Measure.map_add _ _ (measurable_path_eval midpointTime), + map_sub_of_le π (ENNReal.ofReal a • κ) hsub _ (measurable_path_eval midpointTime), + Measure.map_smul _ (measurable_path_eval midpointTime).aemeasurable, + Measure.map_smul _ (measurable_path_eval midpointTime).aemeasurable,hκmid] at hle + exact (not_lt_of_ge hle) hgain + +theorem NoncollapsedRCD.exists_compressed_renyi_maximizing_midpoint + (K : ℝ) (n : ℕ) (hn : 2 ≤ n) (hX : NoncollapsedRCD K n X) + (ν₀ ν₁ : Measure X) [IsProbabilityMeasure ν₀] [IsProbabilityMeasure ν₁] + {C₀ : ℝ≥0∞} (hC₀ : C₀ ≠ ∞) + (h0 : ν₀ ≤ C₀ • hausdorff n X) (h1 : ν₁ ≤ C₀ • hausdorff n X) + (hm0 : FiniteSecondMoment ν₀) (hm1 : FiniteSecondMoment ν₁) + (p : X) {R : ℝ} (hR : 0 ≤ R) + (hs0 : ∀ᵐ x ∂ν₀, dist x p ≤ R) (hs1 : ∀ᵐ x ∂ν₁, dist x p ≤ R) + {q : ℝ} (hq0 : 0 < q) (hq1 : q < 1) : + ∃ π : Measure C(Time,X), IsProbabilityMeasure π ∧ + (∀ᵐ γ ∂π, IsGeodesic γ) ∧ IsOptimalCoupling ν₀ ν₁ (π.map (fun γ => (γ 0,γ 1))) ∧ + π.map (fun γ => γ midpointTime) ≤ midpointCapacity K n (2*R) C₀ • hausdorff n X ∧ + RenyiMaximizingPlan ((hausdorff n X).restrict (closedBall p (3*R))) ν₀ ν₁ π midpointTime q := by + obtain ⟨π,hπ,hg,hp,hmax⟩ := hX.exists_renyi_maximizing_midpoint K n hn ν₀ ν₁ hC₀ + h0 h1 hm0 hm1 p hR hs0 hs1 hq0 hq1 + let := hπ + exact ⟨π,hπ,hg,hp,hX.renyi_midpoint_compressed K n hn ν₀ ν₁ hC₀ h0 h1 hm0 hm1 + p hR hs0 hs1 π hg hp hq0 hq1 hmax,hmax⟩ + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/RenyiMidpointInequality.lean b/lean/OAI/Geometry/RCD/Transport/RenyiMidpointInequality.lean new file mode 100644 index 0000000000000000000000000000000000000000..ee69a7527efafee6424a80a9a28c99b927406a23 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/RenyiMidpointInequality.lean @@ -0,0 +1,91 @@ +import OAI.Geometry.RCD.Transport.RenyiLocalization + +namespace OAI + +/-! # A compressed midpoint with the original finite-CD lower value + +The entropy-maximizing midpoint dominates the original CD midpoint. The +distortion integral still uses that original CD witness; no equality of +the two endpoint couplings is asserted. +-/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped Topology ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +omit [BorelSpace X] in +theorem RenyiMaximizingPlan.renyiIntegral_le (μ : Measure X) [SigmaFinite μ] + {B : Set X} (hB : MeasurableSet B) [IsFiniteMeasure (μ.restrict B)] + {ν₀ ν₁ : Measure X} {π κ : Measure C(Time,X)} + [IsProbabilityMeasure π] [IsProbabilityMeasure κ] {t : Time} {N : ℝ} (hN : 1 < N) + (hmax : RenyiMaximizingPlan (μ.restrict B) ν₀ ν₁ π t (1-1/N)) + (hgκ : ∀ᵐ γ ∂κ, IsGeodesic γ) + (hpκ : IsOptimalCoupling ν₀ ν₁ (κ.map (fun γ => (γ 0,γ 1)))) + (hsπ : ∀ᵐ x ∂π.map (fun γ => γ t), x∈B) + (hsκ : ∀ᵐ x ∂κ.map (fun γ => γ t), x∈B) : + renyiIntegral μ (κ.map (fun γ => γ t)) N ≤ renyiIntegral μ (π.map (fun γ => γ t)) N := by + have hN0 : 0 < N := by linarith + have hq0 : 0 < 1-1/N := sub_pos.mpr ((div_lt_one hN0).mpr hN) + have hq1 : 1-1/N ≤ 1 := by have := one_div_pos.mpr hN0; linarith + have hi (η : Measure X) [IsProbabilityMeasure η] : + Integrable (fun x => (η.rnDeriv (μ.restrict B) x).toReal^(1-1/N)) (μ.restrict B) := + integrable_density_power (μ.restrict B) _ (η.measurable_rnDeriv (μ.restrict B)).ennreal_toReal + Measure.integrable_toReal_rnDeriv (Eventually.of_forall fun _ => ENNReal.toReal_nonneg) hq0.le hq1 + rw [renyiIntegral_localized μ _ hB hsκ hN,renyiIntegral_localized μ _ hB hsπ hN] + exact (rnDeriv_power_lintegral_eq_of_integrable (μ.restrict B) _ hq0.le (hi _)).trans_le + ((ENNReal.ofReal_le_ofReal (hmax κ inferInstance hgκ hpκ)).trans_eq + (rnDeriv_power_lintegral_eq_of_integrable (μ.restrict B) _ hq0.le (hi _)).symm) + +theorem NoncollapsedRCD.exists_compressed_finite_renyi_midpoint + (K : ℝ) (n : ℕ) (hn : 2 ≤ n) (hX : NoncollapsedRCD K n X) + (ν₀ ν₁ : Measure X) [IsProbabilityMeasure ν₀] [IsProbabilityMeasure ν₁] + {C : ℝ≥0∞} (hC : C ≠ ∞) + (h0 : ν₀ ≤ C • hausdorff n X) (h1 : ν₁ ≤ C • hausdorff n X) + (hm0 : FiniteSecondMoment ν₀) (hm1 : FiniteSecondMoment ν₁) + (p : X) {R : ℝ} (hR : 0 ≤ R) + (hs0 : ∀ᵐ x ∂ν₀, dist x p ≤ R) (hs1 : ∀ᵐ x ∂ν₁, dist x p ≤ R) + {N : ℝ} (hN : (n:ℝ) ≤ N) : + ∃ π : Measure C(Time,X), IsProbabilityMeasure π ∧ + (∀ᵐ γ ∂π, IsGeodesic γ) ∧ IsOptimalCoupling ν₀ ν₁ (π.map (fun γ => (γ 0,γ 1))) ∧ + π.map (fun γ => γ midpointTime) ≤ midpointCapacity K n (2*R) C • hausdorff n X ∧ + ∃ τ : Measure C(Time,X), IsProbabilityMeasure τ ∧ + (∀ᵐ γ ∂τ, IsGeodesic γ) ∧ IsOptimalCoupling ν₀ ν₁ (τ.map (fun γ => (γ 0,γ 1))) ∧ + (∫⁻ γ, tau K N (1/2) (dist (γ 0) (γ 1))*(ν₀.rnDeriv (hausdorff n X) (γ 0))^(-(1/N))+ + tau K N (1/2) (dist (γ 0) (γ 1))*(ν₁.rnDeriv (hausdorff n X) (γ 1))^(-(1/N)) ∂τ) ≤ + renyiIntegral (hausdorff n X) (π.map (fun γ => γ midpointTime)) N := by + let : SeparableSpace X := hX.separable + have hnR : (2:ℝ) ≤ n := by exact_mod_cast hn + have hN1 : 1 < N := by linarith + have hq0 : 0 < 1-1/N := sub_pos.mpr ((div_lt_one (by linarith : 0 < N)).mpr hN1) + have hq1 : 1-1/N < 1 := by have := one_div_pos.mpr (by linarith : 0 < N); linarith + obtain ⟨π,hπ,hgπ,hpπ,hcap,hmax⟩ := hX.exists_compressed_renyi_maximizing_midpoint K n hn + ν₀ ν₁ hC h0 h1 hm0 hm1 p hR hs0 hs1 hq0 hq1 + let := hπ + obtain ⟨τ,hτ,hgτ,hpτ,hcd⟩ := hX.cd ν₀ ν₁ inferInstance inferInstance + (Measure.absolutelyContinuous_of_le_smul h0) (Measure.absolutelyContinuous_of_le_smul h1) hm0 hm1 + let := hτ + let μ := hausdorff n X + let : IsLocallyFiniteMeasure μ := locallyFinite_of_finiteOnBounded μ hX.finiteOnBounded + let B := closedBall p (3*R) + let : IsFiniteMeasure (μ.restrict B) := ⟨by + simpa [μ,B] using hX.finiteOnBounded B isBounded_closedBall⟩ + have hsupport (σ : Measure C(Time,X)) (hgσ : ∀ᵐ γ ∂σ, IsGeodesic γ) + (hpσ : IsOptimalCoupling ν₀ ν₁ (σ.map (fun γ => (γ 0,γ 1)))) : + ∀ᵐ x ∂σ.map (fun γ => γ midpointTime), x∈B := by + apply (ae_map_iff (measurable_path_eval midpointTime).aemeasurable measurableSet_closedBall).mpr + exact (optimal_geodesic_plan_bounded ν₀ ν₁ σ hgσ hpσ p hR hs0 hs1).mono + (fun γ hγ => hγ.2 midpointTime) + refine ⟨π,hπ,hgπ,hpπ,hcap,τ,hτ,hgτ,hpτ,?_⟩ + have hl := hmax.renyiIntegral_le μ measurableSet_closedBall hN1 hgτ hpτ + (hsupport π hgπ hpπ) (hsupport τ hgτ hpτ) + have hc := (hcd N hN midpointTime).trans hl + convert hc using 1; norm_num [midpointTime] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/RenyiMidpointShort.lean b/lean/OAI/Geometry/RCD/Transport/RenyiMidpointShort.lean new file mode 100644 index 0000000000000000000000000000000000000000..918d64cd3e047c7ea6f7bbb720bd79c3076ff6f0 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/RenyiMidpointShort.lean @@ -0,0 +1,116 @@ +import OAI.Geometry.RCD.Transport.RenyiMidpointCompression + +namespace OAI + +/-! # Distance-sensitive compression of the actual Rényi midpoint + +The capacity uses the bound on all optimal transport distances, rather +than the containing support ball. It therefore scales under subdivision +and yields a uniform compression budget for the dyadic construction. +-/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped Topology ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem NoncollapsedRCD.renyi_midpoint_compressed_short + (K : ℝ) (n : ℕ) (hn : 2 ≤ n) (hX : NoncollapsedRCD K n X) + (ν₀ ν₁ : Measure X) [IsProbabilityMeasure ν₀] [IsProbabilityMeasure ν₁] + {C₀ : ℝ≥0∞} (hC₀ : C₀ ≠ ∞) + (h0 : ν₀ ≤ C₀ • hausdorff n X) (h1 : ν₁ ≤ C₀ • hausdorff n X) + (hm0 : FiniteSecondMoment ν₀) (hm1 : FiniteSecondMoment ν₁) + (p : X) {R : ℝ} (hR : 0 ≤ R) + (hs0 : ∀ᵐ x ∂ν₀, dist x p ≤ R) (hs1 : ∀ᵐ x ∂ν₁, dist x p ≤ R) + (D : ℝ) (hD : OptimalPlanDistanceBound ν₀ ν₁ D) + (π : Measure C(Time,X)) [IsProbabilityMeasure π] + (hg : ∀ᵐ γ ∂π, IsGeodesic γ) + (hp : IsOptimalCoupling ν₀ ν₁ (π.map (fun γ => (γ 0,γ 1)))) + {q : ℝ} (hq0 : 0 < q) (hq1 : q < 1) + (hmax : RenyiMaximizingPlan ((hausdorff n X).restrict (closedBall p (3*R))) + ν₀ ν₁ π midpointTime q) : + π.map (fun γ => γ midpointTime) ≤ midpointCapacity K n D C₀ • hausdorff n X := by + let : SeparableSpace X := hX.separable + let μ := (hausdorff n X).restrict (closedBall p (3*R)) + let : IsFiniteMeasure μ := ⟨by + simpa [μ] using hX.finiteOnBounded (closedBall p (3*R)) isBounded_closedBall⟩ + let ν := π.map (fun γ => γ midpointTime) + let C := midpointCapacity K n D C₀ + have hCtop : C ≠ ∞ := midpointCapacity_ne_top K n D hC₀ + have hC0 : C ≠ 0 := (midpointCapacity_pos K n D (probability_capacity_ne_zero _ _ h0)).ne' + have hCreal : 0 < C.toReal := ENNReal.toReal_pos hC0 hCtop + have hCe : ENNReal.ofReal C.toReal = C := ENNReal.ofReal_toReal hCtop + have hac : ν ≪ μ := hX.renyi_midpoint_absolutelyContinuous K n hn ν₀ ν₁ hC₀ h0 h1 + hm0 hm1 p hR hs0 hs1 π hg hp hq0 hq1 hmax + have hsupport : ∀ᵐ x ∂ν, x ∈ closedBall p (3*R) := by + apply (ae_map_iff (measurable_path_eval midpointTime).aemeasurable measurableSet_closedBall).mpr + exact (optimal_geodesic_plan_bounded _ _ π hg hp p hR hs0 hs1).mono + (fun γ hγ => hγ.2 midpointTime) + by_contra hbad + have hbad' : ¬ν ≤ ENNReal.ofReal C.toReal • μ := by + rw [hCe] + exact fun h => hbad ((compression_iff_localized _ _ hsupport C).mpr h) + let B := {x | C.toReal < (ν.rnDeriv μ x).toReal} + have hB : MeasurableSet B := measurableSet_lt measurable_const (ν.measurable_rnDeriv μ).ennreal_toReal + have hm : ν B ≠ 0 := superlevel_mass_ne_zero_of_not_compressed μ ν hac hCreal hbad' + obtain ⟨σ,hσ,hgσ,hpσ,hmσ,hcapσ⟩ := hX.compressed_replacement_subplan_short K n hn + ν₀ ν₁ hC₀ h0 h1 hm0 hm1 p hR hs0 hs1 D hD π hg hp B hB hm + let := hσ + let η := σ.map (fun γ => γ midpointTime) + obtain ⟨a,ha0,ha1,hgain⟩ := exists_measure_renyi_increase μ ν η hac hq0 hq1 hCreal + (by simpa only [hCe] using hcapσ) hmσ hbad' + let κ := π.restrict ((fun γ => γ midpointTime) ⁻¹' B) + have hκ : κ ≤ π := Measure.restrict_le_self + have haE : ENNReal.ofReal a ≤ 1 := by simpa using ENNReal.ofReal_le_ofReal ha1.le + have hsub : ENNReal.ofReal a • κ ≤ π := by + calc + _ ≤ (1:ℝ≥0∞) • κ := fun S => by + simpa only [Measure.smul_apply,smul_eq_mul] using mul_le_mul_left haE (κ S) + _ = κ := one_smul _ _ + _ ≤ π := hκ + have hs : IsOptimalCoupling ((ENNReal.ofReal a • κ).map (fun γ => γ 0)) + ((ENNReal.ofReal a • κ).map (fun γ => γ 1)) + ((ENNReal.ofReal a • σ).map (fun γ => (γ 0,γ 1))) := by + simpa only [Measure.map_smul _ (measurable_path_eval 0).aemeasurable, + Measure.map_smul _ (measurable_path_eval 1).aemeasurable, + Measure.map_smul _ ((measurable_path_eval 0).prodMk (measurable_path_eval 1)).aemeasurable] + using hpσ.smul (ENNReal.ofReal_pos.mpr ha0).ne' ENNReal.ofReal_ne_top + have hgs : ∀ᵐ γ ∂(ENNReal.ofReal a • σ), IsGeodesic γ := + hgσ.filter_mono Measure.smul_absolutelyContinuous.ae_le + obtain ⟨hprob,hgeo,hopt⟩ := optimalPlan_replace_subplan hp hg hsub hs hgs + have hle := hmax _ hprob hgeo hopt + have hκmid : κ.map (fun γ => γ midpointTime) = ν.restrict B := + (Measure.restrict_map (measurable_path_eval midpointTime) hB).symm + rw [Measure.map_add _ _ (measurable_path_eval midpointTime), + map_sub_of_le π (ENNReal.ofReal a • κ) hsub _ (measurable_path_eval midpointTime), + Measure.map_smul _ (measurable_path_eval midpointTime).aemeasurable, + Measure.map_smul _ (measurable_path_eval midpointTime).aemeasurable,hκmid] at hle + exact (not_lt_of_ge hle) hgain + +theorem NoncollapsedRCD.exists_compressed_renyi_maximizing_midpoint_short + (K : ℝ) (n : ℕ) (hn : 2 ≤ n) (hX : NoncollapsedRCD K n X) + (ν₀ ν₁ : Measure X) [IsProbabilityMeasure ν₀] [IsProbabilityMeasure ν₁] + {C₀ : ℝ≥0∞} (hC₀ : C₀ ≠ ∞) + (h0 : ν₀ ≤ C₀ • hausdorff n X) (h1 : ν₁ ≤ C₀ • hausdorff n X) + (hm0 : FiniteSecondMoment ν₀) (hm1 : FiniteSecondMoment ν₁) + (p : X) {R : ℝ} (hR : 0 ≤ R) + (hs0 : ∀ᵐ x ∂ν₀, dist x p ≤ R) (hs1 : ∀ᵐ x ∂ν₁, dist x p ≤ R) + (D : ℝ) (hD : OptimalPlanDistanceBound ν₀ ν₁ D) + {q : ℝ} (hq0 : 0 < q) (hq1 : q < 1) : + ∃ π : Measure C(Time,X), IsProbabilityMeasure π ∧ + (∀ᵐ γ ∂π, IsGeodesic γ) ∧ IsOptimalCoupling ν₀ ν₁ (π.map (fun γ => (γ 0,γ 1))) ∧ + π.map (fun γ => γ midpointTime) ≤ midpointCapacity K n D C₀ • hausdorff n X ∧ + RenyiMaximizingPlan ((hausdorff n X).restrict (closedBall p (3*R))) ν₀ ν₁ π midpointTime q := by + obtain ⟨π,hπ,hg,hp,hmax⟩ := hX.exists_renyi_maximizing_midpoint K n hn ν₀ ν₁ hC₀ + h0 h1 hm0 hm1 p hR hs0 hs1 hq0 hq1 + let := hπ + exact ⟨π,hπ,hg,hp,hX.renyi_midpoint_compressed_short K n hn ν₀ ν₁ hC₀ h0 h1 hm0 hm1 + p hR hs0 hs1 D hD π hg hp hq0 hq1 hmax,hmax⟩ + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/RenyiNodeChildren.lean b/lean/OAI/Geometry/RCD/Transport/RenyiNodeChildren.lean new file mode 100644 index 0000000000000000000000000000000000000000..8569f059b841f3898f6e39bd07a3d9a043d399ab --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/RenyiNodeChildren.lean @@ -0,0 +1,96 @@ +import OAI.Geometry.RCD.Transport.RenyiTransportNode + +namespace OAI + +/-! # The two children of a fixed maximal transport midpoint -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped Topology ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [SeparableSpace X] [CompleteSpace X] +attribute [local instance] pathBorel pathBorelSpace + +noncomputable def RenyiNodeSplit.children {n : ℕ} {K q : ℝ} + {a : RenyiTransportNode n X} (s : RenyiNodeSplit K q a) : + RenyiTransportNode n X × RenyiTransportNode n X := by + let : Nonempty X := ⟨a.center⟩ + let := a.left_probability + let := a.right_probability + let := s.probability + let νm := s.plan.map (fun γ => γ midpointTime) + have hνm : IsProbabilityMeasure νm := inferInstance + have he := optimalPlan_endpoints a.left a.right s.plan s.optimal + have hp : IsOptimalCoupling (s.plan.map (fun γ => γ 0)) (s.plan.map (fun γ => γ 1)) + (s.plan.map (fun γ => (γ 0,γ 1))) := by + rw [he.1,he.2] + exact s.optimal + have hm0 := finiteSecondMoment_of_bounded a.left a.center a.left_support + have hm1 := finiteSecondMoment_of_bounded a.right a.center a.right_support + have hfin := finite_second_moment_cost hm0 hm1 s.optimal.1 s.optimal.2.1 + have hD : OptimalPlanDistanceBound (s.plan.map (fun γ => γ 0)) (s.plan.map (fun γ => γ 1)) + a.distance := by + rw [he.1,he.2] + exact a.distance_bound + have hdists := OptimalPlanDistanceBound.midpoint_halves s.plan s.geodesic hp hfin hD + have hDl := hdists.1 + have hDr := hdists.2 + rw [he.1] at hDl + rw [he.2] at hDr + let C := compressionStep K n a.distance a.capacity + have hC : C ≠ ∞ := compressionStep_ne_top K n a.distance a.capacity_finite + have hinc : a.capacity ≤ C := le_compressionStep K n a.distance a.capacity + (Nat.cast_nonneg n) a.distance_nonneg + have h0 : a.left ≤ C • hausdorff n X := a.left_bound.trans (by + intro S + exact mul_le_mul_left hinc _) + have h1 : a.right ≤ C • hausdorff n X := a.right_bound.trans (by + intro S + exact mul_le_mul_left hinc _) + have hm : νm ≤ C • hausdorff n X := s.compressed.trans (by + intro S + exact mul_le_mul_left (midpointCapacity_le_compressionStep K n a.distance a.capacity + (Nat.cast_nonneg n) a.distance_nonneg) _) + have hsm : ∀ᵐ x ∂νm, dist x a.center ≤ 3*a.radius := by + apply (ae_map_iff (measurable_path_eval midpointTime).aemeasurable + (measurableSet_le (measurable_id.dist measurable_const) measurable_const)).mpr + exact (optimal_geodesic_plan_bounded a.left a.right s.plan s.geodesic s.optimal + a.center a.radius_nonneg a.left_support a.right_support).mono (fun _ h => h.2 midpointTime) + have hs0 : ∀ᵐ x ∂a.left, dist x a.center ≤ 3*a.radius := a.left_support.mono + (fun _ h => by linarith [a.radius_nonneg]) + have hs1 : ∀ᵐ x ∂a.right, dist x a.center ≤ 3*a.radius := a.right_support.mono + (fun _ h => by linarith [a.radius_nonneg]) + exact (⟨a.left,νm,a.left_probability,hνm,a.center,3*a.radius,mul_nonneg (by norm_num) a.radius_nonneg,hs0,hsm, + C,hC,h0,hm,a.distance/2,div_nonneg a.distance_nonneg (by norm_num),hDl⟩, + ⟨νm,a.right,hνm,a.right_probability,a.center,3*a.radius,mul_nonneg (by norm_num) a.radius_nonneg,hsm,hs1, + C,hC,hm,h1,a.distance/2,div_nonneg a.distance_nonneg (by norm_num),hDr⟩) + +noncomputable def RenyiNodeSplit.leftNode {n : ℕ} {K q : ℝ} + {a : RenyiTransportNode n X} (s : RenyiNodeSplit K q a) : RenyiTransportNode n X := s.children.1 + +noncomputable def RenyiNodeSplit.rightNode {n : ℕ} {K q : ℝ} + {a : RenyiTransportNode n X} (s : RenyiNodeSplit K q a) : RenyiTransportNode n X := s.children.2 + +@[simp] theorem RenyiNodeSplit.leftNode_left {n : ℕ} {K q : ℝ} {a : RenyiTransportNode n X} + (s : RenyiNodeSplit K q a) : s.leftNode.left=a.left := rfl +@[simp] theorem RenyiNodeSplit.leftNode_right {n : ℕ} {K q : ℝ} {a : RenyiTransportNode n X} + (s : RenyiNodeSplit K q a) : s.leftNode.right=s.plan.map (fun γ => γ midpointTime) := rfl +@[simp] theorem RenyiNodeSplit.rightNode_left {n : ℕ} {K q : ℝ} {a : RenyiTransportNode n X} + (s : RenyiNodeSplit K q a) : s.rightNode.left=s.plan.map (fun γ => γ midpointTime) := rfl +@[simp] theorem RenyiNodeSplit.rightNode_right {n : ℕ} {K q : ℝ} {a : RenyiTransportNode n X} + (s : RenyiNodeSplit K q a) : s.rightNode.right=a.right := rfl +@[simp] theorem RenyiNodeSplit.leftNode_capacity {n : ℕ} {K q : ℝ} {a : RenyiTransportNode n X} + (s : RenyiNodeSplit K q a) : s.leftNode.capacity=compressionStep K n a.distance a.capacity := rfl +@[simp] theorem RenyiNodeSplit.rightNode_capacity {n : ℕ} {K q : ℝ} {a : RenyiTransportNode n X} + (s : RenyiNodeSplit K q a) : s.rightNode.capacity=compressionStep K n a.distance a.capacity := rfl +@[simp] theorem RenyiNodeSplit.leftNode_distance {n : ℕ} {K q : ℝ} {a : RenyiTransportNode n X} + (s : RenyiNodeSplit K q a) : s.leftNode.distance=a.distance/2 := rfl +@[simp] theorem RenyiNodeSplit.rightNode_distance {n : ℕ} {K q : ℝ} {a : RenyiTransportNode n X} + (s : RenyiNodeSplit K q a) : s.rightNode.distance=a.distance/2 := rfl + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/RenyiOptimalMidpoint.lean b/lean/OAI/Geometry/RCD/Transport/RenyiOptimalMidpoint.lean new file mode 100644 index 0000000000000000000000000000000000000000..c2f2d42224552fbc475d41a2312931456cfa3135 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/RenyiOptimalMidpoint.lean @@ -0,0 +1,77 @@ +import OAI.Geometry.RCD.Transport.RenyiSemicontinuity + +namespace OAI + +/-! # Rényi-maximizing optimal midpoints + +Compactness of actual optimal geodesic plans and the full-measure dual +formula give maximizers without assuming a density for the maximizer. +-/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped Topology ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem exists_optimal_geodesic_plan_maximizing_renyi [ProperSpace X] [SeparableSpace X] + (μ : Measure X) [IsFiniteMeasure μ] + (ν₀ ν₁ : ProbabilityMeasure X) (p : X) {R : ℝ} (hR : 0 ≤ R) + (h0 : ∀ᵐ x ∂(ν₀ : Measure X), dist x p ≤ R) + (h1 : ∀ᵐ x ∂(ν₁ : Measure X), dist x p ≤ R) + (hne : (OptimalGeodesicPlans ν₀ ν₁).Nonempty) + (t : Time) {q : ℝ} (hq0 : 0 < q) (hq1 : q < 1) : + ∃ π ∈ OptimalGeodesicPlans ν₀ ν₁, ∀ κ ∈ OptimalGeodesicPlans ν₀ ν₁, + (∫ x, (((κ : Measure C(Time,X)).map (fun γ => γ t)).rnDeriv μ x).toReal^q ∂μ) ≤ + ∫ x, (((π : Measure C(Time,X)).map (fun γ => γ t)).rnDeriv μ x).toReal^q ∂μ := by + have hc := isCompact_optimal_geodesic_plans ν₀ ν₁ p hR h0 h1 + have hmap : Continuous (fun π : ProbabilityMeasure C(Time,X) => π.map (fun γ => γ t)) := + ProbabilityMeasure.continuous_map (continuous_eval_const t) + have hu := (upperSemicontinuous_renyiPower μ hq0 hq1).comp hmap + obtain ⟨π,hπ,hm⟩ := (hu.upperSemicontinuousOn (OptimalGeodesicPlans ν₀ ν₁)).exists_isMaxOn hne hc + refine ⟨π,hπ,fun κ hκ => ?_⟩ + exact (ENNReal.ofReal_le_ofReal_iff (integral_nonneg fun _ => + Real.rpow_nonneg ENNReal.toReal_nonneg q)).mp (hm hκ) + +theorem NoncollapsedRCD.exists_renyi_maximizing_midpoint + (K : ℝ) (n : ℕ) (hn : 2 ≤ n) (hX : NoncollapsedRCD K n X) + (ν₀ ν₁ : Measure X) [IsProbabilityMeasure ν₀] [IsProbabilityMeasure ν₁] + {C₀ : ℝ≥0∞} (hC₀ : C₀ ≠ ∞) + (h0 : ν₀ ≤ C₀ • hausdorff n X) (h1 : ν₁ ≤ C₀ • hausdorff n X) + (hm0 : FiniteSecondMoment ν₀) (hm1 : FiniteSecondMoment ν₁) + (p : X) {R : ℝ} (hR : 0 ≤ R) + (hs0 : ∀ᵐ x ∂ν₀, dist x p ≤ R) (hs1 : ∀ᵐ x ∂ν₁, dist x p ≤ R) + {q : ℝ} (hq0 : 0 < q) (hq1 : q < 1) : + ∃ π : Measure C(Time,X), IsProbabilityMeasure π ∧ + (∀ᵐ γ ∂π, IsGeodesic γ) ∧ + IsOptimalCoupling ν₀ ν₁ (π.map (fun γ => (γ 0,γ 1))) ∧ + ∀ κ : Measure C(Time,X), IsProbabilityMeasure κ → + (∀ᵐ γ ∂κ, IsGeodesic γ) → + IsOptimalCoupling ν₀ ν₁ (κ.map (fun γ => (γ 0,γ 1))) → + (∫ x, ((κ.map (fun γ => γ midpointTime)).rnDeriv + ((hausdorff n X).restrict (closedBall p (3*R))) x).toReal^q + ∂((hausdorff n X).restrict (closedBall p (3*R)))) ≤ + ∫ x, ((π.map (fun γ => γ midpointTime)).rnDeriv + ((hausdorff n X).restrict (closedBall p (3*R))) x).toReal^q + ∂((hausdorff n X).restrict (closedBall p (3*R))) := by + let : ProperSpace X := hX.proper K n hn + let : SeparableSpace X := hX.separable + let μ := (hausdorff n X).restrict (closedBall p (3*R)) + let : IsFiniteMeasure μ := ⟨by + simpa [μ] using hX.finiteOnBounded (closedBall p (3*R)) isBounded_closedBall⟩ + obtain ⟨κ,hκ,hgκ,hpκ,_⟩ := hX.exists_compressed_midpoint K n hn ν₀ ν₁ + hC₀ h0 h1 hm0 hm1 p hR hs0 hs1 + let := hκ + let v0 : ProbabilityMeasure X := ⟨ν₀,inferInstance⟩ + let v1 : ProbabilityMeasure X := ⟨ν₁,inferInstance⟩ + obtain ⟨π,hπ,hmax⟩ := exists_optimal_geodesic_plan_maximizing_renyi μ v0 v1 p + hR hs0 hs1 ⟨⟨κ,hκ⟩,hgκ,hpκ⟩ midpointTime hq0 hq1 + exact ⟨π,inferInstance,hπ.1,hπ.2,fun κ' hκ' hgκ' hpκ' => + hmax ⟨κ',hκ'⟩ ⟨hgκ',hpκ'⟩⟩ + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/RenyiPathPrimitive.lean b/lean/OAI/Geometry/RCD/Transport/RenyiPathPrimitive.lean new file mode 100644 index 0000000000000000000000000000000000000000..7f384645ab778a781d2f7918e7455a268d011444 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/RenyiPathPrimitive.lean @@ -0,0 +1,109 @@ +import OAI.Geometry.RCD.Transport.RenyiPathVariation +import OAI.Geometry.RCD.Transport.RenyiSobolev + +namespace OAI + +/-! # Finite Rényi first variations on a localized path family -/ + +open Set Filter MeasureTheory +open scoped Topology ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + (μ : Measure X) +attribute [local instance] pathBorel pathBorelSpace + +theorem renyi_path_integrable_of_bounds (π : Measure C(Time,X)) [IsFiniteMeasure π] + (ρ : Lp ℝ 2 μ) {ε M q : ℝ} (hε : 0<ε) (hq0 : 0 renyiDualPower q (ρ (γ t))) π ∧ + Integrable (fun γ : C(Time,X) => (ρ (γ t))^(q-1)) π := by + have hm := (Lp.stronglyMeasurable ρ).measurable.comp (measurable_path_eval t) + constructor + · apply Integrable.of_bound ((hm.pow_const q).const_mul _).aestronglyMeasurable + (|(q-1)/q| * M^q) + filter_upwards [hb t] with γ hγ + change ‖(q-1)/q*(ρ (γ t))^q‖ ≤ _ + rw [Real.norm_eq_abs,abs_mul, + abs_of_nonneg (Real.rpow_nonneg (hε.le.trans hγ.1) _)] + exact mul_le_mul_of_nonneg_left + (Real.rpow_le_rpow (hε.le.trans hγ.1) hγ.2 hq0.le) (abs_nonneg _) + · apply Integrable.of_bound (hm.pow_const (q-1)).aestronglyMeasurable (ε^(q-1)) + filter_upwards [hb t] with γ hγ + change ‖(ρ (γ t))^(q-1)‖ ≤ _ + rw [Real.norm_eq_abs,abs_of_nonneg (Real.rpow_nonneg (hε.le.trans hγ.1) _)] + exact Real.rpow_le_rpow_of_nonpos hε hγ.1 (by linarith) + +theorem inverseInitialDensityPlan_compression_path (π : Measure C(Time,X)) + {ρ : X → ℝ} {ε : ℝ} (hε : 0<ε) (hl : ∀ᵐ γ ∂π, ε≤ρ (γ 0)) + {C : ℝ≥0∞} (hcomp : ∀ t : Time, π.map (fun γ => γ t)≤C • μ) (t : Time) : + (inverseInitialDensityPlan π ρ).map (fun γ => γ t)≤(ENNReal.ofReal ε⁻¹*C) • μ := by + have hh := Measure.map_mono (inverseInitialDensityPlan_le_path π hε hl) (measurable_path_eval t) + rw [Measure.map_smul _ (measurable_path_eval t).aemeasurable] at hh + apply hh.trans + intro s + simpa only [Measure.smul_apply,smul_eq_mul,mul_assoc,mul_comm,mul_left_comm] using + mul_le_mul_left (hcomp t s) (ENNReal.ofReal ε⁻¹) + +variable [ProperSpace X] [μ.Regular] (hQ : QuadraticCheegerEnergy μ) + +/-- The local family requires bounded density only along its own paths. +The represented primitive is the genuine Sobolev direction in the +Kantorovich first variation. -/ +theorem path_renyi_signed_variation (π : Measure C(Time,X)) [IsFiniteMeasure π] + (hgeo : ∀ᵐ γ ∂π, IsGeodesic γ) {C : ℝ≥0∞} (hC : C≠∞) + (hcomp : ∀ t : Time, π.map (fun γ => γ t)≤C • μ) + (hD : MemLp (fun γ : C(Time,X) => dist (γ 0) (γ 1)) 2 π) + {D : ℝ} (hDb : ∀ᵐ γ ∂π, dist (γ 0) (γ 1)≤D) + (u ρ v : SobolevSpace μ hQ) {ε M q : ℝ} + (hε : 0<ε) (hq0 : 0 (SobolevSpace.toLp μ hQ ρ x)^(q-1))) + (𝓝[>] (0:ℝ)) (𝓝 (-weightedGradientPair μ hQ + ((inverseInitialDensityPlan π (SobolevSpace.toLp μ hQ ρ)).map (fun γ => γ 0)) u v)) := by + let r := SobolevSpace.toLp μ hQ ρ + let π' := inverseInitialDensityPlan π r + have hl (t : Time) : ∀ᵐ γ ∂π, ε≤r (γ t) := (hbound t).mono fun _ hx => hx.1 + have hlen := inverseInitialDensityPlan_le_path π hε (hl 0) + let : IsFiniteMeasure (ENNReal.ofReal ε⁻¹ • π) := Measure.smul_finite _ ENNReal.ofReal_ne_top + let : IsFiniteMeasure π' := isFiniteMeasure_of_le _ hlen + have hac : π' ≪ π := inverseInitialDensityPlan_ac π r + have hcomp' := inverseInitialDensityPlan_compression_path μ π hε (hl 0) hcomp + have hC' : ENNReal.ofReal ε⁻¹*C≠∞ := ENNReal.mul_ne_top ENNReal.ofReal_ne_top hC + have hD' := hD.of_measure_le_smul ENNReal.ofReal_ne_top hlen + have hd := kantorovich_signed_first_variation μ hQ π' (hac.ae_le hgeo) hC' hcomp' hD' + u v hu had (hac.ae_le hc) (hac.ae_le hb) + have heq : planInitialSecant π' (fun x => renyiDualPower q (r x)) =ᶠ[𝓝[>] (0:ℝ)] + planInitialSecant π' (SobolevSpace.toLp μ hQ v) := by + have hsmall : ∀ᶠ t in 𝓝[>] (0:ℝ), t<1 := + (gt_mem_nhds zero_lt_one).filter_mono nhdsWithin_le_nhds + filter_upwards [hsmall,self_mem_nhdsWithin] with t ht1 ht0 + unfold planInitialSecant + congr 1 + apply integral_congr_ae + filter_upwards [hac.ae_le (hv ⟨t,ht0.le,ht1.le⟩),hac.ae_le (hv 0)] with γ hvt hv0 + rw [show geodesicExtension γ t=γ ⟨t,ht0.le,ht1.le⟩ from + geodesicExtension_eq γ ⟨t,ht0.le,ht1.le⟩] + simp only [hvt,hv0] + dsimp only [r] + ring + have hd' := hd.congr' heq.symm + have hi := renyi_path_integrable_of_bounds μ π r hε hq0 hq1 hbound + have he := planInitialSecant_renyi_reweight_tendsto_path μ π hgeo hC hcomp hD hDb + (SobolevSpace.minimalSlope_isRelaxed μ hQ ρ) hε hl hq0 hq1 + (fun t => (hi t).1) (fun t => (hi t).2) + simpa only [π',r,sub_sub_cancel,sub_zero] using hd'.sub he + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/RenyiPathSemicontinuity.lean b/lean/OAI/Geometry/RCD/Transport/RenyiPathSemicontinuity.lean new file mode 100644 index 0000000000000000000000000000000000000000..07c572e4b418409b0c940ae7f798ba96e451f73d --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/RenyiPathSemicontinuity.lean @@ -0,0 +1,100 @@ +import OAI.Geometry.RCD.Transport.RenyiTreeCompression +import OAI.Geometry.RCD.Transport.ReducedChord + +namespace OAI + +/-! # Semicontinuity for supported Rényi paths and continuity of the chord -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped Topology ENNReal +noncomputable section +namespace RegularPointCoordinates + +theorem continuous_sigma_nonpos_time {K N D : ℝ} + (hK : K ≤ 0) (hN : 1 sigma K N t D) := by + by_cases hD0 : D=0 + · simpa only [sigma,hD0,true_or,ite_true] using ENNReal.continuous_ofReal + by_cases hK0 : K=0 + · simpa only [sigma,hK0,or_true,ite_true] using ENNReal.continuous_ofReal + have he : (fun t : ℝ => sigma K N t D) = + fun t => ENNReal.ofReal (Real.sinh (t*D*Real.sqrt (-K/(N-1)))/ + Real.sinh (D*Real.sqrt (-K/(N-1)))) := by + funext t + exact sigma_neg_eq (lt_of_le_of_ne hK hK0) hN (lt_of_le_of_ne hD (Ne.symm hD0)) t + rw [he] + exact ENNReal.continuous_ofReal.comp (by fun_prop) + +theorem continuous_reducedChord {K N D : ℝ} + (hK : K ≤ 0) (hN : 1 renyiIntegral μ (ν:Measure X) N) := by + have hq0 : 0 < 1-1/N := sub_pos.mpr ((div_lt_one (by linarith : 0 ENNReal.toReal_nonneg) + hq0.le hq1.le) + simpa only [he] using upperSemicontinuous_renyiPower μ hq0 hq1 + +theorem upperSemicontinuous_supported_renyiPath (μ : Measure X) [SigmaFinite μ] + {B : Set X} (hB : MeasurableSet B) [IsFiniteMeasure (μ.restrict B)] + (ν : Time → ProbabilityMeasure X) (hν : Continuous ν) + (hs : ∀ t, ∀ᵐ x ∂(ν t : Measure X), x∈B) {N : ℝ} (hN : 1 renyiIntegral μ (ν t : Measure X) N) := by + have he (t : Time) := renyiIntegral_localized μ (ν t : Measure X) hB (hs t) hN + simpa only [Function.comp_def,he] using (upperSemicontinuous_renyiIntegral (μ.restrict B) hN).comp hν + +end RegularPointCoordinates + +namespace RegularPointCoordinates +open Set Filter MeasureTheory +open scoped ENNReal Topology + +variable {X : Type*} [MeasurableSpace X] + +theorem renyiIntegral_ne_top_of_support (μ ν : Measure X) [SigmaFinite μ] [IsFiniteMeasure ν] + {B : Set X} (hB : MeasurableSet B) [IsFiniteMeasure (μ.restrict B)] + (hs : ∀ᵐ x ∂ν, x∈B) {N : ℝ} (hN : 1 he (mem_univ t) + +theorem continuousAt_of_upperSemicontinuous_lower {F G : Time → ℝ≥0∞} + (hF : UpperSemicontinuous F) (hG : Continuous G) (hle : ∀ t, G t≤F t) + (t : Time) (he : G t=F t) : ContinuousAt F t := by + apply tendsto_order.mpr + constructor + · intro b hb + have hb' : b f (γ t)-f (γ 0)) π := + (hH.const_mul (t:ℝ)).mono' + ((hf.comp (measurable_path_eval t)).sub (hf.comp (measurable_path_eval 0))).aestronglyMeasurable hb + have hs := integral_add_compl hA hi + simp only [planInitialSecant,geodesicExtension_eq] + rw [←sub_div,←hs] + have he : ((∫γ in A,f (γ t)-f (γ 0) ∂π)+ + (∫γ in Aᶜ,f (γ t)-f (γ 0) ∂π))-(∫γ in A,f (γ t)-f (γ 0) ∂π)= + ∫γ in Aᶜ,f (γ t)-f (γ 0) ∂π := by ring + rw [he,abs_div,abs_of_pos ht] + apply (div_le_iff₀ ht).mpr + calc + _ ≤ ∫γ in Aᶜ,|f (γ t)-f (γ 0)| ∂π := abs_integral_le_integral_abs + _ ≤ ∫γ in Aᶜ,(t:ℝ)*H γ ∂π := + integral_mono_ae hi.abs.integrableOn (hH.const_mul _).integrableOn (ae_restrict_of_ae hb) + _ = _ := by rw [integral_const_mul]; ring + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/RenyiPathVariation.lean b/lean/OAI/Geometry/RCD/Transport/RenyiPathVariation.lean new file mode 100644 index 0000000000000000000000000000000000000000..3ddd350c0b290fac2012a628df08e9303992ce45 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/RenyiPathVariation.lean @@ -0,0 +1,93 @@ +import OAI.Geometry.RCD.Transport.RenyiPlanVariation + +namespace OAI + +/-! # Localized finite Rényi variations without finite reference volume + +Only the restricted path family needs a positive lower density bound. +This is suitable for the density-level and displacement truncations used +on the noncompact RCD space. +-/ + +open Set Filter MeasureTheory +open scoped Topology ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + (μ : Measure X) +attribute [local instance] pathBorel pathBorelSpace + +theorem planInitialSecant_renyi_reweight_error_path + (π : Measure C(Time,X)) [IsFiniteMeasure π] + (hgeo : ∀ᵐ γ ∂π, IsGeodesic γ) {C : ℝ≥0∞} (hC : C≠∞) + (hcomp : ∀ t : Time, π.map (fun γ => γ t)≤C • μ) + (hD : MemLp (fun γ : C(Time,X) => dist (γ 0) (γ 1)) 2 π) + {D : ℝ} (hDb : ∀ᵐ γ ∂π, dist (γ 0) (γ 1)≤D) + {ρ G : Lp ℝ 2 μ} (hG : IsRelaxedSlope μ ρ G) + {ε q : ℝ} (hε : 0<ε) (hlp : ∀ s : Time, ∀ᵐ γ ∂π, ε≤ρ (γ s)) (hq0 : 0 renyiDualPower q (ρ (γ s))) π) + (hig : ∀ s : Time, Integrable (fun γ : C(Time,X) => (ρ (γ s))^(q-1)) π) + (t : Time) (ht : 0<(t:ℝ)) : + |planInitialSecant (inverseInitialDensityPlan π ρ) (fun x => renyiDualPower q (ρ x)) t- + planInitialSecant π (fun x => (ρ x)^(q-1)) t| ≤ + (t:ℝ)*((|q-1|/ε*ε^(q-2))*D^2*(C.toReal*∫ x, (G x)^2 ∂μ)) := by + have hiq : Integrable (fun γ : C(Time,X) => + (renyiDualPower q (ρ (γ t))-renyiDualPower q (ρ (γ 0)))/ρ (γ 0)) π := by + simp_rw [div_eq_mul_inv] + apply ((hif t).sub (hif 0)).mul_bdd + · exact ((Lp.stronglyMeasurable ρ).measurable.comp (measurable_path_eval 0)).inv.aestronglyMeasurable + · filter_upwards [hlp 0] with γ hγ + rw [Real.norm_eq_abs,abs_of_nonneg (inv_nonneg.mpr (hε.le.trans hγ))] + exact inv_anti₀ hε hγ + have higs : Integrable (fun γ : C(Time,X) => (ρ (γ t))^(q-1)-(ρ (γ 0))^(q-1)) π := + (hig t).sub (hig 0) + have hirem := hiq.sub higs + have hisq := ((compressionPullback_memLp μ π _ (measurable_path_eval t) hC (hcomp t) ρ).sub + (compressionPullback_memLp μ π _ (measurable_path_eval 0) hC (hcomp 0) ρ)).integrable_sq + have hrem : |∫ γ : C(Time,X), + (renyiDualPower q (ρ (γ t))-renyiDualPower q (ρ (γ 0)))/ρ (γ 0)- + ((ρ (γ t))^(q-1)-(ρ (γ 0))^(q-1)) ∂π| ≤ + (|q-1|/ε*ε^(q-2))*∫ γ : C(Time,X), (ρ (γ t)-ρ (γ 0))^2 ∂π := by + apply (abs_integral_le_integral_abs).trans + rw [←integral_const_mul] + apply integral_mono_ae hirem.abs (hisq.const_mul _) + filter_upwards [hlp t,hlp 0] with γ ht h0 + exact renyi_reweight_remainder hε h0 ht hq0 hq1 + have hsq := hG.testPlan_integrated_square μ π hgeo hC hcomp hD hDb t + have hcoef : 0≤|q-1|/ε*ε^(q-2) := by positivity + have htotal := hrem.trans (mul_le_mul_of_nonneg_left hsq hcoef) + simp_rw [planInitialSecant,geodesicExtension_eq] + rw [inverseInitialDensityPlan_integral π (Lp.stronglyMeasurable ρ).measurable + ((hlp 0).mono fun _ hh => hε.le.trans hh),←sub_div, + ←integral_sub hiq higs,abs_div,abs_of_pos ht] + apply (div_le_iff₀ ht).mpr + convert htotal using 1; ring + +theorem planInitialSecant_renyi_reweight_tendsto_path + (π : Measure C(Time,X)) [IsFiniteMeasure π] + (hgeo : ∀ᵐ γ ∂π, IsGeodesic γ) {C : ℝ≥0∞} (hC : C≠∞) + (hcomp : ∀ t : Time, π.map (fun γ => γ t)≤C • μ) + (hD : MemLp (fun γ : C(Time,X) => dist (γ 0) (γ 1)) 2 π) + {D : ℝ} (hDb : ∀ᵐ γ ∂π, dist (γ 0) (γ 1)≤D) + {ρ G : Lp ℝ 2 μ} (hG : IsRelaxedSlope μ ρ G) + {ε q : ℝ} (hε : 0<ε) (hlp : ∀ s : Time, ∀ᵐ γ ∂π, ε≤ρ (γ s)) (hq0 : 0 renyiDualPower q (ρ (γ s))) π) + (hig : ∀ s : Time, Integrable (fun γ : C(Time,X) => (ρ (γ s))^(q-1)) π) : + Tendsto (fun t => + planInitialSecant (inverseInitialDensityPlan π ρ) (fun x => renyiDualPower q (ρ x)) t- + planInitialSecant π (fun x => (ρ x)^(q-1)) t) (𝓝[>] (0:ℝ)) (𝓝 0) := by + apply squeeze_zero_norm' (a := fun t : ℝ => + t*((|q-1|/ε*ε^(q-2))*D^2*(C.toReal*∫ x, (G x)^2 ∂μ))) + · have hsmall : ∀ᶠ t in 𝓝[>] (0:ℝ), t<1 := + (gt_mem_nhds (show (0:ℝ)<1 from zero_lt_one)).filter_mono nhdsWithin_le_nhds + filter_upwards [hsmall,self_mem_nhdsWithin] with t ht1 ht0 + exact planInitialSecant_renyi_reweight_error_path μ π hgeo hC hcomp hD hDb hG hε hlp hq0 hq1 hif hig + ⟨t,ht0.le,ht1.le⟩ ht0 + · simpa using ((tendsto_id : Tendsto (fun t : ℝ => t) (𝓝 0) (𝓝 0)).mono_left + nhdsWithin_le_nhds).mul_const ((|q-1|/ε*ε^(q-2))*D^2*(C.toReal*∫ x, (G x)^2 ∂μ)) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/RenyiPerturbation.lean b/lean/OAI/Geometry/RCD/Transport/RenyiPerturbation.lean new file mode 100644 index 0000000000000000000000000000000000000000..df2baaa73418dc09212e25c6ed8cc7488c0fc786 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/RenyiPerturbation.lean @@ -0,0 +1,116 @@ +import OAI.Geometry.RCD.Transport.RenyiDualScore + +namespace OAI + +/-! # Quantitative increase of the concave power under mass replacement + +The replacement used in the midpoint construction moves mass out of a +superlevel set into a density bounded by the threshold. A strictly higher +superlevel set supplies a positive gap. +-/ + +open Set Filter MeasureTheory +open scoped Topology ENNReal +noncomputable section +namespace RegularPointCoordinates + +theorem rpow_increment_lower {q a b M : ℝ} (hq0 : 0 < q) (hq1 : q < 1) + (ha : 0 ≤ a) (hab : a ≤ b) (hbM : b ≤ M) (_hM : 0 < M) : + q*M^(q-1)*(b-a) ≤ b^q-a^q := by + by_cases hb : b=0 + · have ha0 : a=0 := le_antisymm (hab.trans_eq hb) ha + simp [ha0,hb] + have hb0 : 0 < b := lt_of_le_of_ne (ha.trans hab) (Ne.symm hb) + have ht := rpow_tangent_upper hb0 ha hq0 hq1 + have hp : b*b^(q-1)=b^q := by + calc + _ = b^(1:ℝ)*b^(q-1) := by rw [Real.rpow_one] + _ = _ := by rw [←Real.rpow_add hb0]; congr 1; ring + have hc := Real.rpow_le_rpow_of_nonpos hb0 hbM (by linarith : q-1 ≤ 0) + have hm := mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_left hc hq0.le) + (sub_nonneg.mpr hab) + have hpq := congrArg (fun z : ℝ => q*z) hp + nlinarith only [ht,hpq,hm] + +theorem rpow_decrement_lower {q a b L : ℝ} (hq0 : 0 < q) (hq1 : q < 1) + (hL : 0 < L) (hLb : L ≤ b) (hba : b ≤ a) : + q*L^(q-1)*(b-a) ≤ b^q-a^q := by + have hb0 := hL.trans_le hLb + have ht := rpow_tangent_upper hb0 (hb0.le.trans hba) hq0 hq1 + have hp : b*b^(q-1)=b^q := by + calc + _ = b^(1:ℝ)*b^(q-1) := by rw [Real.rpow_one] + _ = _ := by rw [←Real.rpow_add hb0]; congr 1; ring + have hc := Real.rpow_le_rpow_of_nonpos hL hLb (by linarith : q-1 ≤ 0) + have hm := mul_le_mul_of_nonpos_right (mul_le_mul_of_nonneg_left hc hq0.le) + (sub_nonpos.mpr hba) + have hpq := congrArg (fun z : ℝ => q*z) hp + nlinarith only [ht,hpq,hm] + +theorem renyiPerturb_low {q C a r h : ℝ} (hq0 : 0 < q) (hq1 : q < 1) + (hC : 0 < C) (ha : 0 ≤ a) (hr : 0 ≤ r) (hrC : r ≤ C) + (hh : 0 ≤ h) (hhC : h ≤ C) : + a*q*(C*(1+a))^(q-1)*h ≤ (r+a*h)^q-r^q := by + have hx := rpow_increment_lower hq0 hq1 hr + (show r ≤ r+a*h by nlinarith) (show r+a*h ≤ C*(1+a) by nlinarith) + (show 0 < C*(1+a) by positivity) + nlinarith only [hx] + +theorem renyiPerturb_high {q C a r h : ℝ} (hq0 : 0 < q) (hq1 : q < 1) + (hC : 0 < C) (ha : 0 ≤ a) (ha1 : a < 1) (hCr : C ≤ r) + (hh : 0 ≤ h) (hhC : h ≤ r) : + a*q*((1-a)*C)^(q-1)*(h-r) ≤ ((1-a)*r+a*h)^q-r^q := by + have hx := rpow_decrement_lower hq0 hq1 + (show 0 < (1-a)*C by positivity) + (show (1-a)*C ≤ (1-a)*r+a*h by + have h := mul_le_mul_of_nonneg_left hCr (by linarith : 0 ≤ 1-a) + nlinarith) + (show (1-a)*r+a*h ≤ r by nlinarith) + nlinarith only [hx] + +def renyiPerturbLower (q C D a r h : ℝ) : ℝ := + a*q*((C*(1+a))^(q-1)*h-((1-a)*C)^(q-1)*(if C (entropyPerturb C a (ρ x) (h x))^q) μ ∧ + (∫ x, (ρ x)^q ∂μ) < ∫ x, (entropyPerturb C a (ρ x) (h x))^q ∂μ := by + classical + let A := {x | C < ρ x} + let T := {x | D ≤ ρ x} + have hA : MeasurableSet A := measurableSet_lt measurable_const hρ + have hT : MeasurableSet T := measurableSet_le measurable_const hρ + let m := ∫ x, h x ∂μ + let b : ℝ → ℝ := fun a => + ((C*(1+a))^(q-1)-((1-a)*C)^(q-1))*m+ + (((1-a)*C)^(q-1)-((1-a)*D)^(q-1))*(D-C)*μ.real T + have hp : ContinuousAt (fun a : ℝ => (C*(1+a))^(q-1)) 0 := + (by fun_prop : ContinuousAt (fun a : ℝ => C*(1+a)) 0).rpow_const + (Or.inl (by simpa using hC.ne')) + have hm : ContinuousAt (fun a : ℝ => ((1-a)*C)^(q-1)) 0 := + (by fun_prop : ContinuousAt (fun a : ℝ => (1-a)*C) 0).rpow_const + (Or.inl (by simpa using hC.ne')) + have hd : ContinuousAt (fun a : ℝ => ((1-a)*D)^(q-1)) 0 := + (by fun_prop : ContinuousAt (fun a : ℝ => (1-a)*D) 0).rpow_const + (Or.inl (by simpa using (hC.trans hD).ne')) + have hb : ContinuousAt b 0 := + ((hp.sub hm).mul continuousAt_const).add + (((hm.sub hd).mul continuousAt_const).mul continuousAt_const) + have hb0 : 0 < b 0 := by + have hgap := sub_pos.mpr (Real.rpow_lt_rpow_of_neg hC hD (by linarith : q-1 < 0)) + have hv : 0 < μ.real T := ENNReal.toReal_pos hpos (measure_ne_top μ T) + simpa only [b,add_zero,sub_zero,mul_one,one_mul,sub_self,zero_mul,zero_add] using + mul_pos (mul_pos hgap (sub_pos.mpr hD)) hv + have haevent : ∀ᶠ a : ℝ in 𝓝[>] 0, 0 < a ∧ a < 1 ∧ 0 < b a := by + filter_upwards [self_mem_nhdsWithin, + (gt_mem_nhds (show (0:ℝ)<1 by norm_num)).filter_mono nhdsWithin_le_nhds, + (hb.tendsto.eventually (lt_mem_nhds hb0)).filter_mono nhdsWithin_le_nhds] with a ha0 ha1 hab + exact ⟨ha0,ha1,hab⟩ + obtain ⟨a,ha0,ha1,hab⟩ := haevent.exists + have hhi : Integrable h μ := Integrable.of_bound hh.aestronglyMeasurable C + (Eventually.of_forall fun x => by simpa only [Real.norm_eq_abs,abs_of_nonneg (hh0 x)] using hhC x) + have hAi : Integrable (A.indicator ρ) μ := hρi.indicator hA + have hTi : Integrable (T.indicator (fun _ => (1:ℝ))) μ := (integrable_const _).indicator hT + have hpm : Measurable (fun x => entropyPerturb C a (ρ x) (h x)) := by + change Measurable (A.piecewise (fun x => (1-a)*ρ x+a*h x) (fun x => ρ x+a*h x)) + exact ((hρ.const_mul _).add (hh.const_mul _)).piecewise hA (hρ.add (hh.const_mul _)) + have hpi : Integrable (fun x => entropyPerturb C a (ρ x) (h x)) μ := by + apply ((hρi.sub (hAi.const_mul a)).add (hhi.const_mul a)).congr + filter_upwards [] with x + by_cases hx : x∈A + · simp only [Pi.add_apply,Pi.sub_apply,indicator_of_mem hx] + change C < ρ x at hx + rw [entropyPerturb,ite_eq_left hx] + ring + · simp only [Pi.add_apply,Pi.sub_apply,indicator_of_notMem hx,mul_zero,sub_zero] + change ¬C < ρ x at hx + rw [entropyPerturb,ite_eq_right hx] + have hp0 (x : X) : 0 ≤ entropyPerturb C a (ρ x) (h x) := + entropyPerturb_nonneg ha0.le ha1.le (hρ0 x) (hh0 x) + have hip := integrable_density_power μ _ hpm hpi (Eventually.of_forall hp0) hq0.le hq1.le + have hir := integrable_density_power μ _ hρ hρi (Eventually.of_forall hρ0) hq0.le hq1.le + let cp := (C*(1+a))^(q-1) + let cm := ((1-a)*C)^(q-1) + let cd := ((1-a)*D)^(q-1) + let F := fun x => a*q*(cp*h x-cm*A.indicator ρ x+(cm-cd)*(D-C)*T.indicator (fun _ => 1) x) + have hFi : Integrable F μ := + (((hhi.const_mul cp).sub (hAi.const_mul cm)).add + (hTi.const_mul ((cm-cd)*(D-C)))).const_mul (a*q) + have hF (x : X) : F x ≤ (entropyPerturb C a (ρ x) (h x))^q-(ρ x)^q := by + simpa only [F,cp,cm,cd,A,T,Set.indicator_apply,mem_ofPred_eq,renyiPerturbLower] using + renyiPerturb_power_lower hq0 hq1 hC hD ha0.le ha1 (hρ0 x) (hh0 x) (hhC x) + have hIA : (∫ x, A.indicator ρ x ∂μ) = m := (integral_indicator hA).trans hmass.symm + have hIT : (∫ x, T.indicator (fun _ => (1:ℝ)) x ∂μ) = μ.real T := by + rw [integral_indicator hT,integral_const,measureReal_restrict_apply_univ,smul_eq_mul,mul_one] + have hIF : (∫ x, F x ∂μ) = a*q*b a := by + dsimp only [F] + rw [integral_const_mul,integral_add,integral_sub,integral_const_mul, + integral_const_mul,integral_const_mul,hIA,hIT] + · dsimp only [b,cp,cm,cd] + ring + · exact hhi.const_mul cp + · exact hAi.const_mul cm + · exact (hhi.const_mul cp).sub (hAi.const_mul cm) + · exact hTi.const_mul ((cm-cd)*(D-C)) + have hle := integral_mono hFi (hip.sub hir) hF + change (∫ x, F x ∂μ) ≤ ∫ x, (entropyPerturb C a (ρ x) (h x))^q-(ρ x)^q ∂μ at hle + rw [integral_sub hip hir,hIF] at hle + refine ⟨a,ha0,ha1,hip,?_⟩ + have hpab : 0 < a*q*b a := mul_pos (mul_pos ha0 hq0) hab + linarith + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/RenyiPlanVariation.lean b/lean/OAI/Geometry/RCD/Transport/RenyiPlanVariation.lean new file mode 100644 index 0000000000000000000000000000000000000000..d078db72537eeb5261a06eef58b97f2a38e36f83 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/RenyiPlanVariation.lean @@ -0,0 +1,131 @@ +import OAI.Geometry.RCD.Transport.RenyiReweight +import OAI.Analysis.RCDHeat.ExistingAnalytic + +namespace OAI + +/-! # Power-entropy transport reweighting + +The finite-dimensional power and its matching primitive have the same +initial variation after changing the initial marginal to the reference +measure. The error is controlled by the actual test-plan square estimate. +-/ + +open Set Filter MeasureTheory +open scoped Topology ENNReal +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MeasurableSpace X] (μ : Measure X) [IsFiniteMeasure μ] + +theorem memLp_renyi_negative_power (ρ : Lp ℝ 2 μ) {ε q : ℝ} + (hε : 0<ε) (hl : ∀ᵐ x ∂μ, ε≤ρ x) (hq : q<1) : + MemLp (fun x => (ρ x)^(q-1)) 2 μ := by + apply (memLp_const (ε^(q-1))).mono' + ((Lp.stronglyMeasurable ρ).measurable.pow_const _).aestronglyMeasurable + filter_upwards [hl] with x hx + simp only [Real.norm_eq_abs,abs_of_nonneg (Real.rpow_nonneg (hε.le.trans hx) _)] + exact Real.rpow_le_rpow_of_nonpos hε hx (by linarith) + +theorem memLp_renyiDualPower (ρ : Lp ℝ 2 μ) (hρ : 0≤ρ) {q : ℝ} + (hq0 : 0 renyiDualPower q (ρ x)) 2 μ := by + have hm := ((Lp.memLp ρ).add (memLp_const (1:ℝ))).const_mul |(q-1)/q| + apply hm.mono' + (((Lp.stronglyMeasurable ρ).measurable.pow_const q).const_mul _).aestronglyMeasurable + filter_upwards [(Lp.coeFn_nonneg _).mpr hρ] with x hx + change 0≤ρ x at hx + have hb : (ρ x)^q≤ρ x+1 := by + by_cases h1 : ρ x≤1 + · exact (Real.rpow_le_one hx h1 hq0.le).trans (by linarith) + · have hh := Real.rpow_le_rpow_of_exponent_le (le_of_not_ge h1) hq1.le + rw [Real.rpow_one] at hh + linarith + change ‖renyiDualPower q (ρ x)‖ ≤ |(q-1)/q| * (ρ x+1) + rw [renyiDualPower,Real.norm_eq_abs,abs_mul, + abs_of_nonneg (Real.rpow_nonneg hx _)] + exact mul_le_mul_of_nonneg_left hb (abs_nonneg _) + +variable [MetricSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem planInitialSecant_renyi_reweight_error + (π : Measure C(Time,X)) [IsFiniteMeasure π] + (hgeo : ∀ᵐ γ ∂π, IsGeodesic γ) {C : ℝ≥0∞} (hC : C≠∞) + (hcomp : ∀ t : Time, π.map (fun γ => γ t)≤C • μ) + (hD : MemLp (fun γ : C(Time,X) => dist (γ 0) (γ 1)) 2 π) + {D : ℝ} (hDb : ∀ᵐ γ ∂π, dist (γ 0) (γ 1)≤D) + {ρ G : Lp ℝ 2 μ} (hG : IsRelaxedSlope μ ρ G) + {ε q : ℝ} (hε : 0<ε) (hl : ∀ᵐ x ∂μ, ε≤ρ x) (hq0 : 0 renyiDualPower q (ρ x)) t- + planInitialSecant π (fun x => (ρ x)^(q-1)) t| ≤ + (t:ℝ)*((|q-1|/ε*ε^(q-2))*D^2*(C.toReal*∫ x, (G x)^2 ∂μ)) := by + have hlp (s : Time) : ∀ᵐ γ ∂π, ε≤ρ (γ s) := + ae_of_ae_map (measurable_path_eval s).aemeasurable + ((Measure.absolutelyContinuous_of_le_smul (hcomp s)).ae_le hl) + have hρ : 0≤ρ := (Lp.coeFn_nonneg _).mp (hl.mono fun _ hx => hε.le.trans hx) + have hf := memLp_renyiDualPower μ ρ hρ hq0 hq1 + have hg := memLp_renyi_negative_power μ ρ hε hl hq1 + have hif (s : Time) : Integrable (fun γ : C(Time,X) => renyiDualPower q (ρ (γ s))) π := + ((hf.of_measure_le_smul hC (hcomp s)).comp_of_map + (measurable_path_eval s).aemeasurable).integrable (by norm_num) + have hig (s : Time) : Integrable (fun γ : C(Time,X) => (ρ (γ s))^(q-1)) π := + ((hg.of_measure_le_smul hC (hcomp s)).comp_of_map + (measurable_path_eval s).aemeasurable).integrable (by norm_num) + have hiq : Integrable (fun γ : C(Time,X) => + (renyiDualPower q (ρ (γ t))-renyiDualPower q (ρ (γ 0)))/ρ (γ 0)) π := by + simp_rw [div_eq_mul_inv] + apply ((hif t).sub (hif 0)).mul_bdd + · exact ((Lp.stronglyMeasurable ρ).measurable.comp (measurable_path_eval 0)).inv.aestronglyMeasurable + · filter_upwards [hlp 0] with γ hγ + rw [Real.norm_eq_abs,abs_of_nonneg (inv_nonneg.mpr (hε.le.trans hγ))] + exact inv_anti₀ hε hγ + have higs : Integrable (fun γ : C(Time,X) => (ρ (γ t))^(q-1)-(ρ (γ 0))^(q-1)) π := + (hig t).sub (hig 0) + have hirem := hiq.sub higs + have hisq := ((compressionPullback_memLp μ π _ (measurable_path_eval t) hC (hcomp t) ρ).sub + (compressionPullback_memLp μ π _ (measurable_path_eval 0) hC (hcomp 0) ρ)).integrable_sq + have hrem : |∫ γ : C(Time,X), + (renyiDualPower q (ρ (γ t))-renyiDualPower q (ρ (γ 0)))/ρ (γ 0)- + ((ρ (γ t))^(q-1)-(ρ (γ 0))^(q-1)) ∂π| ≤ + (|q-1|/ε*ε^(q-2))*∫ γ : C(Time,X), (ρ (γ t)-ρ (γ 0))^2 ∂π := by + apply (abs_integral_le_integral_abs).trans + rw [←integral_const_mul] + apply integral_mono_ae hirem.abs (hisq.const_mul _) + filter_upwards [hlp t,hlp 0] with γ ht h0 + exact renyi_reweight_remainder hε h0 ht hq0 hq1 + have hsq := hG.testPlan_integrated_square μ π hgeo hC hcomp hD hDb t + have hcoef : 0≤|q-1|/ε*ε^(q-2) := by positivity + have htotal := hrem.trans (mul_le_mul_of_nonneg_left hsq hcoef) + simp_rw [planInitialSecant,geodesicExtension_eq] + rw [inverseInitialDensityPlan_integral π (Lp.stronglyMeasurable ρ).measurable + ((hlp 0).mono fun _ hh => hε.le.trans hh),←sub_div, + ←integral_sub hiq higs,abs_div,abs_of_pos ht] + apply (div_le_iff₀ ht).mpr + convert htotal using 1; ring + +theorem planInitialSecant_renyi_reweight_tendsto + (π : Measure C(Time,X)) [IsFiniteMeasure π] + (hgeo : ∀ᵐ γ ∂π, IsGeodesic γ) {C : ℝ≥0∞} (hC : C≠∞) + (hcomp : ∀ t : Time, π.map (fun γ => γ t)≤C • μ) + (hD : MemLp (fun γ : C(Time,X) => dist (γ 0) (γ 1)) 2 π) + {D : ℝ} (hDb : ∀ᵐ γ ∂π, dist (γ 0) (γ 1)≤D) + {ρ G : Lp ℝ 2 μ} (hG : IsRelaxedSlope μ ρ G) + {ε q : ℝ} (hε : 0<ε) (hl : ∀ᵐ x ∂μ, ε≤ρ x) (hq0 : 0 + planInitialSecant (inverseInitialDensityPlan π ρ) (fun x => renyiDualPower q (ρ x)) t- + planInitialSecant π (fun x => (ρ x)^(q-1)) t) (𝓝[>] (0:ℝ)) (𝓝 0) := by + apply squeeze_zero_norm' (a := fun t : ℝ => + t*((|q-1|/ε*ε^(q-2))*D^2*(C.toReal*∫ x, (G x)^2 ∂μ))) + · have hsmall : ∀ᶠ t in 𝓝[>] (0:ℝ), t<1 := + (gt_mem_nhds (show (0:ℝ)<1 from zero_lt_one)).filter_mono nhdsWithin_le_nhds + filter_upwards [hsmall,self_mem_nhdsWithin] with t ht1 ht0 + exact planInitialSecant_renyi_reweight_error μ π hgeo hC hcomp hD hDb hG hε hl hq0 hq1 + ⟨t,ht0.le,ht1.le⟩ ht0 + · simpa using ((tendsto_id : Tendsto (fun t : ℝ => t) (𝓝 0) (𝓝 0)).mono_left + nhdsWithin_le_nhds).mul_const ((|q-1|/ε*ε^(q-2))*D^2*(C.toReal*∫ x, (G x)^2 ∂μ)) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/RenyiReweight.lean b/lean/OAI/Geometry/RCD/Transport/RenyiReweight.lean new file mode 100644 index 0000000000000000000000000000000000000000..57c1d15231f621f6187626cf80acd16790601473 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/RenyiReweight.lean @@ -0,0 +1,75 @@ +import OAI.Geometry.RCD.Transport.RenyiTangent + +namespace OAI + +/-! # The quadratic remainder for finite Rényi reweighting + +For the negative power of a positive density, its matching primitive is +`(q-1)/q * r^q`. Multiplying the power derivative by the initial density +leaves only a quadratic remainder. This is the scalar estimate needed to +identify the transport first variation. +-/ + +open Set +noncomputable section +namespace RegularPointCoordinates + +def renyiDualPower (q r : ℝ) : ℝ := (q-1)/q*r^q + +theorem renyiDualPower_hasDerivAt {q r : ℝ} (hq : q≠0) (hr : 0 (renyiDualPower q s-renyiDualPower q a)/a- + (s^(q-1)-a^(q-1)) + let D : ℝ → ℝ := fun s => (q-1)/a*s^(q-2)*(s-a) + have hap : 0.sub + ((Real.hasDerivAt_rpow_const (p := q-1) (Or.inl hp.ne')).sub_const (a^(q-1))) + convert h using 1 + have he : s^(q-2)*s=s^(q-1) := by + conv_lhs => arg 2; rw [←Real.rpow_one s] + rw [←Real.rpow_add hp] + congr 1 + ring + dsimp [D] + rw [show q-1-1=q-2 by ring] + field_simp + nlinarith only [congrArg (fun z : ℝ => (q-1)*z) he] + have hbound (s : ℝ) (hsm : s∈uIcc a b) : + ‖D s‖≤(|q-1|/ε*ε^(q-2))*|b-a| := by + have hp := hε.trans_le (hs s hsm) + have hi : |q-1|/a≤|q-1|/ε := + div_le_div_of_nonneg_left (abs_nonneg _) hε ha + have hpow : s^(q-2)≤ε^(q-2) := + Real.rpow_le_rpow_of_nonpos hε (hs s hsm) (by linarith) + have hr := abs_sub_left_of_mem_uIcc hsm + dsimp [D] + rw [abs_mul,abs_mul,abs_div,abs_of_pos hap, + abs_of_nonneg (Real.rpow_nonneg hp.le _)] + exact mul_le_mul (mul_le_mul hi hpow (Real.rpow_nonneg hp.le _) + (div_nonneg (abs_nonneg _) hε.le)) hr (abs_nonneg _) + (mul_nonneg (div_nonneg (abs_nonneg _) hε.le) (Real.rpow_nonneg hε.le _)) + have h := Convex.norm_image_sub_le_of_norm_hasDerivWithin_le + (fun s hs => (hd s hs).hasDerivWithinAt) hbound (convex_uIcc a b) + (left_mem_uIcc : a∈uIcc a b) (right_mem_uIcc : b∈uIcc a b) + have he : |b-a| * |b-a| = (b-a)^2 := by rw [←pow_two,sq_abs] + simpa only [F,sub_self,zero_div,sub_zero,Real.norm_eq_abs,mul_assoc,he] using h + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/RenyiRightComponent.lean b/lean/OAI/Geometry/RCD/Transport/RenyiRightComponent.lean new file mode 100644 index 0000000000000000000000000000000000000000..7fad874b1ce85ba47fdff99d0ba38a572b65217e --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/RenyiRightComponent.lean @@ -0,0 +1,97 @@ +import OAI.Geometry.RCD.Transport.OptimalRightSplice +import OAI.Geometry.RCD.Transport.SubpathMeasureSub +import OAI.Geometry.RCD.Transport.LengthReplacementSeparation +import OAI.Geometry.RCD.Coordinates.RenyiNormalizedComparison + +namespace OAI + +/-! # Maximality of a length component on the right half + +A competing half-plan is spliced into the full transport while keeping the +original midpoint. The common length labels then give the disjointness +needed to transfer midpoint maximality to the normalized component. +-/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped Topology ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem NoncollapsedRCD.renyi_right_length_component_maximal + (K : ℝ) (n : ℕ) (hn : 2≤n) (hX : NoncollapsedRCD K n X) + (ν₀ ν₁ : Measure X) [IsProbabilityMeasure ν₀] [IsProbabilityMeasure ν₁] + (hac : ν₀ ≪ hausdorff n X) (p : X) {R : ℝ} (hR : 0≤R) + (hs0 : ∀ᵐ x ∂ν₀, dist x p≤R) (hs1 : ∀ᵐ x ∂ν₁, dist x p≤R) + (μ : Measure X) [IsFiniteMeasure μ] + (π : Measure C(Time,X)) [IsProbabilityMeasure π] + (hgπ : ∀ᵐ γ ∂π, IsGeodesic γ) + (hpπ : IsOptimalCoupling ν₀ ν₁ (π.map (fun γ => (γ 0,γ 1)))) + {S : Set ℝ} (hS : MeasurableSet S) + (κ : Measure C(Time,X)) (hκeq : κ=π.restrict {γ | dist (γ 0) (γ 1)∈S}) + (hκ0 : κ univ≠0) {q : ℝ} (hq0 : 0 γ midpointTime)) (π.map (fun γ => γ 1)) + (π.map (subpath midpointTime 1)) midpointTime q) : + RenyiMaximizingPlan μ ((κ univ)⁻¹ • κ.map (fun γ => γ midpointTime)) + ((κ univ)⁻¹ • κ.map (fun γ => γ 1)) + ((κ univ)⁻¹ • κ.map (subpath midpointTime 1)) midpointTime q := by + let : SeparableSpace X := hX.separable + let : CompleteSpace X := hX.complete + let : Nonempty X := ⟨p⟩ + have hA : MeasurableSet {γ : C(Time,X) | dist (γ 0) (γ 1)∈S} := + hS.preimage ((measurable_path_eval 0).dist (measurable_path_eval 1)) + have hκ : κ≤π := by rw [hκeq]; exact Measure.restrict_le_self + let : IsFiniteMeasure κ := isFiniteMeasure_of_le π hκ + have he := optimalPlan_endpoints ν₀ ν₁ π hpπ + have hp : IsOptimalCoupling (π.map (fun γ => γ 0)) (π.map (fun γ => γ 1)) + (π.map (fun γ => (γ 0,γ 1))) := by rw [he.1,he.2]; exact hpπ + have hfin := finite_second_moment_cost (finiteSecondMoment_of_bounded ν₀ p hs0) + (finiteSecondMoment_of_bounded ν₁ p hs1) hpπ.1 hpπ.2.1 + let πR := π.map (subpath midpointTime 1) + let κR := κ.map (subpath midpointTime 1) + have hκR : κR≤πR := Measure.map_mono hκ (subpath_measurable midpointTime 1) + have hcK : κR univ=κ univ := by + simp only [κR,Measure.map_apply (subpath_measurable midpointTime 1) MeasurableSet.univ,preimage_univ] + obtain ⟨hπR,hgL,hpL⟩ := geodesic_subpath_law π hgπ hp hfin midpointTime 1 + let : IsProbabilityMeasure πR := hπR + have heK (s : Time) : κR.map (fun γ => γ s)=κ.map (fun γ => γ (upperTime s)) := + subpath_map_eval κ midpointTime 1 s + have hresid : (πR-κR).map (fun γ => γ midpointTime)= + (π-κ).map (fun γ => γ (upperTime midpointTime)) := by + change (π.map (subpath midpointTime 1)-κ.map (subpath midpointTime 1)).map _=_ + rw [←subpath_map_sub π κ hκ midpointTime 1] + exact subpath_map_eval (π-κ) midpointTime 1 midpointTime + have hu0 : 0<(upperTime midpointTime:ℝ) := by norm_num [coe_upperTime,midpointTime] + have hu1 : (upperTime midpointTime:ℝ)<1 := by norm_num [coe_upperTime,midpointTime] + have hκS : ∀ᵐ γ ∂κ, dist (γ 0) (γ 1)∈S := by rw [hκeq]; exact ae_restrict_mem hA + have hresS : ∀ᵐ γ ∂π-κ, dist (γ 0) (γ 1)∉S := by + apply ae_iff.mpr + simp only [not_not] + rw [Measure.sub_apply hA hκ,hκeq,Measure.restrict_apply hA,inter_self,tsub_self] + have hsκ : (πR-κR).map (fun γ => γ midpointTime) ⟂ₘ κR.map (fun γ => γ midpointTime) := by + rw [hresid,heK] + exact (hX.optimal_components_mutuallySingular K n hn ν₀ ν₁ hac p hR hs0 hs1 + π π hgπ hgπ hpπ hpπ κ (π-κ) hκ Measure.sub_le hu0 hu1 hS hκS hresS).symm + intro σ hσ hgσ hpσ + let := hσ + obtain ⟨τ,hτ,hgτ,hpτ,hl,hr⟩ := exists_optimal_right_subplan_splice π hgπ hp hfin κ hκ hκ0 σ hgσ hpσ + have hmid : κ.map (fun γ => γ midpointTime)=τ.map (fun γ => γ midpointTime) := by + simpa only [lowerTime,timeSegment_one] using (hr 1).symm + have hsep := hX.length_replacement_separated K n hn ν₀ ν₁ hac p hR hs0 hs1 π hgπ hpπ + hS κ τ hκeq hpτ hgτ (by norm_num [midpointTime]) (by norm_num [midpointTime]) hmid hu0 hu1 + rw [←hresid,hl] at hsep + have hsσ : (πR-κR).map (fun γ => γ midpointTime) ⟂ₘ σ.map (fun γ => γ midpointTime) := + hsep.mono_ac Measure.AbsolutelyContinuous.rfl (Measure.absolutelyContinuous_smul hκ0) + have hpσL : IsOptimalCoupling ((κR univ)⁻¹ • κR.map (fun γ => γ 0)) + ((κR univ)⁻¹ • κR.map (fun γ => γ 1)) (σ.map (fun γ => (γ 0,γ 1))) := by + simpa only [hcK,heK,upperTime,timeSegment_zero,timeSegment_one] using hpσ + have hh := hmax.normalized_subplan_comparison μ hq0 hq1 hgL hpL hκR + (hcK ▸ hκ0) hpσL hgσ hsκ hsσ + simpa only [hcK,Measure.map_smul _ (measurable_path_eval midpointTime).aemeasurable] using hh + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/RenyiScalarMidpoint.lean b/lean/OAI/Geometry/RCD/Transport/RenyiScalarMidpoint.lean new file mode 100644 index 0000000000000000000000000000000000000000..4969efb66d7114394380fa405da56f945b98b06d --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/RenyiScalarMidpoint.lean @@ -0,0 +1,104 @@ +import OAI.Geometry.RCD.Transport.RenyiTreeMaximality +import OAI.Geometry.RCD.Transport.RenyiInverseDensity + +namespace OAI + +/-! # The scalar reduced-CD bound at each selected midpoint + +The original FullCD witness and the selected midpoint may have different +couplings. The uniform length bound removes the coupling dependence in +this scalar estimate. No equality of the two plans is assumed. +-/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped Topology ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +omit [BorelSpace X] in +theorem RenyiMaximizingPlan.renyiIntegral_le_of_integrable + (μ : Measure X) [SigmaFinite μ] {ν₀ ν₁ : Measure X} + {π κ : Measure C(Time,X)} [IsProbabilityMeasure π] [IsProbabilityMeasure κ] + {t : Time} {N : ℝ} (hN : 1 < N) + (hmax : RenyiMaximizingPlan μ ν₀ ν₁ π t (1-1/N)) + (hgκ : ∀ᵐ γ ∂κ, IsGeodesic γ) + (hpκ : IsOptimalCoupling ν₀ ν₁ (κ.map (fun γ => (γ 0,γ 1)))) + (hiπ : Integrable (fun x => ((π.map (fun γ => γ t)).rnDeriv μ x).toReal^(1-1/N)) μ) + (hiκ : Integrable (fun x => ((κ.map (fun γ => γ t)).rnDeriv μ x).toReal^(1-1/N)) μ) : + renyiIntegral μ (κ.map (fun γ => γ t)) N ≤ renyiIntegral μ (π.map (fun γ => γ t)) N := by + have hq : 0 ≤ 1-1/N := sub_nonneg.mpr ((div_le_one (by linarith : 0 γ midpointTime)) N := by + let : SeparableSpace X := hX.separable + let := a.left_probability + let := a.right_probability + let := s.probability + let μ := hausdorff n X + let : IsLocallyFiniteMeasure μ := locallyFinite_of_finiteOnBounded μ hX.finiteOnBounded + have hnR : (2:ℝ) ≤ n := by exact_mod_cast hn + have hN1 : 1 < N := by linarith + have hNplus : 1 < N+1 := by linarith + have hq0 : 0 < 1-1/N := sub_pos.mpr ((div_lt_one (by linarith : 0 (γ 0,γ 1)))) : + ∀ᵐ x ∂π.map (fun γ => γ midpointTime), x∈B := by + apply (ae_map_iff (measurable_path_eval midpointTime).aemeasurable measurableSet_closedBall).mpr + exact (optimal_geodesic_plan_bounded a.left a.right π hg hp a.center a.radius_nonneg + a.left_support a.right_support).mono (fun γ hγ => hγ.2 midpointTime) + have hmax := s.maximal.renyiIntegral_le_of_integrable μ hN1 hgκ hpκ + (renyiPower_localized μ _ measurableSet_closedBall (hs s.plan s.geodesic s.optimal) hq0 hq1).1 + (renyiPower_localized μ _ measurableSet_closedBall (hs κ hgκ hpκ) hq0 hq1).1 + have hend := optimalPlan_endpoints a.left a.right κ hpκ + have hd := a.distance_bound κ inferInstance hgκ hpκ + let c := sigma K (N+1) (1/2) a.distance + have hme0 := ((a.left.measurable_rnDeriv μ).comp (measurable_path_eval 0)).pow_const (-(1/N)) + have hme1 := ((a.right.measurable_rnDeriv μ).comp (measurable_path_eval 1)).pow_const (-(1/N)) + dsimp only [Function.comp_def] at hme0 hme1 + have he0 : (∫⁻ γ : C(Time,X), (a.left.rnDeriv μ (γ 0))^(-(1/N)) ∂κ)=renyiIntegral μ a.left N := by + rw [←lintegral_map ((a.left.measurable_rnDeriv μ).pow_const _) + (measurable_path_eval 0),hend.1,←renyiIntegral_eq_inverse_density μ a.left hac0 hN1] + have he1 : (∫⁻ γ : C(Time,X), (a.right.rnDeriv μ (γ 1))^(-(1/N)) ∂κ)=renyiIntegral μ a.right N := by + rw [←lintegral_map ((a.right.measurable_rnDeriv μ).pow_const _) + (measurable_path_eval 1),hend.2,←renyiIntegral_eq_inverse_density μ a.right hac1 hN1] + calc + _ = ∫⁻ γ : C(Time,X), c*(a.left.rnDeriv μ (γ 0))^(-(1/N))+ + c*(a.right.rnDeriv μ (γ 1))^(-(1/N)) ∂κ := by + rw [lintegral_add_left (hme0.const_mul c),lintegral_const_mul c hme0, + lintegral_const_mul c hme1,he0,he1,mul_add] + _ ≤ ∫⁻ γ : C(Time,X), tau K N (1/2) (dist (γ 0) (γ 1))*(a.left.rnDeriv μ (γ 0))^(-(1/N))+ + tau K N (1/2) (dist (γ 0) (γ 1))*(a.right.rnDeriv μ (γ 1))^(-(1/N)) ∂κ := by + apply lintegral_mono_ae + filter_upwards [hd] with γ hγ + have hcoeff := (sigma_antitone_distance_nonpos_curvature hK hNplus (by norm_num) + (by norm_num) dist_nonneg hγ).trans (reduced_midpoint_le_tau hN1 dist_nonneg) + exact add_le_add (mul_le_mul' hcoeff le_rfl) (mul_le_mul' hcoeff le_rfl) + _ ≤ renyiIntegral μ (κ.map (fun γ => γ midpointTime)) N := by + simpa only [midpointTime,show (1-(1/2:ℝ))=1/2 by norm_num] using hcd N hN midpointTime + _ ≤ _ := hmax + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/RenyiSemicontinuity.lean b/lean/OAI/Geometry/RCD/Transport/RenyiSemicontinuity.lean new file mode 100644 index 0000000000000000000000000000000000000000..9814876c083526e0d1b93198ce6103906a386f05 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/RenyiSemicontinuity.lean @@ -0,0 +1,109 @@ +import OAI.Geometry.RCD.Transport.RenyiDualIntegral + +namespace OAI + +/-! # Weak upper semicontinuity of the finite-volume Rényi integral + +The dual formula includes measures with singular parts. The logarithmic +test is sent to positive infinity on the singular support and clipped on +its complement, so that no absolute continuity of a weak limit is assumed. +-/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped Topology ENNReal BoundedContinuousFunction +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + +omit [MetricSpace X] [BorelSpace X] in +theorem renyiDualValue_nonneg (μ ν : Measure X) {q : ℝ} + (hq0 : 0 ≤ q) (hq1 : q ≤ 1) (f : X → ℝ) : + 0 ≤ renyiDualValue μ ν q f := by + unfold renyiDualValue + exact add_nonneg (mul_nonneg hq0 (integral_nonneg fun _ => (Real.exp_pos _).le)) + (mul_nonneg (sub_nonneg.mpr hq1) (integral_nonneg fun _ => (Real.exp_pos _).le)) + +omit [BorelSpace X] in +theorem renyiDual_ne_top (μ ν : Measure X) (q : ℝ) : renyiDual μ ν q ≠ ∞ := by + exact ne_top_of_le_ne_top ENNReal.ofReal_ne_top (iInf_le _ (0 : X →ᵇ ℝ)) + +theorem renyiDual_le_measurable [ProperSpace X] [SeparableSpace X] + (μ ν : Measure X) [IsFiniteMeasure μ] [IsFiniteMeasure ν] + {q : ℝ} (hq0 : 0 ≤ q) (hq1 : q ≤ 1) + {f : X → ℝ} (hf : Measurable f) {M : ℝ} (hM : 0 ≤ M) (hb : ∀ x, |f x| ≤ M) : + (renyiDual μ ν q).toReal ≤ renyiDualValue μ ν q f := by + apply renyiDualValue_measurable_ge μ ν hq0 hq1 hf hM hb + intro g + have h := (ENNReal.toReal_le_toReal (renyiDual_ne_top μ ν q) + ENNReal.ofReal_ne_top).mpr (iInf_le (fun g : X →ᵇ ℝ => + ENNReal.ofReal (renyiDualValue μ ν q g)) g) + simpa only [ENNReal.toReal_ofReal (renyiDualValue_nonneg μ ν hq0 hq1 g)] using h + +theorem renyiDual_eq_power [ProperSpace X] [SeparableSpace X] + (μ ν : Measure X) [IsFiniteMeasure μ] [IsFiniteMeasure ν] + {q : ℝ} (hq0 : 0 < q) (hq1 : q < 1) : + renyiDual μ ν q = ENNReal.ofReal (∫ x, (ν.rnDeriv μ x).toReal^q ∂μ) := by + classical + apply le_antisymm _ (renyiPower_le_dual μ ν hq0 hq1) + let ρ := fun x => (ν.rnDeriv μ x).toReal + let ξ := ν.singularPart μ + let : IsFiniteMeasure ξ := isFiniteMeasure_of_le ν (Measure.singularPart_le ν μ) + have hρ : Measurable ρ := (ν.measurable_rnDeriv μ).ennreal_toReal + obtain ⟨S,hS,hμS,hξSc⟩ := (Measure.mutuallySingular_singularPart ν μ).symm + have hμae : ∀ᵐ x ∂μ, x ∉ S := by simpa [ae_iff] using hμS + have hξae : ∀ᵐ x ∂ξ, x ∈ S := by + apply ae_iff.mpr + rw [show {x | ¬x ∈ S} = Sᶜ by ext x; rfl] + exact hξSc + let f : ℕ → X → ℝ := fun k x => if x ∈ S then (k:ℝ)+1 else entropyLogTest (k+1) (ρ x) + have hfm (k : ℕ) : Measurable (f k) := + Measurable.ite hS measurable_const ((continuous_entropyLogTest _).measurable.comp hρ) + have hfb (k : ℕ) (x : X) : |f k x| ≤ (k:ℝ)+1 := by + dsimp only [f] + split_ifs + · rw [abs_of_nonneg (by positivity)] + · exact entropyLogTest_abs_le (by positivity) _ + have heq (k : ℕ) : renyiDualValue μ ν q (f k) = + (∫ x, renyiDualScore q (ρ x) (entropyLogTest (k+1) (ρ x)) ∂μ)+ + q*(ξ.real univ*Real.exp ((q-1)*((k:ℝ)+1))) := by + rw [renyiDualValue_decomposition μ ν (hfm k) (hfb k)] + congr 1 + · apply integral_congr_ae + filter_upwards [hμae] with x hx + simp only [f,ite_eq_right hx,ρ] + · congr 1 + calc + _ = ∫ _ : X, Real.exp ((q-1)*((k:ℝ)+1)) ∂ξ := by + apply integral_congr_ae + filter_upwards [hξae] with x hx + simp only [f,ite_eq_left hx] + _ = _ := by rw [integral_const,smul_eq_mul] + have hs := integral_renyiDualScore_logTest_tendsto μ hρ + (Measure.integrable_toReal_rnDeriv (μ := ν) (ν := μ)) + (fun _ => ENNReal.toReal_nonneg) hq0 hq1 + have hnat : Tendsto (fun k : ℕ => (k:ℝ)) atTop atTop := tendsto_natCast_atTop_atTop + have hzero : Tendsto (fun k : ℕ => Real.exp ((q-1)*((k:ℝ)+1))) atTop (𝓝 0) := + Real.tendsto_exp_atBot.comp (Filter.Tendsto.const_mul_atTop_of_neg (by linarith) + (tendsto_atTop_add_const_right _ 1 hnat)) + have hlim : Tendsto (fun k => renyiDualValue μ ν q (f k)) atTop + (𝓝 (∫ x, (ρ x)^q ∂μ)) := by + simp_rw [heq] + simpa only [mul_zero,add_zero] using hs.add + (tendsto_const_nhds.mul (tendsto_const_nhds.mul hzero)) + have hle : (renyiDual μ ν q).toReal ≤ ∫ x, (ρ x)^q ∂μ := + ge_of_tendsto hlim (Eventually.of_forall fun k => + renyiDual_le_measurable μ ν hq0.le hq1.le (hfm k) (by positivity) (hfb k)) + rw [← ENNReal.ofReal_toReal (renyiDual_ne_top μ ν q)] + exact ENNReal.ofReal_le_ofReal hle + +theorem upperSemicontinuous_renyiPower [ProperSpace X] [SeparableSpace X] + (μ : Measure X) [IsFiniteMeasure μ] {q : ℝ} (hq0 : 0 < q) (hq1 : q < 1) : + UpperSemicontinuous (fun ν : ProbabilityMeasure X => + ENNReal.ofReal (∫ x, ((ν : Measure X).rnDeriv μ x).toReal^q ∂μ)) := by + simpa only [renyiDual_eq_power μ _ hq0 hq1] using upperSemicontinuous_renyiDual μ q + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/RenyiSingularReplacement.lean b/lean/OAI/Geometry/RCD/Transport/RenyiSingularReplacement.lean new file mode 100644 index 0000000000000000000000000000000000000000..d2c76fd34fe53f009b5ac0703b9d64e3fba7e712 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/RenyiSingularReplacement.lean @@ -0,0 +1,85 @@ +import OAI.Geometry.RCD.Transport.RenyiSemicontinuity + +namespace OAI + +/-! # Removing singular mass strictly improves the Rényi integral + +The replacement measure retains the original absolutely continuous part +and adds a nonzero absolutely continuous measure. This handles possible +singular parts of an entropy-maximizing midpoint before any density bound. +-/ + +open Set Filter MeasureTheory +open scoped Topology ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MeasurableSpace X] + +theorem integral_rpow_add_strict (μ : Measure X) [IsFiniteMeasure μ] + {ρ σ : X → ℝ} (hρ : Measurable ρ) (hσ : Measurable σ) + (hiρ : Integrable ρ μ) (hiσ : Integrable σ μ) + (hρ0 : ∀ x, 0 ≤ ρ x) (hσ0 : ∀ x, 0 ≤ σ x) + (hσpos : 0 < ∫ x, σ x ∂μ) {q : ℝ} (hq0 : 0 < q) (hq1 : q < 1) : + (∫ x, (ρ x)^q ∂μ) < ∫ x, (ρ x+σ x)^q ∂μ := by + have hi0 := integrable_density_power μ ρ hρ hiρ (Eventually.of_forall hρ0) hq0.le hq1.le + have hi1 := integrable_density_power μ (fun x => ρ x+σ x) (hρ.add hσ) (hiρ.add hiσ) + (Eventually.of_forall fun x => add_nonneg (hρ0 x) (hσ0 x)) hq0.le hq1.le + let d := fun x => (ρ x+σ x)^q-(ρ x)^q + have hd0 (x : X) : 0 ≤ d x := sub_nonneg.mpr + (Real.rpow_le_rpow (hρ0 x) (le_add_of_nonneg_right (hσ0 x)) hq0.le) + have hdI : Integrable d μ := hi1.sub hi0 + have hsupport : Function.support σ ⊆ Function.support d := by + intro x hx + have hs : 0 < σ x := lt_of_le_of_ne (hσ0 x) (Ne.symm hx) + exact ne_of_gt (sub_pos.mpr (Real.rpow_lt_rpow (hρ0 x) (by linarith) hq0)) + have hspos := (integral_pos_iff_support_of_nonneg hσ0 hiσ).mp hσpos + have hdpos : 0 < ∫ x, d x ∂μ := + (integral_pos_iff_support_of_nonneg hd0 hdI).mpr (hspos.trans_le (measure_mono hsupport)) + change 0 < ∫ x, (ρ x+σ x)^q-(ρ x)^q ∂μ at hdpos + rw [integral_sub hi1 hi0] at hdpos + linarith + +theorem renyi_singular_replacement_strict (μ ν η : Measure X) + [IsFiniteMeasure μ] [IsFiniteMeasure ν] [IsFiniteMeasure η] + (hη : η ≪ μ) (hηpos : 0 < η univ) {q : ℝ} (hq0 : 0 < q) (hq1 : q < 1) : + (∫ x, (ν.rnDeriv μ x).toReal^q ∂μ) < + ∫ x, ((ν-ν.singularPart μ+η).rnDeriv μ x).toReal^q ∂μ := by + let ρ := fun x => (ν.rnDeriv μ x).toReal + let σ := fun x => (η.rnDeriv μ x).toReal + have hρ : Measurable ρ := (ν.measurable_rnDeriv μ).ennreal_toReal + have hσ : Measurable σ := (η.measurable_rnDeriv μ).ennreal_toReal + have hρ0 : ∀ x, 0 ≤ ρ x := fun _ => ENNReal.toReal_nonneg + have hσ0 : ∀ x, 0 ≤ σ x := fun _ => ENNReal.toReal_nonneg + have hnew : μ.withDensity (fun x => ENNReal.ofReal (ρ x+σ x)) = ν-ν.singularPart μ+η := by + calc + _ = μ.withDensity (fun x => ENNReal.ofReal (ρ x)+ENNReal.ofReal (σ x)) := + withDensity_congr_ae (Eventually.of_forall fun x => ENNReal.ofReal_add (hρ0 x) (hσ0 x)) + _ = μ.withDensity (fun x => ENNReal.ofReal (ρ x))+μ.withDensity (fun x => ENNReal.ofReal (σ x)) := + withDensity_add_left hρ.ennreal_ofReal (fun x => ENNReal.ofReal (σ x)) + _ = μ.withDensity (ν.rnDeriv μ)+η := by + rw [withDensity_ofReal_rnDeriv μ η hη] + congr 1 + apply withDensity_congr_ae + filter_upwards [Measure.rnDeriv_lt_top ν μ] with x hx + exact ENNReal.ofReal_toReal hx.ne + _ = _ := by rw [Measure.measure_sub_singularPart] + have hrn : (fun x => ((ν-ν.singularPart μ+η).rnDeriv μ x).toReal) =ᵐ[μ] + fun x => ρ x+σ x := by + rw [←hnew] + filter_upwards [Measure.rnDeriv_withDensity μ (hρ.add hσ).ennreal_ofReal] with x hx + change (μ.withDensity (fun x => ENNReal.ofReal (ρ x+σ x))).rnDeriv μ x = + ENNReal.ofReal (ρ x+σ x) at hx + rw [hx,ENNReal.toReal_ofReal (add_nonneg (hρ0 x) (hσ0 x))] + have hp : 0 < ∫ x, σ x ∂μ := by + change 0 < ∫ x, (η.rnDeriv μ x).toReal ∂μ + rw [Measure.integral_toReal_rnDeriv hη] + exact ENNReal.toReal_pos hηpos.ne' (measure_ne_top η univ) + have hh := integral_rpow_add_strict μ hρ hσ Measure.integrable_toReal_rnDeriv + Measure.integrable_toReal_rnDeriv hρ0 hσ0 hp hq0 hq1 + exact hh.trans_eq (integral_congr_ae (hrn.fun_comp fun r => r^q)).symm + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/RenyiSmoothDual.lean b/lean/OAI/Geometry/RCD/Transport/RenyiSmoothDual.lean new file mode 100644 index 0000000000000000000000000000000000000000..a54c6f35dbfed2117f7fd030f78fde41fba9b022 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/RenyiSmoothDual.lean @@ -0,0 +1,92 @@ +import OAI.Geometry.RCD.Transport.RenyiPathPrimitive + +namespace OAI + +/-! # A smooth Sobolev primitive for localized power variations + +The derivative is frozen below the positive density level. The primitive +vanishes at zero, so it defines an actual Sobolev function even when the +reference measure has infinite mass. +-/ + +open Set Filter MeasureTheory +open scoped Topology ENNReal +noncomputable section +namespace RegularPointCoordinates + +def renyiSmoothSlope (ε q r : ℝ) : ℝ := (q-1)*(max r ε)^(q-1) + +def renyiSmoothDual (ε q r : ℝ) : ℝ := ∫ s in 0..r, renyiSmoothSlope ε q s + +theorem renyiSmoothSlope_continuous {ε : ℝ} (hε : 0<ε) (q : ℝ) : + Continuous (renyiSmoothSlope ε q) := by + apply Continuous.const_mul + apply Continuous.rpow_const (by fun_prop) + intro r + exact Or.inl (ne_of_gt (hε.trans_le (le_max_right r ε))) + +theorem renyiSmoothSlope_bound {ε q : ℝ} (hε : 0<ε) (hq : q≤1) (r : ℝ) : + |renyiSmoothSlope ε q r|≤|q-1| * ε^(q-1) := by + rw [renyiSmoothSlope,abs_mul,abs_of_nonneg (Real.rpow_nonneg + (hε.le.trans (le_max_right r ε)) _)] + exact mul_le_mul_of_nonneg_left + (Real.rpow_le_rpow_of_nonpos hε (le_max_right r ε) (by linarith)) (abs_nonneg _) + +theorem renyiSmoothDual_hasDerivAt {ε : ℝ} (hε : 0<ε) (q r : ℝ) : + HasDerivAt (renyiSmoothDual ε q) (renyiSmoothSlope ε q r) r := + intervalIntegral.integral_hasDerivAt_right + ((renyiSmoothSlope_continuous hε q).intervalIntegrable _ _) + ((renyiSmoothSlope_continuous hε q).stronglyMeasurableAtFilter volume (𝓝 r)) + (renyiSmoothSlope_continuous hε q).continuousAt + +theorem renyiSmoothDual_lipschitz {ε q : ℝ} (hε : 0<ε) (hq : q≤1) : + LipschitzWith ⟨|q-1| * ε^(q-1),by positivity⟩ (renyiSmoothDual ε q) := by + apply lipschitzWith_of_nnnorm_deriv_le + (fun r => (renyiSmoothDual_hasDerivAt hε q r).differentiableAt) + intro r + rw [(renyiSmoothDual_hasDerivAt hε q r).deriv] + exact_mod_cast renyiSmoothSlope_bound hε hq r + +theorem renyiSmoothDual_zero (ε q : ℝ) : renyiSmoothDual ε q 0=0 := by + simp [renyiSmoothDual] + +theorem renyiSmoothDual_formula {ε q r : ℝ} (hε : 0<ε) (hq : q≠0) (hr : ε≤r) : + renyiSmoothDual ε q r=renyiDualPower q r- + (renyiDualPower q ε-renyiSmoothDual ε q ε) := by + have hd (s : ℝ) (hs : s∈uIcc ε r) : + HasDerivAt (renyiDualPower q) (renyiSmoothSlope ε q s) s := by + rw [uIcc_of_le hr] at hs + simpa only [renyiSmoothSlope,max_eq_left hs.1] using + renyiDualPower_hasDerivAt hq (hε.trans_le hs.1) + have he := intervalIntegral.integral_eq_sub_of_hasDerivAt hd + ((renyiSmoothSlope_continuous hε q).intervalIntegrable ε r) + have ha := intervalIntegral.integral_add_adjacent_intervals (μ := volume) + ((renyiSmoothSlope_continuous hε q).intervalIntegrable 0 ε) + ((renyiSmoothSlope_continuous hε q).intervalIntegrable ε r) + change renyiSmoothDual ε q ε + _=renyiSmoothDual ε q r at ha + rw [he] at ha + linarith + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + (μ : Measure X) (hQ : QuadraticCheegerEnergy μ) + +def SobolevSpace.renyiSmooth (ρ : SobolevSpace μ hQ) {ε q : ℝ} + (hε : 0<ε) (hq : q≤1) : SobolevSpace μ hQ := + SobolevSpace.comp μ hQ (renyiSmoothDual_lipschitz hε hq) (renyiSmoothDual_zero ε q) ρ + +variable [ProperSpace X] + +theorem localGamma_renyiSmooth (u ρ : SobolevSpace μ hQ) {ε q : ℝ} + (hε : 0<ε) (hq : q≤1) : + localGamma μ hQ u (ρ.renyiSmooth μ hQ hε hq) =ᵐ[μ] + fun x => renyiSmoothSlope ε q (SobolevSpace.toLp μ hQ ρ x)*localGamma μ hQ u ρ x := by + exact localGamma_comp_C1_right μ hQ u ρ (renyiSmoothDual_lipschitz hε hq) + (renyiSmoothDual_zero ε q) (renyiSmoothSlope_continuous hε q) + (renyiSmoothDual_hasDerivAt hε q) ⟨|q-1| * ε^(q-1),by positivity⟩ + (renyiSmoothSlope_bound hε hq) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/RenyiSobolev.lean b/lean/OAI/Geometry/RCD/Transport/RenyiSobolev.lean new file mode 100644 index 0000000000000000000000000000000000000000..70a431ad8346b741430420c7243b0acbc496ff09 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/RenyiSobolev.lean @@ -0,0 +1,126 @@ +import OAI.Geometry.RCD.Transport.RenyiPlanVariation + +namespace OAI + +/-! # The actual Sobolev primitive for finite Rényi first variations -/ + +open Set Filter MeasureTheory +open scoped Topology ENNReal NNReal +noncomputable section +namespace RegularPointCoordinates + +def renyiDualClip (ε q r : ℝ) : ℝ := + renyiDualPower q (max r ε)-renyiDualPower q ε + +theorem renyiDualClip_zero {ε : ℝ} (hε : 0<ε) (q : ℝ) : renyiDualClip ε q 0=0 := by + simp only [renyiDualClip,max_eq_right hε.le,sub_self] + +theorem renyiDualClip_lipschitz {ε q : ℝ} (hε : 0<ε) (hq0 : 0 renyiDualPower q (SobolevSpace.toLp μ hQ ρ x)-renyiDualPower q ε := by + filter_upwards [SobolevSpace.comp_coe μ hQ + (renyiDualClip_lipschitz hε hq0 hq1) (renyiDualClip_zero hε q) ρ,hl] with x hx hxl + simpa only [SobolevSpace.renyiDual,Function.comp_apply,renyiDualClip,max_eq_left hxl] using hx + +attribute [local instance] pathBorel pathBorelSpace + +omit hQ [MeasurableSpace X] [BorelSpace X] in +theorem planInitialSecant_sub_const (π : Measure C(Time,X)) (f : X → ℝ) (c t : ℝ) : + planInitialSecant π (fun x => f x-c) t=planInitialSecant π f t := by + unfold planInitialSecant + congr 1 + apply integral_congr_ae + filter_upwards with γ + ring + +variable [ProperSpace X] [IsFiniteMeasure μ] [μ.Regular] + +/-- The finite power first variation is the energy pairing with the +constructed Sobolev primitive. No derivative of a density representative +is used on exceptional sets. -/ +theorem reference_renyi_signed_variation + (π : Measure C(Time,X)) [IsFiniteMeasure π] + (hgeo : ∀ᵐ γ ∂π, IsGeodesic γ) {C : ℝ≥0∞} (hC : C≠∞) + (hcomp : ∀ t : Time, π.map (fun γ => γ t)≤C • μ) + (hD : MemLp (fun γ : C(Time,X) => dist (γ 0) (γ 1)) 2 π) + {D : ℝ} (hDb : ∀ᵐ γ ∂π, dist (γ 0) (γ 1)≤D) + (u ρ : SobolevSpace μ hQ) {ε q : ℝ} (hε : 0<ε) (hq0 : 0 γ 0)=μ.withDensity + (fun x => ENNReal.ofReal (SobolevSpace.toLp μ hQ ρ x))) + {φ ψ : X → ℝ} (hu : φ=ᵐ[μ] SobolevSpace.toLp μ hQ u) + (had : ∀ x y, φ x+ψ y≤dist x y^2/2) + (hc : ∀ᵐ γ ∂π, φ (γ 0)+ψ (γ 1)=dist (γ 0) (γ 1)^2/2) + (hb : ∀ᵐ γ ∂π, SobolevSpace.minimalSlope μ hQ u (γ 0)≤dist (γ 0) (γ 1)) : + Tendsto (planInitialSecant π (fun x => (SobolevSpace.toLp μ hQ ρ x)^(q-1))) + (𝓝[>] (0:ℝ)) (𝓝 (-energyForm μ hQ u (ρ.renyiDual μ hQ hε hq0 hq1))) := by + let r := SobolevSpace.toLp μ hQ ρ + let π' := inverseInitialDensityPlan π r + have hlen := inverseInitialDensityPlan_le μ π hε hl + (Measure.absolutelyContinuous_of_le_smul (hcomp 0)) + let : IsFiniteMeasure π' := inverseInitialDensityPlan_finite μ π hε hl + (Measure.absolutelyContinuous_of_le_smul (hcomp 0)) + have hac : π' ≪ π := inverseInitialDensityPlan_ac π r + have hcomp' := inverseInitialDensityPlan_compression μ π hε hl hcomp + have hC' : ENNReal.ofReal ε⁻¹*C≠∞ := ENNReal.mul_ne_top ENNReal.ofReal_ne_top hC + have hD' : MemLp (fun γ : C(Time,X) => dist (γ 0) (γ 1)) 2 π' := + hD.of_measure_le_smul ENNReal.ofReal_ne_top hlen + have hinit : π'.map (fun γ => γ 0)=μ := + inverseInitialDensityPlan_initial μ π (Lp.stronglyMeasurable r).measurable + (hl.mono fun _ hx => hε.trans_le hx) h0 + have hd := kantorovich_signed_first_variation μ hQ π' (hac.ae_le hgeo) hC' hcomp' hD' + u (ρ.renyiDual μ hQ hε hq0 hq1) hu had (hac.ae_le hc) (hac.ae_le hb) + rw [hinit,weightedGradientPair_reference] at hd + have hrep := SobolevSpace.renyiDual_coe μ hQ ρ hε hq0 hq1 hl + have heq : planInitialSecant π' (fun x => renyiDualPower q (r x)) =ᶠ[𝓝[>] (0:ℝ)] + planInitialSecant π' (SobolevSpace.toLp μ hQ (ρ.renyiDual μ hQ hε hq0 hq1)) := by + have hsmall : ∀ᶠ t in 𝓝[>] (0:ℝ), t<1 := + (gt_mem_nhds (show (0:ℝ)<1 from zero_lt_one)).filter_mono nhdsWithin_le_nhds + filter_upwards [hsmall,self_mem_nhdsWithin] with t ht1 ht0 + have hh := planInitialSecant_congr_ae μ π' + (fun s => Measure.absolutelyContinuous_of_le_smul (hcomp' s)) hrep ⟨ht0.le,ht1.le⟩ + exact (hh.trans (planInitialSecant_sub_const π' _ (renyiDualPower q ε) t)).symm + have hd' := hd.congr' heq.symm + have he := planInitialSecant_renyi_reweight_tendsto μ π hgeo hC hcomp hD hDb + (SobolevSpace.minimalSlope_isRelaxed μ hQ ρ) hε hl hq0 hq1 + simpa only [π',r,sub_sub_cancel,sub_zero] using hd'.sub he + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/RenyiSobolevDensity.lean b/lean/OAI/Geometry/RCD/Transport/RenyiSobolevDensity.lean new file mode 100644 index 0000000000000000000000000000000000000000..18799c8b682481750dd901af47dd17795300e511 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/RenyiSobolevDensity.lean @@ -0,0 +1,61 @@ +import OAI.Geometry.RCD.Metric.ExponentialDensityIntegrals + +namespace OAI + +/-! # A normalized Sobolev reference density for the finite-dimensional argument -/ + +open Set Filter MeasureTheory Metric +open scoped ENNReal NNReal Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) [IsFiniteMeasureOnCompacts μ] [NeZero μ] + (hQ : QuadraticCheegerEnergy μ) + + theorem exists_renyi_sobolev_density (p : X) {V B s : ℝ} + (hV : 0 ≤ V) (hB : 0 ≤ B) (hs : 0 < s) + (hvol : ∀ R : ℝ, 1 ≤ R → μ.real (closedBall p (2*R)) ≤ V*Real.exp (B*R)) : + ∃ (a c : ℝ) (ρ : SobolevSpace μ hQ), 0 < a ∧ 8*(B+1) ≤ a ∧ 0 < c ∧ + (SobolevSpace.toLp μ hQ ρ =ᵐ[μ] fun x => c*Real.exp (-a*dist p x)) ∧ + Integrable (SobolevSpace.toLp μ hQ ρ) μ ∧ + (∫ x, SobolevSpace.toLp μ hQ ρ x ∂μ)=1 ∧ + Integrable (fun x => (SobolevSpace.toLp μ hQ ρ x)^s) μ ∧ + Integrable (fun x => Real.exp ((3*a/4)*dist p x)) + (μ.withDensity (fun x => ENNReal.ofReal (SobolevSpace.toLp μ hQ ρ x))) ∧ + FiniteSecondMoment (μ.withDensity (fun x => ENNReal.ofReal (SobolevSpace.toLp μ hQ ρ x))) := by + let a := 8*(B+1)+(B+1)/s + have ha8 : 8*(B+1) ≤ a := by exact le_add_of_nonneg_right (div_nonneg (by linarith) hs.le) + have ha : 0 < a := lt_of_lt_of_le (by positivity : 0 < 8*(B+1)) ha8 + have has : B < a*s := by + have he : a*s=8*(B+1)*s+(B+1) := by dsimp [a]; field_simp + rw [he] + nlinarith [mul_pos (by positivity : 0 < 8*(B+1)) hs] + have hi := integrable_exp_neg_dist_of_volume μ p hV hB (by linarith : B < a) hvol + have hi2 := integrable_exp_neg_dist_of_volume μ p hV hB (by linarith : B < 2*a) hvol + let c := (∫ x, Real.exp (-a*dist p x) ∂μ)⁻¹ + have hz : 0 < ∫ x, Real.exp (-a*dist p x) ∂μ := integral_exp_pos hi + have hc : 0 < c := inv_pos.mpr hz + obtain ⟨ρ,hρ⟩ := exponential_sobolev μ hQ p ha.le hc hi2 + have hfi : Integrable (SobolevSpace.toLp μ hQ ρ) μ := (hi.const_mul c).congr hρ.symm + have hm : (∫ x, SobolevSpace.toLp μ hQ ρ x ∂μ)=1 := by + rw [integral_congr_ae hρ,integral_const_mul] + exact inv_mul_cancel₀ hz.ne' + have hpow := exponential_density_power_integrable μ p hV hB hc.le has hvol + have hpowρ : Integrable (fun x => (SobolevSpace.toLp μ hQ ρ x)^s) μ := + hpow.congr (hρ.symm.fun_comp (fun t : ℝ => t^s)) + have hmeasure : μ.withDensity (fun x => ENNReal.ofReal (SobolevSpace.toLp μ hQ ρ x))= + μ.withDensity (fun x => ENNReal.ofReal (c*Real.exp (-a*dist p x))) := + withDensity_congr_ae (hρ.fun_comp ENNReal.ofReal) + have hexp := exponential_density_moment_integrable μ p hV hB (c := c) + (by linarith : B < a-3*a/4) hvol + have hdist := exponential_density_second_moment μ p (a := a) hV hB hc.le (by linarith) hvol + refine ⟨a,c,ρ,ha,ha8,hc,hρ,hfi,hm,hpowρ,?_,?_⟩ + · rwa [hmeasure] + · rw [hmeasure] + exact finiteSecondMoment_of_integrable_dist _ p hdist + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/RenyiSubmeasureBound.lean b/lean/OAI/Geometry/RCD/Transport/RenyiSubmeasureBound.lean new file mode 100644 index 0000000000000000000000000000000000000000..1a023fe37a5ba827ec5e9e09af330a1ee53a57a2 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/RenyiSubmeasureBound.lean @@ -0,0 +1,38 @@ +import OAI.Geometry.RCD.Transport.RenyiInverseDensity + +namespace OAI + +/-! # Inverse-density lower bounds for a submeasure's Rényi integral + +The ambient density can be used even when endpoint length components +overlap. Its negative power is smaller than the component density's power. +-/ + +open Set Filter MeasureTheory +open scoped ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MeasurableSpace X] + +theorem inverse_density_lintegral_le_renyi (μ ν η : Measure X) [SigmaFinite μ] + [IsFiniteMeasure ν] [IsFiniteMeasure η] (hac : ν ≪ μ) (hη : η≤ν) + {N : ℝ} (hN : 1 (γ 0,γ 1)))) + (hκ : κ≤π) + (ht : IsOptimalCoupling (κ.map (fun γ => γ 0)) (κ.map (fun γ => γ 1)) + (τ.map (fun γ => (γ 0,γ 1)))) + (hgt : ∀ᵐ γ ∂τ, IsGeodesic γ) + (hsκ : (π-κ).map (fun γ => γ t) ⟂ₘ κ.map (fun γ => γ t)) + (hsτ : (π-κ).map (fun γ => γ t) ⟂ₘ τ.map (fun γ => γ t)) : + (∫ x, ((τ.map (fun γ => γ t)).rnDeriv μ x).toReal^q ∂μ) ≤ + ∫ x, ((κ.map (fun γ => γ t)).rnDeriv μ x).toReal^q ∂μ := by + let : IsFiniteMeasure κ := isFiniteMeasure_of_le π hκ + obtain ⟨hr,hgr,hpr⟩ := optimalPlan_replace_subplan hp hg hκ ht hgt + have hm := hmax (π-κ+τ) hr hgr hpr + have he : π.map (fun γ => γ t) = + (π-κ).map (fun γ => γ t)+κ.map (fun γ => γ t) := by + rw [←Measure.map_add _ _ (measurable_path_eval t),Measure.sub_add_cancel_of_le hκ] + rw [Measure.map_add _ _ (measurable_path_eval t),he, + renyiPower_add_mutuallySingular μ _ _ hsτ hq0 hq1, + renyiPower_add_mutuallySingular μ _ _ hsκ hq0 hq1] at hm + linarith + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/RenyiTangent.lean b/lean/OAI/Geometry/RCD/Transport/RenyiTangent.lean new file mode 100644 index 0000000000000000000000000000000000000000..2af82771838a602f51aeea9c55741dfa0e4e30a2 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/RenyiTangent.lean @@ -0,0 +1,71 @@ +import OAI.Analysis.RCDHeat.WeightedRenyi +import Mathlib.Analysis.Convex.Deriv + +namespace OAI + +/-! # The finite Rényi tangent inequality + +This is the scalar and integral tangent inequality used to differentiate +the original curvature-dimension transport bound at a positive density. +The exponent stays strictly below one. +-/ + +open Set Filter MeasureTheory + +noncomputable section +namespace RegularPointCoordinates + +theorem rpow_tangent_upper {a b q : ℝ} (ha : 0 arg 2; rw [← Real.rpow_one a] + rw [← Real.rpow_add ha] + congr 1 + ring + rcases lt_trichotomy a b with hab | hab | hba + · have hs := hc.slope_le_of_hasDerivAt ha.le hb hab hd + rw [slope_def_field] at hs + have hh := (div_le_iff₀ (sub_pos.mpr hab)).mp hs + nlinarith only [hh,congrArg (fun z : ℝ => q*z) he] + · rw [← hab] + nlinarith only [congrArg (fun z : ℝ => q*z) he] + · have hs := hc.le_slope_of_hasDerivAt hb ha.le hba hd + rw [slope_def_field] at hs + have hh := (le_div_iff₀ (sub_pos.mpr hba)).mp hs + nlinarith only [hh,congrArg (fun z : ℝ => q*z) he] + +variable {X : Type*} [MeasurableSpace X] (μ : Measure X) [IsFiniteMeasure μ] + +/-- The density tangent is integrable even when the comparison density +vanishes. Only the reference density has to be bounded below. -/ +theorem integral_rpow_tangent_upper (ρ η : X → ℝ) (hρ : Measurable ρ) (hη : Measurable η) + (hρi : Integrable ρ μ) (hηi : Integrable η μ) {ε q : ℝ} (hε : 0<ε) + (hρ0 : ∀ᵐ x ∂μ, ε≤ρ x) (hη0 : ∀ᵐ x ∂μ, 0≤η x) + (hq0 : 0 ρ x^(q-1)*η x) μ ∧ + (∫ x, η x^q ∂μ)≤(1-q)*(∫ x, ρ x^q ∂μ)+q*(∫ x, ρ x^(q-1)*η x ∂μ) := by + have hρn : ∀ᵐ x ∂μ, 0≤ρ x := hρ0.mono fun _ hx => hε.le.trans hx + have hρp := integrable_density_power μ ρ hρ hρi hρn hq0.le hq1.le + have hηp := integrable_density_power μ η hη hηi hη0 hq0.le hq1.le + have hb : ∀ᵐ x ∂μ, ‖ρ x^(q-1)‖≤ε^(q-1) := by + filter_upwards [hρ0] with x hx + rw [Real.norm_eq_abs,abs_of_nonneg (Real.rpow_nonneg (hε.le.trans hx) _)] + exact Real.rpow_le_rpow_of_nonpos hε hx (by linarith) + have hi : Integrable (fun x => ρ x^(q-1)*η x) μ := + hηi.bdd_mul (hρ.pow_const (q-1)).aestronglyMeasurable hb + refine ⟨hi,?_⟩ + have ht : (∫ x, η x^q ∂μ)≤∫ x, ((1-q)*ρ x^q+q*(ρ x^(q-1)*η x)) ∂μ := by + apply integral_mono_ae hηp ((hρp.const_mul _).add (hi.const_mul _)) + filter_upwards [hρ0,hη0] with x hx hy + change η x^q≤(1-q)*ρ x^q+q*(ρ x^(q-1)*η x) + simpa only [mul_assoc] using rpow_tangent_upper (hε.trans_le hx) hy hq0 hq1 + rwa [integral_add (hρp.const_mul _) (hi.const_mul _),integral_const_mul,integral_const_mul] at ht + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/RenyiTransportNode.lean b/lean/OAI/Geometry/RCD/Transport/RenyiTransportNode.lean new file mode 100644 index 0000000000000000000000000000000000000000..0bd5a48a44fe2862631e6c8446b5006a60128f8a --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/RenyiTransportNode.lean @@ -0,0 +1,65 @@ +import OAI.Geometry.RCD.Transport.RenyiDyadicConstruction + +namespace OAI + +/-! # Fixed nodes for compatible Rényi refinement + +A node records only the bounded transport data needed at that segment. +Its selected maximal midpoint is independent of any requested tree depth. +-/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped Topology ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +structure RenyiTransportNode (n : ℕ) (X : Type*) [MetricSpace X] [MeasurableSpace X] [BorelSpace X] where + left : Measure X + right : Measure X + left_probability : IsProbabilityMeasure left + right_probability : IsProbabilityMeasure right + center : X + radius : ℝ + radius_nonneg : 0 ≤ radius + left_support : ∀ᵐ x ∂left, dist x center ≤ radius + right_support : ∀ᵐ x ∂right, dist x center ≤ radius + capacity : ℝ≥0∞ + capacity_finite : capacity ≠ ∞ + left_bound : left ≤ capacity • hausdorff n X + right_bound : right ≤ capacity • hausdorff n X + distance : ℝ + distance_nonneg : 0 ≤ distance + distance_bound : OptimalPlanDistanceBound left right distance + +structure RenyiNodeSplit {n : ℕ} (K q : ℝ) (a : RenyiTransportNode n X) where + plan : Measure C(Time,X) + probability : IsProbabilityMeasure plan + geodesic : ∀ᵐ γ ∂plan, IsGeodesic γ + optimal : IsOptimalCoupling a.left a.right (plan.map (fun γ => (γ 0,γ 1))) + compressed : plan.map (fun γ => γ midpointTime) ≤ + midpointCapacity K n a.distance a.capacity • hausdorff n X + maximal : RenyiMaximizingPlan (hausdorff n X) a.left a.right plan midpointTime q + +theorem NoncollapsedRCD.renyiNodeSplit_nonempty + (K : ℝ) (n : ℕ) (hn : 2 ≤ n) (hX : NoncollapsedRCD K n X) + (q : ℝ) (hq0 : 0 < q) (hq1 : q < 1) (a : RenyiTransportNode n X) : + Nonempty (RenyiNodeSplit K q a) := by + let := a.left_probability + let := a.right_probability + obtain ⟨π,hπ,hg,hp,hc,hm⟩ := hX.exists_global_renyi_midpoint_short K n hn + a.left a.right a.capacity_finite a.left_bound a.right_bound a.center a.radius_nonneg + a.left_support a.right_support a.distance a.distance_bound hq0 hq1 + exact ⟨⟨π,hπ,hg,hp,hc,hm⟩⟩ + +noncomputable def NoncollapsedRCD.selectedRenyiSplit + (K : ℝ) (n : ℕ) (hn : 2 ≤ n) (hX : NoncollapsedRCD K n X) + (q : ℝ) (hq0 : 0 < q) (hq1 : q < 1) (a : RenyiTransportNode n X) : RenyiNodeSplit K q a := + Classical.choice (hX.renyiNodeSplit_nonempty K n hn q hq0 hq1 a) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/RenyiTreeChord.lean b/lean/OAI/Geometry/RCD/Transport/RenyiTreeChord.lean new file mode 100644 index 0000000000000000000000000000000000000000..a455192b0d9d8fc67993e8d7eed617c048d0c62f --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/RenyiTreeChord.lean @@ -0,0 +1,79 @@ +import OAI.Geometry.RCD.Transport.RenyiDyadicChord +import OAI.Geometry.RCD.Transport.RenyiPathSemicontinuity + +namespace OAI + +/-! # All-time scalar Rényi control and endpoint continuity + +A fixed maximal midpoint tree has the exact scalar reduced-CD chord at +every time. Weak upper semicontinuity and this lower bound give genuine +continuity of its Rényi entropy at both endpoints. +-/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped Topology ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [SeparableSpace X] [CompleteSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem NoncollapsedRCD.plan_following_renyi_tree_chord + (K : ℝ) (n : ℕ) (hn : 2 ≤ n) (hX : NoncollapsedRCD K n X) (hK : K ≤ 0) + {N : ℝ} (hN : (n:ℝ) ≤ N) + (S : ∀ a : RenyiTransportNode n X, RenyiNodeSplit K (1-1/N) a) (a : RenyiTransportNode n X) + (π : Measure C(Time,X)) [IsProbabilityMeasure π] + (hg : ∀ᵐ γ ∂π, IsGeodesic γ) + (hp : IsOptimalCoupling a.left a.right (π.map (fun γ => (γ 0,γ 1)))) + (hf : ∀ m, FollowsRenyiTree S a (fun t => π.map (fun γ => γ t)) m) : + (∀ t, reducedChord K (N+1) a.distance (renyiIntegral (hausdorff n X) a.left N) + (renyiIntegral (hausdorff n X) a.right N) t ≤ + renyiIntegral (hausdorff n X) (π.map (fun γ => γ t)) N) ∧ + ContinuousAt (fun t : Time => renyiIntegral (hausdorff n X) (π.map (fun γ => γ t)) N) 0 ∧ + ContinuousAt (fun t : Time => renyiIntegral (hausdorff n X) (π.map (fun γ => γ t)) N) 1 := by + let : ProperSpace X := hX.proper K n hn + let := a.left_probability + let := a.right_probability + let μ := hausdorff n X + let : IsLocallyFiniteMeasure μ := locallyFinite_of_finiteOnBounded μ hX.finiteOnBounded + let B := closedBall a.center (3*a.radius) + let : IsFiniteMeasure (μ.restrict B) := ⟨by + simpa [μ,B] using hX.finiteOnBounded B isBounded_closedBall⟩ + have hs (t : Time) : ∀ᵐ x ∂π.map (fun γ => γ t), x∈B := by + apply (ae_map_iff (measurable_path_eval t).aemeasurable measurableSet_closedBall).mpr + exact (optimal_geodesic_plan_bounded a.left a.right π hg hp a.center a.radius_nonneg + a.left_support a.right_support).mono (fun γ hγ => hγ.2 t) + have he := optimalPlan_endpoints a.left a.right π hp + have hnR : (2:ℝ) ≤ n := by exact_mod_cast hn + have hN1 : 1 v.map (fun γ => γ t)) (continuous_time_marginals v) hs hN1 + have hc := continuous_reducedChord hK hNplus a.distance_nonneg hfin0 hfin1 + have hall : ∀ t, reducedChord K (N+1) a.distance (renyiIntegral μ a.left N) + (renyiIntegral μ a.right N) t ≤ renyiIntegral μ (π.map (fun γ => γ t)) N := by + apply ge_continuous_of_dense hu hc dense_dyadicGrid + intro t ht + obtain ⟨m,hm⟩ := mem_iUnion.mp ht + exact (hf m).reducedChord K n hn hX hK hN S m t hm + refine ⟨hall,continuousAt_of_upperSemicontinuous_lower hu hc hall 0 ?_, + continuousAt_of_upperSemicontinuous_lower hu hc hall 1 ?_⟩ + · rw [reducedChord_zero hK hNplus a.distance_nonneg] + change renyiIntegral μ a.left N=renyiIntegral μ (π.map (fun γ => γ 0)) N + rw [he.1] + · rw [reducedChord_one hK hNplus a.distance_nonneg] + change renyiIntegral μ a.right N=renyiIntegral μ (π.map (fun γ => γ 1)) N + rw [he.2] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/RenyiTreeClosed.lean b/lean/OAI/Geometry/RCD/Transport/RenyiTreeClosed.lean new file mode 100644 index 0000000000000000000000000000000000000000..cb12d65fdaa36c49dbb3df48d6e073ad8fa58501 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/RenyiTreeClosed.lean @@ -0,0 +1,62 @@ +import OAI.Geometry.RCD.Transport.CanonicalRenyiConstruction + +namespace OAI + +/-! # Closed finite constraints for the fixed midpoint tree -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped Topology ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [SeparableSpace X] [CompleteSpace X] +attribute [local instance] pathBorel pathBorelSpace + +omit [SeparableSpace X] [CompleteSpace X] in +theorem isClosed_evaluation_measure_eq (ν : Measure X) (hν : IsProbabilityMeasure ν) (t : Time) : + IsClosed {π : ProbabilityMeasure C(Time,X) | (π:Measure C(Time,X)).map (fun γ => γ t)=ν} := by + let v : ProbabilityMeasure X := ⟨ν,hν⟩ + have hc := isClosed_eq (ProbabilityMeasure.continuous_map (continuous_eval_const t)) + (continuous_const : Continuous (fun _ : ProbabilityMeasure C(Time,X) => v)) + convert hc using 1 + ext π + constructor + · intro h + apply ProbabilityMeasure.toMeasure_injective + exact h + · intro h + exact congrArg (fun v : ProbabilityMeasure X => (v:Measure X)) h + +theorem isClosed_followsRenyiTree {n : ℕ} {K q : ℝ} + (S : ∀ a : RenyiTransportNode n X, RenyiNodeSplit K q a) (m : ℕ) : + ∀ (a : RenyiTransportNode n X) (f : Time → Time), + IsClosed {π : ProbabilityMeasure C(Time,X) | + FollowsRenyiTree S a (fun t => (π:Measure C(Time,X)).map (fun γ => γ (f t))) m} := by + induction m with + | zero => + intro a f + exact (isClosed_evaluation_measure_eq a.left a.left_probability (f 0)).inter + (isClosed_evaluation_measure_eq a.right a.right_probability (f 1)) + | succ m ih => + intro a f + let := (S a).probability + exact (isClosed_evaluation_measure_eq a.left a.left_probability (f 0)).inter + ((isClosed_evaluation_measure_eq a.right a.right_probability (f 1)).inter + ((isClosed_evaluation_measure_eq ((S a).plan.map (fun γ : C(Time,X) => γ midpointTime)) + inferInstance (f midpointTime)).inter + ((ih (S a).leftNode (fun t => f (lowerTime t))).inter + (ih (S a).rightNode (fun t => f (upperTime t)))))) + +theorem FollowsRenyiTree.of_le {n : ℕ} {K q : ℝ} + {S : ∀ a : RenyiTransportNode n X, RenyiNodeSplit K q a} + {a : RenyiTransportNode n X} {ν : Time → Measure X} {k m : ℕ} + (h : FollowsRenyiTree S a ν m) (hkm : k ≤ m) : FollowsRenyiTree S a ν k := by + have hm : Antitone (fun j => {ν : Time → Measure X | FollowsRenyiTree S a ν j}) := + antitone_nat_of_succ_le (fun j ν hν => hν.of_succ) + exact hm hkm h + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/RenyiTreeCompactness.lean b/lean/OAI/Geometry/RCD/Transport/RenyiTreeCompactness.lean new file mode 100644 index 0000000000000000000000000000000000000000..d57593f6d1e464ba9d8471db0fda1d71efdfa111 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/RenyiTreeCompactness.lean @@ -0,0 +1,52 @@ +import OAI.Geometry.RCD.Transport.RenyiTreeClosed + +namespace OAI + +/-! # A single optimal plan realizes every level of the fixed midpoint tree -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped Topology ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [SeparableSpace X] [CompleteSpace X] [ProperSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem exists_plan_following_all_renyi_levels {n : ℕ} {K q : ℝ} + (S : ∀ a : RenyiTransportNode n X, RenyiNodeSplit K q a) (a : RenyiTransportNode n X) : + ∃ π : Measure C(Time,X), IsProbabilityMeasure π ∧ + (∀ᵐ γ ∂π, IsGeodesic γ) ∧ IsOptimalCoupling a.left a.right (π.map (fun γ => (γ 0,γ 1))) ∧ + ∀ m, FollowsRenyiTree S a (fun t => π.map (fun γ => γ t)) m := by + let v₀ : ProbabilityMeasure X := ⟨a.left,a.left_probability⟩ + let v₁ : ProbabilityMeasure X := ⟨a.right,a.right_probability⟩ + let A := OptimalGeodesicPlans v₀ v₁ + let Q : ℕ → Set (ProbabilityMeasure C(Time,X)) := fun m => + {π | FollowsRenyiTree S a (fun t => (π:Measure C(Time,X)).map (fun γ => γ t)) m} + have hA : IsCompact A := isCompact_optimal_geodesic_plans v₀ v₁ a.center a.radius_nonneg + a.left_support a.right_support + have hQ : ∀ m, IsClosed (Q m) := fun m => isClosed_followsRenyiTree S m a id + have hfin : ∀ u : Finset ℕ, (A ∩ ⋂ m∈u, Q m).Nonempty := by + intro u + obtain ⟨π,hπ,hg,hp,_,hf⟩ := exists_plan_following_renyi_tree S (u.sup id) a + let v : ProbabilityMeasure C(Time,X) := ⟨π,hπ⟩ + refine ⟨v,⟨hg,hp⟩,mem_iInter.mpr (fun m => mem_iInter.mpr (fun hm => ?_))⟩ + exact hf.of_le (Finset.le_sup (f := id) hm) + obtain ⟨π,hπ,hf⟩ := hA.inter_iInter_nonempty Q hQ hfin + exact ⟨π,inferInstance,hπ.1,hπ.2,fun m => mem_iInter.mp hf m⟩ + +omit [ProperSpace X] in +theorem plan_following_renyi_tree_dyadic_compression {n : ℕ} {K q : ℝ} + (S : ∀ a : RenyiTransportNode n X, RenyiNodeSplit K q a) (a : RenyiTransportNode n X) + (π : Measure C(Time,X)) (hf : ∀ m, FollowsRenyiTree S a (fun t => π.map (fun γ => γ t)) m) + {t : Time} (ht : t∈⋃ m, dyadicGrid m) : + π.map (fun γ => γ t) ≤ compressionBudget K n a.distance a.capacity • hausdorff n X := by + obtain ⟨m,hm⟩ := mem_iUnion.mp ht + obtain ⟨κ,_,_,_,hc,hκ⟩ := exists_plan_following_renyi_tree S m a + rw [(hf m).unique_grid hκ t hm] + exact hc t hm + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/RenyiTreeCompression.lean b/lean/OAI/Geometry/RCD/Transport/RenyiTreeCompression.lean new file mode 100644 index 0000000000000000000000000000000000000000..3ab560ff05cf12dcd9f603aee2822a354933168b --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/RenyiTreeCompression.lean @@ -0,0 +1,65 @@ +import OAI.Geometry.RCD.Transport.RenyiTreeCompactness + +namespace OAI + +/-! # Uniform compression on the fixed maximal midpoint tree + +Dyadic marginals are fixed before compactness. Their common density bound +extends to every time by weak continuity and closedness of domination. +-/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped Topology ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem isClosed_probability_domination [ProperSpace X] [SeparableSpace X] + (μ : Measure X) [IsFiniteMeasure μ] {C : ℝ≥0∞} (hC : C ≠ ∞) : + IsClosed {ν : ProbabilityMeasure X | (ν : Measure X) ≤ C • μ} := by + convert (lowerSemicontinuous_transportExcessMass μ hC).isClosed_preimage 0 using 1 + ext ν + simp only [mem_ofPred_eq, mem_preimage, mem_Iic, nonpos_iff_eq_zero, + transportExcessMass_zero_iff μ (ν : Measure X) hC] + +theorem NoncollapsedRCD.plan_following_renyi_tree_compression + [SeparableSpace X] [CompleteSpace X] + (K : ℝ) (n : ℕ) (hn : 2 ≤ n) (hX : NoncollapsedRCD K n X) {q : ℝ} + (S : ∀ a : RenyiTransportNode n X, RenyiNodeSplit K q a) (a : RenyiTransportNode n X) + (π : Measure C(Time,X)) [IsProbabilityMeasure π] + (hg : ∀ᵐ γ ∂π, IsGeodesic γ) + (hp : IsOptimalCoupling a.left a.right (π.map (fun γ => (γ 0,γ 1)))) + (hf : ∀ m, FollowsRenyiTree S a (fun t => π.map (fun γ => γ t)) m) : + ∀ t : Time, π.map (fun γ => γ t) ≤ compressionBudget K n a.distance a.capacity • hausdorff n X := by + let : ProperSpace X := hX.proper K n hn + let := a.left_probability + let := a.right_probability + let μ := hausdorff n X + let B := closedBall a.center (3*a.radius) + let : IsFiniteMeasure (μ.restrict B) := ⟨by + simpa [μ,B] using hX.finiteOnBounded B isBounded_closedBall⟩ + let v : ProbabilityMeasure C(Time,X) := ⟨π,inferInstance⟩ + let cap := compressionBudget K n a.distance a.capacity + have hc : cap ≠ ∞ := compressionBudget_ne_top K n a.distance a.capacity_finite + have hs (t : Time) : ∀ᵐ x ∂π.map (fun γ => γ t), x∈B := by + apply (ae_map_iff (measurable_path_eval t).aemeasurable measurableSet_closedBall).mpr + exact (optimal_geodesic_plan_bounded a.left a.right π hg hp a.center a.radius_nonneg + a.left_support a.right_support).mono (fun γ hγ => hγ.2 t) + let T : Set Time := {t | π.map (fun γ => γ t) ≤ cap • μ.restrict B} + have hT : IsClosed T := (isClosed_probability_domination (μ.restrict B) hc).preimage + (continuous_time_marginals v) + have hd : (⋃ m, dyadicGrid m) ⊆ T := by + intro t ht + exact (compression_iff_localized μ _ (hs t) cap).mp + (plan_following_renyi_tree_dyadic_compression S a π hf ht) + have hall := closure_minimal hd hT + rw [dense_dyadicGrid.closure_eq] at hall + intro t + exact (compression_iff_localized μ _ (hs t) cap).mpr (hall (mem_univ t)) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/RenyiTreeMaximality.lean b/lean/OAI/Geometry/RCD/Transport/RenyiTreeMaximality.lean new file mode 100644 index 0000000000000000000000000000000000000000..8e3ee4b5345ab2d630e00fa5a4d7ed1a54c66869 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/RenyiTreeMaximality.lean @@ -0,0 +1,49 @@ +import OAI.Geometry.RCD.Transport.RenyiTreeCompression + +namespace OAI + +/-! # Variational properties of the compact maximal midpoint tree -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped Topology ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [SeparableSpace X] [CompleteSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem FollowsRenyiTree.maximal {n : ℕ} {K q : ℝ} + {S : ∀ a : RenyiTransportNode n X, RenyiNodeSplit K q a} {m : ℕ} : + ∀ {a : RenyiTransportNode n X} {ν : Time → Measure X}, FollowsRenyiTree S a ν m → + RenyiDyadicMaximal (hausdorff n X) q ν m := by + induction m with + | zero => intro a ν h; trivial + | succ m ih => + intro a ν h + refine ⟨?_,ih h.2.2.2.1,ih h.2.2.2.2⟩ + intro κ hκ hgκ hpκ + rw [h.1,h.2.1] at hpκ + rw [h.2.2.1] + exact (S a).maximal κ hκ hgκ hpκ + +omit [SeparableSpace X] in +theorem NoncollapsedRCD.exists_compressed_maximal_renyi_tree + (K : ℝ) (n : ℕ) (hn : 2 ≤ n) (hX : NoncollapsedRCD K n X) + {q : ℝ} (hq0 : 0 < q) (hq1 : q < 1) (a : RenyiTransportNode n X) : + ∃ π : Measure C(Time,X), IsProbabilityMeasure π ∧ + (∀ᵐ γ ∂π, IsGeodesic γ) ∧ IsOptimalCoupling a.left a.right (π.map (fun γ => (γ 0,γ 1))) ∧ + (∀ t : Time, π.map (fun γ => γ t) ≤ compressionBudget K n a.distance a.capacity • hausdorff n X) ∧ + ∀ m, RenyiDyadicMaximal (hausdorff n X) q (fun t => π.map (fun γ => γ t)) m := by + let : SeparableSpace X := hX.separable + let : ProperSpace X := hX.proper K n hn + let S := hX.selectedRenyiSplit K n hn q hq0 hq1 + obtain ⟨π,hπ,hg,hp,hf⟩ := exists_plan_following_all_renyi_levels S a + let := hπ + exact ⟨π,hπ,hg,hp,hX.plan_following_renyi_tree_compression K n hn S a π hg hp hf, + fun m => (hf m).maximal⟩ + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/RescaledTransportPotentials.lean b/lean/OAI/Geometry/RCD/Transport/RescaledTransportPotentials.lean new file mode 100644 index 0000000000000000000000000000000000000000..57f92de2e9e6ff667a5eff48bbdc90c91159d62b --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/RescaledTransportPotentials.lean @@ -0,0 +1,70 @@ +import OAI.Analysis.RCDHeat.ExistingAnalytic + +namespace OAI + +/-! # Scale-invariant potentials for bounded endpoint transport -/ + +open Set Filter MeasureTheory Metric +open scoped Topology NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] [SecondCountableTopology X] + +/-- The linear-radius potential theorem has uniform constants after rescaling. +Only its value bounds, dual inequality and exact contact are retained here. -/ +theorem rescaled_transport_potentials (μ : Measure X) [IsFiniteMeasureOnCompacts μ] + (hQ : QuadraticCheegerEnergy μ) (hgeo : IsGeodesicSpace X) + (ν₀ ν₁ : Measure X) [IsProbabilityMeasure ν₀] [IsProbabilityMeasure ν₁] + (hac : ν₀ ≪ μ) {π : Measure (X×X)} (hp : IsOptimalCoupling ν₀ ν₁ π) + (p : X) {ρ r : ℝ} (hρ : 0≤ρ) (hr : 0 q x/r^2) := by + apply LipschitzWith.of_dist_le_mul + intro x y + rw [Real.dist_eq,← sub_div,abs_div,abs_of_pos (sq_pos_of_pos hr)] + change |q x-q y|/r^2≤(5*ρ/r)*dist x y + have hxy := hq.dist_le_mul x y + change dist (q x) (q y)≤(5*(ρ*r))*dist x y at hxy + rw [Real.dist_eq] at hxy + calc + |q x-q y|/r^2≤(5*(ρ*r)*dist x y)/r^2 := + div_le_div_of_nonneg_right hxy + (sq_nonneg r) + _ = (5*ρ/r)*dist x y := by field_simp [hr.ne'] + have hbound (q : X → ℝ) (hq : ∀ x, |q x|≤10*(ρ*r)^2) (x : X) : + |q x/r^2|≤10*ρ^2 := by + rw [abs_div,abs_of_pos (sq_pos_of_pos hr)] + calc |q x|/r^2≤(10*(ρ*r)^2)/r^2 := + div_le_div_of_nonneg_right (hq x) (sq_nonneg r) + _ = 10*ρ^2 := by field_simp [hr.ne'] + refine ⟨fun x => a x/r^2,fun x => b x/r^2,hscale a ha,hscale b hb,?_,?_,?_,?_⟩ + · exact hbound a (fun x => by rw [abs_of_nonneg (hab x).1]; exact (hab x).2) + · apply hbound b + intro x + rw [abs_of_nonpos (hbb x).2] + linarith [(hbb x).1] + · intro x y + rw [← add_div] + calc (a x+b y)/r^2≤(dist x y^2/2)/r^2 := + div_le_div_of_nonneg_right (had x y) (sq_nonneg r) + _ = (dist x y/r)^2/2 := by ring + · filter_upwards [hc] with xy hxy + rw [← add_div,hxy] + ring + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/ResolvePathBranch.lean b/lean/OAI/Geometry/RCD/Transport/ResolvePathBranch.lean new file mode 100644 index 0000000000000000000000000000000000000000..a41a9c8c9e41c2c4791a1bda50353abb2c4e5ca9 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/ResolvePathBranch.lean @@ -0,0 +1,95 @@ +import OAI.Geometry.RCD.Transport.PathMeetingSplice +import Mathlib.MeasureTheory.Constructions.BorelSpace.ContinuousMap + +namespace OAI + +/-! # A measurable splice which removes repeated meetings before a fixed time -/ + +open Set Filter MeasureTheory TopologicalSpace +open scoped Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] + +def resolvePathBranch (q : Time) (z : C(Time,X)×C(Time,X)) : C(Time,X) := by + classical + exact if h : z.1 0=z.2 0 then + splicePathAt (lastPathAgreement q z) z.1 z.2 (lastPathAgreement_eq q h) else z.2 + +theorem resolvePathBranch_apply (q : Time) (z : C(Time,X)×C(Time,X)) + (hz : z.1 0=z.2 0) (s : Time) : + resolvePathBranch q z s=if s≤lastPathAgreement q z then z.1 s else z.2 s := by + simp [resolvePathBranch,hz,splicePathAt] + +theorem resolvePathBranch_zero (q : Time) (z : C(Time,X)×C(Time,X)) : + resolvePathBranch q z 0=z.2 0 := by + classical + by_cases hz : z.1 0=z.2 0 + · simp [resolvePathBranch,hz,splicePathAt_zero] + · simp [resolvePathBranch,hz] + +theorem resolvePathBranch_one (q : Time) (z : C(Time,X)×C(Time,X)) : + resolvePathBranch q z 1=z.2 1 := by + classical + by_cases hz : z.1 0=z.2 0 <;> simp [resolvePathBranch,hz,splicePathAt_one] + +theorem resolvePathBranch_choice (q : Time) (z : C(Time,X)×C(Time,X)) (s : Time) : + resolvePathBranch q z s=z.1 s ∨ resolvePathBranch q z s=z.2 s := by + classical + by_cases hz : z.1 0=z.2 0 + · rw [resolvePathBranch_apply q z hz] + split_ifs <;> simp + · simp [resolvePathBranch,hz] + +theorem resolvePathBranch_ne_after (q : Time) (z : C(Time,X)×C(Time,X)) + (hz : z.1 0=z.2 0) {s : Time} (hs : lastPathAgreement q z + if s≤lastPathAgreement q z then z.1 s else z.2 s) := + Measurable.ite hs ((measurable_path_eval s).comp measurable_fst) + ((measurable_path_eval s).comp measurable_snd) + have h : Measurable (fun z : C(Time,X)×C(Time,X) => + if z.1 0=z.2 0 then (if s≤lastPathAgreement q z then z.1 s else z.2 s) else z.2 s) := + Measurable.ite h0 hi ((measurable_path_eval s).comp measurable_snd) + convert h using 1 + funext z + by_cases hz : z.1 0=z.2 0 <;> simp [resolvePathBranch,splicePathAt,hz] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/ResolvedBranchMeasure.lean b/lean/OAI/Geometry/RCD/Transport/ResolvedBranchMeasure.lean new file mode 100644 index 0000000000000000000000000000000000000000..3146dd90069cbf6f2fa66d4bc8c477d8df974eb5 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/ResolvedBranchMeasure.lean @@ -0,0 +1,93 @@ +import OAI.Geometry.RCD.Transport.ResolvePathBranch + +namespace OAI + +/-! # Endpoint and compression control for the measurable branch splice -/ + +open Set Filter MeasureTheory TopologicalSpace +open scoped Topology +noncomputable section +namespace RegularPointCoordinates + +theorem map_le_add_of_choice {Ω Y : Type*} [MeasurableSpace Ω] [MeasurableSpace Y] + (μ : Measure Ω) {f g h : Ω → Y} (hf : Measurable f) (hg : Measurable g) + (hh : Measurable h) (hc : ∀ x, h x=f x ∨ h x=g x) : + μ.map h≤μ.map f+μ.map g := by + apply Measure.le_iff.mpr + intro A hA + rw [Measure.add_apply,Measure.map_apply hh hA,Measure.map_apply hf hA,Measure.map_apply hg hA] + apply (measure_mono ?_).trans (measure_union_le _ _) + intro x hx + rcases hc x with he | he + · exact Or.inl (by simpa only [mem_preimage,he] using hx) + · exact Or.inr (by simpa only [mem_preimage,he] using hx) + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [SeparableSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem resolved_branch_endpoints (q : Time) (σ : Measure (C(Time,X)×C(Time,X))) : + (σ.map (resolvePathBranch q)).map (fun γ => (γ 0,γ 1))= + (σ.map Prod.snd).map (fun γ => (γ 0,γ 1)) := by + rw [Measure.map_map ((measurable_path_eval 0).prodMk (measurable_path_eval 1)) + (measurable_resolvePathBranch q), + Measure.map_map ((measurable_path_eval 0).prodMk (measurable_path_eval 1)) measurable_snd] + apply Measure.map_congr + exact .of_forall fun z => Prod.ext (resolvePathBranch_zero q z) (resolvePathBranch_one q z) + +theorem resolved_branch_endpoint_time (q : Time) (σ : Measure (C(Time,X)×C(Time,X))) + (t : Time) (ht : t=0 ∨ t=1) : + (σ.map (resolvePathBranch q)).map (fun γ => γ t)= + (σ.map Prod.snd).map (fun γ => γ t) := by + rw [Measure.map_map (measurable_path_eval t) (measurable_resolvePathBranch q), + Measure.map_map (measurable_path_eval t) measurable_snd] + apply Measure.map_congr + apply Filter.Eventually.of_forall + intro z + rcases ht with rfl | rfl + · exact resolvePathBranch_zero q z + · exact resolvePathBranch_one q z + +theorem resolved_branch_optimal (q : Time) (σ : Measure (C(Time,X)×C(Time,X))) + (hp : IsOptimalCoupling ((σ.map Prod.snd).map (fun γ => γ 0)) + ((σ.map Prod.snd).map (fun γ => γ 1)) + ((σ.map Prod.snd).map (fun γ => (γ 0,γ 1)))) : + IsOptimalCoupling ((σ.map (resolvePathBranch q)).map (fun γ => γ 0)) + ((σ.map (resolvePathBranch q)).map (fun γ => γ 1)) + ((σ.map (resolvePathBranch q)).map (fun γ => (γ 0,γ 1))) := by + rw [resolved_branch_endpoint_time q σ 0 (Or.inl rfl), + resolved_branch_endpoint_time q σ 1 (Or.inr rfl),resolved_branch_endpoints] + exact hp + +theorem resolved_branch_compression (q : Time) (σ : Measure (C(Time,X)×C(Time,X))) (t : Time) : + (σ.map (resolvePathBranch q)).map (fun γ => γ t)≤ + (σ.map Prod.fst).map (fun γ => γ t)+(σ.map Prod.snd).map (fun γ => γ t) := by + rw [Measure.map_map (measurable_path_eval t) (measurable_resolvePathBranch q), + Measure.map_map (measurable_path_eval t) measurable_fst, + Measure.map_map (measurable_path_eval t) measurable_snd] + exact map_le_add_of_choice σ ((measurable_path_eval t).comp measurable_fst) + ((measurable_path_eval t).comp measurable_snd) + ((measurable_path_eval t).comp (measurable_resolvePathBranch q)) + (fun z => resolvePathBranch_choice q z t) + +theorem resolved_branch_geodesic (q : Time) (σ : Measure (C(Time,X)×C(Time,X))) + (hg : ∀ᵐ z ∂σ, IsGeodesic z.1 ∧ IsGeodesic z.2) : + ∀ᵐ γ ∂σ.map (resolvePathBranch q), IsGeodesic γ := by + apply (ae_map_iff (measurable_resolvePathBranch q).aemeasurable + isClosed_geodesicSet.measurableSet).mpr + exact hg.mono fun z hz => resolvePathBranch_isGeodesic q z hz.1 hz.2 + +omit [MeasurableSpace X] [BorelSpace X] [SeparableSpace X] in +theorem resolved_branch_common_past (q : Time) {z : C(Time,X)×C(Time,X)} + {T : Time} (hT : T≤q) (hz : z∈pathAgreement (T:ℝ)) : + ∀ r : Time, r≤T → z.1 r=resolvePathBranch q z r := by + have h0 : z.1 0=z.2 0 := hz 0 T.property.1 + have hlast : T≤lastPathAgreement q z := + (lastPathAgreement_isGreatest q z).2 (Or.inr ⟨hT,hz T le_rfl⟩) + intro r hr + rw [resolvePathBranch_apply q z h0,ite_eq_left (hr.trans hlast)] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/ResolvedBranchMixture.lean b/lean/OAI/Geometry/RCD/Transport/ResolvedBranchMixture.lean new file mode 100644 index 0000000000000000000000000000000000000000..7cce01c32249b6dae230918097275c85516e274f --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/ResolvedBranchMixture.lean @@ -0,0 +1,104 @@ +import OAI.Geometry.RCD.Transport.ResolvedSubplanOptimality + +namespace OAI + +/-! # The half mixture as an actual resolved paired subplan -/ + +open Set Filter MeasureTheory TopologicalSpace +open scoped ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [SeparableSpace X] +attribute [local instance] pathBorel pathBorelSpace + +def diagonalFirst (z : C(Time,X)×C(Time,X)) : C(Time,X)×C(Time,X) := (z.1,z.1) + +def halfResolvedPair (σ : Measure (C(Time,X)×C(Time,X))) : + Measure (C(Time,X)×C(Time,X)) := (2:ℝ≥0∞)⁻¹ • (σ.map diagonalFirst + σ) + +omit [MeasurableSpace X] [BorelSpace X] [SeparableSpace X] in +theorem measurable_diagonalFirst : Measurable (diagonalFirst (X:=X)) := + measurable_fst.prodMk measurable_fst + +omit [MeasurableSpace X] [BorelSpace X] [SeparableSpace X] in +theorem resolvePathBranch_diagonal (q : Time) (γ : C(Time,X)) : + resolvePathBranch q (γ,γ)=γ := by + ext t + exact (resolvePathBranch_choice q (γ,γ) t).elim id id + +omit [MetricSpace X] [BorelSpace X] [SeparableSpace X] in +theorem half_smul_self (μ : Measure X) : (2:ℝ≥0∞)⁻¹ • (μ+μ)=μ := by + rw [←two_smul ℝ≥0∞ μ,smul_smul] + rw [ENNReal.inv_mul_cancel (by norm_num) (by norm_num),one_smul] + +omit [MeasurableSpace X] [BorelSpace X] [SeparableSpace X] in +theorem diagonalFirst_fst (σ : Measure (C(Time,X)×C(Time,X))) : + (σ.map diagonalFirst).map Prod.fst=σ.map Prod.fst := by + rw [Measure.map_map measurable_fst measurable_diagonalFirst] + rfl + +omit [MeasurableSpace X] [BorelSpace X] [SeparableSpace X] in +theorem diagonalFirst_snd (σ : Measure (C(Time,X)×C(Time,X))) : + (σ.map diagonalFirst).map Prod.snd=σ.map Prod.fst := by + rw [Measure.map_map measurable_snd measurable_diagonalFirst] + rfl + +omit [MeasurableSpace X] [BorelSpace X] [SeparableSpace X] in +theorem halfResolvedPair_fst (σ : Measure (C(Time,X)×C(Time,X))) : + (halfResolvedPair σ).map Prod.fst=σ.map Prod.fst := by + rw [halfResolvedPair,Measure.map_smul _ measurable_fst.aemeasurable, + Measure.map_add _ _ measurable_fst,diagonalFirst_fst] + exact half_smul_self _ + +omit [MeasurableSpace X] [BorelSpace X] [SeparableSpace X] in +theorem halfResolvedPair_snd (σ : Measure (C(Time,X)×C(Time,X))) : + (halfResolvedPair σ).map Prod.snd=(2:ℝ≥0∞)⁻¹ • (σ.map Prod.fst+σ.map Prod.snd) := by + rw [halfResolvedPair,Measure.map_smul _ measurable_snd.aemeasurable, + Measure.map_add _ _ measurable_snd,diagonalFirst_snd] + +omit [MeasurableSpace X] [BorelSpace X] [SeparableSpace X] in +theorem halfResolvedPair_mass (σ : Measure (C(Time,X)×C(Time,X))) : + halfResolvedPair σ univ=σ univ := by + have h := congrArg (fun μ : Measure C(Time,X) => μ univ) (halfResolvedPair_fst σ) + simpa only [Measure.map_apply measurable_fst MeasurableSet.univ,preimage_univ] using h + +instance halfResolvedPair_finite (σ : Measure (C(Time,X)×C(Time,X))) [IsFiniteMeasure σ] : + IsFiniteMeasure (halfResolvedPair σ) := + ⟨by rw [halfResolvedPair_mass]; exact measure_lt_top _ _⟩ + +omit [MeasurableSpace X] [BorelSpace X] [SeparableSpace X] in +theorem halfResolvedPair_dominated (σ : Measure (C(Time,X)×C(Time,X))) + (π : Measure C(Time,X)) (hl : σ.map Prod.fst ≤ π) (hr : σ.map Prod.snd ≤ π) : + (halfResolvedPair σ).map Prod.fst ≤ π ∧ (halfResolvedPair σ).map Prod.snd ≤ π := by + constructor + · simpa only [halfResolvedPair_fst] using hl + · rw [halfResolvedPair_snd] + exact (smul_le_smul_left ((2:ℝ≥0∞)⁻¹) (add_le_add hl hr)).trans_eq (half_smul_self π) + +theorem diagonalFirst_resolved (σ : Measure (C(Time,X)×C(Time,X))) (q : Time) : + (σ.map diagonalFirst).map (resolvePathBranch q)=σ.map Prod.fst := by + rw [Measure.map_map (measurable_resolvePathBranch q) measurable_diagonalFirst] + congr 1 + funext z + exact resolvePathBranch_diagonal q z.1 + +theorem halfResolvedPair_resolved (σ : Measure (C(Time,X)×C(Time,X))) (q : Time) : + (halfResolvedPair σ).map (resolvePathBranch q)= + (2:ℝ≥0∞)⁻¹ • (σ.map Prod.fst+σ.map (resolvePathBranch q)) := by + rw [halfResolvedPair,Measure.map_smul _ (measurable_resolvePathBranch q).aemeasurable, + Measure.map_add _ _ (measurable_resolvePathBranch q),diagonalFirst_resolved] + +theorem normalized_halfResolvedPair (σ : Measure (C(Time,X)×C(Time,X))) (q : Time) : + (((halfResolvedPair σ) univ)⁻¹ • halfResolvedPair σ).map (resolvePathBranch q)= + (2:ℝ≥0∞)⁻¹ • (((σ univ)⁻¹ • σ).map Prod.fst+ + ((σ univ)⁻¹ • σ).map (resolvePathBranch q)) := by + rw [halfResolvedPair_mass,Measure.map_smul _ (measurable_resolvePathBranch q).aemeasurable, + halfResolvedPair_resolved,Measure.map_smul _ measurable_fst.aemeasurable, + Measure.map_smul _ (measurable_resolvePathBranch q).aemeasurable, + smul_comm,smul_add] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/ResolvedBranchSelection.lean b/lean/OAI/Geometry/RCD/Transport/ResolvedBranchSelection.lean new file mode 100644 index 0000000000000000000000000000000000000000..9751d6b7ee6a98c9ecb98817296707e319e69270 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/ResolvedBranchSelection.lean @@ -0,0 +1,88 @@ +import OAI.Geometry.RCD.Transport.ResolvedBranchWindow +import OAI.Geometry.RCD.Metric.RealSliceSelection + +namespace OAI + +/-! # Quantitative selection of two branches with a common past + +The chosen pair restriction has mass at least a fixed multiple of the time +mesh, equal past marginals, and mutually singular future marginals. +-/ + +open Set Filter MeasureTheory TopologicalSpace +open scoped Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [SeparableSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem select_resolved_branches (σ : Measure (C(Time,X)×C(Time,X))) [IsFiniteMeasure σ] + (hσ : σ univ ≠ 0) (T S q : Time) (hTS : T ≤ S) (hSq : S ≤ q) + (h0 : ∀ᵐ z ∂σ, z.1 0=z.2 0) + (hroot : ∀ᵐ z ∂σ, (T:ℝ) ≤ (lastPathAgreement q z:ℝ) ∧ + (lastPathAgreement q z:ℝ) < (S:ℝ)) {n : ℕ} (hn : 0 < n) : + ∃ s t : Time, ∃ κ : Measure (C(Time,X)×C(Time,X)), + T ≤ s ∧ s ≤ t ∧ t ≤ S ∧ (t:ℝ)-(s:ℝ)=((S:ℝ)-(T:ℝ))/(n:ℝ) ∧ + κ ≤ σ ∧ σ.real univ/(5*(n:ℝ)) < κ.real univ ∧ + (∀ r : Time, r ≤ s → κ.map (fun z => z.1 r)=κ.map (fun z => resolvePathBranch q z r)) ∧ + κ.map (fun z => z.1 t) ⟂ₘ κ.map (fun z => resolvePathBranch q z t) := by + have hmeas : Measurable (fun z : C(Time,X)×C(Time,X) => (lastPathAgreement q z:ℝ)) := + (measurable_lastPathAgreement q).subtype_coe + obtain ⟨k,hk,hmass⟩ := exists_large_real_slice σ hmeas (show (T:ℝ) ≤ (S:ℝ) from hTS) hroot hn + have hmono := intervalGrid_monotone (show (T:ℝ) ≤ (S:ℝ) from hTS) hn + have hslo : (T:ℝ) ≤ intervalGrid T S n k := by + simpa only [intervalGrid_zero] using hmono (Nat.zero_le k) + have hst : intervalGrid T S n k ≤ intervalGrid T S n (k+1) := hmono (Nat.le_succ k) + have hthi : intervalGrid T S n (k+1) ≤ (S:ℝ) := by + simpa only [intervalGrid_self _ _ hn] using hmono (Nat.succ_le_of_lt hk) + let s : Time := ⟨intervalGrid T S n k,⟨T.property.1.trans hslo,(hst.trans hthi).trans S.property.2⟩⟩ + let t : Time := ⟨intervalGrid T S n (k+1),⟨T.property.1.trans (hslo.trans hst),hthi.trans S.property.2⟩⟩ + let F : Set (C(Time,X)×C(Time,X)) := + {z | (s:ℝ) ≤ (lastPathAgreement q z:ℝ) ∧ (lastPathAgreement q z:ℝ) < (t:ℝ)} + have hF : MeasurableSet F := + (measurableSet_le measurable_const hmeas).inter (measurableSet_lt hmeas measurable_const) + let ρ := σ.restrict F + have hρmass : σ.real univ/(n:ℝ) ≤ ρ.real univ := by + simpa only [ρ,F,s,t,Measure.real,Measure.restrict_apply_univ] using hmass + have hσpos : 0 < σ.real univ := ENNReal.toReal_pos hσ (measure_ne_top _ _) + have hρpos : 0 < ρ.real univ := lt_of_lt_of_le (div_pos hσpos (by positivity)) hρmass + have hρ0 : ∀ᵐ z ∂ρ, z.1 0=z.2 0 := + h0.filter_mono Measure.restrict_le_self.absolutelyContinuous.ae_le + have hne : ∀ᵐ z ∂ρ, z.1 t ≠ resolvePathBranch q z t := by + filter_upwards [ae_restrict_mem hF,hρ0] with z hz hz0 + exact resolvePathBranch_ne_after q z hz0 hz.2 (le_trans (show t ≤ S from hthi) hSq) + have hdiff : ρ.real {z | z.1 t ≠ resolvePathBranch q z t}=ρ.real univ := by + apply congrArg ENNReal.toReal + apply measure_congr + filter_upwards [hne] with z hz + change (z.1 t ≠ resolvePathBranch q z t)=True + exact propext ⟨fun _ => trivial,fun _ => hz⟩ + obtain ⟨A,hA,hcut,hsing⟩ := exists_separated_restriction ρ + (f:=fun z => z.1 t) (g:=fun z => resolvePathBranch q z t) + ((measurable_path_eval t).comp measurable_fst) + ((measurable_path_eval t).comp (measurable_resolvePathBranch q)) + (by rw [hdiff]; exact hρpos) + let κ := ρ.restrict A + have hκρ : κ ≤ ρ := Measure.restrict_le_self + have hκσ : κ ≤ σ := hκρ.trans Measure.restrict_le_self + refine ⟨s,t,κ,hslo,hst,hthi,?_,hκσ,?_,?_,hsing⟩ + · change intervalGrid T S n (k+1)-intervalGrid T S n k=_ + simp only [intervalGrid,Nat.cast_add,Nat.cast_one] + ring + · rw [hdiff] at hcut + have h := div_le_div_of_nonneg_right hρmass (by norm_num : (0:ℝ) ≤ 5) + have h' : σ.real univ/(5*(n:ℝ)) ≤ ρ.real univ/5 := by + simpa only [div_div,mul_comm] using h + exact h'.trans_lt hcut + · intro r hr + apply Measure.map_congr + filter_upwards [(ae_restrict_mem hF).filter_mono hκρ.absolutelyContinuous.ae_le, + h0.filter_mono hκσ.absolutelyContinuous.ae_le] with z hz hz0 + rw [resolvePathBranch_apply q z hz0, + ite_eq_left (hr.trans (show s ≤ lastPathAgreement q z from hz.1))] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/ResolvedBranchWindow.lean b/lean/OAI/Geometry/RCD/Transport/ResolvedBranchWindow.lean new file mode 100644 index 0000000000000000000000000000000000000000..8c81dd725a9153b6dad6704b7cd89cd41e67cf8b --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/ResolvedBranchWindow.lean @@ -0,0 +1,60 @@ +import OAI.Geometry.RCD.Transport.ResolvedPairAgreement +import OAI.Geometry.RCD.Sobolev.PositiveSublevelWindow + +namespace OAI + +/-! # A positive family of branches inside one fixed time window -/ + +open Set Filter MeasureTheory TopologicalSpace +open scoped Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [SeparableSpace X] +attribute [local instance] pathBorel pathBorelSpace + +omit [MeasurableSpace X] [BorelSpace X] in +theorem exists_resolved_branch_window (σ : Measure (C(Time,X)×C(Time,X))) + (hσ : σ univ≠0) (T q : Time) (hTq : T≤q) + (hpast : ∀ᵐ z ∂σ, z∈pathAgreement (T:ℝ)) + (hdiff : ∀ᵐ z ∂σ, z.1 q≠z.2 q) : + ∃ S : Time, T (lastPathAgreement q z:ℝ)) hmass + have hmin : ∀ᵐ z ∂σ, (T:ℝ)≤(lastPathAgreement q z:ℝ) := by + filter_upwards [hpast] with z hz + exact (lastPathAgreement_isGreatest q z).2 (Or.inr ⟨hTq,hz T le_rfl⟩) + have hTs := smaller_sublevel_above_ae_lower_bound σ hmin hs + let S : Time := ⟨s,⟨T.property.1.trans hTs.le,hsq.le.trans q.property.2⟩⟩ + have hA : MeasurableSet {z : C(Time,X)×C(Time,X) | (lastPathAgreement q z:ℝ) resolvePathBranch_ne_after q z h0 hr hrq + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/ResolvedPairAgreement.lean b/lean/OAI/Geometry/RCD/Transport/ResolvedPairAgreement.lean new file mode 100644 index 0000000000000000000000000000000000000000..44169868defe285c60dac512746f502af3e9cd80 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/ResolvedPairAgreement.lean @@ -0,0 +1,55 @@ +import OAI.Geometry.RCD.Transport.ResolvedBranchMeasure + +namespace OAI + +/-! # The resolved pair has a single initial interval of agreement -/ + +open Set Filter MeasureTheory TopologicalSpace +open scoped Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] + +def resolvedPathPair (q : Time) (z : C(Time,X)×C(Time,X)) : C(Time,X)×C(Time,X) := + (z.1,resolvePathBranch q z) + +theorem resolved_pair_agreement_iff (q : Time) (z : C(Time,X)×C(Time,X)) + (hz : z.1 0=z.2 0) {t : Time} (htq : t≤q) : + resolvedPathPair q z∈pathAgreement (t:ℝ) ↔ t≤lastPathAgreement q z := by + constructor + · intro ht + by_contra h + exact resolvePathBranch_ne_after q z hz (lt_of_not_ge h) htq (ht t le_rfl) + · intro ht r hr + change z.1 r=resolvePathBranch q z r + rw [resolvePathBranch_apply q z hz,ite_eq_left ((show r≤t from hr).trans ht)] + +theorem resolved_pair_distinct_at (q : Time) (z : C(Time,X)×C(Time,X)) + (hz : z.1 0=z.2 0) (hq : z.1 q≠z.2 q) : + lastPathAgreement q z γ t) ≤ C • μ) (q t : Time) : + (((σ univ)⁻¹ • σ).map (resolvePathBranch q)).map (fun γ => γ t) ≤ + (2*((σ univ)⁻¹*C)) • μ := by + let c := (σ univ)⁻¹ + have hside (f : C(Time,X)×C(Time,X) → C(Time,X)) (hf : Measurable f) + (hdom : σ.map f ≤ π) : + ((c • σ).map f).map (fun γ => γ t) ≤ (c*C) • μ := by + rw [Measure.map_map (measurable_path_eval t) hf, + Measure.map_smul _ ((measurable_path_eval t).comp hf).aemeasurable] + have hmap : σ.map ((fun γ => γ t) ∘ f) ≤ π.map (fun γ => γ t) := by + rw [←Measure.map_map (measurable_path_eval t) hf] + exact Measure.map_mono hdom (measurable_path_eval t) + exact (smul_le_smul_left c hmap).trans (by simpa only [smul_smul] using smul_le_smul_left c (hc t)) + have hsum := add_le_add (hside Prod.fst measurable_fst hl) (hside Prod.snd measurable_snd hr) + have h := (resolved_branch_compression q (c • σ) t).trans hsum + simpa only [←add_smul,←two_mul] using h + +theorem normalized_resolved_endpoint_support (π : Measure C(Time,X)) + (σ : Measure (C(Time,X)×C(Time,X))) (hr : σ.map Prod.snd ≤ π) + (q t : Time) (ht : t=0 ∨ t=1) {p : X} {R : ℝ} + (hs : ∀ᵐ x ∂π.map (fun γ => γ t), dist x p ≤ R) : + ∀ᵐ x ∂(((σ univ)⁻¹ • σ).map (resolvePathBranch q)).map (fun γ => γ t), dist x p ≤ R := by + rw [resolved_branch_endpoint_time q _ t ht, + Measure.map_map (measurable_path_eval t) measurable_snd] + have hm : Measurable (fun z : C(Time,X)×C(Time,X) => z.2 t) := + (measurable_path_eval t).comp measurable_snd + change ∀ᵐ x ∂((σ univ)⁻¹ • σ).map (fun z => z.2 t), dist x p ≤ R + rw [Measure.map_smul _ hm.aemeasurable] + have hdom : σ.map (fun z => z.2 t) ≤ π.map (fun γ => γ t) := by + simpa only [Measure.map_map (measurable_path_eval t) measurable_snd,Function.comp_def] using + Measure.map_mono hr (measurable_path_eval t) + exact (hs.filter_mono hdom.absolutelyContinuous.ae_le).filter_mono + Measure.smul_absolutelyContinuous.ae_le + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/ResolvedSubplanEntropy.lean b/lean/OAI/Geometry/RCD/Transport/ResolvedSubplanEntropy.lean new file mode 100644 index 0000000000000000000000000000000000000000..2bf11f1b032bb774a6ffc6cbd97c7f0d46784546 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/ResolvedSubplanEntropy.lean @@ -0,0 +1,59 @@ +import OAI.Geometry.RCD.Transport.ResolvedSubplanCompression +import OAI.Geometry.RCD.Transport.BoundedPlanEntropyChord + +namespace OAI + +/-! # Entropy convexity for the actual normalized resolved branch family -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped ENNReal NNReal Topology +noncomputable section +namespace RegularPointCoordinates.NoncollapsedRCD +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] [SeparableSpace X] {K : ℝ} {n : ℕ} + [IsLocallyFiniteMeasure (hausdorff n X)] (hX : NoncollapsedRCD K n X) +include hX +attribute [local instance] pathBorel pathBorelSpace + +theorem resolved_subplan_entropy_chord (hn : 2 ≤ n) (p : X) {R : ℝ} (hR : 0 ≤ R) + (π : Measure C(Time,X)) [IsProbabilityMeasure π] (hg : ∀ᵐ γ ∂π, IsGeodesic γ) + (hp : IsOptimalCoupling (π.map (fun γ => γ 0)) (π.map (fun γ => γ 1)) + (π.map (fun γ => (γ 0,γ 1)))) + {C : ℝ≥0} (hcomp : ∀ t : Time, π.map (fun γ => γ t) ≤ ENNReal.ofReal C • hausdorff n X) + (hs₀ : ∀ᵐ x ∂π.map (fun γ => γ 0), dist x p ≤ R) + (hs₁ : ∀ᵐ x ∂π.map (fun γ => γ 1), dist x p ≤ R) + (σ : Measure (C(Time,X)×C(Time,X))) [IsFiniteMeasure σ] (hσ : σ univ ≠ 0) + (hl : σ.map Prod.fst ≤ π) (hr : σ.map Prod.snd ≤ π) (q s t r : Time) : + let τ := ((σ univ)⁻¹ • σ).map (resolvePathBranch q) + boltzmannEntropy (hausdorff n X) (τ.map (fun γ => γ (timeSegment s t r))) ≤ + (1-(r:ℝ))*boltzmannEntropy (hausdorff n X) (τ.map (fun γ => γ s))+ + (r:ℝ)*boltzmannEntropy (hausdorff n X) (τ.map (fun γ => γ t))+ + (|K|/2)*(2*R)^2*(r:ℝ)*(1-(r:ℝ))*|(s:ℝ)-(t:ℝ)|^2 := by + have hfin := coupling_transportCost_ne_top hp.1 hp.2.1 p + (integrable_dist_sq_of_ae_bounded _ p hs₀) (integrable_dist_sq_of_ae_bounded _ p hs₁) + obtain ⟨hprob,hgτ,hpτ⟩ := normalized_resolved_subplan_optimal π hg hp hfin σ hσ hl hr q + let τ := ((σ univ)⁻¹ • σ).map (resolvePathBranch q) + let : IsProbabilityMeasure τ := hprob + let c := (σ univ)⁻¹ + have hct : c≠∞ := ENNReal.inv_ne_top.mpr hσ + let B : ℝ≥0 := ⟨2*(c.toReal*(C:ℝ)),mul_nonneg (by norm_num) + (mul_nonneg ENNReal.toReal_nonneg C.coe_nonneg)⟩ + have hB : ENNReal.ofReal B=2*(c*ENNReal.ofReal C) := by + change ENNReal.ofReal ((2:ℝ)*(c.toReal*(C:ℝ)))=_ + rw [ENNReal.ofReal_mul (by norm_num),ENNReal.ofReal_mul ENNReal.toReal_nonneg, + ENNReal.ofReal_toReal hct] + norm_num + have hcτ (u : Time) : τ.map (fun γ => γ u) ≤ ENNReal.ofReal B • hausdorff n X := by + rw [hB] + exact normalized_resolved_compression (hausdorff n X) π σ hl hr hcomp q u + have hτ₀ : ∀ᵐ x ∂τ.map (fun γ => γ 0), dist x p ≤ R := + normalized_resolved_endpoint_support π σ hr q 0 (Or.inl rfl) hs₀ + have hτ₁ : ∀ᵐ x ∂τ.map (fun γ => γ 1), dist x p ≤ R := + normalized_resolved_endpoint_support π σ hr q 1 (Or.inr rfl) hs₁ + exact hX.bounded_plan_entropy_chord hn p hR τ hgτ hpτ hcτ hτ₀ hτ₁ s t r + +end RegularPointCoordinates.NoncollapsedRCD + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/ResolvedSubplanEntropyBounds.lean b/lean/OAI/Geometry/RCD/Transport/ResolvedSubplanEntropyBounds.lean new file mode 100644 index 0000000000000000000000000000000000000000..320504eb9481a40f19349dfcdbf55c4c68b7d0fd --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/ResolvedSubplanEntropyBounds.lean @@ -0,0 +1,65 @@ +import OAI.Geometry.RCD.Transport.ResolvedSubplanEntropy +import OAI.Geometry.RCD.Transport.BoundedPlanEntropyBounds + +namespace OAI + +/-! # Mass-dependent bounds for the actual resolved branch entropy -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped ENNReal NNReal Topology +noncomputable section +namespace RegularPointCoordinates.NoncollapsedRCD +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] [SeparableSpace X] {K : ℝ} {n : ℕ} + (hX : NoncollapsedRCD K n X) +include hX +attribute [local instance] pathBorel pathBorelSpace + +theorem resolved_subplan_entropy_bounds (p : X) {R : ℝ} (hR : 0 ≤ R) + (π : Measure C(Time,X)) [IsProbabilityMeasure π] (hg : ∀ᵐ γ ∂π, IsGeodesic γ) + (hp : IsOptimalCoupling (π.map (fun γ => γ 0)) (π.map (fun γ => γ 1)) + (π.map (fun γ => (γ 0,γ 1)))) + {C : ℝ≥0} (hC : 0 < C) + (hc : ∀ t : Time, π.map (fun γ => γ t) ≤ ENNReal.ofReal C • hausdorff n X) + (hs₀ : ∀ᵐ x ∂π.map (fun γ => γ 0), dist x p ≤ R) + (hs₁ : ∀ᵐ x ∂π.map (fun γ => γ 1), dist x p ≤ R) + (σ : Measure (C(Time,X)×C(Time,X))) [IsFiniteMeasure σ] (hσ : σ univ ≠ 0) + (hl : σ.map Prod.fst ≤ π) (hr : σ.map Prod.snd ≤ π) (q t : Time) : + let τ := ((σ univ)⁻¹ • σ).map (resolvePathBranch q); + -Real.log ((hausdorff n X).real (closedBall p (3*R))) ≤ + boltzmannEntropy (hausdorff n X) (τ.map (fun γ => γ t)) ∧ + boltzmannEntropy (hausdorff n X) (τ.map (fun γ => γ t)) ≤ + Real.log (2*(C:ℝ)/σ.real univ) ∧ + Integrable (fun x => ((τ.map (fun γ => γ t)).rnDeriv (hausdorff n X) x).toReal * + Real.log ((τ.map (fun γ => γ t)).rnDeriv (hausdorff n X) x).toReal) (hausdorff n X) := by + let : IsLocallyFiniteMeasure (hausdorff n X) := + locallyFinite_of_finiteOnBounded _ hX.finiteOnBounded + have hfin := coupling_transportCost_ne_top hp.1 hp.2.1 p + (integrable_dist_sq_of_ae_bounded _ p hs₀) (integrable_dist_sq_of_ae_bounded _ p hs₁) + obtain ⟨hprob,hgτ,hpτ⟩ := normalized_resolved_subplan_optimal π hg hp hfin σ hσ hl hr q + let τ := ((σ univ)⁻¹ • σ).map (resolvePathBranch q) + let : IsProbabilityMeasure τ := hprob + have hmass : 0 < σ.real univ := ENNReal.toReal_pos hσ (measure_ne_top _ _) + have hD : 0 < 2*(C:ℝ)/σ.real univ := div_pos (mul_pos (by norm_num) hC) hmass + have hcτ (u : Time) : τ.map (fun γ => γ u) ≤ + ENNReal.ofReal (2*(C:ℝ)/σ.real univ) • hausdorff n X := by + have he : ENNReal.ofReal (2*(C:ℝ)/σ.real univ)=2*((σ univ)⁻¹*ENNReal.ofReal C) := by + rw [div_eq_mul_inv,ENNReal.ofReal_mul (mul_nonneg (by norm_num) C.coe_nonneg), + ENNReal.ofReal_mul (by norm_num),ENNReal.ofReal_inv_of_pos hmass] + rw [show ENNReal.ofReal (σ.real univ)=σ univ from + ENNReal.ofReal_toReal (measure_ne_top _ _)] + norm_num + ring + rw [he] + exact normalized_resolved_compression (hausdorff n X) π σ hl hr hc q u + have hsτ₀ : ∀ᵐ x ∂τ.map (fun γ => γ 0), dist x p ≤ R := + normalized_resolved_endpoint_support π σ hr q 0 (Or.inl rfl) hs₀ + have hsτ₁ : ∀ᵐ x ∂τ.map (fun γ => γ 1), dist x p ≤ R := + normalized_resolved_endpoint_support π σ hr q 1 (Or.inr rfl) hs₁ + exact bounded_plan_entropy_bounds (hausdorff n X) p hR τ hgτ hpτ hD hcτ hsτ₀ hsτ₁ t + +end RegularPointCoordinates.NoncollapsedRCD + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/ResolvedSubplanOptimality.lean b/lean/OAI/Geometry/RCD/Transport/ResolvedSubplanOptimality.lean new file mode 100644 index 0000000000000000000000000000000000000000..45fa3c810b37daefeb789a7a524943965f635bf2 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/ResolvedSubplanOptimality.lean @@ -0,0 +1,58 @@ +import OAI.Geometry.RCD.Transport.ResolvedPairAgreement +import OAI.Geometry.RCD.Transport.EndpointDominatedOptimality + +namespace OAI + +/-! # Actual normalized optimal laws after resolving a paired subplan -/ + +open Set Filter MeasureTheory TopologicalSpace +open scoped ENNReal Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [SeparableSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem normalized_resolved_subplan_optimal + (π : Measure C(Time,X)) [IsProbabilityMeasure π] + (hg : ∀ᵐ γ ∂π, IsGeodesic γ) + (hp : IsOptimalCoupling (π.map (fun γ => γ 0)) (π.map (fun γ => γ 1)) + (π.map (fun γ => (γ 0,γ 1)))) + (hfin : transportCost (π.map (fun γ => (γ 0,γ 1))) ≠ ∞) + (σ : Measure (C(Time,X)×C(Time,X))) [IsFiniteMeasure σ] (hσ : σ univ ≠ 0) + (hl : σ.map Prod.fst ≤ π) (hr : σ.map Prod.snd ≤ π) (q : Time) : + let ρ := (σ univ)⁻¹ • σ + let τ := ρ.map (resolvePathBranch q) + IsProbabilityMeasure τ ∧ (∀ᵐ γ ∂τ, IsGeodesic γ) ∧ + IsOptimalCoupling (τ.map (fun γ => γ 0)) (τ.map (fun γ => γ 1)) + (τ.map (fun γ => (γ 0,γ 1))) := by + let : NeZero σ := ⟨by intro he; apply hσ; rw [he]; rfl⟩ + let ρ := (σ univ)⁻¹ • σ + let : IsProbabilityMeasure ρ := inferInstance + let τ := ρ.map (resolvePathBranch q) + have hg₀ : ∀ᵐ z ∂σ, IsGeodesic z.1 := + (ae_map_iff measurable_fst.aemeasurable isClosed_geodesicSet.measurableSet).mp + (hg.filter_mono hl.absolutelyContinuous.ae_le) + have hg₁ : ∀ᵐ z ∂σ, IsGeodesic z.2 := + (ae_map_iff measurable_snd.aemeasurable isClosed_geodesicSet.measurableSet).mp + (hg.filter_mono hr.absolutelyContinuous.ae_le) + have hρg : ∀ᵐ z ∂ρ, IsGeodesic z.1 ∧ IsGeodesic z.2 := + (hg₀.and hg₁).filter_mono Measure.smul_absolutelyContinuous.ae_le + refine ⟨inferInstance,resolved_branch_geodesic q ρ hρg,?_⟩ + have hm := (measurable_path_eval (X:=X) 0).prodMk (measurable_path_eval 1) + have hdom : σ.map (fun z => (z.2 0,z.2 1)) ≤ π.map (fun γ => (γ 0,γ 1)) := by + simpa only [Measure.map_map hm measurable_snd,Function.comp_def] using Measure.map_mono hr hm + apply optimal_of_endpoint_domination π τ hp hfin + (ENNReal.inv_ne_zero.mpr (measure_ne_top σ univ)) (ENNReal.inv_ne_top.mpr hσ) + rw [resolved_branch_endpoints q ρ,Measure.map_map hm measurable_snd] + change ((σ univ)⁻¹ • σ).map (fun z => (z.2 0,z.2 1)) ≤ _ + have hm' : Measurable (fun z : C(Time,X)×C(Time,X) => (z.2 0,z.2 1)) := + hm.comp measurable_snd + rw [Measure.map_smul _ hm'.aemeasurable] + intro B + exact mul_le_mul' le_rfl (hdom B) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/RestrictedMidpointContraction.lean b/lean/OAI/Geometry/RCD/Transport/RestrictedMidpointContraction.lean new file mode 100644 index 0000000000000000000000000000000000000000..260a3fa4c8c0b163cca87764b65d79a023f97246 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/RestrictedMidpointContraction.lean @@ -0,0 +1,53 @@ +import OAI.Geometry.RCD.Metric.MetricLimitLocalContraction + +namespace OAI + +/-! # Restricting the local contraction to an interior Euclidean ball -/ + +open Set Metric MeasureTheory +noncomputable section +namespace RegularPointCoordinates + +theorem restrict_midpoint_contraction {n : ℕ} + (μ : Measure (Euclidean n)) (z : Euclidean n) {S δ : ℝ} (hδ : 0 < δ) + (hroom : ‖z‖+2*δ < S) + (hc : ∀ u ∈ ball z δ, ∀ v ∈ ball z δ, ∀ r : ℝ, 0 < r → r ≤ δ → + (1/2:ℝ)^n*μ.real (ball v r) ≤ μ.real (closedBall ((1/2:ℝ) • (u+v)) (r/2))) : + ∀ u ∈ ball z δ, ∀ v ∈ ball z δ, ∀ r : ℝ, 0 < r → r ≤ δ → + (1/2:ℝ)^n*(μ.restrict (ball 0 S)).real (ball v r) ≤ + (μ.restrict (ball 0 S)).real (closedBall ((1/2:ℝ) • (u+v)) (r/2)) := by + intro u hu v hv r hr hrδ + have houter : ball z (2*δ) ⊆ ball (0 : Euclidean n) S := by + apply Metric.ball_subset_ball' + rw [dist_zero_right] + linarith + have hsource : ball v r ⊆ ball (0 : Euclidean n) S := by + apply Subset.trans _ houter + intro x hx + have hh := dist_triangle x v z + have hx' : dist x v < r := hx + have hv' : dist v z < δ := hv + change dist x z < 2*δ + linarith + have hmid : (1/2:ℝ) • (u+v) ∈ ball z δ := by + rw [smul_add] + exact (convex_ball z δ) hu hv (by norm_num) (by norm_num) (by norm_num) + have htarget : closedBall ((1/2:ℝ) • (u+v)) (r/2) ⊆ ball (0 : Euclidean n) S := by + apply Subset.trans _ houter + intro x hx + have hh := dist_triangle x ((1/2:ℝ) • (u+v)) z + have hx' : dist x ((1/2:ℝ) • (u+v)) ≤ r/2 := hx + have hm' : dist ((1/2:ℝ) • (u+v)) z < δ := hmid + change dist x z < 2*δ + linarith + have he (A : Set (Euclidean n)) (hA : MeasurableSet A) (hsub : A ⊆ ball 0 S) : + (μ.restrict (ball 0 S)).real A=μ.real A := by + rw [Measure.real,Measure.real,Measure.restrict_apply hA,inter_eq_left.mpr hsub] + rw [he _ measurableSet_ball hsource,he _ measurableSet_closedBall htarget] + exact hc u hu v hv r hr hrδ + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/ScaledPlanHessianLimit.lean b/lean/OAI/Geometry/RCD/Transport/ScaledPlanHessianLimit.lean new file mode 100644 index 0000000000000000000000000000000000000000..b0897e8c5d8f9e975a95b95a75e6a43330895a2f --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/ScaledPlanHessianLimit.lean @@ -0,0 +1,49 @@ +import OAI.Geometry.RCD.Harmonic.UniformLocalL1Pairing + +namespace OAI + +/-! # Scaled canonical Hessians paired against normalized compressed laws -/ + +open Set Filter MeasureTheory +open scoped Topology ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X Y : Type*} [MeasurableSpace X] + +theorem scaled_plan_hessian_limit (μ : Measure X) (S : ℕ → Set X) + (r m : ℕ → ℝ) (hr : ∀ k, 0 < r k) (hm : ∀ k, 0 < m k) + (ν : ℕ → Y → Measure X) {C : ℝ} (hC : 0 ≤ C) + (hν : ∀ k y, ν k y ≤ ENNReal.ofReal (C/m k) • μ.restrict (S k)) + (J : ∀ k, Y → Lp ℝ 1 (μ.restrict (S k))) + (hJ : TendstoUniformly (fun k y => (∫ x in S k, |J k y x| ∂μ)/(r k*m k)) + (fun _ => 0) atTop) : + TendstoUniformly (fun k y => (∫ x, J k y x ∂ν k y)/r k) (fun _ => 0) atTop := by + apply Metric.tendstoUniformly_iff.mpr + intro e he + have hδ : 0 < e/(C+1) := div_pos he (by positivity) + filter_upwards [(Metric.tendstoUniformly_iff.mp hJ) (e/(C+1)) hδ] with k hk y + have hbound := integral_difference_le_of_domination (μ.restrict (S k)) (ν k y) + ENNReal.ofReal_ne_top (hν k y) (memLp_one_iff_integrable.mp (Lp.memLp (J k y))) + (integrable_zero X ℝ _) + simp only [Pi.zero_apply,integral_zero,dist_zero_right,Real.norm_eq_abs,sub_zero, + ENNReal.toReal_ofReal (div_nonneg hC (hm k).le)] at hbound + have hsmall : (∫ x in S k, |J k y x| ∂μ)/(r k*m k) < e/(C+1) := by + have hh := hk y + simpa only [dist_zero_left,Real.norm_eq_abs,abs_of_nonneg + (div_nonneg (integral_nonneg fun x => abs_nonneg _) (mul_pos (hr k) (hm k)).le)] using hh + have hb : |(∫ x, J k y x ∂ν k y)/r k| ≤ + C*((∫ x in S k, |J k y x| ∂μ)/(r k*m k)) := by + rw [abs_div,abs_of_pos (hr k)] + apply (div_le_div_of_nonneg_right hbound (hr k).le).trans_eq + field_simp [(hr k).ne',(hm k).ne'] + have hce : C*(e/(C+1)) < e := by + have heq : e/(C+1)*(C+1)=e := div_mul_cancel₀ e (by positivity) + nlinarith + have hfinal := hb.trans_lt ((mul_le_mul_of_nonneg_left hsmall.le hC).trans_lt hce) + simpa only [dist_zero_left,Real.norm_eq_abs] using hfinal + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/ScaledRadialTransport.lean b/lean/OAI/Geometry/RCD/Transport/ScaledRadialTransport.lean new file mode 100644 index 0000000000000000000000000000000000000000..8950228f81e07147190ab8b1a23b9f4a08d796e8 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/ScaledRadialTransport.lean @@ -0,0 +1,122 @@ +import OAI.Geometry.RCD.Transport.ScaledRadialTransportEstimate + +namespace OAI + +/-! # The outer-ball estimate at arbitrary positive physical radius -/ + +open Set Metric MeasureTheory +open scoped NNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) [IsFiniteMeasureOnCompacts μ] + +omit [ProperSpace X] [IsFiniteMeasureOnCompacts μ] in +/-- Positivity of the actual cutoff converts annular energy to the +larger-ball norm. The inner sphere is harmless under Bishop--Gromov. -/ +theorem scaled_radial_transport_outer_from_energy {n : ℕ} {R : ℝ} (hR : 0 < R) + (z : X) {w : X → ℝ} (hw : MemLp w 2 μ) (hsphere : μ (sphere z R) = 0) : + let β := transportCutoffExponent n + let m := (R / 2) * (2 * R) ^ (-(β + 1)) + m * (∫ x in ball z (2 * R), (w x) ^ 2 ∂μ) ≤ + m * (∫ x in ball z R, (w x) ^ 2 ∂μ) + + ∫ x in ball z (4 * R), scaledTransportWeight n R z x * (w x) ^ 2 ∂μ := by + dsimp only + let m := (R / 2) * (2 * R) ^ (-(transportCutoffExponent n + 1)) + let ν := μ.restrict (ball z (4 * R)) + have hnot : ∀ᵐ x ∂ν, dist z x ≠ R := by + have hh := ae_restrict_of_ae (s := ball z (4 * R)) (measure_eq_zero_iff_ae_notMem.mp hsphere) + filter_upwards [hh] with x hx + simpa only [mem_sphere, dist_comm] using hx + have hR0 : 0 < R := hR + have hbound := hnot.mono fun x hx => + (scaled_transport_weight_geometry (n := n) hR (a := 0) le_rfl (by positivity) z x hx).1 + have hmeas : Measurable (scaledTransportWeight n R z) := + (transportDerivativeWeight_measurable n R z).const_mul (R / 2) + have hi : Integrable (fun x => scaledTransportWeight n R z x * (w x) ^ 2) ν := + (hw.restrict (ball z (4 * R))).integrable_sq.bdd_mul hmeas.aestronglyMeasurable + (hbound.mono fun x hx => by simpa only [Real.norm_eq_abs, abs_of_nonneg hx.1] using hx.2) + have hi₁ := ((hw.restrict (ball z (4 * R))).integrable_sq.indicator + (s := ball z (2 * R)) isOpen_ball.measurableSet).const_mul m + have hi₂ := ((hw.restrict (ball z (4 * R))).integrable_sq.indicator + (s := ball z R) isOpen_ball.measurableSet).const_mul m + have hp : ∀ᵐ x ∂ν, m * (ball z (2 * R)).indicator (fun x => (w x) ^ 2) x ≤ + m * (ball z R).indicator (fun x => (w x) ^ 2) x + + scaledTransportWeight n R z x * (w x) ^ 2 := by + filter_upwards [hnot] with x hx + have hh := mul_le_mul_of_nonneg_right (scaled_transport_interior_weight (n := n) hR z x hx) + (sq_nonneg (w x)) + dsimp only [m] + by_cases h₁ : x ∈ ball z R <;> by_cases h₂ : x ∈ ball z (2 * R) <;> + simp [indicator, h₁, h₂] at hh ⊢ <;> nlinarith only [hh] + have h := integral_mono_ae hi₁ (hi₂.add hi) hp + simp only [Pi.add_apply] at h + rw [integral_const_mul, integral_add hi₂ hi, integral_const_mul, + integral_indicator isOpen_ball.measurableSet, integral_indicator isOpen_ball.measurableSet] at h + have h₁ : ball z R ⊆ ball z (4 * R) := ball_subset_ball (by linarith) + have h₂ : ball z (2 * R) ⊆ ball z (4 * R) := ball_subset_ball (by linarith) + simpa only [ν, m, Measure.restrict_restrict_of_subset h₁, + Measure.restrict_restrict_of_subset h₂] using h + +variable (hQ : QuadraticCheegerEnergy μ) + +/-- Quantitative radial transport in its squared-norm form. Both error +terms stay quadratic, and all constants are independent of the residual's +possibly tiny inner norm. -/ +theorem scaled_radial_transport_squared {n : ℕ} {R a : ℝ} (hR : 0 < R) + (ha : 0 ≤ a) (han : a ≤ (n : ℝ) + 1) (z : X) + (f w : SobolevSpace μ hQ) + (hf : IsConstantLaplacianOn μ hQ (ball z (4 * R)) f a) + (C : ℝ≥0) (hw : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ w x| ≤ C) + (F e : X → ℝ) (hF : MemLp F 2 μ) (he : MemLp e 2 μ) + (heuler : localGamma μ hQ f w =ᵐ[μ.restrict (ball z (4 * R))] + fun x => SobolevSpace.toLp μ hQ w x + F x / 2) + (hradial : localGamma μ hQ f (inwardSobolev μ hQ z (3 * R)) + =ᵐ[μ.restrict (ball z (3 * R))] fun x => e x - dist z x) + (hsphere : μ (sphere z R) = 0) : + let β := transportCutoffExponent n + let D := (R ^ (-β) - (3 * R) ^ (-β)) / β + let Q := R ^ (-(β + 1)) + let m := (R / 2) * (2 * R) ^ (-(β + 1)) + (∫ x in ball z (2 * R), (SobolevSpace.toLp μ hQ w x) ^ 2 ∂μ) ≤ + (1 + 2 * ((a + 2) * D + D / 4) / m) * + (∫ x in ball z R, (SobolevSpace.toLp μ hQ w x) ^ 2 ∂μ) + + (2 * D / m) * (∫ x in ball z (4 * R), (F x) ^ 2 ∂μ) + + (4 * (C : ℝ) ^ 2 * Q / (R * m)) * (∫ x in ball z (4 * R), (e x) ^ 2 ∂μ) := by + dsimp only + have h₁ := scaled_radial_transport_annular_energy μ hQ hR ha han z f w hf C hw F e hF he heuler hradial hsphere + have h₂ := scaled_radial_transport_outer_from_energy μ (n := n) hR z (Lp.memLp (SobolevSpace.toLp μ hQ w)) hsphere + have hm : 0 < (R / 2) * (2 * R) ^ (-(transportCutoffExponent n + 1)) := by positivity + dsimp only at h₁ h₂ hm + have hh := h₂.trans (add_le_add le_rfl h₁) + rw [mul_comm + ((R / 2) * (2 * R) ^ (-(transportCutoffExponent n + 1))) + (∫ x in ball z (2 * R), (SobolevSpace.toLp μ hQ w x) ^ 2 ∂μ)] at hh + have hdiv := (le_div_iff₀ hm).mpr hh + refine hdiv.trans_eq ?_ + have halgebra (m A B C x y z : ℝ) (hm : m ≠ 0) : + (m * x + (A * x + B * y + C * z)) / m = + (1 + A / m) * x + (B / m) * y + (C / m) * z := by + field_simp + ring + convert halgebra + ((R / 2) * (2 * R) ^ (-(transportCutoffExponent n + 1))) + (2 * ((a + 2) * ((R ^ (-transportCutoffExponent n) - (3 * R) ^ (-transportCutoffExponent n)) / + transportCutoffExponent n) + + ((R ^ (-transportCutoffExponent n) - (3 * R) ^ (-transportCutoffExponent n)) / + transportCutoffExponent n) / 4)) + (2 * ((R ^ (-transportCutoffExponent n) - (3 * R) ^ (-transportCutoffExponent n)) / + transportCutoffExponent n)) + (4 * (C : ℝ) ^ 2 * R ^ (-(transportCutoffExponent n + 1)) / R) + (∫ x in ball z R, (SobolevSpace.toLp μ hQ w x) ^ 2 ∂μ) + (∫ x in ball z (4 * R), (F x) ^ 2 ∂μ) + (∫ x in ball z (4 * R), (e x) ^ 2 ∂μ) hm.ne' using 1 + ring + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/ScaledRadialTransportEstimate.lean b/lean/OAI/Geometry/RCD/Transport/ScaledRadialTransportEstimate.lean new file mode 100644 index 0000000000000000000000000000000000000000..859da6ed28c93ea345d91877ad32eacdb9164e20 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/ScaledRadialTransportEstimate.lean @@ -0,0 +1,152 @@ +import OAI.Geometry.RCD.Transport.RadialTransportEulerIdentity +import OAI.Geometry.RCD.Transport.ScaledRadialTransportGeometry +import OAI.Geometry.RCD.Transport.WeightedTransportEnergy + +namespace OAI + +/-! # Radial transport at arbitrary positive physical radius -/ + +open Set Metric MeasureTheory +open scoped NNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) [IsFiniteMeasureOnCompacts μ] (hQ : QuadraticCheegerEnergy μ) + +/-- The annular energy of the original bounded residual has a quadratic +bound from its inner norm and the two actual L2 errors. The cutoff and its +derivative are constructed, and the balance follows from the weak Laplacian. -/ +theorem scaled_radial_transport_annular_energy {n : ℕ} {R a : ℝ} (hR : 0 < R) + (ha : 0 ≤ a) (han : a ≤ (n : ℝ) + 1) (z : X) + (f w : SobolevSpace μ hQ) + (hf : IsConstantLaplacianOn μ hQ (ball z (4 * R)) f a) + (C : ℝ≥0) (hw : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ w x| ≤ C) + (F e : X → ℝ) (hF : MemLp F 2 μ) (he : MemLp e 2 μ) + (heuler : localGamma μ hQ f w =ᵐ[μ.restrict (ball z (4 * R))] + fun x => SobolevSpace.toLp μ hQ w x + F x / 2) + (hradial : localGamma μ hQ f (inwardSobolev μ hQ z (3 * R)) + =ᵐ[μ.restrict (ball z (3 * R))] fun x => e x - dist z x) + (hsphere : μ (sphere z R) = 0) : + let β := transportCutoffExponent n + let D := (R ^ (-β) - (3 * R) ^ (-β)) / β + let Q := R ^ (-(β + 1)) + (∫ x in ball z (4 * R), scaledTransportWeight n R z x * + (SobolevSpace.toLp μ hQ w x) ^ 2 ∂μ) ≤ + 2 * ((a + 2) * D + D / 4) * (∫ x in ball z R, (SobolevSpace.toLp μ hQ w x) ^ 2 ∂μ) + + 2 * D * (∫ x in ball z (4 * R), (F x) ^ 2 ∂μ) + + (4 * (C : ℝ) ^ 2 * Q / R) * (∫ x in ball z (4 * R), (e x) ^ 2 ∂μ) := by + dsimp only + let β := transportCutoffExponent n + let D := (R ^ (-β) - (3 * R) ^ (-β)) / β + let Q := R ^ (-(β + 1)) + let ν := μ.restrict (ball z (4 * R)) + let W : X → ℝ := SobolevSpace.toLp μ hQ w + let χ := radialPowerRep β R (3 * R) z + let ρ := transportDerivativeWeight n R z + let ζ := scaledTransportWeight n R z + have hR0 : 0 < R := hR + have hβ : 0 < β := transportCutoffExponent_pos n + have hQ0 : 0 ≤ Q := Real.rpow_nonneg hR0.le _ + have hD0 : 0 ≤ D := by + have hh := (radialPowerRep_bounds hβ hR0 (by linarith : R ≤ 3 * R) z z).1 + rw [radialPowerRep_inner hβ hR0 (by linarith : R ≤ 3 * R) z z (by simp; linarith)] at hh + exact hh + let η := radialPowerTest μ hQ (inwardSobolev μ hQ z (3 * R)) + hβ hR0 (by linarith : R ≤ 3 * R) + let Kfun := fun x => (a + 2) * χ x + localGamma μ hQ f η x + have hχlip : LipschitzWith ⟨Q, hQ0⟩ χ := radialPowerRep_lipschitz hβ hR0 z + have hχbd : ∀ x, 0 ≤ χ x ∧ χ x ≤ D := + radialPowerRep_bounds hβ hR0 (by linarith : R ≤ 3 * R) z + have hχabs : ∀ x, |χ x| ≤ (⟨D, hD0⟩ : ℝ≥0) := fun x => by + rw [abs_of_nonneg (hχbd x).1] + exact (hχbd x).2 + have hη : SobolevSpace.toLp μ hQ η =ᵐ[μ] χ := + radialPowerTest_inward_coe μ hQ hβ hR0 (by linarith : R ≤ 3 * R) z + have hbal := radial_transport_euler_identity μ hQ (ball z (4 * R)) isOpen_ball.measurableSet + f w η hf C ⟨D, hD0⟩ ⟨Q, hQ0⟩ hw χ hχlip + (radialPowerRep_compact (by linarith : R ≤ 3 * R) z) + hχabs (fun x => (hχbd x).1) + (radialPowerRep_tsupport (by linarith : R ≤ 3 * R) (by linarith : 3 * R < 4 * R) z) + hη F hF heuler + have hW : MemLp W 2 μ := Lp.memLp (SobolevSpace.toLp μ hQ w) + have hWsq : ∀ᵐ x ∂μ, ‖(W x) ^ 2‖ ≤ (C : ℝ) ^ 2 := by + filter_upwards [hw] with x hx + rw [Real.norm_eq_abs, abs_pow, sq_abs] + have hh := (sq_le_sq₀ (abs_nonneg _) C.coe_nonneg).mpr hx + simpa only [sq_abs] using hh + have hiχ : Integrable (fun x => χ x * (W x) ^ 2) μ := + hW.integrable_sq.bdd_mul hχlip.continuous.aestronglyMeasurable + (Filter.Eventually.of_forall fun x => by simpa only [Real.norm_eq_abs] using hχabs x) + have hK : Integrable (fun x => Kfun x * (W x) ^ 2) μ := by + convert (hiχ.const_mul (a + 2)).add + ((localGamma_memL1 μ hQ f η).bdd_mul (hW.aestronglyMeasurable.pow 2) hWsq) using 1 + funext x + simp only [Kfun, Pi.add_apply, Pi.pow_apply] + ring + have hnot : ∀ᵐ x ∂ν, dist z x ≠ R := by + have hh := ae_restrict_of_ae (s := ball z (4 * R)) (measure_eq_zero_iff_ae_notMem.mp hsphere) + filter_upwards [hh] with x hx + simpa only [mem_sphere, dist_comm] using hx + have hgeom := hnot.mono fun x hx => scaled_transport_weight_geometry hR ha han z x hx + have hγ : localGamma μ hQ f η =ᵐ[ν] fun x => + ρ x * localGamma μ hQ f (inwardSobolev μ hQ z (3 * R)) x := + ae_restrict_of_ae (radial_transport_cutoff_gamma μ hQ n hR0 z f) + have hradial' : ∀ᵐ x ∂ν, x ∈ ball z (3 * R) → + localGamma μ hQ f (inwardSobolev μ hQ z (3 * R)) x = e x - dist z x := + ae_restrict_of_ae ((ae_restrict_iff' measurableSet_ball).mp hradial) + have hcoerce : ∀ᵐ x ∂ν, ζ x ≤ (a + 2) * D * (ball z R).indicator (fun _ => (1 : ℝ)) x - + Kfun x + ρ x * e x := by + filter_upwards [hgeom, hγ, hradial'] with x hx hg hr + have hproduct : ρ x * localGamma μ hQ f (inwardSobolev μ hQ z (3 * R)) x = + ρ x * (e x - dist z x) := by + by_cases hxin : x ∈ ball z (3 * R) + · rw [hr hxin] + · have hout : x ∉ transportAnnulus z R := by + intro ha + apply hxin + simpa only [mem_ball, dist_comm] using ha.2 + have hzero : ρ x = 0 := indicator_of_notMem hout _ + rw [hzero, zero_mul, zero_mul] + have hh := hx.2.2 + change localGamma μ hQ f η x = ρ x * localGamma μ hQ f (inwardSobolev μ hQ z (3 * R)) x at hg + change ζ x ≤ _ at hh ⊢ + dsimp only [Kfun] + rw [hg, hproduct] + convert hh using 1 + dsimp only [D, β, ρ, χ] + ring + have hζmeas : AEStronglyMeasurable ζ ν := + ((transportDerivativeWeight_measurable n R z).const_mul (R / 2)).aestronglyMeasurable + have hcoerce' : ∀ᵐ x ∂ν, ζ x ≤ + (a + 2) * D * (ball z R).indicator (fun _ => (1 : ℝ)) x - Kfun x + + ζ x * ((2 / R) * e x) := by + filter_upwards [hcoerce] with x hx + convert hx using 1 + dsimp only [ζ, scaledTransportWeight, ρ] + field_simp + have hE := weighted_transport_energy ν (ball z R) isOpen_ball.measurableSet + (hW.restrict (ball z (4 * R))) ((he.const_mul (2 / R)).restrict (ball z (4 * R))) + (hF.restrict (ball z (4 * R))) hχlip.continuous.aestronglyMeasurable + hζmeas hζmeas (ae_restrict_of_ae hw) (Filter.Eventually.of_forall hχbd) + (hgeom.mono fun _ hx => hx.1) (hgeom.mono fun _ hx => hx.1) + hK.integrableOn hcoerce' (hgeom.mono fun _ hx => hx.2.1) + (Filter.Eventually.of_forall fun _ => le_rfl) hbal + have hsub : ball z R ⊆ ball z (4 * R) := ball_subset_ball (by linarith) + have heq : (fun x => ((2 / R) * e x) ^ 2) = fun x => (2 / R) ^ 2 * (e x) ^ 2 := by + funext x + ring + rw [heq, integral_const_mul] at hE + have halg : 2 * (C : ℝ) ^ 2 * (R / 2 * Q) * ((2 / R) ^ 2 * + ∫ x, (e x) ^ 2 ∂ν) = (4 * (C : ℝ) ^ 2 * Q / R) * ∫ x, (e x) ^ 2 ∂ν := by + field_simp + ring + rw [halg] at hE + simpa only [ν, W, ζ, D, Q, β, Measure.restrict_restrict_of_subset hsub] using hE + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/ScaledRadialTransportForcing.lean b/lean/OAI/Geometry/RCD/Transport/ScaledRadialTransportForcing.lean new file mode 100644 index 0000000000000000000000000000000000000000..956a152ed92454674fcc4e58364b706dbf2256ed --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/ScaledRadialTransportForcing.lean @@ -0,0 +1,76 @@ +import OAI.Geometry.RCD.Sobolev.ProjectedEulerIdentity +import OAI.Geometry.RCD.Transport.ScaledRadialTransport + +namespace OAI + +/-! # Small-radius transport for the actual Sobolev forcing -/ + +open Set Metric MeasureTheory +open scoped NNReal + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [ProperSpace X] + (μ : Measure X) [IsFiniteMeasureOnCompacts μ] (hQ : QuadraticCheegerEnergy μ) + +omit [IsFiniteMeasureOnCompacts μ] in +/-- Convert the exact local L2 identity into the scalar equation used by +the weak divergence test. -/ +theorem scaled_radial_derivative_add_representative (Ω : Set X) + (f w q : SobolevSpace μ hQ) {B : ℝ} + (hf : ∀ᵐ x ∂μ.restrict Ω, localGamma μ hQ f f x ≤ B) + (heq : localRadialDerivative μ hQ Ω f hf w = SobolevSpace.restrictLp μ hQ Ω (w + q)) : + localGamma μ hQ f w =ᵐ[μ.restrict Ω] + fun x => SobolevSpace.toLp μ hQ w x + SobolevSpace.toLp μ hQ q x := by + have hd := localRadialDerivative_representative μ hQ Ω f w hf + rw [heq] at hd + have he := hd.symm.trans (SobolevSpace.restrictLp_coe μ hQ Ω (w + q)) + rw [map_add] at he + exact he.trans (ae_restrict_of_ae (Lp.coeFn_add _ _)) + +/-- The forcing in the projected Euler equation is a +Sobolev function. Its square enters the outer bound with a quadratic +coefficient, so the residual can later be normalized safely. -/ +theorem scaled_radial_transport_sobolev_forcing {n : ℕ} {R a : ℝ} (hR : 0 < R) + (ha : 0 ≤ a) (han : a ≤ (n : ℝ) + 1) (z : X) + (f w q : SobolevSpace μ hQ) + (hlap : IsConstantLaplacianOn μ hQ (ball z (4 * R)) f a) + {B : ℝ} (hf : ∀ᵐ x ∂μ.restrict (ball z (4 * R)), localGamma μ hQ f f x ≤ B) + (C : ℝ≥0) (hw : ∀ᵐ x ∂μ, |SobolevSpace.toLp μ hQ w x| ≤ C) + (e : X → ℝ) (he : MemLp e 2 μ) + (heuler : localRadialDerivative μ hQ (ball z (4 * R)) f hf w = + SobolevSpace.restrictLp μ hQ (ball z (4 * R)) (w + q)) + (hradial : localGamma μ hQ f (inwardSobolev μ hQ z (3 * R)) + =ᵐ[μ.restrict (ball z (3 * R))] fun x => e x - dist z x) + (hsphere : μ (sphere z R) = 0) : + let β := transportCutoffExponent n + let D := (R ^ (-β) - (3 * R) ^ (-β)) / β + let Q := R ^ (-(β + 1)) + let m := (R / 2) * (2 * R) ^ (-(β + 1)) + (∫ x in ball z (2 * R), (SobolevSpace.toLp μ hQ w x) ^ 2 ∂μ) ≤ + (1 + 2 * ((a + 2) * D + D / 4) / m) * + (∫ x in ball z R, (SobolevSpace.toLp μ hQ w x) ^ 2 ∂μ) + + (8 * D / m) * (∫ x in ball z (4 * R), (SobolevSpace.toLp μ hQ q x) ^ 2 ∂μ) + + (4 * (C : ℝ) ^ 2 * Q / (R * m)) * (∫ x in ball z (4 * R), (e x) ^ 2 ∂μ) := by + have hF : MemLp (fun x => 2 * SobolevSpace.toLp μ hQ q x) 2 μ := + (Lp.memLp (SobolevSpace.toLp μ hQ q)).const_mul 2 + have hEq : localGamma μ hQ f w =ᵐ[μ.restrict (ball z (4 * R))] + fun x => SobolevSpace.toLp μ hQ w x + (2 * SobolevSpace.toLp μ hQ q x) / 2 := by + filter_upwards [scaled_radial_derivative_add_representative μ hQ _ f w q hf heuler] with x hx + rw [hx] + ring + have ht := scaled_radial_transport_squared μ hQ hR ha han z f w hlap C hw + (fun x => 2 * SobolevSpace.toLp μ hQ q x) e hF he hEq hradial hsphere + dsimp only at ht ⊢ + have hsq : (fun x => (2 * SobolevSpace.toLp μ hQ q x) ^ 2) = + fun x => (4 : ℝ) * (SobolevSpace.toLp μ hQ q x) ^ 2 := by funext x; ring + rw [hsq, integral_const_mul] at ht + convert ht using 1 + ring + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/ScaledRadialTransportGeometry.lean b/lean/OAI/Geometry/RCD/Transport/ScaledRadialTransportGeometry.lean new file mode 100644 index 0000000000000000000000000000000000000000..28d04a604b12bb762677458bd06b93304e0125c3 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/ScaledRadialTransportGeometry.lean @@ -0,0 +1,131 @@ +import OAI.Geometry.RCD.Transport.RadialTransportGeometry + +namespace OAI + +/-! # Radial transport weights at arbitrary positive radius -/ + +open Set Metric + +noncomputable section +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] + +/-- Multiplying the annular derivative by the physical radius preserves +coercivity when the working balls shrink. -/ +def scaledTransportWeight (n : ℕ) (R : ℝ) (z x : X) : ℝ := + (R / 2) * transportDerivativeWeight n R z x + +theorem scaled_transport_weight_geometry {n : ℕ} {R a : ℝ} (hR : 0 < R) + (ha : 0 ≤ a) (han : a ≤ (n : ℝ) + 1) (z x : X) (hne : dist z x ≠ R) : + let β := transportCutoffExponent n + let D := (R ^ (-β) - (3 * R) ^ (-β)) / β + let Q := R ^ (-(β + 1)) + let φ := radialPowerRep β R (3 * R) z x + let ρ := transportDerivativeWeight n R z x + let ζ := scaledTransportWeight n R z x + let I := (ball z R).indicator (fun _ => (1 : ℝ)) x + (0 ≤ ζ ∧ ζ ≤ (R / 2) * Q) ∧ φ ≤ ζ + D * I ∧ + ζ ≤ (a + 2) * D * I - (a + 2) * φ + ρ * dist z x := by + dsimp only + let β := transportCutoffExponent n + have hβ : 0 < β := transportCutoffExponent_pos n + have hβsix : 6 ≤ β := by + dsimp only [β, transportCutoffExponent] + linarith [Nat.cast_nonneg (α := ℝ) n] + have hφ := radialPowerRep_bounds hβ hR (by linarith : R ≤ 3 * R) z x + have hρ := transportDerivativeWeight_bounds n hR z x + have hζ : 0 ≤ scaledTransportWeight n R z x ∧ + scaledTransportWeight n R z x ≤ (R / 2) * R ^ (-(β + 1)) := + ⟨mul_nonneg (by positivity) hρ.1, + mul_le_mul_of_nonneg_left hρ.2 (by positivity)⟩ + refine ⟨hζ, ?_⟩ + by_cases hin : dist z x < R + · have hm : x ∈ ball z R := by simpa only [mem_ball, dist_comm] using hin + have hn : x ∉ transportAnnulus z R := fun hx => (not_lt_of_ge hx.1.le) hin + simp only [scaledTransportWeight, transportDerivativeWeight, indicator_of_notMem hn, + mul_zero, indicator_of_mem hm, mul_one, zero_add] + rw [radialPowerRep_inner hβ hR (by linarith : R ≤ 3 * R) z x hin.le] + exact ⟨le_rfl, by dsimp only [β]; ring_nf; exact le_rfl⟩ + · have hRx : R < dist z x := lt_of_le_of_ne (le_of_not_gt hin) hne.symm + have hm : x ∉ ball z R := by simpa only [mem_ball, dist_comm, not_lt] using hRx.le + by_cases hout : dist z x < 3 * R + · have hann : x ∈ transportAnnulus z R := ⟨hRx, hout⟩ + have ht : 0 < dist z x := hR.trans hRx + have hpow : dist z x * (dist z x) ^ (-(β + 1)) = (dist z x) ^ (-β) := by + calc + _ = (dist z x) ^ (1 : ℝ) * (dist z x) ^ (-(β + 1)) := by rw [Real.rpow_one] + _ = (dist z x) ^ (1 - (β + 1)) := by rw [← Real.rpow_add ht]; congr 1 + _ = _ := by congr 1; ring + have hq : 0 ≤ (dist z x) ^ (-(β + 1)) := Real.rpow_nonneg ht.le _ + have hV : 0 ≤ dist z x * (dist z x) ^ (-(β + 1)) := mul_nonneg ht.le hq + have hp : radialPowerRep β R (3 * R) z x ≤ + dist z x * (dist z x) ^ (-(β + 1)) / β := by + rw [radialPowerRep_annulus hβ hR z x hRx.le hout.le, hpow] + exact div_le_div_of_nonneg_right + (sub_le_self _ (Real.rpow_nonneg (by positivity) _)) hβ.le + have hcoef : (a + 2) / β ≤ (1 / 2 : ℝ) := by + apply (div_le_iff₀ hβ).mpr + dsimp only [β, transportCutoffExponent] + linarith + have hsmall : 3 / β ≤ (1 / 2 : ℝ) := by + apply (div_le_iff₀ hβ).mpr + linarith + have hpbound : radialPowerRep β R (3 * R) z x ≤ + (R / 2) * (dist z x) ^ (-(β + 1)) := by + calc + _ ≤ _ := hp + _ ≤ (3 * R * (dist z x) ^ (-(β + 1))) / β := + div_le_div_of_nonneg_right (mul_le_mul_of_nonneg_right hout.le hq) hβ.le + _ = (3 / β) * (R * (dist z x) ^ (-(β + 1))) := by ring + _ ≤ (1 / 2 : ℝ) * (R * (dist z x) ^ (-(β + 1))) := + mul_le_mul_of_nonneg_right hsmall (mul_nonneg hR.le hq) + _ = _ := by ring + have hap : (a + 2) * radialPowerRep β R (3 * R) z x ≤ + (1 / 2 : ℝ) * (dist z x * (dist z x) ^ (-(β + 1))) := by + calc + _ ≤ (a + 2) * (dist z x * (dist z x) ^ (-(β + 1)) / β) := + mul_le_mul_of_nonneg_left hp (by linarith) + _ = ((a + 2) / β) * (dist z x * (dist z x) ^ (-(β + 1))) := by ring + _ ≤ _ := mul_le_mul_of_nonneg_right hcoef hV + simp only [scaledTransportWeight, transportDerivativeWeight, indicator_of_mem hann, + indicator_of_notMem hm, mul_zero, add_zero] + refine ⟨hpbound, ?_⟩ + have hh := mul_le_mul_of_nonneg_right hRx.le hq + nlinarith only [hap, hh] + · have hn : x ∉ transportAnnulus z R := fun hx => hout hx.2 + rw [scaledTransportWeight, transportDerivativeWeight, indicator_of_notMem hn, + radialPowerRep_zero (by linarith : R ≤ 3 * R) z x (le_of_not_gt hout), + indicator_of_notMem hm] + simp + +theorem scaled_transport_interior_weight {n : ℕ} {R : ℝ} (hR : 0 < R) + (z x : X) (hne : dist z x ≠ R) : + let β := transportCutoffExponent n + let m := (R / 2) * (2 * R) ^ (-(β + 1)) + m * (ball z (2 * R)).indicator (fun _ => (1 : ℝ)) x ≤ + m * (ball z R).indicator (fun _ => (1 : ℝ)) x + scaledTransportWeight n R z x := by + dsimp only + have hρ := (transportDerivativeWeight_bounds n hR z x).1 + by_cases hin : x ∈ ball z R + · have ho : x ∈ ball z (2 * R) := ball_subset_ball (by linarith) hin + simp only [indicator_of_mem hin, indicator_of_mem ho, mul_one] + exact le_add_of_nonneg_right (mul_nonneg (by positivity) hρ) + · have hRx : R < dist z x := lt_of_le_of_ne + (by simpa only [mem_ball, dist_comm, not_lt] using hin) hne.symm + by_cases ho : x ∈ ball z (2 * R) + · have hx : dist z x < 2 * R := by simpa only [mem_ball, dist_comm] using ho + have hann : x ∈ transportAnnulus z R := ⟨hRx, by linarith⟩ + simp only [indicator_of_notMem hin, indicator_of_mem ho, mul_zero, mul_one, + zero_add, scaledTransportWeight, transportDerivativeWeight, indicator_of_mem hann] + exact mul_le_mul_of_nonneg_left + (Real.rpow_le_rpow_of_nonpos (hR.trans hRx) hx.le + (by linarith [transportCutoffExponent_pos n])) (by positivity) + · simp only [indicator_of_notMem hin, indicator_of_notMem ho, mul_zero, zero_add] + exact mul_nonneg (by positivity) hρ + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/ScaledTransportConstants.lean b/lean/OAI/Geometry/RCD/Transport/ScaledTransportConstants.lean new file mode 100644 index 0000000000000000000000000000000000000000..c43708a7af09133dd03014dfebccee127c138c90 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/ScaledTransportConstants.lean @@ -0,0 +1,62 @@ +import OAI.Geometry.RCD.Transport.ScaledRadialTransport + +namespace OAI + +/-! # Constants uniform in the shrinking transport radius -/ + +open Metric + +noncomputable section +namespace RegularPointCoordinates + +theorem scaled_transport_constants {n : ℕ} {R : ℝ} (hR : 0 < R) : + let β := transportCutoffExponent n + let D := (R ^ (-β) - (3 * R) ^ (-β)) / β + let Q := R ^ (-(β + 1)) + let m := (R / 2) * (2 * R) ^ (-(β + 1)) + let q := (2 : ℝ) ^ (β + 2) + 0 < m ∧ 0 ≤ D ∧ D / m ≤ q / β ∧ Q / (R * m) * R ^ 2 = q := by + dsimp only + let β := transportCutoffExponent n + let m := (R / 2) * (2 * R) ^ (-(β + 1)) + let q := (2 : ℝ) ^ (β + 2) + have hβ : 0 < β := transportCutoffExponent_pos n + have hm : 0 < m := by dsimp only [m]; positivity + have hpow : (2 : ℝ) ^ (β + 2) * (2 : ℝ) ^ (-(β + 1)) = 2 := by + rw [← Real.rpow_add (by norm_num)] + have he : β + 2 + -(β + 1) = 1 := by ring + rw [he, Real.rpow_one] + have hRpow : R * R ^ (-(β + 1)) = R ^ (-β) := by + calc + _ = R ^ (1 : ℝ) * R ^ (-(β + 1)) := by rw [Real.rpow_one] + _ = R ^ (1 + -(β + 1)) := (Real.rpow_add hR _ _).symm + _ = _ := by congr 1; ring + have hmq : m * q = R * R ^ (-(β + 1)) := by + dsimp only [m, q] + rw [Real.mul_rpow (by norm_num) hR.le] + calc + _ = (R / 2) * R ^ (-(β + 1)) * + ((2 : ℝ) ^ (β + 2) * (2 : ℝ) ^ (-(β + 1))) := by ring + _ = _ := by rw [hpow]; ring + have hD : 0 ≤ (R ^ (-β) - (3 * R) ^ (-β)) / β := by + apply div_nonneg _ hβ.le + exact sub_nonneg.mpr (Real.rpow_le_rpow_of_nonpos hR (by linarith) (by linarith)) + refine ⟨hm, hD, ?_, ?_⟩ + · apply (div_le_iff₀ hm).mpr + calc + _ ≤ R ^ (-β) / β := div_le_div_of_nonneg_right + (sub_le_self _ (Real.rpow_nonneg (by positivity) _)) hβ.le + _ = (q / β) * m := by rw [← hRpow, ← hmq]; ring + · have heq : R ^ (-(β + 1)) * R ^ 2 = q * (R * m) := by + rw [mul_left_comm q R m, mul_comm q m, hmq] + ring + calc + R ^ (-(β + 1)) / (R * m) * R ^ 2 = + (R ^ (-(β + 1)) * R ^ 2) / (R * m) := by ring + _ = q := (div_eq_iff (ne_of_gt (mul_pos hR hm))).mpr heq + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/SegmentEntropyConvexity.lean b/lean/OAI/Geometry/RCD/Transport/SegmentEntropyConvexity.lean new file mode 100644 index 0000000000000000000000000000000000000000..a7f61737343a38a29933788021fdbc4bb25a979d --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/SegmentEntropyConvexity.lean @@ -0,0 +1,66 @@ +import OAI.Geometry.RCD.Transport.CompressedEntropyConvexity + +namespace OAI + +/-! # Strong entropy convexity on each subinterval of a compressed plan -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped ENNReal NNReal Topology +noncomputable section +namespace RegularPointCoordinates.NoncollapsedRCD +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] [SeparableSpace X] {K : ℝ} {n : ℕ} + [IsLocallyFiniteMeasure (hausdorff n X)] (hX : NoncollapsedRCD K n X) +include hX +attribute [local instance] pathBorel pathBorelSpace + +theorem compressed_plan_segment_entropy (hn : 2≤n) (p : X) {R : ℝ} (hR : 0≤R) + (π : Measure C(Time,X)) [IsProbabilityMeasure π] (hg : ∀ᵐ γ ∂π, IsGeodesic γ) + (hp : IsOptimalCoupling (π.map (fun γ => γ 0)) (π.map (fun γ => γ 1)) + (π.map (fun γ => (γ 0,γ 1)))) + {C : ℝ≥0} (hcomp : ∀ t : Time, π.map (fun γ => γ t)≤ENNReal.ofReal C • hausdorff n X) + (hs₀ : ∀ᵐ x ∂π.map (fun γ => γ 0), dist x p≤R) + (hs₁ : ∀ᵐ x ∂π.map (fun γ => γ 1), dist x p≤R) (s t r : Time) : + boltzmannEntropy (hausdorff n X) (π.map (fun γ => γ (timeSegment s t r))) ≤ + (1-(r:ℝ))*boltzmannEntropy (hausdorff n X) (π.map (fun γ => γ s))+ + (r:ℝ)*boltzmannEntropy (hausdorff n X) (π.map (fun γ => γ t))- + (K/2)*(r:ℝ)*(1-(r:ℝ))*|(s:ℝ)-(t:ℝ)|^2* + (wassersteinSq (π.map (fun γ => γ 0)) (π.map (fun γ => γ 1))).toReal := by + let : Nonempty X := nonempty_of_isProbabilityMeasure (π.map (fun γ => γ 0)) + let : CompleteSpace X := hX.complete + have hfin := coupling_transportCost_ne_top hp.1 hp.2.1 p + (integrable_dist_sq_of_ae_bounded _ p hs₀) (integrable_dist_sq_of_ae_bounded _ p hs₁) + obtain ⟨hprob,hg',hp'⟩ := geodesic_subpath_law π hg hp hfin s t + have hsupport (u : Time) : ∀ᵐ x ∂π.map (fun γ => γ u), dist x p≤3*R := by + apply (ae_map_iff (measurable_path_eval u).aemeasurable + (measurableSet_le (continuous_id.dist continuous_const).measurable measurable_const)).mpr + exact (optimal_geodesic_plan_bounded _ _ π hg hp p hR hs₀ hs₁).mono fun γ hγ => hγ.2 u + have hp'' : IsOptimalCoupling + ((π.map (subpath s t)).map (fun γ => γ 0)) + ((π.map (subpath s t)).map (fun γ => γ 1)) + ((π.map (subpath s t)).map (fun γ => (γ 0,γ 1))) := by + simpa only [subpath_map_eval,timeSegment_zero,timeSegment_one] using hp' + have hcomp' (u : Time) : + (π.map (subpath s t)).map (fun γ => γ u)≤ENNReal.ofReal C • hausdorff n X := by + rw [subpath_map_eval] + exact hcomp _ + have h := hX.compressed_plan_entropy_convexity hn p (R:=3*R) + (mul_nonneg (by norm_num) hR) (π.map (subpath s t)) hg' hp'' hcomp' + (by simpa only [subpath_map_eval,timeSegment_zero] using hsupport s) + (by simpa only [subpath_map_eval,timeSegment_one] using hsupport t) r + simp only [subpath_map_eval,timeSegment_zero,timeSegment_one] at h + have he : (wassersteinSq (π.map (fun γ => γ s)) (π.map (fun γ => γ t))).toReal= + |(s:ℝ)-(t:ℝ)|^2* + (wassersteinSq (π.map (fun γ => γ 0)) (π.map (fun γ => γ 1))).toReal := by + rw [wassersteinSq_eq_cost (geodesic_plan_optimal_marginals π hg hp hfin s t), + geodesic_plan_cost π hg,ENNReal.toReal_mul,ENNReal.toReal_pow, + ENNReal.toReal_ofReal (abs_nonneg _),wassersteinSq_eq_cost hp] + rw [he] at h + convert h using 1 + ring + +end RegularPointCoordinates.NoncollapsedRCD + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/SelectedPlanLengthWindows.lean b/lean/OAI/Geometry/RCD/Transport/SelectedPlanLengthWindows.lean new file mode 100644 index 0000000000000000000000000000000000000000..5391c5324af6f1dac370edbe8577b276cbd5f6e6 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/SelectedPlanLengthWindows.lean @@ -0,0 +1,46 @@ +import OAI.Geometry.RCD.Transport.LengthComponentCompression +import OAI.Geometry.RCD.Transport.ReducedInterpolation + +namespace OAI + +/-! # The selected interpolation has uniform bounds on each length window -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped ENNReal Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem NoncollapsedRCD.exists_reduced_plan_with_length_windows + (K : ℝ) (n : ℕ) (hn : 2≤n) (hX : NoncollapsedRCD K n X) (hK : K≤0) + {N : ℝ} (hN : (n:ℝ)≤N) (a : RenyiTransportNode n X) : + ∃ π : ProbabilityMeasure C(Time,X), + (∀ᵐ γ ∂(π : Measure C(Time,X)), IsGeodesic γ) ∧ + IsOptimalCoupling a.left a.right ((π : Measure C(Time,X)).map (fun γ => (γ 0,γ 1))) ∧ + (∀ t, ReducedRenyiChordBound (hausdorff n X) K N (π : Measure C(Time,X)) t) ∧ + ∀ D : ℝ, 0≤D → ∀ t : Time, + (((π : Measure C(Time,X)).restrict {γ | dist (γ 0) (γ 1) γ t))≤ + compressionBudget K n D a.capacity • hausdorff n X := by + let : SeparableSpace X := hX.separable + have hN1 : 1 h.le) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/ShiftedEntropyBounds.lean b/lean/OAI/Geometry/RCD/Transport/ShiftedEntropyBounds.lean new file mode 100644 index 0000000000000000000000000000000000000000..774ca377dd4e927cffa88d1b657c345ddaf18cd5 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/ShiftedEntropyBounds.lean @@ -0,0 +1,42 @@ +import OAI.Geometry.RCD.Coordinates.HeatRegularizedEntropy + +namespace OAI + +/-! # Finite-range shifted entropy and its affine upper bound -/ + +open Set Filter MeasureTheory +open scoped NNReal +noncomputable section +namespace RegularPointCoordinates + +theorem shiftedEntropy_le_affine {ε A a : ℝ} (hε : 0<ε) (ha : a∈Icc 0 A) : + shiftedEntropy ε a ≤ + ε*(Real.log (ε+A)-Real.log ε)+(Real.log (ε+A)-Real.log ε-1)*a := by + have hp : 0<ε+a := add_pos_of_pos_of_nonneg hε ha.1 + have hl := Real.log_le_log hp (add_le_add le_rfl ha.2) + have hm := mul_le_mul_of_nonneg_left hl hp.le + unfold shiftedEntropy + nlinarith only [hm] + +variable {X : Type*} [MeasurableSpace X] (μ : Measure X) + +theorem shiftedEntropy_memLp {ε : ℝ} (hε : 0<ε) (A : ℝ≥0) + (f : Lp ℝ 2 μ) (hf : ∀ᵐ x ∂μ, f x∈Icc 0 (A:ℝ)) : + MemLp (fun x => shiftedEntropy ε (f x)) 2 μ := by + obtain ⟨Φ,φ,ψ,C,D,M,N,hΦ,_hφ,_hψ,hΦ0,_hφ0,_hdΦ,_hdφ,_hM,_hN,he⟩ := + exists_local_smooth_entropy hε A.coe_nonneg + have hr : (fun x => Φ (f x)) =ᵐ[μ] fun x => shiftedEntropy ε (f x) := by + filter_upwards [hf] with x hx + exact (he _ hx).2.2 + exact (memLp_congr_ae ((hΦ.coeFn_compLp hΦ0 f).trans hr)).mp (Lp.memLp _) + +theorem shiftedEntropy_weighted_integrable {ε : ℝ} (hε : 0<ε) (A : ℝ≥0) + (f w : Lp ℝ 2 μ) (hf : ∀ᵐ x ∂μ, f x∈Icc 0 (A:ℝ)) : + Integrable (fun x => w x*shiftedEntropy ε (f x)) μ := + (Lp.memLp w).integrable_mul (shiftedEntropy_memLp μ hε A f hf) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/ShortEndpointCompression.lean b/lean/OAI/Geometry/RCD/Transport/ShortEndpointCompression.lean new file mode 100644 index 0000000000000000000000000000000000000000..eb50426b07ded9c1db5c1ecc61ab81214cc03d3e --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/ShortEndpointCompression.lean @@ -0,0 +1,79 @@ +import OAI.Geometry.RCD.Transport.MeasuredTransportData +import OAI.Geometry.RCD.Transport.PrescribedPlanCompression + +namespace OAI + +/-! # Compression controlled by the actual nearby endpoint images -/ + +open Set Filter MeasureTheory Metric +open scoped Topology ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem MeasuredTransportData.short_endpoint_distance_bound {K : ℝ} {n : ℕ} + {hX : NoncollapsedRCD K n X} + {p : ℕ → X} {r ε : ℕ → ℝ} {S τ η : ℝ} {v : ℕ → X → Euclidean n} + {α β : ProbabilityMeasure (Euclidean n)} {c₀ : ℝ} + (D : MeasuredTransportData hX p r S τ v α β c₀) + (hτS : τ≤S) (hr : ∀ k, 0 γ t)≤ + compressionBudget K n ((2*η+ε (k+D.offset))*r (k+D.offset)) + (ENNReal.ofReal (D.control k)* + (hausdorff n X (ball (p (k+D.offset)) (S*r (k+D.offset))))⁻¹) • hausdorff n X := by + let μ := hausdorff n X + let C := ENNReal.ofReal (D.control k)*(μ (ball (p (k+D.offset)) (S*r (k+D.offset))))⁻¹ + have hC : C≠⊤ := ENNReal.mul_ne_top ENNReal.ofReal_ne_top + (ENNReal.inv_ne_top.mpr (hX.fullSupport _ _ (mul_pos hS (hr _))).ne') + have hd := D.short_endpoint_distance_bound hτS hr hv z hz0 hz1 k + exact hX.prescribed_plan_compression hn (D.left k) (D.right k) hC + (compressionBudget_ne_top K n (2*(τ*r (k+D.offset))) hC) + (D.left_bound k) (D.right_bound k) (p (k+D.offset)) + (mul_nonneg hτ (hr _).le) + (mul_nonneg (add_nonneg (mul_nonneg (by norm_num) hη) (hε _)) (hr _).le) + (D.left_support k) (D.right_support k) hd (D.plan k) (D.geodesic k) (D.optimal k) + (D.compression k) t + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/ShortPlanFlux.lean b/lean/OAI/Geometry/RCD/Transport/ShortPlanFlux.lean new file mode 100644 index 0000000000000000000000000000000000000000..724adf23d45a9ea1a03dad5a044d9ea97cdb3124 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/ShortPlanFlux.lean @@ -0,0 +1,86 @@ +import OAI.Geometry.RCD.Coordinates.UniformPlanPullback + +namespace OAI + +/-! # Uniform flux bounds for short compressed transport plans -/ + +open Set Filter Metric MeasureTheory +open scoped ENNReal + +namespace RegularPointCoordinates + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) [μ.Regular] +attribute [local instance] pathBorel pathBorelSpace + +omit [ProperSpace X] [μ.Regular] in +theorem testPlan_flux_eq_inner (π : Measure C(Time, X)) + {C : ℝ≥0∞} (hC : C ≠ ∞) + (hc : ∀ t : Time, π.map (fun γ => γ t) ≤ C • μ) + (hD : MemLp (fun γ : C(Time, X) => dist (γ 0) (γ 1)) 2 π) + (G : Lp ℝ 2 μ) (t : Time) : + (∫ γ, dist (γ 0) (γ 1) * G (γ t) ∂π) = + inner ℝ (hD.toLp (fun γ : C(Time, X) => dist (γ 0) (γ 1))) + (testPlanPullback μ π hC hc t G) := by + rw [L2.inner_def] + apply integral_congr_ae + filter_upwards [hD.coeFn_toLp, compressionPullback_ae μ π _ + (measurable_path_eval t) hC (hc t) G] with γ hd hg + change testPlanPullback μ π hC hc t G γ = G (γ t) at hg + simp only [Real.inner_apply, hd, hg] + +omit [ProperSpace X] [μ.Regular] in +theorem short_plan_flux_le (π : Measure C(Time, X)) [IsProbabilityMeasure π] + {C : ℝ≥0∞} (hC : C ≠ ∞) + (hc : ∀ t : Time, π.map (fun γ => γ t) ≤ C • μ) + (hD : MemLp (fun γ : C(Time, X) => dist (γ 0) (γ 1)) 2 π) + (G : Lp ℝ 2 μ) {d η : ℝ} (hd : 0 ≤ d) (_hη : 0 ≤ η) + (hlen : ∀ᵐ γ ∂π, dist (γ 0) (γ 1) ≤ d) + (hclose : ∀ t : Time, + ‖testPlanPullback μ π hC hc t G - testPlanPullback μ π hC hc 0 G‖ ≤ η) + (t : Time) : + (∫ γ, dist (γ 0) (γ 1) * G (γ t) ∂π) ≤ + (∫ γ, dist (γ 0) (γ 1) * G (γ 0) ∂π) + d * η := by + let D := hD.toLp (fun γ : C(Time, X) => dist (γ 0) (γ 1)) + have hDn : ‖D‖ ≤ d := by + have hh := Lp.norm_le_of_ae_bound hd (show ∀ᵐ γ ∂π, ‖D γ‖ ≤ d from by + filter_upwards [hD.coeFn_toLp, hlen] with γ hγ hs + simpa only [D, hγ, Real.norm_eq_abs, abs_of_nonneg dist_nonneg] using hs) + simpa [measureUnivNNReal] using hh + rw [testPlan_flux_eq_inner μ π hC hc hD G t, testPlan_flux_eq_inner μ π hC hc hD G 0] + suffices hh : inner ℝ D (testPlanPullback μ π hC hc t G) - + inner ℝ D (testPlanPullback μ π hC hc 0 G) ≤ d * η by linarith + rw [← inner_sub_right] + exact (le_abs_self _).trans ((abs_real_inner_le_norm _ _).trans + (mul_le_mul hDn (hclose t) (norm_nonneg _) hd)) + +theorem short_plan_absolute_increment_le (π : Measure C(Time, X)) [IsProbabilityMeasure π] + (hg : ∀ᵐ γ ∂π, IsGeodesic γ) + {C : ℝ≥0∞} (hC : C ≠ ∞) + (hc : ∀ t : Time, π.map (fun γ => γ t) ≤ C • μ) + (hD : MemLp (fun γ : C(Time, X) => dist (γ 0) (γ 1)) 2 π) + {u G : Lp ℝ 2 μ} (hG : IsRelaxedSlope μ u G) + {d η : ℝ} (hd : 0 ≤ d) (hη : 0 ≤ η) + (hlen : ∀ᵐ γ ∂π, dist (γ 0) (γ 1) ≤ d) + (hclose : ∀ t : Time, + ‖testPlanPullback μ π hC hc t G - testPlanPullback μ π hC hc 0 G‖ ≤ η) : + (∫ γ, |u (γ 1) - u (γ 0)| ∂π) ≤ + (∫ γ, dist (γ 0) (γ 1) * G (γ 0) ∂π) + d * η := by + have hbase := hG.testPlan_integrated_subinterval μ π hg hC hc hD (1 : Time) + have hcont := testPlan_flux_continuous μ π hg hC hc hD G + have hb : (∫ s : ℝ in 0..1, ∫ γ, dist (γ 0) (γ 1) * G (geodesicExtension γ s) ∂π) ≤ + ∫ _s : ℝ in 0..1, (∫ γ, dist (γ 0) (γ 1) * G (γ 0) ∂π) + d * η := by + apply intervalIntegral.integral_mono_on zero_le_one (hcont.intervalIntegrable 0 1) + (continuous_const.intervalIntegrable 0 1) + intro s hs + have h := short_plan_flux_le μ π hC hc hD G hd hη hlen hclose ⟨s, hs⟩ + have he (γ : C(Time, X)) : geodesicExtension γ s = γ ⟨s, hs⟩ := + geodesicExtension_eq γ ⟨s, hs⟩ + simpa only [he] using h + change (∫ γ, |u (γ 1) - u (γ 0)| ∂π) ≤ + ∫ s : ℝ in 0..1, ∫ γ, dist (γ 0) (γ 1) * G (geodesicExtension γ s) ∂π at hbase + exact hbase.trans (by simpa only [intervalIntegral.integral_const, sub_zero, one_smul] using hb) + +end RegularPointCoordinates + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/SmoothHopfRecoverySlope.lean b/lean/OAI/Geometry/RCD/Transport/SmoothHopfRecoverySlope.lean new file mode 100644 index 0000000000000000000000000000000000000000..0c863b3bc45f6f1e5f2e7d3dc04b75f86ff3fa9e --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/SmoothHopfRecoverySlope.lean @@ -0,0 +1,53 @@ +import OAI.Geometry.RCD.Transport.PointedHopfErrorLimit +import OAI.Geometry.RCD.Sobolev.SmoothLocalLipschitz + +namespace OAI + +/-! # The recovered local slopes approach the differential of the Euclidean test -/ + +open Set Metric Filter +open scoped ContDiff Topology NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [ProperSpace X] + +theorem smooth_hopf_recovery_slope {n : ℕ} {ψ : Euclidean n → ℝ} {M : ℝ≥0} + (hψ : ContDiff ℝ 1 ψ) (hs : HasCompactSupport ψ) (hψL : LipschitzWith M ψ) + {S ρ η : ℝ} (hρ : 0≤ρ) (hη : 0<η) + (p : ℕ → X) (r ε e : ℕ → ℝ) (v : ℕ → X → Euclidean n) (F : ℕ → X → ℝ) + (hr : ∀ k, 0 3*ε k) atTop (𝓝 0) := by + simpa only [mul_zero] using hεlim.const_mul 3 + have hεroom := hεroomlim.eventually + (Iio_mem_nhds (show 0 γ t) ≤ C • μ) + (hLength : MemLp (fun γ : C(Time,X) => dist (γ 0) (γ 1)) 2 π) + {a b : ℝ} (hab : a ≤ b) (ha : 0 ≤ a) (hb : b ≤ 1) + {S : Set X} (hS : MeasurableSet S) + (hs : ∀ t ∈ Ico a b, ∀ᵐ γ ∂π, geodesicExtension γ t ∈ S) + (u : ℝ → SobolevSpace μ Q) (hu : ContinuousOn u (Icc a b)) + (D : ℝ → Lp ℝ 2 μ) + (hder : ∀ t ∈ Ico a b, HasDerivAt (fun s => SobolevSpace.toLp μ Q (u s)) (D t) t) + (hgrad : ∀ t ∈ Ico a b, ∀ᵐ x ∂μ.restrict S, + (SobolevSpace.minimalSlope μ Q (u t) x)^2 ≤ 2*D t x) : + (∫ γ : C(Time,X), SobolevSpace.toLp μ Q (u a) (geodesicExtension γ a) ∂π) - + (∫ γ : C(Time,X), SobolevSpace.toLp μ Q (u b) (geodesicExtension γ b) ∂π) ≤ + (b-a)*(∫ γ : C(Time,X), (dist (γ 0) (γ 1))^2 ∂π)/2 := by + let T := testPlanMeanCLM μ π hC hcomp + let U := fun t => SobolevSpace.toLp μ Q (u t) + let A := fun t => T t (U t) + let E := (∫ γ : C(Time,X), (dist (γ 0) (γ 1))^2 ∂π)/2 + have hT : Continuous (fun q : Lp ℝ 2 μ × ℝ => T q.2 q.1) := + testPlanMeanCLM_jointly_continuous μ π hgeo hC hcomp hLength + have hU : ContinuousOn U (Icc a b) := (SobolevSpace.toLpCLM μ Q).continuous.comp_continuousOn hu + have hA : ContinuousOn (fun t => -A t) (Icc a b) := + (hT.comp_continuousOn (hU.prodMk continuousOn_id)).neg + have hB : ContinuousOn (fun t => -A a+E*(t-a)) (Icc a b) := by fun_prop + have hBder (x : ℝ) (_ : x ∈ Ico a b) : + HasDerivWithinAt (fun t => -A a+E*(t-a)) E (Ici x) x := by + simpa only [mul_one,id_eq] using + ((((hasDerivAt_id x).sub_const a).const_mul E).const_add (-A a)).hasDerivWithinAt (s := Ici x) + have hright (x : ℝ) (hx : x ∈ Ico a b) (r : ℝ) (hr : E < r) : + ∃ᶠ t in 𝓝[>] x, slope (fun q => -A q) x t < r := by + let s : Time := ⟨x,⟨ha.trans hx.1,hx.2.le.trans hb⟩⟩ + let F := ∫ γ : C(Time,X), dist (γ 0) (γ 1)*SobolevSpace.minimalSlope μ Q (u x) (γ s) ∂π + have hact : F-T x (D x) ≤ E := by + have hh := hamilton_jacobi_plan_bound μ Q π hC hcomp hLength (u x) (D x) s hS + (by + filter_upwards [hs x hx] with γ hγ + rw [← geodesicExtension_eq γ s] + exact hγ) (hgrad x hx) + have he : T x (D x) = ∫ γ : C(Time,X), D x (γ s) ∂π := by + dsimp only [T] + rw [testPlanMeanCLM_apply] + exact integral_congr_ae (Eventually.of_forall fun γ => by + change D x (geodesicExtension γ x) = D x (γ s) + rw [show geodesicExtension γ x = γ s from geodesicExtension_eq γ s]) + have hh' : -E ≤ (∫ γ : C(Time,X), D x (γ s) ∂π)-F := by + dsimp only [E,F] + linarith [hh] + rw [← he] at hh' + linarith + let ε := (r-E)/4 + have hε : 0 < ε := by dsimp only [ε]; linarith + have ht := moving_linear_difference_tendsto T U hT.continuousAt (hder x hx) + have hfilt : 𝓝[>] x ≤ 𝓝[≠] x := nhdsWithin_mono x (fun t ht => ne_of_gt ht) + have ht' : ∀ᶠ t in 𝓝[>] x, T x (D x)-ε < + (t-x)⁻¹*(T t (U t)-T t (U x)) := + (ht.mono_left hfilt).eventually (lt_mem_nhds (sub_lt_self _ hε)) + have hs' := testPlanMeanCLM_right_slope_bound μ Q π hgeo hC hcomp hLength (u x) s + (hx.2.trans_le hb) hε + have hevent : ∀ᶠ t in 𝓝[>] x, slope (fun q => -A q) x t < r := by + filter_upwards [ht',hs'] with t ht hs' + have heq : slope (fun q => -A q) x t = + -((t-x)⁻¹*(T t (U t)-T t (U x))) - + (T t (U x)-T x (U x))/(t-x) := by + dsimp only [A] + rw [slope_fun_def_field] + ring + have hneg := neg_le_abs ((T t (U x)-T x (U x))/(t-x)) + change |(T t (U x)-T x (U x))/(t-x)| < F+ε at hs' + rw [heq] + dsimp only [ε] at ht hs' + linarith + exact hevent.frequently + have hend := image_le_of_liminf_slope_right_le_deriv_boundary hA + (B := fun t => -A a+E*(t-a)) (B' := fun _ => E) + (by simp) hB hBder hright (x := b) ⟨hab,le_rfl⟩ + change -A b ≤ -A a+E*(b-a) at hend + have he : A a-A b ≤ (b-a)*E := by linarith + simpa only [A,T,U,testPlanMeanCLM_apply,E,mul_div_assoc] using he + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/SobolevPlanDerivative.lean b/lean/OAI/Geometry/RCD/Transport/SobolevPlanDerivative.lean new file mode 100644 index 0000000000000000000000000000000000000000..dbcbfa9d93c6cc9875a9846d634a3eb97ef7ef51 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/SobolevPlanDerivative.lean @@ -0,0 +1,65 @@ +import OAI.Analysis.RCDHeat.TestPlanContinuous + +namespace OAI + +/-! # Derivative bounds for actual Sobolev representatives along test plans + +Gram coefficients need not be continuous on the space. Their absolutely +continuous representatives along almost every path retain both endpoints +and the relaxed-slope derivative bound. +-/ + +open Set Filter MeasureTheory TopologicalSpace +open scoped ENNReal Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem IsRelaxedSlope.testPlan_ae_sobolev_derivative (μ : Measure X) + (π : Measure C(Time,X)) [IsFiniteMeasure π] + (hgeo : ∀ᵐ γ ∂π, IsGeodesic γ) {C : ℝ≥0∞} (hC : C≠∞) + (hcomp : ∀ t : Time, π.map (fun γ => γ t)≤C • μ) + (hD : MemLp (fun γ : C(Time,X) => dist (γ 0) (γ 1)) 2 π) + {u G : Lp ℝ 2 μ} (hG : IsRelaxedSlope μ u G) : + ∀ᵐ γ ∂π, ∃ f : ℝ → ℝ, + AbsolutelyContinuousOnInterval f 0 1 ∧ f 0=u (γ 0) ∧ f 1=u (γ 1) ∧ + (f =ᵐ[volume.restrict (Icc (0:ℝ) 1)] fun t => u (geodesicExtension γ t)) ∧ + ∀ᵐ s : ℝ, s∈Ioo (0:ℝ) 1 → DifferentiableAt ℝ f s ∧ + |deriv f s|≤dist (γ 0) (γ 1)*G (geodesicExtension γ s) := by + filter_upwards [hG.testPlan_ae_representative μ π hgeo hC hcomp hD, + testPlan_eval_intervalIntegrable μ π hC hcomp G, + testPlan_eval_nonneg μ π hcomp (hG.nonneg μ)] with γ hf hi hnon + obtain ⟨f,hf,hq,heq,hbound⟩ := hf + refine ⟨f,hf,?_,?_,heq,?_⟩ + · simpa [rationalTime] using hq (0:ℚ) + · simpa [rationalTime] using hq (1:ℚ) + · have hnon' : ∀ᵐ s : ℝ, s∈Icc (0:ℝ) 1 → 0≤G (geodesicExtension γ s) := + (ae_restrict_iff' measurableSet_Icc).mp hnon + let v r := dist (γ 0) (γ 1)*G (geodesicExtension γ r) + have hiv : IntervalIntegrable v volume 0 1 := hi.const_mul _ + filter_upwards [hf.ae_differentiableAt,hiv.ae_hasDerivAt_integral,hnon'] with s hd hp hn hs + have hsc : s∈uIcc (0:ℝ) 1 := by simpa only [uIcc_of_le zero_le_one] using Ioo_subset_Icc_self hs + have h0 : (0:ℝ)∈uIcc (0:ℝ) 1 := by simp + refine ⟨hd hsc,?_⟩ + have hb : |deriv f s|≤|v s| := by + apply abs_deriv_le_of_dist_domination (hd hsc).hasDerivAt (hp hsc 0 h0) + filter_upwards [Ioo_mem_nhds hs.1 hs.2] with t ht + have hst := hbound (⟨s,Ioo_subset_Icc_self hs⟩:Time) (⟨t,Ioo_subset_Icc_self ht⟩:Time) + have hi0 (a : ℝ) (ha : a∈Icc (0:ℝ) 1) : IntervalIntegrable v volume 0 a := by + apply hiv.mono_set + rw [uIcc_of_le ha.1,uIcc_of_le zero_le_one] + exact Icc_subset_Icc le_rfl ha.2 + simp only [Real.dist_eq] + rw [abs_sub_comm (f s),abs_sub_comm (∫ r in (0:ℝ)..s, v r), + intervalIntegral.integral_interval_sub_left (hi0 t (Ioo_subset_Icc_self ht)) + (hi0 s (Ioo_subset_Icc_self hs))] + simpa only [Real.dist_eq,abs_sub_comm,v,intervalIntegral.integral_const_mul] using hst + change |deriv f s|≤|dist (γ 0) (γ 1)*G (geodesicExtension γ s)| at hb + rwa [abs_of_nonneg (mul_nonneg dist_nonneg (hn (Ioo_subset_Icc_self hs)))] at hb + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/SobolevPlanVariation.lean b/lean/OAI/Geometry/RCD/Transport/SobolevPlanVariation.lean new file mode 100644 index 0000000000000000000000000000000000000000..dab7d72766e2a593cfff5469930e743276dd5d01 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/SobolevPlanVariation.lean @@ -0,0 +1,72 @@ +import OAI.Geometry.RCD.Transport.SobolevPlanDerivative +import OAI.Geometry.RCD.Heat.HeatOffDiagonalL2 + +namespace OAI + +/-! # Quantitative variation of Sobolev representatives along compressed paths -/ + +open Set Filter MeasureTheory +open scoped ENNReal +noncomputable section +namespace RegularPointCoordinates + +private theorem ac_variation_sq_le {f G : ℝ → ℝ} {D : ℝ} + (hf : AbsolutelyContinuousOnInterval f 0 1) + (hG : MemLp G 2 (volume.restrict (Icc (0:ℝ) 1))) + (hb : ∀ᵐ t : ℝ, t∈Ioo (0:ℝ) 1 → |deriv f t|≤D*G t) : + (∫ t in Icc (0:ℝ) 1, |deriv f t|)^2≤D^2*∫ t in Icc (0:ℝ) 1, (G t)^2 := by + let ν := volume.restrict (Icc (0:ℝ) 1) + have hdf : Integrable (deriv f) ν := + (intervalIntegrable_iff_integrableOn_Icc_of_le zero_le_one).mp hf.intervalIntegrable_deriv + have hb' : ∀ᵐ t ∂ν, |deriv f t|≤D*G t := by + rw [show ν=volume.restrict (Ioo (0:ℝ) 1) from restrict_Ioo_eq_restrict_Icc.symm] + filter_upwards [ae_restrict_of_ae hb,ae_restrict_mem measurableSet_Ioo] with t ht hs + exact ht hs + have hI : (∫ t, |deriv f t| ∂ν)≤D*(∫ t, G t ∂ν) := by + have hh := integral_mono_ae hdf.abs ((hG.integrable (by norm_num)).const_mul D) hb' + simpa only [integral_const_mul] using hh + have hm : ν.real univ=1 := by + simp only [ν,Measure.real,Measure.restrict_apply_univ,Real.volume_Icc,sub_zero, + ENNReal.ofReal_one,ENNReal.toReal_one] + have hcs : (∫ t, G t ∂ν)^2≤∫ t, (G t)^2 ∂ν := by + have hh := integral_mul_sq_le_integral_sq ν G (fun _ => 1) hG (memLp_const (1:ℝ)) + simpa only [mul_one,one_pow,integral_const,smul_eq_mul,hm,sq_abs] using hh + have hs := mul_self_le_mul_self (integral_nonneg (fun _ => abs_nonneg _)) hI + have hh := mul_le_mul_of_nonneg_left hcs (sq_nonneg D) + calc + _≤(D*(∫ t, G t ∂ν))^2 := by simpa only [← pow_two] using hs + _=D^2*(∫ t, G t ∂ν)^2 := mul_pow _ _ _ + _≤_ := hh + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem IsRelaxedSlope.testPlan_ae_sobolev_variation (μ : Measure X) + (π : Measure C(Time,X)) [IsFiniteMeasure π] + (hgeo : ∀ᵐ γ ∂π, IsGeodesic γ) {C : ℝ≥0∞} (hC : C≠∞) + (hcomp : ∀ t : Time, π.map (fun γ => γ t)≤C • μ) + (hD : MemLp (fun γ : C(Time,X) => dist (γ 0) (γ 1)) 2 π) + {u G : Lp ℝ 2 μ} (hG : IsRelaxedSlope μ u G) : + ∀ᵐ γ ∂π, ∃ f : ℝ → ℝ, + AbsolutelyContinuousOnInterval f 0 1 ∧ f 0=u (γ 0) ∧ f 1=u (γ 1) ∧ + (f =ᵐ[volume.restrict (Icc (0:ℝ) 1)] fun t => u (geodesicExtension γ t)) ∧ + (∫ t in Icc (0:ℝ) 1, |deriv f t|)^2≤ + (dist (γ 0) (γ 1))^2*(∫ t in Icc (0:ℝ) 1, (G (geodesicExtension γ t))^2) := by + let : IsFiniteMeasure (testPlanMeasure π) := by unfold testPlanMeasure; infer_instance + have hmem := testPlanMeasure_eval_memLp μ π hC hcomp G + have hsq := (memLp_two_iff_integrable_sq hmem.aestronglyMeasurable).mp hmem + have hinner := hsq.prod_left_ae + have hmi := (hmem.integrable (by norm_num : (1:ℝ≥0∞)≤2)).prod_left_ae + filter_upwards [hG.testPlan_ae_sobolev_derivative μ π hgeo hC hcomp hD,hinner,hmi] + with γ hf hsqγ hmγ + obtain ⟨f,hf,h0,h1,heq,hderiv⟩ := hf + refine ⟨f,hf,h0,h1,heq,?_⟩ + apply ac_variation_sq_le hf + · exact (memLp_two_iff_integrable_sq hmγ.aestronglyMeasurable).mpr hsqγ + · exact hderiv.mono (fun _ ht hs => (ht hs).2) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/StrongEntropy.lean b/lean/OAI/Geometry/RCD/Transport/StrongEntropy.lean new file mode 100644 index 0000000000000000000000000000000000000000..2d25f97827b37a468f73f3470829bb21919f6997 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/StrongEntropy.lean @@ -0,0 +1,107 @@ +import OAI.Geometry.RCD.Heat.EVIGeodesicConvexity +import OAI.Analysis.RCDHeat.ExistingAnalytic + +namespace OAI + +/-! # Strong entropy convexity at bounded-density Wasserstein geodesic points + +Applying the integrated EVI to both endpoints gives the entropy bound at every bounded-density +geodesic point, rather than only at a selected entropy interpolation. +-/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped ENNReal NNReal Topology +noncomputable section +namespace RegularPointCoordinates.NoncollapsedRCD +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] [SeparableSpace X] {K : ℝ} {n : ℕ} + [IsLocallyFiniteMeasure (hausdorff n X)] (hX : NoncollapsedRCD K n X) + +theorem bounded_entropy_geodesic_point (hn : 2 ≤ n) (p : X) + (f : Lp ℝ 2 (hausdorff n X)) (C : ℝ≥0) (hf0 : 0 ≤ f) + (hfC : ∀ᵐ x ∂hausdorff n X, f x ≤ C) (hfm : (∫ x, f x ∂hausdorff n X)=1) + {r : ℝ} (hfs : ∀ᵐ x ∂hausdorff n X, f x≠0 → dist p x ≤ r) + (ν₀ ν₁ : Measure X) [IsProbabilityMeasure ν₀] [IsProbabilityMeasure ν₁] + (hν₀ : ν₀ ≤ ENNReal.ofReal C • hausdorff n X) + (hν₁ : ν₁ ≤ ENNReal.ofReal C • hausdorff n X) + {R₀ R₁ : ℝ} (hs₀ : ∀ᵐ x ∂ν₀, dist x p ≤ R₀) (hs₁ : ∀ᵐ x ∂ν₁, dist x p ≤ R₁) + {θ : ℝ} (hθ0 : 0 ≤ θ) (hθ1 : θ ≤ 1) + (hd₀ : (wassersteinSq (heatMeasure (hausdorff n X) hX.quadratic 0 f) ν₀).toReal= + θ^2*(wassersteinSq ν₀ ν₁).toReal) + (hd₁ : (wassersteinSq (heatMeasure (hausdorff n X) hX.quadratic 0 f) ν₁).toReal= + (1-θ)^2*(wassersteinSq ν₀ ν₁).toReal) : + boltzmannEntropy (hausdorff n X) (heatMeasure (hausdorff n X) hX.quadratic 0 f) ≤ + (1-θ)*boltzmannEntropy (hausdorff n X) ν₀+θ*boltzmannEntropy (hausdorff n X) ν₁- + (K/2)*θ*(1-θ)*(wassersteinSq ν₀ ν₁).toReal := by + let μ := hausdorff n X + let := ACWassersteinProbability.metric μ K n hX.cd + let x : ACWassersteinProbability μ := ⟨ν₀,inferInstance, + Measure.absolutelyContinuous_of_le_smul hν₀,finiteSecondMoment_of_ae_dist_le ν₀ p hs₀⟩ + let y : ACWassersteinProbability μ := ⟨ν₁,inferInstance, + Measure.absolutelyContinuous_of_le_smul hν₁,finiteSecondMoment_of_ae_dist_le ν₁ p hs₁⟩ + let z := hX.heatProbability K n hn p f hf0 ⟨r,hfs⟩ hfm + let E := fun v : ACWassersteinProbability μ => boltzmannEntropy μ v.val + have hfabs : ∀ᵐ a ∂μ, |f a| ≤ C := by + filter_upwards [(Lp.coeFn_nonneg _).mpr hf0,hfC] with a ha hb + simpa only [abs_of_nonneg ha] using hb + have hz : ContinuousOn z (Icc 0 1) := by + simpa only [uIcc_of_le (zero_le_one : (0:ℝ) ≤ 1)] using (metricAC_uniformContinuousOn + (hX.heat_probability_absolutelyContinuous K n hn p f hf0 ⟨r,hfs⟩ hfm C hfabs 1 zero_le_one)).continuousOn + have hmeasure (t : ℝ) (ht : 0 ≤ t) : (z t).val=heatMeasure μ hX.quadratic t f := by + change heatMeasure μ hX.quadratic (max t 0) f=heatMeasure μ hX.quadratic t f + rw [max_eq_left ht] + have hdist₀ (t : ℝ) (ht : 0 ≤ t) : + dist (z t) x^2=(wassersteinSq (heatMeasure μ hX.quadratic t f) ν₀).toReal := by + rw [ACWassersteinProbability.dist_sq μ hX.cd,hmeasure t ht] + have hdist₁ (t : ℝ) (ht : 0 ≤ t) : + dist (z t) y^2=(wassersteinSq (heatMeasure μ hX.quadratic t f) ν₁).toReal := by + rw [ACWassersteinProbability.dist_sq μ hX.cd,hmeasure t ht] + have hdist : dist x y^2=(wassersteinSq ν₀ ν₁).toReal := ACWassersteinProbability.dist_sq μ hX.cd x y + have hx : dist (z 0) x=θ*dist x y := by + apply (sq_eq_sq₀ dist_nonneg (mul_nonneg hθ0 dist_nonneg)).mp + rw [mul_pow,hdist₀ 0 le_rfl,hdist] + exact hd₀ + have hy : dist (z 0) y=(1-θ)*dist x y := by + apply (sq_eq_sq₀ dist_nonneg (mul_nonneg (sub_nonneg.mpr hθ1) dist_nonneg)).mp + rw [mul_pow,hdist₁ 0 le_rfl,hdist] + exact hd₁ + obtain ⟨A,B,hA,hB,hvol⟩ := hX.exponential_volume K n hn p + have hraw := heatAt_entropy_absolutelyContinuous_nonneg μ hX.quadratic p hA hB hvol f hf0 + (lp_integrable_of_bounded_support μ f p hfs) hfs (a:=0) (b:=1) le_rfl zero_le_one + have he : ContinuousOn (fun t => E (z t)) (Icc 0 1) := by + have hc : ContinuousOn (fun t => boltzmannEntropy μ (heatMeasure μ hX.quadratic t f)) (Icc 0 1) := by + simpa only [uIcc_of_le (zero_le_one : (0:ℝ) ≤ 1),boltzmannEntropy_heatMeasure_eq μ hX.quadratic f hf0] + using hraw.continuousOn + apply hc.congr + intro t ht + change boltzmannEntropy μ (z t).val=boltzmannEntropy μ (heatMeasure μ hX.quadratic t f) + rw [hmeasure t ht.1] + have hbound := geodesic_convexity_of_integrated_evi (K:=K) hθ0 hθ1 zero_lt_one hz he hx hy + (fun a b ha hab _ => ?_) (fun a b ha hab _ => ?_) + · simpa only [E,hmeasure 0 le_rfl,hdist] using hbound + · rw [hdist₀ b (ha.le.trans hab),hdist₀ a ha.le] + have h := hX.bounded_heat_EVI K n hn p f C hf0 hfC hfm hfs ν₀ hν₀ hs₀ ha hab + convert h using 1 + apply intervalIntegral.integral_congr + intro t ht + have ht0 : 0 ≤ t := ha.le.trans ((uIcc_of_le hab ▸ ht).1) + change boltzmannEntropy μ ν₀-boltzmannEntropy μ (z t).val-(K/2)*dist (z t) x^2= + boltzmannEntropy μ ν₀-boltzmannEntropy μ (heatMeasure μ hX.quadratic t f)- + (K/2)*(wassersteinSq (heatMeasure μ hX.quadratic t f) ν₀).toReal + rw [hmeasure t ht0,hdist₀ t ht0] + · rw [hdist₁ b (ha.le.trans hab),hdist₁ a ha.le] + have h := hX.bounded_heat_EVI K n hn p f C hf0 hfC hfm hfs ν₁ hν₁ hs₁ ha hab + convert h using 1 + apply intervalIntegral.integral_congr + intro t ht + have ht0 : 0 ≤ t := ha.le.trans ((uIcc_of_le hab ▸ ht).1) + change boltzmannEntropy μ ν₁-boltzmannEntropy μ (z t).val-(K/2)*dist (z t) y^2= + boltzmannEntropy μ ν₁-boltzmannEntropy μ (heatMeasure μ hX.quadratic t f)- + (K/2)*(wassersteinSq (heatMeasure μ hX.quadratic t f) ν₁).toReal + rw [hmeasure t ht0,hdist₁ t ht0] + +end RegularPointCoordinates.NoncollapsedRCD + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/StrongEntropyMeasure.lean b/lean/OAI/Geometry/RCD/Transport/StrongEntropyMeasure.lean new file mode 100644 index 0000000000000000000000000000000000000000..0bda575ca15fe5e1b8270dfa0b9e5417923b82f8 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/StrongEntropyMeasure.lean @@ -0,0 +1,38 @@ +import OAI.Geometry.RCD.Transport.StrongEntropy +import OAI.Geometry.RCD.Metric.BoundedDensityLp + +namespace OAI + +/-! # The strong entropy inequality for actual bounded probability measures -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped ENNReal NNReal Topology +noncomputable section +namespace RegularPointCoordinates.NoncollapsedRCD +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] [SeparableSpace X] {K : ℝ} {n : ℕ} + [IsLocallyFiniteMeasure (hausdorff n X)] (hX : NoncollapsedRCD K n X) +include hX + +theorem bounded_entropy_geodesic_measure (hn : 2 ≤ n) (p : X) + (ν₀ ν₁ ν : Measure X) [IsProbabilityMeasure ν₀] [IsProbabilityMeasure ν₁] [IsProbabilityMeasure ν] + {C : ℝ≥0} (hν₀ : ν₀ ≤ ENNReal.ofReal C • hausdorff n X) + (hν₁ : ν₁ ≤ ENNReal.ofReal C • hausdorff n X) (hν : ν ≤ ENNReal.ofReal C • hausdorff n X) + {R₀ R₁ R : ℝ} (hs₀ : ∀ᵐ x ∂ν₀, dist x p ≤ R₀) (hs₁ : ∀ᵐ x ∂ν₁, dist x p ≤ R₁) + (hs : ∀ᵐ x ∂ν, dist x p ≤ R) {θ : ℝ} (hθ0 : 0 ≤ θ) (hθ1 : θ ≤ 1) + (hd₀ : (wassersteinSq ν ν₀).toReal=θ^2*(wassersteinSq ν₀ ν₁).toReal) + (hd₁ : (wassersteinSq ν ν₁).toReal=(1-θ)^2*(wassersteinSq ν₀ ν₁).toReal) : + boltzmannEntropy (hausdorff n X) ν ≤ + (1-θ)*boltzmannEntropy (hausdorff n X) ν₀+θ*boltzmannEntropy (hausdorff n X) ν₁- + (K/2)*θ*(1-θ)*(wassersteinSq ν₀ ν₁).toReal := by + obtain ⟨f,hf0,hfC,hfm,hfs,he⟩ := exists_bounded_probability_density (hausdorff n X) + hX.quadratic ν hν p hs + have h := hX.bounded_entropy_geodesic_point hn p f C hf0 hfC hfm hfs ν₀ ν₁ hν₀ hν₁ hs₀ hs₁ + hθ0 hθ1 (by rwa [he]) (by rwa [he]) + rwa [he] at h + +end RegularPointCoordinates.NoncollapsedRCD + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/StrongReduced.lean b/lean/OAI/Geometry/RCD/Transport/StrongReduced.lean new file mode 100644 index 0000000000000000000000000000000000000000..cd74895f4c46242a700268f54704f4901775aea2 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/StrongReduced.lean @@ -0,0 +1,41 @@ +import OAI.Geometry.RCD.Transport.CompressedFiniteUnique +import OAI.Geometry.RCD.Transport.ReducedInterpolation + +namespace OAI + +/-! # Exact reduced interpolation on every bounded compressed optimal plan + +The entropy-maximizing plan has the finite-dimensional reduced +bound. Uniqueness now transfers that bound to the prescribed actual plan. +-/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped ENNReal Topology +noncomputable section +namespace RegularPointCoordinates.NoncollapsedRCD +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] [SeparableSpace X] {K : ℝ} {n : ℕ} + [IsLocallyFiniteMeasure (hausdorff n X)] (hX : NoncollapsedRCD K n X) +include hX +attribute [local instance] pathBorel pathBorelSpace + +theorem all_compressed_reduced_interpolation (hn : 2 ≤ n) (hK : K ≤ 0) + {N : ℝ} (hN : (n:ℝ) ≤ N) (a : RenyiTransportNode n X) + (π : Measure C(Time,X)) [IsProbabilityMeasure π] + (hg : ∀ᵐ γ ∂π, IsGeodesic γ) + (hp : IsOptimalCoupling a.left a.right (π.map (fun γ => (γ 0,γ 1)))) + {C : ℝ≥0∞} (hC : C ≠ ∞) + (hc : ∀ t : Time, π.map (fun γ => γ t) ≤ C • hausdorff n X) : + ∀ t, ReducedRenyiChordBound (hausdorff n X) K N π t := by + obtain ⟨ρ,hρ,hgρ,hpρ,hcρ,hr⟩ := + hX.exists_compressed_reduced_interpolation K n hn hK hN a + let : IsProbabilityMeasure ρ := hρ + have he : π=ρ := hX.compressed_plan_unique_finite hn a.center a.radius_nonneg π ρ hg hgρ hp hpρ + hC (compressionBudget_ne_top K n a.distance a.capacity_finite) hc hcρ a.left_support a.right_support + rwa [he] + +end RegularPointCoordinates.NoncollapsedRCD + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/SubpathMeanVariation.lean b/lean/OAI/Geometry/RCD/Transport/SubpathMeanVariation.lean new file mode 100644 index 0000000000000000000000000000000000000000..ed8f36572d5f585f61c9307949e4562aac846072 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/SubpathMeanVariation.lean @@ -0,0 +1,70 @@ +import OAI.Analysis.RCDHeat.WeightedGradientConvex +import OAI.Analysis.RCDHeat.CompressionIntegral + +namespace OAI + +/-! # Physical-time mean variation from a reversed subpath -/ + +open Set Filter MeasureTheory +open scoped Topology NNReal ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem reverse_subpath_secant (π : Measure C(Time,X)) {g : X → ℝ} (hg : Measurable g) + (s : Time) (hs : 0 < (s:ℝ)) {h : ℝ} (hh : 0 < h) (hhs : h < (s:ℝ)) : + -(planInitialSecant (π.map (subpath s 0)) g (h/(s:ℝ)))/(s:ℝ) = + (∫ γ : C(Time,X), g (γ s)-g (geodesicExtension γ ((s:ℝ)-h)) ∂π)/h := by + have hq : h/(s:ℝ) ∈ Icc (0:ℝ) 1 := + ⟨(div_pos hh hs).le,(div_lt_one hs).mpr hhs |>.le⟩ + let q : Time := ⟨h/(s:ℝ),hq⟩ + have hmeas : AEStronglyMeasurable + (fun γ : C(Time,X) => g (geodesicExtension γ (h/(s:ℝ)))-g (γ 0)) + (π.map (subpath s 0)) := by + have he (γ : C(Time,X)) : geodesicExtension γ (h/(s:ℝ)) = γ q := + geodesicExtension_eq γ q + simp only [he] + exact ((hg.comp (measurable_path_eval q)).sub (hg.comp (measurable_path_eval 0))).aestronglyMeasurable + have he (γ : C(Time,X)) : geodesicExtension (subpath s 0 γ) (h/(s:ℝ)) = + geodesicExtension γ ((s:ℝ)-h) := by + rw [subpath_extension s 0 γ hq] + congr 1 + change (1-h/(s:ℝ))*(s:ℝ)+(h/(s:ℝ))*0 = (s:ℝ)-h + field_simp [hs.ne'] + ring + dsimp only [planInitialSecant] + rw [integral_map (subpath_measurable s 0).aemeasurable hmeas] + have hi : (fun γ : C(Time,X) => g (geodesicExtension (subpath s 0 γ) (h/(s:ℝ)))- + g (subpath s 0 γ 0)) = fun γ => -(g (γ s)-g (geodesicExtension γ ((s:ℝ)-h))) := by + funext γ + rw [he,subpath_zero] + ring + rw [hi,integral_neg] + field_simp [hs.ne',hh.ne'] + +theorem reverse_subpath_mean_limit (π : Measure C(Time,X)) {g : X → ℝ} (hg : Measurable g) + (s : Time) (hs : 0 < (s:ℝ)) {c : ℝ} + (hv : Tendsto (planInitialSecant (π.map (subpath s 0)) g) (𝓝[>] (0:ℝ)) (𝓝 c)) : + Tendsto (fun h : ℝ => + (∫ γ : C(Time,X), g (γ s)-g (geodesicExtension γ ((s:ℝ)-h)) ∂π)/h) + (𝓝[>] (0:ℝ)) (𝓝 (-c/(s:ℝ))) := by + have hd : Tendsto (fun h : ℝ => h/(s:ℝ)) (𝓝[>] (0:ℝ)) (𝓝[>] (0:ℝ)) := by + apply tendsto_nhdsWithin_iff.mpr + refine ⟨?_,?_⟩ + · simpa only [zero_div] using + ((show Tendsto (fun h : ℝ => h) (𝓝[>] (0:ℝ)) (𝓝 (0:ℝ)) from nhdsWithin_le_nhds).div_const (s:ℝ)) + · filter_upwards [self_mem_nhdsWithin] with h hh + exact div_pos hh hs + have hl := ((hv.comp hd).neg.div_const (s:ℝ)) + apply hl.congr' + have hsmall : ∀ᶠ h : ℝ in 𝓝[>] (0:ℝ), h < (s:ℝ) := + (gt_mem_nhds hs).filter_mono nhdsWithin_le_nhds + filter_upwards [self_mem_nhdsWithin,hsmall] with h hh hsmall + exact reverse_subpath_secant π hg s hs hh hsmall + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/SubpathMeasureSub.lean b/lean/OAI/Geometry/RCD/Transport/SubpathMeasureSub.lean new file mode 100644 index 0000000000000000000000000000000000000000..a616e16549d7148a842b9b3e48ae68eb65057c3d --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/SubpathMeasureSub.lean @@ -0,0 +1,27 @@ +import OAI.Geometry.RCD.Transport.OptimalMidpointSplice + +namespace OAI + +/-! # Removing a finite subplan commutes with restriction of time -/ + +open Set Filter MeasureTheory +open scoped Topology ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +omit [MeasurableSpace X] [BorelSpace X] in +theorem subpath_map_sub (π κ : Measure C(Time,X)) [IsFiniteMeasure κ] + (hκ : κ≤π) (s t : Time) : + (π-κ).map (subpath s t)=π.map (subpath s t)-κ.map (subpath s t) := by + ext B hB + have hm := subpath_measurable (X:=X) s t + rw [Measure.map_apply hm hB,Measure.sub_apply (hm hB) hκ, + Measure.sub_apply hB (Measure.map_mono hκ hm),Measure.map_apply hm hB,Measure.map_apply hm hB] + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/SubplanAbsoluteIntegral.lean b/lean/OAI/Geometry/RCD/Transport/SubplanAbsoluteIntegral.lean new file mode 100644 index 0000000000000000000000000000000000000000..f530bc2560830f4ec6c6955eddcb21509d13e6ac --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/SubplanAbsoluteIntegral.lean @@ -0,0 +1,56 @@ +import Mathlib.MeasureTheory.Function.AEEqOfIntegral + +namespace OAI + +/-! # Absolute errors from normalized submeasure mean bounds -/ + +open Set Filter MeasureTheory +open scoped ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MeasurableSpace X] + +theorem integral_abs_le_of_setIntegral_bound (μ : Measure X) {f : X → ℝ} + (hm : Measurable f) (hi : Integrable f μ) {C : ℝ} + (hbound : ∀ S, MeasurableSet S → |∫ x in S, f x ∂μ|≤C) : + (∫ x, |f x| ∂μ)≤2*C := by + let S := {x | 0≤f x} + have hS : MeasurableSet S := measurableSet_le measurable_const hm + have hpos : (∫ x in S, |f x| ∂μ)=∫ x in S, f x ∂μ := by + apply integral_congr_ae + filter_upwards [ae_restrict_mem hS] with x hx + exact abs_of_nonneg hx + have hneg : (∫ x in Sᶜ, |f x| ∂μ)=-(∫ x in Sᶜ, f x ∂μ) := by + rw [← integral_neg] + apply integral_congr_ae + filter_upwards [ae_restrict_mem hS.compl] with x hx + exact abs_of_nonpos (le_of_lt (not_le.mp hx)) + rw [← integral_add_compl hS hi.abs,hpos,hneg] + have h1 := hbound S hS + have h2 := hbound Sᶜ hS.compl + linarith [le_abs_self (∫ x in S, f x ∂μ),neg_le_abs (∫ x in Sᶜ, f x ∂μ)] + +theorem integral_abs_le_of_normalized_submeans (μ : Measure X) [IsFiniteMeasure μ] + {f : X → ℝ} (hm : Measurable f) (hi : Integrable f μ) {C : ℝ} (hC : 0≤C) + (hmean : ∀ κ : Measure X, κ≤μ → κ univ≠0 → + |∫ x, f x ∂((κ univ)⁻¹ • κ)|≤((κ univ)⁻¹).toReal*C) : + (∫ x, |f x| ∂μ)≤2*C := by + apply integral_abs_le_of_setIntegral_bound μ hm hi + intro S _hS + by_cases hzero : μ S=0 + · rw [Measure.restrict_eq_zero.mpr hzero] + simpa only [integral_zero_measure,abs_zero] using hC + let κ := μ.restrict S + have hk0 : κ univ≠0 := by simpa only [κ,Measure.restrict_apply_univ] using hzero + have hkt : κ univ≠∞ := measure_ne_top κ univ + have ha : 0<((κ univ)⁻¹).toReal := ENNReal.toReal_pos + (ENNReal.inv_ne_zero.mpr hkt) (ENNReal.inv_ne_top.mpr hk0) + have hh := hmean κ Measure.restrict_le_self hk0 + rw [integral_smul_measure,smul_eq_mul,abs_mul,abs_of_pos ha] at hh + exact (mul_le_mul_iff_right₀ ha).mp hh + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/SubplanReduced.lean b/lean/OAI/Geometry/RCD/Transport/SubplanReduced.lean new file mode 100644 index 0000000000000000000000000000000000000000..0ac3f2cfb43fe7feff9b9ceb0a13a4d361d31db7 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/SubplanReduced.lean @@ -0,0 +1,55 @@ +import OAI.Geometry.RCD.Transport.StrongReduced +import OAI.Geometry.RCD.Transport.CompressedSubplanNode + +namespace OAI + +/-! # Every normalized nonzero subplan satisfies the exact reduced bound -/ + +open Set Filter MeasureTheory Metric TopologicalSpace +open scoped ENNReal Topology +noncomputable section +namespace RegularPointCoordinates.NoncollapsedRCD +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] [SeparableSpace X] {K : ℝ} {n : ℕ} + [IsLocallyFiniteMeasure (hausdorff n X)] (hX : NoncollapsedRCD K n X) +include hX +attribute [local instance] pathBorel pathBorelSpace + +theorem normalized_subplan_reduced (hn : 2 ≤ n) (hK : K ≤ 0) + {N : ℝ} (hN : (n:ℝ) ≤ N) (a : RenyiTransportNode n X) + (π : Measure C(Time,X)) [IsProbabilityMeasure π] + (hg : ∀ᵐ γ ∂π, IsGeodesic γ) + (hp : IsOptimalCoupling a.left a.right (π.map (fun γ => (γ 0,γ 1)))) + {C : ℝ≥0∞} (hC : C ≠ ∞) + (hc : ∀ t : Time, π.map (fun γ => γ t) ≤ C • hausdorff n X) + (κ : Measure C(Time,X)) (hk : κ ≤ π) (hk0 : κ univ ≠ 0) : + ∀ t, ReducedRenyiChordBound (hausdorff n X) K N ((κ univ)⁻¹ • κ) t := by + let := a.left_probability + let := a.right_probability + let : IsFiniteMeasure κ := isFiniteMeasure_of_le π hk + have hd := a.distance_bound π inferInstance hg hp + obtain ⟨b,hb₀,hb₁,_⟩ := hX.compressed_subplan_node K n hn a π hg hp hC hc κ hk hk0 + a.distance_nonneg (hd.filter_mono hk.absolutelyContinuous.ae_le) + have he := optimalPlan_endpoints a.left a.right π hp + have hpp : IsOptimalCoupling (π.map (fun γ => γ 0)) (π.map (fun γ => γ 1)) + (π.map (fun γ => (γ 0,γ 1))) := by rwa [he.1,he.2] + have hfin := coupling_transportCost_ne_top hp.1 hp.2.1 a.center + (integrable_dist_sq_of_ae_bounded _ a.center a.left_support) + (integrable_dist_sq_of_ae_bounded _ a.center a.right_support) + let ρ := (κ univ)⁻¹ • κ + obtain ⟨hρ,hgρ,hpρ,_⟩ := normalized_optimal_subplan π hg hpp hfin κ hk hk0 + let : IsProbabilityMeasure ρ := hρ + have heρ (t : Time) : ρ.map (fun γ => γ t)=(κ univ)⁻¹ • κ.map (fun γ => γ t) := + Measure.map_smul _ (measurable_path_eval t).aemeasurable + have hpρ' : IsOptimalCoupling b.left b.right (ρ.map (fun γ => (γ 0,γ 1))) := by + rw [hb₀,hb₁,←heρ,←heρ] + exact hpρ + exact hX.all_compressed_reduced_interpolation hn hK hN b ρ hgρ hpρ' + (ENNReal.mul_ne_top (ENNReal.inv_ne_top.mpr hk0) hC) + (normalized_subplan_compression π κ hk hc) + +end RegularPointCoordinates.NoncollapsedRCD + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/TestPlanIntervalFlux.lean b/lean/OAI/Geometry/RCD/Transport/TestPlanIntervalFlux.lean new file mode 100644 index 0000000000000000000000000000000000000000..88ee54fe80c917de7546831bca47b9b98cd8d9a4 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/TestPlanIntervalFlux.lean @@ -0,0 +1,101 @@ +import OAI.Analysis.RCDHeat.SobolevTestPlan + +namespace OAI + +/-! # Flux and initial slope at every interior time of a geodesic plan -/ + +open Set Filter MeasureTheory TopologicalSpace +open scoped ENNReal NNReal Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem testPlan_flux_fubini_interval (μ : Measure X) + (π : Measure C(Time,X)) [IsFiniteMeasure π] + {C : ℝ≥0∞} (hC : C ≠ ∞) + (hcomp : ∀ t : Time, π.map (fun γ => γ t) ≤ C • μ) + (hD : MemLp (fun γ : C(Time,X) => dist (γ 0) (γ 1)) 2 π) + (G : Lp ℝ 2 μ) (s t : Time) (hst : (s:ℝ) ≤ t) : + Integrable (fun γ : C(Time,X) => dist (γ 0) (γ 1)* + (∫ r in (s:ℝ)..(t:ℝ), G (geodesicExtension γ r))) π ∧ + (∫ γ : C(Time,X), dist (γ 0) (γ 1)* + (∫ r in (s:ℝ)..(t:ℝ), G (geodesicExtension γ r)) ∂π) = + ∫ r in (s:ℝ)..(t:ℝ), (∫ γ : C(Time,X), + dist (γ 0) (γ 1)*G (geodesicExtension γ r) ∂π) := by + have hi := (testPlan_length_memLp π hD).integrable_mul + (testPlanMeasure_eval_memLp μ π hC hcomp G) + have hit : Integrable (fun q : ℝ × C(Time,X) => + dist (q.2 0) (q.2 1)*G (geodesicExtension q.2 q.1)) + ((volume.restrict (Icc (s:ℝ) (t:ℝ))).prod π) := by + apply hi.mono_measure + exact Measure.prod_mono (Measure.restrict_mono (Icc_subset_Icc s.2.1 t.2.2) le_rfl) le_rfl + have he (γ : C(Time,X)) : + dist (γ 0) (γ 1)*(∫ r in (s:ℝ)..(t:ℝ), G (geodesicExtension γ r)) = + ∫ r in Icc (s:ℝ) (t:ℝ), dist (γ 0) (γ 1)*G (geodesicExtension γ r) := by + rw [integral_const_mul,integral_Icc_eq_integral_Ioc,intervalIntegral.integral_of_le hst] + constructor + · simpa only [he] using hit.integral_prod_right + · simp_rw [he] + rw [← integral_prod_symm _ hit,integral_prod _ hit,integral_Icc_eq_integral_Ioc, + intervalIntegral.integral_of_le hst] + +theorem IsRelaxedSlope.testPlan_integrated_interval (μ : Measure X) + (π : Measure C(Time,X)) [IsFiniteMeasure π] (hgeo : ∀ᵐ γ ∂π, IsGeodesic γ) + {C : ℝ≥0∞} (hC : C ≠ ∞) + (hcomp : ∀ t : Time, π.map (fun γ => γ t) ≤ C • μ) + (hD : MemLp (fun γ : C(Time,X) => dist (γ 0) (γ 1)) 2 π) + {u G : Lp ℝ 2 μ} (hG : IsRelaxedSlope μ u G) (s t : Time) (hst : (s:ℝ) ≤ t) : + (∫ γ : C(Time,X), |u (γ t)-u (γ s)| ∂π) ≤ + ∫ r in (s:ℝ)..(t:ℝ), (∫ γ : C(Time,X), + dist (γ 0) (γ 1)*G (geodesicExtension γ r) ∂π) := by + have hiu (r : Time) : MemLp (fun γ : C(Time,X) => u (γ r)) 2 π := + compressionPullback_memLp μ π _ (measurable_path_eval r) hC (hcomp r) u + have hleft : Integrable (fun γ : C(Time,X) => |u (γ t)-u (γ s)|) π := + ((hiu t).sub (hiu s)).integrable (by norm_num) |>.abs + obtain ⟨hri,he⟩ := testPlan_flux_fubini_interval μ π hC hcomp hD G s t hst + rw [← he] + exact integral_mono_ae hleft hri (hG.testPlan_ae_subinterval μ π hgeo hC hcomp hD s t hst) + +theorem IsRelaxedSlope.testPlan_right_slope_bound (μ : Measure X) + [ProperSpace X] [μ.Regular] (π : Measure C(Time,X)) [IsFiniteMeasure π] + (hgeo : ∀ᵐ γ ∂π, IsGeodesic γ) {C : ℝ≥0∞} (hC : C ≠ ∞) + (hcomp : ∀ t : Time, π.map (fun γ => γ t) ≤ C • μ) + (hD : MemLp (fun γ : C(Time,X) => dist (γ 0) (γ 1)) 2 π) + {u G : Lp ℝ 2 μ} (hG : IsRelaxedSlope μ u G) + (s : Time) (hs : (s:ℝ) < 1) {ε : ℝ} (hε : 0 < ε) : + ∀ᶠ t in 𝓝[>] (s:ℝ), + (∫ γ : C(Time,X), |u (geodesicExtension γ t)-u (γ s)| ∂π)/(t-s) < + (∫ γ : C(Time,X), dist (γ 0) (γ 1)*G (γ s) ∂π)+ε := by + let F : ℝ → ℝ := fun r => ∫ γ : C(Time,X), + dist (γ 0) (γ 1)*G (geodesicExtension γ r) ∂π + have hF : Continuous F := testPlan_flux_continuous μ π hgeo hC hcomp hD G + have hd : HasDerivAt (fun t => ∫ r in (s:ℝ)..t, F r) (F s) s := + intervalIntegral.integral_hasDerivAt_right (hF.intervalIntegrable _ _) + hF.aestronglyMeasurable.stronglyMeasurableAtFilter hF.continuousAt + have ht : Tendsto (fun t => (∫ r in (s:ℝ)..t, F r)/(t-s)) + (𝓝[≠] (s:ℝ)) (𝓝 (F s)) := by + simpa only [slope_fun_def_field,intervalIntegral.integral_same,sub_zero] using hd.tendsto_slope + have hfilt : 𝓝[>] (s:ℝ) ≤ 𝓝[≠] (s:ℝ) := + nhdsWithin_mono _ (fun t ht => (ne_of_gt ht : t ≠ (s:ℝ))) + have hb := (ht.mono_left hfilt).eventually (gt_mem_nhds (lt_add_of_pos_right (F s) hε)) + have hsmall : ∀ᶠ t in 𝓝[>] (s:ℝ), t < 1 := + (gt_mem_nhds hs).filter_mono nhdsWithin_le_nhds + filter_upwards [hb,hsmall,self_mem_nhdsWithin] with t ht ht1 hts + have h01 : t ∈ Icc (0:ℝ) 1 := ⟨s.2.1.trans hts.le,ht1.le⟩ + have hi := hG.testPlan_integrated_interval μ π hgeo hC hcomp hD s ⟨t,h01⟩ hts.le + have he (γ : C(Time,X)) : geodesicExtension γ t = γ ⟨t,h01⟩ := + geodesicExtension_eq γ ⟨t,h01⟩ + have hz : F s = ∫ γ : C(Time,X), dist (γ 0) (γ 1)*G (γ s) ∂π := by + simp only [F,geodesicExtension_eq] + rw [← hz] + calc + _ = (∫ γ : C(Time,X), |u (γ ⟨t,h01⟩)-u (γ s)| ∂π)/(t-s) := by simp_rw [he] + _ ≤ (∫ r in (s:ℝ)..t, F r)/(t-s) := div_le_div_of_nonneg_right hi (sub_nonneg.mpr hts.le) + _ < F s+ε := ht + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/TestPlanLocalProperty.lean b/lean/OAI/Geometry/RCD/Transport/TestPlanLocalProperty.lean new file mode 100644 index 0000000000000000000000000000000000000000..a78e6762cfa0755e3c83c2c0de22d7cdb51a33bd --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/TestPlanLocalProperty.lean @@ -0,0 +1,34 @@ +import OAI.Analysis.RCDHeat.TestPlanContinuous + +namespace OAI + +/-! # A local spatial full-measure property along compressed geodesics -/ + +open Set Filter MeasureTheory +open scoped ENNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +theorem testPlan_eval_property_on (μ : Measure X) (π : Measure C(Time,X)) + [IsFiniteMeasure π] {C : ℝ≥0∞} + (hcomp : ∀ t : Time, π.map (fun γ => γ t)≤C • μ) + {Ω : Set X} (hΩ : MeasurableSet Ω) + (hstay : ∀ᵐ γ ∂π, ∀ t : Time, γ t∈Ω) {P : X → Prop} + (hP : ∀ᵐ x ∂μ.restrict Ω, P x) : + ∀ᵐ γ ∂π, ∀ᵐ t ∂volume.restrict (Icc (0:ℝ) 1), P (geodesicExtension γ t) := by + have hc := (ae_restrict_iff' hΩ).mp hP + have hac := Measure.absolutelyContinuous_of_le_smul (testPlanMeasure_compression μ π hcomp) + have hh := ae_of_ae_map testPlanEval_measurable.aemeasurable (hc.filter_mono hac.ae_le) + have ht := Measure.ae_ae_of_ae_prod (Measure.measurePreserving_swap.quasiMeasurePreserving.ae hh) + filter_upwards [ht,hstay] with γ hγ hs + filter_upwards [hγ] with t hp + apply hp + exact hs (Set.projIcc 0 1 zero_le_one t) + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/TestPlanMeanSlope.lean b/lean/OAI/Geometry/RCD/Transport/TestPlanMeanSlope.lean new file mode 100644 index 0000000000000000000000000000000000000000..a6990a783b08a882b5123fae983f011352a5dfd2 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/TestPlanMeanSlope.lean @@ -0,0 +1,47 @@ +import OAI.Geometry.RCD.Transport.TestPlanTemporalDifference +import OAI.Geometry.RCD.Transport.TestPlanIntervalFlux + +namespace OAI + +/-! # The spatial slope of a fixed Sobolev function along a plan -/ + +open Set Filter MeasureTheory +open scoped Topology ENNReal NNReal +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] + [ProperSpace X] (μ : Measure X) [μ.Regular] (Q : QuadraticCheegerEnergy μ) +attribute [local instance] pathBorel pathBorelSpace + +theorem testPlanMeanCLM_right_slope_bound (π : Measure C(Time,X)) [IsFiniteMeasure π] + (hgeo : ∀ᵐ γ ∂π, IsGeodesic γ) {C : ℝ≥0∞} (hC : C ≠ ∞) + (hcomp : ∀ t : Time, π.map (fun γ => γ t) ≤ C • μ) + (hLength : MemLp (fun γ : C(Time,X) => dist (γ 0) (γ 1)) 2 π) + (u : SobolevSpace μ Q) (s : Time) (hs : (s:ℝ) < 1) {ε : ℝ} (hε : 0 < ε) : + ∀ᶠ t in 𝓝[>] (s:ℝ), + |(testPlanMeanCLM μ π hC hcomp t (SobolevSpace.toLp μ Q u)- + testPlanMeanCLM μ π hC hcomp s (SobolevSpace.toLp μ Q u))/(t-s)| < + (∫ γ : C(Time,X), dist (γ 0) (γ 1)*SobolevSpace.minimalSlope μ Q u (γ s) ∂π)+ε := by + have hb := (SobolevSpace.minimalSlope_isRelaxed μ Q u).testPlan_right_slope_bound + μ π hgeo hC hcomp hLength s hs hε + have hsmall : ∀ᶠ t in 𝓝[>] (s:ℝ), t < 1 := + (gt_mem_nhds hs).filter_mono nhdsWithin_le_nhds + filter_upwards [hb,hsmall,self_mem_nhdsWithin] with t ht ht1 hts + have h01 : t ∈ Icc (0:ℝ) 1 := ⟨s.2.1.trans hts.le,ht1.le⟩ + have hi (r : Time) : Integrable (fun γ : C(Time,X) => SobolevSpace.toLp μ Q u (γ r)) π := + (compressionPullback_memLp μ π _ (measurable_path_eval r) hC (hcomp r) + (SobolevSpace.toLp μ Q u)).integrable (by norm_num) + have he (γ : C(Time,X)) : geodesicExtension γ t = γ ⟨t,h01⟩ := + geodesicExtension_eq γ ⟨t,h01⟩ + rw [testPlanMeanCLM_apply,testPlanMeanCLM_apply] + simp only [geodesicExtension_eq] at ⊢ + simp_rw [he] at ht ⊢ + rw [abs_div,show |t-(s:ℝ)| = t-s from abs_of_pos (sub_pos.mpr hts), + ← integral_sub (hi ⟨t,h01⟩) (hi s)] + exact (div_le_div_of_nonneg_right abs_integral_le_integral_abs (sub_nonneg.mpr hts.le)).trans_lt ht + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/TestPlanTemporalDifference.lean b/lean/OAI/Geometry/RCD/Transport/TestPlanTemporalDifference.lean new file mode 100644 index 0000000000000000000000000000000000000000..bd0586d55da14c768bc8e2b9f80308dfef4e3aa9 --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/TestPlanTemporalDifference.lean @@ -0,0 +1,85 @@ +import OAI.Geometry.RCD.Sobolev.MovingLinearDifference +import OAI.Analysis.RCDHeat.SobolevTestPlan + +namespace OAI + +/-! # The temporal part of a moving test-plan pairing + +Strong L2 differentiation and continuity of compressed evaluations suffice; +no pointwise derivative along the diagonal of time and paths is assumed. +-/ + +open Set Filter MeasureTheory +open scoped Topology ENNReal NNReal +noncomputable section +namespace RegularPointCoordinates + +def lpMeanCLM {Y : Type*} [MeasurableSpace Y] (ν : Measure Y) [IsFiniteMeasure ν] : + Lp ℝ 2 ν →L[ℝ] ℝ := + innerSL ℝ ((memLp_const (1:ℝ)).toLp (fun _ => 1)) + +theorem lpMeanCLM_apply {Y : Type*} [MeasurableSpace Y] + (ν : Measure Y) [IsFiniteMeasure ν] (f : Lp ℝ 2 ν) : + lpMeanCLM ν f = ∫ y, f y ∂ν := by + change inner ℝ ((memLp_const (1:ℝ)).toLp (fun _ => 1)) f = _ + rw [L2.inner_def] + apply integral_congr_ae + filter_upwards [(memLp_const (1:ℝ) (μ := ν) (p := 2)).coeFn_toLp] with y hy + simp only [Real.inner_apply,hy,one_mul] + +variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] +attribute [local instance] pathBorel pathBorelSpace + +def testPlanMeanCLM (μ : Measure X) (π : Measure C(Time,X)) [IsFiniteMeasure π] + {C : ℝ≥0∞} (hC : C ≠ ∞) + (hcomp : ∀ t : Time, π.map (fun γ => γ t) ≤ C • μ) (t : ℝ) : + Lp ℝ 2 μ →L[ℝ] ℝ := + (lpMeanCLM π).comp (testPlanPullback μ π hC hcomp (Set.projIcc 0 1 zero_le_one t)) + +theorem testPlanMeanCLM_apply (μ : Measure X) (π : Measure C(Time,X)) [IsFiniteMeasure π] + {C : ℝ≥0∞} (hC : C ≠ ∞) + (hcomp : ∀ t : Time, π.map (fun γ => γ t) ≤ C • μ) (t : ℝ) (f : Lp ℝ 2 μ) : + testPlanMeanCLM μ π hC hcomp t f = ∫ γ : C(Time,X), f (geodesicExtension γ t) ∂π := by + rw [testPlanMeanCLM,ContinuousLinearMap.comp_apply,lpMeanCLM_apply] + exact integral_congr_ae (compressionPullback_ae μ π _ + (measurable_path_eval (Set.projIcc 0 1 zero_le_one t)) hC (hcomp _) f) + +variable [ProperSpace X] (μ : Measure X) [μ.Regular] + +theorem testPlanMeanCLM_jointly_continuous (π : Measure C(Time,X)) [IsFiniteMeasure π] + (hgeo : ∀ᵐ γ ∂π, IsGeodesic γ) {C : ℝ≥0∞} (hC : C ≠ ∞) + (hcomp : ∀ t : Time, π.map (fun γ => γ t) ≤ C • μ) + (hLength : MemLp (fun γ : C(Time,X) => dist (γ 0) (γ 1)) 2 π) : + Continuous (fun q : Lp ℝ 2 μ × ℝ => testPlanMeanCLM μ π hC hcomp q.2 q.1) := by + have hp : Continuous (fun q : Lp ℝ 2 μ × ℝ => + (q.1, (Set.projIcc 0 1 zero_le_one q.2 : Time))) := + continuous_fst.prodMk ((LipschitzWith.projIcc zero_le_one).continuous.comp continuous_snd) + have hbase : Continuous (fun q : Lp ℝ 2 μ × Time => + testPlanPullback μ π hC hcomp q.2 q.1) := + testPlanPullback_jointly_continuous μ π hgeo hC hcomp hLength + have he : Continuous (fun q : Lp ℝ 2 μ × ℝ => + testPlanPullback μ π hC hcomp (Set.projIcc 0 1 zero_le_one q.2) q.1) := by + change Continuous ((fun q : Lp ℝ 2 μ × Time => testPlanPullback μ π hC hcomp q.2 q.1) ∘ + (fun q : Lp ℝ 2 μ × ℝ => (q.1,(Set.projIcc 0 1 zero_le_one q.2 : Time)))) + exact hbase.comp hp + change Continuous (fun q : Lp ℝ 2 μ × ℝ => lpMeanCLM π + (testPlanPullback μ π hC hcomp (Set.projIcc 0 1 zero_le_one q.2) q.1)) + exact (lpMeanCLM π).continuous.comp he + +theorem testPlan_temporal_difference_tendsto (π : Measure C(Time,X)) [IsFiniteMeasure π] + (hgeo : ∀ᵐ γ ∂π, IsGeodesic γ) {C : ℝ≥0∞} (hC : C ≠ ∞) + (hcomp : ∀ t : Time, π.map (fun γ => γ t) ≤ C • μ) + (hLength : MemLp (fun γ : C(Time,X) => dist (γ 0) (γ 1)) 2 π) + (u : ℝ → Lp ℝ 2 μ) {s : ℝ} {D : Lp ℝ 2 μ} (hu : HasDerivAt u D s) : + Tendsto (fun t => ((∫ γ : C(Time,X), u t (geodesicExtension γ t) ∂π) - + (∫ γ : C(Time,X), u s (geodesicExtension γ t) ∂π))/(t-s)) + (𝓝[≠] s) (𝓝 (∫ γ : C(Time,X), D (geodesicExtension γ s) ∂π)) := by + have hh := moving_linear_difference_tendsto (testPlanMeanCLM μ π hC hcomp) u + (testPlanMeanCLM_jointly_continuous μ π hgeo hC hcomp hLength).continuousAt hu + simpa only [testPlanMeanCLM_apply,smul_eq_mul,div_eq_mul_inv,mul_comm] using hh + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/TiltPowerVariation.lean b/lean/OAI/Geometry/RCD/Transport/TiltPowerVariation.lean new file mode 100644 index 0000000000000000000000000000000000000000..2bfdae90c2ed73bfe55d0291f3174e217770d76a --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/TiltPowerVariation.lean @@ -0,0 +1,76 @@ +import OAI.Geometry.RCD.Transport.ExponentialTiltVariation + +namespace OAI + +/-! # First variation of power entropy under normalized exponential perturbations -/ + +open Set Filter MeasureTheory +open scoped ENNReal NNReal Topology +noncomputable section +namespace RegularPointCoordinates +variable {X : Type*} [MeasurableSpace X] (μ : Measure X) + + theorem normalized_tilt_power_integral {r g : X → ℝ} (hr : ∀ᵐ x ∂μ, 0 ≤ r x) + {q t Z : ℝ} (hZ : 0 < Z) : + (∫ x, (Z⁻¹*(Real.exp (t*g x)*r x))^q ∂μ) = + (Z⁻¹)^q*(∫ x, Real.exp ((q*t)*g x)*(r x)^q ∂μ) := by + rw [←integral_const_mul] + apply integral_congr_ae + filter_upwards [hr] with x hx + rw [Real.mul_rpow (inv_nonneg.mpr hZ.le) (mul_nonneg (Real.exp_pos _).le hx), + Real.mul_rpow (Real.exp_pos _).le hx,←Real.exp_mul] + rw [show (t*g x)*q=(q*t)*g x by ring] + + theorem normalized_tilt_power_hasDerivAt_zero {r g : X → ℝ} + (hr : Integrable r μ) (hr0 : ∀ᵐ x ∂μ, 0 ≤ r x) (hm : (∫ x, r x ∂μ)=1) + (hg : Measurable g) {M : ℝ≥0} (hgb : ∀ x, |g x| ≤ M) {q : ℝ} + (hp : Integrable (fun x => (r x)^q) μ) : + HasDerivAt (fun t : ℝ => + ∫ x, ((∫ y, Real.exp (t*g y)*r y ∂μ)⁻¹*(Real.exp (t*g x)*r x))^q ∂μ) + (q*((∫ x, g x*(r x)^q ∂μ)-(∫ x, g x*r x ∂μ)*(∫ x, (r x)^q ∂μ))) 0 := by + let Z := fun t : ℝ => ∫ x, Real.exp (t*g x)*r x ∂μ + have hZ : HasDerivAt Z (∫ x, g x*r x ∂μ) 0 := + exponential_tilt_integral_hasDerivAt_zero μ hr hg hgb + have hZ0 : Z 0=1 := by simpa only [Z,zero_mul,Real.exp_zero,one_mul] using hm + have hZi := hZ.inv (by change Z 0 ≠ 0; rw [hZ0]; norm_num) + have hZp := hZi.rpow_const (p := q) (Or.inl (by + change (Z 0)⁻¹ ≠ 0 + rw [hZ0,inv_one] + exact one_ne_zero)) + have hqb : ∀ x, |q*g x| ≤ (‖q‖₊*M:ℝ≥0) := by + intro x + simp only [NNReal.coe_mul, coe_nnnorm, Real.norm_eq_abs, abs_mul] + exact mul_le_mul_of_nonneg_left (hgb x) (abs_nonneg q) + have hP := exponential_tilt_integral_hasDerivAt_zero μ hp (hg.const_mul q) hqb + have hP' : HasDerivAt (fun t : ℝ => ∫ x, Real.exp ((q*t)*g x)*(r x)^q ∂μ) + (q*(∫ x, g x*(r x)^q ∂μ)) 0 := by + convert hP using 1 + · ext t + congr 1 + ext x + congr 2 + ring + · rw [←integral_const_mul] + congr 1 + ext x + ring + have hD := hZp.mul hP' + have hevent : ∀ᶠ t in 𝓝 (0:ℝ), 0 < Z t := + hZ.continuousAt.tendsto.eventually (Ioi_mem_nhds (by rw [hZ0]; norm_num)) + have hEq : (fun t : ℝ => (Z t)⁻¹^q*(∫ x, Real.exp ((q*t)*g x)*(r x)^q ∂μ)) =ᶠ[𝓝 0] + (fun t : ℝ => ∫ x, ((Z t)⁻¹*(Real.exp (t*g x)*r x))^q ∂μ) := by + filter_upwards [hevent] with t ht + exact (normalized_tilt_power_integral μ hr0 ht).symm + have hD' : HasDerivAt (fun t : ℝ => (Z t)⁻¹^q*(∫ x, Real.exp ((q*t)*g x)*(r x)^q ∂μ)) + (q*((∫ x, g x*(r x)^q ∂μ)-(∫ x, g x*r x ∂μ)*(∫ x, (r x)^q ∂μ))) 0 := by + convert hD using 1 + simp only [Pi.inv_apply, hZ0, inv_one, Real.one_rpow, one_pow, div_one, + zero_mul, mul_zero, Real.exp_zero, one_mul] + ring + exact hD'.congr_of_eventuallyEq hEq.symm + +end RegularPointCoordinates + +end + +end OAI diff --git a/lean/OAI/Geometry/RCD/Transport/TranslatedCouplingCost.lean b/lean/OAI/Geometry/RCD/Transport/TranslatedCouplingCost.lean new file mode 100644 index 0000000000000000000000000000000000000000..fac6afc3558f4beaed63dfbfa1f9492f0a5789ff --- /dev/null +++ b/lean/OAI/Geometry/RCD/Transport/TranslatedCouplingCost.lean @@ -0,0 +1,50 @@ +import OAI.Geometry.RCD.Transport.BoundedCouplingDual + +namespace OAI + +/-! # The sharp transport-cost upper bound for a translated probability law -/ + +open Set Filter MeasureTheory Metric +open scoped Topology ENNReal +noncomputable section +namespace RegularPointCoordinates + +theorem optimal_translation_cost_le {n : ℕ} (α : ProbabilityMeasure (Euclidean n)) + (h : Euclidean n) (Q : ProbabilityMeasure (Euclidean n × Euclidean n)) + (hQ : IsOptimalCoupling (α : Measure (Euclidean n)) + (α.map (fun x => x+h) : Measure (Euclidean n)) (Q : Measure (Euclidean n × Euclidean n))) : + (∫ y, dist y.1 y.2^2 ∂(Q : Measure (Euclidean n × Euclidean n)))≤‖h‖^2 := by + let T := fun x : Euclidean n => (x,x+h) + have hT : Measurable T := measurable_id.prodMk (measurable_id.add_const h) + let P := α.map T + have h0 : (P : Measure (Euclidean n × Euclidean n)).map Prod.fst=α := by + rw [ProbabilityMeasure.toMeasure_map,Measure.map_map measurable_fst hT] + change (α : Measure (Euclidean n)).map id=α + exact Measure.map_id + have h1 : (P : Measure (Euclidean n × Euclidean n)).map Prod.snd= + (α.map (fun x => x+h) : Measure (Euclidean n)) := by + rw [ProbabilityMeasure.toMeasure_map,Measure.map_map measurable_snd hT, + ProbabilityMeasure.toMeasure_map] + rfl + have hcost : transportCost (P : Measure (Euclidean n × Euclidean n))=ENNReal.ofReal (‖h‖^2) := by + rw [transportCost,ProbabilityMeasure.toMeasure_map,lintegral_map + ((measurable_fst.dist measurable_snd).ennreal_ofReal.pow_const 2) hT] + have hd (x : Euclidean n) : dist x (x+h)=‖h‖ := by simp [dist_eq_norm] + simp only [T,hd,lintegral_const,measure_univ,mul_one,ENNReal.ofReal_pow (norm_nonneg h)] + have hb := (hQ.2.2 (P : Measure (Euclidean n × Euclidean n)) h0 h1).trans_eq hcost + have hi : Integrable (fun y : Euclidean n × Euclidean n => dist y.1 y.2^2) + (Q : Measure (Euclidean n × Euclidean n)) := by + refine ⟨((continuous_fst.dist continuous_snd).pow 2).aestronglyMeasurable,?_⟩ + apply (hasFiniteIntegral_iff_ofReal (Eventually.of_forall fun _ => sq_nonneg _)).mpr + simp_rw [ENNReal.ofReal_pow dist_nonneg] + exact hb.trans_lt ENNReal.ofReal_lt_top + have he := ofReal_integral_eq_lintegral_ofReal hi (Eventually.of_forall fun _ => sq_nonneg _) + simp_rw [ENNReal.ofReal_pow dist_nonneg] at he + rw [transportCost,← he] at hb + exact (ENNReal.ofReal_le_ofReal_iff (sq_nonneg ‖h‖)).mp hb + +end RegularPointCoordinates + +end + +end OAI