Complexity of language equations with one-sided concatenation and all Boolean operations

Size: px
Start display at page:

Download "Complexity of language equations with one-sided concatenation and all Boolean operations"

Transcription

1 Complexity of language equations with one-sided concatenation and all Boolean operations Franz Baader 1 and Alexander Okhotin 2,3 1 Theoretical Computer Science, Technical University of Dresden, Germany, baader@tcs.inf.tu-dresden.de 2 Department of Mathematics, University of Turku, Finland 3 Research Group on Mathematical Linguistics, Rovira i Virgili University, Spain alexander.okhotin@utu.fi Abstract. Language equations are equations where both the constants occurring in the equations and the solutions are formal languages. They have first been introduced in formal language theory, but are now also considered in other areas of computer science. In particular, they can be seen as unification problems in the algebra of languages whose operations are the Boolean operations and concatenation. They are also closely related to monadic set constraints. In the present paper, we restrict the attention to language equations with one-sided concatenation, but in contrast to previous work on these equations, we allow not just union but all Boolean operations to be used when formulating them. In addition, we are not just interested in deciding solvability of such equations, but also in deciding other properties of the set of solutions, like its cardinality (finite, infinite, uncountable) and whether it contains least/greatest solutions. We show that all these decision problems are ExpTime-complete. 1 Introduction Unification in equational theories [5] can be seen as solving equations in the free algebra with countably many generators induced by the theory in question. In some cases, however, one also considers unification in arbitrary algebras, not just free ones (see, e.g., [8,16]). In the present paper, the algebra over which we want to solve equations consists of all languages (i.e., sets of words) over a fixed finite alphabet, and the unification problems are built using Boolean operations and (one-sided) concatenation. In unification theory, given a class of unification problems, one is either interested in computing complete sets of unifiers or in deciding solvability. For our language equations, we consider not just solvability (i.e., whether the set of solutions is empty or not), but also more general questions regarding the solution set: is it finite/countable or not; does it contain least/greatest solutions? Supported by the Academy of Finland under grant

2 60 Franz Baader and Alexander Okhotin In formal language theory, equations with formal languages as constant parameters and unknowns have been studied since the 1960s, when two basic concepts of the theory of computation, finite automata and context-free grammars, were respectively represented as systems of equations with union and one-sided concatenation [7] and with union and unrestricted concatenation [12]. This topic was further studied in the monographs on algebraic automata theory by Salomaa [23] and Conway [11]. For example, it is well-known that the equation X = AX B, where A, B are fixed formal languages, has A B as a solution. If the empty word does not belong to A, then this is the only solution. Otherwise, A B is the least solution (w.r.t. inclusion), and all solutions are of the form A C for C B. Depending on A, B and the available alphabet, the equation may thus have finitely many, countably infinitely many, or even uncountably many solutions. The above equation is an equation with one-sided concatenation since concatenation occurs only on one side of the variable. In contrast, the equation X = axb XX ε is not one-sided. Its least solution is the Dyck language of balanced parentheses generated by the context-free grammar S asb SS ε, whereas its greatest solution is {a, b}. Both examples are resolved equations in the sense that their left-hand sides consist of a single variable. If only monotonic operations (in the examples: union and concatenation) are used, then such resolved equations always have a least and greatest solution due to the Tarski-Knaster fixpoint theorem [26]. Once the resolved form of equations is no longer required or non-monotonic operations (like complement) are used, a given language equation need no longer have solutions, and thus the problem of deciding solvability of such an equation becomes non-trivial. The same is true for other decision problems, like asking for the existence of a least/greatest solution or determining the cardinality of the set of solutions. In the case of language equations with unrestricted concatenation, the solvability problem becomes undecidable since the intersection emptiness problem of context-free languages can easily be encoded [10]. A systematic study of the hardness of decision problems for language equations with unrestricted concatenation (i.e., the position of these problems in the arithmetic hierarchy) was carried out by Okhotin [19,20,21], who also characterized recursive and recursively enumerable sets by solutions of language equations. A surprising proof of the computational universality of very simple language equations of the form LX = XL, where L is a finite constant language, has recently been given by Kunc [14]. Though such equations are syntactically close to word equations (i.e., unification problems modulo associativity) [15], like the equation ax = Xa, there is no strong relationship between the two types of equations since the unknowns stand for different mathematical objects: a single word in the case of word equations versus a set of words in the case of language equations. In principle, the relationship between word equations and languages equations is similar to the relationship between syntactic unification problems and set constraints [1], where instead of terms one considers sets of terms, and also allows (certain) Boolean operations to occur in the equations.

3 Complexity of language equations with one-sided concatenation Language equations with one-sided concatenation usually do not have undecidable decision problems. In fact, many properties of the solution sets of such equations, such as existence and uniqueness of their solutions, can be expressed in Rabin s monadic second-order logic on infinite trees [22]. This implies the decidability of these problems, but only yields a non-elementary complexity upper-bound [25]. Language equations with one-sided concatenation can also be regarded as a particular case set constraints, which received significant attention in the literature [1,9,13] since they can, e.g., be used in program analysis. In fact, language equations with one-sided concatenation correspond to monadic set constraints, where all function symbols are unary. Thus, decidability results for set constraints also yield decidability results for the corresponding language equations. However, since set constraints are in general more complex than monadic set constraints, this does not necessarily yield optimal complexity bounds. Language equations with one-sided concatenation and union have been studied in the context of unification problems in description logics: Baader and Narendran [3] show that the existence of a finite solution (i.e., a solution where all unknowns are replaced by finite languages) is an ExpTime-complete problem; Baader and Küsters [2] show the same for the existence of an arbitrary (possibly infinite) solution. In the latter work, it is also shown that a solvable equation always has a greatest solution, and that this solution is regular (i.e., consists of regular languages). The present paper extends the results of [2] in two directions. 4 On the one hand, we consider language equations with one-sided concatenation and all Boolean operations, and on the other hand we consider additional decision problems, like determining the existence of least/greatest solutions and the cardinality of the solution set. All these problems turn out to be ExpTime-complete for language equations with one-sided concatenation and any set of available Boolean operations between { } and {,, }. After a preliminary section in which we give the relevant definitions, we first concentrate in Section 3 on showing the ExpTime upper-bounds for the mentioned decision problems in the case of the most general type of one-sided equations where all Boolean operations are available. This is done by translating language equations into a special kind of looping tree automata, showing a 1 1-relationship between the solutions of the equation and the runs of the corresponding automaton, and then characterizing the relevant properties of solution sets by decidable properties of the automaton. Thus, we have a uniform approach for solving all decision problems by one automaton construction. The decision procedures for the respective problems only differ in what property of the constructed automaton must be decided. In Section 4, we then show the ExpTime lower-bounds for the mentioned decision problems in the case of one-sided language equations with union: the reduction is from the intersection emptiness problem for deterministic looping tree automata, whose ExpTime-completeness easily follows from the ExpTimecompleteness of the same problem for deterministic top-down tree automata on 4 Detailed proofs of our new results are given in [4].

4 62 Franz Baader and Alexander Okhotin finite trees [24,2]. Again, the hardness proofs are uniform: one reduction shows hardness of all decision problems under consideration. 2 Preliminaries In this section, we first introduce the language equations investigated in this paper, and show that they can be transformed into a simpler normal form. Then, we introduce some notions regarding automata working on infinite trees. 2.1 Language equations with one-sided concatenation For a fixed finite alphabet Σ, we consider systems of equations of the following general form: ψ 1 (X 1,..., X n ) = ξ 1 (X 1,..., X n ). (1) ψ m (X 1,..., X n ) = ξ m (X 1,..., X n ) where the form of the expressions ψ i and ξ i is defined inductively: any variable X i is an expression; any regular language L Σ is an expression; a concatenation ϕl of an expression ϕ and a regular language L Σ is an expression; if ϕ, ϕ are expressions, then so are (ϕ ϕ ), (ϕ ϕ ) and ( ϕ). We assume that the regular languages in expressions are given by nondeterministic finite automata. An effective description of a system (1) would contain transition tables and accepting states of these automata, and thus the number of their states and transitions adds to the size of the description. If the expressions in such a system contain neither intersection nor complement, then we call it a system of language equations with one-sided concatenation and union. A solution of a general system (1) is a vector of languages (L 1,..., L n ) such that a substitution of L j for X j for all j turns each instantiated equation into an equality. Solutions can be compared w.r.t. inclusion of their components: we define (L 1,..., L n ) (L 1,..., L n) iff L i L i holds for i = 1,..., n. In addition to the problem of deciding whether a system has a solution or not, we consider additional decision problems that look more closely at properties of the set of solutions: its cardinality (is there a unique solution, are there finitely or infinitely many solutions, are there countably or uncountably many solutions) and whether it contains least/greatest elements w.r.t.. In order to design algorithms for solving these decision problems, it is more convenient to consider language equations in the following normal form: a single equation ϕ(z 1,..., Z k ) =, (2)

