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.EulerProof |
| 2 | import Mathlib.Data.Nat.Choose.Bounds |
| 3 | |
| 4 | /-! Exact shift gains and the final coarse factorial splitting for finite packets. -/ |
| 5 | |
| 6 | namespace EulerGevrey |
| 7 | |
| 8 | theorem majorant_succ_identity (R : ℝ) (d n : ℕ) : |
| 9 | majorant R (d+1) n=R*((n+d+1 : ℕ) : ℝ)^2*majorant R d n := by |
| 10 | simp only [majorant, show n+(d+1)=n+d+1 by omega, Nat.factorial_succ, |
| 11 | Nat.cast_mul, pow_succ] |
| 12 | ring |
| 13 | |
| 14 | theorem majorant_mono_shift (R : ℝ) (hR : 1 ≤ R) (d D n : ℕ) (h : d ≤ D) : |
| 15 | majorant R d n ≤ majorant R D n := by |
| 16 | have hf : ((n+d).factorial : ℝ) ≤ ((n+D).factorial : ℝ) := by |
| 17 | exact_mod_cast Nat.factorial_le (Nat.add_le_add_left h n) |
| 18 | have hs : ((n+d).factorial : ℝ)^2 ≤ ((n+D).factorial : ℝ)^2 := |
| 19 | pow_le_pow_left₀ (by positivity) hf 2 |
| 20 | exact mul_le_mul (pow_le_pow_right₀ hR (Nat.add_le_add_left h n)) hs |
| 21 | (sq_nonneg _) (pow_nonneg (by linarith) _) |
| 22 | |
| 23 | /-- A single spare shift pays a linear number of grade terms at one fixed radius. -/ |
| 24 | theorem linear_grade_cost_absorbed (C R : ℝ) (hC : 0 ≤ C) (hR : C ≤ R) |
| 25 | (p d n : ℕ) (hd : 0 < d) (hpd : p ≤ d) : |
| 26 | (C*(p : ℝ))*majorant R (d-1) n ≤ majorant R d n := by |
| 27 | have hR0 : 0 ≤ R := hC.trans hR |
| 28 | have hnd : (1 : ℝ) ≤ ((n+d : ℕ) : ℝ) := by exact_mod_cast (show 1 ≤ n+d by omega) |
| 29 | have hpnd : (p : ℝ) ≤ ((n+d : ℕ) : ℝ) := by exact_mod_cast (show p ≤ n+d by omega) |
| 30 | have hpsq : (p : ℝ) ≤ ((n+d : ℕ) : ℝ)^2 := by |
| 31 | nlinarith [mul_nonneg (show (0 : ℝ) ≤ ((n+d : ℕ) : ℝ) by positivity) (sub_nonneg.mpr hnd)] |
| 32 | have hcost : C*(p : ℝ) ≤ R*((n+d : ℕ) : ℝ)^2 := |
| 33 | (mul_le_mul_of_nonneg_left hpsq hC).trans (mul_le_mul_of_nonneg_right hR (sq_nonneg _)) |
| 34 | calc |
| 35 | _ ≤ (R*((n+d : ℕ) : ℝ)^2)*majorant R (d-1) n := |
| 36 | mul_le_mul_of_nonneg_right hcost (majorant_nonneg R hR0 _ _) |
| 37 | _ = majorant R d n := by |
| 38 | have h := majorant_succ_identity R (d-1) n |
| 39 | rw [show d-1+1=d by omega, show n+(d-1)+1=n+d by omega] at h |
| 40 | exact h.symm |
| 41 | |
| 42 | theorem factorial_sum_split (n d : ℕ) : |
| 43 | (n+d).factorial ≤ 2^(n+d)*n.factorial*d.factorial := by |
| 44 | calc |
| 45 | (n+d).factorial=(n+d).choose n*n.factorial*d.factorial := by |
| 46 | simpa only [Nat.add_sub_cancel_left] using |
| 47 | (Nat.choose_mul_factorial_mul_factorial (show n ≤ n+d by omega)).symm |
| 48 | _ ≤ _ := Nat.mul_le_mul_right _ (Nat.mul_le_mul_right _ (Nat.choose_le_two_pow (n+d) n)) |
| 49 | |
| 50 | /-- Used once at the final coarse split, or for a fixed coefficient shift. -/ |
| 51 | theorem majorant_coarse_split (R : ℝ) (hR : 0 ≤ R) (d n : ℕ) : |
| 52 | majorant R d n ≤ ((4*R)^d*(d.factorial : ℝ)^2)*majorant (4*R) 0 n := by |
| 53 | have hf : ((n+d).factorial : ℝ) ≤ (2 : ℝ)^(n+d)*(n.factorial : ℝ)*(d.factorial : ℝ) := by |
| 54 | exact_mod_cast factorial_sum_split n d |
| 55 | have hs := pow_le_pow_left₀ (show (0 : ℝ) ≤ ((n+d).factorial : ℝ) by positivity) hf 2 |
| 56 | have hpow : ((2 : ℝ)^(n+d))^2=(4 : ℝ)^(n+d) := by |
| 57 | rw [← pow_mul, Nat.mul_comm, pow_mul] |
| 58 | norm_num |
| 59 | calc |
| 60 | majorant R d n ≤ R^(n+d)*((2 : ℝ)^(n+d)*(n.factorial : ℝ)*(d.factorial : ℝ))^2 := |
| 61 | mul_le_mul_of_nonneg_left hs (pow_nonneg hR _) |
| 62 | _ = (4*R)^(n+d)*(n.factorial : ℝ)^2*(d.factorial : ℝ)^2 := by |
| 63 | simp only [mul_pow, hpow] |
| 64 | ring |
| 65 | _ = _ := by |
| 66 | simp only [majorant, Nat.add_zero, pow_add] |
| 67 | ring |
| 68 | |
| 69 | end EulerGevrey |