← News

Agents & MCPSources: arXiv · 1 Dec 2026

Open-weight agent harness refactors Lean 4 proofs within a 48-hour budget

A team reports its Lean Refactor Arena entry: a general agent harness, not a trained model, driving one open-weight LLM per problem to shorten formal proofs.

In plain words

The authors built a software harness that lets a single off-the-shelf language model rewrite formal proofs so they become shorter while still verifying correctly. The model works through tools that compile and score each attempt inside the proof's own project. No model training was involved; the same setup applies to any Lean 4 proof.

What was announced

The entry, described in an arXiv abstract, is a general harness for formal theorem proving and proof refactoring rather than a fine-tuned model. Its prompts contain no problem-specific content, and it works on any Lean 4 proof, including projects built on Mathlib. A single open-weight model, Qwen3.8-Flash-Next in FP8 form, runs on vLLM across four A100 80 GB GPUs, with one tool-calling agent per problem while CPUs handle compiling, measuring and searching.

Each problem gets a discovery phase then a refinement phase; valid proofs are kept as scored candidates, long conversations are rebuilt from checkpoints, and final picks are compiled on every Lean version a problem lists. The whole job finished in 47.8 hours, inside the 48-hour cap. Submitted proofs scored 79.25 Combined, with 62.48% length reduction and 76.96% heartbeat reduction, and each was fully checked by Lean's kernel. The authors note self-hosting needed three compatibility fixes, and that context length matters: at 80k tokens with 60 concurrent problems, throughput dropped from roughly 1,700 to 530 output tokens per second, so the run used 60k with CPU KV offloading.

What it does not show

  • Evidence is limited to the paper's abstract; the full paper's methods and results were not reviewed.
  • Scores and throughput figures are the authors' own reported numbers, not independently confirmed.
  • The abstract does not state how the entry placed in the arena or how it compares with other submissions.

For security and IT teams

Scope
The harness targets any Lean 4 proof, including Mathlib-based projects, and its prompts avoid problem-specific content.

Sources

Source-support review completed 1 Dec 2026. This story was drafted with AI assistance and checked against retained source passages. Automated checking is not independent verification.

Coverage: arXiv: abstract.

Updates and corrections

No corrections so far.

First published 1 Dec 2026

New to the subject? AI from the Ground Up starts from the beginning.