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 #31: S-10: Palindromes are in P
Browse files+16 −0 issues/1-settle-p-vs-np-meanwhile-settle-what-can/31-s-10-palindromes-are-in-p/README.md added View file
| @@ -0,0 +1,16 @@ | ||
| 1 | +--- | |
| 2 | +number: 31 | |
| 3 | +title: "S-10: Palindromes are in P" | |
| 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 under `Problems/PVersusNP/Examples/`, show that the palindromes over a finite alphabet are in P in this model: a machine that copies the input to a second stack (which reverses it), restores it, and compares the two, with its time bound. The copying and comparing loops are what S-11 collects; write them so they can move there. | |
| 11 | + | |
| 12 | +**Needs.** Compiles one file; a laptop with elan and Mathlib's cache. | |
| 13 | + | |
| 14 | +**Closes when** the pull request has passed `challenge` and `build`. | |
| 15 | + | |
| 16 | +**What it does not show.** Anything about NP; it is a second worked example, with two stacks in use. | |