The Emptiness Problem for Tree Automata with at Least One Disequality Constraint is NP-hard arxiv: v1 [cs.fl] 2 Dec 2014

Similar documents
SAT Solvers for Queries over Tree Automata with Constraints

Tree Automata with Global Constraints

Hubert Comon-Lundh Florent Jacquemard Nicolas Perrin. Tree Automata with Memory, Visibility and Structural Constraints. Research Report LSV-07-01

Tree Automata and Rewriting

On Nondeterministic Unranked Tree Automata with Sibling Constraints

Extended Tree Automata Models for the Verification of Infinite State Systems

Yoshiharu Kojima 1,2

Classes of Term Rewrite Systems with Polynomial Confluence Problems

Equational Tree Automata: Towards Automated Verification of Network Protocols

Deciding Confluence of Certain Term Rewriting Systems in Polynomial Time

Tree Automata for Non-Linear Arithmetic

The Parameterized Complexity of Intersection and Composition Operations on Sets of Finite-State Automata

A Survey of Partial-Observation Stochastic Parity Games

On Recognizable Languages of Infinite Pictures

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

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

Computability and Complexity Theory

On decision problems for timed automata

Tree Automata Techniques and Applications. Hubert Comon Max Dauchet Rémi Gilleron Florent Jacquemard Denis Lugiez Sophie Tison Marc Tommasi

NP-Complete Problems. Complexity Class P. .. Cal Poly CSC 349: Design and Analyis of Algorithms Alexander Dekhtyar..

On Recognizable Languages of Infinite Pictures

What You Must Remember When Processing Data Words

Tree Automata Techniques and Applications. Hubert Comon Max Dauchet Rémi Gilleron Florent Jacquemard Denis Lugiez Sophie Tison Marc Tommasi

Query Reasoning on Data Trees with Counting

Associative-commutative rewriting via flattening

Context Matching for Compressed Terms

Antichain Algorithms for Finite Automata

CS 320, Fall Dr. Geri Georg, Instructor 320 NP 1

The Complexity of Maximum. Matroid-Greedoid Intersection and. Weighted Greedoid Maximization

On Decidability Properties of One-Dimensional Cellular Automata

Unranked Tree Automata with Sibling Equalities and Disequalities

Rewrite Closure for Ground and Cancellative AC Theories

Incompleteness Theorems, Large Cardinals, and Automata ov

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

arxiv: v3 [cs.fl] 2 Jul 2018

Alternating nonzero automata

On language equations with one-sided concatenation

Confluence of Shallow Right-Linear Rewrite Systems

Probabilistic Aspects of Computer Science: Probabilistic Automata

Decidable Call by Need Computations in Term Rewriting (Extended Abstract)

What is this course about?

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

TAGED Approximations for Temporal Properties Model-Checking

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

Hamiltonicity of automatic graphs

Finite Presentations of Pregroups and the Identity Problem

Counter Automata and Classical Logics for Data Words

Theorem 4.18 ( Critical Pair Theorem ) A TRS R is locally confluent if and only if all its critical pairs are joinable.

Tree Automata Techniques and Applications. Hubert Comon Max Dauchet Rémi Gilleron Florent Jacquemard Denis Lugiez Sophie Tison Marc Tommasi

Automata Theory. Lecture on Discussion Course of CS120. Runzhe SJTU ACM CLASS

Reachability Analysis with State-Compatible Automata

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

Automating Sufficient Completeness Check for Conditional and Constrained TRS

About the relationship between formal logic and complexity classes

Sri vidya college of engineering and technology

MERGING STATES IN DETERMINISTIC FUZZY FINITE TREE AUTOMATA BASED ON FUZZY SIMILARITY MEASURES

TWO-VARIABLE LOGIC WITH COUNTING AND A LINEAR ORDER

Peter Wood. Department of Computer Science and Information Systems Birkbeck, University of London Automata and Formal Languages

Hierarchy among Automata on Linear Orderings

Node Query Preservation for Deterministic Linear Top-Down Tree Transducers

