A Collapse of the Parity Index Hierarchy of Tree Automata, Based on Cantor-Bendixson Ranks
Abstract
Over words, nondeterministic Büchi automata and alternating weak automata are as expressive as parity automata with any number of priorities. Over trees, the Büchi acceptance condition is strictly weaker and the more priorities we allow, the more languages parity automata can recognise. We say that on words, the parity-index hierarchies of nondeterministic and alternating automata collapse to the Büchi and weak level, respectively, while both are infinite over trees.
We ask when is Büchi enough?, that is, on which classes of trees are nondeterministc Büchi automata as expressive as parity automata. Similarly for alternating weak automata. We work in the setting of unranked unordered trees, in which there is no order among the children of nodes.
We find that for nondeterministic and alternating automata, the parity-index hierarchy collapses to the Büchi level and weak level, respectively, for any class of trees of finitely bounded Cantor-Bendixson rank, a topological measure of tree complexity. Over trees of countable Cantor-Bendixson rank, (a.k.a. thin trees) the parity-index hierarchy of both nondeterministic and alternating automata collapses to the level , as was already known for ordered trees. These results are in some sense optimal: on the class of trees of finite but unbounded Cantor-Bendixson rank, two priorities do not suffice to recognise all parity-recognisable languages, even for alternating automata.
Keywords and phrases:
Parity tree automata, alternating automata, Cantor-Bendixson rankCategory:
Track B: Automata, Logic, Semantics, and Theory of ProgrammingCopyright and License:
![[Uncaptioned image]](x1.png)
2012 ACM Subject Classification:
Theory of computation Formal languages and automata theoryEditors:
Keren Censor-Hillel, Fabrizio Grandoni, Joël Ouaknine, and Gabriele PuppisSeries and Publisher:

