Simulations of Weighted Tree Automata Zoltn sik 1 and Andreas Maletti - - PowerPoint PPT Presentation

simulations of weighted tree automata
SMART_READER_LITE
LIVE PREVIEW

Simulations of Weighted Tree Automata Zoltn sik 1 and Andreas Maletti - - PowerPoint PPT Presentation

Simulations of Weighted Tree Automata Zoltn sik 1 and Andreas Maletti 2 1 University of Szeged, Szeged, Hungary 2 Universitat Rovira i Virgili, Tarragona, Spain andreas.maletti@urv.cat Winnipeg August 12, 2010 Simulations of Weighted Tree


slide-1
SLIDE 1

Simulations of Weighted Tree Automata

Zoltán Ésik 1 and Andreas Maletti 2

1 University of Szeged, Szeged, Hungary 2 Universitat Rovira i Virgili, Tarragona, Spain

andreas.maletti@urv.cat

Winnipeg — August 12, 2010

Simulations of Weighted Tree Automata

  • Z. Ésik and A. Maletti

· 1

slide-2
SLIDE 2

Motivation

Simulation of weighted string automata

Theorem (BÉAL, LOMBARDY, SAKAROVITCH 2005 & 2006) For all equivalent weighted string automata over . . . there exists a chain of simulations connecting them. a field the integers (more generally, an EUCLIDIAN domain) the natural numbers the BOOLEAN semiring (functional transducers) Consequence Equivalence = Chain of Simulations

Simulations of Weighted Tree Automata

  • Z. Ésik and A. Maletti

· 2

slide-3
SLIDE 3

Motivation

Simulation of weighted string automata

Theorem (BÉAL, LOMBARDY, SAKAROVITCH 2005 & 2006) For all equivalent weighted string automata over . . . there exists a chain of simulations connecting them. a field the integers (more generally, an EUCLIDIAN domain) the natural numbers the BOOLEAN semiring (functional transducers) Consequence Equivalence = Chain of Simulations

Simulations of Weighted Tree Automata

  • Z. Ésik and A. Maletti

· 2

slide-4
SLIDE 4

Motivation

Minimization of weighted tree automata

In fields [SEIDL 1990, BOZAPALIDIS 1991] A B C equivalent minimizes to minimizes to automata collapsed by equivalence relation the canonical homomorphism is a simulation Consequence Equivalence = Chain of Simulations

Simulations of Weighted Tree Automata

  • Z. Ésik and A. Maletti

· 3

slide-5
SLIDE 5

Motivation

Minimization of weighted tree automata

In fields [SEIDL 1990, BOZAPALIDIS 1991] A B C equivalent minimizes to minimizes to automata collapsed by equivalence relation the canonical homomorphism is a simulation Consequence Equivalence = Chain of Simulations

Simulations of Weighted Tree Automata

  • Z. Ésik and A. Maletti

· 3

slide-6
SLIDE 6

Weighted Tree Automaton

Contents

1

Motivation

2

Weighted Tree Automaton

3

Simulation

4

Simulation vs. Equivalence

Simulations of Weighted Tree Automata

  • Z. Ésik and A. Maletti

· 4

slide-7
SLIDE 7

Weighted Tree Automaton

Semiring

Definition A commutative semiring is an algebraic structure (K, +, ·, 0, 1) with commutative monoids (K, +, 0) and (K, ·, 1) a · (b + c) = (a · b) + (a · c) a · 0 = 0 Example natural numbers tropical semiring (N ∪ {∞}, min, +, ∞, 0) BOOLEAN semiring ({0, 1}, max, min, 0, 1) any commutative ring

Simulations of Weighted Tree Automata

  • Z. Ésik and A. Maletti

· 5

slide-8
SLIDE 8

Weighted Tree Automaton

Semiring

Definition A commutative semiring is an algebraic structure (K, +, ·, 0, 1) with commutative monoids (K, +, 0) and (K, ·, 1) a · (b + c) = (a · b) + (a · c) a · 0 = 0 Example natural numbers tropical semiring (N ∪ {∞}, min, +, ∞, 0) BOOLEAN semiring ({0, 1}, max, min, 0, 1) any commutative ring

