Mathlib Map

Theorems · Theorem · number theory

ZMod.exists_sq_eq_two_iff

∀ {p : ℕ} [inst : Fact (Nat.Prime p)], p ≠ 2 → (IsSquare 2 ↔ p % 8 = 1 ∨ p % 8 = 7)

2 is a square modulo an odd prime p iff p is congruent to 1 or 7 mod 8.

Defined in
Mathlib.NumberTheory.LegendreSymbol.QuadraticReciprocity
Cited by
1 results in Mathlib
Foundations
Depth 222 from the axioms · uses propext, Classical.choice, Quot.sound
Assumes
Fact

Around this declaration

Dashed lines are statement dependencies; solid lines are citations in proofs.

Cites8

Mathlib declarations this one mentions in its statement or cites explicitly in its proof. Plumbing is filtered out.

Cited by1

Results whose statement or proof uses this declaration.