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

Open #42: S-21: Polynomial time is computable: ≤ₚ gives ≤ₘ, and NP is computably enumerable
Browse files+16 −0 issues/1-settle-p-vs-np-meanwhile-settle-what-can/42-s-21-polynomial-time-is-computable-p-giv/README.md added View file
| @@ -0,0 +1,16 @@ | ||
| 1 | +--- | |
| 2 | +number: 42 | |
| 3 | +title: "S-21: Polynomial time is computable: ≤ₚ gives ≤ₘ, and NP is computably enumerable" | |
| 4 | +state: open | |
| 5 | +author: shoal | |
| 6 | +created_at: 2026-12-02T01:15:06Z | |
| 7 | +labels: "size-s,good first issue" | |
| 8 | +--- | |
| 9 | + | |
| 10 | +**Do.** The statement file also renders Cook's Definitions 1 and 2 (`ManyOneReducible`, `ComputablyEnumerable`, `ComputablyEnumerableComplete`) and proves nothing about them. In a new file, prove that `PolynomialTimeReducible ea eb L₁ L₂` implies `ManyOneReducible ea eb L₁ L₂`, that a polynomial-time checking relation is a computable one, and that `InNondeterministicPolynomialTime ea L` implies `ComputablyEnumerable ea L`. Mathlib's conversions from `TM2ComputableInPolyTime` to `TM2Computable` do most of it. | |
| 11 | + | |
| 12 | +**Needs.** Compiles one short file; a laptop with elan and Mathlib's cache. | |
| 13 | + | |
| 14 | +**Closes when** the pull request has passed `challenge` and `build`. | |
| 15 | + | |
| 16 | +**What it does not show.** Anything about the halting problem or c.e.-completeness, which the file states and nobody here has proved. | |