Dependency relation explained
In computer science, in particular in concurrency theory, a dependency relation is a binary relation on a finite domain
,
[1] symmetric, and
reflexive;
[1] i.e. a finite
tolerance relation. That is, it is a finite set of
ordered pairs
, such that
then
(symmetric)
, then
(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
is defined. The
independency induced by
is the binary relation
I=(\Sigma x \Sigma)\setminusD
That is, the independency is the set of all ordered pairs that are not in
. The independency relation is symmetric and irreflexive. Conversely, given any symmetric and irreflexive relation
on a finite alphabet, the relation
D=(\Sigma x \Sigma)\setminusI
is a dependency relation.
The pair
is called the
concurrent alphabet.
[2] The pair
is called the
independency alphabet or
reliance alphabet, but this term may also refer to the triple
(with
induced by
).
[3] Elements
are called
dependent if
holds, and
independent, else (i.e. if
holds).
[1] Given a reliance alphabet
, a symmetric and irreflexive relation
can be defined on the
free monoid
of all possible strings of finite length by:
for all strings
and all independent symbols
. The equivalence closure of
is denoted
or
and called
-equivalence. Informally,
holds if the string
can be transformed into
by a finite sequence of swaps of adjacent independent symbols. The
equivalence classes of
are called
traces,
[1] and are studied in
trace theory.
Examples
200px|rightGiven the alphabet
, 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
. Then e.g. the symbols
are independent of one another, and e.g.
are dependent. The string
is equivalent to
and to
, but to no other string.
Notes and References
- 10.1016/0304-3975(88)90051-5 . IJsbrand Jan Aalbersberg and Grzegorz Rozenberg . Theory of traces . Theoretical Computer Science . 60 . 1 . 1 - 82 . Mar 1988 . free .
- Vasconcelos . Vasco Thudichum . 1992 . Trace semantics for concurrent objects . MsC . Keio University. 10.1.1.47.7099.
- Book: Mazurkiewicz . Antoni . Rozenberg . G. . Diekert . V. . The Book of Traces . 1995 . World Scientific . Singapore . 981-02-2058-8 . http://www.cas.mcmaster.ca/~cas724/2007/paper2.pdf . 18 April 2021 . Introduction to Trace Theory.