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 Mathlib.Analysis.SpecialFunctions.Pow.Real |
| 2 | import Mathlib.Tactic |
| 3 | |
| 4 | /-! Products of intermediate entries of a nonnegative log-convex |
| 5 | sequence are bounded by the corresponding endpoint product. The |
| 6 | proof also covers zero entries and uses no logarithm or division. -/ |
| 7 | |
| 8 | namespace EulerNonnegativeLogConvex |
| 9 | |
| 10 | variable (x : ℕ → ℝ) (hx : ∀ n, 0 ≤ x n) |
| 11 | (hc : ∀ n, (x (n+1))^2 ≤ x n*x (n+2)) |
| 12 | |
| 13 | include hx hc |
| 14 | |
| 15 | theorem cross (a d : ℕ) : x (a+1)*x (a+d) ≤ x a*x (a+d+1) := by |
| 16 | induction d with |
| 17 | | zero => simp only [Nat.add_zero]; exact le_of_eq (mul_comm _ _) |
| 18 | | succ d ih => |
| 19 | by_cases hz : x (a+d)=0 |
| 20 | · have hz' : x (a+d+1)=0 := by |
| 21 | have h := hc (a+d) |
| 22 | rw [hz,zero_mul] at h |
| 23 | nlinarith [hx (a+d+1)] |
| 24 | simpa only [Nat.add_succ,hz',mul_zero] using |
| 25 | mul_nonneg (hx a) (hx (a+d+2)) |
| 26 | · have hp : 0 < x (a+d) := lt_of_le_of_ne (hx (a+d)) (Ne.symm hz) |
| 27 | apply (mul_le_mul_iff_right₀ hp).mp |
| 28 | calc |
| 29 | x (a+d)*(x (a+1)*x (a+d.succ)) = |
| 30 | (x (a+1)*x (a+d))*x (a+d+1) := by simp only [Nat.add_succ]; ring |
| 31 | _ ≤ (x a*x (a+d+1))*x (a+d+1) := |
| 32 | mul_le_mul_of_nonneg_right ih (hx _) |
| 33 | _ = x a*(x (a+d+1))^2 := by ring |
| 34 | _ ≤ x a*(x (a+d)*x (a+d+2)) := mul_le_mul_of_nonneg_left (hc _) (hx a) |
| 35 | _ = x (a+d)*(x a*x (a+d.succ+1)) := by simp only [Nat.add_succ]; ring |
| 36 | |
| 37 | theorem pair (a k d : ℕ) : |
| 38 | x (a+k)*x (a+k+d) ≤ x a*x (a+2*k+d) := by |
| 39 | induction k generalizing d with |
| 40 | | zero => simp |
| 41 | | succ k ih => |
| 42 | have h := cross x hx hc (a+k) (d+1) |
| 43 | have hh := ih (d+2) |
| 44 | convert h.trans hh using 1 <;> congr 2 <;> omega |
| 45 | |
| 46 | theorem between (s a b : ℕ) (hsa : s ≤ a) (hab : a ≤ b) : |
| 47 | x a*x b ≤ x s*x (a+b-s) := by |
| 48 | have h := pair x hx hc s (a-s) (b-a) |
| 49 | convert h using 1 <;> congr 2 <;> omega |
| 50 | |
| 51 | end EulerNonnegativeLogConvex |