arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.24036cs.PL
收藏

交互式定理证明中策略库的自动发现

Automated Discovery of Tactic Libraries for Interactive Theorem Proving

Yutong Xin, Jimmy Xin, Gabriel Poesia, Noah Goodman, Qiaochu Chen, Isil Dillig

AI总结:

本文提出基于策略依赖图(TDG)的TacMiner方法,自动发现可复用证明策略并重构证明,较Peano多学3倍策略、缩减26%证明规模,并使证明自动化成功率相对提升172%。

摘要:

实现更简洁、更模块化的证明对于推进使用交互式定理证明器(ITP)的形式化推理至关重要。由于许多ITP(如Rocq和Lean)使用策略式证明,学习更高层次的自定义策略对于证明的模块化和自动化至关重要。本文提出了一种新颖的策略发现方法,该方法利用策略依赖图(TDG)在多个证明中识别可复用的证明策略。TDG在抽象掉不相关的语法细节的同时,捕获策略应用之间的逻辑依赖关系,从而既能发现新策略,也能将现有证明重构为更模块化的形式。我们已在一个名为TacMiner的工具中实现了该技术,并将其与基于反统一的方法Peano进行策略发现的比较。我们的评估表明,TacMiner能学习到3倍于Peano的策略数量,并在所有基准上将证明规模减少了26%。此外,我们的评估还证明了学习自定义策略对证明自动化的益处,使最先进的证明自动化工具在成功率方面实现了172%的相对提升。

英文摘要:

Enabling more concise and modular proofs is essential for advancing formal reasoning using interactive theorem provers (ITPs). Since many ITPs, such as Rocq and Lean, use tactic-style proofs, learning higher-level custom tactics is crucial for proof modularity and automation. This paper presents a novel approach to tactic discovery, which leverages Tactic Dependence Graphs (TDGs) to identify reusable proof strategies across multiple proofs. TDGs capture logical dependencies between tactic applications while abstracting away irrelevant syntactic details, allowing for both the discovery of new tactics and the refactoring of existing proofs into more modular forms. We have implemented this technique in a tool called TacMiner and compare it against an anti-unification-based approach Peano to tactic discovery. Our evaluation demonstrates that TacMiner can learn 3x as many tactics as Peano and reduces the size of proofs by 26% across all benchmarks. Furthermore, our evaluation demonstrates the benefits of learning custom tactics for proof automation, allowing a state-of-the-art proof automation tool to achieve a relative increase of 172% in terms of success rate.

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

↑