Skip to content
Shadow Theory

Relational development Section 7

Continuation-sufficient relational memory

Reading position 8 of 15

7 Continuation-sufficient relational memory

7.1 A finite costed model

Let XX be a finite nominated state set, UU a finite action alphabet, OO a finite record alphabet and CC a finite set of positive event costs. A normalized joint instrument satisfies

Ku,o,c(x,y)≥0,∑o,c,yKu,o,c(x,y)=1.K_{u,o,c}(x,y)\ge0,\qquad \sum_{o,c,y}K_{u,o,c}(x,y)=1.

The state or the retained boundary context includes controller memory, clocks, queues, persistent learner state, relevant shared seeds and resources. Common admitted actions are assumed; a finite operating grammar can instead be retained explicitly. Artificially adding a failure action does not make a physically unavailable operation lawful. Throughout the finite-model results, an experiment is a causal policy with a finite uniform upper bound on its number of steps, depending only on admitted records and having a declared stopping rule. Adaptive early stopping is allowed. A statement over all such experiments quantifies over arbitrarily large finite bounds; it does not grant an infinite experiment or free resources. A capability diagnostic has a bounded terminal score se∈[0,1]s_e\in[0,1] and mean γe(x)=Exse\gamma_e(x)=\mathbb E_x s_e.

A budget curve Γx(B)\Gamma_x(B) is the probability of a specified success event by cumulative cost BB under a fixed task distribution and procedure. Optimizing over procedures is a different construction. It requires a common procedure class and explicit access and computation restrictions. An omniscient state-dependent policy is not supplied by taking a supremum.

7.2 Snapshot failure and deterministic repair

The smallest useful counterexample has states x,y,zx,y,z with current score b(x)=b(y)=0b(x)=b(y)=0, b(z)=1b(z)=1 and an admitted update

Fa(x)=z,Fa(y)=y,Fa(z)=z.F_a(x)=z,\qquad F_a(y)=y,\qquad F_a(z)=z.

The present score identifies xx with yy, but their scores differ after aa. No autonomous update on the two score classes can represent both cases. A score quotient exists as a set without being a sufficient developmental state. Independently, two task profiles (1,0)(1,0) and (0,1)(0,1) have the same uniform mean but different competencies.

For a deterministic controlled machine with protected signature bb, define

x≡by⟺b(Fw(x))=b(Fw(y)) for every admitted finite word w.x\equiv_b y\quad\Longleftrightarrow\quad b(F_w(x))=b(F_w(y))\text{ for every admitted finite word }w.

Proposition C1, inherited continuation closure. This is the coarsest transition congruence refining the bb partition. It supports a unique quotient update and is computed by finite partition refinement.

Proof. The empty word preserves bb. Prepending any action uu shows that equivalent states have equivalent uu-successors. Conversely, every bb-preserving congruence preserves bb after every word by induction, so it refines ≡b\equiv_b. Start from the bb partition and repeatedly split a block by its action-successor block labels. Each strict refinement increases the number of blocks; hence at most ∣X∣−∣P0∣|X|-|P_0| strict steps occur. Stability is precisely congruence. Every eligible congruence refines every iteration, proving coarseness. □\square

This is ordinary finite-machine minimization specialized to developmental tests. It does not identify the smallest program or fastest implementation. Its philosophical value is the explicit difference between retaining today’s answer and retaining what future development needs.

The checkpoints supply a sharp cyclic illustration. For n≥2n\ge2, let X={0,…,n−1}X=\{0,\ldots,n-1\}, F(i)=i−1(modn)F(i)=i-1\pmod n and b(i)=1i=0b(i)=\mathbf1_{i=0}. The present signature has two classes, but all phases are future-distinguishable. If at most hh advances precede a terminal score test, the profiles have

Nh=min⁡(n,h+2),kh=min⁡(n−1,h+1)N_h=\min(n,h+2),\qquad k_h=\min(n-1,h+1)

classes in total and at most khk_h within one current bb fibre. To verify this, list the values 1i−j=0(modn)\mathbf1_{i-j=0\pmod n} for 0≤j≤h0\le j\le h. Until all phases are exposed, the observed phases yield distinct unit patterns and all remaining phases yield the zero pattern. Thus a two-valued snapshot can conceal arbitrarily large continuation memory. A finite-horizon quotient must retain the decreasing remaining horizon; it is not automatically an unchanged stationary quotient.

7.3 Stochastic joint closure and autonomous modules

For a surjection q:X→Zq:X\to Z, retain required marks such as type, timing and resource status. The strong quotient condition is

∑y:q(y)=z′Ku,o,c(x,y)=K‾u,o,c(q(x),z′),\sum_{y:q(y)=z'}K_{u,o,c}(x,y)=\overline K_{u,o,c}(q(x),z'),

independent of the representative xx.

Proposition C2, inherited from P2. This condition, together with descent of protected marks, is necessary and sufficient for a unique effective instrument preserving the joint record, cost and actual successor-class law. Finite refinement gives the coarsest such quotient. In a matching causal context it preserves every finite adaptive transcript law.

