import PoincareLib.Geometry.Manifold.Small import PoincareLib.Geometry.Riemannian.Metric.Diffeomorph import PoincareLib.Geometry.Riemannian.Metric.LocalDiffeomorph import PoincareLib.Geometry.Riemannian.Connection.Construction import PoincareLib.Geometry.Riemannian.Curvature.LocalIsometryInvariants import PoincareLib.Geometry.Riemannian.Measure.Exhaustion import Mathlib.MeasureTheory.Integral.Bochner.Set /-! # Scalar integrals on universe-zero models A connected Riemannian metric supplies second countability. The shrinking diffeomorphism therefore gives a smooth universe-zero model with the same sectional curvature, completeness, and scalar-curvature integrals on balls. -/ noncomputable section set_option autoImplicit false set_option backward.isDefEq.respectTransparency false open Set MeasureTheory open scoped Manifold ContDiff Bundle universe u v namespace PoincareMT.RiemannianMetric section Diffeomorph variable {n : โ„•} {M : Type u} {N : Type v} [TopologicalSpace M] [TopologicalSpace N] [T3Space M] [T3Space N] [MeasurableSpace M] [BorelSpace M] [MeasurableSpace N] [BorelSpace N] [ChartedSpace (EuclideanSpace โ„ (Fin n)) M] [ChartedSpace (EuclideanSpace โ„ (Fin n)) N] [IsManifold (๐“ก n) โˆž M] [IsManifold (๐“ก n) โˆž N] (gM : RiemannianMetric n M) (gN : RiemannianMetric n N) (e : M โ‰ƒโ‚˜โŸฎ๐“ก n, ๐“ก nโŸฏ N) (hinner : โˆ€ (x : M) (v w : TangentSpace (๐“ก n) x), gM.inner x v w = gN.inner (e x) (mfderiv (๐“ก n) (๐“ก n) e x v) (mfderiv (๐“ก n) (๐“ก n) e x w)) include hinner /-- A smooth diffeomorphism preserving the metric preserves intrinsic volume. -/ theorem measurePreserving_diffeomorph : MeasurePreserving e gM.volumeMeasure gN.volumeMeasure := by have hm : Measurable (e : M โ†’ N) := e.toHomeomorph.measurable refine โŸจhm, ?_โŸฉ ext s hs rw [Measure.map_apply hm hs] have h := volumeMeasure_image_diffeomorph gM gN e hinner (e โปยน' s) have he : Function.Surjective (e : M โ†’ N) := e.surjective rw [Set.image_preimage_eq _ he] at h exact h.symm /-- Ball integrals transport under a metric-preserving diffeomorphism, including integrands for which the real integral is totalized. -/ theorem integral_ball_diffeomorph (p : M) (r : โ„) (h : N โ†’ โ„) : (โˆซ x in gM.ball p r, h (e x) โˆ‚gM.volumeMeasure) = โˆซ x in gN.ball (e p) r, h x โˆ‚gN.volumeMeasure := by have hi := (measurePreserving_diffeomorph gM gN e hinner).setIntegral_image_emb e.toHomeomorph.measurableEmbedding h (gM.ball p r) rw [image_ball_diffeomorph gM gN e hinner] at hi exact hi.symm /-- Scalar-curvature ball integrals are invariant under isometric diffeomorphisms between manifolds in arbitrary universes. -/ theorem integral_scalarCurvature_ball_diffeomorph (D : LeviCivitaData gM) (D' : LeviCivitaData gN) (p : M) (r : โ„) : (โˆซ x in gM.ball p r, D.scalarCurvature x โˆ‚gM.volumeMeasure) = โˆซ x in gN.ball (e p) r, D'.scalarCurvature x โˆ‚gN.volumeMeasure := by have hs : โˆ€ x : M, D.scalarCurvature x = D'.scalarCurvature (e x) := by intro x exact D.scalarCurvature_eq_of_local_isometry D' isOpen_univ e.contMDiff.contMDiffOn (fun y _ v w => hinner y v w) (mem_univ x) simp_rw [hs] exact integral_ball_diffeomorph gM gN e hinner p r D'.scalarCurvature omit [T3Space M] [T3Space N] [MeasurableSpace M] [BorelSpace M] [MeasurableSpace N] [BorelSpace N] in /-- Sectional-curvature evaluations are invariant under an isometric diffeomorphism, including linearly dependent tangent pairs. -/ theorem sectionalCurvature_diffeomorph (D : LeviCivitaData gM) (D' : LeviCivitaData gN) (x : M) (v w : TangentSpace (๐“ก n) x) : D.sectionalCurvature x v w = D'.sectionalCurvature (e x) (mfderiv (๐“ก n) (๐“ก n) e x v) (mfderiv (๐“ก n) (๐“ก n) e x w) := by unfold LeviCivitaData.sectionalCurvature rw [D.curvatureTensor_eq_of_local_isometry D' isOpen_univ e.contMDiff.contMDiffOn (fun y _ v w => hinner y v w) (mem_univ x)] rw [hinner x v v, hinner x w w, hinner x v w] end Diffeomorph section Shrink variable {n : โ„•} {M : Type u} [TopologicalSpace M] [T3Space M] [SecondCountableTopology M] [ChartedSpace (EuclideanSpace โ„ (Fin n)) M] [IsManifold (๐“ก n) โˆž M] local instance smallCarrier : Small.{0} M := Poincare.Topology.SecondCountable.small M local instance smallChartedSpace : ChartedSpace (EuclideanSpace โ„ (Fin n)) (Shrink.{0} M) := Poincare.Manifold.shrinkChartedSpace _ M local instance smallIsManifold : IsManifold (๐“ก n) โˆž (Shrink.{0} M) := Poincare.Manifold.shrinkIsManifold (๐“ก n) M local instance smallT3Space : T3Space (Shrink.{0} M) := (Poincare.Topology.SecondCountable.homeomorphShrink M).t3Space /-- The retained metric transported to the universe-zero smooth model. -/ def shrink (g : RiemannianMetric n M) : RiemannianMetric n (Shrink.{0} M) := g.pullbackOfLocalDiffeomorph (Poincare.Manifold.shrinkDiffeomorph (๐“ก n) M).symm (Poincare.Manifold.shrinkDiffeomorph (๐“ก n) M).symm.isLocalDiffeomorph @[simp] theorem shrink_inner (g : RiemannianMetric n M) (x : Shrink.{0} M) (v w : TangentSpace (๐“ก n) x) : g.shrink.inner x v w = g.inner ((equivShrink M).symm x) (mfderiv (๐“ก n) (๐“ก n) (Poincare.Manifold.shrinkDiffeomorph (๐“ก n) M).symm x v) (mfderiv (๐“ก n) (๐“ก n) (Poincare.Manifold.shrinkDiffeomorph (๐“ก n) M).symm x w) := rfl /-- Preconnectedness is preserved by the shrinking homeomorphism. -/ theorem shrink_preconnectedSpace [PreconnectedSpace M] : PreconnectedSpace (Shrink.{0} M) := (Poincare.Topology.SecondCountable.homeomorphShrink M).surjective.denseRange.preconnectedSpace (Poincare.Topology.SecondCountable.homeomorphShrink M).continuous @[simp] theorem shrink_edist (g : RiemannianMetric n M) (x y : Shrink.{0} M) : g.shrink.edist x y = g.edist ((equivShrink M).symm x) ((equivShrink M).symm y) := edist_diffeomorph g.shrink g (Poincare.Manifold.shrinkDiffeomorph (๐“ก n) M).symm (fun _ _ _ => rfl) x y theorem shrink_image_ball (g : RiemannianMetric n M) (x : Shrink.{0} M) (r : โ„) : (equivShrink M).symm '' g.shrink.ball x r = g.ball ((equivShrink M).symm x) r := image_ball_diffeomorph g.shrink g (Poincare.Manifold.shrinkDiffeomorph (๐“ก n) M).symm (fun _ _ _ => rfl) x r @[simp] theorem shrink_metricComplete_iff (g : RiemannianMetric n M) : MetricComplete g.shrink โ†” MetricComplete g := metricComplete_iff_diffeomorph g.shrink g (Poincare.Manifold.shrinkDiffeomorph (๐“ก n) M).symm (fun _ _ _ => rfl) @[simp] theorem shrink_scalarCurvature (g : RiemannianMetric n M) (D : LeviCivitaData g) (x : Shrink.{0} M) : g.shrink.leviCivitaData.scalarCurvature x = D.scalarCurvature ((equivShrink M).symm x) := by exact g.shrink.leviCivitaData.scalarCurvature_eq_of_local_isometry D isOpen_univ (Poincare.Manifold.shrinkDiffeomorph (๐“ก n) M).symm.contMDiff.contMDiffOn (fun _ _ _ _ => rfl) (mem_univ x) theorem shrink_sectionalCurvature (g : RiemannianMetric n M) (D : LeviCivitaData g) (x : Shrink.{0} M) (v w : TangentSpace (๐“ก n) x) : g.shrink.leviCivitaData.sectionalCurvature x v w = D.sectionalCurvature ((equivShrink M).symm x) (mfderiv (๐“ก n) (๐“ก n) (Poincare.Manifold.shrinkDiffeomorph (๐“ก n) M).symm x v) (mfderiv (๐“ก n) (๐“ก n) (Poincare.Manifold.shrinkDiffeomorph (๐“ก n) M).symm x w) := sectionalCurvature_diffeomorph g.shrink g (Poincare.Manifold.shrinkDiffeomorph (๐“ก n) M).symm (fun _ _ _ => rfl) g.shrink.leviCivitaData D x v w /-- Every uniform sectional lower bound survives passage to the small model. -/ theorem shrink_sectionalCurvature_lower_bound (g : RiemannianMetric n M) (D : LeviCivitaData g) {ฮบ : โ„} (hsec : โˆ€ (x : M) (v w : TangentSpace (๐“ก n) x), ฮบ โ‰ค D.sectionalCurvature x v w) : โˆ€ (x : Shrink.{0} M) (v w : TangentSpace (๐“ก n) x), ฮบ โ‰ค g.shrink.leviCivitaData.sectionalCurvature x v w := by intro x v w rw [shrink_sectionalCurvature g D] exact hsec _ _ _ section Volume variable [MeasurableSpace M] [BorelSpace M] local instance smallMeasurableSpace : MeasurableSpace (Shrink.{0} M) := borel (Shrink.{0} M) local instance smallBorelSpace : BorelSpace (Shrink.{0} M) := โŸจrflโŸฉ /-- Scalar-curvature integrals on corresponding balls agree exactly with those on the canonical universe-zero model. -/ theorem shrink_integral_scalarCurvature_ball (g : RiemannianMetric n M) (D : LeviCivitaData g) (x : Shrink.{0} M) (r : โ„) : (โˆซ y in g.shrink.ball x r, g.shrink.leviCivitaData.scalarCurvature y โˆ‚g.shrink.volumeMeasure) = โˆซ y in g.ball ((equivShrink M).symm x) r, D.scalarCurvature y โˆ‚g.volumeMeasure := integral_scalarCurvature_ball_diffeomorph g.shrink g (Poincare.Manifold.shrinkDiffeomorph (๐“ก n) M).symm (fun _ _ _ => rfl) g.shrink.leviCivitaData D x r end Volume end Shrink end PoincareMT.RiemannianMetric