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

通过探索状态转移图生成数百万条带证明的Lean定理

Generating Millions Of Lean Theorems With Proofs By Exploring State Transition Graphs

Lynbrook High School(林布鲁克高中);Purdue University(普渡大学)

David Yin, Jing Gao

AI总结:

本文提出LeanNavigator方法,通过探索状态转移图为现有Lean定理寻找新证明,生成470万条定理、10亿token的大规模数据集,并训练出超越ReProver的自动定理证明模型。

摘要:

大型语言模型(LLMs)在生成数学证明方面已展现出显著潜力。然而,一个持续存在的挑战是LLMs偶尔会出错,而即使是一个微小的错误也可能使整个证明失效。像Lean这样的证明助手提供了一种很好的补救措施。它们被设计用于在形式语言中验证证明的每一步,并且近年来研究人员已经创建了AI模型来生成其语言中的证明。然而,大规模Lean证明数据集的稀缺限制了此类自动定理证明(ATP)模型的性能。我们开发了LeanNavigator,这是一种通过寻找证明现有Lean定理的新方法来生成大规模Lean定理和证明数据集的新方法。通过利用交互式Lean客户端和一种高效的证明步骤生成方法,LeanNavigator能够高效地生成带有相应证明的新定理。将这种方法应用于Mathlib4,我们生成了470万条定理,总计10亿个token,比以往的数据集高出一个数量级以上。利用这一庞大的数据集,我们训练了一个AI模型,在定理证明任务中超越了最先进的ReProver模型。这些结果证实了我们的假设,并证明了大型数据集在提升自动定理证明器性能方面的关键作用。

英文摘要:

Large Language Models (LLMs) have demonstrated significant potential in generating mathematical proofs. However, a persistent challenge is that LLMs occasionally make mistakes, while even a minor mistake can invalidate an entire proof. Proof assistants like Lean offer a great remedy. They are designed for verifying each step of a proof in a formal language, and in recent years researchers have created AI models to generate proofs in their languages. However, the scarcity of large-scale datasets of Lean proofs restrict the performance of such Automated Theorem Proving (ATP) models. We developed LeanNavigator, a novel method for generating a large-scale dataset of Lean theorems and proofs by finding new ways to prove existing Lean theorems. By leveraging an interactive Lean client and an efficient method for proof step generation, LeanNavigator efficiently produces new theorems with corresponding proofs. Applying this approach to Mathlib4, we generated 4.7 million theorems totaling 1 billion tokens, surpassing previous datasets by more than an order of magnitude. Using this extensive dataset, we trained an AI model that outperforms the state-of-the-art ReProver model in theorem-proving tasks. These results confirm our hypothesis and demonstrate the critical role of large datasets in improving the performance of automated theorem provers.

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

↑