import Mathlib.Geometry.Manifold.ContMDiffMFDeriv import Mathlib.Geometry.Manifold.Instances.Real /-! # Smooth velocity lifts of curves -/ set_option autoImplicit false set_option backward.isDefEq.respectTransparency false open Set Bundle open scoped Manifold ContDiff universe u namespace Poincare.Manifold variable {n : β„•} {M : Type u} [TopologicalSpace M] [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓑 n) ∞ M] /-- The velocity of a smooth curve on an open domain is a smooth tangent-bundle lift. -/ theorem contMDiffOn_velocity_lift {Ξ³ : ℝ β†’ M} {I : Set ℝ} (hI : IsOpen I) (hΞ³ : ContMDiffOn π“˜(ℝ, ℝ) (𝓑 n) ∞ Ξ³ I) : ContMDiffOn π“˜(ℝ, ℝ) ((𝓑 n).prod (𝓑 n)) ∞ (fun u => (⟨γ u, mfderiv π“˜(ℝ, ℝ) (𝓑 n) Ξ³ u (1 : ℝ)⟩ : TotalSpace (EuclideanSpace ℝ (Fin n)) (TangentSpace (𝓑 n)))) I := by have hunit : ContMDiff π“˜(ℝ, ℝ) (π“˜(ℝ, ℝ).prod π“˜(ℝ, ℝ)) ∞ (fun u : ℝ => (⟨u, (1 : ℝ)⟩ : TangentBundle π“˜(ℝ, ℝ) ℝ)) := by intro u apply contMDiffAt_totalSpace.mpr refine ⟨contMDiffAt_id, ?_⟩ simpa only [trivializationAt_model_space_apply] using (contMDiffAt_const (I := π“˜(ℝ, ℝ)) (I' := π“˜(ℝ, ℝ)) (n := ∞) (x := u) (c := (1 : ℝ))) have h := (hΞ³.contMDiffOn_tangentMapWithin (m := ∞) (by simp) hI.uniqueMDiffOn).comp hunit.contMDiffOn (fun u hu => hu) apply h.congr intro u hu simp only [Function.comp_def, tangentMapWithin] rw [mfderivWithin_of_mem_nhds (hI.mem_nhds hu)] end Poincare.Manifold