In
mathematics
Mathematics is an area of knowledge that includes the topics of numbers, formulas and related structures, shapes and the spaces in which they are contained, and quantities and their changes. These topics are represented in modern mathematics ...
and
computer science
Computer science is the study of computation, automation, and information. Computer science spans theoretical disciplines (such as algorithms, theory of computation, information theory, and automation) to Applied science, practical discipli ...
, the syntactic monoid
of a
formal language
In logic, mathematics, computer science, and linguistics, a formal language consists of words whose letters are taken from an alphabet and are well-formed according to a specific set of rules.
The alphabet of a formal language consists of sy ...
is the smallest
monoid
In abstract algebra, a branch of mathematics, a monoid is a set equipped with an associative binary operation and an identity element. For example, the nonnegative integers with addition form a monoid, the identity element being 0.
Monoids ...
that
recognizes the language
.
Syntactic quotient
The
free monoid In abstract algebra, the free monoid on a set is the monoid whose elements are all the finite sequences (or strings) of zero or more elements from that set, with string concatenation as the monoid operation and with the unique sequence of zero eleme ...
on a given
set
Set, The Set, SET or SETS may refer to:
Science, technology, and mathematics Mathematics
*Set (mathematics), a collection of elements
*Category of sets, the category whose objects and morphisms are sets and total functions, respectively
Electro ...
is the monoid whose elements are all the
strings
String or strings may refer to:
*String (structure), a long flexible structure made from threads twisted together, which is used to tie, bind, or hang other objects
Arts, entertainment, and media Films
* ''Strings'' (1991 film), a Canadian anim ...
of zero or more elements from that set, with
string concatenation
In formal language theory and computer programming, string concatenation is the operation of joining character strings end-to-end. For example, the concatenation of "snow" and "ball" is "snowball". In certain formalisations of concatenati ...
as the monoid operation and the
empty string
In formal language theory, the empty string, or empty word, is the unique string of length zero.
Formal theory
Formally, a string is a finite, ordered sequence of characters such as letters, digits or spaces. The empty string is the special cas ...
as the
identity element
In mathematics, an identity element, or neutral element, of a binary operation operating on a set is an element of the set that leaves unchanged every element of the set when the operation is applied. This concept is used in algebraic structures su ...
. Given a
subset
In mathematics, Set (mathematics), set ''A'' is a subset of a set ''B'' if all Element (mathematics), elements of ''A'' are also elements of ''B''; ''B'' is then a superset of ''A''. It is possible for ''A'' and ''B'' to be equal; if they are ...
of a free monoid
, one may define sets that consist of formal left or right
inverses of elements in
. These are called
quotients, and one may define right or left quotients, depending on which side one is concatenating. Thus, the right quotient of
by an element
from
is the set
:
Similarly, the left quotient is
:
Syntactic equivalence
The syntactic quotient induces an
equivalence relation on
, called the syntactic relation, or syntactic equivalence (induced by
).
The ''right syntactic equivalence'' is the equivalence relation
:
.
Similarly, the ''left syntactic equivalence'' is
:
.
Observe that the ''right'' syntactic equivalence is a ''left''
congruence with respect to
string concatenation
In formal language theory and computer programming, string concatenation is the operation of joining character strings end-to-end. For example, the concatenation of "snow" and "ball" is "snowball". In certain formalisations of concatenati ...
and vice versa; i.e.,
for all
.
The syntactic congruence or
Myhill congruence
[Holcombe (1982) p.160] is defined as
[Lawson (2004) p.210]
:
.
The definition extends to a congruence defined by a subset
of a general monoid
. A disjunctive set is a subset
such that the syntactic congruence defined by
is the equality relation.
[Lawson (2004) p.232]
Let us call
the equivalence class of
for the syntactic congruence.
The syntactic congruence is
compatible
Compatibility may refer to:
Computing
* Backward compatibility, in which newer devices can understand data generated by older devices
* Compatibility card, an expansion card for hardware emulation of another device
* Compatibility layer, compo ...
with concatenation in the monoid, in that one has
:
for all
. Thus, the syntactic quotient is a
monoid morphism
In abstract algebra, a branch of mathematics, a monoid is a set equipped with an associative binary operation and an identity element. For example, the nonnegative integers with addition form a monoid, the identity element being 0.
Monoids ...
, and induces a
quotient monoid
In mathematics, a semigroup is an algebraic structure consisting of a set together with an associative internal binary operation on it.
The binary operation of a semigroup is most often denoted multiplicatively: ''x''·''y'', or simply ''xy ...
:
.
This monoid
is called the syntactic monoid of
.
It can be shown that it is the smallest
monoid
In abstract algebra, a branch of mathematics, a monoid is a set equipped with an associative binary operation and an identity element. For example, the nonnegative integers with addition form a monoid, the identity element being 0.
Monoids ...
that
recognizes ; that is,
recognizes
, and for every monoid
recognizing
,
is a quotient of a
submonoid of
. The syntactic monoid of
is also the
transition monoid In mathematics and theoretical computer science, a semiautomaton is a deterministic finite automaton having inputs but no output. It consists of a set ''Q'' of states, a set Σ called the input alphabet, and a function ''T'': ''Q'' × Σ → ''Q'' ...
of the
minimal automaton
In automata theory (a branch of theoretical computer science), DFA minimization is the task of transforming a given deterministic finite automaton (DFA) into an equivalent DFA that has a minimum number of states. Here, two DFAs are called equival ...
of
.
[Straubing (1994) p.55]
A group language is one for which the syntactic monoid is a group
A group is a number of persons or things that are located, gathered, or classed together.
Groups of people
* Cultural group, a group whose members share the same cultural identity
* Ethnic group, a group whose members share the same ethnic ide ...
.[Sakarovitch (2009) p.342]
Myhill–Nerode theorem
The Myhill–Nerode theorem
In the theory of formal languages, the Myhill–Nerode theorem provides a necessary and sufficient condition for a language to be regular. The theorem is named for John Myhill and Anil Nerode, who proved it at the University of Chicago in 1958 .
...
states: a language is regular if and only if the family of quotients is finite, or equivalently, the left syntactic equivalence has ''finite index'' (meaning it partitions into finitely many equivalence classes).
This theorem was first proved by Anil Nerode
Anil Nerode (born 1932) is an American mathematician. He received his undergraduate education and a Ph.D. in mathematics from the University of Chicago, the latter under the directions of Saunders Mac Lane. He enrolled in the Hutchins College at t ...
and the relation is thus referred to as Nerode congruence by some authors.
Proof
The proof of the "only if" part is as follows. Assume that a finite automaton
A finite-state machine (FSM) or finite-state automaton (FSA, plural: ''automata''), finite automaton, or simply a state machine, is a mathematical model of computation. It is an abstract machine that can be in exactly one of a finite number o ...
recognizing reads input , which leads to state . If is another string read by the machine, also terminating in the same state , then clearly one has . Thus, the number of elements in is at most equal to the number of states of the automaton and is at most the number of final states.
For a proof of the "if" part, assume that the number of elements in is finite. One can then construct an automaton where is the set of states, is the set of final states, the language is the initial state, and the transition function is given by . Clearly, this automaton recognizes .
Thus, a language is recognizable if and only if the set is finite. Note that this proof also builds the minimal automaton.
Examples
* Let be the language over of words of even length. The syntactic congruence has two classes, itself and , the words of odd length. The syntactic monoid is the group of order 2 on .[Straubing (1994) p.54]
* For the language , the minimal automaton has 4 states and the syntactic monoid has 15 elements.[Lawson (2004) pp.211-212]
* The bicyclic monoid In mathematics, the bicyclic semigroup is an algebraic object important for the structure theory of semigroups. Although it is in fact a monoid, it is usually referred to as simply a semigroup. It is perhaps most easily understood as the syntactic ...
is the syntactic monoid of the Dyck language
In the theory of formal languages of computer science, mathematics, and linguistics, a Dyck word is a balanced string of square brackets and The set of Dyck words forms the Dyck language.
Dyck words and language are named after the mathemati ...
(the language of balanced sets of parentheses).
* The free monoid In abstract algebra, the free monoid on a set is the monoid whose elements are all the finite sequences (or strings) of zero or more elements from that set, with string concatenation as the monoid operation and with the unique sequence of zero eleme ...
on (where ) is the syntactic monoid of the language , where is the reversal of the word . (For , one can use the language of square powers of the letter.)
* Every non-trivial finite monoid is homomorphic to the syntactic monoid of some non-trivial language, but not every finite monoid is isomorphic to a syntactic monoid.[Lawson (2004) p.233]
* Every finite group is isomorphic to the syntactic monoid of some regular language.[
* The language over in which the number of occurrences of and are congruent modulo is a group language with syntactic monoid .][
* ]Trace monoid In computer science, a trace is a set of strings, wherein certain letters in the string are allowed to commute, but others are not. It generalizes the concept of a string, by not forcing the letters to always be in a fixed order, but allowing certa ...
s are examples of syntactic monoids.
* Marcel-Paul Schützenberger
Marcel-Paul "Marco" Schützenberger (24 October 1920 – 29 July 1996) was a French mathematician and Doctor of Medicine. He worked in the fields of formal language, combinatorics, and information theory.Herbert Wilf, Dominique Foata, ''et al.' ...
characterized star-free language A regular language is said to be star-free if it can be described by a regular expression constructed from the letters of the alphabet, the empty set symbol, all boolean operators – including complementation – and concatenation but no ...
s as those with finite aperiodic
A periodic function is a function that repeats its values at regular intervals. For example, the trigonometric functions, which repeat at intervals of 2\pi radians, are periodic functions. Periodic functions are used throughout science to desc ...
syntactic monoids.[Straubing (1994) p.60]
References
*
*
*
*
*
* {{cite book , last=Straubing , first=Howard , title=Finite automata, formal logic, and circuit complexity , url=https://archive.org/details/finiteautomatafo0000stra , url-access=registration , series=Progress in Theoretical Computer Science , location=Basel , publisher=Birkhäuser , year=1994 , isbn=3-7643-3719-2 , zbl=0816.68086
Formal languages
Semigroup theory