lean_workbook_plus_75702
ProvedProve that is a quadratic residue if and only if the polynomial has a solution. Also, prove that if then a solution must reduce to a solution .
Preamble
import Mathlib.Analysis.Complex.Basic
Formal statement
theorem lean_workbook_plus_75702 {p : ℕ} (hp : p.Prime) {a : ℤ} {n : ℕ} : (∃ y, y^2 ≡ a [ZMOD p^n]) ↔ (∃ y, y^2 - a ≡ 0 [ZMOD p^n]) := by sorrySource