在机器辅助定理证明中,定理证明代理搜索一系列表达式和策略,以在证明助手中证明一个陈述。在这项工作中,我们引入了几个新颖的概念和能力来解决机器辅助定理证明面临的障碍。我们首先提出一组\textbf{原子策略},这是一个小的有限策略集,能够证明Lean中任何可证明的陈述。然后,我们介绍一种\textbf{转置原子化}算法,该算法将任意证明表达式转换为一系列原子策略。接下来,我们介绍\textbf{ExprGraph}数据结构,它为Lean表达式提供了简洁的表示。最后,我们提出\textbf{Nazrin证明器}(\textbf{N}eural \textbf{A}tomi\textbf{z}e\textbf{r} for \textbf{In}habitation Problems的缩写),这是一个基于图神经网络的定理证明代理,使用原子策略和ExprGraph。Nazrin通过仅调度原子策略规避了现有证明代理面临的许多挑战,并且足够稳健,可以在消费级硬件上进行训练和评估。我们使用Lean标准库和Mathlib中的定理展示了Nazrin等工具的潜力。
英文摘要:
In Machine-Assisted Theorem Proving, a theorem proving agent searches for a sequence of expressions and tactics that can prove a statement in a proof assistant. In this work, we introduce several novel concepts and capabilities to address obstacles faced by machine-assisted theorem proving. We first present a set of \textbf{atomic tactics}, a small finite set of tactics capable of proving any provable statement in Lean. We then introduce a \textbf{transposing atomization} algorithm which turns arbitrary proof expressions into a series of atomic tactics. We next introduce the \textbf{ExprGraph} data structure, which provides a succinct representation for Lean expressions. Finally, we present the \textbf{Nazrin Prover}, short for \textbf{N}eural \textbf{A}tomi\textbf{z}e\textbf{r} for \textbf{In}habitation Problems, a graph neural network-based theorem proving agent using atomic tactics and ExprGraph. Nazrin circumvents many challenges faced by existing proving agents by exclusively dispatching atomic tactics, and it is robust enough to both train and evaluate on consumer-grade hardware. We demonstrate the potential of tools like Nazrin using theorems from Lean's standard library and from Mathlib.
Automated Tactics for Polynomial Reasoning in Lean 4
State Key Laboratory of Mathematical Sciences, Academy of Mathematics and Systems Science, University of Chinese Academy of Science(中国科学院数学与系统科学研究院);Institute of Logic and Cognition, Department of Philosophy, Sun Yat-sen University(中山大学哲学系逻辑与认知研究所)
Proof Artifact Co-training for Theorem Proving with Language Models
University of Pittsburgh(匹兹堡大学);OpenAI;IBM Research(IBM研究院);Google Research(谷歌研究院);Stanford University(斯坦福大学);Carnegie Mellon University(卡内基梅隆大学);CIBO Technologies(CIBO科技);University of Toronto(多伦多大学);University of Cambridge(剑桥大学)