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 | |
| 3 | /-! |
| 4 | Uniform comparison of ideal primary sizes before target. This follows |
| 5 | from the actual scalar equation's prefix and weighted monotonicity. |
| 6 | -/ |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | |
| 11 | namespace EulerPacketMovingFrame |
| 12 | |
| 13 | open Set EulerPacketGrowth |
| 14 | |
| 15 | def idealPrimarySize (σ : ℝ) (Z : ℝ → ℝ) (t : ℝ) : ℝ := |
| 16 | Real.sqrt (1+(σ^2*t^2)^2)*Z t |
| 17 | |
| 18 | theorem quadratic_weight_sqrt {p : ℝ} (hp : 0 ≤ p) : |
| 19 | Real.sqrt (1+p^2) ≤ 1+p ∧ 1+p ≤ 2*Real.sqrt (1+p^2) := by |
| 20 | constructor |
| 21 | · exact Real.sqrt_le_iff.mpr ⟨by positivity, by nlinarith only [hp]⟩ |
| 22 | · have h1 : 1 ≤ Real.sqrt (1+p^2) := Real.one_le_sqrt.mpr (by nlinarith [sq_nonneg p]) |
| 23 | have hp' : p ≤ Real.sqrt (1+p^2) := Real.le_sqrt_of_sq_le (by linarith) |
| 24 | linarith only [h1, hp'] |
| 25 | |
| 26 | theorem equation30_polynomial_size_monotone {σ : ℝ} {Z Z₁ : ℝ → ℝ} |
| 27 | (hσ : 0 < σ) (hσsmall : σ ≤ 1/4) |
| 28 | (hZ : ∀ t, 0 ≤ t → HasDerivAt Z (Z₁ t) t) |
| 29 | (hfluxZ : ∀ t, 0 ≤ t → HasDerivAt (fun s => (1+(σ^2*s^2)^2)*Z₁ s) |
| 30 | (2*(1-σ^2*(σ^2*t^2))*Z t) t) |
| 31 | (hZ0 : Z 0 = 1) (hZ₁0 : 0 ≤ Z₁ 0) : |
| 32 | MonotoneOn (fun t => (1+σ^2*t^2)*Z t) (Ici 0) := by |
| 33 | have hpos := equation30_global_positive hσ hσsmall hZ hfluxZ hZ0 hZ₁0 |
| 34 | have hpre := equation30_prefix_monotone hσ hσsmall hZ hfluxZ hZ0 hZ₁0 |
| 35 | have hpost := equation30_weighted_monotone hσ hσsmall hZ hfluxZ hZ0 hZ₁0 |
| 36 | have hcut : 0 < 1/σ := by positivity |
| 37 | have hpreW : ∀ s t, 0 ≤ s → s ≤ t → t ≤ 1/σ → (1+σ^2*s^2)*Z s ≤ (1+σ^2*t^2)*Z t := by |
| 38 | intro s t hs hst ht |
| 39 | have ht0 := hs.trans hst |
| 40 | have hz := hpre ⟨hs, hst.trans ht⟩ ⟨ht0, ht⟩ hst |
| 41 | have hpow : s^2 ≤ t^2 := (sq_le_sq₀ hs ht0).mpr hst |
| 42 | have hcoef : 1+σ^2*s^2 ≤ 1+σ^2*t^2 := by |
| 43 | nlinarith only [mul_le_mul_of_nonneg_left hpow (sq_nonneg σ)] |
| 44 | exact (mul_le_mul_of_nonneg_left hz (by positivity)).trans |
| 45 | (mul_le_mul_of_nonneg_right hcoef (hpos t ht0).le) |
| 46 | have hpostW : ∀ s t, 1/σ ≤ s → s ≤ t → (1+σ^2*s^2)*Z s ≤ (1+σ^2*t^2)*Z t := by |
| 47 | intro s t hs hst |
| 48 | have hs0 := hcut.trans_le hs |
| 49 | have ht := hs.trans hst |
| 50 | have ht0 := hs0.le.trans hst |
| 51 | have hz := hpost hs ht hst |
| 52 | have hss : 1 ≤ σ*s := by have hh := (div_le_iff₀ hσ).mp hs; nlinarith only [hh] |
| 53 | have hst' : 1 ≤ σ*t := by have hh := (div_le_iff₀ hσ).mp ht; nlinarith only [hh] |
| 54 | have hproduct : 1 ≤ (σ*s)*(σ*t) := by |
| 55 | simpa only [one_mul] using mul_le_mul hss hst' zero_le_one (le_trans zero_le_one hss) |
| 56 | have hpositive : 0 ≤ (t-s)*(σ^2*s*t-1) := |
| 57 | mul_nonneg (sub_nonneg.mpr hst) (by nlinarith only [hproduct]) |
| 58 | have hcoef : t*(1+σ^2*s^2) ≤ s*(1+σ^2*t^2) := by nlinarith only [hpositive] |
| 59 | have h1 := mul_le_mul_of_nonneg_left hz (show 0 ≤ 1+σ^2*s^2 by positivity) |
| 60 | have h2 := mul_le_mul_of_nonneg_right hcoef (hpos t ht0).le |
| 61 | apply (mul_le_mul_iff_right₀ hs0).mp |
| 62 | nlinarith only [h1, h2] |
| 63 | intro s hs t _ht hst |
| 64 | by_cases htpre : t ≤ 1/σ |
| 65 | · exact hpreW s t hs hst htpre |
| 66 | · have htpost : 1/σ ≤ t := le_of_not_ge htpre |
| 67 | by_cases hspre : s ≤ 1/σ |
| 68 | · exact (hpreW s (1/σ) hs hspre le_rfl).trans (hpostW (1/σ) t le_rfl htpost) |
| 69 | · exact hpostW s t (le_of_not_ge hspre) hst |
| 70 | |
| 71 | /-- The ideal physical primary size is bounded by twice its later size, |
| 72 | uniformly in the initial nonnegative scalar slope. -/ |
| 73 | theorem equation30_ideal_size_comparison {σ s t : ℝ} {Z Z₁ : ℝ → ℝ} |
| 74 | (hσ : 0 < σ) (hσsmall : σ ≤ 1/4) |
| 75 | (hZ : ∀ t, 0 ≤ t → HasDerivAt Z (Z₁ t) t) |
| 76 | (hfluxZ : ∀ t, 0 ≤ t → HasDerivAt (fun s => (1+(σ^2*s^2)^2)*Z₁ s) |
| 77 | (2*(1-σ^2*(σ^2*t^2))*Z t) t) |
| 78 | (hZ0 : Z 0 = 1) (hZ₁0 : 0 ≤ Z₁ 0) (hs : 0 ≤ s) (hst : s ≤ t) : |
| 79 | idealPrimarySize σ Z s ≤ 2*idealPrimarySize σ Z t := by |
| 80 | have hpos := equation30_global_positive hσ hσsmall hZ hfluxZ hZ0 hZ₁0 |
| 81 | have hmono := equation30_polynomial_size_monotone hσ hσsmall hZ hfluxZ hZ0 hZ₁0 hs (hs.trans hst) hst |
| 82 | have hws := (quadratic_weight_sqrt (show 0 ≤ σ^2*s^2 by positivity)).1 |
| 83 | have hwt := (quadratic_weight_sqrt (show 0 ≤ σ^2*t^2 by positivity)).2 |
| 84 | have h1 := mul_le_mul_of_nonneg_right hws (hpos s hs).le |
| 85 | have h2 := mul_le_mul_of_nonneg_right hwt (hpos t (hs.trans hst)).le |
| 86 | unfold idealPrimarySize |
| 87 | nlinarith only [h1, hmono, h2] |
| 88 | |
| 89 | end EulerPacketMovingFrame |