atlas

Research map / Large language models / Agents, code and math

Lean Refactor: Multi-Objective Controllable Proof Optimization via Agentic Strategy Search

NeurIPS 2026 · Large language models › Agents, code and math · approach: LLMs for optimization and heuristics · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Lean Refactor steers a frozen LLM agent with a version- and compile-cost-annotated bank of 9K refactoring strategies, retrieved with objective-specific rules, to shorten and speed up Lean proofs.

Problem

LLM-generated Lean proofs are correct but verbose, slow to compile, and brittle across Lean/Mathlib versions; existing refactoring approaches optimize a single objective, require fine-tuning, and ignore version drift.

Approach

A training-free, plug-and-play agent loop over a densely annotated strategy bank (compile-time reduction and Lean toolchain compatibility metadata), where user objectives are realized as retrieval rules (cosine top-K, compile-cost reranking, or version filtering) over the same bank, with a fine-tuned embedding retriever.

Key results

Surprising findings

Limitations

Experimental setup

Datasets: NuminaMath-1.5 FineLeanCorpus Mathlib4 ATLAS miniF2F PutnamBench Putnam2025 Analysis FLT PFR PhysLean PDE

Benchmarks: miniF2F PutnamBench Putnam2025 Analysis FLT PFR PhysLean PDE Verina

Metrics: relative proof-length reduction compilation-time reduction heartbeat reduction cross-version compatibility zero-shot version transfer

Baselines: ProofOptimizer Claude Code Base Agent Base Agent w/o Retrieval Lean Refactor w/o Retrieval Lean Refactor w/ Random Retrieval

Builds on: ProofOptimizer ImProver Qwen3-Embedding

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy