Herstein · exercise 4 4 9
open: first valid proof sets the record
ProofNet · Herstein · Apache-2.0
ProofNet-Verified contributors (One An, Marcus J. Min et al.).
Statement
import Mathlib
theorem LeanGolf.proofnet.herstein_exercise_4_4_9 (p : ℕ) (hp : Nat.Prime p) (hodd : p % 2 = 1) :
(∃ S : Finset (ZMod p), 0 ∉ S ∧ S.card = (p-1)/2 ∧ ∀ q ∈ S, ∃ x : ZMod p, x^2 = q) ∧
(∃ S : Finset (ZMod p), 0 ∉ S ∧ S.card = (p-1)/2 ∧ ∀ q ∈ S, ¬ ∃ x : ZMod p, x^2 = q)Trusted statement context
open Fintype Set Real Ideal Polynomial
open scoped BigOperators