arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2512.10317cs.LOcs.AI
收藏

用状态链将非正式证明翻译成正式证明

Translating Informal Proofs into Formal Proofs Using a Chain of States

School of Mathematical Sciences, Peking University, Beijing 100871, P.R. China(北京大学数学科学学院)

Ziyu Wang, Bowen Yang, Chenyi Li, Yuan Zhang, Shihao Zhou, Bin Dong, Zaiwen Wen

AI总结:

通过状态链方法将非正式证明转换为正式证明,提升证明生成效率和准确性。

摘要:

我们解决了将用自然语言表达的非正式数学证明转换为Lean4中的正式证明的问题,在受限的计算预算下。我们的方法基于两个关键见解。首先,非正式证明通常通过一系列逻辑转换进行,通常是蕴含或等价关系,而没有明确指定中间结果或辅助引理。相比之下,像Lean这样的正式系统需要显式表示每个证明状态和连接它们的战术。其次,每个非正式推理步骤可以视为抽象转换之间的证明状态,但识别相应的正式战术往往需要非平凡的领域知识和对证明上下文的精确控制。为了弥合这一差距,我们提出了一种两阶段框架。而不是直接生成正式战术,我们首先提取一个状态链(CoS),即与非正式论证的逻辑结构对齐的中间正式证明状态序列。然后我们生成在CoS中相邻状态之间转换的战术,从而构建完整的正式证明。这种中间表示显著降低了战术生成的复杂性,并提高了与非正式推理模式的一致性。我们构建了专门的数据集和基准用于训练和评估,并引入了一个交互框架来支持从正式状态生成战术。实证结果表明,我们的方法在很大程度上优于现有基线,实现了更高的证明成功率。

英文摘要:

We address the problem of translating informal mathematical proofs expressed in natural language into formal proofs in Lean4 under a constrained computational budget. Our approach is grounded in two key insights. First, informal proofs tend to proceed via a sequence of logical transitions - often implications or equivalences - without explicitly specifying intermediate results or auxiliary lemmas. In contrast, formal systems like Lean require an explicit representation of each proof state and the tactics that connect them. Second, each informal reasoning step can be viewed as an abstract transformation between proof states, but identifying the corresponding formal tactics often requires nontrivial domain knowledge and precise control over proof context. To bridge this gap, we propose a two stage framework. Rather than generating formal tactics directly, we first extract a Chain of States (CoS), a sequence of intermediate formal proof states aligned with the logical structure of the informal argument. We then generate tactics to transition between adjacent states in the CoS, thereby constructing the full formal proof. This intermediate representation significantly reduces the complexity of tactic generation and improves alignment with informal reasoning patterns. We build dedicated datasets and benchmarks for training and evaluation, and introduce an interactive framework to support tactic generation from formal states. Empirical results show that our method substantially outperforms existing baselines, achieving higher proof success rates.

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

↑