Syntactic monoid

In mathematics and computer science, the syntactic monoid of a formal language is the smallest monoid that recognizes the language .