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:

  1. Faithfulness — addressed by reviewer agents and human statement review
  2. Reuse — addressed by an explorer agent and the project's dependency graph
  3. 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):

ServerRepresentative tools
blueprintread blueprint and declarations; update entries; set declaration status
buildbuild project or module; build status, errors, warnings
lean-lspgoal state, hover, diagnostics, declaration resolution, Loogle search
lean-exploresemantic search over Mathlib and other indexed packages
sourceslist sources; read text, OCR, PDF pages as images; search
authoringexplore, draft blueprint, review blueprint, formalize, golf, review_proofs
proverrun_provers (batch proof search)
orchestrationdelegate_tasks, auto_complete, task cancellation, metadata recovery

Status Tracking

Fuse tracks three kinds of evidence about a declaration:

  • Recorded status — what the blueprint's \leanok markers 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:

ModelSolvedEasy (of 16)Medium (of 23)Hard (of 13)$ per solved lemma
Doubao Seed 2.1 Turbo52/521623130.080
Claude Sonnet 4.651/521623120.421
Doubao Seed 2.1 Pro51/521623120.162
Claude Opus 4.849/521522120.526
Kimi K2.649/521622110.398
DeepSeek V4 Flash47/521423100.041
DeepSeek V4 Pro45/521520100.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:

KakeyaDimensionThree:StickyFrostmanHypothesis→KakeyaSetConjecture 3KakeyaDimensionThree : StickyFrostmanHypothesis \rightarrow KakeyaSetConjecture\ 3

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

  1. 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
  2. People should set standards, not review every step — human review should concentrate on definitions, main theorem statements, and accepting a release
  3. Architecture and search are more important than individual proofs — the hard problem shifts to library design, API quality, and finding existing results
  4. 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