1 Introduction
Over infinite words, the languages recognised by nondeterministic parity automata are the same as those recognised by nondeterministic Büchi automata, namely all -regular languages. For alternating automata, an even simpler acceptance condition called weak, in which accepting and rejecting cycles do not intersect, suffices to achieve the same expressivity. In contrast, over infinite trees, not only are parity automata more expressive than Büchi automata, but each additional priority increases the expressivity of parity automata [2, 12], both in the nondeterministic and alternating case. We say that on words, the nondeterministic and alternating parity-index hierarchies, also known as the Rabin-Mostowski hierarchies, collapse to the Büchi and weak level, respectively, while on trees, these hierarchies are infinite.
Here, we are interested in structures between words and arbitrary trees, and ask when does the parity-index hierarchy collapse, and to which level? That is, for which classes of trees do nondeterministic Büchi automata and alternating weak automata capture the same languages as parity automata? What about acceptance conditions between Büchi and parity?
There is a dual motivation for this problem. The decidability of the parity-index hierarchy – that is, whether one can decide the minimal number of priorities required to recognise a language – is a long-standing open problem for both nondeterministic and alternating tree automata, while it is straight-forward for word automata. So far, the problem of deciding whether a tree language is expressible with a fixed number of priorities is only known to be decidable for the full hierarchy for deterministic automata [14], game automata [6] and guidable automata [13], which are a form of mildly nondeterministic automata. Results about these hierarchies over restricted classes are limited: over planar graphs, they are infinite [3]; over classes of ordered trees with a countable number of infinite branches, they collapse [7] (see comparison in Remark 27). Here we show the relevance of tools from the parity game literature – in particular attractor decompositions – for analysing the index hierarchy.
From a more practical perspective, defining and understanding properties that use many priorities (or alternating fixpoints in the -calculus) is notoriously hard, so it is interesting to understand when a Büchi condition (one fixpoint alternation in the -calculus), or a weak condition (alternation-free -calculus) suffices.
The setting in which we study this problem is that of alternating and nondeterministic parity automata over unordered trees, that is, trees of unbounded and not necessarily finite arity in which the children of nodes are not ordered (nor labelled with left and right). The trees are coloured with letters from a finite alphabet, and processed by tree automata. Our automata formalism captures the expressivity of the modal -calculus (see for example [15]), and the parity index coincides with the fixpoint alternation depth. We study the expressivity of these automata over classes of trees, of which the trees are coloured from a finite alphabet in all possible ways: for instance, the singleton class containing a tree with a single infinite branch produces all words in . We do not consider restrictions on the colouring.
We identify the key parameter that determines the collapse of the parity-index hierarchy to be the Cantor-Bendixson rank of trees. This notion originates from topology, see for example [10], and has been used to describe the structural complexity of trees. In particular thin trees (trees with countably many branches) are exactly the trees of Cantor-Bendixson rank less than , the first uncountable ordinal.
Our main result is that on the class of trees of Cantor-Bendixson rank less than :
-
1.
For any nondeterministic parity automaton , there exists a nondeterministic Büchi automaton such that (Theorem 23);
-
2.
For any alternating parity automaton , there exists an alternating weak automaton such that (Corollary 24).
For completeness, although a related result is already known for ordered trees [7]111Note that deducing the result in one setting from the other is harder than proving it afresh., we also show that on the class of thin trees:
-
1.
For any nondeterministic parity automaton , there exists a nondeterministic -automaton such that (Theorem 25);
-
2.
For any alternating parity automaton , there exists an alternating - and -automaton such that (Corollary 26).
Trees that don’t have a countable Cantor-Bendixson rank actually don’t have a defined Cantor-Bendixson rank (for countable trees) and are known to admit the full binary tree as a minor. For those trees, the parity index hierarchy is known to be infinite [1]. This completes the trichotomy on the classes of trees parameterised by their Cantor-Bendixson rank.
We also show that these results are optimal in the sense that there are languages not recognised by alternating Büchi automata over the class of trees of finite Cantor-Bendixson rank. This implies that i) neither alternating weak automata nor nondeterministic Büchi automata suffice to capture the whole hierarchy on the class of trees of finite Cantor-Bendixson rank, and ii) automata with only two priorities do not suffice to capture the whole hierarchy over trees of countable Cantor-Bendixson rank.
To obtain these results, we generalise the Cantor-Bendixson rank from trees to graphs, in order to study the complexity of the acceptance parity games induced by an automaton on the class of trees of interest. We give a new characterisation of the Cantor-Bendixson rank. A tree has Cantor-Bendixson rank at least it it contains disjoint sets of vertices such that every vertex of has both a successor within and a path to . This property extends as is to graphs, which we believe to be an interesting measure of complexity in its own right. Our main technical result is that if has a finitely bounded Cantor-Bendixson rank, then the membership parity games induced by any automaton also have a finitely bounded rank. We then use the notion of attractor decomposition, which corresponds to the decomposition computed by, for instance, Zielonka-type algorithms for parity games, and which has also been used in the context of quasipolynomial algorithms for parity games [9] and automata transformations [11, 4]. We extend attractor decompositions to infinite parity games, and argue that games of finitely bounded rank have finitely bounded attractor decomposition and therefore the winning regions of parity games of finitely bounded rank are recognisable by Büchi automata. We then transform, for any , any alternating parity automaton into a Büchi automaton that is equivalent over all trees of Cantor-Bendixson rank up to . If the input automaton is nondeterministic so is the output automaton. Furthermore, if the input automaton is a coBüchi automaton, this transformation yields a weak automaton. Then, via double complementation, we get an equivalent alternating weak automaton.
Beyond proving these new results on the parity-index hierarchy of tree automata, we believe our technical developments provide some insights into the relevance of attractor decompositions for approaching the parity-index hierarchy. We also believe that the notion of rank we introduce, which extends Cantor-Bendixson rank from trees to graphs, can be a useful tool to study structural properties of graphs.
Proofs that are routine or uninformative are in the appendix.
2 Graphs, automata and parity games
Notation.
We denote by the first infinite countable ordinal and the first uncountable ordinal. Given a set , and an ordinal , we define the set of sequences of order-type over . The length of a sequence is denoted by . Given of length , we use to refer to the element of a sequence and to refer to the subsequence for, . Finally we denote by the set of finite sequences over . Two sequences are called ultimately equal if they only differ by a finite prefix. They are called ultimately disjoint if they have no element in common, up to removing finite prefixes.
Graphs.
A graph consists of a possibly infinite but countable set of vertices and a set of directed edges . A subgraph of is a graph with and , which we denote by . The subgraph of induced by a subset is and denoted by . Given , and two induced subgraphs of , we denote by the subgraph induced by . The subgraphs and for and are and , respectively. A subset of vertices is closed under successors in if for every vertex and edge , we have . A vertex is terminal if it has no successor. We write for the clique of size , that is, the graph with vertices and edges .
A path in is a sequence or of successive edges (i.e. ). We call -path, or infinite path, a path which is not finite. When convenient, we also refer to a path by its sequence of vertices or . We also call a graph an infinite path if and . Extending definitions, we say that a set of vertices is a path if is a path.
A graph is a tree if there exists a vertex , called the root, such that for any vertex , there is a unique path from to .
The (synchronous) product of two graphs is the graph with vertices and edges . Given a vertex we denote by the projection on the first coordinate. We extend this notation to vertex sets and vertex sequences in the natural way.
A -coloured tree, or simply -tree, , consists of a tree , an edge colouring and its root . A class of trees and an alphabet generate the class consisting of all -trees such that .
The attractor of a set of vertices (or edges) in a graph , denoted by (or if is clear from context), is the set of vertices in , such that all maximal paths of starting in intersect with (contain an edge in ). In particular, if is a set of vertices, it is contained in ; if is a set of edges, neither of its endpoints is necessarily in . (This is the restriction of the typical definition of attractor to a one-player game.)
Parity Games.
A parity game is a two-player game, played on a graph without terminal vertices, rooted at an initial position , coloured by a priority assignement with non-negative integer priorities from or for some , in which vertices (called positions) are partitioned between those belonging to Eve, and those belonging to Adam, . A play of a parity game is a path in . An infinite play is winning for Eve if the highest priority that occurs infinitely often is even.
A strategy for Eve is a function such that . A play agrees with a strategy for Eve if for all , . Adam’s strategies are defined similarly from . A strategy for a player is winning if all the plays that agree with it are winning for that player. Parity games admit positional strategies [16], that is, the winning player always has a strategy such that for all , and can therefore be written as a function for .
Tree automata.
An alternating parity tree automaton (APT) over a finite alphabet consists of: a finite set of states ; a transition function , where consists of transition conditions, that is, positive modal formulas over : ; we further require that every occurence of a state in a transition condition is within the scope of exactly one modal operator from ; and a priority assignement where is a set of consecutive integers starting from . is an initial transition condition in .We write for the size of , that is, the total number of subformulas in all the transition conditions in .
An APT is also a Büchi automaton (ABT) if the set of priorities is . In this case, states with priority are called “accepting” and with priority “non-accepting”. An APT or ABT is nondeterministic (NPT or NBT) if the only conjunctions that occur are of the following form for a set of states [8]: . These correspond to disjunctive formulas of the modal -calculus and are as expressive as APT [8]. Here we will only use the fact that adding disjunctive choices keeps an automaton nondeterministic.
We define acceptance via parity games. Given a -tree and automaton , the acceptance game is the parity game given by:
-
A set of vertices to indicate the vertex in the graph, the state or transition condition of the automaton and the label currently processed by the automaton; and are sinks winning for Eve and Adam respectively.
-
A set of edges (where , , and :
-
–
;
-
–
and ,
-
–
and ,
-
–
for all such that and
-
–
and ;
-
–
for all such that and ;
-
–
and .
-
–
-
Positions and belong to Adam; and belong to Eve. These are of the minimal priority . Outgoing edges from positions are of priority ; the self-loop on is of minimal even priority; the one on is of minimal odd priority. These positions have a single successor so their owner is irrelevant.
-
An initial position .
accepts a -tree with root if Eve has a winning strategy in from . recognises the language of -trees accepted by . Two APTs and over an alphabet are equivalent if they recognise the same language, namely if . They are equivalent over a class of trees, or agree on , if for every rooted -tree , either both accept or both reject .
Remark 1.
Our alternating tree automata are equivalent to the -calculus, typically defined over trees (or graphs) with arbitrary branching and unordered successors. Different versions of the -calculus describe properties of edge- and vertex-coloured trees. We colour edges in trees for technical convenience, but this makes little difference.
3 Decompositions, patterns and Cantor-Bendixson rank
In this section we introduce three measures of graph complexity. The first is the attractor decomposition of parity graphs [9, 4] extended here to infinite graphs. The second is the presence of what we call patterns which is new to the best of our knowledge. The third is the Cantor-Bendixson rank, a measure of complexity of topological spaces, which can also be used for trees [10].
3.1 Parity graph decompositions
A parity graph is a graph without terminal vertices, edge-coloured with priorities, namely with a set of consecutive integers , where . A parity graph is even if on all infinite paths, the highest priority occurring infinitely often is even. In particular, the highest priority on every cycle must be even.
An attractor decomposition of a parity graph , if it exists, is a witness that the graph is even. It was introduced in the form we use here under the name “hierarchical decomposition” in [4, Proof of Theorem 6], and later called attractor decomposition and applied to parity games, rather than just graphs in [5, 9]. Our presentation mostly follows [5], restricted to one-player games in which all positions belong to Adam, but extended to infinite graphs. Informally, for the maximal even priority , a -width attractor decomposition identifies a set of vertices (region) from which every maximal path visits the set of edges of priority ; a region disjoint from from which every maximal path either visits an edge of priority or does not visit an edge with priority ; a region that is the attractor of in ; and likewise regions and , for every , that are disjoint from for every , where is the attractor of in , and consists of vertices from which every maximal path visits priority , , for some , or does not visit a vertex with priority . Each is then further decomposed with width and with respect to priority , which is larger or equal to all priorities in . If such a decomposition is a full partition of , in the sense that the vertices in are the union of the vertices in the regions, then the graph is even: indeed, any infinite path must either eventually remain within some , thus avoiding seeing infinitely often, or reach infinitely often; within each , the same is true with respect to , and so on.
Definition 2 (Attractor decomposition).
Given a parity graph with maximal priority at most some even , and an ordinal, a (-height, -width)-attractor decomposition of , if it exists, is recursively defined to be for , where:
-
is the set of edges in of priority ,
-
,
-
For every , we define , and and have:
-
–
is non-empty, such that contains no edges of priority and is closed under successors in .
-
–
is ,
-
–
is a (-height, -width)-attractor decomposition of ,
-
–
-
.
-
A (-height, -width)- and a (-height, -width)-attractor decomposition is just : the entire graph is in the attractor of the edges of highest priority.
An attractor decomposition is greedy if at each level, each is maximal, that is, it contains all vertices of that do not have a path in to a vertex of priority in .
The next lemma (proof in Appendix A) says that paths in a parity graph progress monotonously through the attractor decomposition, unless the maximal even priority occurs.
Lemma 3.
Given a graph that admits an attractor decomposition , the set is unreachable from in for all and such that .
Proposition 4.
A parity graph is even if and only if it admits an attractor decomposition. The attractor decomposition can be chosen to be greedy.
Proof.
If a parity graph , of maximal priority at most some even , is even, we can construct a greedy attractor decomposition recursively for it as follows. Let be the set of edges of priority and the attractor of .
Then, we define each and for inductively. First let for an ordinal. is either empty, or is an even parity graph with maximal priority no larger than . Let consist of all positions of from where can not be reached. If is non-empty, there must be such positions, since otherwise one could build a path which sees infinitely many , contradicting that is an even graph. Let be the attractor of in and let be an -attractor decomposition of .
Let us assume is non-empty for all countable ordinals . Since all the s are disjoint, their union is uncountable, since there are uncountably many ordinals smaller than . However we only work with countable graphs, which gives a contradiction. Thus must be empty for some countable ordinal . Hence .
Observe that this attractor decomposition is, by construction, greedy.
For the other direction, assume that a parity graph has an attractor decomposition of height . We proceed by induction on the height of the attractor decomposition, that is, the number of priorities in . The base case of the unique priority is trivial since all paths are even.
For the induction step, we observe that any infinite path of must either eventually remain in some for or reach infinitely often, due to Lemma 3. In the latter case, the path is even since all edges in are of the highest possible priority. In the former case, since each has an attractor decomposition of height , by the induction hypothesis, we are done.
3.2 Patterns and rank
Here we define the central notions of the article: patterns and rank, with which we measure the complexity of graphs.
Definition 5.
For an ordinal , a -pattern in a graph consists of a family of pairwise disjoint non-empty subsets of such that for all :
For all vertices there exists a vertex , and a path which can only decrease in component index, meaning such that for all there exist , such that and .
Basically, the condition of a pattern states that from any vertex in the pattern, one can go to some vertex in any component of lower index, following a (non-empty) index decreasing path. In particular any vertex must have at least one successor in the same component. Observe that a pattern in a subgraph is a pattern in the whole graph.
Definition 6.
A graph has rank if it has a -pattern but no -pattern. A graph class has rank if is the supremum rank of graphs in .
Example 7.
A graph has rank if and only if it has no infinite paths. The class of trees with a finite number of infinite branches has no -pattern. It thus has rank . The class of directed acyclic graphs (DAGs) of finite width, where the width is the length of the longest antichain, has -patterns for all finite and therefore has infinite rank, while the class of DAGs of bounded width is of rank .
We can now make a connection between the rank and the decomposition of a graph:
Lemma 8.
An even parity graph of finite rank has a -attractor decomposition.
Proof.
Let be an even parity graph of maximal priority an even or an odd with vertices . Since is an even parity graph of maximal priority at most , it has by Proposition 4 an -height attractor decomposition. Let be a greedy such decomposition of width and not of any width (that is, the whole width is used somewhere). We will argue that has an -pattern.
Since indeed uses somewhere the whole width , some induced subgraph has a decomposition .
We show by induction that for all finite , the graph , rooted at any vertex in , has an -pattern. therefore has an -pattern if is finite, and an -pattern for all finite otherwise.
First, we consider the base case . Observe that has no terminal vertices as is an attractor and has no terminal vertices. It follows that every vertex in is on an infinite path. Then, as every vertex of is in the attractor of , from any vertex of there is a path in to an infinite path in . It follows that in the graph , a -pattern is accessible from every position of .
For the induction step, we similarly observe that as has no terminal vertices, every vertex of is on an infinite path in . From greediness of , each vertex of also has a path into in ; indeed, a vertex without such a path could be in , contradicting greediness. Then, a -pattern in is accessible infinitely often on every path in ; it follows that there is an -pattern from every position in , and by extension in . Thus a greedy -width attractor decomposition witnesses that the rank of the graph is at least .
Then, if an even parity graph is of rank , it must have a greedy attractor decomposition, from Proposition 4, but this greedy attractor decomposition can have width at most .
3.3 Cantor Bendixson rank
In this subsection we introduce a well-known notion of descriptive set theory: the Cantor-Bendixson rank (see [10]). We then show that the Cantor-Bendixson rank of a tree is equal to its rank, as defined in the previous section.
The notion of Cantor-Bendixson rank and derivative is originally defined over topological spaces. As in [10]222Note that our definition is slightly different since we consider trees with possibly infinite branching. we adapt the definition to trees so that it coincides with the usual notion for the metric space of -branches where branches with a long common prefix are close.
Definition 9.
Let be a tree, let be a vertex of . We say that is a path vertex of if lies on an infinite path of , i.e. there is an infinite path . We say that is a limit vertex of if there is a converging sequence of pairwise distinct paths which go through ,i.e. there is a path such that for all , there is a path which is ultimately disjoint from .
The trimmed subtree of , denoted is the subgraph of induced by the set of path vertices. The derivative of , denoted is the subgraph of induced by the set of limit vertices.
Note that all limit vertices are path vertices, and both and are upward closed subtrees of , since any ancestor of a path (resp. limit) vertex is a path (resp. limit) vertex.
Definition 10.
We define inductively the ordinal derivatives of a tree:
-
,
-
, and
-
, for a limit ordinal.
We say that has Cantor-Bendixson rank (CB rank for short) if is the least ordinal such that is empty.
Note that we can show inductively on ordinals that is a decreasing (inclusion-wise) sequence of subtrees of .
The Cantor-Bendixson rank of a tree happens to coincide with its rank in terms of patterns. The reason we consider patterns is because they are more flexible and apply to arbitrary graphs, while the CB-rank is not well-defined on other kinds of structures.
Proposition 11 (CB-rank).
Let be an ordinal. A tree has rank iff it has CB rank .
4 Over trees of finitely bounded Cantor-Bendixson rank
In this technical core we show that nondeterministic Büchi automata and alternating weak automata are as expressive as parity automata over trees of finitely bounded rank.
4.1 Bounding the rank
The main result of the subsection is the Product Lemma: the product of a tree of rank with a graph with vertices has rank at most . This is a key technical lemma for proving our main theorem in the next section as it will allow us to show that the acceptance parity game of an automaton over trees of bounded rank also has bounded rank.
Definition 12.
Let be a graph, a -pattern is called tree-like if the following holds for all :
-
there are no paths in from to ,
-
where is an infinite path, for ,
-
if a vertex can be reached in from and then .
If is tree-like, then is called almost tree-like.
Tree-like patterns behave much like trees, which has two advantages: first, it is easier to extract a tree subgraph from the pattern and second, tree-like pattern can be glued together.
Lemma 13 (Glueing Lemma).
Let be a graph and let be a tree-like -pattern of , with satisfying the corresponding properties. Let be tree-like -patterns of such that , for all . Then admits a tree-like -pattern.
Proposition 14.
Let be a tree, let . If has a tree-like -pattern, then has a -pattern.
Proof.
Let , and let be the projection of vertices of to their coordinate. Let us assume that is a tree-like pattern of . We show that two distinct vertices of the pattern must have different coordinates. This is enough to ensure that is a -pattern of . We first show that two vertices in different components of the pattern have different coordinates, then we show that it also holds for two vertices in the same component of the pattern.
Two vertices that have the same coordinate can reach the same vertices in . Then, two vertices in different components of the pattern cannot have the same coordinate, since the pattern is tree-like.
Let , let such that the s are paths with disjoint reachability sets. If two distinct vertices have the same coordinate, they have to lie in the same , for some . However given two vertices of , one can reach the other as is a path, which means that the vertices have different coordinate.
Definition 15.
Given a graph , a path in and a set of vertices of , we say that goes near infinitely often if for all , there is and such that .
Proposition 16.
Let be a tree, let . Let be an -pattern of such that is an infinite path. Then has an almost tree-like -pattern
Proof.
We have that is an infinite path in . We construct a sequence and define . We will show that we can construct this sequence inductively with the following properties for :
-
there is a path in from to any vertex of ,
-
is an infinite path which goes near infinitely often,
-
if is reachable in from and then
-
there is no path in from any vertex of to .
The first condition ensures that is a pattern and the second that is a pattern. The last two conditions ensure that is tree-like. Thus we only have left to construct the sequence .
Initial case: Let and let be a path such that for . Let us consider infinite paths for . Then, the projections on of these paths cannot all be eventually equal since the s are disjoint and there are only copies of each vertex of in . Let be an index such that and are eventually disjoint, meaning they end up in different branches of . Let be the first vertex of such that is not on the branch . Note that there is an edge from a vertex of to but there is no path from to any vertex of . From we choose a path in which goes near infinitely often, which is possible by the definition of pattern. The set is defined as the set of vertices of .
Assume we have constructed , with the desired properties. We choose a vertex such that cannot reach any of the s, for . Such a has to exist, since the projections of the s are ultimately disjoint from .
Similarly to the initial case, we can find a path which goes near infinitely often, such that there is a path in from to a predecessor of , and there is no path from to a vertex of . Let be the set of vertices of . Since cannot reach s, the vertices of cannot reach s, a fortiori. It remains to show that there is no path from to for . Assume the contrary, then there is a vertex in and path from which does not go through to , by going through . Furthermore, there is also a path which goes through . Let be a vertex distinct from . If , then , since is a path. If , since from the induction assumption there is no path from to , we have . Then there are two distinct paths in from the same vertex to , a contradiction.
From a graph of rank , the product with the clique over vertices, has rank at least . We show below that this is optimal for trees, and leave open the question whether this holds in general.
Lemma 17 (Product Lemma).
Let be a tree of rank , let . The graph has rank at most .
Proof.
The statement is trivially true for , so assume in the following.
We show by induction on that given a -pattern of , such that is a path, one can obtain a tree-like pattern . From Proposition 14, this is enough to obtain the result.
Clearly this holds for . Let us assume it holds for some .
Let be a -pattern of We use Proposition 16 on the pattern and obtain , an almost tree-like pattern. We have that is a union of disjoint paths , , with the property that no vertex can be reached from two distinct paths. For each , is a -pattern with an infinite path. From the induction assumption, we can obtain a tree-like -pattern . Since is tree-like, from the Glueing Lemma we obtain a tree-like pattern, which concludes the induction.
To finish the proof, we only need to show that given a -pattern of we can assume without loss of generality that is a path. To do this we only need to restrict to a path which goes near infinitely often, which can easily be done.
Now that we have proved the Product Lemma, we need another simpler lemma dealing with the rank of trees obtained by what we call subdivision of vertices.
Definition 18.
Let be a graph. An -subdivision of vertex in is the graph where , .
A graph is called an -subdivision of if can be obtained by applying to all vertices an -subdivision with (a -subdivision of a vertex does not modify the graph).
Proposition 19.
Let be a tree of rank and let be an -subdivision of . Then has rank at most .
4.2 From parity automata to Büchi and weak automata
The previous technical developments, in particular the Product Lemma, imply that the acceptance game of a tree cannot have a much larger rank than the original tree. This implies in turn a bound on the attractor decompositions of such games for trees of bounded CB-rank. We use this to convert parity automata into a Büchi automata over trees of bounded rank.
Corollary 20.
Given a tree with rank and an APT , the acceptance parity game has rank at most for some constant that depends only on .
We now build an NBT for finite that operates over the tree unfolding of parity graphs with priorities up to , accepts those with a -width attractor decomposition, and rejects odd ones333Note that this construction is similar in spirit to the one in [4, Lemma 9], which is made succinct by the use of small universal trees.. We build for even , by induction on , starting with , which, for all simply consists of an accepting state and a transition .
Then, we build as follows. We take copies of with initial states , respectively, and add a non-accepting state before each , as well as after , each with a nondeterministic choice over priorities up to to either loop or move to the next copy of . From , there is only a self-loop on priorities up to . From every state of each , seeing the input letter leads to the intermediate state . Finally, we also add one accepting state , to which all states transition upon seeing , and from which there is a transition over all priorities up to to , the first new non-accepting state. A more formal definition can be found in Appendix B.
Finally, let for odd be as , except without any transitions on priority .
Remark 21.
is a weak automaton since the only accepting cycles are self-loops in the copies of and the only rejecting cycles are self-loops on the intermediate states .
Lemma 22.
For every and , the automaton accepts parity graphs with priorities up to , represented by their tree unfolding, that have a -width attractor decomposition and rejects odd graphs.
Proof.
We prove the statement for even by induction on ; the statement for odd follows easily. In the base case, where , for every , all parity graphs have a -width attractor decomposition, and indeed by the construction of , it accepts everything.
In the induction step, we assume the claim for , and prove it for . If a parity graph with priorities up to has a -width attractor decomposition , then Eve can use the following strategy in the acceptance game : At a position with , Eve remains in until she reaches a position where for some ; from there, she moves to and follows a strategy that is winning in the acceptance game of and the tree rooted at and restricted to priorities up to , from the IH. Then, if no priority equal or larger than occurs, the play will remains within in , and is winning by IH. If priority occurs, the game moves to some , of priority ; if occurs, the game moves to some where . This is the case since does not contain priority and any path from that does not contain but contains progresses to some with (Lemma 3). If , then the priority will eventually occur, and the game moves to some , of priority .
We now argue that this strategy is winning for Eve. Indeed, a play can either eventually remain in some component, in which case it is winning by induction hypothesis, or eventually exits every . In the latter case, the only way for Eve to lose would be to get stuck in and never see the priority . However, since the -component of the play moves to some with whenever it exists a component , the play can only reach where , in which case will eventually occur.
Furthermore, if Eve has a winning strategy in the acceptance game, then the highest priority on all infinite paths of is even because all accepting cycles in read words of which the highest priority is even; hence does not accept any odd graphs.
The statement for odd follows as is then as without any transitions.
We now build, from any APT of priorities up to an ABT that agrees with over trees of rank at most by composing it with where only depends on and .
Theorem 23.
Given and an alternating parity automaton , one can effectively construct an alternating Büchi automaton that agrees with over trees of Cantor-Bendixson rank up to . If is nondeterministic, so is and if is coBüchi then is weak.
Proof.
Consider an APT with priorities up to . Let for the constant in Corollary 20; then we know that the game has rank strictly less than for all trees of rank up to .
By Lemma 22, the ABT accepts all parity graphs with priorities up to with a -width attractor decomposition, and rejects odd parity graphs. By construction, only has modalities. Then, we build the required ABT by taking the synchronous composition of and . This is an ABT that accepts a tree if and only if accepts some tree induced by a strategy for Eve in . The details of this composition are as expected, detailed in Appendix B.
In words, is an automaton that uses to process the input tree, and at each step, processes the priority that would produce, which adds some nondeterministic choices. We argue accepts any tree such that in Eve has a winning strategy that induces a graph with a -width attractor decomposition, and rejects .
Assume is such that in Eve has a winning strategy that induces an even graph with a -width attractor decomposition. Let be Eve’s winning strategy in . We can then compose these strategies to obtain a winning strategy in . Indeed, positions of can be seen as a position of paired with states of , to which are added, after the resolution of the boolean combinations in transition conditions of , the resolution of the boolean combinations in the transition condition of corresponding to a transition on the priority of the next state in . In the composition strategy, determines the choices between successors in at -modalities and choices at disjunctions in the transition conditions of , while determines choices at disjunctions in the transition conditions of . The existence of guarantees the existence of , and that the composition strategy remains in the restriction of to in the -part of the game. Since the priorities of come from the priorities of , the fact that is winning for Eve ensures that the composition of and is winning for Eve.
Conversely, if , then Adam has a winning strategy in . He can use directly in as does not add any universal choices ( or ) beyond those of . Let be the sequence of priorities induced by the projection of a -consistent play of on the component; the highest priority seen infinitely often on is odd. The projection of the same play on is a path of that processes . By construction, no accepting cycle of processes a word of which the highest maximal priority is odd, so this path is rejecting, and is a winning strategy for Adam in .
For all of rank up to , has rank strictly less than , if then Eve has a winning strategy that induces an even graph that also has rank less than . From Lemma 8, it has a -width attractor decomposition, and therefore accepts ; if then rejects , so agrees with on such trees. By construction, if is nondeterministic, so is as only has nondeterministic choices; if is coBüchi, then is weak since is weak.
Corollary 24.
Let , let be an alternating parity automaton, one can effectively construct an alternating weak automaton that agrees with over trees of Cantor-Bendixson rank at most .
Proof.
Given , from Theorem 23 there is an alternating Büchi automaton that agrees with over trees of Cantor-Bendixson rank at most . Let be the standard syntactic coBüchi complement of , obtained by exchanging and , and and , and replacing priority with and with . Then accepts a tree of rank at most if and only if rejects it. Again from Theorem 23, there is an alternating weak automaton that agrees with on all trees of rank at most . Then, the syntactic complement of , is an alternating weak automaton that agrees with on all trees of rank at most .
5 Over trees of countable Cantor-Bendixson rank
Theorem 25.
Given an alternating parity automaton , one can effectively construct an alternating -automaton that agrees with over trees of countable Cantor-Bendixson rank. Furthermore, if is nondeterministic, so is .
Proof.
Recall from the proof of Theorem 23 that the synchronous product , for some dependent on , is equivalent to over trees of rank for , the nondeterministic Büchi automaton from Lemma 22. For clarity, we will describe as having its additional -priority on transitions.
Let be as , but with additional nondeterministic transitions of priority from every state to the initial state . (To have priorities on states, it suffices to use a copy of of priority .) We now argue that is equivalent to over thin trees.
One direction is clear: all accepting cycles of , like of read words of which the highest priority is even, so for to accept , there must be an accepting run of over .
For the other direction, we show that if a thin tree is accepted by , then it is also accepted by . We build a run of over with an accepting run of over in the first component. For the second component, we must resolve the non-determinism in . To do so, let be the set of vertices of of CB-rank . Observe that any subtree of induced by for some itself is a tree of rank . Then, we resolve the nondeterminism of as follows: when the position of the run in changes CB-rank, the run takes the available -edge that resets to its initial state.
Since the rank along a path can only decrease, the rank along a path in of countable rank can only change a finite number of times, hence this strategy will only use the -transition a finite number of times on a tree of countable rank.
Then, from some and position in for some and while the run remains in , the run follows an accepting run in from over the subtree induced by in . Such a run exists since from agrees with from over trees of rank .
Corollary 26.
Given an alternating parity automaton , one can construct an alternating -automaton that agrees with over thin trees.
Proof.
Given an alternating parity automaton , let be an alternating -automaton that agrees with the complement of over trees of countable Cantor-Bendixson rank, obtained from Theorem 25. The syntactic complement of , obtained by exchanging and , and , and shifting priorities by , is a , then agrees with over thin trees.
Remark 27.
While we believe that this section is helpful in understanding how our techniques extend beyond finite Cantor-Bendixson rank, analogous results on ordered thin trees were already shown in [7]. While some of our reasoning is similar, there are also some differences that make transfering results between the two settings non-trivial. For instance, our trees are of unbounded, potentially infinite arity. Furhtermore, they are interested in recognising languages of thin trees among all forests, that is, in automata that can both check whether a tree is thin and in the language. Crucially, over unordered trees, our automata (which are bisimulation-invariant, like the -calculus) do not suffice to check that the rank of a tree is finite or countable, while their automata have the expressivity of MSO.
To exemplify how the two setting differ with respect to the parity index hierarchy, we observe that nondeterministic Büchi automata are as expressive as parity automata on the class of ordered trees in which every branch goes left a finite number of times. It is harder to find a similar example of a class of unordered trees of unbounded Cantor-Bendixson rank over which non-deterministic Büchi automata are as expressive as parity automata.
6 Over trees of finite Cantor-Bendixson rank
In this section we argue that the previously described trichotomy result cannot be improved upon: two priorities do not capture all regular tree languages over trees of finite rank.
Theorem 28.
The language of trees where letter occurs a finite number of times on every branch is not recognisable by alternating Büchi automata over the class of trees of finite rank.
Before we proceed with the proof of Theorem 28, we prove the following technical lemma that describes how adding a back-edge in a tree and unfolding it back into a tree only increases the rank of the tree by at most .
Definition 29 (back-edge unfolding).
Let be a tree, let such that u is an ancestor of . We define the tree obtain by unfolding the graph . We say that is a back-edge unfolding of .
Lemma 30.
Given a tree of rank , the tree , obtained as a back-edge unfolding of , is of rank at most .
Proof.
In the tree , all vertices except those on the branch with the infinitely repeating segment from to have induced subtrees that appear in , and therefore all those subtrees are of rank at most . The th derivative of is thus either empty or contains this single infinite branch. Hence has rank at most .
Proposition 31.
Let be a non-empty class of trees closed under back-edge unfolding. Then the language of trees in which the letter occurs a finite number of times on every branch is not recognisable by an alternating Büchi automata over the class ..
Proof.
Assume, towards a contradiction, that there is an alternating automaton that recognises the language of trees in which occurs a finite number of times on every branch over the class of trees of finite rank.
Consider a finitely branching tree of rank strictly larger than where is the size of (the size of the -dependent component of the acceptance game of ), in which edges between vertices of different rank are labelled and other edges are labelled . This tree is in so there is a positional winning strategy for Even in . We now show that there is a branch in with occurrences of such that every play that agrees with sees a Büchi state between each occurrence. Indeed, first take a branch of constant rank , starting from the root, which we call . All plays along this branch that agree with the strategy must eventually see a Büchi state, so by König’s lemma at some vertex, all such plays have seen a Büchi state. Since this vertex is of finite rank , it has some descendant of rank . We build and similarly from . We call the branch from the root that includes each and eventually follows . Since changes rank times, it has occurrences of , and, by construction, every play that agrees with sees a Büchi state between two such occurrences.
By pigeonhole principle, along , we can find two vertices and such that:
-
occurs at least once in between and ;
-
the edge leading to and has the same label;
-
visits the same set of states of in both and ;
-
Every play that agrees with visits a Büchi state between and .
The tree , defined as the unfolding of with a back-edge from the parent of to , has finite rank from Lemma 30, so should reject since it has a branch with infinitely many occurrences of . However the strategy , induced by on , is an winning strategy in since plays on branches that see a finite number of times copies of , eventually resemble plays from in and are therefore winning, and plays on the unique branch that sees copies of infinitely often visit a Büchi state in between each such occurrence and are therefore accepting.
Proof of Theorem 28.
7 Discussion
We have shown that over trees, there is a tight relationship between the index hierarchy of parity automata and the Cantor-Bendixson rank. While on trees we observe a trichotomy, it is open whether a similar result holds over graphs, or whether there are classes of graphs over which the parity index hierarchy collapses to each level beyond . We expect our notion of graph rank to be helpful in exploring this question. One of the technical challenges of extending this work to graphs is generalising the Product Lemma, whose the proof relies heavily on the simplicity of tree structures. We hope that studying the orthogonal cases of finite graphs and DAGs separately will help tame the challenges of the graph setting.
References
- [1] André Arnold. p329 the -calculus alternation-depth hierarchy is strict on binary trees. RAIRO Theor. Informatics Appl., 33(4/5):329–340, 1999. doi:10.1051/ITA:1999121.
- [2] Julian C. Bradfield. The modal -calculus alternation hierarchy is strict. Theor. Comput. Sci., 195(2):133–153, 1998. doi:10.1016/S0304-3975(97)00217-X.
- [3] Giovanna D’Agostino and Giacomo Lenzi. The -calculus alternation depth hierarchy is infinite over finite planar graphs. Theor. Comput. Sci., 737:40–61, 2018. doi:10.1016/J.TCS.2018.04.009.
- [4] Laure Daviaud, Marcin Jurdzinski, and Karoliina Lehtinen. Alternating Weak Automata from Universal Trees. In 30th International Conference on Concurrency Theory (CONCUR 2019), 2019. doi:10.4230/LIPIcs.CONCUR.2019.18.
- [5] Laure Daviaud, Marcin Jurdziński, and K. S. Thejaswini. The Strahler Number of a Parity Game. In 47th International Colloquium on Automata, Languages, and Programming (ICALP 2020), 2020. doi:10.4230/LIPIcs.ICALP.2020.123.
- [6] Alessandro Facchini, Filip Murlak, and Michal Skrzypczak. Index problems for game automata. CoRR, abs/1506.02153, 2015. arXiv:1506.02153.
- [7] Tomasz Idziaszek, Michal Skrzypczak, and Mikolaj Bojanczyk. Regular languages of thin trees. Theory Comput. Syst., 58(4):614–663, 2016. doi:10.1007/S00224-014-9595-Z.
- [8] David Janin and Igor Walukiewicz. Automata for the modal mu-calculus and related results. In Jirí Wiedermann and Petr Hájek, editors, Mathematical Foundations of Computer Science 1995, 20th International Symposium, MFCS’95, Prague, Czech Republic, August 28 - September 1, 1995, Proceedings, volume 969 of Lecture Notes in Computer Science, pages 552–562. Springer, 1995. doi:10.1007/3-540-60246-1_160.
- [9] Marcin Jurdzinski, Rémi Morvan, and K. S. Thejaswini. Universal algorithms for parity games and nested fixpoints. In Jean-François Raskin, Krishnendu Chatterjee, Laurent Doyen, and Rupak Majumdar, editors, Principles of Systems Design - Essays Dedicated to Thomas A. Henzinger on the Occasion of His 60th Birthday, volume 13660 of Lecture Notes in Computer Science, pages 252–271. Springer, 2022. doi:10.1007/978-3-031-22337-2_12.
- [10] A. Kechris. Classical Descriptive Set Theory. Graduate Texts in Mathematics. Springer New York, 1995. URL: https://books.google.fr/books?id=pPv9KCEkklsC.
- [11] Orna Kupferman and Moshe Y. Vardi. Weak alternating automata are not that weak. In Fifth Israel Symposium on Theory of Computing and Systems, ISTCS1997, Ramat-Gan, Israel, June 17-19, 1997, Proceedings, pages 147–158. IEEE Computer Society, 1997. doi:10.1109/ISTCS.1997.595167.
- [12] Giacomo Lenzi. A hierarchy theorem for the -calculus. In Friedhelm Meyer auf der Heide and Burkhard Monien, editors, Automata, Languages and Programming, 23rd International Colloquium, ICALP96, Paderborn, Germany, 8-12 July 1996, Proceedings, volume 1099 of Lecture Notes in Computer Science, pages 87–97. Springer, 1996. doi:10.1007/3-540-61440-0_119.
- [13] Damian Niwinski and Michal Skrzypczak. On guidable index of tree automata. In Filippo Bonchi and Simon J. Puglisi, editors, 46th International Symposium on Mathematical Foundations of Computer Science, MFCS 2021, August 23-27, 2021, Tallinn, Estonia, volume 202 of LIPIcs, pages 81:1–81:14. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2021. doi:10.4230/LIPICS.MFCS.2021.81.
- [14] Damian Niwinski and Igor Walukiewicz. Deciding nondeterministic hierarchy of deterministic tree automata. In Ruy J. G. B. de Queiroz and Patrick Cégielski, editors, Proceedings of the 11th Workshop on Logic, Language, Information and Computation, WoLLIC 2004, Fontainebleau, France, July 19-22, 2004, volume 123 of Electronic Notes in Theoretical Computer Science, pages 195–208. Elsevier, 2004. doi:10.1016/J.ENTCS.2004.05.015.
- [15] Thomas Wilke. Alternating tree automata, parity games, and modal -calculus. Bulletin of the Belgian Mathematical Society-Simon Stevin, 8(2):359–391, 2001.
- [16] Wieslaw Zielonka. Infinite games on finitely coloured graphs with applications to automata on infinite trees. Theor. Comput. Sci., 200(1-2):135–183, 1998. doi:10.1016/S0304-3975(98)00009-7.
Appendix A Proofs of Section 3
See 3
Proof.
We proceed by transfinite induction on . For , the set is unreachable from in since all paths from lead to without leaving .
For the induction step, assume is unreachable in from all for . Since is by definition an attractor of in , any path from in ends up in without leaving , and then closed under successors in . Therefore, all paths from in can only exit by entering . Then, from the induction hypothesis, such a path cannot reach .
See 11
Claim 32.
Let be a tree with a -pattern , then the following holds for all :
-
1.
contains an infinite path,
-
2.
contains only limit vertices, for .
Proof.
We prove the following statement: a tree has a -pattern if and only if its th derivative is non-empty, for all . This is enough to get the proposition, and vacuously holds for .
Let be a tree with a -pattern . We prove by induction on ordinals that is non-empty for all .
If , then . We show by induction on that is a subset of the vertices of . It holds for . Assume it holds for some . Then is a subset of the vertices of , which means that is a -pattern of , hence contains only limit vertices of from Claim 32. Thus contains all the vertices of . Similarly, if is a limit ordinal, then for all , is a subset of , which means that the vertices of are limit vertices of , for all , thus is included in the vertex set of . In particular contains all the vertices of which contains an infinite path. Hence is not empty.
If is a limit ordinal, then by the induction assumption, has an -pattern for any . Thus by the induction assumption, the th derivative of is non-empty. which concludes the proof.
Conversely, let be a tree such that for all , is non-empty. We prove by induction on that , defined by is a -pattern. For this clearly holds. If is a limit ordinal, then by induction assumption we have that is an -pattern, for any . Thus is a -pattern. If , then by induction assumption, is an -pattern. The vertices of are the vertices of which are not limit vertices. Note that does not contain any terminal vertex. Thus vertices in all have a successor in . We have left to show that any vertex in can reach a smaller component by a component decreasing path. Assume to the contrary that there is a vertex and such that there is no path in . Since is the set of vertices of which are not limit vertices (and since has not terminal vertex), this means that it is descendant-closed in . Hence, in , all paths from stay in , thus is not a limit vertex of , which gives a contradiction. Hence the family is a -pattern.
Appendix B Proofs of Section 4
See 13
Proof.
We define . For , , and for , . Note that the unions are indeed disjoint, since the s have disjoint reachability sets. Let us check that is indeed a pattern. The fact that the s are disjoint is given by the two following properties: 1) for distinct s, the s have different reachability sets, thus the different patterns s are disjoint, 2) for each pattern , the components are disjoint, by definition.
We only have left to check that any vertex can reach any component of lower index by an index decreasing path. If the two indices are at least , then this is given by being a pattern. If the two indices are at most , then any vertex is in pattern for some , and can reach any lower component of . To reach a component of index at most from a component at least , then one can simply reach component first (since is a pattern) and end up in some and then reach the component of smaller index, since is a pattern.
See 19
Proof.
Note that an -subdivision can be obtained as successive -subdivisions, hence we only have to show that the result holds for .
Let be a tree and let be a -subdivision of . Let us assume that has a -pattern . We can partition the vertices of in , where is the set of vertices of and is the set of vertices added in subdivised vertices. Note that vertices in have only one successor, which means that any vertex in in a must have its only successor in . Let be a vertex in and let be a successor of in in . If , then has a successor in in . Otherwise if , then it has a successor such that is an edge in . In both cases has a successor in in . With the same reasoning, we can show that if has a successor in in then it has a successor in in . Thus we have that is a -pattern in .
See 20
Proof.
Observe that the number of successive positions in with the same -component is bounded by a constant that depends on the depth of Boolean combinations in . By padding these with trivial disjunctions or conjunctions, we can ensure that the number of successive positions with the same -component is in fact constant throughout . Then, there is a subdivision of , also of rank (from Proposition 19), such that is a subgraph of the product where is , obtained from counting the positions of . From Lemma 17 since is a sub-graph of , it has rank at most .
Full definition of
We build for even , by induction on , starting with , which, for all simply consists of an accepting state and a transition .
Then, we build as follows. We take copies of with initial states , respectively, and add a non-accepting state before each , as well as after , each with a nondeterministic choice over priorities up to to either loop or move to the next copy of . From , there is only a self-loop on priorities up to . From every state of each , seeing the input letter leads to the intermediate state . Finally, we also add one accepting state , to which all states transition upon seeing , and from which there is a transition over all priorities up to to , the first new non-accepting state.
More formally, having , we make non-initial, and add non-accepting states , of which is initial, an accepting state , and the following transitions:
-
, for ,
-
, for , ,
-
for a state in , ,
-
for all ,
-
for all ,
-
transitions on in are preserved for .
Finally, let for odd be as , except without any transitions on priority .
See 23
Proof.
Consider an APT with priorities up to . Let for the constant in Corollary 20; then we know that the game has rank strictly less than for all trees of rank up to .
By Lemma 22, the ABT accepts all parity graphs with priorities up to with a -width attractor-decomposition, and rejects odd parity graphs. By construction, only has modalities and disjunctions. Then, we build the required ABT by taking the synchronous composition of and . This is an ABT that accepts a tree if and only if accepts some tree induced by a strategy for Eve in . The details of this composition are as expected:
-
Alphabet ; states ;
-
where:
-
–
-
–
-
–
-
–
-
–
-
–
-
–
-
–
-
;
-
.
In words, is an automaton that uses to process the input tree, and at each step, processes the priority that would produce, which adds some nondeterministic choices. We argue accepts any tree such that in Eve has a winning strategy that induces a graph with a -width attractor decomposition, and rejects .
Assume is such that in Eve has a winning strategy that induces an even graph with a -width attractor decomposition. Let be Eve’s winning strategy in . We can then compose these strategies to obtain a winning strategy in . Indeed, positions of can be seen as a position of paired with states of , to which are added, after the resolution of the boolean combinations in transition conditions of , the resolution of the boolean combinations in the transition condition of corresponding to a transition on the priority of the next state in . In the composition strategy, determines the choices between successors in at -modalities and choices at disjunctions in the transition conditions of , while determines choices at disjunctions in the transition conditions of . The existence of guarantees the existence of , and that the composition strategy remains in the restriction of to in the -part of the game. Since the priorities of come from the priorities of , the fact that is winning for Eve ensures that the composition of and is winning for Eve.
Conversely, if , then Adam has a winning strategy in . He can use directly in as does not add any universal choices ( or ) beyond those of . Let be the sequence of priorities induced by the projection of a -consistent play of on the component; the highest priority seen infinitely often on is odd. The projection of the same play on is a path of that processes . By construction, no accepting cycle of processes a word of which the highest maximal priority is odd, so this path is rejecting, and is a winning strategy for Adam in .
For all of rank up to , has rank strictly less than , if then Eve has a winning strategy that induces an even graph that also has rank less than . From Lemma 8, it has a -width attractor decomposition, and therefore accepts ; if then rejects , so agrees with on such trees. By construction, if is nondeterministic, so is as only has nondeterministic choices; if is coBüchi, then is weak since is weak.