Wiki
Wiki

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 A,C>0A,C>0 such that the following holds. Let Q≥3Q\ge3, and let UU be any union of residue classes with moduli at most QQ. If II is an interval of HH consecutive integers and

H≥exp⁡{A(log⁡Q)3},H\ge \exp\{A(\log Q)^3\},

then

∣∣U∩I∣H−μ(U)∣≤CQ−2.(1)\left|\frac{|U\cap I|}{H}-\mu(U)\right|\le C Q^{-2}. \tag{1}

Here μ(U)\mu(U) is its full periodic density. The bound is independent of the location of II, the common period, and all residue choices.

The external input is the bounded-independence theorem for disjunctive normal form (DNF) Boolean formulas: for absolute B,c,C0>0B,c,C_0>0, an mm-term DNF has expectation error at most

C0mBe−ck(2)C_0m^B e^{-c\sqrt{k}} \tag{2}

under any kk-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 kk-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 Ep=⌊log⁡pQ⌋E_p=\lfloor\log_p Q\rfloor for each prime p≤Qp\le Q. For

r=∑j=0Ep−1djpj,rev⁡Ep(r)=∑j=0Ep−1djpEp−1−j,r=\sum_{j=0}^{E_p-1}d_jp^j, \qquad \operatorname{rev}_{E_p}(r)=\sum_{j=0}^{E_p-1}d_jp^{E_p-1-j},

define

up(n)=rev⁡Ep(n mod pEp)+VppEp,(3)u_p(n)=\frac{\operatorname{rev}_{E_p}(n\bmod p^{E_p})+V_p}{p^{E_p}}, \tag{3}

where the VpV_p are independent uniform random variables on [0,1)[0,1). Under Haar sampling of nn, the upu_p are independent and uniform on [0,1)[0,1). For e≤Epe\le E_p, the condition n≡a(modpe)n\equiv a\pmod{p^e} is exactly the condition

up(n)∈[rev⁡e(a mod pe)pe,rev⁡e(a mod pe)+1pe).(4)u_p(n)\in \left[\frac{\operatorname{rev}_{e}(a\bmod p^e)}{p^e}, \frac{\operatorname{rev}_{e}(a\bmod p^e)+1}{p^e}\right). \tag{4}

Indeed fixing the first ee base-pp digits of nn, starting with the least significant digit, fixes the first ee digits after the radix point in (3). Endpoint ambiguities have probability zero.

Take b=⌈6log⁡2(Q+1)⌉b=\lceil6\log_2(Q+1)\rceil binary digits of each upu_p. Every interval in (4) has inner and outer approximations by the grid of mesh 2−b2^{-b}, each a union of at most 2b+22b+2 binary-prefix cylinders, with total outer-minus-inner length at most 21−b2^{1-b}. 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 qq is a conjunction of ω(q)\omega(q) conditions (4). Distributing the unions gives an inner and outer DNF, each with at most (2b+2)ω(q)(2b+2)^{\omega(q)} terms. There are fewer than (Q+1)2(Q+1)^2 possible classes with moduli at most QQ, so the entire union has DNF bounds f−≤1U≤f+f_-\le\mathbf1_U\le f_+ with

m≤(Q+1)2(2b+2)wQ,wQ=max⁡q≤Qω(q),N=bπ(Q)(5)m\le (Q+1)^2(2b+2)^{w_Q}, \qquad w_Q=\max_{q\le Q}\omega(q), \qquad N=b\pi(Q) \tag{5}

terms and bits, respectively. Under the independent uniform-bit law,

E(f+−f−)≤2(Q+1)2wQ2−b=O(Q−3).(6)\mathbb E(f_+-f_-) \le 2(Q+1)^2w_Q2^{-b}=O(Q^{-3}). \tag{6}

Using q≥ω(q)!q\ge\omega(q)! gives wQ=O(log⁡Q/log⁡log⁡Q)w_Q=O(\log Q/\log\log Q). Consequently

log⁡(m+1)=O(log⁡Q),N≤Qb.(7)\log(m+1)=O(\log Q),\qquad N\le Qb. \tag{7}

Using one coordinate per prime, rather than per prime-adic digit, is essential to this polynomial bound on mm.

Correcting almost independent bits

