[step:Record the two elementary estimates used after differencing]
Define the distance-to-nearest-integer map
\begin{align*}
\|\cdot\|_{\mathbb R/\mathbb Z}:\mathbb R\to [0,1/2]
\end{align*}
by
\begin{align*}
\|t\|_{\mathbb R/\mathbb Z}:=\inf_{m\in\mathbb Z}|t-m|.
\end{align*}
We write $A\lesssim_{k,\varepsilon}B$ to mean that there exists a constant $C=C(k,\varepsilon)>0$ such that $A\le C B$; similarly, $A\lesssim_k B$ and $A\lesssim_c B$ mean that the implied constant depends only on the displayed parameters.
We shall use the following elementary linear exponential sum estimate: for every $M\in\mathbb N$, every $L\in\mathbb Z$, and every $\theta\in\mathbb R$,
\begin{align*}
\left|\sum_{1\le n\le M}e(\theta n+L)\right|\le \min\left(M,\frac{1}{2\|\theta\|_{\mathbb R/\mathbb Z}}\right),
\end{align*}
with the convention that the right-hand side is $M$ when $\|\theta\|_{\mathbb R/\mathbb Z}=0$.
Indeed, if $\|\theta\|_{\mathbb R/\mathbb Z}=0$, then the triangle inequality gives the bound $M$. Otherwise the finite geometric series identity gives
\begin{align*}
\sum_{1\le n\le M}e(\theta n+L)=e(L+\theta)\frac{1-e(M\theta)}{1-e(\theta)}.
\end{align*}
Since $|1-e(M\theta)|\le 2$ and $|1-e(\theta)|=2|\sin(\pi\theta)|\ge 4\|\theta\|_{\mathbb R/\mathbb Z}$, the claimed estimate follows.
We also use the following standard reciprocal-spacing estimate, whose proof is a residue-class decomposition together with the divisor bound for products of $k-1$ integers. For every fixed $k\ge 2$ and every $\varepsilon>0$, there is a constant $C_1=C_1(k,\varepsilon)>0$ such that the following holds. If $c\in\mathbb N$ satisfies $1\le c\le k!$, if $\beta\in\mathbb R$, if $a,q\in\mathbb Z$ satisfy $q\ge 1$, $\gcd(a,q)=1$, and
\begin{align*}
\left|\beta-\frac{ca}{q}\right|\le \frac{c}{q^2},
\end{align*}
then
\begin{align*}
\sum_{1\le h_1,\dots,h_{k-1}\le N}\min\left(N,\frac{1}{\|\beta h_1\cdots h_{k-1}\|_{\mathbb R/\mathbb Z}}\right)\le C_1N^{k+\varepsilon}\left(\frac{1}{q}+\frac{1}{N}+\frac{q}{N^k}\right).
\end{align*}
To justify this estimate, reduce the fraction $ca/q$ to $b/r$ with $\gcd(b,r)=1$. Then $r\mid q$, $q/r\le c$, and therefore
\begin{align*}
\frac{1}{r}\le \frac{c}{q},\qquad r\le q.
\end{align*}
For each integer $m\ge 1$, let $d_{k-1}(m;N)$ denote the number of tuples $(h_1,\dots,h_{k-1})\in\{1,\dots,N\}^{k-1}$ with product $m$. The standard divisor estimate gives, for every $\varepsilon>0$,
\begin{align*}
d_{k-1}(m;N)\le C_2m^{\varepsilon/k}
\end{align*}
with $C_2=C_2(k,\varepsilon)>0$. Since $m\le N^{k-1}$, this implies
\begin{align*}
d_{k-1}(m;N)\le C_2N^\varepsilon.
\end{align*}
Hence it is enough to bound
\begin{align*}
\sum_{1\le m\le N^{k-1}}\min\left(N,\frac{1}{\|\beta m\|_{\mathbb R/\mathbb Z}}\right).
\end{align*}
The usual spacing lemma for a number within $O(r^{-2})$ of a reduced fraction of denominator $r$ gives
\begin{align*}
\sum_{1\le m\le X}\min\left(Y,\frac{1}{\|\beta m\|_{\mathbb R/\mathbb Z}}\right)\lesssim_c \frac{XY}{r}+(X+r)\log(2r)
\end{align*}
for $X,Y\ge 1$. Applying this with $X=N^{k-1}$ and $Y=N$, and absorbing $\log(2r)$ into $N^{\varepsilon/2}$ after increasing the constant, gives
\begin{align*}
\sum_{1\le m\le N^{k-1}}\min\left(N,\frac{1}{\|\beta m\|_{\mathbb R/\mathbb Z}}\right)\lesssim_{k,\varepsilon} N^{\varepsilon/2}\left(\frac{N^k}{q}+N^{k-1}+q\right).
\end{align*}
Using the divisor estimate with exponent $\varepsilon/2$ instead of $\varepsilon$, the product of the two losses is $N^\varepsilon$. Multiplying by the divisor-counting factor gives the asserted reciprocal-spacing estimate. The spacing lemma and divisor bound are standard prerequisites not yet resolved to theorem IDs in the wiki.
[/step]