Scaling Lean Theorem Proving for Real-World Code Verification

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

arXiv:2610.38174 · 2026-11-01 공개 · arXiv · PDF

reinforcement-learning formal-verification proof-generation putnambench ntp4vc verina rust-to-lean lean-theorem-proving

Abstract

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.

한국어 요약

한 줄 요약

EasyProver는 기존 수학 및 검증 벤치마크에서 높은 성능을 보이는 Lean 증명 시스템으로, Aegis를 통해 더 어려운 실무 코드 검증 작업을 생성한다.

핵심 기여도

핵심 아이디어

EasyProver는 재귀 에이전트, 별도 컨텍스트, 비동기 검색, 병렬 전략 탐색, InfiniLean이라는 탄력적 Lean 서비스를 결합한 시스템이다. 이는 기존 최신 모델을 그대로 사용하여 수학 문제와 프로그램 검증 작업을 처리한다. 기존 벤치마크가 포화 상태에 가까워지자, Aegis라는 파이프라인을 도입하여 경쟁 프로그래밍 문제를 더 어려운 검증 작업으로 변환했다. Aeneas를 통해 Rust 코드를 Lean으로 변환하고, 명세를 생성한 후, 각 명제를 커널 검증을 통해 증명 또는 반증한다. 이는 수작업 벤치마크와 달리 실제 구현 수준의 의무를 포함하며, 더 실용적인 평가를 가능하게 한다.

기술적 접근법

주요 결과

의의 및 한계

EasyProver는 기존 수학 및 검증 벤치마크에서 높은 포화도를 보이며, 기존 최신 모델만으로도 높은 성능을 달성함. Aegis는 실제 구현 수준의 의무를 포함한 더 어려운 작업을 생성하여, 기존 벤치마크의 한계를 극복함. 그러나 52.7% 증명률은 여전히 낮아, 더 복잡한 작업에서는 한계가 있음. 또한, 생성된 작업의 수량은 증가 가능하지만, 모든 작업이 커널 검증을 받는 것은 아니며, 일부는 후보 명세일 수 있음.

실용적 활용

EasyProver와 Aegis는 소프트웨어 검증, 수학 증명, 강화 학습의 보상 설계 등에 활용 가능함. 특히, Rust 코드의 안전성 검증 및 자동 생성된 명세의 검증에 유용하며, 다른 증명기의 성능 평가에도 사용 가능함.