Misplaced Pages

Overlap (term rewriting)

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
Situation in which there are contradictory ways of reducing a mathematical expression

In mathematics, computer science and logic, overlap, as a property of the reduction rules in term rewriting system, describes a situation where a number of different reduction rules specify potentially contradictory ways of reducing a reducible expression, also known as a redex, within a term.

More precisely, if a number of different reduction rules share function symbols on the left-hand side, overlap can occur. Often we do not consider trivial overlap with a redex and itself.

Examples

Consider the term rewriting system defined by the following reduction rules:

ρ 1   :   f ( g ( x ) , y ) y {\displaystyle \rho _{1}\ :\ f(g(x),y)\rightarrow y}
ρ 2   :   g ( x ) f ( x , x ) {\displaystyle \rho _{2}\ :\ g(x)\rightarrow f(x,x)}

The term f ( g ( x ) , y ) {\displaystyle f(g(x),y)} can be reduced via ρ1 to yield y, but it can also be reduced via ρ2 to yield f ( f ( x , x ) , y ) . {\displaystyle f(f(x,x),y).} . Note how the redex g ( x ) {\displaystyle g(x)} is contained in the redex f ( g ( x ) , y ) {\displaystyle f(g(x),y)} . The result of reducing different redexes is described in a what is known as a critical pair; the critical pair arising out of this term rewriting system is ( f ( f ( x , x ) , y ) , y ) {\displaystyle (f(f(x,x),y),y)} .

Overlap may occur with fewer than two reduction rules.

Consider the term rewriting system defined by the following reduction rule:

ρ 1   :   g ( g ( x ) ) x {\displaystyle \rho _{1}\ :\ g(g(x))\rightarrow x}

The term g ( g ( g ( x ) ) ) {\displaystyle g(g(g(x)))} has overlapping redexes, which can be either applied to the innermost occurrence or to the outermost occurrence of the g ( g ( x ) ) {\displaystyle g(g(x))} term.

References

  1. Marc Bezem; Jan Willem Klop; Roel de Vrijer (2003). Term Rewriting Systems. Cambridge Tracts in Theoretical Computer Science. Cambridge, UK: Cambridge University Press. p. 48. ISBN 0-521-39115-6.


Stub icon

This mathematical logic-related article is a stub. You can help Misplaced Pages by expanding it.

Categories: