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.PacketCoarseMajorant |
| 2 | |
| 3 | /-! A single polynomial base absorbs the finite residual multiplicity and |
| 4 | the fixed profile envelope, before the geometric tail is summed. -/ |
| 5 | |
| 6 | namespace EulerPacketCoarseMajorant |
| 7 | |
| 8 | |
| 9 | def tailBase (R H C : ℝ) (N : ℕ) : ℝ := |
| 10 | (1+C*(1+18*((N+2 : ℕ) : ℝ)^2))*H^2*gradeBase R N |
| 11 | |
| 12 | theorem tailBase_nonneg (R H C : ℝ) (hC : 0 ≤ C) (N : ℕ) : |
| 13 | 0 ≤ tailBase R H C N := by |
| 14 | unfold tailBase |
| 15 | exact mul_nonneg (mul_nonneg (by positivity) (sq_nonneg H)) (gradeBase_nonneg R N) |
| 16 | |
| 17 | theorem tailBase_ge_one (R H C : ℝ) (hR : 1 ≤ R) (hH : 1 ≤ H) |
| 18 | (hC : 0 ≤ C) (N : ℕ) (hN : 1 ≤ N) : 1 ≤ tailBase R H C N := by |
| 19 | have hf : (1 : ℝ) ≤ 1+C*(1+18*((N+2 : ℕ) : ℝ)^2) := by |
| 20 | have h : 0 ≤ C*(1+18*((N+2 : ℕ) : ℝ)^2) := by positivity |
| 21 | linarith only [h] |
| 22 | exact one_le_mul_of_one_le_of_one_le |
| 23 | (one_le_mul_of_one_le_of_one_le hf (one_le_pow₀ hH)) (gradeBase_ge_one R hR N hN) |
| 24 | |
| 25 | /-- The envelope is absorbed once into the base, with no dependence on |
| 26 | the surviving grade in that base. -/ |
| 27 | theorem tailBase_absorption (R H C : ℝ) (hC : 0 ≤ C) (N n : ℕ) : |
| 28 | (1+18*((N+2 : ℕ) : ℝ)^2)*C*H^(2*n+2)*(gradeBase R N)^(n+1) ≤ |
| 29 | (tailBase R H C N)^(n+1) := by |
| 30 | let A : ℝ := 1+C*(1+18*((N+2 : ℕ) : ℝ)^2) |
| 31 | have hA : 1 ≤ A := by |
| 32 | have h : 0 ≤ C*(1+18*((N+2 : ℕ) : ℝ)^2) := by positivity |
| 33 | dsimp [A] |
| 34 | linarith only [h] |
| 35 | have hf : (1+18*((N+2 : ℕ) : ℝ)^2)*C ≤ A^(n+1) := by |
| 36 | calc |
| 37 | _ ≤ A := by dsimp [A]; nlinarith |
| 38 | _ ≤ A*A^n := le_mul_of_one_le_right (le_trans zero_le_one hA) (one_le_pow₀ hA) |
| 39 | _ = A^(n+1) := (pow_succ' A n).symm |
| 40 | have hH : H^(2*n+2) = (H^2)^(n+1) := by |
| 41 | rw [← pow_mul] |
| 42 | congr 1 |
| 43 | calc |
| 44 | _ = ((1+18*((N+2 : ℕ) : ℝ)^2)*C)* |
| 45 | ((H^2)^(n+1)*(gradeBase R N)^(n+1)) := by rw [hH]; ring |
| 46 | _ ≤ A^(n+1)*((H^2)^(n+1)*(gradeBase R N)^(n+1)) := |
| 47 | mul_le_mul_of_nonneg_right hf |
| 48 | (mul_nonneg (pow_nonneg (sq_nonneg H) _) (pow_nonneg (gradeBase_nonneg R N) _)) |
| 49 | _ = (tailBase R H C N)^(n+1) := by |
| 50 | unfold tailBase |
| 51 | rw [mul_pow, mul_pow] |
| 52 | change A^(n+1)*((H^2)^(n+1)*(gradeBase R N)^(n+1)) = |
| 53 | (A^(n+1)*(H^2)^(n+1))*(gradeBase R N)^(n+1) |
| 54 | ring |
| 55 | |
| 56 | def tailPolynomialConstant (R H C : ℝ) : ℝ := |
| 57 | (1+163*C)*H^2*(4*R*550^2)^110 |
| 58 | |
| 59 | theorem tailPolynomialConstant_nonneg (R H C : ℝ) (hC : 0 ≤ C) : |
| 60 | 0 ≤ tailPolynomialConstant R H C := by |
| 61 | unfold tailPolynomialConstant |
| 62 | positivity |
| 63 | |
| 64 | theorem gradeBase_polynomial (R : ℝ) (N : ℕ) : |
| 65 | gradeBase R N = (4*R*550^2)^110*(N : ℝ)^220 := by |
| 66 | unfold gradeBase |
| 67 | rw [show 4*R*(550*(N : ℝ))^2 = (4*R*550^2)*(N : ℝ)^2 by ring, mul_pow, ← pow_mul] |
| 68 | |
| 69 | /-- Finite multiplicity raises the degree of the base from 220 to 222. -/ |
| 70 | theorem tailBase_polynomial_bound (R H C : ℝ) (hC : 0 ≤ C) (N : ℕ) (hN : 1 ≤ N) : |
| 71 | tailBase R H C N ≤ tailPolynomialConstant R H C*(N : ℝ)^222 := by |
| 72 | have hn : (1 : ℝ) ≤ N := by exact_mod_cast hN |
| 73 | have hn2 : (1 : ℝ) ≤ (N : ℝ)^2 := one_le_pow₀ hn |
| 74 | have hnplus : (N : ℝ)+2 ≤ 3*(N : ℝ) := by linarith |
| 75 | have hp := pow_le_pow_left₀ (show (0 : ℝ) ≤ (N : ℝ)+2 by positivity) hnplus 2 |
| 76 | have hf : (1 : ℝ)+18*((N+2 : ℕ) : ℝ)^2 ≤ 163*(N : ℝ)^2 := by |
| 77 | push_cast |
| 78 | nlinarith only [hp, hn2] |
| 79 | have hm := mul_le_mul_of_nonneg_left hf hC |
| 80 | have hfactor : (1 : ℝ)+C*(1+18*((N+2 : ℕ) : ℝ)^2) ≤ |
| 81 | (1+163*C)*(N : ℝ)^2 := by nlinarith only [hm, hn2] |
| 82 | calc |
| 83 | _ ≤ ((1+163*C)*(N : ℝ)^2)*H^2*gradeBase R N := |
| 84 | mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_right hfactor (sq_nonneg H)) |
| 85 | (gradeBase_nonneg R N) |
| 86 | _ = tailPolynomialConstant R H C*(N : ℝ)^222 := by |
| 87 | rw [gradeBase_polynomial] |
| 88 | unfold tailPolynomialConstant |
| 89 | rw [show 222 = 2+220 from rfl, pow_add] |
| 90 | ring |
| 91 | |
| 92 | end EulerPacketCoarseMajorant |