Researchers use AI-assisted proofs to verify large hardware designs
TheoremV uses Lean 4 to check whether RTL designs match high-level reference models. Its researchers report proofs for three designs, including one that exposed a bug in the RISC-V FENCE specification.
Researchers have developed TheoremV, a framework that uses an LLM and Lean 4 theorem proving to verify that large register-transfer-level (RTL) hardware designs behave like high-level reference models. The researchers say the system breaks a difficult end-to-end proof into smaller equivalence checks, using candidate intermediate models that are tested by simulation and revised with proof feedback.
In reported tests, TheoremV proved equivalence for the XiangShan Fudian floating-point unit and NVDLA CMAC matrix unit against reference models, and for the PicoRV32 core against the RISC-V Sail specification. The last proof exposed a bug in the specification’s FENCE instruction. The researchers say these tasks had defeated existing automated provers or caused commercial high-level equivalence checkers to time out.