PaperFormalizer:作者参与循环的研究论文 Lean 自动形式化

·

研究论文 · 2026/10/26

PaperFormalizer 是一个基于 Lean 的智能体流程,帮助作者在论文中发现并填补证明或假设中的小缺口,将论文转化为 Lean 验证版本。它从 LaTeX 源文件出发,将论文转录为陈述的依赖图,用自然语言审计每个陈述的忠实性、歧义性和正确性,然后在 Lean 中针对 Mathlib、可选领域库和作者个人工具包进行形式化与证明。流程在陈述有多种解读时暂停并询问作者,将每个修复方案以自然语言和 TeX 符号形式作为提案呈现,由作者决定接受、拒绝或重定向,所有可能改变论文主张的决定都留给作者。输出包括带注释和修订的论文版本、变更报告以及每个声明链接到其所形式化陈述的 Lean 代码。作者的工​​具包随着更多论文的形式化而增长,作者可以分享已验证的论文,以便后续研究者重用其 Lean 代码。PaperFormalizer 旨在使验证论文的产出现实可行,从而让基于数学证明的研究更加稳健。它运行在编码智能体(Claude Code 或 Codex)中,代码库见 https://github.com/Jiyuan-Tan/PaperFormalizer,用户分享 Lean 代码的论文见 https://paperformalizer.org。

该工作提出了一种实用的人机协作框架,将论文形式化验证的门槛降低,有助于提高数学证明的可靠性,并促进可重用形式化代码的积累。

Even a carefully proofread paper can leave small gaps in its proofs or its stated assumptions. We introduce PaperFormalizer, a Lean-based agentic pipeline that helps authors find and close such gaps in their own papers and turn each paper into a Lean-verified version. Starting from the LaTeX source, PaperFormalizer transcribes the paper into a dependency graph of statements, audits each statement in natural language for faithfulness, ambiguity and correctness, and then formalizes and proves the statements in Lean against Mathlib, optional domain libraries and the author's personal toolkit. Only the author knows what a statement is meant to say and how a formalization gap in a result is best fixed. The pipeline therefore stops and asks the author whenever a statement admits more than one reading, presents every repair, in natural language and TeX symbols, as a proposal that the author can accept, decline or redirect, and leaves to the author every decision that could potentially change what the paper claims. The output is an annotated and revised version of the paper, a report of the changes, and Lean code in which each declaration is linked to the statement it formalizes. The author's toolkit grows as more papers are formalized, and authors can share their verified papers so that researchers who build on them can reuse their Lean code. By making verified papers practical to produce, PaperFormalizer aims to make research that rests on mathematical proofs more robust. PaperFormalizer runs inside a coding agent (Claude Code or Codex) and is available at https://github.com/Jiyuan-Tan/PaperFormalizer. Papers with Lean code shared by users are available at https://paperformalizer.org.

阅读原文

参与讨论