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 NavierStokes.ComparatorR3Bridge |
| 2 | import Mathlib.MeasureTheory.Measure.OpenPos |
| 3 | |
| 4 | /-! |
| 5 | # Closing a localized whole-space comparison estimate |
| 6 | |
| 7 | The localized differential inequality is an |
| 8 | explicit hypothesis here. This file does not assert that arbitrary smooth |
| 9 | finite-energy Navier--Stokes solutions satisfy that inequality: obtaining it |
| 10 | requires the manuscript's pressure recovery and commutator estimates. |
| 11 | |
| 12 | The proof uses interior derivatives, an integrating factor, and dominated |
| 13 | convergence over Euclidean space. Neither periodicity nor compact support of |
| 14 | the comparison velocity is assumed. |
| 15 | -/ |
| 16 | |
| 17 | noncomputable section |
| 18 | |
| 19 | namespace NavierStokes.R3LocalizedEnergyLimit |
| 20 | |
| 21 | open Set Filter MeasureTheory ProblemStatement |
| 22 | open scoped Topology |
| 23 | |
| 24 | /-- An inhomogeneous Grönwall estimate requiring derivatives only at positive |
| 25 | interior times. This also covers `T = 0` and `K = 0`. -/ |
| 26 | theorem gronwall_error {T K ε : ℝ} {E E' : ℝ → ℝ} |
| 27 | (hT : 0 ≤ T) (hK : 0 ≤ K) (hε : 0 ≤ ε) |
| 28 | (hc : ContinuousOn E (Icc 0 T)) (hzero : E 0 = 0) |
| 29 | (hd : ∀ t ∈ Ioo 0 T, HasDerivAt E (E' t) t) |
| 30 | (hb : ∀ t ∈ Ioo 0 T, E' t ≤ K * E t + ε) : |
| 31 | ∀ t ∈ Icc 0 T, E t ≤ ε * t * Real.exp (K * t) := by |
| 32 | let G : ℝ → ℝ := fun t => Real.exp (-K * t) * E t - ε * t |
| 33 | let G' : ℝ → ℝ := fun t => |
| 34 | Real.exp (-K * t) * (E' t - K * E t) - ε |
| 35 | have hGc : ContinuousOn G (Icc 0 T) := |
| 36 | (((Real.continuous_exp.comp (continuous_const.mul continuous_id)).continuousOn.mul hc).sub |
| 37 | (continuous_const.mul continuous_id).continuousOn) |
| 38 | have hGd (t : ℝ) (ht : t ∈ Ioo 0 T) : HasDerivAt G (G' t) t := by |
| 39 | convert! ((((hasDerivAt_id t).const_mul (-K)).exp.mul (hd t ht)).sub |
| 40 | ((hasDerivAt_id t).const_mul ε)) using 1 |
| 41 | dsimp [G, G'] |
| 42 | ring |
| 43 | have hGb (t : ℝ) (ht : t ∈ Ioo 0 T) : G' t ≤ 0 := by |
| 44 | have hexp : Real.exp (-K * t) ≤ 1 := Real.exp_le_one_iff.mpr (by nlinarith [ht.1]) |
| 45 | have hmul := mul_le_mul_of_nonneg_left (hb t ht) (Real.exp_pos (-K * t)).le |
| 46 | have hsmall := mul_le_mul_of_nonneg_right hexp hε |
| 47 | dsimp [G'] |
| 48 | nlinarith |
| 49 | have hmono : AntitoneOn G (Icc 0 T) := by |
| 50 | apply antitoneOn_of_hasDerivWithinAt_nonpos (convex_Icc 0 T) hGc |
| 51 | · intro t ht |
| 52 | exact (hGd t (by simpa only [interior_Icc] using ht)).hasDerivWithinAt |
| 53 | · intro t ht |
| 54 | exact hGb t (by simpa only [interior_Icc] using ht) |
| 55 | intro t ht |
| 56 | have hle := hmono ⟨le_rfl, hT⟩ ht ht.1 |
| 57 | have hweight : Real.exp (K * t) * Real.exp (-K * t) = 1 := by |
| 58 | rw [← Real.exp_add] |
| 59 | ring_nf |
| 60 | exact Real.exp_zero |
| 61 | have hmul := mul_le_mul_of_nonneg_left hle (Real.exp_pos (K * t)).le |
| 62 | dsimp [G] at hmul |
| 63 | rw [hzero] at hmul |
| 64 | rw [mul_sub, ← mul_assoc, hweight] at hmul |
| 65 | nlinarith only [hmul] |
| 66 | |
| 67 | /-- The actual weighted kinetic energy over all of `ℝ³`. -/ |
| 68 | def localizedEnergy (χ : Space → ℝ) (w : Space → Space) : ℝ := |
| 69 | ∫ x : Space, χ x * ‖w x‖ ^ 2 |
| 70 | |
| 71 | theorem localizedEnergy_nonneg {χ : Space → ℝ} (hχ : ∀ x, 0 ≤ χ x) |
| 72 | (w : Space → Space) : 0 ≤ localizedEnergy χ w := |
| 73 | integral_nonneg (fun x => mul_nonneg (hχ x) (sq_nonneg _)) |
| 74 | |
| 75 | /-- Exhausting cutoffs recover the global kinetic energy by dominated |
| 76 | convergence. The sole global integrability assumption is the squared speed. -/ |
| 77 | theorem localizedEnergy_tendsto {χ : ℕ → Space → ℝ} {w : Space → Space} |
| 78 | (hc : ∀ n, Continuous (χ n)) (hw : Continuous w) |
| 79 | (hχ : ∀ n x, χ n x ∈ Icc (0 : ℝ) 1) |
| 80 | (hexhaust : ∀ x, Tendsto (fun n => χ n x) atTop (𝓝 1)) |
| 81 | (hint : Integrable (fun x : Space => ‖w x‖ ^ 2)) : |
| 82 | Tendsto (fun n => localizedEnergy (χ n) w) atTop (𝓝 (∫ x : Space, ‖w x‖ ^ 2)) := by |
| 83 | apply tendsto_integral_of_dominated_convergence (fun x : Space => ‖w x‖ ^ 2) |
| 84 | · intro n |
| 85 | exact ((hc n).mul (hw.norm.pow 2)).aestronglyMeasurable |
| 86 | · exact hint |
| 87 | · intro n |
| 88 | filter_upwards with x |
| 89 | rw [Real.norm_eq_abs, abs_of_nonneg (mul_nonneg (hχ n x).1 (sq_nonneg _))] |
| 90 | exact mul_le_of_le_one_left (sq_nonneg _) (hχ n x).2 |
| 91 | · filter_upwards with x |
| 92 | simpa using (hexhaust x).mul_const (‖w x‖ ^ 2) |
| 93 | |
| 94 | /-- If the cutoff energies have a uniform `C / (n + 1)` bound, the entire |
| 95 | continuous velocity difference vanishes. -/ |
| 96 | theorem eq_zero_of_localizedEnergy_le {χ : ℕ → Space → ℝ} {w : Space → Space} |
| 97 | (hc : ∀ n, Continuous (χ n)) (hw : Continuous w) |
| 98 | (hχ : ∀ n x, χ n x ∈ Icc (0 : ℝ) 1) |
| 99 | (hexhaust : ∀ x, Tendsto (fun n => χ n x) atTop (𝓝 1)) |
| 100 | (hint : Integrable (fun x : Space => ‖w x‖ ^ 2)) |
| 101 | {C : ℝ} (hbound : ∀ n : ℕ, localizedEnergy (χ n) w ≤ C / (n + 1 : ℕ)) : |
| 102 | ∀ x, w x = 0 := by |
| 103 | have hlim := localizedEnergy_tendsto hc hw hχ hexhaust hint |
| 104 | have hlimzero : Tendsto (fun n => localizedEnergy (χ n) w) atTop (𝓝 0) := by |
| 105 | apply squeeze_zero (fun n => localizedEnergy_nonneg (fun x => (hχ n x).1) w) hbound |
| 106 | exact (tendsto_add_atTop_iff_nat 1).mpr (tendsto_const_div_atTop_nhds_zero_nat C) |
| 107 | have htotal : (∫ x : Space, ‖w x‖ ^ 2) = 0 := tendsto_nhds_unique hlim hlimzero |
| 108 | have hae := (integral_eq_zero_iff_of_nonneg (fun x => sq_nonneg ‖w x‖) hint).mp htotal |
| 109 | have heq : (fun x : Space => ‖w x‖ ^ 2) = fun _ => 0 := |
| 110 | MeasureTheory.Measure.eq_of_ae_eq hae (hw.norm.pow 2) continuous_const |
| 111 | intro x |
| 112 | exact norm_eq_zero.mp (sq_eq_zero_iff.mp (congrFun heq x)) |
| 113 | |
| 114 | /-- The final comparison step of the manuscript, with the pressure-flux |
| 115 | estimate still exposed as the differential-inequality premise `hbound`. -/ |
| 116 | theorem comparison_of_localized_differential_inequality |
| 117 | {χ : ℕ → Space → ℝ} {w : VelocityField} {E' : ℕ → ℝ → ℝ} {T K C : ℝ} |
| 118 | (hT : 0 ≤ T) (hK : 0 ≤ K) (hC : 0 ≤ C) |
| 119 | (hχc : ∀ n, Continuous (χ n)) (hχ : ∀ n x, χ n x ∈ Icc (0 : ℝ) 1) |
| 120 | (hexhaust : ∀ x, Tendsto (fun n => χ n x) atTop (𝓝 1)) |
| 121 | (hw : ∀ t ∈ Icc 0 T, Continuous (fun x : Space => w (t, x))) |
| 122 | (hint : ∀ t ∈ Icc 0 T, Integrable (fun x : Space => ‖w (t, x)‖ ^ 2)) |
| 123 | (hzero : ∀ x, w (0, x) = 0) |
| 124 | (hcont : ∀ n, ContinuousOn (fun t => localizedEnergy (χ n) (fun x => w (t, x))) (Icc 0 T)) |
| 125 | (hderiv : ∀ n t, t ∈ Ioo 0 T → |
| 126 | HasDerivAt (fun s => localizedEnergy (χ n) (fun x => w (s, x))) (E' n t) t) |
| 127 | (hbound : ∀ n t, t ∈ Ioo 0 T → |
| 128 | E' n t ≤ K * localizedEnergy (χ n) (fun x => w (t, x)) + C / (n + 1 : ℕ)) : |
| 129 | ∀ t ∈ Icc 0 T, ∀ x, w (t, x) = 0 := by |
| 130 | intro t ht |
| 131 | apply eq_zero_of_localizedEnergy_le hχc (hw t ht) hχ hexhaust (hint t ht) |
| 132 | (C := C * t * Real.exp (K * t)) |
| 133 | intro n |
| 134 | have hε : 0 ≤ C / (n + 1 : ℕ) := by positivity |
| 135 | have hEzero : localizedEnergy (χ n) (fun x => w (0, x)) = 0 := by |
| 136 | simp [localizedEnergy, hzero] |
| 137 | have hb := gronwall_error hT hK hε (hcont n) hEzero (hderiv n) (hbound n) t ht |
| 138 | convert! hb using 1 |
| 139 | ring |
| 140 | |
| 141 | end NavierStokes.R3LocalizedEnergyLimit |