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

perf(Euler/Heat): 2 files cheaper to elaborate (−22.0%, measured) #488
Open
+1 −1 Euler/HeatGradientEnergy.lean View file
| @@ -105,7 +105,7 @@ theorem heat_gradient_energy_bound (u : ℝ → SobolevSpace period 3) | ||
| 105 | 105 | rw [Real.norm_eq_abs] at hb |
| 106 | 106 | have hc := neg_le_abs ⟪laplacianEvaluation period 3 (by norm_num) (u t), value period f⟫_ℝ |
| 107 | 107 | have hy := viscosity_young ν ‖laplacianEvaluation period 3 (by norm_num) (u t)‖ ‖value period f‖ hν |
| 108 | - nlinarith | |
| 108 | + linarith | |
| 109 | 109 | |
| 110 | 110 | |
| 111 | 111 | end EulerHeatGradientEnergy |
+1 −1 Euler/HeatMaximalEstimate.lean View file
| @@ -94,6 +94,6 @@ theorem heat_time_H2_bound (T : ℝ) (hT : 0 ≤ T) (ν : ℝ) (hν : 0 < ν) | ||
| 94 | 94 | have hb2 := time_H2_elliptic_bound period T hT u |
| 95 | 95 | change _ ≤ T*‖low‖^2 + L at hb2 |
| 96 | 96 | change _ ≤ (T+4*ν⁻¹)*‖low‖^2 + (ν⁻¹)^2*‖pathLp T hT source‖^2 |
| 97 | - nlinarith | |
| 97 | + linarith | |
| 98 | 98 | |
| 99 | 99 | end EulerHeatMaximalEstimate |
+26 −0 docs/build-profile.md added View file
| @@ -0,0 +1,26 @@ | ||
| 1 | +# Build profile | |
| 2 | + | |
| 3 | +Where the cost of elaborating the tree goes, at main `57f8d38`. 2,587 Lean files were counted; together they take 56.82 T instructions (T is 10¹², G is 10⁹). | |
| 4 | + | |
| 5 | +## The ten costliest files | |
| 6 | + | |
| 7 | +| | file | instructions | share of the tree | | |
| 8 | +|---|---|---|---| | |
| 9 | +| 1 | `Euler/EulerProof.lean` | 1,413.80 G | 2.49% | | |
| 10 | +| 2 | `NavierStokes/PositiveAxisSystem.lean` | 327.00 G | 0.58% | | |
| 11 | +| 3 | `NavierStokes/CorrectionInitialization.lean` | 296.02 G | 0.52% | | |
| 12 | +| 4 | `NavierStokes/ActualSignedPhysicalBinding.lean` | 276.77 G | 0.49% | | |
| 13 | +| 5 | `NavierStokes/ActualParticularDynamics.lean` | 254.25 G | 0.45% | | |
| 14 | +| 6 | `Euler/BoundedFieldCalculus.lean` | 237.96 G | 0.42% | | |
| 15 | +| 7 | `NavierStokes/ActualCandidateConstruction.lean` | 229.81 G | 0.40% | | |
| 16 | +| 8 | `NavierStokes/ActivationCone.lean` | 200.30 G | 0.35% | | |
| 17 | +| 9 | `NavierStokes/PulseCone.lean` | 199.81 G | 0.35% | | |
| 18 | +| 10 | `NavierStokes/ShapedWaitBounds.lean` | 187.93 G | 0.33% | | |
| 19 | + | |
| 20 | +The ten are 6.4% of the whole and the hundred costliest 21.9%: the profile is flat, as Lean Pool found on its copy. A speed-up of one file is a small part of the build. | |
| 21 | + | |
| 22 | +## How it is counted | |
| 23 | + | |
| 24 | +Each file is elaborated alone, on one thread, with synchronous elaboration (`lean -j1 -DElab.async=false` and the lakefile's options) against the compiled tree, under `perf stat -e instructions:u`. The count is instructions retired in user space. Two runs of it on 665 unchanged files, an hour apart on a machine doing other work, differed by 0.01% at the median and by 0.42% at most, so two trees can be compared without an idle machine. It is not a time, and it leaves out what `lake` itself does. | |
| 25 | + | |
| 26 | +What this page does not show: the wall-clock time of a build on your machine, or which files hold up a parallel build (that depends on the import graph). | |
+18 −0 routes/s2-euler-heat-1/README.md added View file
| @@ -0,0 +1,18 @@ | ||
| 1 | +--- | |
| 2 | +issue: 11 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s2-euler-heat-1 | |
| 6 | + | |
| 7 | +S-2, the `Euler/Heat*` family: `Euler/HeatGradientEnergy.lean` and `Euler/HeatMaximalEstimate.lean`. | |
| 8 | +Both files were among the slowest to elaborate in the tree. In each, the closing `nlinarith` of a | |
| 9 | +theorem's proof becomes `linarith`; nothing else changes — no statement, import, docstring or | |
| 10 | +`maxHeartbeats`. The edits are Treant's `speedup_trials` edits from upstream `f9e8bc5` | |
| 11 | +(TitiSkywalker/NavierStokesAndEuler, run of 2026-12-03), carried onto main `d956c7c` and counted | |
| 12 | +there. `docs/build-profile.md` holds S-2's list of the ten costliest files. | |
| 13 | + | |
| 14 | +The measured cost, and how it was counted, is in the pull request's description. | |
| 15 | + | |
| 16 | +## Next | |
| 17 | + | |
| 18 | +Push, let the `challenge` and `build` checks run, and reply to the maintainer's review. | |