Skip to content
OpenTrain AIFor AI Companies

A Self-Hosted, Time-Budgeted Agent for Lean Proof Refactoring with an Open-Weight Model

Ke Zhang, Pengzhen Lin, Zhouxing Shi, Maziar RaissiPublished Nov 30, 2026
arXiv PDF
Researcher verdict
Context only
Use as context only
Benchmark evidence
Thin evidence
Verify before relying
Time to first repro
A few days
Plan setup time
Risk flags
2
Review before use

Abstract

Domain fit: AI-adjacent · Paper appears method- or tooling-adjacent to AI workflows with partial ecosystem coverage.

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

Results and benchmarks

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.
Task Dataset Metric Value Source
Agentic tool use Qwen3.8-Flash API cost . 7.67 paper-derived
Agentic tool use DeepSeek-V4-Flash API cost . 3.80 paper-derived
Agentic tool use MiniMax-M2.7 API cost . 7.88 paper-derived

Audit each benchmark finding before selecting an implementation path.

Implementation

No direct implementation yet

Maintained implementation evidence is not confirmed for this paper yet.

Use the implementation status and reproduction sections for the current action plan.

Implementation evidence summary
Confidence: low

Recommendation evidence is currently too limited for a maintained-repo choice. Use Implementation Status and Reproduction Path for a practical baseline plan.

Reproduction risks
  • Estimate is based on paper-only reproduction flow

Reproduction readiness

Time to first repro: days
Last checked: Dec 2, 2026

No repo

No verified implementation available

  • No maintained repository has been identified for this paper. Check adjacent implementations or HF artifacts below.

Hardware requirements

  • 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, whil
  • 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

Hugging Face artifacts

No trustworthy direct or curated related Hugging Face artifacts were found yet. Use targeted searches to quickly locate candidate models, datasets, and demos.

Tip: start with models, then check datasets and spaces if you need evaluation data or demos.

Research context

Tasks

Agentic tool use

Methods

Transformer

Domains

Large Language Models, AI Agents

Evaluation and human feedback data

Open this paper in HFEPX to review benchmark signals, evaluation modes, and human-feedback protocol context.

Open in HFEPX
Explore similar papers

Jump to Paper2Code search queries derived from this paper's research context.