5 Complexity of language equations with one-sided concatenation in the unknowns Z 1,..., Z k, where the constant regular languages occurring in ϕ are singleton languages {ε} and {a} for a Σ, which we simply write as ε and a. The next lemma implies that w.r.t. all decision problems concerned with the cardinality of the set of solutions (including the existence of a solution), the restriction to equations of form (2) is without loss of generality. Lemma 1. For every system (1) in the unknowns X 1,..., X n we can construct in polynomial time an equation (2) in the unknowns X 1,..., X n, Y 1,..., Y l for some l 0 such that the set of solutions of (2) is {( L1,..., L n, η 1 (L 1,..., L n ),..., η l (L 1,..., L n ) ) (L1,..., L n ) solves (1) } for some functions η 1,... η l : (2 Σ ) n 2 Σ. The size of the resulting equation is linear in the size of the original system. Proof sketch: Regular languages in (1) can be expressed by employing resolved equations for additional variables Y 1,..., Y l. For example, the expression ( X)a b can be replaced by Y 2 if we add the resolved equations Y 2 = Y 1 b and Y 1 = Y 1 a X. Since resolved equations of this form have a unique solution, any value for X yields unique values for Y 1, Y 2. The total size of equations added is proportional to the number of transitions in an NFA, and hence the growth is linear. Every equation ψ i = ξ i has the same solutions as (ψ i ξ i ) (ξ ψ i ) =, and the system ϕ 1 =, ϕ 2 = has the same solutions as ϕ 1 ϕ 2 =. Regarding the existence of least/greatest solutions, we must be more careful. For example, when representing ( X)a b by Y 2 and the equations Y 2 = Y 1 b, Y 1 = Y 1 a X, a larger value for X yields smaller values for Y 1, Y 2. Thus, even if the original system has a least/greatest solution, the new one need not have one. The solution to this problem will be that when defining the relation on solutions, we do not necessarily compare solutions w.r.t. all components, but only w.r.t. the components corresponding to a set of focus variables. 5 In this case, the constructed system (2) with unknowns X 1,..., X n, Y 1,..., Y l has a least/greatest solution w.r.t. the focus variables X 1,..., X n iff the original system (1) has a least/greatest solution. 2.2 Automata on infinite trees Given a ranked alphabet Γ where every symbol has a rank > 0, infinite trees over Γ are defined in the usual way, i.e., every node in the tree is labeled with an element f Γ and has rank of f many successor nodes. A looping tree automaton A = (Q, Γ, Q 0, ) consists of a finite set of states Q, a ranked alphabet Γ, a set of initial states Q 0 Q, and a transition function : Q Γ 2 Q that maps each pair (q, f) to a subset of Q k where k is the rank of f. This automaton is deterministic if Q 0 = 1 and (q, f) 1 for all pairs (q, f). A run r of A on a 5 Note that is then no longer a partial order but only a preorder.

6 64 Franz Baader and Alexander Okhotin tree t labels the nodes of t with elements of Q such that the root is labeled with q 0 Q 0, and the labels respect the transition function, i.e., if node v has label t(v) in t and label r(v) in r, then the tuple (q 1,..., q k ) labeling the successors of v in r must belong to (r(v), t(v)). The tree t is accepted by A if there is a run of A on t. The language accepted by A is defined as L(A) := {t t is an infinite tree over Γ that is accepted by A}. It is well-known that the emptiness problem for looping tree automata, i.e., the question whether the accepted language is non-empty, is decidable in linear time (see, e.g., [6]). However, the intersection emptiness problem, i.e., given looping tree automata A 1,..., A k, is L(A 1 )... L(A k ) empty or not, is ExpTimecomplete even for deterministic automata [24,2]. This result will be used to show the complexity lower-bounds in Section 4. When showing the complexity upper-bounds in Section 3, we actually employ a very restricted form of looping automata. First, we restrict the attention to a ranked alphabet Γ containing a single symbol γ of some fixed rank k > 0. Thus, there is only one infinite tree, and the labeling of its nodes by γ can be ignored. Given an arbitrary finite alphabet Σ := {a 1,..., a k } of cardinality k, every node in this tree can uniquely be represented by a word w Σ, where a i corresponds to the ith successor. Second, we consider not arbitrary looping tree automata working on this tree, but tree automata induced by word automata. A nondeterministic finite automaton (NFA) A = (Q, Σ, Q 0, δ) without accepting states working on words over Σ induces a looping tree automaton A = (Q, Γ, Q 0, ) working on the infinite tree over Γ as follows: (q, γ) := {(q 1,..., q k ) q i δ(q, a i ) for i = 1,..., k}. We call such an automaton looping tree automaton with independent transitions (ILTA) since in every component the successor states can be chosen independently from what is chosen in another component. In the following, we do not distinguish between the NFA and the ILTA it represents. For example, we will talk about runs of the NFA, but mean the runs of the corresponding ILTA. The runs of the NFA A = (Q, Σ, Q 0, δ) can thus be represented as functions r : Σ Q such that r(ε) Q 0 and r(wa) δ(r(w), a) for all w Σ and a Σ. In addition, when defining an ILTA, we will usually introduce just the corresponding NFA, and call it ILTA. In the next section, we are not interested in the tree language accepted by an ILTA (which is either empty or a singleton set); instead, we are interested in the runs themselves. Following the definition of looping tree automata, an ILTA is called deterministic if δ(q, a) 1 for all q Q and a Σ, that is, if the underlying NFA is a partial DFA. Note that a deterministic ILTA has at most one run; furthermore, having a completely defined function δ is a sufficient condition of having exactly one run. We call an NFA A = (Q, Σ, Q 0, δ) and the ILTA it represents trim if every state is reachable from an initial state, and δ(q, a) for all q Q and a Σ. It is easy to see that every NFA can be transformed in polynomial time into

7 Complexity of language equations with one-sided concatenation a trim NFA having the same runs. In such a trim NFA, every finite or infinite path can be completed to a run containing it. In addition, it has a run iff Q is non-empty. 3 The complexity upper-bounds In this section we show that all the decision problems for language equations with one-sided concatenation introduced above can be solved within deterministic exponential time. To this purpose, we show how to translate a given language equation in normal form ϕ = into an ILTA such that there is a 1 1-correspondence between the solutions of the equation and the runs of the corresponding ILTA. 3.1 Translating language equations into ILTA Let Σ = {a 1,..., a m }, and ϕ(x 1,..., X n ) be an expression. In the following, we assume that ϕ is fixed, and denote the set of its subexpressions by Φ. We assume that ε, X 1,..., X n Φ (otherwise, we simply add them). Let Φ 0 = {ψa a Σ, ψa Φ} {ε} and Φ 1 = Φ 0 {X 1,..., X n }. We define two elementary operations on subsets of Φ. The first of them, select, maps a set q 0 Φ 0 to a collection of subsets of Φ 1 : select(q 0 ) = {q Φ 1 q \ {X 1,..., X n } = q 0 } Note that select(q 0 ) = 2 n, and the elements of select(q 0 ) correspond to different choices of a set of variables. The other operation, closure, completes a subset q Φ 1 by computing all applicable Boolean operations over these subexpressions. In order to define the set closure(q) Φ, we specify for every expression ξ Φ whether ξ closure(q) or not by induction on the structure of ξ: Base case: For each ξ {ε, X 1,..., X n }, let ξ closure(q) iff ξ q. Induction step: Consider ξ Φ \ {ε, X 1,..., X n } and assume that the membership of all proper subexpressions of ξ in closure(q) has already been defined. There are four cases depending on the top operation of ξ: If ξ is of the form ψc, then ξ closure(q) iff ξ q. If ξ = ψ η, then ξ closure(q) iff at least one of ψ, η is in closure(q). If ξ = ψ η, then ξ closure(q) iff both ψ and η are in closure(q). If ξ = ψ, then ξ closure(q) iff ψ is not in closure(q). Definition 1. The ILTA A = (Σ, Q, Q 0, δ) induced by the expression ϕ is defined as Q := 2 Φ, Q 0 := {closure(q) q select({ε})}, and δ(q, a) := {closure(q ) q select({ψa Φ ψ q})}. Note that Q 0 = 2 n and δ(q, a) = 2 n for all q Q and a Σ. Intuitively, the non-determinism is used to guess the values of the variables. There exists a one-to-one correspondence between the runs of A and n-tuples of languages over Σ. First, we show how to associate a run with every vector of

