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.Algebra.Polynomial.Eval.Degree |
| 2 | import Mathlib.Analysis.SpecialFunctions.Pow.Real |
| 3 | import Mathlib.Tactic |
| 4 | |
| 5 | /-! A fixed polynomial has one uniform power bound on the whole range |
| 6 | x ≥ 1. This extracts an actual degree and constant for scalar cost formulas. -/ |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | namespace EulerPolynomialCost |
| 11 | |
| 12 | def coefficientCost (p : Polynomial ℝ) : ℝ := 1+∑ n ∈ p.support, |p.coeff n| |
| 13 | |
| 14 | theorem coefficientCost_pos (p : Polynomial ℝ) : 0 < coefficientCost p := by |
| 15 | unfold coefficientCost |
| 16 | positivity |
| 17 | |
| 18 | theorem eval_bound (p : Polynomial ℝ) (x : ℝ) (hx : 1 ≤ x) : |
| 19 | |p.eval x| ≤ coefficientCost p*x^p.natDegree := by |
| 20 | classical |
| 21 | rw [Polynomial.eval_eq_sum,Polynomial.sum] |
| 22 | calc |
| 23 | _ ≤ ∑ n ∈ p.support, |p.coeff n*x^n| := Finset.abs_sum_le_sum_abs _ _ |
| 24 | _ ≤ ∑ n ∈ p.support, |p.coeff n| * x^p.natDegree := by |
| 25 | apply Finset.sum_le_sum |
| 26 | intro n hn |
| 27 | rw [abs_mul,abs_of_nonneg (pow_nonneg (zero_le_one.trans hx) n)] |
| 28 | exact mul_le_mul_of_nonneg_left |
| 29 | (pow_le_pow_right₀ hx (Polynomial.le_natDegree_of_ne_zero (Polynomial.mem_support_iff.mp hn))) |
| 30 | (abs_nonneg _) |
| 31 | _ = (∑ n ∈ p.support, |p.coeff n|)*x^p.natDegree := (Finset.sum_mul ..).symm |
| 32 | _ ≤ coefficientCost p*x^p.natDegree := |
| 33 | mul_le_mul_of_nonneg_right (by unfold coefficientCost; linarith) |
| 34 | (pow_nonneg (zero_le_one.trans hx) _) |
| 35 | |
| 36 | end EulerPolynomialCost |