Explicit and compiled actuator trackers under a fixed memory budget: four extensions
Independent re-search, scope in K and T, a metered stage index, and a wider transfer family
B-Theory working note, v0.2, 22 November 2026. Status-line revision of v0.1 (19 November 2026), prepared for publication as a research record; the rest of the text is unchanged. AI-assisted research draft. Internal checks only; not external peer review. No novelty or priority is claimed.
This note extends Explicit and compiled actuator trackers under a fixed memory budget (v0.1, 16 November 2026; folder research/fixed-memory-comparison-20261116/), called "the original" below. Its model, loss and classes are used unchanged; Section 2 restates them briefly.
Abstract
The original compared explicit and compiled trackers of a flipping actuator polarity under a cap of K persistent memory states and found no advantage and no cost of explicit organization, at K ≤ 4 and horizon 8. It left four things open. This note takes them in turn, each under a contract written before computing.
- Independent re-search. A second exhaustive search, with a different traversal and enumeration, reproduces all six clocked optima exactly. Confirmed.
- Scope in K and T, no stage index. For K = 2 a proof shows that guessing the last residual is optimal at every horizon and parameter value. Across K = 2–6, exact computation over 30 parameter points and horizons up to 16 or 32 (2,490 cells, including 1,980 at K = 3–6) finds the fixed-grid explicit class equal to the compiled optimum in 2,470 cells. In the other 20 the declared lattice of fiftieths is too coarse; a grid of hundredths attains the optimum in each. The ordered-state class attains it in every cell. The saturating counter, optimal at K ≤ 4 in the original, is usually not optimal from K = 5 on. At K = 7, attempted at two points and two horizons, the classes are again equal.
- A further resource limit. The stage index is metered: R table pairs used cyclically, between none (R = 1) and one per step. In all 18 cells computed, the calibrated belief register attains the compiled optimum.
- A wider transfer family. Frozen designs are scored in 17 regimes and 3 tasks. Where the explicit and compiled optimal sets coincide, transfer is identical, as it must be. In the one cell where the lattice makes them differ, neither set dominates. With a free stage index the sets always differ, by a proved consequence of the rule "guess 0 on a tie", and coincide once either guess is allowed on a tie.
No leg shows an advantage for the explicit class, and no leg shows a cost that survives a finer lattice or a neutral tie rule. Every general statement is proved in Part I; every other statement is an exact computation on the stated instances. Nothing here concerns cognition or consciousness.
1. Status and how to read this note
- Contract.
CONTRACT.mdv0.1, SHA-2564a8fd719…e76d, written and frozen on 19 November 2026 before any code of this folder existed. Brian set the four directions and the method; unlike the original's contract, this one was not reviewed by him before the computations.AMENDMENTS.mdlists five clarifications made before the affected numbers existed, the events of an interrupted first run, and the additions made after outcomes were seen. None changes a model, class, parameter point, budget or decision rule. - Three kinds of statement. Each claim is marked [proved] (complete proof in Part I), [computed] (exact finite computation in Part II; a fact about the stated instances only) or [conjectured].
- Words. As in the original: a controller is an initial state, an update rule and a guess rule; its behaviour is its guess after each residual history within the horizon; explicit means the machine properties defined in Section 2 and nothing more.
2. Setting, and what each leg declares
Model (the original's). Polarity θt ∈ {0,1}, θ0 fair, θt+1 = θt ⊕ Dt+1 with the D's independent Bernoulli(h). At step t the controller issues a guess ut from its memory Mt; the residual xt = θt ⊕ et arrives, et independent Bernoulli(ε); the action fails when ut ≠ xt; the memory is updated from (Mt, xt). 0 < h < 1/2, 0 < ε < 1/2. Loss J = (1/T)·Σt Pr(ut ≠ xt). Budget: at most K persistent states at every step boundary. Convention C: the stage index is public and free. Convention H: there is no stage index.
Classes (the original's). G(K): every sequence of K-state tables (C). Ecal(K): calibrated belief registers with monotone rounding, guessing the more probable polarity, 0 on a tie (C). S(K): every single pair of K-state tables (H). E(K): fixed-grid belief registers with K levels from {1/50,…,49/50} (H). M(K): ordered-state automata (H). Points P1: h = 1/10, ε = 1/5. P2: h = 1/20, ε = 3/10.
Notation. ρ = ε + h − 2εh = Pr(xt−1 ≠ θt). U(b, x) is the Bayes update of b = Pr(θ = 1) on residual x, H(b) = (1−h)b + h(1−b), gx = H∘U(·, x). "LR" is the two-state controller that guesses the last residual.
The four legs.
| Leg | Question | Declared in advance |
|---|---|---|
| 1 | Are the original's clocked optima at K = 3, 4 right? | A second search with different traversal and enumeration; confirmed iff the rational values are equal. |
| 2 | Does S(K) = M(K) = E(K) hold beyond K ≤ 4, T = 8, two points? | 30 parameter points, K = 2,…,6, T = 2,…,16 (and 24, 32 for K ≤ 5); K = 7 attempted at P1, P2. Per cell: equivalence, cost, or dependence on the formalization, by the original's rule. |
| 3 | What if the stage index is metered instead of free or absent? | Table budget R: R table pairs used cyclically. GR(K) against its calibrated-register subclass ERcal(K), at P1 and P2, T = 8. Per cell: equivalence or cost. |
| 4 | Do frozen designs still transfer identically over a wider family? | 17 regimes (asymmetric flips and noise, other noise levels, biased start, bursty noise, a disconnecting three-state actuator, a scheduled change, two hazard levels) × 3 tasks; the original's Leg B rule per design cell. |
By the original's Propositions 2 and 3, in every leg the explicit class is a subset of the compiled class at the same budget, so an advantage on the design regime is impossible, and a transfer advantage is possible only at a strict design cost.
Part I. General claims and proofs
The original's Proposition 1 is used throughout: for every controller and every t, Pr(ut ≠ xt) = ε + (1−2ε)·pt with pt = Pr(ut ≠ θt). So the loss is an increasing affine function of the pt, and the best guess is the more probable polarity.
Two elementary facts are also used. (F1) θt is a fair bit for every t, and xt−1 ⊕ θt = et−1 ⊕ Dt is independent of (x0,…,xt−1) and equals 1 with probability ρ. (F2) U(b, 1) > 1/2 exactly when b > ε, and H keeps a belief on its side of 1/2; so g1(b) > 1/2 when b > ε, and symmetrically for residual 0 and the belief in polarity 0.
Proposition 1 (two states, no stage index) [proved]
For every horizon T ≥ 1 and all 0 < h < 1/2, 0 < ε < 1/2, guessing the last residual is optimal among all two-state controllers without a stage index:
J(S(2)) = (1/T)·[1/2 + (T−1)·(ε + (1−2ε)ρ)].
Proof. p0 = 1/2 for every controller. For LR, ut = xt−1, so pt = ρ for t ≥ 1 by F1, which gives the displayed value. It remains to show pt ≥ ρ for every two-state table pair and every t ≥ 1. Note ρ = 1/2 − (1−2ε)(1−2h)/2 ≤ 1/2.
If the guess table is constant, pt = 1/2. Otherwise name each state by its guess, so that ut is the state and ut+1 = φut(xt), where each φm is one of: copy (x), invert (1−x), stay (the constant m) or leave (the constant m̄, the other state). Then pt+1 = Σm Pr(ut = m)·Pr(φm(xt) ≠ θt+1 | ut = m). By F1 a copy state contributes conditional error exactly ρ and an invert state 1−ρ ≥ ρ, whatever ut is.
- No constant state. pt+1 ≥ ρ by the last sentence.
- Two constant states. The state sequence is deterministic, so pt = 1/2.
- One constant state m, which stays, and the start is m. The guess is constant: pt = 1/2. In the remaining cases m̄ is the other state.
- m stays, m̄ copies, start m̄. Then ut = m exactly when some earlier residual equalled m. Split that event by the first such time s ≤ t−1: Fs = {x0 = … = xs−1 = m̄, xs = m}. After a run of residuals m̄ from a fair prior the belief in m is at most 1/2 (each update on m̄ lowers it and H maps [0, 1/2] into itself), so after the residual m it is at most 1−ε. Given Fs, θt+1 is θs followed by t+1−s ≥ 2 independent flips, so Pr(θt+1 = m | Fs) − 1/2 ≤ (1−2h)(1/2 − ε) = 1/2 − ρ. Hence the stay state contributes conditional error at least ρ, and the copy state exactly ρ.
- m stays, m̄ inverts, start m̄. Then ut+1 = m̄ exactly on G = {x0 = … = xt = m}. Compare with the constant guess m, whose error is 1/2: the two differ only on G, so pt+1 = 1/2 + Pr(G)·[Pr(θt+1 = m | G) − Pr(θt+1 = m̄ | G)] ≥ 1/2, because after a run of residuals m the belief in m is at least 1/2.
- m leaves, m̄ copies. Then ut+1 = m exactly when ut = m̄ and xt = m. Compare with LR: the guesses differ only on At = {ut = m, xt = m}, where the controller says m̄, so pt+1 = ρ + Pr(At)·[2·Pr(θt+1 = m | At) − 1]. Let bt = Pr(θt = m | ut = m̄). Claim: bt ≥ ρ whenever the condition has positive probability. For t = 0 it is 1/2. For t ≥ 1 the event {ut = m̄} is the disjoint union of {xt−1 = m̄}, on which the belief in m is ρ by F1, and {xt−1 = m, ut−1 = m}. For t = 1 the latter is empty if the start is m̄ and is {x0 = m} if the start is m (belief 1−ρ); for t ≥ 2 it is {xt−1 = xt−2 = m, ut−2 = m̄}, on which the belief is bt−2 ≥ ρ > ε updated twice on residual m, hence above 1/2 by F2. A mixture of beliefs that are each at least ρ is at least ρ. Now A0 = {x0 = m} gives Pr(θ1 = m | A0) = 1−ρ ≥ 1/2, and for t ≥ 1, At = {ut−1 = m̄, xt−1 = xt = m}, on which the belief in m is bt−1 > ε updated twice on residual m, above 1/2. So pt+1 ≥ ρ.
- m leaves, m̄ inverts. Then ut+1 = m exactly when ut = m̄ and xt = m̄. Compare with the constant guess m̄ (error 1/2): they differ only on Bt = {ut = m̄, xt = m̄}, where the controller says m, so pt+1 = 1/2 + Pr(Bt)·[2·Pr(θt+1 = m̄ | Bt) − 1]. Let ct = Pr(θt = m̄ | ut = m̄). The event {ut = m̄} is the disjoint union of {xt−1 = m} (belief in m̄ equal to ρ) and {xt−1 = m̄, ut−1 = m}, which for t = 1 is empty or {x0 = m̄} according to the start, and for t ≥ 2 is {xt−1 = xt−2 = m̄, ut−2 = m̄}; as in the previous case ct ≥ ρ > ε by induction. Then Pr(θt+1 = m̄ | Bt) is ct > ε updated on residual m̄, above 1/2, and pt+1 ≥ 1/2.
These cases cover the sixteen pairs (φ0, φ1) and both start states. ∎
The proof compares each table with LR or with a constant guess on the event where they differ. It does not extend as it stands to K ≥ 3, where a state can hold more than the last residual.
Proposition 2 (K = 2: the three classes agree, up to the lattice) [proved]
LR is an ordered-state automaton, so J(M(2)) = J(S(2)) for every T, h and ε. If ε < 12/25, LR is the fixed-grid register with levels 24/50 and 26/50, so J(E(2)) = J(S(2)) as well.
Proof. The table f(m, x) = x with guess m is monotone in m, never sends residual 1 lower than residual 0, and has a threshold guess. For the grid: U(12/25, 1) > 1/2 exactly when (12/25)(1−ε) > (13/25)ε, that is ε < 12/25; then g1(12/25) > 1/2 and its nearest level is 26/50. Since U(12/25, 0) < 1/2, g0(12/25) < 1/2 and its nearest level is 24/50. The level 26/50 is symmetric. The start is the level nearest 1/2; the two levels tie and the lower index wins. The induced machine moves to the upper level on residual 1 and to the lower on residual 0, and guesses 1 on the upper level: LR. ∎
For 12/25 ≤ ε < 1/2 the lattice {1/50,…,49/50} need not contain a grid that induces LR (II.2: it has none at 12 of the 18 such points tried). That is a property of the lattice spacing, not of grids as such.
Proposition 3 (table budgets are nested) [proved]
If R divides R′, or R′ ≥ T, every behaviour of GR(K) is a behaviour of GR′(K), and likewise for ERcal(K). G1(K) has exactly the behaviours of S(K); for R ≥ T, GR(K) = G(K) and ERcal(K) = Ecal(K). Hence for every R:
J(G(K)) = J(Ecal(K)) ≤ J(GR(K)) ≤ J(ERcal(K)), and J(GR(K)) ≤ J(S(K)).
Proof. Repeating a cycle of R tables R′/R times gives a cycle of R′ tables with the same behaviour; with R′ ≥ T every sequence of T tables is allowed. Membership in ERcal(K) is a condition on the laws and guesses along the horizon, which the repetition does not change. For R = 1 rename the states so that the start is 0. The first equality is the original's Theorem 7; the inequalities are inclusions. ∎
J(GR(K)) need not be monotone between values of R that do not divide each other.
Proposition 4 (membership in ERcal(K) is decided by the update tables) [proved]
Fix K, R, T and a cycle of update tables f = (f0,…,fR−1) with start state 0. They determine the calibrated beliefs bt(m) of all states of positive probability. Let γt(m) be the more probable polarity under bt(m), 0 on a tie, and let J*(f) be the least loss over all guess tables. Then some choice of guess tables puts the controller in ERcal(K) if and only if
- for every t < T−1, ft mod R restricted to the atoms of positive probability at step t is a monotone rounding of their beliefs, and
- for every residue r and state m, γt(m) is the same for all t ≡ r (mod R) at which m has positive probability.
In that case the loss of the member is J*(f). So J(ERcal(K)) is the minimum of J*(f) over the cycles satisfying 1 and 2. For the tie-tolerant class, condition 2 ignores the steps at which bt(m) = 1/2.
Proof. The beliefs depend only on the update tables, and conditions 1 and 2 restate the definition, the guess table at residue r being forced to γ on every state that is ever occupied at that residue. At each step, γt(m) minimises the failure probability on {Mt = m} (the original's Proposition 1), also on a tie. A guess that minimises every term of a sum minimises the sum, so the forced guess table attains the least loss over guess tables. ∎
Proposition 5 (mirror images and the tie rule) [proved]
The mirror μπ of a controller π exchanges the two residual values in every update table and complements every guess. In the design model, for every K, R and T:
- J(μπ) = J(π); the calibrated beliefs of μπ are one minus those of π; μ preserves the number of states, the table budget, the monotone-rounding property, and membership in S(K), GR(K), G(K) and the tie-tolerant class Ecal~(K).
- No member of Ecal(K) has its mirror in Ecal(K).
- Therefore the design-optimal sets satisfy AG(K) ⊇ AEcal(K) ∪ μ(AEcal(K)), a disjoint union, and AEcal(K) is a proper subset of AG(K) for every K ≥ 1 and T ≥ 1.
- In a regime and task that are themselves symmetric under exchanging the polarities, π and μπ have the same loss.
Proof. (1) The map that complements every θt and xt preserves the law of the design model. On a residual sequence x, μπ passes through the states that π passes through on the complemented sequence x̄, and guesses the complement; so μπ fails at step t on x exactly when π fails at step t on x̄, and x̄ has the law of x. The same substitution shows that the belief in polarity 1 at a state of μπ is the belief in polarity 0 at that state of π. An atom (m, x) of μπ has one minus the belief of the atom (m, 1−x) of π and goes to the same cell; reversing an order preserves betweenness, so a monotone rounding stays monotone. The more probable polarity is exchanged with the beliefs. (2) At step 0 the belief is 1/2, so a member of Ecal(K) guesses 0 and its mirror guesses 1. (3) By the original's Theorem 7, AEcal(K) is non-empty and inside AG(K); AG(K) is closed under μ by (1); apply (2). (4) is the argument of (1) in that regime. ∎
So the clocked explicit and compiled optimal sets can never coincide as sets: the rule "0 on a tie" removes the mirror image of every calibrated register. This is a consequence of a tie-breaking convention, and II.4 separates it from everything else by also reporting the tie-tolerant class.
Bounds used by the computation [proved]
For every K and T, J_∞ ≤ J(S(K)) ≤ min(J(S(K−1)), J(M(K))) and J(M(K)) ≤ J(E(K)), where J_∞ is the loss of the exact Bayes filter. These are inclusions (the original's Proposition 4). When the two ends coincide, J(S(K)) is known without a search. If ε ≤ h, J_∞ is the loss of LR at every horizon (the original's Proposition 8).
Part II. Exact finite computations
II.1 Method and checks
All reported values and all comparisons are exact (integers over a stated common denominator, or exact fractions). Decimals are for reading only; exact values are in results/.
Float filter. Three searches are too large to evaluate every member exactly: S(K) for K = 5, 6, 7, GR(K) for R ≥ 2, and E(K) is enumerated with integer index arithmetic. For S(K) and GR(K) a floating-point pass computes every member's loss; every member within 10⁻⁹ of the smallest float value (or of an exact upper bound, see AMENDMENTS.md C3) is then evaluated exactly, and minima and optimal sets are taken over those. The float pass uses only sums and products of nonnegative numbers, so a member outside the margin cannot be optimal. E(K) and M(K) are evaluated exactly member by member.
Gates (code/gates.py; all passed; see AMENDMENTS.md A5 for when each was run).
- The original's S(K) and E(K) values at P1 and P2 for T = 8 and at P1 for T = 16, K = 2, 3, 4: 18 comparisons, all equal.
- A plain exact enumeration of all K2K tables at P1, T = 8, K = 2, 3, 4 agrees with the filtered search over tables up to renaming.
- J(E) ≥ J(M) ≥ J(S) ≥ J_∞ and J(S(K)) nonincreasing in K in all 2,490 cells.
- At the fifteen control points (ε ≤ h), J(S(K)) equals the two-state value for every K and T (1,245 cells), and equals J_∞ for T ≤ 16.
- Leg 3: R = 8 at K = 2 reproduces the original's G(2) values; R = 1 reproduces Leg 2's S(K) for K = 2,…,5 by a different enumeration (all tables against tables up to renaming); values are nonincreasing along R = 1, 2, 4, 8 and never below the clocked optimum.
- Leg 4: the original's Leg B table (frozen counters, K = 2, 3, 4, four held-out regimes) is reproduced exactly.
Independent check (code/check.py, which shares no code with the searches).
- Leg 2. For all 20 non-equivalence cells and all 297 further cells with T = 8 or 16, the stored witnesses are re-evaluated (for T ≤ 8 by literal summation over every polarity path and noise word, above that by a joint recursion in exact fractions): the table attaining J(S(K)), the grid attaining J(E(K)), rebuilt from its levels by the original's rule, and in non-equivalence cells the ordered automaton attaining J(M(K)), tested against the definition. 654 evaluations, no disagreement. In both groups of non-equivalence cells the minimum over E(K) is re-searched over all grids by separate code: it finds the same number of distinct machines (601 and 13,644) and the same minimum at all 20 horizons.
- Leg 3. For each of the 18 cells the stored optimal sequence is re-evaluated by literal summation, and its membership in ERcal(K) is re-decided from the definition, with the calibrated beliefs taken from that sum. No disagreement.
- Leg 4. All 714 intervals (14 design cells × 51 pairs) are recomputed from the marginal law of residual sequences, with the seventeen regimes coded a second time from the contract text; each stored clocked compiled tree is checked to need at most K states at every step, and every stored behaviour to have the stated design loss. No disagreement.
- K = 7. The three stored witness tables are re-evaluated; the grid phase was run twice by two code paths (unsplit and split by lowest level) with identical results.
- K = 2. The 81-point run of
code/k2_wide.pyis a numerical check of Proposition 1. - Second complete run (20 November 2026,
rerun-20261120/). Every script was run again, unchanged, from an empty results folder, in one uninterrupted pass on the same machine. Of the 45 output files, 44 are equal to the first run's once wall-clock times are removed (nine of them byte for byte): every loss value, finding, count, stored witness, optimal set and transfer interval. The 45th,leg2_lattice100.json, has the same thirteen values and machine count and a different example grid, because several machines tie at the optimum and the script keeps whichever a worker process returns first; both grids were re-evaluated exactly and attain J(S(5)) at all thirteen horizons. Gates and the independent check pass on the second run's outputs. This shows that the outputs are reproducible from the code; it is the same code on the same machine, so it does not add a second search.
What still rests on one search. The minimality of J(S(K)) for K = 5, 6, 7 (one canonical enumeration with the float filter; for K = 5 the full enumeration of all 5¹⁰ tables in Leg 3 agrees at P1 and P2, T = 8). The minimality of J(GR(K)) for R = 2 at K = 3, 4. The completeness of the optimal sets used in Leg 4.
II.2 Leg 1: the clocked optima, searched a second time
| Point | K | min J over Ecal(K) at T = 8, second search | Original | |
|---|---|---|---|---|
| P1 | 2 | 23333551859/62500000000 ≈ 0.373337 | same | confirmed |
| P1 | 3 | 23084432939/62500000000 ≈ 0.369351 | same | confirmed |
| P1 | 4 | 11433709/31250000 ≈ 0.365879 | same | confirmed |
| P2 | 2 | 3446376064177/8000000000000 ≈ 0.430797 | same | confirmed |
| P2 | 3 | 3382302251281/8000000000000 ≈ 0.422788 | same | confirmed |
| P2 | 4 | 1685324203913/4000000000000 ≈ 0.421331 | same | confirmed |
[computed] The second search (code/leg1_research.py) lists every law reachable by monotone roundings layer by layer, removes duplicates globally, and works backwards; it generates roundings by filtering all set partitions with the Ecal condition; it uses no shortcut at the last step. At K = 4 it stores 22,834 distinct laws at step 5 for P1 and 52,477 for P2, and expands the last two steps from each. The number of distinct laws at step 4 for P1, K = 4 is 1,303, the number the original's log also reports.
Independence here is of code, enumeration and traversal. Both searches implement the same recursion, and the second was written after reading the first.
II.3 Leg 2: S(K), M(K) and E(K) without a stage index
Coverage of the grid. 30 parameter points (h ∈ {1/50, 1/20, 1/10, 1/5, 3/10, 2/5}, ε ∈ {1/20, 1/10, 1/5, 3/10, 2/5}); K = 2,…,6; T = 2,…,16, and T = 24, 32 for K ≤ 5: 2,490 cells. The tables enumerated per point are 12, 216, 5,248, 160,675 and 5,931,540 for K = 2,…,6 (initially connected tables up to renaming) and C(49, K) grids. In 1,525 cells the bounds of Part I already fix J(S(K)) (all 1,245 control cells and 280 others).
Findings [computed].
| K | Cells | Equivalence: J(E) = J(S) | Depends on the formalization: J(M) = J(S) < J(E) | Cost: J(M) > J(S) |
|---|---|---|---|---|
| 2 | 510 | 510 | 0 | 0 |
| 3 | 510 | 510 | 0 | 0 |
| 4 | 510 | 510 | 0 | 0 |
| 5 | 510 | 497 | 13 | 0 |
| 6 | 450 | 443 | 7 | 0 |
- No cell shows a cost of ordered-state organization: wherever M(K) was needed it attains the compiled optimum.
- The 20 cells that are not equivalences are: h = 1/50, ε = 1/20, K = 5 at T = 6,…,16, 24, 32 (gap J(E) − J(S) from 2.0·10⁻⁵ to 1.4·10⁻⁴); and h = 1/5, ε = 3/10, K = 6 at T = 10,…,16 (gap from 3.2·10⁻⁷ to 1.4·10⁻⁶).
- Both groups disappear on a finer lattice. With levels from {1/100,…,99/100}: for the 13 cells at K = 5 the exhaustive search over all C(99, 5) grids gives exactly J(S(5)) at every horizon (for example with levels 0.02, 0.11, 0.49, 0.88, 0.99 at T = 8; the second run stored another attaining grid, 0.04, 0.20, 0.69, 0.93, 0.99). For the 7 cells at K = 6 a targeted search (
AMENDMENTS.mdA3) finds the grid 0.44, 0.56, 0.61, 0.69, 0.70, 0.71, whose register attains J(S(6)) at T = 10,…,16. So in every one of the 2,490 cells some fixed-grid register attains the compiled optimum; in 20 of them the declared lattice of fiftieths is too coarse to contain one.
K = 2. Proposition 1 proves that LR is optimal for all T, h and ε. As a check, code/k2_wide.py evaluates all sixteen tables exactly at 81 points (h from 1/1000 to 9/20, ε from 1/100 to 49/100) and every horizon 2 to 64: LR is optimal in all 5,103 cases. The lattice class E(2) attains it at the 63 points with ε < 12/25 (Proposition 2) and at 6 of the 18 points with ε ≥ 12/25; at the other 12 it falls short at every horizon.
The saturating counter is not the optimum in general [computed]. The original found the K-state counter optimal in every cell it computed (K ≤ 4). Over the fifteen non-control points:
| K | Cells where S(K) improves on S(K−1) | of which the K-state counter attains J(S(K)) |
|---|---|---|
| 2 | 255 | 255 |
| 3 | 180 | 180 |
| 4 | 191 | 175 |
| 5 | 204 | 51 |
| 6 | 162 | 30 |
At P1 the five-state counter (0.371105 at T = 8) is worse than the four-state one (0.368568), while the best five-state table reaches 0.366087. Where the counter fails, the optimum is still a fixed-grid register; it is not a counter because some residuals move it two or three places.
P1 and P2, T = 8 (exact).
| K | P1: J(S(K)) = J(M(K)) = J(E(K)) | P2: J(S(K)) = J(M(K)) = J(E(K)) |
|---|---|---|
| 2 | 187/500 = 0.374000 | 437/1000 = 0.437000 |
| 3 | 23185010009/62500000000 ≈ 0.370960 | 3441013650877/8000000000000 ≈ 0.430127 |
| 4 | 89982392/244140625 ≈ 0.368568 | 422087862767/1000000000000 ≈ 0.422088 |
| 5 | 4576092493/12500000000 ≈ 0.366087 | 421438112717/1000000000000 ≈ 0.421438 |
| 6 | 11417685589/31250000000 ≈ 0.365366 | 3370882586881/8000000000000 ≈ 0.421360 |
| ∞ | 11417685589/31250000000 ≈ 0.365366 | 67346443277/160000000000 ≈ 0.420915 |
Rows 2 to 4 are the original's values. At T = 16: P1 0.365000, 0.361398, 0.355656, 0.354112, 0.35315839 (K = ∞: 0.35315834; the difference is 4.9·10⁻⁸); P2 0.432500, 0.423250, 0.409921, 0.409510, 0.409066 (K = ∞: 0.407743).
- At P1 six states attain the unbounded-memory loss for every T ≤ 12 (exact equality with J_∞), and not for T = 13,…,16. The optimal six-state table at T = 8, with the states in the order of their grid levels 0.08, 0.24, 0.32, 0.52, 0.66, 0.84 and written (next state on residual 0, next state on residual 1): (0, 2), (0, 3), (1, 4), (1, 4), (2, 5), (3, 5); start at the fourth state; guess 1 on the upper three.
- The optimal five-state table at P1, T = 8, on levels 0.04, 0.36, 0.52, 0.66, 0.84: (0, 1), (0, 3), (1, 3), (1, 4), (2, 4); start at the third; guess 1 on the upper three. Its mirror image is the other optimal behaviour.
- At h = 3/10, ε = 2/5 two states attain J_∞ at every T ≤ 16 although ε > h; the condition of the original's Proposition 8 is sufficient, not necessary.
K = 7 (attempted). All 256,182,290 seven-state tables up to renaming and all C(49, 7) = 85,900,584 grids (98,169 distinct machines at P1 and 105,391 at P2) were searched at P1 and P2 for T = 8 and 16. [computed]
| Point | T | J(S(7)) = J(E(7)) | J(S(6)) | Finding |
|---|---|---|---|---|
| P1 | 8 | 11417685589/31250000000 ≈ 0.365366 | the same value, which is J_∞ | equivalence (no search needed for S(7)) |
| P1 | 16 | 1379524961897291036069/3906250000000000000000 ≈ 0.35315839 | the same value | equivalence |
| P2 | 8 | 210626654371/500000000000 ≈ 0.421253 | ≈ 0.421360 | equivalence |
| P2 | 16 | 52297383367424766185701957/128000000000000000000000000 ≈ 0.408573 | ≈ 0.409066 | equivalence |
At P1, T = 16 no seven-state table improves on the six-state optimum, although the unbounded-memory loss is lower by 4.9·10⁻⁸. At P2 the seventh state helps at both horizons. The seven-state counter is optimal in none of the four cells.
II.4 Leg 3: a metered stage index
A controller with table budget R uses table pair t mod R at step t. T = 8. The size is R·(2K⌈log₂K⌉ + K) bits. [computed]
| Point | K | R | Bits | J(GR(K)) | J(ERcal(K)) | Finding |
|---|---|---|---|---|---|---|
| P1 | 2 | 1 | 6 | 187/500 = 0.374000 | equal | equivalence |
| P1 | 2 | 2 | 12 | 23333551859/62500000000 ≈ 0.373337 | equal | equivalence |
| P1 | 2 | 4 | 24 | ≈ 0.373337 (same value) | equal | equivalence |
| P1 | 2 | 8 | 48 | ≈ 0.373337 (same value; the original's G(2)) | equal | equivalence |
| P1 | 3 | 1 | 15 | 23185010009/62500000000 ≈ 0.370960 | equal | equivalence |
| P1 | 3 | 2 | 30 | 23152389959/62500000000 ≈ 0.370438 | equal | equivalence |
| P1 | 4 | 1 | 20 | 89982392/244140625 ≈ 0.368568 | equal | equivalence |
| P1 | 4 | 2 | 40 | 714670861/1953125000 ≈ 0.365911 | equal | equivalence |
| P1 | 5 | 1 | 35 | 4576092493/12500000000 ≈ 0.366087 | equal | equivalence |
| P2 | 2 | 1 | 6 | 437/1000 = 0.437000 | equal | equivalence |
| P2 | 2 | 2 | 12 | 3446376064177/8000000000000 ≈ 0.430797 | equal | equivalence |
| P2 | 2 | 4 | 24 | ≈ 0.430797 (same value) | equal | equivalence |
| P2 | 2 | 8 | 48 | ≈ 0.430797 (same value; the original's G(2)) | equal | equivalence |
| P2 | 3 | 1 | 15 | 3441013650877/8000000000000 ≈ 0.430127 | equal | equivalence |
| P2 | 3 | 2 | 30 | 3382302251281/8000000000000 ≈ 0.422788 | equal | equivalence |
| P2 | 4 | 1 | 20 | 422087862767/1000000000000 ≈ 0.422088 | equal | equivalence |
| P2 | 4 | 2 | 40 | 1685324203913/4000000000000 ≈ 0.421331 | equal | equivalence |
| P2 | 5 | 1 | 35 | 421438112717/1000000000000 ≈ 0.421438 | equal | equivalence |
In all 18 cells at least one optimal sequence of tables is a calibrated belief register with monotone rounding under the strict tie rule, so J(ERcal(K)) = J(GR(K)); the tie-tolerant class gives the same values. The search sizes run from 16 sequences to 183,173,120 (K = 4, R = 2).
Read with Proposition 3 and the original's clocked optima (P1: 0.373337, 0.369351, 0.365879; P2: 0.430797, 0.422788, 0.421331 for K = 2, 3, 4):
- At P2 two tables already give the whole value of a free stage index for K = 2, 3 and 4: J(G2(K)) equals the clocked optimum exactly.
- At P1 that holds for K = 2. For K = 3 two tables give 0.000522 of the 0.001609 available; for K = 4 they give 0.002657 of 0.002689.
- At P1 with no stage index at all, the calibrated register is also the optimum for K = 5 (the five-state table of II.3).
Not measured: description length in a programming language and operations per step (see Section 5).
II.5 Leg 4: transfer over a wider family
Seventeen regimes: the original's four (R1 no change, R2 flips at 1/20, R3 flips at 1/5, R4 single change), asymmetric flips (R5, R6), noise that depends on the polarity (R7, R8), noise levels 1/10, 3/10, 2/5 (R9–R11), a biased start (R12, R13), bursty noise (R14), an actuator with a third, disconnected state (R15), a scheduled change (R16) and two hidden hazard levels (R17). Three tasks: τ1 the design loss; τ2 unequal failure costs (3 to 1); τ3 scoring the guess against the residual one step later. 51 regime–task pairs per design cell. Exact definitions are in CONTRACT.md; all values in results/leg4.json.
Convention H, designs frozen at P1 and P2, T = 8 [computed].
| Design point | K | Optimal behaviours of E(K) / S(K) | Sets equal | Finding |
|---|---|---|---|---|
| P1 | 2, 3, 4, 5, 6 | 2 / 2 each | yes | transfer-identical |
| P2 | 2, 3, 4, 5 | 2 / 2 each | yes | transfer-identical |
| P2 | 6 | 4 / 4 | yes | transfer-identical |
In these ten cells the explicit and compiled design-optimal sets are the same set (a behaviour and its mirror image; two such pairs at P2, K = 6), so every interval agrees in all 51 pairs. By the original's Proposition 3 this was forced once the sets coincided; the family could not separate the classes here.
Convention H, the one design cell where the sets differ [computed]. h = 1/50, ε = 1/20, K = 5, T = 8: the lattice register's best design loss is 11457383492257/78125000000000 ≈ 0.146655 against the compiled 2863379371/19531250000 ≈ 0.146605, a design cost of 4.9·10⁻⁵ that II.3 attributes to the lattice. Each class has two optimal behaviours. The explicit set is strictly better in 16 of the 51 pairs, the compiled set in 8, and the intervals overlap in 27.
- Explicit better (τ1 and τ3 in each): flips at 1/20 and 1/5, single change, bursty noise, disconnecting actuator, scheduled change, two hazard levels; and τ1 under asymmetric flips. Largest margin: scheduled change, τ1, 0.35279 against 0.35770.
- Compiled better (τ1 and τ3 in each): no change, and the three other noise levels. Largest margin: noise 3/10, τ1, 0.41079 against 0.41193.
- The best tables differ in one entry. With the five states in order, the compiled optimum moves one place inward from either end state on a contrary residual. The lattice register does so from one end only; from the other end a contrary residual moves it two places, to the middle state (its mirror image is the second optimal lattice register). It therefore gives up a settled belief sooner on that side, which helps when change is more frequent than the design rate of 1/50 and hurts when there is none.
Finding under the frozen rule: no dominance. This is the pattern the original's Proposition 3 allows (better transfer in some regimes at a strict design cost), but it holds in only some regimes, and its cause is the lattice spacing.
Convention C, designs frozen at P1 [computed].
| K | T | Design loss | Optimal behaviours: Ecal(K) / Ecal~(K) / G(K) | Finding with Ecal(K) | With the tie-tolerant class |
|---|---|---|---|---|---|
| 2 | 8 | 23333551859/62500000000 | 2 / 4 / 4 | nested, not identical (27 of 51 pairs differ) | sets equal; transfer-identical |
| 3 | 6 | 11764477/31250000 ≈ 0.376463 | 2 / 4 / 4 | nested, not identical (27 of 51) | sets equal; transfer-identical |
| 4 | 5 | 5936/15625 = 0.379904 | 1 / 2 / 2 | nested, not identical (27 of 51) | sets equal; transfer-identical |
- In all three cells AG(K) is exactly AEcal(K) together with its mirror images, and equals the optimal set of the tie-tolerant class. Every design-optimal compiled controller is a calibrated register with monotone rounding, up to the guess on a tie.
- The 27 pairs that differ are τ2 in all seventeen regimes, τ1 and τ3 under polarity-dependent noise and biased start, and τ3 under asymmetric flips. In every one the explicit interval lies inside the compiled one, as nesting requires. In 22 pairs the compiled interval extends upward only, and in 5 downward only (R6 τ3, R8 τ1 and τ3, R12 τ1 and τ3). The extra compiled controllers are the mirror images, whose first guess is 1: they do worse where the asymmetry favours polarity 0 or guess 0, and better where it favours 1. Two examples at K = 2: R1 under τ2, explicit [0.285502, 0.297358], compiled [0.285502, 0.359858]; R12 (start 9/10 on polarity 1) under τ1, explicit [0.398881, 0.407793], compiled [0.338881, 0.407793].
- Proposition 5 says this must happen in every cell: the strict tie rule excludes the mirror image of each calibrated register. It is an effect of a tie-breaking convention on which of two mirror-image designs is admitted.
3. Verdict per direction, under the frozen rules
Direction 1, independent re-search: confirmed. All four reported optima at K = 3, 4 (and both at K = 2) are reproduced exactly by a second exhaustive search. [computed]
Direction 2, scope in K and T without a stage index: proved for K = 2; not general as declared for K ≥ 5, and the exceptions are lattice artefacts.
- K = 2: guessing the last residual is optimal for every horizon and every parameter value, and it is an ordered-state automaton and, for ε < 12/25, a fixed-grid register. [proved] (Propositions 1 and 2.)
- K = 3, 4: equivalence, J(E(K)) = J(S(K)), in all 1,020 cells. [computed]
- K = 5, 6: equivalence in 940 of 960 cells; "depends on the formalization" in 20; cost in none. The contract's label for the direction is therefore not general: a (K, T, parameter) point where the explicit class E(K), as declared on the lattice of fiftieths, is strictly worse than S(K) exists (first at K = 5, h = 1/50, ε = 1/20, T = 6). [computed]
- In each of those 20 cells a fixed-grid register on the lattice of hundredths attains J(S(K)), and the ordered-state class M(K) attains it on the spot. So nothing found is a cost of explicit organization; what was found is a limit of the declared lattice. [computed]
- The original's description of the optimum as the K-state saturating counter does not extend: from K = 5 the counter is usually not optimal, although the optimum is still a fixed-grid register. [computed]
- K = 7: equivalence in the four cells attempted (P1 and P2 at T = 8 and 16). [computed]
- Whether J(M(K)) = J(S(K)) for every K, T, h and ε is open. [conjectured, on the evidence of 2,490 cells with no exception]
Direction 3, a further resource limit: equivalence in all 18 cells. With the stage index metered to R table pairs, the calibrated belief register attains the compiled optimum for every (K, R) computed at P1 and P2. The contract's label: equivalence persists under a metered stage index. [computed] No theorem covers 1 < R < T, or R = 1.
Direction 4, transfer over a wider family: not identical in every cell; no advantage.
- Convention H, ten design cells at P1 and P2: transfer-identical, because the optimal sets coincide. [computed; forced by the original's Proposition 3 once the sets coincide]
- Convention H, the one cell with different optimal sets: no dominance (explicit strictly better in 16 of 51 regime–task pairs, compiled in 8), at a design cost of 4.9·10⁻⁵ that comes from the lattice. [computed]
- Convention C, three design cells: nested, not identical. The difference is the rule "0 on a tie" and nothing else: with either guess allowed on a tie the optimal sets are equal and transfer is identical. [computed] That the strict rule always yields a proper subset is [proved] (Proposition 5).
- Under the frozen rule an advantage needs the explicit set to transfer-dominate in some cell. It does in none.
Taken together. In every cell of every leg the explicit class either attains the compiled optimum, or misses it for a reason traced to a discretisation or tie-breaking convention in its definition. No leg shows an advantage for the explicit class, which the original's Propositions 2 and 3 already limit to transfer at a design cost. The one place where an explicit design transfers better in some regimes is the lattice-limited cell, and there it also transfers worse in others.
Against what was written before computing (the contract's "expected" paragraphs).
- Foreseen and confirmed: K = 2 equality except where the lattice cannot express LR; the K-state counter ceasing to be optimal at K ≥ 5; that the Leg 4 family cannot separate classes whose optimal sets coincide; that AG(K) can contain optimal controllers AEcal(K) lacks.
- Foreseen as possible, not found: a strict cost of ordered-state organization at K ≥ 5; a cost of calibration at R < T.
- Not foreseen: that six states attain the unbounded-memory loss at P1 up to T = 12; that two tables give the whole value of the stage index at P2; that every optimal clocked compiled controller in the cells computed is a calibrated register up to the tie guess; that the proof for K = 2 needed all sixteen tables rather than being immediate.
4. Which machinery is standard
- Everything listed as standard in the original, Section 4, is used here in the same way.
- Proposition 1 is an elementary case analysis. Optimal finite-memory tracking of a binary Markov source has a literature this note did not survey; the result may be known.
- Counting initially connected automata up to renaming (12, 216, 5,248, 160,675, 5,931,540, 256,182,290 for 2 to 7 states over two input symbols) is classical, and the counts obtained agree with the published sequence as I recall it; I did not re-check the reference.
- Propositions 2 to 5 are elementary.
5. Scope, limits and claims not made
- One model family. A binary polarity observed through a binary residual. The wider family of Leg 4 changes the process the frozen controller meets, not what the controller observes or what the design model is.
- Sizes. K ≤ 6 on a 30-point grid with T ≤ 16 (32 for K ≤ 5); K = 7 at two points; Leg 3 at T = 8 with R ≤ 2 for K = 3, 4; clocked optimal sets at (K, T) = (2, 8), (3, 6), (4, 5) only. Only Propositions 1 to 5 are general.
- The freeze. The contract was frozen by the working session, not approved by Brian before the computations, and it was written by someone who knew every number of the original. The amendments made after outcomes were seen are listed and none changes a rule, but two results rest on choices made afterwards: the targeted finer-lattice search at K = 6 and the tie-tolerant comparison in Leg 4.
- What "explicit" was allowed to be. As in the original: in E(K) the levels are design parameters, not calibrated probabilities. Leg 2 shows in addition that the verdict for E(K) depends on how fine the lattice is, which the original's choice of fiftieths did not reveal at K ≤ 4.
- The further resource limit is one of several. The table budget meters the stage index. Description length in a programming language and operations per step were not measured: for objects this small the choice of language or machine decides the answer, and no encoding was found whose choice would not settle the comparison in advance. Energy, latency and learning cost are untouched.
- Transfer. Frozen tables meeting other processes and other scoring rules. Not compositional transfer to a different actuator interface, and not redesign under a new law.
- Determinism, one interface. Deterministic controllers; task loss only (τ2 and τ3 rescore the same guess). No confidence report.
- Searches that were not repeated. Listed in II.1. Leg 1's second search confirms values, not the complete optimal sets. The full pipeline was run twice with the same code on the same machine (II.1, last check): all values agree, and one stored example grid differs through a tie. A repeat run does not test the code itself; what rests on one search is unchanged.
- No cognitive, biological or consciousness claim. "Self-model" is a label for a machine property of a programmer-defined variable.
- No novelty or priority claim. This note may duplicate known results.
- Review. AI-assisted work with internal checks. Not external peer review and not a proof-assistant certificate. Proposition 1 in particular has been checked numerically but not read by a second person.
6. Reproduction
Python 3.10 with numpy 2.2 (numpy is used for the float filter and integer index arithmetic only); no random numbers; no network. From this folder, in this order:
| Command | Produces | Time here (twelve cores, shared with other work) |
|---|---|---|
python code/leg1_research.py |
Leg 1 | 3.5 min |
python code/leg2.py |
Leg 2 grid, results/leg2/, optimal sets for P1, P2 |
35 min (8 processes) |
python code/k2_wide.py |
K = 2 at 81 points, T ≤ 64 | 1 min |
python code/leg2_lattice100.py |
finer lattice, K = 5 cells, exhaustive | 11 min |
python code/leg2_lattice100_k6.py |
finer lattice, K = 6 cells, targeted | 1 min |
python code/leg2_k7.py |
K = 7 at P1, P2 | 43 min (10 processes; resumes from a saved state if interrupted) |
python code/leg3.py |
Leg 3 | 24 min (the two K = 4, R = 2 cells) |
python code/leg4_extra_sets.py |
optimal sets of the extra design cell | 1 min |
python code/leg4.py |
Leg 4 | about 10 min under load |
python code/gates.py |
gates | under 1 min |
python code/check.py |
independent check | about 10 min of processor time |
python code/summarize.py, python code/hashes.py |
results/summary.txt, HASHES.txt |
seconds |
Outputs and logs are in results/; SHA-256 values of every file are in HASHES.txt. results/leg2_extra/ holds the by-product of leg4_extra_sets.py (the recomputed grid point).
The times above are from the first run, which shared the machine with other work and was interrupted twice. The second run (python rerun-20261120/run_all.py, then python rerun-20261120/compare.py) took 81 minutes in all, with other work on the machine during its last half hour: Leg 1 under 3 minutes; Leg 2 together with Leg 3, 30 minutes; the finer lattice at K = 5, under 2 minutes; Leg 4, under 1 minute; K = 7 together with the gates and the independent check, 46 minutes. Its outputs, logs and the comparison are in rerun-20261120/.
References
- B-Theory. Explicit and compiled actuator trackers under a fixed memory budget. Working note v0.1, 16 November 2026, with its contract, amendments, code and results (
research/fixed-memory-comparison-20261116/). Propositions 1 to 4 and 8, Lemmas 5 and 6, Theorem 7. - B-Theory. When Does an Explicit Self-Model Help? Calibration and Control under Internal Change in a Finite-State Pilot. Manuscript, 14 October 2026. Section 7.
- The external references of the original (Tsitsiklis 1993; Ordentlich and Weissman 2006) are relied on only through the original; they were not consulted again.