October 23, concept of bottom-up tree series transducer and top-down tree series transducer, respectively,

Size: px
Start display at page:

Download "October 23, concept of bottom-up tree series transducer and top-down tree series transducer, respectively,"

Transcription

1 Bottom-up and Top-down Tree Series Transformations oltan Fulop Department of Computer Science University of Szeged Arpad ter., H-670 Szeged, Hungary Heiko Vogler Department of Computer Science Technical University of Dresden D-0106 Dresden, Germany October 3, 000 Abstract: We generalize bottom-up tree transducers and top-down tree transducers to the concept of bottom-up tree series transducer and top-down tree series transducer, respectively, by allowing formal tree series as output rather than trees, where a formal tree series is a mapping from output trees to some semiring. We associate two semantics with a tree series transducer: a mapping which transforms trees into tree series (for short: tree to tree series transformation or t-ts transformation), and a mapping which transforms tree series into tree series (for short: tree series transformation or ts-ts transformation). We show that the standard case of tree transducers is reobtained by choosing the boolean semiring under the t-ts semantics. Also, for each of the two types of tree series transducers and for both types of semantics, we prove a characterization which generalizes in a straightforward way the corresponding characterization result for the underlying tree transducer class. More precisely, we prove that polynomial bottom-up tree series transducers can be characterized by the composition of nite state relabeling tree series transducers and homomorphism tree series transducers. Moreover, we prove that the total deterministic top-down tree series transducers can be characterized by the composition of homomorphism tree series transducers and linear total deterministic top-down tree series transducers. 1 Introduction The investigation of this paper was inspired by [Kui99] in which a rst attempt was made to integrate formal power series over trees into a restricted form of top-down tree transducer. The resulting tree series transducers transform an input tree into a formal tree series which is a mapping from the set of output trees into some semiring. By this means it is possible to measure the computation of output trees. Here we introduce the concepts of bottom-up tree series transducer and of (unrestricted) top-down tree series transducer. Before we discuss our investigation, we will now briey review the origins of tree series transducers which are a) tree transducers and b) automata with multiplicity (or cost functions). Tree transducers have been introduced in [Rou68, Rou70, Tha70]. They can be viewed as generalizations of generalized sequential machines [Ber79] to trees where the trees are either read and processed from their leaves towards their root (bottom-up tree transducer) or from their roots towards their leaves (top-down tree transducer). A rule (or: transition) of a bottom-up tree transducer looks like (q 1 (x 1 ); : : : ; q k (x k ))! q(t) and a rule of a top-down tree transducer has the form q((x 1 ; : : : ; x k ))! where q; q 1 ; : : :; q k are states of the tree transducers, is an input symbol of rank k, x 1 ; : : : ; x k are variables ranging over trees (more precisely, over output trees in the bottom-up case, and over input trees Research of this author was supported by the Hungarian Scientic Foundation (OTKA) under Grant T

2 in the top-down case), t is an output tree which may contain variables from the set X k fx 1 ; : : : ; x k g, and is an output tree which may contain constructs of the form p(x i ) at its leaves where p is a state and 1 i k. In the usual way, the rules of a tree transducer constitute a binary term rewriting relation (or: derivation relation) ) M by means of which the tree transformation M T T computed by M can be dened (where T and T are the sets of input trees and output trees, respectively). Since the seventies, tree transducers have been studied intensively. The rst substantial papers dealt with (de-)composition and hierarchy results [Bak79, Eng75, Eng77, Eng8]. In [FV9] a method of deciding the equivalence of the compositions of classes of tree transformations is overviewed. Survey articles and books are [GS84, GS97, CDG + 97, FV98]. Recently, a characterization of tree transformation classes in terms of monadic second order logic has been proved [BE00, EM99]. Now let us briey review the second origin of tree series transducers: automata with multiplicities. Let M (Q; ; ; q 0 ; Q d ) be a usual nite state string automaton where Q is the set of states, the set of input symbols, : Q! P(Q) the transition function, q 0 Q the initial state, and Q d Q the set of nal states. In the usual way, the transition function is extended to the function ~ : P(Q)! P(Q), and the language accepted by M is the language L(M) fw j ~(fq 0 g; w) \ Q d 6 ;g. In [Sch6], nite state string automata were generalized by associating with every transition an element a A of a semiring (A; +; ; 0; 1) assumed to be the cost (or multiplicity) of this transition (also cf. [Eil74, SS78, BR88, KS86]). In this approach, the transition function turns into a (Q Q)- matrix (Ahhii) QQ where Ahhii is the set of formal power series (in non-commuting variables), i.e., mappings of type! A. Intuitively, p;q () A is the cost of making a transition from state q to state p while reading (note the order of the indices p and q). The usual automaton (without cost functions) is reobtained by considering the boolean semiring. Then can be used to dene the behaviour of a nite state automaton M with cost functions such that it is a formal power series M Ahh ii obtained by iterating the transition matrix. This approach was generalized in [Kui97a] to tree automata over semirings (for a theoretical investigation on formal tree series, i.e., mappings of the type T! A, cf. [BR8]; in that paper, A is a vector space). Since the input symbols now have ranks, the transition matrix has to be replaced by a family ( k j k 0) of transition matrices k (Ahh(X k )ii) QQk where (X k ) f(x 1 ; : : : ; x k ) j (k) g. Intuitively, if the tree automaton has already accepted the input trees t 1 ; : : : ; t k in the states q 1 ; : : : ; q k, respectively, then ( k ) q;q1:::q k ((x 1 ; : : : ; x k )) A is the cost for making a transition from q 1 ; : : :; q k to q while reading the k-ary symbol. The semantics of a tree automaton M with cost functions is a formal tree series M AhhT ii. We mention that tree automata with cost functions have been used in order to select code in compilers on the basis of certain cost criteria [FSW94] (also cf. [Sei9]). In [Kui99] such tree automata with cost functions have been equipped with output and thereby the concept of tree transducer with cost functions has been introduced. In order to make this concept understandable on the background of the development explained above, let us reconsider the tree automata with cost functions. Such an automaton can be considered as a generating device: the trees together with their costs are built up and maintained in the entries of a matrix of type (AhhT ii) Q1. An alternative point of view is to formalize a tree automaton with cost functions as a transducer which computes the partial identity. More precisely, it computes the function M : T! AhhT ii such that the formal tree series M (s) has the value 0 for every tree t such that t 6 s. Then, the transitions are specied by a family ( k j k 0) of mappings k : (k)! (Ahh(X k )ii) QQk and the behaviour of the automaton can be specied by means of the initial homomorphism h : T! (AhhT ii) Q1. Now the tree transducers with cost functions as they are dened in [Kui99] (called: tree transducers there) can be understood as a modication of this alternative approach in the sense that the input tree is not reproduced, but another output tree is produced. Then the transitions are dened by a family ( k j k 0) of mappings k : (k)! (AhhT (X k )ii) QQk for some output alphabet. On the basis of these tree representations, in [Kui99] restricted types of top-down tree transducers with cost functions have been introduced and studied; the underlying transducer model is called nondeterministically simple top-down tree transducer in which, roughly speaking, to every subtree at most one state is applied (cf. [GS84]). Then a tree transducer M with cost functions computes the function M : T! AhhT ii. This nishes the short review about the origins of our investigation. In the present paper, we take a more liberal point of view on tree representations. We consider tree Q(Q(Xk )) representations of the form k : k! (AhhT (X)ii) such that only for nitely many indices (q; w) Q (Q(X k )), k () q;w 6 ~0, where ~0 is the formal tree series which maps every tree to 0. The following table summarizes the explained development of the function.

3 type of concept transition function computed function nite state automaton : Q! P(Q) L(M) string automaton with cost functions (Ahhii) QQ M Ahh ii tree automaton with cost functions k (Ahh(X k)ii) QQ k M AhhT ii tree automaton with cost functions k() (Ahh(Xk)ii) QQ k M : T! AhhT ii (alternative point of view) (partial identity) tree transducers with cost functions k() (AhhT(X QQ k k)ii) M : T! AhhT ii (in the sense of [Kui99]) tree series transducers k() (AhhT(X)ii) Q(Q(X k)) M : T! AhhT ii (in the present paper) Next we instantiate these tree representations in two dierent ways thereby obtaining the bottomup and the top-down case. In the bottom-up case we additionally require that, for every index w, if w 6 q 1 (x 1 ) : : : q k (x k ) for some q 1 ; : : : ; q k Q, then k () q;w ~0. Moreover, if k () q;w 6 ~0, then k () q;w AhhT (X k )ii. Then we call a bottom-up tree representation. To show an example, let us consider the two rules (q 1 (x 1 ); q (x ); q 3 (x 3 ))! q((x ; (x 3 ; x ))) j p((x 1 ; ((x 3 ); x 1 ))) of some bottom-up tree transducer, where,, are input/output symbol of rank 3,, and 1, respectively, q 1 ; q ; q are states, and j delimits the right-hand sides of the two rules. Let us assume that the costs for these two rules are a and b, respectively, where a; b A. Then these rules are represented by 3 () q;w ((x ; (x 3 ; x ))) a 3 () p;w ((x 1 ; ((x 3 ); x 1 ))) b where w q 1 (x 1 )q (x )q 3 (x 3 ). We observe that the structure of w is very restricted: w is the left hand side of the rule from which the input symbol (and the commas) have been stripped of. On the other hand, the structure of the trees (x ; (x 3 ; x )) and (x 1 ; ((x 3 ); x 1 )) to which the mapping 3 () q;w is applied, is liberal in the sense that variables of the left hand side of the rule may occur an arbitrary number of times. In the top-down case we require that, if k () q;w 6 ~0, then k () q;w Ahhc T (X l )ii, where l jwj and c T (X l ) denotes the set of all trees t over [ X l such that, for every 1 i k, the variable x i occurs exactly once in t and, reading the leaves of t from left to right, the variables occur in the order x 1 < x < : : : < x n. Then is a top-down tree representation. As an example, let us consider the two rules q((x 1 ; x ; x 3 ))! (p(x ); (q(x 1 ); p(x 1 )) j ((q(x )); p(x )) with costs c and d, respectively. These rules are represented by 3 () q;v ((x 1 ; (x ; x 3 ))) c 3 () q;v 0(((x 1 )); x )) d where v p(x )q(x 1 )q(x 1 ) and v 0 q(x )p(x ). We observe that now v and v 0 are more exible: they are obtained by scanning the frontier of the right hand side of the rules and listing all objects of the form p(x i ). On the other hand, the trees (x 1 ; (x ; x 3 ))) and ((x 1 )); x ) to which the mappings 3 () q;v and 3 () q;v 0 are applied, respectively, have a much more restricted form than in the bottom-up case: they are linear in the variables and the variables occur ordered. The bottom-up tree representation and the top-down tree representation dene the bottom-up tree series transducer and the top-down tree series transducer, respectively, via the concept of the initial homomorphism h : T! (AhhT ii) Q1. With every tree series transducer, we associate two semantics: the tree to tree series semantics (t-ts semantics) which is a mapping of type T! AhhT ii, and the tree series to tree series semantics (ts-ts semantics), which is a mapping of type AhhT ii! AhhT ii. As in 3

