arXiv:2611.07194cs.SENov 2026

Manuscript Offprint

arXiv:2611.07194

SeVerus: Context-Aware, Gamified Benchmarking for Rust Verification

Álvaro F. Silva, Martim Afonso, Nuno Saavedra, Emily First, Alexandra Mendes, João F. Ferreira

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Álvaro F. Silva¹,†, Martim Afonso²,†, Nuno Saavedra², Emily First³, Alexandra Mendes¹, João F. Ferreira⁴

¹ Faculty of Engineering, University of Porto, Porto, Portugal {up201603524@up.pt, alexandra@archimendes.com} ²INESC-ID & IST, University of Lisbon, Lisbon, Portugal {martim.afonso, nuno.saavedra}@tecnico.ulisboa.pt ³Rutgers University, New Jersey, USA emily.first@rutgers.edu ⁴INESC-ID and Faculty of Engineering, University of Porto, Porto, Portugal joao@joaoff.com

Abstract—Coding agents achieve high success rates on existing benchmarks for Verus, a verifier for Rust programs. These benchmarks typically provide the auxiliary lemmas needed to complete a proof. In practice, however, such lemmas must be discovered and proved. To capture this challenge, we present SEVERUS, a context-aware technique to generate Verus benchmarks that organizes verification tasks into quests, each divided into levels in a gamified manner. Using the original proof dependencies in verified projects, SEVERUS constructs one quest per verification target and progressively removes proof context to create individual levels. These levels range from the easiest, requiring completion of a single missing lemma, to the hardest, requiring a proof of the target without any supporting lemmas. An independent checker rejects changes to executable code, weakened specifications, and unsound proof constructs. A noisy binary search estimates the highest level that an agent can solve reliably.

Applied to six open-source Verus projects, SEVERUS generates 819 quests comprising 10,095 levels. Experiments with Codex using GPT-6 Sol and GPT-6 Luna, and with Claude Code using Sonnet 4.6, show that success decreases and cost increases as proof context is withdrawn. The strongest agent solves the final level of 52 of 60 sampled quests, yet can only reliably solve 35% of their levels, with failures concentrated in longer quests. Successful GPT-6 Sol proofs rarely reproduce the withheld lemmas, using instead alternative proof decompositions. By systematically varying proof context, SEVERUS provides a foundation for constructing verification benchmarks that can continue to challenge increasingly capable coding agents.

Index Terms—formal verification, Verus, Rust, benchmarks, LLM agents, proof generation

I. INTRODUCTION

Coding agents generate complex software with limited human intervention [1], but establishing that their programs satisfy the intended requirements remains challenging [2], [3]. Formal verification offers strong correctness guarantees, but constructing proofs often requires substantial human effort [4]–[10]. Automating proof construction is therefore an important step towards enabling coding agents to produce verified software [11], [12]. This challenge is relevant in systems programming, where correctness is critical and where Rust

has emerged as an increasingly popular language [13], due in part to its emphasis on memory safety and performance. However, memory safety alone does not guarantee that a program satisfies its intended functional requirements [14]. Verus addresses this challenge by extending Rust [15] with deductive verification, allowing developers to specify and prove functional properties of their programs [16]. Although Verus uses SMT solvers [17] to automatically discharge verification conditions, complex proofs often require additional guidance, including loop invariants, intermediate assertions, and auxiliary lemmas. These proof artifacts may depend on other lemmas, giving rise to intricate proof dependencies that must be resolved to verify a program.

Existing studies have evaluated the ability of coding agents to generate proofs for Verus programs. In particular, VeruSAGE-Bench [18] introduces a system-verification benchmark comprising 849 proof tasks extracted from eight open-source Verus repositories. The benchmark's results demonstrate the strong capabilities of modern coding agents, with the best configuration in the original study solving more than 80% of the tasks. More recent models have reportedly achieved even higher success rates, with Claude Opus 4.5 solving 93.9% of tasks at an average cost of $13.65 per task [19]. While these results demonstrate substantial progress in automated proof generation, they leave open an important question: to what extent do existing benchmarks capture the challenges that verification agents face when auxiliary proof artifacts have not yet been developed?

VeruSAGE-Bench does not fully capture the development environment in which proof-generation agents would operate in real-world projects. First, each task is self-contained in a single file that includes the target lemma, the auxiliary lemmas declarations it uses, and the specification functions and type definitions they refer to. This setup effectively assumes that agents already know which lemmas are relevant and can retrieve all necessary context trivially, abstracting away the challenges of navigating a repository and identifying relevant proof artifacts. Second, and more importantly, existing tasks assume

†These authors contributed equally.

that supporting lemmas have already been established. However, in practice, verifying a program may require developing multiple auxiliary lemmas that can themselves depend on further lemmas. Consequently, proving a target property may involve constructing an entire network of supporting proofs rather than completing a single isolated proof.

We introduce SEVERUS, a context-aware technique for gamified benchmarking of Rust verification agents. We define severification as the process of transforming an existing verified project into progressively harder verification tasks by systematically withdrawing its original proof context. An existing verified Rust project is severified by extracting dependencies among proof artifacts to frame evaluation as a game of proof construction. Each verification target defines a quest, organized into successive levels that progressively remove parts of the original proofs. Levels range from completing a single missing lemma to proving the target without its original supporting lemmas. Beyond completing a proof, the higher levels of a quest test whether an agent can decompose a target into intermediate lemmas, discharge the resulting proof obligations, and retrieve the relevant definitions and facts from a large repository.

Applied to six open-source Verus projects, SEVERUS produces SEVERUSBENCH-STRIX, an initial benchmark of 819 quests and 10,095 levels. We evaluate Codex with GPT-6 Sol and GPT-6 Luna. One experiment also includes Claude Code with Sonnet 4.6. For all three models, success decreases and cost increases as proof context is withdrawn. Under a $5 budget per attempt, the strongest configuration solves the final level of 52 of 60 sampled quests, but reliably solves only 35% of their levels, with failures concentrated in longer quests. Successful GPT-6 Sol proofs rarely reproduce the withheld lemmas, instead using alternative proof decompositions.

Research Questions. We address four research questions:

RQ1: How does the availability of proof context affect agents' verification success and cost?

RQ2: To what extent can SEVERUS generate challenging verification tasks?

RQ3: How do agent-generated proofs differ from the original proofs?

RQ4: How does agent behavior vary with the availability of proof context?

Contributions. The main contributions of this paper are:

  • SEVERUS, a new context-aware technique for gamified benchmarking that constructs verification quests with systematically varied proof support.

  • SEVERUSBENCH-STRIX, a benchmark constructed from six real-world repositories, comprising 819 quests and 10,095 levels (tasks).

  • A cost-bounded evaluation method based on noisy binary search that estimates reliable progress through quests without exhaustively evaluating all their levels.

  • An empirical evaluation using two state-of-the-art coding agents to investigate how proof context affects verification success, cost, generated proofs, and agent behavior.

References (48)