Step 19 / 64

University

A stairway that must end

A gauge that always strictly decreases cannot decrease forever: Fermat’s descent.

Start with a concrete example

Start on stair 5 and move to a strictly lower nonnegative stair each time. You cannot do this forever. A descent proof shows that a supposed smallest counterexample would force another, smaller one.

A small check: try the idea

Think with the concrete example above. You can try again.

Can nonnegative whole-number stair heights strictly decrease forever?

Read the answer and reasoning

No. Starting at 5, there are only finitely many nonnegative heights below it. The proof must actually construct a smaller valid candidate.

Build the idea in three steps

  1. Everything is staged: a minimal solution carries the smallest λ-gauge, and the earlier pages manufacture strictly smaller solutions from any solution.
  2. The displayed proof is the final argument: from the minimal Smin, the descent lemma exists_Solution_multiplicity_lt produces Sfin with a strictly smaller multiplicity, via a round trip through a Solution’.
  3. Finally linarith compares the two gauges: Sfin’s is smaller than Smin’s, yet Smin was chosen smallest. The contradiction closes Fermat’s case n = 3, the theorem FermatLastTheoremFor 3.

A small example

Any staircase of counts that strictly decreases at every step cannot descend forever — Fermat named this infinite descent. Here the count is the multiplicity of λ in c, and it lives among nonnegative integers, so there are only finitely many steps.

Use in Lean · original excerpt

Mathlib · db584cd · Three.lean

/-- Fermat's Last Theorem for `n = 3`: if `a b c : ℕ` are all non-zero then`a ^ 3 + b ^ 3 ≠ c ^ 3`. -/public theorem fermatLastTheoremThree : FermatLastTheoremFor 3 := by  let K := CyclotomicField 3 ℚ  let hζ := IsCyclotomicExtension.zeta_spec 3 ℚ K  have : NumberField K := IsCyclotomicExtension.numberField {3} ℚ _  apply FermatLastTheoremForThree_of_FermatLastTheoremThreeGen hζ  intro a b c u hc ha hb hcdvd coprime H  let S' : FermatLastTheoremForThreeGen.Solution' hζ :=  { a := a    b := b    c := c    u := u    ha := ha    hb := hb    hc := hc    coprime := coprime    hcdvd := hcdvd    H := H }  obtain ⟨S, -⟩ := FermatLastTheoremForThreeGen.exists_Solution_of_Solution' S'  obtain ⟨Smin, hSmin⟩ := S.exists_minimal  obtain ⟨Sfin, hSfin⟩ := Smin.exists_Solution_multiplicity_lt  linarith [hSmin Sfin]

How to read this Lean

Read the proof slowly: the three obtain lines unpack the round trip — the minimal solution becomes a smaller one. The proof then feeds the minimality inequality hSmin Sfin into the arithmetic: linarith juxtaposes it with the strictly smaller count produced by the descent, and the only surviving conclusion is that no Sfin ever existed. The set_option line above the docstring just loosens an elaboration heuristic; it is not part of the mathematics.

Where this idea is used

2. The case of three
I’m lost · Help

Mika’s help desk

A stairway that must end

One thing at a time

Read the three explanation steps first. The Lean source is there for a closer look afterwards; you do not have to read it first.

In simpler words

A gauge that always strictly decreases cannot decrease forever: Fermat’s descent.

Earlier ideas are listed under “Start with these ideas” on this page.

A small clue

Any staircase of counts that strictly decreases at every step cannot descend forever — Fermat named this infinite descent. Here the count is the multiplicity of λ in c, and it lives among nonnegative integers, so there are only finitely many steps.

Close this panel to return to the exact place you were reading. These are prepared hints for this page.

Start with the first small story →