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.DuhamelDifferentiation |
| 2 | |
| 3 | /-! The actual heat Duhamel integral satisfies the inhomogeneous equation in L². -/ |
| 4 | |
| 5 | noncomputable section |
| 6 | |
| 7 | namespace EulerDuhamelDifferentiation |
| 8 | |
| 9 | open MeasureTheory Set EulerLiftedGradientSpace EulerCylinderSobolevSpace EulerSobolevHeat |
| 10 | EulerSobolevHeatGenerator EulerVolterraConvolution |
| 11 | open scoped Topology |
| 12 | |
| 13 | variable (period : ℝ) [Fact (0 < period)] |
| 14 | |
| 15 | /-- The causal Duhamel integral is the full clamped heat integral minus the unevolved source tail. -/ |
| 16 | theorem duhamel_eq_full_sub_tail {q : ℕ} (ν : ℝ) (hν : 0 < ν) (T : ℝ) (hT : 0 ≤ T) |
| 17 | (f : C(Icc (0 : ℝ) T, SobolevSpace period q)) (t : ℝ) (ht : t ∈ Icc 0 T) : |
| 18 | duhamel period ν T hT f t = fullDuhamel period ν T hT f t - ∫ s in t..T, extendPath T hT f s := by |
| 19 | have hc := shiftedHeat_continuous period ν T hT f t |
| 20 | have htail : (∫ s in t..T, heatFlow period q ν (t - s) (extendPath T hT f s)) = |
| 21 | ∫ s in t..T, extendPath T hT f s := by |
| 22 | apply intervalIntegral.integral_congr_ae |
| 23 | filter_upwards [] with s hs |
| 24 | rw [uIoc_of_le ht.2] at hs |
| 25 | exact heatFlow_nonpositive period ν hν (t - s) (sub_nonpos.mpr hs.1.le) _ |
| 26 | have h := intervalIntegral.integral_add_adjacent_intervals (hc.intervalIntegrable (μ := volume) 0 t) (hc.intervalIntegrable (μ := volume) t T) |
| 27 | rw [htail] at h |
| 28 | exact eq_sub_iff_add_eq.mpr h |
| 29 | |
| 30 | /-- The source tail has its genuine L² derivative by the fundamental theorem of calculus. -/ |
| 31 | theorem source_tail_value_hasDerivAt {q : ℕ} (T : ℝ) (hT : 0 ≤ T) |
| 32 | (f : C(Icc (0 : ℝ) T, SobolevSpace period q)) (t : ℝ) : |
| 33 | HasDerivAt (fun r => value period (∫ s in r..T, extendPath T hT f s)) |
| 34 | (-value period (extendPath T hT f t)) t := by |
| 35 | have hc := (valueOperator period q).continuous.comp (extendPath_continuous T hT f) |
| 36 | have hd := (hc.integral_hasStrictDerivAt T t).hasDerivAt.fun_neg |
| 37 | have he : (fun r => value period (∫ s in r..T, extendPath T hT f s)) = |
| 38 | fun r => -(∫ s in T..r, value period (extendPath T hT f s)) := by |
| 39 | funext r |
| 40 | change (valueOperator period q) (∫ s in r..T, extendPath T hT f s) = _ |
| 41 | rw [← (valueOperator period q).intervalIntegral_comp_comm ((extendPath_continuous T hT f).intervalIntegrable r T), |
| 42 | intervalIntegral.integral_symm] |
| 43 | rfl |
| 44 | rw [he] |
| 45 | exact hd |
| 46 | |
| 47 | /-- The differentiated full convolution is the actual Laplacian of the causal Duhamel integral. -/ |
| 48 | theorem derivativeIntegral_eq_laplacian {q : ℕ} (hq : 2 ≤ q) (ν T : ℝ) (hT : 0 ≤ T) |
| 49 | (f : C(Icc (0 : ℝ) T, SobolevSpace period q)) (t : ℝ) (ht : t ∈ Icc 0 T) : |
| 50 | (∫ s in Ioc 0 T, derivativeIntegrand period hq ν T hT f t s) = |
| 51 | ν • laplacianEvaluation period q hq (duhamel period ν T hT f t) := by |
| 52 | rw [← intervalIntegral.integral_of_le hT] |
| 53 | change (∫ s in (0 : ℝ)..T, (Iic t).indicator |
| 54 | (fun s => ν • laplacianEvaluation period q hq (heatFlow period q ν (t - s) (extendPath T hT f s))) s) = _ |
| 55 | calc |
| 56 | _ = ∫ s in (0 : ℝ)..t, ν • laplacianEvaluation period q hq |
| 57 | (heatFlow period q ν (t - s) (extendPath T hT f s)) := |
| 58 | intervalIntegral.integral_indicator ht |
| 59 | _ = _ := (ν • laplacianEvaluation period q hq).intervalIntegral_comp_comm |
| 60 | ((shiftedHeat_continuous period ν T hT f t).intervalIntegrable 0 t) |
| 61 | |
| 62 | /-- The actual Sobolev Duhamel integral is differentiable in L² and solves w′=νΔw+f. -/ |
| 63 | theorem duhamel_value_hasDerivAt {q : ℕ} (hq : 2 ≤ q) (ν : ℝ) (hν : 0 < ν) |
| 64 | (T : ℝ) (hT : 0 ≤ T) (f : C(Icc (0 : ℝ) T, SobolevSpace period q)) |
| 65 | (t : ℝ) (ht : t ∈ Ioo 0 T) : |
| 66 | HasDerivAt (fun r => value period (duhamel period ν T hT f r)) |
| 67 | (ν • laplacianEvaluation period q hq (duhamel period ν T hT f t) + |
| 68 | value period (extendPath T hT f t)) t := by |
| 69 | have hfull := fullDuhamel_value_hasDerivAt period hq ν hν T hT f t |
| 70 | rw [derivativeIntegral_eq_laplacian period hq ν T hT f t ⟨ht.1.le, ht.2.le⟩] at hfull |
| 71 | have htail := source_tail_value_hasDerivAt period T hT f t |
| 72 | have hd := hfull.fun_sub htail |
| 73 | simp only [sub_neg_eq_add] at hd |
| 74 | apply hd.congr_of_eventuallyEq |
| 75 | filter_upwards [Ioo_mem_nhds ht.1 ht.2] with r hr |
| 76 | rw [duhamel_eq_full_sub_tail period ν hν T hT f r ⟨hr.1.le, hr.2.le⟩] |
| 77 | rfl |
| 78 | |
| 79 | /-- The genuine free heat plus Duhamel candidate satisfies the actual inhomogeneous L² PDE. -/ |
| 80 | theorem inhomogeneous_heat_value_hasDerivAt {q : ℕ} (hq : 2 ≤ q) (ν : ℝ) (hν : 0 < ν) |
| 81 | (T : ℝ) (hT : 0 ≤ T) (f : C(Icc (0 : ℝ) T, SobolevSpace period q)) |
| 82 | (u₀ : SobolevSpace period q) (t : ℝ) (ht : t ∈ Ioo 0 T) : |
| 83 | HasDerivAt (fun r => value period (heatFlow period q ν r u₀ + duhamel period ν T hT f r)) |
| 84 | (ν • laplacianEvaluation period q hq (heatFlow period q ν t u₀ + duhamel period ν T hT f t) + |
| 85 | value period (extendPath T hT f t)) t := by |
| 86 | have hh := heatFlow_value_hasDerivAt period hq ν hν u₀ t ht.1 |
| 87 | have hd := duhamel_value_hasDerivAt period hq ν hν T hT f t ht |
| 88 | have h := hh.fun_add hd |
| 89 | change HasDerivAt (fun r => value period (heatFlow period q ν r u₀) + value period (duhamel period ν T hT f r)) _ t |
| 90 | simpa only [map_add, smul_add, add_assoc] using h |
| 91 | |
| 92 | end EulerDuhamelDifferentiation |