Dataset Viewer
The dataset viewer is not available for this dataset.
Unexpected token '<', "<html> <h"... is not valid JSON

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

Lean4-FLT

Structured dataset from FLT — Formalization of Fermat's Last Theorem.

Source

Schema

Column Type Description
statement string Declaration signature/claim with the leading keyword removed (verbatim slice); the full declaration minus its proof
proof string Verbatim proof/body, empty if the declaration has none
type string Declaration keyword
symbolic_name string Declaration identifier
library string Sub-library
filename string Repository-relative source path
imports list[string] File-level Require/Import modules
deps list[string] Intra-corpus identifiers referenced
docstring string Preceding documentation comment, empty if absent
source_url string Upstream repository
commit string Upstream commit extracted

Statistics

  • Entries: 1,754
  • With proof: 1,712 (97.6%)
  • With docstring: 700 (39.9%)
  • Libraries: 71

By type

Type Count
lemma 784
def 467
theorem 297
instance 88
abbrev 75
class 25
structure 14
axiom 3
macro 1

Example

PNat.pow_add_pow_ne_pow
    (x y z : ℕ+)
    (n : ℕ) (hn : n > 2) :
    x^n + y^n ≠ z^n
PNat.pow_add_pow_ne_pow_of_FermatLastTheorem Wiles_Taylor_Wiles x y z n hn

/--
info: 'PNat.pow_add_pow_ne_pow' depends on axioms: [propext, sorryAx, Classical.choice, Quot.sound]
-/
#guard_msgs in
#print axioms PNat.pow_add_pow_ne_pow
  • type: theorem | symbolic_name: PNat.pow_add_pow_ne_pow | FermatsLastTheorem.lean

Use

Each declaration is split into a statement (signature/claim) and a proof (body) that are disjoint and together form the complete declaration, for proof modeling, autoformalization, retrieval, and dependency analysis via deps.

Citation

@misc{lean4_flt_dataset,
  title  = {Lean4-FLT},
  author = {Norton, Charles},
  year   = {2026},
  note   = {Extracted from https://github.com/ImperialCollegeLondon/FLT, commit 6cffefeb368c},
  url    = {https://huggingface.co/datasets/phanerozoic/Lean4-FLT}
}
Downloads last month
11

Collection including phanerozoic/Lean4-FLT