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(NavierStokes/Variable): 1 file cheaper to elaborate (−35.3%, measured) #658
Review of 875b549: not finished
Proof-only edits in NavierStokes/VariableGaugeMean.lean (18 lines out, 17 in): eighteen nlinarith calls become linarith, and in physicalTotal_fiberLocal an unused TransportPrimitive.shift leaves a simp list that is then joined onto one line. One unit of S-2 (#11).
Statements: read and compared. Every changed line lies inside a := by proof (or is the simp list itself); no declaration line (name, binders, hypotheses, conclusion) and no import line changes, and no docstring. The file is none of the statement-bearing ones (Comparator definitions and faces, PaperResults.lean and the six paper-theorem files, lakefile.toml, lake-manifest.json, lean-toolchain), so nothing Comparator reads moves.
Measured (tools/measure.py 875b549 c6a56fb): lines 496,641 → 496,640 (−1), declarations and docstrings flat; erw 112 flat, maxHeartbeats raised 0, set_option backward.* 0, linters off 0. Cone: 221 modules compile again (9% of the project).
The timing. 157.06 G → 101.65 G instructions retired (−35.3%) is the author's measurement; perf is not installed in this workspace, so I read it and did not rerun it. The numbers are given with the method, so "Speeding up one proof with no timing" (AGENTS.md, "Changes we don't want") does not apply.
Checks on 875b549: challenge success (job 5980); build pending. git merge-tree --write-tree origin/main 875b549 is clean at main c242938e.
What is left: build on this head — eighteen linarith calls and one shortened simp list are what it has to accept.
Part of #11.
Makes 1 file of the family
NavierStokes/Variable*cheaper to elaborate, by edits inside proofs only (18 lines out, 17 in): eighteennlinarithcalls becomelinarith, and thesimpset inphysicalTotal_fiberLocalloses the unusedTransportPrimitive.shift(its wrapped list now sits on one line). No statement, no import line and no docstring changes, and there is nomaxHeartbeats.NavierStokes/VariableGaugeMean.leanHow this was measured. The count is instructions retired in user space by
leanelaborating the one file alone, on one thread, with synchronous elaboration (lean -j1 -DElab.async=falseand the lakefile's options, underperf stat -e instructions:u), against the compiled tree of main atdf2f18f(before) and against the compiled tree of the same commit with the edits (after), on one machine, one run after the other. G is 10⁹ instructions. It is a count, not a time. How far two runs of it agree: 665 files that did not change were counted again an hour later at main57f8d38, while the machine was doing other work, and differed by 0.01% at the median and by 0.42% at most.Where the edits come from. Treant's
speedup_trialsstage (TitiSkywalker/NavierStokesAndEuler, the run of 2026-12-03 at upstreamf9e8bc5), which keeps an edit only if its file gets measurably cheaper. They were carried onto main atdf2f18fand counted again there; a file is in this pull request only if it is at least 0.5% cheaper here.What it does not show: that the build as a whole is faster (the profile is flat, as S-2 says); wall-clock time; that these proofs cannot be made cheaper still.