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.R3.HeatKernel |
| 2 | import Mathlib.Analysis.SpecialFunctions.Gaussian.FourierTransform |
| 3 | |
| 4 | /-! |
| 5 | # Gaussian moments for Fourier differentiation |
| 6 | |
| 7 | The zeroth, first and second norm moments of a Gaussian are integrable. |
| 8 | The only polynomial estimate used here absorbs the square of the norm into |
| 9 | a Gaussian with half the decay rate. |
| 10 | -/ |
| 11 | |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | open MeasureTheory |
| 16 | |
| 17 | namespace NavierStokesR3.Comparison |
| 18 | |
| 19 | open ProblemStatement |
| 20 | |
| 21 | /-- A real Gaussian, regarded as a complex-valued function, is integrable. -/ |
| 22 | theorem integrable_complex_gaussian {a : ℝ} (ha : 0 < a) : |
| 23 | Integrable (fun x : Space => (Real.exp (-a * ‖x‖ ^ 2) : ℂ)) := by |
| 24 | simpa only [zero_mul, add_zero, Complex.ofReal_exp, Complex.ofReal_neg, |
| 25 | Complex.ofReal_mul, Complex.ofReal_pow] using |
| 26 | GaussianFourier.integrable_cexp_neg_mul_sq_norm_add |
| 27 | (b := (a : ℂ)) (by simpa only [Complex.ofReal_re] using ha) 0 (0 : Space) |
| 28 | |
| 29 | /-- The ordinary real Gaussian is integrable on three-dimensional space. -/ |
| 30 | theorem integrable_gaussian {a : ℝ} (ha : 0 < a) : |
| 31 | Integrable (fun x : Space => Real.exp (-a * ‖x‖ ^ 2)) := by |
| 32 | refine (integrable_complex_gaussian ha).norm.congr ?_ |
| 33 | filter_upwards with x |
| 34 | exact Complex.norm_of_nonneg (Real.exp_nonneg _) |
| 35 | |
| 36 | private theorem sq_mul_gaussian_le (a r : ℝ) (ha : 0 < a) : |
| 37 | r ^ 2 * Real.exp (-a * r ^ 2) ≤ |
| 38 | (2 / a) * Real.exp (-(a / 2) * r ^ 2) := by |
| 39 | have hlinear : (a / 2) * r ^ 2 ≤ Real.exp ((a / 2) * r ^ 2) := by |
| 40 | linarith [Real.add_one_le_exp ((a / 2) * r ^ 2)] |
| 41 | have hmul := mul_le_mul_of_nonneg_right hlinear (Real.exp_nonneg (-a * r ^ 2)) |
| 42 | have he : Real.exp ((a / 2) * r ^ 2) * Real.exp (-a * r ^ 2) = |
| 43 | Real.exp (-(a / 2) * r ^ 2) := by |
| 44 | rw [← Real.exp_add] |
| 45 | congr 1 |
| 46 | ring |
| 47 | rw [he] at hmul |
| 48 | calc |
| 49 | r ^ 2 * Real.exp (-a * r ^ 2) = |
| 50 | (2 / a) * (((a / 2) * r ^ 2) * Real.exp (-a * r ^ 2)) := by |
| 51 | field_simp [ha.ne'] |
| 52 | |
| 53 | _ ≤ (2 / a) * Real.exp (-(a / 2) * r ^ 2) := |
| 54 | mul_le_mul_of_nonneg_left hmul (by positivity) |
| 55 | |
| 56 | /-- The second norm moment of a Gaussian is integrable. -/ |
| 57 | theorem integrable_norm_sq_gaussian {a : ℝ} (ha : 0 < a) : |
| 58 | Integrable (fun x : Space => ‖x‖ ^ 2 * Real.exp (-a * ‖x‖ ^ 2)) := by |
| 59 | have hc : Continuous (fun x : Space => ‖x‖ ^ 2 * Real.exp (-a * ‖x‖ ^ 2)) := by |
| 60 | fun_prop |
| 61 | refine ((integrable_gaussian (a := a / 2) (by positivity)).const_mul (2 / a)).mono' |
| 62 | hc.aestronglyMeasurable ?_ |
| 63 | filter_upwards with x |
| 64 | rw [Real.norm_eq_abs, abs_of_nonneg (by positivity)] |
| 65 | exact sq_mul_gaussian_le a ‖x‖ ha |
| 66 | |
| 67 | /-- The first norm moment follows from the zeroth and second moments. -/ |
| 68 | theorem integrable_norm_gaussian {a : ℝ} (ha : 0 < a) : |
| 69 | Integrable (fun x : Space => ‖x‖ * Real.exp (-a * ‖x‖ ^ 2)) := by |
| 70 | have hc : Continuous (fun x : Space => ‖x‖ * Real.exp (-a * ‖x‖ ^ 2)) := by |
| 71 | fun_prop |
| 72 | refine ((integrable_gaussian ha).add (integrable_norm_sq_gaussian ha)).mono' |
| 73 | hc.aestronglyMeasurable ?_ |
| 74 | filter_upwards with x |
| 75 | rw [Real.norm_eq_abs, abs_of_nonneg (by positivity)] |
| 76 | calc |
| 77 | ‖x‖ * Real.exp (-a * ‖x‖ ^ 2) ≤ |
| 78 | (1 + ‖x‖ ^ 2) * Real.exp (-a * ‖x‖ ^ 2) := by |
| 79 | apply mul_le_mul_of_nonneg_right _ (Real.exp_nonneg _) |
| 80 | nlinarith [sq_nonneg (‖x‖ - 1 / 2)] |
| 81 | _ = Real.exp (-a * ‖x‖ ^ 2) + ‖x‖ ^ 2 * Real.exp (-a * ‖x‖ ^ 2) := by ring |
| 82 | |
| 83 | end NavierStokesR3.Comparison |