\section{Proofs for Section~\ref{sec:fqcount}}\label{app:fq} We use the notation of Section~\ref{sec:fqcount}, and the following standard facts on the convergents $p_j/q_j$ of $\beta$ \cite[Chapter~X]{HW08}: $\gcd(p_j,q_j)=1$, $q_{j+1}=a_{j+1}q_j+q_{j-1}$ and $|q_j\beta-p_j|<1/q_{j+1}$. \subsection{The slope} \begin{proof}[Proof of Lemma~\ref{lem:beta}] (i) We have $q_0=q_1=1$, and $q_j\equiv q_{j-2}\pmod 2$ for $j\ge2$ because $a_j$ is even; hence every $q_j$ is odd. Let $k\ne0$ and $u$ be integers, $u$ odd, and suppose that $|2k\beta-u|<1/(4|k|)$. Write $u/(2k)=p/q$ in lowest terms with $q>0$. Since $\gcd(u,2k)$ is odd, $q$ is even, and $q\le2|k|$. Then $|\beta-p/q|<1/(8k^2)\le1/(2q^2)$, so $p/q$ is a convergent of $\beta$ by Legendre's theorem \cite[Theorem~184]{HW08}, and $q$ is odd, a contradiction. (ii) Let $j\ge1$. Since $q_j$ is odd, there is an integer $r$ with $|r/q_j-\frac14|=1/(4q_j)$, and since $\gcd(p_j,q_j)=1$, there is $n\in\{1,\dots,q_j\}$ with $np_j\equiv r\pmod{q_j}$. Put $k=(np_j-r)/q_j$ and $\eps_j=\beta q_j-p_j$. Then \[ \beta n-k-\tfrac14=\bigl(r/q_j-\tfrac14\bigr)+n\eps_j/q_j, \] so $|\beta n-k-\frac14|\le1/(4q_j)+1/q_{j+1}\le3/(4n)$, because $n\le q_j$ and $q_{j+1}\ge a_{j+1}q_j\ge2q_j$. As $j\to\infty$ the bound $1/(4q_j)+1/q_{j+1}$ tends to zero, whereas $\beta n-\frac14\notin\Z$ for every $n$; hence the integers $n$ obtained in this way are unbounded. (iii) Since $\beta$ is irrational, $\eps_j\ne0$, and $|\eps_j|<1/q_{j+1}\le1/(a_{j+1}q_j)=1/(2q_j^{\,j+2})$. (iv) By (iii), $|\beta-p_j/q_j|d$. \end{proof} \subsection{Geometry of the sheets} For $01\}$, and $(Z(x),W(x))$ lies in one of these sets when $x\notin\R$; so all zeros of $P(Z(x),W(x))$ are real. For real $x$ we have $|W|=1$, hence $1-aW\ne0$, and $p_a(Z,W)=(1-aW)(1-ZB_a(W))$ vanishes if and only if $ZB_a(W)=1$; for $a=a_j$ this means $e(g_j(x))=1$, that is, $x\in A_j$. Since $p_b-p_a=(b-a)(z-w)$ and $p_a(w,w)=1-w^2$, a common zero of $p_a$ and $p_b$, $a\ne b$, satisfies $Z=W=\pm1$. Then $x/\lambda=u/2$ with $u\in\Z$, and $Z=W$ gives $(\beta-1)u/2-\frac14\in\Z$, so $2\beta u$ is an odd integer, which is impossible. Hence the sets $A_j$ are disjoint. At a point of $A_j$, with $a=a_j$, \begin{equation}\label{eq:sheetderiv} \frac{d}{dx}\,p_a(Z(x),W(x))=-(1-aW)\,\frac{d}{dx}e(g_j(x)) =-2\pi\ii\,(1-aW)\,g_j'(x)\ne0, \end{equation} and the other factors of $P$ do not vanish there, so the zeros are simple. Finally, $g_j(r)-g_j(-r)\le2(1+\beta)r/\lambda+1$ because $|\psi_a(y)-y|\le\frac12$, so $A_j\cap[-r,r]$ has at most $2(1+\beta)r/\lambda+2$ points. (ii) Let $|x|<\delta\lambda$ and $t=x/\lambda$. Since $\beta\delta<\frac18$, the number $y=\beta t-\frac14$ lies in $(-\frac38,-\frac18)$, so $-\frac12<\psi_{a_j}(y)\le y<-\frac18$ and $g_j(x)=t+\psi_{a_j}(y)\in(-\frac12-\delta,-\frac18+\delta)$, an interval in $(-1,0)$. Hence $x\notin A$. (iii) Let $x\in A_j$, $a=a_j$, $t=x/\lambda$, $Z=Z(x)$ and $W=W(x)$. Since $\frac{d}{dx}p(Z(x),W(x))=\frac{2\pi\ii}{\lambda}D_\beta p(Z,W)$ for every polynomial $p$, \eqref{eq:sheetderiv} and $p_b(Z,W)=(b-a)(Z-W)$ give \begin{equation}\label{eq:DbetaP} D_\beta P(Z,W)=-(1-aW)\bigl(1+\beta\psi_a'(\beta t-\tfrac14)\bigr) \prod_{b\ne a}(b-a)\,(Z-W)^{s-1}, \end{equation} the product being over the parameters $b\ne a$ of the block. The first factors have modulus at least $(1-a)\prod_{b\ne a}|b-a|>0$. To bound $\eta=|Z-W|$ from below, note that $p_a(Z,W)=0$ and $p_a(W,W)=1-W^2$ give $(Z-W)(W-a)=1-W^2$, so that $|1-W^2|\le2\eta$, and also $|Z^2-W^2|\le2\eta$. Using $|1-e(v)|\ge4\operatorname{dist}(v,\Z)$ we obtain $\operatorname{dist}(2y,\Z)\le\eta/2$ and $\operatorname{dist}(2t-2y,\Z)\le\eta/2$, where $y=\beta t-\frac14$. Choose integers $u,u'$ with $|2t-u|\le\eta$ and $|2y-u'|\le\eta/2$. Since $2y=2\beta t-\frac12$, \[ |2\beta u-(2u'+1)|\le2|2y-u'|+2\beta|2t-u|\le(1+2\beta)\eta . \] If $u\ne0$, Lemma~\ref{lem:beta}(i) gives $(1+2\beta)\eta\ge1/(4|u|)$, and $|u|\le2|t|+\eta\le2(1+|t|)$; if $u=0$, then $(1+2\beta)\eta\ge1$. In both cases \begin{equation}\label{eq:ZW} |Z-W|\ge\frac{c_\beta}{1+|t|},\qquad c_\beta=\frac1{8(1+2\beta)} . \end{equation} Since $\lambda>1$, we have $1+|t|\le1+|x|$, and (iii) follows from \eqref{eq:DbetaP} and \eqref{eq:ZW}. (iv) By Lemma~\ref{lem:beta}(ii) there are integers $n$ of arbitrarily large modulus and integers $k$ with $|\vartheta|\le1/|n|$, where $\vartheta=\beta n-k-\frac14$. Fix such $n$ and $j$, and put $g(t)=t+\psi_{a_j}(\beta t-\frac14)$, so that $g(n)=n+k+\psi_{a_j}(\vartheta)$ with $|\psi_{a_j}(\vartheta)|\le K_{a_j}|\vartheta|$. Since $g'\ge1$, there is $t_j$ with $g(t_j)=n+k$ and $|t_j-n|\le K_{a_j}/|n|$. The point $x_j=\lambda t_j$ lies in $A_j$, and $Z(x_j)=e(t_j-n)$ and $W(x_j)=e(\beta(t_j-n)+\vartheta)$ are within $2\pi(1+\beta K_{a_j})/|n|$ of $1$. By \eqref{eq:DbetaP}, $|D_\beta P(Z(x_j),W(x_j))|\le C|n|^{-(s-1)}$, and $|x_j|$ is comparable to $\lambda|n|$. This proves~(iv); note that the $s$ points $x_1,\dots,x_s$ all lie within distance $C/|n|$ of $\lambda n$. (v) Let $x\ne x'$ be points of $A$. If both lie in $A_j$, then $g_j(x)$ and $g_j(x')$ are distinct integers, and $|x-x'|\ge\lambda/(1+\beta K_{a_j})$. Let $x\in A_j$ and $x'\in A_k$ with $k\ne j$, and let $Z,W,t$ be as in (iii). Then $e(g_k(x))=ZB_{a_k}(W)$, and $p_{a_k}(Z,W)=(a_k-a_j)(Z-W)$ gives \[ |1-e(g_k(x))|=\frac{|p_{a_k}(Z,W)|}{|1-a_kW|}\ge\frac{|a_k-a_j|\,c_\beta}{2(1+|t|)} \] by \eqref{eq:ZW}. As $g_k(x')\in\Z$ and $|1-e(v)|\le2\pi\operatorname{dist}(v,\Z)$, we get $|x-x'|\ge\lambda\operatorname{dist}(g_k(x),\Z)/(1+\beta K_{a_k})\ge\kappa'(1+|x|)^{-1}$. \end{proof} \subsection{Choice of the parameters} \begin{proof}[Proof of Lemma~\ref{lem:fqparams}] For $a\in(-1,1)$ and $y\in\R$ put \[ \psi_a(y)=y+\frac1\pi\arctan\frac{a\sin2\pi y}{1-a\cos2\pi y}. \] This is the continuous function with $\psi_a(0)=0$ and $B_a(e(y))=e(\psi_a(y))$, it is real-analytic in $(a,y)$, $\psi_0(y)=y$, and $\partial_a\psi_a(y)|_{a=0}=\pi^{-1}\sin2\pi y$. Let $\lambda=cm_r$ and $n\in\Z$. Since $\partial_t\bigl(t+\psi_a(\beta t-\frac14)\bigr)=1+\beta\psi_a'(\beta t-\frac14)>0$ and $\psi_a(y)-y$ is bounded, the equation $t+\psi_a(\beta t-\frac14)=n$ has a unique solution $t_n(a)$, which depends real-analytically on $a\in(-1,1)$ by the implicit function theorem. For $a\in(0,1)$, the root set of a sheet with parameter $a$ is $\{x_n(a):n\in\Z\}$, where $x_n(a)=\lambda t_n(a)$. We have $t_n(0)=(n+\frac14)/(1+\beta)$ and $(1+\beta)t_n'(0)=-\pi^{-1}\sin2\pi y_n$, where $y_n=\beta t_n(0)-\frac14$. If $2y_n$ were an integer $k$, then $2\beta(n+\frac14)=(k+\frac12)(1+\beta)$, that is, $\beta(2n-k)=k+\frac12$, which is impossible. Hence $t_n'(0)\ne0$, and $x_n$ is not constant. Moreover, for $n\ne n'$, \[ x_n(0)-x_{n'}(0)=\frac{cm_r(n-n')}{1+\beta}\notin\Gamma_{\Q}: \] otherwise $\sqrt2\,m_r(n-n')=(q_1+\beta q_2)(1+\beta)=q_1+(q_1+q_2)\beta+q_2\beta^2$ for some $q_1,q_2\in\Q$, and since $\beta$ is transcendental (Lemma~\ref{lem:beta}(iv)), the numbers $1,\beta,\beta^2$ are linearly independent over $\Q(\sqrt2)$, which gives $q_1=q_2=0$ and then $n=n'$. We choose $a_{r,1},\dots,a_{r,s_r}$ in turn. When $a_{r,j}$ is chosen, let $\mathcal Y$ be the union of $\{0\}$, the root sets of blocks $1,\dots,r-1$ and the root sets of the sheets with parameters $a_{r,1},\dots,a_{r,j-1}$; it is countable. We require that $a=a_{r,j}$ is different from $a_{r,1},\dots,a_{r,j-1}$, that $x_n(a)\notin\rho+\Gamma_{\Q}$ for all $n\in\Z$ and $\rho\in\mathcal Y$, and that $x_n(a)-x_{n'}(a)\notin\Gamma_{\Q}$ for all $n\ne n'$. For fixed $n$, $\rho$ and $\gamma\in\Gamma_{\Q}$, the function $a\mapsto x_n(a)-\rho-\gamma$ is real-analytic on $(-1,1)$ and not constant; for fixed $n\ne n'$ and $\gamma$, the function $a\mapsto x_n(a)-x_{n'}(a)-\gamma$ is real-analytic and does not vanish at $a=0$. In both cases the zero set in $(0,1)$ is countable, and as $\Gamma_{\Q}$ is countable, the requirements exclude only countably many $a$. If they hold at every step, then, by induction, the roots of the new sheets lie outside $\Gamma_{\Q}$ (take $\rho=0$), differ from all earlier roots by elements outside $\Gamma_{\Q}$, and in particular are distinct from them because $0\in\Gamma_{\Q}$, and distinct roots of one sheet differ by elements outside $\Gamma_{\Q}$. Thus blocks $1,\dots,r$ are independent. \end{proof} \subsection{No return to the cone} \begin{proof}[Proof of Proposition~\ref{prop:noreturn}] Put $S_1=(C_\beta+F_1)/\lambda$, $S_2=(C_\beta+F_2)/\lambda$ and $\Theta=\lambda^2$, and let $T\in\Ncal(S_2,S_1)$. Every point $z\in S_1\cup S_2$ has the form $z=(p+\beta q)/\lambda$ with unique integers $p,q$. Since $C_\beta+F_i$ is contained in finitely many translates of the two quadrants, and $|k+\beta n|=|k|+\beta|n|$ when $k,n$ have the same sign, there is $K_0$ with $|q|\le K_0(1+|z|)$ for all such $z$. Since $\Theta$ is a quadratic irrational, Liouville's theorem \cite[Theorem~191]{HW08} gives $c_\Theta>0$ with $|n\Theta-m|\ge c_\Theta/|n|$ for all integers $m$ and $n\ne0$. Fix $t\in S_1$, write $\lambda t=p_0+\beta q_0$, and choose an integer $k\ge1$ with $\F T\in H_{-k}$. Put $L=2k+1$ and $M=4k+2$. For $j\ge1$ let $b=q_j$ and $\eps=\beta q_j-p_j$, so that $0<|\eps|1$, $0