Towards Repository-Level Program Verification with Large Language Models

Si Cheng Zhong, Xujie Si
8/31/2025
cs.SEcs.AIcs.PL

No official code found. Best implementation: GouQi12138/RVBench (1 star, last commit 2025-08-24).

Abstract

Recent advancements in large language models (LLMs) suggest great promises in code and proof generations. However, scaling automated formal verification to real-world projects requires resolving cross-module dependencies and global contexts, which are crucial challenges overlooked by existing LLM-based methods with a special focus on targeting isolated, function-level verification tasks. To systematically explore and address the significant challenges of verifying entire software repositories, we introduce RVBench, the first verification benchmark explicitly designed for repository-level evaluation, constructed from four diverse and complex open-source Verus projects. We further introduce RagVerus, an extensible framework that synergizes retrieval-augmented generation with context-aware prompting to automate proof synthesis for multi-module repositories. RagVerus triples proof pass rates on existing benchmarks under constrained model inference budgets, and achieves a 27% relative improvement on the more challenging RVBench benchmark, demonstrating a scalable and sample-efficient verification solution.

View on arXivView PDF

Code Implementations(1)

GouQi12138/RVBenchCommunity65%

RVBench benchmark and RAGVerus experiment repository for the paper "Towards Repository-Level Program Verification with Large Language Models"

10Aug 24, 20251 years ago

Similar Papers

Cite this paper

@article{zhong2025towards,
  title  = {Towards Repository-Level Program Verification with Large Language Models},
  author = {Si Cheng Zhong and Xujie Si},
  year   = {2025},
  eprint = {2509.25197},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2509.25197v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2509.25197.svg)](https://codeofpaper.com/paper/2509.25197)

Discussion