42 1. Introduction
For any T in T (X, Y, τ), in the case of τ>0, we use T to denote the set
of |X| subtrees of T of which roots are the terminal vertices of arcs emitted
from the root of T and arcs contain all arcs of T with level 1. We use T
to denote the subtree of T which is obtained from T by deleting all vertices
with level τ + 1 and all arcs with level τ. Clearly, T
⊆T(X, Y, τ − 1) and
T
∈T(X, Y, τ − 1). For any F⊆T(X, Y, τ), let F = ∪
T ∈F
T and F =
{T
| T ∈F}.
If τ =0orF
⊆F, F is said to be closed. For any T
i
in T (X, Y, τ),
i =1, 2, if T
2
and the subtree of T
1
in T
1−
,ofwhichtherootistheterminal
vertex of an arc emitted from the root of T
1
with input label x,arethesame,
T
2
is called an x-successor of T
1
. Clearly, if F⊆T(X, Y, τ) is closed, then
for any T
1
in F and any x in X, there exists T
2
in F such that T
2
is an
x-successor of T
1
.
Let F be a closed nonempty subset of T (X, Y, τ), and ν a single-valued
mapping from F to the set of positive integers. We construct a finite automa-
ton M = X, Y, S, δ, λ,where
S = {T,i|T ∈F,i =1,...,ν(T )},
and δ and λ are defined as follows. For any T in F and any x in X, define
δ(T,i,x)=T
,j,
λ(T,i,x)=y,
where T
is an x-successor of T, j is an integer with 1 j ν(T
), and (x, y)
is a label of an arc emitted from the root of T .NoticethatgivenT and x,
from the construction of T ,thevalueofy is unique, and from the closedness
of F,valuesofT
and j are existent but not necessary to be unique. Since M
is determined by F, ν and δ,weuseM(F,ν,δ) to denote the finite automaton
M.
For any finite automaton M = X, Y, S,δ, λ and any state s of M,con-
struct a labelled tree with level τ, denoted by T
M
τ
(s), as follows. The root
of T
M
τ
(s) is temporarily labelled by s. For each vertex v with level τ of
T
M
τ
(s)andanyx in X,anarcwithlabel(x, λ(s
,x)) is emitted from v,and
we use δ(s
,x) to label the terminal vertex of the arc temporarily, where s
is the label of v. Finally, deleting all labels of vertices, we obtain the tree
T
M
τ
(s).
Clearly, T
M
τ
(s) ∈T(X, Y, τ). It is easy to see that for any s in S and any x
in X, T
M
τ
(δ(s, x)) is an x-successor of T
M
τ
(s). And for any path of length τ +1
of T
M
τ
(s), if the input label sequence and the output label sequence of the
path are x
0
...x
τ
and y
0
...y
τ
, respectively, then we have λ(s, x
0
...x
τ
)=
y
0
...y
τ
.
From the construction of M(F,ν,δ), we have the following lemma.