← Lab /Software

KVerus verifies 80.2% of single-file Rust tasks and scales to repository-level verification

KVerus can adapt to code and toolchain changes to automatically generate and repair Verus proofs for Rust code

Software arXiv 5 May 2026 Method Prototype evidence

Published as “KVerus: Scalable and Resilient Formal Verification Proof Generation for Rust Code”

Why it matters

The system makes formal verification of large, evolving Rust codebases-such as OS kernels-practically affordable, cutting manual proof effort and cost.

Summary

KVerus verifies 80.2% of single-file tasks (vs. AutoVerus 56.9%) and 51.0% of repository-level tasks (vs. 4.5% baseline), while also producing upstream-accepted proofs for 23 previously unverified functions in the Asterinas kernel; the evidence comes from benchmark experiments and shows strong improvement but with some remaining syntax-error issues.

What they found 3

  1. High success on single-file benchmarks

    “Across three single-file benchmarks, KVerus verifies 80.2% of tasks, outperforming the AutoVerus (56.9%)”

  2. Strong performance on repository-level benchmarks

    “KVerus achieves a 51.0% success rate, compared to 4.5% for a multi-round prompting baseline.”

  3. Real-world impact on Asterinas kernel

    “KVerus produces upstream-accepted proofs that verify 23 previously unverified functions (21.0% of proof code) in the memory-management module.”

Caveats 4

  • KVerus exhibits a higher relative proportion of syntax errors than AutoVerus
  • KVerus verifies 31.3% of tasks, while the baseline verifies only 3.0%
  • performing retrieval and planning only once at the beginning of verification may fail to fetch all the dependent code and lemma functions required to complete a proof.
  • We do not include AutoVerus or AlphaVerus because they are designed for single-file verification and do not support repository-level verification.

What’s new here 4

  • Retrieval-augmented generation of proofs using a dynamic knowledge base of code metadata, lemmas, and toolchain specifics.
  • Dependency-aware program analysis that builds cross-module dependency graphs for proof synthesis.
  • Semantic lemma indexing with LLM-generated summaries to enable lemma discovery and reuse across files.
  • Error-driven self-refinement that automatically repairs proofs after code or toolchain changes.