Skip to content
DAH

Large formalization projects: blueprints, Liquid Tensor, PFR, equational theories, FLT

The practice of formalizing a whole research result in Lean with a public blueprint and many contributors, and what the finished projects showed.

On this page14 sections
Why other work relies on it

These projects produced both the Mathlib library and the working methods (blueprints, dependency graphs, crowd and agent collaboration) that any new formalization effort now copies.

Community efforts to turn a whole research proof into computer-checked code, step by step.

  1. 1Cut the proof into numbered pieces
  2. 2Link each piece to Lean code
  3. 3Many people fill in leaves
  4. 4Merge results into the shared library

Blueprints. A blueprint is a document whose statements (definitions, lemmas, theorems) each get a label and a list of dependencies; a tool (leanblueprint) renders it as a web page and a dependency graph and links each statement to its Lean declaration. Colours show which are stated, proved, or missing. This makes the project parallel: a newcomer can take a leaf.

Liquid Tensor Experiment. Scholze posed the challenge in December 2020 about a main theorem of his work with Clausen on liquid vector spaces. Led by Johan Commelin and Adam Topaz, it finished on 14 July 2022. It pushed Mathlib's homological algebra.

Polynomial Freiman–Ruzsa. Gowers, Green, Manners and Tao proved Marton's conjecture in November 2023; Tao organised a public Lean 4 formalization right away. The repository reports the main goal complete, and a second stage on consequences and an exponent improvement also complete.

Equational Theories Project. Started 25 September 2024 to decide all 4694×4693=22,028,9424694 \times 4693 = 22{,}028{,}942 implications among the simplest equational laws of magmas (sets with one binary operation). Human proofs, SAT-style tools and automated provers cooperated, and every implication or counterexample was checked in Lean. The paper is arXiv:2512.07087.

Others. Carleson's theorem, Viazovska's sphere packing and prime number theorem results; and the Imperial College project for a Mathlib-integrated proof of Fermat's Last Theorem, funded until September 2029.

What the projects teach. Infrastructure dominates the effort; blueprints let strangers and AI agents collaborate; reviewers must check that statements say the right thing; and merging into Mathlib, not proving, is often the bottleneck.

Go deeper

The full technical text.

The method

A large formalization is organized around a blueprint: a human-readable outline of the proof broken into small numbered statements, each linked to its Lean declaration and to the statements it depends on. A dependency graph shows which pieces are proved, stated, or not yet touched, so strangers can pick up a leaf without reading the whole proof. This is the same shape as DARC's knowledge tree, and the tooling (leanblueprint) comes from this community.

Landmarks

  • Liquid Tensor Experiment. In December 2020 Peter Scholze challenged the community to check the main theorem on liquid vector spaces from his work with Dustin Clausen, a result he was not fully sure of. The project, led by Johan Commelin with Adam Topaz, finished on 14 July 2022, per the community announcement. It showed that a hard, brand-new research result could be formalized in a general-purpose library, and it drove Mathlib's homological algebra. Code: lean-liquid.
  • Polynomial Freiman-Ruzsa (PFR). Right after Gowers, Green, Manners and Tao posted their proof of Marton's conjecture (arXiv:2311.05762), Tao ran a public Lean 4 formalization with a blueprint (overview). The repository reports that the main goal and a second stage of consequences are complete, with extension to bounded-torsion groups and an exponent improvement also formalized. Code: teorth/pfr.
  • Equational Theories Project. Launched on 25 September 2024 to determine all implications among 4,694 equational laws of magmas, i.e. 22,028,942 candidate implications. Humans and automated provers split the work, and every claimed implication or refutation was checked in Lean. The completion paper is arXiv:2512.07087, with 34 authors. Code: teorth/equational_theories.
  • Carleson, sphere packing, strong prime number theorem. Formalizations of a generalized Carleson theorem (fpvandoorn/carleson), of Viazovska's dimension-8 sphere packing (Sphere-Packing-Lean) and of prime-number-theorem results (PrimeNumberTheoremAnd) follow the same pattern.
  • Fermat's Last Theorem. The Imperial College project (FLT), led by Kevin Buzzard and funded by the EPSRC until September 2029, aims at a Mathlib-integrated formalization of a modern proof. A separate machine-produced certificate (September 2026) shows the theorem can be checked, but does not replace that goal. See the open problem on the FLT formalization.

Lessons the projects share

  1. Most effort is infrastructure, not the headline argument: definitions that other mathematicians will reuse, fitted to Mathlib's hierarchy.
  2. Blueprints let work scale across contributors, and increasingly across AI agents that need exactly this kind of task graph.
  3. Statement fidelity is reviewed by people. The checker proves the Lean statement, so mathematicians check that it says the right thing.
  4. Upstreaming is the bottleneck. Results that stay outside Mathlib rot with each Lean release; getting them merged takes reviewer time that is scarcer than proof effort.
Words on this page (7)
Words on this page
blueprint
A plan for a formalization that splits a proof into small linked statements.
dependency graph
A diagram showing which statements need which others.
Fermat's Last Theorem
The claim that no three positive whole numbers satisfy a to the power n plus b to the power n equals c to the power n once n is above 2.
magma
A set with one operation that takes two elements and returns one, with no other rules.
condensed mathematics
A new framework of Clausen and Scholze for combining algebra and topology.
Marton's conjecture
A statement that sets with small sums are close to sets with a clean algebraic structure.
upstreaming
Getting new work accepted into the main shared library.
New to this? Read first (4)
New to this? Read first
AI-reviewedAn AI drafted this explanation. Check it against the technical text.

Understanding map

map of the whole wiki →

What to read before Large formalization projects: blueprints, Liquid Tensor, PFR, equational theories, FLT (left), and what builds on it: entries that depend on it and its open problems (right). Every box links to its page.

  1. Start with
  2. Step 2
  3. Then

Open problems & questions

No open problems or questions on this entry.

Progress timeline

  1. Dec 8, 2025
    Equational Theories Project paper

    The completion paper reports that all 22,028,942 implications between the 4,694 laws are determined, with proofs checked in Lean.

    source
  2. Oct 1, 2024
    Imperial College FLT project starts

    EPSRC-funded effort to formalize a modern proof of Fermat's Last Theorem in Lean (month approximate).

    source
  3. Sep 25, 2024
    Equational Theories Project launched

    Terence Tao opens a public project to settle all implications among 4,694 magma laws.

    source
  4. Jul 14, 2022
    Liquid Tensor Experiment completed

    The Lean formalization of the main theorem on liquid vector spaces is finished, about a year and a half after Scholze's challenge.

    source