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.GluedStageEstimates |
| 2 | import NavierStokes.SharpPhysicalLogBounds |
| 3 | import NavierStokes.ActualCurrentParticularBounds |
| 4 | import NavierStokes.SharpPhysicalLoss |
| 5 | import NavierStokes.LocalPhysicalCopyBounds |
| 6 | import NavierStokes.SharpPhaseJetAlgebra |
| 7 | import NavierStokes.CurrentPhysicalRadialClosure |
| 8 | import NavierStokes.CurrentParticularLabelBounds |
| 9 | import NavierStokes.SharpWaveStageBounds |
| 10 | import NavierStokes.ActualPhysicalStageBounds |
| 11 | import NavierStokes.LocalMeanPhysicalBounds |
| 12 | import NavierStokes.ActualCandidateAssembly |
| 13 | |
| 14 | /-! ## From `NavierStokes/SharpGeometricModeJets.lean` |
| 15 | |
| 16 | The text of `NavierStokes/SharpGeometricModeJets.lean`, folded into this file, which was its only importer. -/ |
| 17 | |
| 18 | section |
| 19 | |
| 20 | noncomputable section |
| 21 | namespace NavierStokes.SharpGeometricModeJets |
| 22 | open Set Function Filter LocalPhysicalCopyBounds |
| 23 | open scoped ContDiff Topology BigOperators |
| 24 | |
| 25 | private theorem nat_le_infty (k : ℕ) : (k : WithTop ℕ∞) ≤ ∞ := |
| 26 | WithTop.coe_le_coe.mpr le_top |
| 27 | |
| 28 | variable {E F : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 29 | [NormedAddCommGroup F] [NormedSpace ℝ F] [NormedSpace ℂ F] [IsScalarTower ℝ ℂ F] |
| 30 | |
| 31 | end NavierStokes.SharpGeometricModeJets |
| 32 | end |
| 33 | |
| 34 | end |
| 35 | |
| 36 | /-! ## From `NavierStokes/SharpCommonGraphJets.lean` |
| 37 | |
| 38 | The text of `NavierStokes/SharpCommonGraphJets.lean`, folded into this file, which was its only importer. -/ |
| 39 | |
| 40 | section |
| 41 | |
| 42 | noncomputable section |
| 43 | namespace NavierStokes.SharpCommonGraphJets |
| 44 | open Set Function Filter ProblemStatement |
| 45 | open PhysicalGraphBounds PhysicalWaveSum LocalPhysicalCopyBounds |
| 46 | open scoped ContDiff Topology |
| 47 | |
| 48 | end NavierStokes.SharpCommonGraphJets |
| 49 | end |
| 50 | |
| 51 | end |
| 52 | |
| 53 | /-! ## From `NavierStokes/SharpCurrentPhysicalPhase.lean` |
| 54 | |
| 55 | The text of `NavierStokes/SharpCurrentPhysicalPhase.lean`, folded into this file, which was its only importer. -/ |
| 56 | |
| 57 | section |
| 58 | |
| 59 | noncomputable section |
| 60 | namespace NavierStokes.SharpCurrentPhysicalPhase |
| 61 | open Set Function Filter ProblemStatement CorrectionInitialization |
| 62 | open PhysicalGraphBounds PhysicalWaveSum LocalPhysicalCopyBounds |
| 63 | open scoped ContDiff Topology |
| 64 | |
| 65 | abbrev Native := ActualParticularBackground.Native |
| 66 | |
| 67 | abbrev h : ℝ := ActualPrimary.h |
| 68 | |
| 69 | noncomputable def nativeMap (a : ℝ) (c : PolarCharts.Index) (n d : ℕ) : SpaceTime → Native := |
| 70 | CurrentPhysicalChartJets.chartMap a c ∘ commonLift h n d |
| 71 | |
| 72 | noncomputable def fullMap (a : ℝ) (c : PolarCharts.Index) (n d : ℕ) : |
| 73 | SpaceTime → ActualPrimary.FullPoint := ActualParticularBackground.nativeToFull ∘ nativeMap a c n d |
| 74 | |
| 75 | |
| 76 | private theorem nat_le_infty (k : ℕ) : (k : WithTop ℕ∞) ≤ ∞ := |
| 77 | WithTop.coe_le_coe.mpr le_top |
| 78 | |
| 79 | theorem smoothNear_comp {E F G : Type*} |
| 80 | [NormedAddCommGroup E] [NormedSpace ℝ E] [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 81 | [NormedAddCommGroup G] [NormedSpace ℝ G] |
| 82 | {f : F → G} {g : E → F} {x : E} (hf : SmoothNear f (g x)) (hg : SmoothNear g x) : |
| 83 | SmoothNear (f ∘ g) x := by |
| 84 | obtain ⟨V,hV,hgx,hf⟩ := hf |
| 85 | obtain ⟨U,hU,hx,hg⟩ := hg |
| 86 | obtain ⟨W,hWV,hW,hxW⟩ := mem_nhds_iff.mp |
| 87 | ((hg.contDiffAt (hU.mem_nhds hx)).continuousAt.preimage_mem_nhds (hV.mem_nhds hgx)) |
| 88 | refine ⟨U ∩ W,hU.inter hW,⟨hx,hxW⟩,?_⟩ |
| 89 | exact hf.comp (hg.mono inter_subset_left) (fun y hy => hWV hy.2) |
| 90 | |
| 91 | theorem nativeMap_smoothNear {a : ℝ} (ha : 0 < a) (c : PolarCharts.Index) (n d : ℕ) |
| 92 | {w : SpaceTime} (hw : radialProjection w ≠ 0) : SmoothNear (nativeMap a c n d) w := by |
| 93 | let U : Set SpaceTime := {w | radialProjection w ≠ 0} |
| 94 | have hU : IsOpen U := axisFree_open.preimage radialProjection.continuous |
| 95 | refine ⟨U,hU,hw,?_⟩ |
| 96 | exact (CurrentPhysicalChartJets.chartMap_smooth ha c).comp_contDiffOn |
| 97 | ((downLift d).contDiff.comp_contDiffOn (physicalLift_smooth h n)) |
| 98 | |
| 99 | theorem fullMap_smoothNear {a : ℝ} (ha : 0 < a) (c : PolarCharts.Index) (n d : ℕ) |
| 100 | {w : SpaceTime} (hw : radialProjection w ≠ 0) : SmoothNear (fullMap a c n d) w := by |
| 101 | obtain ⟨U,hU,hx,hs⟩ := nativeMap_smoothNear ha c n d hw |
| 102 | exact ⟨U,hU,hx,ActualParticularBackground.nativeToFull.toContinuousLinearEquiv.contDiff.comp_contDiffOn hs⟩ |
| 103 | |
| 104 | noncomputable def remainder (n : ℕ) (i : ActualPhaseJetBounds.CopyIndex B N0) |
| 105 | (x : ActualPrimary.FullPoint) : ℝ := ActualPhaseJetBounds.nativeRemainder i.1 |
| 106 | ((ActualPrimaryBounds.fullCopy i.1 n i.2 x).1,(ActualPrimaryBounds.fullCopy i.1 n i.2 x).2.2) |
| 107 | |
| 108 | |
| 109 | theorem weightedPhase_smoothNear {a : ℝ} (ha : 0 < a) (c : PolarCharts.Index) (n d : ℕ) |
| 110 | {i : ActualPhaseJetBounds.CopyIndex B N0} {w : SpaceTime} (hw : radialProjection w ≠ 0) |
| 111 | (hi : fullMap a c n d w ∈ ActualPhaseJetBounds.phaseCell n i) : |
| 112 | SmoothNear (ActualCurrentCarrierJets.weightedPhase i.1 n ∘ nativeMap a c n d) w := by |
| 113 | change SmoothNear (ActualPhaseJetBounds.weightedPhase i.1 n ∘ fullMap a c n d) w |
| 114 | exact smoothNear_comp (ActualCurrentCarrierJets.full_weightedPhase_smoothNear hi) |
| 115 | (fullMap_smoothNear ha c n d hw) |
| 116 | |
| 117 | end NavierStokes.SharpCurrentPhysicalPhase |
| 118 | end |
| 119 | |
| 120 | end |
| 121 | |
| 122 | /-! ## From `NavierStokes/SharpMeanJetBounds.lean` |
| 123 | |
| 124 | The text of `NavierStokes/SharpMeanJetBounds.lean`, folded into this file, which was its only importer. -/ |
| 125 | |
| 126 | section |
| 127 | |
| 128 | noncomputable section |
| 129 | namespace NavierStokes.SharpMeanJetBounds |
| 130 | open Set Function Filter ProblemStatement PhysicalWaveSum LocalPhysicalCopyBounds |
| 131 | open PhysicalMeanJetBounds LocalMeanPhysicalBounds |
| 132 | open scoped Topology ContDiff BigOperators |
| 133 | |
| 134 | variable {E : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 135 | |
| 136 | noncomputable def meanLoss (h degree : ℝ) (m : ℕ) : ℝ := (m:ℝ)*(1+h)+degree |
| 137 | |
| 138 | variable {h degree a b : ℝ} {N Δ : ℕ} {U : Set PhysicalGraphBounds.Plane} |
| 139 | |
| 140 | |
| 141 | end NavierStokes.SharpMeanJetBounds |
| 142 | end |
| 143 | |
| 144 | end |
| 145 | |
| 146 | /-! ## From `NavierStokes/SharpMeanStageBounds.lean` |
| 147 | |
| 148 | The text of `NavierStokes/SharpMeanStageBounds.lean`, folded into this file, which was its only importer. -/ |
| 149 | |
| 150 | section |
| 151 | |
| 152 | noncomputable section |
| 153 | namespace NavierStokes.ActualPhysicalStageBounds.MeanInput |
| 154 | open Set Function Filter ProblemStatement |
| 155 | open SharpMeanJetBounds SharpPhysicalCarrier |
| 156 | open scoped Topology ContDiff |
| 157 | |
| 158 | private theorem common_loss_bound {h degree q C α : ℝ} {m k : ℕ} |
| 159 | (hh : 0 ≤ h) (hdegree : degree ≤ 2*CoordinateAlgebra.A h) (hkm : k ≤ m+1) |
| 160 | (hq : 0 < q) (hq1 : q ≤ 1) (hC : 0 ≤ C) (N : ℕ) : |
| 161 | C*q^(h*α-meanLoss h degree k)*(1+|Real.log q|)^N ≤ |
| 162 | C*q^(h*α-physicalLoss h m)*(1+|Real.log q|)^N := by |
| 163 | have hk : (k:ℝ) ≤ (m:ℝ)+1 := by exact_mod_cast hkm |
| 164 | have hm : 0 ≤ (m:ℝ)+1 := by positivity |
| 165 | have he : h*α-physicalLoss h m ≤ h*α-meanLoss h degree k := by |
| 166 | unfold physicalLoss meanLoss derivativeCost |
| 167 | nlinarith |
| 168 | exact mul_le_mul_of_nonneg_right |
| 169 | (mul_le_mul_of_nonneg_left (Real.rpow_le_rpow_of_exponent_ge hq hq1 he) hC) (by positivity) |
| 170 | |
| 171 | end NavierStokes.ActualPhysicalStageBounds.MeanInput |
| 172 | end |
| 173 | |
| 174 | end |
| 175 | |
| 176 | /-! ## From `NavierStokes/SharpGluedStageBounds.lean` |
| 177 | |
| 178 | The text of `NavierStokes/SharpGluedStageBounds.lean`, folded into this file, which was its only importer. -/ |
| 179 | |
| 180 | section |
| 181 | |
| 182 | noncomputable section |
| 183 | namespace NavierStokes.SharpGluedStageBounds |
| 184 | open Set Function Filter ProblemStatement PhysicalWaveSum |
| 185 | open scoped Topology ContDiff BigOperators |
| 186 | |
| 187 | open CorrectionInitialization CorrectionInitialization.ActualPrimary ActualStageEstimates |
| 188 | |
| 189 | section SignedAndMean |
| 190 | |
| 191 | variable {B N0 N : ℕ} {D : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 192 | {I K : Type*} (R : RunData B N0) |
| 193 | (M : ActualMeanPhysicalData.InitialCycleInput B N0 N |
| 194 | (fun _ => ActualCycleParameters.fixedParameters B N0)) |
| 195 | (hN : 4 ≤ N) (W : GluedStageEstimates.SignedInputs D I K) |
| 196 | |
| 197 | private theorem potential_gain (j : ℕ) : |
| 198 | ActualIterationLedger.gain h (j+1) ≤ h * (W.potential j).alpha := by |
| 199 | have hg := ActualIterationLedger.gain_le_wave outgoing.data.h_pos.le |
| 200 | ActualCyclePreservation.kappa_small (Nat.succ_pos j) |
| 201 | rw [← nativePotential_eq_ledger j] at hg |
| 202 | exact hg.trans (mul_le_mul_of_nonneg_left (W.potential_exponent j) outgoing.data.h_pos.le) |
| 203 | |
| 204 | private theorem pressure_gain (j : ℕ) : |
| 205 | ActualIterationLedger.gain h (j+1) ≤ h * (W.pressure j).alpha := by |
| 206 | have hg := ActualIterationLedger.gain_le_wavePressure outgoing.data.h_pos.le |
| 207 | ActualCyclePreservation.kappa_small (Nat.succ_pos j) |
| 208 | rw [← nativePressure_eq_ledger j] at hg |
| 209 | exact hg.trans (mul_le_mul_of_nonneg_left (W.pressure_exponent j) outgoing.data.h_pos.le) |
| 210 | |
| 211 | private theorem mean_gain (j : ℕ) : |
| 212 | ActualIterationLedger.gain h (j+1) ≤ h * (1+ActualIterationLedger.sigma j-2*ChartScales.kappa) := by |
| 213 | rw [nativeMean_eq_ledger] |
| 214 | exact ActualIterationLedger.gain_le_mean outgoing.data.h_pos.le |
| 215 | ActualCyclePreservation.kappa_small (Nat.succ_pos j) |
| 216 | |
| 217 | private theorem mean_degree : CoordinateAlgebra.A h - 1/2 ≤ 2*CoordinateAlgebra.A h := by |
| 218 | unfold CoordinateAlgebra.A |
| 219 | linarith [outgoing.data.h_pos] |
| 220 | |
| 221 | end SignedAndMean |
| 222 | |
| 223 | end NavierStokes.SharpGluedStageBounds |
| 224 | end |
| 225 | |
| 226 | end |
| 227 | |
| 228 | /-! ## From `NavierStokes/SharpParticularGluing.lean` |
| 229 | |
| 230 | The text of `NavierStokes/SharpParticularGluing.lean`, folded into this file, which was its only importer. -/ |
| 231 | |
| 232 | section |
| 233 | |
| 234 | noncomputable section |
| 235 | |
| 236 | namespace NavierStokes.SharpParticularGluing |
| 237 | |
| 238 | open Set Function Filter ProblemStatement PhysicalWaveSum SharpGluedStageBounds |
| 239 | open CorrectionInitialization.ActualPrimary CorrectionStep |
| 240 | open scoped Topology ContDiff BigOperators |
| 241 | |
| 242 | private theorem choose_mode_constants {P : ℤ → ℝ → ℕ → Prop} |
| 243 | (hP : ∀ k, k ≠ 0 → ∃ C : ℝ, 0 ≤ C ∧ ∃ N : ℕ, P k C N) : |
| 244 | ∃ C : ℤ → ℝ, (∀ k, 0 ≤ C k) ∧ ∃ N : ℤ → ℕ, ∀ k, k ≠ 0 → P k (C k) (N k) := by |
| 245 | classical |
| 246 | have hs (k : ℤ) : ∃ C : ℝ, 0 ≤ C ∧ ∃ N : ℕ, k ≠ 0 → P k C N := by |
| 247 | by_cases hk : k = 0 |
| 248 | · exact ⟨0,le_rfl,0,fun hn => (hn hk).elim⟩ |
| 249 | · obtain ⟨C,hC,N,hb⟩ := hP k hk |
| 250 | exact ⟨C,hC,N,fun _ => hb⟩ |
| 251 | choose C hC N hb using hs |
| 252 | exact ⟨C,hC,N,hb⟩ |
| 253 | |
| 254 | section HarmonicSums |
| 255 | |
| 256 | variable {B N0 : ℕ} {σ : ℝ} {x : CycleState (ActualInitialization.Index B N0)} |
| 257 | (H : ActualParticularCycleData.Invariant σ x) |
| 258 | (hGeom : ActualCarrierGeometry.geometricThreshold ≤ N0) |
| 259 | |
| 260 | include H hGeom |
| 261 | |
| 262 | end HarmonicSums |
| 263 | |
| 264 | end NavierStokes.SharpParticularGluing |
| 265 | end |
| 266 | |
| 267 | end |
| 268 | |
| 269 | /-! ## From `NavierStokes/SharpCurrentModeJets.lean` |
| 270 | |
| 271 | The text of `NavierStokes/SharpCurrentModeJets.lean`, folded into this file, which was its only importer. -/ |
| 272 | |
| 273 | section |
| 274 | |
| 275 | noncomputable section |
| 276 | namespace NavierStokes.SharpCurrentModeJets |
| 277 | open Set Function Filter ProblemStatement CorrectionInitialization |
| 278 | open LocalPhysicalCopyBounds SharpCurrentPhysicalPhase |
| 279 | open scoped ContDiff Topology |
| 280 | |
| 281 | private theorem nat_le_infty (k : ℕ) : (k : WithTop ℕ∞) ≤ ∞ := |
| 282 | WithTop.coe_le_coe.mpr le_top |
| 283 | |
| 284 | |
| 285 | end NavierStokes.SharpCurrentModeJets |
| 286 | end |
| 287 | |
| 288 | end |
| 289 | |
| 290 | /-! ## From `NavierStokes/SharpCurrentParticularBounds.lean` |
| 291 | |
| 292 | The text of `NavierStokes/SharpCurrentParticularBounds.lean`, folded into this file, which was its only importer. -/ |
| 293 | |
| 294 | section |
| 295 | |
| 296 | noncomputable section |
| 297 | |
| 298 | namespace NavierStokes.SharpCurrentParticularBounds |
| 299 | |
| 300 | open Set Function Filter ProblemStatement CorrectionStep |
| 301 | open CorrectionInitialization ActualCurrentParticularBounds |
| 302 | open CorrectionInitialization.ActualPrimary (h outgoing nominal) |
| 303 | open LocalPhysicalCopyBounds SharpCurrentModeJets |
| 304 | open SharpCurrentPhysicalPhase (nativeMap fullMap smoothNear_comp weightedPhase_smoothNear nativeMap_smoothNear) |
| 305 | open scoped Topology ContDiff BigOperators |
| 306 | |
| 307 | variable {B N0 : ℕ} {σ : ℝ} {x : CycleState (ActualInitialization.Index B N0)} |
| 308 | |
| 309 | private theorem commonGap_bound (n : ℕ) : |
| 310 | CurrentPhysicalModeGerms.commonGap n ≤ CommonWindow.gap h := by |
| 311 | have hn := CommonWindow.native_le_index_add h outgoing.data.h_pos.le n |
| 312 | unfold CurrentPhysicalModeGerms.commonGap |
| 313 | omega |
| 314 | |
| 315 | end NavierStokes.SharpCurrentParticularBounds |
| 316 | end |
| 317 | |
| 318 | end |
| 319 | |
| 320 | /-! ## From `NavierStokes/SharpActualStageBounds.lean` |
| 321 | |
| 322 | The text of `NavierStokes/SharpActualStageBounds.lean`, folded into this file, which was its only importer. -/ |
| 323 | |
| 324 | section |
| 325 | |
| 326 | noncomputable section |
| 327 | |
| 328 | namespace NavierStokes.SharpActualStageBounds |
| 329 | |
| 330 | open Set Function Filter ProblemStatement PhysicalWaveSum SharpGluedStageBounds |
| 331 | open CorrectionInitialization.ActualPrimary ActualCandidateAssembly |
| 332 | open scoped Topology ContDiff BigOperators |
| 333 | |
| 334 | end NavierStokes.SharpActualStageBounds |
| 335 | end |
| 336 | |
| 337 | end |
| 338 | |
| 339 | noncomputable section |
| 340 | |
| 341 | namespace NavierStokes.SharpParticularStageBounds |
| 342 | |
| 343 | open Set Function Filter ProblemStatement PhysicalWaveSum SharpGluedStageBounds |
| 344 | open CorrectionInitialization.ActualPrimary ActualCandidateAssembly |
| 345 | open scoped Topology ContDiff BigOperators |
| 346 | |
| 347 | private theorem common_loss (j m k : ℕ) {degree : ℝ} (hd : degree ≤ 2*CoordinateAlgebra.A h) |
| 348 | (hk : k ≤ m+1) : |
| 349 | ActualIterationLedger.gain h (j+1)-SharpPhysicalCarrier.physicalLoss h m ≤ |
| 350 | h*(ActualIterationLedger.sigma j+1)-degree-(k:ℝ)*SharpPhysicalCarrier.derivativeCost h := by |
| 351 | have hg := GluedStageEstimates.gain_le_current_exponent j |
| 352 | have hk' : (k:ℝ) ≤ (m:ℝ)+1 := by exact_mod_cast hk |
| 353 | have hc : 0 ≤ SharpPhysicalCarrier.derivativeCost h := by |
| 354 | unfold SharpPhysicalCarrier.derivativeCost |
| 355 | linarith [outgoing.data.h_pos] |
| 356 | unfold SharpPhysicalCarrier.physicalLoss |
| 357 | nlinarith |
| 358 | |
| 359 | end NavierStokes.SharpParticularStageBounds |