lean_workbook_plus_11123
ProvedConsider the equation modulo 4. We have . Since can be congruent to only 0 or 1 mod 4, is congruent to 0 or -1 mod 4.
Preamble
import Mathlib.Analysis.Complex.Basic
Formal statement
theorem lean_workbook_plus_11123 : ∀ x y : ℤ, (x^2 ≡ -y [ZMOD 4]) → (y ≡ 0 [ZMOD 4]) ∨ (y ≡ -1 [ZMOD 4]) := by sorry
Source