introduction to weighted automata theory
play

Introduction to weighted automata theory Lectures given at the - PowerPoint PPT Presentation

Introduction to weighted automata theory Lectures given at the 19th Estonian Winter School in Computer Science Jacques Sakarovitch CNRS / Telecom ParisTech Based on Chapter III Chapter 4 The presentation is very much inspired by a joint


  1. Richness of the model of weighted automata ◮ B ‘classic’ automata ◮ N ‘usual’ counting ◮ Z , Q , R numerical multiplicity ◮ � Z ∪ + ∞ , min , + � Min-plus automata ◮ � Z , min , max � fuzzy automata ◮ P ( B ∗ ) = B � � B ∗ � � transducers � B ∗ � ◮ N � � weighted transducers ◮ P ( F ( B )) pushdown automata

  2. Another example 0 a 1 a 0 0 � A ∗ � L 1 ∈ Z min � � L 1 p q 1 b 0 b

  3. Another example 0 a 1 a 0 0 � A ∗ � L 1 ∈ Z min � � L 1 p q 1 b 0 b 1 b 0 a 1 b 0 0 − − → p − − − → p − − − → p − − − → p − − → 0 b 1 a 0 b 0 0 − − → q − − − → q − − − → q − − − → q − − →

  4. Another example 0 a 1 a 0 0 � A ∗ � L 1 ∈ Z min � � L 1 p q 1 b 0 b 1 b 0 a 1 b 0 0 − − → p − − − → p − − − → p − − − → p − − → 0 b 1 a 0 b 0 0 − − → q − − − → q − − − → q − − − → q − − → ◮ Weight of a path c : product, that is, the sum , of the weights of transitions in c ◮ Weight of a word w : sum, that is, the min of the weights of paths with label w .

  5. Another example 0 a 1 a 0 0 � A ∗ � L 1 ∈ Z min � � L 1 p q 1 b 0 b 1 b 0 a 1 b 0 0 − − → p − − − → p − − − → p − − − → p − − → 0 b 1 a 0 b 0 0 − − → q − − − → q − − − → q − − − → q − − → ◮ Weight of a path c : product, that is, the sum , of the weights of transitions in c ◮ Weight of a word w : sum, that is, the min of the weights of paths with label w . L 1 : A ∗ − b ab �− → min(1 + 0 + 1 , 0 + 1 + 0) = 1 → Z min

  6. Another example 0 a 1 a 0 0 � A ∗ � L 1 ∈ Z min � � L 1 p q 1 b 0 b 1 b 0 a 1 b 0 0 − − → p − − − → p − − − → p − − − → p − − → 0 b 1 a 0 b 0 0 − − → q − − − → q − − − → q − − − → q − − → ◮ Weight of a path c : product, that is, the sum , of the weights of transitions in c ◮ Weight of a word w : sum, that is, the min of the weights of paths with label w . C 1 = 01 A ∗ + 0 a + 0 b + 1 ab + 1 b a + 0 b b + · · · + 1 b ab + · · ·

  7. Series play the role of languages � A ∗ � � plays the role of P ( A ∗ ) K �

  8. Weighted automata theory is linear algebra of computer science

  9. The Turing Machine equivalent to finite transducers Finite control p State a 1 a 2 a 3 a 4 a n $ k 1 k 2 k 3 k 4 k l $ Direction of movement of the k read heads The 1 way k tape Turing Machine (1WkTM)

  10. Outline of the lectures 1. Rationality 2. Recognisability 3. Reduction and equivalence 4. Morphisms of automata

  11. Lecture II Rationality

  12. Outline of Lecture II ◮ The set of series K � � A ∗ � � is a K -algebra. ◮ Automata are (essentially) matrices: A = � I , E , T � ◮ Computing the behaviour of an automaton boils down to solving a linear system X = E · X + T ( s ) ◮ Solving the linear system ( s ) amounts to invert the matrix ( Id − E ) (hence the name rational) ◮ The inversion of Id − E is realised by an infinite sum Id + E + E 2 + E 3 + · · · : the star of E ◮ What can be computed by a finite automaton is exactly what can be computed by the star operation (together with the algebra operations)

  13. � A ∗ � The semiring K � � A ∗ free monoid K semiring s : A ∗ → K � A ∗ � s ∈ K � � s : w �− → � s , w � � � s , w � w s = w ∈ A ∗ Point-wise addition � s + t , w � = � s , w � + � t , w � � Cauchy product � s t , w � = � s , u �� t , v � u v = w { ( u , v ) | u v = w } finite ⇒ = Cauchy product well-defined � A ∗ � K � � is a semiring

  14. The semiring K � � M � � K semiring M monoid s ∈ K � � M � � s : M → K s : m �− → � s , m � � � s , w � w s = m ∈ M Point-wise addition � s + t , m � = � s , m � + � t , m � � Cauchy product � s t , m � = � s , x �� t , y � x y = m ∀ m { ( x , y ) | x y = m } finite ⇒ = Cauchy product well-defined

  15. The semiring K � � M � � Conditions for { ( x , y ) | x y = m } finite for all m Definition M is graded if M equipped with a length function ϕ ϕ ( mm ′ ) = ϕ ( m ) + ϕ ( m ′ ) ϕ : M → N M f.g. and graded = ⇒ K � � M � � is a semiring Examples M trace monoid, then K � � M � � is a semiring � A ∗ × B ∗ � K � � is a semiring F ( A ) , the free group on A , is not graded

  16. The algebra K � � M � � K semiring M f.g. graded monoid s : A ∗ → K � A ∗ � s ∈ K � � s : w �− → � s , w � � � s , w � w s = w ∈ A ∗ Point-wise addition � s + t , m � = � s , m � + � t , m � � Cauchy product � s t , m � = � s , x �� t , y � x y = m External multiplication � k s , m � = k � s , m � K � � M � � is an algebra

  17. The star operation � t ∗ = t n t ∈ K n ∈ N How to define infinite sums ? One possible solution Topology on K Definition of summable families and of their sum t ∗ defined { t n } n ∈ N summable if Other possible solutions axiomatic definition of star, equational definition of star

  18. The star operation � t ∗ = t n t ∈ K n ∈ N

  19. The star operation � t ∗ = t n t ∈ K n ∈ N (0 K ) ∗ = 1 K ◮ ∀ K x ∗ not defined. ◮ K = N ∀ x � = 0 x ∗ = ∞ . ◮ K = N = N ∪ { + ∞} ∀ x � = 0 2 ) ∗ = 2 with the natural topology, ◮ K = Q ( 1 2 ) ∗ is undefined with the discrete topology. ( 1

  20. The star operation � t ∗ = t n t ∈ K n ∈ N In any case t ∗ = 1 K + t t ∗ Star has the same flavor as the inverse If K is a ring t ∗ (1 K − t ) = 1 K 1 K 1 K − t = 1 K + t + t 2 + · · · + t n + · · ·

  21. Star of series � When is s ∗ = s n defined ? � A ∗ � s ∈ K � � n ∈ N � A ∗ � Topology on K yields topology on K � � s 0 = � s , 1 A ∗ � = 0 K s proper s ∗ defined s proper = ⇒

  22. Rational series K � A ∗ � ⊆ K � � A ∗ � � subalgebra of polynomials K Rat A ∗ K � A ∗ � closure of under ◮ sum ◮ product ◮ exterior multiplication ◮ and star K Rat A ∗ ⊆ K � � A ∗ � � subalgebra of rational series

  23. Fundamental theorem of finite automata Theorem s ∈ K Rat A ∗ ∃A ∈ WA ( A ∗ ) ⇐ ⇒ s = | | |A| | |

  24. Fundamental theorem of finite automata Theorem s ∈ K Rat A ∗ ∃A ∈ WA ( A ∗ ) ⇐ ⇒ s = | | |A| | | Kleene theorem ?

  25. Fundamental theorem of finite automata Theorem s ∈ K Rat A ∗ ∃A ∈ WA ( A ∗ ) ⇐ ⇒ s = | | |A| | | Kleene theorem ? Theorem M finitely generated graded monoid s ∈ K Rat M ⇐ ⇒ ∃A ∈ WA ( M ) s = | | |A| | |

  26. Automata are matrices a 2 a b C 1 p q b 2 b �� � a + b � � 0 �� � b C 1 = � I 1 , E 1 , T 1 � = 1 0 . , , 0 2 a + 2 b 1

  27. Automata are matrices A = � I , E , T � E = incidence matrix

  28. Automata are matrices A = � I , E , T � E = incidence matrix Notation wl ( x ) = weighted label of x In our model, e transition ⇒ wl ( e ) = k a

  29. Automata are matrices A = � I , E , T � E = incidence matrix Notation wl ( x ) = weighted label of x In our model, e transition ⇒ wl ( e ) = k a � E p , q = { wl ( e ) | e transition from p to q }

  30. Automata are matrices A = � I , E , T � E = incidence matrix Notation wl ( x ) = weighted label of x In our model, e transition ⇒ wl ( e ) = k a � E p , q = { wl ( e ) | e transition from p to q } Lemma � En p , q = { wl ( c ) | c computation from p to q of length n }

  31. Automata are matrices A = � I , E , T � E = incidence matrix � E p , q = { wl ( e ) | e transition from p to q }

  32. Automata are matrices A = � I , E , T � E = incidence matrix � E p , q = { wl ( e ) | e transition from p to q } � E ∗ = E n n ∈ N � E ∗ p , q = { wl ( c ) | c computation from p to q }

  33. Automata are matrices A = � I , E , T � E = incidence matrix � E p , q = { wl ( e ) | e transition from p to q } � E ∗ = E n n ∈ N � E ∗ p , q = { wl ( c ) | c computation from p to q } A = I · E ∗ · T

  34. Automata are matrices K semiring M graded monoid K Q × Q � � Q × Q K � � M � is isomorphic to � M � � E ∗ defined � Q × Q E ∈ K � � M � E proper = ⇒

  35. Automata are matrices K semiring M graded monoid K Q × Q � � Q × Q K � � M � is isomorphic to � M � � E ∗ defined � Q × Q E ∈ K � � M � E proper = ⇒ Theorem The entries of E ∗ are in the rational closure of the entries of E

  36. Fundamental theorem of finite automata K semiring M graded monoid K Q × Q � � Q × Q K � � M � is isomorphic to � M � � E ∗ defined � Q × Q E ∈ K � � M � E proper = ⇒ Theorem The entries of E ∗ are in the rational closure of the entries of E Theorem The family of behaviours of weighted automata over M with coefficients in K is rationally closed.

  37. The collect theorem K � � A ∗ × B ∗ � � is isomorphic to [ K � � B ∗ � � ] � � A ∗ � � Theorem Under the above isomorphism, K Rat A ∗ × B ∗ corresponds to [ K Rat B ∗ ] Rat A ∗

  38. Lecture III Recognisability

  39. Outline of Lecture III ◮ Representation and recognisable series. ◮ Automata over free monoids are representations ◮ The notion of action and deterministic automata ◮ The reachability space and the control morphism ◮ The notion of quotient and the minimal automaton ◮ The observation morphism ◮ The representation theorem

  40. Recognisable series A ∗ free monoid K semiring

  41. Recognisable series A ∗ free monoid K semiring K -representation µ : A ∗ → K Q × Q Q finite morphism µ : A ∗ → K Q × I ∈ K 1 × Q Q T ∈ K Q × 1 ( I , µ, T )

  42. Recognisable series A ∗ free monoid K semiring K -representation µ : A ∗ → K Q × Q Q finite morphism µ : A ∗ → K Q × I ∈ K 1 × Q Q T ∈ K Q × 1 ( I , µ, T ) s ∈ K � � A ∗ � � ( I , µ, T ) realises (recognises) ∀ w ∈ A ∗ � s , w � = I · µ ( w ) · T

  43. Recognisable series A ∗ free monoid K semiring K -representation µ : A ∗ → K Q × Q Q finite morphism µ : A ∗ → K Q × I ∈ K 1 × Q Q T ∈ K Q × 1 ( I , µ, T ) s ∈ K � � A ∗ � � ( I , µ, T ) realises (recognises) ∀ w ∈ A ∗ � s , w � = I · µ ( w ) · T s ∈ K � � A ∗ � � recognisable if s realised by a K -representation

  44. Recognisable series A ∗ free monoid K semiring K -representation µ : A ∗ → K Q × Q Q finite morphism µ : A ∗ → K Q × I ∈ K 1 × Q Q T ∈ K Q × 1 ( I , µ, T ) s ∈ K � � A ∗ � � ( I , µ, T ) realises (recognises) ∀ w ∈ A ∗ � s , w � = I · µ ( w ) · T s ∈ K � � A ∗ � � recognisable if s realised by a K -representation K Rec A ∗ ⊆ K � � A ∗ � � submodule of recognisable series

  45. Recognisable series A ∗ free monoid K semiring K -representation µ : A ∗ → K Q × Q Q finite morphism µ : A ∗ → K Q × I ∈ K 1 × Q Q T ∈ K Q × 1 ( I , µ, T ) s ∈ K � � A ∗ � � ( I , µ, T ) realises (recognises) ∀ w ∈ A ∗ � s , w � = I · µ ( w ) · T Example � 1 � � 1 � � 0 � � � 0 1 I = 1 0 µ ( a ) = µ ( b ) = T = , , , 0 1 0 1 1 � ∈ K Rec A ∗ | w | b w ( I , µ, T ) realises w ∈ A ∗

  46. Recognisable series K semiring M monoid K -representation µ : A ∗ → K Q × Q Q finite morphism µ : A ∗ → K Q × I ∈ K 1 × Q Q T ∈ K Q × 1 ( I , µ, T ) s ∈ K � � A ∗ � � ( I , µ, T ) realises (recognises) ∀ w ∈ A ∗ � s , w � = I · µ ( w ) · T

  47. Recognisable series K semiring M monoid K -representation µ : M → K Q × Q Q finite morphism I ∈ K 1 × Q µ : M → K Q × Q T ∈ K Q × 1 ( I , µ, T ) s ∈ K � � A ∗ � � ( I , µ, T ) realises (recognises) ∀ w ∈ A ∗ � s , w � = I · µ ( w ) · T

  48. Recognisable series K semiring M monoid K -representation µ : M → K Q × Q Q finite morphism I ∈ K 1 × Q µ : M → K Q × Q T ∈ K Q × 1 ( I , µ, T ) s ∈ K � � M � � ( I , µ, T ) realises (recognises) ∀ m ∈ M � s , m � = I · µ ( m ) · T

  49. Recognisable series K semiring M monoid K -representation µ : M → K Q × Q Q finite morphism I ∈ K 1 × Q µ : M → K Q × Q T ∈ K Q × 1 ( I , µ, T ) s ∈ K � � M � � ( I , µ, T ) realises (recognises) ∀ m ∈ M � s , m � = I · µ ( m ) · T s ∈ K � � M � � recognisable if s realised by a K -representation

  50. Recognisable series K semiring M monoid K -representation µ : M → K Q × Q Q finite morphism I ∈ K 1 × Q µ : M → K Q × Q T ∈ K Q × 1 ( I , µ, T ) s ∈ K � � M � � ( I , µ, T ) realises (recognises) ∀ m ∈ M � s , m � = I · µ ( m ) · T s ∈ K � � M � � recognisable if s realised by a K -representation K Rec M ⊆ K � � M � � submodule of recognisable series

  51. The key lemma A ∗ free monoid K semiring

  52. The key lemma A ∗ free monoid K semiring µ : A ∗ → K Q × Q { µ ( a ) } a ∈ A defined by

  53. The key lemma K semiring M monoid µ : A ∗ → K Q × Q { µ ( a ) } a ∈ A defined by

  54. The key lemma K semiring M monoid ? µ : M → K Q × Q defined by

  55. The key lemma A ∗ free monoid K semiring µ : A ∗ → K Q × Q { µ ( a ) } a ∈ A defined by

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend