TRANSMISSION // 2611.36857v1
How AI Agents Build Formal Proofs for Complex Chips
Source published
TheoremV uses intermediate models and Lean 4 proofs to check whether complex RTL hardware matches high-level reference models, and reports a processor bug.

As AI tools generate hardware code faster, checking that a design behaves as specified becomes increasingly important. TheoremV is a system for building machine-checked proofs that complex RTL designs match high-level reference models. Its authors report results on floating-point and matrix hardware, and on a RISC-V processor—including a mismatch involving the FENCE instruction.
Why proving hardware correct is difficult
Register-transfer-level (RTL) code describes hardware in terms of signals, registers and clock cycles. A reference model, by contrast, may describe the intended behavior as a high-level algorithm or processor specification. Even when both represent the same function, their internal steps can look very different. A processor may take several cycles to execute an instruction that its reference specification describes in one step; a floating-point unit may use a specialized iterative algorithm where the reference performs a direct calculation.
That difference makes it difficult to prove that every legal input produces the expected result. TheoremV, introduced in an arXiv preprint, aims to automate such end-to-end equivalence proofs using Lean 4, a proof assistant that checks whether the completed proof follows from its formal statements and assumptions.
Intermediate models connect the two sides
The system’s central idea is to construct a chain of intermediate representations, or “Speculated IRs,” between the RTL design and its reference. An AI agent proposes executable models that capture useful intermediate views of the design. These might translate low-level hardware state into mathematical values, compress a multi-cycle operation into a single step, or express the intended behavior as a formal specification.
The proposed models are not trusted automatically. The system first compares them with neighboring models using differential simulation: it runs inputs through both and checks whether their outputs agree at corresponding observation points. When a mismatch appears, or a proof attempt reveals a problem, the agent revises the model. Once the chain is in place, separate agents attempt proofs for neighboring links, and Lean checks the resulting proofs. The system can then compose the links into a proof connecting the original RTL and the reference.
A second part of the system translates RTL into Lean. The compiler builds on Yosys, a hardware synthesis tool, and its intermediate representation. The authors say this lets them reuse broad RTL frontend support while retaining word-level signals and module hierarchy. Preserving hierarchy can help avoid unnecessarily expanding repeated modules; the compiler also analyzes dependencies at module ports to address apparent combinational loops that arise at interfaces.
What the authors report
The evaluation covers floating-point units from the XiangShan Fudian design, an integer matrix datapath from NVIDIA’s NVDLA, and the PicoRV32 processor. The reference models are Berkeley SoftFloat, an official NVDLA C++ model, and the RISC-V Sail instruction-set specification, respectively. The authors report completing equivalence proofs for all the tested designs.
In comparisons described in the paper, a commercial high-level equivalence checker timed out on most of the arithmetic benchmarks and could not handle the processor’s ISA-to-RTL refinement. The authors also report that their system without Speculated IRs could not complete the most difficult proofs. Adding intermediate models enabled proofs for the floating-point FMA unit and PicoRV32; the reported effect on runtime varied across tasks. The paper notes that the IR approach can also increase token use: on one benchmark, the direct-proof version used fewer tokens, despite taking longer.
The processor comparison produced a reported mismatch in the FENCE instruction. According to the paper, the RISC-V specification says reserved source and destination register fields should be ignored. In the example, PicoRV32 instead follows a default write-back path and clears a register that the Sail model leaves unchanged. The authors characterize this as a specification-violating defect in PicoRV32.
What the result does—and does not—establish
A proof checked by Lean is strong evidence that the two formal models agree under the theorem’s stated assumptions. But such a result depends on the models and translations faithfully representing the intended hardware and specification. Differential tests can catch errors in candidate intermediate models, but testing alone does not establish that a model is correct for every possible input. The authors say their RTL and C/C++ translators were checked against standard simulators and native executables; the paper also describes fixing errors in an initial floating-point model after testing and proof feedback exposed them.
The reported findings concern a limited set of designs, references and hardware features. The authors specify that the current system targets synchronous, single-clock synthesizable RTL; support for multi-clock or gated-clock designs, tristate or inout interfaces, and unknown or high-impedance logic values is left for future work. They also identify extra token cost on tasks where direct proving already succeeds.
This article is based on the authors’ arXiv preprint, not an independently reviewed assessment. The results are the authors’ reported experiments, and the evidence provided here does not establish how the approach performs across other designs or tools. The paper’s main contribution is a proposed route for tackling large hardware proofs: use executable intermediate models to make a difficult end-to-end comparison into a sequence of smaller, checkable steps.
- formal verification
- hardware
- RTL
- Lean 4
- AI agents
- theorem proving
- TheoremV
Reviewed cross-references
These connections were reviewed by a model, not independently fact-checked by a human. Similarity does not imply agreement; consult the original papers and the evidence below.
AI Agents Build Helper Assertions for RTL Proofs
Shared method: Both papers use an iterative agent-and-verifier workflow: TheoremV agents propose and revise intermediate models using simulation and proof feedback, while AFRA agents construct and revise helper assertions using formal-engine results. The shared method is feedback-guided proof construction; TheoremV proves end-to-end equivalence in Lean, whereas AFRA strengthens target-property proofs with SVA assertions, so their tasks and proof techniques differ.
Model review: · openai-codex/gpt-6-luna
Evidence and provenance
Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.
2611.36857v1 — Original paper
Excerpt reference:
static/papers/2611.36857v1.md:155-249
Basis: Paper text
Source file SHA-256:170fa7cbf30cd9a1093ed2ae856e3bf939520e9a65d1cacb1434b6e9a67f18a32611.36857v1 — Original paper
Excerpt reference:
static/papers/2611.36857v1.md:250-310
Basis: Paper text
Source file SHA-256:170fa7cbf30cd9a1093ed2ae856e3bf939520e9a65d1cacb1434b6e9a67f18a32611.35233v1 — Original paper
Excerpt reference:
static/papers/2611.35233v1.md:65-126
Basis: Paper text
Source file SHA-256:92f492f938ff95cd76f6e3c858c3525a99c0447bcc7e31c77fbd05fe0fe2acbf2611.35233v1 — Original paper
Excerpt reference:
static/papers/2611.35233v1.md:302-373
Basis: Paper text
Source file SHA-256:92f492f938ff95cd76f6e3c858c3525a99c0447bcc7e31c77fbd05fe0fe2acbf
Related reading
Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.
How AI Shrunk Lean Proofs for Less Checking Cost
Source published
Shared keywords: formal verification, theorem proving
How AI Refactored Lean Proofs Without Changing Their Claims
Source published
Shared keywords: formal verification
AI Agents Build Helper Assertions for RTL Proofs
Source published
Shared keywords: ai agents, formal verification
A formal step-by-step method for LLM-guided RTL
Source published
Shared keywords: formal verification
Formal Guidance for AI-Generated RTL
Source published
Shared keywords: formal verification