import PoincareLib.Geometry.RicciFlow.Compactness.Convergence.Volume.Coverage import PoincareLib.Geometry.RicciFlow.Compactness.Convergence.Volume.SpatialEmbedding import PoincareLib.Geometry.RicciFlow.Compactness.Convergence.Volume.MeasureComparison /-! # Volume lower bounds through local metric comparisons Actual smooth partial homeomorphisms with compact tangent comparisons transfer source ball-volume lower bounds without a complete source metric. This is the metric-measure step in Morgan--Tian Theorem 11.8, p. 272; see the M30 derivation `local-embedding-volume-transfer.md`. -/ set_option autoImplicit false open Set Filter MeasureTheory open scoped Manifold ContDiff Bundle ENNReal Topology universe u v namespace PoincareMT.RiemannianMetric /-- Compact two-sided tangent comparison gives the source-ball volume upper estimate used in Theorem 11.8, p. 272. -/ theorem volumeMeasure_ball_le_of_local_tangent_comparison {n : β„•} {M : Type u} {N : Type v} [TopologicalSpace M] [TopologicalSpace N] [T3Space M] [T3Space N] [MeasurableSpace M] [BorelSpace M] [SecondCountableTopology M] [MeasurableSpace N] [BorelSpace N] [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓑 n) ∞ M] [ChartedSpace (EuclideanSpace ℝ (Fin n)) N] [IsManifold (𝓑 n) ∞ N] (g : RiemannianMetric n M) (h : RiemannianMetric n N) (e : OpenPartialHomeomorph M N) (p : M) {r R C : ℝ} (_hr : 0 < r) (hR : 0 < R) (hC : 0 < C) (hCr : C * r < R) (hcompact : IsCompact (closure (g.ball p R))) (hsource : closure (g.ball p R) βŠ† e.source) (he : βˆ€ x ∈ e.source, ContMDiffAt (𝓑 n) (𝓑 n) 1 e x) (hei : βˆ€ y ∈ e.target, ContMDiffAt (𝓑 n) (𝓑 n) 1 e.symm y) (hbound : βˆ€ x ∈ closure (g.ball p R), βˆ€ v : TangentSpace (𝓑 n) x, h.tangentNorm (e x) (mfderiv (𝓑 n) (𝓑 n) e x v) ≀ C * g.tangentNorm x v ∧ g.tangentNorm x v ≀ C * h.tangentNorm (e x) (mfderiv (𝓑 n) (𝓑 n) e x v)) : h.volumeMeasure (h.ball (e p) r) ≀ ENNReal.ofReal C ^ n * g.volumeMeasure (g.ball p (C * r)) := by let : Bundle.RiemannianBundle (TangentSpace (𝓑 n) : M β†’ Type _) := ⟨g.toRiemannianMetric⟩ let : IsContinuousRiemannianBundle (EuclideanSpace ℝ (Fin n)) (TangentSpace (𝓑 n) : M β†’ Type _) := ⟨⟨g.inner, g.toContinuousRiemannianMetric.continuous, fun _ _ _ => rfl⟩⟩ let : EMetricSpace M := EMetricSpace.ofRiemannianMetric (𝓑 n) M have hball (a : ℝ) : IsOpen (g.ball p a) := isOpen_lt (continuous_const.edist continuous_id) continuous_const have hed : e.MDifferentiable (𝓑 n) (𝓑 n) := ⟨fun x hx => (he x hx).mdifferentiableAt (by norm_num) |>.mdifferentiableWithinAt, fun y hy => (hei y hy).mdifferentiableAt (by norm_num) |>.mdifferentiableWithinAt⟩ have hinv := g.inverse_tangentNorm_le_of_le h e hed hsource (fun x hx v => (hbound x hx v).2) have hcover := g.ball_subset_image_ball_of_inverse_tangentNorm_le h e p hR hC hCr hcompact hsource hei hinv have hsmall : g.ball p (C * r) βŠ† g.ball p R := fun _ hx => hx.trans_le (ENNReal.ofReal_le_ofReal hCr.le) apply (measure_mono hcover).trans exact g.volumeMeasure_image_le_of_tangentNorm_le h e (hball R) (subset_closure.trans hsource) (fun x hx => (he x hx).contMDiffWithinAt) hC (fun x hx v => (hbound x (subset_closure hx) v).1) (hball (C * r)).measurableSet hsmall /-- Source lower volumes at every smaller radius pass to the complete limit metric under actual compact tangent comparisons, without loss in the constant (Theorem 11.8, p. 272). -/ theorem ball_volume_lower_bound_of_local_tangent_comparisons {n : β„•} {M : Type u} {N : β„• β†’ Type v} [TopologicalSpace M] [βˆ€ k, TopologicalSpace (N k)] [T3Space M] [βˆ€ k, T3Space (N k)] [MeasurableSpace M] [BorelSpace M] [SecondCountableTopology M] [βˆ€ k, MeasurableSpace (N k)] [βˆ€ k, BorelSpace (N k)] [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓑 n) ∞ M] [βˆ€ k, ChartedSpace (EuclideanSpace ℝ (Fin n)) (N k)] [βˆ€ k, IsManifold (𝓑 n) ∞ (N k)] (g : RiemannianMetric n M) (h : βˆ€ k, RiemannianMetric n (N k)) (e : βˆ€ k, OpenPartialHomeomorph M (N k)) (hcomplete : MetricComplete g) (p : M) {r : ℝ} (hr : 0 < r) (kappa : ℝ) (he : βˆ€ k x, x ∈ (e k).source β†’ ContMDiffAt (𝓑 n) (𝓑 n) 1 (e k) x) (hei : βˆ€ k y, y ∈ (e k).target β†’ ContMDiffAt (𝓑 n) (𝓑 n) 1 (e k).symm y) (hcomparison : βˆ€ K : Set M, IsCompact K β†’ βˆ€ C : ℝ, 1 < C β†’ βˆ€αΆ  k in atTop, K βŠ† (e k).source ∧ βˆ€ x ∈ K, βˆ€ v : TangentSpace (𝓑 n) x, (h k).tangentNorm (e k x) (mfderiv (𝓑 n) (𝓑 n) (e k) x v) ≀ C * g.tangentNorm x v ∧ g.tangentNorm x v ≀ C * (h k).tangentNorm (e k x) (mfderiv (𝓑 n) (𝓑 n) (e k) x v)) (hvolume : βˆ€ rho : ℝ, 0 < rho β†’ rho < r β†’ βˆ€αΆ  k in atTop, ENNReal.ofReal (kappa * rho ^ n) ≀ (h k).volumeMeasure ((h k).ball (e k p) rho)) : ENNReal.ofReal (kappa * r ^ n) ≀ g.volumeMeasure (g.ball p r) := by let : Bundle.RiemannianBundle (TangentSpace (𝓑 n) : M β†’ Type _) := ⟨g.toRiemannianMetric⟩ let : IsContinuousRiemannianBundle (EuclideanSpace ℝ (Fin n)) (TangentSpace (𝓑 n) : M β†’ Type _) := ⟨⟨g.inner, g.toContinuousRiemannianMetric.continuous, fun _ _ _ => rfl⟩⟩ let : EMetricSpace M := EMetricSpace.ofRiemannianMetric (𝓑 n) M have hsmall (rho : ℝ) (hrho : 0 < rho) (hrhor : rho < r) : ENNReal.ofReal (kappa * rho ^ n) ≀ g.volumeMeasure (g.ball p r) := by have hdistortion (C : ℝ) (hC : 1 < C) (hCr : C * rho < r) : ENNReal.ofReal (kappa * rho ^ n) ≀ ENNReal.ofReal C ^ n * g.volumeMeasure (g.ball p r) := by let R := C * rho + 1 have hCp : 0 < C := zero_lt_one.trans hC have hR : 0 < R := by dsimp only [R]; positivity have hclosed : IsClosed {x : M | g.edist p x ≀ ENNReal.ofReal R} := isClosed_le (continuous_const.edist continuous_id) continuous_const have hcompact : IsCompact (closure (g.ball p R)) := (g.isCompact_closedBall_of_metricComplete hcomplete p R).of_isClosed_subset isClosed_closure (closure_minimal (fun y hy => (show g.edist p y < ENNReal.ofReal R from hy).le) hclosed) obtain ⟨k, hk, hv⟩ := ((hcomparison _ hcompact C hC).and (hvolume rho hrho hrhor)).exists have hupper := g.volumeMeasure_ball_le_of_local_tangent_comparison (h k) (e k) p hrho hR hCp (by dsimp only [R]; linarith) hcompact hk.1 (he k) (hei k) hk.2 have hsub : g.ball p (C * rho) βŠ† g.ball p r := fun _ hx => hx.trans_le (ENNReal.ofReal_le_ofReal hCr.le) exact hv.trans (hupper.trans (mul_le_mul' le_rfl (measure_mono hsub))) have hpower : Tendsto (fun C : ℝ => ENNReal.ofReal C ^ n) (𝓝 1) (𝓝 1) := by simpa only [Function.comp_def, ENNReal.ofReal_one, one_pow] using ((ENNReal.continuous_pow n).comp ENNReal.continuous_ofReal).tendsto 1 have hlimit : Tendsto (fun C : ℝ => ENNReal.ofReal C ^ n * g.volumeMeasure (g.ball p r)) (𝓝[>] 1) (𝓝 (g.volumeMeasure (g.ball p r))) := by have h := ENNReal.Tendsto.mul hpower (Or.inl one_ne_zero) (tendsto_const_nhds (x := g.volumeMeasure (g.ball p r))) (Or.inr ENNReal.one_ne_top) simpa only [one_mul] using h.mono_left nhdsWithin_le_nhds apply ge_of_tendsto hlimit have hCr : βˆ€αΆ  C : ℝ in 𝓝 1, C * rho < r := (continuous_id.mul continuous_const).continuousAt.eventually_lt_const (by change 1 * rho < r; simpa only [one_mul] using hrhor) filter_upwards [self_mem_nhdsWithin, hCr.filter_mono nhdsWithin_le_nhds] with C hC hCr' exact hdistortion C hC hCr' have hradius : Tendsto (fun rho : ℝ => ENNReal.ofReal (kappa * rho ^ n)) (𝓝 r) (𝓝 (ENNReal.ofReal (kappa * r ^ n))) := (ENNReal.continuous_ofReal.comp (continuous_const.mul (continuous_id.pow n))).tendsto r apply le_of_tendsto (x := 𝓝[<] r) (hradius.mono_left nhdsWithin_le_nhds) filter_upwards [self_mem_nhdsWithin, (eventually_gt_nhds hr).filter_mono nhdsWithin_le_nhds] with rho hrhor hrho exact hsmall rho hrho hrhor end PoincareMT.RiemannianMetric