import Euler.PacketFiniteProfileFields import Euler.PacketFiniteAssemblyBounds import Euler.PacketTailBase /-! Low packet grades retain fixed polynomial costs; higher grades use one common tail base. -/ /-! ## From `Euler/PacketFiniteProfileBounds.lean` The text of `Euler/PacketFiniteProfileBounds.lean`, folded into this file, which was its only importer. -/ section /-! The finite approximate velocity and its genuine time derivative share the profile bounds. -/ noncomputable section namespace EulerPacketCylinderField open Set EulerSmoothLimit EulerPacketProfileRecursion EulerPacketTimeProfile EulerPacketShiftArithmetic theorem rawTimeDerivative_zero (T : ℝ) : rawTimeDerivative T 0=0 := by funext z simp [rawTimeDerivative] namespace ProfileRegularity variable {P T : ℝ} [Fact (0 < P)] {N : ℕ} {a : ℕ → Profile} {support : Set Space} (hT : 0 < T) (G : ∀ i, i ≤ N → ProfileRegularity P T hT.le support (a i)) {S : Scales (Icc (0 : ℝ) T)} {R : ℝ} (hG : ∀ i (hi : i ≤ N), 1 ≤ i → ProfileBudget (G i hi) S R i) (hR : 1 ≤ R) (ha : a 0=0) include hG hR ha theorem velocityGrade_bound (n : ℕ) : (velocityGradeField hT G n).WordBound 6 R (3*S.H0^(2*n)) (highShift n) := by apply Field.wordBound_assembleFamily N _ _ _ _ R S.H0 hR S.H0_one_le · intro i hi by_cases hi0 : i=0 · subst i have hz : ∀ (t : Icc (0 : ℝ) T) x θ, ((a 0).high+(a 0).mean) (t,(x,θ))=0 := by intro t x θ rw [ha] change (0 : Space)+0=0 exact zero_add 0 exact (Field.wordBound_of_zero ((G 0 hi).high.add (G 0 hi).mean) hz 6 R (highShift 0)).mono_amplitude (zero_le_one.trans hR) (by norm_num) · have h := hG i hi (by omega) have hm := h.mean_unnormalized.mono_shift hR (pow_nonneg S.H0_pos.le _) (show meanShift i ≤ highShift i by unfold meanShift highShift; omega) simpa only [two_mul] using (h.high_unnormalized (by omega)).add hm · intro i hi by_cases hi0 : i=0 · subst i exact (Field.wordBound_of_zero (G 0 hi).corrector (fun _ _ _ => by rw [ha]; rfl) 6 R (highShift 0)).mono_amplitude (zero_le_one.trans hR) (by norm_num) · exact (hG i hi (by omega)).corrector_unnormalized (by omega) theorem velocityGradeDerivative_bound (n : ℕ) : (velocityGradeDerivativeField hT G n).WordBound 6 R (3*S.H0^(2*n)) (highShift n) := by apply Field.wordBound_assembleFamily N _ _ _ _ R S.H0 hR S.H0_one_le · intro i hi by_cases hi0 : i=0 · subst i have hf : (a 0).high+(a 0).mean=0 := by rw [ha] change (0 : VectorField)+0=0 exact zero_add 0 have hz : ∀ (t : Icc (0 : ℝ) T) x θ, rawTimeDerivative T ((a 0).high+(a 0).mean) (t,(x,θ))=0 := by intro t x θ rw [hf,rawTimeDerivative_zero] rfl exact (Field.wordBound_of_zero _ hz 6 R (highShift 0)).mono_amplitude (zero_le_one.trans hR) (by norm_num) · have h := hG i hi (by omega) have hm := h.meanDerivative_unnormalized.mono_shift hR (pow_nonneg S.H0_pos.le _) (show meanShift i ≤ highShift i by unfold meanShift highShift; omega) have hs := (h.highDerivative_unnormalized (by omega)).add hm have hs' : ((G i hi).highDerivative.add (G i hi).meanDerivative).WordBound 6 R (2*S.H0^(2*i)) (highShift i) := by simpa only [two_mul] using hs exact hs'.of_path_eq _ rfl · intro i hi by_cases hi0 : i=0 · subst i have hf : (a 0).corrector=0 := by rw [ha]; rfl have hz : ∀ (t : Icc (0 : ℝ) T) x θ, rawTimeDerivative T (a 0).corrector (t,(x,θ))=0 := by intro t x θ rw [hf,rawTimeDerivative_zero] rfl exact (Field.wordBound_of_zero _ hz 6 R (highShift 0)).mono_amplitude (zero_le_one.trans hR) (by norm_num) · exact ((hG i hi (by omega)).correctorDerivative_unnormalized (by omega)).of_path_eq _ rfl end ProfileRegularity end EulerPacketCylinderField end end noncomputable section namespace EulerPacketCylinderField open EulerPacketProfileRecursion EulerPacketShiftArithmetic EulerPacketCoarseMajorant EulerGevrey def fixedVelocityGradeCost (R H : ℝ) (n : ℕ) : ℝ := (3*H^(2*n))*((4*R)^(highShift n)*((highShift n).factorial : ℝ)^2) theorem fixedVelocityGradeCost_nonneg (R H : ℝ) (hR : 0 ≤ R) (n : ℕ) : 0 ≤ fixedVelocityGradeCost R H n := by unfold fixedVelocityGradeCost rw [pow_mul H 2 n] positivity namespace Field variable {P T : ℝ} [Fact (0 < P)] {raw : VectorField} {G : Field P T raw} {q d n : ℕ} {R A H : ℝ} theorem WordBound.split_fixed_shift (hG : G.WordBound q R A d) (hR : 0 ≤ R) (hA : 0 ≤ A) : G.WordBound q (4*R) (A*((4*R)^d*(d.factorial : ℝ)^2)) 0 := by intro j exact (hG j).trans ((mul_le_mul_of_nonneg_left (majorant_coarse_split R hR d j) hA).trans_eq (by ring)) theorem WordBound.fixed_velocity_grade (hG : G.WordBound q R (3*H^(2*n)) (highShift n)) (hR : 0 ≤ R) (hH : 0 ≤ H) : G.WordBound q (4*R) (fixedVelocityGradeCost R H n) 0 := hG.split_fixed_shift hR (mul_nonneg (by norm_num) (pow_nonneg hH _)) theorem WordBound.coarse_velocity_grade (hG : G.WordBound q R (3*H^(2*n)) (highShift n)) (hR : 1 ≤ R) (hH : 1 ≤ H) (C : ℝ) (hC : 1 ≤ C) (N : ℕ) (hN : 1 ≤ N) (hn : n ≤ 2*N+2) : G.WordBound q (4*R) ((tailBase R H C N)^(n+1)) 0 := by have hC0 : 0 ≤ C := zero_le_one.trans hC have hH0 : 0 ≤ H := zero_le_one.trans hH have hNN : (2 : ℝ) ≤ ((N+2 : ℕ) : ℝ) := by exact_mod_cast (show 2 ≤ N+2 by omega) have hP : (3 : ℝ) ≤ 1+18*((N+2 : ℕ) : ℝ)^2 := by nlinarith have hPC : (3 : ℝ) ≤ (1+18*((N+2 : ℕ) : ℝ)^2)*C := hP.trans (le_mul_of_one_le_right (by positivity) hC) have ha : 3*H^(2*n) ≤ (1+18*((N+2 : ℕ) : ℝ)^2)*C*H^(2*n+2) := by calc _ ≤ 3*H^(2*n+2) := mul_le_mul_of_nonneg_left (pow_le_pow_right₀ hH (by omega)) (by norm_num) _ ≤ _ := mul_le_mul_of_nonneg_right hPC (pow_nonneg hH0 _) have hA : 0 ≤ (1+18*((N+2 : ℕ) : ℝ)^2)*C*H^(2*n+2) := by positivity have h := (hG.mono_amplitude (zero_le_one.trans hR) ha).coarse_grade hR hA N n hN hn (show highShift n ≤ 110*(n+1) by unfold highShift; omega) exact h.mono_amplitude (by linarith) (tailBase_absorption R H C hC0 N n) end Field end EulerPacketCylinderField