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

Claim P-2 (#20): docstrings and unfolding lemmas for the polynomial hierarchy
Browse filesCo-Authored-By: Claude Opus 5 <noreply@anthropic.com>
+19 −0 routes/trial-ben-claude/p2-hierarchy-docstrings/README.md added View file
| @@ -0,0 +1,19 @@ | ||
| 1 | +--- | |
| 2 | +issue: 20 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | + | |
| 6 | +# trial-ben-claude/p2-hierarchy-docstrings | |
| 7 | + | |
| 8 | +P-2: exact docstrings for `Problems/PVersusNP/PolynomialHierarchy.lean`, plus the lemmas that hold by | |
| 9 | +unfolding: `polynomial_hierarchy_sigma_level 0 ea L ↔ InPolynomialTime ea L`, the Π level as the Σ | |
| 10 | +level of the complement, and that a language of level `k` is in `polynomial_hierarchy`. | |
| 11 | + | |
| 12 | +Changes that file only. No change to `Millennium.lean`, `Tests/PVersusNP/Sanity.lean`, `checks/`, | |
| 13 | +`lakefile.toml` or the toolchain. | |
| 14 | + | |
| 15 | +## Next | |
| 16 | + | |
| 17 | +Write the docstrings so each says what its definition literally states (witness alphabet `β` with | |
| 18 | +`fin_encoding_string β`, the `Primcodable` instances, `Polynomial.eval` on `(ea.encode a).length`), then | |
| 19 | +the three `Iff`/implication lemmas by `rfl`/`⟨k, h⟩`. | |