Saved in:
Bibliographic Details
Main Authors: Yang, Jun, Sun, Yuechun, Wu, Yi, Caridad, Rodrigo, Yuan, Yongwei, Yao, Jianan, Lu, Shan, Pei, Kexin
Format: Preprint
Published: 2026
Subjects:
Online Access:https://arxiv.org/abs/2603.25810
Tags: Add Tag
No Tags, Be the first to tag this record!
Table of Contents:
  • Large Language Models (LLMs) have shown promising results in automating formal verification. However, existing approaches treat proof generation as a static, end-to-end prediction over source code, relying on limited verifier feedback and lacking access to concrete program behaviors. We present EXVERUS, a counterexample-guided framework that enables LLMs to reason about proofs using behavioral feedback via counterexamples. When a proof fails, EXVERUS automatically generates and validates counterexamples, and then guides the LLM to generalize them into inductive invariants to block these failures. Our evaluation shows that EXVERUS significantly improves proof accuracy, robustness, and token efficiency over the state-of-the-art prompting-based Verus proof generator.