\beta_2$ and
\[
d_L^\to\asymp L^{-\beta_2},\qquad
L^{-\beta_4}(\log L)^{-\beta_4/2}\ll d_L^\leftarrow\ll L^{-\beta_4}
\quad (L\ge2).
\]
The matching order $d_L^\leftarrow\asymp L^{-\beta_4}$ holds for
every $h\in(0,1)$ if
\[
\frac{\log p_1}{\log r_1}\ne\frac{\log p_2}{\log r_2}
\qquad\text{or}\qquad
\frac{\log r_1}{\log r_2}\in\mathbb Q.
\]
For any fixed choice of the other parameters, the set of $h$ where
this matching order can fail has Hausdorff dimension at most
$D$, where $r_1^D+r_2^D=1$ and $D<1$.
All upper bounds can be achieved by deterministic updates of the
retained state as each symbol of the past arrives.
\end{theorem}
The proof is in Appendix~\ref{app:reset-rates}.
For instance $p_1=3/10$, $p_2=1/5$, $t_1=1/5$, $t_2=-3/10$,
$r_1=1/4$, and $r_2=1/5$ satisfy the hypotheses with
$I=[-1/2,1/2]$. The logarithms of the contractions are
incommensurate and the two ratios involving $p_i$ differ.
Thus the powers are about $5.3307$ and $9.6448$, with matching
bounds at every reset strength. The exponent equation has the
same form as for the quantization of self-similar probabilities
\cite{GrafLuschgy,GrafLuschgyDimension}. In reverse, one must also
bound collisions between forecasts whose continuation words have
different contraction products.
\subsection{Recovering the exponents and their directions}
Suppose the source belongs to this family, with unknown parameters,
symbol roles and direction of observation. The scalar determinants
give an unordered pair of exponents. To assign them to the two
directions, we use a measurement that records the order of three
labels around a cycle. Choose a
$d$-by-$d$ unitary matrix $U_j$ for each symbol $j$. Taking the
trace still removes the choice of starting point. For an observed
chain on $\{1,\ldots,n\}$ with transition matrix $P$, let the $(i,j)$ block of
$\mathcal T_U(P)$ be $P_{ij}U_j$. The matrix-weighted Token
$L$-function for closed walks is
\begin{equation}\label{eq:cycle}
\mathcal Z_U(P;z)=\det(I-z\mathcal T_U(P))^{-1}
=\prod_c \det\bigl(I-z^{|c|}p(c)U(c)\bigr)^{-1}.
\end{equation}
The product in this weighted cycle formula \cite{BowenLanford,BerstelReutenauer}
runs over directed closed walks of least period equal to their length,
up to cyclic rotation. It includes loops and allows
immediate backtracking. The probability weight $p(c)$ is the product
of the transitions along $c$. The matrix $U(c)$ is the ordered product
of the matrices at each visit. A cyclic rotation leaves the
determinant factor in \eqref{eq:cycle} unchanged.
Expanding the logarithm at zero gives
$\sum_{k\ge1}z^k\tr(\mathcal T_U(P)^k)/k$. A walk of least period
$\ell$ has $\ell$ distinct starting positions. Its $m$th repetition
contributes $z^{m\ell}p(c)^m\tr(U(c)^m)/m$ after division by
$k=m\ell$. Summing these repetitions gives the logarithm of the
factor for $c$.
The sum of absolute values of the length-$k$ trace terms before
division by $k$ is at most $d\,\tr(P^k)\le dn$, which gives absolute
convergence for $|z|<1$.
For a hidden chain, replace the matrix inside the inverse determinant
by $I-z\sum_x d_x T^x\otimes U_x$. The variables $d_x$ select the
labels in a coefficient. Comparing the probabilities of oriented
cycles is a classical test of reversibility
\cite[Section~1.5]{Kelly}. We will extract the difference between
the two orientations of a triangle.
For the stability bounds, take a compact parameter class inside
the strict inequalities defining the family, with all probabilities
and the quantities $|h t_i|$ bounded below.
\begin{theorem}\label{thm:recover-rates}
The one-symbol scalar determinants recover $\beta_2,\beta_4$
as an unordered pair. Two-symbol scalar traces and one cubic
coefficient with $2$-by-$2$ unitary weights assign the two
exponents to their directions. All the quantities used can be
computed from observable word probabilities through length three.
The classification is stable and the exponents change by
$O(\eta)$ under errors at most $\eta$ in those probabilities,
for sufficiently small $\eta$ on a compact class. Direct word
counts also recover the exponents from words through length
three. Words through length two are insufficient even when the
direction is known.
\end{theorem}
\begin{proof}
In coordinates given by total mass and hidden-sign contrast, the
row matrices are
\[
A_i=p_i\begin{pmatrix}1&t_i\\0&r_i\end{pmatrix},\qquad
B_\sigma=v\begin{pmatrix}1&0\\\sigma h&0\end{pmatrix}.
\]
The change of coordinates is a scalar multiple of an orthogonal
matrix, so reversal still transposes them. The one-label determinant
$\det(I-zT^x)$ has degree two for $A_i$, with eigenvalues
$p_i,p_i r_i$, and degree one for $B_\sigma$, with eigenvalue $v$.
This determines the label roles, $p_i,r_i,v$, and the two roots in
Theorem~\ref{thm:reset-rates}. Every scalar determinant for the sum of
weighted label matrices is invariant under transposition.
Choose any active label $A_i$ and order the two reset labels as
$B_1,B_2$. Put
\[
D=\tr(A_iB_1)-p_i v,\qquad
\Delta=\tr(A_iB_1B_2)-\tr(A_iB_2B_1).
\]
In forward time $B_1B_2=vB_1$ and $B_2B_1=vB_2$, while
$\tr(A_iB_1)+\tr(A_iB_2)=2p_iv$. Thus $\Delta=2vD$
forward and $\Delta=-2vD$ in reverse. Here $D=\pm p_ivht_i\ne0$.
For the three labels choose $U_{A_i}=\mathrm i X$,
$U_{B_1}=\mathrm i Y$, $U_{B_2}=\mathrm i Z$, where
\[
X=\begin{pmatrix}0&1\\1&0\end{pmatrix},\quad
Y=\begin{pmatrix}0&-i\\i&0\end{pmatrix},\quad
Z=\begin{pmatrix}1&0\\0&-1\end{pmatrix}.
\]
In the logarithm of the inverse determinant of
$I-z\sum_x d_xT^x\otimes U_x$, the coefficient of
$z^3d_{A_i}d_{B_1}d_{B_2}$ is $2\Delta$. Indeed the two
orientations have Pauli traces $2$ and $-2$ and three cyclic
rotations each. Every matrix-weighted determinant through degree
two is invariant under reversal, since traces of two factors
are unchanged by exchanging the factors. Thus degree three
is needed for cyclic measurements to assign the directions.
To recover these quantities from word probabilities, choose a
pair $x,y$ with $\Pr(xy)\ne\Pr(x)\Pr(y)$. For example the normalized
deviation for $A_iB_\sigma$ is $\sigma ht_i$ forward, and the pair
table transposes under reversal. Form the $2$-by-$2$ matrix $H$ of
probabilities $\Pr(uv')$ with rows $u\in\{\varnothing,x\}$ and
columns $v'\in\{\varnothing,y\}$. Its determinant is the pair
deviation $\Pr(xy)-\Pr(x)\Pr(y)$. Form $H_a$ with entries $\Pr(uav')$.
The factorization in Proposition~\ref{prop:triple-rank} gives
$H_aH^{-1}$ as the matrix for symbol $a$ in a common basis, so it
can be used in the trace and determinant calculations.
Choose the empirical pair gap with the largest absolute value.
On the compact class the selected determinant, the continuation
eigenvalue gaps, and $|D|$ are bounded away from zero. To distinguish
the two kinds of labels when the word probabilities have errors,
choose a threshold below half the uniform lower bound on the smaller
continuation eigenvalue. A reset has a zero eigenvalue, and the
magnitude of its estimate stays below the threshold for small errors.
Inversion, simple eigenvalues, and the root equations in
Theorem~\ref{thm:reset-rates} then give the required local Lipschitz
bounds. The root derivatives are controlled since
$\sum_i(p_i r_i^a)^{s_a}\log(p_i r_i^a)$ is bounded away from zero.
For the direct calculation define
$J(w)=\Pr(w)/\prod_j\Pr(w_j)-1$. Choose an ordered pair $xy$
with $C=J(xy)\ne0$, and form
$(J(xxy)/C-1,\ J(xyy)/C-1)$. In forward time this gives
$(r_i,0)$ with $x=A_i$. In reverse it gives $(0,r_i)$ with
$y=A_i$. This follows from applying $f_i$ twice and from the
reset to zero. In particular all active roles and contractions
are recovered, and $p_i$ is the corresponding marginal.
The same gap conditions give stability. In either direction,
$\Delta=2v\{\Pr(A_iB_1)-\Pr(B_1A_i)\}$, so the marked coefficient
records a difference already present in the pair probabilities.
Those probabilities and the marginals depend on the masses and
$h t_i$ and are independent of $r_i$. A small decrease in one
$r_i$ shrinks its image interval about $t_i\in I$, so it preserves
inclusion and separation. It changes both roots in
Theorem~\ref{thm:reset-rates}, which proves the lower bound on
word length.
\end{proof}
\paragraph{Number of observations.}
Both calculations use the same short-word probabilities. On the
compact class in Theorem~\ref{thm:recover-rates}, either estimates
the two exponents to accuracy $\varepsilon$ and assigns their
directions with probability at least $3/4$ using
$O(\varepsilon^{-2})$ consecutive symbols. This order is optimal
if the class contains a local interval along which a contraction
varies with the other parameters fixed. Appendix~\ref{app:sample-rates}
proves these bounds.
\subsection{Recovering the whole law from three-symbol words}
The next result recovers the entire stationary law within a specified
class of hidden-state models. This also determines every finite-memory
loss and therefore both loss curves. The rank condition is the one
used in the word calculation above. Write $p(w)=\Pr(w)$, and let
$K=(p(xy))_{x,y\in\mathcal A}$ be the table of adjacent pairs.
\begin{proposition}\label{prop:triple-rank}
Suppose the source has a representation with at most $n$ hidden
states and $K$ has rank $n$. The probabilities of three consecutive
symbols determine the entire stationary law within this class.
They determine both whole-future loss curves $d_L^\to$ and
$d_L^\leftarrow$, and hence their exponents when they exist.
In the class with at most two hidden states, three symbols always
suffice, including when $K$ has rank one.
\end{proposition}
\begin{proof}
Choose $n$ row letters $U$ and $n$ column letters $V$ so
$H=(p(uv))_{u\in U,v\in V}$ is invertible. For a letter $x$ let
$H_x=(p(uxv))_{u\in U,v\in V}$. Write $p(V)$ as a row and $p(U)$
as a column. The formula
\[
p(x_1\cdots x_k)=p(V)H^{-1}
(H_{x_1}H^{-1})\cdots(H_{x_k}H^{-1})p(U)
\]
follows by factoring $H=MN$ and $H_x=MT^xN$, with rows
$\pi T^u$ in $M$ and columns $T^v\mathbf 1$ in $N$.
The loss curves are determined by this word law and its reversal.
One hidden state gives a product law. To cover the remaining case
with two hidden states, assume $K$ has rank one. Then $K$ is the
product of its marginals.
The pair deviations are the pairings of the rows
$\pi T^x-p(x)\pi$ with the columns $T^y\mathbf 1-p(y)\mathbf 1$.
The rows lie in the line annihilating $\mathbf 1$, and the
columns lie in the line annihilated by $\pi$. The pairing between
the lines is nonzero. Since every pair deviation vanishes,
one of the two families must vanish identically. In either case,
multiplying the labelled matrices gives $p(w)=\prod_i p(w_i)$.
\end{proof}
This reconstruction from pair and triple probabilities is the
classical observable-operator method \cite{CarlylePaz,HsuKakadeZhang}.
Three-observation identification is also known for ordinary hidden
Markov models with linearly independent emissions and an invertible
hidden transition matrix \cite{GassiatCleynenRobin}. Here the rank
condition is stated for a source that emits on transitions, and
the reconstruction uses exact probabilities. The explicit exponent
formulae in Theorem~\ref{thm:recover-rates} also give stability under
errors in those probabilities.
\subsection{Recovering the law from cycles}
For two hidden states, the scalar cycle determinant determines the
law up to the ambiguity already seen in the fixed example.
A cubic measurement can resolve that ambiguity.
\begin{proposition}\label{prop:two-state-cycle}
For a positive two-hidden-state source, the scalar cycle determinant
with separate symbol weights determines the observed law up to
reversal. If the law differs from its reverse, one matrix-weighted
cubic coefficient selects the observed direction.
\end{proposition}
\begin{proof}
The determinant gives all single traces and pair traces. For
$X_x=T^x-\tfrac12\tr(T^x)I$ it therefore gives the Gram table
$G_{xy}=\tr(X_xX_y)$. The alternating form
$F(X,Y,Z)=\tr(X[Y,Z])$ on the three-dimensional space of traceless
matrices satisfies
$F(X,Y,Z)^2=-2\det(\tr(X_iX_j))_{1\le i,j\le3}$
for $(X_1,X_2,X_3)=(X,Y,Z)$. This follows by checking a diagonal
traceless matrix and the two off-diagonal matrix units as a basis.
If the $X_x$ span at most a plane, all these values are zero.
Otherwise the Gram table gives the coordinates in a basis
of three labelled matrices, and all values of $F$ are fixed
up to one common sign. Transposition reverses that sign, and
the marked cubic for the basis triple distinguishes the signs.
The ordered triple traces now follow from their differences
and from $XY+YX=\tr(XY)I$ for traceless matrices.
The traces through degree three determine all word traces by the
two-by-two trace identities \cite{Sibirskii}. With
$Q=\sum_x T^x$ and $\lambda=\tr Q-1$, its stationary projection
is $E=(Q-\lambda I)/(1-\lambda)$. Hence the traces determine
$p(w)=\tr(ET^w)$. Transposing the labelled matrices transposes
this projection and reverses each word in the resulting law.
Thus the at most two choices give exactly the ambiguity claimed.
\end{proof}
With more hidden states, short cycles determine the law under a
condition on a known collection of reset symbols. Word probabilities
use the initial distribution $\pi$ and the final vector $\mathbf 1$
of a hidden path. A trace closes the path and sums over its starting
state. The reset symbols in the next theorem let us recover the
missing initial and final information. Each reset has rank one
because its next hidden-state distribution is fixed by that symbol.
\begin{theorem}\label{thm:reset-frame}
Let a source with $n$ hidden states have positive labelled matrices,
including $n$ designated resets $R_i=u_i v_i^{\mathsf T}$. Suppose
the $u_i$ form a basis and the $v_i$ form a basis. Then the ordered
traces $\tr(T^{x_1}\cdots T^{x_k})$ for $k\le3$ determine all
labelled matrices up to one simultaneous similarity, among such
sources with the same reset labels. Thus scalar and matrix-weighted
cycle coefficients through degree three determine both loss curves.
The adjacent-pair table has rank $n$, so the curves are also
determined by observed words of length three.
\end{theorem}
\begin{proof}
Take positive factors and write $C_{ij}=v_i^{\mathsf T}u_j$.
Scale each pair of factors reciprocally so $C_{1j}=1$ for $j>1$.
The one- and two-step traces give
$C_{ii}=\tr R_i$ and $C_{j1}=\tr(R_1 R_j)$ for $j>1$.
For distinct $i,j>1$ the triangle gives
$C_{ij}=\tr(R_1R_iR_j)/C_{j1}$. Thus $C$ is known.
Let $U$ have columns $u_i$ and $V$ rows $v_i^{\mathsf T}$, so
$C=VU$ is invertible. For every symbol $x$,
\[
(VT^xU)_{ij}=\frac{\tr(R_iT^xR_j)}{C_{ji}},\qquad
U^{-1}T^x U=C^{-1}(VT^xU).
\]
All the denominators $C_{ji}$ are positive. The matrix of the
hidden chain is $Q=\sum_x T^x$. Since $Q$ is positive and stochastic,
$E=\lim_{k\to\infty}Q^k=\mathbf1\pi$. The probability of the
word $w$ is $\tr(ET^w)$, which can now be calculated in the
recovered basis.
For distinct $x,y,z$ the scalar coefficient in the logarithm of
the inverse determinant gives the sum of the two cyclic
orientations. One system of unitary weights gives all the
differences. Choose distinct real numbers $s_x$ and let $\xi_x$
be the unit vector in the direction $(1,s_x,s_x^2)$. With the
Pauli matrices from Theorem~\ref{thm:recover-rates}, use
$U_x=\mathrm i(\xi_{x,1}X+\xi_{x,2}Y+\xi_{x,3}Z)$. Then
$\tr(U_xU_yU_z)=2\det(\xi_x,\xi_y,\xi_z)$, which is nonzero for three
distinct symbols by the Vandermonde determinant. The marked
coefficient gives the difference of the two orientations times
this trace. For repeated letters the scalar coefficient suffices.
Finally, the reset-pair submatrix of $K$ has entries
$(\pi u_i)C_{ij}(v_j^{\mathsf T}\mathbf 1)$. It is invertible by
positivity and the two basis conditions.
\end{proof}
The triangle calculation of $C$ is related to recovering a Gram
matrix from products of overlaps of rank-one orthogonal projectors
\cite{ChienWaldron}. Here the incoming and outgoing vectors may differ,
and triangles with two reset matrices recover every other symbol
matrix. The following family shows that the hypotheses can hold
with different exponents in the two time directions.
\begin{proposition}\label{prop:higher-reset-rates}
For each $n\ge2$ and $00$, its whole-future loss curves have
orders $L^{-\beta_2}$ forward and $L^{-\beta_4}$ in reverse, where
\[
\beta_a=-\log_n(Pr^a),\qquad a=2,4 .
\]
The pair probabilities are independent of $r$, so two-symbol words
do not determine the exponents. Closed-cycle coefficients through
degree two also fail to assign the exponents to their directions.
\end{proposition}
There are $n$ continuation symbols and $n$ reset symbols. At age
$k$ after a given reset, the $n^k$ forecasts are separated on the
scale $r^k$ forward and $r^{2k}$ backward. Their spacing and the
probability $P^k$ of reaching that age give the two exponents.
Appendix~\ref{app:many-resets} proves the bounds and constructs
memory updates attaining both orders.
\subsection{Limits of recovery from short data}
When there are more than two hidden states, positivity alone
does not give the rank condition in
Proposition~\ref{prop:triple-rank}. The following families show
that short probabilities can then conceal changes in both
exponents. The ambiguity can persist even when short cycle
measurements are also given.
\begin{theorem}\label{thm:delayed-contrast}
For each $d\ge2$ there is a four-symbol family of strictly positive
stationary sources with $d+1$ hidden states, indexed by sufficiently
small $r>0$. Word probabilities through length $d$ and ordered
cycle traces through length $d-1$ are independent of $r$. Yet the
whole-future losses have exact orders
\[
d_L^\to\asymp L^{-[1+2\log_2(1/r)]},\qquad
d_L^\leftarrow\asymp L^{-d[1+4\log_2(1/r)]}.
\]
At $d=4$, even the combination of all three-symbol words and all
matrix-weighted cubic coefficients leaves both exponents undetermined.
At $d=2$, varying the reset strengths along with $r$ gives two
sources with three hidden states, identical triple probabilities,
and different exponents.
\end{theorem}
A continuation first changes one contrast of the hidden state.
Further continuations move it through $d$ coordinates before a
reset registers the change in an observed probability. Its rate
of contraction changes the spacing of forecasts in both directions.
Appendix~\ref{app:delayed-contrast} gives the construction and the
matching loss bounds.
\section*{Conclusion}
For invertible two-state sources, the word weights of
Theorem~\ref{thm:reversible-power} give a common exponent under
separation. Exact resets can produce different exponents. Cubic
measurements can recover the direction that scalar cycle data omit.
Under what conditions does the word sum still give the true exponent
when posterior sets overlap in both directions? The reset perturbation gives one family
where it does for all but a set of parameters of Hausdorff dimension
zero. For three or more hidden states, can invertible, separated
sources have different exponents under reversal? Their posteriors
lie in a higher-dimensional simplex. Different directions in that
simplex can contract by different factors, so a determinant alone
does not give the diameter. A narrower question remains even for
exact resets in Theorem~\ref{thm:reset-rates}. Do the reverse power
bounds match at every reset strength when the contraction logarithms
are incommensurate and $p_i=r_i^\kappa$?
\section*{Acknowledgments}
OpenAI Codex and Anthropic Claude assisted with developing and checking
proofs in Sections~\ref{sec:reversal}--\ref{sec:rate-recovery} and
Appendices~\ref{app:reset-rates}--\ref{app:chain-geometry}, with the
numerical code and calculations in Appendix~\ref{app:fixed-check}, and
with drafting and revision throughout the manuscript. The author is
responsible for the statements, proofs, citations and computations.
\appendix
\section{Proofs and examples for hidden Markov sources}
The proofs are grouped by their main-text results. The reset-family
rates begin in Appendix~\ref{app:reset-rates}; symmetry and perturbations
are proved in Appendices~\ref{app:perturbation}--\ref{app:post-reset}.
\subsection{Prediction rates for the reset family}\label{app:reset-rates}
\begin{proof}[Proof of Theorem~\ref{thm:reset-rates}]
We first list the possible forecasts and their probabilities after a
reset. This turns the prediction loss into a squared approximation
error. We then choose how many continuation letters to retain and
count the forecasts that any smaller memory must miss.
Write $x$ for the conditional mean of the hidden sign. Forward,
$A_i$ has probability $p_i$ and sends $x$ to $f_i(x)$, and
$B_\sigma$ has probability $v(1+\sigma h x)$ and sends $x$ to zero.
In reverse, $B_\sigma$ has probability $v$ and sends $x$ to
$\sigma h$. The reverse $A_i$ has probability $p_i(1+t_i x)$
and sends $x$ to $r_i x/(1+t_i x)$. The chance of any continuation
is $p$ in both directions.
All transition entries have a positive lower bound. The future law
is a mixture of the two future laws started from a hidden sign.
Data processing bounds the KL divergence between two such mixtures
by the KL divergence between their initial hidden distributions,
which is at most a constant times the squared difference of their
coordinates on the convex hull of the posterior range. In forward
time the probability of $B_+$ is affine with nonzero slope in $x$.
In reverse the probability of $A_1$ has the same property. The
one-symbol Pinsker inequality therefore bounds the whole-future KL
below by a constant times squared distance. On each set of histories
with a common retained state, the conditional mean gives the
best forecast and is the least-squares centre. This reduces
both problems to approximating the posterior mean by a finite set
of points on the line.
For a continuation word $w=i_1\cdots i_k$, put
\[
P_w=\prod_{j=1}^k p_{i_j},\quad
R_w=\prod_{j=1}^k r_{i_j},\quad
b_w=f_{i_1}\circ\cdots\circ f_{i_k}(0).
\]
There is almost surely a last reset in the past. Listed most
recent first, the forward word since the reset gives the atom $b_w$
with mass $(1-p)P_w$. Listed in chronological order, the reverse
word and last reset sign give
\[
\frac{aR_w}{1+a b_w}\quad\text{with mass}\quad vP_w(1+a b_w),
\qquad a=\sigma h.
\]
The latter identity follows by iterating the reciprocal update.
The factors in the reverse word probability telescope. The masses
are comparable to $P_w$ since $|b_w|\le1$.
\emph{Choosing a memory from the continuation words.}
We use a stopping rule on the binary tree of continuation words.
For any fixed weights $\omega_1,\omega_2\in(0,1)$ and $s>0$ with
$\sum_i\omega_i^s=1$, stop a word at the first prefix $u$ with
$\omega_u=\prod_{i\in u}\omega_i\le\delta$, where $0<\delta<1$.
The stopping words partition the infinite words under the product
law with probabilities $\omega_i^s$. Their weights satisfy
$\min_i\omega_i\,\delta<\omega_u\le\delta$, so there are
$\asymp\delta^{-s}$ stopping words. There are also $O(\delta^{-s})$
nodes with $\omega_u>\delta$, since every internal node has two
children.
For the forward rate use $\omega_i=p_i r_i^2$. Keep words that end
before stopping exactly, and group the rest by their stopping
prefix. A group for $u$ has mass $P_u$ and diameter $O(R_u)$,
so the total error is $O(\delta^{1-s_2})$. For the converse,
use the atom at each stopping word. Distinct stopping words are
prefix-incomparable. If they have common prefix $z$, their points
are separated by at least a fixed multiple of $R_z$, by separation
of the two image intervals. Thus balls of radii $cR_u$ about
these atoms are pairwise disjoint for a fixed $c>0$. A ball missed by every forecast centre
costs at least a constant times $\omega_u\asymp\delta$. Choose
$\delta$ so that at least $2L$ stopping words occur to obtain the
matching lower bound.
For the reverse upper bound, group words by their two letter
counts. For each fixed count vector the product $R_w$ is fixed.
For words in that class sharing a prefix $u$, with $n$ remaining
letters, the mass is $O(P_up^n)$ by summing the weights over all
$n$-letter suffixes. The diameter of the
reverse means is $O(R_u^2 r_{\max}^n)$, since $b_w$ varies by
$O(R_u)$ and $R_w\le R_u r_{\max}^n$. Put
$W_u=P_u R_u^4$ and $b=p r_{\max}^2<1$. The contribution of the
cell is $O(W_u b^n)$.
Merge all words of length at least $K$ into a single state at
zero, choosing $K=O(\log(1/\delta))$ with $b^K\le\delta$.
The tail error is $O(\delta)$. For each count vector of length
less than $K$ and each reset sign, split a prefix with $n\ge1$
remaining letters only when $W_u b^n>\delta$. A complete word is
kept exactly. For a fixed $n$, there are at most $n+1$ remaining
count vectors. The tree bound with weights $p_i r_i^4$ gives at
most
\[
O\left(\delta^{-s_4}\sum_{n\ge1}(n+1)b^{n s_4}\right)
\]
splits in total. There are $O(K^2)$ roots, and each split adds at most one leaf to
the total. Thus the number of cells is $O(\delta^{-s_4})$ and their
total error is $O(\delta^{1-s_4})$.
The forward state is updated by prepending the new symbol and
stopping again. A prefix that has already stopped has even smaller
weight after a new symbol is prepended. The reverse state before the
tail stores the counts, reset sign, and the chosen prefix. After
a new continuation, the test weight $W_u b^n$ for every already
known prefix decreases. If the old word was truncated, the new
stopping prefix is already available. If it was stored exactly,
the next symbol is appended before applying the test. The tail
state stays fixed on a continuation, and a reset starts a new
record in either direction. This proves the updating
claim. Finally $p_i r_i^40$ small enough that every point in the interval is
comparable to $R_w$. Intervals for words of the same product $R_w$ are
disjoint: at their longest common prefix $z$, the two
$b$-values are separated by at least a constant times
$R_z\ge R_w$, and the derivative of $hR_w/(1+hb)$ has magnitude
comparable to $R_w$. All these comparisons can be made uniform
for $h$ in a compact subinterval of $(0,1)$.
For a bound valid for every parameter choice, take the Bernoulli
law with letter probabilities $q_i=\omega_i^s$ and stop at the
same threshold. Write $n_i$ for the counts,
$\lambda_i=-\log\omega_i$, and $N=n_1+n_2$.
The stopped sum $n_1-q_1N$ has second moment $q_1q_2\E N=O(m)$,
by the martingale square identity and the bound
$N\le m/\min_i\lambda_i+1$. Also
$\lambda_1 n_1+\lambda_2 n_2=m+O(1)$. Together these show
that at least half the stopping mass lies among words with
$n_1=q_1m/(q_1\lambda_1+q_2\lambda_2)+O(\sqrt m)$.
For each such $n_1$ there are $O(1)$ choices of $n_2$. Each
word has stopping mass comparable to $e^{-sm}$, so there are
$\gg e^{sm}$ words among these $O(\sqrt m)$ count pairs. Each
forecast centre hits at most one interval per pair. Choose
$m$ so that $e^{sm}$ is a sufficiently large constant times
$L\sqrt{\log L}$. A fixed fraction of intervals is missed, giving
error $\gg e^{-(1-s)m}\asymp L^{-\beta_4}(\log L)^{-\beta_4/2}$.
If $\log p_1/\log r_1\ne\log p_2/\log r_2$, any intervals
containing the same point have comparable $R_w$ and comparable
$P_wR_w^4$. Their count differences therefore satisfy two
independent linear equations with bounded right-hand sides, from
the logarithms of these products. Both count differences are
bounded. Each point lies in only $O(1)$ intervals, because words
with the same counts have the same product. When the contractions
are powers of a common number, comparable products range over
only $O(1)$ values and the same argument applies. Taking
$e^{sm}\asymp L$ with a sufficiently large constant now gives
the matching lower bound for every $h$.
\emph{The exceptional reset strengths.}
The preceding arguments give matching bounds when the counts or the
contraction product limit how many intervals can overlap. The last
case needs a bound on the reset parameters that permit many overlaps.
It remains to treat the proportional case, where
$p_i=r_i^\kappa$ for the same $\kappa>0$. Put
$\rho=e^{-m/(\kappa+4)}$, so every stopping word has
$R_w\asymp\rho$. Let $D\in(0,1)$ solve $r_1^D+r_2^D=1$.
Here $r_1+r_2<1$ because the two images of $I$ are separated
inside $I$. In any interval of length $u\ge\rho$, the number
of stopping words with $b_w$ in that interval is
$O((u/\rho)^D)$. To see this, stop the interval construction
when a contraction product first falls below $u$.
Those prefix intervals have sizes and gaps comparable to $u$,
so only boundedly many can meet the given interval. Under
the Bernoulli weights $r_i^D$ each such prefix has mass
$O(u^D)$, and each of its stopping descendants has mass
comparable to $\rho^D$. When $u$ is within a fixed factor of
$\rho$, the same bound follows directly from separation of
the stopping words.
Fix a compact interval $J\subset(0,1)$ for $h$. Let $\nu$ be
a finite measure on $J$ that assigns mass $O(u^\alpha)$ to
every interval of length $u$, for some $\alpha>D$. Suppose two
stopping intervals collide for some $h\in J$. Write $z$ for the
longest common prefix, $a=R_{w'}/R_w$, and
$\Delta=|\log a|$. The two products are comparable.
The collision implies
\[
|1-a+h(b_{w'}-a b_w)|\ll_J c\rho,
\qquad |b_{w'}-b_w|\ll_J \Delta+c\rho.
\]
On the other hand $|b_{w'}-b_w|\gg R_z$, and $R_z\gg\rho$.
Choosing $c$ sufficiently small gives $\Delta\gg_J R_z$.
In particular the products differ. If $n\in\mathbb Z^2$ is the
count vector of $w'$ minus that of $w$, then $|n|_1$ is bounded
by the sum of the two suffix lengths after $z$. Since
$R_w,R_{w'}\asymp\rho$, this sum is
$O(1+\log(R_z/\rho))$. Thus a collision requires
$\rho/\Delta\le C e^{-\eta |n|_1}$ for some $C,\eta>0$.
For fixed $w$ and $n$, the ratio $a$, hence $\Delta$, is fixed.
There are $O((\Delta/\rho)^D)$ candidates for $w'$ by the interval
count, since $b_{w'}$ must lie within $O(\Delta)$ of $b_w$ and
$\Delta\gg\rho$. For each candidate the first collision
inequality restricts $h$ to an interval of length $O(\rho/\Delta)$,
of $\nu$-mass $O((\rho/\Delta)^\alpha)$.
Indeed, at any point of overlap the coefficient of $h$ has
magnitude comparable to $|1-a|\asymp\Delta$, using the small
choice of $c$. The integral with respect to $\nu$ of the fraction
of stopping words involved in a collision is therefore bounded by
\[
C\sum_{\substack{n\in\mathbb Z^2,\ \Delta(n)>0\\
\rho/\Delta(n)\le C e^{-\eta|n|_1}}}
\bigl(\rho/\Delta(n)\bigr)^{\alpha-D},
\qquad \Delta(n)=\left|\sum_i n_i\log r_i\right|.
\]
For a fixed $n$ the contributing $\rho$ form a geometric tail
as $m$ increases. Their sum in this display is
$O(e^{-\eta(\alpha-D)|n|_1})$, regardless of the size of $\Delta(n)$.
Summing in $n$ shows that the integrals over $J$ are summable in
$m$. By Tonelli's theorem the collision fraction tends to zero
for $\nu$-almost every $h$. The remaining intervals are pairwise
disjoint, giving the matching bound at $e^{sm}\asymp L$.
The set where the fraction fails to tend to zero is Borel.
If it had dimension greater than $D$, Frostman's lemma would
give a nonzero measure $\nu$ of the specified kind carried
by that set \cite[Chapter~8]{MattilaGeometry}. This proves the
dimension bound on $J$, and a countable compact cover gives it
on $(0,1)$.
\end{proof}
\subsection{Sample bounds from observed words}\label{app:sample-rates}
On a compact class, overlapping length-three word frequencies from
$N$ consecutive observations have variance $O(1/N)$. For separated
blocks, condition on the hidden state after the first block. The
hidden transition matrix has second eigenvalue $\sum_i p_i r_i<1$
uniformly, so the covariances form a summable geometric series.
Theorem~\ref{thm:recover-rates} then gives an accuracy $\varepsilon$
with probability at least $3/4$ using $O(\varepsilon^{-2})$
observations for either recovery rule.
This order is optimal whenever the parameter class contains a
nontrivial local interval varying one contraction factor $r_i$
with all other parameters fixed. Along such an interval the exponent varies with nonzero
derivative, by its root equation. A parameter change of size
$c\varepsilon$ can therefore separate two exponent values by
more than $2\varepsilon$. The full hidden and observed $N$-step
laws have KL divergence $O(N\varepsilon^2)$ by the chain rule
and strict positivity. Data processing gives the same bound for
the observed laws. Pinsker's inequality then rules out a
successful test of the two values with probability $3/4$ when
$N$ is a sufficiently small multiple of $\varepsilon^{-2}$.
\subsection{A numerical check for the fixed source}\label{app:fixed-check}
We enumerate the posterior distribution in Theorem~\ref{thm:fixed-hmm}
through age nine and assign the mass of older histories to the
representatives at the cutoff. We minimize squared error on this
finite distribution by dynamic programming. For memory budgets
$8\to16$, $16\to32$, and $32\to64$, the local log-log slopes are
$-4.87$, $-4.94$, and $-4.97$ forward, and $-7.94$, $-8.55$, and
about $-8.8$ backward. A cutoff at age ten gives the same values
at the displayed precision. The calculation uses squared error in
the posterior coordinate, which the proof compares with
whole-future relative entropy.
The accompanying file \texttt{check\_fixed\_hmm.py} reproduces this
finite calculation; it is a numerical check, not part of the proof.
\subsection{Independent reset vectors}\label{app:many-resets}
We prove Proposition~\ref{prop:higher-reset-rates}. Work in an
orthonormal basis whose first vector is the normalized all-ones
vector. A probability row in the new coordinates is proportional
to $(1,x^{\mathsf T})$, where $x\in\mathbb R^{n-1}$ records its
contrasts. Take two sets $t_i,a_j$ of $n$ small, affinely
independent vectors, with $\sum_i t_i=\sum_j a_j=0$. Choose them
so that for each $j$ the numbers $a_j^{\mathsf T}t_i$ are distinct.
For example, one can rotate one centered simplex relative to the
other to avoid the finitely many orthogonality conditions. Put
\[
A_i=\frac{P}{n}\begin{pmatrix}1&t_i^{\mathsf T}\\0&rI\end{pmatrix},
\qquad R_j=\frac{1-P}{n}
\begin{pmatrix}1\\ a_j\end{pmatrix}
\begin{pmatrix}1&a_j^{\mathsf T}\end{pmatrix}.
\]
In the original hidden coordinates all entries are positive for
small vectors and small $r$, by comparison with the projection onto
the constant vector. Their sum has first row and column equal to
those of that projection in the new basis. The hidden stationary law
is uniform, and reversal transposes each matrix.
The reset vectors form a basis since the $a_j$ are affinely
independent.
A reset $j$ sends the contrast to $a_j$ and has probability
$(1-P)(1+x^{\mathsf T}a_j)/n$ in either direction. A continuation
has probability $P/n$ and sends $x$ to $t_i+rx$ forward. In reverse
its probability is $(P/n)(1+x^{\mathsf T}t_i)$, and it sends $x$
to $rx/(1+x^{\mathsf T}t_i)$. The probability of any continuation
is $P$, regardless of $x$, in both directions. The reset
probabilities distinguish all contrasts because the $a_j$ span
$\mathbb R^{n-1}$. By Theorem~\ref{thm:whole-future}, predicting
from $L$ states has loss comparable to the minimum mean squared
error of grouping the contrast vectors into $L$ cells.
After a reset $j$ and $k$ continuations, the forward contrast is
$b+r^ka_j$, where $b$ is the sum of the last $k$ vectors $t_i$
weighted by $1,r,\ldots,r^{k-1}$, most recent first.
In reverse, $b$ is the same sum in chronological order and the
contrast is $r^ka_j/(1+a_j^{\mathsf T}b)$. This follows by
transposing the product of the continuation matrices in the
opposite order. The probabilities of the corresponding past
events are $(1-P)(P/n)^k/n$ forward and this same value multiplied
by $1+a_j^{\mathsf T}b$ backward. The latter factor is uniformly
bounded away from zero and infinity.
Fix a reset $j$. If two words first differ at position $i$ in the
appropriate order, the difference at that position in
$a_j^{\mathsf T}b$ is at least $c r^{i-1}$ for some $c>0$ after
subtracting the entire remaining tail, provided $r$ is small.
The $n^k$ forward points are therefore separated by $\gg r^k$.
Taking the reciprocal of the reverse denominator and multiplying
by $r^ka_j$ changes distances by a factor comparable to $r^k$,
giving separation $\gg r^{2k}$. Choose $k$ with $2L\le n^k<2nL$.
At least half the points are separated from every one of $L$ centres
by a constant times the corresponding scale. Their masses give
lower bounds of orders $(Pr^2)^k$ and $(Pr^4)^k$.
For the forward upper bound, retain the last $k$ continuations, or
the exact word and reset label for shorter ages. For the reverse
bound, store the reset label, age and whole continuation word
through age $k$. At age $s$ with $k0$, with $r<1/4$, set
\[
A_s=\tfrac14\begin{pmatrix}1&st e_1^{\mathsf T}\\0&rS\end{pmatrix},
\qquad B_\sigma=\tfrac14\begin{pmatrix}1&0\\\sigma h e_d&0\end{pmatrix},
\qquad s,\sigma\in\{+1,-1\}.
\]
For instance, take each constant less than $1/(4(d+1))$. In the
original basis each matrix is then close enough to one fourth
of the constant projection to have positive entries. Their sum has contrast
block $rS/2$ and both off-diagonal blocks zero, so the hidden law
is uniform.
A word probability is the mass-to-mass entry of the product.
After leaving the mass coordinate a term needs one $A$ to enter
contrast $1$, another $d-1$ continuations to reach contrast $d$,
and one $B$ to return to mass. Thus $p(w)=4^{-|w|}$ through
length $d$. For a product containing a $B$, rotate to start at
one. Since each $B$ has rank one, its trace is $4^{-|w|}$ times
the product, over runs of continuations, of factors
$1+\sigma h b^{\mathsf T}e_d$, where $b$ is the affine sum for that
run. Each factor is one if the run has fewer than $d$ letters.
For a product of $k$ continuations alone the trace is
$4^{-k}(1+r^k\tr S^k)$. This is $4^{-k}$ for $1\le k0$ in row order, the derivative in log odds
has absolute value
\[
\frac{|ad-bc|e^u}{(ae^u+c)(be^u+d)}<1.
\]
The supremum is strictly below one, since the derivative tends to
zero at both ends. Let $K$ be the support of the posterior. It is
the compact set obtained by composing the updates along an infinite
past. It is contained in $J$. Every finite word has positive probability, so each finite
prefix of such a past contributes to the support. In particular
$K=\bigcup_a F_a(K)$.
For a concatenation in either order the probability of the second
block, conditional on the first, is comparable to its stationary
probability. Multiplicativity of the determinant now gives
$W_{uv}\asymp W_uW_v$, with constants independent of both lengths.
For $s\ge0$ put
\[
Z_j(s)=\sum_{|w|=j} W_w^s,\qquad
P(s)=\lim_{j\to\infty}\frac{1}{j}\log Z_j(s).
\]
Indeed $\log Z_{j+k}(s)-\log Z_j(s)-\log Z_k(s)$ is bounded by
a constant depending on $s$. Applying subadditivity and
superadditivity after adding or subtracting that constant gives
the limit and $\log Z_j(s)=jP(s)+O_s(1)$.
The word weights are bounded above and below by exponentials
in $j$, with a strictly negative upper rate by contraction.
Thus $P$ is continuous and strictly decreasing. It is positive at
zero, and negative at one because $\sum_{|w|=j}p_w=1$ and $R_w$
decays uniformly. Let $s_*$ be its unique zero.
Normalize the weights $W_w^{s_*}$ on each level and take a
subsequential limit of the prefix marginals. For every prefix $u$,
its limiting probability is comparable to $W_u^{s_*}$, by
$W_{uv}\asymp W_uW_v$ and $Z_j(s_*)\asymp1$.
\paragraph{A memory chosen from word probabilities.}
The observed law is non-i.i.d., so $K$ has positive diameter
and at least one one-symbol probability varies with the posterior.
In either excluded case the conditional law of the next symbol
given the entire past would be constant. The same argument holds
in reverse. Theorem~\ref{thm:whole-future} therefore compares loss
to squared posterior error in each direction. Stop a past at its first
prefix $w$ for which $p_w\operatorname{diam}(F_w(K))^2\le\delta$,
using the log-odds diameter. The derivative estimate makes this
product comparable to $W_w$. Invertibility gives a positive lower
derivative bound for each symbol on $J$, so
$\operatorname{diam} F_a(K)\asymp\operatorname{diam}K>0$.
Together with the word estimates, this bounds the change in stopping
cost above and below when a letter is appended. Thus the stopped
products are comparable to $\delta$.
The limiting prefix measure shows that there are
$\asymp\delta^{-s_*}$ stopping words. One forecast per word
gives squared error $O(\delta^{1-s_*})$. In particular,
$d_L\ll L^{-(1/s_*-1)}$.
The upper bound admits a deterministic update. Prepending the new
symbol can only decrease the stopping product of the old word because
its probability is at most the old marginal probability and the
new map contracts log odds. The new stopping prefix is therefore
available after prepending the symbol to the old prefix.
\paragraph{The lower bound with disjoint posterior sets.}
If the sets $F_a(K)$ are pairwise disjoint, two stopping words
with longest common prefix $z$ have sets separated by $\gg R_z$.
This follows from the first-symbol gaps and the minimum derivative
of $F_z$. Their diameters are $O(R_z)$, so the stopping sets
padded by a sufficiently small constant times their own diameters
are disjoint. A padded set missing all the forecast centres has
word mass at least $p_w$ and contributes $\gg\delta$ to squared
error. Choose $\delta\asymp L^{-1/s_*}$ with the constant small
enough to give at least $2L$ stopping words. Then
$d_L\asymp L^{-(1/s_*-1)}$ in this direction.
\paragraph{Why reversal preserves the word weights.}
Under stationary reversal the symbol matrices become
$\Pi^{-1}(T^a)^{\mathsf T}\Pi$, where $\Pi$ is the diagonal matrix
of stationary hidden probabilities. The probability and determinant
of each word then equal those of the reversed word in the original
source. Both $R_w$ and $W_w$ are preserved in this correspondence,
so the exponent in the upper bound is common to both directions.
\paragraph{Separation of word maps under reversal.}
We say word maps are exponentially separated on $J$ if the
supremum distance between distinct labelled compositions of
length $n$ is at least $c^n$ for a fixed $c>0$ at all sufficiently
large $n$. This property passes to the reversed source. The same
holds when the words are built from a fixed block alphabet and
the reversed alphabet consists of its reversed blocks.
To prove this, let $S=\Pi^{1/2}$ and use an orthonormal basis
whose first vector is $(\sqrt{\pi_1},\sqrt{\pi_2})^{\mathsf T}$.
In this basis the first entry of $S T_w S^{-1}$ is $p_w$,
and the corresponding reversed matrix is its transpose.
Divide by $p_w$ and write the resulting matrix as
$\bigl(\begin{smallmatrix}1&b\\c&d\end{smallmatrix}\bigr)$.
Positivity gives uniform bounds on the entries, since $p_w$
is a positive weighted sum of the original entries. The
absolute determinant $R_w$ has a lower bound exponential in
the word length. The posterior coordinates in this basis are
mass one and a contrast $x$ with $x=0$ at the stationary
prior. On either invariant interval $J$, the denominators of
the projective maps are bounded away from zero by the word
probability comparison. For the reverse map $F(x)=(c+dx)/(1+bx)$,
three evaluations at $-r,0,r$ recover its entries:
\[
c=F(0),\qquad b=\frac{2c-F(r)-F(-r)}{r(F(r)-F(-r))},
\qquad d=\frac{(1+br)F(r)-c}{r}.
\]
Choose $r>0$ fixed with these points in the reverse interval.
The derivative comparison gives $|F(r)-F(-r)|\gg R_w$.
If two reverse maps are within $\varepsilon$ in supremum norm,
their entries differ by at most $C^n\varepsilon$ for some
$C>1$. In the forward maps the same estimate holds, with a
fixed factor from their denominators. This proves the transfer.
\paragraph{A lower bound allowing overlap.}
For the remaining lower bound, we group a fixed number of symbols
into one block and place an auxiliary independent law on these blocks.
The original source still supplies the probabilities used in the loss.
We use block alphabets $\mathcal W_m$ of arbitrarily large fixed
length $m$, closed under the correspondence with reversed blocks.
The following criterion will let us compare the two laws.
Suppose the block matrices
have positive determinants, their maps have no common fixed point in
either direction, and their compositions are exponentially separated on
$J$. Suppose also
\[
Z'_m=\sum_{w\in\mathcal W_m} W_w^{s_*}\asymp 1,\qquad
\sum_{w\in\mathcal W_m}\sup_{x\in J}|F_w'(x)|=O(1).
\]
We show that the logarithmic loss exponent is $1/s_*-1$.
Write $s=s_*$.
Set
\[
q_w=W_w^s/Z'_m,\quad H=-\sum_w q_w\log q_w,\quad
U=-\sum_w q_w\log p_w,\quad V=-\sum_w q_w\log R_w,
\qquad w\in\mathcal W_m .
\]
Place independent probabilities $q_w$ on the blocks and let
$\nu$ be the law of the resulting limit of the block maps. Its
mean logarithmic contraction per block is
$\chi=-\sum_w q_w\int\log|F_w'(x)|\,d\nu(x)$.
The derivative comparisons give $|\chi-V|=O(1)$ uniformly
in $m$. Also $H=s(U+2V)+O(1)\asymp m$, since
$Z'_m\asymp1$ and the word costs decay exponentially.
If $\ell_w$ is the Lipschitz constant of a block map, then
$H+\sum_w q_w\log\ell_w\le\log\sum_w\ell_w\le C_0$ for a
constant $C_0$. Since $\chi\ge-\sum_wq_w\log\ell_w$, we have
$\min(H,\chi)=H+O(1)$.
Apply Rapaport's dimension theorem
\cite[Definition~1.1 and Theorem~1.2]{RapaportAnalytic} to the
independent block law $q$, not to the original source law.
In log odds the block maps are real analytic on a compact invariant
interval, have $0<|F_w'|<1$, and have no common fixed point. Rescale
this interval to $[0,1]$. The earlier reversal argument transfers
exponential separation of maps; separation at every sufficiently
large length implies Rapaport's infinitely-many-lengths condition.
His theorem gives $\dim\nu=\min(1,H/\chi)$. Feng--Hu
\cite[Theorem~2.8]{FengHu} gives exact dimensionality for this
independent, conformal system, so the local dimension equals
$D=\min(1,H/\chi)$ at $\nu$-almost every point. Related
independent-block approximations appear in
\cite[proof of Corollary~1.3]{RapaportAnalytic}.
This step uses Rapaport's preprint. We do not rely on the earlier
Furstenberg-measure argument of \cite{HochmanSolomyak}: the authors'
2018 clarification \cite{HochmanSolomyakClarification} identifies
an incomplete entropy-porosity step. The direct bounds for a separated
direction above are independent of this dimension input.
We now use this dimension estimate to count forecasts that remain
separated. Fix a small $\epsilon>0$. By the law of large numbers and the
ergodic theorem, a positive-probability set of codes has the
following properties for all sufficiently large $n$. The first
$n$ blocks have original word probability at least
$e^{-n(U+C+\epsilon)}$ and map $J$ to an interval of diameter
at most $r_n=e^{-n(\chi-\epsilon)}$.
Here $C$ is independent of $m$: the probability of a
concatenation differs from the product of its block probabilities
by at most a fixed factor per block. The diameter bound follows
by summing the logarithmic derivatives on successive tails and
using bounded distortion. By restricting the set of codes further
while keeping positive probability, their projected points $x$
satisfy $\nu(B(x,r))\le r^{D-\epsilon}$
for every sufficiently small $r$, with a common cutoff.
A maximal set of projected points with spacing $6r_n$ has at
least $c e^{nH_\epsilon}$ elements, where
$H_\epsilon=(\chi-\epsilon)(D-\epsilon)$. This follows by
covering the set with the $6r_n$-balls and using the last mass
bound. The corresponding word intervals lie within $r_n$ of
those points, so their $r_n$-neighborhoods are disjoint. Choose
$n$ so that $e^{nH_\epsilon}$ is a sufficiently large constant
times $L$ up to a bounded factor. Any $L$ centres miss the $r_n$-neighborhoods
of at least $L$ intervals. Their words are distinct, since their diameters
are at most $r_n$. Each disjoint word event contributes at
least its probability times $r_n^2$ when its interval is missed.
Thus the loss is bounded below by a constant times
$L e^{-n(U+C+\epsilon+2(\chi-\epsilon))}$.
On taking $L\to\infty$ and then $\epsilon\to0$, the upper
limit of the loss exponent is at most
$(U+C+2\chi)/\min(H,\chi)-1=1/s-1+O(1/m)$. Let $m\to\infty$.
The upper loss bound from the stopping rule gives the opposite
inequality for the lower limit. That rule requires no
separation of posterior sets for its upper bound.
\paragraph{Separation in one direction.}
For the last assertion of Theorem~\ref{thm:reversible-power},
suppose one direction has disjoint sets $F_a(K)$. Word maps
in that direction are exponentially separated. Evaluate two
compositions at any point of $K$. After removing their common
prefix, the outputs are in different first-symbol sets. The
minimum derivative of the common prefix bounds how much the
resulting gap can shrink. Word-map separation thus holds in
both directions by the preceding transfer.
For even $m$ take all words of length $m$ with positive
determinant. If the letters have the same determinant sign
this includes every word. If both signs occur, extend each
$(m-1)$-word by a fixed letter of the sign needed to make the
product positive. The comparison for $W_{uv}$ then proves
$Z'_m\asymp 1$. Because $m$ is even, $(\det T^a)^m>0$ for
every symbol, including when the signs of the determinants differ.
Our alphabet therefore contains every constant word $a^m$.
The block maps have no common fixed point in either direction:
$F_a^m$ and the contraction $F_a$ have the same unique fixed
point. A common fixed point of all $F_a$ would give a singleton
posterior support. To bound the sum of derivatives, work first
in the separated direction. In log odds, take a
sufficiently small open neighborhood of $K$ consisting of the
points at distance less than a fixed $\varepsilon$ from $K$.
It contains each of its symbol images by contraction, and
these images are pairwise disjoint by the gaps between $F_a(K)$.
It follows that all length-$m$ images of the neighborhood
are disjoint. Their lengths are comparable to $R_w$ times
its length. Thus $\sum_{|w|=m}R_w=O(1)$, also in the other
direction since reversal preserves the multiset of $R_w$.
The sum of the Lipschitz constants of the selected maps is
bounded by the derivative comparison. Every hypothesis of the block criterion
has now been checked, so it gives the logarithmic exponent in both
directions. This completes the proof of Theorem~\ref{thm:reversible-power}.
\paragraph{Proof of Proposition~\ref{prop:fixed-budget-continuity}.}\label{app:continuity-proof}
Nearby positive models share a compact interval $J$ and a uniform
contraction factor $\theta<1$ in log odds, even at rank-one symbols.
Approximation by finite pasts therefore gives weak continuity of
the posterior law. By the KL chain rule the $j$th term of the
future loss is $O(\theta^{2j})$ uniformly on $J$ because the
updated posteriors differ by $O(\theta^j)$ and all symbol
probabilities are bounded below. Thus the whole-future loss is
continuous jointly in the model and its two starting posteriors.
Centres may be chosen as conditional means in $J$. For $L$
centres the integral of the minimum loss is jointly continuous
by uniform continuity and weak convergence, and minimizing over
$J^L$ proves continuity of $d_L$.
\subsubsection{Separated sources near the fixed example}\label{app:nearby-proof}
To prove Theorem~\ref{thm:perturbation}, we construct nearby sources
with disjoint posterior sets in both directions and evaluate their
limiting exponent. Use the orthogonal mass and contrast coordinates of
Theorem~\ref{thm:recover-rates}. With $\sigma=\pm1$ let
\[
A_\sigma=\tfrac14\begin{pmatrix}1&\sigma/4\\
\sigma a&1/4\end{pmatrix},
\qquad
B_\sigma=\tfrac14\begin{pmatrix}1&\sigma b\\
\sigma h& bh+\eta\end{pmatrix}.
\]
Take $a,b>0$ small, $h$ close to $1/2$, and $\eta\ge0$ small.
The four original-basis matrices are strictly positive by
continuity, and their sum is doubly stochastic since its
mass--contrast form is diagonal with first entry one.
The determinants of the $A$ labels are $(1/4-a/4)/16$, and
the determinants of the $B$ labels are $\eta/16$. When
$a,b,\eta\to0$ and $h\to1/2$ the matrices converge to those
of Theorem~\ref{thm:fixed-hmm}.
First take $\eta=0$. In the forward contrast interval
$[-2/3,2/3]$, the two $A$ maps have separated images of opposite
sign and bounded away from zero. Both $B$ maps are constant,
with distinct outputs $\pm b$ in between. In reverse the $B$
maps are constant with outputs $\pm h$. The reversed $A$ maps
are
\[
G_\sigma(x)=\frac{\sigma a+x/4}{1+\sigma x/4}.
\]
They contract on $[-2/3,2/3]$ with Lipschitz constants below
$1/2$, and their images lie between the two $B$ values.
On the smaller interval $[-2a,2a]$ they have disjoint images
of opposite sign and map the interval into itself.
Let $C$ be the compact set of limits of compositions using only
the two $G$ maps. It has Lebesgue measure zero because their
Lipschitz constants sum to less than one.
The full reverse posterior support consists of $C$ and the
points $G_w(\sigma h)$ with $w$ a finite word of $A$ symbols,
including the empty word. This set is compact because the
distance of $G_w(\sigma h)$ to $C$ tends to zero uniformly as
$|w|\to\infty$. The two $G$ images of $C$ are disjoint.
For all but a null set of $h$ in any sufficiently small interval
about $1/2$, the two $G$ images of the full support are also
disjoint. To prove this, compare finite words with different
first symbols. If their arguments are both $h$, or both $-h$,
their rational functions are different: at argument zero they
lie in opposite images of $[-2a,2a]$. If the arguments have
opposite signs, the functions have opposite strict monotonicity
in $h$. In either case their coincidence set is finite.
A point from a finite word meets the opposite image of $C$ on
a null set of $h$, since the map from $h$ is smooth with
nonzero derivative on the interval. There are countably many
of these tests. This excludes all possible intersections,
while the two $B$ values are separated from each other and
from both $G$ images.
For such an $h$ every pair of different first-symbol sets has
a positive gap, by compactness. The updates in both directions
remain uniform contractions on the displayed larger intervals
for sufficiently small changes in the matrices. The compact
posterior sets and their first-symbol images vary continuously:
if a list of contractions with common constant $\theta<1$
changes by at most $\varepsilon$ uniformly, its coding limits
change by at most $\varepsilon/(1-\theta)$. Therefore the
separation persists when $\eta>0$ is sufficiently small, and
on an open neighborhood of each resulting positive invertible
model. In a general nearby model the stationary law and
reversed matrices also vary continuously by strict positivity.
One-symbol observability holds in both directions since a
forward $B$ probability and a reverse $A$ probability vary
with the contrast. This property, too, persists under small
changes. Theorem~\ref{thm:reversible-power} now gives a common exponent and
the upper bounds with deterministic memory updates.
For an explicit example, take $a=b=1/100$, $h=1/2$ and
$\eta=1/1000$. Starting with $[-2/3,2/3]$, form the unions of
images after each of up to four symbols. Comparing intervals
with different most recent symbols gives a forward gap of
$9/500$ at depth one and a reverse gap of
$5652184/90012033755$ at depth four. These comparisons use only
the rational endpoints, and the unions contain the posterior
sets. Taking $b=0$ with the other parameters fixed gives an
example separated in reverse only. The depth-four reverse gap
is then $2296297/36489726552$, and both forward reset maps fix
$0$, so their posterior images meet there.
To see the limiting exponent, in the forward direction the
conditional probability of $A_\sigma$ is
$(1+\sigma a x)/4$. The single-letter factors
$|\det A_\sigma|^2/\Pr(A_\sigma\mid x)^3$ are bounded between
$u_-$ and $u_+$, both tending to $1/64$. For either $B$ the
factor is at most $c\eta^2$, since the symbol probabilities
stay bounded below. The chain rule factors $W_w$ into these
single-letter quantities along the successive posterior updates.
Hence for each fixed $s>0$,
\[
\log(2u_-^s)\le P(s)
\le\log\bigl(2u_+^s+2(c\eta^2)^s\bigr).
\]
The lower bound counts $A$-only words. Both bounds tend to
$(1-6s)\log 2$, so $s_*\to1/6$ and the common loss exponent
tends to $5$. This proves Theorem~\ref{thm:perturbation}.
\subsubsection{Changing only the reset matrices}\label{app:fixed-reset-proof}
We keep the continuation matrices fixed throughout this subsection.
First we bound the reverse exponent for every reset parameter.
We then prove the common-exponent statement of
Proposition~\ref{prop:reset-only} by checking the block criterion from
Appendix~\ref{app:symmetry-proof}. Finally we evaluate the change in
the exponent as the reset error tends to zero.
\paragraph{A reverse lower bound for every parameter.}
Take $a=b=0$, $h=1/2$ and $0<\eta\le1/32$ in the same matrices.
Put $r=1/4$. A reverse block consisting of $B_+$ followed
by $k$ continuations acts by
\[
x\longmapsto G_w(x)=\frac{r^k(h+\eta x)}{1+(h+\eta x)b_w},
\qquad |b_w|\le1/3,
\]
where $b_w$ is the signed sum from the proof of
Theorem~\ref{thm:reset-rates}. Its conditional probability is
$4^{-(k+1)}(1+(h+\eta x)b_w)\ge (3/4)4^{-(k+1)}$.
Each block sends $[-1,1]$ into $J_k=[-r^k,r^k]$.
The $2^k$ centres $G_w(0)$ have gaps at least
$(12/49)r^{2k}$. Indeed the first differing sign in the sum
$b_w$ dominates the tail and gives a gap of at least
$(4/3)r^k$, and $b\mapsto r^kh/(1+hb)$ has derivative of
magnitude at least $(9/49)r^k$. The displacement on $J_k$ is at
most $(3/2)\eta r^{2k}$ and the derivative there is at least
$\eta r^k/2$. Thus the block images are separated on $J_k$.
Condition on a fixed block to enter $J_k$, then take $n$
blocks from the $2^k$ choices. As in the stopping-set lower bound,
the $2^{kn}$ sets have gaps at least a constant depending on $k,\eta$
times $(\eta r^k/2)^n$. Each has word mass at least a fixed
constant times $((3/4)4^{-(k+1)})^n$. Choose $n$ with
$2L\le 2^{kn}<2^{k+1}L$ and count the sets missed by $L$ centres.
This gives
\[
d_L^\leftarrow\gg_{k,\eta}
L^{-5-k^{-1}\log_2(64/(3\eta^2))}.
\]
Since $k$ is arbitrary, the upper limit of
$-\log d_L^\leftarrow/\log L$ is at most $5$ for every such
$\eta$. This argument controls the reverse exponent with the
continuation matrices held fixed.
\paragraph{Distinguishing the word maps.}
In contrast coordinates, the forward maps are
\[
A_\sigma(x)=(x+\sigma)/4,\qquad
B_\sigma(x)=\frac{\eta x}{1+\sigma x/2}.
\]
In reverse these become $x/(4+\sigma x)$ and
$\sigma/2+\eta x$, respectively. In both directions the four
maps preserve $J=[-2/3,2/3]$ in the contrast coordinate
(equivalently, $[1/6,5/6]$ in probability coordinates).
They have nonzero derivatives and no common fixed point.
The forward reset probabilities and reverse continuation
probabilities vary with $x$. The sums of their Lipschitz
constants on $J$ are at most $1/2+9\eta/2$ forward and
$18/25+2\eta$ in reverse, both less than one.
For rational $\eta$, we first distinguish all finite word maps.
Choose a prime $\ell$ dividing the reduced denominator of $\eta$
and write $v_\ell$ for its valuation on the rationals. On
$J\cap\{v_\ell(x)<0\}$ every forward map keeps the
valuation negative. For an $A$ this follows because adding
$\pm1$ preserves the valuation and dividing by $4$ cannot
increase it. For a $B$ the resulting valuation is $v_\ell(\eta)$
if $\ell$ is odd, and $v_2(\eta)+1<0$ if $\ell=2$ is the
only prime in the denominator. Use an odd prime whenever one
is available. On the real interval $J$, the two $A$ images
are disjoint and both avoid the $B$ images. The two $B$
signs can be distinguished by
\[
\frac{B_\sigma(x)}{2\eta}
=\frac{1}{\sigma+2/x}
\equiv\sigma
\begin{cases}
\pmod{\ell},& \ell\text{ odd},\\
\pmod{4},& \ell=2 .
\end{cases}
\]
In the second case $v_2(2/x)\ge2$. Start at the rational point
$1/\ell$ in $J$. The output of any nonempty word determines its
outermost symbol. Inverting that map and repeating distinguishes
any two different words of the same length. Transposing the
word matrices, which also reverses their order, gives the same
distinctness in reverse.
For each fixed rational parameter, clear denominators in the four
generators using integer scalar multiples. Word matrices of length
$n$ have entries of size at most $C^n$ for a fixed $C>1$.
Two distinct fractional linear maps differ at one of any three
fixed distinct rational points of $J$, since the numerator of
their difference is a nonzero polynomial of degree at most two.
The rational values at such a point differ by at least $c^n$
for some $c>0$. This gives exponential separation of the maps
in supremum norm, at every length. It also gives separation of
the maps obtained by grouping a fixed number of letters into
one symbol. The grouped families still have no common fixed
point, by using the repetitions of individual letters.
For real parameters, consider blocks of a fixed length $m\ge 2$
that contain both types of letter. We show that no two infinite
codes built from these blocks give the same analytic function
of $\eta$. The forward maps are holomorphic and uniformly
contracting on $|x|\le 3/4$ for $|\eta|<1/10$. Their limits
along an infinite code are therefore analytic on $|\eta|<1/10$.
An initial run of $k$ continuations with signs
$\sigma_1,\ldots,\sigma_k$, listed from outside to inside, sends
the following value $x_B$ to $x_A=(N+x_B)/4^k$, where
$N=\sum_{i=1}^k \sigma_i4^{k-i}$ is odd. A run of $j$
resets applied to a continuation value $x_A$ gives
\begin{equation}\label{eq:reset-germ}
\frac{2\eta^j}{x_B}
=\frac{2}{x_A}+\sum_{i=1}^j \sigma_i\eta^{j-i}.
\end{equation}
These formulas show that $x_B$ has coefficients in
$2\eta\mathbb Z_2[[\eta]]$ and $1/x_A$ has coefficients in
$4\mathbb Z_2[[\eta]]$, where $\mathbb Z_2$ is the ring of
$2$-adic integers. Indeed, start with finite codes cut after a
continuation run and take the innermost input to be $0$.
Proceeding outwards, $N+x_B$ has odd constant term, as does
the right side of \eqref{eq:reset-germ}. This proves both
coefficient bounds for the finite codes. Each outer reset
increases the order of agreement of two input series by one,
since $B_\sigma(x)-B_\sigma(y)$ is $\eta(x-y)$ divided by
$(1+\sigma x/2)(1+\sigma y/2)$. Every fixed Taylor coefficient
therefore stabilizes as the cutoff increases, since the code
has infinitely many resets.
The constant term is nonzero precisely for codes starting with
a continuation. For such a code, the reduced denominator $4^k$
and numerator $N$ identify the entire first run: the signs are
unique by the largest differing power of $4$. A code starting
with resets has order of vanishing $j$ by \eqref{eq:reset-germ}.
The coefficients of $2\eta^j/x_B$ modulo $8$ recover all $j$
signs because $2/x_A$ is divisible by $8$ coefficientwise.
Now remove the identified run by injectivity at positive $\eta$.
Repeating shows that the analytic limit identifies the whole code.
Apply \cite[Lemma~2.7 and Theorem~2.10]{SolomyakTakahashi} on
$V=(-3/4,3/4)$ and a compact parameter interval in $(0,1/32]$.
The denominators are at least $5/8$ on $V$. The maps preserve $V$
and their derivatives are uniformly bounded in absolute value by
$\max(1/4,2/25)<1$. The coding argument proves the nondegeneracy
of Definition~2.9 there. Outside a set of Hausdorff dimension zero,
the theorem gives exponential separation at $x=0$ for all sufficiently
long block words with different first blocks. The finitely many shorter
differing suffix pairs have positive supremum distances, since an exact
coincidence would contradict the long-word bound after extension.
A common prefix reduces these distances by at most an exponential
factor, by its minimum derivative. This gives the required all-pairs
separation in supremum norm.
The transfer above gives the same separation in reverse,
since reversing a word preserves the block alphabet. In both directions some block maps have
disjoint images, by choosing the outermost signs of continuations
in forward time and of resets in reverse time. In particular
there is no common fixed point. A countable union over lengths
and compact parameter intervals gives the exceptional set in
the proposition. The restriction to blocks containing both
types of letter follows the use of restricted alphabets in
Solomyak \cite[Section~2]{SolomyakNonlinear}.
We now use this separation of maps to bound the loss from below.
Let $s=s_\eta$ be the common zero of $P$. For a fixed block length
$m\ge2$, let $\mathcal W_m$ consist of all blocks in the rational
case and of the blocks containing both types of letter otherwise.
In either case $Z'_m=\sum_{w\in\mathcal W_m} W_w^s\asymp1$
as $m\to\infty$. For the restricted case the upper bound follows
from $Z_m(s)\asymp1$. To get the lower bound, append a fixed
two-letter block containing one letter of each type to every
word of length $m-2$ and use $W_{uv}\asymp W_uW_v$.
These blocks have total Lipschitz constant at most one, since the
sum of the individual Lipschitz constants is less than one in
each direction. They have exponentially separated word maps
in both directions. The block criterion from the proof of
Theorem~\ref{thm:reversible-power} now applies in each direction.
\paragraph{The change in the common exponent.}
For a continuous function $f$ on $J$, let
$Mf(x)=(f(A_+(x))+f(A_-(x)))/2$, and let $\nu_0$ be the
stationary law of these two affine maps used with equal
probabilities. For $s$ close to $1/6$, set
$\lambda_0=2\cdot64^{-s}$, $\delta=(\eta^2/4)^s$, and
\[
g_s(x)=\sum_{\sigma=\pm1}(1+\sigma x/2)^{-3s},
\qquad Qf(x)=\sum_{\sigma=\pm1}
(1+\sigma x/2)^{-3s} f(B_\sigma(x)).
\]
The operator $\mathcal T=\lambda_0M+\delta Q$ satisfies
$Z_n(s)=(\mathcal T^n1)(0)$ in the forward direction. This
follows by the chain rule for word probabilities: the
single-letter factors of $W$ are $1/64$ for an $A$ and
$(\eta^2/4)(1+\sigma x/2)^{-3}$ for a $B$.
At $s=1/6$ the contribution from the two continuations is one,
and $\mathcal T1$ exceeds one uniformly on $J$. By iteration
$P(1/6)>0$, so $s_\eta>1/6$ for every $\eta$ in the interval.
For a Lipschitz function, $M^k f$ tends uniformly to $\nu_0(f)$
with error $O(4^{-k})$ times its Lipschitz constant, by coupling
two initial points under the same affine maps. Therefore
\[
u=\lambda_0^{-1}\sum_{k\ge0}M^k(g_s-\nu_0(g_s))
\]
is uniformly bounded for $s$ near $1/6$. With $f=1+\delta u$
we have $\mathcal T f=(\lambda_0+\delta\nu_0(g_s))f+O(\delta^2)$
uniformly. Indeed the terms linear in $\delta$ cancel by the
defining series for $u$. For small $\eta$, $f$ is bounded
above and away from zero. Positivity of $\mathcal T$ lets
us iterate the resulting upper and lower inequalities for
$\mathcal T f/f$. Thus
\[
e^{P(s)}=\lambda_0+\delta\nu_0(g_s)+O(\delta^2).
\]
It follows that $s_\eta\to1/6$. At the root the same estimate gives
$s_\eta-1/6=O(\eta^{1/3})$, so
$(\eta^2/4)^{s_\eta}\sim 4^{-1/6}\eta^{1/3}$.
Expanding $\lambda_0$ and $1/s_\eta-1$ at $s=1/6$ proves the
claimed coefficient formula. The measure $\nu_0$ is the law
of $\sum_{j\ge1}\varepsilon_j4^{-j}$ with independent fair signs.
\subsection{Prediction as the reset error decreases and the memory grows}\label{app:post-reset}
\subsubsection{When the original rates persist}\label{app:budget-proof}
The estimates in this subsection are uniform in the reset error and
the memory budget. For Theorem~\ref{thm:reset-window}, one reset and
the following run give the first lower bounds. A memory that stores
a shortened account of earlier runs gives the upper bounds. Two
successive runs give the additional reverse lower bound.
In either time direction, let $D_L$ be the least expected squared
error in approximating the posterior hidden-sign mean $x$ by $L$
centres. Uniformly in $\eta$, $d_L\asymp D_L$. Indeed, the
posteriors lie in $[-2/3,2/3]$, so data processing bounds the
future log loss above by a constant times squared error. The
probability of $B_+$ forward, or $A_+$ backward, is affine in $x$
with a fixed nonzero slope, giving the lower bound by Pinsker's
inequality. Conditional means give the optimal forecasts on cells.
Group histories by their last reset $B_\sigma$ and the following
$k$ continuations $w$. Such a reset exists almost surely since
the conditional probability of a continuation is $1/2$. Put
$r=1/4$ and $h=1/2$. If $x$ is the posterior just before this
block, the final posterior $H_{\sigma,w}(x)$ is, respectively,
\[
b_w+r^k\frac{\eta x}{1+\sigma hx},\qquad
r^k\frac{\sigma h+\eta x}{1+(\sigma h+\eta x)b_w}.
\]
In each formula the $b_w$ run over the signed base-four sums
$\sum_{j=1}^k\epsilon_j4^{-j}$ (the word order is reversed between
the formulas). They lie in $[-1/3,1/3]$ and distinct values are
at least a constant times $r^k$ apart. Conditional on $x$, the
block has probability $4^{-(k+1)}$ times $1+\sigma hx$ forward,
or $1+(\sigma h+\eta x)b_w$ backward, by multiplying its matrices.
Both factors are bounded above and below. The stationary mean of
$x$ before the block is zero. Hence its marginal probability is
exactly the same as at $\eta=0$ in either direction. This is used
only for a suffix beginning with a reset. In both formulas
$|H'_{\sigma,w}|\ll\eta r^k$, and $H_{\sigma,w}(0)$ is the
unperturbed value.
For a lower bound, fix the initial $x$, the sign $+$ and
$2L\le2^k<4L$. As $w$ varies the outputs are separated by
$\gg r^k$ forward and $\gg r^{2k}$ backward. The second estimate
follows by differentiating in $b_w$, since $h+\eta x$ is bounded
away from zero. At least half the outputs miss the $L$ centres
by a fixed fraction of this spacing. Multiplying the squared
spacing by their total probability $\gg 2^{-k}$ and integrating
over stationary $x$ gives $D_L\gg L^{-5}$ and $D_L\gg L^{-9}$.
\emph{A memory that updates after each symbol.}
Write $b=5$
forward and $b=9$ backward. First consider an exact reset. At
level $n$ the forward memory keeps the last $\min(k,n)$ letters
since the reset and evaluates their base-four sum. The error is at most $Cr^n$
on the event $k\ge n$, of probability $2^{-n}$, and is zero
otherwise. The reverse memory keeps the sign, the age $k<2n$ and
the \emph{first} $j=\min(k,2n-k)$ letters since the reset. At
$k\ge2n$ it uses one state with decoded value zero. In the formula
for $H_{\sigma,w}(0)$, the first $j$ chronological letters determine
$b_w$ to within $Cr^j$. Setting the missing digits to zero gives
zero error for $k\le n$ and error at most $Cr^{k+j}=Cr^{2n}$
for $n0$. Define the new memory $S_L$ by increasing
budget, using one state with estimate zero below a fixed cutoff. Once
$k\ge K_L$, retain just $U_L$. For $k0$. Nonnegative lengths
exist for $L\ge C_0/\sqrt\eta$ with $C_0$ absolute. After the
first block the posterior lies within $O(r^{k_1})$ of zero.
For each second word $v$, the final points therefore lie within
$O(\eta r^{k_1+k_2})$ of $H_{+,v}(0)$. These centres have
gaps $\gg r^{2k_2}$, and our choice of $d$ makes the radii less
than one quarter of the gaps. Within each such group the second
map has derivative $\gg\eta r^{k_2}$, while the first block's
outputs have gaps $\gg r^{2k_1}$ for fixed initial $x$. Thus
all $2^n$ final points have gaps $\gg\eta r^{k_2+2k_1}$.
Each word pair has conditional probability $\gg4^{-n}$.
Counting the missed points as before gives
\[
D_L\gg 2^{-n}\eta^2 r^{2(k_2+2k_1)}
=\eta^2 2^{-7n}4^d\asymp\eta L^{-7}.
\]
For smaller $L$, the earlier $L^{-9}$ lower bound absorbs this
term. This proves Theorem~\ref{thm:reset-window}.
\subsubsection{The reverse rate beyond the threshold}\label{app:beyond-proof}
We next prove Theorem~\ref{thm:post-reset}. The upper bound allocates
memory among recent runs, keeping only the digits that can affect the
forecast at the required precision. For the lower bound, we count
separated forecasts after two runs. Write $r=1/4$, $h=1/2$,
$H=\log_4(1/\eta)$ and $N=\log_2 L$. In reverse, a reset of sign
$\sigma$ followed by $k$ continuations with signed sum $b_w$ sends
the earlier mean $x$ to
\[
r^k\frac{\sigma h+\eta x}{1+(\sigma h+\eta x)b_w}.
\]
On the posterior interval the derivatives with respect to $x$ and
$b_w$ are $O(\eta r^k)$ and $O(r^k)$, respectively. The same
bounds apply if only an initial segment of the digits of $b_w$ is used.
As in Theorem~\ref{thm:reset-window}, squared error in the mean
and whole-future prediction loss have the same order.
\paragraph{How many digits to keep.}
Take an integer $H\le n\le4H$ and put $F=(19n+8H)/3$. We construct
a memory with at most $2^n$ times a polynomial in $n$ states and
squared error at most $2^{-F}$ times a polynomial in $n$.
Use the seven most recent resets, numbered from newest to oldest.
Record their signs and the number $k_i$ of continuations following
each, with every count stopped at $K=\lceil F\rceil+1$. Define
\[
S_i=\sum_{l=1}^i k_l,\qquad
W=\sum_{l=1}^7\min(k_l,\lfloor4H\rfloor),\qquad v=(F-W)/4 .
\]
For word $i$ keep its first $q_i$ chronological digits, where
\[
q_i=\min\{k_i,\max(0,\lceil v-S_i-(i-1)H\rceil)\}.
\]
Starting another continuation can increase the length needed for
the newest word only if it was kept in full, in which case the new
digit is available. The other lengths can only decrease. At a reset,
discard the oldest word. This can increase $v$ by at most $H$, and
each surviving word moves one place farther from the present, adding
$H$ to its subtraction in the formula for $q_i$. Thus every update
can be made from the current state and the new symbol. The seven
resets exist almost surely in a stationary past. For a finite
input stream the same rule applies after its seventh reset.
To count states, put $s_i=\sum_{l\le i}q_l$ and $s_0=0$.
If $s_7\ge n$, then $W\ge n$. Indeed the ages sum to at least
$s_7$, and shortening even one contributes $\lfloor4H\rfloor\ge n$.
Hence $v\le v_0=(4n+2H)/3$. Whenever $q_i>0$, using
$S_i\ge s_i$ gives
\[
2s_i\le s_{i-1}+v_0-(i-1)H+1.
\]
Otherwise $s_i=s_{i-1}$. Now $s_1\le v_0/2+1\le n+1$ and
$s_2\le n+2$ since $3v_0/4-H/2=n$. For $i\ge3$ we have
$v_0-2H\le n$. It follows that $s_7\le n+O(1)$ in every case.
There are at most $2^7(K+1)^7$ choices of signs and ages.
If any age reaches $K$, use zero as the posterior mean. This costs $O(2^{-K})$
in expectation, since each symbol independently has reset type with
probability $1/2$. Otherwise apply the seven block maps in time order,
starting from zero and using the stored digits. The initial error
contributes at most $C\eta^7 r^{S_7}\le C r^v$, since $F\le28H$.
A word with $q_i=k_i$ adds no error. Any other word contributes at
most $C\eta^{i-1} r^{S_i+q_i}\le C r^v$ by the derivative bounds.
Each unsaturated age pattern has probability at most $2^{-W}$, so
its contribution to squared error is $O(2^{-W}r^{2v})=O(2^{-F})$.
Summation gives the claimed polynomial factor. Its logarithm is only of logarithmic size in the number of retained
digits, so it disappears from the exponent limit.
For fixed $1/20$ the set $C_j+f(C_j)$ contains at least
$c_\epsilon 4^{(1-\epsilon)j}$ points at pairwise distances
$\ge c_\epsilon r^j$, uniformly in the two parameters.
To see this, consider first the linear sums $C_\infty+sC_\infty$.
They are generated by the four maps $z\mapsto(z+a+sb)/4$,
$a,b\in\{-1,1\}$. No two different infinite addresses give values
identical as functions of $s$, since signed base-four digits have
unique addresses in each coordinate. Hochman's parameter theorem
\cite[Theorems~1.7--1.8]{HochmanOverlaps} gives Hausdorff dimension
one for the sum outside a set of slopes of dimension zero on each
compact interval. On the hull of $C_\infty$,
$7/6\le x+\lambda\le17/6$, so $|f''|$ is bounded above and away
from zero uniformly in the parameter rectangle. Thus $f'$ is
bi-Lipschitz there and $f'(C_\infty)$ has dimension $1/2$.
Choose $x_0\in C_\infty$ with a nonexceptional slope $s=f'(x_0)$.
We now pass from that linear sum to the nonlinear finite sums.
For any sufficiently large fixed $D$, choose a length $m$ and at
least $4^{(1-\epsilon/2)m}$ digit pairs in $C_m^2$ whose linear sums
are $2Dr^m$ apart. Indeed dimension one supplies that many separated
points at scale $4Dr^m$ for large $m$, and truncation moves each
by $O(r^m)$. Fix an initial digit string for $x$ near $x_0$ on
whose entire interval $|f'-s|\le r^m/2$, and fix an equally long
initial string for $y$. After these strings concatenate any of the
chosen $m$-digit pairs repeatedly, filling the last incomplete
block with fixed digits. At the first differing block, rescale by
the common prefix length. The linear sums differ by at least $2Dr^m$
before tails are added. Later digits change the difference by
$O(r^m)$, and replacing $s(x-x')$ by $f(x)-f(x')$ introduces another
$O(r^m)$ in the same coordinates by the mean value theorem.
Choosing $D$ larger than these constants proves separation at
scale $r^j$. The fixed initial and final digits cost only a constant
factor in the count. The strict margins in the gap and derivative
bounds persist near $(\kappa,\lambda)$ by continuity. A finite cover
of the compact parameter rectangle gives common constants and a
common lower threshold for $j$. Reducing $c_\epsilon$ handles
the remaining finite lengths. This proves the finite-sum bound.
\paragraph{The lower bound.}
Fix the posterior $x$ before two consecutive positive resets and
their runs of $j$ and $k=e+2j$ continuations, in that order, where
$e=\lceil H\rceil$. Write $u=h+\eta x$ and split the signed sum
of the second word into its first $e+j$ digits $B$ and its last
$j$ digits $y$, so $b_2=B+r^{e+j}y$. If $z\in C_j$ is the first
word's sum, direct substitution gives the final posterior as
\[
\frac{r^k}{B+1/h+r^{e+j}(y+f(z))},\qquad
\kappa=\eta 4^e,\quad \lambda=1/u+\eta r^j/h .
\]
These parameters lie in the rectangle above for every allowed $x$.
The possible $B$ are $\gg r^{e+j}$ apart. Retain a fixed fraction
of them spaced far enough that the different sets of denominators
have gaps $\gg r^{e+j}$, using the uniform bound on $|y+f(z)|$.
Within each retained set use the separated digit pairs just proved.
The denominators are bounded above and away from zero, so inversion
preserves the order of these gaps. Thus there
are at least $c_\epsilon 2^{e+(3-2\epsilon)j}$ final posteriors
with gaps $\gg_\epsilon r^{2k}$. Each selected word pair has
conditional probability $\gg4^{-(e+3j)}$.
Take $j=\lceil(N-e+C_\epsilon)/(3-2\epsilon)\rceil$ with
$0<\epsilon<1/2$ and $C_\epsilon$ large enough to leave at least
$2L$ posteriors. At least $L$ miss every one of $L$ forecast
centres by a fixed fraction of the gap, for each initial $x$.
Integration gives
\[
d_L^\leftarrow\gg_\epsilon L\,4^{-(e+3j)}r^{4k}
=2^{N-10e-22j}.
\]
Let $\eta\downarrow0$ at fixed $\epsilon$, then $\epsilon\downarrow0$.
Since $e=H+O(1)$ and $N=2AH+o(1)$, this bounds
$\limsup\log(d_L^\leftarrow)/\log\eta$ by $(19A+4)/3$.
The upper bound attained by the updating memory gives the opposite
inequality for the lower limit. Since this memory is also a summary
of the entire past, the two bounds prove the assertion for both kinds
of memory.
\section{Next-symbol forecasts}\label{app:chain-geometry}\label{sec:processes}
For a stationary process $(X_t)_{t\in\mathbb Z}$ on a finite alphabet
$\mathcal A$, let $\mu^\to$ be the law of the next-symbol forecast
\[
Y=\Pr(X_0=\cdot\mid X_{-1},X_{-2},\ldots)
\]
on $\Delta_{\mathcal A}$. Write $R_L^\to$ for the infimum of
$\E\KL(Y\Vert\Pr(X_0=\cdot\mid S))$ over past summaries $S$ with
at most $L$ values. Conditioning on the future defines
$\mu^\leftarrow$ and $R_L^\leftarrow$. Distances are Euclidean.
\begin{theorem}\label{thm:processes}
\begin{enumerate}
\item\hypertarget{theorem.\thetheorem}{} $R^{\to}_L=\inf_{c_1,\ldots,c_L\in\Delta_{\mathcal A}}
\int\min_k\KL(y\Vert c_k)\,d\mu^{\to}(y)$.
\item Suppose that for some $A,d>0$ and $\rho_0\ge0$,
$\mu^{\to}(B(y,\rho))\le A\rho^d$ for every $y$ in the support and
$\rho_0\le\rho\le1$. Then $R^{\to}_L\ge\frac1{16}(2AL)^{-2/d}$ for
$1/(2A)\le L\le\rho_0^{-d}/(2A)$.
\item Suppose every coordinate of $Y$ is at least $\delta>0$ almost
surely, and for some $C,D>0$ and $\rho_0\ge0$ the support of
$\mu^{\to}$ is covered by at most $C\rho^{-D}$ balls of radius $\rho$
for $\rho_0\le\rho\le1$. Then $R^{\to}_L\le4\delta^{-1}(C/L)^{2/D}$ for
$C\le L\le C\rho_0^{-D}$.
\end{enumerate}
The same statements hold for forecasts of the next $\ell$ symbols,
with $\mathcal A^\ell$ in place of $\mathcal A$.
\end{theorem}
\begin{proof}
For fixed centres, assigning $Y$ to its cheapest forecast minimizes the
loss. Equation~\eqref{eq:prediction-decomposition} shows that replacing
each centre by its cell mean can only improve the forecast.
This proves part~1.
For part~2, take $\rho=\tfrac12(2AL)^{-1/d}$. Each centre's
$\rho$-ball meeting the support lies in a support-centred
$2\rho$-ball of mass at most $A(2\rho)^d=1/(2L)$. At least half
the mass is therefore farther than $\rho$ from every centre.
Pinsker's inequality gives $R_L^\to\ge\rho^2/4=(2AL)^{-2/d}/16$.
For part~3, use the covering balls at $\rho=(C/L)^{1/D}$.
Their cell means have coordinates at least $\delta$ and lie within
$2\rho$ of every point of the cell. Hence
$\KL(y\Vert c)\le\sum_x(y_x-c_x)^2/c_x\le4\rho^2/\delta$.
For an $\ell$-symbol block use the alphabet $\mathcal A^\ell$.
\end{proof}
A covering bound controls the required number of states; a matching
mass bound gives the same lower exponent. The next example explains
the positive lower bound required for forecast probabilities.
\begin{remark}[Near the boundary]\label{rem:boundary}
The positive lower bound on forecast probabilities in
Theorem~\ref{thm:processes} matters for a uniform upper estimate.
Consider equally weighted Bernoulli forecasts $k/N^2$ for
$0\le k\le N$. Their covering number at scale $\rho$ is
$O(\rho^{-1/2})$ uniformly in $N$, by taking the smaller of
$N+1$ and $O(1+1/(N\rho))$. The curvature of negative
Bernoulli entropy on $(0,1/N]$ is at least $N$. For a cell
of $m$ grid points, the sum of squared distances from the
cell mean is at least $(m-1)/(2N^4)$ by the pairwise variance
identity. Summing over the cells gives a loss of at least
$(N+1-L)/(4(N+1)N^3)$. With $L=\lfloor N/2\rfloor$, this gives
$L^4R_L\gg N$, despite the uniform covering bound with $D=1/2$.
\end{remark}
\begin{thebibliography}{99}
\bibitem{CarlylePaz}
J. W. Carlyle and A. Paz, Realizations by stochastic finite automata,
\emph{J. Comput. Syst. Sci.} \textbf{5} (1971), 26--40.
\bibitem{HochmanOverlaps}
M. Hochman, On self-similar sets with overlaps and inverse theorems
for entropy, \emph{Ann. of Math.} (2) \textbf{180} (2014), 773--822.
\href{https://doi.org/10.4007/annals.2014.180.2.7}{doi:10.4007/annals.2014.180.2.7}.
\bibitem{HochmanSolomyak}
M. Hochman and B. Solomyak, On the dimension of Furstenberg
measure for $\mathrm{SL}_2(\mathbb R)$ random matrix products,
\emph{Invent. Math.} \textbf{210} (2017), 815--875.
\bibitem{FengHu}
D.-J. Feng and H. Hu, Dimension theory of iterated function systems,
\emph{Comm. Pure Appl. Math.} \textbf{62} (2009), 1435--1500.
\href{https://doi.org/10.1002/cpa.20276}{doi:10.1002/cpa.20276}.
\bibitem{HochmanSolomyakClarification}
M. Hochman and B. Solomyak, Clarification to the dimension theorem
for $\mathrm{SL}_2(\mathbb R)$ random matrix products,
\href{https://u.math.biu.ac.il/~solomyb/RESEARCH/Furst_clarif.pdf}{authors' note} (2018).
\bibitem{HsuKakadeZhang}
D. Hsu, S. M. Kakade and T. Zhang, A spectral algorithm for learning
hidden Markov models, \emph{J. Comput. Syst. Sci.} \textbf{78} (2012),
1460--1480. \href{https://arxiv.org/abs/0811.4413}{arXiv:0811.4413}.
\bibitem{BerstelReutenauer}
J. Berstel and C. Reutenauer, Zeta functions of formal languages,
\emph{Trans. Amer. Math. Soc.} \textbf{321} (1990), 533--546.
\bibitem{BowenLanford}
R. Bowen and O. E. Lanford III, Zeta functions of restrictions of the
shift transformation, in \emph{Global Analysis}, Proc. Sympos. Pure
Math. \textbf{14}, Amer. Math. Soc., 1970, 43--49.
\bibitem{ChienWaldron}
T. Y. Chien and S. Waldron, A characterization of projective unitary
equivalence of finite frames and applications,
\emph{SIAM J. Discrete Math.} \textbf{30} (2016), 976--994.
\bibitem{CrutchfieldEllisonMahoney}
J. P. Crutchfield, C. J. Ellison and J. R. Mahoney, Time's barbed arrow:
irreversibility, crypticity, and stored information,
\emph{Phys. Rev. Lett.} \textbf{103} (2009), 094101.
\bibitem{EllisonEtAl}
C. J. Ellison, J. R. Mahoney, R. G. James, J. P. Crutchfield and
J. Reichardt, Information symmetries in irreversible processes,
\emph{Chaos} \textbf{21} (2011), 037107.
\bibitem{FengMeng}
P. Feng and C. Meng, Recursive memory for prediction and generation,
\href{https://arxiv.org/abs/2611.13760}{arXiv:2611.13760} (2026).
\bibitem{GassiatCleynenRobin}
E. Gassiat, A. Cleynen and S. Robin, Inference in finite state space
non parametric hidden Markov models and applications,
\emph{Stat. Comput.} \textbf{26} (2016), 61--71.
\bibitem{GrafLuschgy}
S. Graf and H. Luschgy, \emph{Foundations of Quantization for
Probability Distributions}, Lecture Notes in Math. \textbf{1730},
Springer, 2000.
\bibitem{GrafLuschgyDimension}
S. Graf and H. Luschgy, The quantization dimension of
self-similar probabilities, \emph{Math. Nachr.} \textbf{241}
(2002), 103--109.
\bibitem{KessebohmerNiemannZhu}
M. Kesseb\"ohmer, A. Niemann and S. Zhu, Quantization dimensions of
compactly supported probability measures via R\'enyi dimensions,
\emph{Trans. Amer. Math. Soc.} \textbf{376} (2023), 4661--4678.
\href{https://doi.org/10.1090/tran/8863}{doi:10.1090/tran/8863}.
\bibitem{Kelly}
F. P. Kelly, \emph{Reversibility and Stochastic Networks}, Wiley, 1979.
\bibitem{LindsayMauldin}
L. J. Lindsay and R. D. Mauldin, Quantization dimension for
conformal iterated function systems,
\emph{Nonlinearity} \textbf{15} (2002), 189--199.
\bibitem{Loewy}
R. Loewy, Principal minors and diagonal similarity of matrices,
\emph{Linear Algebra Appl.} \textbf{78} (1986), 23--64.
\bibitem{MarzenCrutchfield}
S. E. Marzen and J. P. Crutchfield, Predictive rate-distortion for
infinite-order Markov processes, \emph{J. Stat. Phys.} \textbf{163}
(2016), 1312--1338.
\bibitem{MarzenCrutchfieldDimensions}
S. E. Marzen and J. P. Crutchfield, Nearly maximally predictive
features and their dimensions, \emph{Phys. Rev. E} \textbf{95} (2017),
051301(R).
\bibitem{MattilaGeometry}
P. Mattila, \emph{Geometry of Sets and Measures in Euclidean Spaces},
Cambridge Studies in Advanced Mathematics \textbf{44},
Cambridge University Press, 1995.
\bibitem{PapadopoulosWengerHongler}
V. Papadopoulos, J. Wenger and C. Hongler, Arrows of time for large
language models, \href{https://arxiv.org/abs/2401.17505}{arXiv:2401.17505}.
\bibitem{RapaportAnalytic}
A. Rapaport, Dimension of self-conformal measures associated to
an exponentially separated analytic IFS on $\mathbb R$, preprint,
\href{https://arxiv.org/abs/2412.16753v2}{arXiv:2412.16753v2}.
\bibitem{RoychowdhuryQuantization}
M. K. Roychowdhury, Quantization dimension function and ergodic
measure with bounded distortion, \emph{Bull. Polish Acad. Sci. Math.}
\textbf{57} (2009), 251--262.
\href{https://www.impan.pl/shop/en/publication/transaction/download/product/85665}{Publisher's PDF}.
\bibitem{Sibirskii}
K. S. Sibirskii, Algebraic invariants of a system of matrices,
\emph{Siberian Math. J.} \textbf{9} (1968), 115--124.
\bibitem{SolomyakNonlinear}
B. Solomyak, On nonlinear iterated function systems with overlaps,
\emph{J. Fractal Geom.} \textbf{11} (2024), 373--387.
\bibitem{SolomyakTakahashi}
B. Solomyak and Y. Takahashi, Diophantine property of matrices
and attractors of projective iterated function systems in
$\mathbb{RP}^1$, \emph{Int. Math. Res. Not. IMRN} (2021),
12639--12669.
\bibitem{YangEtAl}
C. Yang, A. J. P. Garner, F. Liu, N. Tischler, J. Thompson,
M.-H. Yung, M. Gu and O. Dahlsten, Provably superior accuracy in
quantum stochastic modeling, \emph{Phys. Rev. A} \textbf{108}
(2023), 022411.
\end{thebibliography}
\end{document}