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 | /-- Every exterior base residual jet has every power bound on the whole |
| 96 | unit sublevel. Its constant may depend on the order and power, but its |
| 97 | domain does not. -/ |
| 98 | theorem base_exterior_bound (B m : ℕ) (r : ℝ) : |
| 99 | ∃ C : ℝ, 0 ≤ C ∧ ∀ w ∈ preterminal, physicalQ h w ≤ 1 → w ∉ active → |
| 100 | ‖iteratedFDeriv ℝ m (baseResidual B) w‖ ≤ C * physicalQ h w ^ r := by |
| 101 | let R := max (BaseExterior.nominalExteriorRadius nominal) 0 |
| 102 | have hR : 0 ≤ R := le_max_right _ _ |
| 103 | obtain ⟨C,hC,hb⟩ := bound_of_local_rates_and_zero |
| 104 | (S := exteriorDomain) (K := Metric.closedBall (0 : SpaceTime) (R+2)) |
| 105 | (isCompact_closedBall _ _) |
| 106 | (fun w hw => physicalQ_pos outgoing.data.h_pos outgoing.data.h_lt_half hw.1) |
| 107 | (fun w _ => baseResidual_local_rate B m r w) (by |
| 108 | intro w hw hn |
| 109 | have hX : R < (SlowBorelBase.cartesianChart h w).2.1 := by |
| 110 | by_contra hX |
| 111 | exact hn (in_compact_of_radial_bound outgoing.data.h_pos outgoing.data.h_lt_half |
| 112 | hR hw.1 hw.2.1 (le_of_not_gt hX)) |
| 113 | exact FinalSlowBase.exterior_residual_jets_zero certificate modulation upper B m |
| 114 | ⟨hw.1, (le_max_left _ _).trans_lt hX⟩) |
| 115 | exact ⟨C,hC,fun w hw hq ha => hb w ⟨hw,hq,ha⟩⟩ |
| 116 | |
| 117 | end BaseResidual |
| 118 | |
| 119 | section ResidualAssembly |
| 120 | |
| 121 | open ActualCycleResidualBounds PhysicalResidualJetBounds CorrectionInitialization |
| 122 | |
| 123 | /-- Annular estimates and exterior germs give a bound at every point of |
| 124 | the same sublevel. This is an actual pointwise bound, not a filter rate. -/ |
| 125 | theorem selected_residual_bound {a b h gain β : ℝ} {N Δ : ℕ} {gap : ℕ → ℕ} |
| 126 | {U V : Set ActualCycleResidualBounds.Cylinder} {S : Set SpaceTime} |
| 127 | {c : CorrectionState.Context ActualCycleResidualBounds.Point} |
| 128 | {s : CorrectionState.State ActualCycleResidualBounds.Point} |
| 129 | {p₀ : ℕ → ActualCycleResidualBounds.Cylinder → ℝ} {u u₀ : VelocityField} {P P₀ : PressureField} |
| 130 | (r : StateRealization h N gap U c s p₀ u P) |
| 131 | (g : SelectedGeometry a b h N Δ gap U V S) |
| 132 | (hh : 0 < h) (hh1 : h < 1/2) (ha : 0 < a) (hN : 4 ≤ N) |
| 133 | (hf : NativeBounds N V gain (fun m => β * m) |
| 134 | (fun (_ : Unit) => LiftedMeanResidual.fullResidual c s)) |
| 135 | (houtside : ∀ w, w ∈ preterminal → physicalQ h w < ChartScales.Q N → w ∉ S → |
| 136 | u =ᶠ[𝓝 w] u₀ ∧ P =ᶠ[𝓝 w] P₀) (m : ℕ) |
| 137 | (hbase : ∃ C : ℝ, 0 ≤ C ∧ ∀ w ∈ preterminal, physicalQ h w ≤ 1 → w ∉ S → |
| 138 | ‖iteratedFDeriv ℝ m (residual u₀ P₀) w‖ ≤ |
| 139 | C * physicalQ h w ^ (gain - physicalLoss h β m)) : |
| 140 | ∃ C : ℝ, 0 ≤ C ∧ ∀ w ∈ CutStageEstimates.physicalSublevel h (ChartScales.Q N), |
| 141 | physicalQ h w ≤ 1 → ‖iteratedFDeriv ℝ m (residual u P) w‖ ≤ |
| 142 | C * physicalQ h w ^ (gain - physicalLoss h β m) := by |
| 143 | obtain ⟨C,hC,hb⟩ := selected_residual_jet_bound r g hh hh1 ha hN hf m |
| 144 | obtain ⟨B,hB,hbase⟩ := hbase |
| 145 | refine ⟨B+C,add_nonneg hB hC,?_⟩ |
| 146 | intro w hw hq |
| 147 | have hq0 := physicalQ_pos hh hh1 hw.1 |
| 148 | by_cases hs : w ∈ S |
| 149 | · exact (hb w hw.1 (PhysicalStageBounds.abs_time_le_one hh hh1 hw.1 hq) hw.2.le hs).trans |
| 150 | (mul_le_mul_of_nonneg_right (le_add_of_nonneg_left hB) (Real.rpow_nonneg hq0.le _)) |
| 151 | · obtain ⟨hu,hp⟩ := houtside w hw.1 hw.2 hs |
| 152 | have he : residual u P =ᶠ[𝓝 w] residual u₀ P₀ := |
| 153 | ResidualRegularity.residual_eventuallyEq hu hp |
| 154 | rw [iteratedFDeriv_eq_of_eventuallyEq he m] |
| 155 | exact (hbase w hw.1 hq hs).trans |
| 156 | (mul_le_mul_of_nonneg_right (le_add_of_nonneg_right hC) (Real.rpow_nonneg hq0.le _)) |
| 157 | |
| 158 | /-- The actual invariant controls the complete residual on a whole fixed |
| 159 | sublevel, including points outside the perturbation annulus. -/ |
| 160 | theorem invariant_residual_bound {B N0 N : ℕ} {σ : ℝ} |
| 161 | {x : CorrectionStep.CycleState (ActualCycleResidualBounds.Index B N0)} |
| 162 | (H : ActualCycleResidualBounds.Invariant σ x) {u : VelocityField} {P : PressureField} |
| 163 | (hGeom : ActualCarrierGeometry.geometricThreshold ≤ N0) (hN : 4 ≤ N) |
| 164 | (hbase : x.state.errors.base = ActualInitialization.baseError B) |
| 165 | (d : PhysicalData B N x.state u P) (m : ℕ) : |
| 166 | ∃ C : ℝ, 0 ≤ C ∧ ∀ w ∈ CutStageEstimates.physicalSublevel ActualPrimary.h (ChartScales.Q N), |
| 167 | physicalQ ActualPrimary.h w ≤ 1 → |
| 168 | ‖iteratedFDeriv ℝ m (residual u P) w‖ ≤ |
| 169 | C * physicalQ ActualPrimary.h w ^ (ActualPrimary.h * (1/2+σ) - fixedLoss m) := by |
| 170 | have hr := H.stateRealization ActualPolarCoverage.nativeDomain_open |
| 171 | (fun z hz => ActualPolarCoverage.nativeDomain_radius_pos hz) |
| 172 | (fun z hz => hz.1.1) hbase d |
| 173 | exact selected_residual_bound hr (actual_selectedGeometry N) |
| 174 | ActualPrimary.outgoing.data.h_pos ActualPrimary.outgoing.data.h_lt_half |
| 175 | ActualPolarCoverage.inner_pos hN |
| 176 | (native_restrict (H.native_residual hGeom hbase) hN (Subset.refl _)) |
| 177 | (fun _ hw hq hout => d.exterior_germs hw hq hout) m (base_exterior_bound B m _) |
| 178 | |
| 179 | end ResidualAssembly |
| 180 | |
| 181 | end NavierStokes.WholeDomainStageBounds |