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

Merge pull request #602 from s2-ns-scaled-1
Browse filesperf(NavierStokes/Scaled): 1 file cheaper to elaborate (−18.5%, measured)
main s1-euler-angle-9 s1-ns-harmonic-11 s1-ns-particular-10 s1-ns-radial-9 s1-ns-wave-11 s2-euler-correction-1 s2-euler-cylinder-1 s2-euler-dirichlet-1 s2-euler-euler-1 s2-euler-finite-1 s2-euler-mean-1 s2-euler-ordinary-2 s2-euler-packet-1 s2-euler-transverse-1 s2-ns-actual-1 s2-ns-annular-1 s2-ns-base-1 s2-ns-common-1 s2-ns-correction-1 s2-ns-current-1 s2-ns-five-1 s2-ns-flat-1 s2-ns-global-1 s2-ns-heat-1 s2-ns-mean-1 s2-ns-modulated-1 s2-ns-moment-1 s2-ns-outgoing-2 s2-ns-periodic-1 s2-ns-periodized-1 s2-ns-physical-1 s2-ns-positive-1 s2-ns-pressure-1 s2-ns-primary-1 s2-ns-reserved-1 s2-ns-residual-1 s2-ns-scaled-2 s2-ns-signed-1 s2-ns-slow-1 s2-ns-smooth-1 s2-ns-temporal-1 s2-ns-uniform-1 s2-ns-variable-1 s2-ns-viscous-1 s2-ns-volterra-2
Checks
build Program · lake build and Comparator
Details
challenge Program · challenge files and build config
Details
+6 −6 NavierStokes/ScaledActualParticularControl.lean View file
| @@ -399,7 +399,7 @@ theorem geometry_cost (clock : ActualSignedControl.PositiveScale Label) | ||
| 399 | 399 | nlinarith [clock.upper_one, coveringBound_pos budget, |
| 400 | 400 | mul_nonneg (coveringBound_pos budget).le (sub_nonneg.mpr hinv)] |
| 401 | 401 | have hU2 : H*(1+|clock.value l n|) ≤ U := by |
| 402 | - dsimp [U,geometryFactor,H] | |
| 402 | + dsimp [U,geometryFactor] | |
| 403 | 403 | nlinarith [inv_pos.mpr clock.lower_pos, coveringBound_pos budget, |
| 404 | 404 | mul_nonneg (coveringBound_pos budget).le (sub_nonneg.mpr hrate)] |
| 405 | 405 | have hcoord : ‖G.coordinateLinear‖ ≤ U*‖g.coordinateLinear‖ := by |
| @@ -442,11 +442,11 @@ theorem geometry_cost (clock : ActualSignedControl.PositiveScale Label) | ||
| 442 | 442 | have hcx := hcoord.trans (mul_le_mul_of_nonneg_left hc (zero_le_one.trans hU)) |
| 443 | 443 | have hpx := hpoint.trans (mul_le_mul_of_nonneg_left hp (zero_le_one.trans hU)) |
| 444 | 444 | have hB : 1 ≤ U*CommonCoverClass.argumentCost g := by |
| 445 | - nlinarith [mul_nonneg (sub_nonneg.mpr hU) (sub_nonneg.mpr hcost)] | |
| 445 | + linarith [mul_nonneg (sub_nonneg.mpr hU) (sub_nonneg.mpr hcost)] | |
| 446 | 446 | change 1+‖G.coordinateLinear‖+‖G.pointLinear‖*(1+‖G.coordinateLinear‖) ≤ _ |
| 447 | 447 | have hproduct := mul_le_mul hpx (add_le_add_right hcx 1) |
| 448 | 448 | (by positivity : 0 ≤ 1+‖G.coordinateLinear‖) (by positivity : 0 ≤ U*CommonCoverClass.argumentCost g) |
| 449 | - nlinarith [sq_nonneg (U*CommonCoverClass.argumentCost g-1)] | |
| 449 | + linarith [sq_nonneg (U*CommonCoverClass.argumentCost g-1)] | |
| 450 | 450 | |
| 451 | 451 | theorem geometry_cost_uniform (s : StripData P) (clock : ActualSignedControl.PositiveScale Label) |
| 452 | 452 | (reference : Label → ℕ → Geometry) (gap : Label → ℕ → ℕ) (budget : ℕ) |
| @@ -467,7 +467,7 @@ theorem geometry_cost_constant_one (clock : ActualSignedControl.PositiveScale La | ||
| 467 | 467 | (budget : ℕ) {C : ℝ} (hC : 1 ≤ C) : 1 ≤ 4*(geometryFactor clock budget)^2*C^2 := by |
| 468 | 468 | have hU := one_le_pow₀ (n := 2) (geometryFactor_one clock budget) |
| 469 | 469 | have hC2 := one_le_pow₀ (n := 2) hC |
| 470 | - nlinarith [mul_nonneg (sub_nonneg.mpr hU) (sub_nonneg.mpr hC2)] | |
| 470 | + linarith [mul_nonneg (sub_nonneg.mpr hU) (sub_nonneg.mpr hC2)] | |
| 471 | 471 | |
| 472 | 472 | /-! ## The actual active-window parameter and frequency scales -/ |
| 473 | 473 | |
| @@ -536,7 +536,7 @@ theorem slotCost_one (clock : ActualSignedControl.PositiveScale Label) (budget : | ||
| 536 | 536 | 1 ≤ slotCost hdet clock budget := |
| 537 | 537 | geometry_cost_constant_one clock budget (by |
| 538 | 538 | have hc := CommonCoverClass.bandArgumentCost_one_le (TorusAverages.slotChart vr vt hdet) 0 |
| 539 | - nlinarith) | |
| 539 | + linarith) | |
| 540 | 540 | |
| 541 | 541 | theorem slot_geometry_cost (s : StripData P) (hh : 0 ≤ h) |
| 542 | 542 | (clock : ActualSignedControl.PositiveScale Label) (gap : Label → ℕ → ℕ) (budget : ℕ) |
| @@ -552,7 +552,7 @@ theorem slot_geometry_cost (s : StripData P) (hh : 0 ≤ h) | ||
| 552 | 552 | (zero_le_one.trans (CommonCoverClass.bandArgumentCost_one_le (TorusAverages.slotChart vr vt hdet) 0)) |
| 553 | 553 | convert! hm using 1 |
| 554 | 554 | ring |
| 555 | - simpa only [slotCost, Nat.mul_one] using geometry_cost_uniform s clock | |
| 555 | + simpa only [slotCost] using geometry_cost_uniform s clock | |
| 556 | 556 | (slotReference sys hdet slot) gap budget hgap hr |
| 557 | 557 | |
| 558 | 558 | theorem actualSlot_tangent_eq |
+18 −0 routes/s2-ns-scaled-1/README.md added View file
| @@ -0,0 +1,18 @@ | ||
| 1 | +--- | |
| 2 | +issue: 11 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | + | |
| 6 | +# s2-ns-scaled-1 | |
| 7 | + | |
| 8 | +S-2 on the family `NavierStokes/Scaled*`: make a slow file cheaper to elaborate. This unit carries the edits of Treant's `speedup_trials` stage (TitiSkywalker/NavierStokesAndEuler, the run of 2026-12-03 at upstream `f9e8bc5`) onto main and re-counts them file by file. | |
| 9 | + | |
| 10 | +`NavierStokes/ScaledActualParticularControl.lean` is kept: 37.42 G → 30.51 G instructions retired (−18.5%), from six tactic-line edits inside proofs — four `nlinarith` steps become `linarith`, one `dsimp` list drops `H`, one `simpa only` list drops `Nat.mul_one`. Statements, imports and docstrings are untouched, and there is no `maxHeartbeats`. | |
| 11 | + | |
| 12 | +`NavierStokes/ScaledParticularFrameJets.lean` is left out, though the unit measured it at −1.6% (16.98 G → 16.71 G, all its edits together). Its first edit rewrites the statement line of `frame_normal_jets` (`:= by exact …` → `:= …`), which is not inside the proof and leaves one long, uneven declaration beside its neighbours; so the whole file stays as main has it, and its row is not in the pull request. | |
| 13 | + | |
| 14 | +Measurement: instructions retired in user space by `lean -j1 -DElab.async=false …` under `perf stat -e instructions:u`, before and after on one machine; the pull request gives the method and the agreement between runs. Nothing was measured here. | |
| 15 | + | |
| 16 | +## Next | |
| 17 | + | |
| 18 | +Push, let `challenge` and `build` run on the head, and answer the maintainer's review. | |