Malotru
Back to notes

Ground After the Manuscript

November 18, 2026

On 17 November 2026 Axiom Math released a Lean 4 formalization of the minimal model program in dimensions 2, 3, and 4, including OpenAI's 2026 fourfold termination manuscript, built on Mathlib and Axiom's Stacks Project library. The blog subtitle says 2.1 million lines; another paragraph says 2 million lines. The README prints no line count. It says about 2,270 modules written by AI agents, Lean 4 v4.35.0, no sorry, no native_decide, and no added axiom, using only propext, Classical.choice, and Quot.sound. A listing of the default branch contains 2,269 Lean files. The fourfold theorem ends with K+B nef on curves or a Mori fibre space, and assumes neither Q-factoriality nor pseudo-effectivity. Every proof is kernel-checked, and the code has not yet been reviewed by humans. "In days" is Axiom's claim. The license is Apache 2.0.

Ground After the Manuscript

On 17 November 2026 Axiom Math released a Lean 4 library for the minimal model program in dimensions 2, 3, and 4. The artifact includes a formalization of an OpenAI manuscript from autumn 2026, built on Mathlib and on Axiom's formalization of the Stacks Project. The blog's claim is that the kernel now checks this stretch of birational geometry. The README adds the condition that has to stay attached: the proofs are kernel-checked, and the code has not yet been reviewed by humans [Source 1][Source 2].

The blog gives two lengths. The subtitle says a century of birational geometry, and the recent AI-generated proofs, became 2.1 million lines of machine-checked truth. One paragraph then says the release spans 2 million lines. Later the same post says a 2.1-million-line codebase, and the close repeats 2.1 million lines [Source 1]. Both phrasings are Axiom's, and they stay side by side.

The README prints no line count. It says `import MMP` brings in about 2,270 modules written by AI agents, and then the sentence that has to travel with the release: "Every proof is kernel-checked; the code has not yet been reviewed by humans." [Source 2]. A listing of the default branch, retrieved for this note, contains 2,269 files ending in `.lean`: 2,268 under `MMP/` and `MMP.lean` at the root. That is a file count in the neighborhood of "about 2,270." It is not a line count, and it does not decide the blog's two phrasings.

What a maximal program is asked to do

The README describes a formalization of the minimal model program for log canonical pairs in dimension at most four. The four-dimensional theorem follows OpenAI, Termination for projective log canonical fourfolds with rational boundary (2026). The classical background is credited to Kollár and Mori, Birational Geometry of Algebraic Varieties, and to Flips and Abundance for Algebraic Threefolds [Source 2]. Lean's kernel checks every proof. There is no `sorry`, no `native_decide`, and no added axiom [Source 2].

The named statement is `MMP.Fourfold.Program.IsMaximal.isNefOnCurves_or_isMoriFibreSpace`. Let the base field be algebraically closed of characteristic zero, and let (X, B) be a projective log canonical fourfold pair over that field with rational boundary. A maximal program has finitely many birational steps and ends with K+B nef on curves, or with a Mori fibre space. The prose above the code says the end state is a model on which K+B is nef, or a Mori fibre space. The Lean name uses `IsNefOnCurves`. Nef, in the usual sense, means non-negative intersection with every curve, so the prose and the predicate name the same end. The argument is split into continuation, `MMP.Fourfold.Program.isContinuableRay`, and termination, `MMP.Fourfold.Program.n_ne_top_of_isAlgClosed`. Every (K+B)-negative extremal ray has a contraction, and a birational contraction continues by a divisorial contraction or a flip. Every program has finitely many birational steps. Neither ℚ-factoriality nor pseudo-effectivity of K+B is assumed [Source 2].

Under that sits a separate engine, `MMP.Fourfold.projectiveLowerLogMMP_three`, of type `ProjectiveLowerLogMMP 3`. Its hypotheses are tighter. It is the relative program for ℚ-factorial dlt pairs of dimension at most three over the complex numbers: every negative extremal ray over the base has a contraction and, when the contraction is small, a flip; projective dlt programs terminate; some program ends with K+B nef over the base or with a Mori fibre space [Source 2]. The blog's "dimensions 2, 3, and 4" is the scope it claims for the library [Source 1]. The fourfold theorem and this threefold engine do not share one list of assumptions.

The toolchain file in the same repository is `leanprover/lean4:v4.35.0`, which matches the README's Lean 4 version. The library text says proofs use only `propext`, `Classical.choice`, and `Quot.sound`, and it shows `#print axioms` on the fourfold theorem listing those three [Source 2]. That is a statement about Lean's kernel. It is a separate question whether the definitions match the ones geometers use. The README places that question in the open: the modules were written by AI agents, and the code has not yet been reviewed by humans [Source 2].

The gap Axiom says it closed

The blog's chronology is Axiom's. On 6 October, OpenAI announced manuscripts claiming to settle remaining open cases of the four-dimensional program. The same post later places those manuscripts in autumn 2026, and names, in the references, the termination paper the README follows. Axiom says no formalization accompanied the papers, largely because the foundational machinery of the subject had not been available in a proof assistant. It says the formalization closed that gap "in days," by building on the Stacks Project library and Mathlib rather than from an empty project [Source 1]. "In days" is Axiom's description of its own schedule. The license in the README is Apache 2.0 [Source 2].

The mathematical stake is the one the blog sketches and the theorem states. In dimension 2, contractions of (−1)-curves reach a minimal surface in finitely many steps because the Picard number drops. From dimension 3 upward, a small contraction can leave a space whose canonical class is not ℚ-Cartier, and the repair is a flip. Flips leave the Picard number unchanged, so termination is the hard half. BCHM established log flips in arbitrary dimensions and minimal models for varieties of log general type, and showed that a run with scaling terminates, which is short of termination in general. Unconditional termination of log flips stayed open from dimension 4. The blog cites Moraga's 2025 theorem on termination for pseudo-effective fourfold flips as one special case already in the literature, and treats OpenAI's 2026 manuscript as the claim on what remained [Source 1]. The formalized fourfold statement assumes neither ℚ-factoriality nor pseudo-effectivity of K+B [Source 2].

Kernel acceptance answers whether the formalized conclusion follows from the stated hypotheses. It does not, by itself, answer whether those hypotheses are the theorem a reader of the manuscript thought was being checked. That second reading is the human review the README says has not happened. Until it has, the library is machine-checked ground with two published lengths on the blog, 2 million lines and 2.1 million, and with a module count a listing can sit next to. The count that does not require choosing a length is the README's: about 2,270 modules, kernel-checked, and not yet reviewed by people [Source 1][Source 2].

Sources