Theorems · Theorem · number theory
reverse_lucas_primality
∀ (p : ℕ), Nat.Prime p → ∃ a, a ^ (p - 1) = 1 ∧ ∀ (q : ℕ), Nat.Prime q → q ∣ p - 1 → a ^ ((p - 1) / q) ≠ 1
If p is prime, then there exists an a such that a^(p-1) = 1 mod p
and a^((p-1)/q) ≠ 1 mod p for all prime factors q of p-1.
The multiplicative group mod p is cyclic, so a can be any generator of the group
(which must have order p-1).
- Defined in
- Mathlib.NumberTheory.LucasPrimality
- Cited by
- 1 results in Mathlib
- Foundations
- Depth 139 from the axioms · uses propext, Classical.choice, Quot.sound
Around this declaration
Dashed lines are statement dependencies; solid lines are citations in proofs.
Cites19
Mathlib declarations this one mentions in its statement or cites explicitly in its proof. Plumbing is filtered out.
- Unitsproof · cited by 2,804
- Factproof · cited by 2,726
- Nat.Primestatement and proof · cited by 2,059
- Units.valproof · cited by 1,966
- ZModstatement and proof · cited by 1,024
- zero_lt_oneproof · cited by 598
- LT.lt.transproof · cited by 370
- orderOfproof · cited by 324
- Subgroup.zpowersproof · cited by 204
- Nat.card_eq_fintype_cardproof · cited by 200
- Nat.Prime.one_ltproof · cited by 118
- Units.coeHomproof · cited by 44
Cited by1
Results whose statement or proof uses this declaration.
- lucas_primality_iffproof · cited by 0