Simulations of Weighted Tree Automata

  • Z. Ésik and A. Maletti

· 5

slide-9
SLIDE 9

Weighted Tree Automaton

Weighted tree automaton

Definition (BERSTEL, REUTENAUER 1982) A weighted tree automaton (wta) is a tuple A = (Q, Σ, K, I, R) with rules of the form q

c

→ σ q1 . . . qk where q, q1, . . . , qk ∈ Q are states c ∈ K is a weight (taken from a semiring) σ ∈ Σk is an input symbol

Simulations of Weighted Tree Automata

  • Z. Ésik and A. Maletti

· 6

slide-10
SLIDE 10

Weighted Tree Automaton

Run

S NP JJ Colorless NNS ideas VP VBP sleep ADVP RB furiously

Simulations of Weighted Tree Automata

  • Z. Ésik and A. Maletti

· 7

slide-11
SLIDE 11

Weighted Tree Automaton

Run

Sq NPq′ JJq′ Colorlessw NNSq′′ ideasw VPq1 VBPq′

1

sleepw ADVPq2 RBq2 furiouslyw

Simulations of Weighted Tree Automata

  • Z. Ésik and A. Maletti

· 7

slide-12
SLIDE 12

Weighted Tree Automaton

Run

S.4

q

NP.2

q′

JJ.3

q′

Colorless.1

w

NNS.3

q′′

ideas.1

w

VP.4

q1

VBP.2

q′

1

sleep.1

w

ADVP.3

q2

RB.2

q2

furiously.1

w

Definition The weight of a run is obtained by multiplying the weights in it.

Simulations of Weighted Tree Automata

  • Z. Ésik and A. Maletti

· 7

slide-13
SLIDE 13

Weighted Tree Automaton

Run

S.4

q

NP.2

q′

JJ.3

q′

Colorless.1

w

NNS.3

q′′

ideas.1

w

VP.4

q1

VBP.2

q′

1

sleep.1

w

ADVP.3

q2

RB.2

q2

furiously.1

w

Weight of the run 0.4 · 0.2 · 0.3 · 0.1 · 0.3 · 0.1 · 0.4 · 0.2 · 0.1 · 0.3 · 0.2 · 0.1

Simulations of Weighted Tree Automata

  • Z. Ésik and A. Maletti

· 7

slide-14
SLIDE 14

Weighted Tree Automaton

Semantics

Definition The weight of an input tree t is weight(t) =

  • r run on t

I(root(r)) · weight(r) Definition Two wta are equivalent if they assign the same weights to all trees.

Simulations of Weighted Tree Automata

  • Z. Ésik and A. Maletti

· 8

slide-15
SLIDE 15

Weighted Tree Automaton

Semantics

Definition The weight of an input tree t is weight(t) =

  • r run on t

I(root(r)) · weight(r) Definition Two wta are equivalent if they assign the same weights to all trees.

Simulations of Weighted Tree Automata

  • Z. Ésik and A. Maletti

· 8

slide-16
SLIDE 16

Simulation

Matrix representation

Definition matrix presentation of a wta (Q, Σ, I, R) Rk(σ)q1···qk,q = c ⇐ ⇒ q

c

→ σ q1 . . . qk ∈ R

Simulations of Weighted Tree Automata

  • Z. Ésik and A. Maletti

· 9

slide-17
SLIDE 17

Simulation

Main definition

Definition (BLOOM, ÉSIK 1993) A wta (Q, Σ, I, R) simulates a wta (P, Σ, J, S) if there exists a matrix X ∈ KQ×P such that I = XJ I(q) =

  • p∈P

Xq,p · J(p) Rk(σ)X = X k,⊗Sk(σ)

  • q∈Q

Rk(σ)q1···qk,q · Xq,p =

  • p1···pk∈Pk

Xq1,p1 · . . . · Xqk,pk · Sk(σ)p1···pk,p

Simulations of Weighted Tree Automata

  • Z. Ésik and A. Maletti

· 10

slide-18
SLIDE 18

Simulation

Main definition

Definition (BLOOM, ÉSIK 1993) A wta (Q, Σ, I, R) simulates a wta (P, Σ, J, S) if there exists a matrix X ∈ KQ×P such that I = XJ I(q) =

  • p∈P

