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.TimePathGluing |
| 2 | import Euler.HeatRestart |
| 3 | |
| 4 | /-! Exact pasting of genuine heat-Duhamel solutions on adjacent time intervals. -/ |
| 5 | |
| 6 | noncomputable section |
| 7 | |
| 8 | namespace EulerDuhamelPasting |
| 9 | |
| 10 | open MeasureTheory Set EulerCylinderSobolevSpace EulerSobolevHeat EulerSobolevHeatGenerator |
| 11 | EulerVolterraConvolution EulerDuhamelDifferentiation EulerHeatRestart EulerTimePathGluing |
| 12 | open scoped Topology |
| 13 | |
| 14 | variable (period : ℝ) [Fact (0 < period)] |
| 15 | |
| 16 | /-- Actual Duhamel integrals agree whenever their source fields agree on the integration interval. -/ |
| 17 | theorem duhamel_congr_initial {q : ℕ} (ν T1 T2 : ℝ) (hT1 : 0 ≤ T1) (hT2 : 0 ≤ T2) |
| 18 | (f1 : C(Icc (0 : ℝ) T1, SobolevSpace period q)) |
| 19 | (f2 : C(Icc (0 : ℝ) T2, SobolevSpace period q)) (t : ℝ) (ht : 0 ≤ t) |
| 20 | (hf : ∀ r ∈ Icc 0 t, extendPath T1 hT1 f1 r = extendPath T2 hT2 f2 r) : |
| 21 | duhamel period ν T1 hT1 f1 t = duhamel period ν T2 hT2 f2 t := by |
| 22 | unfold duhamel |
| 23 | apply intervalIntegral.integral_congr |
| 24 | intro r hr |
| 25 | rw [uIcc_of_le ht] at hr |
| 26 | exact congrArg (heatFlow period q ν (t-r)) (hf r hr) |
| 27 | |
| 28 | /-- The exact inhomogeneous heat restart identity in elapsed time. -/ |
| 29 | theorem inhomogeneous_restart_shifted {q : ℕ} (ν : ℝ) (hν : 0 ≤ ν) |
| 30 | (T : ℝ) (hT : 0 ≤ T) (f : C(Icc (0 : ℝ) T, SobolevSpace period q)) |
| 31 | (u₀ : SobolevSpace period q) (a t : ℝ) (ha : 0 ≤ a) (ht : 0 ≤ t) : |
| 32 | heatFlow period q ν (a+t) u₀+duhamel period ν T hT f (a+t) = |
| 33 | heatFlow period q ν t (heatFlow period q ν a u₀+duhamel period ν T hT f a)+ |
| 34 | ∫ r in (0 : ℝ)..t, heatFlow period q ν (t-r) (extendPath T hT f (a+r)) := by |
| 35 | rw [map_add, heatFlow_semigroup period ν hν t a ht ha, |
| 36 | duhamel_restart_shifted period ν hν T hT f a t ha ht] |
| 37 | have he : t+a = a+t := add_comm _ _ |
| 38 | rw [he] |
| 39 | abel |
| 40 | |
| 41 | /-- The elapsed-time part of a genuine Duhamel integral is the restarted source integral. -/ |
| 42 | theorem shifted_source_integral {q : ℕ} (ν a b T : ℝ) (hb : 0 ≤ b) (hT : 0 ≤ T) |
| 43 | (f : C(Icc (0 : ℝ) T, SobolevSpace period q)) |
| 44 | (g : C(Icc (0 : ℝ) b, SobolevSpace period q)) (t : ℝ) (ht : t ∈ Icc 0 b) |
| 45 | (hfg : ∀ r ∈ Icc 0 b, extendPath T hT f (a+r) = extendPath b hb g r) : |
| 46 | (∫ r in (0 : ℝ)..t, heatFlow period q ν (t-r) (extendPath T hT f (a+r))) = |
| 47 | duhamel period ν b hb g t := by |
| 48 | unfold duhamel |
| 49 | apply intervalIntegral.integral_congr |
| 50 | intro r hr |
| 51 | rw [uIcc_of_le ht.1] at hr |
| 52 | exact congrArg (heatFlow period q ν (t-r)) (hfg r ⟨hr.1,hr.2.trans ht.2⟩) |
| 53 | |
| 54 | /-- The literal pasting of two actual mild solutions solves the complete Duhamel equation on their union. -/ |
| 55 | theorem glue_ordinary_mild {q : ℕ} (ν : ℝ) (hν : 0 ≤ ν) (a b : ℝ) (ha : 0 ≤ a) (hb : 0 ≤ b) |
| 56 | (u : C(Icc (0 : ℝ) a, SobolevSpace period q)) |
| 57 | (v : C(Icc (0 : ℝ) b, SobolevSpace period q)) |
| 58 | (hmatch : u ⟨a,ha,le_rfl⟩ = v ⟨0,le_rfl,hb⟩) |
| 59 | (f : C(Icc (0 : ℝ) (a+b), SobolevSpace period q)) |
| 60 | (f1 : C(Icc (0 : ℝ) a, SobolevSpace period q)) |
| 61 | (f2 : C(Icc (0 : ℝ) b, SobolevSpace period q)) (u₀ : SobolevSpace period q) |
| 62 | (hF1 : ∀ r ∈ Icc 0 a, extendPath (a+b) (add_nonneg ha hb) f r = extendPath a ha f1 r) |
| 63 | (hF2 : ∀ r ∈ Icc 0 b, extendPath (a+b) (add_nonneg ha hb) f (a+r) = extendPath b hb f2 r) |
| 64 | (hsolu : ∀ t : Icc (0 : ℝ) a, u t = heatFlow period q ν t.val u₀+duhamel period ν a ha f1 t.val) |
| 65 | (hsolv : ∀ t : Icc (0 : ℝ) b, v t = heatFlow period q ν t.val (u ⟨a,ha,le_rfl⟩)+duhamel period ν b hb f2 t.val) : |
| 66 | ∀ t : Icc (0 : ℝ) (a+b), gluePath a b ha hb u v hmatch t = |
| 67 | heatFlow period q ν t.val u₀+duhamel period ν (a+b) (add_nonneg ha hb) f t.val := by |
| 68 | intro t |
| 69 | by_cases hta : t.val ≤ a |
| 70 | · have hf := duhamel_congr_initial period ν a (a+b) ha (add_nonneg ha hb) f1 f t.val t.property.1 |
| 71 | (fun r hr => (hF1 r ⟨hr.1,hr.2.trans hta⟩).symm) |
| 72 | calc |
| 73 | _ = extendPath a ha u t.val := glueFunction_left a b ha hb u v t.val hta |
| 74 | _ = u ⟨t.val,t.property.1,hta⟩ := congrArg u (projIcc_of_mem ha ⟨t.property.1,hta⟩) |
| 75 | _ = heatFlow period q ν t.val u₀+duhamel period ν a ha f1 t.val := hsolu _ |
| 76 | _ = _ := congrArg (fun x => heatFlow period q ν t.val u₀+x) hf |
| 77 | · have hat : a ≤ t.val := (lt_of_not_ge hta).le |
| 78 | let r := t.val-a |
| 79 | have hr : r ∈ Icc 0 b := ⟨sub_nonneg.mpr hat, by dsimp [r]; linarith [t.property.2]⟩ |
| 80 | have htval : a+r = t.val := by dsimp [r]; ring |
| 81 | have hf := duhamel_congr_initial period ν a (a+b) ha (add_nonneg ha hb) f1 f a ha |
| 82 | (fun x hx => (hF1 x hx).symm) |
| 83 | have hua : u ⟨a,ha,le_rfl⟩ = heatFlow period q ν a u₀+duhamel period ν (a+b) (add_nonneg ha hb) f a := |
| 84 | (hsolu _).trans (congrArg (fun x => heatFlow period q ν a u₀+x) hf) |
| 85 | have hrestart := inhomogeneous_restart_shifted period ν hν (a+b) (add_nonneg ha hb) f u₀ a r ha hr.1 |
| 86 | have hs := shifted_source_integral period ν a b (a+b) hb (add_nonneg ha hb) f f2 r hr hF2 |
| 87 | rw [← hua,hs,htval] at hrestart |
| 88 | calc |
| 89 | _ = extendPath b hb v r := glueFunction_right a b ha hb u v hmatch t.val hat |
| 90 | _ = v ⟨r,hr⟩ := congrArg v (projIcc_of_mem hb hr) |
| 91 | _ = heatFlow period q ν r (u ⟨a,ha,le_rfl⟩)+duhamel period ν b hb f2 r := hsolv _ |
| 92 | _ = _ := hrestart.symm |
| 93 | |
| 94 | end EulerDuhamelPasting |