Algebraic Automata Theory #1
Most intro courses to automata theory only cover the classical theory of authomata: DFAs, NFAs, regular expressions, their properties, and the conversions between them. But some important results in automata theory cannot be proved using only those methods. Sometimes we need to reach to the scary algebraic structures of semigroups and monoids.
Algebraic Automata Theory studies the (perhaps surprising) connection between automata and algebra. This series of posts are my personal notes as I try to learn AAT. I'm sure they contain many errors, but I hope that they are usefull to someone trying to learn it too.
Semigroups
Since we want to study the connection between algebra and automata, we need to start with some algebrai concepts.
Def: A semigroup is a pair where is a set and is an associative binary operation on , that is: $ a \cdot (b \cdot c) = (a \cdot b) \cdot c \qquad \forall a,b,c \in S$
Since the semigroup operation (often called "multiplication") is associative, we don't need to worry about parenthesis since the evaluation of expressions becomes unambiguous. It is common to use the notation to denote the multiplication of copies of .
Lemma: The following properties hold:
There are some important kinds of semigroup elements with certain properties:
- Left identities:
- Right identities:
- Left zeroes:
- Right zeroes:
- Identities:
- Zeroes:
Lemma: A semigroup can have, at most, one identity and one zero element.
Proof: Let be two identity elements. Then . The same argument applies to the other case.
A semigroup with identity is called a monoid (which are also important for automata theory):
Def: A monoid is a triple where is a set, is an associative binary operation on , and is an identity element, that is: $ a \cdot (b \cdot c) = (a \cdot b) \cdot c \qquad \forall a,b,c \in M$ $ a \cdot 1 = a = 1 \cdot a \qquad \forall a \in M$
Any semigroup can be turned into a monoid :
where is the identity of the monoid and the multiplication is extended accordingly.
There are other important kinds of semigroups:
- Finite Semigroups: the carrier set is finite
- Abelian Semigroups: the multiplication is commutative
- Groups: All elements have inverses
Another important kind of element of a semigroup are the idempotents. An element is said to be idempotent if . The set of idempotent elements of is denoted by .
Thm: Every finite semigroup has an idempotent element.
Proof: Let . Since is finite, the sequence must eventually become periodic with period . Let be the first integer such that . Let . Since , . Thus, is an idempotent element.
Homomorphisms
Perhaps the most important feature of modern mathematics is the study of not only structures, but also of the structure preserving maps between them:
Def: Let and be semigroups. A semigroup homomorphism is a function such that
This notion extends easily to monoids by requiring that the identity element is also preserved, i.e., .