4 the case of tree transducers (cf. [Eng75]) we dene certain important subclasses, like linear, relabeling, and homomorphism tree series transducers. The contents of this paper is as follows. In Section we develop the notions and basic denitions of bottom-up and top-down tree transducers, semirings, formal tree series; we tried to make this paper self contained. In Section 3 we introduce the concepts of bottom-up tree series transducers and of top-down tree series transducers, and we discuss an example in detail. In Section 4 we show that, using the boolean semiring, there is a one-to-one correspondence between tree series transducers and tree transducers (of the same type). In Section 5 we prove two characterization results: 1) polynomial bottom-up tree series transducers can be characterized by the composition of nite state relabeling tree series transducers and homomorphism tree series transducers, and ) deterministic top-down tree series transducers can be characterized by the composition of homomorphism tree series transducers and linear deterministic top-down tree series transducers. The proofs of the correctness of constructions is usually done by an induction on the tree structure. In order to save space, we only show the induction step, and not the induction base. Preliminaries.1 Sets and relations Let H be a set. Then P(H) is the powerset of H. The empty set is denoted by ;. Let F, G, and H be sets and let % F G and G H be two binary relations. The composition of % and is the binary relation % f(a; c) F H j there is a b G such that (a; b) % and (b; c) g. The notion of composition is extended to classes of relations. For two classes C 1 and C of relations we dene C 1 C f% j % C 1 and C g.. Strings If is an alphabet, then denotes the set of strings over, while the empty string is denoted by ". The length of a string w is dened in a standard way and denoted by jwj..3 Trees and tree transducers Let be a ranked alphabet. By (k) we denote the set of all symbols of which have rank k. Moreover, let H be a set disjoint with. The set of (nite, labeled and ordered) trees over indexed by H, denoted by T (H), is the smallest subset T of ( [ H [ f(; )g [ f; g), such that (i) H T and (ii) if (k) with k 0 and s 1 ; : : : ; s k T, then (s 1 ; : : : ; s k ) T. In case k 0, we identify ( ) with. Moreover, T (;) is denoted by T. It should be clear that T ; if and only if (0) ;. Since we are not interested in this particular case, we assume that (0) 6 ; for every ranked alphabet appearing as input or output ranked alphabet of some tree transducer in this paper. We will need the set X fx 1 ; x ; : : :g of variable symbols. For every k 0, we dene X k fx 1 ; : : : ; x k g, thus X 0 ;. We use the variables to occur in trees, so we will frequently consider the sets T (X), T (X k ), etc. of trees where is a ranked alphabet. The tree substitution is dened as follows. Let t T (X k ) for some ranked alphabet and k 0. Moreover, let t 1 ; : : : ; t k be also trees over (maybe other) ranked alphabets. Then t[x 1 t 1 ; : : : ; x k t k ], or shortly just t[t 1 ; : : : ; t k ], stands for the tree which is obtained from t by substituting, for every 1 i k, the tree t i for each occurrence of x i. A tree t T (X k ) is called linear if every variable x i, 1 i k occurs at most once in it. We distinguish a subset c T (X k ) of T (X k ) as follows. Let a tree t T (X k ) be in c T (X k ) if for every 1 i k, the variable x i occurs exactly once in t and, reading the leaves of t from left to right, the variables occur in the order x 1 < x < : : : < x n. Note that all elements of c T (X k ) are linear. Let t T (H). The linearization of t with respect to H, denoted by lin H (t), is dened as the unique pair (t 0 ; w) where t 0 c T (X k ) and w a 1 : : : a k H such that t t 0 [x 1 a 1 ; : : : ; x k a k ]. If Q is a unary ranked alphabet, i.e., the rank of all symbols in Q is 1, then Q(X k ) stands for the set fq(x i ) j q Q and 1 i kg. A string w (Q(X k )) is called linear if every variable x i, 1 i k occurs at most once in it. Next we shortly recall the concept of the bottom-up tree transducer and the top-down tree transducer. For more terminology and details about tree transducers the reader is advised to consult [Eng75]. 4

