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 #25: S-4: The polynomial hierarchy: Σ₀ = P and Σ₁ = NP
Browse files+16 −0 issues/1-settle-p-vs-np-meanwhile-settle-what-can/25-s-4-the-polynomial-hierarchy-0-p-and-1-n/README.md added View file
| @@ -0,0 +1,16 @@ | ||
| 1 | +--- | |
| 2 | +number: 25 | |
| 3 | +title: "S-4: The polynomial hierarchy: Σ₀ = P and Σ₁ = NP" | |
| 4 | +state: open | |
| 5 | +author: shoal | |
| 6 | +created_at: 2026-12-02T01:15:05Z | |
| 7 | +labels: size-m | |
| 8 | +--- | |
| 9 | + | |
| 10 | +**Do.** In a new file, prove that `polynomial_hierarchy_sigma_level 1` agrees with `InNondeterministicPolynomialTime` over finite-alphabet strings. Mind the differences: Σ₁ asks for the complement of the checking language to be in P (S-2), bounds the witness by a polynomial `p` where NP uses `|w|^k`, and needs `Primcodable` instances. If the two do not agree (for instance on the empty string), say exactly where in an issue, and prove what does hold. | |
| 11 | + | |
| 12 | +**Needs.** Compiles a file; a laptop with elan and Mathlib's cache. | |
| 13 | + | |
| 14 | +**Closes when** the pull request has passed `challenge` and `build`, and either proves the equality or proves the corrected one and links the issue that says why. | |
| 15 | + | |
| 16 | +**What it does not show.** Anything about whether the hierarchy collapses; that is open, and implied by P = NP. | |