arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.25810cs.PLcs.LG
收藏

ExVerus:通过反例推理进行证明修复

ExVerus: Verus Proof Repair via Counterexample Reasoning

The University of Chicago(芝加哥大学);Purdue University(普渡大学);The University of Toronto(多伦多大学);Microsoft Research(微软研究院)

Jun Yang, Yuechun Sun, Yi Wu, Rodrigo Caridad, Yongwei Yuan, Jianan Yao, Shan Lu, Kexin Pei

AI总结:

ExVerus利用反例推理指导LLM生成更准确的证明,通过自动生成和验证反例来提高证明的鲁棒性和效率。

摘要:

大型语言模型(LLMs)在自动化形式验证中展现出有希望的结果。然而,现有方法将证明生成视为静态的端到端预测,依赖有限的验证器反馈,缺乏对具体程序行为的访问。我们提出了EXVERUS,一个反例引导的框架,使LLM能够通过反例使用行为反馈进行推理。当证明失败时,EXVERUS会自动生成并验证反例,然后指导LLM将这些反例泛化为归纳不变量以阻止这些失败。我们的评估表明,EXVERUS在证明准确性、鲁棒性和令牌效率方面显著优于最先进的基于提示的Verus证明生成器。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