5 A bottom-up tree transducer is a tuple M (Q; ; ; Q d ; R) where Q is a unary ranked alphabet (of states), and are ranked alphabets (of input symbols and output symbols, resp.), Q d Q is the set (of nal states), and R is a nite set of rules of the form (q 1 (x 1 ); : : : ; q k (x k ))! q(t), where k 0, (k), q 1 ; : : : ; q k ; q Q, and t T (X k ). The derivation relation (induced by M) is the binary relation ) M T Q[[ T Q[[ dened by ' ) M i there is a c T (X 1 ), there is a rule (q 1 (x 1 ); : : : ; q k (x k ))! q(t) in R, there are t 1 ; : : : ; t k T such that ' [x 1 (q 1 (t 1 ); : : : ; q k (t k ))] and [x 1 q(t[x 1 t 1 ; : : : ; x k t k ])]. The tree transformation computed by M is the set M f(s; t) j s ) M q(t) for some q Q dg. The class of all tree transformations computed by bottom-up tree transducers is denoted by BOT tt. A top-down tree transducer is a tuple M (Q; ; ; Q d ; R) where Q is a unary ranked alphabet (of states), and are ranked alphabets (of input symbols and output symbols, resp.), Q d Q is the set (of initial states), and R is a nite set of rules of the form q((x 1 ; : : : ; x k ))! t, where q Q, k 0, (k), and t T (Q(X k )). The derivation relation (induced by M) is the binary relation ) M T Q[[ T Q[[ dened by ' ) M i there is a c T (X 1 ), there is a rule q((x 1 ; : : :; x k ))! t in R, there are s 1 ; : : :; s k T such that ' [x 1 q((s 1 ; : : : ; s k ))] and [x 1 t[x 1 s 1 ; : : : ; x k s k ]]. The tree transformation computed by M is the set M f(s; t) j q(s) ) M t for some q Q dg. The class of all tree transformations computed by top-down tree transducers is denoted by T OP tt..4 Semirings For a survey paper on the relevance of semirings and formal power series to formal languages and automata cf. [Kui97b]. A semiring is an algebraic structure A (A; +; ; 0; 1) with two operations sum + and product such that (A; +; 0) is a commutative monoid, (A; ; 1) is a monoid, and for every a; b; c A the following laws hold: (a + b) c a c + b c, a (b + c) a b + a c, and a 0 0 a 0. Whenever the operations (+ and ) and the neutral elements (0 and 1) are clear from the context, then we denote the semiring (A; +; ; 0; 1) just by A. We give some examples of semirings. The boolean semiring is the semiring IB (f0; 1g; _; ^; 0; 1) with disjunction and conjunction as sum and product, resp. Let be an alphabet. The semiring of formal languages (over ), denoted by Lang(), is the semiring (P( ); [; ; ;; f"g) is a semiring where is the usual concatenation of string languages. The semiring of natural numbers is the semiring N at (IN; +; ; 0; 1) with the usual addition and multiplication operations. Let (A; +; ; 0; 1) be a semiring. A is commutative if, for every a; b A, the equation a b b a holds. A is naturally ordered if the binary relation v on A is a partial order on A, where v is dened by a v b i there is a c A such that a + c b. A is complete if it is possible to dene sums for all families (a i j i I) of elements of A, where I is an arbitrary index set, such that the following three conditions are satised: (i) P i; a i 0, P ifjg a i a j, P ifj;kg a i a j + a k for j 6 k. (ii) P jj (P ii j a i ) P ii a i, if S jj I j I and I j \ I k ; for j 6 k. (iii) P ii (c a i) c ( P ii a i), P ii (a i c) ( P ii a i) c. A is!-continuous if the following three conditions holds. (i) A is naturally ordered. (ii) A is complete. (iii) If P 0in a i v c for all n IN, then P iin a i v c for all sequences (a i j i IN) in A and all c A. 5

6 .5 Matrices We recall some notions concerning matrices (cf. [Kui97b]). Let I; J and S be arbitrary sets. An I J matrix over S is a mapping M : I J! S. The set of all I J matrices over S is denoted by S IJ. An element M(i; j) S is also denoted by M i;j. If I (or J) is a singleton, then we identify it by f1g and we write just 1 for I (or J). Moreover in that case an element of the form M i;1 (or M 1;j ) is written just M i (or M j ). Let A be some structure in which the operations (innite) sum and multiplication are dened. Let M : I J! A be a matrix and a A. Then am is the I J matrix over A such that for every (i; j) I J, (am) i;j am i;j where is the multiplication of A. Moreover, for a family (M (k) j k K) of I J matrices over A we dene the I J matrix P kk M (k) by X X ( M (k) ) i;j kk kk(m (k) ) i;j :.6 Formal tree series Let be ranked alphabet and let (A; +; ; 0; 1) be a semiring. A formal tree series (over and A) is a mapping r : T! A. For every t T, the element r(t) A is called coecient of t and it is also denoted by (r; t); then the mapping itself is written as the formal sum ^PtT (r; t)t. The set of all formal tree series over and A is denoted by AhhT ii. Note that in this paper we make a distinction between the formal sum ^P which denotes a formal tree series, and the sum P which is an operation over some domain. Example.1 Let be a ranked alphabet and let mx maxfj j (j) 6 ;g. Moreover, let N fi j 0 i mxg. Consider the mapping occ : T! P(N ) which maps every tree to its set of occurrences. More precisely, for every t (0), occ(t) f"g, and for every t (t 1 ; : : : ; t k ) where (k), k 1 and s 1 ; : : :; s k T, occ(t) f"g [ S 1ik fig occ(t i). For example, if f () ; (0) g and t ((; ); ), then occ(t) f"; 1; 11; 1; g. Hence, occ is a formal tree series over the semiring Lang(N). In the rest of this paper A stands for a commutative and continuous semiring. Let a A and let r 1 ; r AhhT ii. The formal tree series a r 1 is the formal tree series ^PtT (a (r 1 ; t))t. Moreover, r 1 + r denotes the formal tree series ^PtT ((r 1 ; t) + (r ; t))t and, for every family (r i j i I) of formal tree series over and A, P ii r i ^PtT ( P ii (r i; t); t). Let r : T! A be a formal tree series. If there is an a A such that for every t T we have (r; t) a, then r is called the constant a and is denoted by ~a. The support of r is dened as the set supp(r) ft T j (r; t) 6 0g. Moreover, the formal tree series r is called a polynomial if supp(r) is nite and is called a singleton if supp(r) is a singleton. Hence a singleton is a polinomial. The set of all polynomials over and A is denoted by AhT i. A polynomial r AhT i is written as a 1 t 1 ^+ : : : ^+a n t n, where supp(r) ft 1 ; : : : ; t n g and, for every 1 i n, a i (r; t i ). Moreover, if a i 1, then a i t i is written as t i. Hence for t T either t denotes the tree in T or it denotes the formal tree series r : T! A such that (r; t) 1 and (r; s) 0 for every s T? ftg. However, it will always be clear from the context which meaning is intended. Let be a ranked alphabet. We dene the binary relation pick f(r; t) j r IBhT i; t supp(r)g IBhhT ii T. Note that pick is a set of pairs and not a set of coecients in IB. The class of relations pick for an arbitrary ranked alphabet is denoted by P ICK. Now we dene the substitution of formal tree series. This is a straightforward generalization of the IO-substitution of languages [ES77, ES78, EV85]. Let t T (X l ) and ~s (s 1 ; : : : ; s l ) (AhhT (X)ii) l. Dene t (i) If t x j, 1 j l, then t ~s s j. (ii) If t (0), then t ~s. (iii) If t 6 (0) [ X l, then t ~s ^Pt 1;:::;t lt(x) (s 1; t 1 ) : : :(s l ; t l )(t[t 1 ; : : : ; t l ]). ~s AhhT (X)ii as follows: Note that, for every t T, t ( ) t. Moreover, if s i ~0 for some 1 i l, then also t ~s ~0 no matter whether x i occurs in t or not. 6

7 Now P let r AhhT (X l )ii and ~s (s 1 ; : : : ; s l ) (AhhT (X)ii) l. Dene r ~s AhhT (X)ii by r ~s tt (X l) (r; t)(t ~s). Certainly ~0 ~s ~0. If the semiring A is the boolean semiring IB, then the substitution of formal tree series is the same as the IO-substitution on formal languages as dened in [ES77, ES78]. We note that in [Kui99] an OI-substitution of formal tree series is dened. The reason why we work with IO-substitution will be discussed at the end of Section 4..7 Tree series transformations A tree to tree series transformation (for short: t-ts transformation) is a mapping : T! AhhT ii. A tree series to tree series transformation (for short: ts-ts transformation) is a mapping : AhhT ii! AhhT ii. Every t-ts transformation can be extended in a natural way to a ts-ts transformation. Let : T! AhhT ii be a t-ts transformation. The extension of is the mapping e : AhhT ii! AhhT ii such that for every r AhhT ii, e(r) P st ((r; s)(s)). We also extend a mapping : T! AhhT ii IJ to e : AhhT ii! AhhT ii IJ. In this case for an r AhhT ii the extension e(r) is dened by the same equation but now it will be an I J matrix over AhhT ii. Let 1 : T! AhhT ii and : T! AhhT? ii be two t-ts transformations. Then dene the composition of 1 and, denoted by 1 ~, as the t-ts transformation 1 ~ : T! AhhT? ii where ( 1 ~ )(s) e ( 1 (s)) for every s T. We note that ~ is not a composition of relations in the sense we dened it in Subsection.1. The composition of two classes C 1 and C of t-ts transformations, denoted by C 1 ~ C is the class f 1 ~ j i C i ; 1 i g of t-ts transformations. There is a close relationship between the composition of t-ts transformations and ts-ts transformations which will be made clear in the next lemma. Lemma. Let 1 : T! AhhT ii, : T! AhhT? ii, and : T! AhhT? ii be three t-ts transformations. Then, if 1 ~, then e 1 e e : Proof. Let r AhhT ii. Then e(r) P st (r; s)(s) P st (r; s)( 1 ~ )(s) P st (r; s)e ( 1 (s)) P st (r; s)( P tt ( 1 (s); t) (t)) P st PtT ((r; s) 1 (s); t) (t) P tt ( P st (r; s) 1 (s); t) (t) P tt (e 1 (r); t) (t) e (e 1 (r)) (e 1 e )(r). For every ranked alphabet there is a particular tree series transformation : T! AhhT ii dened by (s) 1 s for every s T. We call the identity tree series transformation over and A. 3 Tree series transducers In this section we dene the notion of a bottom-up tree series transducer and top-down tree series transducer which are generalizations of the notions of bottom-up tree transducers and top-down tree transducers, resp., as they occur in the literature (cf. e.g. [Eng75]). The generalization consists of allowing the transducers to compute a formal tree series as output rather than only trees. Also, a top-down tree series transducer generalizes the concept of the tree transducer as it is dened in [Kui99], because the latter can only cover the nondeterministically simple case of top-down tree transducers [GS84] (cf. Fig. 1 where going north-east along an edge means to generalize from the boolean semiring to an arbitrary semiring, and going north-west along an edge means to generalize from the nondeterministically simple case to the arbitrary nondeterministic case). 7

8 term rewriting systems bottom-up trtr [Eng75] formal tree series bottom-up tree series transducers * [present paper] top-down tree series transducers * [present paper] } top-down trtr [Tha68, Eng75] * } nondeterministically simple top-down trtr (syntactical sublcass of top-down trtr) [GS84] tree transducers [Kui99] Figure 1: Generalization diagram. In the following let and be two ranked alphabets, and Q be a unary ranked alphabet. Moreover, let (A; +; ; 0; 1) be a commutative continuous semiring. Denition 3.1 A tree representation (over Q,,, and A) is a family ( k j k 0) of mappings k : (k) Q(Q(Xk ))! (AhhT (X)ii) such that only for nitely many indices (q; w) Q (Q(X k )), k () q;w 6 ~0. A tree representation is bottom-up if the following additional conditions hold. For every (k), q Q, and w (Q(X k )), if w 6 q 1 (x 1 ) : : : q k (x k ) for some q 1 ; : : :; q k Q, then k () q;w ~0. Moreover, if k () q;w 6 ~0, then k () q;w AhhT (X k )ii, A tree representation is top-down if the following additional condition holds. For every (k), q Q, and w (Q(X k )), if k () q;w 6 ~0, then k () q;w Ahhc T (X l )ii, where l jwj. Denition 3. Let be either a bottom-up tree representation or a top-down tree representation. For every k 0 and (k), induces the mapping k () : (AhhT (X)ii) Q1 : : : (AhhT (X)ii) Q1! (AhhT (X)ii) Q1 with k arguments. The mapping k () is dened for every P 1 ; : : : ; P k (AhhT (X)ii) Q1 and q Q as: k ()(P 1 ; : : :; P k ) q X wq 1(x i1 ):::q l(xil )(Q(X k)) k () q;w ((P i1 ) q1 ; : : : ; (P il ) ql ): Note that, for k 0, (Q(X k )) f"g. Hence, according to our convention about matrix notation, in case (0) we write 0 () q;" as 0 () q. Since ((AhhT (X)ii) Q1 ; ( k () j k 0; (k) )) and also ((AhhT ii) Q1 ; ( k () j k 0; (k) )) are -algebras, there is a unique homomorphism dened for every (k), t 1 ; : : : ; t k T by h : T! (AhhT ii) Q1 h ((t 1 ; : : : ; t k )) k ()(h (t 1 ); : : : ; h (t k )): The mapping h extends to f h : AhhT ii! (AhhT ii) Q1, for the denition see Subsection.7. 8

9 Denition 3.3 A bottom-up tree series transducer (over A) is a tuple M (Q; ; ; A; Q d ; ) where Q is a unary ranked alphabet (of states), and are ranked alphabets (of input symbols and output symbols, resp.), A is a semiring, Q d Q (set of nal states), and is a bottom-up tree representation over Q,,, and A. Denition 3.4 A top-down tree series transducer (over A) is a tuple M (Q; ; ; A; Q d ; ) where Q is a unary ranked alphabet (of states), and are ranked alphabets (of input symbols and output symbols, resp.), A is a semiring, Q d Q (set of initial states), and is a top-down tree representation over Q,,, and A. We associate with every bottom-up (and top-down) tree series transducer M two transformations, the t-ts transformation computed by M and the ts-ts transformation computed by M. These are dened as follows. Denition 3.5 Let M (Q; ; ; A; Q d ; ) be a bottom-up tree series transducer or a top-down tree series transducer. 1. The t-ts transformation computed by M is the mapping M : T! AhhT ii which is dened by M (s) P qq d h (s) q for every s T.. The ts-ts transformation computed by M is the extension f M : AhhT ii! AhhT ii of M, cf. Subsection.7. Note that f M (s) P qq d f h (s) q for every s T. Sometimes we use the notion of t-ts semantics (and ts-ts semantics) of M to speak about the t-ts transformation (and ts-ts transformation, respectively) computed by M. Now we give an example for a bottom-up tree series transducer. In the theory of term rewriting systems one is interested among others in sucient conditions for the property of termination (cf. e.g. [Jan97, BN98]). One such condition is expressed in the following implication. Let R be a term rewriting system, then R is terminating if, for every derivation t 1 ) R t ) R t 3 : : :, there is no pair i; j with i < j such that t i can be embedded homeomorphically into t j. For two trees s and t, t can be embedded homeomorphically into s (for short: s emb t) if t is obtained from s by dropping an arbitrary number of occurrences of symbols in s (cf. Denition 5.4. of [BN98]). Example 3.6 For the particular ranked alphabet f () ; (1) ; (0) g and s; t T, we have s emb t if t is obtained from s by dropping an arbitrary number of occurrences of 's or 's. The relation emb, as tree transformation, can be computed by the bottom-up tree transducer M drop (Q; ; ; Q d ; R drop ), i.e., Mdrop emb, where Q Q d fg and R drop consists of the following rules: ((x 1 ); (x ))! ((x 1 ; x )) ((x 1 ); (x ))! (x 1 ) ((x 1 ); (x ))! (x ) ((x 1 ))! ((x 1 )) ((x 1 ))! (x 1 )! (): Clearly, for a given tree s T there are (nitely) many trees t T such that s emb t. Also it is clear that, for a given tree t T, there are (innitely) many trees s T such that s emb t. Now we might be interested in the following question: given two trees s; t T, how many possibilities are there to embed t into s? For instance, consider the trees s (; (())) and t (; ()). Hence, s emb t. One way of obtaining t from s is to drop the at occurrence of s, another way to obtain t is to drop the at occurrence 1. As another example, consider t 0 s. Then s emb t 0 and there is one way of obtaining t 0 from s, viz. dropping no occurrence of a symbol. Finally, consider t 00 ((); ). Clearly, s 6 emb t 00 and hence, the number of dierent ways in which t 00 can be obtained from s is zero. Thus, we dene the t-ts transformation #emb : T! N athht ii such that, for every s; t T, n if s emb t and there are n dierent ways to embed t into s (#emb(s); t) 0 otherwise 9

10 Note that, (#emb(s); t) 6 0 i s emb t. Thus, e.g., #emb((; (()))) (; (())) ^+(; ()) ^+(; ) ^+(()) ^+() ^+: Now, based on M drop, we construct a bottom-up tree series transducer M # drop (Q; ; ; N at; Q d; ) such that M # drop #emb, where is dened as follows. () () ;(x1)(x ) (x 1 ; x ) ^+x 1 ^+x () 1 () ;(x1) (x 1 ) ^+x 1 () 0 () ;" Now let us compute M # drop (s) for our example tree s (; (())). M # (s) P qq d h (s) q P qfg h (s) q h (s). Since h is dened by induction on the structure of its argument, we rst compute h (), second h (()), third h ((())), and nally h ((; (()))). h () 0 ()() P w" 0() ;w () 0 () ;" () h (()) P 1 ()(h ()) w(x 1) 1() ;w (h () ) 0 () ;(x1) (h () ) ((x P 1 ) ^+x 1 ) () tt (X ((x 1) 1) ^+x 1 ; t)(t ()) ((x 1 ) ()) + (x 1 ()) ( ^PsT (; s)((x (X) 1)[s])) + ( ^PsT (; s)(x (X) 1[s])) () ^+ h ((()))... ((x 1 ) ^+x 1 ) (() ^+) tt (X ((x 1) 1) ^+x 1 ; t)(t (() ^+)) ((x 1 ) (() ^+)) + (x 1 (() ^+)) ( ^PsT (() (X) ^+; s)((x 1 )[s])) + ( ^PsT (() (X) ^+; s)(x 1 [s])) ((()) ^+) + (() ^+) (()) ^+ () ^+ h ((; (()))) ()(h (); h ((()))) w(x 1)(x ) () ;w (h () ; h ((())) ) () ;w (h () ; h ((())) ) ((x 1 ; x ) ^+x 1 ^+x ) (; (()) ^+ () ^+ ) tt (X ((x ) 1; x ) ^+x 1 ^+x ; t)(t (; (()) ^+ () ^+ )) 10

11 ((x 1 ; x ) (; (()) ^+ () ^+ )) + (x 1 (; (()) ^+ () ^+ )) + (x (; (()) ^+ () ^+ )) ^Ps 1;s T (X) (; s 1)((()) ^+ () ^+ ; s )((x 1 ; x )[s 1 ; s ]) + ^Ps 1;s T (X) (; s 1)((() ^+ () ^+ ; s )(x 1 [s 1 ; s ]) + ^Ps 1;s T (X) (; s 1)((()) ^+ () ^+ ; s )(x [s 1 ; s ]) ((; (()) ^+(; ()) ^+(; )) + + ((()) ^+() ^+) (; (())) ^+ (; ()) ^+ (; ) ^+(()) ^+() ^+ Thus, we have veried that M # (s) #emb(s) for the tree s (; (())). drop Next we dene some restricted versions of bottom-up tree series transducers. These are the same restrictions which are imposed on tree transducers, see e.g. [Eng75, Bak79, GS84]. Denition 3.7 Let M (Q; ; ; A; Q d ; ) be a bottom-up tree series transducer. 1. M is deterministic if for every k 0, (k), q 1 ; : : :; q k Q, there is at most one q Q, such that k () q;w 6 ~0 where w q 1 (x 1 ) : : : q k (x k ), and if k () q;w 6 ~0 for some q and w, then k () q;w is a singleton.. M is total if Q d Q and for every k 0, (k), q 1 ; : : : ; q k Q, there is at least one q Q such that k () q;w 6 ~0. 3. M is a bottom-up homomorphism tree series transducer if it is total deterministic and the set Q of states is a singleton. 4. M is linear if for every k 0, (k), q; q 1 ; : : :; q k Q, every t supp( k () q;q1(x 1):::q k(xk) ) is linear. 5. M is a bottom-up nite state relabeling tree series transducer if for every k 0, (k) and q; q 1 ; : : : ; q k Q, every t supp( k () q;q1(x 1):::q k(xk) ) has the form (x 1 ; : : : ; x k ) for some (k). 6. M is polynomial if for every k 0, (k), q; q 1 ; : : : ; q k Q, k () q;q1(x 1):::q k(xk) AhT (X)i. Notice that bottom-up nite state relabeling tree series transducers are polynomial. The class of t-ts transformations induced by bottom-up tree series transducers is denoted by BOT t?ts. The classes of t-ts transformations which correspond to the syntactic subclasses of Denition are denoted by d-bot t?ts, t-bot t?ts, h-bot t?ts, l-bot t?ts, r-bot t?ts, and p-bot t?ts, resp. If more than one syntactic restriction holds, then BOT t?ts is prexed by the string of corresponding letters, e.g. ltd-bot t?ts denotes the class of t-ts transformations induced by linear, total, deterministic bottom-up tree series transducers. If all the considered bottom-up tree series transducers are over the same semiring A, then the corresponding class of t-ts transformations is indexed by A as e.g. in ltd-bot t?ts (A). The class of ts-ts transformations induced by bottom-up tree series transducers is denoted by BOT ts?ts. The denotation of the classes of ts-ts transformations computed by subclasses of bottom-up tree series transducers is obtained from the denotation of the corresponding classes of t-ts transformations by replacing t? ts by ts? ts. Note that the bottom-up tree series transducer M # drop considered in Example 3.6 is in fact a bottomup homomorphism tree series transducer. In what follows, like in case of M # drop, we will denote the only state of a homomorphism tree series transducer by. Now we introduce the corresponding restrictions for top-down tree series transducers. Denition 3.8 Let M (Q; ; ; A; Q d ; ) be a top-down tree series transducer. 1. M is deterministic if the following conditions hold. Q d is a singleton. For every k 0, (k), q Q, there is at most one w (Q(X k )) such that k () q;w 6 ~0, and if k () q;w 6 ~0 for some q and w, then k () q;w is a singleton.. M is total if for every k 0, (k), q Q, there is at least one w (Q(X k )) such that k () q;w 6 ~0, and Q d 6 ;. 11

12 3. M is a top-down homomorphism tree series transducer if it is total deterministic and the set Q of states is a singleton. 4. M is linear if for every k 0, (k), q Q, w (Q(X k )), if k () q;w 6 ~0, then w is linear. 5. M is a top-down nite state relabeling tree series transducer if for every k 0, (k), q Q, w (Q(X k )), if k () q;w 6 ~0, then w q 1 (x 1 ) : : : q k (x k ) and every t supp( k () q;w ) has the form (x 1 ; : : : ; x k ) for some (k). 6. M is polynomial if for every k 0, (k), q Q, w (Q(X k )), if k () q;w AhT (X)i. Again like in the bottom-up case, top-down nite state relabeling tree series transducers are polynomial. The class of t-ts transformations induced by top-down tree series transducers is denoted by T OP t?ts. The classes of t-ts transformations which correspond to the syntactic subclasses of Denition are denoted by d-t OP t?ts, t-t OP t?ts, h-t OP t?ts, l-t OP t?ts, r-t OP t?ts, and p-t OP t?ts, resp. For combinations of syntactic restrictions and for the restriction to one semiring A we use a notation similar to that of the bottom-up case. The class of ts-ts transformations induced by top-down tree series transducers is denoted by T OP ts?ts and also here we use the same notation system as in the bottom-up case. We note that a tree transducer in the sense of [Kui97a] is a top-down tree series transducer in which the elements k of the tree representation have the particular form k : k! (AhhT (X k )ii) QQk where Q k Q(fx 1 g) : : : Q(fx k g). Finally, we show that, like in case of conventional tree transducers, the dierence between the bottom-up and the top-down approaches disappears for certain basic classes of tree series transducers (cf. Lemma 3. of [Eng75] and the remark after Denition 3.14 of [Eng75]). Lemma 3.9 1) h-t OP t?ts h-bot t?ts and h-t OP ts?ts h-bot ts?ts. ) r-t OP t?ts r-bot t?ts and r-t OP ts?ts r-bot ts?ts Proof. First we show that 1) holds. We prove only the rst statement because the second one follows immediately from the denition of the ts-ts semantics.. Let M (fg; ; ; A; fg; ) be a top-down homomorphism tree series transducer. We construct the bottom-up homomorphism tree series transducer M 0 (fg; ; ; A; fg; 0 ) in the following way. For every k 0, (k), and t T (X k ), let lin X (t) (t 0 ; x i1 : : : x il ). Now let us dene ( 0 k () ;(x 1):::(x k) ; t) ( k () ;(xi1 ):::(x il ); t 0 ). It is easy to see that M M 0, which proves the inclusion h-t OP t?ts h-bot t?ts. To show the converse of the inclusion, let us take a bottom-up homomorphism tree series transducer M (fg; ; ; A; fg; ). Now we construct the top-down homomorphism tree series transducer M 0 (fg; ; ; A; fg; 0 ) as follows. For every k 0, (k), sequence (x i1 ) : : :(x il ) where 1 i 1 ; : : : ; i l k, and tree t 0 c T (X l ), let t t 0 [x 1 x i1 ; : : : ; x l x il ]. Now let us dene ( 0 k () ;(x i1 ):::(x il ); t 0 ) ( k () ;(x1):::(x k) ; t). Again it is easy to see that M M 0, which proves h-bot t?ts h-t OP t?ts. The proof of ) is left to the reader, cf. the corresponding statement for tree transducers in [Eng75]. From now on we call a bottom-up homomorphism tree series transducers as well as a top-down homomorphism tree series transducer a homomorphism tree series transducers. Similarly we drop the notions "bottom-up" and "top-down" from bottom-up and top-down nite state relabeling tree series transducers. Let us denote the classes h-t OP t?ts and r-t OP t?ts (and h-t OP ts?ts and r-t OP ts?ts ) by HOM t?ts and QREL t?ts (HOM ts?ts and QREL ts?ts ), respectively. It is an exercise to show that for every ranked alphabet and semiring A is in any of the classes of tree to tree series transformations dened in this section. We will use this fact in Section 5. 4 Tree series transducers over IB In this section we show that, under the t-ts semantics, every bottom-up tree transducer can be simulated by a polynomial bottom-up tree series transducer over IB and vice versa, every polynomial bottom-up tree series transducer over IB can be simulated by a bottom-up tree transducer. The same correspondence holds for the top-down case. 1

13 4.1 The bottom-up case Denition 4.1 Let M (Q; ; ; Q d ; R) be a bottom-up tree transducer and M 0 (Q; ; ; IB; Q d ; ) be a polynomial bottom-up tree series transducer over IB. M and M 0 are related if the following equivalence is true: for every k 0, (k), t T (X k ), and q; q 1 ; : : : ; q k Q, ( k () q;q1(x 1):::q k(xk) ; t) 1 i there is a rule (q 1 (x 1 ); : : : ; q k (x k ))! q(t) in R: Lemma 4. Let M be a bottom-up tree transducer with and as input and as output ranked alphabet, respectively, and M 0 be a polynomial bottom-up tree series transducer such that M and M 0 are related. Then, M M 0 pick. Proof. Let M and M 0 be specied as in Denition 4.1. First, we can prove by induction on s that, for every s T, t T, and q Q the following equivalence holds: (h (s) q ; t) 1 i s ) M q(t). s (s 1 ; : : : ; s k ) with k 1: s ) M q(t) i (s 1 ; : : : ; s k ) ) M q(t) i there are q 1 ; : : : ; q k Q and t 1 ; : : : ; t k T such that (s 1 ; : : : ; s k ) ) M (q 1(t 1 ); : : : ; q k (t k )) ) M q(t) i there are q 1 ; : : : ; q k Q, t 1 ; : : : ; t k T, t 0 T (X k ), and there is a rule (q 1 (x 1 ); : : : ; q k (x k ))! q(t 0 ) in R such that i s i ) M q i(t i ) and t t 0 [t 1 ; : : : ; t k ] there are q 1 ; : : : ; q k Q, t 1 ; : : : ; t k T, t 0 T (X k ) such that ( k () q;q1(x1):::q k(xk) ; t 0 ) 1 and (h (s i ) qi ; t i ) 1 and t t 0 [t 1 ; : : : ; t k ] P i (( wq 1(x 1):::q k(xk) Pt 0 T (X k) ( k () q;w ; t 0 )( ^Pt 1;:::;t kt (h (s 1 ) q1 ; t 1 ) : : :(h (s k ) qk ; t k )t 0 [t 1 ; : : :; t k ])) q ; t) 1 i (( wq 1(x 1):::q k(xk) Pt 0 T (X k) i ( k () q;w ; t 0 )(t 0 (h (s 1 ) q1 ; : : : ; h (s k ) qk ))) q ; t) 1 (( wq 1(x 1):::q k(xk) k () q;w (h (s 1 ) q1 ; : : : ; h (s k ) qk )) q ; t) 1 i ( k ()(h (s 1 ); : : : ; h (s k )) q ; t) 1 i (h (s) q ; t) 1. Second, we can prove that M M 0 pick. Let s T and t T. (s; t) M i 9q Q d : s ) M q(t) i 9q Q d : (h (s) q ; t) 1 i 9q Q d : (h (s) q ; t) pick i ( qq d h (s) q ; t) pick i ( M 0(s); t) pick i (s; t) M 0 pick Lemma 4.3 For every bottom-up tree transducer M there is a polynomial bottom-up tree series transducer M 0 such that M and M 0 are related. Proof. Let M (Q; ; ; Q d ; R) be a bottom-up tree transducer. Construct the bottom-up tree series transducer M 0 (Q; ; ; IB; Q d ; ) with the bottom-up tree representation over Q,,, and IB as follows: for every k 0, (k), t T (X k ), and q; q 1 ; : : : ; q k Q, ( k () q;q1(x 1):::q k(xk) ; t) 1 if there is a rule (q 1 (x 1 ); : : : ; q k (x k ))! q(t) in R, and ( k () q;q1(x 1):::q k(xk) ; t) 0 if there is no such rule. Obviously, M 0 is a polynomial, and M and M 0 are related. Example 4.4 (Cf. Example.1 of [Eng75].) Consider the bottom-up tree transducer M (Q; ; ; Q d ; R) where Q fqg, f (1) ; (1) ; (0) g, f () ; (1) 1 ; (1) ; (0) g, Q d fqg, and R consists of the following rules: 13

