VERINA: Benchmarking Verifiable Code Generation
Not on the map. Why?
Abstract (arXiv)
Large language models (LLMs) are increasingly integrated in software development, but ensuring correctness in LLM-generated code remains challenging and often requires costly manual review. Verifiable code generation -- jointly generating code, specifications, and proofs of code-specification alignment -- offers a promising path to address this limitation and further unleash LLMs' benefits in coding. Yet, there exists a significant gap in evaluation: current benchmarks often focus on only individual components rather than providing a holistic evaluation framework of all tasks. In this paper, we introduce VERINA (Verifiable Code Generation Arena), a high-quality benchmark enabling a comprehensive and modular evaluation of code, specification, and proof generation as well as their compositions. VERINA consists of 189 manually curated coding tasks in Lean, with detailed problem descriptions, reference implementations, formal specifications, and extensive test suites. Our extensive evaluation of state-of-the-art LLMs reveals significant challenges in verifiable code generation, especially in proof generation, underscoring the need for improving LLM-based theorem provers in verification domains. The best model, OpenAI o3, achieves a 72.6% code correctness rate, 52.3% for specification soundness and completeness, and a mere 4.9% proof success rate (based on one trial per task). We hope VERINA will catalyze progress in verifiable code generation by providing a rigorous and comprehensive benchmark. We release our dataset on https://huggingface.co/datasets/sunblaze-ucb/verina and our evaluation code on https://github.com/sunblaze-ucb/verina.
Key facts. Cited by 30 papers in the map (data through 7 Oct 2026). Builds on 39 of its 68 references that are in the map. First posted on arXiv 29 May 2025.
Builds on
39 of 68 references.
References · 39
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,203
- 2021Program Synthesis with Large Language Modelscited by 3,509
- 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
- 2024Qwen2.5-Coder Technical Reportcited by 1,151
- 2023DSPy: Compiling Declarative Language Model Calls into Self-Improving Pipelinescited by 803
- 2021Asleep at the Keyboard? Assessing the Security of GitHub Copilot's Code Contributionscited by 417
- 2022The Stack: 3 TB of permissively licensed source codecited by 354
- 2025DeepSeek-Prover-V2: Advancing Formal Mathematical Reasoning via Reinforcement Learning for Subgoal Decompositioncited by 270
- 2019The Lean mathematical librarycited by 127
- 2023Baldur: Whole-Proof Generation and Repair with Large Language Modelscited by 118
27 more
- 2021Leveraging Automated Unit Tests for Unsupervised Code Translationcited by 82
- 2024Formal Mathematical Reasoning: A New Frontier in AIcited by 80
- 2023An In-Context Learning Agent for Formal Theorem-Provingcited by 78
- 2023Clover: Closed-Loop Verifiable Code Generationcited by 62
- 2024Towards AI-Assisted Synthesis of Verified Dafny Methodscited by 58
- 2024Enchanting Program Specification Synthesis by Large Language Models using Static Analysis and Program Verificationcited by 55
- 2024DafnyBench: A Benchmark for Formal Software Verificationcited by 54
- 2023Can Large Language Models Transform Natural Language Intent into Formal Method Postconditions?cited by 53
- 2024SpecGen: Automated Generation of Formal Program Specifications via Large Language Modelscited by 51
- 2023Verus: Verifying Rust Programs using Linear Ghost Types (extended version)cited by 50
- 2024AutoVerus: Automated Proof Generation for Rust Codecited by 46
- 2024AlphaVerus: Bootstrapping Formally Verified Code Generation through Self-Improving Translation and Treefinementcited by 33
- 2024Cedar: A New Language for Expressive, Fast, Safe, and Analyzable Authorization (Extended Version)cited by 31
- 2024Automated Proof Generation for Rust Code via Self-Evolutioncited by 31
- 2024Towards Understanding the Characteristics of Code Generation Errors Made by Large Language Modelscited by 28
- 2025CLEVER: A Curated Benchmark for Formally Verified Code Generationcited by 27
- 2024Rango: Adaptive Retrieval-Augmented Proving for Automated Software Verificationcited by 25
- 2024Proof Automation with Large Language Modelscited by 20
- 2024miniCodeProps: a Minimal Benchmark for Proving Code Propertiescited by 18
- 2025Proving the Coding Interview: A Benchmark for Formally Verified Code Generationcited by 18
- 2024Selene: Pioneering Automated Proof in Software Verificationcited by 12
- 2024Laurel: Unblocking Automated Verification with Large Language Modelscited by 10
- 2025Lean-SMT: An SMT tactic for discharging proof goals in Leancited by 9
- 2022Aeneas: Rust Verification by Functional Translationcited by 7
- 2024Evaluating the Ability of Large Language Models to Generate Verifiable Specifications in VeriFastcited by 5
- 2020Tabled Typeclass Resolutioncited by 3
- 2024Verified Foundations for Differential Privacycited by 1
Built on by
Citing papers per year: 2025: 5; 2026: 25.
30 papers.
Sort:
By area:
- 2026Code as Agent Harnesscited by 40
- 2026Large Language Model Reasoning Failurescited by 20
- 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
- 2026Agentic Code Reasoningcited by 4
- 2026SorryDB: Can AI Provers Complete Real-World Lean Theorems?cited by 4
- 2025A Case Study on the Effectiveness of LLMs in Verification with Proof Assistantscited by 3
- 2026Inductive Deductive Synthesis: Enabling AI to Generate Formally Verified Systemscited by 3
- 2026Agentic Proving for Program Verificationcited by 3
- 2025SysMoBench: Evaluating AI on Formally Modeling Complex Real-World Systemscited by 2
18 more
- 2026CodeSpecBench: Benchmarking LLMs for Executable Behavioral Specification Generationcited by 2
- 2026Certified Program Synthesis with a Multi-Modal Verifiercited by 2
- 2026Verus-SpecGym: An Agentic Environment for Evaluating Specification Autoformalizationcited by 2
- 2025Making LLMs Reliable When It Matters Most: A Five-Layer Architecture for High-Stakes Decisionscited by 1
- 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
- 2026Lean4Agent: Formal Modeling and Verification for Agent Workflow and Trajectorycited 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
- 2026Toward an Agentic Infused Software Ecosystemcited by 0
- 2026Automating Formal Verification with Agent-Guided Tree Searchcited by 0
- 2026Projectional Decoding: Towards Semantic-Aware LLM Generationcited by 0
- 2026The Periodic Table of LLM Reasoning: A Structured Survey of Reasoning Paradigms, Methods, and Failure Modescited by 0
- 2026An AI Approach to Verified Production Cryptographic Librariescited by 0
- 2026MemoReason: Evaluating the Effect of Parametric Memory on Contextual Reasoning in LLMscited by 0
- 2026From Verification Failures to Reusable Guidance for Coding Agentscited by 0
- 2026Self-Spec Verifiable Code Generationcited by 0
- 2026Self-Spec Verifiable Code Generation30 Sep 2026
- 2026From Verification Failures to Reusable Guidance for Coding Agents30 Sep 2026
- 2026MemoReason: Evaluating the Effect of Parametric Memory on Contextual Reasoning in LLMs28 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
- 2026An AI Approach to Verified Production Cryptographic Libraries2 Aug 2026
- 2026The Periodic Table of LLM Reasoning: A Structured Survey of Reasoning Paradigms, Methods, and Failure Modes9 Jun 2026
- 2026Lean4Agent: Formal Modeling and Verification for Agent Workflow and Trajectory2 Jun 2026
- 2026Projectional Decoding: Towards Semantic-Aware LLM Generation28 May 2026
- 2026Automating Formal Verification with Agent-Guided Tree Search26 May 2026
- 2026Verus-SpecGym: An Agentic Environment for Evaluating Specification Autoformalization26 May 2026
- 2026Agentic Proving for Program Verification22 May 2026
18 more
- 2026Inductive Deductive Synthesis: Enabling AI to Generate Formally Verified Systems22 May 2026
- 2026Code as Agent Harness18 May 2026
- 2026VeriContest: A Competitive-Programming Benchmark for Verifiable Code Generation8 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
- 2026s2n-bignum-bench: A practical benchmark for evaluating low-level code reasoning of LLMs15 Mar 2026
- 2026SorryDB: Can AI Provers Complete Real-World Lean Theorems?3 Mar 2026
- 2026Agentic Code Reasoning2 Mar 2026
- 2026Toward an Agentic Infused Software Ecosystem24 Feb 2026
- 2026AlgoVeri: An Aligned Benchmark for Verified Code Generation on Classical Algorithms10 Feb 2026
- 2026Large Language Model Reasoning Failures5 Feb 2026
- 2025Making LLMs Reliable When It Matters Most: A Five-Layer Architecture for High-Stakes Decisions10 Nov 2025
- 2025VeriEquivBench: An Equivalence Score for Ground-Truth-Free Evaluation of Formally Verifiable Code7 Oct 2025
- 2025SysMoBench: Evaluating AI on Formally Modeling Complex Real-World Systems27 Sep 2025
- 2025A benchmark for vericoding: formally verified program synthesis26 Sep 2025
- 2025A Case Study on the Effectiveness of LLMs in Verification with Proof Assistants26 Aug 2025
- 2026Code as Agent Harnesscited by 40
- 2026Agentic Proving for Program Verificationcited by 3
- 2026Verus-SpecGym: An Agentic Environment for Evaluating Specification Autoformalizationcited by 2
- 2026Lean4Agent: Formal Modeling and Verification for Agent Workflow and Trajectorycited by 1
- 2026Toward an Agentic Infused Software Ecosystemcited by 0
- 2026Automating Formal Verification with Agent-Guided Tree Searchcited by 0
- 2026From Verification Failures to Reusable Guidance for Coding Agentscited by 0
- 2026From Verification Failures to Reusable Guidance for Coding Agents30 Sep 2026
- 2026Lean4Agent: Formal Modeling and Verification for Agent Workflow and Trajectory2 Jun 2026
- 2026Automating Formal Verification with Agent-Guided Tree Search26 May 2026
- 2026Verus-SpecGym: An Agentic Environment for Evaluating Specification Autoformalization26 May 2026
- 2026Agentic Proving for Program Verification22 May 2026
- 2026Code as Agent Harness18 May 2026
- 2026Toward an Agentic Infused Software Ecosystem24 Feb 2026
- 2026Large Language Model Reasoning Failurescited by 20
- 2026Agentic Code Reasoningcited by 4
- 2026s2n-bignum-bench: A practical benchmark for evaluating low-level code reasoning of LLMscited by 1
- 2026The Periodic Table of LLM Reasoning: A Structured Survey of Reasoning Paradigms, Methods, and Failure Modescited by 0
- 2026MemoReason: Evaluating the Effect of Parametric Memory on Contextual Reasoning in LLMscited by 0
- 2026MemoReason: Evaluating the Effect of Parametric Memory on Contextual Reasoning in LLMs28 Sep 2026
- 2026The Periodic Table of LLM Reasoning: A Structured Survey of Reasoning Paradigms, Methods, and Failure Modes9 Jun 2026
- 2026s2n-bignum-bench: A practical benchmark for evaluating low-level code reasoning of LLMs15 Mar 2026
- 2026Agentic Code Reasoning2 Mar 2026
- 2026Large Language Model Reasoning Failures5 Feb 2026
- 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
- 2026SorryDB: Can AI Provers Complete Real-World Lean Theorems?cited by 4
- 2025A Case Study on the Effectiveness of LLMs in Verification with Proof Assistantscited by 3
- 2026Inductive Deductive Synthesis: Enabling AI to Generate Formally Verified Systemscited by 3
- 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
- 2025Making LLMs Reliable When It Matters Most: A Five-Layer Architecture for High-Stakes Decisionscited by 1
- 2026Intent-aligned Formal Specification Synthesis via Traceable Refinementcited by 1
12 most cited of 18 All 18 (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
- 2026An AI Approach to Verified Production Cryptographic Libraries2 Aug 2026
- 2026Projectional Decoding: Towards Semantic-Aware LLM Generation28 May 2026
- 2026Inductive Deductive Synthesis: Enabling AI to Generate Formally Verified Systems22 May 2026
- 2026VeriContest: A Competitive-Programming Benchmark for Verifiable Code Generation8 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
- 2026SorryDB: Can AI Provers Complete Real-World Lean Theorems?3 Mar 2026
12 newest of 18 All 18 (JSON)