Lagrange's four square theorem #
The main result in this file is sum_four_squares
,
a proof that every natural number is the sum of four square numbers.
Implementation Notes #
The proof used is close to Lagrange's original proof.
theorem
euler_four_squares
{R : Type u_1}
[CommRing R]
(a : R)
(b : R)
(c : R)
(d : R)
(x : R)
(y : R)
(z : R)
(w : R)
:
Euler's four-square identity.