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.WholeDomainPhysicalCompact |
| 2 | import NavierStokes.ActualCycleResidualBounds |
| 3 | import NavierStokes.PhysicalStageBounds |
| 4 | import NavierStokes.AnnularEndpoint |
| 5 | |
| 6 | noncomputable section |
| 7 | |
| 8 | namespace NavierStokes.WholeDomainStageBounds |
| 9 | |
| 10 | open Set Filter Function ProblemStatement |
| 11 | open scoped Topology ContDiff BigOperators |
| 12 | |
| 13 | open PhysicalWaveSum |
| 14 | |
| 15 | section BaseResidual |
| 16 | |
| 17 | open CorrectionInitialization CorrectionInitialization.ActualPrimary ActualCycleResidualBounds |
| 18 | |
| 19 | private abbrev baseResidual (B : ℕ) : VelocityField := |
| 20 | PhysicalResidualJetBounds.residual (FinalSlowBase.velocity certificate modulation upper B) |
| 21 | (FinalSlowBase.pressure certificate modulation upper B) |
| 22 | |
| 23 | private def exteriorDomain : Set SpaceTime := |
| 24 | {w | w ∈ preterminal ∧ physicalQ h w ≤ 1 ∧ w ∉ active} |
| 25 | |
| 26 | private theorem exteriorDomain_past : exteriorDomain ⊆ SpacetimeEndpoint.openPast 1 := |
| 27 | fun _ hw => ⟨hw.1, Set.mem_univ _⟩ |
| 28 | |
| 29 | private theorem baseResidual_smooth (B : ℕ) : |
| 30 | ContDiffOn ℝ ∞ (baseResidual B) (SpacetimeEndpoint.openPast 1) := |
| 31 | ResidualRegularity.contDiffOn_residual (SpacetimeEndpoint.openPast_isOpen 1) |
| 32 | (FinalSlowBase.velocity_smooth certificate modulation upper B) |
| 33 | (FinalSlowBase.pressure_smooth certificate modulation upper B) |
| 34 | |
| 35 | /-- At nonzero limiting axial coordinate the genuine endpoint chart has |
| 36 | a positive limiting scale. -/ |
| 37 | theorem physicalQ_tendsto_offplane {x : Space} (hx : x 2 ≠ 0) : |
| 38 | Tendsto (physicalQ h) (𝓝[SpacetimeEndpoint.openPast 1] (1,x)) |
| 39 | (𝓝 ((EndpointCoordinates.cartesianExtension h (1,x)).1)) := by |
| 40 | have hc := (EndpointCoordinates.cartesianExtension_smoothAt outgoing.data.h_pos |
| 41 | outgoing.data.h_lt_half (EndpointCoordinates.cartesian_endpoint_mem |
| 42 | outgoing.data.h_pos outgoing.data.h_lt_half hx)).continuousAt.fst |
| 43 | apply (hc.tendsto.mono_left nhdsWithin_le_nhds).congr' |
| 44 | filter_upwards [self_mem_nhdsWithin] with w hw |
| 45 | exact congrArg Prod.fst (EndpointCoordinates.cartesianExtension_eq_physical |
| 46 | outgoing.data.h_pos outgoing.data.h_lt_half hw.1) |
| 47 | |
| 48 | private theorem baseResidual_local_rate (B m : ℕ) (r : ℝ) (w : SpaceTime) : |
| 49 | DiagonalResidual.JetRate (𝓝[exteriorDomain] w) (physicalQ h) (baseResidual B) m r := by |
| 50 | rcases w with ⟨t,x⟩ |
| 51 | rcases lt_trichotomy t 1 with ht | ht | ht |
| 52 | · have hs := (baseResidual_smooth B).contDiffAt |
| 53 | ((SpacetimeEndpoint.openPast_isOpen 1).mem_nhds |
| 54 | (show (t,x) ∈ SpacetimeEndpoint.openPast 1 from ⟨ht, mem_univ x⟩)) |
| 55 | have hj : ContDiffAt ℝ 0 (iteratedFDeriv ℝ m (baseResidual B)) (t,x) := |
| 56 | hs.iteratedFDeriv_right (by exact_mod_cast (le_top : 0 + (m : ℕ∞) ≤ ⊤)) |
| 57 | exact rate_of_jet_limit (hj.continuousAt.tendsto.mono_left nhdsWithin_le_nhds) |
| 58 | ((physicalQ_smoothAt outgoing.data.h_pos outgoing.data.h_lt_half ht).continuousAt.tendsto.mono_left |
| 59 | nhdsWithin_le_nhds) (physicalQ_pos outgoing.data.h_pos outgoing.data.h_lt_half ht) r |
| 60 | · subst t |
| 61 | have hmono : 𝓝[exteriorDomain] ((1:ℝ),x) ≤ |
| 62 | 𝓝[SpacetimeEndpoint.openPast 1] ((1:ℝ),x) := nhdsWithin_mono _ exteriorDomain_past |
| 63 | by_cases hz : x 2 = 0 |
| 64 | · have hcarrier : ∀ᶠ y in 𝓝[exteriorDomain] ((1:ℝ),x), |
| 65 | y ∈ Metric.closedBall ((1:ℝ),x) 1 := |
| 66 | nhdsWithin_le_nhds (Metric.closedBall_mem_nhds _ zero_lt_one) |
| 67 | have hpast : ∀ᶠ y in 𝓝[exteriorDomain] ((1:ℝ),x), y.1 < 1 := by |
| 68 | filter_upwards [self_mem_nhdsWithin] with y hy |
| 69 | exact hy.1 |
| 70 | have hscale := (AnnularEndpoint.physicalQ_tendsto_zero outgoing.data.h_pos |
| 71 | outgoing.data.h_lt_half hz).mono_left hmono |
| 72 | obtain ⟨C,hC,hb⟩ := GlobalBaseError.error_jetRate certificate modulation upper B |
| 73 | actual_upper_covers_exterior (isCompact_closedBall _ _) hcarrier hpast hscale |
| 74 | m (max r 0) (le_max_right _ _) |
| 75 | refine ⟨C,hC,?_⟩ |
| 76 | filter_upwards [hb,self_mem_nhdsWithin] with y hy hyS |
| 77 | rw [iteratedFDeriv_eq_of_eventuallyEq |
| 78 | (base_residual_germ B hyS.1 hyS.2.2) m] |
| 79 | exact hy.trans (mul_le_mul_of_nonneg_left |
| 80 | (Real.rpow_le_rpow_of_exponent_ge |
| 81 | (physicalQ_pos outgoing.data.h_pos outgoing.data.h_lt_half hyS.1) |
| 82 | hyS.2.1 (le_max_left _ _)) hC) |
| 83 | · let U := SlowBaseEndpoint.finalVelocityNonzeroAxial certificate modulation upper B hz |
| 84 | let P := SlowBaseEndpoint.finalPressureNonzeroAxial certificate modulation upper B hz |
| 85 | have hp := EndpointCoordinates.cartesianExtension_pos |
| 86 | (EndpointCoordinates.cartesian_endpoint_mem outgoing.data.h_pos outgoing.data.h_lt_half hz) |
| 87 | exact rate_of_jet_limit ((residualExtension U P).jet_tendsto m |>.mono_left hmono) |
| 88 | ((physicalQ_tendsto_offplane hz).mono_left hmono) hp r |
| 89 | · refine ⟨0,le_rfl,?_⟩ |
| 90 | have hn : {y : SpaceTime | 1 < y.1} ∈ 𝓝 ((t:ℝ),x) := |
| 91 | (isOpen_lt continuous_const continuous_fst).mem_nhds ht |
| 92 | filter_upwards [nhdsWithin_le_nhds hn,self_mem_nhdsWithin] with y hy hyS |
| 93 | exact False.elim (not_lt_of_ge hy.le hyS.1) |
| 94 | |
| 95 | end BaseResidual |
| 96 | |
| 97 | section ResidualAssembly |
| 98 | |
| 99 | open ActualCycleResidualBounds PhysicalResidualJetBounds CorrectionInitialization |
| 100 | |
| 101 | end ResidualAssembly |
| 102 | |
| 103 | end NavierStokes.WholeDomainStageBounds |