import PoincareLib.Geometry.Curvature.Integral.Concentration.WeightedAnnuli import PoincareLib.Geometry.Curvature.Integral.Concentration.WeightedScalar import PoincareLib.Geometry.Curvature.Integral.Concentration.WeightedFiniteCover /-! # Weighted scalar concentration in a critical ball Actual buffered-annulus estimates force concentration at one critical center. Both positive and signed scalar mass use the critical ball, while the local error is integrated on the doubled ball. Reference: Petrunin (2009), Theorem 4.2 and Section 4.6, pp. 8 and 12-14. -/ noncomputable section set_option autoImplicit false set_option backward.isDefEq.respectTransparency false open Set Filter MeasureTheory open scoped Manifold ContDiff Bundle Topology BigOperators namespace PoincareMT.LeviCivitaData /-- Enlarging only the error domain preserves the uniform normalized scalar correction. The numerator uses the original geometric domain. -/ theorem normalized_integral_scalarCurvature_posPart_le_add_of_subset {n : β„•} {M : Type*} [TopologicalSpace M] [MeasurableSpace M] [BorelSpace M] [T3Space M] [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓑 n) ∞ M] {g : RiemannianMetric n M} (D : LeviCivitaData g) {s t : Set M} (hs : MeasurableSet s) (hst : s βŠ† t) {K : M β†’ ℝ} (hK : βˆ€ x, 0 ≀ K x) (hsec : βˆ€ x ∈ s, βˆ€ v w : TangentSpace (𝓑 n) x, -K x ≀ D.sectionalCurvature x v w) (hR : IntegrableOn D.scalarCurvature s g.volumeMeasure) (hKi : IntegrableOn K t g.volumeMeasure) : (∫ x in s, max 0 (D.scalarCurvature x) βˆ‚g.volumeMeasure) / (1 + ∫ x in t, K x βˆ‚g.volumeMeasure) ≀ (∫ x in s, D.scalarCurvature x βˆ‚g.volumeMeasure) / (1 + ∫ x in t, K x βˆ‚g.volumeMeasure) + (n : ℝ) ^ 2 := by have hI : 0 ≀ ∫ x in t, K x βˆ‚g.volumeMeasure := integral_nonneg hK have hp : 0 < 1 + ∫ x in t, K x βˆ‚g.volumeMeasure := by linarith have hb := D.integral_scalarCurvature_posPart_le_integral_add_weight hs (fun x _ => hK x) hsec hR (hKi.mono_set hst) have hi := setIntegral_mono_set hKi (Filter.Eventually.of_forall hK) (Filter.Eventually.of_forall hst) change (∫ x in s, K x βˆ‚g.volumeMeasure) ≀ _ at hi have hc := mul_le_mul_of_nonneg_left hi (sq_nonneg (n : ℝ)) apply (div_le_iffβ‚€ hp).mpr rw [add_mul, div_mul_cancelβ‚€ _ hp.ne'] nlinarith [sq_nonneg (n : ℝ)] end PoincareMT.LeviCivitaData namespace PoincareMT theorem exists_subseq_critical_ball_weighted_scalar_integral_tendsto_atTop_of_mixed_annuli {n : β„•} {M : β„• β†’ Type*} [βˆ€ j, TopologicalSpace (M j)] [βˆ€ j, T3Space (M j)] [βˆ€ j, MeasurableSpace (M j)] [βˆ€ j, BorelSpace (M j)] [βˆ€ j, ChartedSpace (EuclideanSpace ℝ (Fin n)) (M j)] [βˆ€ j, IsManifold (𝓑 n) ∞ (M j)] [βˆ€ j, PreconnectedSpace (M j)] {ΞΉ ΞΊ : Type*} [Fintype ΞΉ] [Fintype ΞΊ] (g : βˆ€ j, RiemannianMetric n (M j)) (D : βˆ€ j, LeviCivitaData (g j)) (p : βˆ€ j, M j) (o : βˆ€ j, ΞΊ β†’ M j) (s Cβ‚€ Dβ‚€ : ΞΊ β†’ ℝ) (q : βˆ€ j, ΞΉ β†’ M j) (a : β„• β†’ ΞΉ β†’ ℝ) (rβ‚€ R C : ΞΉ β†’ ℝ) (W : βˆ€ j, Set (M j)) (K : βˆ€ j, M j β†’ ℝ) (hn : 0 < n) {m : β„•} (hm : 1 ≀ m) (hcomplete : βˆ€ j, MetricComplete (g j)) (hsec : βˆ€ j x (v w : TangentSpace (𝓑 n) x), -(K j x) ≀ (D j).sectionalCurvature x v w) (hW : βˆ€ j, MeasurableSet (W j)) (hKi : βˆ€ j, IntegrableOn (K j) (W j) (g j).volumeMeasure) (hKn : βˆ€ j x, 0 ≀ K j x) (ha : βˆ€ j i, 0 ≀ a j i) (hrβ‚€ : βˆ€ i, 0 < rβ‚€ i) (hR : βˆ€ i, R i < 19 * rβ‚€ i / 16) (hC : βˆ€ i, 0 ≀ C i) (hDβ‚€ : βˆ€ i, 0 ≀ Dβ‚€ i) (hOrdBuffer : βˆ€ j i, {x : M j | ((g j).edist (o j i) x).toReal ∈ Icc (s i / 2) (3 * s i)} βŠ† W j) (hCritBuffer : βˆ€ j i, {x : M j | ((g j).edist (q j i) x).toReal ≀ 3 * rβ‚€ i} βŠ† W j) (hDoubleBuffer : βˆ€ j i, (g j).ball (q j i) (8 * a j i) βŠ† W j) (hevent : βˆ€αΆ  j in atTop, ((g j).ball (p j) 1 βŠ† (⋃ i, {x : M j | ((g j).edist (o j i) x).toReal ∈ Icc (113 * s i / 96) (19 * s i / 16)}) βˆͺ ⋃ i, (g j).ball (q j i) (R i)) ∧ (βˆ€ i, (∫ x in {x : M j | ((g j).edist (o j i) x).toReal ∈ Icc (113 * s i / 96) (19 * s i / 16)}, max 0 ((D j).scalarCurvature x) βˆ‚(g j).volumeMeasure) ≀ Cβ‚€ i + Dβ‚€ i * ∫ x in {x : M j | ((g j).edist (o j i) x).toReal ∈ Icc (s i / 2) (3 * s i)}, K j x βˆ‚(g j).volumeMeasure) ∧ (βˆ€ i, βˆ€ r : ℝ, 0 < r β†’ 2 * a j i ≀ r β†’ r ≀ rβ‚€ i β†’ (∫ x in {x : M j | ((g j).edist (q j i) x).toReal ∈ Icc (113 * r / 96) (19 * r / 16)}, max 0 ((D j).scalarCurvature x) βˆ‚(g j).volumeMeasure) ≀ C i * (r ^ m + ∫ x in {x : M j | ((g j).edist (q j i) x).toReal ∈ Icc (r / 2) (3 * r)}, K j x βˆ‚(g j).volumeMeasure))) (hlarge : Tendsto (fun j => (∫ x in (g j).ball (p j) 1, max 0 ((D j).scalarCurvature x) βˆ‚(g j).volumeMeasure) / (1 + ∫ x in W j, K j x βˆ‚(g j).volumeMeasure)) atTop atTop) : βˆƒ i : ΞΉ, βˆƒ Ο† : β„• β†’ β„•, StrictMono Ο† ∧ (βˆ€ j, 0 < a (Ο† j) i) ∧ Tendsto (fun j => (∫ x in (g (Ο† j)).ball (q (Ο† j) i) (4 * a (Ο† j) i), max 0 ((D (Ο† j)).scalarCurvature x) βˆ‚(g (Ο† j)).volumeMeasure) / (1 + ∫ x in (g (Ο† j)).ball (q (Ο† j) i) (8 * a (Ο† j) i), K (Ο† j) x βˆ‚(g (Ο† j)).volumeMeasure)) atTop atTop ∧ Tendsto (fun j => (∫ x in (g (Ο† j)).ball (q (Ο† j) i) (4 * a (Ο† j) i), (D (Ο† j)).scalarCurvature x βˆ‚(g (Ο† j)).volumeMeasure) / (1 + ∫ x in (g (Ο† j)).ball (q (Ο† j) i) (8 * a (Ο† j) i), K (Ο† j) x βˆ‚(g (Ο† j)).volumeMeasure)) atTop atTop := by classical let : βˆ€ j, ConnectedSpace (M j) := fun j => { toNonempty := ⟨p j⟩ } let : βˆ€ j, MetricSpace (M j) := fun j => (g j).toMetricSpace obtain ⟨L, _, hL⟩ := Poincare.CurvatureIntegral.exists_buffered_annulus_overlap obtain ⟨J, hJ⟩ := eventually_atTop.mp hevent let A := (βˆ‘ i, Cβ‚€ i) + βˆ‘ i, C i * rβ‚€ i ^ m / (1 - (227 / 228 : ℝ) ^ m) let B := (βˆ‘ i, Dβ‚€ i) + (L : ℝ) * βˆ‘ i, C i let ΞΌ := fun j => (g (j + J)).volumeMeasure let U := fun j => (g (j + J)).ball (p (j + J)) 1 let V := fun j i => (g (j + J)).ball (q (j + J) i) (4 * a (j + J) i) let E := fun j i => (g (j + J)).ball (q (j + J) i) (8 * a (j + J) i) let h := fun j x => max 0 ((D (j + J)).scalarCurvature x) let d := fun j => 1 + ∫ x in W (j + J), K (j + J) x βˆ‚ΞΌ j let w := fun j i => 1 + ∫ x in E j i, K (j + J) x βˆ‚ΞΌ j have hmeas (j : β„•) (x : M j) (r : ℝ) : MeasurableSet ((g j).ball x r) := by rw [← (g j).toMetricSpace_ball] exact Metric.isOpen_ball.measurableSet have hd (j : β„•) : 0 < d j := by have hnK : 0 ≀ ∫ x in W (j + J), K (j + J) x βˆ‚ΞΌ j := integral_nonneg (hKn _) dsimp [d] linarith have hw (j : β„•) (i : ΞΉ) : 0 < w j i := by have hnK : 0 ≀ ∫ x in E j i, K (j + J) x βˆ‚ΞΌ j := integral_nonneg (hKn _) dsimp [w] linarith have hwd (j : β„•) (i : ΞΉ) : w j i ≀ d j := by apply add_le_add_right exact setIntegral_mono_set (hKi _) (Filter.Eventually.of_forall (hKn _)) (Filter.Eventually.of_forall (hDoubleBuffer _ i)) have houtside (j : β„•) : (∫ x in U j \ ⋃ i, V j i, h j x βˆ‚ΞΌ j) ≀ (|A| + |B|) * d j := by obtain ⟨hcov, hord, hcrit⟩ := hJ (j + J) (by omega) have hb := (D (j + J)).integral_scalarCurvature_posPart_outside_iUnion_ball_le_of_weighted_mixed_annuli hn (hcomplete _) (p _) (o _) s Cβ‚€ Dβ‚€ (q _) (a _) rβ‚€ R C (ha _) hrβ‚€ hR hC hm (hW _) (hKi _) (hKn _) hL hDβ‚€ (hOrdBuffer _) (hCritBuffer _) hcov hord hcrit change (∫ x in U j \ ⋃ i, V j i, h j x βˆ‚ΞΌ j) ≀ A + B * ∫ x in W (j + J), K (j + J) x βˆ‚ΞΌ j at hb have hI : 0 ≀ ∫ x in W (j + J), K (j + J) x βˆ‚ΞΌ j := integral_nonneg (hKn _) apply hb.trans dsimp [d] have hBA := mul_le_mul_of_nonneg_right (le_abs_self B) hI have hpos := mul_nonneg (abs_nonneg A) hI nlinarith [le_abs_self A, abs_nonneg B] have hlarge' : βˆ€ T : ℝ, βˆƒ j, T < (∫ x in U j, h j x βˆ‚ΞΌ j) / d j := by intro T exact ((hlarge.comp (tendsto_add_atTop_nat J)).eventually (eventually_gt_atTop T)).exists obtain ⟨i, Ο†, hΟ†, hdiv⟩ := Poincare.CurvatureIntegral.exists_subseq_fixed_member_integral_ratio_tendsto_atTop ΞΌ U V h (fun j => hmeas _ _ _) (fun j i => hmeas _ _ _) (fun _ _ => le_max_left _ _) (fun j => (g (j + J)).integrableOn_ball_of_continuous (hcomplete _) (continuous_const.max (D (j + J)).continuous_scalarCurvature) _ _) (fun j i => (g (j + J)).integrableOn_ball_of_continuous (hcomplete _) (continuous_const.max (D (j + J)).continuous_scalarCurvature) _ _) d hd w hw hwd (|A| + |B|) houtside hlarge' obtain ⟨J', hJ'⟩ := eventually_atTop.mp (hdiv.eventually (eventually_gt_atTop 0)) let ψ := fun j => Ο† (j + J') + J have hψ : StrictMono ψ := fun x y hxy => Nat.add_lt_add_right (hΟ† (Nat.add_lt_add_right hxy J')) J have hpos (j : β„•) : 0 < a (ψ j) i := by by_contra hnpos have haz : a (ψ j) i = 0 := le_antisymm (le_of_not_gt hnpos) (ha _ _) have hball : V (Ο† (j + J')) i = βˆ… := by dsimp [V] change (g (ψ j)).ball (q (ψ j) i) (4 * a (ψ j) i) = βˆ… rw [haz, mul_zero, ← (g (ψ j)).toMetricSpace_ball, Metric.ball_zero] have ht := hJ' (j + J') (by omega) rw [hball, setIntegral_empty, zero_div] at ht exact (lt_irrefl 0) ht have hposdiv : Tendsto (fun j => (∫ x in (g (ψ j)).ball (q (ψ j) i) (4 * a (ψ j) i), max 0 ((D (ψ j)).scalarCurvature x) βˆ‚(g (ψ j)).volumeMeasure) / (1 + ∫ x in (g (ψ j)).ball (q (ψ j) i) (8 * a (ψ j) i), K (ψ j) x βˆ‚(g (ψ j)).volumeMeasure)) atTop atTop := hdiv.comp (tendsto_add_atTop_nat J') refine ⟨i, ψ, hψ, hpos, hposdiv, ?_⟩ apply tendsto_atTop.2 intro T filter_upwards [(tendsto_atTop.1 hposdiv) (T + (n : ℝ) ^ 2)] with j hj have hsub : (g (ψ j)).ball (q (ψ j) i) (4 * a (ψ j) i) βŠ† (g (ψ j)).ball (q (ψ j) i) (8 * a (ψ j) i) := by rw [← (g (ψ j)).toMetricSpace_ball, ← (g (ψ j)).toMetricSpace_ball] exact Metric.ball_subset_ball (by nlinarith [ha (ψ j) i]) have hb := (D (ψ j)).normalized_integral_scalarCurvature_posPart_le_add_of_subset (hmeas _ _ _) hsub (hKn _) (fun x _ => hsec _ x) ((g (ψ j)).integrableOn_ball_of_continuous (hcomplete _) (D (ψ j)).continuous_scalarCurvature _ _) ((hKi _).mono_set (hDoubleBuffer _ i)) linarith end PoincareMT