import PoincareLib.Geometry.CurveShortening.Ramp.LocalFlow.Continuous.DependenceEmbeddedJets import PoincareLib.Geometry.CurveShortening.Ramp.Analysis.Retraction.TangentContinuity /-! # Actual angular jets from continuous embedded jets The smooth retraction and the spatial Hessian identity recover the two frozen angular jets from the ordinary embedded derivatives. MT2007 Claim 19.1, p. 437, and Lemma 19.17, pp. 449-450; `2026-09-23-continuous-angular-jets-from-embedded-jets.md`. -/ set_option autoImplicit false set_option backward.isDefEq.respectTransparency false open Set open scoped Manifold ContDiff Bundle universe u v w namespace PoincareMT.M63 variable {n : β„•} {M : Type u} [TopologicalSpace M] [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓑 n) ∞ M] {ΞΉ : Type v} [Fintype ΞΉ] {Z : Type w} [TopologicalSpace Z] {a b : ℝ} local notation "W" => EuclideanSpace ℝ ΞΉ /-- Joint continuity of the three actual embedded spatial jets recovers the actual angular jets at any continuously selected included time. MT2007 Claim 19.1, p. 437; angular-jet conversion derivation. -/ theorem continuous_angular_jets_of_embedded_jets (F : RicciFlow n M (Icc a b)) (tau : Z β†’ ℝ) (htau : Continuous tau) (htime : βˆ€ z, tau z ∈ Icc a b) (gamma : Z β†’ ℝ β†’ M) (hC2 : βˆ€ z, ContMDiff π“˜(ℝ, ℝ) (𝓑 n) 2 (gamma z)) {e : M β†’ W} (he : ContMDiff (𝓑 n) π“˜(ℝ, W) ∞ e) {U : Set W} (hU : IsOpen U) (heU : range e βŠ† U) {ρ : W β†’ M} (hρ : ContMDiffOn π“˜(ℝ, W) (𝓑 n) ∞ ρ U) (hρe : βˆ€ p, ρ (e p) = p) (hzero : Continuous (fun z : Z Γ— ℝ => e (gamma z.1 z.2))) (hfirst : Continuous (fun z : Z Γ— ℝ => deriv (fun y => e (gamma z.1 y)) z.2)) (hsecond : Continuous (fun z : Z Γ— ℝ => deriv (deriv (fun y => e (gamma z.1 y))) z.2)) : Continuous (fun z : Z Γ— ℝ => gamma z.1 z.2) ∧ Continuous (fun z : Z Γ— ℝ => m63AngularFirstJet (n := n) (gamma z.1) z.2) ∧ Continuous (fun z : Z Γ— ℝ => m63AngularSecondJet (F.connection (tau z.1)) (gamma z.1) z.2) := by have hgamma : Continuous (fun z : Z Γ— ℝ => gamma z.1 z.2) := (hρ.continuousOn.comp_continuous hzero (fun _ => heU (mem_range_self _))).congr (fun z => hρe (gamma z.1 z.2)) have hspace (z : Z) : ContDiff ℝ 2 (fun x => e (gamma z x)) := ((he.of_le (ENat.natCast_le_of_coe_top_le_withTop le_rfl 2)).comp (hC2 z)).contDiff have hderiv (z : Z) (x : ℝ) : HasDerivAt (fun y => e (gamma z y)) (mfderiv (𝓑 n) π“˜(ℝ, W) e (gamma z x) (curveVelocity (n := n) (gamma z) x) : W) x := by have hchain : fderiv ℝ (fun y => e (gamma z y)) x = (mfderiv (𝓑 n) π“˜(ℝ, W) e (gamma z x)).comp (mfderiv π“˜(ℝ, ℝ) (𝓑 n) (gamma z) x) := by rw [← mfderiv_eq_fderiv] exact mfderiv_comp x (he.mdifferentiable (by simp)).mdifferentiableAt ((hC2 z x).mdifferentiableAt (by norm_num)) exact ((hspace z).differentiable (by norm_num) x).hasDerivAt.congr_deriv (congrArg (fun L : ℝ β†’L[ℝ] W => L 1) hchain) have hpushFirst : Continuous (fun z : Z Γ— ℝ => (mfderiv (𝓑 n) π“˜(ℝ, W) e (gamma z.1 z.2) (curveVelocity (n := n) (gamma z.1) z.2) : W)) := hfirst.congr (fun z => (hderiv z.1 z.2).deriv) have hangularFirst : Continuous (fun z : Z Γ— ℝ => m63AngularFirstJet (n := n) (gamma z.1) z.2) := continuousOn_univ.mp (continuousOn_tangentSection_of_retraction_pushforward he hU heU hρ hρe (fun z : Z Γ— ℝ => gamma z.1 z.2) (fun z => curveVelocity (n := n) (gamma z.1) z.2) hgamma.continuousOn hpushFirst.continuousOn) have hB : ContinuousOn (fun z : (ℝ Γ— W) Γ— W => (coordinateHessian (F.connection z.1.1) e (ρ z.1.2) (mfderiv π“˜(ℝ, W) (𝓑 n) ρ z.1.2 z.2) (mfderiv π“˜(ℝ, W) (𝓑 n) ρ z.1.2 z.2) : W)) ((Icc a b Γ—Λ’ U) Γ—Λ’ univ) := (flow_coordinateHessian_pullback_contDiffOn F he hU hρ).continuousOn let coefficientInput : Z Γ— ℝ β†’ (ℝ Γ— W) Γ— W := fun z => ((tau z.1, e (gamma z.1 z.2)), deriv (fun y => e (gamma z.1 y)) z.2) have hinput : Continuous coefficientInput := ((htau.comp continuous_fst).prodMk hzero).prodMk hfirst have hmem (z : Z Γ— ℝ) : coefficientInput z ∈ ((Icc a b Γ—Λ’ U) Γ—Λ’ univ) := ⟨⟨htime z.1, heU (mem_range_self _)⟩, mem_univ _⟩ have hcomposed := hB.comp_continuous (f := coefficientInput) hinput hmem have hleft := (smooth_retraction_differentials he hU heU hρ hρe).2.2 have hHessian : Continuous (fun z : Z Γ— ℝ => (coordinateHessian (F.connection (tau z.1)) e (gamma z.1 z.2) (curveVelocity (n := n) (gamma z.1) z.2) (curveVelocity (n := n) (gamma z.1) z.2) : W)) := by apply hcomposed.congr intro z change coordinateHessian (F.connection (tau z.1)) e (ρ (e (gamma z.1 z.2))) (mfderiv π“˜(ℝ, W) (𝓑 n) ρ (e (gamma z.1 z.2)) (deriv (fun y => e (gamma z.1 y)) z.2)) (mfderiv π“˜(ℝ, W) (𝓑 n) ρ (e (gamma z.1 z.2)) (deriv (fun y => e (gamma z.1 y)) z.2)) = _ rw [(hderiv z.1 z.2).deriv] erw [hleft (gamma z.1 z.2) (curveVelocity (n := n) (gamma z.1) z.2), hρe (gamma z.1 z.2)] have hpushSecond : Continuous (fun z : Z Γ— ℝ => (mfderiv (𝓑 n) π“˜(ℝ, W) e (gamma z.1 z.2) (rampHorizontalCovariantDerivative (F.connection (tau z.1)) (gamma z.1) (fun y => curveVelocity (n := n) (gamma z.1) y) z.2) : W)) := by apply (hsecond.sub hHessian).congr intro z simp only [Pi.sub_apply] rw [secondDeriv_embedding_eq_hessian_add_acceleration (F.connection (tau z.1)) he (hC2 z.1) z.2] abel refine ⟨hgamma, hangularFirst, ?_⟩ exact continuousOn_univ.mp (continuousOn_tangentSection_of_retraction_pushforward he hU heU hρ hρe (fun z : Z Γ— ℝ => gamma z.1 z.2) (fun z => rampHorizontalCovariantDerivative (F.connection (tau z.1)) (gamma z.1) (fun y => curveVelocity (n := n) (gamma z.1) y) z.2) hgamma.continuousOn hpushSecond.continuousOn) end PoincareMT.M63