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.ClosedTranslationGraph |
| 2 | import Mathlib.Topology.Algebra.Module.ClosedSubmodule |
| 3 | |
| 4 | /-! A complete cylinder Sobolev space constructed from closed graphs of actual L² derivatives. -/ |
| 5 | |
| 6 | noncomputable section |
| 7 | |
| 8 | namespace EulerCylinderSobolevSpace |
| 9 | |
| 10 | open EulerLiftedGradientSpace EulerPressureSpatialRegularity EulerSpatialSobolevInverse |
| 11 | EulerCylinderSobolev EulerClosedTranslationGraph |
| 12 | open scoped Topology |
| 13 | |
| 14 | /-- A coordinate derivative word of length at most the Sobolev order. -/ |
| 15 | abbrev SobolevWord (q : ℕ) := Σ n : Fin (q + 1), Fin n.val → Fin 4 |
| 16 | |
| 17 | /-- An edge joining a derivative word to one further coordinate derivative. -/ |
| 18 | abbrev SobolevEdge (q : ℕ) := Σ n : Fin q, (Fin n.val → Fin 4) × Fin 4 |
| 19 | |
| 20 | /-- The empty derivative word. -/ |
| 21 | def emptyWord (q : ℕ) : SobolevWord q := ⟨⟨0, Nat.zero_lt_succ q⟩, Fin.elim0⟩ |
| 22 | |
| 23 | /-- The lower endpoint of a derivative edge. -/ |
| 24 | def edgeParent {q : ℕ} (e : SobolevEdge q) : SobolevWord q := |
| 25 | ⟨⟨e.1.val, Nat.lt_succ_of_lt e.1.isLt⟩, e.2.1⟩ |
| 26 | |
| 27 | /-- The upper endpoint obtained by prepending one derivative direction. -/ |
| 28 | def edgeChild {q : ℕ} (e : SobolevEdge q) : SobolevWord q := |
| 29 | ⟨⟨e.1.val + 1, Nat.succ_lt_succ e.1.isLt⟩, Fin.cons e.2.2 e.2.1⟩ |
| 30 | |
| 31 | variable (period : ℝ) [Fact (0 < period)] |
| 32 | |
| 33 | /-- The closed graph of the actual strong translation derivative. -/ |
| 34 | def closedDerivativeGraph (a : LiftTangent) : ClosedSubmodule ℝ (LiftL2 period × LiftL2 period) where |
| 35 | toSubmodule := translationDerivativeGraph period a |
| 36 | isClosed' := translationDerivativeGraph_closed period a |
| 37 | |
| 38 | /-- Evaluation of the two endpoints of a derivative edge is continuous linear. -/ |
| 39 | def edgeEvaluation {q : ℕ} (e : SobolevEdge q) : |
| 40 | (SobolevWord q → LiftL2 period) →L[ℝ] (LiftL2 period × LiftL2 period) := |
| 41 | (ContinuousLinearMap.proj (edgeParent e)).prod (ContinuousLinearMap.proj (edgeChild e)) |
| 42 | |
| 43 | /-- The closed linear space of finite arrays satisfying every genuine derivative compatibility. -/ |
| 44 | def sobolevSubspace (q : ℕ) : ClosedSubmodule ℝ (SobolevWord q → LiftL2 period) := |
| 45 | ⨅ e : SobolevEdge q, |
| 46 | (closedDerivativeGraph period (standardDirection e.2.2)).comap (edgeEvaluation period e) |
| 47 | |
| 48 | /-- The actual cylinder Sobolev space, with the complete finite-array norm. -/ |
| 49 | abbrev SobolevSpace (q : ℕ) := sobolevSubspace period q |
| 50 | |
| 51 | /-- The Sobolev norm is the norm inherited from the underlying submodule of derivative arrays. -/ |
| 52 | instance sobolevNormedAddCommGroup (q : ℕ) : NormedAddCommGroup (SobolevSpace period q) := |
| 53 | inferInstanceAs (NormedAddCommGroup (sobolevSubspace period q).toSubmodule) |
| 54 | |
| 55 | /-- Scalar multiplication uses the same inherited norm as the derivative array. -/ |
| 56 | instance sobolevNormedSpace (q : ℕ) : NormedSpace ℝ (SobolevSpace period q) := |
| 57 | inferInstanceAs (NormedSpace ℝ (sobolevSubspace period q).toSubmodule) |
| 58 | |
| 59 | /-- Completeness follows from closedness of the derivative graphs in a finite product of L² spaces. -/ |
| 60 | theorem sobolev_complete (q : ℕ) : CompleteSpace (SobolevSpace period q) := inferInstance |
| 61 | |
| 62 | /-- The underlying L² field of a Sobolev derivative array. -/ |
| 63 | def value {q : ℕ} (u : SobolevSpace period q) : LiftL2 period := u.val (emptyWord q) |
| 64 | |
| 65 | /-- A valid derivative word in the array. -/ |
| 66 | def word {q n : ℕ} (u : SobolevSpace period q) (hn : n ≤ q) (w : Fin n → Fin 4) : LiftL2 period := |
| 67 | u.val ⟨⟨n, Nat.lt_succ_of_le hn⟩, w⟩ |
| 68 | |
| 69 | /-- The defining compatibility is a genuine strong derivative of an L² translation orbit. -/ |
| 70 | theorem word_hasDerivAt {q n : ℕ} (u : SobolevSpace period q) (hn : n < q) |
| 71 | (w : Fin n → Fin 4) (i : Fin 4) : |
| 72 | HasDerivAt (fun t => translation period (translationPath period (standardDirection i) t) |
| 73 | (word period u hn.le w)) (word period u (Nat.succ_le_of_lt hn) (Fin.cons i w)) 0 := by |
| 74 | have h := (ClosedSubmodule.mem_iInf.mp u.property) (⟨⟨n, hn⟩, w, i⟩ : SobolevEdge q) |
| 75 | exact h |
| 76 | |
| 77 | /-- Every finite strong derivative jet defines an element of the complete Sobolev space. -/ |
| 78 | def ofJet {q : ℕ} {f : LiftL2 period} (J : SpatialJet period standardDirection q f) : |
| 79 | SobolevSpace period q := by |
| 80 | refine ⟨fun w => J.word w.2, ?_⟩ |
| 81 | apply ClosedSubmodule.mem_iInf.mpr |
| 82 | intro e |
| 83 | exact J.word_hasDerivAt e.1.isLt e.2.1 e.2.2 |
| 84 | |
| 85 | /-- The underlying field of the array constructed from a jet is unchanged. -/ |
| 86 | @[simp] |
| 87 | theorem value_ofJet {q : ℕ} {f : LiftL2 period} (J : SpatialJet period standardDirection q f) : |
| 88 | value period (ofJet period J) = f := by simp [value, ofJet, emptyWord] |
| 89 | |
| 90 | /-- Every compatible array has a genuine jet of any remaining depth at every word. -/ |
| 91 | theorem word_has_jet {q : ℕ} (u : SobolevSpace period q) (r n : ℕ) |
| 92 | (h : n + r ≤ q) (w : Fin n → Fin 4) : |
| 93 | Nonempty (SpatialJet period standardDirection r (word period u (by omega) w)) := by |
| 94 | induction r generalizing n with |
| 95 | | zero => exact ⟨.zero _⟩ |
| 96 | | succ r ih => |
| 97 | have hn : n < q := by omega |
| 98 | refine ⟨.succ (fun i => word period u (by omega) (Fin.cons i w)) |
| 99 | (fun i => Classical.choice (ih (n + 1) (by omega) (Fin.cons i w))) ?_⟩ |
| 100 | intro i |
| 101 | exact word_hasDerivAt period u hn w i |
| 102 | |
| 103 | /-- A genuine full-depth strong derivative jet reconstructed from a Sobolev array. -/ |
| 104 | def toJet {q : ℕ} (u : SobolevSpace period q) : SpatialJet period standardDirection q (value period u) := |
| 105 | Classical.choice (word_has_jet period u q 0 (by omega) Fin.elim0) |
| 106 | |
| 107 | /-- Any genuine jet with the correct underlying field agrees with every array coordinate. -/ |
| 108 | theorem jet_word_eq {q n : ℕ} (u : SobolevSpace period q) |
| 109 | (J : SpatialJet period standardDirection q (value period u)) |
| 110 | (hn : n ≤ q) (w : Fin n → Fin 4) : J.word w = word period u hn w := by |
| 111 | induction n with |
| 112 | | zero => |
| 113 | rw [SpatialJet.word_zero] |
| 114 | have hw : w = Fin.elim0 := Subsingleton.elim _ _ |
| 115 | subst w |
| 116 | rfl |
| 117 | | succ n ih => |
| 118 | have hJ := J.word_hasDerivAt (by omega : n < q) (Fin.tail w) (w 0) |
| 119 | have hu := word_hasDerivAt period u (by omega : n < q) (Fin.tail w) (w 0) |
| 120 | rw [ih (by omega) (Fin.tail w)] at hJ |
| 121 | simpa only [Fin.cons_self_tail] using hJ.unique hu |
| 122 | |
| 123 | /-- Reconstructing a jet preserves each genuine derivative coordinate. -/ |
| 124 | theorem toJet_word {q n : ℕ} (u : SobolevSpace period q) (hn : n ≤ q) (w : Fin n → Fin 4) : |
| 125 | (toJet period u).word w = word period u hn w := jet_word_eq period u _ hn w |
| 126 | |
| 127 | /-- A Sobolev array is uniquely determined by its underlying L² field. -/ |
| 128 | theorem value_injective {q : ℕ} : Function.Injective (value period : SobolevSpace period q → LiftL2 period) := by |
| 129 | intro u v huv |
| 130 | apply Subtype.ext |
| 131 | funext w |
| 132 | have h := EulerPressureJetIdentities.SpatialJet.word_unique |
| 133 | (toJet period u) (toJet period v) huv (Nat.le_of_lt_succ w.1.isLt) |
| 134 | (Nat.le_of_lt_succ w.1.isLt) w.2 |
| 135 | rw [toJet_word period u (Nat.le_of_lt_succ w.1.isLt), |
| 136 | toJet_word period v (Nat.le_of_lt_succ w.1.isLt)] at h |
| 137 | exact h |
| 138 | |
| 139 | /-- Reconstructing a jet and then its array is the identity. -/ |
| 140 | @[simp] |
| 141 | theorem ofJet_toJet {q : ℕ} (u : SobolevSpace period q) : ofJet period (toJet period u) = u := by |
| 142 | apply value_injective period |
| 143 | exact value_ofJet period (toJet period u) |
| 144 | |
| 145 | end EulerCylinderSobolevSpace |