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 #2011
Log
Raw
$ lake build (checkpoint (Phase.restore (true && decide (m ≤ cap))) { saved := { saved := saved }.saved }) lengths : m ≤ cap ↔ p.2.length ≤ (ea.encode p.1).length ^ k started : initList (guarded h.tm sep reject k) (List.map h.inputAlphabet.invFun ((pair_encoding ea (fin_encoding_string Γ)).encode p)) = checkpoint (Phase.scan false) { input := xs ++ sep :: ys } finish : Bool → (guarded h.tm sep reject k).Cfg := ⋯ bound : p.2.length ≤ (ea.encode p.1).length ^ k yes : m ≤ cap prefixRun : EvalsTo (guarded h.tm sep reject k).step (checkpoint (Phase.scan false) { input := xs ++ sep :: ys }) (some (checkpoint (Phase.restore true) { saved := saved })) original : TM2Outputs h.tm (xs ++ sep :: ys) (some (List.map h.outputAlphabet.invFun (finEncodingBoolBool.encode (verifier p)))) restored : Run h.tm sep reject k (checkpoint (Phase.restore true) { saved := saved }) (liftCfg (initList h.tm (xs ++ sep :: ys))) doneRun : EvalsTo (guarded h.tm sep reject k).step (checkpoint (Phase.scan false) { input := xs ++ sep :: ys }) (some (liftCfg (haltList h.tm (List.map h.outputAlphabet.invFun (finEncodingBoolBool.encode (verifier p)))))) ⊢ Decidable (p.2.length ≤ (ea.encode p.1).length ^ k) error: Problems/PVersusNP/Machines/CertificateBound.lean:527:11: failed to infer `have` declaration type error: Lean exited with code 1 Some required targets logged failures: - Problems.PVersusNP.Machines.CertificateBound error: build failed -- 10 s FAILED: lake build ended with exit 1: error: Problems/PVersusNP/Machines/CertificateBound.lean:417:37: Invalid dotted identifier notation: The expected type of `.inl` could not be determined
Resources--partition=lean --time=00:30:00 --cpus-per-task=2 --mem=8192M
Submit directory(the project root)
Approved versiond8ef774
ResultFAILED: lake build ended with exit 1: error: Problems/PVersusNP/Machines/CertificateBound.lean:417:37: Invalid dotted identifier notation: The expected type of `.inl` could not be determined
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