Regularity Problems for Visibly Pushdown Languages

CHURCH SYNTHESIS PROBLEM and GAMES

Verifying qualitative and quantitative properties with LTL over concrete domains

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

Introduction to Tree Logics

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

Matching Trace Patterns With Regular Policies

Logical Characterization of Weighted Pebble Walking Automata

Chapter 34: NP-Completeness

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

Algebras with finite descriptions

Determining Unify-Stable Presentations (long version)

Functions Definable by Arithmetic Circuits

Lecture #14: NP-Completeness (Chapter 34 Old Edition Chapter 36) Discussion here is from the old edition.

NP-Completeness. Andreas Klappenecker. [based on slides by Prof. Welch]

Randomness for Free. 1 Introduction. Krishnendu Chatterjee 1, Laurent Doyen 2, Hugo Gimbert 3, and Thomas A. Henzinger 1

Overlapping tile automata:

Complexity Theory. Knowledge Representation and Reasoning. November 2, 2005

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

Compact Representation for Answer Sets of n-ary Regular Queries

Introduction. Chapter 1

Finite and Algorithmic Model Theory II: Automata-Based Methods

Efficient Reasoning about Data Trees via Integer Linear Programming

Regular n-ary Queries in Trees and Variable Independence

Theory of Computation

Automata and Languages

Introduction to Automata

An algebraic characterization of unary two-way transducers

K-center Hardness and Max-Coverage (Greedy)

Functions Definable by Arithmetic Circuits

A Unified Approach to Boundedness Properties in MSO

A Uniformization Theorem for Nested Word to Word Transductions

Finite Automata and Regular Languages (part III)

Models of Computation. by Costas Busch, LSU

Antichain-based Universality and Inclusion Testing over Nondeterministic Finite Tree Automata

BASIC MATHEMATICAL TECHNIQUES

arxiv: v1 [cs.fl] 19 Mar 2015

Tree Automata with Generalized Transition Relations

CS311 Computational Structures. NP-completeness. Lecture 18. Andrew P. Black Andrew Tolmach. Thursday, 2 December 2010

CMPT307: Complexity Classes: P and N P Week 13-1

Transcription:

The Emptiness Problem for Tree Automata with at Least One Disequality Constraint is NP-hard arxiv:141.0839v1 [cs.fl] Dec 014 P.-C. Héam V. Hugot O. Kouchnarenko December 3, 014 Abstract The model of tree automata with equality and disequality constraints was introduced in 007 by Filiot, Talbot and Tison. In this paper we show that if there is at least one disequality constraint, the emptiness problem is NP-hard. 1 Introduction Tree automata are a pervasive tool of contemporary Computer Science, with applications running the gamut from XML processing [13] to program verification [3, 14, 1]. Since their original introduction, they have spawned an evergrowing family of variants, each with its own characteristics of expressiveness and decision complexity. Among them is the family of tree automata with equality and disequality constraints, providing several means for comparing subtrees. Examples of such automata are the original class introduced in [7], their restriction to constraints between brothers [], and visibly tree automata with memory and constraints [5]. In this paper we focus on a recently introduced variant: tree automata with global equality and disequality constraints [8, 9, 10]. For this class of automata, the universality problem is undecidable [10], while membership is NP-complete [10], and emptiness is decidable [1]. Several complexity results for subclasses were pointed out in the literature: the membership problem is polynomial for rigid tree automata [14] as well as for tree automata with a fixed number of equality constraints [1] and no disequality constraints. The emptiness problem is EXPTIME-complete if there are only equality constraints [10], in NEXPTIME if there are only irreflexive disequality constraints [10], and in 3-EXPTIME if there are only reflexive disequality constraints [6]. In this paper we show that the emptiness problem is NP-hard for tree automata with global equality and disequality constraints if there is at least one disequality constraint. FEMTO-ST - INRIA - CNRS - Université de Franche-Comté LIFL - INRIA FEMTO-ST - INRIA - CNRS - Université de Franche-Comté 1

