arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2412.14063cs.SEcs.AI
收藏

Rango:面向自动化软件验证的自适应检索增强证明

Rango: Adaptive Retrieval-Augmented Proving for Automated Software Verification

University of California San Diego(加利福尼亚大学圣迭戈分校);INESC-ID(INESC-ID(里斯本计算机与系统工程研究所));IST, University of Lisbon(里斯本大学高等技术学院);Imperial College London(伦敦帝国学院);University of Massachusetts Amherst(马萨诸塞大学阿默斯特分校)

Kyle Thompson, Nuno Saavedra, Pedro Carrott, Kevin Fisher, Alex Sanchez-Stern, Yuriy Brun, João F. Ferreira, Sorin Lerner, Emily First

AI总结:

Rango 是一个面向 Coq 的全自动证明合成工具,通过在每步证明中利用检索增强技术自适应地引入相关前提和相似证明,在自建基准上比 SOTA 工具 Tactician 多证明 29% 的定理。

摘要:

使用 Coq 等证明助手进行形式化验证能够创建高质量的软件。然而,验证过程需要大量的专业知识和手动编写证明的工作量。最近的研究探索了使用机器学习和大型语言模型(LLMs)来自动化证明合成。这些研究表明,识别相关前提(如引理和定义)有助于合成。我们提出了 Rango,这是一个面向 Coq 的全自动证明合成工具,能够自动识别当前项目中的相关前提和相似证明,并在合成过程中加以利用。Rango 在证明的每一步都使用检索增强技术,自动确定将哪些证明和前提包含在其微调的 LLM 上下文中。通过这种方式,Rango 能够适应项目特性和证明的动态演进状态。我们创建了一个新数据集 CoqStoq,包含来自 GitHub 的 2,226 个开源 Coq 项目和 196,929 个定理,其中既包含训练数据,也包含一个由维护良好的项目组成的精选评估基准。在该基准上,Rango 为 32.0% 的定理合成了证明,比先前最先进的工具 Tactician 多证明了 29% 的定理。我们的评估还表明,Rango 将相关证明添加到其上下文中,使得已证明定理的数量增加了 47%。

英文摘要:

Formal verification using proof assistants, such as Coq, enables the creation of high-quality software. However, the verification process requires significant expertise and manual effort to write proofs. Recent work has explored automating proof synthesis using machine learning and large language models (LLMs). This work has shown that identifying relevant premises, such as lemmas and definitions, can aid synthesis. We present Rango, a fully automated proof synthesis tool for Coq that automatically identifies relevant premises and also similar proofs from the current project and uses them during synthesis. Rango uses retrieval augmentation at every step of the proof to automatically determine which proofs and premises to include in the context of its fine-tuned LLM. In this way, Rango adapts to the project and to the evolving state of the proof. We create a new dataset, CoqStoq, of 2,226 open-source Coq projects and 196,929 theorems from GitHub, which includes both training data and a curated evaluation benchmark of well-maintained projects. On this benchmark, Rango synthesizes proofs for 32.0% of the theorems, which is 29% more theorems than the prior state-of-the-art tool Tactician. Our evaluation also shows that Rango adding relevant proofs to its context leads to a 47% increase in the number of theorems proven.

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

↑