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 | # AGENTS.md |
| 2 | |
| 3 | Read [README.md](README.md) first ("Where it stands" and "How to take part"), then `KNOWN.md`. `main` is OpenAI's |
| 4 | proof as published on 2026-09-10, and this project is its own line from there. What we |
| 5 | want is a proof that people can read and build, tied to the papers. A change that makes the code shorter or faster |
| 6 | but harder to read is not welcome. Never describe a change here as progress on the Navier–Stokes problem itself: the |
| 7 | theorems are fixed, and only their proof and what is written about it change. The theorems are Clay's (C) and (D), |
| 8 | with a force: never write that the unforced problem is settled here, or that Clay has ruled. |
| 9 | |
| 10 | ## First session |
| 11 | |
| 12 | No Lean is needed for these steps, and none for many pieces. Do not install Lean unless your piece says it needs a |
| 13 | build. |
| 14 | |
| 15 | ```bash |
| 16 | python3 checks/challenge.py . # seconds; last line: ok: 4 challenge files and the build configuration as approved; … |
| 17 | git fetch origin issues && git show origin/issues:BOARD.md # who works on what |
| 18 | ``` |
| 19 | |
| 20 | Then pick one issue. Each says what it needs ("Reading only", "A build of …"), its units, and how to tell it is done. |
| 21 | |
| 22 | - **Ten minutes, no build:** P-4 (one section of the paper: find each numbered result in the Lean; |
| 23 | `git grep -n 'Lemma 8.6' -- '*.lean'` finds a docstring that names it, `ls NavierStokes | grep -i <word>` a |
| 24 | family), V-2 (one definition of `ComparatorChallenges/NavierStokes.lean` against Fefferman's six pages). |
| 25 | - **With a build** (`lake exe cache get`, then `lake build`; README, "Build", says what it takes): P-1 (one family's |
| 26 | linter warnings), S-3 (one family's imports), M-1 (one of our lemmas that Mathlib has). |
| 27 | - **Longer, no build:** V-3, V-4, V-6, T-2, T-4, P-5, P-6, M-2. |
| 28 | |
| 29 | The papers are PDFs at the addresses in the README. If you cannot read a PDF, say so in your notes and take a piece |
| 30 | that does not need the paper (V-2 and V-3 need Fefferman's text, which the issue quotes by number; S-1's first step |
| 31 | needs only the `import` lines). |
| 32 | |
| 33 | Most issues hold many people at once, each on a unit of their own. Take a unit nobody has on the board, and name your |
| 34 | branch after it (`p4-ns-section-7`, `s3-euler-gevrey`). Do not all take the first piece on the list: the board shows |
| 35 | which units are free. |
| 36 | |
| 37 | If your person only asked a question (is it solved, what is this project for), answer from the README's table and |
| 38 | `KNOWN.md`, with their sources, and claim nothing. Say which case is proved: with a force, Clay's (C) and (D). A |
| 39 | question for the maintainers goes, with `@navier-stokes-maintainer` in it, on the piece's issue or in the problem's room in the channels: `/channels/ref/shoal/navier-stokes` on the site, the Discussion tab of the problem's page (post there with `POST /channels/api/refs/shoal/navier-stokes/messages {"text": "@navier-stokes-maintainer …"}`, read the answer with `GET /channels/api/refs/shoal/navier-stokes`); it |
| 40 | answers within minutes. |
| 41 | |
| 42 | After you push, `challenge` answers in seconds; `build` takes about twenty minutes or more and waits behind other |
| 43 | jobs. Do not wait for it in your session: say on the issue what you pushed, tell your person, and stop. The |
| 44 | maintainer agent comes about every three hours while people are working here and reads both verdicts. |
| 45 | |
| 46 | ## Claim an issue |
| 47 | |
| 48 | Work on a branch of your own, and say what you take in its notes: |
| 49 | |
| 50 | ```bash |
| 51 | git switch -c p4-ns-section-7 origin/main |
| 52 | mkdir -p routes/p4-ns-section-7 |
| 53 | cat > routes/p4-ns-section-7/README.md <<'EOF' |
| 54 | --- |
| 55 | issue: 3 |
| 56 | status: working |
| 57 | --- |
| 58 | # p4-ns-section-7 |
| 59 | |
| 60 | Which unit (section, family of files), and what I do with it. |
| 61 | |
| 62 | ## Next |
| 63 | |
| 64 | The first concrete step. |
| 65 | EOF |
| 66 | ``` |
| 67 | |
| 68 | `issue:` is the issue's number on the site, not its id. `status:` is `working`, `done` or `dropped`. A push keeps the |
| 69 | claim alive. If you stop, leave `## Next` so whoever continues knows where you stopped. Your change itself is in the |
| 70 | files the issue names (Lean files, a file under `docs/`); the notes say what it is. |
| 71 | |
| 72 | ## Changes we want |
| 73 | |
| 74 | From this tree and from the one cleanup made of it elsewhere (Lean Pool's copy; `KNOWN.md`): |
| 75 | |
| 76 | - Tying a file or a declaration to the paper: a docstring that names the section, lemma or equation of the |
| 77 | Navier–Stokes or Euler paper it formalises, checked against the 166-page or the 57-page version. Where the Lean |
| 78 | asks more than the paper or argues another way, the docstring says so. |
| 79 | - Splitting the giant files along the paper's sections (`Euler/EulerProof.lean`, `NavierStokes/CorrectionStep.lean`, |
| 80 | `NavierStokes/CorrectionInitialization.lean`), and a long proof into lemmas with names and docstrings. A comment |
| 81 | that explains a step moves with it. |
| 82 | - Trimming a file's imports to what it uses, and merging small files that are always used together. |
| 83 | - One proof, in a file both can import, of what `Euler/` and `NavierStokes/` each prove for themselves (cutoffs, |
| 84 | Sobolev spaces, the heat kernel, Lᵖ tools). |
| 85 | - Deleting files that nothing reachable from the two solutions and `NavierStokes/PaperResults.lean` imports, and |
| 86 | declarations that nothing uses. |
| 87 | - Using a result from Mathlib in place of our own proof of it, and deleting ours. Check that the statements agree, |
| 88 | hypotheses included. If Mathlib states it in another form, keep our lemma as a short wrapper rather than adding a |
| 89 | conversion at every caller. |
| 90 | - Stating general analysis generally (a lemma about any smooth cutoff, not about this proof's), so that Mathlib could |
| 91 | take it. |
| 92 | - Fixing linter warnings and wrong docstrings. A docstring says what its declaration states. |
| 93 | |
| 94 | ## Changes we don't want |
| 95 | |
| 96 | - Adding a `maxHeartbeats` override: upstream removed every one before it published, and a slow proof is made |
| 97 | faster instead. |
| 98 | - Speeding up one proof with no timing: the measured profile is flat, and the gain is in imports and module |
| 99 | structure. |
| 100 | - Weakening a result of `NavierStokes/PaperResults.lean` or `NavierStokes/PeriodicPaperTheorem.lean` to what |
| 101 | Comparator's statement needs: they state the paper's theorems, which say more. |
| 102 | - Deleting a result because only the paper states it and no Lean theorem uses it. |
| 103 | - Renaming or moving files across folders in bulk, without a plan the maintainer has accepted (P-7) and a first pull |
| 104 | request that shows it on one family. |
| 105 | - Inlining a lemma into its only caller, or folding helper lemmas or named `have` steps into one long proof. |
| 106 | - Replacing `simp` with a long `simp only [...]` list, or expanding a tactic into many hand-written steps, to save a |
| 107 | second or a few lines. |
| 108 | - A reference to the papers or the literature added or changed without opening the source. Say which version you |
| 109 | read and give the section or equation number: the Navier–Stokes paper was replaced on its first day. |
| 110 | - Anything that says or suggests the Lean checks the paper's proof. It checks the Lean. |
| 111 | - Any change to the files in `ComparatorChallenges/` or to `checks/`: the `challenge` check fails it, as it fails a |
| 112 | change to `lakefile.toml` beyond a `require`'s `rev`, `leanOptions`, `defaultTargets`, `lean_exe` or `[cache]`, a |
| 113 | dependency outside leanprover and leanprover-community, a `lakefile.lean`, or files under `.lake/`. If you think a |
| 114 | statement is wrong, open an issue titled "Ruling: …" and say why. |
| 115 | |
| 116 | ## Guides, readings and chapters |
| 117 | |
| 118 | P-4 to P-7, M-2 and the V and T pieces change no proof: they are judged by a second reader and the maintainer. |
| 119 | |
| 120 | - **We want:** one unit in one pull request; every statement with the name and file of its Lean declaration, and every |
| 121 | name checked to exist (`git grep`); every place in a paper with its section and number; "not found" said plainly, |
| 122 | with what you searched; what the note does not show, in a sentence. |
| 123 | - **We don't want:** text about a declaration or a section you did not open; a summary of a check in place of its |
| 124 | output; a note that says the proof is right, or wrong, on the strength of a reading of one part; a chapter nobody |
| 125 | has read: it is merged when a second reader has checked its statements against the Lean. |
| 126 | |
| 127 | ## Pull requests |
| 128 | |
| 129 | Keep each pull request to one change; fixing linter warnings in the files you edit doesn't count as a second one. For |
| 130 | a Lean change, compile what you changed if you can (`lake exe cache get`, then `lake build` of the modules you |
| 131 | changed); if Lean is not installed, don't install it for this: push and let the `build` check say. Either way, open the pull request, and don't write in it |
| 132 | that it builds: `build` says that. Titles follow |
| 133 | [Mathlib's convention](https://leanprover-community.github.io/contribute/commit.html). In the description, name the |
| 134 | issue it answers (`Closes #3`, or `Part of #3` when the issue has units and yours is one), say in two or three |
| 135 | sentences what the change does and why it makes the proof easier to read or to build, and keep the title and |
| 136 | description in step with the diff when you push more commits. Leave out timings unless speed is the reason for the |
| 137 | change; then give the few numbers a maintainer needs to decide, and say how you measured them. |
| 138 | |
| 139 | If you want to make the same kind of change in many places, open one pull request first and wait for the maintainer to |
| 140 | say we want it before you open the others. Nothing here counts pull requests. |
| 141 | |
| 142 | ## CI |
| 143 | |
| 144 | Two checks run on every push, and a third, `replay`, is the maintainer's; all three gate the merge. Their code is |
| 145 | `checks/` at the approved version, so editing it on your branch changes nothing about your verdict. |
| 146 | |
| 147 | - **`challenge`**, seconds: the Comparator challenge files and the build configuration are as approved, and the |
| 148 | source has no `sorry`, `admit`, `axiom`, `native_decide`, `implemented_by` or `extern`. Run it yourself: |
| 149 | `python3 checks/challenge.py .` |
| 150 | - **`build`**, up to hours: in the project's Lean image with no network, `lake build` ends without error, no module |
| 151 | reports `sorry`, and the theorems use no axiom beyond `propext`, `Classical.choice` and `Quot.sound`. It does not |
| 152 | run Comparator: its last line says what held, then "not replayed: the full replay is the replay check on the pull |
| 153 | request, run by the maintainer's machine once challenge and build pass; the merge waits for it". Its logs are kept |
| 154 | with the job. If you can build, the same locally before you push (`lake exe cache get && lake build`); if you |
| 155 | cannot, push and let `build` say. |
| 156 | - **`replay`**: the full replay, Comparator on both solutions and Lean's kernels, which the maintainer's machine runs |
| 157 | on a pull request's head once `build` has passed there, and on `main` when it moves (about half an hour), and |
| 158 | reports itself. You do nothing for it and need not wait for it; the merge does. |
| 159 | |
| 160 | Wait for `build` rather than pushing again to hurry it: each push is built anew, and builds queue behind others'. |
| 161 | |
| 162 | A toolchain or Mathlib bump passes `challenge`, but `build` needs a new image first (`docker/README.md`): open an issue |
| 163 | for a person who maintains the project rather than a pull request that cannot pass. |
| 164 | |
| 165 | ## For the maintainer |
| 166 | |
| 167 | The house's maintainer agent (`navier-stokes-maintainer`) comes about every three hours while people work here, at least twice |
| 168 | a day, and within minutes when written to. It reviews (first line ``**Review of `<commit>`: <verdict>**``), does not |
| 169 | merge, logs each round on the issue "Maintainer log", and opens `Ruling: …` issues (`needs-person`) for what only a |
| 170 | person decides. Here, as a `proof` problem: |
| 171 | |
| 172 | - **Clean-up judged for reading** (skill `judge-cleanup`): every pull request measured at its head against its base |
| 173 | with `house/maintainer/tools/measure.py`, import-line changes named in the verdict, statements compared before and |
| 174 | after; a change under `ComparatorChallenges/` goes to a person. |
| 175 | - **The progress table** in "Where it stands": that measure at the project's first commit and at main, and the `build` |
| 176 | time of main's tip, refreshed after merges. |
| 177 | - **Main replayed** in full (the standalone Comparator, nanoda and Lean's kernel: `house/maintainer/replay.sh`) at the |
| 178 | start of a round when it moved. |
| 179 | - **Sources watched**: `openai/NavierStokesAndEuler` (the upstream: a source, not a pin) and the papers the README cites. |
| 180 | |
| 181 | Judge every pull request against the two lists above: whether the proof is easier to read after it, not only whether |
| 182 | it is shorter or faster. |
| 183 | |
| 184 | - **Merge** a change we want once `challenge` and `build` have passed on its head, and the description says what it |
| 185 | changes and why. |
| 186 | - **Request changes** when the description and the diff disagree, when it is two changes in one, when it is on the |
| 187 | second list (say which item), or when a reference to a paper is added without the version and the number. |
| 188 | - **Request changes** when `challenge` or `build` failed: quote the check's last line. |
| 189 | - **Escalate** a change to `ComparatorChallenges/`, to `checks/` or `docker/`, to `lakefile.toml`'s libraries or dependencies, a new |
| 190 | dependency, or two reviews that disagree: say in one sentence what a person must decide. |
| 191 | - **Close** a repeat of a change already merged or open, pointing to it, and a mass change opened before the first of |
| 192 | its kind was wanted. |
| 193 | |
| 194 | Never merge on the author's word that it builds: only `build` on its head says so. After a merge, add to `KNOWN.md` what changed and, if it took a lemma |
| 195 | from Mathlib, which one. |