import PoincareLib.Geometry.RicciFlow.Surgery.Continuation.Construction.Terminal.Event.LimitPullback /-! # Local coordinate transport of the terminal metric limit The compact-uniform terminal-chart estimates are invariant under a fixed smooth coordinate map. Local terminal charts cover its image, and locally uniform convergence gives the compact-uniform conclusion. -/ noncomputable section set_option autoImplicit false set_option backward.isDefEq.respectTransparency false open Set Filter open scoped Manifold ContDiff Topology universe u namespace PoincareMT open Poincare.Analysis.Calculus theorem RiemannianMetric.pullbackCoefficients_bilinearComp_of_eventuallyEq {n : โ„•} {Y : Type*} [TopologicalSpace Y] [ChartedSpace (EuclideanSpace โ„ (Fin n)) Y] [IsManifold (๐“ก n) โˆž Y] (g : RiemannianMetric n Y) {p q : EuclideanSpace โ„ (Fin n) โ†’ Y} {a : EuclideanSpace โ„ (Fin n) โ†’ EuclideanSpace โ„ (Fin n)} {x : EuclideanSpace โ„ (Fin n)} (hq : MDifferentiableAt (๐“ก n) (๐“ก n) q (a x)) (ha : DifferentiableAt โ„ a x) (heq : q โˆ˜ a =แถ [๐“ x] p) : (g.pullbackCoefficients q (a x)).bilinearComp (fderiv โ„ a x) (fderiv โ„ a x) = g.pullbackCoefficients p x := by ext v w exact g.pullbackCoefficients_comp_of_eventuallyEq hq ha heq v w variable {M X : Type u} [TopologicalSpace M] [ChartedSpace (EuclideanSpace โ„ (Fin 3)) M] [IsManifold (๐“ก 3) โˆž M] [TopologicalSpace X] [ChartedSpace (EuclideanSpace โ„ (Fin 3)) X] [IsManifold (๐“ก 3) โˆž X] theorem CompactSingularMetricLimit.coordinatePullback_tendstoUniformlyOn {G : GeneralizedRicciFlowData.{u}} {T : โ„} {R : SingularTimeReference G T M} {gT : RiemannianMetric 3 X} {i : X โ†’ M} (h : CompactSingularMetricLimit R gT i) (hi : ContMDiff (๐“ก 3) (๐“ก 3) โˆž i) {V : Set (EuclideanSpace โ„ (Fin 3))} (hV : IsOpen V) {f : EuclideanSpace โ„ (Fin 3) โ†’ X} (hf : ContMDiffOn (๐“ก 3) (๐“ก 3) โˆž f V) (k : โ„•) (K : Set (EuclideanSpace โ„ (Fin 3))) (hK : IsCompact K) (hKV : K โІ V) : TendstoUniformlyOn (fun t => iteratedFDeriv โ„ k ((R.flow.metric t).pullbackCoefficients (i โˆ˜ f))) (iteratedFDeriv โ„ k (gT.pullbackCoefficients f)) (๐“[<] T) K := by have hlocal : TendstoLocallyUniformlyOn (fun t => iteratedFDeriv โ„ k ((R.flow.metric t).pullbackCoefficients (i โˆ˜ f))) (iteratedFDeriv โ„ k (gT.pullbackCoefficients f)) (๐“[<] T) V := by apply hV.tendstoLocallyUniformlyOn_iff_forall_tendsto.mpr intro x hx let c := extChartAt (๐“ก 3) (f x) let W : Set (EuclideanSpace โ„ (Fin 3)) := V โˆฉ f โปยน' c.source have hW : IsOpen W := hf.continuousOn.isOpen_inter_preimage hV (isOpen_extChartAt_source (f x)) have hxW : x โˆˆ W := โŸจhx, mem_extChartAt_source (f x)โŸฉ let a : EuclideanSpace โ„ (Fin 3) โ†’ EuclideanSpace โ„ (Fin 3) := c โˆ˜ f have hfa (z : EuclideanSpace โ„ (Fin 3)) (hz : z โˆˆ W) : ContMDiffAt (๐“ก 3) (๐“ก 3) โˆž f z := (hf z hz.1).contMDiffAt (hV.mem_nhds hz.1) have ha (z : EuclideanSpace โ„ (Fin 3)) (hz : z โˆˆ W) : ContDiffAt โ„ โˆž a z := by apply contMDiffAt_iff_contDiffAt.mp exact ((contMDiffOn_extChartAt (n := โˆž)).contMDiffAt (by simpa only [extChartAt_source] using (isOpen_extChartAt_source (f x)).mem_nhds hz.2)).comp z (hfa z hz) have haW : ContDiffOn โ„ โˆž a W := fun z hz => (ha z hz).contDiffWithinAt have hmap : MapsTo a W c.target := fun _ hz => c.map_source hz.2 have hcinv (z : EuclideanSpace โ„ (Fin 3)) (hz : z โˆˆ c.target) : ContMDiffAt (๐“ก 3) (๐“ก 3) โˆž c.symm z := (contMDiffOn_extChartAt_symm (n := โˆž) (f x)).contMDiffAt ((isOpen_extChartAt_target (f x)).mem_nhds hz) have hnear (z : EuclideanSpace โ„ (Fin 3)) (hz : z โˆˆ W) : c.symm โˆ˜ a =แถ [๐“ z] f := by filter_upwards [hW.mem_nhds hz] with y hy exact c.left_inv hy.2 have hnear_source (z : EuclideanSpace โ„ (Fin 3)) (hz : z โˆˆ W) : (i โˆ˜ c.symm) โˆ˜ a =แถ [๐“ z] i โˆ˜ f := (hnear z hz).fun_comp i have hsource (t : โ„) : EqOn (fun z => ((R.flow.metric t).pullbackCoefficients (i โˆ˜ c.symm) (a z)).bilinearComp (fderiv โ„ a z) (fderiv โ„ a z)) ((R.flow.metric t).pullbackCoefficients (i โˆ˜ f)) W := by intro z hz exact (R.flow.metric t).pullbackCoefficients_bilinearComp_of_eventuallyEq (((hi _).comp (a z) (hcinv _ (hmap hz))).mdifferentiableAt (by simp)) ((ha z hz).differentiableAt (by simp)) (hnear_source z hz) have htarget : EqOn (fun z => (gT.pullbackCoefficients c.symm (a z)).bilinearComp (fderiv โ„ a z) (fderiv โ„ a z)) (gT.pullbackCoefficients f) W := by intro z hz exact gT.pullbackCoefficients_bilinearComp_of_eventuallyEq ((hcinv _ (hmap hz)).mdifferentiableAt (by simp)) ((ha z hz).differentiableAt (by simp)) (hnear z hz) have hcompact (C : Set (EuclideanSpace โ„ (Fin 3))) (hC : IsCompact C) (hCW : C โІ W) : TendstoUniformlyOn (fun t => iteratedFDeriv โ„ k ((R.flow.metric t).pullbackCoefficients (i โˆ˜ f))) (iteratedFDeriv โ„ k (gT.pullbackCoefficients f)) (๐“[<] T) C := by have hc := smooth_convergence_pullback_bilinear_filter (isOpen_extChartAt_target (f x)) hW (gT.contDiffOn_chartCoefficients (f x)) haW hmap (fun t z hz => ((R.flow.metric t).contDiffAt_pullbackCoefficients ((hi _).comp z (hcinv z hz))).contDiffWithinAt) (fun m D hD hDt => h.pullbackCoefficients_tendstoUniformlyOn hi (f x) m D hD hDt) k C hC hCW apply (hc.congr (Eventually.of_forall fun t z hz => ?_)).congr_right ยท intro z hz exact ((Filter.eventuallyEq_of_mem (hW.mem_nhds (hCW hz)) htarget).iteratedFDeriv โ„ k).self_of_nhds ยท exact ((Filter.eventuallyEq_of_mem (hW.mem_nhds (hCW hz)) (hsource t)).iteratedFDeriv โ„ k).self_of_nhds have hWlocal := (tendstoLocallyUniformlyOn_iff_forall_isCompact hW).mpr (fun C hCW hC => hcompact C hC hCW) exact hW.tendstoLocallyUniformlyOn_iff_forall_tendsto.mp hWlocal x hxW exact (tendstoLocallyUniformlyOn_iff_tendstoUniformlyOn_of_compact hK).mp (hlocal.mono hKV) end PoincareMT