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

S-19: Cook's one-tape machine decides the same P #40
Open
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

Do. Cook defines P with a one-tape Turing machine (his appendix); the statement uses Mathlib's machines with several stacks, and nothing in Lean says the two give the same class. Define Cook's machine as his appendix does (tape alphabet with a blank, states, a transition function, acceptance), define its P over a finite alphabet, and prove it equal to
InPolynomialTime (fin_encoding_string A): two stacks simulate a tape step for step; a tape simulates the stacks with polynomial overhead. Either direction alone is a pull request.Needs. Compiles several files; a laptop with elan and Mathlib's cache. Hard: nobody has done it against this statement.
Closes when a pull request proving one direction, or both, has passed
challengeandbuild, and V-12's reader has agreed that the definition is Cook's.What it does not show. Anything about NP by itself; S-19 for NP is the same work again with a checking relation.