Euler's totient function records, for each positive integer, how many residue classes modulo that integer are units. Its image — the set of totients — is a classical object in multiplicative number theory, and the size of each fibre measures how uniquely a totient determines its preimages. Carmichael's conjecture asserts that no totient is taken exactly once: whenever is defined for a positive integer , some other positive integer realises the same value.
The question is concrete for anyone inverting , enumerating preimages, or studying how often a given multiplicity occurs. It is also a test of how much uniqueness the identities and for coprime can enforce. The conjecture is still generally regarded as open.
Timeline. In 1907, Carmichael published an argument that a totient value is never assumed uniquely, and later set the claim as an exercise. In 1922 he withdrew the proof, writing that a gap had been pointed out and that he could not repair it, and restated the assertion as a conjecture. In the same note he proved that a unique preimage, if one exists, must exceed . Klee raised that lower bound to . Schlafly and Wagon showed that any unique preimage exceeds . In The distribution of totients (originally Ramanujan J., 1998; the linked text is the 2012 revision), Ford proved that if a totient value has multiplicity one, then , and hence any unique preimage also exceeds . Ford moreover showed that a single counterexample would force a positive proportion of totients (in the sense of the counting function of totients) to be counterexamples, so exceptions cannot form a thin subset of the image of . A companion problem of Sierpiński — that every integer occurs as a multiplicity — was proved unconditionally by Ford in 1999. The remaining case of multiplicity one is the content of Carmichael's conjecture.
Let be a natural number. In this mission, as in Mathlib, the Euler totient (Lean: Nat.totient n) is the number of natural numbers with and . In particular , , and for every prime . For one has , while if and only if .
A positive integer is said to have a mate if there exists with . Equivalently, writing for the number of positive integers with , the conjecture asserts that for every . These two formulations are interchangeable for positive integers, but they must not be confused with a statement that includes : in Mathlib, is the unique natural number with totient , so the claim is false at zero and is therefore stated only for .
The first nontrivial pattern is already visible at small values. One has and . More generally, if is odd then , so no odd positive integer can be a unique preimage. That identity is already in Mathlib (Nat.totient_two_mul_of_odd). The open content of the conjecture is the even case, and in particular the possibility of a highly composite even whose totient is not repeated.
For every odd natural number ,
This is a known elementary theorem (take ) and is recorded as a milestone so that the formal development begins from a library identity already in Mathlib.
If is a positive integer for which there is exactly one positive integer with , then
This is a known theorem of Ford, Theorem 6. It is a finite lower bound, not a substitute for the conjecture.
If there exists even one positive integer with , then there are infinitely many such . This is a known consequence of Ford's comparison of the counting functions and in the same paper: a single multiplicity-one totient would in fact force a positive proportion of totients up to to have multiplicity one. The milestone asks only for the infinitude implication, which is the most compact form of that dichotomy.
For every positive integer there exists an integer with the same totient:
This is the open goal. It is a stable qualitative statement, not a bound with a hard-coded constant that later improvements would obsolete.
A proof would mean that the map never identifies a single preimage: every totient that occurs at all occurs at least twice. Combined with Ford's theorem that every multiplicity occurs, this would complete the classification of possible fibre sizes of . A counterexample, by contrast, would be a positive integer whose totient is a complete invariant of that integer; Ford's dichotomy would then imply that unique totients are not sporadic, but account for a positive proportion of all totient values.
On the formal side, Mathlib already contains the elementary calculus of (multiplicativity on coprime arguments, the formula for prime powers, the characterisation if and only if is prime, and for odd ). It does not contain Ford's bound, the infinitude implication, or the conjecture. The first milestone is therefore a short wrapping of a library lemma; the remaining two milestones are substantial known theorems whose formalization would be reusable in any later development of inverse-totient estimates. The goal itself remains an open problem: no machine-checked proof, and no accepted informal proof, is claimed here.
The argument Carmichael originally offered attempts to reduce a hypothetical unique preimage to a smaller unique preimage, eventually reaching a range where is visibly non-unique (for instance among powers of two). The reduction is not complete: uniqueness of a fibre for one totient value does not automatically pass to the auxiliary equations that appear in the descent, which is the gap recorded in the 1922 note. Direct computation is likewise not a proof: any counterexample must be larger than , so a search that stops at any feasible bound leaves the conjecture untouched. The structural alternative — that a unique preimage would have to be divisible by squares of many primes — has produced the tower bound, but has not produced a contradiction. Ford's dichotomy rules out one naive picture, in which a single exotic exception might sit among otherwise well-behaved totients, without deciding which of the two remaining global alternatives holds.
All statements are formulated for Lean 4 with Mathlib, using Nat.totient on Nat. The ambient type includes , and Mathlib sets Nat.totient 0 = 0 with the characterisation Nat.totient_eq_zero. The goal and the supporting theorems therefore quantify over positive (hypothesis 0 < n), or, in Ford's bound, over a totient value that has a unique positive preimage. A formalization that omits the positivity hypothesis is a different, false statement, and is not the conjecture.
The Lean statements do not introduce a custom definition of multiplicity. The existence of a mate is written with an existential quantifier, and uniqueness of a preimage is written with ∃!. No local definitions are required. Contributors should use the Mathlib names Nat.totient, Odd, and the existing lemmas on totients rather than redefining .
The numeral is written 10 ^ (10 ^ 10) as a term of Nat. It is not expected to be evaluated as a decimal literal. The bound is a lower bound on the totient value , as in Ford's Theorem 6, not merely a bound on a preimage.
Welcome contributions include a formal proof of the odd-case milestone from Mathlib, a formalization of Ford's lower bound or of the infinitude implication, partial results under extra hypotheses (for instance for prime powers or for integers of bounded radical), and, of course, a proof or a counterexample to the goal. A formalization that proves the goal only for below an explicit constant is a finite check, not the conjecture.
namespace CarmichaelConjecture
theorem carmichael_conjecture {n : Nat} (hn : 0 < n) :
∃ m, m ≠ n ∧ Nat.totient m = Nat.totient n := by sorry
end CarmichaelConjecture
For every positive integer there exists an integer such that , where is Euler's totient function. Equivalently, no value of on the positive integers is assumed exactly once. This is Carmichael's totient-function conjecture, which remains open. The hypothesis is essential: in the natural numbers, has the unique preimage .