SLIDE 1
Rationality & Recognisability An introduction to weighted - - PowerPoint PPT Presentation
Rationality & Recognisability An introduction to weighted - - PowerPoint PPT Presentation
Rationality & Recognisability An introduction to weighted automata theory Tutorial given at post-WATA 2014 Workshop Jacques Sakarovitch CNRS / Telecom ParisTech Part I The model of weighted automata Part II Rationality Part III
SLIDE 2
SLIDE 3
Part II Rationality
SLIDE 4
Part III Recognisability
SLIDE 5
Outline of Part III
◮ Representation and recognisable series.
- KS Theorem
◮ The reachability space and the control morphism
- The notion of action
◮ The observation morphism
- The notion of quotient and the minimal automaton
- The representation theorem
◮ The reduced representation
- The exploration procedure
- Decidability of equivalence for weighted automata
SLIDE 6
Recognisable series
K semiring A∗ free monoid
SLIDE 7
Recognisable series
K semiring A∗ free monoid
K-representation
Q finite µ: A∗ → KQ×
Q
morphism ( I, µ, T ) I ∈ K1
× Q
µ: A∗ → KQ×
Q
T ∈ KQ×
1
SLIDE 8
Recognisable series
K semiring A∗ free monoid
K-representation
Q finite µ: A∗ → KQ×
Q
morphism ( I, µ, T ) I ∈ K1
× Q
µ: A∗ → KQ×
Q
T ∈ KQ×
1
( I, µ, T ) realises (recognises) s ∈ K A∗
- ∀w ∈ A∗
s, w = I · µ(w) · T
SLIDE 9
Recognisable series
K semiring A∗ free monoid
K-representation
Q finite µ: A∗ → KQ×
Q
morphism ( I, µ, T ) I ∈ K1
× Q
µ: A∗ → KQ×
Q
T ∈ KQ×
1
( I, µ, T ) realises (recognises) s ∈ K A∗
- ∀w ∈ A∗
s, w = I · µ(w) · T
s ∈ K A∗ recognisable if s realised by a K-representation
SLIDE 10
Recognisable series
K semiring A∗ free monoid
K-representation
Q finite µ: A∗ → KQ×
Q
morphism ( I, µ, T ) I ∈ K1
× Q
µ: A∗ → KQ×
Q
T ∈ KQ×
1
( I, µ, T ) realises (recognises) s ∈ K A∗
- ∀w ∈ A∗
s, w = I · µ(w) · T
s ∈ K A∗ recognisable if s realised by a K-representation KRec A∗ ⊆ K A∗
- submodule of recognisable series
SLIDE 11
Recognisable series
K semiring A∗ free monoid
K-representation
Q finite µ: A∗ → KQ×
Q
morphism ( I, µ, T ) I ∈ K1
× Q
µ: A∗ → KQ×
Q
T ∈ KQ×
1
( I, µ, T ) realises (recognises) s ∈ K A∗
- ∀w ∈ A∗
s, w = I · µ(w) · T
Example
I =
- 1
- ,
µ(a) = 1 1
- ,
µ(b) = 1 1 1
- ,
T = 1
- ( I, µ, T )
realises
- w∈A∗
|w|b w ∈ KRec A∗
SLIDE 12
Recognisable series
K semiring M monoid
K-representation
Q finite µ: A∗ → KQ×
Q
morphism ( I, µ, T ) I ∈ K1
× Q
µ: A∗ → KQ×
Q
T ∈ KQ×
1
( I, µ, T ) realises (recognises) s ∈ K A∗
- ∀w ∈ A∗
s, w = I · µ(w) · T
SLIDE 13
Recognisable series
K semiring M monoid
K-representation
Q finite µ: M → KQ×
Q
morphism ( I, µ, T ) I ∈ K1
× Q
µ: M → KQ×
Q
T ∈ KQ×
1
( I, µ, T ) realises (recognises) s ∈ K A∗
- ∀w ∈ A∗
s, w = I · µ(w) · T
SLIDE 14
Recognisable series
K semiring M monoid
K-representation
Q finite µ: M → KQ×
Q
morphism ( I, µ, T ) I ∈ K1
× Q
µ: M → KQ×
Q
T ∈ KQ×
1
( I, µ, T ) realises (recognises) s ∈ K M
- ∀m ∈ M
s, m = I · µ(m) · T
SLIDE 15
Recognisable series
K semiring M monoid
K-representation
Q finite µ: M → KQ×
Q
morphism ( I, µ, T ) I ∈ K1
× Q
µ: M → KQ×
Q
T ∈ KQ×
1
( I, µ, T ) realises (recognises) s ∈ K M
- ∀m ∈ M
s, m = I · µ(m) · T
s ∈ K M recognisable if s realised by a K-representation
SLIDE 16
Recognisable series
K semiring M monoid
K-representation
Q finite µ: M → KQ×
Q
morphism ( I, µ, T ) I ∈ K1
× Q
µ: M → KQ×
Q
T ∈ KQ×
1
( I, µ, T ) realises (recognises) s ∈ K M
- ∀m ∈ M
s, m = I · µ(m) · T
s ∈ K M recognisable if s realised by a K-representation KRec M ⊆ K M
- submodule of recognisable series
SLIDE 17
The key lemma
K semiring A∗ free monoid
SLIDE 18
The key lemma
K semiring A∗ free monoid µ: A∗ → KQ×
Q
defined by {µ(a)}a∈A arbitrary
SLIDE 19
The key lemma
K semiring M monoid µ: A∗ → KQ×
Q
defined by {µ(a)}a∈A arbitrary
SLIDE 20
The key lemma
K semiring M monoid µ: M → KQ×
Q
defined by
?
SLIDE 21
The key lemma
K semiring A∗ free monoid µ: A∗ → KQ×
Q
defined by {µ(a)}a∈A
SLIDE 22
The key lemma
K semiring A∗ free monoid µ: A∗ → KQ×
Q
defined by {µ(a)}a∈A
Lemma
µ: A∗ → KQ×
Q
X =
- a∈A
µ(a)a ∀w ∈ A∗ X ∗, w = µ(w)
SLIDE 23
Automata are matrices
p q b a b 2a 2b
C1
C1 = I1, E1, T1 =
- 1
- ,
a + b b 2a + 2b
- ,
1
- .
SLIDE 24
Automata over free monoids are representations
p q b a b 2a 2b
C1
C1 = I1, E1, T1 =
- 1
- ,
a + b b 2a + 2b
- ,
1
- .
E1 = 1 2
- a +
1 1 2
- b
SLIDE 25
Automata over free monoids are representations
p q b a b 2a 2b
C1
C1 = I1, E1, T1 =
- 1
- ,
a + b b 2a + 2b
- ,
1
- .
E1 = 1 2
- a +
1 1 2
- b
C1 = ( I1, µ1, T1 ) µ1(a) = 1 2
- ,
µ1(b) = 1 1 2
SLIDE 26
Automata over free monoids are representations
p q b a b 2a 2b
C1
C1 = I1, E1, T1 =
- 1
- ,
a + b b 2a + 2b
- ,
1
- .
E1 = 1 2
- a +
1 1 2
- b
C1 = ( I1, µ1, T1 ) µ1(a) = 1 2
- ,
µ1(b) = 1 1 2
- C1 = I1 · E1∗ · T1 =
- w∈A∗
(I1 · µ1(w) · T1)w
SLIDE 27
Automata over free monoids are representations
p q b a b 2a 2b
C1
C1 = I1, E1, T1 =
- 1
- ,
a + b b 2a + 2b
- ,
1
- .
E1 = 1 2
- a +
1 1 2
- b
C1 = ( I1, µ1, T1 ) µ1(a) = 1 2
- ,
µ1(b) = 1 1 2
- C1 = I1 · E1∗ · T1 =
- w∈A∗
(I1 · µ1(w) · T1)w C1 ∈ KRec A∗
SLIDE 28
Automata over free monoids are representations
p q b a b 2a 2b
C1
C1 = I1, E1, T1 =
- 1
- ,
a + b b 2a + 2b
- ,
1
- .
E1 = 1 2
- a +
1 1 2
- b
C1 = ( I1, µ1, T1 ) µ1(a) = 1 2
- ,
µ1(b) = 1 1 2
- Conversely, representations are automata
SLIDE 29
The Kleene-Sch¨ utzenberger Theorem
Fundamental Theorem of Finite Automata and Key Lemma yield
SLIDE 30
The Kleene-Sch¨ utzenberger Theorem
Fundamental Theorem of Finite Automata and Key Lemma yield
Theorem A finite ⇒ KRec A∗ = KRat A∗
SLIDE 31
The Kleene-Sch¨ utzenberger Theorem
Fundamental Theorem of Finite Automata and Key Lemma yield
Theorem A finite ⇒ KRec A∗ = KRat A∗
KRat A∗ K RatE A∗ KWA (A∗) KRec A∗
standard elimination key lemma
SLIDE 32
Action of a monoid on a set
SLIDE 33
The reachability set
A = ( I, µ, T )
SLIDE 34
The reachability set
A = ( I, µ, T ) Reachability set Reachability space RA = {I · µ(w)| w ∈ A∗} RA ⊆ KQ
- RA
SLIDE 35
The reachability set
A = ( I, µ, T ) Reachability set Reachability space RA = {I · µ(w)| w ∈ A∗} RA ⊆ KQ
- RA
- A∗ acts on RA :
(I · µ(w)) · a = (I · µ(w)) · µ(a) = I · µ(w a)
SLIDE 36
The reachability set
A = ( I, µ, T ) Reachability set Reachability space RA = {I · µ(w)| w ∈ A∗} RA ⊆ KQ
- RA
- A∗ acts on RA :
(I · µ(w)) · a = (I · µ(w)) · µ(a) = I · µ(w a)
This action turns RA into a deterministic automaton
- A
(possibly infinite)
SLIDE 37
The reachability set
C1 = ( I1, µ1, T1 )
- 1
- 1
1
- 1
3
- 1
7
- 1
6
- 1
2
- 1
5
- 1
4
- 1 0
1 2 3 4 5 6 7 a b a b a b a b
- C1
SLIDE 38
The reachability set
A = ( I, µ, T ) Reachability set Reachability space RA = {I · µ(w)| w ∈ A∗} RA ⊆ KQ
- RA
- RA is turned into a deterministic automaton
- A
SLIDE 39
The reachability set
A = ( I, µ, T ) Reachability set Reachability space RA = {I · µ(w)| w ∈ A∗} RA ⊆ KQ
- RA
- RA is turned into a deterministic automaton
- A
If K = B ,
- A is the (classical) determinisation of A
SLIDE 40
The reachability set
A = ( I, µ, T ) Reachability set Reachability space RA = {I · µ(w)| w ∈ A∗} RA ⊆ KQ
- RA
- RA is turned into a deterministic automaton
- A
If K = B ,
- A is the (classical) determinisation of A
If K is locally finite, RA and
- A are finite.
SLIDE 41
The reachability set
A = ( I, µ, T ) Reachability set Reachability space RA = {I · µ(w)| w ∈ A∗} RA ⊆ KQ
- RA
- RA is turned into a deterministic automaton
- A
If K = B ,
- A is the (classical) determinisation of A
If K is locally finite, RA and
- A are finite.
Counting in a locally finite semiring is not really counting
SLIDE 42
The control morphism
A = ( I, µ, T ) Reachability set Reachability space RA = {I · µ(w)| w ∈ A∗} RA ⊆ KQ
- RA
SLIDE 43
The control morphism
A = ( I, µ, T ) Reachability set Reachability space RA = {I · µ(w)| w ∈ A∗} RA ⊆ KQ
- RA
- ΨA : KA∗ −
→ KQ ∀w ∈ A∗ ΨA(w) = I · µ(w)
SLIDE 44
The control morphism
A = ( I, µ, T ) Reachability set Reachability space RA = {I · µ(w)| w ∈ A∗} RA ⊆ KQ
- RA
- ΨA : KA∗ −
→ KQ ∀w ∈ A∗ ΨA(w) = I · µ(w) RA = ΨA(A∗) Im ΨA = ΨA(KA∗) =
- RA
SLIDE 45
The control morphism
A = ( I, µ, T ) Reachability set Reachability space RA = {I · µ(w)| w ∈ A∗} RA ⊆ KQ
- RA
- ΨA : KA∗ −
→ KQ ∀w ∈ A∗ ΨA(w) = I · µ(w) RA = ΨA(A∗) Im ΨA = ΨA(KA∗) =
- RA
- KA∗
KQ ΨA
The control morphism
SLIDE 46
The control morphism
A = ( I, µ, T ) Reachability set Reachability space RA = {I · µ(w)| w ∈ A∗} RA ⊆ KQ
- RA
- ΨA : KA∗ −
→ KQ ∀w ∈ A∗ ΨA(w) = I · µ(w) RA = ΨA(A∗) Im ΨA = ΨA(KA∗) =
- RA
- KA∗
KQ ΨA w x ΨA
The control morphism
SLIDE 47
The control morphism
A = ( I, µ, T ) Reachability set Reachability space RA = {I · µ(w)| w ∈ A∗} RA ⊆ KQ
- RA
- ΨA : KA∗ −
→ KQ ∀w ∈ A∗ ΨA(w) = I · µ(w) RA = ΨA(A∗) Im ΨA = ΨA(KA∗) =
- RA
- KA∗
KA∗ KQ ΨA A∗ w w a x ΨA
The control morphism
SLIDE 48
The control morphism
A = ( I, µ, T ) Reachability set Reachability space RA = {I · µ(w)| w ∈ A∗} RA ⊆ KQ
- RA
- ΨA : KA∗ −
→ KQ ∀w ∈ A∗ ΨA(w) = I · µ(w) RA = ΨA(A∗) Im ΨA = ΨA(KA∗) =
- RA
- KA∗
KA∗ KQ KQ ΨA ΨA A∗ A∗ w w a x x · µ(a) ΨA ΨA
The control morphism is a morphism of actions
SLIDE 49
Quotient of series
s ∈ K A∗
- u ∈ A∗
u−1 s =
- w∈A∗
s, u w w
SLIDE 50
Quotient of series
s ∈ K A∗
- a1a2a3 . . . an
The input belongs to a free monoid A∗
SLIDE 51
Quotient of series
s ∈ K A∗
- a1
a2a3 . . . an
The input belongs to a free monoid A∗
SLIDE 52
Quotient of series
s ∈ K A∗
- a1a2
a3 . . . an
The input belongs to a free monoid A∗
SLIDE 53
Quotient of series
s ∈ K A∗
- a1a2 . . . an
The input belongs to a free monoid A∗
SLIDE 54
Quotient of series
s s ∈ K A∗
- The input belongs to a free monoid A∗
SLIDE 55
Quotient of series
s ∈ K A∗
- s, a1 . . . an = k
The input belongs to a free monoid A∗
SLIDE 56
Quotient of series
s ∈ K A∗
- a1a2
a3 . . . an
SLIDE 57
Quotient of series
s ∈ K A∗
- a1a2
a3 . . . an
SLIDE 58
Quotient of series
s ∈ K A∗
- a1a2
a3 . . . an
SLIDE 59
Quotient of series
s s ∈ K A∗
- a1a2
SLIDE 60
Quotient of series
s ∈ K A∗
- s, a1 . . . an = k
SLIDE 61
Quotient of series
s′ ∈ K A∗
- a1a2
a3 . . . an
SLIDE 62
Quotient of series
s′ s′ ∈ K A∗
- a1a2
SLIDE 63
Quotient of series
k = s′, a3 . . . an = s, a1a2a3 . . . an
a1a2
k
SLIDE 64
Quotient of series
k = s′, a3 . . . an = s, a1a2a3 . . . an s′ = [a1a2]−1s
a1a2
k The series s′ is the quotient of s by a1a2
SLIDE 65
Quotient of series
s ∈ K A∗
- u v
SLIDE 66
Quotient of series
u
v
SLIDE 67
Quotient of series
k = s′, v = s, u v
SLIDE 68
Quotient of series
k = s′, v = s, u v s′ = u−1s The series s′ is the quotient of s by u
SLIDE 69
Quotient of series
s ∈ K A∗
- u ∈ A∗
u−1 s =
- w∈A∗
s, u w w
SLIDE 70
Quotient of series
s ∈ K A∗
- u ∈ A∗
u−1 s =
- w∈A∗
s, u w w u−1 : K A∗ − → K A∗
- endomorphism of K-modules
SLIDE 71
Quotient of series
s ∈ K A∗
- u ∈ A∗
u−1 s =
- w∈A∗
s, u w w u−1 : K A∗ − → K A∗
- endomorphism of K-modules
u−1 (s + t) = u−1 s + u−1 t u−1 (k s) = k (u−1 s)
SLIDE 72
Quotient of series
s ∈ K A∗
- u ∈ A∗
u−1 s =
- w∈A∗
s, u w w u−1 : K A∗ − → K A∗
- endomorphism of K-modules
K A∗
- K
A∗
- A∗
s u−1s
Quotient is a (right) action of A∗ on K A∗
SLIDE 73
Quotient of series
s ∈ K A∗
- u ∈ A∗
u−1 s =
- w∈A∗
s, u w w u−1 : K A∗ − → K A∗
- endomorphism of K-modules
K A∗
- K
A∗
- A∗
s u−1s
Quotient is a (right) action of A∗ on K A∗
- (u v)−1 s = v −1 (u−1 s)
SLIDE 74
The minimal automaton
s ∈ K A∗
- Rs =
- u−1 s
- u ∈ A∗
SLIDE 75
The minimal automaton
s ∈ K A∗
- Rs =
- u−1 s
- u ∈ A∗
Quotient turns Rs into the minimal automaton As of s (possibly infinite)
SLIDE 76
The observation morphism
A = ( I, µ, T ) ΦA : KQ − → K A∗
- ΦA(x) = ( x, µ, T ) =
- w∈A∗
(x·µ(w)·T)w
SLIDE 77
The observation morphism
A = ( I, µ, T ) ΦA : KQ − → K A∗
- ΦA(x) = ( x, µ, T ) =
- w∈A∗
(x·µ(w)·T)w s = ( I, µ, T ) = ΦA(I) w−1s = ( I · µ(w), µ, T )
SLIDE 78
The observation morphism
A = ( I, µ, T ) ΦA : KQ − → K A∗
- ΦA(x) = ( x, µ, T ) =
- w∈A∗
(x·µ(w)·T)w s = ( I, µ, T ) = ΦA(I) w−1s = ( I · µ(w), µ, T ) w−1ΦA(x) = ΦA(x · µ(w))
SLIDE 79
The observation morphism
A = ( I, µ, T ) ΦA : KQ − → K A∗
- ΦA(x) = ( x, µ, T ) =
- w∈A∗
(x·µ(w)·T)w w−1ΦA(x) = ΦA(x · µ(w))
KQ K A∗
- ΦA
x t ΦA
SLIDE 80
The observation morphism
A = ( I, µ, T ) ΦA : KQ − → K A∗
- ΦA(x) = ( x, µ, T ) =
- w∈A∗
(x·µ(w)·T)w w−1ΦA(x) = ΦA(x · µ(w))
KQ KQ K A∗
- K
A∗
- ΦA
ΦA A∗ A∗ x x · µ(a) t a−1t ΦA ΦA
The observation morphism is a morphism of actions
SLIDE 81
The observation morphism
A = ( I, µ, T ) ΦA : KQ − → K A∗
- ΦA(x) = ( x, µ, T ) =
- w∈A∗
(x·µ(w)·T)w w−1ΦA(x) = ΦA(x · µ(w))
KA∗ KA∗ KQ KQ K A∗
- K
A∗
- ΨA
ΦA ΨA ΦA A∗ A∗ A∗ w w a x x · µ(a) t a−1t ΨA ΦA ΨA ΦA
The observation morphism is a morphism of actions
SLIDE 82
The representation theorem
U ⊆ K A∗
- submodule
U stable (by quotient)
Theorem (Fliess 71, Jacob 74)
s ∈ KRec A∗ ⇐ ⇒ ∃U stable finitely generated s ∈ U
SLIDE 83
The representation theorem
U ⊆ K A∗
- submodule
U stable (by quotient)
Theorem (Fliess 71, Jacob 74)
s ∈ KRec A∗ ⇐ ⇒ ∃U stable finitely generated s ∈ U KA∗ KA∗ KQ KQ K A∗
- K
A∗
- ΨA
ΦA ΨA ΦA A∗ A∗ A∗
SLIDE 84
The representation theorem
U ⊆ K A∗
- submodule
U stable (by quotient)
Theorem (Fliess 71, Jacob 74)
s ∈ KRec A∗ = ⇒ ∃U stable finitely generated s ∈ U 1A∗ ∈ KA∗ KA∗ I ∈ Im ΨA KQ KQ s ∈ ΦA(Im ΨA) K A∗
- K
A∗
- ΨA
ΦA ΨA ΦA A∗ A∗ A∗
SLIDE 85
The representation theorem
U ⊆ K A∗
- submodule
U stable (by quotient)
Theorem (Fliess 71, Jacob 74)
s ∈ KRec A∗ ⇐ = ∃U stable finitely generated s ∈ U KA∗ KA∗ KQ KQ K A∗
- K
A∗
- ΨA
ΦA ΨA ΦA A∗ A∗ A∗
SLIDE 86
The representability theorem for recognisable series Proposition
A = I, µ, T dimension Q s = A
- RA
- generated by G ⊂ KQ
∃ AG of dimension G s = AG A
MG
⇐ = AG
SLIDE 87
The exploration procedure
K-automaton A = I, µ, T Search for P ⊆ A∗ KA∗ P Im ΨA KQ ΨA(P) generating set of Im ΨA ΨA ΨA
SLIDE 88
The exploration procedure
K-automaton A = I, µ, T Search for P ⊆ A∗ KA∗ P Im ΨA KQ ΨA(P) generating set of Im ΨA ΨA ΨA Halting criterium
SLIDE 89
The exploration procedure
K-automaton A = I, µ, T Search for P ⊆ A∗ KA∗ P Im ΨA KQ ΨA(P) generating set of Im ΨA ΨA ΨA Halting criterium
◮ B finite
finite Im ΨA
SLIDE 90
The exploration procedure
K-automaton A = I, µ, T Search for P ⊆ A∗ KA∗ P Im ΨA KQ ΨA(P) generating set of Im ΨA ΨA ΨA Halting criterium
◮ B finite
finite Im ΨA
◮ F field
finite dimension
SLIDE 91
The exploration procedure
K-automaton A = I, µ, T Search for P ⊆ A∗ KA∗ P Im ΨA KQ
- ΨA(P)
- generating set of Im ΨA
ΨA ΨA Halting criterium
◮ B finite
finite Im ΨA
◮ F field
finite dimension
◮ Z ED
Noetherian
SLIDE 92
The exploration procedure
K-automaton A = I, µ, T Search for P ⊆ A∗ KA∗ P Im ΨA KQ
- ΨA(P)
- generating set of Im ΨA
ΨA ΨA Halting criterium
◮ B finite
finite Im ΨA
◮ F field
finite dimension
◮ Z ED
Noetherian
◮ N
well partial ordered set
SLIDE 93
The exploration procedure
K-automaton A = I, µ, T Search for P ⊆ A∗ KA∗ P Im ΨA KQ
- ΨA(P)
- generating set of Im ΨA
ΨA ΨA Result A
MP
⇐ = C
SLIDE 94
Computation of an example
j r s u
C2
b a b 2a 2b 2b 2a 2b 4a 4b b 2b b
SLIDE 95
Computation of an example
j r s u
C2
b a b 2a 2b 2b 2a 2b 4a 4b b 2b b
I =
- 1
- µ(a) =
1 2 2 4 µ(b) = 1 1 1 1 2 2 2 2 4 T = 1
SLIDE 96
Reduced representation
A = ( I, µ, T ) A is reduced if its dimension is minimal (among all equivalent representations)
We suppose now that K is a (skew) field Proposition A is reduced iff ΨA is surjective and ΦA injective Theorem A reduced representation of A is effectively computable (with cubic complexity) Corollary Equivalence of K-recognisable series is decidable
SLIDE 97
Equivalence of weighted automata
Equivalence of weighted automata with weights in the Boolean semiring B decidable a subsemiring of a field decidable (Z, min, +) undecidable Rat B∗ undecidable NRat B∗ decidable
SLIDE 98
Equivalence of weighted automata
Equivalence of weighted automata with weights in the Boolean semiring B decidable a subsemiring of a field decidable (Z, min, +) undecidable Rat B∗ undecidable NRat B∗ decidable Equivalence of transducers undecidable transducers with multiplicity in N decidable functional transducers decidable finitely ambiguous (Z, min, +) decidable
SLIDE 99
The 1W kT Turing machine
p
State Finite control