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.PacketTimeWordGluing |
| 2 | import Euler.ParameterSobolevCoefficient |
| 3 | |
| 4 | /-! |
| 5 | Smoothness of matching path pairs is derived from smoothness of the two paths. |
| 6 | A fixed linear repair provides the subspace-valued map; it is the identity on |
| 7 | matching data. The final word estimate uses the exact subtype norm, not the |
| 8 | norm of this auxiliary repair. |
| 9 | -/ |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | namespace EulerPacketTimePathGluing |
| 14 | |
| 15 | open Set Finset EulerParameterWordGevrey |
| 16 | open scoped ContDiff |
| 17 | |
| 18 | variable {X E ι : Type*} [NormedAddCommGroup X] [NormedSpace ℝ X] |
| 19 | [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 20 | |
| 21 | attribute [local instance] compactInterval |
| 22 | |
| 23 | def repairPair (S τ : ℝ) (hτ0 : 0 ≤ τ) (hτS : τ ≤ S) : Pair S τ E →L[ℝ] Pair S τ E := |
| 24 | (ContinuousLinearMap.fst ℝ C(Icc (0 : ℝ) τ,E) C(Icc τ S,E)).prod |
| 25 | ((ContinuousLinearMap.snd ℝ C(Icc (0 : ℝ) τ,E) C(Icc τ S,E))+ |
| 26 | (ContinuousLinearMap.const ℝ (Icc τ S)).comp (mismatch S τ hτ0 hτS)) |
| 27 | |
| 28 | theorem repairPair_mem (S τ : ℝ) (hτ0 : 0 ≤ τ) (hτS : τ ≤ S) (u : Pair S τ E) : |
| 29 | repairPair S τ hτ0 hτS u ∈ Matching S τ hτ0 hτS := by |
| 30 | change u.1 ⟨τ,hτ0,le_rfl⟩- |
| 31 | (u.2 ⟨τ,le_rfl,hτS⟩+(u.1 ⟨τ,hτ0,le_rfl⟩-u.2 ⟨τ,le_rfl,hτS⟩))=0 |
| 32 | abel |
| 33 | |
| 34 | def matchingProjection (S τ : ℝ) (hτ0 : 0 ≤ τ) (hτS : τ ≤ S) : |
| 35 | Pair S τ E →L[ℝ] Matching (E := E) S τ hτ0 hτS := |
| 36 | (repairPair S τ hτ0 hτS).codRestrict (Matching S τ hτ0 hτS) |
| 37 | (repairPair_mem S τ hτ0 hτS) |
| 38 | |
| 39 | theorem matchingProjection_value (S τ : ℝ) (hτ0 : 0 ≤ τ) (hτS : τ ≤ S) |
| 40 | (u : Pair S τ E) (hu : u.1 ⟨τ,hτ0,le_rfl⟩=u.2 ⟨τ,le_rfl,hτS⟩) : |
| 41 | (matchingProjection S τ hτ0 hτS u).val=u := by |
| 42 | apply Prod.ext |
| 43 | · rfl |
| 44 | · ext t |
| 45 | change u.2 t+(u.1 ⟨τ,hτ0,le_rfl⟩-u.2 ⟨τ,le_rfl,hτS⟩)=u.2 t |
| 46 | rw [hu, sub_self, add_zero] |
| 47 | |
| 48 | def matchingFamily (S τ : ℝ) (hτ0 : 0 ≤ τ) (hτS : τ ≤ S) |
| 49 | (u : X → C(Icc (0 : ℝ) τ,E)) (v : X → C(Icc τ S,E)) : |
| 50 | X → Matching (E := E) S τ hτ0 hτS := |
| 51 | fun x => matchingProjection S τ hτ0 hτS (u x,v x) |
| 52 | |
| 53 | theorem matchingFamily_contDiff (S τ : ℝ) (hτ0 : 0 ≤ τ) (hτS : τ ≤ S) |
| 54 | (u : X → C(Icc (0 : ℝ) τ,E)) (v : X → C(Icc τ S,E)) |
| 55 | (hu : ContDiff ℝ ∞ u) (hv : ContDiff ℝ ∞ v) : |
| 56 | ContDiff ℝ ∞ (matchingFamily S τ hτ0 hτS u v) := |
| 57 | (matchingProjection (E := E) S τ hτ0 hτS).contDiff.comp (hu.prodMk hv) |
| 58 | |
| 59 | variable [Fintype ι] |
| 60 | |
| 61 | theorem wordSum_subtype (S τ : ℝ) (hτ0 : 0 ≤ τ) (hτS : τ ≤ S) |
| 62 | (directions : ι → X) (f : X → Matching (E := E) S τ hτ0 hτS) |
| 63 | (hf : ContDiff ℝ ∞ f) (n : ℕ) (x : X) : |
| 64 | wordSum directions (fun y => (f y).val) n x=wordSum directions f n x := by |
| 65 | unfold wordSum |
| 66 | apply sum_congr rfl |
| 67 | intro w _ |
| 68 | have h := wordDerivative_comp_clm directions (Matching (E := E) S τ hτ0 hτS).subtypeL f hf w x |
| 69 | change wordDerivative directions (fun y => (f y).val) w x=(wordDerivative directions f w x).val at h |
| 70 | rw [h] |
| 71 | rfl |
| 72 | |
| 73 | theorem wordSum_pair_le {F : Type*} [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 74 | (directions : ι → X) (f : X → E × F) (hf : ContDiff ℝ ∞ f) (n : ℕ) (x : X) : |
| 75 | wordSum directions f n x ≤ wordSum directions (fun y => (f y).1) n x+ |
| 76 | wordSum directions (fun y => (f y).2) n x := by |
| 77 | unfold wordSum |
| 78 | rw [← sum_add_distrib] |
| 79 | apply sum_le_sum |
| 80 | intro w _ |
| 81 | have h₁ := wordDerivative_comp_clm directions (ContinuousLinearMap.fst ℝ E F) f hf w x |
| 82 | have h₂ := wordDerivative_comp_clm directions (ContinuousLinearMap.snd ℝ E F) f hf w x |
| 83 | change wordDerivative directions (fun y => (f y).1) w x=(wordDerivative directions f w x).1 at h₁ |
| 84 | change wordDerivative directions (fun y => (f y).2) w x=(wordDerivative directions f w x).2 at h₂ |
| 85 | rw [h₁, h₂, Prod.norm_def] |
| 86 | exact max_le (le_add_of_nonneg_right (norm_nonneg _)) (le_add_of_nonneg_left (norm_nonneg _)) |
| 87 | |
| 88 | /-- Independently smooth matching inputs give the same-radius glued block bound. -/ |
| 89 | theorem matchingFamily_glue_block (S τ : ℝ) (hτ0 : 0 ≤ τ) (hτS : τ ≤ S) |
| 90 | (directions : ι → X) (q : ℕ) (u : X → C(Icc (0 : ℝ) τ,E)) (v : X → C(Icc τ S,E)) |
| 91 | (hu : ContDiff ℝ ∞ u) (hv : ContDiff ℝ ∞ v) |
| 92 | (hmatch : ∀ x, u x ⟨τ,hτ0,le_rfl⟩=v x ⟨τ,le_rfl,hτS⟩) (n : ℕ) (x : X) : |
| 93 | block directions q (fun y => gluePath S τ hτ0 hτS (matchingFamily S τ hτ0 hτS u v y)) n x ≤ |
| 94 | block directions q u n x+block directions q v n x := by |
| 95 | let f := matchingFamily S τ hτ0 hτS u v |
| 96 | have hf : ContDiff ℝ ∞ f := matchingFamily_contDiff S τ hτ0 hτS u v hu hv |
| 97 | have he : (fun y => (f y).val)=(fun y => (u y,v y)) := |
| 98 | funext (fun y => matchingProjection_value S τ hτ0 hτS (u y,v y) (hmatch y)) |
| 99 | apply (glue_block_bound S τ hτ0 hτS directions q f hf n x).trans |
| 100 | rw [block_eq_sum_levels directions q f hf n x, |
| 101 | block_eq_sum_levels directions q u hu n x, block_eq_sum_levels directions q v hv n x, |
| 102 | ← sum_add_distrib] |
| 103 | apply sum_le_sum |
| 104 | intro k _ |
| 105 | rw [← wordSum_subtype S τ hτ0 hτS directions f hf, he] |
| 106 | exact wordSum_pair_le directions (fun y => (u y,v y)) (hu.prodMk hv) _ x |
| 107 | |
| 108 | end EulerPacketTimePathGluing |