Dependency relation

From HandWiki

In computer science, in particular in concurrency theory, a dependency relation is a binary relation on a finite domain Σ,[1]: 4  symmetric, and reflexive;[1]: 6  i.e. a finite tolerance relation. That is, it is a finite set of ordered pairs D, such that

  • If (a,b)D then (b,a)D (symmetric)
  • If aΣ, then (a,a)D (reflexive)

In general, dependency relations are not transitive; thus, they generalize the notion of an equivalence relation by discarding transitivity.

Σ is also called the alphabet on which D is defined. The independency induced by D is the binary relation I

I=(Σ×Σ)D

That is, the independency is the set of all ordered pairs that are not in D. The independency relation is symmetric and irreflexive. Conversely, given any symmetric and irreflexive relation I on a finite alphabet, the relation

D=(Σ×Σ)I

is a dependency relation.

The pair (Σ,D) is called the concurrent alphabet.[2]: 6  The pair (Σ,I) is called the independency alphabet or reliance alphabet, but this term may also refer to the triple (Σ,D,I) (with I induced by D).[3]: 6  Elements x,yΣ are called dependent if xDy holds, and independent, else (i.e. if xIy holds).[1]: 6 

Given a reliance alphabet (Σ,D,I), a symmetric and irreflexive relation can be defined on the free monoid Σ* of all possible strings of finite length by: xabyxbay for all strings x,yΣ* and all independent symbols a,bI. The equivalence closure of is denoted or (Σ,D,I) and called (Σ,D,I)-equivalence. Informally, pq holds if the string p can be transformed into q by a finite sequence of swaps of adjacent independent symbols. The equivalence classes of are called traces,[1]: 7–8  and are studied in trace theory.

Examples

200px|right Given the alphabet Σ={a,b,c}, a possible dependency relation is D={(a,b),(b,a),(a,c),(c,a),(a,a),(b,b),(c,c)}, see picture.

The corresponding independency is I={(b,c),(c,b)}. Then e.g. the symbols b,c are independent of one another, and e.g. a,b are dependent. The string acbba is equivalent to abcba and to abbca, but to no other string.

References

  1. 1.0 1.1 1.2 1.3 IJsbrand Jan Aalbersberg and Grzegorz Rozenberg (Mar 1988). "Theory of traces". Theoretical Computer Science 60 (1): 1–82. doi:10.1016/0304-3975(88)90051-5. 
  2. Vasconcelos, Vasco Thudichum (1992). Trace semantics for concurrent objects (MsC thesis). Keio University. CiteSeerX 10.1.1.47.7099.
  3. Mazurkiewicz, Antoni (1995). "Introduction to Trace Theory". in Rozenberg, G.; Diekert, V.. The Book of Traces. Singapore: World Scientific. ISBN 981-02-2058-8. http://www.cas.mcmaster.ca/~cas724/2007/paper2.pdf. Retrieved 18 April 2021.