Algebraic classifications of regular tree languages 421
representation. For example, the A-tree a(b(a, a),b), where a, b ∈ A, is represented both by
κ(a, κ(b, ι(a),ι(a)),ι(b)) and by η(λ(a, ι(b)),κ(b, ι(a),ι(a))).
It is easy to verify that the algebra of A-trees T
A
satisfies the identities
σ(σ(p, q),r) σ(p, σ(q,r)), (TA1)
η(σ(p, q),t) η(p, η(q,t)), (TA2)
η(λ(a, s),t) κ(a, t, s), (TA3)
η(ρ(a, s),t) κ(a, s, t), (TA4)
where p, q and r are variables of sort c, s and t are variables of sort t,anda is a variable
of sort l. Any Γ-algebra satisfying the identities (TA1)–(TA4) is called a tree algebra. Wilke
shows that T
+
A
is the free tree algebra generated by the sorted set A, ∅, ∅.Thesyntactic
tree algebra congruence τ
T
of an A-tree language T ⊆ T
A
is the greatest congruence on
T
+
A
saturating the sorted subset ∅,T,∅,andthesyntactic tree algebra STA(T )ofT is
defined as the corresponding quotient algebra T
+
A
/τ
T
. It is not hard to see that an A-tree
language T is regular if and only if its syntactic tree algebra STA(T ) is finite. In fact, the t-
component of STA(T) is in essence the syntactic algebra SA(T )ofT while the c-component
corresponds to the syntactic semigroup SS(T )ofT . As an application of syntactic tree
algebras, Wilke presents an elegant effective equational characterization of the reverse definite
A-tree languages. The general theory of tree algebras is developed further in [74, 72].
15 Deterministic top-down tree languages
In this section we consider tree languages recognized by deterministic top-down tree recogniz-
ers,orDT recognizers for short, that read their input trees in a deterministic way starting
at the root and ending at the leaves. Such tree automata are also called deterministic root-
to-frontier recognizers,orDR recognizers. That DT recognizers are much weaker than the
bottom-up recognizers considered above was already observed in the 1960s. However, the
family of DT-recognizable tree languages is still quite interesting and it includes, for exam-
ple, the sets of production trees of context-free grammars (cf. [29], for example). For general
introductions to the topic and further references we refer the reader to [28, 29, 38, 39]. Here
we shall consider the variety properties of this family of tree languages. In particular, we de-
fine the syntactic path monoid introduced by G´ecseg and Steinby [30] as a tool for classifying
DT-recognizable tree languages.
Let Σ be a ranked alphabet and X a leaf alphabet. To simplify matters, we assume that
Σ
0
= ∅.Adeterministic top-down Σ-algebra,aDT Σ-algebra for short, A =(A, Σ) consists
of a non-empty set A and a Σ-indexed family of top-down operations
f
A
: A −→ A
m
(m>0,f∈ Σ
m
).
Such a DT Σ-algebra A is finite if A is a finite set. In [27] it is shown that subalge-
bras, homomorphisms, congruences, quotient algebras and direct products—with their usual
properties—can be defined in a natural way for DT-algebras.
15.1 Definition A deterministic top-down ΣX-recognizer,oraDT ΣX-recognizer, is a sys-
tem A =(A,a
0
,α), where