Algebraic Approach To Automata Theory: Deepak D'Souza
Algebraic Approach To Automata Theory: Deepak D'Souza
Deepak D’Souza
11 September 2018
Overview Recognition via monoid morphisms Transition monoid Syntactic Monoid First-Order Definable Languages
Outline
1 Overview
3 Transition monoid
4 Syntactic Monoid
Monoids
(f ◦ g )(x) = g (f (x)).
Overview Recognition via monoid morphisms Transition monoid Syntactic Monoid First-Order Definable Languages
Monoid morphisms
ϕ(w ) = |w |
L = ϕ−1 (X ).
◦ 1 m
1 1 m
m m m
7→ 1
w 7→ m for w ∈ A+ .
◦ 1 m
1 1 m
m m m
7→ 1
w 7→ m for w ∈ A+ .
Exercise
Show that the language of odd a’s over the alpbabet A = {a, b} is
recognizable.
Overview Recognition via monoid morphisms Transition monoid Syntactic Monoid First-Order Definable Languages
Transition Monoid of a DA
fw (q) = δ(q,
b w ).
1 2
b
b a
3 a, b
(a + b)∗ a (a + b)∗ ab
(a + b)∗ bb
Overview Recognition via monoid morphisms Transition monoid Syntactic Monoid First-Order Definable Languages
Claim
For a canonical DA A = (Q, s, δ, F ),
fu = fv iff u ∼
=L v .
Proof:
By definition the element fu of the transition monoid of the
canonical DA is δ(b , u).
xuy ∈ L iff (fx ◦ fu ◦ fy )(s) ∈ F (in other words, δ(s,
b xuy ) ∈ F ) in
the canonical DA iff (fx ◦ fv ◦ fy )(s) ∈ F in the canonical DA iff
xvy ∈ L
Thus the syntactic congruence u ∼ =L v matches the equality
fu = fv derived from the canonical DA.
Overview Recognition via monoid morphisms Transition monoid Syntactic Monoid First-Order Definable Languages
[u] ◦ [v ] = [uv ],
Claim
The monoids M(L) and A∗ / ∼
=L are isomorphic.
Theorem
Let L ⊆ A∗ . Then the following are equivalent:
1 L is regular
2 The syntactic monoid of L, i.e. M(L), is finite.
3 L is recognized by a finite monoid.
Proof:
Overview Recognition via monoid morphisms Transition monoid Syntactic Monoid First-Order Definable Languages
Theorem
Let L ⊆ A∗ . Then the following are equivalent:
1 L is regular
2 The syntactic monoid of L, i.e. M(L), is finite.
3 L is recognized by a finite monoid.
Proof:
(1) =⇒ (2): since A≡L is finite, and hence so is M(L).
Overview Recognition via monoid morphisms Transition monoid Syntactic Monoid First-Order Definable Languages
Theorem
Let L ⊆ A∗ . Then the following are equivalent:
1 L is regular
2 The syntactic monoid of L, i.e. M(L), is finite.
3 L is recognized by a finite monoid.
Proof:
(1) =⇒ (2): since A≡L is finite, and hence so is M(L).
(2) =⇒ (3): Define morphism ϕ : A∗ → M(L), given by w 7→ fw .
Overview Recognition via monoid morphisms Transition monoid Syntactic Monoid First-Order Definable Languages
Theorem
Let L ⊆ A∗ . Then the following are equivalent:
1 L is regular
2 The syntactic monoid of L, i.e. M(L), is finite.
3 L is recognized by a finite monoid.
Proof:
(1) =⇒ (2): since A≡L is finite, and hence so is M(L).
(2) =⇒ (3): Define morphism ϕ : A∗ → M(L), given by w 7→ fw .
(3) =⇒ (1): Let L be recognized by a finite monoid (M, ◦, 1), via
a morphism ϕ and X ⊆ M. Define a DFA A = (M, 1, δ, X ), where
δ(m, a) = m ◦ ϕ(a).
Overview Recognition via monoid morphisms Transition monoid Syntactic Monoid First-Order Definable Languages
M0
N
1 1
Theorem
Let L ⊆ A∗ . Then L is recognized by a monoid M iff M(L) divides
M.
Overview Recognition via monoid morphisms Transition monoid Syntactic Monoid First-Order Definable Languages
FO-definable languages
DFA MSO
McNaughton, Paper 1971
CF FO Kamp1968
LTL
Schutzenberger 1965
AP SF
Overview Recognition via monoid morphisms Transition monoid Syntactic Monoid First-Order Definable Languages
m2 m2
m m5 m
m6
Periodic Aperiodic
Examples:
◦ 1 m ◦ 1 m
1 1 m 1 1 m
m m 1 m m m
q2
q0
u
u
q3
q4
u
b b
a
1 2
b
b a e o
a
Overview Recognition via monoid morphisms Transition monoid Syntactic Monoid First-Order Definable Languages
s ::= ∅ | a | s + s | s · s | s ∩ s | s,
1 2
b
b a
3 a, b
Star-Free ERE:
{} ∪ (aA∗ ∩ A∗ b ∩ A∗ (aa + bb)A∗ ).
Note that A∗ is short-hand for ∅ (what about {}?).