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

Elaborate the two test runs as proof witnesses
Browse filesChecks
build Program · lake build, no sorry
Details
challenge Program · statement files and build config
Details
+4 −0 Tests/PVersusNP/WordStacks.lean View file
| @@ -6,6 +6,8 @@ words, and keeping an initialized host stack while a subprogram runs. -/ | ||
| 6 | 6 | |
| 7 | 7 | namespace Tests.PVersusNP.WordStacks |
| 8 | 8 | |
| 9 | +noncomputable section | |
| 10 | + | |
| 9 | 11 | open Turing StateTransition Millennium.Machines.WordStacks Millennium.Machines.ExtraStacks |
| 10 | 12 | |
| 11 | 13 | private noncomputable def host := extendMachine (machine Bool) Unit (fun _ => Bool) |
| @@ -26,4 +28,6 @@ example : EvalsToInTime (machine Bool).step | ||
| 26 | 28 | (some (cfg none (none, true) ([] : List Bool) [] [] [false])) 3 := by |
| 27 | 29 | simpa using compareWords [true] [true, false] (none, true) [] |
| 28 | 30 | |
| 31 | +end | |
| 32 | + | |
| 29 | 33 | end Tests.PVersusNP.WordStacks |