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.GaussianCylinderHeat |
| 2 | import Euler.ClosedTranslationGraph |
| 3 | import Mathlib.MeasureTheory.Integral.IntegralEqImproper |
| 4 | |
| 5 | /-! A genuine one-derivative Gaussian smoothing estimate for cylinder L² fields. -/ |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | namespace EulerGaussianCylinderHeat |
| 10 | |
| 11 | open MeasureTheory ProbabilityTheory InnerProductSpace EulerLiftedGradientSpace |
| 12 | EulerPressureSpatialRegularity EulerLiftedWeakDerivative EulerCylinderMollifier |
| 13 | EulerClosedTranslationGraph EulerSpatialSobolevInverse EulerCylinderCoordinates |
| 14 | open scoped ENNReal NNReal Topology ContDiff |
| 15 | |
| 16 | variable (period : ℝ) [Fact (0 < period)] |
| 17 | |
| 18 | /-- Multiplying the isometric orbit by an L¹ scalar kernel gives a Bochner integrable field. -/ |
| 19 | theorem kernelOrbit_integrable (a : LiftTangent) (f : LiftL2 period) |
| 20 | (k : ℝ → ℝ) (hk : Integrable k) : Integrable (fun x => k x • lineOrbit period a f x) := by |
| 21 | apply (hk.norm.mul_const ‖f‖).mono' |
| 22 | (hk.1.smul (lineOrbit_continuous period a f).aestronglyMeasurable) |
| 23 | apply Filter.Eventually.of_forall |
| 24 | intro x |
| 25 | change ‖k x • lineOrbit period a f x‖ ≤ ‖k x‖ * ‖f‖ |
| 26 | rw [norm_smul, lineOrbit_norm] |
| 27 | |
| 28 | /-- The actual derivative of the real Gaussian density. -/ |
| 29 | theorem gaussianPDF_hasDerivAt (v : ℝ≥0) (x : ℝ) : |
| 30 | HasDerivAt (gaussianPDFReal 0 v) (-(x / (v : ℝ)) * gaussianPDFReal 0 v x) x := by |
| 31 | have h := ((((hasDerivAt_id x).pow 2).neg.div_const (2*(v : ℝ))).exp).const_mul |
| 32 | (Real.sqrt (2*Real.pi*(v : ℝ)))⁻¹ |
| 33 | convert! h using 1 |
| 34 | · ext y |
| 35 | simp [gaussianPDFReal] |
| 36 | · simp only [gaussianPDFReal, sub_zero, Pi.neg_apply, Pi.pow_apply, id_eq, |
| 37 | Nat.cast_ofNat, Nat.reduceSub, pow_one, mul_one] |
| 38 | ring |
| 39 | |
| 40 | /-- The Gaussian first-moment kernel is integrable against Lebesgue measure. -/ |
| 41 | theorem gaussianMomentKernel_integrable (v : ℝ≥0) : |
| 42 | Integrable (fun x : ℝ => (x / (v : ℝ)) * gaussianPDFReal 0 v x) := by |
| 43 | by_cases hv : v = 0 |
| 44 | · subst v |
| 45 | simp |
| 46 | have hvpos : 0 < (v : ℝ) := NNReal.coe_pos.mpr (pos_iff_ne_zero.mpr hv) |
| 47 | have h := (integrable_mul_exp_neg_mul_sq (by positivity : 0 < (2*(v : ℝ))⁻¹)).const_mul |
| 48 | ((Real.sqrt (2*Real.pi*(v : ℝ)))⁻¹ / (v : ℝ)) |
| 49 | convert! h using 1 |
| 50 | ext x |
| 51 | simp only [gaussianPDFReal, sub_zero] |
| 52 | have he : -(x ^ 2) / (2*(v : ℝ)) = -(2*(v : ℝ))⁻¹ * x ^ 2 := by ring |
| 53 | rw [he] |
| 54 | ring |
| 55 | |
| 56 | /-- The first absolute moment of a centered Gaussian. -/ |
| 57 | def gaussianAbsMoment (v : ℝ≥0) : ℝ := ∫ x : ℝ, |x| ∂gaussianReal 0 v |
| 58 | |
| 59 | theorem gaussianAbsMoment_nonneg (v : ℝ≥0) : 0 ≤ gaussianAbsMoment v := |
| 60 | integral_nonneg (fun x => abs_nonneg x) |
| 61 | |
| 62 | theorem gaussianId_integrable (v : ℝ≥0) : Integrable (fun x : ℝ => x) (gaussianReal 0 v) := by |
| 63 | exact (memLp_one_iff_integrable).mp (memLp_id_gaussianReal (μ := 0) (v := v) 1) |
| 64 | |
| 65 | /-- Absolute Gaussian moments scale by the standard deviation. -/ |
| 66 | theorem gaussianAbsMoment_scale (v : ℝ≥0) : |
| 67 | gaussianAbsMoment v = Real.sqrt (v : ℝ) * gaussianAbsMoment 1 := by |
| 68 | have hmap : Measure.map (fun x => Real.sqrt (v : ℝ) * x) (gaussianReal 0 1) = gaussianReal 0 v := by |
| 69 | have h := gaussianReal_map_const_mul (μ := 0) (v := (1 : ℝ≥0)) (Real.sqrt (v : ℝ)) |
| 70 | convert h using 2 |
| 71 | · simp |
| 72 | · ext |
| 73 | simp [Real.sq_sqrt v.coe_nonneg] |
| 74 | rw [gaussianAbsMoment, ← hmap, integral_map_of_stronglyMeasurable (by fun_prop) continuous_abs.stronglyMeasurable] |
| 75 | simp_rw [abs_mul, abs_of_nonneg (Real.sqrt_nonneg _)] |
| 76 | rw [integral_const_mul] |
| 77 | rfl |
| 78 | |
| 79 | theorem gaussianMomentOrbit_integrable (a : LiftTangent) (v : ℝ≥0) (f : LiftL2 period) : |
| 80 | Integrable (fun x : ℝ => x • lineOrbit period a f x) (gaussianReal 0 v) := by |
| 81 | apply ((gaussianId_integrable v).norm.mul_const ‖f‖).mono' |
| 82 | ((gaussianId_integrable v).1.smul (lineOrbit_continuous period a f).aestronglyMeasurable) |
| 83 | apply Filter.Eventually.of_forall |
| 84 | intro x |
| 85 | change ‖x • lineOrbit period a f x‖ ≤ ‖x‖ * ‖f‖ |
| 86 | rw [norm_smul, lineOrbit_norm] |
| 87 | |
| 88 | /-- The bounded candidate generator after Gaussian smoothing. -/ |
| 89 | def lineHeatDerivative (a : LiftTangent) (v : ℝ≥0) (f : LiftL2 period) : LiftL2 period := |
| 90 | (v : ℝ)⁻¹ • ∫ x : ℝ, x • lineOrbit period a f x ∂gaussianReal 0 v |
| 91 | |
| 92 | theorem lineHeatDerivative_norm_le (a : LiftTangent) (v : ℝ≥0) (f : LiftL2 period) : |
| 93 | ‖lineHeatDerivative period a v f‖ ≤ (v : ℝ)⁻¹ * gaussianAbsMoment v * ‖f‖ := by |
| 94 | have hi := norm_integral_le_of_norm_le |
| 95 | ((gaussianId_integrable v).norm.mul_const ‖f‖) |
| 96 | (f := fun x : ℝ => x • lineOrbit period a f x) |
| 97 | (Filter.Eventually.of_forall (fun x => by simp only [norm_smul, lineOrbit_norm]; exact le_rfl)) |
| 98 | have hb : ‖∫ x : ℝ, x • lineOrbit period a f x ∂gaussianReal 0 v‖ ≤ gaussianAbsMoment v * ‖f‖ := by |
| 99 | simpa only [integral_mul_const, Real.norm_eq_abs, gaussianAbsMoment] using hi |
| 100 | rw [lineHeatDerivative, norm_smul, Real.norm_of_nonneg (inv_nonneg.mpr v.coe_nonneg)] |
| 101 | exact (mul_le_mul_of_nonneg_left hb (inv_nonneg.mpr v.coe_nonneg)).trans_eq (mul_assoc ..).symm |
| 102 | |
| 103 | /-- The true parabolic one-derivative bound, with inverse square root of variance. -/ |
| 104 | theorem lineHeatDerivative_smoothing_bound (a : LiftTangent) {v : ℝ≥0} (hv : 0 < v) (f : LiftL2 period) : |
| 105 | ‖lineHeatDerivative period a v f‖ ≤ |
| 106 | (gaussianAbsMoment 1 / Real.sqrt (v : ℝ)) * ‖f‖ := by |
| 107 | have hvR : 0 < (v : ℝ) := NNReal.coe_pos.mpr hv |
| 108 | have hs : Real.sqrt (v : ℝ) ≠ 0 := (Real.sqrt_pos.mpr hvR).ne' |
| 109 | have hvne : (v : ℝ) ≠ 0 := hvR.ne' |
| 110 | have he : (v : ℝ)⁻¹ * gaussianAbsMoment v = gaussianAbsMoment 1 / Real.sqrt (v : ℝ) := by |
| 111 | rw [gaussianAbsMoment_scale] |
| 112 | field_simp |
| 113 | rw [Real.sq_sqrt v.coe_nonneg] |
| 114 | simpa only [he] using lineHeatDerivative_norm_le period a v f |
| 115 | |
| 116 | /-- Strong derivatives commute with Gaussian averaging. -/ |
| 117 | theorem lineHeat_strongDerivative (a b : LiftTangent) (v : ℝ≥0) (f g : LiftL2 period) |
| 118 | (hD : HasDerivAt (lineOrbit period b f) g 0) : |
| 119 | HasDerivAt (lineOrbit period b (lineHeat period a v f)) (lineHeat period a v g) 0 := by |
| 120 | have h := (lineHeatOperator period a v).hasFDerivAt.comp_hasDerivAt 0 hD |
| 121 | have he : (fun t => lineHeatOperator period a v (lineOrbit period b f t)) = |
| 122 | lineOrbit period b (lineHeat period a v f) := by |
| 123 | funext t |
| 124 | exact (lineHeat_translation period a v (translationPath period b t) f).symm |
| 125 | change HasDerivAt (fun t => lineHeatOperator period a v (lineOrbit period b f t)) |
| 126 | (lineHeatOperator period a v g) 0 at h |
| 127 | rw [he] at h |
| 128 | exact h |
| 129 | |
| 130 | /-- Gaussian integration by parts identifies the averaged strong derivative with the bounded moment operator. -/ |
| 131 | theorem lineHeat_derivative_identity (a : LiftTangent) {v : ℝ≥0} (hv : v ≠ 0) |
| 132 | (f g : LiftL2 period) (hD : HasDerivAt (lineOrbit period a f) g 0) : |
| 133 | lineHeat period a v g = lineHeatDerivative period a v f := by |
| 134 | have hp := kernelOrbit_integrable period a f (gaussianPDFReal 0 v) (integrable_gaussianPDFReal 0 v) |
| 135 | have hpg := kernelOrbit_integrable period a g (gaussianPDFReal 0 v) (integrable_gaussianPDFReal 0 v) |
| 136 | have hdp := kernelOrbit_integrable period a f |
| 137 | (fun x => -(x/(v : ℝ)) * gaussianPDFReal 0 v x) ((gaussianMomentKernel_integrable v).neg.congr |
| 138 | (Filter.Eventually.of_forall (fun x => by simp only [Pi.neg_apply]; ring))) |
| 139 | have hIBP := integral_bilinear_hasDerivAt_right_eq_neg_left_of_integrable |
| 140 | (L := ContinuousLinearMap.lsmul ℝ ℝ) |
| 141 | (fun x _ => gaussianPDF_hasDerivAt v x) |
| 142 | (fun x _ => translation_hasDerivAt_all period a f g hD x) hpg hdp hp |
| 143 | rw [lineHeat, integral_gaussianReal_eq_integral_smul hv] |
| 144 | change (∫ x, gaussianPDFReal 0 v x • lineOrbit period a g x) = _ |
| 145 | rw [show (∫ x, gaussianPDFReal 0 v x • lineOrbit period a g x) = |
| 146 | -(∫ x, (-(x/(v : ℝ)) * gaussianPDFReal 0 v x) • lineOrbit period a f x) from hIBP] |
| 147 | rw [lineHeatDerivative, integral_gaussianReal_eq_integral_smul hv, ← integral_smul, ← integral_neg] |
| 148 | apply integral_congr_ae |
| 149 | apply Filter.Eventually.of_forall |
| 150 | intro x |
| 151 | change -((-(x / (v : ℝ)) * gaussianPDFReal 0 v x) • lineOrbit period a f x) = |
| 152 | (v : ℝ)⁻¹ • (gaussianPDFReal 0 v x • (x • lineOrbit period a f x)) |
| 153 | rw [← neg_smul] |
| 154 | simp only [smul_smul] |
| 155 | congr 1 |
| 156 | ring |
| 157 | |
| 158 | end EulerGaussianCylinderHeat |