mathlibdocumentation

number_theory.fermat4

Fermat's Last Theorem for the case n = 4 #

There are no non-zero integers a, b and c such that a ^ 4 + b ^ 4 = c ^ 4.

def fermat_42 (a b c : ) :
Prop

Shorthand for three non-zero integers a, b, and c satisfying a ^ 4 + b ^ 4 = c ^ 2. We will show that no integers satisfy this equation. Clearly Fermat's Last theorem for n = 4 follows.

Equations
theorem fermat_42.comm {a b c : } :
b c a c
theorem fermat_42.mul {a b c k : } (hk0 : k 0) :
b c fermat_42 (k * a) (k * b) (k ^ 2 * c)
theorem fermat_42.ne_zero {a b c : } (h : b c) :
c 0
def fermat_42.minimal (a b c : ) :
Prop

We say a solution to a ^ 4 + b ^ 4 = c ^ 2 is minimal if there is no other solution with a smaller c (in absolute value).

Equations
theorem fermat_42.exists_minimal {a b c : } (h : b c) :
∃ (a0 b0 c0 : ), b0 c0

if we have a solution to a ^ 4 + b ^ 4 = c ^ 2 then there must be a minimal one.

theorem fermat_42.coprime_of_minimal {a b c : } (h : c) :
b

a minimal solution to a ^ 4 + b ^ 4 = c ^ 2 must have a and b coprime.

theorem fermat_42.minimal_comm {a b c : } :
c c

We can swap a and b in a minimal solution to a ^ 4 + b ^ 4 = c ^ 2.

theorem fermat_42.neg_of_minimal {a b c : } :
c (-c)

We can assume that a minimal solution to a ^ 4 + b ^ 4 = c ^ 2 has positive c.

theorem fermat_42.exists_odd_minimal {a b c : } (h : b c) :
∃ (a0 b0 c0 : ), b0 c0 a0 % 2 = 1

We can assume that a minimal solution to a ^ 4 + b ^ 4 = c ^ 2 has a odd.

theorem fermat_42.exists_pos_odd_minimal {a b c : } (h : b c) :
∃ (a0 b0 c0 : ), b0 c0 a0 % 2 = 1 0 < c0

We can assume that a minimal solution to a ^ 4 + b ^ 4 = c ^ 2 has a odd and c positive.

theorem int.coprime_of_sq_sum {r s : } (h2 : r) :
is_coprime (r ^ 2 + s ^ 2) r
theorem int.coprime_of_sq_sum' {r s : } (h : s) :
is_coprime (r ^ 2 + s ^ 2) (r * s)
theorem fermat_42.not_minimal {a b c : } (h : c) (ha2 : a % 2 = 1) (hc : 0 < c) :
theorem not_fermat_42 {a b c : } (ha : a 0) (hb : b 0) :
a ^ 4 + b ^ 4 c ^ 2
theorem not_fermat_4 {a b c : } (ha : a 0) (hb : b 0) :
a ^ 4 + b ^ 4 c ^ 4