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

build #2158
Log
Raw
$ lake build ✔ [1209/1222] Built Problems.PVersusNP.ForMathlib.StateTransition (887ms) ℹ [1211/1222] Built Problems.PVersusNP.Machines.ExtraStacks (1.3s) info: Problems/PVersusNP/Machines/ExtraStacks.lean:126:0: 'Millennium.Machines.ExtraStacks.liftRun' depends on axioms: [propext, Classical.choice, Quot.sound] ✔ [1212/1222] Built Problems.PVersusNP.ForMathlib.Computable (1.2s) ℹ [1213/1222] Built Problems.PVersusNP.Machines.WordStacks (2.2s) info: Problems/PVersusNP/Machines/WordStacks.lean:270:0: 'Millennium.Machines.WordStacks.restoreRun' depends on axioms: [propext, Classical.choice, Quot.sound] info: Problems/PVersusNP/Machines/WordStacks.lean:271:0: 'Millennium.Machines.WordStacks.copyThrough' depends on axioms: [propext, Classical.choice, Quot.sound] info: Problems/PVersusNP/Machines/WordStacks.lean:272:0: 'Millennium.Machines.WordStacks.compareWords' depends on axioms: [propext, Classical.choice, Quot.sound] ✔ [1214/1222] Built Problems.PVersusNP.PolynomialHierarchy (1.5s) ℹ [1216/1222] Built Problems.PVersusNP.Examples.Parity (1.6s) info: Problems/PVersusNP/Examples/Parity.lean:171:0: 'Millennium.Examples.Parity.evenTrueCount_in_P' depends on axioms: [propext, Classical.choice, Quot.sound] ℹ [1217/1222] Built Problems.PVersusNP.Examples.Palindrome (1.2s) info: Problems/PVersusNP/Examples/Palindrome.lean:61:0: 'Millennium.Examples.Palindrome.palindromes_in_P' depends on axioms: [propext, Classical.choice, Quot.sound] ✔ [1218/1222] Built Tests.PVersusNP.WordStacks (1.1s) ✔ [1220/1222] Built Problems.PVersusNP.Machines.CertificateBound (6.0s) ✔ [1221/1222] Built Problems.PVersusNP.ComputablyEnumerable (1.1s) Build completed successfully (1222 jobs). -- 12 s $ lake build Problems Tests ℹ [1211/1222] Replayed Problems.PVersusNP.Machines.WordStacks info: Problems/PVersusNP/Machines/WordStacks.lean:270:0: 'Millennium.Machines.WordStacks.restoreRun' depends on axioms: [propext, Classical.choice, Quot.sound] info: Problems/PVersusNP/Machines/WordStacks.lean:271:0: 'Millennium.Machines.WordStacks.copyThrough' depends on axioms: [propext, Classical.choice, Quot.sound] info: Problems/PVersusNP/Machines/WordStacks.lean:272:0: 'Millennium.Machines.WordStacks.compareWords' depends on axioms: [propext, Classical.choice, Quot.sound] ℹ [1212/1222] Replayed Problems.PVersusNP.Examples.Palindrome info: Problems/PVersusNP/Examples/Palindrome.lean:61:0: 'Millennium.Examples.Palindrome.palindromes_in_P' depends on axioms: [propext, Classical.choice, Quot.sound] ℹ [1214/1222] Replayed Problems.PVersusNP.Examples.Parity info: Problems/PVersusNP/Examples/Parity.lean:171:0: 'Millennium.Examples.Parity.evenTrueCount_in_P' depends on axioms: [propext, Classical.choice, Quot.sound] ℹ [1218/1222] Replayed Problems.PVersusNP.Machines.ExtraStacks info: Problems/PVersusNP/Machines/ExtraStacks.lean:126:0: 'Millennium.Machines.ExtraStacks.liftRun' depends on axioms: [propext, Classical.choice, Quot.sound] Build completed successfully (1222 jobs). -- 1 s ok: lake build passes with no sorry
Resources--partition=lean --time=00:30:00 --cpus-per-task=2 --mem=8192M
Submit directory(the project root)
Approved versiond772867
Resultok: lake build passes with no sorry
Batch script
#!/bin/bash #SBATCH --job-name=lake-build #SBATCH --partition=lean #SBATCH --time=00:30:00 #SBATCH --cpus-per-task=2 #SBATCH --mem=8G # lake build (upstream's ci.yml) and the sorry gate, on the pushed commit ($SS_INPUT), in the project's Lean image # (docker/) with no network. P vs NP is open: checks/build.json names no theorem and no Comparator configuration, so the # check says only that the library builds without sorry. The approved checks/build.py and checks/build.json say what is # run; the image holds the toolchain, Mathlib and a build of the approved main, so only what the commit changed is # rebuilt. Logs go beside the job's output. set -euo pipefail BUILD_LOGS="$PWD/logs" python3 -I checks/build.py "$SS_INPUT" checks/build.json