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.TimeIntervalGlue |
| 2 | import Euler.ParameterWordCalculus |
| 3 | |
| 4 | /-! Gluing matching continuous paths is one fixed linear contraction. -/ |
| 5 | |
| 6 | noncomputable section |
| 7 | |
| 8 | namespace EulerPacketTimePathGluing |
| 9 | |
| 10 | open Set EulerTimeIntervalGlue |
| 11 | |
| 12 | variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 13 | |
| 14 | local instance compactInterval (a b : ℝ) : CompactSpace (Icc a b) := |
| 15 | isCompact_iff_compactSpace.mp isCompact_Icc |
| 16 | |
| 17 | abbrev Pair (S τ : ℝ) (E : Type*) [TopologicalSpace E] := |
| 18 | C(Icc (0 : ℝ) τ,E) × C(Icc τ S,E) |
| 19 | |
| 20 | def mismatch (S τ : ℝ) (hτ0 : 0 ≤ τ) (hτS : τ ≤ S) : Pair S τ E →L[ℝ] E := |
| 21 | (ContinuousMap.evalCLM ℝ ⟨τ,hτ0,le_rfl⟩).comp |
| 22 | (ContinuousLinearMap.fst ℝ C(Icc (0 : ℝ) τ,E) C(Icc τ S,E))- |
| 23 | (ContinuousMap.evalCLM ℝ ⟨τ,le_rfl,hτS⟩).comp |
| 24 | (ContinuousLinearMap.snd ℝ C(Icc (0 : ℝ) τ,E) C(Icc τ S,E)) |
| 25 | |
| 26 | abbrev Matching (S τ : ℝ) (hτ0 : 0 ≤ τ) (hτS : τ ≤ S) : Submodule ℝ (Pair S τ E) := |
| 27 | (mismatch (E := E) S τ hτ0 hτS).ker |
| 28 | |
| 29 | theorem matching_values (S τ : ℝ) (hτ0 : 0 ≤ τ) (hτS : τ ≤ S) |
| 30 | (u : Matching (E := E) S τ hτ0 hτS) : |
| 31 | u.val.1 ⟨τ,hτ0,le_rfl⟩=u.val.2 ⟨τ,le_rfl,hτS⟩ := by |
| 32 | have h : mismatch S τ hτ0 hτS u.val=0 := u.property |
| 33 | exact sub_eq_zero.mp h |
| 34 | |
| 35 | def gluePath (S τ : ℝ) (hτ0 : 0 ≤ τ) (hτS : τ ≤ S) |
| 36 | (u : Matching (E := E) S τ hτ0 hτS) : C(Icc (0 : ℝ) S,E) := |
| 37 | ⟨fun t => glue τ (fun r => u.val.1 (projIcc 0 τ hτ0 r)) |
| 38 | (fun r => u.val.2 (projIcc τ S hτS r)) t, |
| 39 | (glue_continuous τ _ _ (by |
| 40 | simpa only [Function.comp_def, projIcc_of_mem hτ0 ⟨hτ0,le_rfl⟩, |
| 41 | projIcc_of_mem hτS ⟨le_rfl,hτS⟩] using matching_values S τ hτ0 hτS u) |
| 42 | (u.val.1.continuous.comp continuous_projIcc) |
| 43 | (u.val.2.continuous.comp continuous_projIcc)).comp continuous_subtype_val⟩ |
| 44 | |
| 45 | theorem gluePath_norm_le (S τ : ℝ) (hτ0 : 0 ≤ τ) (hτS : τ ≤ S) |
| 46 | (u : Matching (E := E) S τ hτ0 hτS) : ‖gluePath S τ hτ0 hτS u‖ ≤ ‖u‖ := by |
| 47 | apply (ContinuousMap.norm_le _ (norm_nonneg u)).2 |
| 48 | intro t |
| 49 | change ‖glue τ (fun r => u.val.1 (projIcc 0 τ hτ0 r)) |
| 50 | (fun r => u.val.2 (projIcc τ S hτS r)) t‖ ≤ ‖u‖ |
| 51 | by_cases ht : (t : ℝ) ≤ τ |
| 52 | · rw [glue_left τ _ _ t ht] |
| 53 | exact (u.val.1.norm_coe_le_norm _).trans (norm_fst_le u.val) |
| 54 | · simp only [glue, ht, ite_false] |
| 55 | exact (u.val.2.norm_coe_le_norm _).trans (norm_snd_le u.val) |
| 56 | |
| 57 | def glueOperator (S τ : ℝ) (hτ0 : 0 ≤ τ) (hτS : τ ≤ S) : |
| 58 | Matching (E := E) S τ hτ0 hτS →L[ℝ] C(Icc (0 : ℝ) S,E) := |
| 59 | ({ toFun := gluePath S τ hτ0 hτS |
| 60 | map_add' := by |
| 61 | intro u v |
| 62 | ext t |
| 63 | by_cases ht : (t : ℝ) ≤ τ <;> simp [gluePath, glue, ht] |
| 64 | map_smul' := by |
| 65 | intro c u |
| 66 | ext t |
| 67 | by_cases ht : (t : ℝ) ≤ τ <;> simp [gluePath, glue, ht] } : |
| 68 | Matching (E := E) S τ hτ0 hτS →ₗ[ℝ] C(Icc (0 : ℝ) S,E)).mkContinuous |
| 69 | 1 (fun u => by |
| 70 | change ‖gluePath S τ hτ0 hτS u‖ ≤ 1 * ‖u‖ |
| 71 | simpa only [one_mul] using gluePath_norm_le S τ hτ0 hτS u) |
| 72 | |
| 73 | theorem glueOperator_norm_le_one (S τ : ℝ) (hτ0 : 0 ≤ τ) (hτS : τ ≤ S) : |
| 74 | ‖glueOperator (E := E) S τ hτ0 hτS‖ ≤ 1 := by |
| 75 | apply ContinuousLinearMap.opNorm_le_bound _ zero_le_one |
| 76 | intro u |
| 77 | change ‖gluePath S τ hτ0 hτS u‖ ≤ 1 * ‖u‖ |
| 78 | simpa only [one_mul] using gluePath_norm_le S τ hτ0 hτS u |
| 79 | |
| 80 | end EulerPacketTimePathGluing |