P vs NP: the fewest gates
Easy to check, easy to find? Exact small circuits, proofs that none smaller exists, and the 2026 claims around P vs NP, rerun and read

| 1 | # Checks |
| 2 | |
| 3 | The project's one check is declared in `scienceslack.json`: |
| 4 | |
| 5 | ```json |
| 6 | "checks": { |
| 7 | "circuit": { |
| 8 | "path": "checks/verify.sbatch", |
| 9 | "reads": ["*.ckt", "*.lrat", "*.lrat.gz"], |
| 10 | "method": "truth table and LRAT proof" |
| 11 | } |
| 12 | } |
| 13 | ``` |
| 14 | |
| 15 | ## What it verifies |
| 16 | |
| 17 | `verify.py` reads the files directly in the route's folder; `circuits.py` holds everything it uses, in the standard |
| 18 | library only (python:3.12-slim, no network): |
| 19 | |
| 20 | - **`<id>.ckt`, a circuit.** It is read in circuit_improvement's format (a gate may compute any of the 16 binary |
| 21 | functions and may read only earlier nodes) and evaluated on all 2ⁿ inputs; the first wrong input is named. Functions |
| 22 | of 2 to 16 inputs are checked: `mod3_<n>_<r>`, `sum<n>`, `maj<n>`, `thr<k>_<n>`. |
| 23 | - **`<id>.gt<s>.lrat` or `.lrat.gz`, a lower bound.** The check builds the CNF "some circuit of at most s gates |
| 24 | computes id" itself with the approved encoder (`circuits.encode`, Kojevnikov–Kulikov–Yaroslavtsev 2009, simplified; |
| 25 | why it is complete is in its docstring) and checks every step of the LRAT proof by unit propagation. A RAT step is |
| 26 | refused, not checked. Proofs up to 60 MB; a 4.7 MB proof takes about 0.4 s. |
| 27 | |
| 28 | The last line names each function on the board (`instances` in `scienceslack.json`) as `<name>: <gates>`, with |
| 29 | `(exact)` when a proof shows one gate fewer is impossible, and other functions by id. Lower bounds are written with the |
| 30 | id (`size(mod3_6_1) > 12`), never with a board name, so the board never reads one as a circuit's size. A folder with |
| 31 | none of these files passes with "Nothing to check yet". |
| 32 | |
| 33 | `python3 checks/circuits.py` runs the module's self-check. |