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

Nazrin: Lean 4中的原子神经证明自动化策略

Nazrin: An Atomic Neural Proof Automation Tactic in Lean 4

Stanford University(斯坦福大学);Northeastern University(东北大学)

Leni Aniva, Iori Oikawa, David Dill, Clark Barrett

AI总结:

提出原子策略集、转置原子化算法、ExprGraph数据结构和基于图神经网络的Nazrin证明器,通过仅调度原子策略克服现有证明代理的挑战,并在消费级硬件上训练和评估。

摘要:

在机器辅助定理证明中,定理证明代理搜索一系列表达式和策略,以在证明助手中证明一个陈述。在这项工作中,我们引入了几个新颖的概念和能力来解决机器辅助定理证明面临的障碍。我们首先提出一组\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.

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

↑