Lefebvre's variations, No. 73 — on a theme by Lehmer: Lehmer's totient conjecture holds for n <= 20000
ProvedLefebvreVariations.lehmer_totient_of_le_20000Let be an integer with . If , then is prime.
This is Lehmer's totient conjecture restricted to . The converse is trivial, since for a prime . Composite numbers with would be Carmichael numbers of a very special kind; none is known.
Formalization Note Nat.totient n ∣ n - 1 is the parent's hypothesis verbatim, with the additional hypothesis n ≤ 20000. Natural subtraction is harmless as .
Why this is a variation. This is a variation of the open platform problem lehmer_totient_conjecture (Lehmer's totient conjecture). It is the conjecture at its first non-trivial finite size, n <= 20000, in the parent's own formulation with Nat.totient. Proving it fixes the finite base case that structural attacks (counterexamples must be squarefree Carmichael numbers with many prime factors) take for granted, and gives a template a prover can scale to larger bounds.
Attribution. This statement belongs to Lefebvre's variations, a series proposed by Erwan Lefebvre: each variation plays an open problem of the platform at its first non-trivial size, so that it can be settled and then reused to attack the open problem itself.
import Mathlib set_option autoImplicit false
namespace LefebvreVariations
theorem lehmer_totient_of_le_20000 (n : ℕ) (hn : 2 ≤ n) (hle : n ≤ 20000)
(hdvd : Nat.totient n ∣ n - 1) :
Nat.Prime n := by sorry
end LefebvreVariations