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.PacketCylinderWeightedProduct |
| 2 | import Euler.PacketCylinderProfileChange |
| 3 | |
| 4 | /-! The actual continuous time weights for the high and mean packet grades. -/ |
| 5 | |
| 6 | /-! ## From `Euler/PacketTimeProfileArithmetic.lean` |
| 7 | |
| 8 | The text of `Euler/PacketTimeProfileArithmetic.lean`, folded into this file, which was its only importer. -/ |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! Exact time-profile bookkeeping for the high, mean, and previous-corrector terms. -/ |
| 13 | |
| 14 | namespace EulerPacketTimeProfile |
| 15 | |
| 16 | def meanScale (H : ℝ) (p : ℕ) : ℝ := H^(2*p-2) |
| 17 | def highScale (γ H : ℝ) (p : ℕ) : ℝ := γ*meanScale H p |
| 18 | |
| 19 | theorem meanScale_pos (H : ℝ) (hH : 0 < H) (p : ℕ) : 0 < meanScale H p := pow_pos hH _ |
| 20 | theorem highScale_pos (γ H : ℝ) (hγ : 0 < γ) (hH : 0 < H) (p : ℕ) : |
| 21 | 0 < highScale γ H p := mul_pos hγ (meanScale_pos H hH p) |
| 22 | |
| 23 | theorem meanScale_mono (H : ℝ) (hH : 1 ≤ H) {i j : ℕ} (hij : i ≤ j) : |
| 24 | meanScale H i ≤ meanScale H j := |
| 25 | pow_le_pow_right₀ hH (by omega : 2*i-2 ≤ 2*j-2) |
| 26 | |
| 27 | theorem highScale_mono (γ H : ℝ) (hγ : 0 ≤ γ) (hH : 1 ≤ H) {i j : ℕ} (hij : i ≤ j) : |
| 28 | highScale γ H i ≤ highScale γ H j := |
| 29 | mul_le_mul_of_nonneg_left (meanScale_mono H hH hij) hγ |
| 30 | |
| 31 | theorem meanScale_slow_identity (H : ℝ) (i j p : ℕ) |
| 32 | (hi : 1 ≤ i) (hj : 1 ≤ j) (hp : i+j=p) : |
| 33 | meanScale H i*meanScale H j*H^2 = meanScale H p := by |
| 34 | simp only [meanScale,← pow_add] |
| 35 | congr 1 |
| 36 | omega |
| 37 | |
| 38 | theorem slow_mean_mean (H : ℝ) (hH : 1 ≤ H) (i j p : ℕ) |
| 39 | (hi : 1 ≤ i) (hj : 1 ≤ j) (hp : i+j=p) : |
| 40 | meanScale H i*meanScale H j ≤ meanScale H p := by |
| 41 | have hH0 : 0 ≤ H := le_trans zero_le_one hH |
| 42 | have hs : (1 : ℝ) ≤ H^2 := by nlinarith |
| 43 | calc |
| 44 | _ ≤ (meanScale H i*meanScale H j)*H^2 := |
| 45 | le_mul_of_one_le_right (mul_nonneg (pow_nonneg hH0 _) (pow_nonneg hH0 _)) hs |
| 46 | _ = _ := meanScale_slow_identity H i j p hi hj hp |
| 47 | |
| 48 | theorem slow_high_high_mean (γ H : ℝ) (hγ : 0 ≤ γ) (hγH : γ ≤ H) (hH : 1 ≤ H) |
| 49 | (i j p : ℕ) (hi : 1 ≤ i) (hj : 1 ≤ j) (hp : i+j=p) : |
| 50 | highScale γ H i*highScale γ H j ≤ meanScale H p := by |
| 51 | have hH0 : 0 ≤ H := le_trans zero_le_one hH |
| 52 | calc |
| 53 | _ = γ^2*(meanScale H i*meanScale H j) := by unfold highScale; ring |
| 54 | _ ≤ H^2*(meanScale H i*meanScale H j) := |
| 55 | mul_le_mul_of_nonneg_right (pow_le_pow_left₀ hγ hγH 2) |
| 56 | (mul_nonneg (pow_nonneg hH0 _) (pow_nonneg hH0 _)) |
| 57 | _ = meanScale H i*meanScale H j*H^2 := by ring |
| 58 | _ = _ := meanScale_slow_identity H i j p hi hj hp |
| 59 | |
| 60 | theorem slow_high_high_high (γ H : ℝ) (hγ : 0 ≤ γ) (hγH : γ ≤ H) (hH : 1 ≤ H) |
| 61 | (i j p : ℕ) (hi : 1 ≤ i) (hj : 1 ≤ j) (hp : i+j=p) : |
| 62 | highScale γ H i*highScale γ H j ≤ highScale γ H p := by |
| 63 | have hH0 : 0 ≤ H := le_trans zero_le_one hH |
| 64 | have hh : H ≤ H^2 := by nlinarith |
| 65 | have hγ2 : γ^2 ≤ γ*H^2 := by linarith [mul_nonneg hγ (sub_nonneg.mpr (hγH.trans hh))] |
| 66 | calc |
| 67 | _ = γ^2*(meanScale H i*meanScale H j) := by unfold highScale; ring |
| 68 | _ ≤ (γ*H^2)*(meanScale H i*meanScale H j) := |
| 69 | mul_le_mul_of_nonneg_right hγ2 (mul_nonneg (pow_nonneg hH0 _) (pow_nonneg hH0 _)) |
| 70 | _ = γ*(meanScale H i*meanScale H j*H^2) := by ring |
| 71 | _ = _ := congrArg (γ * ·) (meanScale_slow_identity H i j p hi hj hp) |
| 72 | |
| 73 | theorem slow_mean_high_high (γ H : ℝ) (hγ : 0 ≤ γ) (hH : 1 ≤ H) |
| 74 | (i j p : ℕ) (hi : 1 ≤ i) (hj : 1 ≤ j) (hp : i+j=p) : |
| 75 | meanScale H i*highScale γ H j ≤ highScale γ H p := by |
| 76 | have h := mul_le_mul_of_nonneg_left (slow_mean_mean H hH i j p hi hj hp) hγ |
| 77 | simpa only [highScale,mul_left_comm] using h |
| 78 | |
| 79 | theorem slow_mean_high_mean (γ H : ℝ) (hγ : 0 ≤ γ) (hγH : γ ≤ H) (hH : 1 ≤ H) |
| 80 | (i j p : ℕ) (hi : 1 ≤ i) (hj : 1 ≤ j) (hp : i+j=p) : |
| 81 | meanScale H i*highScale γ H j ≤ meanScale H p := by |
| 82 | have hH0 : 0 ≤ H := le_trans zero_le_one hH |
| 83 | have hh : γ ≤ H^2 := by nlinarith |
| 84 | calc |
| 85 | _ = γ*(meanScale H i*meanScale H j) := by unfold highScale; ring |
| 86 | _ ≤ H^2*(meanScale H i*meanScale H j) := |
| 87 | mul_le_mul_of_nonneg_right hh (mul_nonneg (pow_nonneg hH0 _) (pow_nonneg hH0 _)) |
| 88 | _ = meanScale H i*meanScale H j*H^2 := by ring |
| 89 | _ = _ := meanScale_slow_identity H i j p hi hj hp |
| 90 | |
| 91 | theorem fast_mean_high (γ H : ℝ) (i j p : ℕ) |
| 92 | (hi : 1 ≤ i) (hj : 1 ≤ j) (hp : i+j=p+1) : |
| 93 | meanScale H i*highScale γ H j = highScale γ H p := by |
| 94 | unfold highScale meanScale |
| 95 | rw [mul_left_comm,← pow_add] |
| 96 | congr 1 |
| 97 | congr 1 |
| 98 | omega |
| 99 | |
| 100 | theorem fast_corrector_high_mean (γ H : ℝ) (hγ : 0 ≤ γ) (hγH : γ ≤ H) (hH : 1 ≤ H) |
| 101 | (i j p : ℕ) (hi : 2 ≤ i) (hj : 1 ≤ j) (hp : i+j=p+1) : |
| 102 | highScale γ H (i-1)*highScale γ H j ≤ meanScale H p := |
| 103 | slow_high_high_mean γ H hγ hγH hH (i-1) j p (by omega) hj (by omega) |
| 104 | |
| 105 | theorem fast_corrector_high_high (γ H : ℝ) (hγ : 0 ≤ γ) (hγH : γ ≤ H) (hH : 1 ≤ H) |
| 106 | (i j p : ℕ) (hi : 2 ≤ i) (hj : 1 ≤ j) (hp : i+j=p+1) : |
| 107 | highScale γ H (i-1)*highScale γ H j ≤ highScale γ H p := |
| 108 | slow_high_high_high γ H hγ hγH hH (i-1) j p (by omega) hj (by omega) |
| 109 | |
| 110 | theorem previous_linear_mean (γ H : ℝ) (hγ : 0 ≤ γ) (hγH : γ ≤ H) (hH : 1 ≤ H) |
| 111 | (p : ℕ) (hp : 2 ≤ p) : highScale γ H (p-1) ≤ meanScale H p := by |
| 112 | have h := slow_mean_high_mean γ H hγ hγH hH 1 (p-1) p (by omega) (by omega) (by omega) |
| 113 | simpa only [meanScale,show 2*1-2=0 by omega,pow_zero,one_mul] using h |
| 114 | |
| 115 | end EulerPacketTimeProfile |
| 116 | |
| 117 | end |
| 118 | |
| 119 | noncomputable section |
| 120 | |
| 121 | namespace EulerPacketTimeProfile |
| 122 | |
| 123 | open Set EulerPacketCylinderField |
| 124 | |
| 125 | variable (K : Type*) [TopologicalSpace K] |
| 126 | |
| 127 | structure Scales where |
| 128 | growth : C(K,ℝ) |
| 129 | growth_pos : ∀ t, 0 < growth t |
| 130 | H0 : ℝ |
| 131 | H0_one_le : 1 ≤ H0 |
| 132 | growth_le : ∀ t, growth t ≤ H0 |
| 133 | |
| 134 | namespace Scales |
| 135 | |
| 136 | variable {K} |
| 137 | |
| 138 | /-- Compactness supplies the single grade-independent upper scale. -/ |
| 139 | def ofGrowth [CompactSpace K] (g : C(K,ℝ)) (hg : ∀ t, 0 < g t) : Scales K where |
| 140 | growth := g |
| 141 | growth_pos := hg |
| 142 | H0 := max 1 ‖g‖ |
| 143 | H0_one_le := le_max_left _ _ |
| 144 | growth_le t := (le_trans (le_abs_self (g t)) |
| 145 | (by simpa only [Real.norm_eq_abs] using g.norm_coe_le_norm t)).trans (le_max_right _ _) |
| 146 | |
| 147 | variable (S : Scales K) |
| 148 | |
| 149 | def mean (p : ℕ) : C(K,ℝ) := ContinuousMap.const K (meanScale S.H0 p) |
| 150 | def high (p : ℕ) : C(K,ℝ) := S.growth*S.mean p |
| 151 | |
| 152 | @[simp] theorem mean_apply (p : ℕ) (t : K) : S.mean p t = meanScale S.H0 p := rfl |
| 153 | @[simp] theorem high_apply (p : ℕ) (t : K) : S.high p t = highScale (S.growth t) S.H0 p := rfl |
| 154 | |
| 155 | theorem H0_pos : 0 < S.H0 := zero_lt_one.trans_le S.H0_one_le |
| 156 | theorem mean_pos (p : ℕ) (t : K) : 0 < S.mean p t := meanScale_pos S.H0 S.H0_pos p |
| 157 | theorem high_pos (p : ℕ) (t : K) : 0 < S.high p t := |
| 158 | highScale_pos (S.growth t) S.H0 (S.growth_pos t) S.H0_pos p |
| 159 | |
| 160 | theorem high_mono {i j : ℕ} (hij : i ≤ j) (t : K) : S.high i t ≤ S.high j t := |
| 161 | highScale_mono (S.growth t) S.H0 (S.growth_pos t).le S.H0_one_le hij |
| 162 | |
| 163 | @[simp] theorem high_one (t : K) : S.high 1 t = S.growth t := by |
| 164 | simp only [high_apply,highScale,meanScale,show 2*1-2=0 by omega,pow_zero,mul_one] |
| 165 | |
| 166 | theorem slow_mean_mean_bound (i j p : ℕ) (hi : 1 ≤ i) (hj : 1 ≤ j) (hp : i+j=p) (t : K) : |
| 167 | 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 |
| 168 | |
| 169 | theorem slow_high_high_mean_bound (i j p : ℕ) (hi : 1 ≤ i) (hj : 1 ≤ j) (hp : i+j=p) (t : K) : |
| 170 | S.high i t*S.high j t ≤ S.mean p t := |
| 171 | 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 |
| 172 | |
| 173 | theorem slow_high_high_high_bound (i j p : ℕ) (hi : 1 ≤ i) (hj : 1 ≤ j) (hp : i+j=p) (t : K) : |
| 174 | S.high i t*S.high j t ≤ S.high p t := |
| 175 | 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 |
| 176 | |
| 177 | theorem slow_mean_high_mean_bound (i j p : ℕ) (hi : 1 ≤ i) (hj : 1 ≤ j) (hp : i+j=p) (t : K) : |
| 178 | S.mean i t*S.high j t ≤ S.mean p t := |
| 179 | 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 |
| 180 | |
| 181 | theorem slow_mean_high_high_bound (i j p : ℕ) (hi : 1 ≤ i) (hj : 1 ≤ j) (hp : i+j=p) (t : K) : |
| 182 | S.mean i t*S.high j t ≤ S.high p t := |
| 183 | slow_mean_high_high (S.growth t) S.H0 (S.growth_pos t).le S.H0_one_le i j p hi hj hp |
| 184 | |
| 185 | theorem fast_mean_high_bound (i j p : ℕ) (hi : 1 ≤ i) (hj : 1 ≤ j) (hp : i+j=p+1) (t : K) : |
| 186 | S.mean i t*S.high j t = S.high p t := |
| 187 | fast_mean_high (S.growth t) S.H0 i j p hi hj hp |
| 188 | |
| 189 | theorem fast_corrector_high_mean_bound (i j p : ℕ) (hi : 2 ≤ i) (hj : 1 ≤ j) |
| 190 | (hp : i+j=p+1) (t : K) : S.high (i-1) t*S.high j t ≤ S.mean p t := |
| 191 | fast_corrector_high_mean (S.growth t) S.H0 (S.growth_pos t).le (S.growth_le t) |
| 192 | S.H0_one_le i j p hi hj hp |
| 193 | |
| 194 | theorem fast_corrector_high_high_bound (i j p : ℕ) (hi : 2 ≤ i) (hj : 1 ≤ j) |
| 195 | (hp : i+j=p+1) (t : K) : S.high (i-1) t*S.high j t ≤ S.high p t := |
| 196 | fast_corrector_high_high (S.growth t) S.H0 (S.growth_pos t).le (S.growth_le t) |
| 197 | S.H0_one_le i j p hi hj hp |
| 198 | |
| 199 | theorem previous_linear_mean_bound (p : ℕ) (hp : 2 ≤ p) (t : K) : S.high (p-1) t ≤ S.mean p t := |
| 200 | previous_linear_mean (S.growth t) S.H0 (S.growth_pos t).le (S.growth_le t) S.H0_one_le p hp |
| 201 | |
| 202 | end Scales |
| 203 | end EulerPacketTimeProfile |