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 | |
| 3 | /-! Exact time-profile bookkeeping for the high, mean, and previous-corrector terms. -/ |
| 4 | |
| 5 | namespace EulerPacketTimeProfile |
| 6 | |
| 7 | def meanScale (H : ℝ) (p : ℕ) : ℝ := H^(2*p-2) |
| 8 | def highScale (γ H : ℝ) (p : ℕ) : ℝ := γ*meanScale H p |
| 9 | |
| 10 | theorem meanScale_pos (H : ℝ) (hH : 0 < H) (p : ℕ) : 0 < meanScale H p := pow_pos hH _ |
| 11 | theorem highScale_pos (γ H : ℝ) (hγ : 0 < γ) (hH : 0 < H) (p : ℕ) : |
| 12 | 0 < highScale γ H p := mul_pos hγ (meanScale_pos H hH p) |
| 13 | |
| 14 | theorem meanScale_mono (H : ℝ) (hH : 1 ≤ H) {i j : ℕ} (hij : i ≤ j) : |
| 15 | meanScale H i ≤ meanScale H j := |
| 16 | pow_le_pow_right₀ hH (by omega : 2*i-2 ≤ 2*j-2) |
| 17 | |
| 18 | theorem highScale_mono (γ H : ℝ) (hγ : 0 ≤ γ) (hH : 1 ≤ H) {i j : ℕ} (hij : i ≤ j) : |
| 19 | highScale γ H i ≤ highScale γ H j := |
| 20 | mul_le_mul_of_nonneg_left (meanScale_mono H hH hij) hγ |
| 21 | |
| 22 | theorem meanScale_slow_identity (H : ℝ) (i j p : ℕ) |
| 23 | (hi : 1 ≤ i) (hj : 1 ≤ j) (hp : i+j=p) : |
| 24 | meanScale H i*meanScale H j*H^2 = meanScale H p := by |
| 25 | simp only [meanScale,← pow_add] |
| 26 | congr 1 |
| 27 | omega |
| 28 | |
| 29 | theorem slow_mean_mean (H : ℝ) (hH : 1 ≤ H) (i j p : ℕ) |
| 30 | (hi : 1 ≤ i) (hj : 1 ≤ j) (hp : i+j=p) : |
| 31 | meanScale H i*meanScale H j ≤ meanScale H p := by |
| 32 | have hH0 : 0 ≤ H := le_trans zero_le_one hH |
| 33 | have hs : (1 : ℝ) ≤ H^2 := by nlinarith |
| 34 | calc |
| 35 | _ ≤ (meanScale H i*meanScale H j)*H^2 := |
| 36 | le_mul_of_one_le_right (mul_nonneg (pow_nonneg hH0 _) (pow_nonneg hH0 _)) hs |
| 37 | _ = _ := meanScale_slow_identity H i j p hi hj hp |
| 38 | |
| 39 | theorem slow_high_high_mean (γ H : ℝ) (hγ : 0 ≤ γ) (hγH : γ ≤ H) (hH : 1 ≤ H) |
| 40 | (i j p : ℕ) (hi : 1 ≤ i) (hj : 1 ≤ j) (hp : i+j=p) : |
| 41 | highScale γ H i*highScale γ H j ≤ meanScale H p := by |
| 42 | have hH0 : 0 ≤ H := le_trans zero_le_one hH |
| 43 | calc |
| 44 | _ = γ^2*(meanScale H i*meanScale H j) := by unfold highScale; ring |
| 45 | _ ≤ H^2*(meanScale H i*meanScale H j) := |
| 46 | mul_le_mul_of_nonneg_right (pow_le_pow_left₀ hγ hγH 2) |
| 47 | (mul_nonneg (pow_nonneg hH0 _) (pow_nonneg hH0 _)) |
| 48 | _ = meanScale H i*meanScale H j*H^2 := by ring |
| 49 | _ = _ := meanScale_slow_identity H i j p hi hj hp |
| 50 | |
| 51 | theorem slow_high_high_high (γ H : ℝ) (hγ : 0 ≤ γ) (hγH : γ ≤ H) (hH : 1 ≤ H) |
| 52 | (i j p : ℕ) (hi : 1 ≤ i) (hj : 1 ≤ j) (hp : i+j=p) : |
| 53 | highScale γ H i*highScale γ H j ≤ highScale γ H p := by |
| 54 | have hH0 : 0 ≤ H := le_trans zero_le_one hH |
| 55 | have hh : H ≤ H^2 := by nlinarith |
| 56 | have hγ2 : γ^2 ≤ γ*H^2 := by nlinarith [mul_nonneg hγ (sub_nonneg.mpr (hγH.trans hh))] |
| 57 | calc |
| 58 | _ = γ^2*(meanScale H i*meanScale H j) := by unfold highScale; ring |
| 59 | _ ≤ (γ*H^2)*(meanScale H i*meanScale H j) := |
| 60 | mul_le_mul_of_nonneg_right hγ2 (mul_nonneg (pow_nonneg hH0 _) (pow_nonneg hH0 _)) |
| 61 | _ = γ*(meanScale H i*meanScale H j*H^2) := by ring |
| 62 | _ = _ := congrArg (γ * ·) (meanScale_slow_identity H i j p hi hj hp) |
| 63 | |
| 64 | theorem slow_mean_high_high (γ H : ℝ) (hγ : 0 ≤ γ) (hH : 1 ≤ H) |
| 65 | (i j p : ℕ) (hi : 1 ≤ i) (hj : 1 ≤ j) (hp : i+j=p) : |
| 66 | meanScale H i*highScale γ H j ≤ highScale γ H p := by |
| 67 | have h := mul_le_mul_of_nonneg_left (slow_mean_mean H hH i j p hi hj hp) hγ |
| 68 | simpa only [highScale,mul_left_comm] using h |
| 69 | |
| 70 | theorem slow_mean_high_mean (γ H : ℝ) (hγ : 0 ≤ γ) (hγH : γ ≤ H) (hH : 1 ≤ H) |
| 71 | (i j p : ℕ) (hi : 1 ≤ i) (hj : 1 ≤ j) (hp : i+j=p) : |
| 72 | meanScale H i*highScale γ H j ≤ meanScale H p := by |
| 73 | have hH0 : 0 ≤ H := le_trans zero_le_one hH |
| 74 | have hh : γ ≤ H^2 := by nlinarith |
| 75 | calc |
| 76 | _ = γ*(meanScale H i*meanScale H j) := by unfold highScale; ring |
| 77 | _ ≤ H^2*(meanScale H i*meanScale H j) := |
| 78 | mul_le_mul_of_nonneg_right hh (mul_nonneg (pow_nonneg hH0 _) (pow_nonneg hH0 _)) |
| 79 | _ = meanScale H i*meanScale H j*H^2 := by ring |
| 80 | _ = _ := meanScale_slow_identity H i j p hi hj hp |
| 81 | |
| 82 | theorem fast_mean_high (γ H : ℝ) (i j p : ℕ) |
| 83 | (hi : 1 ≤ i) (hj : 1 ≤ j) (hp : i+j=p+1) : |
| 84 | meanScale H i*highScale γ H j = highScale γ H p := by |
| 85 | unfold highScale meanScale |
| 86 | rw [mul_left_comm,← pow_add] |
| 87 | congr 1 |
| 88 | congr 1 |
| 89 | omega |
| 90 | |
| 91 | theorem fast_corrector_high_mean (γ H : ℝ) (hγ : 0 ≤ γ) (hγH : γ ≤ H) (hH : 1 ≤ H) |
| 92 | (i j p : ℕ) (hi : 2 ≤ i) (hj : 1 ≤ j) (hp : i+j=p+1) : |
| 93 | highScale γ H (i-1)*highScale γ H j ≤ meanScale H p := |
| 94 | slow_high_high_mean γ H hγ hγH hH (i-1) j p (by omega) hj (by omega) |
| 95 | |
| 96 | theorem fast_corrector_high_high (γ H : ℝ) (hγ : 0 ≤ γ) (hγH : γ ≤ H) (hH : 1 ≤ H) |
| 97 | (i j p : ℕ) (hi : 2 ≤ i) (hj : 1 ≤ j) (hp : i+j=p+1) : |
| 98 | highScale γ H (i-1)*highScale γ H j ≤ highScale γ H p := |
| 99 | slow_high_high_high γ H hγ hγH hH (i-1) j p (by omega) hj (by omega) |
| 100 | |
| 101 | theorem fast_corrector_corrector_mean (γ H : ℝ) (hγ : 0 ≤ γ) (hγH : γ ≤ H) (hH : 1 ≤ H) |
| 102 | (i j p : ℕ) (hi : 2 ≤ i) (hj : 2 ≤ j) (hp : i+j=p+1) : |
| 103 | highScale γ H (i-1)*highScale γ H (j-1) ≤ meanScale H p := |
| 104 | (slow_high_high_mean γ H hγ hγH hH (i-1) (j-1) (p-1) (by omega) (by omega) (by omega)).trans |
| 105 | (meanScale_mono H hH (Nat.sub_le p 1)) |
| 106 | |
| 107 | theorem fast_corrector_corrector_high (γ H : ℝ) (hγ : 0 ≤ γ) (hγH : γ ≤ H) (hH : 1 ≤ H) |
| 108 | (i j p : ℕ) (hi : 2 ≤ i) (hj : 2 ≤ j) (hp : i+j=p+1) : |
| 109 | highScale γ H (i-1)*highScale γ H (j-1) ≤ highScale γ H p := |
| 110 | (slow_high_high_high γ H hγ hγH hH (i-1) (j-1) (p-1) (by omega) (by omega) (by omega)).trans |
| 111 | (highScale_mono γ H hγ hH (Nat.sub_le p 1)) |
| 112 | |
| 113 | theorem previous_linear_mean (γ H : ℝ) (hγ : 0 ≤ γ) (hγH : γ ≤ H) (hH : 1 ≤ H) |
| 114 | (p : ℕ) (hp : 2 ≤ p) : highScale γ H (p-1) ≤ meanScale H p := by |
| 115 | have h := slow_mean_high_mean γ H hγ hγH hH 1 (p-1) p (by omega) (by omega) (by omega) |
| 116 | simpa only [meanScale,show 2*1-2=0 by omega,pow_zero,one_mul] using h |
| 117 | |
| 118 | end EulerPacketTimeProfile |