In
mathematics,
computer science
Computer science is the study of computation, automation, and information. Computer science spans theoretical disciplines (such as algorithms, theory of computation, information theory, and automation) to practical disciplines (includin ...
and
logic
Logic is the study of correct reasoning. It includes both formal and informal logic. Formal logic is the science of deductively valid inferences or of logical truths. It is a formal science investigating how conclusions follow from premis ...
, overlap, as a property of the reduction rules in
term rewriting system
In mathematics, computer science, and logic, rewriting covers a wide range of methods of replacing subterms of a formula with other terms. Such methods may be achieved by rewriting systems (also known as rewrite systems, rewrite engines, or red ...
, 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:
:
:
The term
can be reduced via ρ
1 to yield , but it can also be reduced via ρ
2 to yield
. Note how the redex
is contained in the redex
. 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
.
Overlap may occur with fewer than two reduction rules.
Consider the term rewriting system defined by the following reduction rule:
:
The term
has overlapping redexes, which can be either applied to the innermost occurrence or to the outermost occurrence of the
term.
References
Rewriting systems
{{mathlogic-stub