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.SpacetimeEndpoint |
| 2 | import Mathlib.Topology.UniformSpace.LocallyUniformConvergence |
| 3 | |
| 4 | /-! |
| 5 | # Endpoint limits from actual joint jets and local one-sided extensions |
| 6 | |
| 7 | The input is an actual function, smooth on `t < 1`. Its full Frechet jets |
| 8 | vanish jointly at `(1,0)`, and it has an actual smooth local extension near |
| 9 | each other point of the terminal slice. The boundary tensor family and its |
| 10 | local uniform convergence are constructed below. |
| 11 | -/ |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | namespace NavierStokes.JointResidualLimits |
| 16 | |
| 17 | open Set Filter |
| 18 | open scoped Topology ContDiff |
| 19 | |
| 20 | abbrev Space := ProblemStatement.Space |
| 21 | abbrev SpaceTime := ProblemStatement.SpaceTime |
| 22 | |
| 23 | section JointTopology |
| 24 | |
| 25 | variable {ι X V : Type*} [TopologicalSpace X] [PseudoMetricSpace V] |
| 26 | {p : Filter ι} [p.NeBot] {F : ι × X → V} {L : X → V} |
| 27 | |
| 28 | /-- Joint convergence to boundary values forces continuity of those values. |
| 29 | No continuity or local-uniform convergence of the boundary map is assumed. -/ |
| 30 | theorem continuous_of_joint_limits |
| 31 | (hlim : ∀ x, Tendsto F (p ×ˢ 𝓝 x) (𝓝 (L x))) : Continuous L := by |
| 32 | apply continuous_iff_continuousAt.mpr |
| 33 | intro x |
| 34 | apply Metric.tendsto_nhds.mpr |
| 35 | intro ε hε |
| 36 | have hh : {q : ι × X | dist (F q) (L x) < ε / 2} ∈ p ×ˢ 𝓝 x := |
| 37 | (hlim x).eventually (Metric.ball_mem_nhds (L x) (half_pos hε)) |
| 38 | obtain ⟨U, hU, W, hW, hUW⟩ := Filter.mem_prod_iff.mp hh |
| 39 | filter_upwards [hW] with y hy |
| 40 | have hpoint : Tendsto (fun i => F (i, y)) p (𝓝 (L y)) := |
| 41 | (hlim y).comp (tendsto_id.prodMk tendsto_const_nhds) |
| 42 | have hnear : ∀ᶠ i in p, dist (F (i, y)) (L y) < ε / 2 := |
| 43 | hpoint.eventually (Metric.ball_mem_nhds (L y) (half_pos hε)) |
| 44 | have hU' : ∀ᶠ i in p, i ∈ U := hU |
| 45 | obtain ⟨i, hiU, hi⟩ := (hU'.and hnear).exists |
| 46 | have hix : dist (F (i, y)) (L x) < ε / 2 := hUW ⟨hiU, hy⟩ |
| 47 | calc |
| 48 | dist (L y) (L x) ≤ dist (L y) (F (i, y)) + dist (F (i, y)) (L x) := |
| 49 | dist_triangle _ _ _ |
| 50 | _ < ε / 2 + ε / 2 := add_lt_add (by simpa only [dist_comm] using hi) hix |
| 51 | _ = ε := by ring |
| 52 | |
| 53 | /-- Reverse joint-to-local-uniform implication, using the uniform-space |
| 54 | characterization of local uniform convergence. -/ |
| 55 | theorem locallyUniform_of_joint_limits |
| 56 | (hlim : ∀ x, Tendsto F (p ×ˢ 𝓝 x) (𝓝 (L x))) : |
| 57 | TendstoLocallyUniformly (fun i x => F (i, x)) L p := by |
| 58 | apply tendstoLocallyUniformly_iff_forall_tendsto.mpr |
| 59 | intro x |
| 60 | have hL : Tendsto (fun q : ι × X => L q.2) (p ×ˢ 𝓝 x) (𝓝 (L x)) := |
| 61 | ((continuous_of_joint_limits hlim).tendsto x).comp tendsto_snd |
| 62 | exact (tendsto_right_nhds_uniformity.comp hL).uniformity_trans |
| 63 | (tendsto_left_nhds_uniformity.comp (hlim x)) |
| 64 | |
| 65 | end JointTopology |
| 66 | |
| 67 | section ActualJets |
| 68 | |
| 69 | variable {V : Type*} [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 70 | |
| 71 | /-- A genuine smooth extension on a neighborhood, agreeing with the original |
| 72 | function on the portion of that neighborhood with `t < 1`. -/ |
| 73 | structure OneSidedExtension (f : SpaceTime → V) (x : Space) where |
| 74 | value : SpaceTime → V |
| 75 | domain : Set SpaceTime |
| 76 | isOpen : IsOpen domain |
| 77 | mem : (1, x) ∈ domain |
| 78 | smooth : ContDiffOn ℝ ∞ value domain |
| 79 | agrees : EqOn value f (domain ∩ SpacetimeEndpoint.openPast 1) |
| 80 | |
| 81 | def AwayExtensions (f : SpaceTime → V) : Prop := |
| 82 | ∀ x : Space, x ≠ 0 → Nonempty (OneSidedExtension f x) |
| 83 | |
| 84 | def VanishingJointJets (f : SpaceTime → V) : Prop := |
| 85 | ∀ n : ℕ, Tendsto (iteratedFDeriv ℝ n f) |
| 86 | (𝓝[SpacetimeEndpoint.openPast 1] ((1 : ℝ), (0 : Space))) (𝓝 0) |
| 87 | |
| 88 | theorem past_filter (x : Space) : |
| 89 | 𝓝[SpacetimeEndpoint.openPast 1] ((1 : ℝ), x) = (𝓝[<] (1 : ℝ)) ×ˢ 𝓝 x := by |
| 90 | simp only [SpacetimeEndpoint.openPast, nhdsWithin_prod_eq, nhdsWithin_univ] |
| 91 | |
| 92 | theorem OneSidedExtension.eventuallyEq {f : SpaceTime → V} {x : Space} |
| 93 | (e : OneSidedExtension f x) : |
| 94 | f =ᶠ[𝓝[SpacetimeEndpoint.openPast 1] (1, x)] e.value := by |
| 95 | filter_upwards [self_mem_nhdsWithin, |
| 96 | nhdsWithin_le_nhds (e.isOpen.mem_nhds e.mem)] with z hz he |
| 97 | exact (e.agrees ⟨he, hz⟩).symm |
| 98 | |
| 99 | /-- Local agreement on the open past gives agreement of every actual jet. -/ |
| 100 | theorem OneSidedExtension.jets_eventuallyEq {f : SpaceTime → V} {x : Space} |
| 101 | (e : OneSidedExtension f x) (n : ℕ) : |
| 102 | iteratedFDeriv ℝ n f =ᶠ[𝓝[SpacetimeEndpoint.openPast 1] (1, x)] |
| 103 | iteratedFDeriv ℝ n e.value := by |
| 104 | have he := e.eventuallyEq.iteratedFDerivWithin (𝕜 := ℝ) n |
| 105 | filter_upwards [he, self_mem_nhdsWithin] with z hz hp |
| 106 | simpa only [iteratedFDerivWithin_of_isOpen n (SpacetimeEndpoint.openPast_isOpen 1) hp] using hz |
| 107 | |
| 108 | theorem OneSidedExtension.jet_tendsto {f : SpaceTime → V} {x : Space} |
| 109 | (e : OneSidedExtension f x) (n : ℕ) : |
| 110 | Tendsto (iteratedFDeriv ℝ n f) (𝓝[SpacetimeEndpoint.openPast 1] (1, x)) |
| 111 | (𝓝 (iteratedFDeriv ℝ n e.value (1, x))) := by |
| 112 | have hg : ContDiffAt ℝ ∞ e.value (1, x) := e.smooth.contDiffAt (e.isOpen.mem_nhds e.mem) |
| 113 | have hj : ContDiffAt ℝ 0 (iteratedFDeriv ℝ n e.value) (1, x) := |
| 114 | hg.iteratedFDeriv_right (by exact_mod_cast (le_top : 0 + (n : ℕ∞) ≤ ⊤)) |
| 115 | exact (hj.continuousAt.tendsto.mono_left nhdsWithin_le_nhds).congr' |
| 116 | (e.jets_eventuallyEq n).symm |
| 117 | |
| 118 | /-- One family of tensors, selected from actual extensions away from zero. |
| 119 | At the origin each tensor is explicitly zero. -/ |
| 120 | noncomputable def boundaryLimits (f : SpaceTime → V) (hext : AwayExtensions f) |
| 121 | (x : Space) : FormalMultilinearSeries ℝ SpaceTime V := by |
| 122 | classical |
| 123 | exact if hx : x = 0 then 0 else |
| 124 | ftaylorSeries ℝ (Classical.choice (hext x hx)).value (1, x) |
| 125 | |
| 126 | @[simp] theorem boundaryLimits_zero (f : SpaceTime → V) (hext : AwayExtensions f) (n : ℕ) : |
| 127 | boundaryLimits f hext 0 n = 0 := by |
| 128 | simp [boundaryLimits] |
| 129 | |
| 130 | theorem boundaryLimits_joint {f : SpaceTime → V} (hzero : VanishingJointJets f) |
| 131 | (hext : AwayExtensions f) (n : ℕ) (x : Space) : |
| 132 | Tendsto (iteratedFDeriv ℝ n f) (𝓝[SpacetimeEndpoint.openPast 1] (1, x)) |
| 133 | (𝓝 (boundaryLimits f hext x n)) := by |
| 134 | classical |
| 135 | by_cases hx : x = 0 |
| 136 | · subst x |
| 137 | simpa only [boundaryLimits_zero] using hzero n |
| 138 | · simp only [boundaryLimits, dite_eq_right hx] |
| 139 | exact (Classical.choice (hext x hx)).jet_tendsto n |
| 140 | |
| 141 | theorem boundaryLimits_locallyUniform {f : SpaceTime → V} (hzero : VanishingJointJets f) |
| 142 | (hext : AwayExtensions f) (n : ℕ) : |
| 143 | TendstoLocallyUniformly (fun t x => iteratedFDeriv ℝ n f (t, x)) |
| 144 | (fun x => boundaryLimits f hext x n) (𝓝[<] (1 : ℝ)) := by |
| 145 | apply locallyUniform_of_joint_limits (F := iteratedFDeriv ℝ n f) |
| 146 | intro x |
| 147 | simpa only [past_filter] using boundaryLimits_joint hzero hext n x |
| 148 | |
| 149 | /-- The limit portion of the `CandidateFromLimits` input is constructed |
| 150 | solely from actual joint jet limits and one-sided local extensions. -/ |
| 151 | theorem exists_residual_limits {f : SpaceTime → V} |
| 152 | (hzero : VanishingJointJets f) (hext : AwayExtensions f) : |
| 153 | ∃ L : Space → FormalMultilinearSeries ℝ SpaceTime V, |
| 154 | (∀ n : ℕ, L 0 n = 0) ∧ |
| 155 | (∀ n : ℕ, ∀ x : Space, Tendsto (iteratedFDeriv ℝ n f) |
| 156 | (𝓝[SpacetimeEndpoint.openPast 1] (1, x)) (𝓝 (L x n))) ∧ |
| 157 | (∀ n : ℕ, TendstoLocallyUniformly (fun t x => iteratedFDeriv ℝ n f (t, x)) |
| 158 | (fun x => L x n) (𝓝[<] (1 : ℝ))) := |
| 159 | ⟨boundaryLimits f hext, boundaryLimits_zero f hext, |
| 160 | boundaryLimits_joint hzero hext, boundaryLimits_locallyUniform hzero hext⟩ |
| 161 | |
| 162 | end ActualJets |
| 163 | |
| 164 | end NavierStokes.JointResidualLimits |