Rewriting system: Difference between revisions
No edit summary |
No edit summary |
||
| Line 7: | Line 7: | ||
Every rewriting system gives a [[presentation of a monoid]] as follows: the generating set is simply <math>\Sigma</math>, and the set of relations is simply that obtained by declaring that <math>u = v</math> for any pair <math>(u,v) \in R</math>. | Every rewriting system gives a [[presentation of a monoid]] as follows: the generating set is simply <math>\Sigma</math>, and the set of relations is simply that obtained by declaring that <math>u = v</math> for any pair <math>(u,v) \in R</math>. | ||
==Terminology== | |||
===Reduction=== | |||
Given a rewriting system <math>(\Sigma,R)</math>, a '''reduction''' for this rewriting system, is a pair <math>(u,v) \in \Sigma^* \times \Sigma^*</math> such that there exist <math>a,l,b,r \in \Sigma^*</math> such that <math>(l,r) \in R</math>, <math>u = alb</math> and <math>v = arb</math>. | |||
A reduction is said to be the '''identity reduction''' if <math>l=r</math>. | |||
Note that just saying <math>u = v</math> does ''not'' mean that the reduction is the identity reduction. | |||
The pair <math>(l,r)</math> is termed the '''rewrite rule''' associated with the reduction. | |||
A reduction <math>(u,v)</math> is typically denoted as <math>u \to v</math>. We often write reductions in sequence. For instance, if <math>(u,v)</math> is a reduction and <math>(v,w)</math> is a reduction, then we write: | |||
<math>u \to v \to w</math> | |||
We may even branch out multiple reductions. For instance, if <math>(u,v_1)</math> and <math>(u,v_2)</math> are reductions, then we can depict this by a diagram with an arrow from <math>u</math> to <math>v_1</math> and an arrow from <math>u</math> to <math>v_2</math>. | |||
===Irreducible word=== | |||
An irreducible word is a word such that the only reduction from it (if any) is the identity reduction. | |||
==Facts== | ==Facts== | ||
Revision as of 14:17, 28 May 2007
Definition
A rewriting system is the following data:
- A set called the set of generators or the alphabet (its elements are the letters). The set of words (sequences of finite length) is termed .
- A subset of . Each element of this subset is termed a rewrite
Every rewriting system gives a presentation of a monoid as follows: the generating set is simply , and the set of relations is simply that obtained by declaring that for any pair .
Terminology
Reduction
Given a rewriting system , a reduction for this rewriting system, is a pair such that there exist such that , and .
A reduction is said to be the identity reduction if .
Note that just saying does not mean that the reduction is the identity reduction.
The pair is termed the rewrite rule associated with the reduction.
A reduction is typically denoted as . We often write reductions in sequence. For instance, if is a reduction and is a reduction, then we write:
We may even branch out multiple reductions. For instance, if and are reductions, then we can depict this by a diagram with an arrow from to and an arrow from to .
Irreducible word
An irreducible word is a word such that the only reduction from it (if any) is the identity reduction.
Facts
Properties of rewriting systems
For a full list of properties of rewriting systems, refer: