1/20
Unranked Tree Algebra
Mikolaj Bojanczyk and Igor Walukiewicz
Warsaw University and LaBRI Bordeaux
Unranked Tree Algebra Mikolaj Bojanczyk and Igor Walukiewicz Warsaw - - PowerPoint PPT Presentation
Unranked Tree Algebra Mikolaj Bojanczyk and Igor Walukiewicz Warsaw University and LaBRI Bordeaux ACI Cachan, March 13-14, 2006 1/20 The problem Problem Given a regular tree language decide if it is definable in FOL. Language is given by a
1/20
Warsaw University and LaBRI Bordeaux
2/20
2/20
2/20
2/20
3/20
◮ CTL* ◮ FOL ◮ PDL ◮ CL (chain logic: MSOL with quantification restricted to chains)
4/20
◮ Define v1 ∼L v2 iff for all u, w ∈ Σ∗: uv1w ∈ L iff uv2w ∈ L. ◮ This is an equivalence relation so we can take Σ∗/ ∼L, ·.
5/20
◮ A Σ-tree is a partial mapping t : N ∗ → Σ with finite and prefix closed
◮ Forest is a finite sequence of trees.
6/20
◮ Q, PF(Q), ◦ partial functions with composition. ◮ Take automaton A = Q, Σ, δ : Q × Σ → Q. Define Q, {δw : w ∈ Σ∗}, ·.
7/20
8/20
9/20
Σ, inr Σ)
◮ H Σ is the set of forests over Σ with forest composition. ◮ V Σ is the set of contexts over Σ with context composition. ◮ actΣ : V Σ × H Σ → H Σ is the action on inserting a forest h into the hole of
◮ inlΣ, inr Σ : H Σ × V Σ → V Σ are the insertions of a forest h on the left
10/20
11/20
◮ Two nonempty Σ-forests g, h are L-equivalent if for every (perhaps empty)
◮ Two nonempty Σ-contexts v, w are L-equivalent if for every nonempty
11/20
◮ Two nonempty Σ-forests g, h are L-equivalent if for every (perhaps empty)
◮ Two nonempty Σ-contexts v, w are L-equivalent if for every nonempty
11/20
◮ Two nonempty Σ-forests g, h are L-equivalent if for every (perhaps empty)
◮ Two nonempty Σ-contexts v, w are L-equivalent if for every nonempty
◮ Regular ≡ recognized. ◮ If some algebra recognizing L satisfies an equation then the syntactic
12/20
13/20
◮ Take two tree algebras
◮ The wreath product C = B ◦ A is the tree algebra (I, U, actC, inlC, inr C) ◮ The horizontal semigroup I is the product semigroup H × G. ◮ The vertical semigroup U is V G × W with multiplication:
◮ The action actC of U on I is:
◮ The left insertion inl
C of I on U is:
C((h, g), (f , w)) = (f ′, inl A(g, w))
B(h, f (gg′))
14/20
◮ Take two tree algebras
◮ The wreath product C = B ◦ A is the tree algebra (I, U, actC, inlC, inr C) ◮ The horizontal semigroup I is the product semigroup H × G. ◮ The vertical semigroup U is V G × W with multiplication:
◮ The horizontal part is OK. ◮ The element (v, w) of the vertical part of B × A is represented by (fv, w) of
14/20
◮ Take two tree algebras
◮ The wreath product C = B ◦ A is the tree algebra (I, U, actC, inlC, inr C) ◮ The horizontal semigroup I is the product semigroup H × G. ◮ The vertical semigroup U is V G × W with multiplication:
◮ The horizontal part is OK. ◮ The element (v, w) of the vertical part of B × A is represented by (fv, w) of
15/20
n times
16/20
◮ Logic UETL has two kinds of formulas: tree formulas and path formulas. ◮ The semantics of a tree formula is a set of trees. ◮ The semantics of a path formula is a set of pairs (tree,path).
◮ The syntax of UETL is as follows: ◮ Every letter a of the alphabet is a tree formula. ◮ Tree formulas are closed under boolean operations. ◮ If k ∈ N and ψ is a path formula then Ekψ is a tree formula. ◮ Every tree formula is a path formula. ◮ Path formulas are closed under ψ∗, ψ1 + ψ2, ¬ψ, ψ1 · ψ2.
17/20
18/20
19/20
19/20
20/20
◮ We have given algebraic characterizations of FO, CL, PDL, CTL∗ using
◮ This is in part possible thanks to a new interpretation of transformation
◮ The characterizations use a kind of “wreath product principle”. ◮ The presented characterizations do not give decidability results. ◮ They point out though that the case of unranked trees may be easier. ◮ Algebra is probably not necessary but looks like a good way to understand