跳到正文
arXiv cs.AI· Chenrui Cao, Chongxiao Li, Yutong Wu, Hongqin Lyu, Di Huang, Chuanhao Wang, Lei Zhang, Chao Wang, Tian Zhi, Rui Zhang, Zidong Du, Qi Guo, Xing Hu, Yunji Chen·· 1 小时前精选AI 评分61

TheoremV 论文提出基于 Lean 4 的智能体定理证明方法用于大规模 RTL 形式验证

QiMeng-TheoremV: Agentic Theorem Proving with Speculated IRs for Large-Scale RTL Formal Verification

AI 导读

论文提出 TheoremV,一个用 Lean 4 定理证明自动构建大规模 RTL 设计与高层参考模型端到端功能等价证明的智能体框架。

推荐理由

论文给出用 Lean 4 定理证明自动验证大规模 RTL 功能等价的方法,并在商用等价检查器超时的任务上给出实证结果。

正文 · 原文

Authors:Chenrui Cao, Chongxiao Li, Yutong Wu, Hongqin Lyu, Di Huang, Chuanhao Wang, Lei Zhang, Chao Wang, Tian Zhi, Rui Zhang, Zidong Du, Qi Guo, Xing Hu, Yunji Chen

View PDF HTML (experimental)

Abstract:As LLMs speed up automated Register-Transfer Level (RTL) code generation, verifying that generated designs meet their specs has become a key bottleneck. We present TheoremV, an agentic framework that uses Lean 4 theorem proving to automatically build complete proofs of end-to-end functional equivalence between large-scale RTL designs and high-level reference models. TheoremV bridges two gaps: the abstraction gap between cycle-accurate RTL and high-level reference models, and the representation gap between RTL and proof languages. For the abstraction gap, TheoremV introduces Speculated IRs: an LLM agent proposes candidate intermediate models, quickly filters out bad ones via differential simulation, and revises them using proof feedback, breaking an end-to-end proof across abstraction levels into a chain of equivalence lemmas. For the representation gap, a Yosys-based RTL-to-Lean compiler keeps industrial frontend coverage while preserving word-level signals and module hierarchy, and port-level dependency analysis removes false combinational loops at module interfaces.
On tasks where commercial high-level equivalence checkers time out and existing automated provers fail, TheoremV proves the functional equivalence of silicon-proven floating-point and matrix units (XiangShan Fudian and NVDLA CMAC) against high-level reference models, as well as the PicoRV32 core against the official RISC-V Sail spec, finding a real RISC-V spec bug (in the FENCE instruction) in PicoRV32.
Comments: 8 pages, 5 figures
Subjects: Hardware Architecture (cs.AR); Artificial Intelligence (cs.AI); Logic in Computer Science (cs.LO)
Cite as: arXiv:2611.36857 [cs.AR]
  (or arXiv:2611.36857v1 [cs.AR] for this version)
  https://doi.org/10.48550/arXiv.2611.36857

arXiv-issued DOI via DataCite (pending registration)

Submission history

From: Chenrui Cao [view email]
[v1] Fri, 27 Nov 2026 03:52:26 UTC (107 KB)

来源:arXiv cs.AI · arxiv.org