import PoincareLib.Geometry.Riemannian.Curvature.LocalIsometryInvariants import PoincareLib.Geometry.Riemannian.Measure.Isometry import PoincareLib.Geometry.Riemannian.Metric.Induced.Equivalence /-! # Scalar integrals under metric-preserving smooth equivalences Scalar invariance and intrinsic volume transport preserve arbitrary functions of scalar curvature, including positive parts and totalized integrals. -/ set_option autoImplicit false set_option backward.isDefEq.respectTransparency false open Set MeasureTheory open scoped Manifold ContDiff namespace PoincareMT.LeviCivitaData variable {n : ā„•} {M N : Type*} [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] {g : RiemannianMetric n M} {h : RiemannianMetric n N} /-- Metric-preserving diffeomorphisms preserve every totalized integral of a function of scalar curvature. -/ theorem integral_scalarCurvature_eq_of_diffeomorph (D : LeviCivitaData g) (D' : LeviCivitaData h) (e : M ā‰ƒā‚˜āŸ®š“” n, š“” n⟯ N) (hmetric : āˆ€ (x : M) (v w : TangentSpace (š“” n) x), g.inner x v w = h.inner (e x) (mfderiv (š“” n) (š“” n) e x v) (mfderiv (š“” n) (š“” n) e x w)) {E : Type*} [NormedAddCommGroup E] [NormedSpace ā„ E] (ĪØ : ā„ → E) : (∫ x, ĪØ (D.scalarCurvature x) āˆ‚g.volumeMeasure) = ∫ y, ĪØ (D'.scalarCurvature y) āˆ‚h.volumeMeasure := by calc _ = ∫ x, ĪØ (D'.scalarCurvature (e x)) āˆ‚g.volumeMeasure := by apply integral_congr_ae exact Filter.Eventually.of_forall fun x => congrArg ĪØ (D.scalarCurvature_eq_of_local_isometry D' isOpen_univ e.contMDiff.contMDiffOn (fun x _ => hmetric x) (mem_univ x)) _ = _ := g.integral_comp_equiv_volumeMeasure h e.toEquiv (g.edist_eq_of_diffeomorph_metric_pullback h e hmetric) (fun y => ĪØ (D'.scalarCurvature y)) end PoincareMT.LeviCivitaData