arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.38174cs.CLcs.AIcs.LOcs.SE
收藏

用于现实世界代码验证的精益定理证明系统的规模化

Scaling Lean Theorem Proving for Real-World Code Verification

Case Western Reserve University(凯斯西储大学);Amazon Web Services(亚马逊网络服务)

Debargha Ganguly, Divya Raghunathan, Dejan Jovanović, Vikash Singh, Soonho Kong, Aaron Tomb, Aman Goel, Ferhat Erata, Sam Bayless

AI总结:

该研究提出EasyProver定理证明系统,结合Aegis工具,在多个基准测试中取得优异表现,产出大量Rust-Lean程序对与候选规范,可用于其他证明器基准测试及强化学习奖励。

摘要:

我们提出EasyProver,这是一个Lean证明系统,由具有隔离上下文的递归智能体、异步搜索、并行策略探测和弹性精化服务构建而成。使用现成的前沿模型且未进行额外训练,它证明了672道PutnamBench问题中的669道、全部6道IMO 2026形式化问题,通过证明或反驳解决了600个NTP4VC验证条件中的597个以及全部189个VERINA任务。由于这些基准接近饱和,我们还引入Aegis,它将竞赛编程问题转换为针对实际实现的更难验证任务。该流程生成安全的Rust解决方案,通过Aeneas将其转换为Lean,生成规范,并为每个冻结语句标记内核检查过的证明或反驳。它产出2045个差异验证的Rust-Lean程序对和11533个候选规范。与手写基准不同,这些任务带有来自固定宽度算术、显式失败、生成的循环、类型转换和函数式变异的实现级义务。在2000个语句的分层样本中,EasyProver在每个语句30分钟的预算内证明了1054个(52.7%)。这些任务还可用于基准测试其他证明器,并作为强化学习的奖励。

英文摘要:

We present EasyProver, a Lean proving system built from recursive agents with isolated contexts, asynchronous search, parallel tactic probing, and an elastic elaboration service. Using an off-the-shelf frontier model with no additional training, it proves 669/672 PutnamBench problems and all six IMO 2026 formalizations and resolves 597/600 NTP4VC verification conditions and all 189 VERINA tasks by proof or refutation. Because these benchmarks are close to saturation, we also introduce Aegis, which converts competitive programming problems into much harder verification tasks over real implementations. The pipeline writes safe Rust solutions, translates them into Lean with Aeneas, generates specifications, and labels each frozen statement with a kernel-checked proof or refutation. It produces 2,045 differentially validated Rust-Lean program pairs and 11,533 candidate specifications. Unlike hand-written benchmarks, these tasks carry implementation-level obligations from fixed-width arithmetic, explicit failure, generated loops, casts, and functionalized mutation. On a stratified sample of 2,000 statements, EasyProver proves 1,054 (52.7%) within a 30-minute budget per statement. The same tasks can also be used to benchmark other provers and as rewards for reinforcement learning.

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

↑