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.UniformHeatLocal |
| 2 | |
| 3 | /-! Exact pasting of actual continuous solution paths on adjacent compact time intervals. -/ |
| 4 | |
| 5 | noncomputable section |
| 6 | |
| 7 | namespace EulerTimePathGluing |
| 8 | |
| 9 | open Set EulerVolterraConvolution |
| 10 | open scoped Topology |
| 11 | |
| 12 | variable {E : Type*} [NormedAddCommGroup E] |
| 13 | |
| 14 | /-- The literal adjacent-interval pasting of two actual clamped paths. -/ |
| 15 | def glueFunction (a b : ℝ) (ha : 0 ≤ a) (hb : 0 ≤ b) |
| 16 | (u : C(Icc (0 : ℝ) a, E)) (v : C(Icc (0 : ℝ) b, E)) (t : ℝ) : E := |
| 17 | if t ≤ a then extendPath a ha u t else extendPath b hb v (t-a) |
| 18 | |
| 19 | /-- Matching endpoint traces are exactly the equality needed by the clamped pasting. -/ |
| 20 | theorem endpoint_match (a b : ℝ) (ha : 0 ≤ a) (hb : 0 ≤ b) |
| 21 | (u : C(Icc (0 : ℝ) a, E)) (v : C(Icc (0 : ℝ) b, E)) |
| 22 | (hmatch : u ⟨a,ha,le_rfl⟩ = v ⟨0,le_rfl,hb⟩) : |
| 23 | extendPath a ha u a = extendPath b hb v 0 := by |
| 24 | simpa only [extendPath, projIcc_of_mem ha ⟨ha,le_rfl⟩, projIcc_of_mem hb ⟨le_rfl,hb⟩] using hmatch |
| 25 | |
| 26 | /-- Matching actual endpoint traces make the pasted path continuous. -/ |
| 27 | theorem glueFunction_continuous (a b : ℝ) (ha : 0 ≤ a) (hb : 0 ≤ b) |
| 28 | (u : C(Icc (0 : ℝ) a, E)) (v : C(Icc (0 : ℝ) b, E)) |
| 29 | (hmatch : u ⟨a,ha,le_rfl⟩ = v ⟨0,le_rfl,hb⟩) : Continuous (glueFunction a b ha hb u v) := by |
| 30 | apply Continuous.if_le (extendPath_continuous a ha u) |
| 31 | ((extendPath_continuous b hb v).comp (continuous_id.sub continuous_const)) continuous_id continuous_const |
| 32 | intro t ht |
| 33 | change t = a at ht |
| 34 | subst t |
| 35 | change extendPath a ha u a = extendPath b hb v (a-a) |
| 36 | rw [sub_self] |
| 37 | exact endpoint_match a b ha hb u v hmatch |
| 38 | |
| 39 | /-- The actual continuous path on the union of the two adjacent time intervals. -/ |
| 40 | def gluePath (a b : ℝ) (ha : 0 ≤ a) (hb : 0 ≤ b) |
| 41 | (u : C(Icc (0 : ℝ) a, E)) (v : C(Icc (0 : ℝ) b, E)) |
| 42 | (hmatch : u ⟨a,ha,le_rfl⟩ = v ⟨0,le_rfl,hb⟩) : C(Icc (0 : ℝ) (a+b), E) := |
| 43 | ⟨fun t => glueFunction a b ha hb u v t.val, (glueFunction_continuous a b ha hb u v hmatch).comp continuous_subtype_val⟩ |
| 44 | |
| 45 | /-- The pasted function preserves the original solution before the restart time. -/ |
| 46 | theorem glueFunction_left (a b : ℝ) (ha : 0 ≤ a) (hb : 0 ≤ b) |
| 47 | (u : C(Icc (0 : ℝ) a, E)) (v : C(Icc (0 : ℝ) b, E)) (t : ℝ) (ht : t ≤ a) : |
| 48 | glueFunction a b ha hb u v t = extendPath a ha u t := ite_eq_left ht |
| 49 | |
| 50 | /-- The pasted function is the restarted solution after its matching endpoint. -/ |
| 51 | theorem glueFunction_right (a b : ℝ) (ha : 0 ≤ a) (hb : 0 ≤ b) |
| 52 | (u : C(Icc (0 : ℝ) a, E)) (v : C(Icc (0 : ℝ) b, E)) |
| 53 | (hmatch : u ⟨a,ha,le_rfl⟩ = v ⟨0,le_rfl,hb⟩) (t : ℝ) (ht : a ≤ t) : |
| 54 | glueFunction a b ha hb u v t = extendPath b hb v (t-a) := by |
| 55 | by_cases hta : t ≤ a |
| 56 | · have he : t = a := le_antisymm hta ht |
| 57 | subst t |
| 58 | rw [glueFunction_left a b ha hb u v a le_rfl, sub_self] |
| 59 | exact endpoint_match a b ha hb u v hmatch |
| 60 | · exact ite_eq_right hta |
| 61 | |
| 62 | /-- On the old interval the actual clamped union path is identical to the old clamped path. -/ |
| 63 | theorem gluePath_left (a b : ℝ) (ha : 0 ≤ a) (hb : 0 ≤ b) |
| 64 | (u : C(Icc (0 : ℝ) a, E)) (v : C(Icc (0 : ℝ) b, E)) |
| 65 | (hmatch : u ⟨a,ha,le_rfl⟩ = v ⟨0,le_rfl,hb⟩) (t : ℝ) (ht : t ∈ Icc 0 a) : |
| 66 | extendPath (a+b) (add_nonneg ha hb) (gluePath a b ha hb u v hmatch) t = extendPath a ha u t := by |
| 67 | have htu : t ∈ Icc 0 (a+b) := ⟨ht.1, by linarith [ht.2]⟩ |
| 68 | change glueFunction a b ha hb u v (projIcc 0 (a+b) (add_nonneg ha hb) t).val = _ |
| 69 | rw [projIcc_of_mem (add_nonneg ha hb) htu] |
| 70 | exact glueFunction_left a b ha hb u v t ht.2 |
| 71 | |
| 72 | /-- On the new interval the actual clamped union path is identical to the elapsed-time restart path. -/ |
| 73 | theorem gluePath_right (a b : ℝ) (ha : 0 ≤ a) (hb : 0 ≤ b) |
| 74 | (u : C(Icc (0 : ℝ) a, E)) (v : C(Icc (0 : ℝ) b, E)) |
| 75 | (hmatch : u ⟨a,ha,le_rfl⟩ = v ⟨0,le_rfl,hb⟩) (t : ℝ) (ht : t ∈ Icc 0 b) : |
| 76 | extendPath (a+b) (add_nonneg ha hb) (gluePath a b ha hb u v hmatch) (a+t) = extendPath b hb v t := by |
| 77 | have htu : a+t ∈ Icc 0 (a+b) := ⟨by linarith [ht.1], by linarith [ht.2]⟩ |
| 78 | change glueFunction a b ha hb u v (projIcc 0 (a+b) (add_nonneg ha hb) (a+t)).val = _ |
| 79 | rw [projIcc_of_mem (add_nonneg ha hb) htu, glueFunction_right a b ha hb u v hmatch (a+t) (by linarith [ht.1]), add_sub_cancel_left] |
| 80 | |
| 81 | /-- The actual pasted path is bounded by any common uniform bound for its two pieces. -/ |
| 82 | theorem gluePath_norm_le (a b : ℝ) (ha : 0 ≤ a) (hb : 0 ≤ b) |
| 83 | (u : C(Icc (0 : ℝ) a, E)) (v : C(Icc (0 : ℝ) b, E)) |
| 84 | (hmatch : u ⟨a,ha,le_rfl⟩ = v ⟨0,le_rfl,hb⟩) (R : ℝ) (hR : 0 ≤ R) |
| 85 | (hu : ‖u‖ ≤ R) (hv : ‖v‖ ≤ R) : ‖gluePath a b ha hb u v hmatch‖ ≤ R := by |
| 86 | apply (ContinuousMap.norm_le _ hR).mpr |
| 87 | intro t |
| 88 | change ‖if t.val ≤ a then extendPath a ha u t.val else extendPath b hb v (t.val-a)‖ ≤ R |
| 89 | split |
| 90 | · exact (extendPath_norm_le a ha u t.val).trans hu |
| 91 | · exact (extendPath_norm_le b hb v (t.val-a)).trans hv |
| 92 | |
| 93 | end EulerTimePathGluing |