Wiki
Wiki

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 0≤M0≤M0\le M_0\le M without a reason and 0≤E0≤E0\le E_0\le E with a one-clause reason (each nonempty fiber contributes its cardinality minus one, and P0P_0 retains exactly the fibers over I0I_0); both are written out in full below, as is the identity I0=I∩T0I_0=I\cap T_0 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 PP, TT and T0T_0 be finite sets with T0⊆TT_0\subseteq T, and let f ⁣:P→Tf\colon P\to T be any map. Put

P0=f−1(T0),I=f(P),I0=f(P0).P_0=f^{-1}(T_0),\qquad I=f(P),\qquad I_0=f(P_0).

The missing-value counts are M=∣T∣−∣I∣M=|T|-|I| and M0=∣T0∣−∣I0∣M_0=|T_0|-|I_0|. The excess-representation counts are E=∣P∣−∣I∣E=|P|-|I| and E0=∣P0∣−∣I0∣E_0=|P_0|-|I_0|.

Statement

With this notation, 0≤M0≤M0\le M_0\le M, 0≤E0≤E0\le E_0\le E, and

∣ ∣T∣−2∣T0∣ ∣≤∣ ∣P∣−2∣P0∣ ∣+M+E.\bigl|\,|T|-2|T_0|\,\bigr|\le\bigl|\,|P|-2|P_0|\,\bigr|+M+E.

Proof

The image of the preimage

First, I0=I∩T0I_0=I\cap T_0. If t∈I0t\in I_0, then t=f(a)t=f(a) for some a∈P0a\in P_0, so t∈It\in I, and f(a)∈T0f(a)\in T_0 by the definition of P0P_0. Conversely, if t∈I∩T0t\in I\cap T_0, then t=f(a)t=f(a) for some a∈Pa\in P, and f(a)=t∈T0f(a)=t\in T_0 puts aa in P0P_0, so t∈f(P0)t\in f(P_0).

The missing-value counts

Since I⊆TI\subseteq T and I0⊆T0I_0\subseteq T_0, the differences M=∣T∖I∣M=|T\setminus I| and M0=∣T0∖I0∣M_0=|T_0\setminus I_0| are nonnegative. By the previous paragraph,

T0∖I0=T0∖(I∩T0)=T0∖I⊆T∖I,T_0\setminus I_0=T_0\setminus(I\cap T_0)=T_0\setminus I\subseteq T\setminus I,

so M0≤MM_0\le M.

The excess-representation counts

The set PP is the disjoint union of the fibers f−1(t)f^{-1}(t) over t∈It\in I, each nonempty, so

E=∣P∣−∣I∣=∑t∈I(∣f−1(t)∣−1)≥0.E=|P|-|I|=\sum_{t\in I}\bigl(|f^{-1}(t)|-1\bigr)\ge0 .

An element a∈Pa\in P lies in P0P_0 exactly when f(a)∈T0f(a)\in T_0, that is, when f(a)∈I∩T0=I0f(a)\in I\cap T_0=I_0; so P0P_0 is the disjoint union of the fibers f−1(t)f^{-1}(t) over t∈I0t\in I_0, and

E0=∣P0∣−∣I0∣=∑t∈I0(∣f−1(t)∣−1).E_0=|P_0|-|I_0|=\sum_{t\in I_0}\bigl(|f^{-1}(t)|-1\bigr).

This is the sum defining EE restricted to the subset I0⊆II_0\subseteq I, and its terms are nonnegative, so 0≤E0≤E0\le E_0\le E.

The exact identity and the bound

The four definitions read ∣T∣=∣I∣+M|T|=|I|+M, ∣T0∣=∣I0∣+M0|T_0|=|I_0|+M_0, ∣I∣=∣P∣−E|I|=|P|-E and ∣I0∣=∣P0∣−E0|I_0|=|P_0|-E_0. Substituting the last two into the first two,

∣T∣−2∣T0∣=(∣P∣−E+M)−2(∣P0∣−E0+M0)=(∣P∣−2∣P0∣)+(M−2M0)−(E−2E0).|T|-2|T_0|=(|P|-E+M)-2(|P_0|-E_0+M_0) =(|P|-2|P_0|)+(M-2M_0)-(E-2E_0).

Because 0≤M0≤M0\le M_0\le M, the number M−2M0M-2M_0 lies between M−2M=−MM-2M=-M and M−0=MM-0=M, so ∣M−2M0∣≤M|M-2M_0|\le M; in the same way ∣E−2E0∣≤E|E-2E_0|\le E. The triangle inequality applied to the three summands gives the stated bound.

Specialization used in the doubling argument

For real yy let T(y)T(y) be the set of integers nn with 1≤n≤y1\le n\le y and n=φ(m)n=\varphi(m) for some integer m≥1m\ge1, and let V(y)=∣T(y)∣V(y)=|T(y)|. Take T=T(y)T=T(y), T0=T(y/2)T_0=T(y/2), any finite family P=PyP=P_y with a map f=fy ⁣:Py→T(y)f=f_y\colon P_y\to T(y), and write Ay=∣Py∣A_y=|P_y|, ByB_y for the number of a∈Pya\in P_y with fy(a)≤y/2f_y(a)\le y/2, My=V(y)−∣fy(Py)∣M_y=V(y)-|f_y(P_y)|, Ey=Ay−∣fy(Py)∣E_y=A_y-|f_y(P_y)| and Dy=Ay−2ByD_y=A_y-2B_y. Since T(y/2)=T(y)∩[1,y/2]T(y/2)=T(y)\cap[1,y/2] and fyf_y takes its values in T(y)T(y), the set P0=fy−1(T(y/2))P_0=f_y^{-1}(T(y/2)) is exactly the set of a∈Pya\in P_y with fy(a)≤y/2f_y(a)\le y/2; hence ∣P∣−2∣P0∣=Dy|P|-2|P_0|=D_y, M=MyM=M_y and E=EyE=E_y, and the lemma reads

∣V(y)−2V(y/2)∣≤∣Dy∣+My+Ey,|V(y)-2V(y/2)|\le|D_y|+M_y+E_y ,

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 EyE_y alone would not suffice is visible here: the bound charges the missing values MyM_y and the repeated representations EyE_y separately, and neither term is dominated by the other.