All proofs
Project-declaredLean 4.32.0 · mathlib@249c48c2

Fermat Last Theorem of p ge 5

FermatLastTheorem.of_p_ge_5

Plain-language statement

If Fermat's Last Theorem is true for primes p ≥ 5, then FLT is true.

Exact Lean statement

lemma FermatLastTheorem.of_p_ge_5 (H : ∀ p ≥ 5, p.Prime → FermatLastTheoremFor p) :
    FermatLastTheorem

Formal artifact

Lean source

Canonical source
Full Lean sourceLean 4
lemma FermatLastTheorem.of_p_ge_5 (H :  p  5, p.Prime  FermatLastTheoremFor p) :    FermatLastTheorem := by  -- let n ≥ 3 and let's prove a^n + b^n ≠ c^n for positive  -- integers a, b, c.  intro n hn  -- we split into three cases 3|n, 4|n and p|n with p>=5 prime  obtain h3 | h4 | p, hpp, hp5, hpn := Nat.three_dvd_or_four_dvd_or_prime_dvd hn  · -- Case 1: if 3|n then FLT for n follows from FLT for n=3    apply FermatLastTheoremFor.mono h3    -- but FLT for n=3 is a theorem of Euler    exact fermatLastTheoremThree  · -- Case 2: if 4|n then FLT for n follows from FLT for n=4    apply FermatLastTheoremFor.mono h4    -- but FLT for n=4 is a theorem of Fermat.    exact fermatLastTheoremFour  · -- Case 3: Finally if p>=5 divides n then FLT for n follows from FLT for p    apply FermatLastTheoremFor.mono hpn    -- and this is our assumption    exact H _ hp5 hpp
Project
Fermat's Last Theorem
License
Apache-2.0
Commit
8dd808888295
Source
FLT/Basic/Lemmas.lean:38-56

Reuse this declaration

Bring the exact result into your workflow

The import identifies the source module. Your project still needs the pinned package dependency shown on this page.

What this badge means

This completion status comes from the project or community source. It has not yet been represented here as an independent rebuild and axiom audit.

Continue in this project

Related declarations

Project-declaredLean 4.32.0

Eq finsum quotient out of bij On

AbstractHeckeOperator.eq_finsum_quotient_out_of_bijOn'

Plain-language statement

If a is fixed by V then ∑ᶠ g ∈ s, g • a is independent of the choice s of coset representatives in G for a subset of G ⧸ V

number theoryarithmetic geometryFermat's Last Theorem

Source project: Fermat's Last Theorem

Person-level attribution pending.

View proof record
Project-declaredLean 4.32.0

Comm Group no compact automorphisms

CommGroup.no_compact_automorphisms

Plain-language statement

A connected compact Hausdorff abelian topological group does not admit a nontrivial compact group of automorphisms.

number theoryarithmetic geometryFermat's Last Theorem

Source project: Fermat's Last Theorem

Person-level attribution pending.

View proof record