arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.17283cs.CLcs.AI
收藏

OProver:一个用于代理形式定理证明的统一框架

OProver: A Unified Framework for Agentic Formal Theorem Proving

Lean 4

David Ma, Kaijing Ma, Shawn Guo, Yunfeng Shi, Enduo Zhao, Jiajun Shi, Zhaoxiang Zhang, Gavin Cheung, Jiaheng Liu, Zili Wang

AI总结:

本文提出OProver,一个用于Lean 4的统一框架,通过迭代修订检索到的编译器验证证明和Lean编译器反馈来改进代理证明,通过持续预训练和迭代后训练,使OProver-32B在多个基准测试中取得最佳成绩。

摘要:

近年来,形式定理证明的进步得益于大规模证明生成和验证器感知训练,但代理证明很少被整合到证明器训练中,仅在推理时间出现。我们提出了OProver,一个用于Lean 4的统一框架,其中失败的证明尝试通过检索到的编译器验证证明和Lean编译器反馈进行迭代修订。OProver通过持续预训练和迭代后训练进行训练:每次迭代运行代理证明,将新验证的证明索引到OProofs和检索内存中,使用修复轨迹作为SFT数据,并使用未解决的困难案例用于RL。OProofs由公开的Lean资源、大规模证明合成和代理证明轨迹构建,包含177万条Lean语句、686万条编译器验证证明以及带有检索上下文、失败尝试、反馈和修复的序列轨迹。在五个基准测试中,OProver-32B在MiniF2F(93.3%)、ProverBench(58.2%)和PutnamBench(11.3%)上取得最佳Pass@32,且在MathOlympiad(22.8%)和ProofNet(33.2%)上排名第二,比任何先前的开放式整体证明证明器的顶级位置更多。

英文摘要:

Recent progress in formal theorem proving has benefited from large-scale proof generation and verifier-aware training, but agentic proving is rarely integrated into prover training, appearing only at inference time. We present OProver, a unified framework for agentic formal theorem proving in Lean 4, in which failed proof attempts are iteratively revised using retrieved compiler verified proofs and Lean compiler feedback. OProver is trained through continued pretraining followed by iterative post-training: each iteration runs agentic proving, indexes newly verified proofs into OProofs and the retrieval memory, uses repair trajectories as SFT data, and uses unresolved hard cases for RL. OProofs is built from public Lean resources, large-scale proof synthesis, and agentic proving traces, containing 1.77M Lean statements, 6.86M compiler-verified proofs, and serialized trajectories with retrieved context, failed attempts, feedback, and repairs. Across five benchmarks, OProver-32B attains the best Pass@32 on MiniF2F (93.3%), ProverBench (58.2%), and PutnamBench (11.3%), and ranks second on MathOlympiad (22.8%) and ProofNet (33.2%) more top placements than any prior open-weight whole-proof prover.

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

↑