import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedLength.Tensor.FixedChartHessian /-! # Fixed-chart Hessians on local scalar neighborhoods The derivative of the frozen extension cancels on the common chart germ. Scalar germ equality also preserves the complete 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) theorem hessian_eq_of_eventuallyEq {g : RiemannianMetric n M} (D : LeviCivitaData g) (f h : M โ†’ โ„) (q : M) (heq : f =แถ [๐“ q] h) (u v : TangentSpace (๐“ก n) q) : D.hessian f q u v = D.hessian h q u v := by have hcongr (f h : M โ†’ โ„) (x : M) (hh : f =แถ [๐“ x] h) : mvfderiv (๐“ก n) f x = mvfderiv (๐“ก n) h x := by unfold mvfderiv rw [hh.eq_of_nhds, hh.mfderiv_eq] have hfirst : (fun x โ†ฆ mvfderiv (๐“ก n) f x (FiberBundle.extend E v x)) =แถ [๐“ q] (fun x โ†ฆ mvfderiv (๐“ก n) h x (FiberBundle.extend E v x)) := by filter_upwards [heq.eventuallyEq_nhds] with x hx rw [hcongr f h x hx] unfold LeviCivitaData.hessian LeviCivitaData.hessianOnFields change mvfderiv (๐“ก n) _ q _ - mvfderiv (๐“ก n) f q _ = mvfderiv (๐“ก n) _ q _ - mvfderiv (๐“ก n) h q _ rw [hcongr _ _ q hfirst, hcongr f h q heq] set_option maxHeartbeats 1000000 in -- The local scalar and the frozen extension are differentiated on their common open germ. set_option backward.isDefEq.respectTransparency false in theorem hessian_fixedChart_local {g : RiemannianMetric n M} (D : LeviCivitaData g) (f : M โ†’ โ„) (p q : M) (hq : q โˆˆ (chartAt E p).source) (O : Set M) (hO : IsOpen O) (hqO : q โˆˆ O) (hf : ContMDiffOn (๐“ก n) (๐“˜(โ„, โ„)) โˆž f O) (u v : E) (A : E โ†’L[โ„] E) (hA : โˆ€ w : E, D.connection (chartVectorField p w) q (chartVectorField p u q) = chartVectorField p (A w) q) : let ฯ† : E โ†’ โ„ := fun y โ†ฆ f ((chartAt E p).symm y) D.hessian f q (chartVectorField p u q) (chartVectorField p v q) = fderiv โ„ (fderiv โ„ ฯ†) ((chartAt E p) q) u v - fderiv โ„ ฯ† ((chartAt E p) q) (A v) := by dsimp only let e := chartAt E p let U := O โˆฉ e.source let V := e.target โˆฉ e.symm โปยน' O have hU : IsOpen U := hO.inter e.open_source have hqU : q โˆˆ U := โŸจhqO, hqโŸฉ have he : ContMDiffOn (๐“ก n) (๐“ก n) โˆž e.symm e.target := contMDiffOn_chart_symm have hV : IsOpen V := he.continuousOn.isOpen_inter_preimage e.open_target hO have hqV : e q โˆˆ V := โŸจe.map_source hq, by change e.symm (e q) โˆˆ O rwa [e.left_inv hq]โŸฉ let ฯ† : E โ†’ โ„ := fun y โ†ฆ f (e.symm y) let P : M โ†’ E โ†’L[โ„] โ„ := fun x โ†ฆ fderiv โ„ ฯ† (e x) let X := chartVectorField p u q let Vq := chartVectorField p v q let c := frozenChartCoordinates p q Vq have hฯ† : ContDiffOn โ„ โˆž ฯ† V := (hf.comp (he.mono Set.inter_subset_left) (fun y hy โ†ฆ hy.2)).contDiffOn have hDฯ† := hฯ†.fderiv_of_isOpen hV (m := โˆž) (by simp) have hP : ContMDiffOn (๐“ก n) (๐“˜(โ„, E โ†’L[โ„] โ„)) โˆž P U := hDฯ†.contMDiffOn.comp (contMDiffOn_chart.mono Set.inter_subset_right) (by intro x hx exact โŸจe.map_source hx.2, by change e.symm (e x) โˆˆ O rw [e.left_inv hx.2] exact hx.1โŸฉ) have hPd := (hP.contMDiffAt (hU.mem_nhds hqU)).mdifferentiableAt (by simp) have hcd := (frozenChartCoordinates_contMDiffAt p q hq Vq).mdifferentiableAt (by simp) have hcv : c q = v := frozenChartCoordinates_at_base p q hq v have hfirst (x : M) (hx : x โˆˆ U) (w : E) : mvfderiv (๐“ก n) f x (chartVectorField p w x) = P x w := by have hfx : MDifferentiableAt (๐“ก n) (๐“˜(โ„, โ„)) f (e.symm (e x)) := by rw [e.left_inv hx.2] exact (hf.contMDiffAt (hO.mem_nhds hx.1)).mdifferentiableAt (by simp) have h := mvfderiv_chartVectorField_normed p f (e x) w (e.map_source hx.2) hfx rwa [e.left_inv hx.2] at h have heq : (fun x โ†ฆ mvfderiv (๐“ก n) f x (FiberBundle.extend E Vq x)) =แถ [๐“ q] (fun x โ†ฆ P x (c x)) := by filter_upwards [hU.mem_nhds hqU] with x hx rw [โ† frozenChartCoordinates_reconstruct p q x Vq hx.2] exact hfirst x hx (c x) have hder : mvfderiv (๐“ก n) (fun x โ†ฆ mvfderiv (๐“ก n) f x (FiberBundle.extend E Vq x)) q X = P q (mvfderiv (๐“ก n) c q X) + mvfderiv (๐“ก n) P q X v := by rw [mvfderiv, heq.mfderiv_eq] change mvfderiv (๐“ก n) (fun x โ†ฆ P x (c x)) q X = _ rw [mvfderiv_clm_application P c q hPd hcd X, hcv] have hPder : mvfderiv (๐“ก n) P q X = fderiv โ„ (fderiv โ„ ฯ†) (e q) u := by have hPd' : MDifferentiableAt (๐“ก n) (๐“˜(โ„, E โ†’L[โ„] โ„)) P (e.symm (e q)) := by rwa [e.left_inv hq] have h := mvfderiv_chartVectorField_normed p P (e q) u (e.map_source hq) hPd' rw [e.left_inv hq] at h have hgerm : (fun y โ†ฆ P (e.symm y)) =แถ [๐“ (e q)] fderiv โ„ ฯ† := by filter_upwards [e.open_target.mem_nhds (e.map_source hq)] with y hy exact congrArg (fderiv โ„ ฯ†) (e.right_inv hy) exact h.trans (congrArg (fun L : E โ†’L[โ„] E โ†’L[โ„] โ„ โ†ฆ L u) (hgerm.fderiv_eq (๐•œ := โ„))) change mvfderiv (๐“ก n) (fun x โ†ฆ mvfderiv (๐“ก n) f x (FiberBundle.extend E Vq x)) q (FiberBundle.extend E X q) - mvfderiv (๐“ก n) f q (D.connection (FiberBundle.extend E Vq) q (FiberBundle.extend E X q)) = _ rw [FiberBundle.extend_apply_self, hder, connection_frozenChartCoordinates D p q hq X A hA v, hfirst q hqU, map_add, hPder] ring end PoincareMT.ReducedLength