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.GaussianIntegral |
| 3 | |
| 4 | /-! |
| 5 | # Integration in time for the heat-kernel Hessian |
| 6 | |
| 7 | The reciprocal substitution reduces the inverse-time Gaussian integrals to |
| 8 | the ordinary Gamma integral. These estimates are uniform in the spatial |
| 9 | indices and give the inverse-cube kernel bound in three dimensions. |
| 10 | -/ |
| 11 | |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | open Set MeasureTheory |
| 16 | |
| 17 | namespace NavierStokesR3.Comparison |
| 18 | |
| 19 | open ProblemStatement |
| 20 | |
| 21 | private theorem inverseTimeGamma_transform (a p s : ℝ) (hs : 0 < s) : |
| 22 | (|(-1 : ℝ)| * s ^ ((-1 : ℝ) - 1)) • |
| 23 | ((s ^ (-1 : ℝ)) ^ (p - 1) * Real.exp (-(a * s ^ (-1 : ℝ)))) = |
| 24 | s ^ (-(p + 1)) * Real.exp (-a / s) := by |
| 25 | norm_num only [abs_neg, abs_one, one_mul, smul_eq_mul] |
| 26 | rw [← Real.rpow_mul hs.le, ← mul_assoc, ← Real.rpow_add hs] |
| 27 | congr 1 |
| 28 | · congr 1 |
| 29 | ring |
| 30 | · rw [Real.rpow_neg_one] |
| 31 | simp only [div_eq_mul_inv, neg_mul] |
| 32 | |
| 33 | /-- The inverse-time Gaussian power is integrable for every positive shape |
| 34 | parameter and positive spatial scale. -/ |
| 35 | theorem integrableOn_inverseTimeGamma {a p : ℝ} (ha : 0 < a) (hp : 0 < p) : |
| 36 | IntegrableOn (fun s : ℝ => s ^ (-(p + 1)) * Real.exp (-a / s)) (Ioi 0) := by |
| 37 | have hg : IntegrableOn (fun t : ℝ => t ^ (p - 1) * Real.exp (-(a * t))) |
| 38 | (Ioi 0) := by |
| 39 | simpa only [Real.rpow_one, neg_mul] using |
| 40 | (integrableOn_rpow_mul_exp_neg_mul_rpow |
| 41 | (p := (1 : ℝ)) (s := p - 1) (b := a) (by linarith) (by norm_num) ha) |
| 42 | have h := (integrableOn_Ioi_comp_rpow_iff |
| 43 | (fun t : ℝ => t ^ (p - 1) * Real.exp (-(a * t))) |
| 44 | (p := (-1 : ℝ)) (by norm_num)).mpr hg |
| 45 | exact h.congr_fun (fun s hs => inverseTimeGamma_transform a p s hs) measurableSet_Ioi |
| 46 | |
| 47 | /-- Reciprocal substitution evaluates the inverse-time Gamma integral. -/ |
| 48 | theorem integral_inverseTimeGamma {a p : ℝ} (ha : 0 < a) (hp : 0 < p) : |
| 49 | (∫ s : ℝ in Ioi 0, s ^ (-(p + 1)) * Real.exp (-a / s)) = |
| 50 | a ^ (-p) * Real.Gamma p := by |
| 51 | calc |
| 52 | (∫ s : ℝ in Ioi 0, s ^ (-(p + 1)) * Real.exp (-a / s)) = |
| 53 | ∫ s : ℝ in Ioi 0, (|(-1 : ℝ)| * s ^ ((-1 : ℝ) - 1)) • |
| 54 | ((s ^ (-1 : ℝ)) ^ (p - 1) * Real.exp (-(a * s ^ (-1 : ℝ)))) := by |
| 55 | apply setIntegral_congr_fun measurableSet_Ioi |
| 56 | intro s hs |
| 57 | exact (inverseTimeGamma_transform a p s hs).symm |
| 58 | _ = ∫ t : ℝ in Ioi 0, t ^ (p - 1) * Real.exp (-(a * t)) := |
| 59 | integral_comp_rpow_Ioi (fun t : ℝ => t ^ (p - 1) * Real.exp (-(a * t))) |
| 60 | (by norm_num : (-1 : ℝ) ≠ 0) |
| 61 | _ = (1 / a) ^ p * Real.Gamma p := |
| 62 | Real.integral_rpow_mul_exp_neg_mul_Ioi hp ha |
| 63 | _ = a ^ (-p) * Real.Gamma p := by |
| 64 | rw [one_div, Real.inv_rpow ha.le, Real.rpow_neg ha.le] |
| 65 | |
| 66 | private theorem square_quarter_rpow (r p : ℝ) (hr : 0 < r) : |
| 67 | (r ^ 2 / 4) ^ (-p) = 4 ^ p * r ^ (-2 * p) := by |
| 68 | rw [Real.div_rpow (sq_nonneg r) (by norm_num : (0 : ℝ) ≤ 4), |
| 69 | ← Real.rpow_natCast r 2, ← Real.rpow_mul hr.le, |
| 70 | Real.rpow_neg (by norm_num : (0 : ℝ) ≤ 4), div_inv_eq_mul] |
| 71 | convert! mul_comm (r ^ ((2 : ℝ) * -p)) (4 ^ p) using 1 |
| 72 | congr 1 |
| 73 | ring_nf |
| 74 | |
| 75 | /-- The scale occurring in the heat kernel gives the expected homogeneous |
| 76 | power after integration in time. -/ |
| 77 | theorem integral_inverseTimeGamma_square_scale {r p : ℝ} (hr : 0 < r) (hp : 0 < p) : |
| 78 | (∫ s : ℝ in Ioi 0, s ^ (-(p + 1)) * Real.exp (-(r ^ 2 / 4) / s)) = |
| 79 | 4 ^ p * r ^ (-2 * p) * Real.Gamma p := by |
| 80 | rw [integral_inverseTimeGamma (by positivity) hp, square_quarter_rpow r p hr] |
| 81 | |
| 82 | /-- A common, nonnegative majorant of the nine coordinate Hessians. -/ |
| 83 | def heatKernelSecondTimeEnvelope (r s : ℝ) : ℝ := |
| 84 | (4 * Real.pi) ^ (-(3 / 2 : ℝ)) * |
| 85 | (r ^ 2 / 4 * (s ^ (-((5 / 2 : ℝ) + 1)) * Real.exp (-(r ^ 2 / 4) / s)) + |
| 86 | 1 / 2 * (s ^ (-((3 / 2 : ℝ) + 1)) * Real.exp (-(r ^ 2 / 4) / s))) |
| 87 | |
| 88 | /-- One universal constant for the time-integrated three dimensional heat |
| 89 | kernel Hessian. Its exact value is immaterial to the commutator estimate. -/ |
| 90 | def heatKernelTimeConstant : ℝ := |
| 91 | (4 * Real.pi) ^ (-(3 / 2 : ℝ)) * |
| 92 | (4 ^ (5 / 2 : ℝ) / 4 * Real.Gamma (5 / 2) + |
| 93 | 4 ^ (3 / 2 : ℝ) / 2 * Real.Gamma (3 / 2)) |
| 94 | |
| 95 | theorem heatKernelTimeConstant_pos : 0 < heatKernelTimeConstant := by |
| 96 | unfold heatKernelTimeConstant |
| 97 | positivity |
| 98 | |
| 99 | theorem heatKernelSecondTimeEnvelope_nonneg {s : ℝ} (r : ℝ) (hs : 0 ≤ s) : |
| 100 | 0 ≤ heatKernelSecondTimeEnvelope r s := by |
| 101 | unfold heatKernelSecondTimeEnvelope |
| 102 | positivity |
| 103 | |
| 104 | theorem heatKernelSecondTimeEnvelope_integrable {r : ℝ} (hr : 0 < r) : |
| 105 | IntegrableOn (heatKernelSecondTimeEnvelope r) (Ioi 0) := by |
| 106 | have ha : 0 < r ^ 2 / 4 := by positivity |
| 107 | exact (((integrableOn_inverseTimeGamma ha (by norm_num : (0 : ℝ) < 5 / 2)).const_mul |
| 108 | (r ^ 2 / 4)).add |
| 109 | ((integrableOn_inverseTimeGamma ha (by norm_num : (0 : ℝ) < 3 / 2)).const_mul |
| 110 | (1 / 2))).const_mul _ |
| 111 | |
| 112 | theorem integral_heatKernelSecondTimeEnvelope {r : ℝ} (hr : 0 < r) : |
| 113 | (∫ s : ℝ in Ioi 0, heatKernelSecondTimeEnvelope r s) = |
| 114 | heatKernelTimeConstant * r ^ (-3 : ℝ) := by |
| 115 | have ha : 0 < r ^ 2 / 4 := by positivity |
| 116 | have hfive := integrableOn_inverseTimeGamma ha (by norm_num : (0 : ℝ) < 5 / 2) |
| 117 | have hthree := integrableOn_inverseTimeGamma ha (by norm_num : (0 : ℝ) < 3 / 2) |
| 118 | have hpow : r ^ 2 * r ^ (-5 : ℝ) = r ^ (-3 : ℝ) := by |
| 119 | rw [← Real.rpow_natCast r 2, ← Real.rpow_add hr] |
| 120 | norm_num |
| 121 | simp only [heatKernelSecondTimeEnvelope, integral_const_mul, |
| 122 | integral_add (hfive.const_mul (r ^ 2 / 4)) (hthree.const_mul (1 / 2))] |
| 123 | rw [integral_inverseTimeGamma_square_scale hr (by norm_num : (0 : ℝ) < 5 / 2), |
| 124 | integral_inverseTimeGamma_square_scale hr (by norm_num : (0 : ℝ) < 3 / 2)] |
| 125 | norm_num only [show (-2 : ℝ) * (5 / 2) = -5 by norm_num, |
| 126 | show (-2 : ℝ) * (3 / 2) = -3 by norm_num] |
| 127 | unfold heatKernelTimeConstant |
| 128 | calc |
| 129 | _ = (4 * Real.pi) ^ (-(3 / 2 : ℝ)) * |
| 130 | (4 ^ (5 / 2 : ℝ) / 4 * Real.Gamma (5 / 2) * (r ^ 2 * r ^ (-5 : ℝ)) + |
| 131 | 4 ^ (3 / 2 : ℝ) / 2 * Real.Gamma (3 / 2) * r ^ (-3 : ℝ)) := by ring |
| 132 | _ = _ := by rw [hpow]; ring |
| 133 | |
| 134 | private theorem heatKernel_invTime_decomposition {s : ℝ} (hs : 0 < s) |
| 135 | (z : Space) (a b : ℝ) : |
| 136 | (a / (4 * s ^ 2) + b / (2 * s)) * heatKernel s z = |
| 137 | (4 * Real.pi) ^ (-(3 / 2 : ℝ)) * |
| 138 | (a / 4 * (s ^ (-((5 / 2 : ℝ) + 1)) * |
| 139 | Real.exp (-(‖z‖ ^ 2 / 4) / s)) + |
| 140 | b / 2 * (s ^ (-((3 / 2 : ℝ) + 1)) * |
| 141 | Real.exp (-(‖z‖ ^ 2 / 4) / s))) := by |
| 142 | have hfive : s ^ (-((5 / 2 : ℝ) + 1)) = s ^ (-(3 / 2 : ℝ)) / s ^ 2 := by |
| 143 | rw [show -((5 / 2 : ℝ) + 1) = -(3 / 2 : ℝ) - (2 : ℕ) by norm_num] |
| 144 | exact Real.rpow_sub_natCast hs.ne' _ _ |
| 145 | have hthree : s ^ (-((3 / 2 : ℝ) + 1)) = s ^ (-(3 / 2 : ℝ)) / s := by |
| 146 | rw [show -((3 / 2 : ℝ) + 1) = -(3 / 2 : ℝ) - 1 by norm_num] |
| 147 | exact Real.rpow_sub_one hs.ne' _ |
| 148 | have he : Real.exp (-(‖z‖ ^ 2) / (4 * s)) = |
| 149 | Real.exp (-(‖z‖ ^ 2 / 4) / s) := by |
| 150 | congr 1 |
| 151 | simp only [neg_div, div_div] |
| 152 | unfold heatKernel |
| 153 | rw [hfive, hthree, Real.mul_rpow (show 0 ≤ (4 : ℝ) * Real.pi by positivity) hs.le, he] |
| 154 | field_simp [hs.ne'] |
| 155 | |
| 156 | |
| 157 | /-- The Gaussian coordinate Hessian is the difference of two integrable |
| 158 | inverse-time Gamma terms. -/ |
| 159 | theorem heatKernelSecond_inverseTime_decomposition {s : ℝ} (hs : 0 < s) |
| 160 | (i j : Fin 3) (z : Space) : |
| 161 | heatKernelSecond s i j z = |
| 162 | (4 * Real.pi) ^ (-(3 / 2 : ℝ)) * |
| 163 | (z i * z j / 4 * (s ^ (-((5 / 2 : ℝ) + 1)) * |
| 164 | Real.exp (-(‖z‖ ^ 2 / 4) / s)) - |
| 165 | (if i = j then 1 else 0) / 2 * (s ^ (-((3 / 2 : ℝ) + 1)) * |
| 166 | Real.exp (-(‖z‖ ^ 2 / 4) / s))) := by |
| 167 | simpa only [heatKernelSecond, neg_div, neg_mul, sub_eq_add_neg] using |
| 168 | heatKernel_invTime_decomposition hs z (z i * z j) (-(if i = j then 1 else 0)) |
| 169 | |
| 170 | theorem heatKernelSecondTimeEnvelope_eq {s : ℝ} (hs : 0 < s) (z : Space) : |
| 171 | heatKernelSecondTimeEnvelope ‖z‖ s = |
| 172 | (‖z‖ ^ 2 / (4 * s ^ 2) + 1 / (2 * s)) * heatKernel s z := |
| 173 | (heatKernel_invTime_decomposition hs z (‖z‖ ^ 2) 1).symm |
| 174 | |
| 175 | theorem norm_heatKernelSecond_le_timeEnvelope {s : ℝ} (hs : 0 < s) |
| 176 | (i j : Fin 3) (z : Space) : |
| 177 | ‖heatKernelSecond s i j z‖ ≤ heatKernelSecondTimeEnvelope ‖z‖ s := by |
| 178 | rw [heatKernelSecondTimeEnvelope_eq hs z] |
| 179 | exact norm_heatKernelSecond_le hs i j z |
| 180 | |
| 181 | /-- Away from the spatial origin, every Hessian component is integrable in |
| 182 | positive time. -/ |
| 183 | theorem heatKernelSecond_integrable_time (i j : Fin 3) {z : Space} (hz : z ≠ 0) : |
| 184 | IntegrableOn (fun s : ℝ => heatKernelSecond s i j z) (Ioi 0) := by |
| 185 | have hr : 0 < ‖z‖ := norm_pos_iff.mpr hz |
| 186 | have ha : 0 < ‖z‖ ^ 2 / 4 := by positivity |
| 187 | have hfive := integrableOn_inverseTimeGamma ha (by norm_num : (0 : ℝ) < 5 / 2) |
| 188 | have hthree := integrableOn_inverseTimeGamma ha (by norm_num : (0 : ℝ) < 3 / 2) |
| 189 | have h := ((hfive.const_mul (z i * z j / 4)).sub |
| 190 | (hthree.const_mul ((if i = j then (1 : ℝ) else 0) / 2))).const_mul |
| 191 | ((4 * Real.pi) ^ (-(3 / 2 : ℝ))) |
| 192 | refine h.congr ?_ |
| 193 | filter_upwards [self_mem_ae_restrict measurableSet_Ioi] with s hs |
| 194 | exact (heatKernelSecond_inverseTime_decomposition hs i j z).symm |
| 195 | |
| 196 | /-- The positive-time integral of the absolute Hessian kernel has the |
| 197 | inverse-cube decay needed for the pressure commutator. -/ |
| 198 | theorem heatKernelSecond_integral_norm_le (i j : Fin 3) {z : Space} (hz : z ≠ 0) : |
| 199 | (∫ s : ℝ in Ioi 0, ‖heatKernelSecond s i j z‖) ≤ |
| 200 | heatKernelTimeConstant * ‖z‖ ^ (-3 : ℝ) := by |
| 201 | have hr : 0 < ‖z‖ := norm_pos_iff.mpr hz |
| 202 | calc |
| 203 | (∫ s : ℝ in Ioi 0, ‖heatKernelSecond s i j z‖) ≤ |
| 204 | ∫ s : ℝ in Ioi 0, heatKernelSecondTimeEnvelope ‖z‖ s := by |
| 205 | refine integral_mono_ae (heatKernelSecond_integrable_time i j hz).norm |
| 206 | (heatKernelSecondTimeEnvelope_integrable hr) ?_ |
| 207 | filter_upwards [self_mem_ae_restrict measurableSet_Ioi] with s hs |
| 208 | exact norm_heatKernelSecond_le_timeEnvelope hs i j z |
| 209 | _ = _ := integral_heatKernelSecondTimeEnvelope hr |
| 210 | |
| 211 | theorem heatKernelSecond_integral_abs_le (i j : Fin 3) {z : Space} (hz : z ≠ 0) : |
| 212 | (∫ s : ℝ in Ioi 0, |heatKernelSecond s i j z|) ≤ |
| 213 | heatKernelTimeConstant * ‖z‖ ^ (-3 : ℝ) := by |
| 214 | simpa only [Real.norm_eq_abs] using heatKernelSecond_integral_norm_le i j hz |
| 215 | |
| 216 | end NavierStokesR3.Comparison |