Navier–Stokes: the Lean blow-up proof, cleaned up together
OpenAI's 2026 Lean proofs of blowup for forced Navier–Stokes and Euler, rerun by others, not refereed, no ruling from Clay; cleaned up together: more readable, faster to build

| 1 | import Euler.PacketResidualTailFields |
| 2 | import Euler.PacketFiniteVelocityBounds |
| 3 | import Euler.PacketCylinderLinearTermBudget |
| 4 | import Euler.PacketCylinderConvolution |
| 5 | import Euler.PacketCylinderHighPartBounds |
| 6 | import Euler.PacketCylinderBoundTransfer |
| 7 | import Euler.PacketResidualTailActual |
| 8 | import Euler.PacketTailBase |
| 9 | import Euler.PacketTailBound |
| 10 | import Euler.PacketTailNormalization |
| 11 | |
| 12 | /-! Actual residual tail estimates after the single final factorial split. -/ |
| 13 | |
| 14 | /-! ## From `Euler/PacketUnweightedAdvection.lean` |
| 15 | |
| 16 | The text of `Euler/PacketUnweightedAdvection.lean`, folded into this file, which was its only importer. -/ |
| 17 | |
| 18 | section |
| 19 | |
| 20 | /-! The literal advection fields obey the same fixed coefficient costs before the final tail split. -/ |
| 21 | |
| 22 | noncomputable section |
| 23 | |
| 24 | namespace EulerPacketCylinderField.CoefficientBudget |
| 25 | |
| 26 | open Set EulerSmoothLimit EulerPacketPointJets EulerPacketProfileRecursion |
| 27 | EulerParameterWordGevrey EulerCylinderScalarPrimitive |
| 28 | |
| 29 | variable {P T : ℝ} [Fact (0 < P)] {O : Operators} {C : CoefficientData P T O} |
| 30 | (BC : CoefficientBudget C) {J K : Domain → VectorJet} |
| 31 | (G : SpatialJetField P T J) (H : SpatialJetField P T K) |
| 32 | |
| 33 | theorem slow_unnormalized_bound {R A B : ℝ} {d e : ℕ} |
| 34 | (hG : G.field.WordBound 6 R A d) (hH : H.field.WordBound 6 R B e) |
| 35 | (hR : 0 ≤ R) (hA : 0 ≤ A) (hB : 0 ≤ B) |
| 36 | (hRc : sobolevCoefficientRadius (Fin 4) BC.Rc ≤ R) : |
| 37 | (SpatialJetField.slowAdvection C.inverse G H).WordBound 6 R (BC.slowCost*A*B) (d+e+1) := by |
| 38 | have hm := hG.multiply C.inverse BC.Rc BC.amplitude BC.Rc_nonneg BC.amplitude_nonneg hA hRc BC.inverse_bound |
| 39 | have ham : 0 ≤ 3*sobolevCoefficientAmplitude (Fin 4) 6 BC.Rc BC.amplitude*A := |
| 40 | mul_nonneg BC.multiplierCost_nonneg hA |
| 41 | have hs := (hm.spatialTransport hH hR ham hB).of_path_eq |
| 42 | (SpatialJetField.slowAdvection C.inverse G H) rfl |
| 43 | have he : 9*EulerCylinderPathProduct.productBlockConstant P* |
| 44 | (3*sobolevCoefficientAmplitude (Fin 4) 6 BC.Rc BC.amplitude*A)*B = BC.slowCost*A*B := by |
| 45 | unfold slowCost multiplierCost |
| 46 | ring |
| 47 | simpa only [he] using hs |
| 48 | |
| 49 | theorem fast_unnormalized_bound {R A B : ℝ} {d e : ℕ} |
| 50 | (hG : G.field.WordBound 6 R A d) (hH : H.field.WordBound 6 R B e) |
| 51 | (hR : 0 ≤ R) (hA : 0 ≤ A) (hB : 0 ≤ B) |
| 52 | (hRc : sobolevCoefficientRadius (Fin 4) BC.Rc ≤ R) : |
| 53 | (SpatialJetField.fastAdvection C.normal G H).WordBound 6 R (BC.fastCost*A*B) (d+e+1) := by |
| 54 | have hm := hG.multiply C.normal.normalMatrix BC.Rc BC.amplitude BC.Rc_nonneg BC.amplitude_nonneg hA hRc |
| 55 | (C.normal.normalMatrix_bound BC.Rc BC.amplitude BC.normal_bound) |
| 56 | have hd := hH.derivative 0 |
| 57 | have ham : 0 ≤ 3*sobolevCoefficientAmplitude (Fin 4) 6 BC.Rc BC.amplitude*A := |
| 58 | mul_nonneg BC.multiplierCost_nonneg hA |
| 59 | have hs := (hm.scalarProduct hd scalarProject (le_of_eq scalarProject_norm) hR ham hB).of_path_eq |
| 60 | (SpatialJetField.fastAdvection C.normal G H) rfl |
| 61 | have he : 3*EulerCylinderPathProduct.productBlockConstant P* |
| 62 | (3*sobolevCoefficientAmplitude (Fin 4) 6 BC.Rc BC.amplitude*A)*B = BC.fastCost*A*B := by |
| 63 | unfold fastCost multiplierCost |
| 64 | ring |
| 65 | simpa only [he,Nat.add_assoc] using hs |
| 66 | |
| 67 | end EulerPacketCylinderField.CoefficientBudget |
| 68 | end |
| 69 | |
| 70 | end |
| 71 | |
| 72 | /-! ## From `Euler/PacketTailProductBounds.lean` |
| 73 | |
| 74 | The text of `Euler/PacketTailProductBounds.lean`, folded into this file, which was its only importer. -/ |
| 75 | |
| 76 | section |
| 77 | |
| 78 | /-! Bounds for the actual advection products in the surviving finite packet tail. -/ |
| 79 | |
| 80 | noncomputable section |
| 81 | |
| 82 | namespace EulerPacketCylinderField |
| 83 | |
| 84 | open Set EulerSmoothLimit EulerPacketPointJets EulerPacketProfileRecursion |
| 85 | EulerPacketTimeProfile EulerPacketShiftArithmetic EulerParameterWordGevrey |
| 86 | |
| 87 | theorem tail_product_amplitude (H c C : ℝ) (hH : 1 ≤ H) (hc : 0 ≤ c) (hcC : c ≤ C) |
| 88 | (i j n : ℕ) (hij : i+j ≤ n+1) : |
| 89 | c*(3*H^(2*i))*(3*H^(2*j)) ≤ 9*C*H^(2*n+2) := by |
| 90 | have hH0 : 0 ≤ H := zero_le_one.trans hH |
| 91 | have hC : 0 ≤ C := hc.trans hcC |
| 92 | calc |
| 93 | _ = 9*c*H^(2*(i+j)) := by rw [Nat.mul_add,pow_add]; ring |
| 94 | _ ≤ 9*C*H^(2*(i+j)) := |
| 95 | mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_left hcC (by norm_num)) (pow_nonneg hH0 _) |
| 96 | _ ≤ 9*C*H^(2*n+2) := mul_le_mul_of_nonneg_left |
| 97 | (pow_le_pow_right₀ hH (by omega)) (mul_nonneg (by norm_num) hC) |
| 98 | |
| 99 | theorem tail_product_shift (i j n : ℕ) (hij : i+j ≤ n+1) : |
| 100 | highShift i+highShift j+1 ≤ 110*(n+1) := by |
| 101 | unfold highShift |
| 102 | omega |
| 103 | |
| 104 | namespace PrefixBound |
| 105 | |
| 106 | variable {P T : ℝ} [Fact (0 < P)] {N : ℕ} {a : ℕ → Profile} |
| 107 | {F : PrefixFields P T (N+1) a} {hT : 0 ≤ T} |
| 108 | {S : Scales (Icc (0 : ℝ) T)} {R : ℝ} (B : PrefixBound F hT S R) |
| 109 | {O : Operators} {C : CoefficientData P T O} (BC : CoefficientBudget C) |
| 110 | |
| 111 | include B |
| 112 | |
| 113 | theorem tail_slow_product_bound (hN : 1 ≤ N) (hR : 1 ≤ R) |
| 114 | (hRc : sobolevCoefficientRadius (Fin 4) BC.Rc ≤ R) |
| 115 | (hc : (a 0).corrector = 0) (hb : (a 1).mean = 0) |
| 116 | (i j n : ℕ) (hij : i+j=n) : |
| 117 | (SpatialJetField.slowAdvection C.inverse (F.knownJet O (by omega) i) |
| 118 | (F.knownJet O (by omega) j)).WordBound 6 R |
| 119 | (9*BC.termCost*S.H0^(2*n+2)) (110*(n+1)) := by |
| 120 | have hi := B.knownJet_bound O (by omega) hR hc hb i |
| 121 | have hj := B.knownJet_bound O (by omega) hR hc hb j |
| 122 | have hi0 : 0 ≤ 3*S.H0^(2*i) := mul_nonneg (by norm_num) (pow_nonneg S.H0_pos.le _) |
| 123 | have hj0 : 0 ≤ 3*S.H0^(2*j) := mul_nonneg (by norm_num) (pow_nonneg S.H0_pos.le _) |
| 124 | have h := BC.slow_unnormalized_bound _ _ hi hj (zero_le_one.trans hR) hi0 hj0 hRc |
| 125 | have h0 := mul_nonneg (mul_nonneg BC.slowCost_nonneg hi0) hj0 |
| 126 | have hs := h.mono_shift hR h0 (tail_product_shift i j n (by omega)) |
| 127 | exact hs.mono_amplitude (zero_le_one.trans hR) |
| 128 | (tail_product_amplitude S.H0 BC.slowCost BC.termCost S.H0_one_le BC.slowCost_nonneg |
| 129 | BC.slowCost_le i j n (by omega)) |
| 130 | |
| 131 | theorem tail_fast_product_bound (hN : 1 ≤ N) (hR : 1 ≤ R) |
| 132 | (hRc : sobolevCoefficientRadius (Fin 4) BC.Rc ≤ R) |
| 133 | (hc : (a 0).corrector = 0) (hb : (a 1).mean = 0) |
| 134 | (i j n : ℕ) (hij : i+j=n+1) : |
| 135 | (SpatialJetField.fastAdvection C.normal (F.knownJet O (by omega) i) |
| 136 | (F.knownJet O (by omega) j)).WordBound 6 R |
| 137 | (9*BC.termCost*S.H0^(2*n+2)) (110*(n+1)) := by |
| 138 | have hi := B.knownJet_bound O (by omega) hR hc hb i |
| 139 | have hj := B.knownJet_bound O (by omega) hR hc hb j |
| 140 | have hi0 : 0 ≤ 3*S.H0^(2*i) := mul_nonneg (by norm_num) (pow_nonneg S.H0_pos.le _) |
| 141 | have hj0 : 0 ≤ 3*S.H0^(2*j) := mul_nonneg (by norm_num) (pow_nonneg S.H0_pos.le _) |
| 142 | have h := BC.fast_unnormalized_bound _ _ hi hj (zero_le_one.trans hR) hi0 hj0 hRc |
| 143 | have h0 := mul_nonneg (mul_nonneg BC.fastCost_nonneg hi0) hj0 |
| 144 | have hs := h.mono_shift hR h0 (tail_product_shift i j n (by omega)) |
| 145 | exact hs.mono_amplitude (zero_le_one.trans hR) |
| 146 | (tail_product_amplitude S.H0 BC.fastCost BC.termCost S.H0_one_le BC.fastCost_nonneg |
| 147 | BC.fastCost_le i j n (by omega)) |
| 148 | |
| 149 | end PrefixBound |
| 150 | end EulerPacketCylinderField |
| 151 | end |
| 152 | |
| 153 | end |
| 154 | |
| 155 | /-! ## From `Euler/PacketTailLinearBounds.lean` |
| 156 | |
| 157 | The text of `Euler/PacketTailLinearBounds.lean`, folded into this file, which was its only importer. -/ |
| 158 | |
| 159 | section |
| 160 | |
| 161 | /-! The only surviving linear tail grade has the same fixed coefficient budget. -/ |
| 162 | |
| 163 | noncomputable section |
| 164 | |
| 165 | namespace EulerPacketCylinderField |
| 166 | |
| 167 | open Set EulerSmoothLimit EulerPacketPointJets EulerPacketProfileRecursion |
| 168 | EulerPacketTimeProfile EulerPacketShiftArithmetic EulerParameterWordGevrey |
| 169 | |
| 170 | theorem CoefficientBudget.linear_and_pressure_le {P T : ℝ} [Fact (0 < P)] |
| 171 | {O : Operators} {C : CoefficientData P T O} (B : CoefficientBudget C) : |
| 172 | B.linearCost+B.multiplierCost ≤ B.termCost := by |
| 173 | have hs := B.slowCost_nonneg |
| 174 | unfold CoefficientBudget.linearCost CoefficientBudget.termCost |
| 175 | linarith |
| 176 | |
| 177 | namespace PrefixBound |
| 178 | |
| 179 | variable {P T : ℝ} [Fact (0 < P)] {N : ℕ} {a : ℕ → Profile} |
| 180 | {F : PrefixFields P T (N+1) a} {hT : 0 ≤ T} |
| 181 | {S : Scales (Icc (0 : ℝ) T)} {R : ℝ} (B : PrefixBound F hT S R) |
| 182 | {O : Operators} {C : CoefficientData P T O} (BC : CoefficientBudget C) |
| 183 | |
| 184 | include B |
| 185 | |
| 186 | theorem tail_linear_bound (hTime : 0 < T) (hN : 1 ≤ N) (hR : 1 ≤ R) |
| 187 | (hRc : sobolevCoefficientRadius (Fin 4) BC.Rc ≤ R) |
| 188 | {corrector_t : VectorField} (Ct : Field P T corrector_t) |
| 189 | (hCt : TimeDerivative hTime.le (F.corrector N (by omega)) Ct) |
| 190 | (pressure : Field P T (pressureGradient (a N).highPressure)) |
| 191 | (hCtB : (Ct.normalized hT (S.high N) (S.high_pos N)).WordBound 6 R 1 (highShift N)) |
| 192 | (hpB : (pressure.normalized hT (S.high N) (S.high_pos N)).WordBound 6 R 1 (highShift N)) |
| 193 | (n : ℕ) : |
| 194 | (F.tailLinearField C hTime Ct hCt pressure n).WordBound 6 R |
| 195 | (BC.termCost*S.H0^(2*n+2)) (110*(n+1)) := by |
| 196 | by_cases hn : n=N+1 |
| 197 | · have hC := B.corrector N (by omega) hN |
| 198 | have hL := BC.previousLinear_bound hTime S (N+1) (S.high N) (S.high_pos N) |
| 199 | (F.corrector N (by omega)) Ct hCt |
| 200 | (by simpa only [Field.WordBound,Field.normalized_path,Nat.add_sub_cancel] using hC) |
| 201 | (by simpa only [Field.WordBound,Field.normalized_path,Nat.add_sub_cancel] using hCtB) hRc (by simp) |
| 202 | have hQ := BC.previousPressure_bound hTime S (N+1) (S.high N) (S.high_pos N) |
| 203 | (a N).highPressure pressure |
| 204 | (by simpa only [Field.WordBound,Field.normalized_path,Nat.add_sub_cancel] using hpB) hRc (by simp) |
| 205 | have hL' := hL.remove_profile hTime.le (S.high N) (S.high_pos N) |
| 206 | (S.H0^(2*N)) (pow_nonneg S.H0_pos.le _) (S.high_le_coarse N hN) |
| 207 | have hQ' := hQ.remove_profile hTime.le (S.high N) (S.high_pos N) |
| 208 | (S.H0^(2*N)) (pow_nonneg S.H0_pos.le _) (S.high_le_coarse N hN) |
| 209 | have hs := hL'.add hQ' |
| 210 | have ha : S.H0^(2*N)*BC.linearCost+S.H0^(2*N)*BC.multiplierCost ≤ |
| 211 | BC.termCost*S.H0^(2*n+2) := by |
| 212 | calc |
| 213 | _ = (BC.linearCost+BC.multiplierCost)*S.H0^(2*N) := by ring |
| 214 | _ ≤ BC.termCost*S.H0^(2*N) := |
| 215 | mul_le_mul_of_nonneg_right BC.linear_and_pressure_le (pow_nonneg S.H0_pos.le _) |
| 216 | _ ≤ _ := mul_le_mul_of_nonneg_left |
| 217 | (pow_le_pow_right₀ S.H0_one_le (by omega)) BC.termCost_nonneg |
| 218 | have hs' := (hs.mono_amplitude (zero_le_one.trans hR) ha).mono_shift hR |
| 219 | (mul_nonneg BC.termCost_nonneg (pow_nonneg S.H0_pos.le _)) |
| 220 | (show highShift (N+1-1) ≤ 110*(n+1) by unfold highShift; omega) |
| 221 | apply hs'.of_raw_eq (F.tailLinearField C hTime Ct hCt pressure n) |
| 222 | intro t x θ |
| 223 | simp only [ite_eq_left hn] |
| 224 | rfl |
| 225 | · exact (Field.wordBound_of_zero (F.tailLinearField C hTime Ct hCt pressure n) |
| 226 | (fun _ _ _ => by rw [ite_eq_right hn]) 6 R (110*(n+1))).mono_amplitude |
| 227 | (zero_le_one.trans hR) (mul_nonneg BC.termCost_nonneg (pow_nonneg S.H0_pos.le _)) |
| 228 | |
| 229 | end PrefixBound |
| 230 | end EulerPacketCylinderField |
| 231 | end |
| 232 | |
| 233 | end |
| 234 | |
| 235 | /-! ## From `Euler/PacketTailSumBounds.lean` |
| 236 | |
| 237 | The text of `Euler/PacketTailSumBounds.lean`, folded into this file, which was its only importer. -/ |
| 238 | |
| 239 | section |
| 240 | |
| 241 | /-! The actual finite residual tail inherits the geometric-series word bound. -/ |
| 242 | |
| 243 | noncomputable section |
| 244 | |
| 245 | namespace EulerPacketCylinderField |
| 246 | |
| 247 | open Set Finset EulerSmoothLimit EulerPacketPointJets EulerPacketProfileRecursion |
| 248 | |
| 249 | theorem weighted_tail_sum_le (κ B : ℝ) (hκ : 0 ≤ κ) (hB : 0 ≤ B) |
| 250 | (hsmall : κ*B ≤ 1/2) (N : ℕ) : |
| 251 | (∑ n ∈ tailGrades N, κ^n*B^(n+1)) ≤ 2*B*(κ*B)^(N+1) := by |
| 252 | calc |
| 253 | _ = B*(∑ n ∈ Ico (N+1) (2*N+3), (κ*B)^n) := by |
| 254 | rw [mul_sum] |
| 255 | apply sum_congr rfl |
| 256 | intro n _ |
| 257 | simp only [pow_succ,mul_pow] |
| 258 | ring |
| 259 | _ ≤ B*(2*(κ*B)^(N+1)) := mul_le_mul_of_nonneg_left |
| 260 | (EulerPacketTailBound.sum_geometric_Ico_le (κ*B) (mul_nonneg hκ hB) hsmall _ _) hB |
| 261 | _ = _ := by ring |
| 262 | |
| 263 | variable {P T : ℝ} [Fact (0 < P)] {O : Operators} {N : ℕ} {a : ℕ → Profile} |
| 264 | |
| 265 | theorem PrefixFields.tailSum_bound_of_grades (F : PrefixFields P T (N+1) a) |
| 266 | (C : CoefficientData P T O) (hT : 0 < T) {corrector_t : VectorField} |
| 267 | (Ct : Field P T corrector_t) |
| 268 | (hCt : TimeDerivative hT.le (F.corrector N (by omega)) Ct) |
| 269 | (pressure : Field P T (pressureGradient (a N).highPressure)) (ha : a 0=0) |
| 270 | (q : ℕ) (R κ B : ℝ) (hR : 0 ≤ R) (hκ : 0 ≤ κ) (hB : 0 ≤ B) |
| 271 | (hsmall : κ*B ≤ 1/2) |
| 272 | (hgrade : ∀ n (hn : N+1 ≤ n), n ≤ 2*N+2 → |
| 273 | (F.tailGradeField C hT Ct hCt pressure ha n hn).WordBound q R (B^(n+1)) 0) : |
| 274 | (F.tailSumField C hT Ct hCt pressure ha κ).WordBound q R (2*B*(κ*B)^(N+1)) 0 := by |
| 275 | let W := fun r : {n // n ∈ tailGrades N} => |
| 276 | (F.tailGradeField C hT Ct hCt pressure ha r.1 (Finset.mem_Ico.mp r.2).1).smul (κ^r.1) |
| 277 | have hw : ∀ r ∈ (tailGrades N).attach, |
| 278 | (W r).WordBound q R (κ^r.1*B^(r.1+1)) 0 := by |
| 279 | intro r _ |
| 280 | have hm := Finset.mem_Ico.mp r.2 |
| 281 | have hb := (hgrade r.1 hm.1 (by omega)).smul (κ^r.1) |
| 282 | simpa only [abs_of_nonneg (pow_nonneg hκ r.1)] using hb |
| 283 | have hs := Field.wordBound_finsetSum (tailGrades N).attach _ W |
| 284 | (fun r => κ^r.1*B^(r.1+1)) hw |
| 285 | have hsum : (∑ r ∈ (tailGrades N).attach, κ^r.1*B^(r.1+1)) = |
| 286 | ∑ n ∈ tailGrades N, κ^n*B^(n+1) := |
| 287 | Finset.sum_attach (tailGrades N) (fun n => κ^n*B^(n+1)) |
| 288 | rw [hsum] at hs |
| 289 | exact (hs.mono_amplitude hR (weighted_tail_sum_le κ B hκ hB hsmall N)).of_path_eq |
| 290 | (F.tailSumField C hT Ct hCt pressure ha κ) rfl |
| 291 | |
| 292 | end EulerPacketCylinderField |
| 293 | end |
| 294 | |
| 295 | end |
| 296 | |
| 297 | /-! ## From `Euler/PacketConvolutionBounds.lean` |
| 298 | |
| 299 | The text of `Euler/PacketConvolutionBounds.lean`, folded into this file, which was its only importer. -/ |
| 300 | |
| 301 | section |
| 302 | |
| 303 | /-! Fixed-radius word bounds for the actual finite grade convolution. -/ |
| 304 | |
| 305 | noncomputable section |
| 306 | |
| 307 | namespace EulerPacketCylinderField.Field |
| 308 | |
| 309 | open Set Finset EulerPacketProfileRecursion |
| 310 | |
| 311 | variable {P T : ℝ} [Fact (0 < P)] |
| 312 | |
| 313 | theorem wordBound_convolution (M n : ℕ) (f : ℕ → ℕ → VectorField) |
| 314 | (G : ∀ i j, Field P T (f i j)) (q : ℕ) (R A : ℝ) (d : ℕ) |
| 315 | (hR : 0 ≤ R) (hA : 0 ≤ A) |
| 316 | (hG : ∀ i ∈ range (M+1), ∀ j ∈ range (M+1), i+j=n → (G i j).WordBound q R A d) : |
| 317 | (Field.convolution M n f G).WordBound q R (((M+1 : ℕ) : ℝ)^2*A) d := by |
| 318 | classical |
| 319 | let K : ∀ i j, Field P T (if i+j=n then f i j else 0) := fun i j => by |
| 320 | by_cases hij : i+j=n |
| 321 | · exact (G i j).congr (fun _ _ _ => by rw [ite_eq_left hij]) |
| 322 | · exact (Field.zero P T).congr (fun _ _ _ => by rw [ite_eq_right hij]) |
| 323 | have hK : ∀ i ∈ range (M+1), ∀ j ∈ range (M+1), (K i j).WordBound q R A d := by |
| 324 | intro i hi j hj |
| 325 | by_cases hij : i+j=n |
| 326 | · exact (hG i hi j hj hij).of_raw_eq (K i j) (fun _ _ _ => by rw [ite_eq_left hij]) |
| 327 | · exact (wordBound_of_zero (K i j) (fun _ _ _ => by rw [ite_eq_right hij]; rfl) q R d).mono_amplitude hR hA |
| 328 | let row : (i : ℕ) → Field P T (∑ j ∈ range (M+1), if i+j=n then f i j else 0) := fun i => |
| 329 | Field.finsetSum (range (M+1)) (fun j => if i+j=n then f i j else 0) (K i) |
| 330 | have hr : ∀ i ∈ range (M+1), (row i).WordBound q R (((M+1 : ℕ) : ℝ)*A) d := by |
| 331 | intro i hi |
| 332 | have h := wordBound_finsetSum (range (M+1)) (fun j => if i+j=n then f i j else 0) (K i) |
| 333 | (fun _ => A) (hK i hi) |
| 334 | simpa only [sum_const,card_range,nsmul_eq_mul] using h |
| 335 | have ht := wordBound_finsetSum (range (M+1)) |
| 336 | (fun i => ∑ j ∈ range (M+1), if i+j=n then f i j else 0) row |
| 337 | (fun _ => ((M+1 : ℕ) : ℝ)*A) hr |
| 338 | have he : ∑ _i ∈ range (M+1), ((M+1 : ℕ) : ℝ)*A = ((M+1 : ℕ) : ℝ)^2*A := by |
| 339 | simp only [sum_const,card_range,nsmul_eq_mul] |
| 340 | ring |
| 341 | rw [he] at ht |
| 342 | apply ht.of_raw_eq (Field.convolution M n f G) |
| 343 | intro t x θ |
| 344 | simp only [Finset.sum_apply,ite_apply,Pi.zero_apply] |
| 345 | |
| 346 | end EulerPacketCylinderField.Field |
| 347 | end |
| 348 | |
| 349 | end |
| 350 | |
| 351 | /-! ## From `Euler/PacketTailNonlinearBounds.lean` |
| 352 | |
| 353 | The text of `Euler/PacketTailNonlinearBounds.lean`, folded into this file, which was its only importer. -/ |
| 354 | |
| 355 | section |
| 356 | |
| 357 | /-! The complete nonlinear tail is bounded using its actual finite convolution. -/ |
| 358 | |
| 359 | noncomputable section |
| 360 | |
| 361 | namespace EulerPacketCylinderField.PrefixBound |
| 362 | |
| 363 | open Set Finset EulerSmoothLimit EulerPacketPointJets EulerPacketProfileRecursion |
| 364 | EulerPacketTimeProfile EulerParameterWordGevrey |
| 365 | |
| 366 | variable {P T : ℝ} [Fact (0 < P)] {N : ℕ} {a : ℕ → Profile} |
| 367 | {F : PrefixFields P T (N+1) a} {hT : 0 ≤ T} |
| 368 | {S : Scales (Icc (0 : ℝ) T)} {R : ℝ} (B : PrefixBound F hT S R) |
| 369 | {O : Operators} {C : CoefficientData P T O} (BC : CoefficientBudget C) |
| 370 | |
| 371 | include B |
| 372 | |
| 373 | theorem tail_nonlinear_bound (hN : 1 ≤ N) (hR : 1 ≤ R) |
| 374 | (hRc : sobolevCoefficientRadius (Fin 4) BC.Rc ≤ R) |
| 375 | (hc : (a 0).corrector = 0) (hb : (a 1).mean = 0) (n : ℕ) : |
| 376 | (F.tailNonlinearField C n).WordBound 6 R |
| 377 | (18*((N+2 : ℕ) : ℝ)^2*BC.termCost*S.H0^(2*n+2)) (110*(n+1)) := by |
| 378 | let J := F.knownJet O (by omega) |
| 379 | have hA : 0 ≤ 9*BC.termCost*S.H0^(2*n+2) := |
| 380 | mul_nonneg (mul_nonneg (by norm_num) BC.termCost_nonneg) (pow_nonneg S.H0_pos.le _) |
| 381 | have hS := Field.wordBound_convolution (N+1) n |
| 382 | (fun i j z => slowAdvection (O.inverseFrame z) (knownJets O (N+1) a z i) (knownJets O (N+1) a z j)) |
| 383 | (fun i j => SpatialJetField.slowAdvection C.inverse (J i) (J j)) |
| 384 | 6 R (9*BC.termCost*S.H0^(2*n+2)) (110*(n+1)) (zero_le_one.trans hR) hA |
| 385 | (fun i _ j _ hij => B.tail_slow_product_bound BC hN hR hRc hc hb i j n hij) |
| 386 | have hH := Field.wordBound_convolution (N+1) (n+1) |
| 387 | (fun i j z => fastAdvection (O.normal z) (knownJets O (N+1) a z i) (knownJets O (N+1) a z j)) |
| 388 | (fun i j => SpatialJetField.fastAdvection C.normal (J i) (J j)) |
| 389 | 6 R (9*BC.termCost*S.H0^(2*n+2)) (110*(n+1)) (zero_le_one.trans hR) hA |
| 390 | (fun i _ j _ hij => B.tail_fast_product_bound BC hN hR hRc hc hb i j n hij) |
| 391 | have hs := hS.add hH |
| 392 | have he : ((N+1+1 : ℕ) : ℝ)^2*(9*BC.termCost*S.H0^(2*n+2))+ |
| 393 | ((N+1+1 : ℕ) : ℝ)^2*(9*BC.termCost*S.H0^(2*n+2)) = |
| 394 | 18*((N+2 : ℕ) : ℝ)^2*BC.termCost*S.H0^(2*n+2) := by |
| 395 | push_cast |
| 396 | ring |
| 397 | rw [he] at hs |
| 398 | exact hs.of_raw_eq (F.tailNonlinearField C n) (fun _ _ _ => rfl) |
| 399 | |
| 400 | end EulerPacketCylinderField.PrefixBound |
| 401 | end |
| 402 | |
| 403 | end |
| 404 | |
| 405 | /-! ## From `Euler/PacketTailGradeBounds.lean` |
| 406 | |
| 407 | The text of `Euler/PacketTailGradeBounds.lean`, folded into this file, which was its only importer. -/ |
| 408 | |
| 409 | section |
| 410 | |
| 411 | /-! Each surviving grade of the literal packet residual has a fixed-radius estimate. -/ |
| 412 | |
| 413 | noncomputable section |
| 414 | |
| 415 | namespace EulerPacketCylinderField.PrefixBound |
| 416 | |
| 417 | open Set EulerSmoothLimit EulerPacketPointJets EulerPacketProfileRecursion |
| 418 | EulerPacketTimeProfile EulerPacketShiftArithmetic EulerParameterWordGevrey |
| 419 | |
| 420 | variable {P T : ℝ} [Fact (0 < P)] {N : ℕ} {a : ℕ → Profile} |
| 421 | {F : PrefixFields P T (N+1) a} {hT : 0 ≤ T} |
| 422 | {S : Scales (Icc (0 : ℝ) T)} {R : ℝ} (B : PrefixBound F hT S R) |
| 423 | {O : Operators} {C : CoefficientData P T O} (BC : CoefficientBudget C) |
| 424 | |
| 425 | include B |
| 426 | |
| 427 | theorem tail_grade_bound (hTime : 0 < T) (hN : 1 ≤ N) (hR : 1 ≤ R) |
| 428 | (hRc : sobolevCoefficientRadius (Fin 4) BC.Rc ≤ R) |
| 429 | {corrector_t : VectorField} (Ct : Field P T corrector_t) |
| 430 | (hCt : TimeDerivative hTime.le (F.corrector N (by omega)) Ct) |
| 431 | (pressure : Field P T (pressureGradient (a N).highPressure)) |
| 432 | (hCtB : (Ct.normalized hT (S.high N) (S.high_pos N)).WordBound 6 R 1 (highShift N)) |
| 433 | (hpB : (pressure.normalized hT (S.high N) (S.high_pos N)).WordBound 6 R 1 (highShift N)) |
| 434 | (ha : a 0=0) (hb : (a 1).mean=0) (n : ℕ) (hn : N+1 ≤ n) : |
| 435 | (F.tailGradeField C hTime Ct hCt pressure ha n hn).WordBound 6 R |
| 436 | ((1+18*((N+2 : ℕ) : ℝ)^2)*BC.termCost*S.H0^(2*n+2)) (110*(n+1)) := by |
| 437 | have hc : (a 0).corrector=0 := by rw [ha]; rfl |
| 438 | have hL := B.tail_linear_bound BC hTime hN hR hRc Ct hCt pressure hCtB hpB n |
| 439 | have hQ := B.tail_nonlinear_bound BC hN hR hRc hc hb n |
| 440 | have hs := hL.add hQ |
| 441 | have he : BC.termCost*S.H0^(2*n+2)+18*((N+2 : ℕ) : ℝ)^2*BC.termCost*S.H0^(2*n+2) = |
| 442 | (1+18*((N+2 : ℕ) : ℝ)^2)*BC.termCost*S.H0^(2*n+2) := by ring |
| 443 | rw [he] at hs |
| 444 | exact hs.of_path_eq (F.tailGradeField C hTime Ct hCt pressure ha n hn) |
| 445 | (F.tailGradeField_path C hTime Ct hCt pressure ha n hn) |
| 446 | |
| 447 | end EulerPacketCylinderField.PrefixBound |
| 448 | end |
| 449 | |
| 450 | end |
| 451 | |
| 452 | /-! ## From `Euler/PacketProfileTailGrade.lean` |
| 453 | |
| 454 | The text of `Euler/PacketProfileTailGrade.lean`, folded into this file, which was its only importer. -/ |
| 455 | |
| 456 | section |
| 457 | |
| 458 | /-! Uniform profile budgets bound each literal residual grade of the finite packet. -/ |
| 459 | |
| 460 | noncomputable section |
| 461 | |
| 462 | namespace EulerPacketCylinderField.ProfileRegularity |
| 463 | |
| 464 | open Set EulerSmoothLimit EulerPacketProfileRecursion EulerPacketTimeProfile |
| 465 | EulerParameterWordGevrey |
| 466 | |
| 467 | variable {P T : ℝ} [Fact (0 < P)] {N : ℕ} {a : ℕ → Profile} {support : Set Space} |
| 468 | (hT : 0 < T) (G : ∀ i, i ≤ N → ProfileRegularity P T hT.le support (a i)) |
| 469 | {S : Scales (Icc (0 : ℝ) T)} {R : ℝ} |
| 470 | |
| 471 | theorem prefixThrough_bound |
| 472 | (hG : ∀ i (hi : i ≤ N), 1 ≤ i → ProfileBudget (G i hi) S R i) : |
| 473 | PrefixBound (prefixThrough hT G) hT.le S R where |
| 474 | high i hi hip := (hG i (by omega) hip).high |
| 475 | mean i hi hip := (hG i (by omega) (by omega)).mean |
| 476 | corrector i hi hip := (hG i (by omega) hip).corrector |
| 477 | |
| 478 | variable {O : Operators} {C : CoefficientData P T O} (BC : CoefficientBudget C) |
| 479 | |
| 480 | theorem tail_grade_bound |
| 481 | (hG : ∀ i (hi : i ≤ N), 1 ≤ i → ProfileBudget (G i hi) S R i) |
| 482 | (hN : 1 ≤ N) (hR : 1 ≤ R) (hRc : sobolevCoefficientRadius (Fin 4) BC.Rc ≤ R) |
| 483 | (ha : a 0=0) (hb : (a 1).mean=0) (n : ℕ) (hn : N+1 ≤ n) : |
| 484 | (tailGradeField hT G C ha n hn).WordBound 6 R |
| 485 | ((1+18*((N+2 : ℕ) : ℝ)^2)*BC.termCost*S.H0^(2*n+2)) (110*(n+1)) := |
| 486 | (prefixThrough_bound hT G hG).tail_grade_bound BC hT hN hR hRc |
| 487 | (G N le_rfl).correctorDerivative (G N le_rfl).corrector_time (G N le_rfl).pressure |
| 488 | (hG N le_rfl hN).correctorDerivative (hG N le_rfl hN).pressure ha hb n hn |
| 489 | |
| 490 | end EulerPacketCylinderField.ProfileRegularity |
| 491 | end |
| 492 | |
| 493 | end |
| 494 | |
| 495 | noncomputable section |
| 496 | |
| 497 | namespace EulerPacketCylinderField.ProfileRegularity |
| 498 | |
| 499 | open Set EulerSmoothLimit EulerPacketProfileRecursion EulerPacketTimeProfile |
| 500 | EulerParameterWordGevrey EulerPacketCoarseMajorant |
| 501 | |
| 502 | variable {P T : ℝ} [Fact (0 < P)] {N : ℕ} {a : ℕ → Profile} {support : Set Space} |
| 503 | (hT : 0 < T) (G : ∀ i, i ≤ N → ProfileRegularity P T hT.le support (a i)) |
| 504 | {S : Scales (Icc (0 : ℝ) T)} {R : ℝ} |
| 505 | {O : Operators} {C : CoefficientData P T O} (BC : CoefficientBudget C) |
| 506 | |
| 507 | theorem tail_grade_coarse_bound |
| 508 | (hG : ∀ i (hi : i ≤ N), 1 ≤ i → ProfileBudget (G i hi) S R i) |
| 509 | (hN : 1 ≤ N) (hR : 1 ≤ R) (hRc : sobolevCoefficientRadius (Fin 4) BC.Rc ≤ R) |
| 510 | (ha : a 0=0) (hb : (a 1).mean=0) (n : ℕ) (hn : N+1 ≤ n) (hn' : n ≤ 2*N+2) : |
| 511 | (tailGradeField hT G C ha n hn).WordBound 6 (4*R) |
| 512 | ((tailBase R S.H0 BC.termCost N)^(n+1)) 0 := by |
| 513 | have h := tail_grade_bound hT G BC hG hN hR hRc ha hb n hn |
| 514 | have hA : 0 ≤ (1+18*((N+2 : ℕ) : ℝ)^2)*BC.termCost*S.H0^(2*n+2) := |
| 515 | mul_nonneg (mul_nonneg (by positivity) BC.termCost_nonneg) (pow_nonneg S.H0_pos.le _) |
| 516 | have hc := h.coarse_grade hR hA N n hN hn' le_rfl |
| 517 | exact hc.mono_amplitude (by linarith) |
| 518 | (tailBase_absorption R S.H0 BC.termCost BC.termCost_nonneg N n) |
| 519 | |
| 520 | theorem tail_sum_bound |
| 521 | (hG : ∀ i (hi : i ≤ N), 1 ≤ i → ProfileBudget (G i hi) S R i) |
| 522 | (hN : 1 ≤ N) (hR : 1 ≤ R) (hRc : sobolevCoefficientRadius (Fin 4) BC.Rc ≤ R) |
| 523 | (ha : a 0=0) (hb : (a 1).mean=0) (κ : ℝ) (hκ : 0 ≤ κ) |
| 524 | (hsmall : κ*tailBase R S.H0 BC.termCost N ≤ 1/2) : |
| 525 | (tailSumField hT G C ha κ).WordBound 6 (4*R) |
| 526 | (2*tailBase R S.H0 BC.termCost N*(κ*tailBase R S.H0 BC.termCost N)^(N+1)) 0 := |
| 527 | (prefixThrough hT G).tailSum_bound_of_grades C hT |
| 528 | (G N le_rfl).correctorDerivative (G N le_rfl).corrector_time (G N le_rfl).pressure ha |
| 529 | 6 (4*R) κ (tailBase R S.H0 BC.termCost N) (by linarith) hκ |
| 530 | (tailBase_nonneg R S.H0 BC.termCost BC.termCost_nonneg N) hsmall |
| 531 | (fun n hn hn' => tail_grade_coarse_bound hT G BC hG hN hR hRc ha hb n hn hn') |
| 532 | |
| 533 | theorem normalized_tail_bound |
| 534 | (hG : ∀ i (hi : i ≤ N), 1 ≤ i → ProfileBudget (G i hi) S R i) |
| 535 | (hN : 1 ≤ N) (hR : 1 ≤ R) (hRc : sobolevCoefficientRadius (Fin 4) BC.Rc ≤ R) |
| 536 | (ha : a 0=0) (hb : (a 1).mean=0) (k X : ℝ) (hk : 4 ≤ k) |
| 537 | (hbase : tailBase R S.H0 BC.termCost N ≤ k^(1/100 : ℝ)) |
| 538 | (hcoef : BC.multiplierCost ≤ k^(1/100 : ℝ)) |
| 539 | (hX : 6 ≤ X) (hNX : X-1 ≤ (N : ℝ)) : |
| 540 | ((C.inverse.multiply (tailSumField hT G C ha k⁻¹)).smul k).WordBound 6 (4*R) |
| 541 | (Real.exp (-(7/10)*X*Real.log k)) 0 := by |
| 542 | have hk0 : 0 ≤ k := by linarith |
| 543 | have hsmall : k⁻¹*tailBase R S.H0 BC.termCost N ≤ 1/2 := by |
| 544 | simpa only [div_eq_mul_inv,mul_comm] using |
| 545 | EulerPacketTailBound.grade_ratio_le_half k (tailBase R S.H0 BC.termCost N) hk hbase |
| 546 | have hsum := tail_sum_bound hT G BC hG hN hR hRc ha hb k⁻¹ (inv_nonneg.mpr hk0) hsmall |
| 547 | exact BC.normalized_tail_exponential (tailSumField hT G C ha k⁻¹) N hsum |
| 548 | (hRc.trans (by linarith)) (by linarith) hk |
| 549 | (tailBase_nonneg R S.H0 BC.termCost BC.termCost_nonneg N) hbase hcoef hX hNX |
| 550 | |
| 551 | end EulerPacketCylinderField.ProfileRegularity |