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.LpSmoothField |
| 2 | import Euler.LpParameterIntegral |
| 3 | import Mathlib.Analysis.SpecialFunctions.Gaussian.FourierTransform |
| 4 | import Mathlib.MeasureTheory.Function.LpSeminorm.LpNorm |
| 5 | |
| 6 | /-! |
| 7 | The normalized Gaussian on ordinary three-dimensional space. The estimates |
| 8 | below concern the literal Bochner integral, including its L²-to-uniform bound. |
| 9 | The parameterization exp(-|x|²/t) has heat generator one quarter of the Laplacian. |
| 10 | -/ |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | namespace EulerWholeSpaceGaussian |
| 15 | |
| 16 | open MeasureTheory InnerProductSpace EulerSmoothLimit EulerLpTranslation Filter |
| 17 | open scoped ContDiff ENNReal RealInnerProductSpace |
| 18 | |
| 19 | def normalization (t : ℝ) : ℝ := (Real.pi*t)^(-(3:ℝ)/2) |
| 20 | |
| 21 | def kernel (t : ℝ) (x : Space) : ℝ := |
| 22 | normalization t * Real.exp (-t⁻¹*‖x‖^2) |
| 23 | |
| 24 | theorem normalization_pos {t : ℝ} (ht : 0 < t) : 0 < normalization t := |
| 25 | Real.rpow_pos_of_pos (mul_pos Real.pi_pos ht) _ |
| 26 | |
| 27 | theorem kernel_pos {t : ℝ} (ht : 0 < t) (x : Space) : 0 < kernel t x := |
| 28 | mul_pos (normalization_pos ht) (Real.exp_pos _) |
| 29 | |
| 30 | theorem kernel_nonneg {t : ℝ} (ht : 0 < t) (x : Space) : 0 ≤ kernel t x := |
| 31 | (kernel_pos ht x).le |
| 32 | |
| 33 | theorem kernel_le_normalization {t : ℝ} (ht : 0 < t) (x : Space) : |
| 34 | kernel t x ≤ normalization t := by |
| 35 | unfold kernel |
| 36 | apply mul_le_of_le_one_right (normalization_pos ht).le |
| 37 | exact Real.exp_le_one_iff.mpr (mul_nonpos_of_nonpos_of_nonneg |
| 38 | (neg_nonpos.mpr (inv_pos.mpr ht).le) (sq_nonneg ‖x‖)) |
| 39 | |
| 40 | theorem kernel_smooth (t : ℝ) : ContDiff ℝ ∞ (kernel t) := by |
| 41 | unfold kernel |
| 42 | have hn : ContDiff ℝ ∞ (fun x : Space => ‖x‖^2) := contDiff_id.norm_sq ℝ |
| 43 | exact contDiff_const.mul ((contDiff_const.mul hn).exp) |
| 44 | |
| 45 | theorem exp_integrable {b : ℝ} (hb : 0 < b) : |
| 46 | Integrable (fun x : Space => Real.exp (-b*‖x‖^2)) := by |
| 47 | have h := (GaussianFourier.integrable_cexp_neg_mul_sq_norm_add |
| 48 | (V := Space) (b := (b : ℂ)) (by simpa using hb) 0 0).re |
| 49 | change Integrable (fun x : Space => (Complex.exp |
| 50 | (-(b : ℂ)*‖x‖^2 + 0*inner ℝ (0 : Space) x)).re) at h |
| 51 | simpa only [zero_mul, add_zero, ← Complex.ofReal_pow, ← Complex.ofReal_mul, |
| 52 | ← Complex.ofReal_neg, ← Complex.ofReal_exp, Complex.ofReal_re] using h |
| 53 | |
| 54 | theorem kernel_integrable {t : ℝ} (ht : 0 < t) : Integrable (kernel t) := |
| 55 | (exp_integrable (inv_pos.mpr ht)).const_mul _ |
| 56 | |
| 57 | theorem integral_kernel {t : ℝ} (ht : 0 < t) : |
| 58 | (∫ x : Space, kernel t x) = 1 := by |
| 59 | have hdim : Module.finrank ℝ Space = 3 := by simp [Space] |
| 60 | simp only [kernel] |
| 61 | rw [integral_const_mul, |
| 62 | GaussianFourier.integral_rexp_neg_mul_sq_norm (inv_pos.mpr ht), hdim] |
| 63 | simp only [Nat.cast_ofNat, div_inv_eq_mul] |
| 64 | unfold normalization |
| 65 | rw [← Real.rpow_add (mul_pos Real.pi_pos ht)] |
| 66 | norm_num |
| 67 | |
| 68 | theorem kernel_sq_integrable {t : ℝ} (ht : 0 < t) : |
| 69 | Integrable (fun x : Space => kernel t x ^ 2) := by |
| 70 | apply ((kernel_integrable ht).const_mul (normalization t)).mono' |
| 71 | ((kernel_smooth t).continuous.pow 2).aestronglyMeasurable |
| 72 | apply Eventually.of_forall |
| 73 | intro x |
| 74 | change ‖kernel t x ^ 2‖ ≤ normalization t * kernel t x |
| 75 | rw [Real.norm_of_nonneg (sq_nonneg _), pow_two] |
| 76 | exact mul_le_mul_of_nonneg_right (kernel_le_normalization ht x) (kernel_nonneg ht x) |
| 77 | |
| 78 | theorem kernel_memLp {t : ℝ} (ht : 0 < t) : MemLp (kernel t) 2 volume := |
| 79 | (memLp_two_iff_integrable_sq (kernel_smooth t).continuous.aestronglyMeasurable).2 |
| 80 | (kernel_sq_integrable ht) |
| 81 | |
| 82 | theorem integral_kernel_sq_le {t : ℝ} (ht : 0 < t) : |
| 83 | (∫ x : Space, kernel t x ^ 2) ≤ normalization t := by |
| 84 | calc |
| 85 | _ ≤ ∫ x : Space, normalization t * kernel t x := |
| 86 | integral_mono (kernel_sq_integrable ht) ((kernel_integrable ht).const_mul _) |
| 87 | (fun x => by |
| 88 | rw [pow_two] |
| 89 | exact mul_le_mul_of_nonneg_right (kernel_le_normalization ht x) (kernel_nonneg ht x)) |
| 90 | _ = normalization t := by rw [integral_const_mul, integral_kernel ht, mul_one] |
| 91 | |
| 92 | theorem sqrt_normalization {t : ℝ} (ht : 0 < t) : |
| 93 | Real.sqrt (normalization t) = (Real.pi*t)^(-(3:ℝ)/4) := by |
| 94 | rw [Real.sqrt_eq_rpow, normalization, ← Real.rpow_mul (mul_pos Real.pi_pos ht).le] |
| 95 | norm_num |
| 96 | |
| 97 | theorem sqrt_normalization_le {t : ℝ} (ht : 0 < t) : |
| 98 | Real.sqrt (normalization t) ≤ t^(-(3:ℝ)/4) := by |
| 99 | rw [sqrt_normalization ht] |
| 100 | apply Real.rpow_le_rpow_of_nonpos ht |
| 101 | · nlinarith [Real.pi_pos, Real.two_le_pi] |
| 102 | · norm_num |
| 103 | |
| 104 | section Averaging |
| 105 | |
| 106 | variable {V : Type*} [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 107 | |
| 108 | /-- The actual whole-space Gaussian average, with no periodic identification. -/ |
| 109 | def average (t : ℝ) (f : Space → V) (x : Space) : V := |
| 110 | ∫ y : Space, kernel t y • f (x+y) |
| 111 | |
| 112 | theorem average_integrable_of_bound {t : ℝ} (ht : 0 < t) |
| 113 | (f : Space → V) (hf : Continuous f) (C : ℝ) (hb : ∀ x, ‖f x‖ ≤ C) (x : Space) : |
| 114 | Integrable (fun y : Space => kernel t y • f (x+y)) := by |
| 115 | apply ((kernel_integrable ht).mul_const C).mono' |
| 116 | (((kernel_smooth t).continuous.smul (hf.comp (continuous_const.add continuous_id))).aestronglyMeasurable) |
| 117 | apply Eventually.of_forall |
| 118 | intro y |
| 119 | change ‖kernel t y • f (x+y)‖ ≤ kernel t y * C |
| 120 | rw [norm_smul, Real.norm_of_nonneg (kernel_nonneg ht y)] |
| 121 | exact mul_le_mul_of_nonneg_left (hb _) (kernel_nonneg ht y) |
| 122 | |
| 123 | theorem average_norm_le {t : ℝ} (ht : 0 < t) (f : Space → V) |
| 124 | (C : ℝ) (hb : ∀ x, ‖f x‖ ≤ C) (x : Space) : ‖average t f x‖ ≤ C := by |
| 125 | have h := norm_integral_le_of_norm_le ((kernel_integrable ht).mul_const C) |
| 126 | (f := fun y : Space => kernel t y • f (x+y)) (Eventually.of_forall (fun y => by |
| 127 | rw [norm_smul, Real.norm_of_nonneg (kernel_nonneg ht y)] |
| 128 | exact mul_le_mul_of_nonneg_left (hb _) (kernel_nonneg ht y))) |
| 129 | simpa only [integral_mul_const, integral_kernel ht, one_mul, average] using h |
| 130 | |
| 131 | /-- Cauchy--Schwarz for scalar multiplication, in a form that retains the |
| 132 | ordinary L² norm of a Banach-valued field. -/ |
| 133 | theorem norm_integral_smul_le (k : Space → ℝ) (f : Space → V) |
| 134 | (hk : MemLp k 2 volume) (hf : MemLp f 2 volume) : |
| 135 | ‖∫ x : Space, k x • f x‖ ≤ |
| 136 | Real.sqrt (∫ x : Space, ‖k x‖^2) * (eLpNorm f 2 volume).toReal := by |
| 137 | have hp : (2:ℝ).HolderConjugate 2 := by norm_num [Real.holderConjugate_iff] |
| 138 | have hk' : MemLp (fun x => ‖k x‖) (ENNReal.ofReal (2:ℝ)) volume := by simpa using hk.norm |
| 139 | have hf' : MemLp (fun x => ‖f x‖) (ENNReal.ofReal (2:ℝ)) volume := by simpa using hf.norm |
| 140 | have h := integral_mul_le_Lp_mul_Lq_of_nonneg hp |
| 141 | (Eventually.of_forall (fun x => norm_nonneg (k x))) |
| 142 | (Eventually.of_forall (fun x => norm_nonneg (f x))) hk' hf' |
| 143 | have hnorm : (∫ x : Space, ‖k x‖*‖f x‖) ≤ |
| 144 | Real.sqrt (∫ x : Space, ‖k x‖^2) * Real.sqrt (∫ x : Space, ‖f x‖^2) := by |
| 145 | simpa only [Real.rpow_two, Real.sqrt_eq_rpow] using h |
| 146 | have he : Real.sqrt (∫ x : Space, ‖f x‖^2) = (eLpNorm f 2 volume).toReal := by |
| 147 | rw [EulerLpParameterIntegral.integral_norm_sq_eq volume f hf, |
| 148 | Real.sqrt_sq ENNReal.toReal_nonneg] |
| 149 | rw [he] at hnorm |
| 150 | exact (norm_integral_le_integral_norm _).trans (by simpa only [norm_smul] using hnorm) |
| 151 | |
| 152 | /-- The three-dimensional smoothing power t^(-3/4) is proved from the |
| 153 | normalized Gaussian density and the ordinary whole-space L² norm. -/ |
| 154 | theorem average_norm_le_L2 {t : ℝ} (ht : 0 < t) (f : Space → V) |
| 155 | (hf : MemLp f 2 volume) (x : Space) : |
| 156 | ‖average t f x‖ ≤ t^(-(3:ℝ)/4) * (eLpNorm f 2 volume).toReal := by |
| 157 | have hmp := measurePreserving_add_left (volume : Measure Space) x |
| 158 | have hs : MemLp (fun y : Space => f (x+y)) 2 volume := hf.comp_measurePreserving hmp |
| 159 | have he : eLpNorm (fun y : Space => f (x+y)) 2 volume = eLpNorm f 2 volume := |
| 160 | eLpNorm_comp_measurePreserving hf.aestronglyMeasurable hmp |
| 161 | have h := norm_integral_smul_le (kernel t) (fun y : Space => f (x+y)) (kernel_memLp ht) hs |
| 162 | rw [he] at h |
| 163 | have hk : (∫ y : Space, ‖kernel t y‖^2) ≤ normalization t := by |
| 164 | simpa only [Real.norm_eq_abs, sq_abs] using integral_kernel_sq_le ht |
| 165 | exact h.trans (mul_le_mul_of_nonneg_right |
| 166 | ((Real.sqrt_le_sqrt hk).trans (sqrt_normalization_le ht)) ENNReal.toReal_nonneg) |
| 167 | |
| 168 | theorem average_smoothField_norm {t : ℝ} (ht : 0 < t) (A : SmoothL2Field V) (x : Space) : |
| 169 | ‖average t A.field x‖ ≤ t^(-(3:ℝ)/4) * ‖A.toLp‖ := by |
| 170 | simpa only [SmoothL2Field.toLp, Lp.norm_toLp] using average_norm_le_L2 ht A.field A.memLp x |
| 171 | |
| 172 | end Averaging |
| 173 | end EulerWholeSpaceGaussian |