Formal Background A ranked alphabet is a finite set F of symbols equipped with an arity function arity from F into N. The set of terms on F, denoted T(F) is inductively defined as the smallest set satisfying: for every t F such that arity(t) = 0, t T(F); if t 1,...,t n are in T(F) and if f F has arity n, then f(t 1,...,t n ) T(F). The set of positions of a term t, denoted Pos(t), is the subset of N (finite words over N) inductively defined by: if arity(t) = 0, then Pos(t) = {ε}; if t = f(t 1,...,t n ), where n is the arity of f, then Pos(t) = {ε} {i α i α i Pos(t i )}. A term t induces a function (also denoted t) from Pos(t) into F, where t(α) is the symbol of F occurring in t at the position α. The subterm of a term t at position α Pos(t) is the term t α such that Pos(t α ) = {β α β Pos(t)} and for all β Pos(t α ), t α (β) = t(α β). For any pair of terms t and t, any α Pos(t), the term t[t ] α is the term obtained by substituting in t the subterm rooted at position α by t. Let X be an infinite countable set of variables such that X F =. A context C is term in T(F X) (variables are constants) where each variable occurs at most once; it is denoted C[X 1,...,X n ] if the occurring variables are X 1,...,X n. If t 1,...,t n are in T(F), C[t 1,...,t n ] is the term obtained from C by substituting each X i by t i. A tree automaton on a ranked alphabet F is a tuple A = (Q,,F), where Q is a finite set of states, F Q is the set of final sets and is a finite set of rules of the form f(q 1,...,q n ) q, where f F has arity n and the q i s and q are in Q. A tree automaton A = (Q,,F) induces a relation on T(F Q) (where elements of Q are constant, denoted A or just, defined by t A t if there exists a transition f(q 1,...,q n ) q and α Pos(t) such that t = t[q] α, t(α) = f and for every 1 i n, t(α i) = q i. The reflexive transitive closure of A is denoted A. A term t T(F) is accepted by A if there exists q F, such that t A q. An run ρ for a term t T(F) in A is a function from Pos(t) into Q such that if α Pos(t) and t(α) has arity n, then t(α)(ρ(α 1),...,ρ(α n)) ρ(α) is in. An accepting run is a run satisfying ρ(ε) F. It can be checked that a term t is accepted by A iff there exists an accepting run ρ for t and, more generally, that t A q if there exists a run ρ for t in A such that ρ(ε) = q. In this case we write t ρ,a q or just t ρ q if A is clear from the context. A tree automaton with global equality and disequality constraints (TAGED for short) is a tuple (A,R 1,R ), where A = (Q,,F) is a tree automaton and R 1,R are binary relations over Q. The relation R 1 is called the set of equality constraints and the relation R the set of disequality constraints. A term t is accepted by (A,R 1,R ) if there exists a successful run ρ for t in A such that: if (ρ(α),ρ(β)) R 1, then t α = t β, and if (ρ(α),ρ(β)) R, then t α t β. For a ranked alphabet F, let TAGED(k,k) denote the class (A,R 1,R ) of TAGED, where A is a tree automaton over F, R 1 k and R k.

3 TAGED and the Hamiltonian Path Problem The paper focuses on proving the following theorem. Theorem 1 The emptiness problem for TAGED(0,1) is NP-hard. The proof of Theorem 1 is a reduction to the Hamiltonian Path Problem defined below. Hamiltonian Graph Problem Input: a directed finite graph G = (V,E); Output: 1 if there exists a path in G visiting each element of V exactly once, 0 otherwise. The Hamiltonian Graph Problem is known to be NP-complete [11]. A path in a directed graph visiting each vertex exactly once is called a Hamiltonian path. Before proving Theorem 1, let us mention the following direct important consequence, which is the main result of the paper. Corollary For every fixed k 1, and every fixed k 0, the emptiness problem for TAGED(k,k) is NP-hard. We have divided the proof of Theorem 1 into a sequence of lemmas. Lemma 3, below, is immediately obtained by a cardinality argument. Lemma 3 In a directed graph G with n vertices, there exists a Hamiltonian path iff there is a path of length n 1 that does not visit the same vertex twice. For any directed graph G = (V,E), let m G denote the number of paths of length V 1 in G. Lemma 4 Let G = (V,E) be a directed graph. One can compute m G in polynomial time in the size of G. Proof. Let us denote by m G,k,u,v, for any k 1, any u V and any v V, the number of paths of length k from u to v in G. One has m G,k+1,u,v = (u,u ) E m G,k,u,v. Therefore, every m G,k,u,v, for k V, can be computed recursively in polynomial time in V. Note that m G = u,v V m G, V,u,v, concluding the proof. LetF 1 = {f,g,a}, wheref has arityandg arity3andais a constant. The next construction aims to build in polynomial time a tree automaton accepting a unique term having exactly m leaves. Construction 5 Let m be a strictly positive integer and set α 1...α k the binary representation of m (α 1 = 1 and α i {0,1}). Let A m = (Q 1, 1,F 1 ) be the tree automaton over F 1, where Q 1 = {q i 0 i k}, F 1 = {q k } and 1 = {A q 1 } {f(q i,q i ) q i+1 1 i k 1 and α i+1 = 0} {g(q i,q i,q 1 ) q i+1 1 i k 1 and α i+1 = 1}. 3

Lemma 6 The tree automaton A m can be computed in polynomial time in k. Moreover, L(A m ) is reduced to a single term having exactly m leaves, all labelled by A. Proof. The proof is by induction on k. If k = 1, then m = 1 = α 1 (since m 0). In this case Q 1 = F 1 = {q 1 } and 1 = {A q 1 }; therefore L(A 1 ) = {A} and the lemma result holds. Now assume that the lemma is true for a fixed k 1. Let k+1 m < k+ and set m = α 1...α k α k+1, the binary representation of m. Two cases may arise: α k+1 = 0: In this case, by construction, the terms accepted by A m are exactly the terms of the form f(t 1,t ), with t 1 A m q k 1 and t A m q k 1. They correspond to the terms f(t 1,t ), with t 1,t L(Am). By induction hypothesis, L(A m) is a singleton containing a unique term with m leaves, all labelled by A. It follows that L(A m) accepts a unique term with. m = m leaves, all labelled by A. α k+1 = 1: Similarly, the terms accepted by A m are exactly the terms of the form g(t 1,t,A), with t 1,t L(Am 1). By induction, it follows that L(A m ) accepts a unique term with 1 + m 1 = m leaves, all labelled by A. Therefore, the lemma result holds also for k +1, which concludes the proof. Note that since m G V V 1 the binary encoding of m G is of the size polynomial in V. By Lemma 4, m G can be computed in polynomial time and k is polynomial in V. Therefore, the construction of A mg can be done in polynomial time in V, proving the following lemma. Lemma 7 Let G be a directed graph satisfying m G 0. The tree automaton A mg can be computed in polynomial time. The next construction is dedicated to a tree automaton P G accepting terms encoding paths of length V 1. Construction 8 Let G = (V,E) be a non empty directed graph and let n = V 1. Let F = {h} {A v v V}, where h is of arity and the A v s are constants. Let P G = (Q,,F ) be the tree automaton over F ), where Q = {q i w 0 i n 1, w V}, F = {q n 1 w w V}, and = {A w q 0 w w V} {h(q0 v,qi w ) qi+1 v 1 i n, (w,v) V}. Note that the construction ofp G can be done in polynomial time. For a given graph G = (V,E) and a given finite set Q, an h-term on Q is a term either of the form β 0 or h(β k,h(β k 1,h(...,h(β 1,β 0 )...))), where β i {A v v V} Q. Such an h-term is denoted [β k β k 1...β 0 ] Q. If Q is clear from the context, the index Q is omitted. 4

