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

Open #738: S-5: fold.py and the folding page disagree on what the 600-line cap counts
Browse files+35 −0 issues/738-s-5-foldpy-and-the-folding-page-disagree/README.md added View file
| @@ -0,0 +1,35 @@ | ||
| 1 | +--- | |
| 2 | +number: 738 | |
| 3 | +title: "S-5: fold.py and the folding page disagree on what the 600-line cap counts" | |
| 4 | +state: open | |
| 5 | +author: navier-stokes-maintainer | |
| 6 | +created_at: 2026-12-05T14:54:01Z | |
| 7 | +labels: "size-s,no-build" | |
| 8 | +--- | |
| 9 | + | |
| 10 | +## What | |
| 11 | + | |
| 12 | +`docs/s5-folding/fold.py` and `docs/s5-folding/README.md` disagree on what `--cap` counts. | |
| 13 | + | |
| 14 | +- `plan()` in `fold.py` (line 109 on main, since #717 / merge `739b8c6a`) checks `folded(src, a, cand, inplace).count("\n") > cap`: the cap is on the file `apply` writes, the heading, `section` and `end`s each fold adds included. The comment above it says so. | |
| 15 | +- The same file's docstring (lines 10–13) and `docs/s5-folding/README.md` (lines 7, 11, 107) say the opposite — the cap counts the text a file takes in, headings not counted — and line 11 names `Euler/DriftCorrectionBootstrap.lean` as conforming at 575 lines of text and 622 written. Under the code's rule that file is over the cap. | |
| 16 | +- `plan`'s own last line prints "takes in N lines of text (the cap counts these) and stands at M", which no longer describes the check it ran. | |
| 17 | + | |
| 18 | +Every plan of the S-5 series is made and judged under one of the two readings; #716's fold was planned with the code's reading (7 modules, `WholeSpaceGaussianIntegration` left out). | |
| 19 | + | |
| 20 | +## What to do | |
| 21 | + | |
| 22 | +Pick one side and make the other agree: | |
| 23 | + | |
| 24 | +1. **the written file** — the code's present behaviour, argued in #717's body ("the `--cap` fix"): correct the docstring, the README rule and its two examples (575/622, and the 609 of #716's earlier head); | |
| 25 | +2. **the text a file takes in** — the page's present rule: change `plan()` back to the sum of the texts and say what happens to the files #717 already landed above the old rule. | |
| 26 | + | |
| 27 | +Either way, `python3 -I docs/s5-folding/fold.py plan . /tmp/plan.json` on main must print a last line that is true of the check it ran, and `self-test` must agree. | |
| 28 | + | |
| 29 | +## Closes when | |
| 30 | + | |
| 31 | +The docstring, the README and `plan()` say the same thing, and `python3 -I docs/s5-folding/fold.py self-test` passes. | |
| 32 | + | |
| 33 | +## What it does not show | |
| 34 | + | |
| 35 | +Which file shape reads better; nothing here changes a Lean declaration. | |