构建多语言证明数据生成框架,支持大规模定理证明与跨系统迁移。
ProofWala: A Framework for Multilingual Proof Data Synthesis and Theorem-Proving
- 基于itp-interface库实现对Lean 4等工具的程序化交互,支持全仓库级分析
- 多语言训练在Lean Mathlib和CategoryTheory上显著提升,跨领域适应性增强
- 开源完整框架与数据集,适用于定理证明研究者及自动化推理开发者
神经网络方法进行定理证明需要强大的基础设施来对接交互式定理证明器(ITP),提取结构化证明数据,并在大规模下执行证明搜索。然而现有工具常依赖特定助手且面向文件级执行,难以实现仓库级分析与并行实验。我们提出ProofWala,一个围绕itp-interface构建的多语言证明工程框架,该库可程序化交互ITP。针对Lean 4,我们实现了一层元编程交互层,在类型推导器内运行,支持战术级追踪、声明与依赖级数据提取,覆盖整个代码仓库。该设计超越传统REPL交互,支持项目级分析、环境克隆与证明状态池化执行。同一接口抽象支持多个Rocq版本,形成统一跨助手流水线。基于此,ProofWala提供标准化多语言证明数据集、模型训练工具与并行证明搜索算法。实验表明,跨Lean与Rocq的多语言训练能实现跨语言与跨领域迁移,在Lean Mathlib与CategoryTheory上取得统计显著提升,其他设置也呈现持续上升趋势。我们开源完整框架、并行搜索模块、数据集与模型,分别位于ProofWala(https://github.com/trishullab/proof-wala)与itp-interface(https://github.com/trishullab/itp-interface)。
原文摘要 · Abstract (English)
Neural approaches to theorem proving require robust infrastructure for interfacing with interactive theorem provers (ITPs), extracting structured proof data, and executing proof search at scale. However, existing tooling is often assistant-specific and oriented toward file-level execution, making repository-scale analysis and parallel experimentation challenging. We present ProofWala, a multilingual proof engineering framework built around \texttt{itp-interface}, a reusable library for programmatic interaction with ITPs. For Lean 4, we implement a meta-programmed interaction layer executing inside the elaborator, enabling semantically faithful tactic-level tracing alongside declaration- and dependency-level extraction across entire repositories. This design extends beyond traditional REPL-style interaction by supporting project-wide analysis, environment cloning, and pooled execution of proof states. The same interface abstraction supports multiple versions of Rocq, yielding a unified cross-assistant pipeline. Built on this infrastructure, ProofWala provides standardized multilingual proof datasets, model training utilities, and parallel proof search algorithms. Using the framework, we demonstrate that multilingual training across Lean and Rocq enables cross-lingual and cross-domain transfer. We observe statistically significant improvements on Lean Mathlib and in domain adaptation (CategoryTheory), while other settings exhibit consistent upward trends. We open-source the full framework, parallel proof search module, datasets, and models across two repositories: ProofWala (https://github.com/trishullab/proof-wala) and the itp-interface library (https://github.com/trishullab/itp-interface).
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。