CircuitProver: Agentic Lean 4 Theorem Proving with Reusable Circuit Proof Library for Hardware Verification

📅 2026-07-28
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
This work addresses key challenges in hardware formal verification—namely, the lack of proof reusability in model checking and the manual effort and poor scalability of interactive theorem proving. The paper presents the first Lean 4–based agent-driven verification framework that automatically translates parametric hardware designs and their natural language specifications into executable formal models, leveraging large language model–guided agents to iteratively generate proofs through feedback loops. Its core innovations include introducing proof accumulation and reuse mechanisms to hardware theorem proving for the first time, establishing an agent-oriented benchmark suite, and enabling parameterized verification with strategy-guided reasoning. Experiments demonstrate 100% proof success across 63 tasks, reducing proof iterations by 50%, shortening proof length by 16.3%, and decreasing verification time by 23.2% compared to baseline approaches.
📝 Abstract
Modern integrated circuits (ICs) are becoming increasingly complex, making functional verification a major bottleneck. The dominant hardware formal verification methodology, model checking, verifies each design instance separately and exposes only pass/fail results, so the reasoning behind a proof stays locked inside solver heuristics and is repeatedly reconstructed across related designs. Interactive theorem proving instead yields explicit, reusable proof artifacts, but applying it to hardware remains largely manual, demanding expert effort for formalization, invariant discovery, and proof development. In this paper, we present CircuitProver, an agentic Lean 4-based verification framework supporting proof-accumulation and parameterized verification. CircuitProver automatically translates parameterized hardware designs and their natural language specifications into executable Lean 4 models. It then iteratively constructs machine-checked proofs through Lean feedback to establish that the hardware code complies with the specification. The proving traces and verified theorems are distilled into reusable libraries, where proving strategies guide future agent reasoning and verified lemmas support formal proof reuse across related hardware verification tasks. We further introduce the first benchmark suite for evaluating agentic hardware theorem proving, covering diverse parameterized hardware designs, specifications, proof tasks, and evaluation metrics. Across 63 tasks, CircuitProver successfully proves all benchmarks, while a vanilla agent solves 92.1% of them and requires twice as many proof rounds on average. Ablation studies show that accumulated proof knowledge reduces redundant proof construction across related verification tasks, reducing proof length by 16.3% and verification time by 23.2%.
Problem

Research questions and friction points this paper is trying to address.

hardware verification
interactive theorem proving
formal verification
proof reuse
parameterized hardware designs
Innovation

Methods, ideas, or system contributions that make the work stand out.

agentic theorem proving
hardware verification
reusable proof library
parameterized circuits
Lean 4
🔎 Similar Papers