lean_workbook_plus_62702
ProvedLet be a prime number such that for a natural number . Prove that or can be written on the form , with .
Preamble
import Mathlib.Analysis.Complex.Basic
Formal statement
theorem lean_workbook_plus_62702 (p a : ℕ) (hp : Nat.Prime p) (hpa : p ∣ a^2 + 2) : ∃ x y : ℕ, p ∣ x^2 + 2*y^2 ∨ 2*p ∣ x^2 + 2*y^2 := by sorry
Source