import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.SourceNames.LGeometry import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.SourceNames.ReducedLength import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Variation.Euler.InteriorPotential import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Calculus.Local.CoordinateJacobiLinearization /-! # The actual closed coordinate Jacobi identity on a strict interior Morgan-Tian Lemmas 6.10 and 6.19, pp. 109-110, 114. Equality of actual connection and potential germs converts the open phase linearization to the corrected closed-coordinate Jacobi residual. All time derivatives retain the supplied closed parameter set. -/ set_option autoImplicit false open Set Filter open scoped Manifold ContDiff Topology universe u namespace PoincareMT.M14 variable {n : โ„•} {M : Type u} [TopologicalSpace M] [ChartedSpace (EuclideanSpace โ„ (Fin n)) M] [IsManifold (๐“ก n) โˆž M] {J : Set โ„} (F : RicciFlow n M J) (T : โ„) (x : M) /-- The actual open velocity-phase linearization has zero corrected closed-coordinate Jacobi residual at every strict time interior, including the actual repeated within derivative of its covariant field, Lemmas 6.10 and 6.19, pp. 109-110, 114. -/ theorem closedCoordinateJacobi_of_linearization (hM04 : RicciFlowCurvatureTheory.{u}) {C : Set โ„} (hC : UniqueDiffOn โ„ C) (htime : โˆ€ r โˆˆ C, T - r ^ 2 โˆˆ J) (q Y : โ„ โ†’ EuclideanSpace โ„ (Fin n)) (hq : ContDiffOn โ„ โˆž q C) (hY : ContDiffOn โ„ โˆž Y C) (hmap : MapsTo q C (extChartAt (๐“ก n) x).target) {s : โ„} (hs : s โˆˆ C) (hnear : C โˆˆ ๐“ s) (hphase : deriv (deriv q) s = (Proofs.M09.regularizedCoordinatePhase (M08.chartActionMetric F T x) (chartActionScalar F T x) (s, (q s, deriv q s))).2) (hlinear : deriv (deriv Y) s = (fderiv โ„ (Proofs.M09.regularizedCoordinatePhase (M08.chartActionMetric F T x) (chartActionScalar F T x)) (s, (q s, deriv q s)) (0, (Y s, deriv Y s))).2) (W : EuclideanSpace โ„ (Fin n)) : let A := derivWithin q C let d := fun r => derivWithin Y C r + M08.closedChartConnection F T x C (r, q r) (A r) (Y r) M08.chartActionMetric F T x (s, q s) (derivWithin d C s + M08.closedChartConnection F T x C (s, q s) (A s) (d s)) W - M08.closedChartJacobiPotential F T x C (s, q s) (A s) (Y s) W + M08.timeWithinFDeriv C (extChartAt (๐“ก n) x).target (M08.chartActionMetric F T x) (s, q s) (d s) W = 0 := by let B := M08.chartActionMetric F T x let R := chartActionScalar F T x let ฮ“ := Proofs.M09.coordinateConnectionBilinear B let ฮฉ := interior C ร—หข (extChartAt (๐“ก n) x).target have hU := isOpen_extChartAt_target (I := ๐“ก n) x have hฮฉ : IsOpen ฮฉ := isOpen_interior.prod hU have hsub : ฮฉ โІ C ร—หข (extChartAt (๐“ก n) x).target := prod_mono interior_subset Subset.rfl have hB : ContDiffOn โ„ โˆž B ฮฉ := (M08.chartActionMetric_closed_contDiffOn F T x htime).mono hsub have hR : ContDiffOn โ„ โˆž R ฮฉ := (chartActionScalar_contDiffOn F T x hM04 htime).mono hsub have hsi : s โˆˆ interior C := mem_interior_iff_mem_nhds.mpr hnear have hqAt := hq.contDiffAt hnear have hYAt := hY.contDiffAt hnear have hq2At := ((hq.mono interior_subset).deriv_of_isOpen isOpen_interior (m := โˆž) (by simp)).contDiffAt (isOpen_interior.mem_nhds hsi) have hY2At := ((hY.mono interior_subset).deriv_of_isOpen isOpen_interior (m := โˆž) (by simp)).contDiffAt (isOpen_interior.mem_nhds hsi) have hj := coordinate_linearization_weightedJacobi B R ฮฉ hฮฉ hB hR (fun _ hz => chartActionMetric_pos_of_target F T x hz.2) (fun _ hz => chartActionMetric_symm_of_target F T x hz.2) q Y s โŸจhsi, hmap hsโŸฉ (hqAt.differentiableAt (by simp)) (hq2At.differentiableAt (by simp)) (hYAt.differentiableAt (by simp)) (hY2At.differentiableAt (by simp)) hphase hlinear W let d := fun r => deriv Y r + ฮ“ (r, q r) (deriv q r) (Y r) let f := fun r => derivWithin Y C r + M08.closedChartConnection F T x C (r, q r) (derivWithin q C r) (Y r) have hfd : f =แถ [๐“ s] d := by filter_upwards [isOpen_interior.mem_nhds hsi, hqAt.continuousAt.preimage_mem_nhds (hU.mem_nhds (hmap hs))] with r hr hqr have hrC : C โˆˆ ๐“ r := mem_interior_iff_mem_nhds.mp hr dsimp only [f, d, ฮ“, B] rw [derivWithin_of_mem_nhds hrC, derivWithin_of_mem_nhds hrC, closedChartConnection_eq_open F T x hrC hqr] have hdf : derivWithin f C s = deriv d s := by rw [derivWithin_of_mem_nhds hnear] exact hfd.deriv_eq change B (s, q s) (derivWithin f C s + M08.closedChartConnection F T x C (s, q s) (derivWithin q C s) (f s)) W - M08.closedChartJacobiPotential F T x C (s, q s) (derivWithin q C s) (Y s) W + M08.timeWithinFDeriv C (extChartAt (๐“ก n) x).target B (s, q s) (f s) W = 0 rw [hdf, hfd.eq_of_nhds, derivWithin_of_mem_nhds hnear, closedChartConnection_eq_open F T x hnear (hmap hs), closedChartJacobiPotential_eq_open F T x hM04 hC htime hs hnear (hmap hs)] unfold M08.timeWithinFDeriv rw [fderivWithin_of_mem_nhds (prod_mem_nhds hnear (hU.mem_nhds (hmap hs)))] exact hj end PoincareMT.M14