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

基于大语言模型的符号系统学习方法

A Learning Method for Symbolic Systems Using Large Language Models

Key Laboratory of High Confidence Software Technologies (Peking University), Ministry of Education(北京大学计算机学院;教育部高可信软件技术重点实验室);School of Computer Science, Peking University

Jian Fang, Yixun Yao, Yingfei Xiong

AI总结:

本文提出LLM2Ltac,利用大语言模型作为智能合成器从数据中提取纯符号战术,提升符号证明器的自动证明能力。

摘要:

自动化定理证明对于安全关键系统的形式验证至关重要。随着正式证明库的增长,从现有证明中学习成为自然范式。然而,当前基于学习的方法主要训练大语言模型(LLMs)作为端到端证明者,导致资源消耗大且系统不透明。相反,传统符号证明器计算效率高,但如何从数据自动改进这些求解器仍是一个开放挑战。本文通过提出LLM2Ltac,首次利用大语言模型的推理能力,不作为端到端证明者,而是作为智能合成器,从数据中挖掘纯符号战术。给定一个正式证明库,LLM2Ltac要求LLM识别潜在的证明策略并将其形式化为可重用的战术。这些战术经过验证其有效性与通用性,并最终整合到符号证明器中,提升其自动证明能力,而无需LLM的运行时成本。我们在Rocq 8.20.0上实现了LLM2Ltac,并从标准库中的11,725个定理中挖掘战术。我们在四个大型现实世界验证项目中评估了我们的方法,即compcert、Coq-Art、Ext-Lib和VFA。结果表明,挖掘的战术使CoqHammer能够证明23.87%更多的定理,当将改进的CoqHammer与Claude Code结合时,总证明定理数量增加了9.90%,表明了LLM2Ltac的有效性。

英文摘要:

Automated theorem proving is essential for the formal verification of safety-critical systems. As the corpus of formal proofs grows, a natural paradigm is to learn from existing proofs. However, current learning-based approaches predominantly train Large Language Models (LLMs) as end-to-end provers, which yields resource-intensive, opaque systems. Conversely, while traditional symbolic provers are computationally efficient, how to automatically improve these solvers from data remains an open challenge. This paper bridges this gap by proposing LLM2Ltac, the first approach that leverages the reasoning power of LLMs not as end-to-end provers, but as intelligent synthesizers to mine purely symbolic tactics from data. Given a corpus of formal proofs, LLM2Ltac asks an LLM to identify latent proof strategies and formalize them into reusable tactics. These tactics are verified for validity and generalizability, and finally integrated into symbolic provers to enhance their automated proving capabilities without the runtime cost of LLMs. We implement LLM2Ltac on Rocq 8.20.0 and mine tactics from 11,725 theorems in the standard library. We evaluate our approach on 6,199 theorems from four large real-world verification projects, namely, compcert, Coq-Art, Ext-Lib, and VFA. Results show that the mined tactics improve CoqHammer to prove 23.87% more theorems, and when integrating the improved CoqHammer with Claude Code, the overall proved theorems increases by 9.90%, indicating the effectiveness of LLM2Ltac.

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

↑