A Coherent Cubical Algebra
for Unary Scaffold Histories
Expanded reading edition · 5 September 2026
Comparing two ways to rearrange a history
Suppose two legal sequences of changes turn one construction history into another. Knowing that they reach the same endpoint is useful. A stronger question asks whether we can explain their agreement by a small collection of local identities between sequences of changes. That is the meaning of coherence in this article.
The simplest identity swaps two independent moves. If one change affects an irrelevant label in row 2 and another affects an irrelevant label in row 5, their order does not matter. The two paths form a square. Three successive choices for one irrelevant label form a triangle: going through an intermediate value agrees with changing directly to the final value. Such identities explain all changes confined to a fixed set of irrelevant coordinates.
The complication is that relevance can change. Moving a record to a new construction time can make a previously irrelevant label visible. A valid identity must respect the guards under which each move is legal. Dropping those guards produces an easier algebra about different objects.
We work in the unary scaffold model: every node has one outgoing edge, and a construction step can copy the old top or its immediate endpoint, create a self-loop, or leave the edge missing. Even this small model distinguishes physical nodes, the behaviors they present, and the times at which useful behaviors are carried.
The timing geometry has a small example. Take a history of length five with three essential carriers and an ordinary terminal. The final carrier is fixed at time five. The first two may occupy any increasing pair of times in :
Subtract the carrier’s position in the tuple: . The resulting pairs are the weakly increasing pairs between zero and two, representing the order ideals of a two-by-two rectangle. From , moving the first carrier right and moving the second carrier right are independent. Either order reaches through legal placements. This is one of the squares in the carrier cube.
The article’s main work concerns the physical presentations lying over that timing geometry. Most pairs of moves commute or form a triangle. One interaction between absorption and temporal transport requires a larger identity: a bounded hexagon. Its two paths end at exactly the same physical descriptor triple. Section 6 writes both paths out, including the case where a lower row must first be made literally self-looping.
The proof then has two responsibilities. It must show that the directed simplifications terminate at one normal class, and it must classify every way two available steps can initially disagree. With those local cases in hand, induction replaces the first disagreement between longer paths and continues below the original reduction measure.
The conclusion is a fixed list of guarded kinds of identity, valid at every finite history length. The number of particular instances grows with the history, and their guards refer to endpoints and causal support. This is why the result does not claim a finite context-free list of rewriting rules with no side conditions. The definitions, local calculations, and induction below specify exactly which stronger comparison of paths has been established.
1 Why paths, rather than only accepted languages?
A formal language is a set of words. A recognizer is a process that reaches that yes-or-no observation through internal states and actions. Context-free grammars are usually read generatively: a successful derivation witnesses membership. Parsing expression grammars (PEGs) are deterministic recognizers: ordered choice and the recognition history decide which suffix remains. Loff, Moreira, and Reis introduced scaffolding automata as a persistent graph machine model for PEGs [5]. At every input letter one bounded row is appended to a permanent scaffold; the new row can inspect only a bounded neighborhood of the preceding top.
Collapsing a scaffold computation to its accepted language forgets several different objects: The physical history remembers node identity and construction time. Its strong trace remembers the behavioral figure after every prefix. The final figure forgets all earlier observations. Acceptance forgets almost everything else.
The companion paper Persistent scaffold computation develops these layers and four elementary moves [3]. It proves one right-packed object normal form for every unary distance-one final fibre. It also proves path coherence inside each garbage fibre and, after collapsing whole strong/garbage chambers, in the carrier-slide quotient. It explicitly does not present all mixed physical derivations. The present paper begins at that boundary.
Working picture. The object is fibred. Carrier placements form the base geometry. Different physical spellings of one placement form a vertical fibre. Temporal slides transport presentation data between adjacent fibres. Higher cells say when two vertical or horizontal operations can be interchanged.
2 The unary history calculus
Fix a nonempty finite label alphabet, history length , scaffold degree one, and observation distance one. There is one distinguished unlabelled base at time . Row has a label and one descriptor from If is its physical endpoint, then is absent, is , is , and copies . The final live chain starts at and iterates until missing or a self-loop. Minimizing equal residual behaviors gives the final behavioral figure.
The labels of final-live rows are supported. Every descriptor on that chain is supported; if a supported descriptor is , the descriptor immediately below it is supported recursively. This is the least replay-closed causal support. Changing any unsupported label or descriptor is a garbage move .
Definition 2.1 (Horizontal moves). An endpoint detour replaces a descriptor by the least spelling with the same physical endpoint. A literal absorption applies when a fresh row points to an old physical node with and presents the same recursive residual; it replaces that old pointer by fresh . A temporal slide exchanges on two consecutive rows when the two candidate carrier labels agree.
Literal physical self-looping matters. A row may present a recursive behavior while pointing to a different old carrier; changing it directly to is not then a primitive absorption. An early computational model in this project made exactly that error. All statements below use the literal guard.
Each move preserves the final behavioral figure. Detours and absorptions also preserve every prefix figure; temporal slides may change intermediate figures. We study the undirected elementary path groupoid generated by , while orienting selected horizontal edges only to prove termination.
3 The CAT(0) carrier base
Reduce the final live chain behaviorally and omit the arbitrary physical carrier of a terminal recursive residual. Let be the construction times of the remaining essential carriers. The final root is carried at the final time, so .
Proposition 3.1 (Corrected carrier rectangles). For an ordinary missing or base terminal and , carrier placements are the ideals of . For a recursive terminal, is a singleton; for , placements are the ideals of .
Proof. In the ordinary case Put . Then , and the are the row lengths of an ideal in the displayed rectangle. The inverse is with .
At a recursive bottom, the omitted physical loop carrier must occur below the first retained finite carrier, so time is unavailable. Put to obtain the second rectangle. Conversely, the unique relay realizes every listed placement; unused coordinates are garbage. Strong and garbage moves preserve the essential tuple, and all histories with one tuple lie in one chamber [3]. ◻
A slide changes one by one while preserving weak increase. It is exactly the addition or removal of one maximal ideal box. Ardila, Owen, and Sullivant construct from any poset with inconsistent pairs a rooted CAT(0) cube complex whose vertices are consistent ideals and whose cubes remove subsets of maximal elements [1, Definition 2.3 and Theorem 2.5]. A rectangle has no inconsistent pairs.
Theorem 3.2 (Carrier cube). Filling every Boolean family of independent temporal slides gives the rooted CAT(0) order-ideal cube of Proposition 3.1. For a rectangle with rows and columns it has hyperplanes, dimension , edge distance and coordinatewise-median carrier tuples.
Proof. There is one hyperplane per box and one cube per antichain of currently removable maximal boxes. The maximum antichain in a rectangle has size . Any edge path must cross every box in the symmetric difference of its endpoint ideals; removing and adding those boxes in legal order attains that bound. The median ideal is , whose row lengths are the coordinatewise medians. ◻
This theorem is recalled from the corrected Draft 3 of the companion paper. Its role here is structural: pure temporal schedules already have cubical coherence. The unresolved work lies in lifting that geometry through the physical presentation fibres.
4 Rewriting modulo causal garbage
Let be the symmetric relation of single-coordinate garbage changes. Support stability makes every -class a finite Cartesian product. Same-coordinate triangles compose successive values; different-coordinate squares commute them. These cells make each garbage fibre coherent.
On garbage classes orient effective edges by where is total displacement of the behaviorally reduced essential tuple from its right-packed tuple, and is the supported descriptor word in the order and preserve the reduced tuple and lower . An essential lowers ; an inessential is oriented toward smaller . Thus every effective horizontal edge strictly decreases .
Lemma 4.1 (Unique quotient normal class). Every final fibre has one irreducible garbage class, the right-packed class . Hence oriented effective horizontal rewriting terminates and is object-confluent modulo garbage.
Proof. Finiteness and strict decrease give termination. If , choose the highest carrier gap. The unique-relay lemma exposes a supported bridge. Its first hidden relay label is unsupported and can be prepared inside the same garbage class; the adjacent essential slide then reduces .
At gap zero, a nonleast supported endpoint exposes , a supported repeated literal recursive residual exposes , and an inessential adjacent inversion exposes . When none applies, the terminal is forced to be the canonical missing, recursive, or base bottom described in the companion proof. This is exactly , and it has no effective outgoing edge. Every noncanonical class therefore has a reduction and the canonical class is the unique normal class. Termination plus uniqueness yields confluence. ◻
Some legal horizontal edges are already identities in . They must not simply disappear from a theorem about physical paths.
Lemma 4.2 (Garbage-trivial collapse). If a legal or edge is trivial modulo garbage, it equals one descriptor garbage edge. If a legal edge is trivial modulo garbage, it equals a two-descriptor garbage path; the two orders agree by the garbage square.
Proof. Equal garbage normal forms have equal causal support. change one descriptor and changes two. Any changed supported value would survive normalization, so every changed coordinate is unsupported. Replay invariance keeps support fixed after the first of the two garbage changes. ◻
5 Support transport
The next question is whether a garbage change commutes with a horizontal move. Descriptors and labels behave differently.
Lemma 5.1 (Descriptor-support monotonicity). For every effective oriented horizontal move , Every coinitial horizontal/garbage-descriptor branching is therefore a strict naturality square modulo garbage.
Proof. A detour replaces an indirect name by a direct least name of the same endpoint, deleting replay dependencies. An absorption replaces a replay into an old self-loop by fresh , again terminating dependencies. A slide exchanges the roles “live carrier” and “certified replay dependency” among the same three local descriptor cells; it introduces no descriptor outside the source closure.
An unsupported descriptor cannot influence any endpoint or guard read by an effective move. The same residual therefore remains available after changing it, and monotonicity leaves the changed cell unsupported at the target. The two target histories differ by one garbage edge. ◻
Horizontal motion can promote a label from garbage to visible support. There are exactly three possibilities. Absorption replaces an old self-loop carrier by its fresh presentation, so only the fresh row label can be captured. A temporal slide substitutes one of two equal-labeled adjacent carriers, so the gaining label is either the first slide row or its predecessor, depending on direction.
Proposition 5.2 (Support captures). The only mixed branches without a strict horizontal residual are They require no new generator: the garbage-first path returns along the inverse garbage edge and then takes the original reduction, so by vertical cancellation.
6 The absorption–transport hexagon
The non-Peiffer horizontal interaction occurs on three consecutive rows . Suppose the descriptors at are , the labels of agree, literal is available, and is oriented from this source. Let be absorption at when is not already , and the empty path otherwise.
Theorem 6.1 (A/T hexagon). The following paths have exactly the same raw physical endpoint: No garbage quotient is used in this equation.
Proof. Let be the endpoint named by ’s . The literal guard says that is an old physical self-loop and that presents its recursive residual. The temporal label guard makes present that residual as well. Thus, if is not already , one literal is available; no long prefix normalization is needed.
Write for ’s old descriptor. The left path gives The right path gives At the last step, follows the now-self-looping row , while names directly. They have the same physical endpoint. ◻
If is coinitial with the same slide, equality of the and endpoints forces itself to be literal . Then . The ordinary D/A triangle identifies with direct , so D/T is a pasting of D/A with the SELF-eager hexagon and is not an independent cell.
7 Complete local classification
Two detours commute because they preserve physical endpoints. A lower absorption acts on every affected later replay by the uniform substitution of its old self-loop carrier by the fresh equal-behavior carrier. Uniform substitution preserves endpoint equalities and transports other literal absorption guards. Hence strong/strong peaks are Peiffer squares or the same-row D/A triangle.
For T/T, two essential reductions remove incomparable maximal boxes in the carrier cube and commute. The only overlapping raw descriptor words are and . If the repeated residual is recursive, both swaps are inessential and exactly one direction lowers descriptor order. If it is nonrecursive, the swaps move essential carriers oppositely and exactly one lowers carrier gap. Thus no overlapping oriented T/T peak exists.
A slide transports suffix endpoints by one uniform substitution between its adjacent equal-behavior carriers. Strong guards away from the first slide coordinate therefore commute. The apparent exception is an upper absorption whose old physical self-loop would be replaced by a non-self-looping equal-behavior row. If that upper absorption is effective, the lower recursive block is behaviorally inessential; the threatened slide direction then increases descriptor order and is not oriented. The reverse orientation preserves the literal guard. At the first slide coordinate, the only cases are the A/T hexagon and derived D/T diagram above.
Theorem 7.1 (Local cell classification). Every coinitial effective horizontal pair is aspherical, Peiffer/cubical, D/A triangular, A/T hexagonal, or D/T derived. Every horizontal/garbage pair is a strict naturality square or one of the three cancellation captures. Every garbage-trivial horizontal edge has a collapse cell from Lemma 4.2.
8 Uniform guarded coherence
We use a direct finite-graph version of coherent Newman induction modulo relations. Let be a symmetric relation with a coherent path presentation, and let terminate on -classes with one normal class. If every R/R and R/E local branch has a chosen confluence cell modulo , then those cells present every parallel path. Indeed, canonicalize vertical subpaths and induct on the quotient reduction measure and remaining horizontal length. Replace the first disagreement by its local cell; every horizontal tail lies below the source class. An E-capture may use an inverse vertical edge, but it needs no recursive horizontal induction. This is the proof architecture of coherent confluence modulo [2], proved here directly because our guards are not assumed to be a conventional context-closed polygraph.
Theorem 8.1 (Uniform guarded path presentation). Fix a finite alphabet and history length in degree one and distance one. In each final behavioral fibre, all parallel paths generated by endpoint detours, literal absorptions, causal-garbage changes, and temporal slides are presented by the following length-independent guarded cell families:
garbage same-coordinate triangles and different-coordinate squares;
collapse cells for garbage-trivial D/A/T edges;
strong Peiffer squares and the same-row D/A triangle;
carrier-cube and inessential temporal Peiffer squares;
strict mixed naturality squares; and
the bounded A/T hexagon.
The three support captures use vertical cancellation, and D/T is derived.
Proof. Lemma 4.1 supplies quotient termination and one normal class. Garbage fibres have their product cells. Lemma 4.2 eliminates horizontal edges already vertical. Theorem 7.1 supplies every remaining local R/R and R/E cell. Apply the direct coherent-Newman induction modulo garbage. ◻
Boundary. This is a finite list of guarded schema types; it is not a finite context-closed polygraph. Endpoint-equality and causal-support certificates range over histories. Guiraud and Malbos show why indexed critical branchings make finite-derivation-type conclusions delicate in higher dimensions [4]. The bounded hexagon controls the observed A/T index, but no finite derivation type claim is made.
9 Evidence, failure modes, and the larger program
The promoted exact atlas checks complete domains with one label through length eight, two labels through length five, and three labels through length four: 147,448 histories. It asserts quotient termination, one normal class, descriptor-support monotonicity, the exact A/T and D/T critical signatures, the exact three label captures, and the collapse classification. A separate raw-history checker verifies 12,914 A/T hexagons, including 4,116 with a non-SELF-eager lower row.
A homology mutation is used only as a falsifier. Removing the overlapping D/T cell while retaining D/T Peiffer squares leaves zero residual first homology. Retaining only SELF-eager A/T instances also leaves zero. Removing A/T exposes 120 residual classes. A seeded length-10/20/40 probe checks 67,848 additional coinitial pairs and finds no new non-Peiffer type. None of these finite results proves Theorem 8.1; the causal arguments do.
A separate AI-assisted audit reconstructed the proof and found one missing edge class: legal horizontal moves already trivial modulo garbage. The collapse lemma was added, the quotient normal-form proof was expanded, and the same audit recorded “gap closed.” This records the earlier checking process; the argument is the collapse lemma and the proof above.
The fibred formulation suggests a higher-degree program. Replace the unary carrier chain by the dependency diagram of essential residual records. Ask whether legal time placements form a poset-with-inconsistent-pairs cube or a different event geometry. Put detours, folds/unfolds, receipts, , and garbage in vertical fibres; treat sewing as transport; then classify the cells where transport changes support or overlaps a vertical fold. Failure of CAT(0), unbounded indexed branchings, or proliferating support curvature would be a precise obstruction rather than merely a failed language-level proof.
Assurance and contribution statement
The ordinary mathematical arguments are the proof. Executable checks are independent falsifiers only to the extent stated in the public evidence ledger. No proof assistant is used as a stronger label. AI systems assisted with exploration, checking, adversarial review, and exposition; Joshua Gay is responsible for the public claims and their disposition.
The FPRD contribution is the separation of presentation, dynamics, and observation. That separation exposed an exact CAT(0) base, causal fibres, partial transport, and one curvature cell. It also exposed and repaired the overbroad absorption model, overcounted support generators, incorrect carrier rectangle, and omitted garbage-trivial edges.
References
[1] Federico Ardila, Megan Owen, and Seth Sullivant. Geodesics in CAT(0) cubical complexes. Advances in Applied Mathematics, 48(1):142–163, 2012. https://doi.org/10.1016/j.aam.2011.06.004.
[2] Benjamin Dupont and Philippe Malbos. Coherent confluence modulo relations and double groupoids. arXiv:1810.08184v3, 2021. https://arxiv.org/abs/1810.08184.
[3] Joshua Gay. Persistent scaffold computation: causal presentations, sewing, and feedback. FPRD Lab review paper, Draft 3, 23 August 2026. FPRD reading edition.
[4] Yves Guiraud and Philippe Malbos. Higher-dimensional categories with finite derivation type. arXiv:0810.1442v2, 2009. https://arxiv.org/abs/0810.1442.
[5] Bruno Loff, Nelma Moreira, and Rogério Reis. The computational power of parsing expression grammars. Journal of Computer and System Sciences, 111:1–21, 2020. https://doi.org/10.1016/j.jcss.2020.01.001.
Reading-edition notes
This expanded web edition preserves the mathematical statements and proofs of the earlier publication, with the corrections recorded in the publication audit. The PDF is the earlier edition. Historical computational and formal-verification reports retain their original scope; they have not all been rerun for this revision.
Afterword: FPRD Lab’s contribution
9 September 2026 · Methodological and contribution addendum. The paper’s mathematical scope and review status remain as stated in the paper.
The Lab’s approach
FPRD means Finitely Presented Recognition Dynamics. Its starting point is to distinguish a finite description, the possibly infinite process it generates, and what an observer can learn from that process. Equal answers need not come from equal internal structures. Conversely, an infinite state space may have a short, exact description and useful coordinates; failure to compress it into finitely many states need not end the investigation.
A small example: balanced parentheses
The grammar S → (S)S | ε presents the language of
balanced parentheses. To recognize a prefix, keep the number of
unmatched opening parentheses, or a failure state if a closing
parenthesis arrived too early. An opening parenthesis increments the
count. A closing parenthesis decrements a positive count; at zero it
enters failure. Failure persists. At the end, accept exactly when the
count is zero.
The prefixes ( and ()( leave the same
future task: any suffix that completes one completes the other. The
prefix (( leaves a different task: ) completes
the first two prefixes but not this one. These future tasks are
residuals. There are infinitely many counts, yet a
finite set of update rules generates their dynamics. This is a classical
automata example, not a discovery of FPRD Lab. It illustrates the
research question: which coordinates preserve all relevant futures, and
what does updating or reading those coordinates cost?
From viewpoint to proof
In practice, the Lab fixes the observable and the allowed operations, compares presentations of the same problem, and seeks an exact translation or invariant. A failed shortcut is useful when a counterexample identifies the missing coordinate or hypothesis. Small computations test particular uncertainties; a proof must explain why the result holds beyond those tests. Costs, relation sides, boundary conditions, and the direction of each translation remain explicit.
AI-assisted exploration, source comparison, executable checks, and adversarial reconstruction support this work. Their agreement is not automatically independent evidence: shared assumptions must be exposed. A formal development certifies its stated formal theorem, not every interpretation attached to it. Each paper retains its own evidence and review status.
The approach is most useful when a poor representation hides a reusable construction, a compatibility condition, or a sharp obstruction. Outside recognition theory, it can guide the search for a structural reformulation without producing a literal residual dynamical system. The account below distinguishes that methodological influence from the ingredients of the proof.
FPRD’s contribution to this paper
The preceding causal-scaffold work compared histories and their observations. This paper asks a further question: when two legal sequences of changes have the same endpoints, which local identities explain their agreement? It therefore studies transformations between presentations, not just a language or a collection of machine states.
The Lab separated the placement of essential carriers from the physical ways of presenting a fixed placement. Carrier times form an order-ideal geometry; irrelevant data and descriptor choices lie over it. Temporal moves can change which data are relevant, so they cannot be treated as unconditional commuting operations.
The difficult interaction is between absorption and temporal transport. The paper writes an exact bounded hexagon whose two paths reach the same physical descriptor triple, including the case requiring an intermediate self-loop adjustment. Together with the other guarded local cells, termination modulo garbage and a confluence argument give the stated coherence theorem.
The failure record is material to that proof. Overbroad absorption, an incorrect carrier rectangle, and overcounted support moves were narrowed to the actual source model. A later audit exposed legal horizontal edges already trivial modulo garbage; the collapse lemma supplies that missing class. Finite homology probes were useful falsifiers, but vanishing in such a probe did not certify that the list of cells was complete.
Inherited ingredients and the boundary of the contribution
The scaffold model comes from Loff, Moreira, and Reis. Ardila–Owen–Sullivant provide the cubical-geometric comparator; coherent confluence modulo relations and the higher-dimensional rewriting literature supply the proof architecture and its cautions. The paper credits Dupont–Malbos and Guiraud–Malbos rather than presenting general coherence machinery as a Lab invention.
The Lab’s specific work is the exact unary carrier geometry, support-sensitive transport, critical interactions, and their assembly into a uniform guarded theorem. “Uniform” means a finite list of kinds of guarded identity at arbitrary finite length. It does not mean a finite context-closed polygraph or a finite-derivation-type theorem. The result remains restricted to the declared unary, distance-one model. Computation and AI-assisted reconstruction support the written argument; no proof-assistant verification is claimed.
Where to inspect the contribution: the paper, Sections 3–9, especially the absorption–transport hexagon, collapse lemma, and evidence boundaries.