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

Lean-auto:Lean 4 与自动定理证明器之间的接口

Lean-auto: An Interface between Lean 4 and Automated Theorem Provers

Yicheng Qian, Joshua Clune, Clark Barrett, Jeremy Avigad

AI总结:

本文提出Lean-auto,一种在Lean 4与自动定理证明器之间的翻译算法,首次在Lean 4中实现基于ATP的通用证明自动化,保证健全性并在Mathlib4上优于现有工具。

摘要:

证明自动化对于ITP中的大规模形式化数学以及软件/硬件验证项目至关重要。被称为hammers的复杂工具已被开发出来,以利用ATP的力量在Coq和Isabelle等ITP中提供通用证明自动化。hammer的一个重要组成部分是从ITP的逻辑系统到ATP的逻辑系统的翻译算法。在本文中,我们提出了一种针对基于依赖类型理论的ITP的新型翻译算法。该算法在Lean 4中实现,名为Lean-auto。当与ATP结合时,Lean-auto首次在Lean 4中提供了基于ATP的通用证明自动化。主要翻译过程的健全性得到保证,实验结果表明,我们的算法足够完备,可以自动化证明Lean 4实际使用中出现的许多问题。我们还发现,在Lean 4的数学库Mathlib4上,Lean-auto解决的问题比现有工具更多。

英文摘要:

Proof automation is crucial to large-scale formal mathematics and software/hardware verification projects in ITPs. Sophisticated tools called hammers have been developed to provide general-purpose proof automation in ITPs such as Coq and Isabelle, leveraging the power of ATPs. An important component of a hammer is the translation algorithm from the ITP's logical system to the ATP's logical system. In this paper, we propose a novel translation algorithm for ITPs based on dependent type theory. The algorithm is implemented in Lean 4 under the name Lean-auto. When combined with ATPs, Lean-auto provides general-purpose, ATP-based proof automation in Lean 4 for the first time. Soundness of the main translation procedure is guaranteed, and experimental results suggest that our algorithm is sufficiently complete to automate the proof of many problems that arise in practical uses of Lean 4. We also find that Lean-auto solves more problems than existing tools on Lean 4's math library Mathlib4.

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

↑