Xq,p · J(p) Rk(σ)X = X k,⊗Sk(σ)

  • q∈Q

Rk(σ)q1···qk,q · Xq,p =

  • p1···pk∈Pk

Xq1,p1 · . . . · Xqk,pk · Sk(σ)p1···pk,p

Simulations of Weighted Tree Automata

  • Z. Ésik and A. Maletti

· 10

slide-19
SLIDE 19

Simulation

Main definition

Definition (BLOOM, ÉSIK 1993) A wta (Q, Σ, I, R) simulates a wta (P, Σ, J, S) if there exists a matrix X ∈ KQ×P such that I = XJ I(q) =

  • p∈P

Xq,p · J(p) Rk(σ)X = X k,⊗Sk(σ)

  • q∈Q

Rk(σ)q1···qk,q · Xq,p =

  • p1···pk∈Pk

Xq1,p1 · . . . · Xqk,pk · Sk(σ)p1···pk,p

Simulations of Weighted Tree Automata

  • Z. Ésik and A. Maletti

· 10

slide-20
SLIDE 20

Simulation

Main definition

Definition (BLOOM, ÉSIK 1993) A wta (Q, Σ, I, R) simulates a wta (P, Σ, J, S) if there exists a matrix X ∈ KQ×P such that I = XJ I(q) =

  • p∈P

Xq,p · J(p) Rk(σ)X = X k,⊗Sk(σ)

  • q∈Q

Rk(σ)q1···qk,q · Xq,p =

  • p1···pk∈Pk

Xq1,p1 · . . . · Xqk,pk · Sk(σ)p1···pk,p

Simulations of Weighted Tree Automata

  • Z. Ésik and A. Maletti

· 10

slide-21
SLIDE 21

Simulation

Main definition

Definition (BLOOM, ÉSIK 1993) A wta (Q, Σ, I, R) simulates a wta (P, Σ, J, S) if there exists a matrix X ∈ KQ×P such that Rk(σ) Sk(σ) X k,⊗ X I J

Simulations of Weighted Tree Automata

  • Z. Ésik and A. Maletti

· 10

slide-22
SLIDE 22

Simulation

Relation to simple simulations

Definition A matrix X ∈ KQ×P is relational if X ∈ {0, 1}Q×P functional if X is relational and induces a mapping surjective, injective, . . . Definition (HÖGBERG, ∼, MAY 2007) wta A forward simulates wta B if A simulates B with a functional transfer matrix. wta A backward simulates wta B if B simulates A with transfer matrix X such that X T is functional.

Simulations of Weighted Tree Automata

  • Z. Ésik and A. Maletti

· 11

slide-23
SLIDE 23

Simulation

Relation to simple simulations

Definition A matrix X ∈ KQ×P is relational if X ∈ {0, 1}Q×P functional if X is relational and induces a mapping surjective, injective, . . . Definition (HÖGBERG, ∼, MAY 2007) wta A forward simulates wta B if A simulates B with a functional transfer matrix. wta A backward simulates wta B if B simulates A with transfer matrix X such that X T is functional.

Simulations of Weighted Tree Automata

  • Z. Ésik and A. Maletti

· 11

slide-24
SLIDE 24

Simulation

Relation to simple simulations (cont’d)

Definition (BÉAL, LOMBARDY, SAKAROVITCH 2005) The semiring K is equisubtractive if for every a1, a2, b1, b2 ∈ K with a1 + b1 = a2 + b2 there exist c1, c2, d1, d2 ∈ K such that a1 = c1 + d1 and b1 = c2 + d2 a2 = c1 + c2 and b2 = d1 + d2 a1 a2 b1 b2

Simulations of Weighted Tree Automata

  • Z. Ésik and A. Maletti

· 12

slide-25
SLIDE 25

Simulation

Relation to simple simulations (cont’d)

Definition (BÉAL, LOMBARDY, SAKAROVITCH 2005) The semiring K is equisubtractive if for every a1, a2, b1, b2 ∈ K with a1 + b1 = a2 + b2 there exist c1, c2, d1, d2 ∈ K such that a1 = c1 + d1 and b1 = c2 + d2 a2 = c1 + c2 and b2 = d1 + d2 a1 a2 c1 d2 b1 b2 d1 c2 c2 d1

Simulations of Weighted Tree Automata

  • Z. Ésik and A. Maletti

· 12

slide-26
SLIDE 26

Simulation

Relation to simple simulations (cont’d)

Theorem (BÉAL, LOMBARDY, SAKAROVITCH 2005) Let K be equisubtractive and additively generated by units. Then wta A simulates wta B iff there exist wta A′ and B′ such that A′ backward simulates A A′ simulates B′ with an invertable diagonal transfer matrix B′ forward simulates B A′ B′ A B simulates simulates backward forward

Simulations of Weighted Tree Automata

  • Z. Ésik and A. Maletti

· 13

slide-27
SLIDE 27

Simulation

Main question

Theorem (BLOOM, ÉSIK 1993) Simulation is a pre-order that refines equivalence. Question Does the symmetric, transitive closure of simulation coincide with equivalence? In other words Are all equivalent wta joined by a finite chain of simulations?

Simulations of Weighted Tree Automata

  • Z. Ésik and A. Maletti

· 14

slide-28
SLIDE 28

Simulation

Main question

Theorem (BLOOM, ÉSIK 1993) Simulation is a pre-order that refines equivalence. Question Does the symmetric, transitive closure of simulation coincide with equivalence? In other words Are all equivalent wta joined by a finite chain of simulations?

Simulations of Weighted Tree Automata

  • Z. Ésik and A. Maletti

· 14

slide-29
SLIDE 29

Simulation

Main question

Theorem (BLOOM, ÉSIK 1993) Simulation is a pre-order that refines equivalence. Question Does the symmetric, transitive closure of simulation coincide with equivalence? In other words Are all equivalent wta joined by a finite chain of simulations?

Simulations of Weighted Tree Automata

  • Z. Ésik and A. Maletti

· 14

slide-30
SLIDE 30

Simulation vs. Equivalence

Proper semiring

Definition The semiring K is proper if for all wta A and B A and B are equivalent iff there exists a finite chain of simulations that join A and B. Example BOOLEAN semiring [BLOOM, ÉSIK 1993, KOZEN 1994] any commutative field [SEIDL 1990, BOZAPALIDIS 1991]

Simulations of Weighted Tree Automata

  • Z. Ésik and A. Maletti

· 15

slide-31
SLIDE 31

Simulation vs. Equivalence

Proper semiring

Definition The semiring K is proper if for all wta A and B A and B are equivalent iff there exists a finite chain of simulations that join A and B. Example BOOLEAN semiring [BLOOM, ÉSIK 1993, KOZEN 1994] any commutative field [SEIDL 1990, BOZAPALIDIS 1991]

Simulations of Weighted Tree Automata

  • Z. Ésik and A. Maletti

· 15

slide-32
SLIDE 32

Simulation vs. Equivalence

NOETHERIAN semiring

Definition A commutative monoid (M, ⊕, 0) together with an action ⊙: K × M → M is a K-semimodule if (a + b) ⊙ m = (a ⊙ m) ⊕ (b ⊙ m) a ⊙ (m ⊕ n) = (a ⊙ m) ⊕ (a ⊙ n) (a · b) ⊙ m = a ⊙ (b ⊙ m) 0 ⊙ m = 0 and 1 ⊙ m = m Definition The semiring K is NOETHERIAN if all subsemimodules of every finitely generated K-semimodule are again finitely generated.

Simulations of Weighted Tree Automata

  • Z. Ésik and A. Maletti

· 16

slide-33
SLIDE 33

Simulation vs. Equivalence

NOETHERIAN semiring

Definition A commutative monoid (M, ⊕, 0) together with an action ⊙: K × M → M is a K-semimodule if (a + b) ⊙ m = (a ⊙ m) ⊕ (b ⊙ m) a ⊙ (m ⊕ n) = (a ⊙ m) ⊕ (a ⊙ n) (a · b) ⊙ m = a ⊙ (b ⊙ m) 0 ⊙ m = 0 and 1 ⊙ m = m Definition The semiring K is NOETHERIAN if all subsemimodules of every finitely generated K-semimodule are again finitely generated.

Simulations of Weighted Tree Automata

  • Z. Ésik and A. Maletti

· 16

slide-34
SLIDE 34

Simulation vs. Equivalence

NOETHERIAN semiring (cont’d)

Example All of the following are NOETHERIAN: fields finitely generated commutative rings finite semirings Non-example natural numbers tropical semiring

Simulations of Weighted Tree Automata

  • Z. Ésik and A. Maletti

· 17

slide-35
SLIDE 35

Simulation vs. Equivalence

NOETHERIAN semiring (cont’d)

Example All of the following are NOETHERIAN: fields finitely generated commutative rings finite semirings Non-example natural numbers tropical semiring

Simulations of Weighted Tree Automata

  • Z. Ésik and A. Maletti

· 17

slide-36
SLIDE 36

Simulation vs. Equivalence

Main result

Theorem (cf. BÉAL, LOMBARDY, SAKAROVITCH 2006) Every NOETHERIAN semiring is proper. N is proper. Note (on theorem) There exists a single wta that simulates both wta. C A B equivalent simulates simulates

Simulations of Weighted Tree Automata

  • Z. Ésik and A. Maletti

· 18

slide-37
SLIDE 37

Simulation vs. Equivalence

Consequence

Theorem Let K be proper and finitely and effectively presented. Then equivalence of wta is decidable. Proof. Inequality is semi-decidable. Using the main result, equivalence is semi-decidable. ⇒ run in parallel ⇒ equivalence decidable Corollary Let K be NOETHERIAN and finitely and effectively presented. Then equivalence of wta is decidable.

Simulations of Weighted Tree Automata

  • Z. Ésik and A. Maletti

· 19

slide-38
SLIDE 38

Simulation vs. Equivalence

Consequence

Theorem Let K be proper and finitely and effectively presented. Then equivalence of wta is decidable. Proof. Inequality is semi-decidable. Using the main result, equivalence is semi-decidable. ⇒ run in parallel ⇒ equivalence decidable Corollary Let K be NOETHERIAN and finitely and effectively presented. Then equivalence of wta is decidable.

Simulations of Weighted Tree Automata

  • Z. Ésik and A. Maletti

· 19

slide-39
SLIDE 39

Simulation vs. Equivalence

Consequence (cont’d)

Theorem The tropical semiring is not proper. Proof. Inequality is semi-decidable. If proper, then equivalence is semi-decidable. ⇒ Equivalence is decidable. But Equivalence is undecidable by [KROB 1992].

Simulations of Weighted Tree Automata

  • Z. Ésik and A. Maletti

· 20

slide-40
SLIDE 40

Simulation vs. Equivalence

References (1/2)

BÉAL, LOMBARDY, SAKAROVITCH: On the equivalence of Z-automata. ICALP 2005 BÉAL, LOMBARDY, SAKAROVITCH: Conjugacy and equivalence of weighted automata and functional transducers. CSR 2006 BERSTEL, REUTENAUER: Recognizable formal power series on

  • trees. Theor. Comput. Sci. 18, 1982

BLOOM, ÉSIK: Iteration Theories: The Equational Logic of Iterative Processes. Springer, 1993 BOZAPALIDIS: Effective construction of the syntactic algebra of a recognizable series on trees. Acta Inform. 28, 1991 HÖGBERG, MALETTI, MAY: Bisimulation minimisation for weighted tree automata. DLT 2007

Simulations of Weighted Tree Automata

  • Z. Ésik and A. Maletti

· 21

slide-41
SLIDE 41

Simulation vs. Equivalence

References (2/2)

KOZEN: A completeness theorem for KLEENE algebras and the algebra of regular events. Inform. Comput. 110, 1994 KROB: The equality problem for rational series with multiplicities in the tropical semiring is undecidable. ICALP 1992 SEIDL: Deciding equivalence of finite tree automata. SIAM J.

  • Comput. 19, 1990

Thank you for your attention!

Simulations of Weighted Tree Automata

  • Z. Ésik and A. Maletti

· 22