# Check it yourself: Navier-Stokes, the four alternatives and the erratum

This guide gives a written recipe for each claim in the book: the exact command, the exact condition to test, the answer to expect, and the standard public tool that checks it (Lean's build tool and axiom report, the nanoda kernel, or a few lines of code any reader can write). You can follow every step with public tools or code you write yourself. Each recipe also comes as a [step-by-step page](https://gocheckyourself.org/data/recipes/navier-stokes-REPLICATE.md) with commands for Windows, macOS and Linux and the exact output to expect. Lean names and commands are shown only in code blocks.

## What is claimed

The question these claims answer: under each reading of Clay's 2000 wording of the Navier-Stokes problem and of the erratum, which of the four alternatives (A) to (D) is answered yes or answered no, or is still open, and how was each answer checked?

The formal checks support these statements. The exact Lean text of each is in [the exact statements page](statement/STATEMENTS.md), and the declaration names are in [the certificate list](certificates/roots.json).

| Result | Statement, in plain words | Wording |
|---|---|---|
| The conditional zero-force drift | With no force and the fluid at rest, the printed periodic class allows both the resting solution and a uniformly sliding one. | printed |
| The bounded drift | The same, for an explicit slide with speed below 1 and bounded energy in each cell. | printed |
| The slide-through escape | For every viscosity and every admissible force (smooth, periodic, decaying as in (8), (9)), there is a smooth solution from rest that lasts forever, with periodic velocity and a pressure that tilts across space. | printed |
| The escape-pressure criterion | That escape solution's pressure is periodic exactly when the slide's acceleration equals the force's spatial mean at every time. | both |
| The failure of the escape under repeating pressure | Adding periodic pressure makes the universal escape statement of the slide-through escape false. | erratum |
| The forced breakdown with repeating pressure | For every viscosity there is an admissible force for which no smooth solution from rest, periodic in velocity and in pressure, lasts forever. | erratum |
| The three wider-class statements | The same conclusion, stated as the failure of universal existence over broader force classes (every smooth repeating force; the Formal Conjectures repeating force class with a zero start; and every repeating starting flow with that class, in the Formal Conjectures comparator vocabulary). | erratum |
| The whole-space breakdown | (C), all of space: for every viscosity there is a decaying starting flow and a decaying force for which no smooth solution with bounded energy exists for all time (Formal Conjectures comparator quantifiers). | printed; the erratum names equations (8) and (10) only, which (C) does not cite |
| The equality of the two force classes | The force class of the forced breakdown with repeating pressure and the force class of the slide-through escape are the same. | both |
| The equivalence of printed and periodic-pressure existence for (B) | For unforced (B) and every starting flow, a smooth solution with periodic velocity exists exactly when one with periodic velocity and periodic pressure exists. | both |

The forced breakdown with repeating pressure and its three wider-class statements rest on OpenAI's construction (NavierStokesAndEuler, Apache-2.0). The comparison of each statement with Clay's printed clauses and the erratum is in [the answer key](media/scoreboard.svg) and the chapters.

## Status

- **Lean-checked** (Lean 4.34.1, Mathlib d13f23b7, standard axioms only): the ten results above and the two bridges.
- **Files.** The Lean folder holds 903 files, of which 898 are Lean files (these include OpenAI's Apache-2.0 package, with 70 whole-space files and one overlay added for (C)); the other 5 are the build file, the lockfile, the toolchain file, the licence and the notice.
- **Also accepted by separately written kernels:**
  - The slide-through escape and the forced breakdown with repeating pressure: nanoda 0.4.26, in the two-root export of 54,859 declarations, and again as roots of the eleven-root export below. lean4lean 67f63b0c replayed the whole environment of the default target, which contains both (816,915 declarations, every imported Lean and Mathlib declaration included), into a fresh kernel, with no errors ([certificates/kernel-checks.txt](certificates/kernel-checks.txt)).
  - The three wider-class statements: nanoda 0.4.26, in an export of 91,636 declarations ("Checked 91636 declarations with no errors").
  - The whole-space breakdown (alternative (C), the whole-space comparator theorem): nanoda, in an export of 94,908 declarations; with the shipped build file, the added build target completed.
  - The additive shear (Theorems 63 and 64, file lean/AdditiveShear.lean, build target ReadingsAdditiveShear): nanoda, in an export of 91,756 declarations ("Checked 91756 declarations with no errors", [certificates/additive-shear-nanoda.txt](certificates/additive-shear-nanoda.txt)).
  - Rerun on the shipped Lean folder after the last file renames and comment edits: all seven build targets completed from the shipped build file, one target at a time, with no errors and no unproved-placeholder warnings. The axiom lines printed during those builds (872 declarations) list only propext, Classical.choice and Quot.sound, or fewer ([certificates/axiom-printout.txt](certificates/axiom-printout.txt)); the printout for the answer key is in [certificates/answer-key-axioms.txt](certificates/answer-key-axioms.txt). nanoda accepted the eleven-root export (94,342 declarations) and the whole-space export (94,908 declarations) with no errors ([certificates/kernel-checks.txt](certificates/kernel-checks.txt)). lean4lean replayed the whole environment of the default target (816,915 declarations) with no errors; it contains the eleven roots of the eleven-root export, that is, every result in the table except the whole-space breakdown.
  - The two drift results, the escape-pressure criterion and the failure of the escape under repeating pressure: Lean, and nanoda (each is a root of the eleven-root export), and lean4lean (each lies in the environment it replayed).
- **Erratum reading.** The forced breakdown with repeating pressure and its three wider-class statements are Lean-checked, under the erratum reading: keep velocity periodicity (10), correct (12), require periodic pressure of solutions. The literal label "Eqn (10) should read" gives a larger class of competitors. [Chapter 6](chapters/06-what-remains-open.md) treats it: answered: no without periodic pressure (the slide-through escape); open with periodic pressure, narrowed to competitors that grow faster than linearly. [Chapter 8](chapters/08-every-reading.md) covers every other reading and gives the decision lists from which its counts can be recomputed (recipe below).
- **Bridges.** The two bridges are Lean-checked in the default build target. Each is a root of the eleven-root export (nanoda) and lies in the environment that lean4lean replayed. They are not in the nine lines of the axiom printout for the answer key; they are listed in [the certificate list](certificates/roots.json).
- **Scope.** Chapter 8 gives a verdict for each of (A) to (D) under 440,401,920 readings of the text. Its basis is 12 Lean-checked statements, five collections of Lean helper statements of the first round (310 declarations) and seven of the second round, 15 lemmas (two in Lean in full, the pressure-periodicity lemma and the curl of OpenAI's force; 13 written proofs with parts in Lean, two of them in Lean only conditional on a named premise), written proofs in the proofs folder (start with [the closure proofs](proofs/CLOSURES.md)) and cited classics, and every verdict is labelled. The count includes every split group of readings, the closing of (C) and the count of (A) under the identity readings.
- **The logic-only file.** The small logic-only file in the Lean folder (named in the code block below) was compiled with Lean 4.34.1; it printed that the declaration does not depend on any axioms. It proves only the combination of two results that it takes as hypotheses.
- **The added Lean target.** The added build target builds the first-round Lean sources (the two lemma collections, the literal-erratum lemmas, the close-out modules, the force-mean modules, the local-research file) and the whole-space closure of (C) (70 files added to the book's Lean folder for the construction). With the build file as shipped, it completed (Lean 4.34.1, 9,657 build steps), on top of a from-source build of the default target with the pinned Mathlib reused. A build from an entirely clean checkout, with nothing reused, was not run. For (C), an overlay of the comparator definitions is the file used in the checked build (explicit imports instead of the Mathlib umbrella import, a modification notice added; declarations unchanged); the book's own copy of the comparator definitions is the upstream bytes. Twenty-one other files carry marked compatibility overlays ([the port notes](proofs/C-PORT.md)): four were already in the book in their effective form (listed in [the notice file](lean/NOTICE)) and 17 are among the added files, shipped in their effective form.
- **The closure list for (C).** For every row of the closure list whose in_release field is true, the file in the Lean folder must match original_sha256 when release_identical_to_original is true, and effective_sha256 when it is false. The one file with an overlay, the comparator definitions, ships as the original; its overlay is in the overlays folder of the Lean folder and matches effective_sha256. From the bundle root, the python command prints 522 522 (the rows, then the matches), and the sha256sum command prints the overlay's hash, which begins 39bda0f1 and equals effective_sha256 in that row:

  ```
  python -I -c "import csv,hashlib;R=[r for r in csv.DictReader(open('certificates/closure-C/C-REQUIRED-FILES.csv')) if r['in_release']=='True'];print(len(R),sum(hashlib.sha256(open('lean/'+r['file'],'rb').read()).hexdigest()==(r['original_sha256'] if r['release_identical_to_original']=='True' else r['effective_sha256']) for r in R))"
  sha256sum lean/overlays/NavierStokes/ComparatorDefinitions.lean
  ```

- **The second-round Lean files.** Clay's 2000 wording stated directly and the two growth theorems of chapter 6 (in a third build target), the whole-space closures of (C) (added to the first-round target), and weak solutions (in a fourth build target). In the second round all three targets completed from the shipped build file, on top of the earlier build (Lean 4.34.1, 9,690 build steps). Every axiom line printed during the build lists only propext, Classical.choice and Quot.sound. nanoda accepted four exports containing the new theorems: 93,579 declarations (the 2000 wording), 91,888 (the growth theorems), 95,425 (the closures of (C)) and 50,100 (weak solutions) (earlier measurement, not re-measured). The one-push files (a fifth build target, for the readings with one force for every viscosity) were compiled one file at a time, and the target was later built from the shipped build file; every axiom line lists only the same three axioms, and nanoda accepted an export of 53,132 declarations (earlier measurement, not re-measured) containing their final theorems. The scaling lemma (a root of the first-round target) was compiled the same way, and nanoda accepted an export of 33,099 declarations (earlier measurement, not re-measured).
- **Tao's Conjecture 1.8 and the written-rows part.** Two further build targets, built from the shipped build file (earlier, one file at a time). One proves that OpenAI's periodic corollary implies that Tao's Conjecture 1.8 (arXiv:1108.1165, p. 5) is false as Tao wrote it, under each of three readings of his normalised pressure and for a solution of any spatial period (chapter 4); nanoda accepted exports of 91,179 declarations (period 1) and 95,687 declarations (any period; the export contains the period-1 theorem) (earlier measurement, not re-measured). The other formalises the smooth-solutions identity, the curl of OpenAI's force, the start-level readings and the pressure-on-all-of-space lemma for solutions smooth up to t = 0 (chapter 8, section 5); nanoda accepted an export of 94,345 declarations (earlier measurement, not re-measured). Every axiom line lists only the same three axioms.

## What was rebuilt from source and what was not

The default build target was built from source, with the pinned Mathlib reused from a pre-built copy. The added targets of the first round and three of the second-round targets (Clay's 2000 wording with the two growth theorems, the whole-space closures of (C), and weak solutions) completed from the shipped build file on top of that build. After the last renames, all seven build targets (including the one-push files, the Conjecture 1.8 files and the written-rows part of chapter 8) were built from the shipped build file, one target at a time. In every build, the compiled objects of the inherited Apache-2.0 package come from copies and were not rebuilt. In the second round the Lean builds, the axiom printouts and the three nanoda exports (54,859, 91,636 and 94,908 declarations) were rerun on a byte-checked copy of an existing build, whose Lean files are identical to this book's. After the last renames, nanoda was run on the shipped Lean folder on two exports: the eleven-root export (94,342 declarations) and the whole-space export (94,908) ([certificates/kernel-checks.txt](certificates/kernel-checks.txt)). Each export has its own roots and so its own number of declarations; the numbers in this guide belong to different exports, and each is listed with its roots in [the certificate list](certificates/roots.json). No build from a clean checkout was run.

## Commands

From the bundle root, with elan installed (the Lean folder pins the toolchain and the library versions):

```
cd lean
lake exe cache get
lake build
```

The axiom printout for the answer key. Put the nine lines in a file inside the Lean folder that begins with the import of the default target, and run it with the build tool's environment:

```
import ReadingsCore

-- Each line should list only propext, Classical.choice and Quot.sound.
#print axioms ClayWording.zero_data_nonuniqueness_in_printed_problem
#print axioms ClayWording.bounded_energy_nonuniqueness_in_printed_problem
#print axioms JustCheckin.A3.escape_from_rest
#print axioms JustCheckin.A3.PressureBoundary.escape_pressure_periodic_iff
#print axioms JustCheckin.BoundaryMap.periodic_escape_refuted
#print axioms ForcedBreakdown.forced_periodic_from_rest
#print axioms JustCheckin.BoundaryMap.periodic_smooth_existence_refuted
#print axioms JustCheckin.BoundaryMap.periodic_decay_existence_refuted
#print axioms JustCheckin.BoundaryMap.openai_D_universal_existence_refuted
```

```
lake env lean <that file>
```

The first-round sources (not part of the default target; this needs hours, and keep parallel compiles low):

```
lake build ReadingsClose
lake env lean NSContinuation/AxiomRun.lean
lake env lean NSContinuation/LiteralAxioms.lean
lake env lean AxiomAudit.lean
```

The last three files print axiom lists. The file for the second collection prints 204 of them; the other two print the axioms of the four literal-erratum lemmas and of the force-mean modules. To print the axioms of the whole-space breakdown and six supporting results, put these lines in a file that begins with the import of the whole-space comparator theorem and run it the same way:

```
import NavierStokes.ComparatorR3Theorem
#print axioms NavierStokes.ComparatorBridge.navier_stokes_breakdown_R3
#print axioms NavierStokesR3.theorem_1_1
#print axioms NavierStokesR3.theorem_1_1_with_initial_rest
#print axioms NavierStokesR3.WholeSpaceUniqueness.classical_uniqueness_on_Icc
#print axioms NavierStokesR3.PressureRecovery.pressure_gradient_recovery
#print axioms NavierStokesR3.PressureFlux.exists_uniform_actual_pressure_flux_bound
#print axioms NavierStokesR3.ProblemStatement.zero_force_has_global_solution
```

The one small Lean file added in the evening checks only a logical step, with two earlier results as hypotheses. It imports nothing and is in no build target. From the Lean folder, run it with the pinned toolchain:

```
lean Combine.lean
# expected last line: 'NSRemaining.combine' does not depend on any axioms
```

The second-round files. Each file of the 2000-wording, weak-solution and one-push targets, and the scaling lemma, prints the axioms of its theorems while it builds. The two audit files print the axioms of the closures of (C):

```
lake build ReadingsClose ReadingsOriginalWording ReadingsWeakClass ReadingsCommonForce
lake env lean CClosuresAuditA.lean
lake env lean CClosuresAuditB.lean
# every printed axiom list: [propext, Classical.choice, Quot.sound]
```

Tao's Conjecture 1.8 (chapter 4) and the written-rows part of chapter 8, two further targets. Each file prints the axioms of its final theorems while it builds:

```
lake build ReadingsTao18 ReadingsWrittenRows
lake build ReadingsAdditiveShear   # the additive shear of chapter 6
# every printed axiom list: [propext, Classical.choice, Quot.sound]
# nanoda: 91,179 and 95,687 declarations (Tao 1.8), 94,345 (written rows) (earlier measurement, not re-measured)
```

Separate kernel check with nanoda. Build lean4export 3.1.0 against the same toolchain and put its build output on the Lean library path (LEAN_PATH) beside the project's. Then, inside the Lean folder:

```
lake env lean -M13000 -DmaxRecDepth=50000 -DmaxHeartbeats=0 --run <lean4export>/Main.lean BoundaryMap -- \
  JustCheckin.BoundaryMap.periodic_smooth_existence_refuted \
  JustCheckin.BoundaryMap.periodic_decay_existence_refuted \
  JustCheckin.BoundaryMap.openai_D_universal_existence_refuted > export.ndjson
nanoda_bin config.json
```

where config.json is nanoda's standard configuration, permitting only the three standard axioms:

```
{
  "export_file_path": "export.ndjson",
  "permitted_axioms": ["propext", "Classical.choice", "Quot.sound"],
  "unpermitted_axiom_hard_error": true,
  "nat_extension": true,
  "string_extension": true,
  "print_success_message": true,
  "print_axioms": true,
  "num_threads": 1,
  "pp_to_stdout": true,
  "pp_declars": []
}
```

To check the slide-through escape and the forced breakdown with repeating pressure the same way, export from the module of the default target with these two roots:

```
JustCheckin.A3.escape_from_rest
ForcedBreakdown.forced_periodic_from_rest
```

### Recount of the reading combinations

The file format is the decision lists in [chapter 8](chapters/08-every-reading.md) (section 4) and the sub-reading descriptions in [the reading splits](statement/ROW-SPLITS.md). The condition to test: enumerate the 3,440,640 combinations of the 11 clauses of chapter 8 that are not set aside in its section 3 (each clause has the values listed there), give each combination to the decision list of each of the five columns, where the earliest matching row decides, and confirm that every combination is decided exactly once. Multiply every count by 128, the number of combinations of the five clauses set aside. The factor 128 cannot reproduce the split of the ordinary printed (C) rows by condition (7): to recount those rows, enumerate condition (7) as well (12 clauses, 13,762,560 combinations) and multiply every count by 32. Expected answer: a total of 440,401,920 combinations per column and the shares in the table of the [README](README.md); the number of distinct patterns of verdicts across the five columns is 82 (one pattern per combination, listing the five verdicts; a verdict that depends on condition (7) enters as the set of its verdicts). A few lines in any language are enough.

## Expected output

- The default build finishes with no errors and no unproved-placeholder warnings (9,636 build steps).
- Each of the nine lines of the axiom printout lists only the axioms propext, Classical.choice and Quot.sound. It was run against a completed build of sources byte-identical to the Lean folder (9,636 build steps), and all nine lines listed exactly these three axioms.
- The added build target finishes with no errors; every axiom line printed by the files above lists only the same three axioms.
- nanoda prints "Checked N declarations with no errors" and lists only propext, Quot.sound and Classical.choice. N depends on the roots chosen; for the three roots of the wider-class statements it was 91,636.
- The recount gives 440,401,920 combinations per column and the shares in the README.

How I direct this work, and my own tools, are not part of this book. Everything you need to check the results is public: the results, their certificates and fingerprints, the Lean proofs, and a written recipe for each check.

Supporting records are available on request.

## Time and memory

- The full default build runs 9,636 steps, including 712 project modules. We did not time it in one uninterrupted sitting; on a desktop machine, expect hours rather than minutes.
- Memory: keep parallel compiles low (we used four threads; 14 parallel compiles used about 15 GB). On Windows, build from a short folder path.
- Export of the three wider-class statements: about 2.5 minutes, peak about 10 GB, and it needs the memory flag shown above. nanoda on that export: about 4 minutes on one thread.
- The recount: seconds to minutes, depending on the language.

## What is not claimed

- **No claim about the Clay prize.** The Clay Mathematics Institute decides, by its official problem description and at its sole discretion, whether a proposed solution answers a Millennium Problem.
- **No claim about which wording governs**, or about the publisher's intent behind the erratum.
- **No claim that the Lean checks confirm OpenAI's written paper.** The checks concern the Lean statements only; whether each step of the paper matches the Lean proof is a separate question ([chapter 7](chapters/07-a-fidelity-question.md)).
- **No answer to (A) or (B) under the text's own wording with nothing added** (the classical (A) question and the classical (B) question of chapter 8), none for printed (D) from starts other than rest (the remaining readings of (D)). Under the other readings, chapter 8 gives a labelled verdict for each alternative. Several groups keep open cases (listed in chapter 8, section 4 and [the reading splits](statement/ROW-SPLITS.md)), among them the full families of the ordinary printed (C) and its variants and of (C) with weak solutions and the erratum applied to all of space.
- **No settled claim about the literal "Eqn (10)" reading** with periodic pressure (the literal-erratum question). It is open, and chapter 6 states it exactly. The fixed-viscosity one-cell-identity question is excluded by a written proof, not by Lean.
- **Not rebuilt here:** the compiled objects of the inherited Apache-2.0 package, which the checked builds take from copies.
- The mathematics of the construction is OpenAI's; it is accepted by the Lean kernel and by the separately written checkers named above, not by a human referee here.

## Limits

Each limit of the checks is listed once, here.

- **Review.** No person outside this project has read these checks or the written proofs, and none of the results is refereed.
- **lean4lean.** lean4lean replayed the whole environment of the default target, which contains every result in the table except the whole-space breakdown; it replayed an environment, not an export. The whole-space breakdown and the other build targets were checked by Lean and, where stated, nanoda. The replay ran in a build copy of the shipped Lean folder whose Lean files are the same as the shipped ones.
- **Builds.** All seven build targets were built from the shipped build file after the last renames (the pinned Mathlib and the inherited package's compiled objects reused from a pre-built copy). A build from an entirely clean checkout, with nothing reused, was not run.
- **Lean reuse.** The Lean files reuse OpenAI's Lean library as a base: about 383,000 lines in 609 files (the 539 files used for the periodic result and the 70 files of its whole-space part, added for (C)), with about 24,700 theorems and lemmas (counted in the ported copy). Rewriting it would take one professional at least a year and a half of full-time work, even at an unusually fast 1,000 finished lines a day, and only certain theorems needed testing. The statements and proofs that test the other parts of the problem are Sonny's.
- **Written steps.** Steps not in Lean are labelled written where they occur. OpenAI's Corollary 10.6 is used as their Lean theorem states it.

## Where to go next

- Which verdicts rest on Lean and which only on written proofs? See [Every reading](chapters/08-every-reading.md).
- What is still open after the Lean checks? See [What remains open](chapters/06-what-remains-open.md).
