Infinite-tree automaton

From HandWiki

In computer science and mathematical logic, an infinite-tree automaton is a state machine that deals with infinite tree structures. It can be seen as an extension of top-down finite-tree automata to infinite trees or as an extension of infinite-word automata to infinite trees.

A finite automaton which runs on an infinite tree was first used by Michael Rabin[1] for proving decidability of S2S, the monadic second-order theory with two successors. It has been further observed that tree automata and logical theories are closely connected and it allows decision problems in logic to be reduced into decision problems for automata.

Definition

Infinite-tree automata work on [math]\displaystyle{ \Sigma }[/math]-labeled trees. There are many slightly different definitions; here is one. A (nondeterministic) infinite-tree automaton is a tuple [math]\displaystyle{ A = (\Sigma, D, Q, q_0, \delta, F ) }[/math] with the following components.

  • [math]\displaystyle{ \Sigma }[/math] is an alphabet. This alphabet is used to label nodes of an input tree.
  • [math]\displaystyle{ D\subset \mathbb{N} }[/math] is a finite set of allowed branching degrees in an input tree. For example, if [math]\displaystyle{ D = \{2\} }[/math], an input tree has to be a binary tree, or if [math]\displaystyle{ D = \{1, 2, 3\} }[/math], then each node has either 1, 2, or 3 children.
  • [math]\displaystyle{ Q }[/math] is a finite set of states; [math]\displaystyle{ q_0 }[/math] is initial.
  • [math]\displaystyle{ \delta: Q \times \Sigma \times D \rightarrow 2^{Q^*} }[/math] is a transition relation that maps an automaton state [math]\displaystyle{ q \in Q }[/math], an input letter [math]\displaystyle{ \sigma \in \Sigma }[/math], and a degree [math]\displaystyle{ d \in D }[/math] to a set of [math]\displaystyle{ d }[/math]-tuples of states.
  • [math]\displaystyle{ F \subseteq Q^{\omega} }[/math] is an accepting condition.

An infinite-tree automaton is deterministic if for every [math]\displaystyle{ q \in Q }[/math], [math]\displaystyle{ \sigma \in \Sigma }[/math], and [math]\displaystyle{ d \in D }[/math], the transition relation [math]\displaystyle{ \delta( q, \sigma, d) }[/math] has exactly one [math]\displaystyle{ d }[/math]-tuple.

Run

Intuitively, a run of a tree automaton on an input tree assigns automaton states to the tree nodes in a way that satisfies the automaton transition relation. A bit more formally, a run of a tree automaton [math]\displaystyle{ A }[/math] over a [math]\displaystyle{ \Sigma }[/math]-labeled tree [math]\displaystyle{ (T,V) }[/math] is a [math]\displaystyle{ Q }[/math]-labeled tree [math]\displaystyle{ (T_r, r ) }[/math] as follows. Suppose that the automaton reached a node [math]\displaystyle{ t }[/math] of an input tree and is currently in state [math]\displaystyle{ q }[/math]. Let the node [math]\displaystyle{ t }[/math] be labeled with [math]\displaystyle{ \sigma \in \Sigma }[/math] and [math]\displaystyle{ d(t) }[/math] be its branching degree. Then, the automaton proceeds by selecting a tuple [math]\displaystyle{ (q_1,...,q_{d(t)}) }[/math] from the set [math]\displaystyle{ \delta( q, \sigma, d(t)) }[/math] and cloning itself into [math]\displaystyle{ d(t) }[/math] copies. For each [math]\displaystyle{ 0 \lt i \leq d(t) }[/math], one copy of the automaton proceeds into node [math]\displaystyle{ t.i }[/math] and changes its state to [math]\displaystyle{ q_i }[/math]. This produces a run which is a [math]\displaystyle{ Q }[/math]-labeled tree. Formally, a run [math]\displaystyle{ (T_r, r ) }[/math] on the input tree satisfies the following two conditions.

  • [math]\displaystyle{ r(\epsilon) = q_0 }[/math].
  • For every [math]\displaystyle{ t \in T_r }[/math] with [math]\displaystyle{ r(t) = q }[/math], there exists a [math]\displaystyle{ (q_1,...,q_{d(t)}) \in \delta(q,V(t),d(t)) }[/math] such that for every [math]\displaystyle{ 0 \lt i \leq d(t) }[/math], we have [math]\displaystyle{ t.i \in T_r }[/math] and [math]\displaystyle{ r(t.i) = q_i }[/math].

If the automaton is nondeterministic, there may be several different runs on the same input tree; for deterministic automata, the run is unique.

Acceptance condition

In a run [math]\displaystyle{ (T_r, r ) }[/math], an infinite path is labeled by a sequence of states. This sequence of states form an infinite word over states. If all these infinite words belong to accepting condition [math]\displaystyle{ F }[/math], then the run is accepting. Interesting accepting conditions are Büchi, Rabin, Streett, Muller, and parity. If for an input [math]\displaystyle{ \Sigma }[/math]-labeled tree [math]\displaystyle{ (T,V ) }[/math], there exists an accepting run, then the input tree is accepted by the automaton. The set of all accepted [math]\displaystyle{ \Sigma }[/math]-labeled trees is called tree language [math]\displaystyle{ \mathcal{L}(A) }[/math] which is recognized by the tree automaton [math]\displaystyle{ A }[/math].

Expressive power of acceptance conditions

Nondeterministic Muller, Rabin, Streett, and parity tree automata recognize the same set of tree languages, and thus have the same expressive power. But nondeterministic Büchi tree automata are strictly weaker, i.e., there exists a tree language that can be recognized by a Rabin tree automaton but cannot be recognized by any Büchi tree automaton.[2] (For example, there is no Büchi tree automaton that recognizes the set of [math]\displaystyle{ \{a,b\} }[/math]-labeled trees whose every path has only finitely many [math]\displaystyle{ a }[/math]s, see e.g. [3]). Furthermore, deterministic tree automata (Muller, Rabin, Streett, parity, Büchi, looping) are strictly less expressive than their nondeterministic variants. For example, there is no deterministic tree automaton that recognizes the language of binary trees whose root has its left or right child marked with [math]\displaystyle{ a }[/math]. This is in sharp contrast to automata on infinite words, where nondeterministic Büchi ω-automata have the same expressive power as the others.

The languages of nondeterministic Muller/Rabin/Streett/parity tree automata are closed under union, intersection, projection, and complementation.

References

  1. Rabin, M. O.: Decidability of second order theories and automata on infinite trees,Transactions of the American Mathematical Society, vol. 141, pp. 1–35, 1969.
  2. Rabin, M. O.: Weakly definable relations and special automata,Mathematical logic and foundation of set theory, pp. 1–23, 1970.
  3. Ong, Luke, Automata, Logic and Games, p. 92 (Theorem 6.1), http://www.cs.ox.ac.uk/people/luke.ong/personal/publications/ALG.pdf 
  • Wolfgang Thomas (1990). "Automata on Infinite Objects". in Jan van Leeuwen. Formal Models and Semantics. Handbook of Theoretical Computer Science. B. Elsevier. pp. 133–191.  In particular: Part II Automata on Infinite Trees, pp. 165-185.
  • A. Saoudi and P. Bonizzoni (1992). "Automata on Infinite Trees and Rational Control". in Maurice Nivat and Andreas Podelski. Tree Automata and Languages. Studies in Computer Science and Artificial Intelligence. 10. Amsterdam: North-Holland. pp. 189–200.