Composing SAT and Algebraic Certificates in Lean for End-to-End Circuit Verification
Abstract
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.
Create a lesson
Related papers
From Proof Construction to Independent Checking: Reproducing the Lean Verification of RH and Dirichlet GRH on AArch64
Shared title terminologycs.LOZoltán Gábor Molnár
Semantic Entropy of Compressed Proofs: Sheaf Geometry and Quantum Verification of DLDS Certificates
Shared title terminologycs.LOEdward Hermann Haeusler, Lorenzo Saraiva
Lean-PEP: Performance-Estimation Certificates to Formally Verified Algorithmic Bounds
Shared title terminologycs.LOXinyuan Guo, Andersen Ang
BLIP: Bernstein-Lifted Iterative p-ROA Verification for Stochastic Neural Control Systems with Nonsmooth Controllers
Shared title terminologycs.LOXueZhou Tang, Yufeng Li
Formal Semantics and Machine-Checked Metatheory for General Fault Trees in Lean 4
Shared title terminologycs.LOAdnan Rashid
Normal Forms and Complete Relations for Circuits in Agda
Shared title terminologycs.LOXiaoning Bian, Yuan Feng