import NavierStokes.WithinPathFamily import NavierStokes.JointODE /-! # Joint ODE jets on closed parameter and pulse domains -/ noncomputable section namespace NavierStokes.WithinJointODE open Set Filter Function open scoped Topology ContDiff universe u variable {P E : Type u} [NormedAddCommGroup P] [NormedSpace ℝ P] [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] variable {a b : ℝ} theorem contDiffOn_odeFamily (hab : a ≤ b) {U : Set P} {V : Set ℝ} (hU : Convex ℝ U) (hu : UniqueDiffOn ℝ U) (hv : UniqueDiffOn ℝ V) (hI : Icc a b ⊆ V) (A : P × ℝ → E →L[ℝ] E) (x₀ : P → E) (f : P × ℝ → E) (hA : ContDiffOn ℝ ∞ A (U ×ˢ V)) (hx₀ : ContDiffOn ℝ ∞ x₀ U) (hf : ContDiffOn ℝ ∞ f (U ×ˢ V)) : ContDiffOn ℝ ∞ (SmoothPathFamily.odeFamily hab A x₀ f) U := ParametricODE.contDiffOn_solution_family hab _ _ _ (WithinPathFamily.contDiffOn_pathFamily U V hU hu hv hI A hA) hx₀ (WithinPathFamily.contDiffOn_pathFamily U V hU hu hv hI f hf) /-- Endpoint rescaling preserves within regularity in slow parameters and gives joint regularity at every current pulse time. Only the original data are supplied, including at the slow boundary. -/ theorem contDiffOn_reparamSolution {U : Set P} (hU : Convex ℝ U) (hu : UniqueDiffOn ℝ U) (A : P × ℝ → E →L[ℝ] E) (x₀ : P → E) (f : P × ℝ → E) (hA : ContDiffOn ℝ ∞ A (U ×ˢ univ)) (hx₀ : ContDiffOn ℝ ∞ x₀ U) (hf : ContDiffOn ℝ ∞ f (U ×ˢ univ)) : ContDiffOn ℝ ∞ (JointODE.reparamSolution a A x₀ f) (U ×ˢ univ) := by have hmap : MapsTo (JointODE.timeMap (P := P) a) ((U ×ˢ (univ : Set ℝ)) ×ˢ (univ : Set ℝ)) (U ×ˢ univ) := fun _ hz => ⟨hz.1.1, mem_univ _⟩ have hx : ContDiffOn ℝ ∞ (fun q : P × ℝ => x₀ q.1) (U ×ˢ univ) := hx₀.comp contDiffOn_fst (fun _ hz => hz.1) have hpath := contDiffOn_odeFamily (a := 0) (b := 1) zero_le_one (hU.prod convex_univ) (hu.prod uniqueDiffOn_univ) uniqueDiffOn_univ (subset_univ _) (JointODE.rescale a A) (fun q : P × ℝ => x₀ q.1) (JointODE.rescale a f) (JointODE.rescale_contDiffOn A hA hmap) hx (JointODE.rescale_contDiffOn f hf hmap) exact (ContinuousLinearMap.contDiff (𝕜 := ℝ) (n := ∞) (ContinuousMap.evalCLM ℝ (⟨1, zero_le_one, le_rfl⟩ : Icc (0 : ℝ) 1))).comp_contDiffOn hpath end NavierStokes.WithinJointODE namespace NavierStokes.WithinJetClosure open Set Filter open scoped Topology ContDiff variable {P E : Type*} [NormedAddCommGroup P] [NormedSpace ℝ P] [NormedAddCommGroup E] [NormedSpace ℝ E] end NavierStokes.WithinJetClosure