% \section{Structure Proofs}\label{app:machinery} This appendix collects proofs that would interrupt the main text. Sections~\ref{app:F4carry} and~\ref{app:resform} support Section~\ref{sec:law}: the carry rule for $q=4$ (Remark~\ref{rem:F4carry}), the Riordan form (Lemma~\ref{lem:riordan}) and the proof of the residue form (Lemma~\ref{lem:resform}). Section~\ref{app:responses} collects facts about responses used in Sections~\ref{sec:law} and~\ref{sec:count}. Section~\ref{app:LIproof} proves Proposition~\ref{prop:LI}, Section~\ref{app:HBproof} the results on the hexagonal brick wall (Theorem~\ref{thm:HB}, Corollary~\ref{cor:HB17}), and Section~\ref{app:smallbases} two results of Section~\ref{sec:frames} (Proposition~\ref{prop:automaton}, Lemma~\ref{lem:octave}). The staggered windows at a finite prime are in Appendix~\ref{app:LFdata}. \subsection{Carries in Base Four}\label{app:F4carry} \begin{remark}[Carries for $q=4$]\label{rem:F4carry} For a digit $y\in\F_q$ let $\Delta(y):=\enc^{-1}\bigl((\enc(y)+1)\bmod q\bigr)-y\in\F_q^*$ be the change in $\F_q$ when its code goes up by one, and let $\bar y=\enc^{-1}(q-1)$ be the top digit. A step of carry length $l$ adds $\Delta(\bar y)$ to each of the $l-1$ finest digits and $\Delta(y)$ to digit $K-l$, where $y$ is the value of that digit; for $\F_4$, $\Delta(0)=\Delta(\omega)=1$ and $\Delta(1)=\Delta(\omega^2)=\omega^2$. By linearity such a step changes the geometric digit $K+i$ of coordinate $c$ by \begin{equation}\label{eq:carrychange} \delta_i(l,y)[c][c']:=\Delta(\bar y)\,D_i(l-1)[c][c']+\Delta(y)\bigl(D_i(l)-D_i(l-1)\bigr)[c][c'], \end{equation} which is $D_i(l)[c][c']$ for prime $q$ and $\omega^2D_i(l)$ or $D_i(l)+\omega D_i(l-1)$ for $\F_4$. \end{remark} \subsection{Riordan Form and Residue Form}\label{app:resform} The Riordan form writes each row of a scramble as one series in the common local variable $x$; the self-similar scrambles are those with one series for all rows. \begin{lemma}[Riordan form]\label{lem:riordan} Let $\theta\in\F_q^*$. For every scramble $L_c$ there are unit power series $g_{c,n}\in\F_q[[x]]$, $n\ge0$, such that for every $V$ \[ y_{c,n}(V)=\coef{n}\,g_{c,n}(x)\,V\bigl(z_c(\theta x)\bigr). \] Row $n$ of $L_c$ determines and is determined by the coefficients of $g_{c,n}$ up to $x^n$. \end{lemma} \begin{proof} Write $V(z)=\sum_k[(z-a_c)^k]V\,(z-a_c)^k$. Since $z_c(\theta x)-a_c=\theta x/w'(a_c)+O(x^2)$ is $x$ times a unit, $\coef{n}g(x)(z_c(\theta x)-a_c)^k$ vanishes for $k>n$, equals $g(0)(\theta/w'(a_c))^n\ne0$ for $k=n$, and for $k(s-1)\varepsilon$ and $a+(s-1)\varepsilon<2a<1$ (by (ii)); hence $\bar f(e_i,\Phi_i)\ge1-a-(|E|-1)\varepsilon$. (ii) $k\ge2$: since $1-a-\varepsilon\ge0$, the hypothesis gives $1-a-\varepsilon\ge\sqrt{1-(\frac12-\varepsilon)^2}>\sqrt3/2$, so $a<0.134$, $a+(s-1)\varepsilon<2a<0.268$, and two moving coordinates of $C$ give $\sum_c\bar f(e_c,\Phi_c)^2>2\cdot0.732^2>1$. (iii) $E=\{\cstar\}$: $\bar f(\pm1,0)=1$. (iv) $E=\{i\}$: $\bar f(e_i,\Phi_i)=1-a$, and $\cstar$ does not move and receives $\pm(\half+[-\varepsilon,\varepsilon])$, at distance at least $\frac12-\varepsilon$ from $0$; the sum is at least $(1-a)^2+(\frac12-\varepsilon)^2\ge1$. (v) $E=\{i,\cstar\}$: $\bar f(e_i,\Phi_i)\ge1-a-\varepsilon$ by (i), and $e_\star\Phi_\star\in\pm(\half+[-\varepsilon,\varepsilon])$, where $\bar f(+1,\cdot)\ge\frac12-\varepsilon$; the sum is at least $(1-a-\varepsilon)^2+(\frac12-\varepsilon)^2\ge1$. For the second statement: $\varepsilon\mapsto(1-s\varepsilon)^2+(\frac12-\varepsilon)^2$ decreases on $[0,\varepsilon_s]$ and equals $1$ at $\varepsilon_s$, so for $\varepsilon<\varepsilon_s$ it exceeds $1$ at $a=(s-1)\varepsilon$, and by continuity some $a>(s-1)\varepsilon$ still works. \end{proof} \emph{Windows and skeleton relations.}\label{app:jointproof} \begin{proof}[Proof of Lemma~\ref{lem:corrS}] By Lemma~\ref{lem:resform}(b), $v_c\chi_{c,d}\,y_{c,K-1-d}(V)=\theta^K\Res_{a_c}\bigl(V\varphi_c\cdot v_c\chi_{c,d}(w/\theta)^d\cdot w^{-K}dz\bigr)$. Summing over $dl$. On the other side $1/\varphi'_c=(1/\varphi_c)(1-\epsilon w^j+O(w^{j+1}))$ leaves $v_c$ and $\chi_{c,d}$, $dl$. In both cases the sum $O_c^{(l)}+\Psi_c(l)$ is unchanged. Any local multiplier with the same $v_c,\chi_{c,1},\dots,\chi_{c,l-1}$ is $\varphi_c$ times a unit $1+O(w^l)$, a product of such factors, and the responses up to depth $l$ depend on finitely many of them (only $\varphi_c$ mod $(z-a_c)^{K+1}$ enters level $K$, remark after Lemma~\ref{lem:resform}). (iii) By the covering condition, for every column $c$ the set $\Wo^{(c)}+[0,B]$ contains $B+1$. Take the step $e=(1,\dots,1)$ and any $\xi_c\in\sum_{c'\ne c}W_{c\leftarrow c'}$. Then $\omega+\xi_c+t=B+1$ for some $\omega\in\Wo^{(c)}$ and $t\in[0,B]$, so $S_c(e)\ni\sigma_c:=\omega+\xi_c=B+1-t\in[1,B+1]$, and $f_1(1,\sigma_c)=(\sigma_c-1)/p\le B/p$ (Remark~\ref{rem:onedigit}). Summing over $c$ gives $\LB(W)^2\le sB^2/p^2$. For the second statement, $\Lambda_v$ has index $p$ in $\Z^s$, so by Minkowski's theorem it contains $b\ne0$ with $\|b\|_\infty\le p^{1/s}$; if $B+1\ge p^{1/s}$ then $(|b|-(1+B)\mathbf 1)_+=0$ and $\ljitB(\Lambda_v)=0$. \end{proof} \subsection{The Hexagonal Brick Wall}\label{app:HBproof} \begin{proof}[Proof of Theorem~\ref{thm:HB}] The fixed depth-zero crosses lie in their windows: $-\kappa_{1\leftarrow0}=\nu/2\equiv\half+b$ and $-\kappa_{0\leftarrow1}=k$. Column~$1$ needs only a fast row: Lemma~\ref{lem:ws} with one row, step $k$ and arc $[-k,k]$ gives $N_1=1+\lceil(p-2k-1)/k\rceil=M_B$. Column~$0$ is a doubled column, but a parity argument halves the cost of Lemma~\ref{lem:D}: multiplied by $-2$, the condition $\sigma+o\kappa_{1\leftarrow0}\in\half+[-b,b]$ becomes $o\nu+2\xi\equiv2\sigma-1$ for some $|\xi|\le b$; the even numbers $2\xi$ form a complete residue system modulo the odd number $\nu$, so as $o$ runs over $M_A$ consecutive integers, $o\nu+2\xi$ takes every value in an interval of $\nu M_A-3\nu+3\ge p$ consecutive integers. So Proposition~\ref{prop:steer} applies. The hypotheses give (D) and (N) of Lemma~\ref{lem:W} ($p-1-2b-2M_B$ is even and positive), whose two numbers for $s=2$ (where $T_2$ is absent) are the last two terms, and the first term bounds the axis step of coordinate~$0$ as in the case $E=\{i\}$ of its proof. \end{proof} \begin{proof}[Proof of Corollary~\ref{cor:HB17}] For $p\ge10^4$ by hand: $\nu\in(p/34-1,p/34+1]$ and $k=2\nu\in(p/17-2,p/17+2]$, so $M_B<17(p-1)/(p-34)<18$ and $M_A<34(p-3)/(p-34)+4<38.2$. Hence $1-(k+M_A)/p\ge16/17-40/p\ge0.937$ and $(p-3-2b)/(2p)\ge33/68-3/(2p)\ge0.485$, whose squares sum to more than $1.11$; $1-(2k+M_A)/p\ge15/17-42/p\ge0.878$ and $\eta\ge33/68-35/(2p)\ge0.483$, whose squares sum to more than $1.004$; and $(1-M_B/p)^2\ge(1-17/p)^2$. The side conditions are immediate. For the $715$ primes $3677