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.TimeLocalization |
| 2 | import NavierStokes.ResidualRegularity |
| 3 | import Mathlib.Tactic.Linarith |
| 4 | import Mathlib.Tactic.NormNum |
| 5 | |
| 6 | /-! |
| 7 | # Conditional outer assembly of the candidate fields |
| 8 | |
| 9 | Given presingular fields and a smooth future force agreeing with their residual |
| 10 | only on `(3/4, 1)`, activate the fields and join their early residual to the |
| 11 | supplied force at `7/8`. The theorem proves all `CandidateProperties` for these |
| 12 | explicit outputs. It does not construct the input fields or the future force. |
| 13 | -/ |
| 14 | |
| 15 | namespace NavierStokes.CandidateAssembly |
| 16 | |
| 17 | noncomputable section |
| 18 | |
| 19 | open ProblemStatement TimeLocalization ResidualRegularity SmoothCutoffs Set Filter |
| 20 | open scoped ContDiff Topology |
| 21 | |
| 22 | /-- The early force is the actual residual of the activated fields; after the |
| 23 | join it is the supplied future force. The two agree on an open overlap under |
| 24 | the late-agreement hypothesis used below. -/ |
| 25 | def assembledForce (u : VelocityField) (p : PressureField) (F : VelocityField) : |
| 26 | VelocityField := fun z => |
| 27 | if z.1 < (7 / 8 : ℝ) then |
| 28 | navierStokesResidual (activatedVelocity u) (activatedPressure p) z.1 z.2 |
| 29 | else F z |
| 30 | |
| 31 | theorem assembledForce_eq_early (u : VelocityField) (p : PressureField) (F : VelocityField) |
| 32 | {t : ℝ} (ht : t < 7 / 8) (x : Space) : |
| 33 | assembledForce u p F (t, x) = |
| 34 | navierStokesResidual (activatedVelocity u) (activatedPressure p) t x := by |
| 35 | simp only [assembledForce, ht, ite_eq_left] |
| 36 | |
| 37 | theorem assembledForce_eq_after_join (u : VelocityField) (p : PressureField) |
| 38 | (F : VelocityField) {t : ℝ} (ht : 7 / 8 ≤ t) (x : Space) : |
| 39 | assembledForce u p F (t, x) = F (t, x) := by |
| 40 | simp only [assembledForce, not_lt.mpr ht, ite_false] |
| 41 | |
| 42 | /-- Late matching makes the piecewise force equal to `F` on the entire open |
| 43 | overlap, not merely at the join point. -/ |
| 44 | theorem assembledForce_eq_late (u : VelocityField) (p : PressureField) (F : VelocityField) |
| 45 | (hmatch : ∀ t ∈ Ioo (3 / 4 : ℝ) 1, ∀ x : Space, |
| 46 | F (t, x) = navierStokesResidual u p t x) |
| 47 | {t : ℝ} (ht : 3 / 4 < t) (x : Space) : |
| 48 | assembledForce u p F (t, x) = F (t, x) := by |
| 49 | by_cases hj : t < 7 / 8 |
| 50 | · rw [assembledForce_eq_early u p F hj x, activated_residual_eq_late u p ht x] |
| 51 | exact (hmatch t ⟨ht, lt_trans hj (by norm_num)⟩ x).symm |
| 52 | · exact assembledForce_eq_after_join u p F (le_of_not_gt hj) x |
| 53 | |
| 54 | /-- Throughout the PDE interval, the constructed force is exactly the residual |
| 55 | of the activated fields. No early agreement condition on `F` is needed. -/ |
| 56 | theorem assembledForce_eq_residual (u : VelocityField) (p : PressureField) |
| 57 | (F : VelocityField) |
| 58 | (hmatch : ∀ t ∈ Ioo (3 / 4 : ℝ) 1, ∀ x : Space, |
| 59 | F (t, x) = navierStokesResidual u p t x) |
| 60 | {t : ℝ} (ht : t ∈ Ioo (0 : ℝ) 1) (x : Space) : |
| 61 | assembledForce u p F (t, x) = |
| 62 | navierStokesResidual (activatedVelocity u) (activatedPressure p) t x := by |
| 63 | by_cases hj : t < 7 / 8 |
| 64 | · exact assembledForce_eq_early u p F hj x |
| 65 | · have hlate : 3 / 4 < t := by linarith |
| 66 | calc |
| 67 | _ = F (t, x) := assembledForce_eq_after_join u p F (le_of_not_gt hj) x |
| 68 | _ = navierStokesResidual u p t x := hmatch t ⟨hlate, ht.2⟩ x |
| 69 | _ = _ := (activated_residual_eq_late u p hlate x).symm |
| 70 | |
| 71 | theorem assembledForce_eventuallyEq_early (u : VelocityField) (p : PressureField) |
| 72 | (F : VelocityField) {z : SpaceTime} (hz : z.1 < 7 / 8) : |
| 73 | assembledForce u p F =ᶠ[𝓝 z] |
| 74 | (fun w => navierStokesResidual (activatedVelocity u) (activatedPressure p) w.1 w.2) := by |
| 75 | have hU : {w : SpaceTime | w.1 < (7 / 8 : ℝ)} ∈ 𝓝 z := |
| 76 | (isOpen_lt continuous_fst continuous_const).mem_nhds hz |
| 77 | filter_upwards [hU] with w hw |
| 78 | exact assembledForce_eq_early u p F hw w.2 |
| 79 | |
| 80 | theorem assembledForce_eventuallyEq_late (u : VelocityField) (p : PressureField) |
| 81 | (F : VelocityField) |
| 82 | (hmatch : ∀ t ∈ Ioo (3 / 4 : ℝ) 1, ∀ x : Space, |
| 83 | F (t, x) = navierStokesResidual u p t x) |
| 84 | {z : SpaceTime} (hz : 3 / 4 < z.1) : |
| 85 | assembledForce u p F =ᶠ[𝓝 z] F := by |
| 86 | have hU : {w : SpaceTime | (3 / 4 : ℝ) < w.1} ∈ 𝓝 z := |
| 87 | (isOpen_lt continuous_const continuous_fst).mem_nhds hz |
| 88 | filter_upwards [hU] with w hw |
| 89 | exact assembledForce_eq_late u p F hmatch hw w.2 |
| 90 | |
| 91 | theorem activatedVelocity_eventually_zero (u : VelocityField) (x : Space) : |
| 92 | activatedVelocity u =ᶠ[𝓝 (0, x)] (fun _ => 0) := by |
| 93 | have hs : (fun z : SpaceTime => timeSwitch z.1) =ᶠ[𝓝 (0, x)] (fun _ => 0) := |
| 94 | timeSwitch_eventually_zero.comp_tendsto continuous_fst.continuousAt |
| 95 | filter_upwards [hs] with z hz |
| 96 | simp only [activatedVelocity, hz, zero_smul] |
| 97 | |
| 98 | theorem activatedPressure_eventually_zero (p : PressureField) (x : Space) : |
| 99 | activatedPressure p =ᶠ[𝓝 (0, x)] (fun _ => 0) := by |
| 100 | have hs : (fun z : SpaceTime => timeSwitch z.1) =ᶠ[𝓝 (0, x)] (fun _ => 0) := |
| 101 | timeSwitch_eventually_zero.comp_tendsto continuous_fst.continuousAt |
| 102 | filter_upwards [hs] with z hz |
| 103 | simp only [activatedPressure, hz, zero_mul] |
| 104 | |
| 105 | /-- The force has a zero germ at time zero even if the original fields have |
| 106 | arbitrary extensions to negative time. -/ |
| 107 | theorem assembledForce_eventually_zero (u : VelocityField) (p : PressureField) |
| 108 | (F : VelocityField) (x : Space) : |
| 109 | assembledForce u p F =ᶠ[𝓝 (0, x)] (fun _ => 0) := by |
| 110 | exact (assembledForce_eventuallyEq_early u p F (z := (0, x)) (by norm_num)).trans |
| 111 | (residual_eventually_zero (activatedVelocity_eventually_zero u x) |
| 112 | (activatedPressure_eventually_zero p x)) |
| 113 | |
| 114 | theorem assembledForce_zero_initial (u : VelocityField) (p : PressureField) |
| 115 | (F : VelocityField) (x : Space) : assembledForce u p F (0, x) = 0 := |
| 116 | (assembledForce_eventually_zero u p F x).self_of_nhds |
| 117 | |
| 118 | /-- Joint smoothness of the assembled force, including the relative boundary |
| 119 | at time zero and the join at `7/8`, follows from local exact equalities. -/ |
| 120 | theorem assembledForce_smooth (u : VelocityField) (p : PressureField) (F : VelocityField) |
| 121 | (hu : ContDiffOn ℝ ∞ u preSingularDomain) |
| 122 | (hp : ContDiffOn ℝ ∞ p preSingularDomain) |
| 123 | (hF : ContDiffOn ℝ ∞ F futureDomain) |
| 124 | (hmatch : ∀ t ∈ Ioo (3 / 4 : ℝ) 1, ∀ x : Space, |
| 125 | F (t, x) = navierStokesResidual u p t x) : |
| 126 | ContDiffOn ℝ ∞ (assembledForce u p F) futureDomain := by |
| 127 | intro z hz |
| 128 | rcases z with ⟨t, x⟩ |
| 129 | by_cases hzero : t = 0 |
| 130 | · subst t |
| 131 | have hconst : ContDiffAt ℝ ∞ (fun _ : SpaceTime => (0 : Space)) (0, x) := |
| 132 | contDiffAt_const |
| 133 | exact (hconst.congr_of_eventuallyEq |
| 134 | (assembledForce_eventually_zero u p F x)).contDiffWithinAt |
| 135 | · have hpos : 0 < t := lt_of_le_of_ne hz.1 (Ne.symm hzero) |
| 136 | by_cases hj : t < 7 / 8 |
| 137 | · have ht1 : t < 1 := lt_trans hj (by norm_num) |
| 138 | have hres := contDiffOn_residual_interior |
| 139 | (activatedVelocity_smooth u hu) (activatedPressure_smooth p hp) |
| 140 | have hat : ContDiffAt ℝ ∞ |
| 141 | (fun w => navierStokesResidual (activatedVelocity u) (activatedPressure p) w.1 w.2) |
| 142 | (t, x) := |
| 143 | hres.contDiffAt (prod_mem_nhds (Ioo_mem_nhds hpos ht1) Filter.univ_mem) |
| 144 | exact (hat.congr_of_eventuallyEq |
| 145 | (assembledForce_eventuallyEq_early u p F (z := (t, x)) hj)).contDiffWithinAt |
| 146 | · have hlate : 3 / 4 < t := by linarith |
| 147 | have heq := assembledForce_eventuallyEq_late u p F hmatch (z := (t, x)) hlate |
| 148 | exact (hF (t, x) hz).congr_of_eventuallyEq |
| 149 | (heq.filter_mono nhdsWithin_le_nhds) heq.self_of_nhds |
| 150 | |
| 151 | theorem assembledForce_periodic (u : VelocityField) (p : PressureField) |
| 152 | (F : VelocityField) |
| 153 | (huper : UnitSpatialPeriodsOn (Ico (0 : ℝ) 1) u) |
| 154 | (hpper : UnitSpatialPeriodsOn (Ico (0 : ℝ) 1) p) |
| 155 | (hFper : UnitSpatialPeriodsOn (Ici (0 : ℝ)) F) : |
| 156 | UnitSpatialPeriodsOn (Ici (0 : ℝ)) (assembledForce u p F) := by |
| 157 | intro t ht x i |
| 158 | by_cases hzero : t = 0 |
| 159 | · subst t |
| 160 | rw [assembledForce_zero_initial, assembledForce_zero_initial] |
| 161 | · have hpos : 0 < t := lt_of_le_of_ne ht (Ne.symm hzero) |
| 162 | by_cases hj : t < 7 / 8 |
| 163 | · rw [assembledForce_eq_early u p F hj, assembledForce_eq_early u p F hj] |
| 164 | exact residual_periods_interior |
| 165 | (activatedVelocity_periodic u _ huper) (activatedPressure_periodic p _ hpper) |
| 166 | t ⟨hpos, lt_trans hj (by norm_num)⟩ x i |
| 167 | · rw [assembledForce_eq_after_join u p F (le_of_not_gt hj), |
| 168 | assembledForce_eq_after_join u p F (le_of_not_gt hj)] |
| 169 | exact hFper t ht x i |
| 170 | |
| 171 | /-- The new early segment does not affect compact future time support. -/ |
| 172 | theorem assembledForce_time_support (u : VelocityField) (p : PressureField) |
| 173 | (F : VelocityField) (hF : CompactFutureTimeSupport F) : |
| 174 | CompactFutureTimeSupport (assembledForce u p F) := by |
| 175 | obtain ⟨T, hT, hzero⟩ := hF |
| 176 | refine ⟨max T 1, hT.trans (le_max_left _ _), ?_⟩ |
| 177 | intro t ht x |
| 178 | have hj : 7 / 8 ≤ t := (by norm_num : (7 / 8 : ℝ) ≤ 1).trans |
| 179 | ((le_max_right T 1).trans ht) |
| 180 | rw [assembledForce_eq_after_join u p F hj x] |
| 181 | exact hzero t ((le_max_left T 1).trans ht) x |
| 182 | |
| 183 | /-- Conditional outer assembly: the explicitly activated fields and joined |
| 184 | force satisfy every property in the candidate specification. Existence of |
| 185 | the incoming fields and the late-matching future force remains an input. -/ |
| 186 | theorem assembled_candidate_properties |
| 187 | (u : VelocityField) (p : PressureField) (F : VelocityField) |
| 188 | (hu : ContDiffOn ℝ ∞ u preSingularDomain) |
| 189 | (hp : ContDiffOn ℝ ∞ p preSingularDomain) |
| 190 | (huper : UnitSpatialPeriodsOn (Ico (0 : ℝ) 1) u) |
| 191 | (hpper : UnitSpatialPeriodsOn (Ico (0 : ℝ) 1) p) |
| 192 | (hdiv : ∀ t ∈ Ico (0 : ℝ) 1, ∀ x : Space, spatialDivergence u t x = 0) |
| 193 | (hunbounded : SpeedUnboundedAtOne u) |
| 194 | (hF : ContDiffOn ℝ ∞ F futureDomain) |
| 195 | (hFper : UnitSpatialPeriodsOn (Ici (0 : ℝ)) F) |
| 196 | (hFsupport : CompactFutureTimeSupport F) |
| 197 | (hmatch : ∀ t ∈ Ioo (3 / 4 : ℝ) 1, ∀ x : Space, |
| 198 | F (t, x) = navierStokesResidual u p t x) : |
| 199 | CandidateProperties (activatedVelocity u) (activatedPressure p) (assembledForce u p F) := by |
| 200 | refine ⟨activatedVelocity_smooth u hu, activatedPressure_smooth p hp, |
| 201 | assembledForce_smooth u p F hu hp hF hmatch, |
| 202 | activatedVelocity_periodic u _ huper, activatedPressure_periodic p _ hpper, |
| 203 | assembledForce_periodic u p F huper hpper hFper, |
| 204 | activatedVelocity_zero_initial u, assembledForce_time_support u p F hFsupport, |
| 205 | activatedVelocity_divergence_free u hu hdiv, ?_, |
| 206 | activatedVelocity_speed_unbounded u hunbounded⟩ |
| 207 | intro t ht x |
| 208 | exact (assembledForce_eq_residual u p F hmatch ht x).symm |
| 209 | |
| 210 | /-- A conditional implication, not a proof that its analytic inputs exist. -/ |
| 211 | theorem candidateStatement_of_late_force |
| 212 | (u : VelocityField) (p : PressureField) (F : VelocityField) |
| 213 | (hu : ContDiffOn ℝ ∞ u preSingularDomain) |
| 214 | (hp : ContDiffOn ℝ ∞ p preSingularDomain) |
| 215 | (huper : UnitSpatialPeriodsOn (Ico (0 : ℝ) 1) u) |
| 216 | (hpper : UnitSpatialPeriodsOn (Ico (0 : ℝ) 1) p) |
| 217 | (hdiv : ∀ t ∈ Ico (0 : ℝ) 1, ∀ x : Space, spatialDivergence u t x = 0) |
| 218 | (hunbounded : SpeedUnboundedAtOne u) |
| 219 | (hF : ContDiffOn ℝ ∞ F futureDomain) |
| 220 | (hFper : UnitSpatialPeriodsOn (Ici (0 : ℝ)) F) |
| 221 | (hFsupport : CompactFutureTimeSupport F) |
| 222 | (hmatch : ∀ t ∈ Ioo (3 / 4 : ℝ) 1, ∀ x : Space, |
| 223 | F (t, x) = navierStokesResidual u p t x) : |
| 224 | candidateStatement := |
| 225 | ⟨activatedVelocity u, activatedPressure p, assembledForce u p F, |
| 226 | assembled_candidate_properties u p F hu hp huper hpper hdiv hunbounded |
| 227 | hF hFper hFsupport hmatch⟩ |
| 228 | |
| 229 | end |
| 230 | |
| 231 | end NavierStokes.CandidateAssembly |