import Euler.PacketResidualTailFields import Euler.PacketFiniteVelocityBounds import Euler.PacketCylinderLinearTermBudget import Euler.PacketCylinderConvolution import Euler.PacketCylinderHighPartBounds import Euler.PacketCylinderBoundTransfer import Euler.PacketResidualTailActual import Euler.PacketTailBase import Euler.PacketTailBound import Euler.PacketTailNormalization /-! Actual residual tail estimates after the single final factorial split. -/ /-! ## From `Euler/PacketUnweightedAdvection.lean` The text of `Euler/PacketUnweightedAdvection.lean`, folded into this file, which was its only importer. -/ section /-! The literal advection fields obey the same fixed coefficient costs before the final tail split. -/ noncomputable section namespace EulerPacketCylinderField.CoefficientBudget open Set EulerSmoothLimit EulerPacketPointJets EulerPacketProfileRecursion EulerParameterWordGevrey EulerCylinderScalarPrimitive variable {P T : ℝ} [Fact (0 < P)] {O : Operators} {C : CoefficientData P T O} (BC : CoefficientBudget C) {J K : Domain → VectorJet} (G : SpatialJetField P T J) (H : SpatialJetField P T K) theorem slow_unnormalized_bound {R A B : ℝ} {d e : ℕ} (hG : G.field.WordBound 6 R A d) (hH : H.field.WordBound 6 R B e) (hR : 0 ≤ R) (hA : 0 ≤ A) (hB : 0 ≤ B) (hRc : sobolevCoefficientRadius (Fin 4) BC.Rc ≤ R) : (SpatialJetField.slowAdvection C.inverse G H).WordBound 6 R (BC.slowCost*A*B) (d+e+1) := by have hm := hG.multiply C.inverse BC.Rc BC.amplitude BC.Rc_nonneg BC.amplitude_nonneg hA hRc BC.inverse_bound have ham : 0 ≤ 3*sobolevCoefficientAmplitude (Fin 4) 6 BC.Rc BC.amplitude*A := mul_nonneg BC.multiplierCost_nonneg hA have hs := (hm.spatialTransport hH hR ham hB).of_path_eq (SpatialJetField.slowAdvection C.inverse G H) rfl have he : 9*EulerCylinderPathProduct.productBlockConstant P* (3*sobolevCoefficientAmplitude (Fin 4) 6 BC.Rc BC.amplitude*A)*B = BC.slowCost*A*B := by unfold slowCost multiplierCost ring simpa only [he] using hs theorem fast_unnormalized_bound {R A B : ℝ} {d e : ℕ} (hG : G.field.WordBound 6 R A d) (hH : H.field.WordBound 6 R B e) (hR : 0 ≤ R) (hA : 0 ≤ A) (hB : 0 ≤ B) (hRc : sobolevCoefficientRadius (Fin 4) BC.Rc ≤ R) : (SpatialJetField.fastAdvection C.normal G H).WordBound 6 R (BC.fastCost*A*B) (d+e+1) := by have hm := hG.multiply C.normal.normalMatrix BC.Rc BC.amplitude BC.Rc_nonneg BC.amplitude_nonneg hA hRc (C.normal.normalMatrix_bound BC.Rc BC.amplitude BC.normal_bound) have hd := hH.derivative 0 have ham : 0 ≤ 3*sobolevCoefficientAmplitude (Fin 4) 6 BC.Rc BC.amplitude*A := mul_nonneg BC.multiplierCost_nonneg hA have hs := (hm.scalarProduct hd scalarProject (le_of_eq scalarProject_norm) hR ham hB).of_path_eq (SpatialJetField.fastAdvection C.normal G H) rfl have he : 3*EulerCylinderPathProduct.productBlockConstant P* (3*sobolevCoefficientAmplitude (Fin 4) 6 BC.Rc BC.amplitude*A)*B = BC.fastCost*A*B := by unfold fastCost multiplierCost ring simpa only [he,Nat.add_assoc] using hs end EulerPacketCylinderField.CoefficientBudget end end /-! ## From `Euler/PacketTailProductBounds.lean` The text of `Euler/PacketTailProductBounds.lean`, folded into this file, which was its only importer. -/ section /-! Bounds for the actual advection products in the surviving finite packet tail. -/ noncomputable section namespace EulerPacketCylinderField open Set EulerSmoothLimit EulerPacketPointJets EulerPacketProfileRecursion EulerPacketTimeProfile EulerPacketShiftArithmetic EulerParameterWordGevrey theorem tail_product_amplitude (H c C : ℝ) (hH : 1 ≤ H) (hc : 0 ≤ c) (hcC : c ≤ C) (i j n : ℕ) (hij : i+j ≤ n+1) : c*(3*H^(2*i))*(3*H^(2*j)) ≤ 9*C*H^(2*n+2) := by have hH0 : 0 ≤ H := zero_le_one.trans hH have hC : 0 ≤ C := hc.trans hcC calc _ = 9*c*H^(2*(i+j)) := by rw [Nat.mul_add,pow_add]; ring _ ≤ 9*C*H^(2*(i+j)) := mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_left hcC (by norm_num)) (pow_nonneg hH0 _) _ ≤ 9*C*H^(2*n+2) := mul_le_mul_of_nonneg_left (pow_le_pow_right₀ hH (by omega)) (mul_nonneg (by norm_num) hC) theorem tail_product_shift (i j n : ℕ) (hij : i+j ≤ n+1) : highShift i+highShift j+1 ≤ 110*(n+1) := by unfold highShift omega namespace PrefixBound variable {P T : ℝ} [Fact (0 < P)] {N : ℕ} {a : ℕ → Profile} {F : PrefixFields P T (N+1) a} {hT : 0 ≤ T} {S : Scales (Icc (0 : ℝ) T)} {R : ℝ} (B : PrefixBound F hT S R) {O : Operators} {C : CoefficientData P T O} (BC : CoefficientBudget C) include B theorem tail_slow_product_bound (hN : 1 ≤ N) (hR : 1 ≤ R) (hRc : sobolevCoefficientRadius (Fin 4) BC.Rc ≤ R) (hc : (a 0).corrector = 0) (hb : (a 1).mean = 0) (i j n : ℕ) (hij : i+j=n) : (SpatialJetField.slowAdvection C.inverse (F.knownJet O (by omega) i) (F.knownJet O (by omega) j)).WordBound 6 R (9*BC.termCost*S.H0^(2*n+2)) (110*(n+1)) := by have hi := B.knownJet_bound O (by omega) hR hc hb i have hj := B.knownJet_bound O (by omega) hR hc hb j have hi0 : 0 ≤ 3*S.H0^(2*i) := mul_nonneg (by norm_num) (pow_nonneg S.H0_pos.le _) have hj0 : 0 ≤ 3*S.H0^(2*j) := mul_nonneg (by norm_num) (pow_nonneg S.H0_pos.le _) have h := BC.slow_unnormalized_bound _ _ hi hj (zero_le_one.trans hR) hi0 hj0 hRc have h0 := mul_nonneg (mul_nonneg BC.slowCost_nonneg hi0) hj0 have hs := h.mono_shift hR h0 (tail_product_shift i j n (by omega)) exact hs.mono_amplitude (zero_le_one.trans hR) (tail_product_amplitude S.H0 BC.slowCost BC.termCost S.H0_one_le BC.slowCost_nonneg BC.slowCost_le i j n (by omega)) theorem tail_fast_product_bound (hN : 1 ≤ N) (hR : 1 ≤ R) (hRc : sobolevCoefficientRadius (Fin 4) BC.Rc ≤ R) (hc : (a 0).corrector = 0) (hb : (a 1).mean = 0) (i j n : ℕ) (hij : i+j=n+1) : (SpatialJetField.fastAdvection C.normal (F.knownJet O (by omega) i) (F.knownJet O (by omega) j)).WordBound 6 R (9*BC.termCost*S.H0^(2*n+2)) (110*(n+1)) := by have hi := B.knownJet_bound O (by omega) hR hc hb i have hj := B.knownJet_bound O (by omega) hR hc hb j have hi0 : 0 ≤ 3*S.H0^(2*i) := mul_nonneg (by norm_num) (pow_nonneg S.H0_pos.le _) have hj0 : 0 ≤ 3*S.H0^(2*j) := mul_nonneg (by norm_num) (pow_nonneg S.H0_pos.le _) have h := BC.fast_unnormalized_bound _ _ hi hj (zero_le_one.trans hR) hi0 hj0 hRc have h0 := mul_nonneg (mul_nonneg BC.fastCost_nonneg hi0) hj0 have hs := h.mono_shift hR h0 (tail_product_shift i j n (by omega)) exact hs.mono_amplitude (zero_le_one.trans hR) (tail_product_amplitude S.H0 BC.fastCost BC.termCost S.H0_one_le BC.fastCost_nonneg BC.fastCost_le i j n (by omega)) end PrefixBound end EulerPacketCylinderField end end /-! ## From `Euler/PacketTailLinearBounds.lean` The text of `Euler/PacketTailLinearBounds.lean`, folded into this file, which was its only importer. -/ section /-! The only surviving linear tail grade has the same fixed coefficient budget. -/ noncomputable section namespace EulerPacketCylinderField open Set EulerSmoothLimit EulerPacketPointJets EulerPacketProfileRecursion EulerPacketTimeProfile EulerPacketShiftArithmetic EulerParameterWordGevrey theorem CoefficientBudget.linear_and_pressure_le {P T : ℝ} [Fact (0 < P)] {O : Operators} {C : CoefficientData P T O} (B : CoefficientBudget C) : B.linearCost+B.multiplierCost ≤ B.termCost := by have hs := B.slowCost_nonneg unfold CoefficientBudget.linearCost CoefficientBudget.termCost linarith namespace PrefixBound variable {P T : ℝ} [Fact (0 < P)] {N : ℕ} {a : ℕ → Profile} {F : PrefixFields P T (N+1) a} {hT : 0 ≤ T} {S : Scales (Icc (0 : ℝ) T)} {R : ℝ} (B : PrefixBound F hT S R) {O : Operators} {C : CoefficientData P T O} (BC : CoefficientBudget C) include B theorem tail_linear_bound (hTime : 0 < T) (hN : 1 ≤ N) (hR : 1 ≤ R) (hRc : sobolevCoefficientRadius (Fin 4) BC.Rc ≤ R) {corrector_t : VectorField} (Ct : Field P T corrector_t) (hCt : TimeDerivative hTime.le (F.corrector N (by omega)) Ct) (pressure : Field P T (pressureGradient (a N).highPressure)) (hCtB : (Ct.normalized hT (S.high N) (S.high_pos N)).WordBound 6 R 1 (highShift N)) (hpB : (pressure.normalized hT (S.high N) (S.high_pos N)).WordBound 6 R 1 (highShift N)) (n : ℕ) : (F.tailLinearField C hTime Ct hCt pressure n).WordBound 6 R (BC.termCost*S.H0^(2*n+2)) (110*(n+1)) := by by_cases hn : n=N+1 · have hC := B.corrector N (by omega) hN have hL := BC.previousLinear_bound hTime S (N+1) (S.high N) (S.high_pos N) (F.corrector N (by omega)) Ct hCt (by simpa only [Field.WordBound,Field.normalized_path,Nat.add_sub_cancel] using hC) (by simpa only [Field.WordBound,Field.normalized_path,Nat.add_sub_cancel] using hCtB) hRc (by simp) have hQ := BC.previousPressure_bound hTime S (N+1) (S.high N) (S.high_pos N) (a N).highPressure pressure (by simpa only [Field.WordBound,Field.normalized_path,Nat.add_sub_cancel] using hpB) hRc (by simp) have hL' := hL.remove_profile hTime.le (S.high N) (S.high_pos N) (S.H0^(2*N)) (pow_nonneg S.H0_pos.le _) (S.high_le_coarse N hN) have hQ' := hQ.remove_profile hTime.le (S.high N) (S.high_pos N) (S.H0^(2*N)) (pow_nonneg S.H0_pos.le _) (S.high_le_coarse N hN) have hs := hL'.add hQ' have ha : S.H0^(2*N)*BC.linearCost+S.H0^(2*N)*BC.multiplierCost ≤ BC.termCost*S.H0^(2*n+2) := by calc _ = (BC.linearCost+BC.multiplierCost)*S.H0^(2*N) := by ring _ ≤ BC.termCost*S.H0^(2*N) := mul_le_mul_of_nonneg_right BC.linear_and_pressure_le (pow_nonneg S.H0_pos.le _) _ ≤ _ := mul_le_mul_of_nonneg_left (pow_le_pow_right₀ S.H0_one_le (by omega)) BC.termCost_nonneg have hs' := (hs.mono_amplitude (zero_le_one.trans hR) ha).mono_shift hR (mul_nonneg BC.termCost_nonneg (pow_nonneg S.H0_pos.le _)) (show highShift (N+1-1) ≤ 110*(n+1) by unfold highShift; omega) apply hs'.of_raw_eq (F.tailLinearField C hTime Ct hCt pressure n) intro t x θ simp only [ite_eq_left hn] rfl · exact (Field.wordBound_of_zero (F.tailLinearField C hTime Ct hCt pressure n) (fun _ _ _ => by rw [ite_eq_right hn]) 6 R (110*(n+1))).mono_amplitude (zero_le_one.trans hR) (mul_nonneg BC.termCost_nonneg (pow_nonneg S.H0_pos.le _)) end PrefixBound end EulerPacketCylinderField end end /-! ## From `Euler/PacketTailSumBounds.lean` The text of `Euler/PacketTailSumBounds.lean`, folded into this file, which was its only importer. -/ section /-! The actual finite residual tail inherits the geometric-series word bound. -/ noncomputable section namespace EulerPacketCylinderField open Set Finset EulerSmoothLimit EulerPacketPointJets EulerPacketProfileRecursion theorem weighted_tail_sum_le (κ B : ℝ) (hκ : 0 ≤ κ) (hB : 0 ≤ B) (hsmall : κ*B ≤ 1/2) (N : ℕ) : (∑ n ∈ tailGrades N, κ^n*B^(n+1)) ≤ 2*B*(κ*B)^(N+1) := by calc _ = B*(∑ n ∈ Ico (N+1) (2*N+3), (κ*B)^n) := by rw [mul_sum] apply sum_congr rfl intro n _ simp only [pow_succ,mul_pow] ring _ ≤ B*(2*(κ*B)^(N+1)) := mul_le_mul_of_nonneg_left (EulerPacketTailBound.sum_geometric_Ico_le (κ*B) (mul_nonneg hκ hB) hsmall _ _) hB _ = _ := by ring variable {P T : ℝ} [Fact (0 < P)] {O : Operators} {N : ℕ} {a : ℕ → Profile} theorem PrefixFields.tailSum_bound_of_grades (F : PrefixFields P T (N+1) a) (C : CoefficientData P T O) (hT : 0 < T) {corrector_t : VectorField} (Ct : Field P T corrector_t) (hCt : TimeDerivative hT.le (F.corrector N (by omega)) Ct) (pressure : Field P T (pressureGradient (a N).highPressure)) (ha : a 0=0) (q : ℕ) (R κ B : ℝ) (hR : 0 ≤ R) (hκ : 0 ≤ κ) (hB : 0 ≤ B) (hsmall : κ*B ≤ 1/2) (hgrade : ∀ n (hn : N+1 ≤ n), n ≤ 2*N+2 → (F.tailGradeField C hT Ct hCt pressure ha n hn).WordBound q R (B^(n+1)) 0) : (F.tailSumField C hT Ct hCt pressure ha κ).WordBound q R (2*B*(κ*B)^(N+1)) 0 := by let W := fun r : {n // n ∈ tailGrades N} => (F.tailGradeField C hT Ct hCt pressure ha r.1 (Finset.mem_Ico.mp r.2).1).smul (κ^r.1) have hw : ∀ r ∈ (tailGrades N).attach, (W r).WordBound q R (κ^r.1*B^(r.1+1)) 0 := by intro r _ have hm := Finset.mem_Ico.mp r.2 have hb := (hgrade r.1 hm.1 (by omega)).smul (κ^r.1) simpa only [abs_of_nonneg (pow_nonneg hκ r.1)] using hb have hs := Field.wordBound_finsetSum (tailGrades N).attach _ W (fun r => κ^r.1*B^(r.1+1)) hw have hsum : (∑ r ∈ (tailGrades N).attach, κ^r.1*B^(r.1+1)) = ∑ n ∈ tailGrades N, κ^n*B^(n+1) := Finset.sum_attach (tailGrades N) (fun n => κ^n*B^(n+1)) rw [hsum] at hs exact (hs.mono_amplitude hR (weighted_tail_sum_le κ B hκ hB hsmall N)).of_path_eq (F.tailSumField C hT Ct hCt pressure ha κ) rfl end EulerPacketCylinderField end end /-! ## From `Euler/PacketConvolutionBounds.lean` The text of `Euler/PacketConvolutionBounds.lean`, folded into this file, which was its only importer. -/ section /-! Fixed-radius word bounds for the actual finite grade convolution. -/ noncomputable section namespace EulerPacketCylinderField.Field open Set Finset EulerPacketProfileRecursion variable {P T : ℝ} [Fact (0 < P)] theorem wordBound_convolution (M n : ℕ) (f : ℕ → ℕ → VectorField) (G : ∀ i j, Field P T (f i j)) (q : ℕ) (R A : ℝ) (d : ℕ) (hR : 0 ≤ R) (hA : 0 ≤ A) (hG : ∀ i ∈ range (M+1), ∀ j ∈ range (M+1), i+j=n → (G i j).WordBound q R A d) : (Field.convolution M n f G).WordBound q R (((M+1 : ℕ) : ℝ)^2*A) d := by classical let K : ∀ i j, Field P T (if i+j=n then f i j else 0) := fun i j => by by_cases hij : i+j=n · exact (G i j).congr (fun _ _ _ => by rw [ite_eq_left hij]) · exact (Field.zero P T).congr (fun _ _ _ => by rw [ite_eq_right hij]) have hK : ∀ i ∈ range (M+1), ∀ j ∈ range (M+1), (K i j).WordBound q R A d := by intro i hi j hj by_cases hij : i+j=n · exact (hG i hi j hj hij).of_raw_eq (K i j) (fun _ _ _ => by rw [ite_eq_left hij]) · exact (wordBound_of_zero (K i j) (fun _ _ _ => by rw [ite_eq_right hij]; rfl) q R d).mono_amplitude hR hA let row : (i : ℕ) → Field P T (∑ j ∈ range (M+1), if i+j=n then f i j else 0) := fun i => Field.finsetSum (range (M+1)) (fun j => if i+j=n then f i j else 0) (K i) have hr : ∀ i ∈ range (M+1), (row i).WordBound q R (((M+1 : ℕ) : ℝ)*A) d := by intro i hi have h := wordBound_finsetSum (range (M+1)) (fun j => if i+j=n then f i j else 0) (K i) (fun _ => A) (hK i hi) simpa only [sum_const,card_range,nsmul_eq_mul] using h have ht := wordBound_finsetSum (range (M+1)) (fun i => ∑ j ∈ range (M+1), if i+j=n then f i j else 0) row (fun _ => ((M+1 : ℕ) : ℝ)*A) hr have he : ∑ _i ∈ range (M+1), ((M+1 : ℕ) : ℝ)*A = ((M+1 : ℕ) : ℝ)^2*A := by simp only [sum_const,card_range,nsmul_eq_mul] ring rw [he] at ht apply ht.of_raw_eq (Field.convolution M n f G) intro t x θ simp only [Finset.sum_apply,ite_apply,Pi.zero_apply] end EulerPacketCylinderField.Field end end /-! ## From `Euler/PacketTailNonlinearBounds.lean` The text of `Euler/PacketTailNonlinearBounds.lean`, folded into this file, which was its only importer. -/ section /-! The complete nonlinear tail is bounded using its actual finite convolution. -/ noncomputable section namespace EulerPacketCylinderField.PrefixBound open Set Finset EulerSmoothLimit EulerPacketPointJets EulerPacketProfileRecursion EulerPacketTimeProfile EulerParameterWordGevrey variable {P T : ℝ} [Fact (0 < P)] {N : ℕ} {a : ℕ → Profile} {F : PrefixFields P T (N+1) a} {hT : 0 ≤ T} {S : Scales (Icc (0 : ℝ) T)} {R : ℝ} (B : PrefixBound F hT S R) {O : Operators} {C : CoefficientData P T O} (BC : CoefficientBudget C) include B theorem tail_nonlinear_bound (hN : 1 ≤ N) (hR : 1 ≤ R) (hRc : sobolevCoefficientRadius (Fin 4) BC.Rc ≤ R) (hc : (a 0).corrector = 0) (hb : (a 1).mean = 0) (n : ℕ) : (F.tailNonlinearField C n).WordBound 6 R (18*((N+2 : ℕ) : ℝ)^2*BC.termCost*S.H0^(2*n+2)) (110*(n+1)) := by let J := F.knownJet O (by omega) have hA : 0 ≤ 9*BC.termCost*S.H0^(2*n+2) := mul_nonneg (mul_nonneg (by norm_num) BC.termCost_nonneg) (pow_nonneg S.H0_pos.le _) have hS := Field.wordBound_convolution (N+1) n (fun i j z => slowAdvection (O.inverseFrame z) (knownJets O (N+1) a z i) (knownJets O (N+1) a z j)) (fun i j => SpatialJetField.slowAdvection C.inverse (J i) (J j)) 6 R (9*BC.termCost*S.H0^(2*n+2)) (110*(n+1)) (zero_le_one.trans hR) hA (fun i _ j _ hij => B.tail_slow_product_bound BC hN hR hRc hc hb i j n hij) have hH := Field.wordBound_convolution (N+1) (n+1) (fun i j z => fastAdvection (O.normal z) (knownJets O (N+1) a z i) (knownJets O (N+1) a z j)) (fun i j => SpatialJetField.fastAdvection C.normal (J i) (J j)) 6 R (9*BC.termCost*S.H0^(2*n+2)) (110*(n+1)) (zero_le_one.trans hR) hA (fun i _ j _ hij => B.tail_fast_product_bound BC hN hR hRc hc hb i j n hij) have hs := hS.add hH have he : ((N+1+1 : ℕ) : ℝ)^2*(9*BC.termCost*S.H0^(2*n+2))+ ((N+1+1 : ℕ) : ℝ)^2*(9*BC.termCost*S.H0^(2*n+2)) = 18*((N+2 : ℕ) : ℝ)^2*BC.termCost*S.H0^(2*n+2) := by push_cast ring rw [he] at hs exact hs.of_raw_eq (F.tailNonlinearField C n) (fun _ _ _ => rfl) end EulerPacketCylinderField.PrefixBound end end /-! ## From `Euler/PacketTailGradeBounds.lean` The text of `Euler/PacketTailGradeBounds.lean`, folded into this file, which was its only importer. -/ section /-! Each surviving grade of the literal packet residual has a fixed-radius estimate. -/ noncomputable section namespace EulerPacketCylinderField.PrefixBound open Set EulerSmoothLimit EulerPacketPointJets EulerPacketProfileRecursion EulerPacketTimeProfile EulerPacketShiftArithmetic EulerParameterWordGevrey variable {P T : ℝ} [Fact (0 < P)] {N : ℕ} {a : ℕ → Profile} {F : PrefixFields P T (N+1) a} {hT : 0 ≤ T} {S : Scales (Icc (0 : ℝ) T)} {R : ℝ} (B : PrefixBound F hT S R) {O : Operators} {C : CoefficientData P T O} (BC : CoefficientBudget C) include B theorem tail_grade_bound (hTime : 0 < T) (hN : 1 ≤ N) (hR : 1 ≤ R) (hRc : sobolevCoefficientRadius (Fin 4) BC.Rc ≤ R) {corrector_t : VectorField} (Ct : Field P T corrector_t) (hCt : TimeDerivative hTime.le (F.corrector N (by omega)) Ct) (pressure : Field P T (pressureGradient (a N).highPressure)) (hCtB : (Ct.normalized hT (S.high N) (S.high_pos N)).WordBound 6 R 1 (highShift N)) (hpB : (pressure.normalized hT (S.high N) (S.high_pos N)).WordBound 6 R 1 (highShift N)) (ha : a 0=0) (hb : (a 1).mean=0) (n : ℕ) (hn : N+1 ≤ n) : (F.tailGradeField C hTime Ct hCt pressure ha n hn).WordBound 6 R ((1+18*((N+2 : ℕ) : ℝ)^2)*BC.termCost*S.H0^(2*n+2)) (110*(n+1)) := by have hc : (a 0).corrector=0 := by rw [ha]; rfl have hL := B.tail_linear_bound BC hTime hN hR hRc Ct hCt pressure hCtB hpB n have hQ := B.tail_nonlinear_bound BC hN hR hRc hc hb n have hs := hL.add hQ have he : BC.termCost*S.H0^(2*n+2)+18*((N+2 : ℕ) : ℝ)^2*BC.termCost*S.H0^(2*n+2) = (1+18*((N+2 : ℕ) : ℝ)^2)*BC.termCost*S.H0^(2*n+2) := by ring rw [he] at hs exact hs.of_path_eq (F.tailGradeField C hTime Ct hCt pressure ha n hn) (F.tailGradeField_path C hTime Ct hCt pressure ha n hn) end EulerPacketCylinderField.PrefixBound end end /-! ## From `Euler/PacketProfileTailGrade.lean` The text of `Euler/PacketProfileTailGrade.lean`, folded into this file, which was its only importer. -/ section /-! Uniform profile budgets bound each literal residual grade of the finite packet. -/ noncomputable section namespace EulerPacketCylinderField.ProfileRegularity open Set EulerSmoothLimit EulerPacketProfileRecursion EulerPacketTimeProfile EulerParameterWordGevrey 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 : ℝ} theorem prefixThrough_bound (hG : ∀ i (hi : i ≤ N), 1 ≤ i → ProfileBudget (G i hi) S R i) : PrefixBound (prefixThrough hT G) hT.le S R where high i hi hip := (hG i (by omega) hip).high mean i hi hip := (hG i (by omega) (by omega)).mean corrector i hi hip := (hG i (by omega) hip).corrector variable {O : Operators} {C : CoefficientData P T O} (BC : CoefficientBudget C) theorem tail_grade_bound (hG : ∀ i (hi : i ≤ N), 1 ≤ i → ProfileBudget (G i hi) S R i) (hN : 1 ≤ N) (hR : 1 ≤ R) (hRc : sobolevCoefficientRadius (Fin 4) BC.Rc ≤ R) (ha : a 0=0) (hb : (a 1).mean=0) (n : ℕ) (hn : N+1 ≤ n) : (tailGradeField hT G C ha n hn).WordBound 6 R ((1+18*((N+2 : ℕ) : ℝ)^2)*BC.termCost*S.H0^(2*n+2)) (110*(n+1)) := (prefixThrough_bound hT G hG).tail_grade_bound BC hT hN hR hRc (G N le_rfl).correctorDerivative (G N le_rfl).corrector_time (G N le_rfl).pressure (hG N le_rfl hN).correctorDerivative (hG N le_rfl hN).pressure ha hb n hn end EulerPacketCylinderField.ProfileRegularity end end noncomputable section namespace EulerPacketCylinderField.ProfileRegularity open Set EulerSmoothLimit EulerPacketProfileRecursion EulerPacketTimeProfile EulerParameterWordGevrey EulerPacketCoarseMajorant 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 : ℝ} {O : Operators} {C : CoefficientData P T O} (BC : CoefficientBudget C) theorem tail_grade_coarse_bound (hG : ∀ i (hi : i ≤ N), 1 ≤ i → ProfileBudget (G i hi) S R i) (hN : 1 ≤ N) (hR : 1 ≤ R) (hRc : sobolevCoefficientRadius (Fin 4) BC.Rc ≤ R) (ha : a 0=0) (hb : (a 1).mean=0) (n : ℕ) (hn : N+1 ≤ n) (hn' : n ≤ 2*N+2) : (tailGradeField hT G C ha n hn).WordBound 6 (4*R) ((tailBase R S.H0 BC.termCost N)^(n+1)) 0 := by have h := tail_grade_bound hT G BC hG hN hR hRc ha hb n hn have hA : 0 ≤ (1+18*((N+2 : ℕ) : ℝ)^2)*BC.termCost*S.H0^(2*n+2) := mul_nonneg (mul_nonneg (by positivity) BC.termCost_nonneg) (pow_nonneg S.H0_pos.le _) have hc := h.coarse_grade hR hA N n hN hn' le_rfl exact hc.mono_amplitude (by linarith) (tailBase_absorption R S.H0 BC.termCost BC.termCost_nonneg N n) theorem tail_sum_bound (hG : ∀ i (hi : i ≤ N), 1 ≤ i → ProfileBudget (G i hi) S R i) (hN : 1 ≤ N) (hR : 1 ≤ R) (hRc : sobolevCoefficientRadius (Fin 4) BC.Rc ≤ R) (ha : a 0=0) (hb : (a 1).mean=0) (κ : ℝ) (hκ : 0 ≤ κ) (hsmall : κ*tailBase R S.H0 BC.termCost N ≤ 1/2) : (tailSumField hT G C ha κ).WordBound 6 (4*R) (2*tailBase R S.H0 BC.termCost N*(κ*tailBase R S.H0 BC.termCost N)^(N+1)) 0 := (prefixThrough hT G).tailSum_bound_of_grades C hT (G N le_rfl).correctorDerivative (G N le_rfl).corrector_time (G N le_rfl).pressure ha 6 (4*R) κ (tailBase R S.H0 BC.termCost N) (by linarith) hκ (tailBase_nonneg R S.H0 BC.termCost BC.termCost_nonneg N) hsmall (fun n hn hn' => tail_grade_coarse_bound hT G BC hG hN hR hRc ha hb n hn hn') theorem normalized_tail_bound (hG : ∀ i (hi : i ≤ N), 1 ≤ i → ProfileBudget (G i hi) S R i) (hN : 1 ≤ N) (hR : 1 ≤ R) (hRc : sobolevCoefficientRadius (Fin 4) BC.Rc ≤ R) (ha : a 0=0) (hb : (a 1).mean=0) (k X : ℝ) (hk : 4 ≤ k) (hbase : tailBase R S.H0 BC.termCost N ≤ k^(1/100 : ℝ)) (hcoef : BC.multiplierCost ≤ k^(1/100 : ℝ)) (hX : 6 ≤ X) (hNX : X-1 ≤ (N : ℝ)) : ((C.inverse.multiply (tailSumField hT G C ha k⁻¹)).smul k).WordBound 6 (4*R) (Real.exp (-(7/10)*X*Real.log k)) 0 := by have hk0 : 0 ≤ k := by linarith have hsmall : k⁻¹*tailBase R S.H0 BC.termCost N ≤ 1/2 := by simpa only [div_eq_mul_inv,mul_comm] using EulerPacketTailBound.grade_ratio_le_half k (tailBase R S.H0 BC.termCost N) hk hbase have hsum := tail_sum_bound hT G BC hG hN hR hRc ha hb k⁻¹ (inv_nonneg.mpr hk0) hsmall exact BC.normalized_tail_exponential (tailSumField hT G C ha k⁻¹) N hsum (hRc.trans (by linarith)) (by linarith) hk (tailBase_nonneg R S.H0 BC.termCost BC.termCost_nonneg N) hbase hcoef hX hNX end EulerPacketCylinderField.ProfileRegularity