Fermat's Last Theorem in the FLT project stands at rank 249
The record
The FLT project at Imperial College London is formalising a proof of Fermat's Last Theorem in Lean. Its statement of the theorem is PNat.pow_add_pow_ne_pow. In the project's environment at the pinned commit:
PNat.pow_add_pow_ne_powstands at rank 249; its longest chain has 250 places.- The highest rank in the environment is 265. It has 807,205 constants: 291,500 places, 29,794 members, 360,882 plumbing and 125,029 ground. The rank pass took 334 seconds.
- For scale: quadratic reciprocity at 89 and the intermediate value theorem at 38 in the same environment (FLT pins its own Mathlib, so these differ a little from other environments).
An unfinished proof
The project is not finished, and the rank is measured over what exists today. The theorem stands on a realm of 34,127 places. 34,117 of them are proved down to the three standard axioms. The other 10, the theorem itself included, are not yet: 3 rest directly on sorry (a step not yet proved) or on an extra axiom, and the rest stand on those. In the whole project, 49 places rest directly on sorry or on the project's placeholder axiom for results "known in the 1980s", and 113 places depend on such a place.
In the game these open places are the raid board: quests that anyone can take on in Lean.
Rank rule. The ranks on this page were measured with rule v1 (before 28.11.2026); the rules and their versions are in rank/RULES.md in the repository. Since 28 November 2026 Mathlib's own lemmas under List, Option, Char and three other core heads count as places (rule v2); in MathRPG's Mathlib table quadratic reciprocity now stands at 154. The FLT environment was not measured again: on this PC the full pass with its axiom column takes more than an hour.
Results
| rank | 249 |
|---|---|
| chain_length | 250 |
| max_rank | 265 |
| constants | 807,205 |
| places | 291,500 |
| members | 29,794 |
| plumbing | 360,882 |
| ground | 125,029 |
| rank_pass_seconds | 334 |
| realm | 34,127 |
| open_sorry_places | 3 |
| assumed_places | 10 |
| land | 34,117 |
| project_flagged | 49 |
| project_assumed | 113 |
| mathlib_landmarks.legendreSym.quadratic_reciprocity | 89 |
| mathlib_landmarks.intermediate_value_Icc | 38 |
| rank_rule | rule v1 (before 28.11.2026) |
Pin
| Repository | https://github.com/ImperialCollegeLondon/FLT |
|---|---|
| Commit | 019805815d7da565ed1e9f427b6fbd0cbc9d00d3 |
| Lean | v4.35.0 |
| Mathlib | 56a005855ea17e0b0958f73ec801ae140b0a1679 |
Files (SHA-256)
- rank/flt.json (in the repository)
ff64145d22e4caeb5aa91bcd68cd1b7d42cf6b4d8be58b86ca3ab3a266cd3483 - rank/raid-flt.json (in the repository)
6ee6a5dbccdf18e72a4a5de667c2b4e551fb34220a7b9e2f0bc82724a736782a
To reproduce
# layout: <dir>/vendor/FLT and <dir>/projects/MathRPG-lean; FLTRank.lean writes into the latter's rank/
git clone https://github.com/ImperialCollegeLondon/FLT.git vendor/FLT && cd vendor/FLT
git checkout --detach 019805815d7da565ed1e9f427b6fbd0cbc9d00d3
lake exe cache get && lake build
lake env lean ../../projects/MathRPG-lean/FLTRank.lean
# or, in a sandbox VM: py -3 world/dominion.py build flt && py -3 world/dominion.py measure flt
Credit
- FLT, the Lean formalisation of Fermat's Last Theorem — Kevin Buzzard, Imperial College London, and the FLT contributors. Licence: Apache 2.0. Measured only; the numbers and declaration names here are derived from its environment.
- Lean 4 and Mathlib — the Lean FRO, the Lean 4 contributors and the Mathlib contributors. Licence: Apache 2.0.