MerLean: An Agentic Framework for Autoformalization in Quantum Computation
Preprint
Abstract
We introduce MerLean, a fully automated agentic framework for autoformalization in quantum computation. MerLean extracts mathematical statements from \LaTeX{} source files, formalizes them into verified Lean~4 code built on Mathlib, and translates the result back into human-readable \LaTeX{} for semantic review. We evaluate MerLean on three theoretical quantum computing papers producing 2,050 Lean declarations from 114 statements in total. MerLean achieves end-to-end formalization on all three papers, reducing the verification burden to only the newly introduced definitions and axioms. Our results demonstrate that agentic autoformalization can scale to frontier research, offering both a practical tool for machine-verified peer review and a scalable engine for mining high-quality synthetic data to train future reasoning models. Our approach can also be generalized to any other rigorous research in mathematics and theoretical physics.Keywords
All Related Versions
This publication has 6 references indexed in Scilit:
- Low-overhead fault-tolerant quantum computation by gauging logical operatorsNature Physics, 2026
- Autoformalization in the Wild: Assessing LLMs on Real-World Mathematical Definitions2025
- Autoformalize Mathematical Statements by Symbolic Equivalence and Semantic Consistency2024
- The Lean 4 Theorem Prover and Programming Language2021
- A Promising Path Towards Autoformalization and General Artificial Intelligence2020
- Isabelle1994