Theorems · Theorem · number theory
Nat.Prime.eq_two_or_odd
∀ {p : ℕ}, Nat.Prime p → p = 2 ∨ p % 2 = 1- Defined in
- Mathlib.Data.Nat.Prime.Basic
- Cited by
- 6 results in Mathlib
- Foundations
- Depth 25 from the axioms · uses propext
Around this declaration
Dashed lines are statement dependencies; solid lines are citations in proofs.
Cites2
Mathlib declarations this one mentions in its statement or cites explicitly in its proof. Plumbing is filtered out.
- Nat.Primestatement and proof · cited by 2,059
- Nat.Prime.eq_one_or_self_of_dvdproof · cited by 11
Cited by6
Results whose statement or proof uses this declaration.
- Nat.Prime.eq_two_or_odd'proof · cited by 5
- Nat.Prime.mod_two_eq_one_iff_ne_twoproof · cited by 5
- ZMod.sq_add_sqproof · cited by 2
- legendreSym.quadratic_reciprocityproof · cited by 1
- GaussianInt.mod_four_eq_three_of_nat_prime_of_primeproof · cited by 1
- ZMod.pow_div_two_eq_neg_one_or_oneproof · cited by 0