arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.17032cs.AIcs.LG
收藏

REFACTOR:学习从证明中提取定理

REFACTOR: Learning to Extract Theorems from Proofs

Cornell University(康奈尔大学);xAI;University of California, Berkeley(加利福尼亚大学伯克利分校);University of Toronto(多伦多大学);Vector Institute(矢量研究院)

Jin Peng Zhou, Yuhuai Wu, Qiyang Li, Roger Grosse

AI总结:

本文提出 REFACTOR 方法训练神经网络从形式化证明中提取可复用定理,在 Metamath 库中提取新定理并重构证明,使证明器超越现有基线。

摘要:

人类数学家通常善于识别模块化且可复用的定理,这些定理使得复杂的数学结果变得触手可及。在本文中,我们提出了一种名为 theoREm-from-prooF extrACTOR(REFACTOR)的新方法,用于训练神经网络在形式化数学定理证明中模仿这种能力。我们在一组未见过的证明上展示,REFACTOR 能够提取出人类在撰写证明时会使用的定理中的 19.6%。将该模型应用于现有的 Metamath 库时,REFACTOR 提取出了 16 个新定理。借助新提取的定理,我们表明 MetaMath 数据库中的现有证明可以被重构。这些新定理在重构后被非常频繁地使用,平均使用次数为 733.5 次,并有助于缩短证明长度。最后,我们证明,在基于新定理重构的数据集上训练的证明器能够证明更多的测试定理,并通过频繁利用多样化的新提取定理集,超越了最先进的基线方法。代码可在 https://github.com/jinpz/refactor 找到。

英文摘要:

Human mathematicians are often good at recognizing modular and reusable theorems that make complex mathematical results within reach. In this paper, we propose a novel method called theoREm-from-prooF extrACTOR (REFACTOR) for training neural networks to mimic this ability in formal mathematical theorem proving. We show on a set of unseen proofs, REFACTOR is able to extract 19.6% of the theorems that humans would use to write the proofs. When applying the model to the existing Metamath library, REFACTOR extracted 16 new theorems. With newly extracted theorems, we show that the existing proofs in the MetaMath database can be refactored. The new theorems are used very frequently after refactoring, with an average usage of 733.5 times, and help shorten the proof lengths. Lastly, we demonstrate that the prover trained on the new-theorem refactored dataset proves more test theorems and outperforms state-of-the-art baselines by frequently leveraging a diverse set of newly extracted theorems. Code can be found at https://github.com/jinpz/refactor.

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

↑