14 (q(x 1 ))! q((x 1 ; x 1 )) (q(x 1 ))! q( 1 (x 1 )) (q(x 1 ))! q( (x 1 ))! q() This is an example of Property (B1) in [Eng75]: a bottom-up tree transducer is able to process a subtree of an input tree in a nondeterministic way and copy the results of this process. Using Lemma 4.3 we construct the bottom-up tree series transducer M 0 (Q; ; ; IB; Q d ; ) as follows: 1 () q;q(x1) (x 1 ; x 1 ) 1 () q;q(x1) 1 (x 1 ) ^+ (x 1 ) 0 () q;" Then, according to Lemmas 4.3 and 4., M 0 is the bottom-up tree series transducer such that M M 0pick. Note that M 0 is not deterministic, hence is not a homomorphismtree series transducer. Let us compute now in detail h (), h (), and h (), and eventually M 0(r) for the polynomial formal tree series r. h () q 0 ()() q 0 () q;" h () q 1 ()(h ()) q P wp 1(x i1 ):::p l(xil )Q(fx 1g) 1() q;w (h () p1 ; : : : ; h () pl ) 1 () q;q(x1) (h () q ) ( 1 (x 1 ) ^+ (x 1 )) () 1 () ^+ (): h () q 1 ()(h ()) q 1 () q;q(x1) (h () q ) (x 1 ; x 1 ) ( 1 () ^+ ()) ^Pt 1T (X) ( 1() ^+ (); t 1 )(x 1 ; x 1 )[t 1 ] ( 1 ; 1 ) ^+( ; ). Finally, M 0() P qq d h () q h () q ( 1 ; 1 ) ^+( ; ). Lemma 4.5 For every polynomial bottom-up tree series transducer M over IB there is a bottom-up tree transducer M 0 such that M 0 and M are related. Proof. Let M (Q; ; ; IB; Q d ; ) be a polynomial bottom-up tree series transducer. Construct the bottom-up tree transducer M 0 (Q; ; ; Q d ; R) as follows. For every k 0, (k), t T (X k ), and q; q 1 ; : : :; q k Q, the rule (q 1 (x 1 ); : : :; q k (x k ))! q(t) is in R if ( k () q;q1(x 1):::q k(xk) ; t) 1. Note that, since M is polynomial, R is a nite set. Obviously, M and M 0 are related. From Lemmas 4., 4.3, and 4.5 immediately a characterization of bottom-up tree transducers in terms of polynomial bottom-up tree series transducers follows. Theorem 4.6 p-bot t?ts (IB) P ICK BOT tt. 14

