arXiv:2605.22885v1 Announce Type: new Abstract: Formal mathematics libraries are rapidly expanding, creating a growing need to refactor verified proofs for maintainability and to improve training data quality for neural provers. However, scalable proof optimization is hindered by heterogeneous and heuristically specified objectives, scarce data, and high training and inference costs. To overcome these challenges, we introduce ImProver 2, a neurosymbolic framework for automated proof optimization in Lean 4. ImProver 2 combines a data-efficient expert-iteration pipeline with a scaffold that exposes formal structure alongside lightweight informal abstractions. We further introduce a suite of metrics capturing structural proof properties. Using ImProver 2, we train a 7B-parameter model that outperforms orders-of-magnitude larger models within the same model family, and is competitive with mid-tier frontier models across metrics. We additionally demonstrate that our neurosymbolic scaffold significantly improves performance across both small and frontier models. We show that with proper scaffolding and training, small models can effectively restructure research-level proofs over complex and varied metrics, matching substantially larger systems and establishing proof optimization as a scalable, learnable task.
ImProver 2: Iteratively Self-Improving LMs for Neurosymbolic Proof Optimization
Researchers introduced ImProver 2, a neurosymbolic framework for automated proof optimization in Lean 4 that combines a data-efficient expert-iteration pipeline with a scaffold exposing formal structure and lightweight informal abstractions. The framework trained a 7-billion-parameter model that outperformed orders-of-magnitude larger models in the same family and matched mid-tier frontier models across multiple structural proof metrics. The findings establish proof optimization as a scalable, learnable task, demonstrating that small models with proper scaffolding can effectively restructure research-level proofs.
Run your AI side-project on zahid.host
EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.