Lemma 9 Let G = (V, E) be a non empty directed graph. A term t is accepted by P G iff there exists a path (w 0,w 1 )(w 1,w )...(w n,w n 1 ) in G such that t = [A wn 1 A wn...a w1 A w0 ] Q. Proof. q n 1 If t is accepted by P G, then there exists w n 1 V such that t w n 1. Looking right-hand sides of the transitions, it follows that there exists w n V such that t h(qw 0 n 1,qw n n ) qw n 1 n 1. The unique rule with righthand side qw 0 n 1 is A wn 1 qw 0 n 1. Therefore t is of the form t = h(a wn 1,t ) with t qw n n and (w n,w n 1 ) E. By a direct induction on n, one has t = [A wn 1 A wn...a w1 A w0 ], where (w 0,w 1 )(w 1,w )...(w n,w n 1 ) is a path in G. Conversely, assume thatt = [A wn 1 A wn...a w1 A w0 ] and that the sequence (w 0,w 1 )(w 1,w )...(w n,w n 1 ) is a path in G. For each 1 i n 1, let t i = [A wi A wi 1...A w1 A w0 ]. One has t 1 = h(a w1,a w0 ), with (w 0,w 1 ) E. Therefore t 1 qw 1 1. By a direct induction, one has t i qw i i. Consequently t n 1 qw n 1 n 1. It follows that t n 1 is accepted by P G. It suffices to note that t n 1 = t to conclude the proof. The next construction designs a tree automaton C G accepting terms of the form [A wk A wk 1...A w1 A w0 ], where k 1 and there exist j i such that w i = w j. Construction 10 Let G = (V,E) be a non empty directed graph. Let F = {h} {A v v V}, where h has arity and the A v s are constants. Without loss of generality we assume that 0,1,f / V. Let C G = (Q 3, 3,F ) be the tree automaton over F, where Q 3 = {p w,p w w V} {p 0,p 1,p f }, F 3 = {p f }, and 3 ={A w p 0,A w p w,a w p w w V} {h(p 0,p 0 ) p 1,h(p 0,p 1 ) p 1,h(p w,p 0 ) p w } {h(p w,p w) p f,h(p 0,p w) p w,h(p 0,p f ) p f,h(p w,p 1 ) p w}. Lemma 11 Let G = (V,E) be a non empty directed graph. For any term t, one has t C G p 1 iff t = [A wk A wk 1...A w1 A w0 ] Q3 with k 1. Proof. If t = h(a wk,h(a wk 1,h(...,h(A w1,a w0 )...))), then by a direct induction on k, and using the transitions A w p 0 and h(p 0,p 1 ) p 1, one has t p 1. Now, if t p 1, then the last transition used to reduce t is h(p 0,p 1 ) p 1. Therefore there exists w V such that t = h(a w,t ) with t p 1. By a direct induction on the depth of t, one can conclude the proof. Lemma 1 Let G = (V,E) be a non empty directed graph. For any term t, one has t C G p w iff t is of the form t = [A wk A wk 1...A w1 A w0 ] Q3, where k 1 and at least one of the w i is equal to w. 5

