AI and the World's Hard Problems · Mathematics · arXiv · 2026-12-01
OPAL: Optimizing Proofs at Library Scale via Metric-Driven Coding Agents

Formal math libraries keep accumulating proofs that could be shorter or compile faster, and 41% of mathlib commits improve existing proofs without adding new mathematics. The authors introduce OPAL, a repository-level task in which an agent refactors Lean blueprint projects against metrics such as proof length and elaboration cost, with a checker that keeps the final target theorems intact. On OPAL-Bench (162 instances from 18 Lean projects), coding agents achieve gains beyond single human commits, but without the contract nearly half of accepted improvements fail semantic verification.