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

fix(PVersusNP): simplify designated stack inequalities explicitly
Browse filesChecks
build Program · lake build, no sorry
Details
challenge Program · statement files and build config
Details
+2 −2 Problems/PVersusNP/Examples/Parity.lean View file
| @@ -128,7 +128,7 @@ theorem initList_eq (inp : List Bool) : | ||
| 128 | 128 | congr |
| 129 | 129 | funext k |
| 130 | 130 | cases k with |
| 131 | - | false => exact initList_stk_ne parityMachine inp (by decide) | |
| 131 | + | false => exact initList_stk_ne parityMachine inp (by simp [parityMachine]) | |
| 132 | 132 | | true => exact initList_stk_self parityMachine inp |
| 133 | 133 | |
| 134 | 134 | /-- The canonical halted configuration has the reset state and only its output stack. -/ |
| @@ -143,7 +143,7 @@ theorem haltList_eq (out : List Bool) : | ||
| 143 | 143 | funext k |
| 144 | 144 | cases k with |
| 145 | 145 | | false => exact haltList_stk_self parityMachine out |
| 146 | - | true => exact haltList_stk_ne parityMachine out (by decide) | |
| 146 | + | true => exact haltList_stk_ne parityMachine out (by simp [parityMachine]) | |
| 147 | 147 | |
| 148 | 148 | /-- The explicit parity machine computes the Boolean answer with time polynomial `X + 1`. -/ |
| 149 | 149 | noncomputable def parityDecider : |