CLEVER: A Curated Benchmark for Formally Verified Code Generation
Not on the map. Why?
Abstract (arXiv)
We introduce rm Csmall LEVER, a high-quality, curated benchmark of 161 problems for end-to-end verified code generation in Lean. Each problem consists of (1) the task of generating a specification that matches a held-out ground-truth specification, and (2) the task of generating a Lean implementation that provably satisfies this specification. Unlike prior benchmarks, rm Csmall LEVER avoids test-case supervision, LLM-generated annotations, and specifications that leak implementation logic or allow vacuous solutions. All outputs are verified post-hoc using Lean's type checker to ensure machine-checkable correctness. We use rm Csmall LEVER to evaluate several few-shot and agentic approaches based on state-of-the-art language models. These methods all struggle to achieve full verification, establishing it as a challenging frontier benchmark for program synthesis and formal reasoning. Our benchmark can be found on GitHub(https://github.com/trishullab/clever) as well as HuggingFace(https://huggingface.co/datasets/amitayusht/clever). All our evaluation code is also available online(https://github.com/trishullab/clever-prover).
Key facts. Cited by 27 papers in the map (data through 7 Oct 2026). Builds on 21 of its 51 references that are in the map. First posted on arXiv 20 May 2025.
Builds on
21 of 51 references.
References · 21
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
- 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 1,906
- 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,332
- 2023LeanDojo: Theorem Proving with Retrieval-Augmented Language Modelscited by 414
- 2021MiniF2F: a cross-system benchmark for formal Olympiad-level mathematicscited by 380
- 2020Generative Language Modeling for Automated Theorem Provingcited by 379
- 2022HyperTree Proof Search for Neural Theorem Provingcited by 192
- 2025Kimina-Prover Preview: Towards Large Formal Reasoning Models with Reinforcement Learningcited by 173
- 2019The Lean mathematical librarycited by 127
- 2025Goedel-Prover: A Frontier Model for Open-Source Automated Theorem Provingcited by 126
- 2024Formal Mathematical Reasoning: A New Frontier in AIcited by 80
9 more
- 2023An In-Context Learning Agent for Formal Theorem-Provingcited by 78
- 2024DafnyBench: A Benchmark for Formal Software Verificationcited by 54
- 2023Verus: Verifying Rust Programs using Linear Ghost Types (extended version)cited by 50
- 2024miniCTX: Neural Theorem Proving with (Long-)Contextscited by 35
- 2024AlphaVerus: Bootstrapping Formally Verified Code Generation through Self-Improving Translation and Treefinementcited by 33
- 2024Automated Proof Generation for Rust Code via Self-Evolutioncited by 31
- 2024FVEL: Interactive Formal Verification Environment with Large Language Models via Theorem Provingcited by 22
- 2024miniCodeProps: a Minimal Benchmark for Proving Code Propertiescited by 18
- 2025Proving the Coding Interview: A Benchmark for Formally Verified Code Generationcited by 18
Built on by
Citing papers per year: 2025: 9; 2026: 18.
27 papers.
Sort:
By area:
- 2025VERINA: Benchmarking Verifiable Code Generationcited by 30
- 2025A benchmark for vericoding: formally verified program synthesiscited by 16
- 2025StepFun-Formalizer: Unlocking the Autoformalization Potential of LLMs through Knowledge-Reasoning Fusioncited by 15
- 2025A Comprehensive Survey on Benchmarks and Solutions in Software Engineering of LLM-Empowered Agentic Systemcited by 15
- 2026AlgoVeri: An Aligned Benchmark for Verified Code Generation on Classical Algorithmscited by 11
- 2026Goedel-Code-Prover: Hierarchical Proof Search for Open State-of-the-Art Code Verificationcited by 10
- 2025VeriEquivBench: An Equivalence Score for Ground-Truth-Free Evaluation of Formally Verifiable Codecited by 7
- 2026VeriSoftBench: Repository-Scale Formal Verification Benchmarks for Leancited by 6
- 2025Towards Verified Code Reasoning by LLMscited by 4
- 2026Neural Theorem Proving for Verification Conditions: A Real-World Benchmarkcited by 4
- 2026Agentic Code Reasoningcited by 4
- 2026Agentic Proving for Program Verificationcited by 3
15 more
- 2025SysMoBench: Evaluating AI on Formally Modeling Complex Real-World Systemscited by 2
- 2025MINIF2F-DAFNY: LLM-Guided Mathematical Theorem Proving via Auto-Active Verificationcited by 2
- 2026CodeSpecBench: Benchmarking LLMs for Executable Behavioral Specification Generationcited by 2
- 2026Certified Program Synthesis with a Multi-Modal Verifiercited by 2
- 2026s2n-bignum-bench: A practical benchmark for evaluating low-level code reasoning of LLMscited by 1
- 2026Intent-aligned Formal Specification Synthesis via Traceable Refinementcited by 1
- 2026VeriContest: A Competitive-Programming Benchmark for Verifiable Code Generationcited by 1
- 2026P3: Joint Program-and-Proof Planning for Verified Code Generationcited by 1
- 2026Vero: Can AI Agents Build Formally Verified Software Repositories?cited by 1
- 2025BRIDGE: Building Representations In Domain Guided Program Synthesiscited by 0
- 2026CangjieBench: Benchmarking LLMs on a Low-Resource General-Purpose Programming Languagecited by 0
- 2026Teaching LLMs Program Semantics via Symbolic Execution Tracescited by 0
- 2026VeriScale: Adversarial Test-Suite Scaling for Verifiable Code Generationcited by 0
- 2026FVSpec: Real-World Property-Based Tests as Lean Challengescited by 0
- 2026Self-Spec Verifiable Code Generationcited by 0
- 2026Self-Spec Verifiable Code Generation30 Sep 2026
- 2026Vero: Can AI Agents Build Formally Verified Software Repositories?13 Aug 2026
- 2026P3: Joint Program-and-Proof Planning for Verified Code Generation10 Aug 2026
- 2026FVSpec: Real-World Property-Based Tests as Lean Challenges31 May 2026
- 2026Agentic Proving for Program Verification22 May 2026
- 2026VeriScale: Adversarial Test-Suite Scaling for Verifiable Code Generation21 May 2026
- 2026VeriContest: A Competitive-Programming Benchmark for Verifiable Code Generation8 May 2026
- 2026Teaching LLMs Program Semantics via Symbolic Execution Traces7 May 2026
- 2026Certified Program Synthesis with a Multi-Modal Verifier17 Apr 2026
- 2026CodeSpecBench: Benchmarking LLMs for Executable Behavioral Specification Generation14 Apr 2026
- 2026Intent-aligned Formal Specification Synthesis via Traceable Refinement12 Apr 2026
- 2026Goedel-Code-Prover: Hierarchical Proof Search for Open State-of-the-Art Code Verification18 Mar 2026
15 more
- 2026s2n-bignum-bench: A practical benchmark for evaluating low-level code reasoning of LLMs15 Mar 2026
- 2026CangjieBench: Benchmarking LLMs on a Low-Resource General-Purpose Programming Language15 Mar 2026
- 2026Agentic Code Reasoning2 Mar 2026
- 2026VeriSoftBench: Repository-Scale Formal Verification Benchmarks for Lean20 Feb 2026
- 2026AlgoVeri: An Aligned Benchmark for Verified Code Generation on Classical Algorithms10 Feb 2026
- 2026Neural Theorem Proving for Verification Conditions: A Real-World Benchmark26 Jan 2026
- 2025MINIF2F-DAFNY: LLM-Guided Mathematical Theorem Proving via Auto-Active Verification11 Dec 2025
- 2025BRIDGE: Building Representations In Domain Guided Program Synthesis26 Nov 2025
- 2025A Comprehensive Survey on Benchmarks and Solutions in Software Engineering of LLM-Empowered Agentic System10 Oct 2025
- 2025VeriEquivBench: An Equivalence Score for Ground-Truth-Free Evaluation of Formally Verifiable Code7 Oct 2025
- 2025Towards Verified Code Reasoning by LLMs30 Sep 2025
- 2025SysMoBench: Evaluating AI on Formally Modeling Complex Real-World Systems27 Sep 2025
- 2025A benchmark for vericoding: formally verified program synthesis26 Sep 2025
- 2025StepFun-Formalizer: Unlocking the Autoformalization Potential of LLMs through Knowledge-Reasoning Fusion6 Aug 2025
- 2025VERINA: Benchmarking Verifiable Code Generation29 May 2025
- 2025StepFun-Formalizer: Unlocking the Autoformalization Potential of LLMs through Knowledge-Reasoning Fusioncited by 15
- 2025Towards Verified Code Reasoning by LLMscited by 4
- 2026Agentic Code Reasoningcited by 4
- 2025MINIF2F-DAFNY: LLM-Guided Mathematical Theorem Proving via Auto-Active Verificationcited by 2
- 2026s2n-bignum-bench: A practical benchmark for evaluating low-level code reasoning of LLMscited by 1
- 2026s2n-bignum-bench: A practical benchmark for evaluating low-level code reasoning of LLMs15 Mar 2026
- 2026Agentic Code Reasoning2 Mar 2026
- 2025MINIF2F-DAFNY: LLM-Guided Mathematical Theorem Proving via Auto-Active Verification11 Dec 2025
- 2025Towards Verified Code Reasoning by LLMs30 Sep 2025
- 2025StepFun-Formalizer: Unlocking the Autoformalization Potential of LLMs through Knowledge-Reasoning Fusion6 Aug 2025
- 2025VERINA: Benchmarking Verifiable Code Generationcited by 30
- 2025A benchmark for vericoding: formally verified program synthesiscited by 16
- 2026AlgoVeri: An Aligned Benchmark for Verified Code Generation on Classical Algorithmscited by 11
- 2026Goedel-Code-Prover: Hierarchical Proof Search for Open State-of-the-Art Code Verificationcited by 10
- 2025VeriEquivBench: An Equivalence Score for Ground-Truth-Free Evaluation of Formally Verifiable Codecited by 7
- 2026VeriSoftBench: Repository-Scale Formal Verification Benchmarks for Leancited by 6
- 2026Neural Theorem Proving for Verification Conditions: A Real-World Benchmarkcited by 4
- 2025SysMoBench: Evaluating AI on Formally Modeling Complex Real-World Systemscited by 2
- 2026CodeSpecBench: Benchmarking LLMs for Executable Behavioral Specification Generationcited by 2
- 2026Certified Program Synthesis with a Multi-Modal Verifiercited by 2
- 2026Intent-aligned Formal Specification Synthesis via Traceable Refinementcited by 1
- 2026VeriContest: A Competitive-Programming Benchmark for Verifiable Code Generationcited by 1
12 most cited of 20 All 20 (JSON)
- 2026Self-Spec Verifiable Code Generation30 Sep 2026
- 2026Vero: Can AI Agents Build Formally Verified Software Repositories?13 Aug 2026
- 2026P3: Joint Program-and-Proof Planning for Verified Code Generation10 Aug 2026
- 2026FVSpec: Real-World Property-Based Tests as Lean Challenges31 May 2026
- 2026VeriScale: Adversarial Test-Suite Scaling for Verifiable Code Generation21 May 2026
- 2026VeriContest: A Competitive-Programming Benchmark for Verifiable Code Generation8 May 2026
- 2026Teaching LLMs Program Semantics via Symbolic Execution Traces7 May 2026
- 2026Certified Program Synthesis with a Multi-Modal Verifier17 Apr 2026
- 2026CodeSpecBench: Benchmarking LLMs for Executable Behavioral Specification Generation14 Apr 2026
- 2026Intent-aligned Formal Specification Synthesis via Traceable Refinement12 Apr 2026
- 2026Goedel-Code-Prover: Hierarchical Proof Search for Open State-of-the-Art Code Verification18 Mar 2026
- 2026CangjieBench: Benchmarking LLMs on a Low-Resource General-Purpose Programming Language15 Mar 2026
12 newest of 20 All 20 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2026SWE-Proof: Can Language Models Resolve Real-World Issues with Machine-Checked Proofs?
- 2026Automating Formal Verification with Agent-Guided Tree Search
- 2026WybeCoder: Verified Imperative Code Generation
- 2024Evaluating the Ability of Large Language Models to Generate Verifiable Specifications in VeriFast
- 2026LiveFMBench: Unveiling the Power and Limits of Agentic Workflows in Specification Generation
- 2026Beyond Type-checking: Towards Holistic Evaluation of Formal Specification Generation
- 2026CoRE: A Fine-Grained Code Reasoning Benchmark Beyond Output Prediction
- 2026FORALL-LEAN-AGENT for Auditable Reasoning in Formal Mathematics and Software Verification