import PoincareLib.Geometry.CurveShortening.Comparison.AnnularEvolution.Moving.CurveEnergy import PoincareLib.Geometry.CurveShortening.Comparison.AnnularEvolution.Pullback.ParameterFirstJet /-! Actual time velocities and spatial first jets for a smooth motion with differentiable parameters. Source: MT Lemma 19.15, pp. 447-449; finite-conormal-variation derivation. -/ noncomputable section set_option autoImplicit false set_option warningAsError true set_option backward.isDefEq.respectTransparency false open Set Filter Bundle open scoped Manifold ContDiff Topology namespace PoincareMT variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] {n : β„•} {M : Type*} [TopologicalSpace M] [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓑 n) ∞ M] /-- The genuine time velocity of a smooth motion is a smooth tangent-bundle map on its open parameter domain. Source: Morgan--Tian (2007), Lemma 19.15 and Corollary 19.16, pp. 447-449; project derivation `proof-work/tasks/M64/reports/2026-09-27-annulus-energy-and-finite-variation-derivation.md`. -/ theorem m64ParameterMotion_timeVelocity_contMDiffAt {Phi : ℝ Γ— E β†’ M} {O : Set (ℝ Γ— E)} (hO : IsOpen O) (hPhi : ContMDiffOn π“˜(ℝ, ℝ Γ— E) (𝓑 n) ∞ Phi O) {q : ℝ Γ— E} (hq : q ∈ O) : ContMDiffAt π“˜(ℝ, ℝ Γ— E) ((𝓑 n).prod (𝓑 n)) ∞ (fun w : ℝ Γ— E => (⟨Phi w, curveVelocity (fun s => Phi (s, w.2)) w.1⟩ : TangentBundle (𝓑 n) M)) q := by have hqreg := hPhi.contMDiffAt (hO.mem_nhds hq) have hvec : ContMDiffAt π“˜(ℝ, ℝ Γ— E) ((π“˜(ℝ, ℝ Γ— E)).prod π“˜(ℝ, ℝ Γ— E)) ∞ (fun w : ℝ Γ— E => (⟨w, (1, 0)⟩ : TangentBundle π“˜(ℝ, ℝ Γ— E) (ℝ Γ— E))) q := by rw [contMDiffAt_totalSpace] exact ⟨contMDiffAt_id, by simpa using contMDiffAt_const (c := ((1 : ℝ), (0 : E)))⟩ have hpush := (hqreg.mfderiv_const (m := ∞) (by simp)).clm_apply_of_inCoordinates hvec hqreg apply hpush.congr_of_eventuallyEq filter_upwards [hO.mem_nhds hq] with w hw have hline := hasFDerivAt_prodMk_left (π•œ := ℝ) w.1 w.2 have hchain := mfderiv_comp_apply w.1 ((hPhi.contMDiffAt (hO.mem_nhds hw)).mdifferentiableAt (by simp)) hline.differentiableAt.mdifferentiableAt (1 : ℝ) rw [mfderiv_eq_fderiv, hline.fderiv] at hchain exact congrArg (fun v : TangentSpace (𝓑 n) (Phi w) => (⟨Phi w, v⟩ : TangentBundle (𝓑 n) M)) hchain omit [IsManifold (𝓑 n) ∞ M] in /-- The actual spatial velocity of a motion uses only the value and first derivative of its parameter curve. Source: Morgan--Tian (2007), Lemma 19.15 and Corollary 19.16, pp. 447-449; project derivation `proof-work/tasks/M64/reports/2026-09-27-annulus-energy-and-finite-variation-derivation.md`. -/ theorem m64ParameterMotion_spatial_velocity {Phi : ℝ Γ— E β†’ M} {h : ℝ β†’ E} {t x : ℝ} (hPhi : MDifferentiableAt π“˜(ℝ, ℝ Γ— E) (𝓑 n) Phi (t, h x)) (hh : DifferentiableAt ℝ h x) : curveVelocity (n := n) (fun y => Phi (t, h y)) x = mfderiv π“˜(ℝ, ℝ Γ— E) (𝓑 n) Phi (t, h x) (0, deriv h x) := by have harg := (hasDerivAt_const x t).prodMk hh.hasDerivAt have hd : mfderiv π“˜(ℝ, ℝ) π“˜(ℝ, ℝ Γ— E) (fun y => (t, h y)) x 1 = (0, deriv h x) := by rw [mfderiv_eq_fderiv, harg.hasFDerivAt.fderiv] exact ContinuousLinearMap.toSpanSingleton_apply_one ℝ _ have hc := mfderiv_comp_apply x hPhi harg.differentiableAt.mdifferentiableAt (1 : ℝ) rw [hd] at hc exact hc end PoincareMT