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.Topology.Order.ProjIcc |
| 3 | |
| 4 | /-! Shrinking-radius Gevrey bootstrap from actual integral energy inequalities, including zero norms. -/ |
| 5 | |
| 6 | noncomputable section |
| 7 | |
| 8 | namespace EulerIntegralEnergyBootstrap |
| 9 | |
| 10 | open MeasureTheory Set Real EulerEnergyBootstrap |
| 11 | open scoped Topology |
| 12 | |
| 13 | /-- An all-subinterval integral upper bound gives the genuine right Dini slope bound. |
| 14 | The energy itself need only be continuous, and may vanish. -/ |
| 15 | theorem liminf_slope_le_of_integral (X A : ℝ → ℝ) (a b : ℝ) (hab : a ≤ b) |
| 16 | (hA : ContinuousOn A (Icc a b)) |
| 17 | (hineq : ∀ x ∈ Icc a b, ∀ y ∈ Icc a b, x ≤ y → X y - X x ≤ ∫ s in x..y, A s) |
| 18 | (x : ℝ) (hx : x ∈ Ico a b) (r : ℝ) (hr : A x < r) : |
| 19 | ∃ᶠ y in 𝓝[>] x, slope X x y < r := by |
| 20 | let g : ℝ → ℝ := fun t => A (projIcc a b hab t).val |
| 21 | have hg : Continuous g := (continuousOn_iff_continuous_domRestrict.mp hA).comp continuous_projIcc |
| 22 | have hgx : g x = A x := by simp only [g, projIcc_of_mem hab ⟨hx.1, hx.2.le⟩] |
| 23 | let H : ℝ → ℝ := fun t => ∫ s in x..t, g s |
| 24 | have hd : HasDerivAt H (A x) x := by |
| 25 | have h := (hg.integral_hasStrictDerivAt x x).hasDerivAt |
| 26 | rwa [hgx] at h |
| 27 | have hs := hd.hasDerivWithinAt (s := Ioi x) |>.limsup_slope_le' (lt_irrefl x) hr |
| 28 | have he : ∀ᶠ y in 𝓝[>] x, slope X x y < r := by |
| 29 | filter_upwards [hs, Ioc_mem_nhdsGT hx.2] with y hys hy |
| 30 | have hxy := hineq x ⟨hx.1, hx.2.le⟩ y ⟨hx.1.trans hy.1.le, hy.2⟩ hy.1.le |
| 31 | have hi : (∫ s in x..y, A s) = ∫ s in x..y, g s := by |
| 32 | apply intervalIntegral.integral_congr_ae |
| 33 | filter_upwards [] with s hs |
| 34 | rw [uIoc_of_le hy.1.le] at hs |
| 35 | simp only [g, projIcc_of_mem hab ⟨hx.1.trans hs.1.le, hs.2.trans hy.2⟩] |
| 36 | rw [hi] at hxy |
| 37 | have hcomp : slope X x y ≤ slope H x y := by |
| 38 | rw [slope_def_field, slope_def_field] |
| 39 | simp only [H, intervalIntegral.integral_same, sub_zero] |
| 40 | exact div_le_div_of_nonneg_right hxy (sub_nonneg.mpr hy.1.le) |
| 41 | exact hcomp.trans_lt hys |
| 42 | exact he.frequently |
| 43 | |
| 44 | /-- The source's nonlinear shrinking-radius bootstrap closes directly from the all-subinterval integral energy bound. -/ |
| 45 | theorem close_integral_energy_estimate |
| 46 | (X A Y : ℝ → ℝ) (C B Δ r ρ₀ S R₀ : ℝ) |
| 47 | (hC : 0 < C) (hB : 0 ≤ B) (hΔ : 0 < Δ) (hΔ1 : Δ ≤ 1) |
| 48 | (hr : 0 < r) (hρ : 0 < ρ₀) (hS : 0 ≤ S) (hR : 0 ≤ R₀) |
| 49 | (hdecay : 2 * C * (B + Δ) * S ≤ ρ₀ / 2) (hscale : ρ₀ * R₀ ≤ 1) |
| 50 | (hsmall : 2 * r * exp (3 * C * S) ≤ Δ / 2) |
| 51 | (hcont : ContinuousOn X (Icc 0 S)) (hAcont : ContinuousOn A (Icc 0 S)) (hinit : X 0 ≤ 2 * r) |
| 52 | (hint : ∀ s ∈ Icc 0 S, ∀ t ∈ Icc 0 S, s ≤ t → X t - X s ≤ ∫ u in s..t, A u) |
| 53 | (hY : ∀ t ∈ Ico 0 S, 0 ≤ Y t) |
| 54 | (hineq : ∀ t ∈ Ico 0 S, |
| 55 | A t ≤ C * (X t + (X t) ^ 2 + r) + |
| 56 | ((-2 * C * (B + Δ)) / (ρ₀ - 2 * C * (B + Δ) * t) + |
| 57 | C * ((ρ₀ - 2 * C * (B + Δ) * t)⁻¹ + R₀) * (B + X t)) * Y t) : |
| 58 | ∀ t ∈ Icc 0 S, X t ≤ 2 * r * exp (3 * C * t) ∧ X t ≤ Δ / 2 := by |
| 59 | let F : ℝ → ℝ := fun t => 2 * r * exp (3 * C * t) |
| 60 | have hF (t : ℝ) : HasDerivAt F (3 * C * F t) t := by |
| 61 | have hlin : HasDerivAt (fun s : ℝ => 3 * C * s) (3 * C) t := by |
| 62 | simpa using (hasDerivAt_id t).const_mul (3 * C) |
| 63 | change HasDerivAt (fun s => 2 * r * exp (3 * C * s)) |
| 64 | (3 * C * (2 * r * exp (3 * C * t))) t |
| 65 | exact (hlin.exp.const_mul (2 * r)).congr_deriv (by ring) |
| 66 | have hFle (t : ℝ) (ht : t ∈ Icc 0 S) : F t ≤ Δ / 2 := by |
| 67 | calc |
| 68 | F t ≤ 2 * r * exp (3 * C * S) := by dsimp [F]; gcongr; exact ht.2 |
| 69 | _ ≤ _ := hsmall |
| 70 | have hFp (t : ℝ) : 0 < F t := by dsimp [F]; positivity |
| 71 | have hFbase (t : ℝ) (ht : 0 ≤ t) : 2 * r ≤ F t := by |
| 72 | have he : 1 ≤ exp (3 * C * t) := one_le_exp_iff.mpr (by positivity) |
| 73 | dsimp [F] |
| 74 | nlinarith |
| 75 | have hbound : ∀ t ∈ Icc 0 S, X t ≤ F t := by |
| 76 | apply image_le_of_liminf_slope_right_lt_deriv_boundary hcont |
| 77 | (fun t ht r hr => liminf_slope_le_of_integral X A 0 S hS hAcont hint t ht r hr) |
| 78 | · simpa only [F, mul_zero, exp_zero, mul_one] using hinit |
| 79 | · exact hF |
| 80 | · intro t ht hXF |
| 81 | have htc : t ∈ Icc 0 S := ⟨ht.1, ht.2.le⟩ |
| 82 | have hrad := radius_bounds C B Δ ρ₀ S R₀ hC.le hB hΔ.le hρ hS hR hdecay hscale t htc |
| 83 | have hloss := shrinking_radius_cancels_loss C B Δ _ R₀ (X t) |
| 84 | hC.le hB hΔ.le hrad.2.1 hR hrad.2.2 (by rw [hXF]; linarith [hFle t htc]) |
| 85 | have hlossY := mul_nonpos_of_nonpos_of_nonneg hloss (hY t ht) |
| 86 | have hmain := hineq t ht |
| 87 | have hFt := hFp t |
| 88 | have hFΔ := hFle t htc |
| 89 | have hFr := hFbase t ht.1 |
| 90 | rw [hXF] at hmain hlossY |
| 91 | have hFsq : (F t) ^ 2 ≤ F t := by nlinarith |
| 92 | have hCsq := mul_le_mul_of_nonneg_left hFsq hC.le |
| 93 | have hCr := mul_le_mul_of_nonneg_left hFr hC.le |
| 94 | have hpos := mul_pos hC hFt |
| 95 | nlinarith |
| 96 | intro t ht |
| 97 | exact ⟨hbound t ht, (hbound t ht).trans (hFle t ht)⟩ |
| 98 | |
| 99 | end EulerIntegralEnergyBootstrap |