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.MildWordEquation |
| 2 | |
| 3 | /-! Exact restart identities for the genuine cylinder heat and Bochner Duhamel integrals. -/ |
| 4 | |
| 5 | noncomputable section |
| 6 | |
| 7 | namespace EulerHeatRestart |
| 8 | |
| 9 | open MeasureTheory Set EulerCylinderSobolevSpace EulerSobolevHeat EulerSobolevHeatGenerator |
| 10 | EulerDuhamelDifferentiation EulerVolterraConvolution |
| 11 | open scoped Topology NNReal |
| 12 | |
| 13 | variable (period : ℝ) [Fact (0 < period)] |
| 14 | |
| 15 | /-- Actual viscous heat obeys the semigroup law at nonnegative physical times. -/ |
| 16 | theorem heatFlow_semigroup {q : ℕ} (ν : ℝ) (hν : 0 ≤ ν) (s t : ℝ) (hs : 0 ≤ s) (ht : 0 ≤ t) |
| 17 | (u : SobolevSpace period q) : |
| 18 | heatFlow period q ν s (heatFlow period q ν t u) = heatFlow period q ν (s+t) u := by |
| 19 | unfold heatFlow |
| 20 | rw [heatOperator_semigroup] |
| 21 | apply congrArg (fun v : ℝ≥0 => heatOperator period q v u) |
| 22 | rw [mul_add, Real.toNNReal_add (by positivity : 0 ≤ 2*ν*s) (by positivity : 0 ≤ 2*ν*t)] |
| 23 | |
| 24 | |
| 25 | /-- Heat propagates the earlier Duhamel history exactly to a later time. -/ |
| 26 | theorem heatFlow_duhamel_history {q : ℕ} (ν : ℝ) (hν : 0 ≤ ν) (T : ℝ) (hT : 0 ≤ T) |
| 27 | (f : C(Icc (0 : ℝ) T, SobolevSpace period q)) (a t : ℝ) (ha : 0 ≤ a) (hat : a ≤ t) : |
| 28 | heatFlow period q ν (t-a) (duhamel period ν T hT f a) = |
| 29 | ∫ s in (0 : ℝ)..a, heatFlow period q ν (t-s) (extendPath T hT f s) := by |
| 30 | unfold duhamel |
| 31 | rw [← (heatFlow period q ν (t-a)).intervalIntegral_comp_comm |
| 32 | ((shiftedHeat_continuous period ν T hT f a).intervalIntegrable 0 a)] |
| 33 | apply intervalIntegral.integral_congr_ae |
| 34 | filter_upwards [] with s hs |
| 35 | rw [uIoc_of_le ha] at hs |
| 36 | have hh := heatFlow_semigroup period ν hν (t-a) (a-s) (sub_nonneg.mpr hat) (sub_nonneg.mpr hs.2) |
| 37 | (extendPath T hT f s) |
| 38 | simpa only [sub_add_sub_cancel] using hh |
| 39 | |
| 40 | /-- The actual Bochner Duhamel integral splits into propagated history and forcing after the restart time. -/ |
| 41 | theorem duhamel_restart {q : ℕ} (ν : ℝ) (hν : 0 ≤ ν) (T : ℝ) (hT : 0 ≤ T) |
| 42 | (f : C(Icc (0 : ℝ) T, SobolevSpace period q)) (a t : ℝ) (ha : 0 ≤ a) (hat : a ≤ t) : |
| 43 | duhamel period ν T hT f t = heatFlow period q ν (t-a) (duhamel period ν T hT f a) + |
| 44 | ∫ s in a..t, heatFlow period q ν (t-s) (extendPath T hT f s) := by |
| 45 | rw [heatFlow_duhamel_history period ν hν T hT f a t ha hat] |
| 46 | exact (intervalIntegral.integral_add_adjacent_intervals |
| 47 | ((shiftedHeat_continuous period ν T hT f t).intervalIntegrable (μ := volume) 0 a) |
| 48 | ((shiftedHeat_continuous period ν T hT f t).intervalIntegrable (μ := volume) a t)).symm |
| 49 | |
| 50 | /-- The full genuine inhomogeneous heat solution restarts from its attained state. -/ |
| 51 | theorem inhomogeneous_heat_restart {q : ℕ} (ν : ℝ) (hν : 0 ≤ ν) (T : ℝ) (hT : 0 ≤ T) |
| 52 | (f : C(Icc (0 : ℝ) T, SobolevSpace period q)) (u₀ : SobolevSpace period q) |
| 53 | (a t : ℝ) (ha : 0 ≤ a) (hat : a ≤ t) : |
| 54 | heatFlow period q ν t u₀ + duhamel period ν T hT f t = |
| 55 | heatFlow period q ν (t-a) (heatFlow period q ν a u₀ + duhamel period ν T hT f a) + |
| 56 | ∫ s in a..t, heatFlow period q ν (t-s) (extendPath T hT f s) := by |
| 57 | rw [map_add, heatFlow_semigroup period ν hν (t-a) a (sub_nonneg.mpr hat) ha, |
| 58 | sub_add_cancel, duhamel_restart period ν hν T hT f a t ha hat, add_assoc] |
| 59 | |
| 60 | /-- The old-history and new-source identity written in elapsed time after the restart. -/ |
| 61 | theorem duhamel_restart_shifted {q : ℕ} (ν : ℝ) (hν : 0 ≤ ν) (T : ℝ) (hT : 0 ≤ T) |
| 62 | (f : C(Icc (0 : ℝ) T, SobolevSpace period q)) (a t : ℝ) (ha : 0 ≤ a) (ht : 0 ≤ t) : |
| 63 | duhamel period ν T hT f (a+t) = heatFlow period q ν t (duhamel period ν T hT f a) + |
| 64 | ∫ r in (0 : ℝ)..t, heatFlow period q ν (t-r) (extendPath T hT f (a+r)) := by |
| 65 | have hh := duhamel_restart period ν hν T hT f a (a+t) ha (by linarith) |
| 66 | rw [add_sub_cancel_left] at hh |
| 67 | rw [hh] |
| 68 | congr 1 |
| 69 | have hi := intervalIntegral.integral_comp_add_left |
| 70 | (fun s => heatFlow period q ν (a+t-s) (extendPath T hT f s)) a (a := 0) (b := t) |
| 71 | simp only [add_zero] at hi |
| 72 | have he : (fun r => heatFlow period q ν (a+t-(a+r)) (extendPath T hT f (a+r))) = |
| 73 | fun r => heatFlow period q ν (t-r) (extendPath T hT f (a+r)) := by |
| 74 | funext r |
| 75 | congr 2 |
| 76 | ring |
| 77 | rw [he] at hi |
| 78 | exact hi.symm |
| 79 | |
| 80 | end EulerHeatRestart |