180 Tree Transducers
Exercise 6.8. We identify words with trees over symbols of arity 1 or 0. Let relations
U = {(f
n
a, f
n
a) | n ∈ N} ∪ {(f
n
b, g
n
b) | n ∈ N} and D = {(ff
n
a, f f
n
a) | n ∈
N} ∪ {(gf
n
a, gf
n
b) | n ∈ N}. Prove that U is a deterministic linear complete bottom-
up transduction but not a deterministic top-down transduction. Prove that D is a
deterministic linear complete top-down transduction but not a deterministic bottom-
up transduction.
Exercise 6.9. Prove point 3 of Comparison Theorem. Hint. Use rule-by-rule tech-
niques as in Exercise 6.10.
Exercise 6.10. Prove Composition Theorem (Th. 6.4.5). Hints: Prove 1 and 2 using
comp osition “rule-by-rule”, illustrated as following. States of A ◦ B are products of
states of A and states of B. Let f(q(x)) →
A
q
′
(g(x, g(x, a))) and g(q
1
(x), g(q
2
(y), a)
→
B
q
4
(u). Subterms substituted to x and y in the composition must be equal, and
determinism implies q
1
= q
2
. Then we b uild new rule f((q, q1)(x)) →
A◦B
(q
′
, q
4
)(u).
For 3, Using ad hoc kinds of “rule-by-rule” constructions, prove DDTT ⊂ DCDTT ◦
LHOM and LHOM ◦ DCDTT ⊂ DCDTT ◦ LHOM (L means linear, C complete, D
deterministic - and suffix DTT means top-down tree transducer as usually).
Exercise 6.11. Prove NDTT = HOM ◦ NLDTT and NUTT = HOM ◦ NLBTT. Hint:
to prove NDTT ⊂ HOM ◦ NLDTT use a homomorphism H to produce in advance as
may copies of subtrees of the input tree as the NDTT may need, ant then simulate it
by a linear NDTT.
Exercise 6.12. Use constructions of composition theorem to reduce the number of
passes in process of Section 6.3.
Exercise 6.13. Prove recognizability theorem. Hint: as in exercise 6.10, “naive”
constructions work.
Exercise 6.14. Prove Theorem 6.5.1. Hint: “naive” constructions work.
Exercise 6.15. Prove point 2 of Theorem 6.5.2. Hint: E denote the class of homo-
morphisms which are linear and symbol-to-symbol. L, LC, LCF denotes linear, linear
complete, linear complete ε-free homomorphisms, respectively. Prove LCS = L ◦ E =
E ◦ L and E
−1
◦ L ⊂ L ◦ E
−1
. Deduce from these pr operties and from point 1 of
Theorem 6.5.2 that LB
4
= E ◦ LCFB
2
◦ E
−1
. To prove that LB
3
6= LB
4
, consider
Ψ
1
◦ Ψ
−1
2
◦ Φ ◦ Φ
−1
◦ Ψ
2
◦ Ψ
−1
1
, where Φ is the homomorphism used in point 1 of
Theorem 6.5.2; Ψ
1
identity on a, f(x), g(x, y), h(x, y, z), Ψ
1
(e(x)) = x; Ψ
2
identity
on a, f (x), g(x, y) and Ψ
2
(c(x, y, z) = b(b(x, y), z).
Exercise 6.16. Sketch of proof of LCFB
2
= LCFB
3
(difficult). Distance D(x, y, u) of
two nodes x and y in a tree u is the sum of the lengths of two branches which join x
and y to their younger common ancestor in u. D(x, u) denotes the distance of x to
the root of u.
Let H the class of deterministic top-down transducers T defined as follows: q
0
, . . . , q
n
are states of the transducer, q
0
is the initial state. For every context, consider the re-
sult u
i
of the run starting from q
i
(u). ∃k, ∀ context u such that for every variable x
of u, D(x, u) > k:
• u
0
contains at least an occurrence of each variable of u,
• for any i, u
i
contains at least a non variable symbol,
• if two occurrences x
′
and x
′′
of a same variable x occur in u
i
, D(x
′
, x”, u
i
) < k.
Remark that LCF is included in H and that there is no right hand side of rule with
two occurrences of the same variable associated with the same state. Prove that
1. LCF
−1
⊆ Delabeling
−1
◦ H
TATA — November 18, 2008 —