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

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