paper-with-me

홈 › Papers

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

2026-05-18 · Jialin Lu, Soonho Kong, Rodrigo Stehling, Kaiyu Yang, Zhangyang Wang, Weiran Sun, Wuyang Chen arxiv

We present Lean Refactor, a plug-and-play retrieval-augmented agentic framework for multi-objective, controllable, and version-robust refactoring of Lean proofs. LLM-generated proofs are notoriously correct-but-verbose and brittle across library versions, yet existing refactoring works overlook three practical challenges: 1) Lean refactoring is natively multi-objective (proof length, compilation cost, and version compatibility are often in tension); 2) Lean repositories have fragile compatibility, whereas LLM releases are unaware of Lean/Mathlib versions; 3) Training-based pipelines require repeated fine-tuning with each new LLM release, scaling neither with model churn nor with Lean's release cycle. Lean Refactor steers a frozen agentic LLM with retrievals from a curated database of multi-objective refactoring strategies, each densely annotated with metadata such as supported Lean/Mathlib versions and expected compilation-cost reduction. Experiments show over $70\%$ token-level compression on competition benchmarks, over $20\%$ on research repositories, and up to $60\%$ compilation-time reduction, outperforming prior work and Claude Code. Version-filtered retrieval further improves compression on the target Lean version, and refactored miniF2F proofs exhibit stronger zero-shot version transfer to future Lean releases than their unrefactored counterparts.

📄 PDF Abstract BibTeX arXiv:2605.20244

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Proof-Refactor: Refactoring Generated Formal Proofs into Modular Artifacts

2026-06-02 · Yiming Fu, Peixuan Liu, Zichen Wang, Kun yuan arxiv

While Large Language Models (LLMs) have shown strong performance in generating formal proofs, their outputs often remain less readable, modular, maintainable, and reusable than proofs in mature formal mathematics librari…

REFACTOR: Learning to Extract Theorems from Proofs

2024-02-26 · Jin Peng Zhou, Yuhuai Wu, Qiyang Li, Roger Grosse

Human mathematicians are often good at recognizing modular and reusable theorems that make complex mathematical results within reach. In this paper, we propose a novel method called theoREm-from-prooF extrACTOR (REFACTOR…

Automated Theorem Proving

ImProver 2: Iteratively Self-Improving LMs for Neurosymbolic Proof Optimization

2026-05-21 · Riyaz Ahuja, Tate Rowney, Jeremy Avigad, Sean Welleck arxiv

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…

APE-Bench I: Towards File-level Automated Proof Engineering of Formal Math Libraries

2025-04-27 · Huajian Xin, Luming Li, Xiaoran Jin, Jacques Fleuriot 외

Recent progress in large language models (LLMs) has shown promise in formal theorem proving, yet existing benchmarks remain limited to isolated, static proof tasks, failing to capture the iterative, engineering-intensive…

Automated Theorem ProvingBug fixingMath

CODECLEANER: Elevating Standards with A Robust Data Contamination Mitigation Toolkit

2024-11-16 · Jialun Cao, Songqiang Chen, Wuqi Zhang, Hau Ching Lo 외

Data contamination presents a critical barrier preventing widespread industrial adoption of advanced software engineering techniques that leverage code language models (CLMs). This phenomenon occurs when evaluation data …