8 66 Franz Baader and Alexander Okhotin languages. The run r L : Σ Q corresponding to L = (L 1,..., L n ) is defined inductively as: r L (ε) = closure({ε} {X i ε L i }) r L (wa) = closure({ψa Φ ψ r L (w)} {X i wa L i }) (3a) (3b) It is easy to see that r L is indeed a run of A. Conversely, a given run r : Σ Q induces the vector of languages L r := (L r 1,..., L r n), where L r i := {w X i r(w)}. Lemma 2. The mapping of runs to vectors of languages introduced above is a bijection, and the mapping of vectors of languages to runs is its inverse. For each run r L, the set of subexpressions in a state r L (w) (for each string w Σ ) contains exactly those subexpressions that produce this string when replacing X 1,..., X n by L 1,..., L n : Lemma 3. Let L = (L 1,..., L n ) be a vector of languages and r L be the corresponding run. Then, for every w Σ and ξ Φ, we have w ξ(l) iff ξ r L (w). Since the vector L = (L 1,..., L n ) is a solution of ϕ(x 1,..., X n ) = iff w ϕ(l) for all w Σ, this lemma implies the following characterization of the runs corresponding to solutions: Proposition 1. The vector L = (L 1,..., L n ) is a solution of the equation ϕ(x 1,..., X n ) = iff ϕ / r L (w) for every w Σ. Consequently, if we remove from A all states containing ϕ, then we obtain an automaton whose runs are in a 1 1-correspondence with the solutions of ϕ(x 1,..., X n ) =. In addition, we can make this automaton trim without losing any runs/solutions. Let us call the resulting ILTA A ϕ. Obviously, the size of A ϕ is exponential in the size of ϕ, and this automaton can be constructed in exponential time. Proposition 2. For every language equation ϕ(x 1,..., X n ) = of the form (2) one can construct in exponential time a trim ILTA A ϕ whose states are subsets of the set of strict subexpressions of ϕ such that the mapping r L r = (L r 1,..., L r n) is a bijection between the runs of A ϕ and the solutions of ϕ(x 1,..., X n ) =. 3.2 Counting the number of solutions As an immediate consequence of Proposition 2, (unique) solvability of a language equation can be characterized as follows: Proposition 3. A language equation ϕ = with one-sided concatenation has at least one solution iff the corresponding ILTA A ϕ is non-empty.

9 Complexity of language equations with one-sided concatenation exactly one solution iff the corresponding ILTA A ϕ is non-empty and deterministic. Before we can characterize finitely many solutions, we must introduce some notation. Definition 2. Let A = (Σ, Q, Q 0, δ) be an ILTA. A state q Q is cyclic if q δ(q, w) for some w Σ +, and it is branching if δ(q, a) > 1 for some a Σ. Lemma 4. A trim ILTA A = (Σ, Q, Q 0, δ) has finitely many runs iff no branching state is reachable from any cyclic state. The condition in this lemma can obviously be tested in time polynomial in the size of the ILTA since it is basically a reachability problem. The conditions in the previous proposition can trivially be tested in time polynomial in the size of A ϕ. Since the size of A ϕ is exponential in the size of ϕ, we thus obtain the following complexity upper-bounds: Theorem 1. The problems of testing whether a language equation with onesided concatenation has a solution, a unique solution, or finitely many solutions are decidable in deterministic exponential time. Note that an ExpTime decision procedure for the solvability problem was already sketched in [1]. The other two results are new. Regarding the cardinality of the solution set, it remains to show how we can decide whether an equation has countably or uncountably many solutions. For this purpose, we adapt Niwiński s condition for countability of the language accepted by a Rabin tree automaton [17] to our situation of counting runs of ILTAs. 6 If A is an ILTA and q one of its states, then a q-run is defined like a run, with the only exception that instead of requiring that the root is labeled with an initial state we require that it is labeled with q. Two q-runs r 1, r 2 are called essentially different if there are words v 1, v 2, w such that r 1 (v 1 ) = q = r 2 (v 2 ) and v 1, v 2 are not the empty word, r 1 (w) r 2 (w) and w has neither v 1 nor v 2 as prefix. Proposition 4 (Niwiński). An ILTA has uncountably many runs iff it has a state q such that there are two essentially different q-runs. In contrast to the previous conditions, it is not immediately clear how this condition can be decided in time polynomial in the size of the ILTA. In [4] we show this by reducing the problem to the emptiness problem for Büchi tree automata. To compare, Niwiński proves for his condition for Rabin automata only an elementary upper bound. Theorem 2. The problem of testing whether a language equation with one-sided concatenation has countably many solutions is decidable in exponential time. 6 Actually, we never use that the automaton has independent transitions, and thus the results stated below also hold for arbitrary looping tree automata.

10 68 Franz Baader and Alexander Okhotin 3.3 Least and greatest solutions As pointed out before, we must compare solution vectors not on all components, but only on those components corresponding to a set of focus variables. Let ϕ(x 1,..., X n, Y 1,..., Y l ) = be a language equation with one-sided concatenation, and X 1,..., X n be the set of focus variables. Given vectors of languages L = (L 1,..., L n, L n+1,..., L n+l ), L = (L 1,..., L n, L n+1,..., L n+l ) we define L L iff L i L i for all i = 1,..., n. Let A ϕ = (Σ, Q, Q 0, δ) be the ILTA corresponding to the above language equation with focus variables X 1,..., X n. We define a preorder on its set of states Q as follows: q q iff q {X 1,..., X n } q {X 1,..., X n }. This preorder on states defines the following preorder on runs of A: for any r, r : Σ Q we say that r r if r(w) r (w) for all w Σ. As an easy consequence of the definition of the mapping L r L we obtain that it is a preorder isomorphism: Lemma 5. Let L, L be vectors of languages. Then L L iff r L r L. Consequently, to decide whether the equation ϕ = has a least/greatest solution w.r.t., it is enough to decide whether A ϕ has a least/greatest run w.r.t.. To show that this is decidable in polynomial time, we introduce another preorder on Q as follows: q q iff there exists a run r with root label q such that, for every run r with root label q, we have r r. Lemma 6. For every trim ILTA A = (Σ, Q, Q 0, δ) and for every polynomial time decidable preorder on Q, the corresponding preorder on Q can be constructed in time polynomial in Q. In addition, A has a least run with respect to the preorder on Q iff Q 0 has a least element with respect to. Since the size of A ϕ is exponential in the size of ϕ, we thus obtain the following complexity upper bound for deciding the existence of a least solution. (Greatest solutions can be treated analogously.) Theorem 3. The problem of testing whether a language equation with one-sided concatenation has a least (greatest) solution is decidable in ExpTime. 4 The complexity lower-bounds We show that the decision problems for language equations introduced in Section 2 are ExpTime-hard already for language equations with one-sided concatenation and union. For solvability, this was already shown in [2]. Since it was also shown there that such an equation has a solution iff it has a greatest solution, ExpTime-hardness of the existence of a greatest solution follows from this result as well. In the following we will concentrate on the remaining decision problems. Similarly to [2], we show ExpTime-hardness by a reduction from the intersection emptiness problem for deterministic looping tree automata. First, we show how trees can be represented as languages.

