\section{A singular source with a faster optimal rate} \label{app:singular-boundary} Invertibility is a substantive restriction in the two-state classification. The following positive source has two singular symbol matrices and a different optimal rate. The construction uses the same feature updates and the converse uses the same forecast-rank principle as the main results. \begin{proposition}\label{prop:singular-boundary} In hidden-state order $(+,-)$, let $S_{\rm fix}$ have symbol matrices \begin{equation}\label{eq:boundary-source} \begin{aligned} T_{A_+}&=\frac1{16}\begin{pmatrix}3&2\\1&2\end{pmatrix},& T_{A_-}&=\frac1{16}\begin{pmatrix}2&1\\2&3\end{pmatrix},\\ T_{B_+}&=\frac1{16}\begin{pmatrix}3&1\\3&1\end{pmatrix},& T_{B_-}&=\frac1{16}\begin{pmatrix}1&3\\1&3\end{pmatrix}. \end{aligned} \end{equation} There are constants $c,C>0$ such that, for every $D\ge2$, \begin{equation}\label{eq:boundary-rates} e^{-Cr_D\log(r_D+1)}\le G_D^\diamond(S_{\rm fix}) \le C e^{-cr_D\log(r_D+1)}, \qquad \diamond\in\{\mathrm{cl},\mathrm q\}. \end{equation} Consequently, with $L_\varepsilon=\log(1/\varepsilon)$, \[ \Mc(\varepsilon;S_{\rm fix}) =\Theta\!\left(\frac{L_\varepsilon}{\log L_\varepsilon}\right), \qquad \Mq(\varepsilon;S_{\rm fix}) =\Theta\!\left(\sqrt{\frac{L_\varepsilon}{\log L_\varepsilon}}\right). \] \end{proposition} \begin{proof} The matrices are strictly positive and sum to $\frac1{16}\left(\begin{smallmatrix}9&7\\7&9\end{smallmatrix}\right)$, whose stationary hidden row is uniform. For posterior contrast $x$, direct multiplication gives \begin{equation}\label{eq:boundary-filter} \Pr(B_\tau\mid x)=\tfrac14,\quad x\mapsto\tau/2, \qquad \Pr(A_\sigma\mid x)=\frac{4+\sigma x}{16},\quad x\mapsto F_\sigma(x):=\frac{x}{4+\sigma x}, \qquad \sigma,\tau\in\{\pm1\}. \end{equation} For contrast $x$, write $\pi_x=((1+x)/2,(1-x)/2)$ and $P_x=P_{\pi_x}$. Thus $|x_H|\le1/2$ almost surely. Indeed, the probability of no $B$ symbol in the last $k$ observations is $2^{-k}$, so a most recent reset exists almost surely and fixes the posterior at $\pm1/2$. The two reset contrasts give different next-$A_+$ probabilities, so the output is not iid and its word-probability rank is two. \emph{Moment updates.} For $K\ge1$ put $h_1=1$, $h_j=1/2$ for $j\ge2$, and retain $r_j(x)=h_jx^j$, $1\le j\le K$. Their reference vectors have $\ell^1$ norm at most $3/4$ on $[-1/2,1/2]$. The power series of $r_j(F_\sigma(x))$ has truncated update matrix \begin{equation}\label{eq:boundary-moment-matrix} A_\sigma(j,\ell)=\frac{h_j}{h_\ell}(-\sigma)^{\ell-j} \binom{\ell-1}{j-1}4^{-\ell}\quad(\ell\ge j), \qquad A_\sigma(j,\ell)=0\quad(\ellK}\sum_{j=1}^K h_j\binom{\ell-1}{j-1}(a/8)^\ell\\ &\le\frac12\sum_{\ell>K}(a/4)^\ell \le\frac16 a^{K+1}4^{-K}. \end{align*} Block entry is exact. Lemma~\ref{lem:feature-error} with contraction $7/12$ therefore bounds the first-feature error by \begin{equation}\label{eq:boundary-contrast-error} |c_H-x_H|\le\frac25 a^{K+1}4^{-K}. \end{equation} Here $c_H$ is the actual first mean feature in the block and the exact contrast on an initial label. Moreover $|c_H|\le1/2$: preparations have this property, and the first absolute row sum of $A_\sigma$ is at most $5/12$, whereas every physical feature has absolute value at most one. These are stationary causal devices. At each integer time start at the most recent observed reset, prepare its prescribed memory, and apply the finitely many subsequent continuation updates. Classically use fresh coins independent of the entire source; quantumly compose the specified channels. The classical state is a function of the observed past and these coins; the quantum density is a function of the observed past alone. Both constructions commute with time shifts and obey the fixed online rules. This constructs the stationary memory rather than supplying the source posterior to the device. The reset age is not an additional stored variable: before block entry it is in the initial label, and after entry the same update is used at every continuation. \emph{Generation on the same register.} Choose existing block vectors $g_\pm$ with $P_1g_\pm=\pm g_\pm$ and define on the full quantum register \[ O=\sum_{\tau,w}x_{\tau,w}|\tau,w\rangle\langle\tau,w| \ \oplus\ P_1. \] Its norm is at most one. The instrument \begin{equation}\label{eq:boundary-generator} \mathcal G_b(X)=\sum_{i,j\in\{\pm1\}}T_b(i,j) \tr\!\left(\frac{I+iO}{2}X\right) |g_j\rangle\langle g_j| \end{equation} is CP and sums to a trace-preserving map. On input with mean $c=\tr(OX)$ it emits the exact source from hidden probabilities $(1\pm c)/2$, and stores each destination hidden state in $g_j$. Classically assign each initial label its exact contrast and each block label its first Walsh sign; use the analogous stochastic instrument and two existing opposite-sign block labels for the destinations. Both generators therefore have $Q_H=P_{c_H}$ without adding persistent memory. Lemma~\ref{lem:hidden-kl} gives $\KL(P_x\Vert P_c)\le(x-c)^2/(1-c^2)\le(4/3)(x-c)^2$ on the reached interval. With \eqref{eq:boundary-contrast-error}, this gives \begin{equation}\label{eq:boundary-upper-budget} \mathcal R\le C_0 a^{2K+2}16^{-K} \end{equation} for an absolute constant $C_0$. For $D\ge16$, let $D_0$ be the largest power of two at most $D$ and choose $J=\log_2D_0-2$, with $N=D_0/2$ or $d=D_0/2$. Then $H_J=D_0/2-2$, so the full memory costs $D_0-2\le D$, the block size exceeds $D/4$, and $J\ge(\log_2D)/4$. Thus $K+1\ge r_D/16$ in both cases. The factor $a^{2K+2}$ in \eqref{eq:boundary-upper-budget} gives the upper bound in \eqref{eq:boundary-rates}, since $\log(r_D+1)=O(\log D)$. Padding fits the remaining dimensions. For the finitely many budgets $2\le D<16$, ignoring the observations and running the exact source from its uniform hidden prior uses two states or dimensions and has risk at most $\log2$. Increasing the prefactor covers these budgets. \emph{A converse at one cut.} Put $r=r_D$, $M=r+2$, $k=\lceil\log_2M\rceil$ and $\xi=4^{-k}$. Choose $M$ distinct sign words $u_i$ and $M$ distinct sign words $v_j$, all of length $k$. Write $s_w=\sum_{\ell=1}^k\sigma_\ell4^{-\ell}$ for a sign word $w$. Fix almost any full past $H_0$ before the observed word $B_+A_{u_i}A_{v_j}$. The reset and $1/F_\sigma(x)=4/x+\sigma$ give a true cut contrast \[ X_{ij}=\frac{\xi^2}{2+s_{u_i}+\xi s_{v_j}}. \] This does not depend on $H_0$. The probability of each tested word conditional on $H_0$ is \[ \Pr(B_+A_{u_i}A_{v_j}\mid H_0) =\frac{\xi^2}{4} \left(1+\frac{s_{u_i}+\xi s_{v_j}}2\right) \ge\frac5{24}\xi^2. \] Apply Lemma~\ref{lem:forecast-rank} with row words $B_+A_{u_i}$, column words $A_{v_j}$, and generated word $A_+$. Its true table is $\mathsf P=\tfrac14\mathbf1\mathbf1^{\mathsf T}+X/16$, and the device table $\mathsf Q$ has rank at most $r$. Consequently $\widetilde Y=16\mathsf Q-4\mathbf1\mathbf1^{\mathsf T}$ has rank at most $r+1=M-1$. The distance of $X$ from such matrices is at least $\sigma_{\min}(X)$. The same lemma, followed by averaging its scalar bound over $H_0$, yields \begin{equation}\label{eq:boundary-lower-sigma} \mathcal R\ge c_0\xi^2\sigma_{\min}(X)^2 \end{equation} for an absolute $c_0>0$. In particular this argument does not require invertibility of the reset matrices. For completeness, write $X=\xi^2\mathsf C$ with $\mathsf C_{ij}=1/(a_i+b_j)$, $a_i=2+s_{u_i}$ and $b_j=\xi s_{v_j}$. Distinct sign words have $s$-values separated by at least $4^{-k}=\xi$: the first differing sign dominates the remaining tail. Hence the $a_i$ have gaps at least $\xi$ and the $b_j$ have gaps at least $\xi^2$. All sums $a_i+b_j$ lie in $(5/3,7/3)$. The Cauchy inverse identity, also obtained by taking ratios of minors and the determinant in Lemma~\ref{lem:line-nodes}, gives \[ |(\mathsf C^{-1})_{ji}| =\frac{\prod_l|a_i+b_l|\prod_{l\ne i}|a_l+b_j|} {\prod_{l\ne i}|a_i-a_l|\prod_{l\ne j}|b_j-b_l|} \le3^{2M-1}\xi^{-3(M-1)}. \] It follows that \[ \sigma_{\min}(X) \ge\frac{\xi^{3M-1}}{M3^{2M-1}} \ge e^{-C_1M\log M}, \] because $k=O(\log M)$. Substitution into \eqref{eq:boundary-lower-sigma}, with $M=r+2$, proves the lower bound in \eqref{eq:boundary-rates}. Finally, inverting $r\log(r+1)\asymp L_\varepsilon$ gives the stated memory orders. \end{proof}