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 | import NavierStokes.ActualCandidateAssembly |
| 6 | import NavierStokes.SharpPhysicalLogBounds |
| 7 | |
| 8 | /-! ## From `NavierStokes/WholeDomainStageBounds.lean` |
| 9 | |
| 10 | The text of `NavierStokes/WholeDomainStageBounds.lean`, folded into this file, which was its only importer. -/ |
| 11 | |
| 12 | section |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | namespace NavierStokes.WholeDomainStageBounds |
| 17 | |
| 18 | open Set Filter Function ProblemStatement |
| 19 | open scoped Topology ContDiff BigOperators |
| 20 | |
| 21 | open PhysicalWaveSum |
| 22 | |
| 23 | section BaseResidual |
| 24 | |
| 25 | open CorrectionInitialization CorrectionInitialization.ActualPrimary ActualCycleResidualBounds |
| 26 | |
| 27 | private abbrev baseResidual (B : ℕ) : VelocityField := |
| 28 | PhysicalResidualJetBounds.residual (FinalSlowBase.velocity certificate modulation upper B) |
| 29 | (FinalSlowBase.pressure certificate modulation upper B) |
| 30 | |
| 31 | private def exteriorDomain : Set SpaceTime := |
| 32 | {w | w ∈ preterminal ∧ physicalQ h w ≤ 1 ∧ w ∉ active} |
| 33 | |
| 34 | private theorem exteriorDomain_past : exteriorDomain ⊆ SpacetimeEndpoint.openPast 1 := |
| 35 | fun _ hw => ⟨hw.1, Set.mem_univ _⟩ |
| 36 | |
| 37 | private theorem baseResidual_smooth (B : ℕ) : |
| 38 | ContDiffOn ℝ ∞ (baseResidual B) (SpacetimeEndpoint.openPast 1) := |
| 39 | ResidualRegularity.contDiffOn_residual (SpacetimeEndpoint.openPast_isOpen 1) |
| 40 | (FinalSlowBase.velocity_smooth certificate modulation upper B) |
| 41 | (FinalSlowBase.pressure_smooth certificate modulation upper B) |
| 42 | |
| 43 | /-- At nonzero limiting axial coordinate the genuine endpoint chart has |
| 44 | a positive limiting scale. -/ |
| 45 | theorem physicalQ_tendsto_offplane {x : Space} (hx : x 2 ≠ 0) : |
| 46 | Tendsto (physicalQ h) (𝓝[SpacetimeEndpoint.openPast 1] (1,x)) |
| 47 | (𝓝 ((EndpointCoordinates.cartesianExtension h (1,x)).1)) := by |
| 48 | have hc := (EndpointCoordinates.cartesianExtension_smoothAt outgoing.data.h_pos |
| 49 | outgoing.data.h_lt_half (EndpointCoordinates.cartesian_endpoint_mem |
| 50 | outgoing.data.h_pos outgoing.data.h_lt_half hx)).continuousAt.fst |
| 51 | apply (hc.tendsto.mono_left nhdsWithin_le_nhds).congr' |
| 52 | filter_upwards [self_mem_nhdsWithin] with w hw |
| 53 | exact congrArg Prod.fst (EndpointCoordinates.cartesianExtension_eq_physical |
| 54 | outgoing.data.h_pos outgoing.data.h_lt_half hw.1) |
| 55 | |
| 56 | private theorem baseResidual_local_rate (B m : ℕ) (r : ℝ) (w : SpaceTime) : |
| 57 | DiagonalResidual.JetRate (𝓝[exteriorDomain] w) (physicalQ h) (baseResidual B) m r := by |
| 58 | rcases w with ⟨t,x⟩ |
| 59 | rcases lt_trichotomy t 1 with ht | ht | ht |
| 60 | · have hs := (baseResidual_smooth B).contDiffAt |
| 61 | ((SpacetimeEndpoint.openPast_isOpen 1).mem_nhds |
| 62 | (show (t,x) ∈ SpacetimeEndpoint.openPast 1 from ⟨ht, mem_univ x⟩)) |
| 63 | have hj : ContDiffAt ℝ 0 (iteratedFDeriv ℝ m (baseResidual B)) (t,x) := |
| 64 | hs.iteratedFDeriv_right (by exact_mod_cast (le_top : 0 + (m : ℕ∞) ≤ ⊤)) |
| 65 | exact rate_of_jet_limit (hj.continuousAt.tendsto.mono_left nhdsWithin_le_nhds) |
| 66 | ((physicalQ_smoothAt outgoing.data.h_pos outgoing.data.h_lt_half ht).continuousAt.tendsto.mono_left |
| 67 | nhdsWithin_le_nhds) (physicalQ_pos outgoing.data.h_pos outgoing.data.h_lt_half ht) r |
| 68 | · subst t |
| 69 | have hmono : 𝓝[exteriorDomain] ((1:ℝ),x) ≤ |
| 70 | 𝓝[SpacetimeEndpoint.openPast 1] ((1:ℝ),x) := nhdsWithin_mono _ exteriorDomain_past |
| 71 | by_cases hz : x 2 = 0 |
| 72 | · have hcarrier : ∀ᶠ y in 𝓝[exteriorDomain] ((1:ℝ),x), |
| 73 | y ∈ Metric.closedBall ((1:ℝ),x) 1 := |
| 74 | nhdsWithin_le_nhds (Metric.closedBall_mem_nhds _ zero_lt_one) |
| 75 | have hpast : ∀ᶠ y in 𝓝[exteriorDomain] ((1:ℝ),x), y.1 < 1 := by |
| 76 | filter_upwards [self_mem_nhdsWithin] with y hy |
| 77 | exact hy.1 |
| 78 | have hscale := (AnnularEndpoint.physicalQ_tendsto_zero outgoing.data.h_pos |
| 79 | outgoing.data.h_lt_half hz).mono_left hmono |
| 80 | obtain ⟨C,hC,hb⟩ := GlobalBaseError.error_jetRate certificate modulation upper B |
| 81 | actual_upper_covers_exterior (isCompact_closedBall _ _) hcarrier hpast hscale |
| 82 | m (max r 0) (le_max_right _ _) |
| 83 | refine ⟨C,hC,?_⟩ |
| 84 | filter_upwards [hb,self_mem_nhdsWithin] with y hy hyS |
| 85 | rw [iteratedFDeriv_eq_of_eventuallyEq |
| 86 | (base_residual_germ B hyS.1 hyS.2.2) m] |
| 87 | exact hy.trans (mul_le_mul_of_nonneg_left |
| 88 | (Real.rpow_le_rpow_of_exponent_ge |
| 89 | (physicalQ_pos outgoing.data.h_pos outgoing.data.h_lt_half hyS.1) |
| 90 | hyS.2.1 (le_max_left _ _)) hC) |
| 91 | · let U := SlowBaseEndpoint.finalVelocityNonzeroAxial certificate modulation upper B hz |
| 92 | let P := SlowBaseEndpoint.finalPressureNonzeroAxial certificate modulation upper B hz |
| 93 | have hp := EndpointCoordinates.cartesianExtension_pos |
| 94 | (EndpointCoordinates.cartesian_endpoint_mem outgoing.data.h_pos outgoing.data.h_lt_half hz) |
| 95 | exact rate_of_jet_limit ((residualExtension U P).jet_tendsto m |>.mono_left hmono) |
| 96 | ((physicalQ_tendsto_offplane hz).mono_left hmono) hp r |
| 97 | · refine ⟨0,le_rfl,?_⟩ |
| 98 | have hn : {y : SpaceTime | 1 < y.1} ∈ 𝓝 ((t:ℝ),x) := |
| 99 | (isOpen_lt continuous_const continuous_fst).mem_nhds ht |
| 100 | filter_upwards [nhdsWithin_le_nhds hn,self_mem_nhdsWithin] with y hy hyS |
| 101 | exact False.elim (not_lt_of_ge hy.le hyS.1) |
| 102 | |
| 103 | end BaseResidual |
| 104 | |
| 105 | section ResidualAssembly |
| 106 | |
| 107 | open ActualCycleResidualBounds PhysicalResidualJetBounds CorrectionInitialization |
| 108 | |
| 109 | end ResidualAssembly |
| 110 | |
| 111 | end NavierStokes.WholeDomainStageBounds |
| 112 | end |
| 113 | |
| 114 | end |
| 115 | |
| 116 | /-! ## From `NavierStokes/WholeDomainActualStageBounds.lean` |
| 117 | |
| 118 | The text of `NavierStokes/WholeDomainActualStageBounds.lean`, folded into this file, which was its only importer. -/ |
| 119 | |
| 120 | section |
| 121 | |
| 122 | noncomputable section |
| 123 | |
| 124 | namespace NavierStokes.WholeDomainStageBounds |
| 125 | |
| 126 | open Set Function Filter ProblemStatement CorrectionInitialization |
| 127 | open CorrectionInitialization.ActualPrimary ActualCandidateAssembly PhysicalWaveSum |
| 128 | open scoped Topology ContDiff BigOperators |
| 129 | |
| 130 | /-- One common scale for every finite stage and every derivative order. -/ |
| 131 | noncomputable def commonQ (B N0 : ℕ) : ℝ := |
| 132 | ChartScales.Q (ActualCandidateConstruction.residualBand B N0) |
| 133 | |
| 134 | theorem commonQ_pos (B N0 : ℕ) : 0 < commonQ B N0 := ChartScales.Q_pos _ |
| 135 | |
| 136 | theorem commonQ_lt_original (B N0 : ℕ) : commonQ B N0 < ActualCandidateConstruction.qbig B N0 := by |
| 137 | have he := ActualCandidateConstruction.twice_residual_scale B N0 |
| 138 | have hp := commonQ_pos B N0 |
| 139 | change 2 * commonQ B N0 = _ at he |
| 140 | linarith |
| 141 | |
| 142 | end NavierStokes.WholeDomainStageBounds |
| 143 | end |
| 144 | |
| 145 | end |
| 146 | |
| 147 | noncomputable section |
| 148 | |
| 149 | namespace NavierStokes.WholeDomainStageBounds |
| 150 | |
| 151 | open Set Function Filter ProblemStatement PhysicalWaveSum SharpGluedStageBounds |
| 152 | open CorrectionInitialization.ActualPrimary ActualCandidateAssembly |
| 153 | open scoped Topology ContDiff BigOperators |
| 154 | |
| 155 | private noncomputable abbrev seedT (B N0 : ℕ) := |
| 156 | ActualPhysicalStageBounds.actualInitialTemporalInput B N0 (ActualCandidateConstruction.firstBand B N0) |
| 157 | (ActualCandidateConstruction.firstBand_four B N0) |
| 158 | private noncomputable abbrev seedR (B N0 : ℕ) := |
| 159 | ActualPhysicalStageBounds.actualInitialRankInput B N0 (ActualCandidateConstruction.firstBand B N0) |
| 160 | (ActualCandidateConstruction.firstBand_four B N0) |
| 161 | private noncomputable abbrev seedB (B N0 : ℕ) := |
| 162 | ActualPhysicalStageBounds.actualInitialAngularInput B N0 (ActualCandidateConstruction.firstBand B N0) |
| 163 | (ActualCandidateConstruction.firstBand_four B N0) |
| 164 | private noncomputable abbrev seedP (B N0 : ℕ) := |
| 165 | ActualPhysicalStageBounds.actualInitialPressureInput B N0 (ActualCandidateConstruction.firstBand B N0) |
| 166 | (ActualCandidateConstruction.firstBand_four B N0) |
| 167 | |
| 168 | end NavierStokes.WholeDomainStageBounds |