11 Complexity of language equations with one-sided concatenation Representing infinite trees by languages Given a ranked alphabet Γ, we use the alphabet Σ Γ := {f [i] f Γ, 1 i rank f} as the alphabet underlying our language equations. For every infinite tree t over Γ, we define a representation of t as a string language over Σ Γ : S(t) = {f [i1] 1... f [il] l l 0, t has a path with label f 1,..., f l, f l+1, in which f 1 labels the root of t, and each f j+1 labels the i j -th successor of the node with label f j } (4) The strings in S(t) unambiguously encode finite prefixes of paths in t. Obviously, for every infinite tree f(t 1,..., t k ), the following holds: S(f(t 1,..., t k )) = {ε} k {f [i] u u S(t i )} The following lemma characterizes the languages of the form S(t): i=1 Lemma 7. A language L ΣΓ iff is of the form L = S(t) for some infinite tree t 1. ε L; 2. for every w L there exists a unique symbol f Γ, such that wf [1] L; 3. if wf [i] L, then wf [j] L for every j (1 j rank f); 4. for every w Σ Γ and f [i] Σ Γ, wf [i] L implies w L. The mapping S is extended in the obvious way to sets of trees: S(T ) := t T S(t). We also consider the inverse operation S 1 (L) := {t S(t) L}. Lemma 8. For every set of trees T, T S 1 (S(T )) and S(S 1 (S(T ))) = S(T ). 4.2 Representing looping tree automata by language equations Let A = (Q, Γ, {q 0 }, ) be a deterministic looping tree automaton over Γ, where is represented as a partial function from Q Γ to Q. We introduce another partial function q : ΣΓ Q that simulates the operation of A on a finite prefix of a single path encoded as in (4). Define q(w) inductively on the length of w: q(ε) = q 0, while q(uf [i] ) is defined as the i-th component of (q(u), f) if this transition is defined, and undefined otherwise. Basically, if q(u) is defined, then it gives the unique label of the node corresponding to u in a run of A on a tree containing the path encoded by u. Now define a system of language equations (5) over the alphabet Σ Γ Q, which simulates the computation of the automaton A. The set of variables of this system is {X q,f (q, f) is defined} {X 0 }, and the system consists of the

12 70 Franz Baader and Alexander Okhotin two equations (q, f) is defined X q,f {q} = {q 0 } X 0 = (q,f)=(q 1,...,q k) (q, f) is defined X q,f X q,f {f [1] q 1,..., f [k] q k } (5a) (5b) The following lemma establishes some basic properties of solutions of this system. Lemma 9. For every solution (..., L q,f,..., L 0 ) of (5), 1. w L q,f iff q(w) = q and wf [i] L 0 for all i (1 i rank f). 2. If w L q,f for some q Q, then there exists an infinite tree t such that {wf [1],..., wf [rank f] } S(t) L 0. Based on this lemma and the properties of the mapping S mentioned above, the following characterization of solutions of (5) is shown in [4]. Proposition 5. A vector of languages (..., L q,f,..., L 0 ) is a solution of (5) iff S 1 (L 0 ) L(A), L q,f = {w q(w) = q, wf [i] L 0 for all i} ( (q, f) is defined), (6) and there exists a set of trees T such that L 0 = S(T ). This shows that the language L 0 substituted for X 0 determines the whole solution. 4.3 Complexity of the decision problems The next theorem summarizes the main results of this paper. Theorem 4. The problems of testing, for a given system of language equations with one-sided concatenation and any set of Boolean operations containing union, whether 1. it has a solution, 2. it has a unique solution, 3. it has finitely many solutions, 4. it has countably many solutions, 5. it has a least (greatest) solution with respect to componentwise inclusion are all ExpTime-complete.

13 Complexity of language equations with one-sided concatenation Given the results shown in Section 3 and in [1,2], it is enough to prove that testing whether a system of language equations with one-sided concatenation and union has a unique solution, finitely many solutions, countably many solutions, and a least solution, respectively, are ExpTime-hard problems. All four cases are proved by a single reduction from the ExpTime-complete intersection emptiness problem for deterministic looping tree automata [24,2]. Let A 1,..., A n be deterministic looping tree automata over a common ranked alphabet Γ, and assume without loss of generality that their sets of states Q 1,..., Q n are pairwise disjoint and that the initial state q (i) 0 of every A i is not reachable, i.e., it never occurs on the right-hand side of a transition. We augment Γ with a new unary symbol f triv, and transform each automaton A i into an automaton A i over the alphabet Γ = Γ {f triv } by adding the extra transition (q (i) 0, f triv) q (i) 0. The set of trees accepted by A i equals {ftriv l (t) l 0, t L(A i)} {t triv }, where t triv denotes an infinite branch with all vertices labeled by f triv. Consequently, the intersection n i=1 L(A i ) is equal to {ftriv l (t) l 0, t n i=1 L(A i)} {t triv }. For each automaton A i, construct two language equations of the form (5), and consider the resulting system of 2n equations, which share a common variable X 0. It is easy to show that the vector of languages L triv := (..., L (i) q,f,..., L 0) defined by L 0 := S(t triv ) and L (i) q,f determined by L 0 and A i according to (6) is always a solution of the system. Whether the system has any other solutions depends on whether n i=1 L(A i) is empty or not. If n i=1 L(A i) =, then n i=1 L(A i ) = {t triv}. We can prove that the system of language equations then has the unique solution L triv. If n i=1 L(A i), then there exists a tree t 0 n i=1 L(A i), and ftriv l (t 0) n i=1 L(A i ) for all l 0. Let us construct uncountably many solutions of the system. For every nonempty set of integers N N, define the set of trees T N = {f l triv(t 0 ) l N}. The vector of languages (..., L (i) q,f,n,..., L 0,N ) determined by L 0,N := S(T N ) according to (6) can be shown to be a solution of the system. Since the constructed system of language equations has either exactly one or uncountably many solutions, we can conclude that it has a unique solution (finitely many solutions, countably many solutions) iff the intersection of the languages recognized by the n given deterministic looping tree automata is empty. Similarly, we can show that there is a least solution iff the given automata have an empty intersection. In fact, if the intersection is nonempty, then we can construct a pair of incomparable minimal solutions as L 0 := S(t triv ) and L 0 := S(T {0} ) = S(t 0 ), where t 0 and T {0} are defined as in the previous case. This completes the proof of Theorem 4.

14 72 Franz Baader and Alexander Okhotin 5 Conclusion We have shown that several interesting decision problems for language equations with one-sided concatenation are ExpTime-complete. The decision procedures based on the construction of an ILTA have been implemented. This implementation does not just answer yes or no; in case there is a (least, greatest) solution, its DFA is constructed [4]. Acknowledgment. We thank Thomas Wilke for alerting us to the work of Niwiński, and Moshe Vardi for suggesting the name looping tree automata with independent transitions. References 1. A. Aiken, D. Kozen, M. Y. Vardi, E. L. Wimmers, The complexity of set constraints, Computer Science Logic (CSL 1993, Swansea, UK, September 13 17, 1993), LNCS 832, F. Baader, R. Küsters, Unification in a description logic with transitive closure of roles, Logic for Programming, Artificial Intelligence, and Reasoning (LPAR 2001, Havana, Cuba, December 3 7, 2001), LNCS 2250, F. Baader, P. Narendran, Unification of concept terms in description logic, Journal of Symbolic Computation, 31 (2001), F. Baader, A. Okhotin, On Language Equations with One- Sided Concatenation, LTCS-Report 06-01, Institute for Theoretical Computer Science, Dresden University of Technology, See 5. F. Baader and W. Snyder. Unification theory. In Handbook of Automated Reasoning, volume I. Elsevier, F. Baader, S. Tobies, The inverse method implements the automata approach for modal satisfiability, In Proc. IJCAR 01, Springer LNCS 2083, V. G. Bondarchuk, Sistemy uravnenii v algebre sobytii (Systems of equations in the event algebra), in Russian, Zhurnal vychislitel noi matematiki i matematicheskoi fiziki (Journal of Computational Mathematics and Mathematical Physics), 3:6 (1963), W. Büttner. Unification in finite algebras is unitary(?). In Proc. CADE-9, Springer LNCS 310, W. Charatonik, L. Pacholski, Set constraints with projections are in NEXP- TIME, In Proc. FOCS 94, IEEE Press, W. Charatonik, Set constraints in some equational theories, Information and Computation, 142 (1998), J. H. Conway, Regular Algebra and Finite Machines, Chapman and Hall, S. Ginsburg, H. G. Rice, Two families of languages related to ALGOL, Journal of the ACM, 9 (1962), R. Gilleron, S. Tison, M. Tommasi, Set constraints and automata, Information and Computation, 149:1 (1999), M. Kunc, The power of commuting with finite sets of words, In Proc. STACS 05, Springer LNCS 3404, G. S. Makanin, The problem of solvability of equations in a free semigroup. Math. Sbornik 103: English translation in Math. USSR Sbornik 32, 1977.

