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.PacketKnownTermFields |
| 2 | import Euler.PacketKnownDecomposition |
| 3 | import Euler.PacketKnownPieceScales |
| 4 | import Euler.PacketKnownPieceBounds |
| 5 | import Euler.PacketCylinderLinearTermBudget |
| 6 | |
| 7 | /-! Same-radius estimates for the fifteen actual forcing families, before and after angular projection. -/ |
| 8 | |
| 9 | /-! ## From `Euler/PacketMaskedProductBounds.lean` |
| 10 | |
| 11 | The text of `Euler/PacketMaskedProductBounds.lean`, folded into this file, which was its only importer. -/ |
| 12 | |
| 13 | section |
| 14 | |
| 15 | /-! Bounds on the actual masked slow and fast products, with zero terms charged no shifts. -/ |
| 16 | |
| 17 | noncomputable section |
| 18 | |
| 19 | namespace EulerPacketCylinderField.PrefixBound |
| 20 | |
| 21 | open Set EulerSmoothLimit EulerPacketPointJets EulerPacketProfileRecursion |
| 22 | EulerPacketTimeProfile EulerParameterWordGevrey |
| 23 | |
| 24 | variable {P T : ℝ} [Fact (0 < P)] {p : ℕ} {a : ℕ → Profile} |
| 25 | {F : PrefixFields P T p a} {hT : 0 ≤ T} {S : Scales (Icc (0 : ℝ) T)} {R : ℝ} |
| 26 | (BF : PrefixBound F hT S R) {O : Operators} {C : CoefficientData P T O} (BC : CoefficientBudget C) |
| 27 | |
| 28 | include BF |
| 29 | |
| 30 | theorem maskedSlow_bound (l r : KnownPiece) (i j n : ℕ) {raw : VectorField} (W : Field P T raw) |
| 31 | (he : ∀ (t : Icc (0 : ℝ) T) x θ, raw (t,(x,θ)) = if i+j=n then |
| 32 | slowAdvection (O.inverseFrame (t,(x,θ))) (l.jet O p a (t,(x,θ)) i) (r.jet O p a (t,(x,θ)) j) else 0) |
| 33 | (b : C(Icc (0 : ℝ) T,ℝ)) (hb : ∀ t, 0 < b t) |
| 34 | (hR : 0 ≤ R) (hRc : sobolevCoefficientRadius (Fin 4) BC.Rc ≤ R) |
| 35 | (hprofile : i+j=n → l.active p i → r.active p j → |
| 36 | ∀ t, l.profile S i t*r.profile S j t ≤ b t) : |
| 37 | (W.normalized hT b hb).WordBound 6 R BC.slowCost |
| 38 | (if i+j=n ∧ l.active p i ∧ r.active p j then l.shift i+r.shift j+1 else 0) := by |
| 39 | by_cases hactive : i+j=n ∧ l.active p i ∧ r.active p j |
| 40 | · have hbound := BC.slow_bound (F.pieceJet O l i) (F.pieceJet O r j) hT |
| 41 | (l.profile S i) (r.profile S j) b (l.profile_pos S i) (r.profile_pos S j) hb |
| 42 | (BF.pieceJet hR O l i) (BF.pieceJet hR O r j) hR hRc |
| 43 | (hprofile hactive.1 hactive.2.1 hactive.2.2) |
| 44 | have ht := hbound.normalized_of_raw_eq W hT b hb (fun t x θ => by |
| 45 | rw [he t x θ,ite_eq_left hactive.1]) |
| 46 | simpa only [ite_eq_left hactive] using ht |
| 47 | · have hz : ∀ (t : Icc (0 : ℝ) T) x θ, raw (t,(x,θ)) = 0 := by |
| 48 | intro t x θ |
| 49 | rw [he t x θ] |
| 50 | by_cases hn : i+j=n |
| 51 | · rw [ite_eq_left hn] |
| 52 | by_cases hl : l.active p i |
| 53 | · have hr : ¬ r.active p j := fun hr => hactive ⟨hn,hl,hr⟩ |
| 54 | rw [r.jet_zero_of_inactive O p a (t,(x,θ)) j hr,map_zero] |
| 55 | · rw [l.jet_zero_of_inactive O p a (t,(x,θ)) i hl,map_zero,LinearMap.zero_apply] |
| 56 | · rw [ite_eq_right hn] |
| 57 | have ht := (Field.wordBound_normalized_of_zero W hz hT b hb 6 R 0).mono_amplitude hR BC.slowCost_nonneg |
| 58 | simpa only [ite_eq_right hactive] using ht |
| 59 | |
| 60 | theorem maskedFast_bound (l r : KnownPiece) (i j n : ℕ) {raw : VectorField} (W : Field P T raw) |
| 61 | (he : ∀ (t : Icc (0 : ℝ) T) x θ, raw (t,(x,θ)) = if i+j=n then |
| 62 | fastAdvection (O.normal (t,(x,θ))) (l.jet O p a (t,(x,θ)) i) (r.jet O p a (t,(x,θ)) j) else 0) |
| 63 | (b : C(Icc (0 : ℝ) T,ℝ)) (hb : ∀ t, 0 < b t) |
| 64 | (hR : 0 ≤ R) (hRc : sobolevCoefficientRadius (Fin 4) BC.Rc ≤ R) |
| 65 | (hprofile : i+j=n → l.active p i → r.active p j → |
| 66 | ∀ t, l.profile S i t*r.profile S j t ≤ b t) : |
| 67 | (W.normalized hT b hb).WordBound 6 R BC.fastCost |
| 68 | (if i+j=n ∧ l.active p i ∧ r.active p j then l.shift i+r.shift j+1 else 0) := by |
| 69 | by_cases hactive : i+j=n ∧ l.active p i ∧ r.active p j |
| 70 | · have hbound := BC.fast_bound (F.pieceJet O l i) (F.pieceJet O r j) hT |
| 71 | (l.profile S i) (r.profile S j) b (l.profile_pos S i) (r.profile_pos S j) hb |
| 72 | (BF.pieceJet hR O l i) (BF.pieceJet hR O r j) hR hRc |
| 73 | (hprofile hactive.1 hactive.2.1 hactive.2.2) |
| 74 | have ht := hbound.normalized_of_raw_eq W hT b hb (fun t x θ => by |
| 75 | rw [he t x θ,ite_eq_left hactive.1]) |
| 76 | simpa only [ite_eq_left hactive] using ht |
| 77 | · have hz : ∀ (t : Icc (0 : ℝ) T) x θ, raw (t,(x,θ)) = 0 := by |
| 78 | intro t x θ |
| 79 | rw [he t x θ] |
| 80 | by_cases hn : i+j=n |
| 81 | · rw [ite_eq_left hn] |
| 82 | by_cases hl : l.active p i |
| 83 | · have hr : ¬ r.active p j := fun hr => hactive ⟨hn,hl,hr⟩ |
| 84 | rw [r.jet_zero_of_inactive O p a (t,(x,θ)) j hr,map_zero] |
| 85 | · rw [l.jet_zero_of_inactive O p a (t,(x,θ)) i hl,map_zero,LinearMap.zero_apply] |
| 86 | · rw [ite_eq_right hn] |
| 87 | have ht := (Field.wordBound_normalized_of_zero W hz hT b hb 6 R 0).mono_amplitude hR BC.fastCost_nonneg |
| 88 | simpa only [ite_eq_right hactive] using ht |
| 89 | |
| 90 | end EulerPacketCylinderField.PrefixBound |
| 91 | end |
| 92 | |
| 93 | end |
| 94 | |
| 95 | /-! ## From `Euler/PacketKnownTermScales.lean` |
| 96 | |
| 97 | The text of `Euler/PacketKnownTermScales.lean`, folded into this file, which was its only importer. -/ |
| 98 | |
| 99 | section |
| 100 | |
| 101 | /-! Every nonzero known summand fits strictly below its target forcing shift. -/ |
| 102 | |
| 103 | namespace EulerPacketCylinderField.KnownTerm |
| 104 | |
| 105 | open EulerPacketShiftArithmetic |
| 106 | |
| 107 | def budgetShift (k : KnownTerm) (p i j : ℕ) : ℕ := |
| 108 | match k with |
| 109 | | .previousLinear | .previousPressure => if i=0 ∧ j=0 then highShift (p-1) else 0 |
| 110 | | .slow l r => if i+j=p ∧ l.active p i ∧ r.active p j then l.shift i+r.shift j+1 else 0 |
| 111 | | .fastMeanHigh => |
| 112 | if i+j=p+1 ∧ KnownPiece.mean.active p i ∧ KnownPiece.high.active p j then |
| 113 | KnownPiece.mean.shift i+KnownPiece.high.shift j+1 else 0 |
| 114 | | .fastMeanCorrector => |
| 115 | if i+j=p+1 ∧ KnownPiece.mean.active p i ∧ KnownPiece.corrector.active p j then |
| 116 | KnownPiece.mean.shift i+KnownPiece.corrector.shift j+1 else 0 |
| 117 | | .fastCorrectorHigh => |
| 118 | if i+j=p+1 ∧ KnownPiece.corrector.active p i ∧ KnownPiece.high.active p j then |
| 119 | KnownPiece.corrector.shift i+KnownPiece.high.shift j+1 else 0 |
| 120 | | .fastCorrectorCorrector => |
| 121 | if i+j=p+1 ∧ KnownPiece.corrector.active p i ∧ KnownPiece.corrector.active p j then |
| 122 | KnownPiece.corrector.shift i+KnownPiece.corrector.shift j+1 else 0 |
| 123 | |
| 124 | private theorem previous_shift_lt (p : ℕ) (hp : 2 ≤ p) : highShift (p-1) < meanForceShift p := by |
| 125 | have h := previous_linear_room p hp |
| 126 | omega |
| 127 | |
| 128 | theorem budgetShift_lt_mean (k : KnownTerm) (p i j : ℕ) (hp : 2 ≤ p) |
| 129 | (hk : k.zeroMean = false) : k.budgetShift p i j < meanForceShift p := by |
| 130 | have hpos : 0 < meanForceShift p := by have h := force_shift_dominates_grade p hp; omega |
| 131 | cases k with |
| 132 | | previousLinear => |
| 133 | simp only [budgetShift] |
| 134 | split_ifs <;> first | exact previous_shift_lt p hp | exact hpos |
| 135 | | previousPressure => |
| 136 | simp only [budgetShift] |
| 137 | split_ifs <;> first | exact previous_shift_lt p hp | exact hpos |
| 138 | | slow l r => |
| 139 | simp only [budgetShift] |
| 140 | split_ifs with h |
| 141 | · exact KnownPiece.slow_shift_room l r i j p (l.active_one_le p i h.2.1) |
| 142 | (r.active_one_le p j h.2.2) h.1 |
| 143 | · exact hpos |
| 144 | | fastMeanHigh => simp [zeroMean] at hk |
| 145 | | fastMeanCorrector => simp [zeroMean] at hk |
| 146 | | fastCorrectorHigh => |
| 147 | simp only [budgetShift] |
| 148 | split_ifs with h |
| 149 | · exact KnownPiece.fast_corrector_shift_room .high i j p h.2.1.1 h.2.2.1 h.1 |
| 150 | · exact hpos |
| 151 | | fastCorrectorCorrector => |
| 152 | simp only [budgetShift] |
| 153 | split_ifs with h |
| 154 | · exact KnownPiece.fast_corrector_shift_room .corrector i j p h.2.1.1 |
| 155 | (KnownPiece.active_one_le .corrector p j h.2.2) h.1 |
| 156 | · exact hpos |
| 157 | |
| 158 | theorem budgetShift_lt_high (k : KnownTerm) (p i j : ℕ) (hp : 2 ≤ p) : |
| 159 | k.budgetShift p i j < highForceShift p := by |
| 160 | by_cases hk : k.zeroMean = false |
| 161 | · exact lt_of_lt_of_le (k.budgetShift_lt_mean p i j hp hk) (mean_force_le_high_force p) |
| 162 | have hpos : 0 < highForceShift p := by have h := force_shift_dominates_grade p hp; omega |
| 163 | cases k <;> simp only [zeroMean, not_true_eq_false] at hk |
| 164 | all_goals simp only [budgetShift] |
| 165 | all_goals split_ifs with h |
| 166 | · exact KnownPiece.fast_mean_shift_room .high i j p h.2.1.1 h.2.2.1 h.1 |
| 167 | · exact hpos |
| 168 | · exact KnownPiece.fast_mean_shift_room .corrector i j p h.2.1.1 |
| 169 | (KnownPiece.active_one_le .corrector p j h.2.2) h.1 |
| 170 | · exact hpos |
| 171 | |
| 172 | end EulerPacketCylinderField.KnownTerm |
| 173 | |
| 174 | end |
| 175 | |
| 176 | /-! ## From `Euler/PacketKnownTermProfiles.lean` |
| 177 | |
| 178 | The text of `Euler/PacketKnownTermProfiles.lean`, folded into this file, which was its only importer. -/ |
| 179 | |
| 180 | section |
| 181 | |
| 182 | /-! The time-profile inequalities for every surviving term of the mean and high forces. -/ |
| 183 | |
| 184 | namespace EulerPacketCylinderField.KnownTerm |
| 185 | |
| 186 | open EulerPacketTimeProfile |
| 187 | |
| 188 | variable {K : Type*} [TopologicalSpace K] |
| 189 | |
| 190 | def ProfileFits (k : KnownTerm) (S : Scales K) (p i j : ℕ) (b : C(K,ℝ)) : Prop := |
| 191 | match k with |
| 192 | | .previousLinear | .previousPressure => ∀ t, S.high (p-1) t ≤ b t |
| 193 | | .slow l r => i+j=p → l.active p i → r.active p j → |
| 194 | ∀ t, l.profile S i t*r.profile S j t ≤ b t |
| 195 | | .fastMeanHigh => i+j=p+1 → KnownPiece.mean.active p i → KnownPiece.high.active p j → |
| 196 | ∀ t, KnownPiece.mean.profile S i t*KnownPiece.high.profile S j t ≤ b t |
| 197 | | .fastMeanCorrector => i+j=p+1 → KnownPiece.mean.active p i → KnownPiece.corrector.active p j → |
| 198 | ∀ t, KnownPiece.mean.profile S i t*KnownPiece.corrector.profile S j t ≤ b t |
| 199 | | .fastCorrectorHigh => i+j=p+1 → KnownPiece.corrector.active p i → KnownPiece.high.active p j → |
| 200 | ∀ t, KnownPiece.corrector.profile S i t*KnownPiece.high.profile S j t ≤ b t |
| 201 | | .fastCorrectorCorrector => i+j=p+1 → KnownPiece.corrector.active p i → KnownPiece.corrector.active p j → |
| 202 | ∀ t, KnownPiece.corrector.profile S i t*KnownPiece.corrector.profile S j t ≤ b t |
| 203 | |
| 204 | theorem mean_profile_fits (k : KnownTerm) (S : Scales K) (p i j : ℕ) |
| 205 | (hp : 2 ≤ p) (hk : k.zeroMean = false) : k.ProfileFits S p i j (S.mean p) := by |
| 206 | cases k with |
| 207 | | previousLinear => exact S.previous_linear_mean_bound p hp |
| 208 | | previousPressure => exact S.previous_linear_mean_bound p hp |
| 209 | | slow l r => |
| 210 | intro hn hl hr |
| 211 | exact KnownPiece.slow_profile_mean l r S i j p |
| 212 | (l.active_one_le p i hl) (r.active_one_le p j hr) hn |
| 213 | | fastMeanHigh => simp [zeroMean] at hk |
| 214 | | fastMeanCorrector => simp [zeroMean] at hk |
| 215 | | fastCorrectorHigh => |
| 216 | intro hn hl hr |
| 217 | exact KnownPiece.fast_corrector_profile_mean .high S i j p (by decide) hl.1 hr.1 hn |
| 218 | | fastCorrectorCorrector => |
| 219 | intro hn hl hr |
| 220 | exact KnownPiece.fast_corrector_profile_mean .corrector S i j p (by decide) hl.1 |
| 221 | (KnownPiece.active_one_le .corrector p j hr) hn |
| 222 | |
| 223 | theorem high_profile_fits (k : KnownTerm) (S : Scales K) (p i j : ℕ) |
| 224 | (hk : k.meanOnly = false) : k.ProfileFits S p i j (S.high p) := by |
| 225 | cases k with |
| 226 | | previousLinear => exact S.high_mono (Nat.sub_le p 1) |
| 227 | | previousPressure => exact S.high_mono (Nat.sub_le p 1) |
| 228 | | slow l r => |
| 229 | have hnot : ¬ (l = .mean ∧ r = .mean) := by |
| 230 | rintro ⟨rfl,rfl⟩ |
| 231 | simp [meanOnly] at hk |
| 232 | intro hn hl hr |
| 233 | exact KnownPiece.slow_profile_high l r S i j p |
| 234 | (l.active_one_le p i hl) (r.active_one_le p j hr) hn hnot |
| 235 | | fastMeanHigh => |
| 236 | intro hn hl hr |
| 237 | exact KnownPiece.fast_mean_profile_high .high S i j p (by decide) |
| 238 | (KnownPiece.active_one_le .mean p i hl) hr.1 hn |
| 239 | | fastMeanCorrector => |
| 240 | intro hn hl hr |
| 241 | exact KnownPiece.fast_mean_profile_high .corrector S i j p (by decide) |
| 242 | (KnownPiece.active_one_le .mean p i hl) (KnownPiece.active_one_le .corrector p j hr) hn |
| 243 | | fastCorrectorHigh => |
| 244 | intro hn hl hr |
| 245 | exact KnownPiece.fast_corrector_profile_high .high S i j p (by decide) hl.1 hr.1 hn |
| 246 | | fastCorrectorCorrector => |
| 247 | intro hn hl hr |
| 248 | exact KnownPiece.fast_corrector_profile_high .corrector S i j p (by decide) hl.1 |
| 249 | (KnownPiece.active_one_le .corrector p j hr) hn |
| 250 | |
| 251 | end EulerPacketCylinderField.KnownTerm |
| 252 | |
| 253 | end |
| 254 | |
| 255 | noncomputable section |
| 256 | |
| 257 | namespace EulerPacketCylinderField |
| 258 | |
| 259 | open Set EulerSmoothLimit EulerPacketPointJets EulerPacketProfileRecursion |
| 260 | EulerPacketTimeProfile EulerPacketShiftArithmetic EulerParameterWordGevrey |
| 261 | |
| 262 | namespace KnownTerm |
| 263 | |
| 264 | variable {P T : ℝ} [Fact (0 < P)] {O : Operators} {C : CoefficientData P T O} |
| 265 | |
| 266 | def amplitude (k : KnownTerm) (B : CoefficientBudget C) : ℝ := |
| 267 | match k with |
| 268 | | .previousLinear => B.linearCost |
| 269 | | .previousPressure => B.multiplierCost |
| 270 | | .slow _ _ => B.slowCost |
| 271 | | _ => B.fastCost |
| 272 | |
| 273 | theorem amplitude_nonneg (k : KnownTerm) (B : CoefficientBudget C) : 0 ≤ k.amplitude B := by |
| 274 | cases k <;> first |
| 275 | | exact B.linearCost_nonneg |
| 276 | | exact B.multiplierCost_nonneg |
| 277 | | exact B.slowCost_nonneg |
| 278 | | exact B.fastCost_nonneg |
| 279 | |
| 280 | theorem twice_amplitude_le (k : KnownTerm) (B : CoefficientBudget C) : |
| 281 | 2*k.amplitude B ≤ B.termCost := by |
| 282 | cases k <;> first |
| 283 | | exact B.twice_linearCost_le |
| 284 | | exact B.twice_multiplierCost_le |
| 285 | | exact B.twice_slowCost_le |
| 286 | | exact B.twice_fastCost_le |
| 287 | |
| 288 | theorem amplitude_le (k : KnownTerm) (B : CoefficientBudget C) : k.amplitude B ≤ B.termCost := by |
| 289 | have h := k.twice_amplitude_le B |
| 290 | have h0 := k.amplitude_nonneg B |
| 291 | linarith |
| 292 | |
| 293 | def meanBudgetShift (k : KnownTerm) (p i j : ℕ) : ℕ := if k.zeroMean then 0 else k.budgetShift p i j |
| 294 | |
| 295 | theorem meanBudgetShift_lt (k : KnownTerm) (p i j : ℕ) (hp : 2 ≤ p) : |
| 296 | k.meanBudgetShift p i j < meanForceShift p := by |
| 297 | by_cases hz : k.zeroMean = true |
| 298 | · simp only [meanBudgetShift,ite_eq_left hz] |
| 299 | have h := force_shift_dominates_grade p hp |
| 300 | omega |
| 301 | · simp only [meanBudgetShift,ite_eq_right hz] |
| 302 | exact k.budgetShift_lt_mean p i j hp (Bool.eq_false_of_not_eq_true hz) |
| 303 | |
| 304 | end KnownTerm |
| 305 | |
| 306 | namespace PrefixBound |
| 307 | |
| 308 | variable {P T : ℝ} [Fact (0 < P)] {p : ℕ} {a : ℕ → Profile} |
| 309 | {F : PrefixFields P T p a} {O : Operators} {C : CoefficientData P T O} |
| 310 | (hp : 2 ≤ p) (hT : 0 < T) {corrector_t : VectorField} (Ct : Field P T corrector_t) |
| 311 | (hCt : TimeDerivative hT.le (F.corrector (p-1) (by omega)) Ct) |
| 312 | (pressure : Field P T (pressureGradient (a (p-1)).highPressure)) |
| 313 | {S : Scales (Icc (0 : ℝ) T)} {R : ℝ} |
| 314 | (BF : PrefixBound F hT.le S R) (BC : CoefficientBudget C) |
| 315 | (hCtBound : (Ct.normalized hT.le (S.high (p-1)) (S.high_pos (p-1))).WordBound 6 R 1 (highShift (p-1))) |
| 316 | (hPressureBound : (pressure.normalized hT.le (S.high (p-1)) (S.high_pos (p-1))).WordBound 6 R 1 |
| 317 | (highShift (p-1))) |
| 318 | (hR : 0 ≤ R) (hRc : sobolevCoefficientRadius (Fin 4) BC.Rc ≤ R) |
| 319 | |
| 320 | include BF hCtBound hPressureBound hR hRc |
| 321 | |
| 322 | theorem raw_term_bound (k : KnownTerm) (i j : ℕ) |
| 323 | (b : C(Icc (0 : ℝ) T,ℝ)) (hb : ∀ t, 0 < b t) (hprofile : k.ProfileFits S p i j b) : |
| 324 | ((F.termField C (by omega) hT Ct hCt pressure k i j).normalized hT.le b hb).WordBound |
| 325 | 6 R (k.amplitude BC) (k.budgetShift p i j) := by |
| 326 | cases k with |
| 327 | | previousLinear => |
| 328 | by_cases hij : i=0 ∧ j=0 |
| 329 | · have hbound := BC.previousLinear_bound hT S p b hb (F.corrector (p-1) (by omega)) Ct hCt |
| 330 | (BF.corrector (p-1) (by omega) (by omega)) hCtBound hRc hprofile |
| 331 | have ht := hbound.normalized_of_raw_eq (F.termField C (by omega) hT Ct hCt pressure .previousLinear i j) |
| 332 | hT.le b hb (fun t x θ => by simp only [KnownTerm.raw,ite_eq_left hij]) |
| 333 | simpa only [KnownTerm.amplitude,KnownTerm.budgetShift,ite_eq_left hij] using ht |
| 334 | · have hz : ∀ (t : Icc (0 : ℝ) T) x θ, KnownTerm.previousLinear.raw O p a i j (t,(x,θ)) = 0 := by |
| 335 | intro t x θ |
| 336 | simp only [KnownTerm.raw,ite_eq_right hij] |
| 337 | have ht := (Field.wordBound_normalized_of_zero |
| 338 | (F.termField C (by omega) hT Ct hCt pressure .previousLinear i j) hz hT.le b hb 6 R 0).mono_amplitude |
| 339 | hR BC.linearCost_nonneg |
| 340 | simpa only [KnownTerm.amplitude,KnownTerm.budgetShift,ite_eq_right hij] using ht |
| 341 | | previousPressure => |
| 342 | by_cases hij : i=0 ∧ j=0 |
| 343 | · have hbound := BC.previousPressure_bound hT S p b hb (a (p-1)).highPressure pressure |
| 344 | hPressureBound hRc hprofile |
| 345 | have ht := hbound.normalized_of_raw_eq (F.termField C (by omega) hT Ct hCt pressure .previousPressure i j) |
| 346 | hT.le b hb (fun t x θ => by simp only [KnownTerm.raw,ite_eq_left hij]) |
| 347 | simpa only [KnownTerm.amplitude,KnownTerm.budgetShift,ite_eq_left hij] using ht |
| 348 | · have hz : ∀ (t : Icc (0 : ℝ) T) x θ, KnownTerm.previousPressure.raw O p a i j (t,(x,θ)) = 0 := by |
| 349 | intro t x θ |
| 350 | simp only [KnownTerm.raw,ite_eq_right hij] |
| 351 | have ht := (Field.wordBound_normalized_of_zero |
| 352 | (F.termField C (by omega) hT Ct hCt pressure .previousPressure i j) hz hT.le b hb 6 R 0).mono_amplitude |
| 353 | hR BC.multiplierCost_nonneg |
| 354 | simpa only [KnownTerm.amplitude,KnownTerm.budgetShift,ite_eq_right hij] using ht |
| 355 | | slow l r => |
| 356 | exact BF.maskedSlow_bound BC l r i j p (F.termField C (by omega) hT Ct hCt pressure (.slow l r) i j) |
| 357 | (fun _ _ _ => rfl) b hb hR hRc hprofile |
| 358 | | fastMeanHigh => |
| 359 | exact BF.maskedFast_bound BC .mean .high i j (p+1) |
| 360 | (F.termField C (by omega) hT Ct hCt pressure .fastMeanHigh i j) |
| 361 | (fun _ _ _ => rfl) b hb hR hRc hprofile |
| 362 | | fastMeanCorrector => |
| 363 | exact BF.maskedFast_bound BC .mean .corrector i j (p+1) |
| 364 | (F.termField C (by omega) hT Ct hCt pressure .fastMeanCorrector i j) |
| 365 | (fun _ _ _ => rfl) b hb hR hRc hprofile |
| 366 | | fastCorrectorHigh => |
| 367 | exact BF.maskedFast_bound BC .corrector .high i j (p+1) |
| 368 | (F.termField C (by omega) hT Ct hCt pressure .fastCorrectorHigh i j) |
| 369 | (fun _ _ _ => rfl) b hb hR hRc hprofile |
| 370 | | fastCorrectorCorrector => |
| 371 | exact BF.maskedFast_bound BC .corrector .corrector i j (p+1) |
| 372 | (F.termField C (by omega) hT Ct hCt pressure .fastCorrectorCorrector i j) |
| 373 | (fun _ _ _ => rfl) b hb hR hRc hprofile |
| 374 | |
| 375 | theorem mean_term_bound (k : KnownTerm) (i j : ℕ) : |
| 376 | ((F.meanTermField C (by omega) hT Ct hCt pressure k i j).normalized hT.le (S.mean p) (S.mean_pos p)).WordBound |
| 377 | 6 R BC.termCost (k.meanBudgetShift p i j) := by |
| 378 | by_cases hz : k.zeroMean = true |
| 379 | · have hzraw : ∀ (t : Icc (0 : ℝ) T) x θ, k.meanRaw O p a i j (t,(x,θ)) = 0 := by |
| 380 | intro t x θ |
| 381 | simp only [KnownTerm.meanRaw,ite_eq_left hz,Pi.zero_apply] |
| 382 | have ht := (Field.wordBound_normalized_of_zero |
| 383 | (F.meanTermField C (by omega) hT Ct hCt pressure k i j) hzraw hT.le |
| 384 | (S.mean p) (S.mean_pos p) 6 R 0).mono_amplitude hR BC.termCost_nonneg |
| 385 | simpa only [KnownTerm.meanBudgetShift,ite_eq_left hz] using ht |
| 386 | · have hbound := raw_term_bound hp hT Ct hCt pressure BF BC hCtBound hPressureBound hR hRc |
| 387 | k i j (S.mean p) (S.mean_pos p) (k.mean_profile_fits S p i j hp (Bool.eq_false_of_not_eq_true hz)) |
| 388 | have ht := (hbound.normalized_angleMean hT.le).normalized_of_raw_eq |
| 389 | (F.meanTermField C (by omega) hT Ct hCt pressure k i j) hT.le (S.mean p) (S.mean_pos p) |
| 390 | (fun t x θ => by simp only [KnownTerm.meanRaw,ite_eq_right hz,C.period_eq]) |
| 391 | have hh := ht.mono_amplitude hR (k.amplitude_le BC) |
| 392 | simpa only [KnownTerm.meanBudgetShift,ite_eq_right hz] using hh |
| 393 | |
| 394 | theorem high_term_bound (k : KnownTerm) (i j : ℕ) : |
| 395 | ((F.highTermField C (by omega) hT Ct hCt pressure k i j).normalized hT.le (S.high p) (S.high_pos p)).WordBound |
| 396 | 6 R BC.termCost (k.budgetShift p i j) := by |
| 397 | by_cases hm : k.meanOnly = true |
| 398 | · have hzraw : ∀ (t : Icc (0 : ℝ) T) x θ, k.highRaw O p a i j (t,(x,θ)) = 0 := by |
| 399 | intro t x θ |
| 400 | simp only [KnownTerm.highRaw,ite_eq_left hm,Pi.zero_apply] |
| 401 | exact (Field.wordBound_normalized_of_zero |
| 402 | (F.highTermField C (by omega) hT Ct hCt pressure k i j) hzraw hT.le |
| 403 | (S.high p) (S.high_pos p) 6 R (k.budgetShift p i j)).mono_amplitude hR BC.termCost_nonneg |
| 404 | · have hbound := raw_term_bound hp hT Ct hCt pressure BF BC hCtBound hPressureBound hR hRc |
| 405 | k i j (S.high p) (S.high_pos p) (k.high_profile_fits S p i j (Bool.eq_false_of_not_eq_true hm)) |
| 406 | by_cases hz : k.zeroMean = true |
| 407 | · have ht := hbound.normalized_of_raw_eq (F.highTermField C (by omega) hT Ct hCt pressure k i j) |
| 408 | hT.le (S.high p) (S.high_pos p) |
| 409 | (fun t x θ => by simp only [KnownTerm.highRaw,ite_eq_right hm,ite_eq_left hz]) |
| 410 | exact ht.mono_amplitude hR (k.amplitude_le BC) |
| 411 | · have ht := (hbound.normalized_highPart hT.le (S.high p) (S.high_pos p)).normalized_of_raw_eq |
| 412 | (F.highTermField C (by omega) hT Ct hCt pressure k i j) hT.le (S.high p) (S.high_pos p) |
| 413 | (fun t x θ => by simp only [KnownTerm.highRaw,ite_eq_right hm,ite_eq_right hz,C.period_eq]) |
| 414 | exact ht.mono_amplitude hR (k.twice_amplitude_le BC) |
| 415 | |
| 416 | end PrefixBound |
| 417 | end EulerPacketCylinderField |