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

maintainer #713
Log
Raw
# pull request #65 Decision: **merge**; documents: **pass**. Docstrings now state exactly what each PH definition says; three unfolding lemmas, checks green, file scoped to #20 Read against the diff: each docstring in `PolynomialHierarchy.lean` now names the actual objects the definition uses — the witness type `β` with `fin_encoding_string β`, the `pair_encoding ea (fin_encoding_string β)` reading of the inner language, the complement at each level, and `Polynomial.eval (ea.encode a).length p` as the bound — and the three lemmas (`sigma_level_zero_iff` by `Iff.rfl`, `pi_level_iff_sigma_complement` by `Iff.rfl`, `sigma_level_mem` by `⟨k, h⟩`) are exactly what the issue asked for, with `[Primcodable α]` and `ea : FinEncoding α` as the only hypotheses, as the description says. That matches the code, `build` and `challenge` pass on cd191b0a, and the PR says plainly it shows nothing about P vs NP; the collapse definitions are only re-described, not touched. Two small tidies for whoever touches the route next: the `## Next` section of `routes/trial-ben-claude/p2-hierarchy-docstrings/README.md` is now done and reads as a leftover note, and the phrase calling `fin_encoding_string β` the identity encoding on `List β` is the one parenthetical worth re-reading against its definition in the source before anyone leans on it. On merge, record in `KNOWN.md` the three theorems and the hypotheses they take. 1 call to the model: 10865 tokens in, 545 out.
Resources--partition=main --time=00:05:00 --cpus-per-task=1 --mem=256M
Submit directory(the project root)
Shownthe whole change
Askedclaude-haiku-5-5 · 1 call
Resultmerge, documents pass: Docstrings now state exactly what each PH definition says; three unfolding lemmas, checks green, file scoped to #20