A Self-Hosted, Time-Budgeted Agent for Lean Proof Refactoring with an Open-Weight Model
The paper describes an open-track entry in the Lean Refactor Arena: a general LLM agent harness that edits Lean 4 proofs (including Mathlib-based projects) and scores candidates by compiling them in the problem's own project, without problem-specific prompts. A single open-weight Qwen3.8-Flash-Next model in FP8, served with vLLM on four A100 80 GB GPUs, drives one tool-calling agent per problem under a 48-hour budget split into discovery and refinement phases. The submitted run took 47.8 hours, used a 60k context rebuild with CPU KV-cache offloading, and scored 79.25 Combined (62.48% length reduction, 76.96% heartbeat reduction, 98.3% zero-shot), with every proof checked by Lean's kernel.