Verified Proof Refactoring with Codex and Qwen
Lazar Milikic, Gordan {\DJ}uri\'c, Viktor Kun\v{c}ak
Key points
From the paper's conclusion- A locally served Qwen model uses the open-source Codex CLI to inspect source, retrieve declarations, and test proof replacements.
Abstract
We refactor existing Lean 4 proofs to reduce source length and checking cost while preserving theorem statements and compatibility across Lean versions. A locally served Qwen model uses the open-source Codex CLI to inspect source, retrieve declarations, and test proof replacements. The host keeps a replacement only if it improves the objective and Lean accepts it on every required version. A deterministic CPU pass then refines the verified proofs. On the 60 problems in Lean Refactor Arena, model search achieves a local mean combined score of 82.07, and cleanup raises it to 82.18. The final proofs pass all 127 required proof--version checks. Our system placed first in the open-source LLM track of Lean Refactor Arena at VeriCodeGen.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- How Stable Are LLM-Generated Proofs Under Program Refactoring? A Stress Test for Verifiable Code GenerationarXiv · 2026
- Compile-Gated Lean Proof Refactoring with Enterprise Agent Practices: A Model per Step under a US\$3 Cap, Followed by Programmatic Rewrite RulesarXiv · 2026
- Fix, Not Just Resample: Bounded Compiler-Guided Repair in Lean 4arXiv · 2026
- LEVER: Adaptive Cost-Aware Proof Search Over AND/OR GraphsarXiv · 2026
- Maestro: Agentic Formal Proof Development by CoordinationarXiv · 2026
- SeQLean: Verifying SQL queries using LeanarXiv · 2026