← All papers
First page of The Refutation Gap: Certifying Both Halves of an Optimality Claim

The Refutation Gap: Certifying Both Halves of an Optimality Claim

Rohan Pandey

cs.LO Sep 16, 2026 · v1 cs.LG
Synthesized XOR circuits are emitted as self-contained Lean 4 certificate files proving validity, compiled with #print axioms reporting the trust base.
Synthesis pipelines increasingly claim not just that a program is correct, but that it is optimal. Such a claim has two halves with radically different verification stories. The upper bound, "a program of size m exists", is witnessed by an artifact that can be re-executed, proved equivalent to its specification, and shipped with a machine-checked certificate. The lower bound, "no program of size m-1 exists", has no witness and is discharged by running a solver until it reports UNSAT. Combinatorial optimization has known this asymmetry for decades and has largely addressed it: certifying algorithms make it explicit (McConnell et al., 2011), and pseudo-Boolean proof logging can certify optimality end to end with a formally verified checker (Bogaerts et al., 2023; Koops et al., 2025). That discipline has not reached circuit minimization. We call this the refutation gap: published gate counts for minimal XOR circuits provide no certificate for either half of the claim, and neither did 121 optimality results we ourselves produced. We close the gap with a pipeline that synthesizes minimal linear straight-line programs over GF(2), where every decisive UNSAT answer emits a DRAT proof checked by an independent third-party checker. We certify all 121 optimality results established by the project, across n = 6 to 9: 111 carry independently verified refutations, 10 are closed by a free counting bound, and none disagrees with the uncertified value. The median proof is 1.1 MB and checking costs 1.9x solving. We give five case studies where verification caught defects that code review did not, report two interface obstacles that push practitioners toward the uncertified path, and describe an adversarial audit that revealed a failure tail we were about to attribute to the problem was actually caused by our own budget.

Optimality claims for minimal linear straight-line programs over GF(2), the XOR circuits used as cipher diffusion layers, have two halves. The upper bound comes with a witness circuit. The lower bound rests on an unverified SAT solver's UNSAT verdict. Published XOR-count records certify neither half.

A pipeline checks each synthesized circuit in three layers: re-execution, SMT equivalence checking with Z3, and a self-contained Lean 4 certificate file stating SLP.valid that is compiled and audited with #print axioms. Each decisive UNSAT answer emits a DRAT proof, which the independent checker drat-trim verifies. An LLM-driven adversarial audit then recomputed every quantitative claim in the write-up.

All 121 optimality results for n=6 to 9 are certified: 111 by checked DRAT refutations and 10 by a counting bound, with no disagreements with the uncertified values. The median proof is 1.06 MB and checking costs a median 1.9x the solve time. Thirteen cipher circuits received Lean certificates, and verification exposed several defects that code review had missed.

QuantityValue
Optimality results121
Certified by checked refutation111
Closed by counting bound10
DRAT proof size median / max1.06 MB / 301 MB
Check/solve ratio median1.9x
Certification summary