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 | /-! Optimization of the actual heat-scale estimate used in the |
| 5 | whole-space logarithmic gradient bound. -/ |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | namespace EulerLogarithmicCutoff |
| 10 | |
| 11 | open Real |
| 12 | |
| 13 | theorem optimize (X c L W H : ℝ) (hc : 0 ≤ c) (hL : 0 ≤ L) (hH : 0 ≤ H) |
| 14 | (hbound : ∀ ε : ℝ, 0 < ε → ε < 1 → |
| 15 | X ≤ c*(L+W*(-log ε)+ε^(1/4 : ℝ)*H)) : |
| 16 | X ≤ 4*c*(1+L+W*log (exp 1+H)) := by |
| 17 | let A := exp 1+H |
| 18 | have hE : 1 < exp (1 : ℝ) := by |
| 19 | simpa only [exp_zero] using exp_lt_exp.mpr (by norm_num : (0 : ℝ) < 1) |
| 20 | have hA1 : 1 < A := by dsimp [A]; linarith |
| 21 | have hA0 : 0 < A := zero_lt_one.trans hA1 |
| 22 | have hl : 0 < log A := log_pos hA1 |
| 23 | let ε := exp (-4*log A) |
| 24 | have he0 : 0 < ε := exp_pos _ |
| 25 | have he1 : ε < 1 := by |
| 26 | have hneg : -4*log A < 0 := by linarith |
| 27 | simpa only [ε,exp_zero] using exp_lt_exp.mpr hneg |
| 28 | have heLog : -log ε=4*log A := by simp only [ε,log_exp]; ring |
| 29 | have hePow : ε^(1/4 : ℝ)=A⁻¹ := by |
| 30 | dsimp [ε] |
| 31 | rw [rpow_def_of_pos (exp_pos _),log_exp, |
| 32 | show (-4*log A)*(1/4 : ℝ) = -log A by ring,exp_neg,exp_log hA0] |
| 33 | have hHA : H ≤ A := le_add_of_nonneg_left (exp_pos 1).le |
| 34 | have hsmall : A⁻¹*H ≤ 1 := by |
| 35 | rw [mul_comm,← div_eq_mul_inv] |
| 36 | exact (div_le_one hA0).mpr hHA |
| 37 | have h := hbound ε he0 he1 |
| 38 | rw [heLog,hePow] at h |
| 39 | have hmid : X ≤ c*(L+4*(W*log A)+1) := by |
| 40 | apply h.trans |
| 41 | apply mul_le_mul_of_nonneg_left _ hc |
| 42 | nlinarith only [hsmall] |
| 43 | have hdiff : 0 ≤ c*(3+3*L) := mul_nonneg hc (by linarith) |
| 44 | change X ≤ 4*c*(1+L+W*log A) |
| 45 | nlinarith only [hmid,hdiff] |
| 46 | |
| 47 | end EulerLogarithmicCutoff |