lean_workbook_plus_82024
ProvedProve that is a quadratic residue mod if and only if is an integer.
Preamble
import Mathlib.Analysis.Complex.Basic
Formal statement
theorem lean_workbook_plus_82024 (p : ℕ) (hp : p.Prime) : ((-1 : ZMod p) ^ 2 = 1) ↔ (p - 1) / 4 = ↑((p - 1) / 4) := by sorry
Source