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

S-1: deleting what nothing uses — the plan
This page is the plan for issue #10 (S-1) on this project: which files and declarations are deleted, why each of them may go, in what order, and how anyone's agent can take a unit of it. It changes no statement and no proof that stays.
Where the list comes from
-
Treant's run of 2026-12-03. Treant is a tool by liguchan that optimises Lean projects. On a fork of the upstream at
f9e8bc5(github.com/TitiSkywalker/NavierStokesAndEuler, one branch a stage) it deleted the modules no root reaches and the theorems and definitions that nothing reachable from the four Comparator theorems uses, rebuilt from scratch, and found the four statements byte-equal and the axioms unchanged. Its report gives the cost of the tree in instructions: 67.11 T before, 55.31 T after those two steps, on its own machine and its own fork. -
This project's rule. That run kept what the four Comparator theorems need. This project also keeps the paper's results (AGENTS.md, "Changes we don't want"; issue #10). So the list was read again on this main (
5baf4fe) against the declaration graph of the compiled tree (tools/Graph.leanexports it: every constant, its file and lines, and the constants it refers to). A declaration that Treant deleted stays when- a declaration of
NavierStokes/PeriodicPaperTheorem.lean,NavierStokes/LocalAngularGrowth.lean,NavierStokes/LocalPaperHeat.lean,NavierStokes/PaperAdditionalResults.lean(the four filesNavierStokes/PaperResults.leanimports),NavierStokes/R3/Theorem.leanorNavierStokes/LocalPaperTheorem.leanrefers to it, directly or through others; - its own docstring cites the paper (a numbered lemma, theorem, proposition, corollary, section or equation), or such a declaration refers to it;
- the text of a declaration that stays names it (a
simp [...]list, for instance), though no term uses it.
640 of Treant's deletions stay for these reasons: kept.md lists them.
- a declaration of
What goes
| pull requests | what | lines | |
|---|---|---|---|
| files nothing imports | 17 | 61 files | 18,705 |
| declarations nothing uses | 509 | 10,613 declarations | 132,957 |
The files: nothing reachable from NavierStokes/ComparatorSolution.lean, NavierStokes/PaperResults.lean or
Euler/Solution.lean imports them. The declarations: theorems and definitions (and the few abbreviations and structures
Treant's run deleted with them) that no declaration that stays refers to or names.
The order: waves
A declaration can be deleted only when everything that used it is gone. So the work goes in waves. In a wave, each family of files (the first word of the file names, as in the other issues here) has one pull request, which deletes every declaration of that family whose users are already gone or go in the same pull request. The pull requests of one wave do not depend on one another: they can be checked at the same time and merged in any order. The next wave starts when the wave before it is in.
| wave | pull requests | declarations (wave 0: files) | lines |
|---|---|---|---|
| 0 | 17 | 61 | 18,705 |
| 1 | 230 | 8,265 | 99,850 |
| 2 | 150 | 1,536 | 21,606 |
| 3 | 70 | 571 | 7,708 |
| 4 | 37 | 168 | 2,213 |
| 5 | 11 | 39 | 642 |
| 6 | 3 | 6 | 78 |
| 7 | 1 | 1 | 61 |
| 8 | 1 | 1 | 50 |
| 9 | 1 | 9 | 268 |
| 10 | 3 | 14 | 465 |
| 11 | 2 | 3 | 16 |
units.md lists every unit with its family, its wave and its size. The cut of each unit (the exact lines) is
made by tools/planner.py and tools/units.py from the graph; a unit's pull request lists the declarations it deletes.
Taking a unit
Units are opened by agents of the people who prepared this plan (liguchan and bo), a session a unit, and anyone else's
agent may take one too: pick a unit of the wave in hand that the board shows free, claim it as AGENTS.md says with a
branch named after the unit (s1-euler-all-1), delete what the unit lists, run python3 checks/challenge.py ., push and
open the pull request with Part of #10. The build check says whether it compiles. If you find that something on the
list must stay (the paper states it, or something still names it), leave it out and say so: that is a result too.
What is measured
The site's challenge check counts files and lines on every push. The cost of the whole tree is counted the way
Treant's reports count it: every module elaborated once more, alone, on one thread and synchronously, under
perf stat -e instructions:u (tools/meter.py). On this main at 5baf4fe that is 65.86 T instructions over 2,643
modules; three modules do not elaborate alone and are left out everywhere (Euler.PacketJoinedResidualFields,
Euler.PacketResidualTailActual, Euler.PacketSourceResidualFields), the same three Treant's report leaves out. The
count is taken again after each wave, on main as it then stands.
What this does not show
- That what remains is all needed. Declarations of other kinds that nothing reaches (instances, notations, structures)
are not touched here, and what a
simplist names without using stays until the list is trimmed (S-2). - Anything about the mathematics, or about the Navier–Stokes problem: the four theorems, their statements and their axioms are as they were; Comparator's replay on main says so after the merges.
- That a build is faster by the wall clock on any given machine: the measure is instructions, not seconds.