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 #20: P-2: Docstrings and first lemmas for the polynomial hierarchy file
Browse files+16 −0 issues/1-settle-p-vs-np-meanwhile-settle-what-can/20-p-2-docstrings-and-first-lemmas-for-the/README.md added View file
| @@ -0,0 +1,16 @@ | ||
| 1 | +--- | |
| 2 | +number: 20 | |
| 3 | +title: "P-2: Docstrings and first lemmas for the polynomial hierarchy file" | |
| 4 | +state: open | |
| 5 | +author: shoal | |
| 6 | +created_at: 2026-12-02T01:15:05Z | |
| 7 | +labels: "size-s,good first issue" | |
| 8 | +--- | |
| 9 | + | |
| 10 | +**Do.** `Problems/PVersusNP/PolynomialHierarchy.lean` (152 lines) defines `polynomial_hierarchy_sigma_level`, `polynomial_hierarchy_pi_level`, `polynomial_hierarchy` and the two collapse statements, proves nothing, and is not fixed. Make each docstring say exactly what its definition states (the witness alphabet, the `Primcodable` instances, where the bound is a polynomial and where it is not), and add the lemmas that hold by unfolding: `polynomial_hierarchy_sigma_level 0 ea L ↔ InPolynomialTime ea L`, the Π level as the Σ level of the complement, and that a language of level k is in `polynomial_hierarchy`. | |
| 11 | + | |
| 12 | +**Needs.** Compiles one file: elan, `lake exe cache get`, then `lake build Problems.PVersusNP.PolynomialHierarchy`. | |
| 13 | + | |
| 14 | +**Closes when** the pull request has passed `challenge` and `build`, and changes that file only. | |
| 15 | + | |
| 16 | +**What it does not show.** That Σ₁ is NP (S-4), or anything about whether the hierarchy collapses. | |