Lefebvre's variations, No. 303 — on a theme by Carmichael: every totient value phi(n) with n at most 10000 is attained by another integer
ProvedLefebvreVariations.carmichael_conjecture_of_le_10000For every integer with there is an integer with the same Euler totient:
Carmichael's conjecture says that no totient value is attained exactly once. For odd one can take ; the content of the finite statement is for even (for example , and for one has ). The conjecture is known to hold for all below very large bounds, so this is a small finite verification of the parent.
Formalization Note Nat.totient, with n : ℕ, 0 < n, n ≤ 10000; the witness m is a natural number different from n (possibly larger than , e.g. ). The hypothesis 0 < n matches the parent.
Why this is a variation. Variation on CarmichaelConjecture.carmichael_conjecture (Open): for every n > 0 some m != n has phi(m) = phi(n); here restricted to n <= 10000, a formal special case of the parent (same statement with an upper bound on n). Verified by exhaustive computation (to 10^5); the parent remains open. Note: the literature (Ford, Schlafly–Wagon) verifies Carmichael's conjecture far beyond this bound; it is published here as a finite check of an open platform problem (witnesses re-verified by computation for n <= 10000, with m <= 10^6).
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
namespace LefebvreVariations
/-- Carmichael's conjecture for n <= 10000: every totient value phi(n) is attained by some other integer m != n.
-/
theorem carmichael_conjecture_of_le_10000 :
∀ n : ℕ, 0 < n → n ≤ 10000 → ∃ m : ℕ, m ≠ n ∧ Nat.totient m = Nat.totient n := by
sorry
end LefebvreVariations