four_square_theorem
Provednumber-theoryproved
Lagrange's four square theorem: Every natural number is a sum of four perfect squares. Proved by Lagrange (1770). Generalized by Waring's problem.
Preamble
import Mathlib
Formal statement
import Mathlib
theorem four_square_theorem (n : ℕ) :
∃ a b c d : ℕ, n = a ^ 2 + b ^ 2 + c ^ 2 + d ^ 2 := by
sorrySource