VeruSAGE-Bench: A Benchmark Suite for Rust System Verification

Chenyuan Yang, Natalie Neamtu, Chris Hawblitzel, Jacob R. Lorch, Shan LuNeurIPS 2026 Evaluations and Datasets Track Poster 2026

TL;DR

AI coding agents can write a lot of code fast, but can they prove that complex systems software is actually correct? VeruSAGE-Bench puts large language models (LLMs) to the test on 849 real-world formal verification tasks from Rust operating systems, storage engines, and memory allocators. While frontier models like Claude Opus 4.5 can now solve an impressive 94% of these proofs, they still stumble—and rack up hefty bills—when asked to decompose hard system proofs from scratch.

What Problem Does This Paper Address?

Formal verification lets engineers mathematically prove that software obeys its specification—no crashes, no memory corruption, no logic bugs. Tools like Verus bring this superpower to Rust by letting developers write specifications (pre- and post-conditions) and proof annotations alongside their code, which an automated SMT solver then checks.

Writing these proofs, however, takes serious human expertise. Naturally, researchers have turned to LLMs to automate proof generation. The catch? Existing benchmarks mostly test small, isolated algorithmic puzzles (like binary search) with 8 to 25 lines of specification. Real-world systems are a completely different beast: a single function might interact with dozens of data structures and state-machine invariants. Without a system-scale benchmark, nobody really knew if LLMs could handle the leap from toy problems to production-grade Rust systems.

Methods

To test LLMs' true proof-writing abilities without giving away hints, the authors built an automated extraction pipeline using Verus's log-all mode. For each target function in a large system, they extracted all of its cross-file dependencies into a single, stand-alone Rust file—and then stripped out all human-written proof annotations.

They evaluated six models (o4-mini, GPT-5, Claude Sonnet 4, Sonnet 4.5, Opus 4.5, and open-weight Qwen3.5) under two agentic setups:

  • Hands-Off: A generic coding agent (GitHub Copilot CLI or OpenAI Codex CLI) given access to Verus, a "cheat checker" (to ensure it doesn't alter the problem), and the Verus standard library (vstd). The model explores and iterates at its own pace.
  • Hands-On: A custom-built planner-dispatcher agent (extending AutoVerus) with 16+ specialized sub-agents for logic, arithmetic, and quantifier instantiation, capped at 20 steps or 20 minutes per task.

Datasets

VeruSAGE-Bench consists of 849 proof tasks drawn from eight open-source Verus-verified Rust systems, including an OS page table (NRKernel), a Kubernetes controller (Anvil), a sharded key-value store (IronKV), a memory allocator (mimalloc), and a brand-new operating system (Atmosphere) that wasn't public until November 2025—ensuring it wasn't in the models' training data.

Compared to prior benchmarks, VeruSAGE-Bench tasks average 498 lines of specification (more than 20× larger) and 54 lines of human-written proof. They also rely far less on loop invariants and much more on advanced features like assert forall, bit-vector solvers, and by(compute).

Figure 1: Fraction of task files in each benchmark that use selected Verus proof features.

For the 460 tasks where human experts used helper lemmas, the authors also created a No-Lemma track that removes those lemmas entirely, forcing the LLM to decompose the proof from scratch.

Key Insights and Ideas

  • Generic agents beat custom ones for frontier models: While the structured Hands-On agent boosted weaker models (lifting o4-mini from 17% to 41%), it actually hurt stronger models like Sonnet 4.5 (dropping it from 81% to 67%). Frontier models perform better when given the freedom to explore the codebase and iterate with Verus at their own pace.
  • It's not just memorization: On Atmosphere—the post-training-cutoff OS—Sonnet 4.5 and Opus 4.5 scored 83% and 93%, matching their overall benchmark performance. Even more remarkably, LLMs completed 33 proofs in an OS project that human experts hadn't finished yet.
  • LLMs write "chatty" proofs: Sonnet 4.5's proofs share a median overlap of just 6.5% with human proofs and are much longer (median 24 lines vs. 9 for humans). Because the model isn't sure what the SMT solver can deduce on its own, it guesses and adds redundant assertions until Verus says yes.
  • Where frontier models still hit a wall: Even the best models struggle with three patterns: inferring inductive invariants (strengthening a property so it holds across state transitions), reasoning through procedural macros, and trusting deep abstractions (relying on lemmas rather than peeking inside hidden function bodies).

Key Results

  • Overall Success: Success rates in Hands-Off mode ranged from 17% (o4-mini) to 50% (GPT-5), 81% (Sonnet 4.5), and 94% (Opus 4.5, solving 797/849 tasks). Open-weight Qwen3.5 landed between o4-mini and GPT-5 (25% Hands-Off, 45% Hands-On).
  • The No-Lemma Penalty: Removing helper lemmas caused Sonnet 4.5 to drop from 71% to 57%. Opus 4.5 held up better (92% to 87%), but its average time and cost exploded from 15.3 minutes and $13.65 per task to 30.8 minutes and $52.00. On the hardest project (Anvil Controller), Opus 4.5 solved only 41% of no-lemma tasks at $96 per task.
Figure 4: % of tasks accomplished within a certain time (min), for Hands-Off (left) and Hands-On (right), on the same log scale. Hands-On stops at its 20-minute limit; the shaded region in the left panel marks times beyond it. Markers show the final success rate of each model; times of Opus 4.5 are recorded per minute.

Limitations and Future Work

VeruSAGE-Bench evaluates proof synthesis given a fixed, human-written specification; it does not test whether LLMs can write the specifications themselves or maintain proofs over a project's lifecycle. It also extracts cross-file dependencies into single files, leaving full-repository navigation as an open challenge. Looking ahead, the authors highlight the need to drive down token costs, train smaller models for system-level proofs, and teach agents how to discover inductive invariants.

Summary updated

BibTeX
@inproceedings{yang2026verusage,
  author = {Chenyuan Yang and Natalie Neamtu and Chris Hawblitzel and Jacob R. Lorch and Shan Lu},
  title = {{VeruSAGE-Bench: A Benchmark Suite for Rust System Verification}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=gEed4gXpAZ},
}
Figure