A constrained term pattern s:@f represents the language of all instances of the term s satisfying the constraint @f. For each variable in s, this constraint specifies the language of its allowed substitutions. Regularity of languages represented by sets of patterns has been studied for a long time. This problem is known to be co-NP-complete when the constraints allow each variable to be replaced by any term over a fixed signature, and EXPTIME-complete when the constraints restrict each variable to a regular set. In both cases, duplication of variables in the terms of the patterns is a necessary condition for non-regularity. This is because duplications force the recognizer to test equality between subterms. Hence, for the specific classes of constraints mentioned above, if all patterns are linear, then the represented language is necessarily regular. In this paper we focus on the opposite case, that is when there are patterns with ''excessively duplicating'' variables. We prove that when each pattern of a non-empty set has a duplicated variable constrained to an infinite language, then the language represented by the set is necessarily non-regular. We prove this result independently of the kind of constraints used, just assuming that they are mappings from variables to arbitrary languages. Our result provides an efficient procedure for detecting, in some cases, non-regularity of images of regular languages under tree homomorphisms.
[1]
Guillem Godoy,et al.
The HOM Problem is EXPTIME-Complete
,
2012,
2012 27th Annual IEEE Symposium on Logic in Computer Science.
[2]
Sebastian Maneth,et al.
Deciding Regularity of the Set of Instances of a Set of Terms with Regular Constraints is EXPTIME-Complete
,
2009,
SIAM J. Comput..
[3]
A. B. Kahn,et al.
Topological sorting of large networks
,
1962,
CACM.
[4]
Michaël Rusinowitch,et al.
Patterns in Words versus Patterns in Trees: A Brief Survey and New Results
,
1999,
Ershov Memorial Conference.
[5]
Chang Liu,et al.
Term rewriting and all that
,
2000,
SOEN.
[6]
Robert E. Tarjan,et al.
Depth-First Search and Linear Graph Algorithms
,
1972,
SIAM J. Comput..
[7]
Sándor Vágvölgyi,et al.
For a rewrite system it is decidable whether the set of irreducible, ground terms is regognizable
,
1992,
Bull. EATCS.
[8]
Hubert Comon,et al.
Tree automata techniques and applications
,
1997
.