Research notes on every problem, and a library of the papers behind them. Built from the open erdos repository.
Updated
Quasipolynomial equidistribution
This is a proved result for much longer intervals than the largest modulus, not a solution with activation at the modulus. It permits any number of distinct forbidden residues at a given modulus.
Finite theorem
There are absolute constants such that the following holds. Let , and let be any union of residue classes with moduli at most . If is an interval of consecutive integers and
then
Here is its full periodic density. The bound is independent of the location of , the common period, and all residue choices.
The external input is the bounded-independence theorem for disjunctive normal form (DNF) Boolean formulas: for absolute , an -term DNF has expectation error at most
under any -wise independent unbiased bit distribution, relative to independent unbiased bits. This is Theorem 1, page 2, of Razborov, A simple proof of Bazzi's theorem, September 10, 2008. The theorem and its definition of -independence were checked in the author-hosted full paper. No independence of the arithmetic bits is assumed below: a quantitative correction supplies it.
Encoding one prime by one real coordinate
Put for each prime . For
define
where the are independent uniform random variables on . Under Haar sampling of , the are independent and uniform on . For , the condition is exactly the condition
Indeed fixing the first base- digits of , starting with the least significant digit, fixes the first digits after the radix point in (3). Endpoint ambiguities have probability zero.
Take binary digits of each . Every interval in (4) has inner and outer approximations by the grid of mesh , each a union of at most binary-prefix cylinders, with total outer-minus-inner length at most . The prefix decomposition follows by taking the maximal dyadic subintervals of a grid interval; there are at most two of each length.
A class modulo is a conjunction of conditions (4). Distributing the unions gives an inner and outer DNF, each with at most terms. There are fewer than possible classes with moduli at most , so the entire union has DNF bounds with
terms and bits, respectively. Under the independent uniform-bit law,
Using gives . Consequently
Using one coordinate per prime, rather than per prime-adic digit, is essential to this polynomial bound on .
Correcting almost independent bits
Now sample uniformly from , still using independent jitters , and let be the resulting bit probability density relative to the uniform law on . For a nonempty set of at most bit positions, write
After averaging the jitters, this parity is a bounded function of with period dividing
Its average over one period is zero: CRT and the jitters make those prime coordinates independent uniform real variables. Splitting into complete periods and a remainder therefore gives
Let
If , the sums simply include all nonempty subsets. Define
This is nonnegative because the absolute value of the character sum is at most . It has mean one, and all nonconstant Fourier coefficients of degree at most vanish. Thus its bits are exactly -wise independent (fully independent if ). Moreover,
For (10), subtract the densities in (9), use , and bound the character sum in by .
Choose , with an adequately large absolute constant. By (2) and (7), the error for each of under is . By (7)--(8), choosing sufficiently large makes for every interval length in (1). Equations (6), (10), and the pointwise sandwich now prove (1), in fact with the stronger error after adjusting constants. We retain the less restrictive displayed .
A natural-density theorem for stronger activation
For each modulus , allow an arbitrary forbidden residue set , including the empty set. Let be increasing, tending to infinity, and suppose, eventually,
with as in (1). Activate those congruences only when . Then the resulting survivor set has natural density equal to
It consequently also has logarithmic density .
Take to be an integer. To prove the lower bound, let , rounded to an integer. The full finite survivor set using all moduli at most is contained in the delayed survivor set on . By (1), its proportion there is its Haar measure plus , hence at least . The finitely many exceptions in (11) can be included once is large. For the upper bound, every fixed finite collection of congruences is active beyond a fixed integer; its periodic survivor density bounds the upper natural density. Let the finite collection increase to obtain .
For example, (11) holds for , any fixed . This does not treat , much less the original . Applying (1) with would violate its interval-length hypothesis. No original-activation tail estimate follows from this theorem.