import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.SourceNames.LGeometry import PoincareLib.Geometry.RicciFlow.ReducedGeometry.LGeometry.Jacobi.Index.WeightedJacobiCoefficients /-! # The Jacobi phase ODE along a closed coordinate curve Morgan-Tian Lemmas 6.10 and 6.12, pp. 109-110. The actual within velocity of a smooth closed coordinate curve supplies smooth phase coefficients. M08's linear interval ODE gives existence and uniqueness without an open extension of that curve. -/ set_option autoImplicit false open Set open scoped Manifold ContDiff 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 corrected coordinate Jacobi phase operator uses the actual within velocity of the closed base curve, Lemmas 6.10 and 6.12, pp. 109-110. -/ noncomputable def closedCoordinateJacobiPhase (C : Set ℝ) (q : ℝ → EuclideanSpace ℝ (Fin n)) (s : ℝ) : (EuclideanSpace ℝ (Fin n) × EuclideanSpace ℝ (Fin n)) →L[ℝ] EuclideanSpace ℝ (Fin n) × EuclideanSpace ℝ (Fin n) := M08.covariantLinearPhaseOperator (M08.chartMetricDualInverse F T x (s, q s)) (M08.closedChartConnection F T x C (s, q s) (derivWithin q C s)) (M08.closedChartJacobiPotential F T x C (s, q s) (derivWithin q C s)) (M08.timeWithinFDeriv C (extChartAt (𝓡 n) x).target (M08.chartActionMetric F T x) (s, q s)) /-- The actual closed-curve phase operator is smooth within its parameter set, using M08's closed coefficient theorems, Lemmas 6.10 and 6.12, pp. 109-110. -/ theorem closedCoordinateJacobiPhase_contDiffOn (hM04 : RicciFlowCurvatureTheory.{u}) {C : Set ℝ} (hC : UniqueDiffOn ℝ C) (htime : ∀ s ∈ C, T - s ^ 2 ∈ J) {q : ℝ → EuclideanSpace ℝ (Fin n)} (hq : ContDiffOn ℝ ∞ q C) (hmem : MapsTo q C (extChartAt (𝓡 n) x).target) : ContDiffOn ℝ ∞ (closedCoordinateJacobiPhase F T x C q) C := by have hpoint := contDiffOn_id.prodMk hq have hmap : MapsTo (fun s => (s, q s)) C (C ×ˢ (extChartAt (𝓡 n) x).target) := fun _ hs => ⟨hs, hmem hs⟩ have hA := hq.derivWithin hC (m := ∞) (by simp) have hB := (M08.chartMetricDualInverse_contDiffOn F T x htime).comp hpoint hmap have hΓ := ((M08.closedChartConnection_contDiffOn F T x hC htime).comp hpoint hmap).clm_apply hA have hV := (M08.closedChartJacobiPotential_contDiffOn F hM04 T x hC htime).comp (hpoint.prodMk hA) (fun s hs => ⟨hmap hs, mem_univ _⟩) have hH := (M08.timeWithinFDeriv_contDiffOn hC (isOpen_extChartAt_target (I := 𝓡 n) x) (M08.chartActionMetric F T x) (M08.chartActionMetric_closed_contDiffOn F T x htime)).comp hpoint hmap exact M08.covariantLinearPhaseOperator_contDiffOn hB hΓ hV hH /-- The corrected Jacobi phase has a smooth solution for arbitrary initial data at any point of the closed interval, Lemmas 6.10 and 6.12, pp. 109-110. -/ theorem exists_closedCoordinateJacobi_solution (hM04 : RicciFlowCurvatureTheory.{u}) {a b t₀ : ℝ} (hab : a < b) (htime : ∀ s ∈ Icc a b, T - s ^ 2 ∈ J) {q : ℝ → EuclideanSpace ℝ (Fin n)} (hq : ContDiffOn ℝ ∞ q (Icc a b)) (hmem : MapsTo q (Icc a b) (extChartAt (𝓡 n) x).target) (ht₀ : t₀ ∈ Icc a b) (z₀ : EuclideanSpace ℝ (Fin n) × EuclideanSpace ℝ (Fin n)) : ∃ z : ℝ → EuclideanSpace ℝ (Fin n) × EuclideanSpace ℝ (Fin n), z t₀ = z₀ ∧ ContDiffOn ℝ ∞ z (Icc a b) ∧ ∀ s ∈ Icc a b, HasDerivWithinAt z (closedCoordinateJacobiPhase F T x (Icc a b) q s (z s)) (Icc a b) s := by have hL := closedCoordinateJacobiPhase_contDiffOn F T x hM04 (uniqueDiffOn_Icc hab) htime hq hmem obtain ⟨z, hz₀, hzd⟩ := M08.exists_linear_interval_solution _ hL.continuousOn ht₀ z₀ exact ⟨z, hz₀, M08.linear_interval_solution_contDiffOn _ hL hzd, hzd⟩ /-- Two actual phase solutions with the same initial value agree on the entire closed interval, Lemmas 6.10 and 6.12, pp. 109-110. -/ theorem closedCoordinateJacobi_solution_unique (hM04 : RicciFlowCurvatureTheory.{u}) {a b t₀ : ℝ} (hab : a < b) (htime : ∀ s ∈ Icc a b, T - s ^ 2 ∈ J) {q : ℝ → EuclideanSpace ℝ (Fin n)} (hq : ContDiffOn ℝ ∞ q (Icc a b)) (hmem : MapsTo q (Icc a b) (extChartAt (𝓡 n) x).target) (ht₀ : t₀ ∈ Icc a b) {f g : ℝ → EuclideanSpace ℝ (Fin n) × EuclideanSpace ℝ (Fin n)} (hf : ∀ s ∈ Icc a b, HasDerivWithinAt f (closedCoordinateJacobiPhase F T x (Icc a b) q s (f s)) (Icc a b) s) (hg : ∀ s ∈ Icc a b, HasDerivWithinAt g (closedCoordinateJacobiPhase F T x (Icc a b) q s (g s)) (Icc a b) s) (heq : f t₀ = g t₀) : EqOn f g (Icc a b) := M08.linear_interval_solution_unique _ (closedCoordinateJacobiPhase_contDiffOn F T x hM04 (uniqueDiffOn_Icc hab) htime hq hmem).continuousOn ht₀ hf hg heq end PoincareMT.M14