← All papers
First page of Moonshine Conjecture Formalized

Moonshine Conjecture Formalized

Jin-Cheng Guu

math.QA Nov 20, 2026 · v1 cs.LO math-ph
Formalizes the Moonshine theorem in Lean by connecting the VOA and CFSG repositories, migrating Lean/Mathlib versions and building Griess algebra bridges.
The celebrated and intimidating Moonshine Conjecture has now been formalized in Lean. This achievement might suggest that, once a sufficiently large library compiles, the principal mathematical work is complete. This paper tells a less optimistic story. During our formalization project, we repeatedly encountered two problems that a formally checked proof alone does not settle: (1) whether the formal statements actually express the mathematics we humans expect, and (2) how that meaning survives as the repositories and their dependencies evolve. We argue that there is no magic pill that turns a large agent-produced library into mathematics a community can trust. Even after the proofs are checked by the Lean kernel, someone must judge whether the definitions and statements express the intended mathematics and whether future updates preserve that meaning. This work, even when done, can only be trusted. We must therefore return to the usual trust model: relying on the mathematical judgment of maintainers and expert communities. But semantic review is expensive, making it tempting to keep producing code and take successful kernel checks as sufficient grounds for trust. This shortcut accumulates semantic debt: definitions and results with unchecked mathematical interpretations are reused as foundations for further work. A library may keep compiling and produce the desired formal theorem while users lose track of which mathematical claims they can responsibly rely on. Reliable reuse is also a prerequisite for Terence Tao's vision of formal mathematics as something people can navigate, explain, learn from, and build with. This paper takes our work connecting the VOA and CFSG repositories for the Moonshine Conjecture as a case study of the challenges of reliable reuse as formal developments scale.

A Lean proof that the kernel has checked does not by itself show that the formal statements express the intended mathematics. It also does not show that this meaning survives as libraries and their dependencies evolve. Large agent-produced libraries make these questions pressing.

The authors formalize the statement that the moonshine module V♮ has graded character j(τ)−744 and automorphism group isomorphic to the Monster. They do this by connecting the VOA repository with AxiomMath's CFSG repository. This required migrating the VOA development to compatible Lean/Mathlib versions. It also required bridging different Lean representations of the Griess algebra. The project serves as a case study of the semantic gap and of versioning problems.

They produce a Lean theorem `moonshineConjecture` asserting both properties. They argue that unchecked definitions accumulate as 'semantic debt' and that trusted maintainers, rather than provers, are the bottleneck for reliable reuse.