15 Complexity of language equations with one-sided concatenation T. Nipkow. Unification in primal algebras, their powers and their varieties. J. of the ACM, 37(1): , D. Niwiński, On the cardinality of sets of infinite trees recognizable by finite automata, Mathematical Foundations of Computer Science (MFCS 1991, Kazimierz Dolny, Poland, September 9 13, 1991), LNCS 520, 1991, A. Okhotin, Conjunctive grammars and systems of language equations, Programming and Computer Software, 28:5 (2002), A. Okhotin, Decision problems for language equations with Boolean operations, Automata, Languages and Programming (Proceedings of ICALP 2003, Eindhoven, The Netherlands, June 30 July 4, 2003), LNCS 2719, A. Okhotin, Unresolved systems of language equations: expressive power and decision problems, Theoretical Computer Science, 349:3 (2005), A. Okhotin, Strict language inequalities and their decision problems, Mathematical Foundations of Computer Science (MFCS 2005, Gdansk, Poland, August 29 September 2, 2005), LNCS 3618, M. O. Rabin, Decidability of second-order theories and automata on infinite trees, Transactions of the American Mathematical Society, 141 (1969), A. Salomaa, Theory of Automata, Pergamon Press, Oxford, H. Seidl, Haskell overloading is DEXPTIME-complete, Information Processing Letters, 52(2):57 60, L. R. Stockmeyer, The complexity of decision problems in automata theory and logic, Ph.D. thesis, Dept. of Electrical Engineering, MIT, A. Tarski, A Lattice-Theoretical Fixpoint Theorem and Its Applications, Pacific Journal of Mathematics, 5: , 1955.

On language equations with one-sided concatenation

On language equations with one-sided concatenation Fundamenta Informaticae 126 (2013) 1 34 1 IOS Press On language equations with one-sided concatenation Franz Baader Alexander Okhotin Abstract. Language equations are equations where both the constants

More information

Symposium on Theoretical Aspects of Computer Science 2008 (Bordeaux), pp

Symposium on Theoretical Aspects of Computer Science 2008 (Bordeaux), pp Symposium on Theoretical Aspects of Computer Science 2008 (Bordeaux), pp. 373-384 www.stacs-conf.org COMPLEXITY OF SOLUTIONS OF EQUATIONS OVER SETS OF NATURAL NUMBERS ARTUR JEŻ 1 AND ALEXANDER OKHOTIN

More information

Unresolved systems of language equations: Expressive power and decision problems

Unresolved systems of language equations: Expressive power and decision problems Theoretical Computer Science 349 (2005) 283 308 www.elsevier.com/locate/tcs Unresolved systems of language equations: Expressive power and decision problems Alexander Okhotin Department of Mathematics,

More information

CPSC 421: Tutorial #1

CPSC 421: Tutorial #1 CPSC 421: Tutorial #1 October 14, 2016 Set Theory. 1. Let A be an arbitrary set, and let B = {x A : x / x}. That is, B contains all sets in A that do not contain themselves: For all y, ( ) y B if and only

More information

Logic and Automata I. Wolfgang Thomas. EATCS School, Telc, July 2014

Logic and Automata I. Wolfgang Thomas. EATCS School, Telc, July 2014 Logic and Automata I EATCS School, Telc, July 2014 The Plan We present automata theory as a tool to make logic effective. Four parts: 1. Some history 2. Automata on infinite words First step: MSO-logic

More information

Tree Automata and Rewriting

Tree Automata and Rewriting and Rewriting Ralf Treinen Université Paris Diderot UFR Informatique Laboratoire Preuves, Programmes et Systèmes treinen@pps.jussieu.fr July 23, 2010 What are? Definition Tree Automaton A tree automaton

More information

Büchi Automata and Their Determinization

Büchi Automata and Their Determinization Büchi Automata and Their Determinization Edinburgh, October 215 Plan of the Day 1. Büchi automata and their determinization 2. Infinite games 3. Rabin s Tree Theorem 4. Decidability of monadic theories

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

T (s, xa) = T (T (s, x), a). The language recognized by M, denoted L(M), is the set of strings accepted by M. That is,

T (s, xa) = T (T (s, x), a). The language recognized by M, denoted L(M), is the set of strings accepted by M. That is, Recall A deterministic finite automaton is a five-tuple where S is a finite set of states, M = (S, Σ, T, s 0, F ) Σ is an alphabet the input alphabet, T : S Σ S is the transition function, s 0 S is the

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

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

Foundations of Informatics: a Bridging Course

Foundations of Informatics: a Bridging Course Foundations of Informatics: a Bridging Course Week 3: Formal Languages and Semantics Thomas Noll Lehrstuhl für Informatik 2 RWTH Aachen University noll@cs.rwth-aachen.de http://www.b-it-center.de/wob/en/view/class211_id948.html

More information

A Goal-Oriented Algorithm for Unification in EL w.r.t. Cycle-Restricted TBoxes

A Goal-Oriented Algorithm for Unification in EL w.r.t. Cycle-Restricted TBoxes A Goal-Oriented Algorithm for Unification in EL w.r.t. Cycle-Restricted TBoxes Franz Baader, Stefan Borgwardt, and Barbara Morawska {baader,stefborg,morawska}@tcs.inf.tu-dresden.de Theoretical Computer

More information

FORMAL LANGUAGES, AUTOMATA AND COMPUTATION

FORMAL LANGUAGES, AUTOMATA AND COMPUTATION FORMAL LANGUAGES, AUTOMATA AND COMPUTATION DECIDABILITY ( LECTURE 15) SLIDES FOR 15-453 SPRING 2011 1 / 34 TURING MACHINES-SYNOPSIS The most general model of computation Computations of a TM are described

More information

Automata, Logic and Games: Theory and Application

Automata, Logic and Games: Theory and Application Automata, Logic and Games: Theory and Application 1. Büchi Automata and S1S Luke Ong University of Oxford TACL Summer School University of Salerno, 14-19 June 2015 Luke Ong Büchi Automata & S1S 14-19 June

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

CS 455/555: Finite automata

CS 455/555: Finite automata CS 455/555: Finite automata Stefan D. Bruda Winter 2019 AUTOMATA (FINITE OR NOT) Generally any automaton Has a finite-state control Scans the input one symbol at a time Takes an action based on the currently

More information

Algebras with finite descriptions

Algebras with finite descriptions Algebras with finite descriptions André Nies The University of Auckland July 19, 2005 Part 1: FA-presentability A countable structure in a finite signature is finite-automaton presentable (or automatic)

More information

THEORY OF COMPUTATION (AUBER) EXAM CRIB SHEET

THEORY OF COMPUTATION (AUBER) EXAM CRIB SHEET THEORY OF COMPUTATION (AUBER) EXAM CRIB SHEET Regular Languages and FA A language is a set of strings over a finite alphabet Σ. All languages are finite or countably infinite. The set of all languages

More information

On Recognizable Languages of Infinite Pictures

