FACTOID # 102: Kids in Mali spend only 2 years in school. More than half of them start working between the ages of 10 and 14.
 
 Home   Encyclopedia   Statistics   Countries A-Z   Flags   Maps   Education   Forum   FAQ   About 
 
 
 
WHAT'S NEW
RECENT ARTICLES
More Recent Articles »
 

SEARCH ALL

FACTS & STATISTICS    Advanced view

Search encyclopedia, statistics and forums:

 

 

(* = Graphable)

 

 


Encyclopedia > Confluence (term rewriting)

Confluence is a property of term rewriting systems, describing that terms in this system can be rewritten in more than one way, to yield the same result. Rewriting in mathematics, computer science and logic covers a wide range of non-deterministic methods of replacing subterms of a formula with other terms. ...

Contents


Motivating example

Consider the rules of regular arithmetic. We can think of these rules as forming a rewriting system. Suppose we are given the expression

(11 + 9) times (2 + 4)

We can rewrite this expression in two ways -- either simplifying the first bracket, or the second. Simplifying the first bracket, we have

20 times (2 + 4) = 20 times 6 = 120

Simplifying the second, gives

(11 + 9) times 6 = 20 times 6 = 120

We get the same result from rewriting the term in two different ways. This suggests that the rewriting system formed from regular arithmetic is a confluent rewriting system.


General case and theory

Confluence diagram

We can think of a rewriting system abstractly as being a set S, together with a relation R which is a subset of S×S. Instead of denoting relations as pairs (s, t), with s,tS, we write si t, where i is from some index set I. If uS, and uj v for some jI, then we say v is a reduct of u (alternatively v is an expansion of u, or u is reduced to v). We can also think of a chain of reductions of some element: if wS, then we may have

w rightarrow_{i_1} w_1 rightarrow_{i_2} w_2 rightarrow_{i_3} cdots

where ikI. We call this chain a reduction sequence, or just a reduction of w. If the reduction sequence terminates, say in wn, we write

w rightarrow^*_I w_n,

reflecting that relations in I were chosen. If I is clear from context then we can omit this subscript.


With this established, confluence can be defined as follows. Let a, b, cS, with a →* b and a →* c. If a is confluent, there exists a dA with b →* d and c →* d. If every aS is confluent, we say that → is confluent, or has the Church-Rosser property. This property is also called the diamond property, after the shape of the diagram shown on the right. This shape is a rhombus In geometry, a rhombus (also known as a rhomb) is a quadrilateral in which all of the sides are of equal length. ...


Variations

A number of variations on the idea of confluence exist. These are important since they enable us to draw equivalences between confluence in the sense above and these variations.


We have local confluence (also known as weak confluence), which states that, given a, b, cS, ab and ac, and a is locally confluent, there exists a dA with b →* d and c →* d. If every aS is confluent, then we say that → is locally confluent, or has the weak Church-Rosser property. This is different from confluence in that b and c must be reduced from a in one step. In analogy with this, confluence is sometimes known as global confluence.


If → is confluent, then →* is weakly confluent, and vice versa.


Local confluence can hold in some system, but global confluence may not hold.


See also

  • critical pair

References

  • Term Rewriting Systems, Terese, Cambridge Tracts in Theoretical Computer Science, 2003

External links



 
 

COMMENTARY     


Share your thoughts, questions and commentary here
Your name
Your comments

Want to know more?
Search encyclopedia, statistics and forums:

 


Lesson Plans | Student Area | Student FAQ | Reviews | Press Releases |  Feeds | Contact
The Wikipedia article included on this page is licensed under the GFDL.
Images may be subject to relevant owners' copyright.
All other elements are (c) copyright NationMaster.com 2003-5. All Rights Reserved.
Usage implies agreement with terms, 1022, m