\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)0$. A write $jb_i$. For $j=i+m$, $j$ beats $i$ at $s_i$ iff $b_j+d(s_j,s_i)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 $W0$ 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)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/q0$, 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 $