On Recognizable Languages of Infinite Pictures On Recognizable Languages of Infinite Pictures Equipe de Logique Mathématique CNRS and Université Paris 7 LIF, Marseille, Avril 2009 Pictures Pictures are two-dimensional words. Let Σ be a finite alphabet

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

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

CS256/Spring 2008 Lecture #11 Zohar Manna. Beyond Temporal Logics

CS256/Spring 2008 Lecture #11 Zohar Manna. Beyond Temporal Logics CS256/Spring 2008 Lecture #11 Zohar Manna Beyond Temporal Logics Temporal logic expresses properties of infinite sequences of states, but there are interesting properties that cannot be expressed, e.g.,

More information

Counter Automata and Classical Logics for Data Words

Counter Automata and Classical Logics for Data Words Counter Automata and Classical Logics for Data Words Amal Dev Manuel amal@imsc.res.in Institute of Mathematical Sciences, Taramani, Chennai, India. January 31, 2012 Data Words Definition (Data Words) A

More information

Lecturecise 22 Weak monadic second-order theory of one successor (WS1S)

Lecturecise 22 Weak monadic second-order theory of one successor (WS1S) Lecturecise 22 Weak monadic second-order theory of one successor (WS1S) 2013 Reachability in the Heap Many programs manipulate linked data structures (lists, trees). To express many important properties

More information

Subsumption of concepts in FL 0 for (cyclic) terminologies with respect to descriptive semantics is PSPACE-complete.

Subsumption of concepts in FL 0 for (cyclic) terminologies with respect to descriptive semantics is PSPACE-complete. Subsumption of concepts in FL 0 for (cyclic) terminologies with respect to descriptive semantics is PSPACE-complete. Yevgeny Kazakov and Hans de Nivelle MPI für Informatik, Saarbrücken, Germany E-mail:

More information

Reversal of Regular Languages and State Complexity

Reversal of Regular Languages and State Complexity Reversal of Regular Languages and State Complexity Juraj Šebej Institute of Computer Science, Faculty of Science, P. J. Šafárik University, Jesenná 5, 04001 Košice, Slovakia juraj.sebej@gmail.com Abstract.

More information

COMPUTING LOCAL UNIFIERS IN THE DESCRIPTION LOGIC EL WITHOUT THE TOP CONCEPT

COMPUTING LOCAL UNIFIERS IN THE DESCRIPTION LOGIC EL WITHOUT THE TOP CONCEPT Institute of Theoretical Computer Science Chair of Automata Theory COMPUTING LOCAL UNIFIERS IN THE DESCRIPTION LOGIC EL WITHOUT THE TOP CONCEPT Franz Baader Nguyen Thanh Binh Stefan Borgwardt Barbara Morawska

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

Closure Properties of Regular Languages. Union, Intersection, Difference, Concatenation, Kleene Closure, Reversal, Homomorphism, Inverse Homomorphism

Closure Properties of Regular Languages. Union, Intersection, Difference, Concatenation, Kleene Closure, Reversal, Homomorphism, Inverse Homomorphism Closure Properties of Regular Languages Union, Intersection, Difference, Concatenation, Kleene Closure, Reversal, Homomorphism, Inverse Homomorphism Closure Properties Recall a closure property is a statement

More information

On Recognizable Languages of Infinite Pictures

On Recognizable Languages of Infinite Pictures On Recognizable Languages of Infinite Pictures Equipe de Logique Mathématique CNRS and Université Paris 7 JAF 28, Fontainebleau, Juin 2009 Pictures Pictures are two-dimensional words. Let Σ be a finite

More information

LTL is Closed Under Topological Closure

LTL is Closed Under Topological Closure LTL is Closed Under Topological Closure Grgur Petric Maretić, Mohammad Torabi Dashti, David Basin Department of Computer Science, ETH Universitätstrasse 6 Zürich, Switzerland Abstract We constructively

More information

Automata theory. An algorithmic approach. Lecture Notes. Javier Esparza

Automata theory. An algorithmic approach. Lecture Notes. Javier Esparza Automata theory An algorithmic approach Lecture Notes Javier Esparza July 2 22 2 Chapter 9 Automata and Logic A regular expression can be seen as a set of instructions ( a recipe ) for generating the words

More information

On the Accepting Power of 2-Tape Büchi Automata

On the Accepting Power of 2-Tape Büchi Automata On the Accepting Power of 2-Tape Büchi Automata Equipe de Logique Mathématique Université Paris 7 STACS 2006 Acceptance of infinite words In the sixties, Acceptance of infinite words by finite automata

More information

Final exam study sheet for CS3719 Turing machines and decidability.

