Numina Fuse: Interactive Autoformalization in Lean 4
Summary (Overview)
- Numina Fuse is an agent-native application for formalizing mathematics in Lean 4, designed around human supervision of AI agent work rather than full automation.
- The system evolved over six months (March–September 2026) from a single agent with Lean tools → a prescribed pipeline of writer/reviewer/prover agents → an orchestrator-led dispatch system where agents autonomously delegate tasks to specialists, provers, and parallel child orchestrators.
- Fuse separates durable components (project state, Lean tooling, interface design) from model-dependent orchestration, following the "bitter lesson" that hand-built structure loses to scaled general methods.
- The system was deployed on a formalization of the three-dimensional Kakeya conjecture, with the final assembly (adding ~592k lines of Lean in 12 days) completed outside Fuse using unmonitored agents.
- A prover model study showed that proof search can be routed to inexpensive models with similar accuracy (45–52/52 lemmas solved across all seven models) at costs varying by more than an order of magnitude.
Introduction and Theoretical Foundation
Background and Motivation
The paper addresses a fundamental tension in AI-assisted formalization: "Since Lean can compile while not representing its intended informal meaning, and agents now write Lean faster than people can read it" — Fuse was built around human supervision of agent work.
Three core problems shaped the design:
- Faithfulness — addressed by reviewer agents and human statement review
- Reuse — addressed by an explorer agent and the project's dependency graph
- Drift — addressed by a live view of every agent action, which the user can interrupt and redirect
Theoretical Foundation
The design follows the "bitter lesson" [51]: hand-built structure helps only until general methods, scaled with better models, overtake it. The authors kept what should outlast any model (project state, Lean tooling, interface design) separate from orchestration, so agents could take over more of the work as models improved.
The paper also cites the METR time horizon data showing frontier model capabilities doubling exponentially (every ~112 days), which motivated the architectural separation between durable infrastructure and replaceable orchestration logic.
Methodology
Architecture
Fuse separates agent orchestration from other processes:
- Work lives in the user's repository as an ordinary Lean and leanblueprint project
- Derived state (parsed blueprints, dependency graphs, build diagnostics, agent notes) lives in a PostgreSQL backend
- Sessions run on servers and survive both a closed browser and deployment
- Orchestration layer (prompts, roles, dispatch rules) changed with nearly every model release
Key Components
MCP Tool Servers (Table 1 from the paper):
| Server | Representative tools |
|---|---|
blueprint | read blueprint and declarations; update entries; set declaration status |
build | build project or module; build status, errors, warnings |
lean-lsp | goal state, hover, diagnostics, declaration resolution, Loogle search |
lean-explore | semantic search over Mathlib and other indexed packages |
sources | list sources; read text, OCR, PDF pages as images; search |
authoring | explore, draft blueprint, review blueprint, formalize, golf, review_proofs |
prover | run_provers (batch proof search) |
orchestration | delegate_tasks, auto_complete, task cancellation, metadata recovery |
Status Tracking
Fuse tracks three kinds of evidence about a declaration:
- Recorded status — what the blueprint's
\leanokmarkers say - Checked status — what Lean confirms (compiles without errors or
sorry) - Reviewed faithfulness — whether the Lean statement matches the source, from reviewer agents and people
Agent Architecture
- Specialists: blueprint writer/reviewer, formalizer/formalizer-reviewer, explorer, golfer, proof-style reviewer, provers
- Delegation: The orchestrator delegates every edit (down to a single lemma) as a "region" handled by a child orchestrator in a detached worktree
- Parallelism: Up to four children at once (one by default); proof search runs as batches of up to eight provers, one per declaration
- Sandboxing: OS-level jail with namespaces, resource limits, permission gates with an allowlist for shell commands
Empirical Validation / Results
Prover Selection and Cost Study
The study used 52 lemmas from four fully proved blueprint developments, each restated with a sorry. Results from Table 2:
| Model | Solved | Easy (of 16) | Medium (of 23) | Hard (of 13) | $ per solved lemma |
|---|---|---|---|---|---|
| Doubao Seed 2.1 Turbo | 52/52 | 16 | 23 | 13 | 0.080 |
| Claude Sonnet 4.6 | 51/52 | 16 | 23 | 12 | 0.421 |
| Doubao Seed 2.1 Pro | 51/52 | 16 | 23 | 12 | 0.162 |
| Claude Opus 4.8 | 49/52 | 15 | 22 | 12 | 0.526 |
| Kimi K2.6 | 49/52 | 16 | 22 | 11 | 0.398 |
| DeepSeek V4 Flash | 47/52 | 14 | 23 | 10 | 0.041 |
| DeepSeek V4 Pro | 45/52 | 15 | 20 | 10 | 0.218 |
Key finding: All models solved 45–52 of 52 lemmas, so accuracy did not separate them reliably, but cost varied by more than an order of magnitude (from $0.041 to $0.526 per solved lemma) at similar accuracy.
Kakeya Conjecture Formalization
The main theorem has the type:
where StickyFrostmanHypothesis is the project's formulation of the sticky Frostman estimate (Theorem 7.3(A) of Guth, Wang, and Zahl [20]). The library declares no axioms; the release verification script checks that the main theorem depends only on Lean's three standard axioms (propext, Classical.choice, Quot.sound).
Key metrics:
- Fuse phase (May–early September): Most definitions and main theorem statements formalized; the golfer reduced elaboration cost of one central file from ~220M to 85M heartbeats (~61% reduction)
- Final assembly (Aug 26 – Sep 7, outside Fuse): ~592k lines of Lean added in 12 days; excluding ~35% copied from other branches leaves ~288k new lines (25k per day)
- Comparison: Fuse usage on LeanEval produced ~10k lines per day per session — the final assembly wrote 2–5× more per day
Observed Failures Driving Design Changes
- Agents strengthening unprovable statements (making them false but provable)
- Agents re-proving lemmas instead of reusing existing results
- Statement errors found only by human review: an unsatisfiable hypothesis, a Lean statement stronger than its blueprint entry, and a quotient false as stated
Theoretical and Practical Implications
Design Principle: "What Lasts vs. What Changes"
The paper's central architectural insight is that the components that survived were those independent of any specific model:
- Project state (Git repository, leanblueprint documents)
- Lean tooling (build system, language server, MCP servers)
- Verification (Lean's kernel checking)
- Interface design
The orchestration layer (prompts, roles, dispatch rules) changed with nearly every model release.
Statement Faithfulness
The paper emphasizes that "type-checking overstates faithfulness" — a theorem can compile in Lean while not meaning what the source paper says. Evidence cited:
- A revision of miniF2F found mismatches in more than half of its formal statements [41]
- On 227 university-level statements, the gap between formalizations that compile and those accepted as faithful reaches 29.5 points for one agent [64]
- Within hours of release, experts found serious flaws in the unreviewed Atlas library, including a tautological reduction rated 5/5 by the system's LLM judge [10]
Lessons for Future Systems
- Blueprints are now a bottleneck — a separately maintained blueprint adds work, falls out of date, and constrains agent decomposition; a graph of Lean statements (as in Prove2Me [15]) may be more efficient
- People should set standards, not review every step — human review should concentrate on definitions, main theorem statements, and accepting a release
- Architecture and search are more important than individual proofs — the hard problem shifts to library design, API quality, and finding existing results
- Progress depends on infrastructure and institutions — access to papers, compute, and coordinated initiatives like the proposed Mathematics Autoformalization Project [31]
Conclusion
Numina Fuse connected human statement review, agent proof search, persistent project state, and Lean verification in one environment. Over 2026, it moved from a prescribed pipeline toward an orchestrator that chooses its own dispatch. The prover study showed that proof search can be routed to inexpensive models at similar accuracy, and the Kakeya formalization demonstrated both the strengths and limits of the approach.
The parts of Fuse that lasted were the ones that did not depend on a model: the project state, the Lean tooling, and verification. The future direction points toward less prescribed scaffolding, more autonomous production, and more investment in the infrastructure and institutions that make formalized mathematics accessible, trustworthy, and cumulative.
The open-source Fuse Desktop is available at https://github.com/project-numina/fuse-desktop, sharing the hosted app's interface and agent roles while running locally with the user's own Claude Code or Codex account.
Related papers
- Self-WSP: Can Language Models Improve Themselves Through Weight-Space Programming?
A 0.8B model can self-improve by editing its own weights, quintupling GSM8K accuracy, but random edits match it, revealing search, not understanding, drives gains.
- Proximal Targets: Training Looped Refiners on Problems with Many Correct Answers
Training looped refiners on the correct answer nearest to each draft eliminates the blending loss floor, boosting multi-answer Sudoku solving from 2.5% to 98.8%.
- RecurSciBench: Benchmarking Recursive Self-Improvement in Data-Driven Scientific Research
RecurSciBench shows recursive self-improvement gains are system-dependent and uneven, with half of evolved states regressing, yet experience can transfer across task types and domains in non-obvious ways.