import PoincareLib.Geometry.Spacetime.Interval.RealTime import PoincareLib.Geometry.RicciFlow.Generalized.Gauge.SectionTransport.TimeBracket /-! # Time derivatives in a moving gauge Convert the derivative along the normalized interval tangent into a real derivative within the complete interval, including its included endpoints. This supplies the time parametrization for the moving metric product rule supporting Morgan--Tian, Definitions 3.36--3.38, pp. 60--61. -/ set_option autoImplicit false set_option backward.isDefEq.respectTransparency false open scoped Manifold ContDiff Bundle Topology open Set Filter Bundle universe u v w namespace PoincareMT theorem SmoothSpacetimeInterval.hasDerivWithinAt_realParam {K : SpacetimeInterval} (T : SmoothSpacetimeInterval K) {E : Type w} [NormedAddCommGroup E] [NormedSpace โ„ E] {f : T.Point โ†’ E} (t : T.Point) (hf : MDifferentiableAt (๐“กโˆ‚ 1) ๐“˜(โ„, E) f t) : HasDerivWithinAt (fun s => f (T.realParam s)) (mfderiv (๐“กโˆ‚ 1) ๐“˜(โ„, E) f t (T.positiveTangent t)) K.domain t.val := by let : ChartedSpace (EuclideanHalfSpace 1) T.Point := T.chartedSpace let : IsManifold (๐“กโˆ‚ 1) โˆž T.Point := T.isManifold have hp := T.realParam_smoothOn.mdifferentiableOn (by simp) t.val t.property have hf' : MDifferentiableAt (๐“กโˆ‚ 1) ๐“˜(โ„, E) f (T.realParam t.val) := by simpa only [T.realParam_coe] using hf have hd := hf'.comp_mdifferentiableWithinAt t.val hp have hc := mfderiv_comp_mfderivWithin t.val hf' hp (uniqueDiffWithinAt_of_spacetimeInterval K t).uniqueMDiffWithinAt have hc1 := congrArg (fun L : โ„ โ†’L[โ„] E => L 1) hc change mfderivWithin ๐“˜(โ„) ๐“˜(โ„, E) (f โˆ˜ T.realParam) K.domain t.val 1 = mfderiv (๐“กโˆ‚ 1) ๐“˜(โ„, E) f (T.realParam t.val) (mfderivWithin ๐“˜(โ„) (๐“กโˆ‚ 1) T.realParam K.domain t.val 1) at hc1 rw [T.realParam_mfderivWithin_one, T.realParam_coe, mfderivWithin_eq_fderivWithin] at hc1 exact hd.differentiableWithinAt.hasFDerivWithinAt.hasDerivWithinAt.congr_deriv hc1 variable {n : โ„•} {X : Type u} [TopologicalSpace X] {time : X โ†’ โ„} {I K : SpacetimeInterval} {F : GeneralizedFlowSpacetime n X time I} {T : SmoothSpacetimeInterval K} {C : Type v} [TopologicalSpace C] [ChartedSpace (EuclideanSpace โ„ (Fin n)) C] [IsManifold (๐“ก n) โˆž C] theorem movingGauge_hasDerivWithinAt_comp (e : MovingSpacetimeGauge F T C) {f : F.Point โ†’ โ„} (t : T.Point) (x : C) (hf : MDifferentiableAt (spacetimeModel n) ๐“˜(โ„) f (e.toSpacetime (t, x))) : HasDerivWithinAt (fun s => f (e.toSpacetime (T.realParam s, x))) (mvfderiv (spacetimeModel n) f (e.toSpacetime (t, x)) (movingGaugeTimeVelocity e t x)) K.domain t.val := by let : ChartedSpace (EuclideanHalfSpace 1) T.Point := T.chartedSpace let : IsManifold (๐“กโˆ‚ 1) โˆž T.Point := T.isManifold let : ChartedSpace (ModelProd (EuclideanHalfSpace 1) (EuclideanSpace โ„ (Fin n))) F.Point := F.chartedSpace let : IsManifold (spacetimeModel n) โˆž F.Point := F.isManifold have hi : MDifferentiableAt (๐“กโˆ‚ 1) (spacetimeModel n) (fun s : T.Point => (s, x)) t := mdifferentiableAt_id.prodMk mdifferentiableAt_const have he := e.smooth.mdifferentiableAt (x := (t, x)) (by simp) have hd := T.hasDerivWithinAt_realParam t (hf.comp t (he.comp t hi)) apply hd.congr_deriv rw [mfderiv_comp_apply t hf (he.comp t hi), mfderiv_comp_apply t he hi] change mvfderiv (spacetimeModel n) f (e.toSpacetime (t, x)) (mfderiv (spacetimeModel n) (spacetimeModel n) e.toSpacetime (t, x) (mfderiv (๐“กโˆ‚ 1) (spacetimeModel n) (fun s : T.Point => (s, x)) t (T.positiveTangent t))) = _ congr 2 change mfderiv (๐“กโˆ‚ 1) ((๐“กโˆ‚ 1).prod (๐“ก n)) (fun s : T.Point => (id s, (fun _ : T.Point => x) s)) t (T.positiveTangent t) = (T.positiveTangent t, 0) rw [mfderiv_prodMk mdifferentiableAt_id mdifferentiableAt_const] rw [mfderiv_id, mfderiv_const] rfl theorem movingGauge_hasDerivWithinAt_pullbackSection (e : MovingSpacetimeGauge F T C) (G : MovingSpacetimeGaugeGeometry e) (V : HorizontalSection F) (O : Set F.Point) (hO : IsOpen O) (hV : IsSmoothHorizontalSectionOn F V O) (t : T.Point) (x : C) (hp : e.toSpacetime (t, x) โˆˆ O) : HasDerivWithinAt (fun s => (show EuclideanSpace โ„ (Fin n) from pullbackHorizontalSection G V (T.realParam s) x)) (show EuclideanSpace โ„ (Fin n) from movingGaugeSectionTimeDerivative G V t x) K.domain t.val := by let : ChartedSpace (EuclideanHalfSpace 1) T.Point := T.chartedSpace let : IsManifold (๐“กโˆ‚ 1) โˆž T.Point := T.isManifold have hs := (movingGauge_pullbackHorizontalSection_smoothAt e G V O hO hV (t, x) hp).comp t (contMDiffAt_id.prodMk contMDiffAt_const) have hc := (Bundle.contMDiffAt_totalSpace.mp hs).2 have hraw : ContMDiffAt (๐“กโˆ‚ 1) (๐“ก n) โˆž (fun s : T.Point => (show EuclideanSpace โ„ (Fin n) from pullbackHorizontalSection G V s x)) t := by change ContMDiffAt (๐“กโˆ‚ 1) (๐“ก n) โˆž (fun s => (trivializationAt (EuclideanSpace โ„ (Fin n)) (TangentSpace (๐“ก n)) x โŸจx, pullbackHorizontalSection G V s xโŸฉ).2) t at hc have heq (w : TangentSpace (๐“ก n) x) : (trivializationAt (EuclideanSpace โ„ (Fin n)) (TangentSpace (๐“ก n)) x โŸจx, wโŸฉ).2 = w := by rw [โ† Trivialization.continuousLinearMapAt_apply_of_mem โ„ _ (mem_baseSet_trivializationAt _ _ x) w] rw [TangentBundle.continuousLinearMapAt_trivializationAt (mem_chart_source _ x), mfderiv_extChartAt_self] rfl simpa only [heq] using hc rw [movingGaugeSectionTimeDerivative_eq_model e G V O hO hV t x hp] exact T.hasDerivWithinAt_realParam t (hraw.mdifferentiableAt (by simp)) end PoincareMT