/- Adapted from Mapher `PoincareMT/Proofs/M03/ConnectionRateRicciSmoothness.lean` at f927d9e1f0810042766d3b5f64d3f4da02ee93cc. See `references/ricci-flow/mapher/local-theory/port.json`. -/ import PoincareLib.Geometry.RicciFlow.Local.Metric.RicciPairRegularity import PoincareLib.Geometry.RicciFlow.Local.Energy.Comparison.ScalarMixedDerivative set_option autoImplicit false set_option maxHeartbeats 1800000 open scoped Manifold ContDiff Bundle Topology open Set universe u namespace PoincareMT.RicciFlow.Local variable {n : โ„•} {M : Type u} [TopologicalSpace M] [ChartedSpace (EuclideanSpace โ„ (Fin n)) M] [IsManifold (๐“ก n) โˆž M] theorem connection_rate_ricci_pair_smooth {J : Set โ„} (F : RicciFlow n M J) {t : โ„} (ht : t โˆˆ interior J) {U : Set M} (hU : IsOpen U) (Y Z : (y : M) โ†’ TangentSpace (๐“ก n) y) (hY : ContMDiffOn (๐“ก n) ((๐“ก n).prod ๐“˜(โ„, EuclideanSpace โ„ (Fin n))) โˆž (T% Y) U) (hZ : ContMDiffOn (๐“ก n) ((๐“ก n).prod ๐“˜(โ„, EuclideanSpace โ„ (Fin n))) โˆž (T% Z) U) {x : M} (hx : x โˆˆ U) : ContMDiffAt (๐“ก n) ๐“˜(โ„, โ„) โˆž (fun y => (F.connection t).ricci y (Y y) (Z y)) x := by let c := extChartAt (๐“ก n) x have hcx : c.symm (c x) = x := c.left_inv (mem_extChartAt_source x) have hcxt : c x โˆˆ c.target := mem_extChartAt_target x have hc : ContMDiffAt ๐“˜(โ„, EuclideanSpace โ„ (Fin n)) (๐“ก n) โˆž c.symm (c x) := (contMDiffOn_extChartAt_symm (I := ๐“ก n) x).contMDiffAt (extChartAt_target_mem_nhds' hcxt) have hn : interior J ร—หข (c.target โˆฉ c.symm โปยน' U) โˆˆ ๐“ (t, c x) := prod_mem_nhds (isOpen_interior.mem_nhds ht) (Filter.inter_mem (extChartAt_target_mem_nhds' hcxt) (hc.continuousAt.preimage_mem_nhds (hU.mem_nhds (by simpa only [hcx] using hx)))) have hh := (contDiffOn_ricciFlow_ricci_chart_pair F hU Y Z hY hZ x).contDiffAt hn have hs := hh.comp (c x) (contDiffAt_const.prodMk contDiffAt_id) rw [contMDiffAt_iff_source] rw [(๐“ก n).range_eq_univ, contMDiffWithinAt_univ] change ContMDiffAt (๐“ก n) ๐“˜(โ„, โ„) โˆž ((fun p : โ„ ร— EuclideanSpace โ„ (Fin n) => (F.connection p.1).ricci (c.symm p.2) (Y (c.symm p.2)) (Z (c.symm p.2))) โˆ˜ fun z => (t, z)) (c x) exact hs.contMDiffAt end PoincareMT.RicciFlow.Local