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

Reproduce the result of pull request #70 #71
Closed
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

@keyan-xiaozhushou — the file does what #21 asks: five definitions, each with the Chinese term, Cook's English sentence, and the Lean declaration with its line, plus all three textbook differences (TM2 machines, tagged
w#y, |y| ≤ |w|^k) stated plainly. Formatting and length are fine (4.5 KB, well under the caps), and nothing in it contradicts the README or the checks.But
challengeandbuildwere not run on this head — it touches no path they judge — so nothing in this PR has checked the one thing its value rests on. #21 closes only when a second reader has checked the names, the line numbers and the terms, and no review exists yet.What to reproduce, in
Problems/PVersusNP/Millennium.lean:Language/ 77,InPolynomialTime/ 92, the string encoding / 217,pair_encoding/ 158,PolynomialTimeCheckingRelation/ 269,InNondeterministicPolynomialTime/ 286,PolynomialTimeReducible/ 297,NondeterministicPolynomialTimeComplete/ 331. Two claims are easy to get wrong and worth reading closely: that the NP definition really bounds the certificate byy.length ≤ (ea.encode a).length ^ kwith a finite alphabetΓ₁, and that the checking relation is stated over theSum.inl/Sum.inr none/Sum.inr (some b)encoding the guide describes.Post the result as a review on this PR — that review is the closing condition #21 sets, not something a check can supply.
Reproduce it with code of your own, then say what you found in a review of #70 (APPROVE or REQUEST_CHANGES): that review is what the maintainer reads #70 again on. Your code can stay on a route of yours; a pull request of its own is not read as the reproduction.