import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.SourceNames.LGeometry import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Calculus.ODE.Families.ClosedODEJointFamily import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Exponential.Families.ClosedEulerExistence /-! # Jointly smooth local families of actual closed Euler phases Morgan-Tian Lemma 6.18, pp. 113-114. M08's actual phase field satisfies the closed ODE hypotheses. The resulting local family is jointly smooth in the initial phase and closed time, and genuine spatial derivatives identify the actual phase coefficients on the retained interval. -/ set_option autoImplicit false -- The actual phase coefficients use the standard Euclidean tangent models. set_option backward.isDefEq.respectTransparency false open Set Filter Metric 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] /-- The actual closed Euler phase has a jointly smooth local family through every nearby initial phase. It remains in the chart and solves the actual within equation on its own closed interval, including both endpoints, Lemma 6.18, pp. 113-114. -/ theorem exists_closedChartEulerPhase_joint_family {J : Set ℝ} (F : RicciFlow n M J) (hM04 : RicciFlowCurvatureTheory.{u}) (T : ℝ) (xβ‚€ : M) {a b : ℝ} (hab : a < b) (htime : βˆ€ s ∈ Icc a b, T - s ^ 2 ∈ J) (sβ‚€ : Icc a b) {zβ‚€ : EuclideanSpace ℝ (Fin n) Γ— EuclideanSpace ℝ (Fin n)} (hzβ‚€ : zβ‚€.1 ∈ (extChartAt (𝓑 n) xβ‚€).target) : βˆƒ c d : ℝ, βˆƒ s₁ : Icc c d, c < d ∧ a ≀ c ∧ d ≀ b ∧ s₁.val = sβ‚€.val ∧ Icc c d ∈ 𝓝[Icc a b] sβ‚€.val ∧ βˆƒ ρ > (0 : ℝ), βˆƒ Ξ± : (EuclideanSpace ℝ (Fin n) Γ— EuclideanSpace ℝ (Fin n)) Γ— ℝ β†’ EuclideanSpace ℝ (Fin n) Γ— EuclideanSpace ℝ (Fin n), ContDiffOn ℝ ∞ Ξ± (ball zβ‚€ ρ Γ—Λ’ Icc c d) ∧ βˆ€ z ∈ ball zβ‚€ ρ, Ξ± (z, s₁.val) = z ∧ βˆ€ s ∈ Icc c d, (Ξ± (z, s)).1 ∈ (extChartAt (𝓑 n) xβ‚€).target ∧ HasDerivWithinAt (fun r => Ξ± (z, r)) (M08.closedChartEulerPhase F T xβ‚€ (Icc c d) s (Ξ± (z, s))) (Icc c d) s := by obtain ⟨c, d, s₁, hcd, hac, hdb, hi, hnear, ρ, hρ, Ξ±, hΞ±, hdata⟩ := closedODE_exists_joint_family hab sβ‚€ ((isOpen_extChartAt_target (I := 𝓑 n) xβ‚€).prod isOpen_univ) (Function.uncurry (M08.closedChartEulerPhase F T xβ‚€ (Icc a b))) (M08.closedChartEulerPhase_contDiffOn F hM04 T xβ‚€ (uniqueDiffOn_Icc hab) htime) ⟨hzβ‚€, mem_univ _⟩ refine ⟨c, d, s₁, hcd, hac, hdb, hi, hnear, ρ, hρ, Ξ±, hΞ±, ?_⟩ intro z hz refine ⟨(hdata z hz).1, ?_⟩ intro s hs obtain ⟨hmap, hd⟩ := (hdata z hz).2 s hs refine ⟨hmap.1, ?_⟩ rw [closedChartEulerPhase_restrict F hM04 T xβ‚€ htime (Icc_subset_Icc hac hdb) hs hmap.1] exact hd end PoincareMT.M14