arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2606.28841cs.LOcs.AIcs.CL
收藏

LAMP: 基于 Lean 的 MCP 与证明修复智能体框架

LAMP: Lean-based Agentic framework with MCP and Proof Repair

Indian Institute of Information Technology, Design and Manufacturing, Kancheepuram(印度信息与设计制造理工学院,卡纳切普拉姆)

Santhana Srinivasan R, Maithilee Patawar

AI总结:

提出 LAMP 多智能体框架,通过推理时提供结构化领域知识(本体)而非微调,在 Lean 4 中合成内核验证的证明,在组合学词领域定理上达到 96.7% 的验证率。

摘要:

大型语言模型在数学推理方面能力日益增强,但它们生成的证明往往不可靠且难以验证。诸如 Lean 4 之类的交互式定理证明器通过仅接受内核检查的证明来解决这一问题;然而,其覆盖范围受限于可用的形式化知识。尽管 Mathlib(一个涵盖多个数学领域的形式化 Lean 4 定理库)覆盖面广,但某些专门领域仍然代表性不足;特别是组合学词(CoW)领域。CoW 研究序列,探索其周期性、边界、共轭和同态等性质。因此,基于 Mathlib 数据训练的专用证明器缺乏在 CoW 中运行的引理。我们提出两项贡献。首先,我们引入了一个包含八个模块和 \textbf{93} 个核心定义与基础引理声明的 CoW 的 Lean 4 形式化。其次,我们提出了 LAMP,一个多智能体框架,它通过推理时提供显式、结构化的领域知识(通过本体),而非微调证明器,来合成内核验证的 Lean 4 证明。LAMP 协调规划器、构建器和验证器,通过基于模型上下文协议(MCP)的访问与特定领域的 CoW 本体交互。在一组涵盖所有八个模块和三个难度级别的 90 个 CoW 定理中,LAMP 为 96.7% 的定理合成了经过验证的证明,显著超过了无脚手架基线和现有的专用证明器。消融实验表明,移除 LAMP 的工具驱动架构或规划器/构建器分离,即使保持骨干模型不变,也会分别导致约 12 个百分点的性能下降。

英文摘要:

Large language models are increasingly capable of mathematical reasoning, but the proofs they generate are often unreliable and hard to verify. Interactive theorem provers such as Lean 4 address this by accepting only kernel-checked proofs; however, their reach is bounded by the formalized knowledge available. While Mathlib, a repository of formalized Lean 4 theorems that covers diverse mathematical areas, certain specialized areas remain underrepresented; notably, the domain of Combinatorics on Words (CoW). CoW studies sequences, exploring their properties such as periodicity, borders, conjugacy, and morphisms. As a result, specialized provers, trained on Mathlib-centered data, lack the lemmas to operate in CoW. We present two contributions. First, we introduce a Lean 4 formalization of CoW containing eight modules and \textbf{93} declarations of core definitions and foundational lemmas. Second, we present LAMP, a multi-agent framework that synthesizes kernel-verified Lean 4 proofs by providing explicit, structured domain knowledge at inference time through an ontology, rather than by fine-tuning a prover. LAMP coordinates a Planner, Builder, and Verifier with Model Context Protocol based access to a domain-specific CoW ontology. In a suite of 90 CoW theorems that span all eight modules and three difficulty levels, LAMP synthesizes verified proofs for 96.7% of theorems, substantially exceeding both an unscaffolded baseline and existing specialized provers. An ablation shows that removing LAMP's tool-grounded architecture or its Planner/Builder separation each cost roughly 12 percentage points, even with the backbone model held fixed.

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

↑