Research notes on every problem, and a library of the papers behind them. Built from the open erdos repository.
Updated
Source. Liam Kruer and Jensen Kohlmeyer, Erdős Problem 416(i): the
doubling law for distinct totient values, Lemma 2.1 ("Finite counting
error"), display (1), and the specialization (2), physical p. 2 (numbered
p. 2), in the five-page PDF held by its library source card,
Kruer and Kohlmeyer (2026);
the card's result page
lemma_2_1
records the statement. The write-up names the matching declaration of the
accepted Lean file, finite_counting_error (line 45376); that file is not
held and was not read for this page.
Standing. This is an author-recorded reconstruction of the write-up's four-line proof. The write-up asserts without a reason and with a one-clause reason (each nonempty fiber contributes its cardinality minus one, and retains exactly the fibers over ); both are written out in full below, as is the identity that the write-up asserts in its definitions. It is not an independent review, changes no status of Problem 416 and assigns no tier. The lemma is finite combinatorics and imports nothing.
Definitions
Let , and be finite sets with , and let be any map. Put
The missing-value counts are and . The excess-representation counts are and .
Statement
With this notation, , , and
Proof
The image of the preimage
First, . If , then for some , so , and by the definition of . Conversely, if , then for some , and puts in , so .
The missing-value counts
Since and , the differences and are nonnegative. By the previous paragraph,
so .
The excess-representation counts
The set is the disjoint union of the fibers over , each nonempty, so
An element lies in exactly when , that is, when ; so is the disjoint union of the fibers over , and
This is the sum defining restricted to the subset , and its terms are nonnegative, so .
The exact identity and the bound
The four definitions read , , and . Substituting the last two into the first two,
Because , the number lies between and , so ; in the same way . The triangle inequality applied to the three summands gives the stated bound.
Specialization used in the doubling argument
For real let be the set of integers with and for some integer , and let . Take , , any finite family with a map , and write , for the number of with , , and . Since and takes its values in , the set is exactly the set of with ; hence , and , and the lemma reads
the write-up's display (2). Its use is on the Theorem 1.1 page. Nothing about totients enters the lemma: every finite family mapping into the values obeys it, and the proof of the doubling law is the choice of a family for which all three error terms are small at once. The write-up's remark that controlling alone would not suffice is visible here: the bound charges the missing values and the repeated representations separately, and neither term is dominated by the other.