ProofWala: 多语言证明数据合成与定理证明框架
ProofWala: A Framework for Multilingual Proof Data Synthesis and Theorem-Proving
AI总结:
提出ProofWala框架,通过itp-interface库实现与交互式定理证明器的程序化交互,支持多语言证明数据合成、并行证明搜索,并验证了跨语言与跨领域迁移的有效性。
摘要:
神经定理证明方法需要强大的基础设施来与交互式定理证明器(ITP)交互、提取结构化证明数据以及大规模执行证明搜索。然而,现有工具通常针对特定助手且面向文件级执行,使得仓库级分析和并行实验变得困难。我们提出ProofWala,一个多语言证明工程框架,基于 exttt{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)。
英文摘要:
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).
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。