arXiv:2611.41820 · v1
A Self-Hosted, Time-Budgeted Agent for Lean Proof Refactoring with an Open-Weight Model
摘要
We describe our open-track entry in the Lean Refactor Arena, a general LLM agent harness for formal theorem proving and proof refactoring rather than a trained model: it applies to any Lean 4 proof (including Mathlib-based projects), and its prompts contain no proof techniques or content written for particular problems. A single open-weight LLM, Qwen3.8-Flash-Next in its FP8 release without fine-tuning, is served with vLLM on four A100 80 GB GPUs and drives one tool-calling agent per problem, while the node's CPUs compile, measure and search around it. The agent edits the reference proof through tools that compile and score it in the problem's own Lean project, and every valid proof is kept as a scored candidate. Each problem runs a discovery and then a refinement phase; long conversations are rebuilt from checkpoints, model-free passes improve the best candidate, and the final choice compiles candidates on every Lean version the problem lists. All problems run concurrently in one job that ends within the 48-hour limit, setup included (the submitted proofs took 47.8 hours from the first setup step, selection included). Self-hosting on A100 required three compatibility fixes, and the context length at which a conversation is rebuilt has a sweet spot: shorter contexts score less per request, while longer ones overflow the GPU KV cache and evict cached prefixes at 60 concurrent problems (at 80k, throughput falls from about 1,700 to 530 output tokens/s). The submitted run uses 60k with CPU KV offloading. The submitted proofs score 79.25 Combined (62.48% length reduction, 76.96% heartbeat reduction, 98.3% zero-shot), and every one is fully checked by Lean's kernel. Code: https://github.com/grenadeComing/lean-refactor-arena
作者备注:16 pages (9 pages main text, 7 pages references and appendices), 1 figure, 13 tables. Accepted at the NeurIPS 2026 Workshop on AI for Verifiable Coding (Lean Refactor Arena, Open Track). Code: https://github.com/grenadeComing/lean-refactor-arena