import Euler.SmoothTimeField import Euler.SmoothPathTimeJets import Euler.BoundedPathFamily import Euler.SmoothFlowTimeGevrey import Euler.SmoothFlowJoint /-! The actual flow displacement and material velocity, with every spatial jet in the uniform continuous-time bounded-field space. -/ /-! ## From `Euler/SmoothTimeFieldFromPaths.lean` The text of `Euler/SmoothTimeFieldFromPaths.lean`, folded into this file, which was its only importer. -/ section /-! Constructing literal bounded smooth coefficient paths from an actual smooth path family and uniform bounds on its differentiated evolution. -/ noncomputable section open scoped ContDiff BoundedContinuousFunction namespace SmoothTimeField open Set EulerSmoothPathTimeJets EulerBoundedPathFamily EulerVolterraConvolution variable {E V : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] [FiniteDimensional ℝ E] [NormedAddCommGroup V] [NormedSpace ℝ V] [FiniteDimensional ℝ V] (T : ℝ) (hT : 0 ≤ T) (f q : E → C(Icc (0 : ℝ) T,V)) (hf : ContDiff ℝ ∞ f) (hq : ContDiff ℝ ∞ q) (hd : ∀ x (t : Icc (0 : ℝ) T), HasDerivWithinAt (extendPath T hT (f x)) (q x t) (Icc (0 : ℝ) T) t) (C D : ℕ → ℝ) (hC : ∀ n t x, ‖iteratedFDeriv ℝ n (fun y => f y t) x‖ ≤ C n) (hD : ∀ n t x, ‖iteratedFDeriv ℝ n (fun y => q y t) x‖ ≤ D n) private local instance (n : ℕ) : NormedAddCommGroup (E [×n]→L[ℝ] V) := inferInstance private local instance (n : ℕ) : NormedSpace ℝ (E [×n]→L[ℝ] V) := inferInstance private local instance (n : ℕ) : NormedAddCommGroup (E →ᵇ (E [×n]→L[ℝ] V)) := inferInstance private local instance (n : ℕ) : NormedSpace ℝ (E →ᵇ (E [×n]→L[ℝ] V)) := inferInstance omit [FiniteDimensional ℝ E] [FiniteDimensional ℝ V] in include hC in private theorem value_bound (t : Icc (0 : ℝ) T) (x : E) : ‖f x t‖ ≤ C 0 := by simpa only [norm_iteratedFDeriv_zero] using hC 0 t x omit [FiniteDimensional ℝ E] [FiniteDimensional ℝ V] in include hT hD in private theorem derivativeBound_nonneg (n : ℕ) : 0 ≤ D n := (norm_nonneg _).trans (hD n ⟨0,le_rfl,hT⟩ 0) def ofPathFamily : SmoothTimeField (Icc (0 : ℝ) T) E V where field := boundedPath T hT f q hf.continuous (C 0) (D 0) (value_bound T f C hC) (derivativeBound_nonneg T hT q D hD 0) (value_bound T q D hD) hd smooth t := by change ContDiff ℝ ∞ (fun x => f x t) exact (ContinuousMap.evalCLM ℝ t).contDiff.comp hf jet n := boundedPath T hT (jetFamily T f n) (jetFamily T q n) (jetFamily_contDiff T f hf n).continuous (C n) (D n) (fun t x => by rw [jetFamily_apply T f hf]; exact hC n t x) (derivativeBound_nonneg T hT q D hD n) (fun t x => by rw [jetFamily_apply T q hq]; exact hD n t x) (jetFamily_hasDerivWithinAt T hT f q hf hq hd n) jet_eq n t x := jetFamily_apply T f hf n x t @[simp] theorem ofPathFamily_apply (t : Icc (0 : ℝ) T) (x : E) : (ofPathFamily T hT f q hf hq hd C D hC hD).field t x = f x t := rfl @[simp] theorem ofPathFamily_jet_apply (n : ℕ) (t : Icc (0 : ℝ) T) (x : E) : (ofPathFamily T hT f q hf hq hd C D hC hD).jet n t x = iteratedFDeriv ℝ n (fun y => f y t) x := jetFamily_apply T f hf n x t end SmoothTimeField end end noncomputable section open scoped ContDiff BoundedContinuousFunction namespace EulerSmoothBanachFlow open Set EulerVolterraConvolution EulerContinuousTimeIntegral EulerSmoothFlowGevrey variable {E : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] [FiniteDimensional ℝ E] (T : ℝ) (hT : 0 ≤ T) (A : SmoothTimeField (Icc (0 : ℝ) T) E E) (B R : ℝ) private local instance (n : ℕ) : NormedAddCommGroup (E [×n]→L[ℝ] E) := inferInstance private local instance (n : ℕ) : NormedSpace ℝ (E [×n]→L[ℝ] E) := inferInstance private local instance (n : ℕ) : NormedAddCommGroup (E →ᵇ (E [×n]→L[ℝ] E)) := inferInstance private local instance (n : ℕ) : NormedSpace ℝ (E →ᵇ (E [×n]→L[ℝ] E)) := inferInstance variable (hB : 0 ≤ B) (hR : 0 < R) (hsmall : B*R*T ≤ 1/8) (hb : ∀ n, ‖A.jet n‖ ≤ B*R^n*(n.factorial : ℝ)^2) theorem displacementFamily_time_derivative (x : E) (t : Icc (0 : ℝ) T) : HasDerivWithinAt (extendPath T hT (displacementFamily T hT A x)) (velocityFamily T hT A x t) (Icc (0 : ℝ) T) t := by rw [displacementFamily_integral] exact integral_hasDerivWithinAt T hT _ t include hB hR hsmall hb in theorem displacementFamily_jet_bound (n : ℕ) (t : Icc (0 : ℝ) T) (x : E) : ‖iteratedFDeriv ℝ n (fun y => displacementFamily T hT A y t) x‖ ≤ B*T*(4*R)^n*(n.factorial : ℝ)^2 := by have he : (fun y => displacementFamily T hT A y t) = displacement T hT A t := by funext y simp only [displacement, extendPath, projIcc_of_mem hT t.property] rw [he] apply (displacement_bound T hT A B R hB hR hsmall hb n t t.property x).trans exact mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_left t.property.2 hB) (pow_nonneg (by positivity) n)) (sq_nonneg _) include hB hR hsmall hb in theorem velocityFamily_jet_bound (n : ℕ) (t : Icc (0 : ℝ) T) (x : E) : ‖iteratedFDeriv ℝ n (fun y => velocityFamily T hT A y t) x‖ ≤ B*(flowRadius B R T R)^n*(n.factorial : ℝ)^2 := materialVelocity_bound T hT A B R hB hR hsmall hb n t x def displacementCoefficient : SmoothTimeField (Icc (0 : ℝ) T) E E := SmoothTimeField.ofPathFamily T hT (displacementFamily T hT A) (velocityFamily T hT A) (displacementFamily_contDiff T hT A) (velocityFamily_contDiff T hT A) (displacementFamily_time_derivative T hT A) (fun n => B*T*(4*R)^n*(n.factorial : ℝ)^2) (fun n => B*(flowRadius B R T R)^n*(n.factorial : ℝ)^2) (displacementFamily_jet_bound T hT A B R hB hR hsmall hb) (velocityFamily_jet_bound T hT A B R hB hR hsmall hb) @[simp] theorem displacementCoefficient_apply (t : Icc (0 : ℝ) T) (x : E) : (displacementCoefficient T hT A B R hB hR hsmall hb).field t x = (flowData T hT A).forward t x-x := rfl variable (A₁ : SmoothTimeField (Icc (0 : ℝ) T) E E) (htime : SmoothTimeField.TimeDerivative T hT A A₁) (B₁ R₁ : ℝ) (hB₁ : 0 ≤ B₁) (hR₁ : 0 ≤ R₁) (hb₁ : ∀ n, ‖A₁.jet n‖ ≤ B₁*R₁^n*(n.factorial : ℝ)^2) include hB hR hsmall hb hB₁ hR₁ hb₁ in theorem accelerationFamily_jet_bound (n : ℕ) (t : Icc (0 : ℝ) T) (x : E) : ‖iteratedFDeriv ℝ n (fun y => accelerationFamily T hT A A₁ y t) x‖ ≤ (B₁+3*B^2*R)*(flowRadius B R T (4*R+R₁))^n*(n.factorial : ℝ)^2 := by have he : (fun y => accelerationFamily T hT A A₁ y t) = materialAcceleration T hT A A₁ t := funext (fun y => accelerationFamily_apply T hT A A₁ y t) rw [he] exact materialAcceleration_bound T hT A A₁ B R B₁ R₁ hB hR hB₁ hR₁ hsmall hb hb₁ n t x def velocityCoefficient : SmoothTimeField (Icc (0 : ℝ) T) E E := SmoothTimeField.ofPathFamily T hT (velocityFamily T hT A) (accelerationFamily T hT A A₁) (velocityFamily_contDiff T hT A) (accelerationFamily_contDiff T hT A A₁) (velocityFamily_time_derivative T hT A A₁ htime) (fun n => B*(flowRadius B R T R)^n*(n.factorial : ℝ)^2) (fun n => (B₁+3*B^2*R)*(flowRadius B R T (4*R+R₁))^n*(n.factorial : ℝ)^2) (velocityFamily_jet_bound T hT A B R hB hR hsmall hb) (accelerationFamily_jet_bound T hT A B R hB hR hsmall hb A₁ B₁ R₁ hB₁ hR₁ hb₁) @[simp] theorem velocityCoefficient_apply (t : Icc (0 : ℝ) T) (x : E) : (velocityCoefficient T hT A B R hB hR hsmall hb A₁ htime B₁ R₁ hB₁ hR₁ hb₁).field t x = A.field t ((flowData T hT A).forward t x) := rfl end EulerSmoothBanachFlow