arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.16347cs.HCcs.AIcs.LO
收藏

Lean Atlas: 一个用于可扩展人机协作形式化的集成证明环境

Lean Atlas: An Integrated Proof Environment for Scalable Human-AI Collaborative Formalization

Nyx Foundation(Nyx基金会);Kyoto University(京都大学);Large Language Model Research and Development Center, National Institute of Informatics(信息处理国家研究所大型语言模型研究与开发中心)

Banri Yanahama, Akiyoshi Sannai

AI总结:

本文提出Lean Atlas工具,通过人机协作验证形式化证明的语义正确性,利用Lean Compass算法减少大规模形式化中的语义审查候选集,提升AI生成形式化证明的质量。

摘要:

AI驱动的数学自动形式化正在迅速发展。然而,证明助手的类型检查器只能保证证明的逻辑正确性,无法验证命题和定义是否忠实捕捉其数学内涵。因此,AI生成的形式化证明可能表现出语义幻觉——通过类型检查器但未能表达预期的数学内容。我们提出一种人机协作的方法,由人类科学家和AI共同生成形式化证明,人类负责验证命题和定义的语义正确性。为实现这一方法,我们开发了Lean Atlas,一个Lean 4工具,可将Lean 4项目的依赖图可视化为交互式网页查看器,使人类科学家高效把握形式化的整体结构。其核心功能Lean Compass是算法,给定选定的定理集,自动提取项目特定节点,其语义正确性可能影响目标陈述,从而减少大规模形式化中的语义审查候选集。我们进一步定义*对齐的Lean代码*为已通过人类语义验证的形式化代码,并将其作为AI生成形式化证明的质量标准。我们对六个具有不同结构特征的Lean 4形式化项目进行了评估;证明密集型项目(PrimeNumberTheoremAnd, Carleson, Brownian Motion)实现了94-99%的平均节点减少,一个6定理子集的FLT项目达到59.8%,混合型PhysLib 69.0%,定义密集型XMSS 27.3%。Lean Atlas作为开源软件可在https://github.com/NyxFoundation/lean-atlas上获得。

英文摘要:

AI-driven autoformalization of mathematics is advancing rapidly. However, the type checker of a proof assistant guarantees only the logical correctness of proofs; it does not verify whether propositions and definitions faithfully capture their intended mathematical content. Consequently, AI-generated formal proofs can exhibit semantic hallucination-passing the type checker yet failing to express the intended mathematics. We propose a human-in-the-loop approach in which human scientists and AI collaboratively produce formal proofs, with humans responsible for the semantic verification of propositions and definitions. To realize this approach, we develop Lean Atlas, a Lean 4 tool that visualizes the dependency graph of a Lean 4 project as an interactive web viewer, enabling human scientists to grasp the overall structure of a formalization efficiently. Its core feature, Lean Compass, is an algorithm that, given a selected theorem set, automatically extracts the project-specific nodes whose semantic correctness can affect those target statements, thereby reducing the candidate set for semantic review in large-scale formalizations. We further define *aligned Lean code* as formalization code that has undergone human semantic verification, and propose it as a quality standard for AI-generated formalizations. We evaluate the tool on six Lean 4 formalization projects with different structural characteristics; proof-heavy projects (PrimeNumberTheoremAnd, Carleson, Brownian Motion) achieved 94-99% average node reduction, a 6-theorem milestone subset of FLT achieved 59.8%, mixed PhysLib 69.0%, and definition-heavy XMSS 27.3%. Lean Atlas is available as open-source software at https://github.com/NyxFoundation/lean-atlas .

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

↑