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 NavierStokes.WithinPathFamily |
| 2 | import NavierStokes.JointODE |
| 3 | |
| 4 | /-! # Joint ODE jets on closed parameter and pulse domains -/ |
| 5 | |
| 6 | noncomputable section |
| 7 | |
| 8 | namespace NavierStokes.WithinJointODE |
| 9 | |
| 10 | open Set Filter Function |
| 11 | open scoped Topology ContDiff |
| 12 | |
| 13 | universe u |
| 14 | |
| 15 | variable {P E : Type u} [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 16 | [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] |
| 17 | variable {a b : ℝ} |
| 18 | |
| 19 | theorem contDiffOn_odeFamily (hab : a ≤ b) {U : Set P} {V : Set ℝ} |
| 20 | (hU : Convex ℝ U) (hu : UniqueDiffOn ℝ U) (hv : UniqueDiffOn ℝ V) |
| 21 | (hI : Icc a b ⊆ V) |
| 22 | (A : P × ℝ → E →L[ℝ] E) (x₀ : P → E) (f : P × ℝ → E) |
| 23 | (hA : ContDiffOn ℝ ∞ A (U ×ˢ V)) (hx₀ : ContDiffOn ℝ ∞ x₀ U) |
| 24 | (hf : ContDiffOn ℝ ∞ f (U ×ˢ V)) : |
| 25 | ContDiffOn ℝ ∞ (SmoothPathFamily.odeFamily hab A x₀ f) U := |
| 26 | ParametricODE.contDiffOn_solution_family hab _ _ _ |
| 27 | (WithinPathFamily.contDiffOn_pathFamily U V hU hu hv hI A hA) hx₀ |
| 28 | (WithinPathFamily.contDiffOn_pathFamily U V hU hu hv hI f hf) |
| 29 | |
| 30 | /-- Endpoint rescaling preserves within regularity in slow parameters and |
| 31 | gives joint regularity at every current pulse time. Only the original data |
| 32 | are supplied, including at the slow boundary. -/ |
| 33 | theorem contDiffOn_reparamSolution {U : Set P} |
| 34 | (hU : Convex ℝ U) (hu : UniqueDiffOn ℝ U) |
| 35 | (A : P × ℝ → E →L[ℝ] E) (x₀ : P → E) (f : P × ℝ → E) |
| 36 | (hA : ContDiffOn ℝ ∞ A (U ×ˢ univ)) (hx₀ : ContDiffOn ℝ ∞ x₀ U) |
| 37 | (hf : ContDiffOn ℝ ∞ f (U ×ˢ univ)) : |
| 38 | ContDiffOn ℝ ∞ (JointODE.reparamSolution a A x₀ f) (U ×ˢ univ) := by |
| 39 | have hmap : MapsTo (JointODE.timeMap (P := P) a) |
| 40 | ((U ×ˢ (univ : Set ℝ)) ×ˢ (univ : Set ℝ)) (U ×ˢ univ) := |
| 41 | fun _ hz => ⟨hz.1.1, mem_univ _⟩ |
| 42 | have hx : ContDiffOn ℝ ∞ (fun q : P × ℝ => x₀ q.1) (U ×ˢ univ) := |
| 43 | hx₀.comp contDiffOn_fst (fun _ hz => hz.1) |
| 44 | have hpath := contDiffOn_odeFamily (a := 0) (b := 1) zero_le_one |
| 45 | (hU.prod convex_univ) (hu.prod uniqueDiffOn_univ) uniqueDiffOn_univ |
| 46 | (subset_univ _) (JointODE.rescale a A) (fun q : P × ℝ => x₀ q.1) |
| 47 | (JointODE.rescale a f) (JointODE.rescale_contDiffOn A hA hmap) hx |
| 48 | (JointODE.rescale_contDiffOn f hf hmap) |
| 49 | exact (ContinuousLinearMap.contDiff (𝕜 := ℝ) (n := ∞) |
| 50 | (ContinuousMap.evalCLM ℝ (⟨1, zero_le_one, le_rfl⟩ : Icc (0 : ℝ) 1))).comp_contDiffOn hpath |
| 51 | |
| 52 | /-- The actual Volterra solution has all mixed within jets on both closed |
| 53 | domains, including corners where slow time and pulse time are endpoints. -/ |
| 54 | theorem contDiffOn_actualSolution (hab : a ≤ b) {U : Set P} |
| 55 | (hU : Convex ℝ U) (hu : UniqueDiffOn ℝ U) |
| 56 | (A : P × ℝ → E →L[ℝ] E) (x₀ : P → E) (f : P × ℝ → E) |
| 57 | (hA : ContDiffOn ℝ ∞ A (U ×ˢ univ)) (hx₀ : ContDiffOn ℝ ∞ x₀ U) |
| 58 | (hf : ContDiffOn ℝ ∞ f (U ×ˢ univ)) : |
| 59 | ContDiffOn ℝ ∞ (JointODE.actualSolution hab A x₀ f) (U ×ˢ Icc a b) := by |
| 60 | apply ((contDiffOn_reparamSolution hU hu A x₀ f hA hx₀ hf).mono |
| 61 | (prod_mono Subset.rfl (subset_univ _))).congr |
| 62 | intro z hz |
| 63 | exact (JointODE.reparamSolution_eq_actualSolution hab A x₀ f |
| 64 | (hA.continuousOn.mono (prod_mono Subset.rfl (subset_univ _))) |
| 65 | (hf.continuousOn.mono (prod_mono Subset.rfl (subset_univ _))) hz).symm |
| 66 | |
| 67 | end NavierStokes.WithinJointODE |
| 68 | |
| 69 | namespace NavierStokes.WithinJetClosure |
| 70 | |
| 71 | open Set Filter |
| 72 | open scoped Topology ContDiff |
| 73 | |
| 74 | variable {P E : Type*} [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 75 | [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 76 | |
| 77 | /-- Interior full derivatives converge to the genuine boundary within jet. |
| 78 | This applies to each fixed mixed derivative order. -/ |
| 79 | theorem tendsto_iteratedFDeriv {S O : Set P} (hS : UniqueDiffOn ℝ S) |
| 80 | (hO : IsOpen O) (hOS : O ⊆ S) {f : P → E} (hf : ContDiffOn ℝ ∞ f S) |
| 81 | (n : ℕ) {x : P} (hx : x ∈ S) : |
| 82 | Tendsto (iteratedFDeriv ℝ n f) (𝓝[O] x) |
| 83 | (𝓝 (iteratedFDerivWithin ℝ n f S x)) := by |
| 84 | have hc := (hf.continuousOn_iteratedFDerivWithin |
| 85 | (ENat.natCast_le_of_coe_top_le_withTop le_rfl n) hS x hx).mono hOS |
| 86 | apply hc.congr' |
| 87 | filter_upwards [self_mem_nhdsWithin] with y hy |
| 88 | exact iteratedFDerivWithin_eq_iteratedFDeriv hS |
| 89 | (((hf.mono hOS).contDiffAt (hO.mem_nhds hy)).of_le |
| 90 | (ENat.natCast_le_of_coe_top_le_withTop le_rfl n)) (hOS hy) |
| 91 | |
| 92 | /-- A continuous majorant for interior jets bounds the endpoint jets with |
| 93 | the same constants. No estimates outside the closed domain are used. -/ |
| 94 | theorem norm_iteratedFDerivWithin_le {S O : Set P} (hS : UniqueDiffOn ℝ S) |
| 95 | (hO : IsOpen O) (hOS : O ⊆ S) {f : P → E} (hf : ContDiffOn ℝ ∞ f S) |
| 96 | {B : P → ℝ} (hB : ContinuousOn B S) (n : ℕ) |
| 97 | (hb : ∀ x ∈ O, ‖iteratedFDeriv ℝ n f x‖ ≤ B x) |
| 98 | {x : P} (hx : x ∈ S) (hxc : x ∈ closure O) : |
| 99 | ‖iteratedFDerivWithin ℝ n f S x‖ ≤ B x := by |
| 100 | have : NeBot (𝓝[O] x) := mem_closure_iff_nhdsWithin_neBot.mp hxc |
| 101 | exact le_of_tendsto_of_tendsto |
| 102 | (tendsto_iteratedFDeriv hS hO hOS hf n hx).norm ((hB x hx).mono hOS) |
| 103 | (Filter.eventually_iff.mpr (Filter.mem_of_superset self_mem_nhdsWithin (fun _ hy => hb _ hy))) |
| 104 | |
| 105 | end NavierStokes.WithinJetClosure |