Proof. Let t = [A wk A wk 1...A w1 A w0 ] Q3 be a term such that w i = w, with i k. If i = 0, then t [A wk A wk 1...A w1 p w] p w since A w0 = A w p w. If i = 1, then t [A w k A wk 1...A w1 p 0 ] [A wk A wk 1...A w p w ], using the transition h(p w,p 0 ) p w. Now if i, then, by Lemma 11, one has t [A wk A wk 1...A wi p 1 ]. Therefore t [A wk A wk 1...A wi+1 p w p 1 ]. Since [p w p 1 ] p w, t [A wk A wk 1...A wi+1 p w ] p w. Conversely, if t p w, we prove by induction on the depth of t that t = [A wk A wk 1...A w1 A w0 ] with at least one i such that w i = w. Assume now that the depth of t is n. The four transitions having p w as right-hand side are A w p w, h(p w,p 0 ) p w, h(p 0,p w) p w and h(p w,p 1 ) p w. If the last transition used to reduce t is A w p w, then t = A w; t is of the expected form. If the last transition used to reduce t is h(p w,p 1 ) p w, then t = h(a w,t ). Using Lemma 11, t is of the expected form. If the last transition used to reduce t is h(p w,p 0 ) p w, then there exists A w such that t = h(a w,a w ); t is of the expected form. If the last transition used to reduce t is h(p 0,p w) p w, then there exists w and t such that t = h(a w,t ) and t p w. By induction hypothesis on t, t is of the expected form, concluding the induction and proving the lemma. Lemma 13 Let G = (V,E) be a non empty directed graph. A term t is accepted by C G iff it is of the form t = [A wk A wk 1...A w1 A w0 ] Q3, where k 1 and there exist j i such that w i = w j. Proof. Assume first that t = [A wk A wk 1...A w1 A w0 ] Q3, with k and there exist j i such that w i = w j. If j, one has t [A wk A wk 1...A wj p 1 ] [A wk A wk 1...p wj p 1 ] [A wk A wk 1...A wj+1 p w j ]. If j = 1, then t [A wk A wk 1...A w1 p w 0 ] = [A wk A wk 1...A wj+1 p w j ]. If j = 0, then t [A wk A wk 1...A w1 p w 0 ] = [A wk A wk 1...A wj+1 p w j ]. In every case one has t [A wk A wk 1...A wj+1 p w j ]. Moreover [A wk A wk 1...A wj+1 p w j ] [A wk A wk 1...A wi p wj ]. Since w i = w j, [A wk A wk 1...A wi p wj ] [A wk A wk 1...A wi+1 p f ]. It follows that t is accepted by C G. Conversely, assume now that t L(C G ). We prove by induction on the depth of t that it is of the form t = [A wk A wk 1...A w1 A w0 ], with k and such that there exists j i satisfying w i = w j. No constant is accepted by C G. If t L(C G ) has depth, then t p f. The last transition used to reduce t cannot be h(p 0,p f ) p f ; otherwise t would have a depth strictly greater than. It follows that there exists w such that t h(p w,p w ). Consequently, t h(a w,p w ) since the unique transition having p w as right hand side is A w p w. Now, since t has depth, the unique possibility is that t = f(a w,a w ). The property is therefore true for term of depth. Now let t be a term of depth k 1 belonging to L(C G ). There exists 6

