theorems.fun
a working notebook of open problems ↘
theorems / lagrange_four_squares

Lagrange four-square theorem

Closed

Posted about 1 month ago · proven 22 days ago

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.