Counter-Free Higher-Dimensional Automata for First-Order Interval-Pomset Languages
Abstract
We prove that a downward-closed language of interval pomsets over a finite alphabet and with a fixed width bound is first-order definable if and only if it is accepted by a finite counter-free higher-dimensional automaton. This establishes the converse conjectured by Erlich, Ledent and Ziemiański (CONCUR, 2026), whose algebraic characterisation identifies first-order definability with recognition by finite aperiodic categories. Given such a recognising category with aperiodicity exponent and a width bound , we effectively construct an automaton of dimension at most whose endpoint relations stabilise after repetitions. The bound is uniform over all cells and endomorphism pomsets, including those with nonempty interfaces. Rather than completing an algebraic recogniser by adding faces, we use cells consisting of compatible diagrams of lower sets, with face maps given by restriction. A lattice extension criterion characterises paths between prescribed cells, and ordered interfaces allow the relevant repeated pomsets to be factored into fixed boundary pieces and an aperiodic middle factor. We also give an explicit two-dimensional example in which canonical suffix-residual completion introduces a period-two endpoint relation despite the existence of a counter-free realisation.
Note. This paper was generated entirely by AI, including MiMo, using an automated research pipeline developed by Chenghua Liu and Hanyu Li.
1 Introduction
Higher-dimensional automata describe concurrent executions by cells: a higher-dimensional cell records events that can remain active together, and its faces record their starts and terminations. Their languages consist of interval pomsets with interfaces and are closed under subsumption, so an accepted concurrent execution brings with it its sequential refinements. The language theory and Myhill–Nerode constructions of [6, 5] provide finite-state descriptions of these languages. An algebraic characterisation of first-order definability asks which of those descriptions can also avoid counting repeated executions.
For word languages, the connection between logic and the absence of counting is classical. Schützenberger’s theorem identifies star-free languages with recognition by finite monoids having no nontrivial subgroups [1]; first-order definability and suitable counter-free automata give equivalent descriptions, as developed in [2]. The concurrent setting adds geometric compatibility to these algebraic conditions. Amrane et al. [3] established the corresponding monadic second-order baseline: a language of interval pomsets is accepted by a finite HDA precisely when it is MSO-definable, has bounded width, and is closed under order refinement. The first-order fragment then asks for a finer restriction on the accepting automaton itself.
Erlich, Ledent and Ziemiański [4] identify first-order definability with recognition by finite aperiodic categories and show that counter-free HDAs give such recognisers. Their Conjecture 36 asks whether every downward-closed aperiodically recognised language has a counter-free HDA. We prove this converse and obtain an explicit stabilisation exponent. The difficulty is geometric: completing a recognising module to an HDA requires all faces of every cell, and the added faces can create periodic reachability relations. Section 5.2 of [4] exhibits this obstruction.
Our construction makes face completion part of the state space from the outset. A cell is an entire diagram of lower sets in an ordered recogniser, subject to inequalities for elementary starts and terminations. Faces are restrictions of diagrams, and joins of lower sets extend compatible boundary values. Together with the characteristic HDA associated with a pomset [6], this gives an exact criterion for a pomset-labelled path between two cells. To compare repeated executions, we factor the pomsets appearing in that criterion into fixed boundary pieces and an iterated middle piece. Ordered interfaces force every event that survives sufficiently many copies to remain in a fixed position. Aperiodicity of the recogniser then controls the whole endpoint relation. The diagram construction and this boundary factorisation are the two new ingredients.
Fix a finite alphabet and an integer . We use the interval-pomset and HDA conventions of [4], recalled in Section 2. An ordered concurrency list, or conclist, is a finite linearly ordered set labelled by . Write for the finite set of conclists of length at most , up to isomorphism, and for the category of interval pomsets of width at most with these interfaces. Here width is the maximum size of a precedence antichain; it is also called dimension in the HDA literature. Composition is gluing, written , in execution order; for an endomorphism , put . First-order formulas have event variables, the binary predicates for precedence and event order, and unary predicates for each label and for the source and target interfaces. Definability is understood relative to . For an HDA , let
Counter-freeness means that a single integer works for every cell and every endomorphism pomset :
| (1) |
This is a condition on the full reachability relation, including nondeterministic choices and cells which need not occur on accepting paths. On ordinary nondeterministic word automata, this endpoint-stabilisation condition is the notion called aperiodicity in [2, Definition 11.5]; we use the term counter-freeness of [4, Definition 34] throughout.
Theorem 1.1 (Counter-free realisation).
Let be downward closed under subsumption. Suppose that for a functor into a finite category and a set . Suppose also that, for an integer , every endomorphism of satisfies . Then there is a finite HDA of dimension at most with such that
for every , every , and every . The construction is effective from the multiplication table of , the set , the object map of , and the images of elementary starters and terminators. Nonempty initial and final interfaces are allowed.
Corollary 1.2.
For a downward-closed language , the following are equivalent:
- (i)
is recognised by a finite aperiodic category;
- (ii)
is accepted by a finite counter-free HDA;
- (iii)
is first-order definable.
The new implication is (i)(ii), proved below. The other implications are Theorem 33 and Proposition 35 of [4]. In particular, Theorem 1.1 proves Conjecture 36 with its stated notion of counter-freeness.
Section 2 constructs the ideal-diagram HDA. Section 3 proves recognition and the endpoint criterion, and Section 4 establishes stabilisation under iteration. Appendix A examines a canonical suffix-residual completion: an eight-cell counter-free HDA is transformed into an equivalent HDA with a period-two endpoint relation. The example explains why the choice of completion matters even when a counter-free realisation already exists.
2 From an ordered recogniser to an HDA
An interval pomset consists of a finite event set, a strict interval precedence order , an event order , a labelling , and interfaces . Source events are precedence-minimal and target events precedence-maximal. We record event order on precedence-incomparable pairs, as in [3, Section 2]: is acyclic, and for distinct events exactly one of , , , and holds. It therefore restricts to a total order on every precedence antichain and, in particular, on every active interface. This order distinguishes positions even when concurrent events have the same label. We work up to isomorphism, retaining all this structure. The interval-order condition means that there are intervals such that precisely when .
A subsumption is a label- and interface-preserving bijection under which every precedence relation of holds in , and the event orders agree on every pair incomparable in . Thus can have more precedence than . Subsumption is compatible with gluing. Deleting events means taking the induced pomset and induced interfaces, unless new interfaces are specified explicitly.
Gluing to identifies the corresponding ordered events of and . The precedence relation is the union of the relations inside the two factors and ; this union is transitive. Event order and labels are inherited from the factors, and the outer interfaces become and . An identity pomset has all its events in both interfaces and has no precedence. A starter has every event in its target interface, and a terminator has every event in its source interface. Such pomsets are discrete. They are elementary when exactly one event is started or terminated.
Every interval pomset has an ST-decomposition into starters and terminators. Moreover, any two decompositions are related by splitting or merging consecutive starters or consecutive terminators, and by inserting or removing identities [4, Proposition 31]. In particular, the finitely many elementary pieces of width at most generate .
An HDA is a labelled precubical set with sets of initial and accepting cells. Write for the conclist labelling a cell . For each conclist , its -cells have lower and upper face maps , where and , removing the events in . The empty face map is the identity; removing disjoint sets in either order gives the same face, with the induced types understood. A directed path consists of starts from a lower face to a cell and terminations from a cell to an upper face. Its label is the gluing of the corresponding starters and terminators; a length-zero path at a -cell has label . The language consists of labels of paths from initial to accepting cells. Initial and accepting cells may have positive dimension.
The face identities also ensure that a fixed ST-decomposition of a pomset determines its entire endpoint relation. Indeed, a sequence of starts into a cell can be merged by composing its lower face maps, and conversely can be split by taking the corresponding intermediate faces. The same argument uses upper faces for terminations. Thus each of the changes of ST-decomposition above preserves the possible endpoints. We may therefore use elementary steps without changing any reachability relation. In particular, gluing pomsets composes their endpoint relations.
For a cell of type , a face is obtained by assigning some events the status (not started) or (terminated). The remaining events have status (active). Thus
indexes all faces of the standard -cube. Subconclists are transported to their canonical ordered representatives whenever needed.
Lemma 2.1 (Ordered recogniser).
Under the hypotheses of Theorem 1.1, there exist a finite category with objects , a functor that is the identity on objects, and such that:
- (a)
;
- (b)
each hom-set of is partially ordered, and composition is monotone;
- (c)
is a lower set for all ;
- (d)
implies ;
- (e)
every endomorphism of satisfies .
Proof.
First form the typed image category : its objects are the actual conclists, and
with the source and target types retained as part of each arrow. This step allows to identify objects. Composition and identities come from . The category is finite, all its arrows have pomset representatives, and its endomorphisms satisfy the same exponent identity. Let be the accepting arrows in this typed image.
For parallel arrows of , put if
| (2) |
This preorder is compatible with multiplication on both sides. Quotienting by its symmetric part gives a category with partially ordered hom-sets. Membership in is constant on quotient classes, and its image is a lower set: use identity contexts in (2). The induced functor recognises . Exponent identities pass to this quotient.
To check (d), choose pomset representatives of and . If , then the same subsumption holds after gluing these representatives on the left and right. Downward closure of gives (2). The restriction to the typed image category ensures that every context used here has such a representative. ∎
This is the ordered version of the syntactic category. Only its finite ordered recognition properties will be needed.
We now use this ordered recogniser to construct cells whose faces are already present. Lower sets provide both the coefficients of the diagrams and the joins needed later to extend prescribed face values.
Fix an object . For , let
be the set of all lower subsets, including the empty subset, ordered by inclusion. This is a finite complete lattice; joins are unions. For , define
| (3) |
Lemma 2.2.
Proof.
The identity assertion uses that is a lower set. Monotonicity of composition implies , proving associativity. Taking a lower closure commutes with unions. The last assertion follows from Lemma 2.1(d) and monotonicity of composition. ∎
Each elementary change in changes one coordinate from to , or from to . Give it the corresponding elementary starter or terminator label .
Definition 2.3 (Admissible diagram).
A -cell of is a family
satisfying, for each elementary change in ,
| (4) |
For , the face is the restriction obtained by fixing every coordinate of to . We write for the value at the all-active face.
Restriction preserves (4). Restrictions on disjoint coordinate sets commute, so these face maps satisfy all precubical identities. We include every admissible diagram. There are finitely many of them.
The initial and accepting cells in the component are
| (5) | ||||
| (6) |
Here in (5) is the identity arrow of . Finally, put
| (7) |
with these markings. Each component has its own copy of every diagram.
Remark 2.4 (Finiteness and construction size).
Let and . A diagram of type has entries, each with at most choices. Therefore
This coarse bound suffices for finiteness. The construction uses only finite sets, the order and multiplication table of , and the images of elementary starters and terminators.
3 Paths as extensions of face values
A diagram records all faces of a cell, so prescribing the endpoints of a path prescribes several values at once. We first express a pomset-labelled path as a map from its characteristic HDA. A lattice extension argument will then decide whether the prescribed values can coexist.
3.1 Characteristic configurations and colourings
We use the characteristic, or track, HDA introduced in [6], with the configuration presentation of [5, Definition 4.9]. For an interval pomset , let have as cells all configurations satisfying
| (8) |
Active events form an antichain; their induced labels and event order give the cell type. In particular, has dimension at most the width of . A face replaces selected active statuses by or . Condition (8) is preserved by both kinds of face. The distinguished cells are
The directed face graph has an arc from a lower face to its cell and from a cell to an upper face, changing one status at a time. It is acyclic: every arc strictly increases the sum of statuses when are coded as .
The mapping property below is [5, Lemma 4.10], and the language description is [6, Proposition 92]. We include a direct proof for the labelled precubical sets used here.
Lemma 3.1 (Characteristic realisation).
For an interval pomset :
- (a)
the labels of paths from to in are exactly ;
- (b)
for any HDA and cells , a path labelled from to exists if and only if there is a type-preserving map of precubical sets sending to and to .
Proof.
Every path between the distinguished cells starts and terminates exactly the required events. Condition (8) forces all precedence relations of , and the event orders on its active cells are inherited from . Its label is consequently subsumed by . Conversely, an ST-decomposition of any runs through configurations satisfying (8). The orders on active events agree, so it defines the required path in . In particular, there is a path labelled .
A map as in (b) sends this path to the desired path in . For the converse, expand a given -path into single-event steps and track its event occurrences through these steps. Regard the lifetime of each event as an interval along the path. Give all source events a common start before the first cell and all target events a common termination after the last cell. The remaining endpoints occur at the corresponding steps. These choices give
and may be perturbed so that no start endpoint equals a termination endpoint.
Let be any cell of . Put
For and , condition (8) excludes . Hence
| (9) |
where an empty maximum or minimum is interpreted as or . Choose a cut between these quantities and away from endpoints. Every event active in is active at the cut. Events completed in have already started, and events unstarted in have not yet finished. Thus is a face of the cell of the given path at this cut. Cuts before or after the recorded path give faces of its initial or final cell, respectively.
The permitted cuts form an interval, so their recorded path cells occur consecutively. If two such cells are separated by a start, the changing event has status in ; if they are separated by a termination, it has status in . In either case the face images of agree, because the face map of that step commutes with removal of the other coordinates. The image of in is consequently independent of the cut. If is a face of , any path cell containing also contains , and its face identities show that the two assignments commute with the face map . The distinguished cells have the prescribed images, proving (b). ∎
The interval cut in (9) is what lets one path determine a map on every characteristic cell. For the target , specifying such a map reduces to assigning ideal values compatible with the face arcs. The following extension lemma gives the needed criterion.
Lemma 3.2 (Extension of inequalities).
Let be a finite acyclic directed graph. Associate a complete lattice to each vertex and a map preserving all joins to each arc. Write for the composite along a path . Prescribe values at vertices in a subset . There is a colouring of all vertices which extends these values and satisfies every arc inequality if and only if
| (10) |
Length-zero paths are included.
Proof.
Necessity follows by composing inequalities and using monotonicity. For sufficiency, at every vertex take
| (11) |
An empty join is the bottom element. The graph is finite and acyclic, so there are finitely many paths. Preservation of all joins includes the empty join; thus an arc sends the bottom value to the bottom value, as required when a vertex has no prescribed ancestor. At a prescribed vertex , the length-zero path supplies , and (10) bounds all other summands by . Hence . Applying an arc map to (11) distributes over its join. Every resulting summand is contributed by a path to the next vertex, so the arc inequality holds. ∎
Lemma 3.3 (Colourings and cubical maps).
A precubical map is equivalent to assigning a value to every cell of such that
on every arc of its directed face graph. Prescribing the image of a cell prescribes precisely the colours of all its faces.
Proof.
From a map, take the top entry of each image diagram. Conversely, for a cell , the colours of its faces form an admissible diagram by the arc inequalities. These diagrams commute with face restriction. The two constructions are inverse. ∎
We first apply the extension criterion with only the initial value prescribed. Its least extension reaches exactly the lower set generated by the recognised arrow, which proves that the markings of recover .
Proposition 3.4.
The HDA of (7) accepts exactly .
Proof.
For soundness, take an accepting path in the component . The image belongs to its initial top value by (5). Along an elementary step labelled , the top values satisfy , by (4); the same follows for multi-event steps by factorisation. Induction along the path shows that its complete label satisfies . By (6), . Thus .
For completeness, let have source and target . In the face graph of prescribe only the value at , and use the least colouring (11), with the actions of Lemma 2.2. Acyclicity implies that the value at remains , since the only path from to itself is the length-zero path. By Lemma 3.1(a), the final value is
The last equality uses monotonicity for subsumption and the presence of . This lower set is contained in because . By Lemma 3.3, the colouring gives a map to whose distinguished cells are initial and accepting. The image of the -path is accepting. ∎
3.2 Prescribed endpoints
The next step concerns paths between arbitrary cells, independently of the initial and accepting markings. Let . A face of its initial cube corresponds to the global configuration
and a face of its final cube to
Here and below interface positions are identified with their actual events.
Call compatible for when
| (12) |
in the order . For a compatible pair define
The corner pomset is the induced pomset on , with source and target . Compatibility ensures these interfaces were not deleted. They remain minimal and maximal, so this is an interval pomset of dimension at most .
Lemma 3.5 (Corner paths).
If is incompatible, there is no directed path from to in . If it is compatible, the labels of such paths are exactly
Proof.
A directed path can only increase event statuses, proving the first claim. For a compatible pair, events deleted at the source are completed throughout the path, and events deleted at the target remain unstarted. All retained events have exactly the source and target statuses prescribed by the corner. Restriction therefore turns any such path into a refinement of the corner pomset.
Conversely, take an ST-path for the corner pomset, or any of its subsumed pomsets. Extend its configurations by keeping source-deleted events at and target-deleted events at . These prescriptions cannot conflict: a shared event prescribed at the source and at the target would violate compatibility. Source-deleted events are minimal in and target-deleted events maximal. Their fixed statuses consequently preserve (8) on every precedence pair involving a deleted event. All other precedence constraints hold by construction. This gives the required path in , including one whose label is the corner itself. ∎
Proposition 3.6 (Endpoint criterion).
Fix a coefficient source and cells , . Suppose has an event outside . Then there is a path labelled from to if and only if
| (13) |
Proof.
An event outside both interfaces has status on every face of the initial cube and status on every face of the final cube. The two cubes in are therefore disjoint, and no directed path goes from a face of the final cube to a face of the initial cube.
By Lemmas 3.1 and 3.3, the required path exists exactly when the face colours prescribed by and extend to all of . A path between two faces of the same boundary cube stays in that cube: every event outside the cube has equal initial and final statuses and thus cannot change. Its inequalities are already satisfied by the admissibility of or . Reverse paths between the boundary cubes do not exist. The remaining conditions in Lemma 3.2 are precisely those for forward paths from to .
Thus the joins used to fill the characteristic HDA reduce arbitrary cell-to-cell reachability to the finite family of corner inequalities (13). We can now study repeated executions by comparing the corresponding corner pomsets.
4 Stabilisation under iteration
We now establish the uniform bound. The case is immediate, since only the empty pomset and zero-dimensional cells occur. Assume in this section.
Let and write . An event belonging to both interfaces defines a partial map
when source position and target position are that same event. This is an order-preserving partial injection: the two interface orders agree on their common events. Under gluing, survival through copies is described by . A nontrivial cycle would transport an event periodically among interface positions; the order rules out precisely this possibility.
Lemma 4.1 (Stable survival).
Let be the set of fixed positions of . For every , is the partial identity on . Thus the events shared by the two interfaces of are exactly those represented by , in their original positions.
Proof.
An order-preserving partial injection on a finite linear order has no cycle of length greater than one. For example, in a nontrivial cycle its least element is mapped to a larger one, whereas its predecessor in the cycle is larger and maps to that least element, contradicting order preservation. Injectivity also prevents a nontrivial chain from entering a fixed point. Every nonfixed chain therefore ends after at most applications. The remaining points are precisely the fixed points, proving the claim. ∎
An event corresponding to a position of occurs in every copy of and is identified throughout the gluing. We call these events persistent. In particular, deleting any subset of them produces an endomorphism .
Lemma 4.2 (Separation of the boundary cubes).
If , then has an event outside its two interfaces for every .
Proof.
Both interfaces have events. If , then they both consist of all events, and . Otherwise , and gluing gives
For , this is greater than , whereas the union of the endpoint interfaces has at most events. ∎
The preceding lemmas give both ingredients needed to compare endpoint criteria for large powers: the compatibility relation has stabilised, and the two boundary cubes are separated. We next isolate the effect of their face assignments inside fixed outer factors.
For , Lemma 4.1 makes compatibility of faces independent of : the only comparisons in (12) are at positions of .
Lemma 4.3 (Boundary factorisation).
Fix and a compatible pair for its powers , . There are a subset of the persistent events and fixed pomsets and , independent of , such that for every ,
| (14) |
The middle factor is an endomorphism of the reduced interface .
Proof.
Let
These are exactly the persistent events deleted by the corner operation. Write
with fresh copies and the canonical gluing identifications. Besides , the corner deletes two sets: nonpersistent events in the source interface assigned by , and nonpersistent events in the target interface assigned by .
Every event of the first set has disappeared before the target interface of , by Lemma 4.1. Thus it is contained wholly in and its deletion does not affect the gluing interface on the right of . Dually, every event of the second set is absent from the source interface of ; it belongs wholly to and its deletion does not affect the gluing interface on the left of . Remove these sets in their respective factors and remove throughout. Denote the resulting first and last factors by and . Their adjacent interfaces are both , and the middle factor becomes . Induced deletion commutes with these gluings in this situation. Indeed, a persistent event is in both interfaces of every factor, so it is incomparable in precedence with every event of that factor and creates none of the additional cross-factor precedence relations. A nonpersistent event deleted in the first factor is a source event of the whole product, and one deleted in the last factor is a target event of the whole product. Neither can be an internal point of a precedence chain between retained events. Thus deleting them cannot remove a transitive witness needed for an order relation between retained events. The cross-factor relation in the definition of gluing restricts to exactly the cross-factor relation of the reduced factors. Labels and orders of concurrent events are inherited throughout. This proves the required commutation, including when the middle factor is an identity.
It remains to change the outside interfaces to the active positions of and . Prepend to the starter which starts its remaining source events assigned by . Append to the terminator which terminates its remaining target events assigned by . Such a starter or terminator changes the corresponding interface without adding an event or a precedence relation to the factor. The resulting pomsets are and . They are independent of and give exactly the event set, induced orders, labels, and interfaces of the corner pomset, proving (14). ∎
Corollary 4.4 (Stable corner images).
For every , every compatible pair , and every ,
| (15) |
Proof.
In (14), belongs to the endomorphism monoid . Apply its exponent identity to the middle factor; its exponent is . The two fixed outside factors do not change. ∎
The corner images now stabilise with one exponent, so the endpoint criterion proves the theorem simultaneously for all pairs of cells.
Proof of Theorem 1.1.
Apply Lemma 2.1 and construct by Definition 2.3 and (5)–(7). It is finite, has dimension at most , and recognises by Proposition 3.4. For the assertion is immediate. Let and put .
Fix any component , any -cells in it, and any . The identity pomset leaves each cell unchanged, so assume . For , Lemma 4.2 permits the use of the endpoint criterion for both and . By Lemma 4.1, the same pairs are compatible for these two powers. For each such pair, Corollary 4.4 and (3) imply
The entire finite family of inequalities (13) is therefore identical. It follows that
There are no paths between distinct components. Since were arbitrary, this proves equality of the full reachability relations with the single exponent , and hence Definition 34 of [4].
All stages are effective. The typed image category is generated by the finitely many elementary ST arrows. The context tests defining its ordered quotient range over a finite category. Lower sets, diagrams, and their face restrictions can then be enumerated by finite computations. ∎
The exponent is uniform over all cells and all endomorphism pomsets. The two terms come from discarding the transient interface histories at the two ends; no attempt has been made to optimise them. For a particular interface of size , the same argument yields . When , a nonidentity pomset already has an internal event, and the unique corner condition uses its unmodified power, giving the bound directly.
The HDA can be large: the size bound in Remark 2.4 grows with both the recognising category and the number of cube faces. Finding smaller counter-free realisations, or minimisation procedures which preserve this property, remains a separate algorithmic question.
References
- [1] Marcel-Paul Schützenberger. On finite monoids having only trivial subgroups. Information and Control, 8(2):190–194, 1965. doi:10.1016/S0019-9958(65)90108-7.
- [2] Volker Diekert and Paul Gastin. First-order definable languages. In Jörg Flum, Erich Grädel, and Thomas Wilke, editors, Logic and Automata: History and Perspectives, Texts in Logic and Games, volume 2, pages 261–306. Amsterdam University Press, 2008. Author version.
- [3] Amazigh Amrane, Hugo Bazille, Emily Clement, Uli Fahrenberg, Marie Fortin, and Krzysztof Ziemiański. Büchi–Elgot–Trakhtenbrot theorem for higher-dimensional automata. arXiv:2505.10461, 2025. arXiv:2505.10461.
- [4] Enzo Erlich, Jérémy Ledent, and Krzysztof Ziemiański. Algebraic characterization of FO-definable languages of higher-dimensional automata. In 37th International Conference on Concurrency Theory (CONCUR 2026), Leibniz International Proceedings in Informatics, volume 391, pages 32:1–32:18. Schloss Dagstuhl–Leibniz-Zentrum für Informatik, 2026. doi:10.4230/LIPIcs.CONCUR.2026.32. Full version (theorem numbering used here): arXiv:2605.25253v2.
- [5] Uli Fahrenberg and Krzysztof Ziemiański. Myhill–Nerode theorem for higher-dimensional automata. Fundamenta Informaticae, 192(3–4):219–259, 2024. doi:10.3233/FI-242194.
- [6] Uli Fahrenberg, Christian Johansen, Georg Struth, and Krzysztof Ziemiański. Languages of higher-dimensional automata. Mathematical Structures in Computer Science, 31(5):575–613, 2021. doi:10.1017/S0960129521000293.
Appendix A Counters introduced by canonical residual completion
The following unary, two-dimensional example starts with a counter-free HDA and produces an equivalent HDA with a period-two endpoint relation. Unlike the obstruction for a chosen module in [4, Section 5.2], this example uses the canonical suffix-residual module. We refine it by retaining the residuals obtained after deleting subsets of the target interface, as in [4, Lemma 25], and use the face maps of [4, Lemma 26]. This addresses the canonical construction suggested in the conclusion of that paper. The verification uses the explicit relation and profile tables below.
A.1 An eight-cell counter-free HDA
Let the alphabet be . The HDA has vertices , with the only initial and accepting vertex. Its edges, all labelled , are:
| Edge | Lower endpoint | Upper endpoint |
|---|---|---|
It has three squares, all of type . The two lower faces of each square coincide, as do the two upper faces:
| Square | Both lower faces | Both upper faces |
The lower endpoints of the two lower edges of each square agree, as do the upper endpoints of its two upper edges. For each square, the upper endpoint of a lower edge and the lower endpoint of an upper edge are both . These are the four precubical identities. There are eight cells in total. Write for the closed pomset consisting of two concurrent -events, and for all nonempty unary interval pomsets of dimension at most two with empty source and target interfaces. Write , and let denote the finite gluing powers of , including . Then
The sub-HDA consisting of has one cell of each unary type up to dimension two, so every elementary ST-decomposition of a closed pomset can be followed within it. To execute a nonempty pomset from to , follow this sub-HDA until the last start. If that start enters an edge, choose instead of ; the only remaining step is its termination at . If it enters a square, choose instead of ; the two remaining terminations pass through and end at . Thus the language from to is exactly .
Starting at , the first edge is . Terminating it completes a single and reaches . Starting a second event instead enters ; its upper edge is , from which no further start is possible, so the two events must both terminate, returning to . This contributes exactly . Repeating this alternative proves the displayed formula for .
We next verify counter-freeness in the full sense of Definition 34 of [4]. Encode a relation by its row bitmasks: a subset of target positions is represented by the sum of the corresponding powers of two. For example, has rows , with positions numbered from zero. For composable relations and , execution-order composition is given exactly by
| (16) |
where and are bitwise union and intersection; the empty union is zero. With vertices ordered , edges ordered and squares ordered , the four elementary relations are
They respectively start from dimension zero to one, terminate from one to zero, start from one to two, and terminate from two to one. The two possible event positions give the same relations. Set
An elementary path from dimension one back to dimension one is a concatenation of excursions through dimension zero or dimension two. These have relations and , respectively. Since a fixed ST-decomposition determines the whole endpoint relation, every edge endomorphism relation is a product of . The table below gives the resulting monoid, its products on the right by the two generators, and the least for which , using (16). Each displayed element is the indicated word in , and the table contains the identity and is closed under both right multiplications. It therefore exhausts the generated monoid.
| Element | Row bitmasks | Exponent | ||
|---|---|---|---|---|
| 1 | ||||
| 2 | ||||
| 3 | ||||
| 1 | ||||
| 1 | ||||
| 1 | ||||
| 2 | ||||
| 1 | ||||
| 2 | ||||
| 1 | ||||
| 2 | ||||
| 1 | ||||
| 1 | ||||
| 1 |
Every vertex endomorphism relation is the identity or , with in this table. The resulting relations are exactly
with stabilisation exponent at most two. Every square endomorphism relation is the identity or . They are exactly
also with exponent at most two. These lists exhaust endomorphism relations at every interface type, and hence
Thus is counter-free. Its language is aperiodically recognisable by Proposition 35 of [4], and it is downward closed as an HDA language.
A.2 Residual completion and its period-two relation
For a prefix , define its suffix residual by
Residuals act on the right by . This is well-defined because equality of suffix languages is preserved by further prefix extension. The reachable residuals, sorted by target interface, are:
| Interface | Nonempty residuals | Empty residual |
Here , and , represented by the vertex subsets , and , respectively. The subscript distinguishes from the concurrent pair . The residuals are the suffix languages from the cell sets , and ; has the same suffix language as the last set. Residuals come from and ; the set is equivalent to the latter. The complete elementary action is
The last two rows hold for either event position. The initial state is ; the accepting states are . To verify completeness, start with the vertex subset and propagate subsets by the four elementary relations. The subsets represented above, together with the empty subsets, are closed under these operations. The identifications and preserve both transitions and acceptance, so they preserve all suffix languages. All displayed residuals are reachable. They are distinct: zero-dimensional states are separated by the empty suffix or ; one-dimensional states by termination or termination followed by ; and by two terminations followed by . Every nonempty residual has an accepting suffix, separating it from the empty residual.
To define lower faces, retain the deletion profile
For completeness, the following rules determine its update under every elementary step. If a starter introduces a new event , a profile coordinate that deletes is the old coordinate deleting the remaining specified events. A coordinate that keeps is obtained from the old coordinate by the corresponding starter on its reduced interface. If a terminator removes an active event , the new coordinate indexed by is the old coordinate indexed by , acted on by termination of in the reduced interface. These rules follow by deleting the indicated events in the gluing definition, and use only the residual action table above.
Call a profile live when its first coordinate is a nonempty residual. The live profiles are
The coordinates in dimension two mean: delete neither event, the first, the second, or both. Here vertex names also denote their one-entry profiles. The update rules give the following finite table of prefix extensions; these are not the upward face transitions of the completed HDA.
| Profile | Append one start | Append one termination |
| — | ||
| — | ||
| — | ||
| dead | ||
| — | ||
| — | ||
| — |
A dash means that the step is unavailable within the dimension bound; “dead” means that the first coordinate is empty. When two event positions are possible, both give the listed profile. Every listed profile is reachable from by this table. Conversely, a prefix with empty residual keeps empty residual under every extension. Induction on an elementary ST-decomposition therefore shows that these are all live profiles. This proves exhaustiveness without enumerating dead profiles.
In the coherent residual completion, a lower face restricts the profile to coordinates that delete the specified event. An upper face is given by its termination update. Thus the vertices are , and the four edges have the following faces:
| Edge | Lower endpoint | Upper endpoint |
|---|---|---|
The squares have, respectively, the pairs of lower and upper faces , , and , with both faces of each kind coinciding. The initial vertex is , and the accepting vertices are . The displayed cells are closed under faces, so they form an HDA .
We can check directly. The sub-HDA executes every closed pomset of width at most two. From , every nonempty such pomset can reach : use for the first edge and, if a second event starts before the first termination, use for the first square. The first termination then enters or , after which the remaining steps stay in that sub-HDA. Since is not accepting, its accepting language is exactly . From , the first edge either terminates at , contributing , or enters and then passes through back to , contributing . The same decomposition used for gives .
Although this completion preserves the language, it changes the effect of iterating a closed letter. In vertex order , the ordinary closed letter acts in by
Consequently,
There is no stabilisation exponent, so is not counter-free. The same counter remains in the full completion. Indeed, an upper face of a dead profile is dead because its first coordinate is acted on by termination. A start from a dead cell cannot enter a live cell either, since every lower face of a live cell occurs in the displayed live sub-HDA. No path can therefore return from a dead cell to these vertices. Adding the omitted profiles does not change the displayed endpoint sets on . Thus canonical suffix residuals, even with the specified coherent deletion-profile refinement, need not yield a counter-free HDA, although recognises the same language with exponent three.