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

LeanArchitect: 为人类和AI自动化蓝图生成

LeanArchitect: Automating Blueprint Generation for Humans and AI

Carnegie Mellon University(卡内基梅隆大学);University of Trento(特伦托大学)

Thomas Zhu, Pietro Monticone, Jeremy Avigad, Sean Welleck

AI总结:

LeanArchitect通过自动化蓝图生成,提升形式化项目维护性并促进AI与人类协作

摘要:

在Lean中进行大规模形式化项目依赖于蓝图:将非正式数学阐述与形式声明链接起来的结构化依赖图。虽然蓝图对于人类协作至关重要,但现有的工具将非正式(LaTeX)和正式(Lean)组件视为基本上解耦的制品,导致维护开销并限制了与AI自动化的整合。我们提出了LeanArchitect,一个用于从Lean代码中提取、管理和导出蓝图数据的Lean包。LeanArchitect引入了一种声明性注释机制,将形式声明与蓝图元数据关联起来,自动推断依赖信息,并生成与Lean开发同步的LaTeX蓝图内容。这种设计消除了形式和非形式表示之间的重复,并为人类贡献者和基于AI的定理证明器提供了细粒度进展跟踪。我们通过自动化转换几个大型现有蓝图驱动项目以及通过一个人类-AI协作案例研究来展示LeanArchitect的实用性,该案例研究形式化了多元泰勒定理。我们的结果表明,LeanArchitect提高了可维护性,暴露了现有蓝图中的潜在不一致,并提供了一个有效的接口,将AI工具整合到实际的形式化工作流程中。

英文摘要:

Large-scale formalization projects in Lean rely on blueprints: structured dependency graphs linking informal mathematical exposition to formal declarations. While blueprints are central to human collaboration, existing tooling treats the informal ($\LaTeX$) and formal (Lean) components as largely decoupled artifacts, leading to maintenance overhead and limiting integration with AI automation. We present LeanArchitect, a Lean package for extracting, managing, and exporting blueprint data directly from Lean code. LeanArchitect introduces a declarative annotation mechanism that associates formal declarations with blueprint metadata, automatically infers dependency information, and generates $\LaTeX$ blueprint content synchronized with the Lean development. This design eliminates duplication between formal and informal representations and eases fine-grained progress tracking for both human contributors and AI-based theorem provers. We demonstrate the practicality of LeanArchitect through the automated conversion of several large existing blueprint-driven projects, and through a human--AI collaboration case study formalizing a multivariate Taylor theorem. Our results show that LeanArchitect improves maintainability, exposes latent inconsistencies in existing blueprints, and provides an effective interface for integrating AI tools into real-world formalization workflows.

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

↑