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 | theorem norm_mul_kernel_integrable {t : ℝ} (ht : 0 < t) : |
| 31 | Integrable (fun y : Space => ‖y‖*kernel t y) := by |
| 32 | apply ((wideKernel_integrable ht).const_mul (1+2*t)).mono' |
| 33 | (continuous_norm.mul (kernel_smooth t).continuous).aestronglyMeasurable |
| 34 | exact Eventually.of_forall (fun y => by |
| 35 | change ‖‖y‖*kernel t y‖ ≤ (1+2*t)*wideKernel t y |
| 36 | rw [Real.norm_of_nonneg (mul_nonneg (norm_nonneg _) (kernel_nonneg ht y))] |
| 37 | exact norm_kernel_le ht y) |
| 38 | |
| 39 | section Averaging |
| 40 | |
| 41 | variable {V : Type*} [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 42 | |
| 43 | /-- This formula continues the actual heat average to t=0 by dilation. -/ |
| 44 | def scaledAverage (t : ℝ) (f : Space → V) (x : Space) : V := |
| 45 | ∫ y : Space, kernel 1 y • f (x+Real.sqrt t • y) |
| 46 | |
| 47 | theorem scaledAverage_eq {t : ℝ} (ht : 0 < t) (f : Space → V) (x : Space) : |
| 48 | scaledAverage t f x = average t f x := by |
| 49 | have hc : 0 < Real.sqrt t := Real.sqrt_pos.mpr ht |
| 50 | have he (y : Space) : kernel t (Real.sqrt t • y) = |
| 51 | (Real.sqrt t ^ 3)⁻¹*kernel 1 y := by |
| 52 | simpa only [Real.sq_sqrt ht.le] using kernel_sq_smul hc y |
| 53 | have h := Measure.integral_comp_smul_of_nonneg (volume : Measure Space) |
| 54 | (fun y : Space => kernel t y • f (x+y)) (Real.sqrt t) (hR := hc.le) |
| 55 | have hdim : Module.finrank ℝ Space = 3 := by simp [Space] |
| 56 | simp only [he, mul_smul, integral_smul, hdim] at h |
| 57 | change (Real.sqrt t ^ 3)⁻¹ • scaledAverage t f x = |
| 58 | (Real.sqrt t ^ 3)⁻¹ • average t f x at h |
| 59 | exact (smul_right_injective V (inv_ne_zero (pow_ne_zero 3 hc.ne'))).eq_iff.mp h |
| 60 | |
| 61 | theorem scaledAverage_zero [CompleteSpace V] (f : Space → V) (x : Space) : scaledAverage 0 f x = f x := by |
| 62 | simp only [scaledAverage, Real.sqrt_zero, zero_smul, add_zero, integral_smul_const, |
| 63 | integral_kernel (by norm_num : (0:ℝ) < 1), one_smul] |
| 64 | |
| 65 | theorem scaledAverage_continuous (f : Space → V) (hf : Continuous f) |
| 66 | (C : ℝ) (hb : ∀ x, ‖f x‖ ≤ C) (x : Space) : |
| 67 | Continuous (fun t : ℝ => scaledAverage t f x) := by |
| 68 | apply continuous_of_dominated (bound := fun y : Space => kernel 1 y*C) |
| 69 | · intro t |
| 70 | exact ((kernel_smooth 1).continuous.smul |
| 71 | (hf.comp (show Continuous (fun y : Space => x+Real.sqrt t • y) by fun_prop))).aestronglyMeasurable |
| 72 | · intro t |
| 73 | exact Eventually.of_forall (fun y => by |
| 74 | rw [norm_smul, Real.norm_of_nonneg (kernel_nonneg (by norm_num) y)] |
| 75 | exact mul_le_mul_of_nonneg_left (hb _) (kernel_nonneg (by norm_num) y)) |
| 76 | · exact (kernel_integrable (by norm_num : (0:ℝ)<1)).mul_const C |
| 77 | · exact Eventually.of_forall (fun y => |
| 78 | continuous_const.smul (hf.comp |
| 79 | (show Continuous (fun t : ℝ => x+Real.sqrt t • y) by fun_prop))) |
| 80 | |
| 81 | theorem average_tendsto_zero [CompleteSpace V] (f : Space → V) (hf : Continuous f) |
| 82 | (C : ℝ) (hb : ∀ x, ‖f x‖ ≤ C) (x : Space) : |
| 83 | Tendsto (fun t : ℝ => average t f x) (𝓝[>] 0) (𝓝 (f x)) := by |
| 84 | have h : Tendsto (fun t : ℝ => scaledAverage t f x) (𝓝[>] 0) |
| 85 | (𝓝 (scaledAverage 0 f x)) := |
| 86 | (scaledAverage_continuous f hf C hb x).continuousAt.tendsto.mono_left nhdsWithin_le_nhds |
| 87 | rw [scaledAverage_zero] at h |
| 88 | exact h.congr' (eventually_nhdsWithin_of_forall (fun t ht => scaledAverage_eq ht f x)) |
| 89 | |
| 90 | end Averaging |
| 91 | end EulerWholeSpaceGaussian |