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

Keep the final configuration equality free of redundant tactics
Browse filesChecks
build Program · lake build, no sorry
Details
challenge Program · statement files and build config
Details
+2 −1 Problems/PVersusNP/Examples/Palindrome.lean View file
| @@ -205,7 +205,8 @@ 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 <;> congr 5 <;> first | rfl | apply Subsingleton.elim | simp | |
| 208 | + convert h using 1 | |
| 209 | + congr 5 | |
| 209 | 210 | |
| 210 | 211 | /-- The polynomial-time witness for comparison with the reversed input. -/ |
| 211 | 212 | noncomputable def decider (α : Type) [Fintype α] [DecidableEq α] : |