a successful run ρ such that t ρ p f. Therefore, either t ρ h(p 0,p f ) or there exists w k such that t ρ h(p wk,p w k ). If t ρ h(p 0,p f ), then there exists w k such that t = h(a wk,t ), with t L(C G ), and t has depth k 1. By induction on the depth, t has the wanted form. If t ρ h(p w k,p w k ), then t = h(a wk,t ) and t w k. Using Lemma 1, t = [A wk 1 A wk...a w1 A w0 ], where at least one of the w i (i k 1) is equal to w k, proving the induction and concluding the proof. Lemma 14 Given a directed non empty graph G = (V,E), one can compute in time polynomial in the size of G a tree automaton B G with a unique final state, accepting exactly the set of terms of the form t = [A w V A w V 1...A w1 A w0 ], such that (w 0,w 1 )...(w V 1,w V ) is a non Hamiltonian path of G. Proof. The automata C G checking that a vertex is visited twice and P G checking the length of the path can both be computed in polynomial time. Therefore, using the classical product construction, one can compute a tree automaton accepting L(C G ) L(P G ) in polynomial time. Transforming this automaton into an automaton with a unique final state can also be done in polynomial time using classical ε-transition removal, proving the lemma. The obtained automaton is B G. We can now give the last construction to prove the main result. Construction 15 Set B G = (Q,,{q f }). Without loss of generality, one can assume that q f = q 1 and that Q Q 1 = {q 1 }. We consider the automaton D G = (Q 4, 4,F 4 ) over F 1 F defined by: Q 4 = Q Q 1, F 4 = {q k } and 4 = ( 1 )\{A q 1 }. Lemma 16 The TAGED (D G,,{(q 1,q 1 )}) can be constructed in polynomial time in the size of G. Moreover, it accepts the empty language iff there exists a Hamiltonian path in G. Proof. Using Lemma 6, the term accepted by D G are those of the form C[t 1,...,t mg ], where C[A,...,A] is the unique term accepted by A mg and each t i is accepted by B G. With the inequality constraint, (D G,,{(q 1,q 1 )}) accepts an empty language iff L(B G ) < m G. By Lemma 14, L(B G ) is the number of non Hamiltonian paths in G. Since m G is the number of paths of length V 1 in G, using Lemma 3, L((D G,,(q 1,q 1 ))) = iff there exists a Hamiltonian path of length V 1 in G. Theorem 1 is a direct consequence of Lemma 16 and of the polynomial time construction of D G. 7

