M2F: Automated Formalization of Mathematical Literature at Scale
Zichen WangWanli MaZhenyu MingGong ZhangKun YuanZaiwen Wen
Zichen Wang
Wanli Ma
Zhenyu Ming
Gong Zhang
Kun Yuan
Zaiwen Wen
+6
M2F (Math-to-Formal) is a framework that compiles long mathematical sources into project-scale Lean infrastructure, addressing the bottleneck of definitions, APIs, and stable dependencies. It first generates a Lean project with proof placeholders from source-aligned statement skeletons, then freezes signatures and repairs holes, using a verifier-gated accept/revert contract. Evaluated on seven source roots, it produced 591 files and 10,637 declarations, with 2,023/2,089 statements judged acceptable and all 875 audited proof obligations closed, supporting a statement-first view of autoformalization.

OpenReview ·
· May 24, 2026