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.PacketTimeProfileArithmetic |
| 2 | import Euler.PacketCylinderProfileChange |
| 3 | |
| 4 | /-! The actual continuous time weights for the high and mean packet grades. -/ |
| 5 | |
| 6 | noncomputable section |
| 7 | |
| 8 | namespace EulerPacketTimeProfile |
| 9 | |
| 10 | open Set EulerPacketCylinderField |
| 11 | |
| 12 | variable (K : Type*) [TopologicalSpace K] |
| 13 | |
| 14 | structure Scales where |
| 15 | growth : C(K,ℝ) |
| 16 | growth_pos : ∀ t, 0 < growth t |
| 17 | H0 : ℝ |
| 18 | H0_one_le : 1 ≤ H0 |
| 19 | growth_le : ∀ t, growth t ≤ H0 |
| 20 | |
| 21 | namespace Scales |
| 22 | |
| 23 | variable {K} |
| 24 | |
| 25 | /-- Compactness supplies the single grade-independent upper scale. -/ |
| 26 | def ofGrowth [CompactSpace K] (g : C(K,ℝ)) (hg : ∀ t, 0 < g t) : Scales K where |
| 27 | growth := g |
| 28 | growth_pos := hg |
| 29 | H0 := max 1 ‖g‖ |
| 30 | H0_one_le := le_max_left _ _ |
| 31 | growth_le t := (le_trans (le_abs_self (g t)) |
| 32 | (by simpa only [Real.norm_eq_abs] using g.norm_coe_le_norm t)).trans (le_max_right _ _) |
| 33 | |
| 34 | variable (S : Scales K) |
| 35 | |
| 36 | def mean (p : ℕ) : C(K,ℝ) := ContinuousMap.const K (meanScale S.H0 p) |
| 37 | def high (p : ℕ) : C(K,ℝ) := S.growth*S.mean p |
| 38 | |
| 39 | @[simp] theorem mean_apply (p : ℕ) (t : K) : S.mean p t = meanScale S.H0 p := rfl |
| 40 | @[simp] theorem high_apply (p : ℕ) (t : K) : S.high p t = highScale (S.growth t) S.H0 p := rfl |
| 41 | |
| 42 | theorem H0_pos : 0 < S.H0 := zero_lt_one.trans_le S.H0_one_le |
| 43 | theorem mean_pos (p : ℕ) (t : K) : 0 < S.mean p t := meanScale_pos S.H0 S.H0_pos p |
| 44 | theorem high_pos (p : ℕ) (t : K) : 0 < S.high p t := |
| 45 | highScale_pos (S.growth t) S.H0 (S.growth_pos t) S.H0_pos p |
| 46 | |
| 47 | theorem mean_mono {i j : ℕ} (hij : i ≤ j) (t : K) : S.mean i t ≤ S.mean j t := |
| 48 | meanScale_mono S.H0 S.H0_one_le hij |
| 49 | |
| 50 | theorem high_mono {i j : ℕ} (hij : i ≤ j) (t : K) : S.high i t ≤ S.high j t := |
| 51 | highScale_mono (S.growth t) S.H0 (S.growth_pos t).le S.H0_one_le hij |
| 52 | |
| 53 | @[simp] theorem high_one (t : K) : S.high 1 t = S.growth t := by |
| 54 | simp only [high_apply,highScale,meanScale,show 2*1-2=0 by omega,pow_zero,mul_one] |
| 55 | |
| 56 | theorem slow_mean_mean_bound (i j p : ℕ) (hi : 1 ≤ i) (hj : 1 ≤ j) (hp : i+j=p) (t : K) : |
| 57 | S.mean i t*S.mean j t ≤ S.mean p t := slow_mean_mean S.H0 S.H0_one_le i j p hi hj hp |
| 58 | |
| 59 | theorem slow_high_high_mean_bound (i j p : ℕ) (hi : 1 ≤ i) (hj : 1 ≤ j) (hp : i+j=p) (t : K) : |
| 60 | S.high i t*S.high j t ≤ S.mean p t := |
| 61 | slow_high_high_mean (S.growth t) S.H0 (S.growth_pos t).le (S.growth_le t) S.H0_one_le i j p hi hj hp |
| 62 | |
| 63 | theorem slow_high_high_high_bound (i j p : ℕ) (hi : 1 ≤ i) (hj : 1 ≤ j) (hp : i+j=p) (t : K) : |
| 64 | S.high i t*S.high j t ≤ S.high p t := |
| 65 | slow_high_high_high (S.growth t) S.H0 (S.growth_pos t).le (S.growth_le t) S.H0_one_le i j p hi hj hp |
| 66 | |
| 67 | theorem slow_mean_high_mean_bound (i j p : ℕ) (hi : 1 ≤ i) (hj : 1 ≤ j) (hp : i+j=p) (t : K) : |
| 68 | S.mean i t*S.high j t ≤ S.mean p t := |
| 69 | slow_mean_high_mean (S.growth t) S.H0 (S.growth_pos t).le (S.growth_le t) S.H0_one_le i j p hi hj hp |
| 70 | |
| 71 | theorem slow_mean_high_high_bound (i j p : ℕ) (hi : 1 ≤ i) (hj : 1 ≤ j) (hp : i+j=p) (t : K) : |
| 72 | S.mean i t*S.high j t ≤ S.high p t := |
| 73 | slow_mean_high_high (S.growth t) S.H0 (S.growth_pos t).le S.H0_one_le i j p hi hj hp |
| 74 | |
| 75 | theorem fast_mean_high_bound (i j p : ℕ) (hi : 1 ≤ i) (hj : 1 ≤ j) (hp : i+j=p+1) (t : K) : |
| 76 | S.mean i t*S.high j t = S.high p t := |
| 77 | fast_mean_high (S.growth t) S.H0 i j p hi hj hp |
| 78 | |
| 79 | theorem fast_corrector_high_mean_bound (i j p : ℕ) (hi : 2 ≤ i) (hj : 1 ≤ j) |
| 80 | (hp : i+j=p+1) (t : K) : S.high (i-1) t*S.high j t ≤ S.mean p t := |
| 81 | fast_corrector_high_mean (S.growth t) S.H0 (S.growth_pos t).le (S.growth_le t) |
| 82 | S.H0_one_le i j p hi hj hp |
| 83 | |
| 84 | theorem fast_corrector_high_high_bound (i j p : ℕ) (hi : 2 ≤ i) (hj : 1 ≤ j) |
| 85 | (hp : i+j=p+1) (t : K) : S.high (i-1) t*S.high j t ≤ S.high p t := |
| 86 | fast_corrector_high_high (S.growth t) S.H0 (S.growth_pos t).le (S.growth_le t) |
| 87 | S.H0_one_le i j p hi hj hp |
| 88 | |
| 89 | theorem fast_corrector_corrector_mean_bound (i j p : ℕ) (hi : 2 ≤ i) (hj : 2 ≤ j) |
| 90 | (hp : i+j=p+1) (t : K) : S.high (i-1) t*S.high (j-1) t ≤ S.mean p t := |
| 91 | fast_corrector_corrector_mean (S.growth t) S.H0 (S.growth_pos t).le (S.growth_le t) |
| 92 | S.H0_one_le i j p hi hj hp |
| 93 | |
| 94 | theorem fast_corrector_corrector_high_bound (i j p : ℕ) (hi : 2 ≤ i) (hj : 2 ≤ j) |
| 95 | (hp : i+j=p+1) (t : K) : S.high (i-1) t*S.high (j-1) t ≤ S.high p t := |
| 96 | fast_corrector_corrector_high (S.growth t) S.H0 (S.growth_pos t).le (S.growth_le t) |
| 97 | S.H0_one_le i j p hi hj hp |
| 98 | |
| 99 | theorem previous_linear_mean_bound (p : ℕ) (hp : 2 ≤ p) (t : K) : S.high (p-1) t ≤ S.mean p t := |
| 100 | previous_linear_mean (S.growth t) S.H0 (S.growth_pos t).le (S.growth_le t) S.H0_one_le p hp |
| 101 | |
| 102 | end Scales |
| 103 | end EulerPacketTimeProfile |