Please note that the content of this book primarily consists of articles
available from Wikipedia or other free sources online. In theoretical
computer science and mathematical logic a string rewriting system (SRS),
historically called a semi-Thue system, is a rewriting system over
strings from a (usually finite) alphabet. Given a binary relation R
between fixed strings in the alphabet, called rewrite rules, denoted by
s\rightarrow t, an SRS extends the rewriting relation to all strings in
which the left- and right-hand side of the rules appear as substrings,
that is usv\rightarrow utv, where s, t, u, and v are strings. The notion
of a semi-Thue system essentially coincides with the presentation of a
monoid. Thus they constitute a natural framework for solving the word
problem for monoids and groups.