Math 2.0

Computer science Definition

Rewriting system

Builds on Binary relationTransitive closureEquivalence relation

Definition

An abstract rewriting system is a pair (A,→)(A, \to) of a set AA and a binary relation →\to on AA, called the rewrite relation or reduction. For a,b∈Aa, b \in A:

  1. a→∗ba \to^* b means that bb is reachable from aa in zero or more steps; →∗\to^* is the reflexive and transitive closure of →\to;
  2. a↔∗ba \leftrightarrow^* b means that aa and bb are related by the smallest equivalence relation containing →\to;
  3. aa is a normal form if there is no c∈Ac \in A with a→ca \to c. Then bb is a normal form of aa if a→∗ba \to^* b and bb is a normal form.

The system is terminating, or strongly normalizing, if there is no infinite chain a0→a1→a2→⋯a_0 \to a_1 \to a_2 \to \cdots.

Remarks

Example: A={a,b}∗A = \set{a, b}^* with u→vu \to v when vv arises from uu by replacing one occurrence of baba by abab. It is terminating, since each step lowers the number of pairs of positions i<ji < j with a bb at ii and an aa at jj. The normal forms are the words ambna^m b^n. Non-example of termination: A={x,y}A = \set{x, y} with x→yx \to y and y→xy \to x, which has the infinite chain x→y→x→⋯x \to y \to x \to \cdots and no normal form. A string rewriting system over an alphabet Σ\Sigma is a set of pairs of words l→rl \to r, inducing ulv→urvu l v \to u r v on Σ∗\Sigma^*; a term rewriting system rewrites terms in the same way.

Reading path

To understand this page from the ground up, read these 4 pages in order. The foundations come first.

Show the path as a graph
Each page uses the pages above it. The colour of the bar on a box shows how strong the evidence is, and the box also gives it as text. The list has the same pages.
  • no evidence level
  1. Binary relation concept
  2. Equivalence relation concept
  3. Transitive closure concept
  4. Rewriting system definition

Further reading

  1. Web https://en.wikipedia.org/wiki/Rewriting, Abstract rewriting systems
About this page
Tag82N5ZEWENZ
URIm2://82N5ZEWENZ
Kinddefinition
WritingW0 stub
MSC68Q42, 03D03
DefinesRewriting system
UsesBinary relation, Transitive closure, Equivalence relation
Changed3 November 2026

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • an inventory row: the row of the inventory that the node accounts for (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

No page links to this page yet.