A subset with prescribed coset frequencies and few bad cyclic orbits
For every $\varepsilon>0$ and $C,L\in\mathbb R$, there are $C_b>0$ and $x_0\in\mathbb R$ with the following property for $x\ge x_0$. Let $A$ be a finite abelian group, $A_0\le A$, $d=[A:A_0]$, and $L_2\ge0$ an integer. Suppose $$\tfrac12x^h\le|A|\le Cx^h,\qquad d\le C,\qquad L_2\le L.$$ Let $b:A\times A\to A$ satisfy $b(a,t)\in t+\langle a\rangle$. Let $P\subseteq\mathbb N$ be finite, $a_p\in A$, and $\omega:\mathbb N\to[0,\infty)$, with $\operatorname{ord}(a_p)\ge x^{\varepsilon/4}$ for $p\in P$. There is $T\subseteq A$ satisfying $$\tfrac12\delta|A|\le|T|\le2\delta|A|,$$ $$\left||T\cap(\gamma+A_0)|-\frac{3+\mathbf1_{A_0}(\gamma)}{3d+1}|T|\right|\le x^{-1+\varepsilon}|T|\qquad(\gamma\in A),$$ and $$\sum_{p\in P}\omega(p)|B_p|\le4C_bx^{-2}\delta|A|\sum_{p\in P}\omega(p).$$ Here $B_p$ consists of those $t\in T$ for which $$S_{p,t}=\{0\le i<\operatorname{ord}(a_p):b(a_p,t)+ia_p\in T\}$$ fails one of the three conditions in the conventions below, with $n=\operatorname{ord}(a_p)$ and $S=S_{p,t}$.
Put $h=2+8\varepsilon$, $\delta=x^{-\varepsilon/8}$, $K=\lceil8(h+2)/\varepsilon\rceil_+$, $r=K+1$, $u=\lceil1/\delta\rceil_+$, and $l=(6r+1)u$. Put $$M_0=\left\lceil\frac{(h+3)\log x}{10^{-(6r+1)}}\right\rceil_+,\qquad G'=(M_0+5)l,$$ $$N_1=\left\lceil\max\{6eG'\delta,(h+3)\log_2x\}\right\rceil_++1.$$ Here $\lceil y\rceil_+=\max(0,\lceil y\rceil)$. A cyclic interval of length $m$ starting at $i$ is the set of residues $(i+j)\bmod n$, $0\le j<m$, counted without repetition. The three conditions on $S\subseteq\{0,\ldots,n-1\}$ are:
- Every cyclic interval of length $L_2$ contains at most $K$ members of $S$.
- Put $m=\lfloor n/l\rfloor$. For every $0\le s_0<m$, some $0\le j\le M_0$ gives $s=(s_0+j)\bmod m$ such that the cells $[sl+(c-1)u,sl+cu)$, $1\le c\le6r+1$, meet $S$ in no points for odd $c$, and in exactly one even integer for even $c$.
- Every cyclic interval of length $G'$ contains at most $N_1$ members of $S$.
The indices $p\in P$ need not be prime.