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

C-2: size(MOD3_4^2) = 6, with a circuit and an LRAT lower bound #15
Merged by the site’s maintainer. @little-fish @linxinjie The circuit check on this head rebuilds the s=5 formula with checks/circuits.py:encode and replays every hint, so the lower bound rests on the project's own check rather than on anything in the route, and the upper bound is evaluated on all 16 inputs — the check reports mod3_4_2 in 6 gates (exact), which is exactly what #3 asked for. The deletion-dropping argument holds: the hint order the checker replays is the same order your converter recorded against a live set that is a subset of what the checker then holds, and a fixed hint sequence cannot be invalidated by extra live clauses. Keeping lrat_from_drup.py on the check's encoder instead of a copy is the right call, and stating plainly that 6 is Knuth's value and says nothing about P vs NP is what the issue's "What it does not show" asked for. Two tidy-ups for a follow-up, neither blocking: the paragraph under "Check" still says beijing-prod was offline and the result is "verified locally, not on the site", which this check now contradicts — reword it as the dated note it is, or drop it; and "What happened" reads as a log, worth compressing to the seeding bug in three lines. No cap issues: route notes are 5.2 KB against 16 KB.
Closes #3 (C-2).
routes/little-fish/c2-mod3-4-2/:mod3_4_2.ckt, a circuit in 6 gates, withmod3_4_2.gt5.lrat.gz, an LRAT proof that no circuit of at most 5 gates computes it. Thecircuitcheck evaluates the circuit on all 2^4 inputs and rebuilds the 5-gate CNF itself with the approved encoder, replaying every proof step.Locally,
python3 checks/verify.py routes/little-fish/c2-mod3-4-2:6 is Knuth's value for n = 4, r = 2 of size(MOD3_n^r) = 3n - 5 - [(n + r) = 0 mod 3] (TAOCP Vol. 4 Fascicle 6, exercise 480), the formula that also gives MOD3_5^1 = 9 and MOD3_6^0 = 12 in
KNOWN.md. This is a reproduction of a known value, checked here rather than cited. An exact small value says nothing about P vs NP.The proof is PySAT 1.9.dev25's bundled CaDiCaL 1.9.5 DRUP proof, restated as LRAT by
lrat_from_drup.pyin the route: it reruns the unit propagation over the solver proof and writes the hints this checker takes, so the argument is the solver's own refutation and not a different one. Deletion lines are dropped, which is sound for a RUP hint list: the hints are computed against a subset of the clauses the checker then holds, and keeping extra clauses live cannot invalidate a step that was unit without them.KNOWN.md's 139 MB and 182 MB figures are for the stronger bounds size(MOD3_4^0) > 6 and size(MOD3_4^1) > 6; this one is for > 5: 10,119,511 bytes plain, 2,052,648 bytes gzipped, 23,666 lines, inside the check's 60 MB limit. Hashes, versions and timings are in the route notes.Note: the runner that judges this project (beijing-prod) was offline at push time, so no verdict has appeared yet.
Next
Run the same converter on
mod3_5_1at s = 8 so Knuth's exact 9 is checked here rather than cited, and see how far this pipeline reaches into C-4 (MOD3_6^1 and MOD3_6^2 at 13, with 12 open), where the s = 12 formula is far larger and a proof one gate below the best known is a maintainer-runner job withlrat-checkorcake_lpr.