import PoincareLib.Geometry.RicciFlow.ReducedGeometry.LGeometry.Jacobi.JacobiGlobalPair /-! Adapted from Mapher `PoincareMT/Proofs/M08/JacobiInitialValue.lean` at `f927d9e1f0810042766d3b5f64d3f4da02ee93cc`. -/ set_option autoImplicit false set_option backward.isDefEq.respectTransparency false noncomputable section open Set Filter Topology open scoped Manifold ContDiff Bundle universe u namespace PoincareMT.LGeometry variable {n : β„•} {M : Type u} [TopologicalSpace M] [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓑 n) ∞ M] theorem parametricExtension_along_contMDiffOn {C : Set ℝ} {Ξ± : ℝ β†’ M} {Y : βˆ€ s, TangentSpace (𝓑 n) (Ξ± s)} (E : ParametricAlongCurveExtensionOn C Ξ± Y) (hΞ± : ContMDiffOn (π“˜(ℝ, ℝ)) (𝓑 n) ∞ Ξ± C) : ContMDiffOn (π“˜(ℝ, ℝ)) ((𝓑 n).prod (𝓑 n)) ∞ (fun s ↦ Bundle.TotalSpace.mk' (EuclideanSpace ℝ (Fin n)) (Ξ± s) (Y s)) C := by have h := E.smooth.comp (contMDiffOn_id.prodMk hΞ±) (fun s hs ↦ E.graph_mem s hs) apply h.congr intro s hs change Bundle.TotalSpace.mk' (EuclideanSpace ℝ (Fin n)) (Ξ± s) (Y s) = Bundle.TotalSpace.mk' (EuclideanSpace ℝ (Fin n)) (Ξ± s) (E.extension s (Ξ± s)) rw [E.agrees s hs] theorem sqrtRegularField_isJacobiPair {J : Set ℝ} {F : RicciFlow n M J} {T τ₁ Ο„β‚‚ : ℝ} {p : BackwardTimePath F T τ₁ Ο„β‚‚} (R : RegularizedLGeodesicData p) {Y : βˆ€ Ο„, TangentSpace (𝓑 n) (p.curve Ο„)} (Q : SqrtRegularField R.path Y) (hres : βˆ€ s ∈ sqrtParameterInterval τ₁ Ο„β‚‚, βˆ€ W : TangentSpace (𝓑 n) (R.path.curve s), regularizedJacobiResidual R Q s W = 0) : IsJacobiPairOn F T R.path.curve (sqrtParameterInterval τ₁ Ο„β‚‚) (Real.sqrt τ₁) (Real.sqrt Ο„β‚‚) (fun s ↦ (Q.field s, Q.firstDerivative s)) := by refine ⟨Real.sqrt_lt_sqrt p.nonnegative p.ordered, Subset.rfl, parametricExtension_along_contMDiffOn Q.extension (R.path.smooth.mono R.path.interval_subset), parametricExtension_along_contMDiffOn Q.derivative_extension (R.path.smooth.mono R.path.interval_subset), Q.extension, Q.derivative_extension, fun _ _ ↦ rfl, ?_⟩ intro s hs W exact hres s hs W set_option maxHeartbeats 1500000 in theorem exists_lJacobi_initialValue {J : Set ℝ} (F : RicciFlow n M J) (hM04 : RicciFlowCurvatureTheory.{u}) {T τ₁ Ο„β‚‚ : ℝ} (p : BackwardTimePath F T τ₁ Ο„β‚‚) (R : RegularizedLGeodesicData p) (Z : TangentSpace (𝓑 n) (p.curve τ₁)) : βˆƒ Y : βˆ€ Ο„, TangentSpace (𝓑 n) (p.curve Ο„), IsLJacobiField F T τ₁ Ο„β‚‚ p Y ∧ HasLJacobiInitialDerivative R Y Z ∧ βˆ€ Y' : βˆ€ Ο„, TangentSpace (𝓑 n) (p.curve Ο„), IsLJacobiField F T τ₁ Ο„β‚‚ p Y' β†’ HasLJacobiInitialDerivative R Y' Z β†’ βˆ€ Ο„ ∈ Icc τ₁ Ο„β‚‚, Y' Ο„ = Y Ο„ := by have hab : Real.sqrt τ₁ < Real.sqrt Ο„β‚‚ := Real.sqrt_lt_sqrt p.nonnegative p.ordered have ha : Real.sqrt τ₁ ∈ sqrtParameterInterval τ₁ Ο„β‚‚ := ⟨le_rfl, hab.le⟩ have htime (s : ℝ) (hs : s ∈ sqrtParameterInterval τ₁ Ο„β‚‚) : T - s ^ 2 ∈ J := p.time_mem (s ^ 2) (square_mem_backward_interval p hs) let hbase : R.path.curve (Real.sqrt τ₁) = p.curve τ₁ := sqrtRegularPath_point_eq R.path ⟨le_rfl, p.ordered.le⟩ let Zβ‚€ : TangentSpace (𝓑 n) (R.path.curve (Real.sqrt τ₁)) := hbase.symm β–Έ Z obtain ⟨z, hz, hzβ‚€βŸ© := exists_jacobiPairOn F hM04 T hab htime R.path.curve R.path.open_domain R.path.interval_subset R.path.smooth (0, Zβ‚€) obtain ⟨EY, EP, hY, hP⟩ := hz.equations let Y := backwardFieldOfSqrt R.path (fun s ↦ (z s).1) let Q : SqrtRegularField R.path Y := sqrtRegularFieldOfPullback R.path (fun s ↦ (z s).1) (fun s ↦ (z s).2) EY EP hY have hfirst (s : ℝ) (hs : s ∈ sqrtParameterInterval τ₁ Ο„β‚‚) : Q.firstDerivative s = (z s).2 := hY s hs have hsecond (s : ℝ) : Q.secondDerivative s = pullbackCovariantDerivative F (fun r ↦ T - r ^ 2) R.path.curve (fun r ↦ (z r).2) (sqrtParameterInterval τ₁ Ο„β‚‚) EP s := rfl have hzero : Y τ₁ = 0 := backwardFieldOfSqrt_initial_zero R.path (fun s ↦ (z s).1) (congrArg Prod.fst hzβ‚€) have hres : βˆ€ s ∈ sqrtParameterInterval τ₁ Ο„β‚‚, βˆ€ W : TangentSpace (𝓑 n) (R.path.curve s), regularizedJacobiResidual R Q s W = 0 := by intro s hs W change jacobiPairResidual F T R.path.curve (sqrtParameterInterval τ₁ Ο„β‚‚) s (z s).1 (Q.firstDerivative s) (Q.secondDerivative s) W = 0 rw [hfirst s hs, hsecond] exact hP s hs W refine ⟨Y, ⟨R, Q, hzero, hres⟩, ⟨Q, ?_⟩, ?_⟩ Β· exact (hfirst _ ha).trans (congrArg Prod.snd hzβ‚€) Β· intro Y' hY' hZ' obtain ⟨Q', hzero', hres'⟩ := isLJacobiField_residual_for_representative hY' R obtain ⟨Qβ‚€, hQβ‚€βŸ© := hZ' have hfirst' : Q'.firstDerivative (Real.sqrt τ₁) = Zβ‚€ := (sqrtRegularField_firstDerivative_eq Q' Qβ‚€ ha).trans hQβ‚€ have hzeroQ' : Q'.field (Real.sqrt τ₁) = 0 := by rw [Q'.agrees _ ha, tangent_cast_eq (n := n), Real.sq_sqrt p.nonnegative, hzero'] have hinit : (Q'.field (Real.sqrt τ₁), Q'.firstDerivative (Real.sqrt τ₁)) = z (Real.sqrt τ₁) := by rw [hzβ‚€, hzeroQ', hfirst'] have heq := jacobiPairOn_unique hM04 htime R.path.open_domain R.path.interval_subset R.path.smooth (sqrtRegularField_isJacobiPair R Q' hres') hz hinit apply sqrtRegularField_eq_of_totalSpace_eq Q' Q intro s hs exact congrArg (fun v : TangentSpace (𝓑 n) (R.path.curve s) ↦ Bundle.TotalSpace.mk' (EuclideanSpace ℝ (Fin n)) (R.path.curve s) v) (show Q'.field s = Q.field s from congrArg Prod.fst (heq hs)) end PoincareMT.LGeometry