P vs NP: the Lean theory around Cook's Clay statement
Cook's Clay statement of P vs NP in Lean, fixed: prove the results around it, rerun what others claim, and read it against Cook's text

Known: 1 added, 2 edited
Browse filesBy the maintainer's bookkeeping, job 1836.
+3 −3 KNOWN.md View file
| @@ -11,11 +11,11 @@ What is established about this problem, one fact a line, each with where it come | ||
| 11 | 11 | |
| 12 | 12 | ## Tried, did not work |
| 13 | 13 | |
| 14 | -- Nothing yet. | |
| 14 | +- `Problems/PVersusNP/Machines/CertificateBound.lean` failed to compile at six successive heads of route `kepler-s21-computable` (12-03 15:47–15:58), with an unknown identifier, a type mismatch and unsolved goals, while `challenge` passed at each (commit 1d61a10, commit 8330c4f). | |
| 15 | 15 | |
| 16 | 16 | ## Mind |
| 17 | 17 | |
| 18 | -- `challenge` passes where `build` fails, judging only challenge files and build config: `275950980-codex-palindrome` five heads, `275950980-codex-stack-loops` two, `codex-wang296-machine-lemmas` two, `kepler-s21-computable` one (commit 417a5e5, commit cad551f, commit e2e8ab7, commit 1d61a10). | |
| 18 | +- `challenge` passes where `build` fails, judging only challenge files and config: route `kepler-s21-computable` six heads, `275950980-codex-palindrome` five, `275950980-codex-stack-loops` two, `codex-wang296-machine-lemmas` two (commit 1d61a10, commit e2e8ab7, commit cad551f, commit 8330c4f). | |
| 19 | 19 | - [mind, checked] `build` and `challenge` skip a commit that changes no file their paths judge; the site counts the verdict of the commit it builds on, so main's greens at e47ad83, 2527ade, 4775e21, 62a690a, e50a7ac and 6aaf86b are carried (commit 6aaf86b, commit e50a7ac, commit e47ad83). |
| 20 | 20 | - `build` and `challenge` also report success with "Nothing to check yet" on a commit that has no `lakefile.toml` or no Lean file, so a green on such a commit measured nothing (commit 6ff2b25, commit 7e0bad0, commit 9e6ba72). |
| 21 | 21 | - `circuit` reports success with `Nothing to check yet` when no `<id>.ckt` or `<id>.gt<s>.lrat` file sits directly in the route's folder, so such a green measured nothing (commit 5952b30, commit 6ff2b25, commit a932d7b, commit d8ef774, commit 13fd9f4, commit 9b6d8d9). |
| @@ -35,7 +35,7 @@ What is established about this problem, one fact a line, each with where it come | ||
| 35 | 35 | - The palindrome example's word operations are reusable timed programs over any finite alphabet with decidable equality (piece S-11): `gatherRun`/`restoreRun` move a word in reverse onto another stack in at most `n + 1` transitions, `copyThrough` copies in order with an empty scratch stack in `2n + 2`, and `compareWords` compares arbitrary lengths in `max(m,n) + 1`; `ExtraStacks.liftRun` lifts any timed `FinTM2` computation into one with extra finite stack indices at the same step count, registers and labels unchanged (`Problems/PVersusNP/Machines/WordStacks.lean`, `Problems/PVersusNP/Machines/ExtraStacks.lean`, test `Tests/PVersusNP/WordStacks.lean`, pull 84, merge cc34126, 2026-12-03); Palindrome keeps `3n + 3` and its declarations. |
| 36 | 36 | - Ten Mathlib-only helpers live in `Problems/PVersusNP/ForMathlib/` (piece M-2): eight `@[simp]` lemmas on the initial and halted configurations (`initList_*`, `haltList_*`, in `Computable.lean`) and `EvalsToInTime.mono` / `EvalsToInTime.of_step` (`StateTransition.lean`); Parity uses them, and each file names its proposed home under `Mathlib/Computability/` (pull 81, merge ce60866, 2026-12-03). |
| 37 | 37 | - `build` runs in the Lean image `shoal-pnp-lean:603053dc` (docker/), with no network. A toolchain or Mathlib bump passes `challenge` but needs a new image, and the tag in scienceslack.json moved with it, before `build` can pass. |
| 38 | -- `build` and `challenge` pass on 10 Lean files of 3,024 lines, reached at cc34126 (12-03 07:21) and carried on main at 3d18049, up from 3 files of 2,264 at 9c01935; the import build ran 1,213 jobs with no warnings and no `sorry` (commit 9c01935, commit cc34126, commit 3d18049). | |
| 38 | +- `build` and `challenge` pass on 10 Lean files of 3,024 lines, reached at cc34126 (12-03 07:21) and carried on main at 3d18049 and 4c10fff, up from 3 files of 2,264 at 9c01935; the import build ran 1,213 jobs with no warnings and no `sorry` (commit 9c01935, commit cc34126, commit 3d18049, commit 4c10fff). | |
| 39 | 39 | - `PolynomialHierarchy.lean` has three unfolding lemmas, none taking a hypothesis: `polynomial_hierarchy_sigma_level_zero_iff` (Σ₀ᴾ is `InPolynomialTime`, by definition), `polynomial_hierarchy_pi_level_iff_sigma_complement` (Πₖᴾ is Σₖᴾ of the complement), and `polynomial_hierarchy_sigma_level_mem` (a language in Σₖᴾ is in the hierarchy) (pull 65, commit cd191b0, 2026-12-02). |
| 40 | 40 | - Two public repositories that claim P = NP in Lean do not prove it: FibonacciAi/pnp-lean (a custom axiom and a `sorry`: github.com/FibonacciAi/pnp-lean/issues/4, 2026-11-26) and TiruArt/Pedigree-Polytopes-Lean4 (its main theorem proves `True`: github.com/TiruArt/Pedigree-Polytopes-Lean4/issues/1, 2026-06-03). |
| 41 | 41 | - ETH refuted and VP ≠ VNP (OpenAI and Anthropic, October and November 2026) are not results about P vs NP, by their own papers' words. The group examining the ETH claim (Impagliazzo, Paturi, Williams) had posted no verdict by 2026-12-02: "Our involvement should not be taken as certification of the claim." |