LeanHardware: Bringing Formal Assurance to Vibe Hardware Development from Intent to RTL via Lean 4

As LLMs become increasingly capable of generating RTL, ensuring that AI-generated hardware faithfully implements designer intent remains a fundamental challenge. This requires addressing two correctness gaps: natural-language specifications may not accurately capture intended behavior, and generated RTL may not satisfy the resulting specifications. To address these challenges, we present LeanHardware, a formal-methods-based framework that brings end-to-end assurance to vibe hardware development from designer intent to RTL in two stages. In Stage 1, LeanHardware uses executable LeanSpec models to identify specification uncertainties through concrete execution and clarify intended behavior through designer feedback. In Stage 2, LeanHardware directly generates Verilog, translates it into LeanRTL using a deterministic parser, and constructs Lean-checked refinement proofs against the clarified LeanSpec reference models. Across 329 designs from four benchmarks, LeanHardware achieves 98%, 98%, 94%, and 91% functional correctness on VerilogEval, RTLLM, CVDP, and ChipBench, respectively. With the same backbone LLM, Stage 1 improves RTL correctness from 81.5% to 96.0% on corrected benchmarks, while Stage 2 establishes unbounded refinement proofs for 79.0% and 92.1% of designs against cycle-level and transaction-level specifications, respectively. Our results show that proof-guided correction further improves weaker LLMs, while for stronger LLMs, specification clarification drives most correctness gains and formal proving primarily provides certification.

Authors

Publication Details

Journal
arXiv
Published
2026-12-03
Primary Topic
Formal Methods in Verification
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

LeanHardware: Bringing Formal Assurance to Vibe Hardware Development from Intent to RTL via Lean 4

Ruize Tang, Wenji Fang, Zhiyao Xie, Peichen Xie et al.
arXiv
Formal Methods in Verification
preprint

LeanHardware: Bringing Formal Assurance to Vibe Hardware Development from Intent to RTL via Lean 4

Ruize Tang, Wenji Fang, Zhiyao Xie, Peichen Xie, Wenkai Li, Hongce Zhang, Zhiyuan Yan, Ziyi Yang, Mengming Li, Yao Lu, Fan Yang, Jing Wang, Tianyu Chen, Xian Zhang
preprint en

Abstract

As LLMs become increasingly capable of generating RTL, ensuring that AI-generated hardware faithfully implements designer intent remains a fundamental challenge. This requires addressing two correctness gaps: natural-language specifications may not accurately capture intended behavior, and generated RTL may not satisfy the resulting specifications. To address these challenges, we present LeanHardware, a formal-methods-based framework that brings end-to-end assurance to vibe hardware development from designer intent to RTL in two stages. In Stage 1, LeanHardware uses executable LeanSpec models to identify specification uncertainties through concrete execution and clarify intended behavior through designer feedback. In Stage 2, LeanHardware directly generates Verilog, translates it into LeanRTL using a deterministic parser, and constructs Lean-checked refinement proofs against the clarified LeanSpec reference models. Across 329 designs from four benchmarks, LeanHardware achieves 98%, 98%, 94%, and 91% functional correctness on VerilogEval, RTLLM, CVDP, and ChipBench, respectively. With the same backbone LLM, Stage 1 improves RTL correctness from 81.5% to 96.0% on corrected benchmarks, while Stage 2 establishes unbounded refinement proofs for 79.0% and 92.1% of designs against cycle-level and transaction-level specifications, respectively. Our results show that proof-guided correction further improves weaker LLMs, while for stronger LLMs, specification clarification drives most correctness gains and formal proving primarily provides certification.

arXiv
Formal Methods in Verification
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon