import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.Imports import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.Blowup.MetricConvergence.FixedMetricSmoothness /-! # Cancellation of the actual source chart in metric comparisons Morgan-Tian Theorem 12.28, pp. 323-324. Coefficient comparisons in a retained chart become intrinsic comparisons of the actual pulled-back metric by the chain rule and the chart's local inverse identity. -/ set_option autoImplicit false open Set Filter open scoped Manifold ContDiff Bundle Topology namespace PoincareMT.RiemannianMetric /-- Theorem 12.28: evaluating pulled-back chart coefficients on the forward chart derivative recovers the original metric pairing. -/ theorem pullbackCoefficients_chart_cancel {n : β„•} {M N : Type*} [TopologicalSpace M] [TopologicalSpace N] [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [ChartedSpace (EuclideanSpace ℝ (Fin n)) N] [IsManifold (𝓑 n) ∞ M] [IsManifold (𝓑 n) ∞ N] (g : RiemannianMetric n N) (f : M β†’ N) (q : M) {y : M} (hy : y ∈ (extChartAt (𝓑 n) q).source) (hf : ContMDiffAt (𝓑 n) (𝓑 n) ∞ f y) (v w : TangentSpace (𝓑 n) y) : g.pullbackCoefficients (f ∘ (extChartAt (𝓑 n) q).symm) (extChartAt (𝓑 n) q y) (mfderiv (𝓑 n) (𝓑 n) (extChartAt (𝓑 n) q) y v) (mfderiv (𝓑 n) (𝓑 n) (extChartAt (𝓑 n) q) y w) = g.inner (f y) (mfderiv (𝓑 n) (𝓑 n) f y v) (mfderiv (𝓑 n) (𝓑 n) f y w) := by let c := extChartAt (𝓑 n) q have hcy : c y ∈ c.target := c.map_source hy have hinv : c.symm (c y) = y := c.left_inv hy have hf' : ContMDiffAt (𝓑 n) (𝓑 n) ∞ f (c.symm (c y)) := hinv.symm β–Έ hf have hc := (contMDiffOn_extChartAt_symm (n := ∞) q).contMDiffAt ((isOpen_extChartAt_target (I := 𝓑 n) q).mem_nhds hcy) have hchartsource : y ∈ (chartAt (EuclideanSpace ℝ (Fin n)) q).source := by rwa [← extChartAt_source (I := 𝓑 n)] have hcforward := contMDiffAt_extChartAt' (I := 𝓑 n) (n := ∞) hchartsource have heq : (f ∘ c.symm) ∘ c =αΆ [𝓝 y] f := by filter_upwards [(isOpen_extChartAt_source (I := 𝓑 n) q).mem_nhds hy] with z hz exact congrArg f (c.left_inv hz) have hd : mfderiv (𝓑 n) (𝓑 n) ((f ∘ c.symm) ∘ c) y = mfderiv (𝓑 n) (𝓑 n) f y := heq.mfderiv_eq have hchain := mfderiv_comp y ((hf'.comp (c y) hc).mdifferentiableAt (by simp)) (hcforward.mdifferentiableAt (by simp)) have hv (u : TangentSpace (𝓑 n) y) := congrArg (fun A : EuclideanSpace ℝ (Fin n) β†’L[ℝ] EuclideanSpace ℝ (Fin n) => A u) (hchain.symm.trans hd) have hpoint := congrArg (fun z : N => g.inner z (mfderiv (𝓑 n) (𝓑 n) f y v) (mfderiv (𝓑 n) (𝓑 n) f y w)) (congrArg f hinv) exact (congrArgβ‚‚ (fun a b : EuclideanSpace ℝ (Fin n) => g.inner (f (c.symm (c y))) a b) (hv v) (hv w)).trans hpoint /-- Theorem 12.28: the forward chart derivative cancels the inverse chart in the actual unrescaled limiting metric coefficients. -/ theorem chartCoefficients_cancel {n : β„•} {M : Type*} [TopologicalSpace M] [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓑 n) ∞ M] (g : RiemannianMetric n M) (q : M) {y : M} (hy : y ∈ (extChartAt (𝓑 n) q).source) (v w : TangentSpace (𝓑 n) y) : g.pullbackCoefficients (extChartAt (𝓑 n) q).symm (extChartAt (𝓑 n) q y) (mfderiv (𝓑 n) (𝓑 n) (extChartAt (𝓑 n) q) y v) (mfderiv (𝓑 n) (𝓑 n) (extChartAt (𝓑 n) q) y w) = g.inner y v w := by have h := g.pullbackCoefficients_chart_cancel id q hy contMDiffAt_id v w simpa only [Function.id_comp, id_eq, mfderiv_id, ContinuousLinearMap.id_apply] using h end PoincareMT.RiemannianMetric