扩展精益定理证明以用于真实世界代码验证

·

研究论文 · 2026/10/30

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

该工作展示了无需额外训练即可在多个高难度形式化验证基准上达到接近饱和的性能,并提出了更贴近真实代码的Aegis基准,推动了形式化验证在实际软件中的应用,同时为强化学习提供了新的奖励信号。

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.

阅读原文

参与讨论