/- Adapted from Mapher `PoincareMT/Proofs/M03/Existence/PullbackMetricDerivativeNative.lean` at f927d9e1f0810042766d3b5f64d3f4da02ee93cc. See `references/ricci-flow/mapher/local-theory/port.json`. -/ import PoincareLib.Geometry.RicciFlow.Local.Gauge.Pullback.PullbackMetric import Mathlib.Analysis.Calculus.Deriv.Prod import Mathlib.Analysis.Calculus.Deriv.Comp /-! # Diagonal pullback derivative The metric and diffeomorphism time variables are separated before restricting to the diagonal. This is the elementary chain-rule identity used by the time-dependent gauge calculation; all geometric regularity is left in the explicit Frechet derivative hypothesis. -/ set_option autoImplicit false open scoped Manifold ContDiff Bundle noncomputable section universe u namespace PoincareMT variable {n : โ„•} {M : Type u} [TopologicalSpace M] [ChartedSpace (EuclideanSpace โ„ (Fin n)) M] [IsManifold (๐“ก n) โˆž M] local notation "E" => EuclideanSpace โ„ (Fin n) theorem hasDerivWithinAt_pullbackMetric_of_jointFDeriv (g : โ„ โ†’ RiemannianMetric n M) (ฮฆ : โ„ โ†’ Diffeomorph (๐“ก n) (๐“ก n) M M โˆž) (hsmooth : โˆ€ s : โ„, ContMDiff (๐“ก n) ((๐“ก n).prod ๐“˜(โ„, E โ†’L[โ„] E โ†’L[โ„] โ„)) โˆž (fun y : M => Bundle.TotalSpace.mk' (E โ†’L[โ„] E โ†’L[โ„] โ„) y (pinner (g s) (ฮฆ s) y))) {J : Set โ„} {t : โ„} {x : M} {u v : TangentSpace (๐“ก n) x} {L : (โ„ ร— โ„) โ†’L[โ„] โ„} (hF : HasFDerivWithinAt (fun q : โ„ ร— โ„ => (g q.1).inner (ฮฆ q.2 x) (mfderiv (๐“ก n) (๐“ก n) (ฮฆ q.2) x u) (mfderiv (๐“ก n) (๐“ก n) (ฮฆ q.2) x v)) L (J ร—หข J) (t, t)) : HasDerivWithinAt (fun s : โ„ => (pullbackMetric (g s) (ฮฆ s) (hsmooth s)).inner x u v) (L (1, 1)) J t := by let diag : โ„ โ†’ โ„ ร— โ„ := fun s => (s, s) have hdiag : HasDerivWithinAt diag (1, 1) J t := by simpa only [diag, id_eq] using (hasDerivWithinAt_id t J).prodMk (hasDerivWithinAt_id t J) have hmaps : Set.MapsTo diag J (J ร—หข J) := by intro s hs exact โŸจhs, hsโŸฉ have hF' : HasFDerivWithinAt (fun q : โ„ ร— โ„ => (g q.1).inner (ฮฆ q.2 x) (mfderiv (๐“ก n) (๐“ก n) (ฮฆ q.2) x u) (mfderiv (๐“ก n) (๐“ก n) (ฮฆ q.2) x v)) L (J ร—หข J) (diag t) := by simpa [diag] using hF have hcomp := HasFDerivWithinAt.comp_hasDerivWithinAt t hF' hdiag hmaps apply hcomp.congr ยท intro s hs rw [pullbackMetric_inner] rfl ยท rw [pullbackMetric_inner] rfl end PoincareMT