Eikonal-Memory-Laws / eikonal_memory_laws.tex
encryptidai's picture
Publish the eikonal memory laws preprint
807632e verified
Raw History Blame Contribute Delete
49.5 kB
\documentclass[11pt]{article}
\usepackage[margin=1in]{geometry}
\usepackage{amsmath,amssymb,amsthm}
\usepackage{booktabs,graphicx,xcolor}
\usepackage[numbers,sort&compress]{natbib}
\usepackage[colorlinks=true,linkcolor=blue!50!black,citecolor=blue!50!black,urlcolor=blue!50!black]{hyperref}
\usepackage{enumitem}
\setlist{nosep,leftmargin=*}
\newtheorem{theorem}{Theorem}
\newtheorem{lemma}{Lemma}
\newtheorem{proposition}{Proposition}
\newtheorem{corollary}{Corollary}
\theoremstyle{remark}
\newtheorem{remark}{Remark}
\newcommand{\own}{\mathrm{own}}
\newcommand{\Bo}{B}
\newcommand{\Bc}{\bar B}
\title{Exact Retention and Ownership Laws\\ for Recency-Weighted Eikonal Memory}
\author{G.\ Disney-Leugers\\ \small Encryptid Systems}
\date{November 2026}
\begin{document}
\maketitle
\begin{abstract}
An eikonal memory stores each write as a source on a fixed graph of $N$ vertices and keeps, at every vertex, the payload of whichever source reaches it first. A recency head start $\lambda$ lets newer sources take territory from older ones, so $\lambda$ sets what a fixed-size state forgets. We give exact laws for this forgetting. For independent writes, the probability that the item of age $a$ still owns its own source vertex is a product over ball masses, and the probability that it owns an \emph{arbitrary} vertex is a product over balls that grow (later writes) and shrink (earlier writes). Expected basin areas and recall under any query-noise law follow. On graphs whose balls grow as $c\,r^D$, both laws reduce to one dimensionless variable $\Lambda=c^{1/D}\lambda N$. The retention half-life obeys $W/N+\Lambda^D(W/N)^{D+1}/(D+1)=\ln2$, with an exact hash-table plateau below a discreteness threshold. Owning a vertex at distance $\rho$ is, in the continuum, as likely as surviving to age $a+\rho/\lambda$. This gives a universal basin-area law and a dimension-only ratio $\tfrac{D}{D+1}\pi/\sin\tfrac{\pi}{D+1}$ between the newest basin and the mean live basin. For moving metrics we prove exact laws for global metric schedules and for token-local metrics, a two-sided bound for any metric within a factor $\kappa$ of a base metric, a corresponding bound for bounded per-write key offsets, and a one-sided result for the incremental writer. On tori of dimension 1--3, half-lives collapse onto one curve of $\Lambda$ per dimension (spread $\le3.3\%$); a simulation of the incremental multi-radix-heap writer matched the survival criterion on all 36,648 items tested; the ownership formula matched 3,000-run simulations ($\chi^2=59.7$ on 48 degrees of freedom); and, with nothing fitted, the laws predicted every recall-by-age bin of an independent prototype, clean and noisy, within 0.048. The laws are implemented in the open-source \texttt{gptrun} package.
\end{abstract}
\section{Introduction}
A model with no context window keeps a fixed-size state and must decide what that state forgets. Holonomy--eikonal state (HES)~\cite{hes} handles recall with a min-plus field on a latent graph $G$. Write $j$ places a source $s_j$ with key $b_j=-\lambda j$, and the stored field is
\begin{equation}
T(v)=\min_j\big(b_j+d(s_j,v)\big),
\end{equation}
an additively weighted geodesic Voronoi, or Johnson--Mehl, tessellation of $G$~\cite{johnsonmehl}. A vertex returns the payload of the write that owns it. The head start $\lambda$ makes newer writes arrive sooner.
The HES prototype showed that $\lambda$ acts as a dial between keeping the oldest items and keeping only the newest, and that the dial is easy to mis-set. With edge weights of 8--12 and 1,024 writes, every $\lambda\ge2$ let the newest item take over the whole grid. With weights rescaled by 100, $\lambda=1$ behaved like a hash table and $\lambda=4$ kept roughly the last 350 writes. This paper turns those observations into laws. It answers four questions: how long an item survives as a function of $\lambda$; which combination of $\lambda$, graph size and metric matters; how far an item's territory reaches, which decides recall for noisy queries; and what survives when the metric itself changes from write to write.
\paragraph{Contributions.}
\begin{enumerate}
\item \emph{Exact survival} (Theorem~\ref{thm:surv}): for i.i.d.\ sources with any law $p$, survival at age $a$ is a product of ball masses, with an exact hash-table plateau (Corollary~\ref{cor:plateau}).
\item \emph{A universal retention law} in the single variable $\Lambda=c^{1/D}\lambda N$, its regimes, a closed-form design rule for $\lambda$, and a capacity formula (Section~\ref{sec:univ}).
\item \emph{Exact ownership at every vertex} (Theorem~\ref{thm:own}), with basin areas and noisy recall under any query-noise kernel (Corollary~\ref{cor:noisy}).
\item \emph{A continuum shift identity} (Proposition~\ref{prop:shift}), giving a universal basin-area law, the newest-to-mean basin ratio \eqref{eq:ratio}, and a head-start rule for noisy queries.
\item \emph{Moving metrics}: exact laws for global metric schedules (Theorem~\ref{thm:sched}) and token-local metrics (Theorem~\ref{thm:local}); a band on the effective head start under re-anchoring (Proposition~\ref{prop:anchor}); two-sided bounds for any $\kappa$-bi-Lipschitz metric (Theorem~\ref{thm:sandwich}) and for bounded key offsets (Proposition~\ref{prop:salience}); and a one-sided result for the incremental writer (Proposition~\ref{prop:pruned}).
\item \emph{Verification} on tori of dimension 1--3, against a simulation of the incremental writer, and by zero-parameter prediction of an independent prototype's recall tables (Section~\ref{sec:exp}), plus a reference implementation (Section~\ref{sec:impl}).
\end{enumerate}
\section{Setup}\label{sec:setup}
\paragraph{Graph.} $G=(V,E)$ is a connected graph with $N$ vertices and positive integer edge weights, $d$ its shortest-path metric, $w_{\min}$ its lightest edge and $\mathrm{diam}$ its diameter. Open and closed balls are $\Bo_v(r)=\{u:d(u,v)<r\}$ and $\Bc_v(r)=\{u:d(u,v)\le r\}$, with $\Bo_v(r)=\Bc_v(r)=\emptyset$ for $r<0$ (and $\Bo_v(0)=\emptyset$).
\paragraph{Writes.} Write $j=1,2,\dots$ places a source $s_j$ with key $b_j=-\lambda j$, $\lambda\ge0$. Sources are i.i.d.\ with law $p$ on $V$, and $p(A)=\sum_{u\in A}p(u)$. After $K$ writes,
\begin{equation}
T_K(v)=\min_{j\le K}\big(b_j+d(s_j,v)\big),\qquad \own_K(v)=\text{the minimising }j\ \text{(ties: the smallest }j).
\end{equation}
The tie rule is that of an incremental writer that relaxes only strict improvements; Section~\ref{sec:mech} checks that the incremental multi-radix-heap writer produces exactly this field.
\paragraph{Retrieval and survival.} A query for item $i$ reads $\own(s_i)$, so item $i$ is \emph{retrievable} iff it owns its own source vertex. For an item of age $a=K-i$, $S(a)$ is the probability that it is retrievable. The \emph{half-life} $W$ is the smallest $a$ with $S(a)\le1/2$, and the \emph{capacity} $M=\sum_aS(a)$ is the expected number of retrievable items in steady state. The \emph{basin} of item $i$ is $\{v:\own_K(v)=i\}$ and $A(a)$ is its expected size.
\paragraph{Ball growth.} The constants $c$ and $D$ are defined by $|\Bo_s(r)|\approx1+c\,r^D$ for $w_{\min}\ll r\ll\mathrm{diam}$. For a lattice with uniform edge weight $w$, $c=2/w$ ($D=1$), $2/w^2$ ($D=2$) and $4/(3w^3)$ ($D=3$); with random weights $c$ is measured. Where it applies we use the scaled variables
\begin{equation}
u=\frac aN,\qquad \Lambda=c^{1/D}\lambda N,\qquad r=c^{1/D}\rho.
\end{equation}
\section{Exact survival}\label{sec:surv}
\begin{lemma}[only later writes evict]\label{lem:later}
Let $\lambda>0$. A write $j<i$ never takes $s_i$ from item $i$. A write $j=i+m$ ($m\ge1$) takes it iff $s_j\in\Bo_{s_i}(\lambda m)$.
\end{lemma}
\begin{proof}
For $j<i$, $b_j+d(s_j,s_i)\ge b_j=b_i+\lambda(i-j)>b_i$. For $j=i+m$, $j$ beats $i$ at $s_i$ iff $b_j+d(s_j,s_i)<b_i$, i.e.\ $d(s_j,s_i)<\lambda m$. Equality is a tie, which keeps the older item.
\end{proof}
\begin{theorem}[exact survival]\label{thm:surv}
Let $\lambda>0$ and let sources be i.i.d.\ with law $p$. For every age $a\ge0$, independently of $K$ and of all writes before the item,
\begin{equation}\label{eq:surv}
S(a)=\sum_{s\in V}p(s)\prod_{m=1}^{a}\Big(1-p\big(\Bo_s(\lambda m)\big)\Big).
\end{equation}
For uniform $p$ the factors are $1-|\Bo_s(\lambda m)|/N$.
\end{theorem}
\begin{proof}
By Lemma~\ref{lem:later}, the item written at step $i$ with source $s$ is retrievable after $a$ further writes iff, for every $m=1,\dots,a$, write $i+m$ misses $\Bo_s(\lambda m)$. Given $s$, these events concern distinct independent sources, so they are independent with probabilities $1-p(\Bo_s(\lambda m))$. Averaging over $s\sim p$ gives \eqref{eq:surv}.
\end{proof}
On a vertex-transitive graph with uniform $p$ every term of the outer sum is equal. Otherwise the sum can be estimated from a sample of sources, one sorted distance row per source.
\begin{corollary}[hash plateau]\label{cor:plateau}
Let $p$ be uniform. If $\lambda a\le w_{\min}$, every ball in \eqref{eq:surv} is $\{s\}$, so $S(a)=(1-1/N)^a$. If $\lambda N\ln2\le w_{\min}$, then $W/N=\ln2/(-N\ln(1-1/N))=\ln2\,(1-\tfrac1{2N}+O(N^{-2}))$, the half-life of a last-write-wins hash table on $N$ cells.
\end{corollary}
\begin{remark}[$\lambda=0$]
At $\lambda=0$ the tie rule makes earlier writes win exact collisions, so the memory favours the oldest items. The limit $\lambda\to0^+$ is the hash table, so the dial is discontinuous at $0$. Section~\ref{sec:proto} observes both behaviours.
\end{remark}
\section{The universal retention law}\label{sec:univ}
\subsection{Derivation}
Take logarithms in \eqref{eq:surv} with uniform $p$, use $\ln(1-x)\approx-x$ while balls are small relative to the graph, replace the average of products by the product of averages (exact on vertex-transitive graphs), and substitute $|\Bo(r)|\approx1+c\,r^D$ and $\sum_{m\le a}m^D\approx a^{D+1}/(D+1)$:
\begin{equation}
-\ln S(a)\approx\frac aN+\frac{c\,\lambda^D a^{D+1}}{(D+1)N}.
\end{equation}
In the scaled age $u=a/N$, both terms depend on $\lambda$, $N$ and the metric only through $\Lambda$:
\begin{equation}\label{eq:univS}
-\ln S=u+\frac{\Lambda^D}{D+1}u^{D+1},\qquad \Lambda\equiv c^{1/D}\lambda N.
\end{equation}
Setting $S=1/2$ gives the retention law for $x=W/N$:
\begin{equation}\label{eq:law}
x+\frac{\Lambda^D}{D+1}x^{D+1}=\ln2.
\end{equation}
$\Lambda$ is the head start accumulated over $N$ consecutive writes, measured in the ball's natural length $c^{-1/D}$. The first term counts exact collisions and the second counts evictions by nearby later writes; they balance at $\Lambda\approx1$--$2$.
\subsection{Asymptotics}
As $\Lambda\to0$, $x\to\ln2$. For large $\Lambda$,
\begin{equation}\label{eq:asym}
\frac WN\simeq\big((D+1)\ln2\big)^{\frac1{D+1}}\Lambda^{-\frac D{D+1}},\qquad W\simeq\left(\frac{(D+1)\ln2\;N}{c\,\lambda^D}\right)^{\frac1{D+1}}.
\end{equation}
At fixed $\lambda$, retention therefore grows only as $N^{1/(D+1)}$: a 2-D memory four times larger keeps $4^{1/3}\approx1.6\times$ as many recent items unless $\lambda$ is rescaled with it.
\subsection{Regimes}
\begin{center}\small
\begin{tabular}{p{0.13\linewidth}p{0.22\linewidth}p{0.27\linewidth}p{0.3\linewidth}}\toprule
Regime & Condition & Retention & Accuracy of \eqref{eq:law}\\\midrule
Discrete plateau & $\lambda N\ln2\le w_{\min}$ & $W=N\ln2$ exactly (Cor.~\ref{cor:plateau}) & Exact\\
Transition & $w_{\min}<\lambda W\lesssim2.5\,w_{\min}$ & Exact $W$ near $N\ln2$, then falls steeply & Underestimates $W$ by up to 29\% ($D=2$), 54\% ($D=1$); use Thm.~\ref{thm:surv}\\
Continuum & $2.5\,w_{\min}\lesssim\lambda W\lesssim0.15\,\mathrm{diam}$ & $W/N\propto\Lambda^{-D/(D+1)}$ & Within 5.1\% for $D=2,3$; for $D=1$ error $\approx w/(\lambda W)$\\
Saturation & $\lambda W\gtrsim0.15\,\mathrm{diam}$ & Balls cover much of the graph; once $\lambda\ge\mathrm{diam}$ only the newest item survives & Exact $W$ below the law\\\bottomrule
\end{tabular}
\end{center}
The transition, continuum and saturation thresholds are empirical, read off Section~\ref{sec:collapse}.
\subsection{Design rule}
To retain the most recent $W<N\ln2$ writes on a memory with constants $c$, $D$, solve \eqref{eq:law} for $\lambda$:
\begin{equation}\label{eq:design}
\lambda^\star=\left(\frac{(D+1)(N\ln2-W)}{c\,W^{D+1}}\right)^{1/D}.
\end{equation}
Then check $2.5\,w_{\min}\le\lambda^\star W\le0.15\,\mathrm{diam}$; outside that window, solve Theorem~\ref{thm:surv} for $\lambda$ numerically. No $\lambda$ beats the ceiling $W\le N\ln2$. On the bounded $32\times32$ grid of the HES prototype (weights 800--1,200, measured $c=1.79\times10^{-6}$, $\mathrm{diam}=56{,}777$), a target $W=100$ gives $\lambda^\star=32.0$; Theorem~\ref{thm:surv} gives $W=97.5$ at $\lambda=32$ and $99.6$ at $\lambda=31$, inside the window ($\lambda W\approx3{,}100$ against limits $2{,}000$ and $8{,}500$).
\subsection{Capacity}
Summing \eqref{eq:univS},
\begin{equation}\label{eq:cap}
\frac MN\approx\int_0^\infty\exp\!\Big(-u-\tfrac{\Lambda^D}{D+1}u^{D+1}\Big)du\;\xrightarrow{\Lambda\to\infty}\;\Gamma\!\Big(1+\tfrac1{D+1}\Big)\Big(\tfrac{D+1}{\Lambda^D}\Big)^{\frac1{D+1}}.
\end{equation}
Against exact sums this was within 7\% for $\Lambda\ge10$ on the 2-D ($N=1{,}024$) and 3-D ($N=4{,}096$) tori. As $\Lambda\to0$, $M\to N$.
\section{Exact ownership at every vertex}\label{sec:own}
Retention counts items that still own their source vertex. A noisy query reads a nearby vertex, so recall depends on how far each basin reaches. For an item $i$ and a vertex $v$ put $\rho=d(s_i,v)$.
\begin{lemma}[eviction conditions]\label{lem:cond}
Item $i$ owns $v$ after $K$ writes iff
\begin{enumerate}
\item[(L)] every later write $j=i+m$, $1\le m\le a$, has $s_j\notin\Bo_v(\rho+\lambda m)$, and
\item[(E)] every earlier write $j=i-m$, $1\le m<i$, has $s_j\notin\Bc_v(\rho-\lambda m)$.
\end{enumerate}
\end{lemma}
\begin{proof}
A later write beats $i$ at $v$ iff $b_j+d(s_j,v)<b_i+\rho$, i.e.\ $d(s_j,v)<\rho+\lambda m$; a tie keeps $i$. An earlier write beats $i$ iff $b_j+d(s_j,v)\le b_i+\rho$ (it wins ties), i.e.\ $d(s_j,v)\le\rho-\lambda m$. Since ties go to the smallest index, $i$ is the minimiser iff no other write beats it.
\end{proof}
Later writes evict through balls that grow with $m$; earlier writes only through balls that shrink with $m$, and only while $\lambda m\le\rho$. With $\rho=0$, (E) is empty and (L) is Lemma~\ref{lem:later}.
\begin{theorem}[exact ownership]\label{thm:own}
Let sources be i.i.d.\ with law $p$. For every vertex $v$, item index $i$ and age $a$,
\begin{equation}\label{eq:own}
\Pr\big[\own_K(v)=i\,\big|\,s_i=s\big]=\prod_{m=1}^{a}\Big(1-p\big(\Bo_v(\rho+\lambda m)\big)\Big)\prod_{m=1}^{i-1}\Big(1-p\big(\Bc_v(\rho-\lambda m)\big)\Big),\qquad\rho=d(s,v).
\end{equation}
\end{theorem}
\begin{proof}
Given $s_i=s$, each condition of Lemma~\ref{lem:cond} involves one other source, and the sources are independent.
\end{proof}
For $\lambda>0$ the second product has at most $\lfloor\rho/\lambda\rfloor+1$ non-trivial factors, so in steady state ($i>\rho/\lambda$) it does not depend on $i$. For $\lambda=0$ both products are powers, $(1-p(\Bo_v(\rho)))^a(1-p(\Bc_v(\rho)))^{i-1}$, which covers the primacy regime.
\begin{lemma}[no orphan basins]\label{lem:orphan}
With one fixed metric, an item that has lost its source vertex owns no vertex.
\end{lemma}
\begin{proof}
If $j$ beats $i$ at $s_i$, then $b_j+d(s_j,s_i)<b_i$ (or $\le$ for $j<i$), and for any $v$, $b_j+d(s_j,v)\le b_j+d(s_j,s_i)+d(s_i,v)$, which is $<b_i+d(s_i,v)$ (respectively $\le$, which $j<i$ wins).
\end{proof}
So the basins of live items partition $V$, and the mean live basin is exactly $N/M$.
\begin{corollary}[basin area and noisy recall]\label{cor:noisy}
(i) $A(a)=\sum_sp(s)\sum_v\Pr[\own(v)=i\mid s_i=s]$.
(ii) If a query for item $i$ reads a vertex $v$ drawn from a kernel $Q(v\mid s_i)$, independent of the other writes, its owner-recall is
\begin{equation}\label{eq:noisy}
R(a)=\sum_{s,v}p(s)\,Q(v\mid s)\,\Pr[\own(v)=i\mid s_i=s].
\end{equation}
(iii) If payloads are drawn uniformly from $V_c$ classes independently of everything else, the returned payload is correct with probability $R+(1-R)/V_c$.
\end{corollary}
Part (ii) needs only the joint law of (source vertex, query vertex) for one item. In HES this law comes from pushing a key and its noisy copy through the key map $\varphi$; it is a property of $\varphi$ alone and can be estimated by sampling without consulting the memory.
\section{Universal form of ownership}\label{sec:shift}
\begin{proposition}[shift identity]\label{prop:shift}
In the continuum approximation of Section~\ref{sec:univ}, with uniform $p$ and in steady state,
\begin{equation}\label{eq:shift}
\Pr[\own(v)=i]\approx S\!\Big(a+\frac\rho\lambda\Big),\qquad\text{equivalently}\qquad-\ln P_{\rm own}=w+\frac{\Lambda^D}{D+1}w^{D+1},\quad w=u+\frac r\Lambda.
\end{equation}
\end{proposition}
\begin{proof}[Derivation]
Taking logarithms in \eqref{eq:own}, the unit terms of the ball volumes contribute $a$ (later) plus $\rho/\lambda$ (earlier) collisions. The growth terms contribute
\[
\frac cN\Big[\sum_{m=1}^{a}(\rho+\lambda m)^D+\sum_{m=1}^{\rho/\lambda}(\rho-\lambda m)^D\Big]\approx\frac c{N\lambda}\Big[\int_\rho^{\rho+\lambda a}x^D\,dx+\int_0^\rho x^D\,dx\Big]=\frac{c(\rho+\lambda a)^{D+1}}{(D+1)N\lambda}.
\]
With $\tau=a+\rho/\lambda$ the total is $\tau/N+c\lambda^D\tau^{D+1}/((D+1)N)$, the exponent of $S(\tau)$.
\end{proof}
The earlier writes fill exactly the part of the integral that the later writes leave out, so ownership depends on $a$ and $\rho$ only through $\rho+\lambda a$: an item of age $a$ behaves at distance $\rho$ like a front that has been growing for $a+\rho/\lambda$ writes. On a lattice the identity is not exact, because open and closed balls differ and the index shifts by one; Section~\ref{sec:basin} measures the gap.
\subsection{Basin-area law}
Integrating \eqref{eq:shift} over the shell density $cD\rho^{D-1}d\rho$, and keeping the source vertex as a separate term,
\begin{equation}\label{eq:area}
A(a)\approx S_\Lambda(u)+D\Lambda^D\!\int_u^\infty(w-u)^{D-1}\exp\!\Big(-w-\frac{\Lambda^D}{D+1}w^{D+1}\Big)dw,\qquad S_\Lambda(u)=e^{-u-\Lambda^Du^{D+1}/(D+1)}.
\end{equation}
At fixed $\Lambda$ the basin area, counted in vertices, is the same for every graph size. The same integral gives $\int A\,da=N$: the growth term integrates to $N(1-M/N)$ and the self term to $M$, as Lemma~\ref{lem:orphan} requires. For the newest item and $\Lambda\to\infty$,
\begin{equation}
A(0)\simeq\Gamma\!\Big(1+\tfrac D{D+1}\Big)\big((D+1)\Lambda\big)^{\frac D{D+1}}.
\end{equation}
Dividing by the mean live basin $N/M$ with $M/N$ from \eqref{eq:cap}, every power of $\Lambda$ cancels, and the reflection formula gives
\begin{equation}\label{eq:ratio}
\frac{A(0)}{N/M}\;\xrightarrow{\Lambda\to\infty}\;(D+1)\,\Gamma\!\Big(1+\tfrac D{D+1}\Big)\Gamma\!\Big(1+\tfrac1{D+1}\Big)=\frac D{D+1}\,\frac{\pi}{\sin\frac\pi{D+1}},
\end{equation}
which is $\pi/2\approx1.571$, $2.418$ and $3.332$ for $D=1,2,3$. The newest write's basin is a fixed multiple of the average live basin, and the multiple depends only on the dimension. This is the quantitative form of the prototype's observation that recent items get larger basins~\cite{hes}.
\subsection{Choosing the head start for noisy recall}
A query displaced by graph distance $\rho_q$ (scaled $r$) for an item of age $a$ is answered by its owner with probability $\approx S_\Lambda(u+r/\Lambda)$. Small $\Lambda$ makes the shift $r/\Lambda$ large, so basins are small and noise destroys recall (the hash-table failure); large $\Lambda$ shortens retention. Setting the derivative in $\Lambda$ to zero and writing $y=\Lambda u/r$,
\begin{equation}\label{eq:optlam}
(1+y)^D(Dy-1)=\frac{D+1}{r^D},\qquad\Lambda^\star=\frac{y\,r}u.
\end{equation}
The left side increases on $y>1/D$, so the root is unique. For large displacement $y\to1/D$, i.e.\ $\rho_q/\lambda^\star\to Da$; for small displacement $\Lambda^\star u\approx r^{1/(D+1)}((D+1)/D)^{1/(D+1)}$.
\section{Moving metrics and key offsets}\label{sec:moving}
In HES each token may reshape the metric through a speed field, and an implementation may change the metric scale or the head start over time. Let write $j$ use its own metric $d_j$ and head start $\lambda_j>0$, with cumulative keys
\begin{equation}
b_j=-\sum_{k\le j}\lambda_k,\qquad T(v)=\min_j\big(b_j+d_j(s_j,v)\big).
\end{equation}
We call this the \emph{analytic field}. With constant $\lambda_k=\lambda$ it reduces to Section~\ref{sec:setup}. Since $d_i(s_i,s_i)=0$, earlier writes still cannot take $s_i$ (as in Lemma~\ref{lem:later}), and item $i$ survives iff $d_j(s_j,s_i)\ge\sum_{k=i+1}^{j}\lambda_k$ for every later $j$, whatever $d_i$ is.
\subsection{Global metric schedules}
\begin{lemma}[scale invariance]\label{lem:scale}
If every write uses $d_j=\sigma\,d_0$ for a constant $\sigma>0$ and head start $\lambda$, then $S(a)$ equals the survival law of $d_0$ at head start $\lambda/\sigma$. In particular $\Lambda_{\rm eff}=c_0^{1/D}(\lambda/\sigma)N$, where $c_0$ is the ball constant of $d_0$.
\end{lemma}
\begin{proof}
$\{u:\sigma d_0(u,s)<\lambda m\}=\Bo^{0}_s(\lambda m/\sigma)$ for every $m$; apply Theorem~\ref{thm:surv}.
\end{proof}
\begin{theorem}[metric schedules]\label{thm:sched}
Let write $j$ use $d_j=\sigma_j\,d_0$ and head start $\lambda_j>0$, where $(\sigma_j)$ and $(\lambda_j)$ are deterministic sequences, and let sources be i.i.d.\ with law $p$. In the analytic field, item $i$ survives to step $t$ with probability
\begin{equation}\label{eq:sched}
S_{i,t}=\sum_sp(s)\prod_{j=i+1}^{t}\Big(1-p\Big(\Bo^{0}_s\Big(\frac1{\sigma_j}\sum_{k=i+1}^{j}\lambda_k\Big)\Big)\Big).
\end{equation}
\end{theorem}
\begin{proof}
Write $j>i$ takes $s_i$ iff $\sigma_jd_0(s_j,s_i)<\sum_{k=i+1}^{j}\lambda_k$. Given $s_i=s$ these events concern distinct independent sources.
\end{proof}
The theorem needs cumulative keys. An implementation that instead recomputes $b_j=-\lambda_j\,j$ after a change of head start shifts every later key by $(\lambda_j-\lambda_{j-1})\,j$ relative to every earlier one, and is not covered by \eqref{eq:sched}.
\begin{proposition}[re-anchoring band]\label{prop:anchor}
Let the metric scale $\sigma_t$ vary and consider the rule: keep an anchor $\sigma_a$ (initially $\sigma_0$) and head start $\lambda=\lambda_0\sigma_a/\sigma_0$; whenever $\sigma_t/\sigma_a+\sigma_a/\sigma_t\ge M^\ast$ (with $M^\ast>2$), set $\sigma_a\leftarrow\sigma_t$. Let $\varrho>1$ solve $\varrho+1/\varrho=M^\ast$. Then at every step the effective head start $\lambda/\sigma_t$ lies in $\big[\tfrac{\lambda_0}{\sigma_0}\varrho^{-1},\tfrac{\lambda_0}{\sigma_0}\varrho\big]$, so the instantaneous $\Lambda_{\rm eff}$ of Lemma~\ref{lem:scale} stays within a factor $\varrho$ of its initial value.
\end{proposition}
\begin{proof}
Always $\lambda/\sigma_t=(\lambda_0/\sigma_0)(\sigma_a/\sigma_t)$. At a re-anchoring step $\sigma_a/\sigma_t=1$. Otherwise $q=\sigma_t/\sigma_a$ satisfies $q+1/q<M^\ast$, i.e.\ $q\in(\varrho^{-1},\varrho)$.
\end{proof}
The proposition controls only the instantaneous scaled head start. Survival across a change of scale is given by Theorem~\ref{thm:sched}. With integer head starts, rounding adds a relative error of at most $1/(2\lambda)$.
\subsection{Token-local metrics}
\begin{theorem}[token-local metrics are exact]\label{thm:local}
Let $\lambda_j=\lambda$, let each write carry a token $\theta_j$ with $d_j=d_{\theta_j}$, and let the pairs $(s_j,\theta_j)$ be i.i.d. Then
\begin{equation}\label{eq:local}
S(a)=\sum_sp(s)\prod_{m=1}^{a}\big(1-q(s,\lambda m)\big),\qquad q(s,r)=\Pr\big[d_\theta(s',s)<r\big],
\end{equation}
where $(s',\theta)$ is a fresh pair. Theorem~\ref{thm:own} extends in the same way, with $\rho=d_{\theta_i}(s_i,v)$ and ball masses replaced by reach probabilities.
\end{theorem}
\begin{proof}
Given $s_i=s$, the eviction event of write $j$ depends only on $(s_j,\theta_j)$, and the pairs are independent.
\end{proof}
$q(s,r)$, the probability that a random write reaches $s$ within $r$ under its own metric, replaces the ball fraction and is computed from one distance table per token class. The HES write rule, in which token $x_t$ sets $F_t=f(x_t)$ and the march from $s_t$ uses $F_t$ alone, has this form whenever the tokens are i.i.d.
\subsection{History-dependent metrics}
\begin{theorem}[bi-Lipschitz sandwich]\label{thm:sandwich}
Let $\lambda_j=\lambda$ and let $d_j$ depend on anything (past sources, past tokens, the current token) provided $d_0/\kappa\le d_j\le\kappa d_0$ for a fixed metric $d_0$ and some $\kappa\ge1$. Let $S_0(a;\lambda)$ be the law \eqref{eq:surv} for $d_0$. Then, for the analytic field,
\begin{equation}\label{eq:sandwich}
S_0(a;\kappa\lambda)\le S(a)\le S_0(a;\lambda/\kappa).
\end{equation}
\end{theorem}
\begin{proof}
If $d_0(s_j,s_i)\ge\kappa\lambda m$ for all later $j=i+m$, then $d_j(s_j,s_i)\ge\lambda m$ and $i$ survives. If $i$ survives, $d_0(s_j,s_i)\ge d_j(s_j,s_i)/\kappa\ge\lambda m/\kappa$. Both bounding events involve only the i.i.d.\ sources and $d_0$, so Theorem~\ref{thm:surv} gives their probabilities.
\end{proof}
In the continuum regime $W\propto\Lambda^{-D/(D+1)}$, so the half-life is pinned to within a factor $\kappa^{2D/(D+1)}$ end to end. Lemma~\ref{lem:orphan} fails for varying metrics: write $j$ can beat $i$ at $s_i$ under $d_j$ without beating it at $v$.
\subsection{Bounded key offsets}
An implementation may add a per-write offset to the key, for example to delay writes whose content has been seen before. Let $b_j=-\lambda j+\varsigma_j$ with $0\le\varsigma_j\le\bar\varsigma$, where the offsets may depend on tokens and history in any way, and let the metric be fixed.
\begin{proposition}[offset sandwich]\label{prop:salience}
Let $\lambda>0$, sources i.i.d.\ with law $p$, $\bar n=\lfloor\bar\varsigma/\lambda\rfloor$ and $i>\bar n$. Then
\begin{equation}\label{eq:salience}
\sum_sp(s)\prod_{m=1}^{a}\Big(1-p\big(\Bo_s(\lambda m+\bar\varsigma)\big)\Big)\prod_{m=1}^{\bar n}\Big(1-p\big(\Bc_s(\bar\varsigma-\lambda m)\big)\Big)\;\le\;S(a)\;\le\;\sum_sp(s)\prod_{m=1}^{a}\Big(1-p\big(\Bo_s(\lambda m-\bar\varsigma)\big)\Big).
\end{equation}
\end{proposition}
\begin{proof}
A later write $j=i+m$ takes $s_i$ iff $d(s_j,s_i)<\lambda m+\varsigma_i-\varsigma_j$, and $\varsigma_i-\varsigma_j\in[-\bar\varsigma,\bar\varsigma]$. An earlier write $j=i-m$ takes $s_i$ iff $d(s_j,s_i)\le\varsigma_i-\varsigma_j-\lambda m\le\bar\varsigma-\lambda m$, which is impossible for $m>\bar n$. Hence $i$ survives if every later source satisfies $d\ge\lambda m+\bar\varsigma$ and every earlier source with $m\le\bar n$ satisfies $d>\bar\varsigma-\lambda m$; and if $i$ survives, every later source satisfies $d\ge\lambda m-\bar\varsigma$. Given $s_i=s$, each bounding event is an intersection of events on distinct independent sources.
\end{proof}
The lower bound is exactly the ownership product \eqref{eq:own} at distance $\rho=\bar\varsigma$, so by Proposition~\ref{prop:shift} it is $\approx S(a+\bar\varsigma/\lambda)$ in the continuum; the upper bound is likewise $\approx S(\max(a-\bar\varsigma/\lambda,0))$. Offsets bounded by $\bar\varsigma$ therefore move the half-life by about $\bar\varsigma/\lambda$ writes at most. Offsets do not affect the incremental writer's exactness, since the metric is fixed.
\subsection{The incremental writer}
The HES writer does not compute the analytic field. It runs Dijkstra's algorithm~\cite{dijkstra} on a multi-radix heap~\cite{mrh} from $s_j$ and expands only vertices it strictly improves. With one fixed metric this loses nothing: $T$ is 1-Lipschitz in $d$, so every vertex on a shortest path to an improved vertex is itself improved. With varying metrics a fast front can be stopped by territory it does not win.
\begin{proposition}[pruned writer]\label{prop:pruned}
Let $T^{\rm p}$ be the field built by the pruned writer and $T^{\rm a}$ the analytic field from the same writes, with any per-write metrics. Then $T^{\rm p}\ge T^{\rm a}$ at every vertex and step, and every item alive in the analytic field is alive under the pruned writer. Hence the lower bounds of Theorems~\ref{thm:sched}--\ref{thm:sandwich} (the exact laws being lower bounds in particular) hold for the pruned writer. Whether the upper bound of \eqref{eq:sandwich} holds for it is open.
\end{proposition}
\begin{proof}
A pruned march reaches $v$ along a path of $d_j$-length at least $d_j(s_j,v)$, so the value it writes is at least $b_j+d_j(s_j,v)$. By induction on $j$, $T^{\rm p}_j=\min(T^{\rm p}_{j-1},\text{march})\ge\min(T^{\rm a}_{j-1},b_j+d_j(s_j,\cdot))=T^{\rm a}_j$. While $i$ owns $s_i$ in either field, $T(s_i)=b_i$. A pruned eviction at step $j$ writes a value $<b_i$ at $s_i$, so $b_j+d_j(s_j,s_i)<b_i$, and $i$ is evicted from the analytic field at step $j$ or earlier.
\end{proof}
\section{Experiments}\label{sec:exp}
All experiments use NumPy/SciPy with the multi-radix-heap implementation of the HES prototype~\cite{hes}. Graphs are $D$-dimensional tori (cycle, square torus, cubic torus) with integer edge weights drawn uniformly from $\pm20\%$ of a base weight $w$. Ball constants $c$ are fitted from each graph's distances as the median of $(\overline{|\Bo(r)|}-1)/r^D$ over $4w\le r\le\mathrm{diam}/4$. ``Analytic field'' means $T=\min_j(b_j+d_j(s_j,\cdot))$ computed directly; ``MRH writer'' means the incremental writer. Every number below is read from the result files listed in Appendix~\ref{app:code}. Theorem~\ref{thm:sched}, Proposition~\ref{prop:anchor} and Proposition~\ref{prop:salience} are proved but were not separately tested.
\subsection{The writer obeys Theorem~\ref{thm:surv}}\label{sec:mech}
With $w=10{,}000$ (so that integer $\lambda$ gives fine control), the MRH writer was run on 4 configurations $\times$ 3 seeds with $K=3N$, 36,648 items in all. For every item, ownership after all writes agreed with the criterion of Lemma~\ref{lem:later} (no later $j$ with $d(s_j,s_i)<\lambda(j-i)$): 0 mismatches. Statistically, 8 $(D,\lambda)$ cases were each run 4 times; empirical survival was binned by age and compared with Theorem~\ref{thm:surv}.
\begin{center}\small
\begin{tabular}{rrrrrrl}\toprule
$D$ & $N$ & $\lambda$ & $\Lambda$ & $W$, Thm.~\ref{thm:surv} & $W$, Eq.~\eqref{eq:law} & max deviation (bins $\ge100$ samples)\\\midrule
2 & 1,024 & 2 & 0.30 & 709.4 & 699.7 & 0.040\\
2 & 1,024 & 20 & 3.04 & 534.4 & 447.3 & 0.042\\
2 & 1,024 & 197 & 29.9 & 130.6 & 127.0 & 0.033\\
2 & 1,024 & 1,975 & 300 & 28.3 & 28.8 & (no well-sampled bin in window)\\
1 & 1,024 & 15 & 3.05 & 655.0 & 431.8 & 0.043\\
1 & 1,024 & 147 & 29.9 & 217.0 & 188.9 & 0.033\\
3 & 1,000 & 25 & 2.99 & 436.9 & 440.8 & 0.047\\
3 & 1,000 & 251 & 30.0 & 92.2 & 96.9 & 0.022\\\bottomrule
\end{tabular}
\end{center}
The large misses of the universal law ($D=2$ at $\Lambda=3$; $D=1$ at both $\Lambda$) are transition-regime cases, where Theorem~\ref{thm:surv} still holds.
\subsection{Collapse across sizes and dimensions}\label{sec:collapse}
With $w=100$, the exact half-life was computed from Theorem~\ref{thm:surv} for 14 tori ($D=1$: $N=512$, 1,024, 2,048; $D=2$: $N=256$ to 4,096; $D=3$: $N=216$ to 8,000) at 26 log-spaced $\Lambda$ from 0.05 to 1,000. The three largest graphs averaged over 512 sampled sources. Figure~\ref{fig:collapse} shows the result.
\begin{figure}[t]\centering
\includegraphics[width=\linewidth]{figs/collapse.pdf}
\caption{Exact retention half-life $W/N$ from Theorem~\ref{thm:surv} against $\Lambda$ on 14 tori (edge weights 80--120), with the universal law \eqref{eq:law}. Points with $W<2$ are omitted.}\label{fig:collapse}
\end{figure}
\begin{itemize}
\item \emph{Ball growth.} Measured $c$ was 0.0196--0.0200 for $D=1$ (lattice $2/w=0.020$), $2.16$--$2.27\times10^{-4}$ for $D=2$ ($2/w^2=2.0\times10^{-4}$) and $1.69$--$1.83\times10^{-6}$ for $D=3$ ($4/(3w^3)=1.33\times10^{-6}$); random weights enlarge balls because geodesics route along lighter edges. Fitted growth exponents on the largest graphs were 2.03 ($D=2$) and 2.99, 3.02 ($D=3$).
\item \emph{Collapse.} At every $\Lambda$, $W/N$ agreed across graph sizes within 3.3\% ($D=1$), 2.4\% ($D=2$) and 2.5\% ($D=3$), excluding saturation.
\item \emph{Exponents.} In the continuum window, log-log slopes were $-0.498$ to $-0.504$ for $D=1$ (theory $-1/2$), $-0.649\to-0.661$ for $D=2$ as $N$ grows from 576 to 4,096 (theory $-2/3$), and $-0.706\to-0.717$ for $D=3$ at $N=4{,}096$ and 8,000 (theory $-3/4$). The $D=3$ window spans less than a decade of $\Lambda$ at these sizes, so that slope is still converging.
\item \emph{Plateau.} Wherever $\lambda N\ln2\le w_{\min}$, $W/N$ fell between 0.6915 and 0.6931, matching Corollary~\ref{cor:plateau}.
\end{itemize}
\subsection{Theorem~\ref{thm:own} against simulation}\label{sec:ownexp}
On a cycle ($N=256$), a $16\times16$ torus and a $6^3$ torus ($w=100$) we made $K=500$ writes, recorded the basin size of the item at ages $0,3,10,30,100,300$, and repeated this in 3,000 independent runs for each $\Lambda\in\{0,3,30\}$. Theorem~\ref{thm:own} was summed over every vertex and averaged over every source vertex using the exact item index. Figure~\ref{fig:ownexact} (left) shows the 48 comparisons whose predicted area exceeds $10^{-3}$. Standardised by their Monte Carlo standard errors they give $\chi^2=59.7$ on 48 degrees of freedom ($p=0.12$); the largest $|z|$ is 2.75 and four of 48 exceed 2. The $\Lambda=0$ rows test the primacy regime.
\begin{figure}[t]\centering
\includegraphics[width=0.48\linewidth]{figs/ownexact.pdf}\hfill
\includegraphics[width=0.48\linewidth]{figs/noise.pdf}
\caption{Left: expected basin area from Theorem~\ref{thm:own} against simulation (3,000 independent runs per point; $D=1,2,3$; $\Lambda=0,3,30$; ages 0--300). Right: recall against query noise in the HES prototype's setting ($32\times32$ grid, 128 items, $\lambda=0$). Points rerun the unchanged prototype for 40 seeds; the line is Corollary~\ref{cor:noisy} with the joint (source, query) law of the key map estimated by sampling. Nothing is fitted.}\label{fig:ownexact}
\end{figure}
\subsection{An independent prototype, predicted}\label{sec:proto}
The HES prototype~\cite{hes} measured recall by age on a bounded $32\times32$ grid, with keys mapped to cells by a random 2-D projection $\varphi$, 64 value classes and three seeds. Its \texttt{recency2} experiment wrote 1,024 items with weights 800--1,200 and $\lambda\in\{0,1,4,16,64\}$, querying with exact keys and with key-space noise $\sigma=0.1$. Its \texttt{noise} experiment wrote 128 items with weights 8--12 and $\lambda=0$, sweeping $\sigma$.
\paragraph{Clean recall from Theorem~\ref{thm:surv}.} Treating sources as uniform, predicted recall is $S+(1-S)/64$ with $S$ from Theorem~\ref{thm:surv} on the same grid:
\begin{center}\small
\begin{tabular}{rrlrrr}\toprule
$\lambda$ & $\Lambda$ & Regime & $W$, exact & $W$, Eq.~\eqref{eq:law} & max $|$pred.$-$obs.$|$ (8 age bins)\\\midrule
1 & 1.4 & plateau ($\lambda N\ln2=710\le w_{\min}=800$) & 709 & 588 & 0.037\\
4 & 5.5 & continuum & 345 & 338 & 0.024\\
16 & 22.0 & continuum & 151 & 153 & 0.031\\
64 & 88.1 & continuum & 62 & 64 & 0.020\\\bottomrule
\end{tabular}
\end{center}
The plateau row explains the prototype's observation that $\lambda=1$ behaved exactly like a last-write-wins hash table: no neighbour could be reached within the window.
\paragraph{Clean and noisy recall from Corollary~\ref{cor:noisy}.} For each run we rebuilt the run's own graph and projection by replaying its random-number stream, and estimated the source law $p$ and the joint law of (source cell, query cell) by pushing $2\times10^6$ fresh random keys and their noisy copies through that $\varphi$. Corollary~\ref{cor:noisy}(ii)--(iii) then gives predicted recall for every item; nothing is fitted and the memory is never consulted. Figure~\ref{fig:proto} compares all 80 age bins (5 values of $\lambda$, clean and noisy, 8 bins). The largest deviation is 0.048 (newest bin at $\lambda=0$, clean); for $\lambda\ge1$ it is at most 0.040. For the newest 128 items at $\sigma=0.1$ the prediction gives 0.306 at $\lambda=1$ and 0.452 at $\lambda=4$ (observed 0.307 and 0.438); the gain from $\lambda$ is the basin growth of Section~\ref{sec:shift}, since at $\lambda=1$ the grid is on the hash plateau and basins are single cells.
On the noise sweep the original three-seed values were matched within 0.018 for $\sigma\le0.4$ and missed by 0.028 at $\sigma=0.8$. Rerunning the unchanged prototype for 40 seeds per $\sigma$ (Figure~\ref{fig:ownexact}, right):
\begin{center}\small
\begin{tabular}{lccccc}\toprule
$\sigma$ & 0 & 0.1 & 0.2 & 0.4 & 0.8\\\midrule
observed (40 seeds) & 0.9328 & 0.5561 & 0.3189 & 0.1467 & 0.0779\\
predicted & 0.9365 & 0.5654 & 0.3227 & 0.1515 & 0.0709\\
$z$ (paired over seeds) & $-0.97$ & $-1.45$ & $-0.66$ & $-1.08$ & $1.82$\\\bottomrule
\end{tabular}
\end{center}
All five lie within 2 standard errors, so the $\sigma=0.8$ gap in the three-seed table was seed noise.
\begin{figure}[t]\centering
\includegraphics[width=\linewidth]{figs/prototype.pdf}
\caption{Recall by age octile in the HES prototype's \texttt{recency2} experiment (bounded $32\times32$ grid, 1,024 writes, 3 seeds). Lines: Corollary~\ref{cor:noisy} on each run's own graph and key map, nothing fitted. Points: the prototype's stored results.}\label{fig:proto}
\end{figure}
\subsection{The basin-area law}\label{sec:basin}
For 10 of the tori of Section~\ref{sec:collapse} ($D=1$: $N=512$--2,048; $D=2$: $16^2$--$45^2$; $D=3$: $8^3$--$13^3$) and $\Lambda\in\{1,3,10,30,100,300,1000\}$, exact expected basin areas were computed from Theorem~\ref{thm:own} (12 sampled sources, steady state) at ages $0$, $W/4$, $W/2$, $W$, $3W/2$, $2W$ and compared with \eqref{eq:area}. Figure~\ref{fig:basin} summarises the newest item.
\begin{figure}[t]\centering
\includegraphics[width=\linewidth]{figs/basin.pdf}
\caption{Left: basin area of the newest write, exact (points, all graph sizes) and universal law \eqref{eq:area} (lines). Right: newest basin divided by the mean live basin $N/M$, exact (points joined by graph) and universal (lines), with the limits \eqref{eq:ratio} dotted. Points that fall away at large $\Lambda$ are the smallest graphs entering saturation.}\label{fig:basin}
\end{figure}
\paragraph{Newest basin and collapse.} In the continuum window ($\Lambda\ge30$, ball fraction at $\lambda W$ at most 0.14) the universal $A(0)$ matched the exact value within 1.7\% for $D=1$, 3.6\% for $D=2$ ($N\ge576$) and 2.2\% for $D=3$ ($N\ge1000$). At fixed $\Lambda$ the exact $A(0)$ barely depends on $N$: at $\Lambda=30$ it ranged over 6.85--6.91 ($D=1$, $N=512$--2,048), 17.77--18.16 ($D=2$, $N=256$--2,025) and 31.78--32.19 ($D=3$, $N=1000$, 2,197). Below $\Lambda=30$ the law misses by up to 33\% ($D=1$, $\Lambda=1$), as the retention law does in its transition regime.
\paragraph{Newest-to-mean ratio.} The exact ratio $A(0)M/N$ reached 1.567 on the largest cycle (limit 1.571), 2.418 and 2.429 on the $45^2$ torus at $\Lambda=300$ and 1,000 (limit 2.418), and 3.263 on the $13^3$ torus at $\Lambda=300$ (limit 3.332). The universal curve at the same $\Lambda$ gives 3.266 for $D=3$, so the exact value agrees with the curve, which has not yet reached its limit.
\paragraph{Older items.} The shift identity is less accurate away from age 0. At age $W$ on the $45^2$ torus the universal law overstated the basin by 2\%, 4\%, 6\%, 11\% and 24\% at $\Lambda=10$, 30, 100, 300 and 1,000; on the $13^3$ torus the errors at $\Lambda=10$--300 were between $-5\%$ and $+9\%$. We have not isolated the cause; the open/closed-ball and index-shift corrections dropped in Proposition~\ref{prop:shift} are candidates. Exact basin areas should be taken from Theorem~\ref{thm:own}.
\subsection{Choosing $\lambda$ for noisy queries}\label{sec:opt}
On the $32\times32$ torus ($w=100$) we placed queries at graph distance within $\pm10\%$ of $\rho_q\in\{200,400,800\}$ (2, 4 and 8 mean edges) from the item's source. For targets $a\in\{16,64,256\}$ we scanned 40 log-spaced $\Lambda$ from 1 to 2,000, refined around the best, and evaluated Theorem~\ref{thm:own} exactly (Figure~\ref{fig:opt}).
\begin{center}\small
\begin{tabular}{rrcccc}\toprule
$\rho_q$ & $a$ & exact $\Lambda^\star$ & recall at $\Lambda^\star$ & rule \eqref{eq:optlam} & recall at rule\\\midrule
200 & 16 & 91.3 & 0.726 & 108.2 & 0.722\\
200 & 64 & 23.0 & 0.280 & 27.1 & 0.276\\
400 & 16 & 171.9 & 0.292 & 197.2 & 0.290\\\bottomrule
\end{tabular}
\end{center}
In these three cases, the only ones where any $\lambda$ gives recall above 0.05, the closed-form rule overestimates the optimal $\Lambda$ by 15--19\% and gives up at most 0.0045 of recall. The overestimate was present in all nine cases (12--25\%); we did not test its cause. For the six remaining targets the best achievable owner-recall was at most 0.008: a query displaced that far cannot retrieve an item of that age at any head start, the noisy-query form of the ceiling $W\le N\ln2$.
\begin{figure}[t]\centering
\includegraphics[width=0.62\linewidth]{figs/optlam.pdf}
\caption{Owner-recall against $\Lambda$ for queries displaced by two edges on a $32\times32$ torus (Theorem~\ref{thm:own}, exact), for three target ages. Circles mark the exact optimum and triangles the rule \eqref{eq:optlam}.}\label{fig:opt}
\end{figure}
\subsection{Token-dependent metrics}\label{sec:token}
Both experiments use the $32\times32$ torus with base weights $w=10{,}000\pm20\%$, $\lambda=197$ ($\Lambda=29.9$), $\kappa=2$ and $K=3{,}072$ writes per run, each simulated twice from the same writes, as the analytic field and with the MRH writer.
\begin{itemize}
\item \emph{Token-local.} Eight token classes, each with a smooth random speed field (white noise smoothed by a Gaussian filter of width 4 cells). Under class $k$ edge $(u,v)$ has weight $\mathrm{round}\big(w_{uv}\,\kappa^{\tanh((f_k(u)+f_k(v))/2)}\big)$, so every multiplier lies in $(1/\kappa,\kappa)$. Each write draws its class uniformly, independently of its source. 200 runs, 614,400 items.
\item \emph{History-dependent.} Before write $j$, each vertex carries a decayed density of past sources (Gaussian kernel of width 3 cells, decay 0.98 per write), standardised to $z$; edge weights are multiplied by $\kappa^{(\tanh z_u+\tanh z_v)/2}$, so recently busy regions slow down. 100 runs, 307,200 items.
\end{itemize}
\begin{figure}[t]\centering
\includegraphics[width=\linewidth]{figs/token.pdf}
\caption{Survival under token-dependent metrics on a $32\times32$ torus ($\Lambda=29.9$, $\kappa=2$). Grey band: Theorem~\ref{thm:sandwich}. Dashed: the base metric alone. Line (left): Theorem~\ref{thm:local}. Points: simulation of the analytic field and of the MRH writer, binned by age.}\label{fig:token}
\end{figure}
\paragraph{Theorem~\ref{thm:local}.} With token-local metrics the binned survival of the analytic field matched \eqref{eq:local} within 0.0063 in every age bin (bins with at least 200 items; largest $|z|=1.8$). Half-lives were 116.9 (theory) and 114.7 (simulation, 9-age running mean). The varying metric cut retention from 130.6 (base metric alone) to 116.9; equivalently, the reach probabilities $q(s,r)$ exceed the base ball fractions, which we did not investigate further.
\paragraph{Theorem~\ref{thm:sandwich}.} Both simulated survival curves stayed inside the band (half-lives 83.0 to 205.5) in both experiments, up to sampling error. The history-dependent run had half-life 118.0. Its largest excursion was one bin (ages 10--14) at 0.974 against a lower bound of 0.988. At those ages the bound is the hash plateau, where only an exact source collision can evict, so this bin does not depend on the metric. Counting collisions directly in the 100 source sequences gave 13 evictions among the 500 items against 5.8 expected: the excursion is sampling noise in the sources.
\paragraph{Proposition~\ref{prop:pruned}.} In the token-local runs the analytic field and the MRH writer disagreed on 101 of 614,400 items, all alive under the MRH writer only; in the history-dependent runs on 8 of 307,200, again all in that direction. Binned survival curves differed by at most 0.0042 and 0.0007. Lemma~\ref{lem:orphan} failed as predicted: 2.0\% (token-local) and 2.7\% (history) of vertices were owned at the end by items that had lost their own source vertex.
\section{Reference implementation}\label{sec:impl}
The laws are implemented in Go in the package \texttt{internal/hes} of \texttt{gptrun}~\cite{gptrun}, alongside an MRH-based incremental writer. The experiments of Section~\ref{sec:exp} were run with the NumPy prototype, not with this package. The correspondence is:
\begin{center}\small
\begin{tabular}{ll}\toprule
Result & \texttt{gptrun/internal/hes} (file \texttt{laws.go} unless stated)\\\midrule
Theorem~\ref{thm:surv}, half-life, capacity & \texttt{Survival}, \texttt{HalfLife}, \texttt{Capacity}\\
Eqs.~\eqref{eq:univS}, \eqref{eq:law}, \eqref{eq:cap}, $\Lambda$ & \texttt{UniversalSurvival}, \texttt{UniversalHalfLife}, \texttt{UniversalCapacity}, \texttt{ScaledLambda}\\
Design rule \eqref{eq:design}, regimes & \texttt{DesignLambda}, \texttt{DesignLambdaExact}, \texttt{DesignWindow}, \texttt{Regime}\\
Ball constants & \texttt{MeasureGrowth}\\
Theorem~\ref{thm:own}, Corollary~\ref{cor:noisy} & \texttt{OwnProb}, \texttt{BasinArea}, \texttt{NoisyRecall}\\
Proposition~\ref{prop:shift}, Eqs.~\eqref{eq:area}, \eqref{eq:ratio}, \eqref{eq:optlam} & \texttt{ShiftOwn}, \texttt{UniversalBasin}, \texttt{NewestBasinRatio}, \texttt{NoisyLambda}\\
Theorem~\ref{thm:sched}, Proposition~\ref{prop:anchor} & \texttt{SurvivalSchedule}; \texttt{NewAnchor}, \texttt{Anchor.Update}\\
Theorems~\ref{thm:local}, \ref{thm:sandwich} & \texttt{TokenLocalSurvival}, \texttt{Sandwich}\\
Incremental writer & \texttt{mrh.go}, \texttt{eikonal.go}\\\bottomrule
\end{tabular}
\end{center}
\section{Limitations}\label{sec:limits}
\begin{itemize}
\item \textbf{Independent writes.} Every exact result assumes i.i.d.\ sources (or i.i.d.\ source--token pairs). Clustered keys, the realistic case for learned embeddings, are covered by Theorems~\ref{thm:surv} and~\ref{thm:own} through the law $p$, but only if writes remain independent; real token streams repeat and correlate. Theorem~\ref{thm:sandwich} and Proposition~\ref{prop:salience} need independent sources, though not independent metrics or offsets.
\item \textbf{Continuum statements.} The universal laws and the shift identity are exact neither on lattices nor near saturation. The regime thresholds $2.5\,w_{\min}$ and $0.15\,\mathrm{diam}$ are empirical. The noisy design rule overestimated the optimal $\Lambda$ by 12--25\% in every case tested. Where accuracy matters, the exact products should be used; they cost one sorted distance row per sampled source.
\item \textbf{Moving metrics.} History-dependent metrics get only a bound, whose width grows as $\kappa^{2D/(D+1)}$. With varying metrics the incremental writer is not the analytic field; its upper bound and exact law are open, and we have no bound on the fraction of items on which they differ. Theorem~\ref{thm:sched} and Propositions~\ref{prop:anchor} and~\ref{prop:salience} were not tested by simulation.
\item \textbf{Owner-recall is not payload recall.} Corollary~\ref{cor:noisy}(iii) assumes payloads independent of keys.
\item \textbf{Scope.} These are mechanism results on synthetic writes. Nothing here involves learned key maps, the holonomy channel of HES, language modelling or scale.
\end{itemize}
\section{Conclusion}
Forgetting in a recency-weighted eikonal memory is governed by exact products over ball masses. Retention and territory both reduce, in the continuum, to the single variable $\Lambda=c^{1/D}\lambda N$, which turns the choice of head start into a design rule with a hard ceiling $W\le N\ln2$. The exact laws survive token-local metrics and global schedules, and degrade to explicit bounds under history-dependent metrics and bounded key offsets.
\bibliographystyle{unsrtnat}
\bibliography{refs}
\appendix
\section{Code and result files}\label{app:code}
\begin{center}\small
\begin{tabular}{lll}\toprule
Script & Result file & Used in\\\midrule
\texttt{lambda\_law.py} (\texttt{mechanism}) & \texttt{law\_mechanism.json} & \S\ref{sec:mech}\\
\texttt{check\_mech.py} & \texttt{log\_mech.txt} & \S\ref{sec:mech} (0 mismatches)\\
\texttt{lambda\_law.py} (\texttt{sweep}, \texttt{large}) & \texttt{law\_sweep.json}, \texttt{law\_sweep\_large.json} & \S\ref{sec:collapse}, Fig.~\ref{fig:collapse}\\
\texttt{revisit.py} & \texttt{law\_revisit.json} & \S\ref{sec:proto} (Theorem~\ref{thm:surv} table)\\
\texttt{exp\_own\_exact.py} & \texttt{res\_own\_exact.json} & \S\ref{sec:ownexp}, Fig.~\ref{fig:ownexact} left\\
\texttt{exp\_revisit\_noisy.py} & \texttt{res\_revisit\_noisy.json} & \S\ref{sec:proto}, Fig.~\ref{fig:proto}\\
\texttt{exp\_revisit\_more.py} & \texttt{res\_revisit\_more.json} & \S\ref{sec:proto}, Fig.~\ref{fig:ownexact} right\\
\texttt{exp\_basin.py} & \texttt{res\_basin.json} & \S\ref{sec:basin}, Fig.~\ref{fig:basin}\\
\texttt{exp\_optlam.py} & \texttt{res\_optlam.json} & \S\ref{sec:opt}, Fig.~\ref{fig:opt}\\
\texttt{exp\_tokenmetric.py} & \texttt{res\_token\_\{local,history\}.json} & \S\ref{sec:token}, Fig.~\ref{fig:token}\\\bottomrule
\end{tabular}
\end{center}
\texttt{mrh.py} and \texttt{eikonal\_memory.py} are the HES prototype, unchanged. The prototype comparisons read its stored results \texttt{eik\_recency2.json} and \texttt{eik\_noise.json}.
\end{document}