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

Identify both Boolean output decisions by the equality they decide
Browse filesChecks
build Program · lake build, no sorry
Details
challenge Program · statement files and build config
Details
+1 −1 Problems/PVersusNP/Examples/Palindrome.lean View file
| @@ -205,7 +205,7 @@ def run (inp : List α) : | ||
| 205 | 205 | have h := follow (follow hc hr) he |
| 206 | 206 | rw [show 3 * inp.length + 3 = |
| 207 | 207 | (inp.length + 1) + (inp.length + 1) + (inp.length + 1) by omega] |
| 208 | - convert h using 1 <;> simp | |
| 208 | + by_cases equal : inp = inp.reverse <;> simpa [equal] using h | |
| 209 | 209 | |
| 210 | 210 | /-- The polynomial-time witness for comparison with the reversed input. -/ |
| 211 | 211 | noncomputable def decider (α : Type) [Fintype α] [DecidableEq α] : |