4 Conclusion In this paper we have proved that the emptiness problem for TAGED is NPhard if there is at least one negative constraint. It is known that the emptiness problem for TAGED with only irreflexive disequality constraints is in NEXP- TIME [10], and that it is NP-hard by reduction of emptiness for DAG automata [4]. If there are only reflexive disequality constraints, emptiness is known to be solvable in 3-EXPTIME [6]. The gap between these bounds is large and deserves to be refined. References [1] Luis Barguñó, Carles Creus, Guillem Godoy, Florent Jacquemard, and Camille Vacher. The emptiness problem for tree automata with global constraints. In LICS, pages 63 7. IEEE Computer Society, 010. [] Bruno Bogaert and Sophie Tison. Equality and disequality constraints on direct subterms in tree automata. In Alain Finkel and Matthias Jantzen, editors, STACS, volume 577 of LNCS, pages 161 171. Springer, 199. [3] Yohan Boichut, Thomas Genet, Thomas P. Jensen, and Luka Le Roux. Rewriting approximations for fast prototyping of static analyzers. In Franz Baader, editor, RTA, volume 4533 of LNCS, pages 48 6. Springer, 007. [4] Witold Charatonik. Automata on dag representations of finite trees. 1999. [5] Hubert Comon-Lundh, Florent Jacquemard, and Nicolas Perrin. Visibly tree automata with memory and constraints. Logical Methods in Computer Science, 4(), 008. [6] Carles Creus, Adria Gascón, and Guillem Godoy. Emptiness and finiteness for tree automata with global reflexive disequality constraints. J. Autom. Reasoning, 51(4):371 400, 013. [7] Max Dauchet and Jocelyne Mongy. Transformations de noyaux reconnaissables. In FCT, pages 9 98, 1979. [8] Emmanuel Filiot, Jean-Marc Talbot, and Sophie Tison. Satisfiability of a spatial logic with tree variables. In Jacques Duparc and Thomas A. Henzinger, editors, CSL, volume 4646 of LNCS, pages 130 145. Springer, 007. [9] Emmanuel Filiot, Jean-Marc Talbot, and Sophie Tison. Tree automata with global constraints. In Masami Ito and Masafumi Toyama, editors, DLT, volume 557 of LNCS, pages 314 36. Springer, 008. [10] Emmanuel Filiot, Jean-Marc Talbot, and Sophie Tison. Tree automata with global constraints. Int. J. Found. Comput. Sci., 1(4):571 596, 010. 8

[11] Michaek R. Garey and David S. Johnson. Computers and Intractability. W.H. Freeman and Compagny, 1979. [1] Pierre-Cyrille Héam, Vincent Hugot, and Olga Kouchnarenko. On positive TAGED with a bounded number of constraints. In Nelma Moreira and Rogério Reis, editors, CIAA, volume 7381 of LNCS, pages 39 336. Springer, 01. [13] H. Hosoya. Foundations of XML Processing: The Tree-Automata Approach. Cambridge University Press, 010. [14] Florent Jacquemard, Francis Klay, and Camille Vacher. Rigid tree automata and applications. Inf. Comput., 09(3):486 51, 011. 9