Proof. Necessity follows by comparing actual representatives. For sufficiency define the effective row by the common sums; nonnegativity and normalization follow from the original rows. Refine the mark partition by all probabilities into each current block for every action, record and cost. Stability is the displayed condition, and induction shows that every eligible partition refines every iterate. For composition, retain the external controller and push forward the joint initial state law without deleting correlations. Equal matched histories produce the same next action distribution and the same next joint record, cost and class law. Induction over the finite policy tree proves equality, including adaptive stopping. □\square

This gives a relation a precise route to becoming an autonomous higher-level component: its effective state must retain the distinctions required by subsequent interaction. A useful module is relative to its ports and permitted contexts. Port-trace equivalence can sometimes suffice for behavioural substitution without a strong actual-state quotient; P2 distinguishes these targets. Neither construction grants a free physical decoder.

Actual-state trace equivalence alone is weaker. Consider states a,b,c,x,ya,b,c,x,y: aa emits zero forever, bb emits one forever, cc emits zero and enters aa or emits one and enters bb, equally likely; xx emits a marker and enters aa or bb equally; yy emits the same marker and enters cc. All finite record laws from x,yx,y agree. After the marker, however, yy enters the actual class of cc with probability one and xx with probability zero. Thus their trace class does not support that strong successor-class instrument. This inherited example does not invalidate predictive states of observed histories, which update by conditioning.

7.4 Exact residual memory and relational dependence

Let QQ be the finite deterministic continuation quotient and let the protected local summary ℓ\ell descend through it. Write kl=∣{q:ℓ(q)=l}∣k_l=|\{q:\ell(q)=l\}|.

Proposition C3, P2-32. The minimum residual alphabet identifying the quotient class from (ℓ,j)(\ell,j) and supporting exact autonomous updates is

∣J∣min⁡=max⁡lkl,bJ=⌈log⁡2max⁡lkl⌉.|J|_{\min}=\max_l k_l,\qquad b_J=\left\lceil\log_2\max_l k_l\right\rceil.

Proof. Two distinct classes in one fibre cannot share a residual label, because an admitted future test separates them. Conversely, enumerate the classes within each fibre and reuse labels in different fibres. The pair (ℓ,j)(\ell,j) identifies the quotient class, whose update can be applied and re-encoded. □\square

Relational residual memory is therefore relative to a retained local summary and a continuation target. Enlarging a participant’s state can absorb the residual. This does not undermine its operational importance; it defeats an inference to an unaccounted-for third substance.

For independent fair bits A,BA,B, parity Θ=A⊕B\Theta=A\oplus B is independent of either input alone and determined by the complete pair. Thus I(Θ;A)=I(Θ;B)=0I(\Theta;A)=I(\Theta;B)=0, I(Θ;A,B)=1I(\Theta;A,B)=1, but I(Θ;Y∣A,B)=0I(\Theta;Y\mid A,B)=0 for every YY. More generally, if R=f(A,B)R=f(A,B), then H(R∣A,B)=0H(R\mid A,B)=0 and therefore I(R;Y∣A,B)=0I(R;Y\mid A,B)=0. A computed relation can causally matter while supplying no information beyond its complete antecedents.

P2’s coupled-stream example is equally instructive. At each tick emit (ξ,ξ⊕θ)(\xi,\xi\oplus\theta) with fresh fair ξ\xi and a retained parameter θ\theta. Each marginal stream has the same law for both parameter values, while joint parity reveals the parameter exactly. Local marginal predictive summaries erase a real correlation distinction. This is different from saying that the complete coupled physical state lacks that distinction.

7.5 Robust finite-use substitution

Let 0≤δ0,ϵi≤10\le\delta_0,\epsilon_i\le1 and finite nonnegative integer call bounds nin_i be fixed. Suppose two matched implementations can initially be coupled with disagreement probability at most δ0\delta_0, and module ii has joint-row error at most ϵi\epsilon_i whenever the preceding states and transcripts match. The error bound is uniform over matched states and histories and concerns the joint record, cost and next matched-state law. Every admitted path calls it at most nin_i times. The inherited coupling argument yields

TV⁡(Pe,P^e)≤1−(1−δ0)∏i(1−ϵi)ni≤min⁡(1,δ0+∑iniϵi)=:βunion.\operatorname{TV}(P^e,\widehat P^e) \le1-(1-\delta_0)\prod_i(1-\epsilon_i)^{n_i} \le\min\left(1,\delta_0+\sum_i n_i\epsilon_i\right)=:\beta_{\rm union}.

Indeed, match the initial states and maximally couple each next row while histories agree. Conditional success probabilities multiply by backward induction over the remaining pathwise call bounds; independent errors are not assumed. Complete transcript agreement gives the total-variation bound. Every bounded score changes by at most the same bound. The product is sharp for a never-failing process compared with independent opportunities to enter an absorbing failure state.

For a modelled before/after gain g^\widehat g, with respective validated law-error bounds β0,β1\beta_0,\beta_1, the actual gain obeys g≥g^−β0−β1g\ge\widehat g-\beta_0-\beta_1. Statistical uncertainty must be added if the means are estimated. A positive lower bound certifies the declared task improvement. It does not certify improvement of every task, preserve exact graph edges under arbitrary perturbation, or validate a phenomenal assignment.