134 Automata with Constraints
2. Conversely, show that, for every pair of natural numbers (n, m), there exists a
term t
1
such that f(t
1
, s
n
(0), s
m
(0), s
n+m
(0)) is accepted by A
+
.
3. Construct an automaton A
×
of the class AWEDC which has the same properties
as above, replacing + with ×
4. Give a proof that emptiness is undecidable for the class AWEDC, reducing
Hilbert’s tenth problem.
Exercise 4.2. Give an automaton of the class AWCBB which accepts the set of terms
t (over the alphabet {a(0), b(0), f(2)}) having a subterm of the form f(u, u). (i.e. the
set of terms that are reducible by a rule f(x, x) → v).
Exercise 4.3. Show that the class AWCBB is not closed under linear tree homomor-
phisms. Is it closed under inverse image of such morphisms?
Exercise 4.4. Give an example of two automata in AWCBB such that the set of pairs
of terms recognized respectively by the automata is not itself a member of AWCBB.
Exercise 4.5. (Proposition 4.4.3) Show that the class of (languages recognized by)
reduction automata is closed under intersection and union.
Exercise 4.6. Show that the set of balanced term on alphabet {a, f} as well as its
complement are both recognizable by reduction automata.
Exercise 4.7. Show that the class of languages recognized by reduction automata is
preserved under linear tree homomorphisms. Show however that this is no longer true
for arbitrary tree homomorphisms.
Exercise 4.8. Let A be a reduction automaton. We define a ternar y relation q
w
−→ q
′
contained in Q × N
∗
× Q as follows:
• for i ∈ N, q
i
−→ q
′
if and only if there is a rule f(q
1
, . . . , q
n
)
c
−→
A
q
′
with q
i
= q
• q
i·w
−−→ q
′
if and only if there is a state q
′′
such that q
i
−→ q
′′
and q
′′
w
−→ q
′
.
Moreover, we say that a state q ∈ Q is a constrained state if there is a rule f (q
1
, . . . , q
n
)
c
−→
A
q
in A such that c is not a valid constraint.
We say that the the constraints of A cannot overlap if, for each rule f(q
1
, . . . , q
n
)
c
−→ q
and for each equality (resp. disequality) π = π
′
of c, there is no strict prefix p of π
and no constrained state q
′
such that q
′
p
−→ q.
1. Consider the rewrite system on the alphabet {f(2), g(1), a(0)} whose left mem-
b ers are f(x, g(x)), g(g(x)), f(a, a). Compute a reduction automaton, whose
constraints do not overlap and which accepts the set of irreducible ground terms.
2. Show that emptiness can be decided in polynomial time for reduction automata
whose constraints do not overlap. (Hint: it is similar to the proof of Theorem
4.3.5.)
3. Show that any language recognized by a reduction automaton whose constraints
do not overlap is an homomorphic image of a language in the class AWCBB.
Give an example showing that the converse is false.
Exercise 4.9. Prove the Prop osition 4.4.2 along the lines of Proposition 3.4.3.
Exercise 4.10. The purpose of this exercise is to give a construction of an automaton
with disequality constraints (no equality constraints) whose emptiness is equivalent to
the ground reducibility of a given term t with respect to a given term rewriting system
R.
TATA — November 18, 2008 —