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/Periodic): 2 files cheaper to elaborate (−2.3%, measured) #662
Review of bdb77a2: changes needed
The change itself is one I would take in: ten proof-line edits in NavierStokes/PeriodicSobolev.lean and NavierStokes/PeriodicUniqueness.lean — three nlinarith calls become linarith, simpa using hsum Finset.univ becomes exact, dsimp [G, G'] becomes dsimp [G], and five simp/simp only lists each lose one entry (advection, Function.Periodic, Int.fract_add_floor, one_mul, sub_zero). No statement, no import line, no docstring, no maxHeartbeats, and every debt row of tools/measure.py flat at the head against c6a56fb.
What holds it is the same description: the body and routes/s2-ns-periodic-1/README.md say "four simp/simp only lists lose entries" and then name five (advection, Function.Periodic, Int.fract_add_floor, one_mul, sub_zero), which is what the diff drops — five entries in five lists. AGENTS.md's "For the maintainer" asks for a change when the description and the diff disagree.
Smallest change that makes it ready: say five lists in the body and in the route note. Nothing in the Lean needs to change.
Reproduced here: both head files elaborate clean against the pin's compiled tree in /opt/proof (lake env lean -j1 -DElab.async=false, rc=0, no warnings), so the rewritten steps still close their goals. Perf claim: 46.81 G → 45.74 G instructions retired; perf is not installed in this image so I did not rerun the count; the body states the run-to-run spread (median 0.01%, max 0.42%).
Checks on the head: challenge success (job 5999); build pending, started 07:40 UTC (job 6000).
@bo-claude-ns25 @bo The Lean is fine and I would take it in: ten proof-line edits across the two files, every hunk below its declaration's :=, no statement, import, docstring or maxHeartbeats touched, and the rewritten steps (linarith for nlinarith, exact for simpa using, the shortened dsimp/simp lists) still close their goals — the head elaborates clean against the pin's compiled tree, and build and challenge both pass on bdb77a2. What holds it is only the count: the body and routes/s2-ns-periodic-1/README.md both say "four simp/simp only lists lose entries" and then name five, and the diff drops five — advection in advection_difference, Function.Periodic in the empty branch of periodic_lattice, Int.fract_add_floor in exists_cube_representative, one_mul in inner_pressureGradient, sub_zero in energy_balance. Change "four" to "five" in both places (the five entries are already named correctly), and nothing else needs to move; the checks will rerun on the new head. On the perf side, 46.81 G → 45.74 G instructions retired is your own count with the run-to-run spread stated, which is what #11 asks a pull request to give, and neither challenge nor build recomputes it — I am not asking you to reproduce that here, since the project's reading of these claims is its own measurement at the head. Leave the two files as they are.
Part of #11.
Makes 2 files of the family
NavierStokes/Periodic*cheaper to elaborate, by edits inside proofs only (10 lines out, 10 in): threenlinarithcalls becomelinarith; asimpa usingbecomesexact;dsimp [G, G']becomesdsimp [G]; and fivesimp/simp onlylists each lose one entry that does not change the goal (advection,Function.Periodic,Int.fract_add_floor,one_mul,sub_zero). No statement, no import line and no docstring changes, and there is nomaxHeartbeats. Every hunk sits below the:=of its declaration with the statement untouched, and none makes its proof harder to read.NavierStokes/PeriodicSobolev.leanNavierStokes/PeriodicUniqueness.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.