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.SobolevHeatGenerator |
| 2 | import Euler.VolterraConvolution |
| 3 | import Mathlib.Analysis.Calculus.ParametricIntegral |
| 4 | |
| 5 | /-! Differentiation of the actual heat Duhamel integral in L² from finite Sobolev forcing. -/ |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | namespace EulerDuhamelDifferentiation |
| 10 | |
| 11 | open MeasureTheory Set EulerLiftedGradientSpace EulerCylinderSobolevSpace EulerSobolevHeat |
| 12 | EulerSobolevHeatGenerator EulerVolterraConvolution |
| 13 | open scoped Topology NNReal |
| 14 | |
| 15 | variable (period : ℝ) [Fact (0 < period)] |
| 16 | |
| 17 | /-- The actual Sobolev heat flow is jointly continuous in real time and its initial field. -/ |
| 18 | theorem heatFlow_joint_continuous (q : ℕ) (ν : ℝ) : |
| 19 | Continuous (fun p : ℝ × SobolevSpace period q => heatFlow period q ν p.1 p.2) := by |
| 20 | have hp : Continuous (fun p : ℝ × SobolevSpace period q => ((2 * ν * p.1).toNNReal, p.2)) := |
| 21 | (continuous_real_toNNReal.comp (continuous_const.mul continuous_fst)).prodMk continuous_snd |
| 22 | exact Continuous.comp |
| 23 | (g := fun p : ℝ≥0 × SobolevSpace period q => heatOperator period q p.1 p.2) |
| 24 | (f := fun p : ℝ × SobolevSpace period q => ((2 * ν * p.1).toNNReal, p.2)) |
| 25 | (heatOperator_joint_continuous period q) hp |
| 26 | |
| 27 | /-- The chosen real-time extension is exactly the identity at nonpositive times. -/ |
| 28 | theorem heatFlow_nonpositive {q : ℕ} (ν : ℝ) (hν : 0 < ν) (t : ℝ) (ht : t ≤ 0) |
| 29 | (u : SobolevSpace period q) : heatFlow period q ν t u = u := by |
| 30 | rw [heatFlow, Real.toNNReal_of_nonpos (mul_nonpos_of_nonneg_of_nonpos (by positivity) ht), heatOperator_zero] |
| 31 | |
| 32 | /-- At negative times the actual clamped heat orbit has zero L² derivative. -/ |
| 33 | theorem heatFlow_value_hasDerivAt_negative {q : ℕ} (ν : ℝ) (hν : 0 < ν) |
| 34 | (u : SobolevSpace period q) (t : ℝ) (ht : t < 0) : |
| 35 | HasDerivAt (fun s => value period (heatFlow period q ν s u)) 0 t := by |
| 36 | apply (hasDerivAt_const t (value period u)).congr_of_eventuallyEq |
| 37 | filter_upwards [Iio_mem_nhds ht] with s hs |
| 38 | rw [heatFlow_nonpositive period ν hν s hs.le] |
| 39 | |
| 40 | /-- The full fixed-interval heat integrand is continuous, with the source path extended by clamping. -/ |
| 41 | theorem shiftedHeat_continuous {q : ℕ} (ν T : ℝ) (hT : 0 ≤ T) |
| 42 | (f : C(Icc (0 : ℝ) T, SobolevSpace period q)) (t : ℝ) : |
| 43 | Continuous (fun s : ℝ => heatFlow period q ν (t - s) (extendPath T hT f s)) := by |
| 44 | have hp : Continuous (fun s : ℝ => (t - s, extendPath T hT f s)) := |
| 45 | (continuous_const.sub continuous_id).prodMk (extendPath_continuous T hT f) |
| 46 | exact Continuous.comp |
| 47 | (g := fun p : ℝ × SobolevSpace period q => heatFlow period q ν p.1 p.2) |
| 48 | (f := fun s : ℝ => (t - s, extendPath T hT f s)) (heatFlow_joint_continuous period q ν) hp |
| 49 | |
| 50 | /-- The ordinary, actual Sobolev heat Duhamel integral. -/ |
| 51 | def duhamel {q : ℕ} (ν T : ℝ) (hT : 0 ≤ T) |
| 52 | (f : C(Icc (0 : ℝ) T, SobolevSpace period q)) (t : ℝ) : SobolevSpace period q := |
| 53 | ∫ s in (0 : ℝ)..t, heatFlow period q ν (t - s) (extendPath T hT f s) |
| 54 | |
| 55 | /-- A fixed-interval heat integral whose L² derivative can be taken under the integral sign. -/ |
| 56 | def fullDuhamel {q : ℕ} (ν T : ℝ) (hT : 0 ≤ T) |
| 57 | (f : C(Icc (0 : ℝ) T, SobolevSpace period q)) (t : ℝ) : SobolevSpace period q := |
| 58 | ∫ s in (0 : ℝ)..T, heatFlow period q ν (t - s) (extendPath T hT f s) |
| 59 | |
| 60 | /-- The underlying L² full integral is the genuine Bochner integral of the underlying heat fields. -/ |
| 61 | theorem fullDuhamel_value {q : ℕ} (ν T : ℝ) (hT : 0 ≤ T) |
| 62 | (f : C(Icc (0 : ℝ) T, SobolevSpace period q)) (t : ℝ) : |
| 63 | value period (fullDuhamel period ν T hT f t) = |
| 64 | ∫ s in Ioc 0 T, value period (heatFlow period q ν (t - s) (extendPath T hT f s)) := by |
| 65 | change (valueOperator period q) (∫ s in (0 : ℝ)..T, |
| 66 | heatFlow period q ν (t - s) (extendPath T hT f s)) = _ |
| 67 | rw [← (valueOperator period q).intervalIntegral_comp_comm ((shiftedHeat_continuous period ν T hT f t).intervalIntegrable 0 T), |
| 68 | intervalIntegral.integral_of_le hT] |
| 69 | rfl |
| 70 | |
| 71 | /-- The actual parameter derivative of the full heat integrand away from its measure-zero diagonal. -/ |
| 72 | def derivativeIntegrand {q : ℕ} (hq : 2 ≤ q) (ν T : ℝ) (hT : 0 ≤ T) |
| 73 | (f : C(Icc (0 : ℝ) T, SobolevSpace period q)) (t s : ℝ) : LiftL2 period := |
| 74 | (Iic t).indicator (fun s => ν • laplacianEvaluation period q hq |
| 75 | (heatFlow period q ν (t - s) (extendPath T hT f s))) s |
| 76 | |
| 77 | /-- The actual parameter derivative is measurable despite its jump across the time diagonal. -/ |
| 78 | theorem derivativeIntegrand_measurable {q : ℕ} (hq : 2 ≤ q) (ν T : ℝ) (hT : 0 ≤ T) |
| 79 | (f : C(Icc (0 : ℝ) T, SobolevSpace period q)) (t : ℝ) : |
| 80 | AEStronglyMeasurable (derivativeIntegrand period hq ν T hT f t) (volume.restrict (Ioc 0 T)) := by |
| 81 | have hc : Continuous (fun s => ν • laplacianEvaluation period q hq |
| 82 | (heatFlow period q ν (t - s) (extendPath T hT f s))) := |
| 83 | ((laplacianEvaluation period q hq).continuous.comp (shiftedHeat_continuous period ν T hT f t)).const_smul ν |
| 84 | exact hc.aestronglyMeasurable.indicator measurableSet_Iic |
| 85 | |
| 86 | /-- The full integrand is uniformly Lipschitz in time in L², using two genuine source derivatives. -/ |
| 87 | theorem shiftedHeat_value_lipschitz {q : ℕ} (hq : 2 ≤ q) (ν : ℝ) (hν : 0 < ν) |
| 88 | (T : ℝ) (hT : 0 ≤ T) (f : C(Icc (0 : ℝ) T, SobolevSpace period q)) (r : ℝ) : |
| 89 | LipschitzWith (Real.nnabs (4 * ν * ‖f‖)) |
| 90 | (fun t : ℝ => value period (heatFlow period q ν (t - r) (extendPath T hT f r))) := by |
| 91 | apply LipschitzWith.of_dist_le_mul |
| 92 | intro s t |
| 93 | rw [dist_eq_norm, Real.dist_eq, Real.coe_nnabs, abs_of_nonneg (by positivity : 0 ≤ 4 * ν * ‖f‖)] |
| 94 | have h := heatFlow_value_norm_sub_le period hq ν hν (extendPath T hT f r) (s - r) (t - r) |
| 95 | rw [show (s - r) - (t - r) = s - t by ring] at h |
| 96 | exact h.trans (mul_le_mul_of_nonneg_right |
| 97 | (mul_le_mul_of_nonneg_left (extendPath_norm_le T hT f r) (by positivity : 0 ≤ 4 * ν)) (abs_nonneg _)) |
| 98 | |
| 99 | /-- The actual off-diagonal parameter derivative is the positive-time heat Laplacian and zero before the source time. -/ |
| 100 | theorem shiftedHeat_value_hasDerivAt {q : ℕ} (hq : 2 ≤ q) (ν : ℝ) (hν : 0 < ν) |
| 101 | (T : ℝ) (hT : 0 ≤ T) (f : C(Icc (0 : ℝ) T, SobolevSpace period q)) |
| 102 | (t s : ℝ) (hst : s ≠ t) : |
| 103 | HasDerivAt (fun r => value period (heatFlow period q ν (r - s) (extendPath T hT f s))) |
| 104 | (derivativeIntegrand period hq ν T hT f t s) t := by |
| 105 | rcases lt_or_gt_of_ne hst with hst | hts |
| 106 | · have hd := (heatFlow_value_hasDerivAt period hq ν hν (extendPath T hT f s) (t - s) (sub_pos.mpr hst)).scomp t |
| 107 | ((hasDerivAt_id t).sub_const s) |
| 108 | simpa only [derivativeIntegrand, indicator, mem_Iic, hst.le, ite_true, one_smul, Function.comp_def, id_eq] using hd |
| 109 | · have hd := (heatFlow_value_hasDerivAt_negative period ν hν (extendPath T hT f s) (t - s) (sub_neg.mpr hts)).scomp t |
| 110 | ((hasDerivAt_id t).sub_const s) |
| 111 | simpa only [derivativeIntegrand, indicator, mem_Iic, not_le.mpr hts, ite_false, smul_zero, Function.comp_def, id_eq] using hd |
| 112 | |
| 113 | /-- Differentiation under the actual Bochner integral gives the L² derivative of the fixed-interval heat convolution. -/ |
| 114 | theorem fullDuhamel_value_hasDerivAt {q : ℕ} (hq : 2 ≤ q) (ν : ℝ) (hν : 0 < ν) |
| 115 | (T : ℝ) (hT : 0 ≤ T) (f : C(Icc (0 : ℝ) T, SobolevSpace period q)) (t : ℝ) : |
| 116 | HasDerivAt (fun r => value period (fullDuhamel period ν T hT f r)) |
| 117 | (∫ s in Ioc 0 T, derivativeIntegrand period hq ν T hT f t s) t := by |
| 118 | have hmeas (r : ℝ) : AEStronglyMeasurable |
| 119 | (fun s => value period (heatFlow period q ν (r - s) (extendPath T hT f s))) |
| 120 | (volume.restrict (Ioc 0 T)) := |
| 121 | ((valueOperator period q).continuous.comp (shiftedHeat_continuous period ν T hT f r)).aestronglyMeasurable |
| 122 | have hint : Integrable (fun s => value period (heatFlow period q ν (t - s) (extendPath T hT f s))) |
| 123 | (volume.restrict (Ioc 0 T)) := by |
| 124 | apply Integrable.of_bound (hmeas t) ‖f‖ |
| 125 | exact Filter.Eventually.of_forall fun s => |
| 126 | (value_norm_le period _).trans ((heatOperator_bound period _ _).trans (extendPath_norm_le T hT f s)) |
| 127 | have hdiff : ∀ᵐ s : ℝ ∂volume.restrict (Ioc 0 T), |
| 128 | HasDerivAt (fun r => value period (heatFlow period q ν (r - s) (extendPath T hT f s))) |
| 129 | (derivativeIntegrand period hq ν T hT f t s) t := by |
| 130 | have hne : ∀ᵐ s : ℝ ∂volume.restrict (Ioc 0 T), s ≠ t := |
| 131 | compl_mem_ae_iff.mpr (measure_singleton _) |
| 132 | exact hne.mono fun s hs => shiftedHeat_value_hasDerivAt period hq ν hν T hT f t s hs |
| 133 | have h := (hasDerivAt_integral_of_dominated_loc_of_lip (s := univ) (bound := fun _ : ℝ => 4 * ν * ‖f‖) |
| 134 | (μ := volume.restrict (Ioc 0 T)) Filter.univ_mem (Filter.Eventually.of_forall hmeas) hint |
| 135 | (derivativeIntegrand_measurable period hq ν T hT f t) |
| 136 | (Filter.Eventually.of_forall fun s => (shiftedHeat_value_lipschitz period hq ν hν T hT f s).lipschitzOnWith) |
| 137 | (integrable_const _) hdiff).2 |
| 138 | have he : (fun r => value period (fullDuhamel period ν T hT f r)) = |
| 139 | fun r => ∫ s in Ioc 0 T, value period (heatFlow period q ν (r - s) (extendPath T hT f s)) := by |
| 140 | funext r |
| 141 | exact fullDuhamel_value period ν T hT f r |
| 142 | rw [he] |
| 143 | exact h |
| 144 | |
| 145 | end EulerDuhamelDifferentiation |