A fully automated agentic framework for autoformalization — bridging LaTeX research papers and verified Lean 4 code.
MerLean is a bidirectional pipeline powered by Claude that extracts mathematical statements from LaTeX, formalizes them into verified Lean 4 code built on Mathlib, and translates the result back into human-readable LaTeX for semantic review — all without human intervention.
Across three quantum-computing papers (114 statements), MerLean produced 2,050 Lean declarations totaling 41,000+ lines of verified code, achieving full formalization without axioms on two of three papers.
Research papers from the MerLean project.
Demos and presentations showcasing MerLean in action.
Videos coming soon. Stay tuned for demos and presentations!
Updates on autoformalization, Lean 4, and quantum computation.
Browse the formalization output produced by MerLean.
Formalization of Low-overhead fault-tolerant quantum computation by gauging logical operators. Covers stabilizer formalism, Pauli algebra, transversal gates, gauging graphs, and fault-tolerant measurement — 1,450 Lean declarations from 48 statements.