arXiv:2611.00287cs.SEOct 2026

Manuscript Offprint

arXiv:2611.00287

VerusWeave: A Benchmark for Proof Repair in Concurrent Verus Programs

Pedro Ribeiro, Martim Afonso, André Vasconcelos, João F. Ferreira

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

Pedro Ribeiro*, Martim Afonso*, André Vasconcelos*, João F. Ferreira†

*INESC-ID and Instituto Superior Técnico, Universidade de Lisboa, Portugal

†INESC-ID and Faculty of Engineering, University of Porto, Portugal

Abstract—Concurrent software underpins critical infrastructure, including operating systems and databases, yet thread interactions can have bugs that bypass conventional testing. Verus extends Rust with formal verification capabilities, enabling developers to specify, implement and prove the correctness of concurrent code in the same language. Although coding agents have been explored for automated proof construction, existing Verus benchmarks offer limited coverage of concurrency-specific examples that connect atomic operations to abstract protocols.

To address this gap, we introduce VerusWeave, the first benchmark dedicated to concurrent proof repair, derived from four open-source projects. It comprises 75 focused tasks and 17 full-module variants that exercise features used to verify low-level concurrent code. Tasks remove selected proof annotations and require agents to fill gaps, while preserving executable code and specifications. The evaluation harness validates repairs using Verus and a change checker, recording solutions, execution traces, and resource usage. An initial evaluation of four general-purpose coding-agent harnesses achieved 75–85% success on focused tasks and 29–47% on full-module variants, highlighting the challenge of autonomous module-wide repairs. VerusWeave provides a reusable foundation for evaluating automated proof construction for concurrent software.

Dataset: https://doi.org/10.5281/zenodo.23540079.

Video: https://youtu.be/cOC_ilmSATY.

Index Terms—benchmark, proof repair, concurrent software, Verus, coding agents

I. INTRODUCTION

Large Language Models (LLMs) and autonomous programming agents are transforming software development, but generated code is not necessarily correct, and its growing volume increases verification demands. Providing stronger correctness guarantees without prohibitive development effort is therefore increasingly important.

Formal verification addresses this need by mathematically establishing that programs satisfy their specifications, unlike testing, which examines finitely many inputs. However, its adoption remains limited by the expertise, cost, and maintenance effort required to construct and evolve proofs [1], [2]. LLMs can automate specification generation, invariant inference, and proof construction [3]–[6], while integrating verification into coding agents could further ease the development and maintenance of verified software.

Concurrent software presents a particularly challenging target for this automation. It underpins critical infrastructure, including operating-system kernels, databases, and distributed services, yet bugs may depend on rare thread interleavings that testing struggles to expose [7]. Proving correctness also requires reasoning about inter-thread interference, shared-state invariants, and memory-access permissions, making concurrency a demanding setting for automated proof generation.

Verus [8] provides a foundation for addressing this challenge by extending Rust with specifications and proof constructs for machine-checked verification. Its applications to operating systems and security modules demonstrate the practical relevance of this approach [9]–[11]. Meanwhile, coding agents can iteratively modify code, invoke tools, and respond to compiler and verifier feedback. This makes proof repair a natural target for automation: agents can refine proof annotations until verification succeeds, without changing the executable implementation or specification. Successful verification provides machine-checkable evidence of correctness relative to the encoded specification and verifier assumptions.

Despite growing interest in LLM-assisted verification, existing Verus benchmarks provide limited coverage of the low-level concurrency primitives and proof patterns needed to verify concurrent systems. Consequently, coding agents' ability to repair such proofs, the difficulties they encounter, and the effects of agent and harness design remain underexplored.

To address this gap, we introduce VerusWeave, a benchmark for evaluating agents on concurrent Verus proof repair. Derived from existing Verus projects, it comprises 75 focused tasks and 17 full-module variants exercising low-level concurrency primitives. VerusWeave targets researchers developing automated software repair methods and studying agents effectiveness, failure modes, and resource usage. The dataset contains standalone Rust tasks alongside logs, statistics, and solutions from an initial evaluation. We include an evaluation harness to run the benchmark, validate candidates and inspect run-level JSON records containing validation outcomes, resource statistics, and solution paths.