Final exam study sheet for CS3719 Turing machines and decidability. Final exam study sheet for CS3719 Turing machines and decidability. A Turing machine is a finite automaton with an infinite memory (tape). Formally, a Turing machine is a 6-tuple M = (Q, Σ, Γ, δ, q 0,

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

On the Satisfiability of Two-Variable Logic over Data Words

On the Satisfiability of Two-Variable Logic over Data Words On the Satisfiability of Two-Variable Logic over Data Words Claire David, Leonid Libkin, and Tony Tan School of Informatics, University of Edinburgh Abstract. Data trees and data words have been studied

More information

Finite Universes. L is a fixed-length language if it has length n for some

Finite Universes. L is a fixed-length language if it has length n for some Finite Universes Finite Universes When the universe is finite (e.g., the interval 0, 2 1 ), all objects can be encoded by words of the same length. A language L has length n 0 if L =, or every word of

More information

DM17. Beregnelighed. Jacob Aae Mikkelsen

DM17. Beregnelighed. Jacob Aae Mikkelsen DM17 Beregnelighed Jacob Aae Mikkelsen January 12, 2007 CONTENTS Contents 1 Introduction 2 1.1 Operations with languages...................... 2 2 Finite Automata 3 2.1 Regular expressions/languages....................

More information

Least Common Subsumers and Most Specific Concepts in a Description Logic with Existential Restrictions and Terminological Cycles*

Least Common Subsumers and Most Specific Concepts in a Description Logic with Existential Restrictions and Terminological Cycles* Least Common Subsumers and Most Specific Concepts in a Description Logic with Existential Restrictions and Terminological Cycles* Franz Baader Theoretical Computer Science TU Dresden D-01062 Dresden, Germany

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

DESCRIPTIONAL COMPLEXITY OF NFA OF DIFFERENT AMBIGUITY

DESCRIPTIONAL COMPLEXITY OF NFA OF DIFFERENT AMBIGUITY International Journal of Foundations of Computer Science Vol. 16, No. 5 (2005) 975 984 c World Scientific Publishing Company DESCRIPTIONAL COMPLEXITY OF NFA OF DIFFERENT AMBIGUITY HING LEUNG Department

More information

Theory of computation: initial remarks (Chapter 11)

Theory of computation: initial remarks (Chapter 11) Theory of computation: initial remarks (Chapter 11) For many purposes, computation is elegantly modeled with simple mathematical objects: Turing machines, finite automata, pushdown automata, and such.

More information

On the coinductive nature of centralizers

On the coinductive nature of centralizers On the coinductive nature of centralizers Charles Grellois INRIA & University of Bologna Séminaire du LIFO Jan 16, 2017 Charles Grellois (INRIA & Bologna) On the coinductive nature of centralizers Jan

More information

Isomorphism of regular trees and words

Isomorphism of regular trees and words Isomorphism of regular trees and words Markus Lohrey and Christian Mathissen Institut für Informatik, Universität Leipzig, Germany {lohrey,mathissen}@informatik.uni-leipzig.de Abstract. The complexity

More information

1 Computational Problems

1 Computational Problems Stanford University CS254: Computational Complexity Handout 2 Luca Trevisan March 31, 2010 Last revised 4/29/2010 In this lecture we define NP, we state the P versus NP problem, we prove that its formulation

More information

NOTES ON AUTOMATA. Date: April 29,

NOTES ON AUTOMATA. Date: April 29, NOTES ON AUTOMATA 1. Monoids acting on sets We say that a monoid S with identity element ɛ acts on a set Q if q(st) = (qs)t and qɛ = q. As with groups, if we set s = t whenever qs = qt for all q Q, then

More information

SYLLABUS. Introduction to Finite Automata, Central Concepts of Automata Theory. CHAPTER - 3 : REGULAR EXPRESSIONS AND LANGUAGES

SYLLABUS. Introduction to Finite Automata, Central Concepts of Automata Theory. CHAPTER - 3 : REGULAR EXPRESSIONS AND LANGUAGES Contents i SYLLABUS UNIT - I CHAPTER - 1 : AUT UTOMA OMATA Introduction to Finite Automata, Central Concepts of Automata Theory. CHAPTER - 2 : FINITE AUT UTOMA OMATA An Informal Picture of Finite Automata,

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

arxiv: v3 [cs.fl] 2 Jul 2018

arxiv: v3 [cs.fl] 2 Jul 2018 COMPLEXITY OF PREIMAGE PROBLEMS FOR DETERMINISTIC FINITE AUTOMATA MIKHAIL V. BERLINKOV arxiv:1704.08233v3 [cs.fl] 2 Jul 2018 Institute of Natural Sciences and Mathematics, Ural Federal University, Ekaterinburg,

More information

The Inclusion Problem for Weighted Automata on Infinite Trees

The Inclusion Problem for Weighted Automata on Infinite Trees The Inclusion Problem for Weighted Automata on Infinite Trees Stefan Borgwardt and Rafael Peñaloza Theoretical Computer Science, TU Dresden, Germany {penaloza,stefborg}@tcs.inf.tu-dresden.de Abstract Weighted

More information

CS 154, Lecture 2: Finite Automata, Closure Properties Nondeterminism,

CS 154, Lecture 2: Finite Automata, Closure Properties Nondeterminism, CS 54, Lecture 2: Finite Automata, Closure Properties Nondeterminism, Why so Many Models? Streaming Algorithms 0 42 Deterministic Finite Automata Anatomy of Deterministic Finite Automata transition: for

More information

Introduction to Turing Machines. Reading: Chapters 8 & 9

Introduction to Turing Machines. Reading: Chapters 8 & 9 Introduction to Turing Machines Reading: Chapters 8 & 9 1 Turing Machines (TM) Generalize the class of CFLs: Recursively Enumerable Languages Recursive Languages Context-Free Languages Regular Languages

More information

Finite Automata and Languages

Finite Automata and Languages CS62, IIT BOMBAY Finite Automata and Languages Ashutosh Trivedi Department of Computer Science and Engineering, IIT Bombay CS62: New Trends in IT: Modeling and Verification of Cyber-Physical Systems (2

More information

Dismatching and Local Disunification in EL

Dismatching and Local Disunification in EL Dismatching and Local Disunification in EL (Extended Abstract) Franz Baader, Stefan Borgwardt, and Barbara Morawska Theoretical Computer Science, TU Dresden, Germany {baader,stefborg,morawska}@tcs.inf.tu-dresden.de

More information

CSE 105 THEORY OF COMPUTATION. Spring 2018 review class

CSE 105 THEORY OF COMPUTATION. Spring 2018 review class CSE 105 THEORY OF COMPUTATION Spring 2018 review class Today's learning goals Summarize key concepts, ideas, themes from CSE 105. Approach your final exam studying with confidence. Identify areas to focus

More information

Chapter Five: Nondeterministic Finite Automata

Chapter Five: Nondeterministic Finite Automata Chapter Five: Nondeterministic Finite Automata From DFA to NFA A DFA has exactly one transition from every state on every symbol in the alphabet. By relaxing this requirement we get a related but more

More information

Notes for Lecture Notes 2

Notes for Lecture Notes 2 Stanford University CS254: Computational Complexity Notes 2 Luca Trevisan January 11, 2012 Notes for Lecture Notes 2 In this lecture we define NP, we state the P versus NP problem, we prove that its formulation

More information

Automata extended to nominal sets

Automata extended to nominal sets Bachelor thesis Computer Science Radboud University Automata extended to nominal sets Author: Joep Veldhoven s4456556 First supervisor/assessor: Jurriaan Rot jrot@cs.ru.nl Second and third supervisor:

More information

ECS 120: Theory of Computation UC Davis Phillip Rogaway February 16, Midterm Exam

ECS 120: Theory of Computation UC Davis Phillip Rogaway February 16, Midterm Exam ECS 120: Theory of Computation Handout MT UC Davis Phillip Rogaway February 16, 2012 Midterm Exam Instructions: The exam has six pages, including this cover page, printed out two-sided (no more wasted

More information

Further discussion of Turing machines

Further discussion of Turing machines Further discussion of Turing machines In this lecture we will discuss various aspects of decidable and Turing-recognizable languages that were not mentioned in previous lectures. In particular, we will

More information

Regular Expressions and Language Properties

Regular Expressions and Language Properties Regular Expressions and Language Properties Mridul Aanjaneya Stanford University July 3, 2012 Mridul Aanjaneya Automata Theory 1/ 47 Tentative Schedule HW #1: Out (07/03), Due (07/11) HW #2: Out (07/10),

More information

Finite Automata. Mahesh Viswanathan

Finite Automata. Mahesh Viswanathan Finite Automata Mahesh Viswanathan In this lecture, we will consider different models of finite state machines and study their relative power. These notes assume that the reader is familiar with DFAs,

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

The commutation with ternary sets of words

The commutation with ternary sets of words The commutation with ternary sets of words Juhani Karhumäki Michel Latteux Ion Petre Turku Centre for Computer Science TUCS Technical Reports No 589, March 2004 The commutation with ternary sets of words

More information

Theoretical Computer Science. State complexity of basic operations on suffix-free regular languages

Theoretical Computer Science. State complexity of basic operations on suffix-free regular languages Theoretical Computer Science 410 (2009) 2537 2548 Contents lists available at ScienceDirect Theoretical Computer Science journal homepage: www.elsevier.com/locate/tcs State complexity of basic operations

More information

Chapter 3: Linear temporal logic

Chapter 3: Linear temporal logic INFOF412 Formal verification of computer systems Chapter 3: Linear temporal logic Mickael Randour Formal Methods and Verification group Computer Science Department, ULB March 2017 1 LTL: a specification

More information

Partially Ordered Two-way Büchi Automata

Partially Ordered Two-way Büchi Automata Partially Ordered Two-way Büchi Automata Manfred Kufleitner Alexander Lauser FMI, Universität Stuttgart, Germany {kufleitner, lauser}@fmi.uni-stuttgart.de June 14, 2010 Abstract We introduce partially

More information

CONCATENATION AND KLEENE STAR ON DETERMINISTIC FINITE AUTOMATA

CONCATENATION AND KLEENE STAR ON DETERMINISTIC FINITE AUTOMATA 1 CONCATENATION AND KLEENE STAR ON DETERMINISTIC FINITE AUTOMATA GUO-QIANG ZHANG, XIANGNAN ZHOU, ROBERT FRASER, LICONG CUI Department of Electrical Engineering and Computer Science, Case Western Reserve

More information

CHURCH SYNTHESIS PROBLEM and GAMES

CHURCH SYNTHESIS PROBLEM and GAMES p. 1/? CHURCH SYNTHESIS PROBLEM and GAMES Alexander Rabinovich Tel-Aviv University, Israel http://www.tau.ac.il/ rabinoa p. 2/? Plan of the Course 1. The Church problem - logic and automata. 2. Games -

More information

3515ICT: Theory of Computation. Regular languages

3515ICT: Theory of Computation. Regular languages 3515ICT: Theory of Computation Regular languages Notation and concepts concerning alphabets, strings and languages, and identification of languages with problems (H, 1.5). Regular expressions (H, 3.1,

More information

Closure under the Regular Operations

Closure under the Regular Operations September 7, 2013 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 shown this closure

More information

Introduction. Büchi Automata and Model Checking. Outline. Büchi Automata. The simplest computation model for infinite behaviors is the

Introduction. Büchi Automata and Model Checking. Outline. Büchi Automata. The simplest computation model for infinite behaviors is the Introduction Büchi Automata and Model Checking Yih-Kuen Tsay Department of Information Management National Taiwan University FLOLAC 2009 The simplest computation model for finite behaviors is the finite

More information

Opleiding Informatica

Opleiding Informatica Opleiding Informatica Tape-quantifying Turing machines in the arithmetical hierarchy Simon Heijungs Supervisors: H.J. Hoogeboom & R. van Vliet BACHELOR THESIS Leiden Institute of Advanced Computer Science

More information

Automata Theory for Presburger Arithmetic Logic

Automata Theory for Presburger Arithmetic Logic Automata Theory for Presburger Arithmetic Logic References from Introduction to Automata Theory, Languages & Computation and Constraints in Computational Logic Theory & Application Presented by Masood

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

Monadic Second Order Logic and Automata on Infinite Words: Büchi s Theorem

Monadic Second Order Logic and Automata on Infinite Words: Büchi s Theorem Monadic Second Order Logic and Automata on Infinite Words: Büchi s Theorem R. Dustin Wehr December 18, 2007 Büchi s theorem establishes the equivalence of the satisfiability relation for monadic second-order

More information

V Honors Theory of Computation

V Honors Theory of Computation V22.0453-001 Honors Theory of Computation Problem Set 3 Solutions Problem 1 Solution: The class of languages recognized by these machines is the exactly the class of regular languages, thus this TM variant

More information

UNIT-VIII COMPUTABILITY THEORY

UNIT-VIII COMPUTABILITY THEORY CONTEXT SENSITIVE LANGUAGE UNIT-VIII COMPUTABILITY THEORY A Context Sensitive Grammar is a 4-tuple, G = (N, Σ P, S) where: N Set of non terminal symbols Σ Set of terminal symbols S Start symbol of the

More information

Halting and Equivalence of Program Schemes in Models of Arbitrary Theories

Halting and Equivalence of Program Schemes in Models of Arbitrary Theories Halting and Equivalence of Program Schemes in Models of Arbitrary Theories Dexter Kozen Cornell University, Ithaca, New York 14853-7501, USA, kozen@cs.cornell.edu, http://www.cs.cornell.edu/~kozen In Honor

More information

Intro to Theory of Computation

Intro to Theory of Computation Intro to Theory of Computation 1/19/2016 LECTURE 3 Last time: DFAs and NFAs Operations on languages Today: Nondeterminism Equivalence of NFAs and DFAs Closure properties of regular languages Sofya Raskhodnikova

More information

Antichain Algorithms for Finite Automata

Antichain Algorithms for Finite Automata Antichain Algorithms for Finite Automata Laurent Doyen 1 and Jean-François Raskin 2 1 LSV, ENS Cachan & CNRS, France 2 U.L.B., Université Libre de Bruxelles, Belgium Abstract. We present a general theory

More information

COMP/MATH 300 Topics for Spring 2017 June 5, Review and Regular Languages

COMP/MATH 300 Topics for Spring 2017 June 5, Review and Regular Languages COMP/MATH 300 Topics for Spring 2017 June 5, 2017 Review and Regular Languages Exam I I. Introductory and review information from Chapter 0 II. Problems and Languages A. Computable problems can be expressed

More information

Introduction to the Theory of Computing

Introduction to the Theory of Computing Introduction to the Theory of Computing Lecture notes for CS 360 John Watrous School of Computer Science and Institute for Quantum Computing University of Waterloo June 27, 2017 This work is licensed under

More information

Automata and Languages

Automata and Languages Automata and Languages Prof. Mohamed Hamada Software Engineering Lab. The University of Aizu Japan Nondeterministic Finite Automata with empty moves (-NFA) Definition A nondeterministic finite automaton

More information

Variable Automata over Infinite Alphabets

Variable Automata over Infinite Alphabets Variable Automata over Infinite Alphabets Orna Grumberg a, Orna Kupferman b, Sarai Sheinvald b a Department of Computer Science, The Technion, Haifa 32000, Israel b School of Computer Science and Engineering,

More information

FINITE STATE AUTOMATA

FINITE STATE AUTOMATA FINITE STATE AUTOMATA States An FSA has a finite set of states A system has a limited number of configurations Examples {On, Off}, {1,2,3,4,,k} {TV channels} States can be graphically represented as follows:

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

Lecture 1: Finite State Automaton

Lecture 1: Finite State Automaton Lecture 1: Finite State Automaton Instructor: Ketan Mulmuley Scriber: Yuan Li January 6, 2015 1 Deterministic Finite Automaton Informally, a deterministic finite automaton (DFA) has finite number of s-

More information

An Alternative Construction in Symbolic Reachability Analysis of Second Order Pushdown Systems

An Alternative Construction in Symbolic Reachability Analysis of Second Order Pushdown Systems An Alternative Construction in Symbolic Reachability Analysis of Second Order Pushdown Systems Anil Seth CSE Department, I.I.T. Kanpur, Kanpur 208016, INDIA. seth@cse.iitk.ac.in Abstract. Recently, it

More information

Introduction to Languages and Computation

Introduction to Languages and Computation Introduction to Languages and Computation George Voutsadakis 1 1 Mathematics and Computer Science Lake Superior State University LSSU Math 400 George Voutsadakis (LSSU) Languages and Computation July 2014

More information

Set Constraints with Projections

Set Constraints with Projections Set Constraints with Projections WITOLD CHARATONIK AND LESZEK PACHOLSKI University of Wrocław, Wrocław, Poland Abstract. Set constraints form a constraint system where variables range over the domain of

More information

Sri vidya college of engineering and technology

Sri vidya college of engineering and technology Unit I FINITE AUTOMATA 1. Define hypothesis. The formal proof can be using deductive proof and inductive proof. The deductive proof consists of sequence of statements given with logical reasoning in order

More information

Part II. Logic and Set Theory. Year

Part II. Logic and Set Theory. Year Part II Year 2018 2017 2016 2015 2014 2013 2012 2011 2010 2009 2008 2007 2006 2005 2018 60 Paper 4, Section II 16G State and prove the ǫ-recursion Theorem. [You may assume the Principle of ǫ- Induction.]

More information

Prime Languages, Orna Kupferman, Jonathan Mosheiff. School of Engineering and Computer Science The Hebrew University, Jerusalem, Israel

Prime Languages, Orna Kupferman, Jonathan Mosheiff. School of Engineering and Computer Science The Hebrew University, Jerusalem, Israel Prime Languages, Orna Kupferman, Jonathan Mosheiff School of Engineering and Computer Science The Hebrew University, Jerusalem, Israel Abstract We say that a deterministic finite automaton (DFA) A is composite

More information

CS 121, Section 2. Week of September 16, 2013

CS 121, Section 2. Week of September 16, 2013 CS 121, Section 2 Week of September 16, 2013 1 Concept Review 1.1 Overview In the past weeks, we have examined the finite automaton, a simple computational model with limited memory. We proved that DFAs,

More information

Watson-Crick ω-automata. Elena Petre. Turku Centre for Computer Science. TUCS Technical Reports

Watson-Crick ω-automata. Elena Petre. Turku Centre for Computer Science. TUCS Technical Reports Watson-Crick ω-automata Elena Petre Turku Centre for Computer Science TUCS Technical Reports No 475, December 2002 Watson-Crick ω-automata Elena Petre Department of Mathematics, University of Turku and

More information

CSCE 551: Chin-Tser Huang. University of South Carolina

CSCE 551: Chin-Tser Huang. University of South Carolina CSCE 551: Theory of Computation Chin-Tser Huang huangct@cse.sc.edu University of South Carolina Church-Turing Thesis The definition of the algorithm came in the 1936 papers of Alonzo Church h and Alan

More information

Abstracting real-valued parameters in parameterised boolean equation systems

Abstracting real-valued parameters in parameterised boolean equation systems Department of Mathematics and Computer Science Formal System Analysis Research Group Abstracting real-valued parameters in parameterised boolean equation systems Master Thesis M. Laveaux Supervisor: dr.

More information

Nondeterministic Finite Automata. Nondeterminism Subset Construction

Nondeterministic Finite Automata. Nondeterminism Subset Construction Nondeterministic Finite Automata Nondeterminism Subset Construction 1 Nondeterminism A nondeterministic finite automaton has the ability to be in several states at once. Transitions from a state on an

More information