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