Now sample nn uniformly from II, still using independent jitters VpV_p, and let ρ\rho be the resulting bit probability density relative to the uniform law on {0,1}N\{0,1\}^N. For a nonempty set TT of at most kk bit positions, write

aT=EρχT,χT(x)=(−1)∑j∈Txj.a_T=\mathbb E_\rho\chi_T, \qquad \chi_T(x)=(-1)^{\sum_{j\in T}x_j}.

After averaging the jitters, this parity is a bounded function of nn with period dividing

DT=∏p:some bit at p belongs to TpEp≤Q∣T∣.D_T=\prod_{\substack{p:\text{some bit at }p\text{ belongs to }T}} p^{E_p}\le Q^{|T|}.

Its average over one period is zero: CRT and the jitters make those prime coordinates independent uniform real variables. Splitting II into complete periods and a remainder therefore gives

∣aT∣≤Qk/H.|a_T|\le Q^k/H.

Let

s=∑1≤∣T∣≤k∣aT∣≤(N+1)kQk/H.(8)s=\sum_{1\le|T|\le k}|a_T| \le (N+1)^k Q^k/H. \tag{8}

If k>Nk>N, the sums simply include all nonempty subsets. Define

ρ′=ρ+s−∑1≤∣T∣≤kaTχT1+s.(9)\rho'= \frac{\rho+s-\sum_{1\le|T|\le k}a_T\chi_T}{1+s}. \tag{9}

This is nonnegative because the absolute value of the character sum is at most ss. It has mean one, and all nonconstant Fourier coefficients of degree at most kk vanish. Thus its bits are exactly kk-wise independent (fully independent if k>Nk>N). Moreover,

∥ρ′−ρ∥TV≤3s2(1+s)≤32s.(10)\|\rho'-\rho\|_{\mathrm{TV}}\le \frac{3s}{2(1+s)}\le\tfrac32s. \tag{10}

For (10), subtract the densities in (9), use E∣1−ρ∣≤2\mathbb E|1-\rho|\le2, and bound the character sum in L1L^1 by ss.

Choose k=⌈K(log⁡Q)2⌉k=\lceil K(\log Q)^2\rceil, with KK an adequately large absolute constant. By (2) and (7), the error for each of f−,f+f_-,f_+ under ρ′\rho' is O(Q−3)O(Q^{-3}). By (7)--(8), choosing AA sufficiently large makes s=O(Q−3)s=O(Q^{-3}) for every interval length in (1). Equations (6), (10), and the pointwise sandwich now prove (1), in fact with the stronger O(Q−3)O(Q^{-3}) error after adjusting constants. We retain the less restrictive displayed O(Q−2)O(Q^{-2}).

A natural-density theorem for stronger activation

For each modulus qq, allow an arbitrary forbidden residue set RqR_q, including the empty set. Let F(q)F(q) be increasing, tending to infinity, and suppose, eventually,

F(q)≥exp⁡{A(log⁡q)3},(11)F(q)\ge\exp\{A(\log q)^3\}, \tag{11}

with AA as in (1). Activate those congruences only when n≥F(q)n\ge F(q). Then the resulting survivor set has natural density equal to

δ=lim⁡Q→∞μ{x:x mod q∉Rq for every q≤Q}.(12)\delta=\lim_{Q\to\infty} \mu\{x:x\bmod q\notin R_q\text{ for every }q\le Q\}. \tag{12}

It consequently also has logarithmic density δ\delta.

Take XX to be an integer. To prove the lower bound, let Q(X)=max⁡{q:F(q)≤X}Q(X)=\max\{q:F(q)\le X\}, rounded to an integer. The full finite survivor set using all moduli at most Q(X)Q(X) is contained in the delayed survivor set on [1,X][1,X]. By (1), its proportion there is its Haar measure plus o(1)o(1), hence at least δ−o(1)\delta-o(1). The finitely many exceptions in (11) can be included once XX 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 d‾≤δ\overline d\le\delta.

For example, (11) holds for F(q)=⌈exp⁡((log⁡(q+2))3+ϵ)⌉F(q)=\lceil\exp((\log(q+2))^{3+\epsilon})\rceil, any fixed ϵ>0\epsilon>0. This does not treat F(q)=qCF(q)=q^C, much less the original F(q)=qF(q)=q. Applying (1) with Q=XQ=X would violate its interval-length hypothesis. No original-activation tail estimate follows from this theorem.