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.GainedMildPasting |
| 2 | |
| 3 | /-! Actual nonlinear source paths commute with restriction and adjacent-interval solution pasting. -/ |
| 4 | |
| 5 | noncomputable section |
| 6 | |
| 7 | namespace EulerWindowSource |
| 8 | |
| 9 | open MeasureTheory Set EulerVolterraConvolution EulerUniformHeatLocal EulerQuadraticSource |
| 10 | EulerTimePathGluing EulerGainedMildPasting |
| 11 | open scoped Topology |
| 12 | |
| 13 | variable {X Y : Type*} [NormedAddCommGroup X] [NormedSpace ℝ X] |
| 14 | [NormedAddCommGroup Y] [NormedSpace ℝ Y] |
| 15 | |
| 16 | /-- The actual nonlinear forcing evaluated along a solution on a translated compact time window. -/ |
| 17 | def windowSource {S : ℝ} (C : Coefficients (Icc (0 : ℝ) S) X Y) |
| 18 | (a T : ℝ) (ha : 0 ≤ a) (haT : a+T ≤ S) (u : C(Icc (0 : ℝ) T, X)) : C(Icc (0 : ℝ) T, Y) := |
| 19 | ⟨fun t => C.apply (timeWindow a T ha haT t) (u t), |
| 20 | C.continuous.comp ((timeWindow a T ha haT).continuous.prodMk u.continuous)⟩ |
| 21 | |
| 22 | /-- The clamped source has its literal nonlinear value at every time inside its actual window. -/ |
| 23 | theorem windowSource_extend {S : ℝ} (C : Coefficients (Icc (0 : ℝ) S) X Y) |
| 24 | (a T : ℝ) (ha : 0 ≤ a) (hT : 0 ≤ T) (haT : a+T ≤ S) |
| 25 | (u : C(Icc (0 : ℝ) T, X)) (r : ℝ) (hr : r ∈ Icc 0 T) : |
| 26 | extendPath T hT (windowSource C a T ha haT u) r = |
| 27 | C.apply (timeWindow a T ha haT ⟨r,hr⟩) (extendPath T hT u r) := |
| 28 | congrArg (fun t => C.apply (timeWindow a T ha haT t) (extendPath T hT u r)) (projIcc_of_mem hT hr) |
| 29 | |
| 30 | /-- At zero offset the actual source path is exactly the initial-interval source used by the local solver. -/ |
| 31 | theorem windowSource_zero {S T : ℝ} (C : Coefficients (Icc (0 : ℝ) S) X Y) |
| 32 | (hT : 0 ≤ T) (hTS : T ≤ S) (u : C(Icc (0 : ℝ) T, X)) (r : ℝ) : |
| 33 | extendPath T hT (windowSource C 0 T le_rfl (by simpa using hTS) u) r = |
| 34 | C.apply (timeInclusion hTS (projIcc 0 T hT r)) (extendPath T hT u r) := by |
| 35 | apply congrArg (fun t => C.apply t (extendPath T hT u r)) |
| 36 | apply Subtype.ext |
| 37 | exact zero_add _ |
| 38 | |
| 39 | /-- Before the restart, the literal nonlinear source of the pasted solution is the old source. -/ |
| 40 | theorem windowSource_glue_left {S : ℝ} (C : Coefficients (Icc (0 : ℝ) S) X Y) |
| 41 | (a b : ℝ) (ha : 0 ≤ a) (hb : 0 ≤ b) (habS : a+b ≤ S) |
| 42 | (u : C(Icc (0 : ℝ) a, X)) (v : C(Icc (0 : ℝ) b, X)) |
| 43 | (hmatch : u ⟨a,ha,le_rfl⟩ = v ⟨0,le_rfl,hb⟩) (r : ℝ) (hr : r ∈ Icc 0 a) : |
| 44 | extendPath (a+b) (add_nonneg ha hb) |
| 45 | (windowSource C 0 (a+b) le_rfl (by simpa using habS) (gluePath a b ha hb u v hmatch)) r = |
| 46 | extendPath a ha (windowSource C 0 a le_rfl (by linarith) u) r := by |
| 47 | have hru : r ∈ Icc 0 (a+b) := ⟨hr.1,by linarith [hr.2]⟩ |
| 48 | have h1 := windowSource_extend C 0 (a+b) le_rfl (add_nonneg ha hb) (by simpa using habS) |
| 49 | (gluePath a b ha hb u v hmatch) r hru |
| 50 | have h2 := windowSource_extend C 0 a le_rfl ha (by linarith) u r hr |
| 51 | have ht : timeWindow 0 (a+b) le_rfl (by simpa using habS) ⟨r,hru⟩ = |
| 52 | timeWindow 0 a le_rfl (by linarith) ⟨r,hr⟩ := by apply Subtype.ext; rfl |
| 53 | exact h1.trans ((congrArg₂ C.apply ht (gluePath_left a b ha hb u v hmatch r hr)).trans h2.symm) |
| 54 | |
| 55 | /-- After the restart, the literal nonlinear source of the pasted solution is the translated new source. -/ |
| 56 | theorem windowSource_glue_right {S : ℝ} (C : Coefficients (Icc (0 : ℝ) S) X Y) |
| 57 | (a b : ℝ) (ha : 0 ≤ a) (hb : 0 ≤ b) (habS : a+b ≤ S) |
| 58 | (u : C(Icc (0 : ℝ) a, X)) (v : C(Icc (0 : ℝ) b, X)) |
| 59 | (hmatch : u ⟨a,ha,le_rfl⟩ = v ⟨0,le_rfl,hb⟩) (r : ℝ) (hr : r ∈ Icc 0 b) : |
| 60 | extendPath (a+b) (add_nonneg ha hb) |
| 61 | (windowSource C 0 (a+b) le_rfl (by simpa using habS) (gluePath a b ha hb u v hmatch)) (a+r) = |
| 62 | extendPath b hb (windowSource C a b ha habS v) r := by |
| 63 | have hru : a+r ∈ Icc 0 (a+b) := ⟨by linarith [hr.1],by linarith [hr.2]⟩ |
| 64 | have h1 := windowSource_extend C 0 (a+b) le_rfl (add_nonneg ha hb) (by simpa using habS) |
| 65 | (gluePath a b ha hb u v hmatch) (a+r) hru |
| 66 | have h2 := windowSource_extend C a b ha hb habS v r hr |
| 67 | have ht : timeWindow 0 (a+b) le_rfl (by simpa using habS) ⟨a+r,hru⟩ = |
| 68 | timeWindow a b ha habS ⟨r,hr⟩ := by apply Subtype.ext; exact zero_add _ |
| 69 | exact h1.trans ((congrArg₂ C.apply ht (gluePath_right a b ha hb u v hmatch r hr)).trans h2.symm) |
| 70 | |
| 71 | end EulerWindowSource |