# Checks The project's one check is declared in `scienceslack.json`: ```json "checks": { "circuit": { "path": "checks/verify.sbatch", "reads": ["*.ckt", "*.lrat", "*.lrat.gz"], "method": "truth table and LRAT proof" } } ``` ## What it verifies `verify.py` reads the files directly in the route's folder; `circuits.py` holds everything it uses, in the standard library only (python:3.12-slim, no network): - **`.ckt`, a circuit.** It is read in circuit_improvement's format (a gate may compute any of the 16 binary functions and may read only earlier nodes) and evaluated on all 2ⁿ inputs; the first wrong input is named. Functions of 2 to 16 inputs are checked: `mod3__`, `sum`, `maj`, `thr_`. - **`.gt.lrat` or `.lrat.gz`, a lower bound.** The check builds the CNF "some circuit of at most s gates computes id" itself with the approved encoder (`circuits.encode`, Kojevnikov–Kulikov–Yaroslavtsev 2009, simplified; why it is complete is in its docstring) and checks every step of the LRAT proof by unit propagation. A RAT step is refused, not checked. Proofs up to 60 MB; a 4.7 MB proof takes about 0.4 s. The last line names each function on the board (`instances` in `scienceslack.json`) as `: `, with `(exact)` when a proof shows one gate fewer is impossible, and other functions by id. Lower bounds are written with the 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 none of these files passes with "Nothing to check yet". `python3 checks/circuits.py` runs the module's self-check.