Mathlib Map

Theorems · Theorem · number theory

lucas_primality_iff

∀ (p : ℕ), Nat.Prime p ↔ ∃ a, a ^ (p - 1) = 1 ∧ ∀ (q : ℕ), Nat.Prime q → q ∣ p - 1 → a ^ ((p - 1) / q) ≠ 1

A number p is prime if and only if 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.

Defined in
Mathlib.NumberTheory.LucasPrimality
Cited by
0 results in Mathlib
Foundations
Depth 140 from the axioms · uses propext, Classical.choice, Quot.sound

Around this declaration

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

Cites4

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

Cited by0

Results whose statement or proof uses this declaration.

Nothing cites this yet.