15 4. The top-down case Next we show that top-down tree transducers (as they occur in the literature) are characterized by polynomial top-down tree series transducers over the boolean semiring IB. Denition 4.7 Let M (Q; ; ; Q d ; R) be a top-down tree transducer and let M 0 (Q; ; ; IB; Q d ; ) be a polynomial top-down tree series transducer over IB. M and M 0 are related if the following equivalence is true: for every k 0, (k), q Q, w (Q(X k )), t 0 c T (X l ) where l jwj, ( k () q;w ; t 0 ) 1 i there is a rule q((x 1 ; : : : ; x k ))! t in R such that lin Q(X) (t) (t 0 ; w): Lemma 4.8 Let M be a top-down tree transducer with and as input and as output ranked alphabets, respectively, and M 0 be a polynomial top-down tree series transducer such that M and M 0 are related. Then, M M 0 pick holds. Proof. Let M and M 0 be specied as in Denition 4.7. We can prove that, for every s T, t T, and q Q the following equivalence holds: (h (s) q ; t) 1 i q(s) ) M t. s (s 1 ; : : : ; s k ) with k 1: q(s) ) M t i there are q 1 ; : : : ; q l Q, i 1 ; : : :; i l f1; : : :; kg, t 1 ; : : : ; t l T, and t 0 T c(x l ) such that q((s 1 ; : : : ; s k )) ) M t 0 [q 1 (s i1 ); : : : ; q l (s il )] ) M t0 [t 1 ; : : : ; t l ] t i there are q 1 ; : : : ; q l Q, i 1 ; : : :; i l f1; : : :; kg, t 1 ; : : : ; t l T, and t 0 T c(x l ) such that q((x 1 ; : : : ; x k ))! t 0 [q 1 (x i1 ); : : : ; q l (x il )] is in R and q j (s ij ) ) M t j and t 0 [t 1 ; : : :; t l ] t i there are q 1 ; : : : ; q l Q, i 1 ; : : :; i l f1; : : :; kg, t 1 ; : : : ; t l T, and t 0 T c(x l ) such that ( P k () q;q1(xi1 ):::q l(xil ); t 0 ) 1 and (h (s ij ) qj ; t j ) 1 and t 0 [t 1 ; : : : ; t l ] t P i ( wq 1(x i1 ):::q l(xil ) t 0 T (X l) ( k () q;w ; t 0 ) ^Pt P 1;:::;t (h lt(x) (s i1 ) q1 ; t 1 ) : : :(h (s il ) ql ; t l )t 0 [t 1 ; : : : ; t l ]; t) 1 i ( P P wq 1(x i1 ):::q l(xil ) t 0 T (X l) ( k () q;w ; t 0 )(t 0 (h (s i1 ) q1 ; : : : ; h (s il ) ql ); t) 1 i ( wq 1(x i1 ):::q l(xil ) k() q;w (h (s i1 ) q1 ; : : : ; h (s il ) ql ); t) 1 i ( k ()(h (s 1 ); : : : ; h (s k )) q ; t) 1 i (h (s) q ; t) 1. At the step which is marked by we have used the fact that the top-down tree representation ( k () q;q1(x i1 ):::q l(xil ); t 0 ) 0 if t 0 6 c T (X l ). The equation M M 0 pick can be veried in the same way as in the proof of Lemma 4.. Lemma 4.9 For every top-down tree transducer M there is a polynomial top-down tree series transducer M 0 such that M and M 0 are related. Proof. Let M (Q; ; ; Q d ; R) be a top-down tree transducer. Construct the top-down tree series transducer M 0 (Q; ; ; IB; Q d ; ) with the top-down tree representation over Q,,, and IB as follows: for every k 0, (k), q Q, w (Q(X k )), t 0 T c (X l ) where l jwj, dene ( k () q;w ; t 0 ) 1 if there is a rule q((x 1 ; : : : ; x k ))! t in R such that lin Q(X) (t) (t 0 ; w), otherwise ( k () q;w ; t 0 ) 0. Obviously, M 0 is and polynomial. Moreover, M and M 0 are related. Example 4.10 (cf. Example. of [Eng75].) Consider the top-down tree transducer M (Q; ; ; Q d ; R) where Q fqg, f (1) ; (1) ; (0) g, f () ; (1) 1 ; (1) ; (0) g, Q d fqg, and R consists of the following rules: q((x 1 ))! (q(x 1 ); q(x 1 )) q((x 1 ))! 1 (q(x 1 )) q((x 1 ))! (q(x 1 )) q()! 15

16 This exhibits an example of the property (T) of [Eng75]: a top-down tree transducer is able to copy a subtree of its input tree and process the copies dierently. By Lemma 4.9 we construct the top-down tree representation over Q,,, and IB as follows: 1 () q;q(x1)q(x 1) (x 1 ; x ) 1 () q;q(x1) 1 (x 1 ) ^+ (x 1 ) 0 () q;" Then, according to Lemmas 4.8 and 4.9, M 0 (Q; ; ; IB; Q d ; ) is the top-down tree series transducer such that M M 0 pick. Let us again compute in detail h (), h (), and h (), and eventually M 0(r) for the polynomial formal tree series r. h () q 0 ()() q 0 () q;" h () q 1 ()(h ()) q P wp 1(x i1 ):::p l(xil )Q(fx 1g) 1() q;w (h () p1 ; : : : ; h () pl ) 1 () q;q(x1) (h () q ) ( 1 (x 1 ) ^+ (x 1 )) () P tt (X 1) ( 1(x 1 ) ^+ (x 1 ); t) t () ( 1 (x 1 ) ()) ^+ ( (x 1 ) ()) 1 () ^+ (): h () q 1 ()(h ()) q P wp 1(x i1 ):::p l(xil )Q(fx 1g) 1() q;w (h () p1 ; : : : ; h () pl ) 1 () q;q(x1)q(x 1) (h () q ; h () q ) (x 1 ; x ) ( 1 () ^+ (); 1 () ^+ ()) ^Pt 1;t T (X) ( 1() ^+ (); t 1 )( 1 () ^+ (); t )(x 1 ; x )[t 1 ; t ] ( 1 ; 1 ) ^+( 1 ; ) ^+( ; 1 ) ^+( ; ). Finally, M 0() P qq d h () q h () q ( 1 ; 1 ) ^+( 1 ; ) ^+( ; 1 ) ^+( ; ). Lemma 4.11 For every polynomial top-down tree series transducer M over IB there is a top-down tree transducer M 0 such that M and M 0 are related. Proof. Let M (Q; ; ; IB; Q d ; ) be a polynomial top-down tree series transducer. Construct the top-down tree transducer M 0 (Q; ; ; Q d ; R) as follows. Let R be the smallest set of rules satisfying the condition that for every k 0, (k), q Q, w q 1 (x i1 ) : : : q l (x il ) (Q(X k )), and t 0 c T (X l ) with ( k () q;w ; t 0 ) 1, the rule q((x 1 ; : : : ; x k ))! t is in R, where t t 0 [x 1 q 1 (x i1 ); : : : ; x l q l (x il )]. (Note that lin Q(X) (t) (t 0 ; w).) Again, since M is polynomial, R is a nite set. Obviously, M and M 0 are related. Thus, it follows from Lemmas 4.8, 4.9, and 4.11 that also for the top-down case we obtain a characterization of top-down tree transducers in terms of polynomial top-down tree series transducers. Theorem 4.1 p-t OP t?ts (IB) P ICK T OP tt. We would like to nish this section by comparing the embedding of top-down tree transducers into top-down tree series transducers as done in our Lemma 4.9 with the embedding of nondeterministically simple root-to-frontier tree transducers into tree transducers as done on page 139 of [Kui99]. This comparison is reasonable, because nondeterministically simple root-to-frontier transducers are particular top-down tree transducers, and tree transducers of [Kui99] are particular top-down tree series transducers. 16

Incomparability Results for Classes of Polynomial Tree Series Transformations

Incomparability Results for Classes of Polynomial Tree Series Transformations Journal of Automata, Languages and Combinatorics 10 (2005) 4, 535{568 c Otto-von-Guericke-Universitat Magdeburg Incomparability Results for Classes of Polynomial Tree Series Transformations Andreas Maletti

More information

Compositions of Tree Series Transformations

Compositions of Tree Series Transformations Compositions of Tree Series Transformations Andreas Maletti a Technische Universität Dresden Fakultät Informatik D 01062 Dresden, Germany maletti@tcs.inf.tu-dresden.de December 03, 2004 1. Motivation 2.

More information

Hasse Diagrams for Classes of Deterministic Bottom-Up Tree-to-Tree-Series Transformations

Hasse Diagrams for Classes of Deterministic Bottom-Up Tree-to-Tree-Series Transformations Hasse Diagrams for Classes of Deterministic Bottom-Up Tree-to-Tree-Series Transformations Andreas Maletti 1 Technische Universität Dresden Fakultät Informatik D 01062 Dresden Germany Abstract The relationship

More information

The Generating Power of Total Deterministic Tree Transducers

The Generating Power of Total Deterministic Tree Transducers Information and Computation 147, 111144 (1998) Article No. IC982736 The Generating Power of Total Deterministic Tree Transducers Sebastian Maneth* Grundlagen der Programmierung, Institut fu r Softwaretechnik

More information

Equational Logic. Chapter Syntax Terms and Term Algebras

Equational Logic. Chapter Syntax Terms and Term Algebras Chapter 2 Equational Logic 2.1 Syntax 2.1.1 Terms and Term Algebras The natural logic of algebra is equational logic, whose propositions are universally quantified identities between terms built up from

More information

How to Pop a Deep PDA Matters

How to Pop a Deep PDA Matters How to Pop a Deep PDA Matters Peter Leupold Department of Mathematics, Faculty of Science Kyoto Sangyo University Kyoto 603-8555, Japan email:leupold@cc.kyoto-su.ac.jp Abstract Deep PDA are push-down automata

More information

Computability and Complexity

Computability and Complexity Computability and Complexity Sequences and Automata CAS 705 Ryszard Janicki Department of Computing and Software McMaster University Hamilton, Ontario, Canada janicki@mcmaster.ca Ryszard Janicki Computability

More information

Logic Part I: Classical Logic and Its Semantics

Logic Part I: Classical Logic and Its Semantics Logic Part I: Classical Logic and Its Semantics Max Schäfer Formosan Summer School on Logic, Language, and Computation 2007 July 2, 2007 1 / 51 Principles of Classical Logic classical logic seeks to model

More information

of acceptance conditions (nite, looping and repeating) for the automata. It turns out,

of acceptance conditions (nite, looping and repeating) for the automata. It turns out, Reasoning about Innite Computations Moshe Y. Vardi y IBM Almaden Research Center Pierre Wolper z Universite de Liege Abstract We investigate extensions of temporal logic by connectives dened by nite automata

More information

6 Coalgebraic modalities via predicate liftings

6 Coalgebraic modalities via predicate liftings 6 Coalgebraic modalities via predicate liftings In this chapter we take an approach to coalgebraic modal logic where the modalities are in 1-1 correspondence with so-called predicate liftings for the functor

More information

TECHNISCHE UNIVERSITÄT DRESDEN. Fakultät Informatik. Technische Berichte Technical Reports. Daniel Kirsten. TUD / FI 98 / 07 - Mai 1998

TECHNISCHE UNIVERSITÄT DRESDEN. Fakultät Informatik. Technische Berichte Technical Reports. Daniel Kirsten. TUD / FI 98 / 07 - Mai 1998 TECHNISCHE UNIVERSITÄT DRESDEN Fakultät Informatik TUD / FI 98 / 07 - Mai 998 Technische Berichte Technical Reports ISSN 430-X Daniel Kirsten Grundlagen der Programmierung Institut für Softwaretechnik

More information

Myhill-Nerode Theorem for Recognizable Tree Series Revisited?

Myhill-Nerode Theorem for Recognizable Tree Series Revisited? Myhill-Nerode Theorem for Recognizable Tree Series Revisited? Andreas Maletti?? International Comper Science Instite 1947 Center Street, Suite 600, Berkeley, CA 94704, USA Abstract. In this contribion

More information

The rest of the paper is organized as follows: in Section 2 we prove undecidability of the existential-universal ( 2 ) part of the theory of an AC ide

The rest of the paper is organized as follows: in Section 2 we prove undecidability of the existential-universal ( 2 ) part of the theory of an AC ide Undecidability of the 9 8 part of the theory of ground term algebra modulo an AC symbol Jerzy Marcinkowski jma@tcs.uni.wroc.pl Institute of Computer Science University of Wroc law, ul. Przesmyckiego 20

More information

Introduction to Kleene Algebras

Introduction to Kleene Algebras Introduction to Kleene Algebras Riccardo Pucella Basic Notions Seminar December 1, 2005 Introduction to Kleene Algebras p.1 Idempotent Semirings An idempotent semiring is a structure S = (S, +,, 1, 0)

More information

Compositions of Bottom-Up Tree Series Transformations

Compositions of Bottom-Up Tree Series Transformations Compositions of Bottom-Up Tree Series Transformations Andreas Maletti a Technische Universität Dresden Fakultät Informatik D 01062 Dresden, Germany maletti@tcs.inf.tu-dresden.de May 17, 2005 1. Motivation

More information

1 Introduction We study classical rst-order logic with equality but without any other relation symbols. The letters ' and are reserved for quantier-fr

1 Introduction We study classical rst-order logic with equality but without any other relation symbols. The letters ' and are reserved for quantier-fr UPMAIL Technical Report No. 138 March 1997 (revised July 1997) ISSN 1100{0686 Some Undecidable Problems Related to the Herbrand Theorem Yuri Gurevich EECS Department University of Michigan Ann Arbor, MI

More information

automaton model of self-assembling systems is presented. The model operates on one-dimensional strings that are assembled from a given multiset of sma

automaton model of self-assembling systems is presented. The model operates on one-dimensional strings that are assembled from a given multiset of sma Self-Assembling Finite Automata Andreas Klein Institut fur Mathematik, Universitat Kassel Heinrich Plett Strae 40, D-34132 Kassel, Germany klein@mathematik.uni-kassel.de Martin Kutrib Institut fur Informatik,

More information

On the Myhill-Nerode Theorem for Trees. Dexter Kozen y. Cornell University

On the Myhill-Nerode Theorem for Trees. Dexter Kozen y. Cornell University On the Myhill-Nerode Theorem for Trees Dexter Kozen y Cornell University kozen@cs.cornell.edu The Myhill-Nerode Theorem as stated in [6] says that for a set R of strings over a nite alphabet, the following

More information

An Algebraic View of the Relation between Largest Common Subtrees and Smallest Common Supertrees

An Algebraic View of the Relation between Largest Common Subtrees and Smallest Common Supertrees An Algebraic View of the Relation between Largest Common Subtrees and Smallest Common Supertrees Francesc Rosselló 1, Gabriel Valiente 2 1 Department of Mathematics and Computer Science, Research Institute

More information

The Pumping Lemma. for all n 0, u 1 v n u 2 L (i.e. u 1 u 2 L, u 1 vu 2 L [but we knew that anyway], u 1 vvu 2 L, u 1 vvvu 2 L, etc.

The Pumping Lemma. for all n 0, u 1 v n u 2 L (i.e. u 1 u 2 L, u 1 vu 2 L [but we knew that anyway], u 1 vvu 2 L, u 1 vvvu 2 L, etc. The Pumping Lemma For every regular language L, there is a number l 1 satisfying the pumping lemma property: All w L with w l can be expressed as a concatenation of three strings, w = u 1 vu 2, where u

More information

Decision issues on functions realized by finite automata. May 7, 1999

Decision issues on functions realized by finite automata. May 7, 1999 Decision issues on functions realized by finite automata May 7, 1999 Christian Choffrut, 1 Hratchia Pelibossian 2 and Pierre Simonnet 3 1 Introduction Let D be some nite alphabet of symbols, (a set of

More information

Solvability of Word Equations Modulo Finite Special And. Conuent String-Rewriting Systems Is Undecidable In General.

Solvability of Word Equations Modulo Finite Special And. Conuent String-Rewriting Systems Is Undecidable In General. Solvability of Word Equations Modulo Finite Special And Conuent String-Rewriting Systems Is Undecidable In General Friedrich Otto Fachbereich Mathematik/Informatik, Universitat GH Kassel 34109 Kassel,

More information

Abstract It is shown that formulas in monadic second order logic (mso) with one free variable can be mimicked by attribute grammars with a designated

Abstract It is shown that formulas in monadic second order logic (mso) with one free variable can be mimicked by attribute grammars with a designated Attribute Grammars and Monadic Second Order Logic Roderick Bloem October 15, 1996 Abstract It is shown that formulas in monadic second order logic (mso) with one free variable can be mimicked by attribute

More information

Pure and O-Substitution

Pure and O-Substitution International Journal of Foundations of Computer Science c World Scientific Publishing Company Pure and O-Substitution Andreas Maletti Department of Computer Science, Technische Universität Dresden 01062

More information

Computability and Complexity

Computability and Complexity Computability and Complexity Non-determinism, Regular Expressions CAS 705 Ryszard Janicki Department of Computing and Software McMaster University Hamilton, Ontario, Canada janicki@mcmaster.ca Ryszard

More information

Kleene Algebras and Algebraic Path Problems

Kleene Algebras and Algebraic Path Problems Kleene Algebras and Algebraic Path Problems Davis Foote May 8, 015 1 Regular Languages 1.1 Deterministic Finite Automata A deterministic finite automaton (DFA) is a model of computation that can simulate

More information

Asynchronous cellular automata for pomsets. 2, place Jussieu. F Paris Cedex 05. Abstract

Asynchronous cellular automata for pomsets. 2, place Jussieu. F Paris Cedex 05. Abstract Asynchronous cellular automata for pomsets without auto-concurrency Manfred Droste Institut fur Algebra Technische Universitat Dresden D-01062 Dresden droste@math.tu-dresden.de Paul Gastin LITP, IBP Universite

More information

Characterizing CTL-like logics on finite trees

Characterizing CTL-like logics on finite trees Theoretical Computer Science 356 (2006) 136 152 www.elsevier.com/locate/tcs Characterizing CTL-like logics on finite trees Zoltán Ésik 1 Department of Computer Science, University of Szeged, Hungary Research

More information

Discrete Mathematics and Logic II. Regular Sets

Discrete Mathematics and Logic II. Regular Sets Discrete Mathematics and Logic II. Regular Sets SFWR ENG 2FA3 Ryszard Janicki Winter 24 Acknowledgments: Material based on Automata and Computability by Dexter C. Kozen (Chapter 4). Ryszard Janicki Discrete

More information

TWO-WAY FINITE AUTOMATA & PEBBLE AUTOMATA. Written by Liat Peterfreund

TWO-WAY FINITE AUTOMATA & PEBBLE AUTOMATA. Written by Liat Peterfreund TWO-WAY FINITE AUTOMATA & PEBBLE AUTOMATA Written by Liat Peterfreund 1 TWO-WAY FINITE AUTOMATA A two way deterministic finite automata (2DFA) is a quintuple M Q,,, q0, F where: Q,, q, F are as before

More information

Geraud Senizergues. LaBRI. 351, Cours de la Liberation Talence, France?? is shown to be decidable. We reduce this problem to the -

Geraud Senizergues. LaBRI. 351, Cours de la Liberation Talence, France?? is shown to be decidable. We reduce this problem to the - ? (A)? (B)? Geraud Senizergues LaBRI Universite de Bordeaux I 351, Cours de la Liberation 33405 Talence, France?? Abstract. The bisimulation problem for equational graphs of nite outdegree is shown to

More information

Note On Parikh slender context-free languages

Note On Parikh slender context-free languages Theoretical Computer Science 255 (2001) 667 677 www.elsevier.com/locate/tcs Note On Parikh slender context-free languages a; b; ; 1 Juha Honkala a Department of Mathematics, University of Turku, FIN-20014

More information

Hierarchies of Tree Series TransducersRevisited 1

Hierarchies of Tree Series TransducersRevisited 1 Hierarchies of Tree Series TransducersRevisited 1 Andreas Maletti 2 Technische Universität Dresden Fakultät Informatik June 27, 2006 1 Financially supported by the Friends and Benefactors of TU Dresden

More information

A Logical Characterization for Weighted Event-Recording Automata

A Logical Characterization for Weighted Event-Recording Automata A Logical Characterization for Weighted Event-Recording Automata June 23, 2009 Karin Quaas Institut für Informatik, Universität Leipzig 04009 Leipzig, Germany quaas@informatik.uni-leipzig.de Abstract.

More information

Vector Space Basics. 1 Abstract Vector Spaces. 1. (commutativity of vector addition) u + v = v + u. 2. (associativity of vector addition)

Vector Space Basics. 1 Abstract Vector Spaces. 1. (commutativity of vector addition) u + v = v + u. 2. (associativity of vector addition) Vector Space Basics (Remark: these notes are highly formal and may be a useful reference to some students however I am also posting Ray Heitmann's notes to Canvas for students interested in a direct computational

More information

An Introduction to the Theory of Coalgebras

An Introduction to the Theory of Coalgebras An Introduction to the Theory of Coalgebras Dirk Pattinson Institut für Informatik, LMU München 2 Contents 1 Introduction 7 1.1 State Based Systems....................... 7 1.1.1 Informal Denition....................

More information

Linear Algebra (part 1) : Vector Spaces (by Evan Dummit, 2017, v. 1.07) 1.1 The Formal Denition of a Vector Space

Linear Algebra (part 1) : Vector Spaces (by Evan Dummit, 2017, v. 1.07) 1.1 The Formal Denition of a Vector Space Linear Algebra (part 1) : Vector Spaces (by Evan Dummit, 2017, v. 1.07) Contents 1 Vector Spaces 1 1.1 The Formal Denition of a Vector Space.................................. 1 1.2 Subspaces...................................................

More information

Mathematical Foundations of Logic and Functional Programming

Mathematical Foundations of Logic and Functional Programming Mathematical Foundations of Logic and Functional Programming lecture notes The aim of the course is to grasp the mathematical definition of the meaning (or, as we say, the semantics) of programs in two

More information

UNIT-II. NONDETERMINISTIC FINITE AUTOMATA WITH ε TRANSITIONS: SIGNIFICANCE. Use of ε-transitions. s t a r t. ε r. e g u l a r

UNIT-II. NONDETERMINISTIC FINITE AUTOMATA WITH ε TRANSITIONS: SIGNIFICANCE. Use of ε-transitions. s t a r t. ε r. e g u l a r Syllabus R9 Regulation UNIT-II NONDETERMINISTIC FINITE AUTOMATA WITH ε TRANSITIONS: In the automata theory, a nondeterministic finite automaton (NFA) or nondeterministic finite state machine is a finite

More information

Advanced Automata Theory 10 Transducers and Rational Relations

Advanced Automata Theory 10 Transducers and Rational Relations Advanced Automata Theory 10 Transducers and Rational Relations Frank Stephan Department of Computer Science Department of Mathematics National University of Singapore fstephan@comp.nus.edu.sg Advanced

More information

Finite-State Transducers

Finite-State Transducers Finite-State Transducers - Seminar on Natural Language Processing - Michael Pradel July 6, 2007 Finite-state transducers play an important role in natural language processing. They provide a model for

More information

Reinhold Heckmann. FB 14 { Informatik. D-6600 Saarbrucken. Bundesrepublik Deutschland. September 10, Abstract

Reinhold Heckmann. FB 14 { Informatik. D-6600 Saarbrucken. Bundesrepublik Deutschland. September 10, Abstract Power Domain Constructions Reinhold Heckmann FB 14 { Informatik Universitat des Saarlandes D-6600 Saarbrucken Bundesrepublik Deutschland email: heckmann@cs.uni-sb.de September 10, 1998 Abstract The variety

More information

2 Z. Lonc and M. Truszczynski investigations, we use the framework of the xed-parameter complexity introduced by Downey and Fellows [Downey and Fellow

2 Z. Lonc and M. Truszczynski investigations, we use the framework of the xed-parameter complexity introduced by Downey and Fellows [Downey and Fellow Fixed-parameter complexity of semantics for logic programs ZBIGNIEW LONC Technical University of Warsaw and MIROS LAW TRUSZCZYNSKI University of Kentucky A decision problem is called parameterized if its

More information

The Accepting Power of Finite. Faculty of Mathematics, University of Bucharest. Str. Academiei 14, 70109, Bucharest, ROMANIA

The Accepting Power of Finite. Faculty of Mathematics, University of Bucharest. Str. Academiei 14, 70109, Bucharest, ROMANIA The Accepting Power of Finite Automata Over Groups Victor Mitrana Faculty of Mathematics, University of Bucharest Str. Academiei 14, 70109, Bucharest, ROMANIA Ralf STIEBE Faculty of Computer Science, University

More information

Chapter 0 Introduction. Fourth Academic Year/ Elective Course Electrical Engineering Department College of Engineering University of Salahaddin

Chapter 0 Introduction. Fourth Academic Year/ Elective Course Electrical Engineering Department College of Engineering University of Salahaddin Chapter 0 Introduction Fourth Academic Year/ Elective Course Electrical Engineering Department College of Engineering University of Salahaddin October 2014 Automata Theory 2 of 22 Automata theory deals

More information

A Polynomial Algorithm for Uniqueness of Normal Forms of Linear Shallow Term Rewrite Systems 1. Julian Zinn 2 and Rakesh Verma

A Polynomial Algorithm for Uniqueness of Normal Forms of Linear Shallow Term Rewrite Systems 1. Julian Zinn 2 and Rakesh Verma A Polynomial Algorithm for Uniqueness of Normal Forms of Linear Shallow Term Rewrite Systems 1 Julian Zinn 2 and Rakesh Verma Computer Science Department University of Houston Houston, TX, 77204, USA http://www.cs.uh.edu

More information

Nondeterministic Finite Automata

Nondeterministic Finite Automata Nondeterministic Finite Automata Not A DFA Does not have exactly one transition from every state on every symbol: Two transitions from q 0 on a No transition from q 1 (on either a or b) Though not a DFA,

More information

CS243, Logic and Computation Nondeterministic finite automata

CS243, Logic and Computation Nondeterministic finite automata CS243, Prof. Alvarez NONDETERMINISTIC FINITE AUTOMATA (NFA) Prof. Sergio A. Alvarez http://www.cs.bc.edu/ alvarez/ Maloney Hall, room 569 alvarez@cs.bc.edu Computer Science Department voice: (67) 552-4333

More information

Electronic Notes in Theoretical Computer Science 18 (1998) URL: 8 pages Towards characterizing bisim

Electronic Notes in Theoretical Computer Science 18 (1998) URL:   8 pages Towards characterizing bisim Electronic Notes in Theoretical Computer Science 18 (1998) URL: http://www.elsevier.nl/locate/entcs/volume18.html 8 pages Towards characterizing bisimilarity of value-passing processes with context-free

More information

Theory of Computation

Theory of Computation Theory of Computation COMP363/COMP6363 Prerequisites: COMP4 and COMP 6 (Foundations of Computing) Textbook: Introduction to Automata Theory, Languages and Computation John E. Hopcroft, Rajeev Motwani,

More information

Classes of Boolean Functions

Classes of Boolean Functions Classes of Boolean Functions Nader H. Bshouty Eyal Kushilevitz Abstract Here we give classes of Boolean functions that considered in COLT. Classes of Functions Here we introduce the basic classes of functions

More information

Automata on linear orderings

Automata on linear orderings Automata on linear orderings Véronique Bruyère Institut d Informatique Université de Mons-Hainaut Olivier Carton LIAFA Université Paris 7 September 25, 2006 Abstract We consider words indexed by linear

More information

Axioms of Kleene Algebra

Axioms of Kleene Algebra Introduction to Kleene Algebra Lecture 2 CS786 Spring 2004 January 28, 2004 Axioms of Kleene Algebra In this lecture we give the formal definition of a Kleene algebra and derive some basic consequences.

More information

One Quantier Will Do in Existential Monadic. Second-Order Logic over Pictures. Oliver Matz. Institut fur Informatik und Praktische Mathematik

One Quantier Will Do in Existential Monadic. Second-Order Logic over Pictures. Oliver Matz. Institut fur Informatik und Praktische Mathematik One Quantier Will Do in Existential Monadic Second-Order Logic over Pictures Oliver Matz Institut fur Informatik und Praktische Mathematik Christian-Albrechts-Universitat Kiel, 24098 Kiel, Germany e-mail:

More information

X-machines - a computational model framework.

X-machines - a computational model framework. Chapter 2. X-machines - a computational model framework. This chapter has three aims: To examine the main existing computational models and assess their computational power. To present the X-machines as

More information

2.6 Variations on Turing Machines

2.6 Variations on Turing Machines 2.6 Variations on Turing Machines Before we proceed further with our exposition of Turing Machines as language acceptors, we will consider variations on the basic definition of Slide 10 and discuss, somewhat

More information

Weak ω-automata. Shaked Flur

Weak ω-automata. Shaked Flur Weak ω-automata Shaked Flur Weak ω-automata Research Thesis Submitted in partial fulllment of the requirements for the degree of Master of Science in Computer Science Shaked Flur Submitted to the Senate

More information

STGs may contain redundant states, i.e. states whose. State minimization is the transformation of a given

STGs may contain redundant states, i.e. states whose. State minimization is the transformation of a given Completely Specied Machines STGs may contain redundant states, i.e. states whose function can be accomplished by other states. State minimization is the transformation of a given machine into an equivalent

More information

1 Introduction A general problem that arises in dierent areas of computer science is the following combination problem: given two structures or theori

1 Introduction A general problem that arises in dierent areas of computer science is the following combination problem: given two structures or theori Combining Unication- and Disunication Algorithms Tractable and Intractable Instances Klaus U. Schulz CIS, University of Munich Oettingenstr. 67 80538 Munchen, Germany e-mail: schulz@cis.uni-muenchen.de

More information

Unranked Tree Automata with Sibling Equalities and Disequalities

Unranked Tree Automata with Sibling Equalities and Disequalities Unranked Tree Automata with Sibling Equalities and Disequalities Wong Karianto Christof Löding Lehrstuhl für Informatik 7, RWTH Aachen, Germany 34th International Colloquium, ICALP 2007 Xu Gao (NFS) Unranked

More information

Backward and Forward Bisimulation Minimisation of Tree Automata

Backward and Forward Bisimulation Minimisation of Tree Automata Backward and Forward Bisimulation Minimisation of Tree Automata Johanna Högberg Department of Computing Science Umeå University, S 90187 Umeå, Sweden Andreas Maletti Faculty of Computer Science Technische

More information

A shrinking lemma for random forbidding context languages

A shrinking lemma for random forbidding context languages Theoretical Computer Science 237 (2000) 149 158 www.elsevier.com/locate/tcs A shrinking lemma for random forbidding context languages Andries van der Walt a, Sigrid Ewert b; a Department of Mathematics,

More information

Hierarchy among Automata on Linear Orderings

Hierarchy among Automata on Linear Orderings Hierarchy among Automata on Linear Orderings Véronique Bruyère Institut d Informatique Université de Mons-Hainaut Olivier Carton LIAFA Université Paris 7 Abstract In a preceding paper, automata and rational

More information

Recap DFA,NFA, DTM. Slides by Prof. Debasis Mitra, FIT.

Recap DFA,NFA, DTM. Slides by Prof. Debasis Mitra, FIT. Recap DFA,NFA, DTM Slides by Prof. Debasis Mitra, FIT. 1 Formal Language Finite set of alphabets Σ: e.g., {0, 1}, {a, b, c}, { {, } } Language L is a subset of strings on Σ, e.g., {00, 110, 01} a finite

More information

Fall 1999 Formal Language Theory Dr. R. Boyer. 1. There are other methods of nding a regular expression equivalent to a nite automaton in

Fall 1999 Formal Language Theory Dr. R. Boyer. 1. There are other methods of nding a regular expression equivalent to a nite automaton in Fall 1999 Formal Language Theory Dr. R. Boyer Week Four: Regular Languages; Pumping Lemma 1. There are other methods of nding a regular expression equivalent to a nite automaton in addition to the ones

More information

Non-elementary Lower Bound for Propositional Duration. Calculus. A. Rabinovich. Department of Computer Science. Tel Aviv University

Non-elementary Lower Bound for Propositional Duration. Calculus. A. Rabinovich. Department of Computer Science. Tel Aviv University Non-elementary Lower Bound for Propositional Duration Calculus A. Rabinovich Department of Computer Science Tel Aviv University Tel Aviv 69978, Israel 1 Introduction The Duration Calculus (DC) [5] is a

More information

Closure under the Regular Operations

Closure under the Regular Operations Closure under the Regular Operations Application of NFA Now we use the NFA to show that collection of regular languages is closed under regular operations union, concatenation, and star Earlier we have

More information

An Overview of Residuated Kleene Algebras and Lattices Peter Jipsen Chapman University, California. 2. Background: Semirings and Kleene algebras

An Overview of Residuated Kleene Algebras and Lattices Peter Jipsen Chapman University, California. 2. Background: Semirings and Kleene algebras An Overview of Residuated Kleene Algebras and Lattices Peter Jipsen Chapman University, California 1. Residuated Lattices with iteration 2. Background: Semirings and Kleene algebras 3. A Gentzen system

More information

3. Only sequences that were formed by using finitely many applications of rules 1 and 2, are propositional formulas.

3. Only sequences that were formed by using finitely many applications of rules 1 and 2, are propositional formulas. 1 Chapter 1 Propositional Logic Mathematical logic studies correct thinking, correct deductions of statements from other statements. Let us make it more precise. A fundamental property of a statement is

More information

Equivalence of Regular Expressions and FSMs

Equivalence of Regular Expressions and FSMs Equivalence of Regular Expressions and FSMs Greg Plaxton Theory in Programming Practice, Spring 2005 Department of Computer Science University of Texas at Austin Regular Language Recall that a language

More information

A GUIDE FOR MORTALS TO TAME CONGRUENCE THEORY

A GUIDE FOR MORTALS TO TAME CONGRUENCE THEORY A GUIDE FOR MORTALS TO TAME CONGRUENCE THEORY Tame congruence theory is not an easy subject and it takes a considerable amount of effort to understand it. When I started this project, I believed that this

More information

Universal Algebra for Logics

Universal Algebra for Logics Universal Algebra for Logics Joanna GRYGIEL University of Czestochowa Poland j.grygiel@ajd.czest.pl 2005 These notes form Lecture Notes of a short course which I will give at 1st School on Universal Logic

More information

1 CHAPTER 1 INTRODUCTION 1.1 Background One branch of the study of descriptive complexity aims at characterizing complexity classes according to the l

1 CHAPTER 1 INTRODUCTION 1.1 Background One branch of the study of descriptive complexity aims at characterizing complexity classes according to the l viii CONTENTS ABSTRACT IN ENGLISH ABSTRACT IN TAMIL LIST OF TABLES LIST OF FIGURES iii v ix x 1 INTRODUCTION 1 1.1 Background : : : : : : : : : : : : : : : : : : : : : : : : : : : : 1 1.2 Preliminaries

More information

The nite submodel property and ω-categorical expansions of pregeometries

The nite submodel property and ω-categorical expansions of pregeometries The nite submodel property and ω-categorical expansions of pregeometries Marko Djordjevi bstract We prove, by a probabilistic argument, that a class of ω-categorical structures, on which algebraic closure

More information

Vakgroep Informatica

Vakgroep Informatica Technical Report 98 09 August 1998 Rijksuniversiteit Rijksuniversiteit te Leiden te Leiden Vakgroep Informatica Macro Tree Transducers, Attribute Grammars, and MSO Definable Tree Translations Joost Engelfriet

More information

A.J. Kfoury y. December 20, Abstract. Various restrictions on the terms allowed for substitution give rise

A.J. Kfoury y. December 20, Abstract. Various restrictions on the terms allowed for substitution give rise A General Theory of Semi-Unication Said Jahama Boston University (jahama@cs.bu.edu) A.J. Kfoury y Boston University (kfoury@cs.bu.edu) December 20, 1993 Technical Report: bu-cs # 93-018 Abstract Various

More information

Computability and Complexity

Computability and Complexity Computability and Complexity Push-Down Automata CAS 705 Ryszard Janicki Department of Computing and Software McMaster University Hamilton, Ontario, Canada janicki@mcmaster.ca Ryszard Janicki Computability

More information

arxiv: v2 [cs.fl] 29 Nov 2013

arxiv: v2 [cs.fl] 29 Nov 2013 A Survey of Multi-Tape Automata Carlo A. Furia May 2012 arxiv:1205.0178v2 [cs.fl] 29 Nov 2013 Abstract This paper summarizes the fundamental expressiveness, closure, and decidability properties of various

More information

Rough Sets, Rough Relations and Rough Functions. Zdzislaw Pawlak. Warsaw University of Technology. ul. Nowowiejska 15/19, Warsaw, Poland.

Rough Sets, Rough Relations and Rough Functions. Zdzislaw Pawlak. Warsaw University of Technology. ul. Nowowiejska 15/19, Warsaw, Poland. Rough Sets, Rough Relations and Rough Functions Zdzislaw Pawlak Institute of Computer Science Warsaw University of Technology ul. Nowowiejska 15/19, 00 665 Warsaw, Poland and Institute of Theoretical and

More information

Lecture Notes On THEORY OF COMPUTATION MODULE -1 UNIT - 2

Lecture Notes On THEORY OF COMPUTATION MODULE -1 UNIT - 2 BIJU PATNAIK UNIVERSITY OF TECHNOLOGY, ODISHA Lecture Notes On THEORY OF COMPUTATION MODULE -1 UNIT - 2 Prepared by, Dr. Subhendu Kumar Rath, BPUT, Odisha. UNIT 2 Structure NON-DETERMINISTIC FINITE AUTOMATA

More information

The Complexity of Computing the Behaviour of Lattice Automata on Infinite Trees

The Complexity of Computing the Behaviour of Lattice Automata on Infinite Trees The Complexity of Computing the Behaviour of Lattice Automata on Infinite Trees Karsten Lehmann a, Rafael Peñaloza b a Optimisation Research Group, NICTA Artificial Intelligence Group, Australian National

More information

On Shuffle Ideals of General Algebras

On Shuffle Ideals of General Algebras Acta Cybernetica 21 (2013) 223 234. On Shuffle Ideals of General Algebras Ville Piirainen Abstract We extend a word language concept called shuffle ideal to general algebras. For this purpose, we introduce

More information

Pushdown timed automata:a binary reachability characterization and safety verication

Pushdown timed automata:a binary reachability characterization and safety verication Theoretical Computer Science 302 (2003) 93 121 www.elsevier.com/locate/tcs Pushdown timed automata:a binary reachability characterization and safety verication Zhe Dang School of Electrical Engineering

More information

COM364 Automata Theory Lecture Note 2 - Nondeterminism

COM364 Automata Theory Lecture Note 2 - Nondeterminism COM364 Automata Theory Lecture Note 2 - Nondeterminism Kurtuluş Küllü March 2018 The FA we saw until now were deterministic FA (DFA) in the sense that for each state and input symbol there was exactly

More information

{},{a},{a,c} {},{c} {c,d}

{},{a},{a,c} {},{c} {c,d} Modular verication of Argos Programs Agathe Merceron 1 and G. Michele Pinna 2 1 Basser Department of Computer Science, University of Sydney Madsen Building F09, NSW 2006, Australia agathe@staff.cs.su.oz.au

More information

Lecture 4. 1 Circuit Complexity. Notes on Complexity Theory: Fall 2005 Last updated: September, Jonathan Katz

Lecture 4. 1 Circuit Complexity. Notes on Complexity Theory: Fall 2005 Last updated: September, Jonathan Katz Notes on Complexity Theory: Fall 2005 Last updated: September, 2005 Jonathan Katz Lecture 4 1 Circuit Complexity Circuits are directed, acyclic graphs where nodes are called gates and edges are called

More information

Contents. 2.1 Vectors in R n. Linear Algebra (part 2) : Vector Spaces (by Evan Dummit, 2017, v. 2.50) 2 Vector Spaces

Contents. 2.1 Vectors in R n. Linear Algebra (part 2) : Vector Spaces (by Evan Dummit, 2017, v. 2.50) 2 Vector Spaces Linear Algebra (part 2) : Vector Spaces (by Evan Dummit, 2017, v 250) Contents 2 Vector Spaces 1 21 Vectors in R n 1 22 The Formal Denition of a Vector Space 4 23 Subspaces 6 24 Linear Combinations and

More information

GENERATING SETS AND DECOMPOSITIONS FOR IDEMPOTENT TREE LANGUAGES

GENERATING SETS AND DECOMPOSITIONS FOR IDEMPOTENT TREE LANGUAGES Atlantic Electronic http://aejm.ca Journal of Mathematics http://aejm.ca/rema Volume 6, Number 1, Summer 2014 pp. 26-37 GENERATING SETS AND DECOMPOSITIONS FOR IDEMPOTENT TREE ANGUAGES MARK THOM AND SHEY

More information

cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska

cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska LECTURE 6 CHAPTER 2 FINITE AUTOMATA 2. Nondeterministic Finite Automata NFA 3. Finite Automata and Regular Expressions 4. Languages

More information

An algebraic characterization of unary two-way transducers

An algebraic characterization of unary two-way transducers An algebraic characterization of unary two-way transducers (Extended Abstract) Christian Choffrut 1 and Bruno Guillon 1 LIAFA, CNRS and Université Paris 7 Denis Diderot, France. Abstract. Two-way transducers

More information

is a model, supported model or stable model, respectively, of P. The check can be implemented to run in linear time in the size of the program. Since

is a model, supported model or stable model, respectively, of P. The check can be implemented to run in linear time in the size of the program. Since Fixed-parameter complexity of semantics for logic programs Zbigniew Lonc? and Miros law Truszczynski?? Department of Computer Science, University of Kentucky Lexington KY 40506-0046, USA flonc, mirekg@cs.engr.uky.edu

More information

Unary Automatic Graphs: An Algorithmic Perspective 1

Unary Automatic Graphs: An Algorithmic Perspective 1 Unary Automatic Graphs: An Algorithmic Perspective 1 This paper studies infinite graphs produced from a natural unfolding operation applied to finite graphs. Graphs produced via such operations are of

More information

Uses of finite automata

Uses of finite automata Chapter 2 :Finite Automata 2.1 Finite Automata Automata are computational devices to solve language recognition problems. Language recognition problem is to determine whether a word belongs to a language.

More information

MATH 433 Applied Algebra Lecture 22: Semigroups. Rings.

MATH 433 Applied Algebra Lecture 22: Semigroups. Rings. MATH 433 Applied Algebra Lecture 22: Semigroups. Rings. Groups Definition. A group is a set G, together with a binary operation, that satisfies the following axioms: (G1: closure) for all elements g and

More information

P Finite Automata and Regular Languages over Countably Infinite Alphabets

P Finite Automata and Regular Languages over Countably Infinite Alphabets P Finite Automata and Regular Languages over Countably Infinite Alphabets Jürgen Dassow 1 and György Vaszil 2 1 Otto-von-Guericke-Universität Magdeburg Fakultät für Informatik PSF 4120, D-39016 Magdeburg,

More information

Design of abstract domains using first-order logic

Design of abstract domains using first-order logic Centrum voor Wiskunde en Informatica REPORTRAPPORT Design of abstract domains using first-order logic E. Marchiori Computer Science/Department of Interactive Systems CS-R9633 1996 Report CS-R9633 ISSN

More information

Extending temporal logic with!-automata Thesis for the M.Sc. Degree by Nir Piterman Under the Supervision of Prof. Amir Pnueli Department of Computer

Extending temporal logic with!-automata Thesis for the M.Sc. Degree by Nir Piterman Under the Supervision of Prof. Amir Pnueli Department of Computer Extending temporal logic with!-automata Thesis for the M.Sc. Degree by Nir Piterman Under the Supervision of Prof. Amir Pnueli Department of Computer Science The Weizmann Institute of Science Prof. Moshe

More information

A Uniformization Theorem for Nested Word to Word Transductions

A Uniformization Theorem for Nested Word to Word Transductions A Uniformization Theorem for Nested Word to Word Transductions Dmitry Chistikov and Rupak Majumdar Max Planck Institute for Software Systems (MPI-SWS) Kaiserslautern and Saarbrücken, Germany {dch,rupak}@mpi-sws.org

More information

Finite-Delay Strategies In Infinite Games

Finite-Delay Strategies In Infinite Games Finite-Delay Strategies In Infinite Games von Wenyun Quan Matrikelnummer: 25389 Diplomarbeit im Studiengang Informatik Betreuer: Prof. Dr. Dr.h.c. Wolfgang Thomas Lehrstuhl für Informatik 7 Logik und Theorie

More information

Lecture 23 : Nondeterministic Finite Automata DRAFT Connection between Regular Expressions and Finite Automata

Lecture 23 : Nondeterministic Finite Automata DRAFT Connection between Regular Expressions and Finite Automata CS/Math 24: Introduction to Discrete Mathematics 4/2/2 Lecture 23 : Nondeterministic Finite Automata Instructor: Dieter van Melkebeek Scribe: Dalibor Zelený DRAFT Last time we designed finite state automata

More information