arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2603.19715cs.AI
收藏

神经符号证明生成用于系统软件验证的扩展

Neuro-Symbolic Proof Generation for Scaling Systems Software Verification

State Key Laboratory of Novel Software Technology, Nanjing University, China(南京大学新型软件技术国家重点实验室);School of Computer Science, Nanjing University, China(南京大学计算机科学学院);Department of Computer Science, ETH Zurich, Switzerland(苏黎世联邦理工学院计算机科学系);School of Computing and Mathematical Sciences, Birkbeck, University of London, UK(伦敦大学伯克贝克学院计算与数学科学学院)

Baoding He, Zenan Li, Wei Sun, Yuan Yao, Taolue Chen, Xiaoxing Ma, Zhendong Su

AI总结:

本文提出一种神经符号证明生成框架,通过结合大语言模型和交互式定理证明工具,实现系统级验证的自动化证明搜索,有效提升软件验证的可扩展性。

摘要:

通过交互式定理证明进行形式验证日益用于确保关键系统的正确性,但构建大型证明脚本仍高度手动,限制了可扩展性。大语言模型(LLMs)在数学推理方面的进展使其在软件验证中的整合日益具有前景。本文介绍了一种神经符号证明生成框架,旨在自动化系统级验证项目的证明搜索。该框架在证明状态上执行最佳优先树搜索,反复查询LLM获取下一步证明步骤。在神经侧,我们使用证明状态-步骤对的数据集微调LLMs;在符号侧,我们整合了多种ITP工具来修复被拒绝的步骤、过滤和排序证明状态,并在搜索进度停滞时自动解决子目标。这种协同作用使LLM适应更加数据高效,并在语义指导下修剪搜索空间。我们将其框架实现于新的Isabelle REPL上,该REPL暴露了细粒度的证明状态和自动化工具,并在FVEL seL4基准和额外的Isabelle开发中进行了评估。在seL4上,系统证明了多达77.6%的定理,显著超越了之前的LLM方法和独立的Sledgehammer,同时解决了更多多步证明。在进一步的Isabelle基准测试中,结果表明具有很强的泛化能力,表明了一条通往可扩展自动化软件验证的可行路径。

英文摘要:

Formal verification via interactive theorem proving is increasingly used to ensure the correctness of critical systems, yet constructing large proof scripts remains highly manual and limits scalability. Advances in large language models (LLMs), especially in mathematical reasoning, make their integration into software verification increasingly promising. This paper introduces a neuro-symbolic proof generation framework designed to automate proof search for system-level verification projects. The framework performs a best-first tree search over proof states, repeatedly querying an LLM for the next candidate proof step. On the neural side, we fine-tune LLMs using datasets of proof state-step pairs; on the symbolic side, we incorporate a range of ITP tools to repair rejected steps, filter and rank proof states, and automatically discharge subgoals when search progress stalls. This synergy enables data-efficient LLM adaptation and semantics-informed pruning of the search space. We implement the framework on a new Isabelle REPL that exposes fine-grained proof states and automation tools, and evaluate it on the FVEL seL4 benchmark and additional Isabelle developments. On seL4, the system proves up to 77.6\% of the theorems, substantially surpassing previous LLM-based approaches and standalone Sledgehammer, while solving significantly more multi-step proofs. Results across further Isabelle benchmarks demonstrate strong generalization, indicating a viable path toward scalable automated software verification.

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

↑