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.WholeSpaceGaussianKernel |
| 2 | import Mathlib.MeasureTheory.Measure.Haar.NormedSpace |
| 3 | |
| 4 | /-! The same Gaussian average as a continuous dilation of a fixed kernel. -/ |
| 5 | |
| 6 | noncomputable section |
| 7 | |
| 8 | namespace EulerWholeSpaceGaussian |
| 9 | |
| 10 | open MeasureTheory InnerProductSpace EulerSmoothLimit Filter Set |
| 11 | open scoped ContDiff ENNReal RealInnerProductSpace Topology |
| 12 | |
| 13 | theorem normalization_sq {c : ℝ} (hc : 0 < c) : |
| 14 | normalization (c^2) = (c^3)⁻¹*normalization 1 := by |
| 15 | unfold normalization |
| 16 | rw [mul_one, Real.mul_rpow Real.pi_pos.le (sq_nonneg c)] |
| 17 | have h : (c^2)^(-(3:ℝ)/2) = (c^3)⁻¹ := by |
| 18 | rw [← Real.rpow_natCast, ← Real.rpow_mul hc.le] |
| 19 | norm_num [Real.rpow_neg, Real.rpow_natCast] |
| 20 | rw [h, mul_comm] |
| 21 | |
| 22 | theorem kernel_sq_smul {c : ℝ} (hc : 0 < c) (y : Space) : |
| 23 | kernel (c^2) (c • y) = (c^3)⁻¹*kernel 1 y := by |
| 24 | unfold kernel |
| 25 | rw [normalization_sq hc, norm_smul, Real.norm_of_nonneg hc.le, mul_pow] |
| 26 | have he : -(c^2)⁻¹*(c^2*‖y‖^2) = -(1:ℝ)⁻¹*‖y‖^2 := by field_simp |
| 27 | rw [he] |
| 28 | ring |
| 29 | |
| 30 | section Averaging |
| 31 | |
| 32 | variable {V : Type*} [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 33 | |
| 34 | /-- This formula continues the actual heat average to t=0 by dilation. -/ |
| 35 | def scaledAverage (t : ℝ) (f : Space → V) (x : Space) : V := |
| 36 | ∫ y : Space, kernel 1 y • f (x+Real.sqrt t • y) |
| 37 | |
| 38 | theorem scaledAverage_eq {t : ℝ} (ht : 0 < t) (f : Space → V) (x : Space) : |
| 39 | scaledAverage t f x = average t f x := by |
| 40 | have hc : 0 < Real.sqrt t := Real.sqrt_pos.mpr ht |
| 41 | have he (y : Space) : kernel t (Real.sqrt t • y) = |
| 42 | (Real.sqrt t ^ 3)⁻¹*kernel 1 y := by |
| 43 | simpa only [Real.sq_sqrt ht.le] using kernel_sq_smul hc y |
| 44 | have h := Measure.integral_comp_smul_of_nonneg (volume : Measure Space) |
| 45 | (fun y : Space => kernel t y • f (x+y)) (Real.sqrt t) (hR := hc.le) |
| 46 | have hdim : Module.finrank ℝ Space = 3 := by simp [Space] |
| 47 | simp only [he, mul_smul, integral_smul, hdim] at h |
| 48 | change (Real.sqrt t ^ 3)⁻¹ • scaledAverage t f x = |
| 49 | (Real.sqrt t ^ 3)⁻¹ • average t f x at h |
| 50 | exact (smul_right_injective V (inv_ne_zero (pow_ne_zero 3 hc.ne'))).eq_iff.mp h |
| 51 | |
| 52 | theorem scaledAverage_zero [CompleteSpace V] (f : Space → V) (x : Space) : scaledAverage 0 f x = f x := by |
| 53 | simp only [scaledAverage, Real.sqrt_zero, zero_smul, add_zero, integral_smul_const, |
| 54 | integral_kernel (by norm_num : (0:ℝ) < 1), one_smul] |
| 55 | |
| 56 | theorem scaledAverage_continuous (f : Space → V) (hf : Continuous f) |
| 57 | (C : ℝ) (hb : ∀ x, ‖f x‖ ≤ C) (x : Space) : |
| 58 | Continuous (fun t : ℝ => scaledAverage t f x) := by |
| 59 | apply continuous_of_dominated (bound := fun y : Space => kernel 1 y*C) |
| 60 | · intro t |
| 61 | exact ((kernel_smooth 1).continuous.smul |
| 62 | (hf.comp (show Continuous (fun y : Space => x+Real.sqrt t • y) by fun_prop))).aestronglyMeasurable |
| 63 | · intro t |
| 64 | exact Eventually.of_forall (fun y => by |
| 65 | rw [norm_smul, Real.norm_of_nonneg (kernel_nonneg (by norm_num) y)] |
| 66 | exact mul_le_mul_of_nonneg_left (hb _) (kernel_nonneg (by norm_num) y)) |
| 67 | · exact (kernel_integrable (by norm_num : (0:ℝ)<1)).mul_const C |
| 68 | · exact Eventually.of_forall (fun y => |
| 69 | continuous_const.smul (hf.comp |
| 70 | (show Continuous (fun t : ℝ => x+Real.sqrt t • y) by fun_prop))) |
| 71 | |
| 72 | end Averaging |
| 73 | end EulerWholeSpaceGaussian |