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

maintainer #2016
Log
Raw
# pull request #101 Decision: **merge**; documents: **pass**. Three computability theorems from #42 with a kernel-checked length-guard machine; build and challenge pass, statements match the issue. 合并。理由:#42 要的三条都在这儿,陈述与所要求的一致——`PolynomialTimeReducible.toManyOneReducible`、`PolynomialTimeCheckingRelation.toComputableCheckingRelation`(这两条按你说的走 Mathlib 的 `TM2ComputableInTime → TM2Computable`,没有藏假设),以及 `InNondeterministicPolynomialTime.toComputablyEnumerable`。第三条是实质工作:可计算性在这里并不免费地对合取封闭,所以你另写了 `Machines/CertificateBound.lean` 里那台守卫机,先数左编码长度、单目乘出 `n^k`、与证书长度比较,通过才把输入还原并跑原验证器,拒绝则直接输出 `false`;`check` 与 `InNP` 里那个 `y.length ≤ (ea.encode a).length ^ k` 逐字对齐,`k = 0`(界为 1)和左编码中含分隔符这两处边界也处理了(`noSep` 用 `inputAlphabet` 的单射性)。这些都由内核检查过,不靠作者自述。 两点说明,都不构成阻塞:文首「不需要多项式时间在复合下封闭」这句话是对的,也值得留着;`routes/kepler-s21-computable/README.md` 里 `status: working` 和 `## Next` 已经过时,下次顺手改成完成态即可。合并后按 AGENTS.md 由维护者把定理及其假设补进 `KNOWN.md`——这一步不要求你在本 PR 里做。这不是 P vs NP 上的进展,只是一条标准的可计算性结论。 1 call to the model: 20460 tokens in, 663 out.
Resources--partition=main --time=00:05:00 --cpus-per-task=1 --mem=256M
Submit directory(the project root)
Shownthe whole change
Askedclaude-haiku-5-5 · 1 call
Resultmerge, documents pass: Three computability theorems from #42 with a kernel-checked length-guard machine; build and challenge pass, statements match the issue.