In
computer science, in particular in
concurrency theory, a dependency relation is a
binary relation
In mathematics, a binary relation associates elements of one set, called the ''domain'', with elements of another set, called the ''codomain''. A binary relation over Set (mathematics), sets and is a new set of ordered pairs consisting of ele ...
on a finite domain
,
symmetric, and
reflexive;
i.e. a finite
tolerance relation. That is, it is a finite set of
ordered pair
In mathematics, an ordered pair (''a'', ''b'') is a pair of objects. The order in which the objects appear in the pair is significant: the ordered pair (''a'', ''b'') is different from the ordered pair (''b'', ''a'') unless ''a'' = ''b''. (In con ...
s
, such that
* If
then
(symmetric)
* If
, then
(reflexive)
In general, dependency relations are not
transitive; thus, they generalize the notion of an
equivalence relation
In mathematics, an equivalence relation is a binary relation that is reflexive, symmetric and transitive. The equipollence relation between line segments in geometry is a common example of an equivalence relation.
Each equivalence relation ...
by discarding transitivity.
is also called the
alphabet on which
is defined. The independency induced by
is the binary relation
:
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
:
is a dependency relation.
The pair
is called the concurrent alphabet. The pair
is called the independency alphabet or reliance alphabet, but this term may also refer to the triple
(with
induced by
).
Elements
are called dependent if
holds, and independent, else (i.e. if
holds).
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 class
In mathematics, when the elements of some set S have a notion of equivalence (formalized as an equivalence relation), then one may naturally split the set S into equivalence classes. These equivalence classes are constructed so that elements a ...
es of
are called
traces,
and are studied in
trace theory.
Examples
200px, right
Given the alphabet
, a possible dependency relation is
, 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.
References
{{reflist
Binary relations