← All papers
First page of Composing SAT and Algebraic Certificates in Lean for End-to-End Circuit Verification

Composing SAT and Algebraic Certificates in Lean for End-to-End Circuit Verification

Daniela Kaufmann, Pedro Saccomani

cs.LO Nov 27, 2026 · v1
Composes PAC algebraic certificates and LRAT SAT refutations into a single Lean 4 theorem, with a reflective PAC checker and AIGER parser proved sound in Lean.
State-of-the-art tools for the verification of multiplier circuits combine computer algebra with SAT solving. AMulet2 replaces a final- stage adder that algebraic reasoning cannot handle efficiently and uses SAT to justify this replacement. TalisMan2 uses SAT to prove guessed linear relations, which serve as additional algebraic axioms. Proof logging increases the trust in both tools. The algebraic part can be certified by a PAC certificate and the SAT part by LRAT refutations. Checking both certificates separately, however, does not establish that the circuit is correct, because no existing checker relates the axioms of the PAC certificate to the input circuit or to the facts established by the SAT solver. In this paper, we close this gap by composing both certificates into a single Lean 4 theorem stating that the circuit in the input AIGER file is a correct multiplier. We show that each method needs SAT for exactly one step of this proof and discharge this step with LRAT refutations. Both methods certify all 192 AOKI multipliers with 64-bit operands and Lean checks each theorem in under seven minutes.

Multiplier verification tools AMulet2 and TalisMan2 combine computer algebra with SAT solving. Their PAC and LRAT certificates can be checked separately, but nothing links the PAC axioms to the input circuit or to the SAT-established facts, so circuit correctness is not fully established.

The end-to-end correctness theorem is reduced to five proof obligations. Three of them tie the certificate to the input AIGER file, which is parsed in Lean. A reflective PAC checker and AIGER parser are implemented and proved sound in Lean 4. Each SAT-assisted method (Adder Substitution, Guess-and-Prove) needs SAT for exactly one obligation, which is discharged via LRAT refutations bridged to the circuit semantics. The tools generate Lean files proved by a single tactic call (amulet or talisman).

Both methods certify all 192 AOKI multipliers with 64-bit operands, and Lean checks each theorem in under seven minutes. The trusted base consists of the Lean kernel, the standard axioms, and the Lean compiler for a single native_decide evaluation.