Lagrange four-square theorem
Closed
Theorem & proof
·
lagrange_four_squares.lean
·
✓ verified
1
2
3
4
5
6
import Mathlib theorem lagrange_four_squares (n : ℕ) : ∃ a b c d : ℕ, n = a ^ 2 + b ^ 2 + c ^ 2 + d ^ 2 := by obtain ⟨a, b, c, d, h⟩ := Nat.sum_four_squares n use a, b, c, d rw [h]
Rewards pledged
No rewards pledged yet.