GLOBAL EDUCATION & RESEARCH ·
Scholar News Hub

Global scholarships · University news · Research opportunities

Explore funding by country →

RESEARCH & EDUCATION NEWS · Mathematics · Formal verification · 4 DECEMBER 2026

Lean and Fermat’s Last Theorem: What a Machine-Checked Proof Really Means

A new Lean research artifact reports a formalized proof of Fermat’s Last Theorem. Learn the difference between a mathematical breakthrough and machine verification of an established result.

Source event or announcement: 1 December 2026 repository update · Editorial review: 4 December 2026

TheoremFermat’s Last Theorem
Research artifactflt_e2e repository
Pinned toolchainLean 4.33.1
StatusAuthor-reported machine verification
Mathematical notation written on a blackboard at Maynooth University
David Malone / Wikimedia Commons; CC BY 4.0; contextual photograph of cryptography mathematics, not Fermat’s proof. Original image · Reuse terms. Resized for web display.

A new artifact for an established theorem

The flt_e2e package listed in Lean Reservoir on 1 December reports a completed formalization of Fermat’s Last Theorem using Lean and Mathlib. Its documentation describes checks with a pinned Lean version and an additional proof-checking implementation. This is not a new discovery of the theorem: the established mathematical proof is due to the work of Wiles and Taylor–Wiles, among the other foundational contributions. Imperial College London’s separate formalization project is also ongoing.

What is Fermat’s Last Theorem?

For positive integers a, b and c, the equation aⁿ + bⁿ = cⁿ has no solutions when the integer n is greater than 2. The statement is deceptively short; its modern proof uses deep number theory rather than simply testing a large collection of numbers. A finite search cannot establish a universal assertion across infinitely many integers.

How a proof assistant works

In a formal proof environment, statements must be expressed using precise definitions and logical rules. Lean elaborates mathematical expressions and checks proof terms against its underlying logic. Tactics can automate proof construction, but the trusted checker is intended to validate the resulting terms. A mathematical statement accepted by the checker is meaningful only if it correctly expresses the intended theorem and relies on appropriate assumptions.

Why reproducibility depends on versions

The repository reports successful verification with Lean 4.33.1 and a pinned Mathlib dependency. Reservoir also records unsuccessful builds on some newer toolchain versions. Those failures do not by themselves refute the theorem, but show why reproducibility requires exact version information, dependencies, and a distinction between compilation and verification. We have not independently executed the complete proof artifact.

What students should learn from AI-assisted mathematics

AI can suggest a statement, search for intermediate lemmas or propose tactics. A coherent English explanation is not proof. A useful workflow is to formalize the desired proposition, inspect assumptions and obtain a checked derivation, then understand the argument mathematically. Formal verification can support research but does not replace the human judgement needed to choose useful definitions, interpret conclusions and assess significance.

Conceptual workflow: how the process fits together

  1. Precise theorem statement
  2. Definitions and dependencies
  3. Construct proof terms
  4. Kernel verification
  5. Review assumptions and reproducibility

Editorial learning diagram: conceptual sequence, not a measured dataset.

Research exercise for students

Install a supported Lean toolchain using its official documentation and prove a simple statement, such as commutativity of natural-number addition using an existing theorem. Inspect the types and dependencies. Change the statement to an incorrect assertion and observe that an attempted proof cannot be accepted by ordinary sound proof rules.

Frequently asked questions

Did AI discover Fermat’s Last Theorem in 2026?

No. The result was established decades earlier. The news concerns formalizing and checking an existing theorem.

Does a successful Lean build prove every intended claim?

It checks formal declarations under the relevant assumptions; the intended statement and dependencies still need inspection.

Is this artifact independently reproduced by us?

No; we report the repository’s documented checks and toolchain caveats.

Read the original evidence

Editorial source check: 4 December 2026. Interpretations and student exercises are our own explanations, not additional reported experimental findings.

Continue exploring

Report a correction · Subscribe to research updates