import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedLength.Coordinates.CenteredCoordinateDifferential /-! # The frozen Hessian in the centered chart The inner directional derivative agrees near the center with an actual smooth coordinate derivative. Differentiating that germ retains the connection correction in the frozen Hessian. -/ set_option autoImplicit false set_option maxSynthPendingDepth 3 open scoped Manifold ContDiff Bundle Topology open Filter universe u namespace PoincareMT.ReducedLength variable {n : โ„•} {M : Type u} [TopologicalSpace M] [ChartedSpace (EuclideanSpace โ„ (Fin n)) M] [IsManifold (๐“ก n) โˆž M] local notation "E" => EuclideanSpace โ„ (Fin n) set_option backward.isDefEq.respectTransparency false in theorem hessian_centeredCoordinates {g : RiemannianMetric n M} (D : LeviCivitaData g) (f : M โ†’ โ„) (p : M) (hf : ContMDiffOn (๐“ก n) (๐“˜(โ„, โ„)) โˆž f (chartAt E p).source) (U V : TangentSpace (๐“ก n) p) : let ฯ† : E โ†’ โ„ := fun y โ†ฆ f ((chartAt E p).symm y) D.hessian f p U V = fderiv โ„ (fun y โ†ฆ fderiv โ„ ฯ† y V) ((chartAt E p) p) U - fderiv โ„ ฯ† ((chartAt E p) p) (D.connection (chartVectorField p V) p U) := by let ฯ† : E โ†’ โ„ := fun y โ†ฆ f ((chartAt E p).symm y) let ฯˆ : E โ†’ โ„ := fun y โ†ฆ fderiv โ„ ฯ† y V have hฯ† : ContDiffOn โ„ โˆž ฯ† (chartAt E p).target := (hf.comp contMDiffOn_chart_symm (fun y hy โ†ฆ (chartAt E p).map_target hy)).contDiffOn have hฯˆ : ContDiffOn โ„ โˆž ฯˆ (chartAt E p).target := (hฯ†.fderiv_of_isOpen (chartAt E p).open_target (by simp)).clm_apply contDiffOn_const have hp : (chartAt E p) p โˆˆ (chartAt E p).target := (chartAt E p).map_source (mem_chart_source E p) have heq : f =แถ [๐“ p] (fun q โ†ฆ ฯ† ((chartAt E p) q)) := by filter_upwards [(chartAt E p).open_source.mem_nhds (mem_chart_source E p)] with q hq exact congrArg f ((chartAt E p).left_inv hq).symm have hinner : (fun q โ†ฆ mvfderiv (๐“ก n) f q (chartVectorField p V q)) =แถ [๐“ p] (fun q โ†ฆ ฯˆ ((chartAt E p) q)) := by filter_upwards [(chartAt E p).open_source.mem_nhds (mem_chart_source E p)] with q hq have hdiff : MDifferentiableAt (๐“ก n) (๐“˜(โ„, โ„)) f ((chartAt E p).symm ((chartAt E p) q)) := by rw [(chartAt E p).left_inv hq] exact (hf.contMDiffAt ((chartAt E p).open_source.mem_nhds hq)).mdifferentiableAt (by simp) have h := mvfderiv_chartVectorField p f ((chartAt E p) q) V ((chartAt E p).map_source hq) hdiff convert! h using 1 rw [(chartAt E p).left_inv hq] have hfirst := mvfderiv_centeredChart_of_eventuallyEq p (fun q โ†ฆ mvfderiv (๐“ก n) f q (chartVectorField p V q)) ฯˆ ((hฯˆ.contDiffAt ((chartAt E p).open_target.mem_nhds hp)).differentiableAt (by simp)) hinner U have hsecond := mvfderiv_centeredChart_of_eventuallyEq p f ฯ† ((hฯ†.contDiffAt ((chartAt E p).open_target.mem_nhds hp)).differentiableAt (by simp)) heq (D.connection (chartVectorField p V) p U) rw [hessian_centeredChart, LeviCivitaData.hessianOnFields, chartVectorField_self, hfirst, hsecond] end PoincareMT.ReducedLength