114 Automata with Constraints
• The class of reduction automata which, roughly, allows arbitrary disequal-
ity constraints but only a fixed finite amount of equality constraints on
each run of the automaton. For instance the above set of terms f(t, t) also
belongs to this class, since recognizing the terms of this set requires only
one equality test, performed at the top position. Though closure prop-
erties have to be handled with care (with the definition sketched above,
the closure by complement is unknown for this class), reduction automata
are interesting because for example the set of irreducible terms (w.r.t. an
arbitrary, p ossibly non-linear rewrite system) is recognized by a reduction
automaton. Then the decidability of ground reducibility is a direct con-
sequence of emptiness decidability for deterministic reduction automata.
There is also a logical counterpart: the reducibility theory which is pre-
sented in the linear case in the previous chapter and which can be shown
decidable in the general case using a similar technique.
Reduction automata are studied in Section 4.4.
4.2 Automata with Equality and Disequality Con-
straints
4.2.1 The Most General Class
An equality constraint (resp. a disequality constraint) is a predicate on
T (F) written π = π
′
(resp. π 6= π
′
) where π, π
′
∈ {1, . . . , k}
∗
. Such a predicate
is satisfied on a term t, which we write t |= π = π
′
, if π, π
′
∈ Pos(t) and t|
π
= t|
π
′
(resp. π 6= π
′
is satisfied on t if π = π
′
is not satisfied on t).
The satisfaction relation |= is extended as usual to any Boolean combination
of equality and disequality constraints. The empty conjunction and disjunction
are respectively written ⊤ (true) and ⊥ (false).
Example 4.2.1. With the above definition, we have: f (a, f(a, b)) |= 1 = 21,
and f(a, b) |= 1 6= 2.
An automaton with equality and disequality constraints [is a tuple
(Q, F, Q
f
, ∆) where F is a finite ranked alphabet, Q is a finite set of states, Q
f
is a subset of Q of final states and ∆ is a set of transition rules of of the form:
f(q
1
, . . . , q
n
)
c
−→ q
where f ∈ F, q
1
, . . . , q
n
, q ∈ Q, and c is a Boolean combination of equality
(and disequality) constraints. The state q is called target state in the above
transition rule. We write for short AWEDC the class of automata with equality
and disequality constraints.
Let A = (Q, F, Q
f
, ∆) ∈ AWEDC. The move relation →
A
is defined us-
ing the satisfaction of equality and disequality constraints: let t, t
′
∈ T (F ∪
Q), then t →
A
t
′
if and only there is a context C ∈ C(F ∪ Q), some terms
u
1
, . . . , u
n
∈ T (F), and a transition rule f(q
1
, . . . , q
n
)
c
−→ q ∈ ∆, such that
t = C[f(q
1
(u
1
), . . . , q
n
(u
n
)], t
′
= C[q(f (u
1
, . . . , u
n
))] and f(u
1
, . . . , u
n
) |= c.
TATA — November 18, 2008 —