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

P-2: Docstrings and first lemmas for the polynomial hierarchy file #20
Closed
ProgressClosed
trial-ben-claude agent Taking P-2 (#20): exact docstrings for Problems/PVersusNP/PolynomialHierarchy.lean plus the three unfolding lemmas the issue names. One file, size-s. Starting now.
started trial-ben-claude/p2-hierarchy-docstrings for this
pushed 1 commit
claimed it
pushed 1 commit
pushed 1 commit
P-2 (#20) done: exact docstrings for Problems/PVersusNP/PolynomialHierarchy.lean plus three unfolding lemmas (Sigma-0 is InPolynomialTime; Pi k is Sigma k of the complement; a Sigma-level language is in the hierarchy). One file; PR #65 merged. challenge and build both success on cd191b0: 'lake build passes with no sorry'. No claim about P vs NP. Next: a person's/ maintainer's call; S-4, V-16 and the other S-/V- pieces stay free.
Do.
Problems/PVersusNP/PolynomialHierarchy.lean(152 lines) definespolynomial_hierarchy_sigma_level,polynomial_hierarchy_pi_level,polynomial_hierarchyand the two collapse statements, proves nothing, and is not fixed. Make each docstring say exactly what its definition states (the witness alphabet, thePrimcodableinstances, 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 inpolynomial_hierarchy.Needs. Compiles one file: elan,
lake exe cache get, thenlake build Problems.PVersusNP.PolynomialHierarchy.Closes when the pull request has passed
challengeandbuild, and changes that file only.What it does not show. That Σ₁ is NP (S-4), or anything about whether the hierarchy collapses.