NeurIPS 2026QuestionsPapersAreasAboutMarkdown

Verify0: Can AI Agents Build Formally Verified Software Repositories?

Zhe Ye, Hantao Lou, Yuechun Sun, Peiyang Song, Zhengxu Yan, Timothe Kasriel, Qingyang Zhang, Kaiyu Yang, Soonho Kong, Jingxuan He, Dawn Song

NeurIPS page · OpenReview · Open on the map

Category: LLM Agents, Evals & Benchmarks › Verified Code Synthesis and Testing · Type: benchmark or dataset · Keywords: benchmark, verified code generation, formal verification, AI agents, repository-scale evaluation

Areas: Code & Coding Agents › Code Verification › Verified code generation; Evaluation & Benchmarks › Language Model and Agent Benchmarks › Formal Verification Benchmarks; Benchmarks for LLMs & Agents › Cross-Domain Agent Evaluation › Formal Verification Benchmarks

Summary

Verify0 is a benchmark that evaluates joint implementation and proof synthesis at the repository level, providing 35 multi-module instances across multiple languages, formal specifications, reference implementations, and an audit mechanism to improve reliability.

Explained to a 5-year-old

Some computers help write code, but they don't always make sure the code works. This new test called Verify0 makes the computers try to write code and also prove that the code is correct. It uses many real programs from different languages to see how well the computers do. The test also lets the computers check if the instructions they get are impossible or if the example code is wrong. The results show that even the best computers still have trouble making perfect code for big projects.

Explained to a 5-year-old, longer

People make computers that can write code, but they don't always check if the code is right. To make sure the code is correct, you also need a proof that shows the code follows the rules. The new thing called Verify0 is a test that asks computers to do both: write code and write a proof for it. It uses 35 real projects that have many parts, written in different programming languages like Python and Coq. Each project has a set of rules (called specifications) and a working example (called a reference implementation). The test lets computers try to write code that matches those rules and also prove that their code is correct. If the rules are impossible or the example code is wrong, the test lets computers prove that too, which helps fix mistakes. The results show that even the best computers only solve a few of these projects and often can't finish the hardest proofs. This shows there is still a lot of work to make computers that can reliably write perfect code for big software systems.

For a technical reader

Verify0 is a benchmark for evaluating AI agents that generate both code and formal proofs at the repository level. It provides 35 multi-module Lean 4 repositories with specifications, APIs, and reference implementations, supporting both proof-only and code-and-proof tasks. An audit mechanism allows agents to prove specification unsatisfiability or reference code incorrectness, improving benchmark reliability. Evaluation of state-of-the-art coding agents shows they solve only 18 of 35 instances and close no specifications on the hardest repositories, highlighting current limitations.

Problem

AI agents currently generate code without guaranteeing correctness, and existing benchmarks only assess individual functions or proofs with given implementations, leaving whether agents can produce coherent code and proofs across entire multi-module repositories unknown.

Method

The approach creates a benchmark with 35 multi-module Lean 4 repositories, each containing API interfaces, formal specifications, and reference implementations, and adds an audit mechanism that lets agents prove specification unsatisfiability or reference code incorrectness to catch errors.

Results

The strongest coding agents solved only 18 out of 35 instances and closed no specifications on the hardest repositories, indicating current agents fall short on repository-scale verification.

Contributions

A new benchmark that evaluates joint implementation and proof synthesis at the repository level, featuring 35 multi-module instances across multiple languages, formal specifications, reference implementations, and an audit mechanism to improve reliability.

Practical relevance

It enables researchers and practitioners to evaluate and improve AI agents that produce both correct code and machine-checked proofs, moving toward trustworthy software development.

Research questions this paper is counted under

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction