import Euler.SmoothFlowJets import Euler.GevreyFlowFinite import Euler.GevreyComposition import Euler.GevreyFixedShift /-! Polynomial-radius bounds for the velocity and material acceleration of the constructed flow. The second expression is literally `(A₁ + D A · A) ∘ Φ`; identifying A₁ as the time derivative is a separate qualitative chain rule, not an assumption about its size. -/ /-! ## From `Euler/SmoothFlowGevrey.lean` The text of `Euler/SmoothFlowGevrey.lean`, folded into this file, which was its only importer. -/ section /-! Source-scale Gevrey bounds for the actual globally constructed Picard flow. Only bounds on the given velocity jets and the small product BRT are hypotheses; smoothness and all time-jet identities of the flow come from its construction. -/ noncomputable section open Set MeasureTheory open scoped ContDiff BoundedContinuousFunction Interval namespace EulerSmoothFlowGevrey open EulerSmoothBanachFlow EulerGevreyFlowFinite EulerGevreyGeneratingDerivatives EulerVolterraConvolution variable {E : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] [FiniteDimensional ℝ E] (T : ℝ) (hT : 0 ≤ T) (A : SmoothTimeField (Icc (0 : ℝ) T) E E) 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 def velocityExtension (t : ℝ) (x : E) : E := A.field (projIcc 0 T hT t) x omit [FiniteDimensional ℝ E] in @[simp] theorem velocityExtension_apply (t : Icc (0 : ℝ) T) (x : E) : velocityExtension T hT A t x = A.field t x := by simp only [velocityExtension, projIcc_of_mem hT t.property] omit [FiniteDimensional ℝ E] in theorem velocityExtension_contDiff (t : ℝ) : ContDiff ℝ ∞ (velocityExtension T hT A t) := A.smooth _ omit [FiniteDimensional ℝ E] in theorem velocityExtension_jet_bound (B R : ℝ) (hb : ∀ n, ‖A.jet n‖ ≤ B*R^n*(n.factorial : ℝ)^2) (n : ℕ) (t : ℝ) (x : E) : ‖iteratedFDeriv ℝ n (velocityExtension T hT A t) x‖ ≤ B*R^n*(n.factorial : ℝ)^2 := by change ‖iteratedFDeriv ℝ n (A.field (projIcc 0 T hT t) : E → E) x‖ ≤ _ rw [← A.jet_eq] exact ((A.jet n (projIcc 0 T hT t)).norm_coe_le_norm x).trans (((A.jet n).norm_coe_le_norm _).trans (hb n)) theorem composition_jet_hasDerivWithinAt (n : ℕ) (x : E) (t : ℝ) (ht : t ∈ Icc 0 T) : HasDerivWithinAt (fun s => iteratedFDeriv ℝ n (displacement T hT A s) x) (iteratedFDeriv ℝ n (velocityExtension T hT A t ∘ (id+displacement T hT A t)) x) (Icc 0 T) t := by have he : velocityExtension T hT A t ∘ (id+displacement T hT A t) = fun y => A.field ⟨t,ht⟩ (y+displacement T hT A t y) := by funext y exact velocityExtension_apply T hT A ⟨t,ht⟩ _ rw [he] exact displacement_jet_hasDerivWithinAt T hT A n x ⟨t,ht⟩ theorem composition_jet_continuous (n : ℕ) (x : E) : ContinuousOn (fun t => iteratedFDeriv ℝ n (velocityExtension T hT A t ∘ (id+displacement T hT A t)) x) (Icc 0 T) := by rw [continuousOn_iff_continuous_domRestrict] change Continuous (fun t : Icc (0 : ℝ) T => iteratedFDeriv ℝ n (velocityExtension T hT A t ∘ (id+displacement T hT A t)) x) have he : (fun t : Icc (0 : ℝ) T => iteratedFDeriv ℝ n (velocityExtension T hT A t ∘ (id+displacement T hT A t)) x) = fun t : Icc (0 : ℝ) T => iteratedFDeriv ℝ n (fun y => A.field t (y+displacement T hT A t y)) x := by funext t congr 1 funext y exact velocityExtension_apply T hT A t _ rw [he] exact velocity_jet_continuous T hT A n x /-- A finite generating sum for the actual constructed flow, with a cutoff-independent radius and coefficient. -/ theorem constructed_generating_sum_bound (B R : ℝ) (hB : 0 ≤ B) (hR : 0 < R) (hsmall : B*R*T ≤ 1/8) (hb : ∀ n, ‖A.jet n‖ ≤ B*R^n*(n.factorial : ℝ)^2) (N : ℕ) (t : ℝ) (ht : t ∈ Icc 0 T) (x : E) : derivativeSum (displacement T hT A t) N ((4*R)⁻¹) x ≤ B*t := by apply flow_generating_sum_bound_of_jet_derivative (displacement T hT A) (velocityExtension T hT A) N T B R hT hB hR hsmall (fun s _ => (displacement_contDiff T hT A s).of_le (by simp)) (fun s _ => (velocityExtension_contDiff T hT A s).of_le (by simp)) (displacement_zero T hT A) _ _ _ t ht x · exact fun s _ y n _ => velocityExtension_jet_bound T hT A B R hb n s y · exact fun n _ s hs y => composition_jet_hasDerivWithinAt T hT A n y s hs · exact fun n _ y => composition_jet_continuous T hT A n y theorem displacement_positive_bound (B R : ℝ) (hB : 0 ≤ B) (hR : 0 < R) (hsmall : B*R*T ≤ 1/8) (hb : ∀ n, ‖A.jet n‖ ≤ B*R^n*(n.factorial : ℝ)^2) (n : ℕ) (hn : 0 < n) (t : ℝ) (ht : t ∈ Icc 0 T) (x : E) : ‖iteratedFDeriv ℝ n (displacement T hT A t) x‖ ≤ B*t*(4*R)^n*(n.factorial : ℝ)^2 := by exact derivative_bound_of_generating_sum (displacement T hT A t) n n R (B*t) x hR (Finset.mem_Icc.mpr ⟨hn,le_rfl⟩) (constructed_generating_sum_bound T hT A B R hB hR hsmall hb n t ht x) /-- Order zero uses direct integration of the actual velocity. -/ theorem displacement_zero_bound (B R : ℝ) (hb : ∀ n, ‖A.jet n‖ ≤ B*R^n*(n.factorial : ℝ)^2) (t : ℝ) (ht : t ∈ Icc 0 T) (x : E) : ‖iteratedFDeriv ℝ 0 (displacement T hT A t) x‖ ≤ B*t := by let v := fun s => velocityExtension T hT A s ∘ (id+displacement T hT A s) have he := jet_integral_of_hasDerivWithinAt (displacement T hT A) v 0 T (displacement_zero T hT A) (fun s hs y => composition_jet_hasDerivWithinAt T hT A 0 y s hs) (composition_jet_continuous T hT A 0) t ht x rw [he] apply (intervalIntegral.norm_integral_le_integral_norm ht.1).trans have hc := ((composition_jet_continuous T hT A 0 x).mono (Icc_subset_Icc_right ht.2)).norm have hi := intervalIntegral.integral_mono_on (μ := volume) ht.1 (hc.intervalIntegrable_of_Icc ht.1) intervalIntegrable_const (g := fun _ : ℝ => B) (fun s _ => by change ‖iteratedFDeriv ℝ 0 (v s) x‖ ≤ B rw [norm_iteratedFDeriv_zero] change ‖velocityExtension T hT A s (x+displacement T hT A s x)‖ ≤ B have hz := velocityExtension_jet_bound T hT A B R hb 0 s (x+displacement T hT A s x) simpa only [norm_iteratedFDeriv_zero, pow_zero, Nat.factorial_zero, Nat.cast_one, one_pow, mul_one] using hz) simpa only [intervalIntegral.integral_const, sub_zero, smul_eq_mul, mul_comm] using hi /-- Source-only all-order spatial estimate for the actual Picard flow displacement. It includes order zero and is linear in B*t. -/ theorem displacement_bound (B R : ℝ) (hB : 0 ≤ B) (hR : 0 < R) (hsmall : B*R*T ≤ 1/8) (hb : ∀ n, ‖A.jet n‖ ≤ B*R^n*(n.factorial : ℝ)^2) (n : ℕ) (t : ℝ) (ht : t ∈ Icc 0 T) (x : E) : ‖iteratedFDeriv ℝ n (displacement T hT A t) x‖ ≤ B*t*(4*R)^n*(n.factorial : ℝ)^2 := by by_cases hn : n = 0 · subst n simpa only [pow_zero, Nat.factorial_zero, Nat.cast_one, one_pow, mul_one] using displacement_zero_bound T hT A B R hb t ht x · exact displacement_positive_bound T hT A B R hB hR hsmall hb n (Nat.pos_of_ne_zero hn) t ht x end EulerSmoothFlowGevrey end end noncomputable section open Set open scoped ContDiff BoundedContinuousFunction namespace EulerSmoothFlowGevrey open EulerSmoothBanachFlow EulerGevreyGeneratingDerivatives EulerGevreyComposition EulerGevrey EulerOperatorGevreyCalculus variable {E : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] [FiniteDimensional ℝ E] (T : ℝ) (hT : 0 ≤ T) (A : SmoothTimeField (Icc (0 : ℝ) T) E E) 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 def flowRadius (B R T S : ℝ) : ℝ := (4*R+1)*((1+B*T)*S+2) omit [FiniteDimensional ℝ E] in theorem field_jet_bound (B R : ℝ) (hb : ∀ n, ‖A.jet n‖ ≤ B*R^n*(n.factorial : ℝ)^2) (n : ℕ) (t : Icc (0 : ℝ) T) (x : E) : ‖iteratedFDeriv ℝ n (A.field t : E → E) x‖ ≤ B*R^n*(n.factorial : ℝ)^2 := by rw [← A.jet_eq] exact ((A.jet n t).norm_coe_le_norm x).trans (((A.jet n).norm_coe_le_norm t).trans (hb n)) theorem forward_positive_bound (B R : ℝ) (hB : 0 ≤ B) (hR : 0 < R) (hsmall : B*R*T ≤ 1/8) (hb : ∀ n, ‖A.jet n‖ ≤ B*R^n*(n.factorial : ℝ)^2) (n : ℕ) (hn : 0 < n) (t : Icc (0 : ℝ) T) (x : E) : ‖iteratedFDeriv ℝ n (fun y => (flowData T hT A).forward t y) x‖ ≤ (1+B*T)*(4*R+1)^n*(n.factorial : ℝ)^2 := by have he : (fun y => (flowData T hT A).forward t y) = id+displacement T hT A t := by funext y change (flowData T hT A).forward t y = y+displacement T hT A t y rw [displacement_eq] abel rw [he, iteratedFDeriv_add_apply contDiffAt_id ((displacement_contDiff T hT A t).contDiffAt.of_le (by simp))] have hi : ‖iteratedFDeriv ℝ n (id : E → E) x‖ ≤ 1 := by have h := norm_iteratedFDeriv_id_le n hn x split_ifs at h <;> linarith let W := (4*R+1)^n*(n.factorial : ℝ)^2 have hfact : (1 : ℝ) ≤ n.factorial := by exact_mod_cast Nat.succ_le_of_lt (Nat.factorial_pos n) have hW : 1 ≤ W := by have hp : (1 : ℝ) ≤ (4*R+1)^n := one_le_pow₀ (by linarith) have hf : (1 : ℝ) ≤ (n.factorial : ℝ)^2 := by nlinarith calc (1 : ℝ) = 1*1 := by ring _ ≤ W := mul_le_mul hp hf (by norm_num) (by positivity) have hdisp : ‖iteratedFDeriv ℝ n (displacement T hT A t) x‖ ≤ B*T*W := by have htB : B*(t : ℝ) ≤ B*T := mul_le_mul_of_nonneg_left t.property.2 hB have hp : (4*R)^n ≤ (4*R+1)^n := pow_le_pow_left₀ (by positivity) (by linarith) n have hm := mul_le_mul htB hp (pow_nonneg (show 0 ≤ 4*R by positivity) n) (mul_nonneg hB hT) have hs := mul_le_mul_of_nonneg_right hm (sq_nonneg (n.factorial : ℝ)) exact (displacement_positive_bound T hT A B R hB hR hsmall hb n hn t t.property x).trans (hs.trans_eq (by dsimp [W]; ring)) calc _ ≤ ‖iteratedFDeriv ℝ n (id : E → E) x‖+ ‖iteratedFDeriv ℝ n (displacement T hT A t) x‖ := norm_add_le _ _ _ ≤ 1+B*T*W := add_le_add hi hdisp _ ≤ W+B*T*W := add_le_add hW le_rfl _ = _ := by dsimp [W]; ring def materialVelocity (t : Icc (0 : ℝ) T) (x : E) : E := A.field t ((flowData T hT A).forward t x) theorem materialVelocity_bound (B R : ℝ) (hB : 0 ≤ B) (hR : 0 < R) (hsmall : B*R*T ≤ 1/8) (hb : ∀ n, ‖A.jet n‖ ≤ B*R^n*(n.factorial : ℝ)^2) (n : ℕ) (t : Icc (0 : ℝ) T) (x : E) : ‖iteratedFDeriv ℝ n (materialVelocity T hT A t) x‖ ≤ B*(flowRadius B R T R)^n*(n.factorial : ℝ)^2 := by apply norm_iteratedFDeriv_comp_gevrey (fun y => (flowData T hT A).forward t y) (A.field t : E → E) (forward_contDiff T hT A t) (A.smooth t) B (1+B*T) (4*R+1) R hB (by positivity) (by positivity) hR.le · intro j y exact field_jet_bound T A B R hb j t y · intro j hj y exact forward_positive_bound T hT A B R hB hR hsmall hb j hj t y def accelerationField (A₁ : SmoothTimeField (Icc (0 : ℝ) T) E E) (t : Icc (0 : ℝ) T) (x : E) : E := A₁.field t x + fderiv ℝ (A.field t : E → E) x (A.field t x) omit [FiniteDimensional ℝ E] in theorem accelerationField_contDiff (A₁ : SmoothTimeField (Icc (0 : ℝ) T) E E) (t : Icc (0 : ℝ) T) : ContDiff ℝ ∞ (accelerationField T A A₁ t) := (A₁.smooth t).add (((A.smooth t).fderiv_right (m := ∞) (by simp)).clm_apply (A.smooth t)) omit [FiniteDimensional ℝ E] in theorem accelerationField_bound (A₁ : SmoothTimeField (Icc (0 : ℝ) T) E E) (B R B₁ R₁ : ℝ) (hB : 0 ≤ B) (hR : 0 < R) (hB₁ : 0 ≤ B₁) (hR₁ : 0 ≤ R₁) (hb : ∀ n, ‖A.jet n‖ ≤ B*R^n*(n.factorial : ℝ)^2) (hb₁ : ∀ n, ‖A₁.jet n‖ ≤ B₁*R₁^n*(n.factorial : ℝ)^2) (n : ℕ) (t : Icc (0 : ℝ) T) (x : E) : ‖iteratedFDeriv ℝ n (accelerationField T A A₁ t) x‖ ≤ (B₁+3*B^2*R)*majorant (4*R+R₁) 0 n := by have hS : 0 ≤ 4*R+R₁ := by positivity have hA (j : ℕ) (y : E) : ‖iteratedFDeriv ℝ j (A.field t : E → E) y‖ ≤ B*majorant (4*R+R₁) 0 j := by have hh := field_jet_bound T A B R hb j t y apply hh.trans rw [mul_assoc] exact mul_le_mul_of_nonneg_left (majorant_radius_mono R (4*R+R₁) hR.le (by linarith) 0 j) hB have hA₁ (j : ℕ) (y : E) : ‖iteratedFDeriv ℝ j (A₁.field t : E → E) y‖ ≤ B₁*majorant (4*R+R₁) 0 j := by have hh := field_jet_bound T A₁ B₁ R₁ hb₁ j t y apply hh.trans rw [mul_assoc] exact mul_le_mul_of_nonneg_left (majorant_radius_mono R₁ (4*R+R₁) hR₁ (by linarith) 0 j) hB₁ have hDA (j : ℕ) (y : E) : ‖iteratedFDeriv ℝ j (fderiv ℝ (A.field t : E → E)) y‖ ≤ (B*R)*majorant (4*R+R₁) 0 j := by rw [norm_iteratedFDeriv_fderiv] have hh := field_jet_bound T A B R hb (j+1) t y calc _ ≤ B*majorant R 1 j := by simpa only [majorant, mul_assoc] using hh _ ≤ B*(R*majorant (4*R) 0 j) := mul_le_mul_of_nonneg_left (majorant_one_le_radius_four R hR.le j) hB _ ≤ (B*R)*majorant (4*R+R₁) 0 j := by rw [← mul_assoc] exact mul_le_mul_of_nonneg_left (majorant_radius_mono (4*R) (4*R+R₁) (by positivity) (by linarith) 0 j) (mul_nonneg hB hR.le) have hprod := clm_apply_bound (fderiv ℝ (A.field t : E → E)) (A.field t) ((A.smooth t).fderiv_right (m := ∞) (by simp)) (A.smooth t) (4*R+R₁) (B*R) B hS (mul_nonneg hB hR.le) hB 0 0 hDA hA have he := add_bound (A₁.field t : E → E) (fun y => fderiv ℝ (A.field t : E → E) y (A.field t y)) (A₁.smooth t) (((A.smooth t).fderiv_right (m := ∞) (by simp)).clm_apply (A.smooth t)) (4*R+R₁) B₁ (3*(B*R)*B) 0 hA₁ hprod n x have hconst : B₁+3*(B*R)*B = B₁+3*B^2*R := by ring change ‖iteratedFDeriv ℝ n (fun y => A₁.field t y+ fderiv ℝ (A.field t : E → E) y (A.field t y)) x‖ ≤ _ simpa only [hconst] using he def materialAcceleration (A₁ : SmoothTimeField (Icc (0 : ℝ) T) E E) (t : Icc (0 : ℝ) T) (x : E) : E := accelerationField T A A₁ t ((flowData T hT A).forward t x) theorem materialAcceleration_bound (A₁ : SmoothTimeField (Icc (0 : ℝ) T) E E) (B R B₁ R₁ : ℝ) (hB : 0 ≤ B) (hR : 0 < R) (hB₁ : 0 ≤ B₁) (hR₁ : 0 ≤ R₁) (hsmall : B*R*T ≤ 1/8) (hb : ∀ n, ‖A.jet n‖ ≤ B*R^n*(n.factorial : ℝ)^2) (hb₁ : ∀ n, ‖A₁.jet n‖ ≤ B₁*R₁^n*(n.factorial : ℝ)^2) (n : ℕ) (t : Icc (0 : ℝ) T) (x : E) : ‖iteratedFDeriv ℝ n (materialAcceleration T hT A A₁ t) x‖ ≤ (B₁+3*B^2*R)*(flowRadius B R T (4*R+R₁))^n*(n.factorial : ℝ)^2 := by apply norm_iteratedFDeriv_comp_gevrey (fun y => (flowData T hT A).forward t y) (accelerationField T A A₁ t) (forward_contDiff T hT A t) (accelerationField_contDiff T A A₁ t) (B₁+3*B^2*R) (1+B*T) (4*R+1) (4*R+R₁) (by positivity) (by positivity) (by positivity) (by positivity) · intro j y simpa only [majorant, Nat.add_zero, mul_assoc] using accelerationField_bound T A A₁ B R B₁ R₁ hB hR hB₁ hR₁ hb hb₁ j t y · intro j hj y exact forward_positive_bound T hT A B R hB hR hsmall hb j hj t y end EulerSmoothFlowGevrey