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 NavierStokes.R3.GaussianMoments |
| 3 | import NavierStokes.R3.RieszTestOperators |
| 4 | import NavierStokes.R3.RieszHeatRepresentation |
| 5 | import Mathlib.Analysis.Fourier.Inversion |
| 6 | |
| 7 | /-! |
| 8 | # Fourier representation of the heat kernel |
| 9 | |
| 10 | The ordinary Gaussian Fourier formula is normalized to the three dimensional |
| 11 | heat kernel used in the comparison proof. Two justified differentiations of |
| 12 | the inverse Fourier integral identify the Hessian multiplier with its kernel. |
| 13 | -/ |
| 14 | |
| 15 | |
| 16 | noncomputable section |
| 17 | |
| 18 | open MeasureTheory |
| 19 | |
| 20 | namespace NavierStokesR3.Comparison |
| 21 | |
| 22 | open ProblemStatement |
| 23 | |
| 24 | theorem fourierIntegral_gaussian_real {a : ℝ} (ha : 0 < a) (z : Space) : |
| 25 | FourierTransform.fourier (fun ξ : Space => (Real.exp (-a * ‖ξ‖ ^ 2) : ℂ)) z = |
| 26 | (((Real.pi / a) ^ (3 / 2 : ℝ) * |
| 27 | Real.exp (-Real.pi ^ 2 * ‖z‖ ^ 2 / a) : ℝ) : ℂ) := by |
| 28 | have hdim : Module.finrank ℝ Space = 3 := by |
| 29 | simp [Space, NavierStokes.ProblemStatement.Space] |
| 30 | have hpow : ((Real.pi : ℂ) / (a : ℂ)) ^ ((3 : ℂ) / 2) = |
| 31 | (((Real.pi / a) ^ (3 / 2 : ℝ) : ℝ) : ℂ) := by |
| 32 | rw [← Complex.ofReal_div, Complex.ofReal_cpow (by positivity)] |
| 33 | simp |
| 34 | have h := fourier_gaussian_innerProductSpace |
| 35 | (V := Space) (b := (a : ℂ)) (by simpa using ha) z |
| 36 | rw [hdim] at h |
| 37 | norm_num only [Nat.cast_ofNat] at h |
| 38 | rw [hpow] at h |
| 39 | simpa only [Complex.ofReal_exp, Complex.ofReal_mul, Complex.ofReal_div, |
| 40 | Complex.ofReal_neg, Complex.ofReal_pow] using h |
| 41 | |
| 42 | /-- Inverse Fourier transform of the heat semigroup's Gaussian multiplier. -/ |
| 43 | theorem fourierIntegralInv_heatGaussian {s : ℝ} (hs : 0 < s) (z : Space) : |
| 44 | FourierTransform.fourierInv |
| 45 | (fun ξ : Space => (Real.exp (-(4 * Real.pi ^ 2 * s) * ‖ξ‖ ^ 2) : ℂ)) z = |
| 46 | (heatKernel s z : ℂ) := by |
| 47 | have ha : 0 < 4 * Real.pi ^ 2 * s := by positivity |
| 48 | have hb : 0 < 4 * Real.pi * s := by positivity |
| 49 | rw [Real.fourierInv_eq_fourier_neg, fourierIntegral_gaussian_real ha] |
| 50 | simp only [norm_neg] |
| 51 | have hratio : Real.pi / (4 * Real.pi ^ 2 * s) = (4 * Real.pi * s)⁻¹ := by |
| 52 | field_simp [Real.pi_ne_zero, hs.ne'] |
| 53 | have hpower : (Real.pi / (4 * Real.pi ^ 2 * s)) ^ (3 / 2 : ℝ) = |
| 54 | (4 * Real.pi * s) ^ (-(3 / 2 : ℝ)) := by |
| 55 | rw [hratio, Real.rpow_def_of_pos (inv_pos.mpr hb), Real.rpow_def_of_pos hb, |
| 56 | Real.log_inv] |
| 57 | congr 1 |
| 58 | ring |
| 59 | have hexponent : -Real.pi ^ 2 * ‖z‖ ^ 2 / (4 * Real.pi ^ 2 * s) = |
| 60 | -(‖z‖ ^ 2) / (4 * s) := by |
| 61 | field_simp [Real.pi_ne_zero, hs.ne'] |
| 62 | rw [hpower, hexponent] |
| 63 | rfl |
| 64 | |
| 65 | private theorem continuous_complex_coordinate (i : Fin 3) : |
| 66 | Continuous (fun x : Space => (x i : ℂ)) := by |
| 67 | exact Complex.continuous_ofReal.comp |
| 68 | ((continuous_apply i).comp (EuclideanSpace.equiv (Fin 3) ℝ).continuous) |
| 69 | |
| 70 | private theorem norm_coordinate_multiplier_le (c : ℂ) (i : Fin 3) |
| 71 | (f : Space → ℂ) (ξ : Space) : |
| 72 | ‖c * (ξ i : ℂ) * f ξ‖ ≤ ‖c‖ * (‖ξ‖ * ‖f ξ‖) := by |
| 73 | have hcoord : ‖(ξ i : ℂ)‖ ≤ ‖ξ‖ := by |
| 74 | simpa only [Complex.norm_real] using PiLp.norm_apply_le ξ i |
| 75 | rw [norm_mul, norm_mul] |
| 76 | calc |
| 77 | _ ≤ ‖c‖ * ‖ξ‖ * ‖f ξ‖ := |
| 78 | mul_le_mul_of_nonneg_right |
| 79 | (mul_le_mul_of_nonneg_left hcoord (norm_nonneg _)) (norm_nonneg _) |
| 80 | _ = _ := by ring |
| 81 | |
| 82 | private theorem integrable_coordinate_multiplier {f : Space → ℂ} |
| 83 | (c : ℂ) (i : Fin 3) (hf : AEStronglyMeasurable f) |
| 84 | (h1 : Integrable (fun ξ : Space => ‖ξ‖ * ‖f ξ‖)) : |
| 85 | Integrable (fun ξ : Space => c * (ξ i : ℂ) * f ξ) := by |
| 86 | apply (h1.const_mul ‖c‖).mono' |
| 87 | · exact (continuous_const.mul (continuous_complex_coordinate i)).aestronglyMeasurable.mul hf |
| 88 | · filter_upwards with ξ |
| 89 | exact norm_coordinate_multiplier_le c i f ξ |
| 90 | |
| 91 | private theorem integrable_coordinate_multiplier_moment {f : Space → ℂ} |
| 92 | (c : ℂ) (i : Fin 3) (hf : AEStronglyMeasurable f) |
| 93 | (h2 : Integrable (fun ξ : Space => ‖ξ‖ ^ 2 * ‖f ξ‖)) : |
| 94 | Integrable (fun ξ : Space => ‖ξ‖ * ‖c * (ξ i : ℂ) * f ξ‖) := by |
| 95 | have hF : AEStronglyMeasurable (fun ξ : Space => c * (ξ i : ℂ) * f ξ) := |
| 96 | (continuous_const.mul (continuous_complex_coordinate i)).aestronglyMeasurable.mul hf |
| 97 | apply (h2.const_mul ‖c‖).mono' |
| 98 | · exact continuous_norm.aestronglyMeasurable.mul hF.norm |
| 99 | · filter_upwards with ξ |
| 100 | rw [norm_mul, norm_norm, norm_norm] |
| 101 | calc |
| 102 | _ ≤ ‖ξ‖ * (‖c‖ * (‖ξ‖ * ‖f ξ‖)) := |
| 103 | mul_le_mul_of_nonneg_left (norm_coordinate_multiplier_le c i f ξ) (norm_nonneg _) |
| 104 | _ = _ := by ring |
| 105 | |
| 106 | private theorem partialD_ofReal {f : Space → ℝ} (hf : Differentiable ℝ f) |
| 107 | (i : Fin 3) (z : Space) : |
| 108 | partialD i (fun x : Space => (f x : ℂ)) z = (partialD (E := ℝ) i f z : ℂ) := by |
| 109 | unfold partialD NavierStokes.PeriodicIntegration.spatialPartial |
| 110 | change fderiv ℝ (Complex.ofRealCLM ∘ f) z |
| 111 | (NavierStokes.ProblemStatement.coordinateVector i) = _ |
| 112 | rw [((Complex.ofRealCLM.hasFDerivAt).comp z (hf z).hasFDerivAt).fderiv] |
| 113 | rfl |
| 114 | |
| 115 | private theorem differentiable_partial_heatKernel {s : ℝ} (hs : 0 < s) (j : Fin 3) : |
| 116 | Differentiable ℝ (partialD j (heatKernel s)) := by |
| 117 | have hc : Differentiable ℝ (fun x : Space => x j) := by |
| 118 | convert! (innerSL ℝ (NavierStokes.ProblemStatement.coordinateVector j)).differentiable |
| 119 | using 1 |
| 120 | ext x |
| 121 | simp [NavierStokes.ProblemStatement.coordinateVector, EuclideanSpace.inner_single_left] |
| 122 | rw [show partialD j (heatKernel s) = |
| 123 | (fun x : Space => -(x j / (2 * s)) * heatKernel s x) from |
| 124 | funext (partial_heatKernel hs j)] |
| 125 | simpa only [div_eq_mul_inv] using! |
| 126 | ((hc.mul_const ((2 * s)⁻¹)).neg.mul (differentiable_heatKernel hs)) |
| 127 | |
| 128 | private theorem secondPartial_ofReal_heatKernel {s : ℝ} (hs : 0 < s) |
| 129 | (i j : Fin 3) (z : Space) : |
| 130 | partialD i (partialD j (fun x : Space => (heatKernel s x : ℂ))) z = |
| 131 | (heatKernelSecond s i j z : ℂ) := by |
| 132 | have hfirst : partialD j (fun x : Space => (heatKernel s x : ℂ)) = |
| 133 | (fun x : Space => (partialD (E := ℝ) j (heatKernel s) x : ℂ)) := |
| 134 | funext (partialD_ofReal (differentiable_heatKernel hs) j) |
| 135 | rw [hfirst, partialD_ofReal (differentiable_partial_heatKernel hs j) i z, |
| 136 | ← heatKernelSecond_eq_partial hs i j z] |
| 137 | |
| 138 | private theorem heatKernelFourierData {s : ℝ} (hs : 0 < s) (i j : Fin 3) : |
| 139 | Integrable (fun ξ : Space => (heatSecondSymbol s i j ξ : ℂ)) ∧ |
| 140 | ∀ z : Space, FourierTransform.fourierInv |
| 141 | (fun ξ : Space => (heatSecondSymbol s i j ξ : ℂ)) z = |
| 142 | (heatKernelSecond s i j z : ℂ) := by |
| 143 | let a : ℝ := 4 * Real.pi ^ 2 * s |
| 144 | let g : Space → ℂ := fun ξ => (Real.exp (-a * ‖ξ‖ ^ 2) : ℂ) |
| 145 | let c : ℂ := 2 * Real.pi * Complex.I |
| 146 | let f1 : Space → ℂ := fun ξ => c * (ξ j : ℂ) * g ξ |
| 147 | let f2 : Space → ℂ := fun ξ => c * (ξ i : ℂ) * f1 ξ |
| 148 | have ha : 0 < a := by dsimp [a]; positivity |
| 149 | have hg : Integrable g := integrable_complex_gaussian ha |
| 150 | have hg1 : Integrable (fun ξ : Space => ‖ξ‖ * ‖g ξ‖) := by |
| 151 | simpa only [g, Complex.norm_real, Real.norm_eq_abs, abs_of_pos (Real.exp_pos _)] using |
| 152 | integrable_norm_gaussian ha |
| 153 | have hg2 : Integrable (fun ξ : Space => ‖ξ‖ ^ 2 * ‖g ξ‖) := by |
| 154 | simpa only [g, Complex.norm_real, Real.norm_eq_abs, abs_of_pos (Real.exp_pos _)] using |
| 155 | integrable_norm_sq_gaussian ha |
| 156 | have hf1 : Integrable f1 := |
| 157 | integrable_coordinate_multiplier c j hg.aestronglyMeasurable hg1 |
| 158 | have hf1moment : Integrable (fun ξ : Space => ‖ξ‖ * ‖f1 ξ‖) := |
| 159 | integrable_coordinate_multiplier_moment c j hg.aestronglyMeasurable hg2 |
| 160 | have hf2 : Integrable f2 := |
| 161 | integrable_coordinate_multiplier c i hf1.aestronglyMeasurable hf1moment |
| 162 | have hf2eq : f2 = (fun ξ : Space => (heatSecondSymbol s i j ξ : ℂ)) := by |
| 163 | funext ξ |
| 164 | dsimp [f2, f1, g, c, a] |
| 165 | unfold heatSecondSymbol |
| 166 | have he : -(4 * Real.pi ^ 2 * s) * ‖ξ‖ ^ 2 = |
| 167 | -(4 * Real.pi ^ 2 * ‖ξ‖ ^ 2) * s := by ring |
| 168 | rw [he] |
| 169 | push_cast |
| 170 | ring_nf |
| 171 | simp [Complex.I_sq] |
| 172 | have h0 : FourierTransform.fourierInv g = (fun x : Space => (heatKernel s x : ℂ)) := by |
| 173 | funext x |
| 174 | exact fourierIntegralInv_heatGaussian hs x |
| 175 | have hd1 : partialD j (FourierTransform.fourierInv g) = FourierTransform.fourierInv f1 := by |
| 176 | funext x |
| 177 | unfold partialD NavierStokes.PeriodicIntegration.spatialPartial |
| 178 | simpa [f1, c, NavierStokes.ProblemStatement.coordinateVector, |
| 179 | EuclideanSpace.inner_single_right] using |
| 180 | RieszTestOperators.fderiv_fourierInv_apply hg hg1 x |
| 181 | (NavierStokes.ProblemStatement.coordinateVector j) |
| 182 | have hd2 : partialD i (FourierTransform.fourierInv f1) = FourierTransform.fourierInv f2 := by |
| 183 | funext x |
| 184 | unfold partialD NavierStokes.PeriodicIntegration.spatialPartial |
| 185 | simpa [f2, c, NavierStokes.ProblemStatement.coordinateVector, |
| 186 | EuclideanSpace.inner_single_right] using |
| 187 | RieszTestOperators.fderiv_fourierInv_apply hf1 hf1moment x |
| 188 | (NavierStokes.ProblemStatement.coordinateVector i) |
| 189 | constructor |
| 190 | · rw [← hf2eq] |
| 191 | exact hf2 |
| 192 | · intro z |
| 193 | rw [← hf2eq, ← hd2, ← hd1, h0] |
| 194 | exact secondPartial_ofReal_heatKernel hs i j z |
| 195 | |
| 196 | /-- The positive-time heat Hessian multiplier is integrable in frequency. -/ |
| 197 | theorem integrable_heatSecondSymbol_space {s : ℝ} (hs : 0 < s) (i j : Fin 3) : |
| 198 | Integrable (fun ξ : Space => (heatSecondSymbol s i j ξ : ℂ)) := |
| 199 | (heatKernelFourierData hs i j).1 |
| 200 | |
| 201 | /-- The inverse Fourier transform of the heat Hessian multiplier is its actual kernel. -/ |
| 202 | theorem fourierIntegralInv_heatSecondSymbol {s : ℝ} (hs : 0 < s) |
| 203 | (i j : Fin 3) (z : Space) : |
| 204 | FourierTransform.fourierInv (fun ξ : Space => (heatSecondSymbol s i j ξ : ℂ)) z = |
| 205 | (heatKernelSecond s i j z : ℂ) := |
| 206 | (heatKernelFourierData hs i j).2 z |
| 207 | |
| 208 | end NavierStokesR3.Comparison |