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

Comparing changes
Choose two branches to see what changed, then open a pull request to bring the work across.
Able to merge. These branches can be merged automatically.
A pull request is already open: #538 perf(Euler/Drift): 3 files cheaper to elaborate (−12.5%, measured)
1 commit
+1 −1 Euler/DriftCorrectionForcing.lean View file
| @@ -115,7 +115,7 @@ theorem correctionForcing_bound {s : ℕ} (hs : 6 ≤ s) {A : SmoothCoefficient | ||
| 115 | 115 | change externalPressureNorm period K N ρ p0 + basePressureNorm period K0 N hN ρ p0 ≤ _ at hp0 |
| 116 | 116 | change externalPressureNorm period K N ρ p1 ≤ _ at hp1e |
| 117 | 117 | change basePressureNorm period K0 N hN ρ p1 ≤ _ at hp1b |
| 118 | - nlinarith only [h, hp0, hp1e, hp1b] | |
| 118 | + linarith only [h, hp0, hp1e, hp1b] | |
| 119 | 119 | |
| 120 | 120 | /-- Uniform fixed-base constants preserve the separate drift norm. -/ |
| 121 | 121 | theorem correctionForcing_uniform_bound {s : ℕ} (hs : 6 ≤ s) {A : SmoothCoefficient period} |
+1 −1 Euler/DriftMetricForcing.lean View file
| @@ -81,6 +81,6 @@ theorem correctionForcing_metric {s : ℕ} (hs : 6 ≤ s) {A : SmoothCoefficient | ||
| 81 | 81 | |
| 82 | 82 | simpa only [EulerDriftEnergyConstants.forcingPolynomial, |
| 83 | 83 | EulerNonlinearEnergyConstants.linearCoefficient, EulerNonlinearEnergyConstants.quadraticCoefficient, |
| 84 | - EulerNonlinearEnergyConstants.lossCoefficient, mul_assoc, mul_left_comm, mul_comm] using hconv | |
| 84 | + EulerNonlinearEnergyConstants.lossCoefficient, mul_assoc, mul_left_comm] using hconv | |
| 85 | 85 | |
| 86 | 86 | end EulerDriftMetricForcing |
+2 −2 Euler/DriftNonlinearEstimate.lean View file
| @@ -22,7 +22,7 @@ theorem drift_loss_absorption (P M Rc ρ B E Y D : ℝ) | ||
| 22 | 22 | have hc : 4*(P*ρ⁻¹+8*Rc*M*P) ≤ ((4+32*M)*P)*(ρ⁻¹+Rc) := by |
| 23 | 23 | have h1 := mul_nonneg hP hRc |
| 24 | 24 | have h2 := mul_nonneg (mul_nonneg hM hP) (inv_nonneg.mpr hρ.le) |
| 25 | - nlinarith only [h1,h2] | |
| 25 | + linarith only [h1,h2] | |
| 26 | 26 | calc |
| 27 | 27 | _ ≤ (P*ρ⁻¹+8*Rc*M*P)*(4*(B+E))*Y := |
| 28 | 28 | mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_left hD ha) hY |
| @@ -87,7 +87,7 @@ theorem correctionForcing_polynomial {s : ℕ} (hs : 6 ≤ s) {A : SmoothCoeffic | ||
| 87 | 87 | 4*(B0+weightedNorm period 6 N ρ e) := by |
| 88 | 88 | have h := (weightedDriftNorm_add_le period 6 N (by omega : N+6 ≤ s+1) ρ hρ (velocityMap L) z e).trans |
| 89 | 89 | (add_le_add hb heD) |
| 90 | - nlinarith only [h,hB0] | |
| 90 | + linarith only [h,hB0] | |
| 91 | 91 | have hraw := EulerDriftCorrectionForcing.correctionForcing_uniform_bound period hs KG KG0 κ m c hc hpos |
| 92 | 92 | N hN ρ Rc M B hρ hRc hM hbase5 hbase6 hsmall hcoeff hG hG0 L hL (z+e) e f |
| 93 | 93 | have hloss : (productConstant period 3*ρ⁻¹+8*Rc*M*productConstant period 3)* |
+34 −0 routes/s2-euler-drift-1/README.md added View file
| @@ -0,0 +1,34 @@ | ||
| 1 | +--- | |
| 2 | +issue: 11 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s2-euler-drift-1 | |
| 6 | + | |
| 7 | +One unit of #11 (S-2, "Find the slowest files and make one faster"), wave 1, family `Euler/Drift*`: three files of | |
| 8 | +the family made cheaper to elaborate by edits inside proofs only (4 lines out, 4 in). | |
| 9 | + | |
| 10 | +- `Euler/DriftCorrectionForcing.lean`: `nlinarith only [h, hp0, hp1e, hp1b]` → `linarith only [...]`. | |
| 11 | +- `Euler/DriftNonlinearEstimate.lean`: the same `nlinarith` → `linarith`, twice, in `drift_loss_absorption` and | |
| 12 | + `correctionForcing_polynomial`. | |
| 13 | +- `Euler/DriftMetricForcing.lean`: `mul_comm` dropped from one `simpa only [...]` list in | |
| 14 | + `correctionForcing_metric`. | |
| 15 | + | |
| 16 | +No statement, no `import` line and no docstring is touched, and there is no `maxHeartbeats`. | |
| 17 | + | |
| 18 | +The unit comes from Treant's `speedup_trials` stage (TitiSkywalker/NavierStokesAndEuler, the run of 2026-12-03 at | |
| 19 | +upstream `f9e8bc5`), carried onto this project's main and counted there file by file. The counts in the pull | |
| 20 | +request (instructions retired in user space by `lean` on the one file alone, `lean -j1 -DElab.async=false` under | |
| 21 | +`perf stat -e instructions:u`, before and after, one machine, against main at `d956c7c`; G is 10⁹) are: | |
| 22 | + | |
| 23 | +- `Euler/DriftCorrectionForcing.lean`: 16.58 G → 14.41 G (−13.1%) | |
| 24 | +- `Euler/DriftMetricForcing.lean`: 15.51 G → 13.31 G (−14.2%) | |
| 25 | +- `Euler/DriftNonlinearEstimate.lean`: 16.71 G → 14.96 G (−10.4%) | |
| 26 | +- the three together: 48.80 G → 42.68 G (−12.5%) | |
| 27 | + | |
| 28 | +What it does not show: that the build as a whole is faster (the profile is flat), wall-clock time, or that these | |
| 29 | +proofs cannot be made cheaper still. | |
| 30 | + | |
| 31 | +## Next | |
| 32 | + | |
| 33 | +Push, open the pull request against `main`, let the `challenge` and `build` checks run, and reply to the | |
| 34 | +maintainer's review. | |