Proof. Fixed totals. Use 𝑛𝑗 −1 to cancel a cumulative residue and
𝑛𝑗,𝑛𝑗 +1 for a pair with fixed
ordinary sum. Varying the pair changes its weighted contribution without
altering any later residue to be cancelled. Choose an initial index
𝑛−1 ≥𝐾 and centres with 𝑠𝑗 =𝑛𝑗 −𝑛𝑗−1 ≥4, so the triples do
not overlap. Let 𝑀𝑗 be positive
integers with 𝑀𝑗 ∣𝑀𝑗+1, and
let 𝐷𝑗 bound the digit at stage
𝑗. The spacing, moduli and digit
bounds will be chosen below.
Let 𝐶𝑗 record the ordinary
correction before the 𝑗th triple.
Starting from 𝐶0 =0, prescribe
𝑐𝑗=(−𝐶𝑗)mod𝑀𝑗(0≤𝑐𝑗<𝑀𝑗),𝐶𝑗+1=𝐶𝑗+𝑐𝑗+𝑀𝑗𝐷𝑗.
For integers 0 ≤𝑑𝑗 ≤𝐷𝑗, set
𝑒𝑛𝑗−1=𝑐𝑗,𝑒𝑛𝑗=𝑀𝑗𝑑𝑗,𝑒𝑛𝑗+1=𝑀𝑗(𝐷𝑗−𝑑𝑗),(1)
and put 𝑒𝑛 =0 elsewhere. The two sums of a triple
are
𝑛𝑗+1∑𝑟=𝑛𝑗−1𝑒𝑟=𝑐𝑗+𝑀𝑗𝐷𝑗,𝑛𝑗+1∑𝑟=𝑛𝑗−1𝑒𝑟2−𝑟−1=𝑐𝑗2−𝑛𝑗+𝑀𝑗𝐷𝑗2−𝑛𝑗−2+𝑑𝑗𝑀𝑗2−𝑛𝑗−2.
The ordinary total contains no 𝑑𝑗, so the recurrence fixes every 𝑐𝑗 in advance. In the weighted total
only the last term varies: transferring 𝑀𝑗 from 𝑛𝑗 +1 to 𝑛𝑗 adds
𝑤𝑗=𝑀𝑗2−𝑛𝑗−2.
After 𝑐𝑗 has been inserted, the
cumulative correction is divisible by 𝑀𝑗; the two entries of the pair preserve
this divisibility. Fix 𝑞 ∣𝑀𝐽.
At index 𝑛𝐽 both the coefficient
correction and the cumulative correction are divisible by 𝑞. At every later triple, 𝑞 divides 𝐶𝑗 and 𝑀𝑗, so it also divides 𝑐𝑗 and both pair entries. The
intervening corrections are zero. Hence
𝑞∣𝑒𝑛,𝑞∣∑𝑖<𝑛𝑒𝑖(𝑛≥𝑛𝐽).
The entry 𝑐𝐽 need
not be divisible by 𝑞, which is why
it is placed at 𝑛𝐽 −1, before the
cutoff. The index 𝑛𝐽 depends on
𝑞 and the chosen moduli, but not on
the digits or the value to be attained.
Spacing and size. The choices at stage 𝑗 are 0,𝑤𝑗,…,𝐷𝑗𝑤𝑗. The covering
argument will work if the later ranges total at least 𝑤𝑗. Taking 𝐷𝑖 =2𝑠𝑖 −1 compensates for separation
by making each later range a scaled dyadic difference:
𝐷𝑖𝑤𝑖=(2𝑛𝑖−𝑛𝑖−1−1)𝑀𝑖2−𝑛𝑖−2=𝑀𝑖(2−𝑛𝑖−1−2−2−𝑛𝑖−2).
Because 𝑀𝑖 ≥𝑀𝑗 for 𝑖 >𝑗, replacing every later modulus by
𝑀𝑗 gives the finite estimate
𝐽∑𝑖=𝑗+1𝐷𝑖𝑤𝑖≥𝑀𝑗𝐽∑𝑖=𝑗+1(2−𝑛𝑖−1−2−2−𝑛𝑖−2)=𝑤𝑗−𝑀𝑗2−𝑛𝐽−2(𝐽>𝑗).(2)
No monotonicity of the weights is needed. Each
entry of (1) is at
most 𝑀𝑗2𝑠𝑗, so the size cost
of separating the stages is exponential. We must fit this product below
the allowance at all three indices, while 𝑠𝑗 →∞ and every fixed positive
integer eventually divides 𝑀𝑗.
To allow a nonmonotone bound 𝑓,
put
ℎ(𝑛)=inf𝑚≥𝑛min(𝑓(𝑚),𝑚).
This nondecreasing lower envelope tends to
infinity even when 𝑓 oscillates. A
bound at 𝑛𝑗−1 therefore controls
all three later coordinates; the cap by 𝑚 ensures 𝑒𝑛 ≤𝑛 and hence summability for every
digit choice. Enlarge 𝑛−1 ≥𝐾
until ℎ(𝑛−1) ≥32, and set
𝑘𝑗=max{𝑘≥2:𝑘!2𝑘+2≤ℎ(𝑛𝑗−1)},𝑀𝑗=𝑘𝑗!,𝑠𝑗=𝑘𝑗+2,𝑛𝑗=𝑛𝑗−1+𝑠𝑗.(3)
The maximum exists: 𝑘 =2 is admissible because 2!24 =32, and 𝑘!2𝑘+2 →∞. Since 𝑛𝑗 →∞ and ℎ is nondecreasing and divergent, 𝑘𝑗 is nondecreasing and tends to
infinity. Thus 𝑀𝑗 ∣𝑀𝑗+1,
every fixed 𝑞 eventually divides
𝑀𝑗 =𝑘𝑗!, and 𝑠𝑗 =𝑘𝑗 +2 →∞. At every coordinate
𝑛 of the 𝑗th triple, this schedule also gives
0≤𝑒𝑛≤𝑀𝑗2𝑠𝑗≤ℎ(𝑛𝑗−1)≤min(𝑓(𝑛),𝑛).
Let 𝑆 =⋃𝑗≥0{𝑛𝑗 −1,𝑛𝑗,𝑛𝑗 +1}. For
𝑅 ≥4, all sufficiently late
centres are at least 𝑅 apart. Every
interval of length 𝐻 contains at
most 3(𝐻/𝑅 +2) points from those
triples; the earlier triples add a fixed number, independent of the
interval’s position. Divide by 𝐻,
take the supremum over positions, then let 𝐻 →∞. The limiting upper bound is
3/𝑅; letting 𝑅 →∞ proves upper Banach density
zero.
Attaining the interval. The support and congruence
requirements are now settled independently of the target. Only the
digits remain to be chosen. Define
𝛽=∑𝑗≥0(𝑐𝑗2−𝑛𝑗+𝐷𝑗𝑤𝑗),𝐹𝑗=∑𝑖≥𝑗𝐷𝑖𝑤𝑖.
Even zero digits contribute 𝛽 >0; 𝐹𝑗 is the maximum variable contribution
from stage 𝑗 onwards. The size
bound makes both finite, with 𝐹0 >0 and 𝐹𝑗 →0. The total correction is
∑𝑛𝑒𝑛2−𝑛−1=𝛽+∑𝑗𝑑𝑗𝑤𝑗.(4)
Taking 𝐽 →∞ in (2) now
gives
𝐹𝑗+1≥𝑀𝑗2−𝑛𝑗−2=𝑤𝑗.(5)
These bounds do not yet prove that every point
of [0,𝐹𝑗] is attained. A digit
𝑑 leaves a remainder in [0,𝐹𝑗+1] precisely for current
remainders in
[𝑑𝑤𝑗,𝑑𝑤𝑗+𝐹𝑗+1],𝑑=0,…,𝐷𝑗.
These intervals meet or overlap by (5), and
their union is [0,𝐹𝑗] because
𝐹𝑗 =𝐷𝑗𝑤𝑗 +𝐹𝑗+1.
Given 𝑥 ∈[0,𝐹0], start with
𝜌0 =𝑥. Having chosen the first
𝑗 digits, choose 𝑑𝑗 so that
𝜌𝑗+1=𝜌𝑗−𝑑𝑗𝑤𝑗∈[0,𝐹𝑗+1].
The covering just proved makes this possible at every stage. Since 0 ≤𝜌𝑗 ≤𝐹𝑗 and 𝐹𝑗 →0, we obtain
𝑥−𝑗∑𝑖=0𝑑𝑖𝑤𝑖=𝜌𝑗+1⟶0.
Thus every 𝑥 ∈[0,𝐹0] is attained,
and we may take 𝐼 =(𝐴 +𝛽,𝐴 +𝛽 +𝐹0). The target 𝑟 ∈𝐼 determines only the digits,
through 𝑥 =𝑟 −𝐴 −𝛽; it changes
neither 𝑆, 𝐼 nor the cutoff 𝑁𝑞 =𝑛𝐽 chosen using 𝑞 ∣𝑀𝐽. This is the finite-choice
covering argument of [27]: the 𝑗th choice set has largest gap 𝑤𝑗 and diameter 𝐷𝑗𝑤𝑗, its maxima are summable, and the
sum of subsequent diameters is at least 𝑤𝑗. Equality is allowed. Fridy’s
generalised-base lemma [9] and the reciprocal-choice argument in
[11] are
antecedents. The finite-choice argument uses (5); the
required comparison of moduli was checked in (2).
The logarithmic scale. For 𝑓(𝑛) =(log(𝑛 +3))𝜀, the size
cost 2𝑠𝑗 leads to the iterated
logarithm. We choose separations of order loglog𝑛𝑗 and reserve part of the
allowance for growing moduli. Keep the same triples and 𝐷𝑗 =2𝑠𝑗 −1, and set
𝑠𝑗=⌊𝜀2log2log(𝑛𝑗−1+3)⌋,𝑘𝑗=max{𝑘≥2:𝑘!≤(log(𝑛𝑗−1+3))𝜀/4},(6)
with 𝑀𝑗 =𝑘𝑗! and 𝑛𝑗 =𝑛𝑗−1 +𝑠𝑗. Start far enough out
that 𝑠𝑗 ≥4 and all choices exist.
The exponents 𝜀/4 and
𝜀/2 add to 3𝜀/4 <𝜀, so the
corrections satisfy the prescribed bound:
𝑀𝑗2𝑠𝑗≤(log(𝑛𝑗−1+3))3𝜀/4≤(log(𝑛+3))𝜀
at each coordinate
𝑛 of the triple. After enlarging
the initial index, this is also at most 𝑛. The moduli remain nested, and every
fixed positive integer divides all sufficiently late moduli.
Summability, the congruence induction and (2)
therefore apply without change. Since 𝑠𝑗 ≍𝜀loglog𝑛𝑗, the
relevant centres near [𝑋,2𝑋) are
separated by ≫𝜀loglog𝑋. Each contributes at most three support points, giving
|𝑆∩[𝑋,2𝑋)|=𝑂𝜀(𝑋/loglog𝑋).
Choose the same uniform starting index 𝑛 ∈[𝑋,2𝑋) for both blocks. They agree
when the block avoids 𝑆. A changed
coordinate 𝑡 ∈𝑆 ∩[𝑋,2𝑋 +𝑚)
affects only starts in [𝑡 −𝑚 +1,𝑡],
at most 𝑚 choices. The union bound
gives
𝑑TV(𝜇𝑎,𝑋,𝑚,𝜇𝑎+𝑒,𝑋,𝑚)≤ℙ(𝑒𝑛+𝑖≠0 for some 0≤𝑖<𝑚)≤𝑚|𝑆∩[𝑋,2𝑋+𝑚)|𝑋.
For 𝑚 ≤𝑋,
two dyadic bands cover [𝑋,2𝑋 +𝑚),
giving 𝑂𝜀(𝑚/loglog𝑋).
A block of length 𝑜(loglog𝑋)
therefore avoids 𝑆 with probability
tending to one. The convergence is uniform over targets because the same
𝑆 contains every correction
support. For a test bounded in absolute value by 𝐵0 that also depends on the starting
index, the coupled values agree at unchanged blocks and differ by at
most 2𝐵0 elsewhere. Their mean
difference is consequently at most 2𝐵0𝑚|𝑆 ∩[𝑋,2𝑋 +𝑚)|/𝑋. This uses the
common starting index, not merely the marginal distributions. No
limiting distribution, randomness or independence of the original
coefficients is assumed. ◻
Identical marginal distributions alone would not control an
index-dependent test. For example, let 𝑎𝑛 =𝑛mod2 and 𝑏𝑛 =1 −𝑎𝑛. For every even 𝑋, their one-coordinate empirical
distributions on [𝑋,2𝑋) are equal,
but the test 𝟏{𝑥=𝑛mod2} has mean 1 for (𝑛,𝑎𝑛) and 0 for (𝑛,𝑏𝑛). This example is not a sparse
perturbation; it isolates why the proof couples blocks at the same
index.
The estimate gives a sufficient scale, not an optimal threshold. It
tends to zero for fixed block lengths and for 𝑚(𝑋) =⌊√loglog𝑋⌋, but
gives no vanishing error for 𝑚
comparable to loglog𝑋. Its error
is also absolute, not relative: probabilities 1/log𝑋 and 0 differ by 𝑜(1) despite the disappearance of the
event. Relative preservation would require an error small compared with
the event’s probability. Finally, agreement on a finite block does not
identify its complete weighted tail; later coefficients still
contribute.