Dependency relation
{{Short description|Binary relation in computer science}}
{{other uses|Dependency (disambiguation)}}
{{hatnote|Not to be confused with Dependence relation, which is a generalization of the concept of linear dependence among members of a vector space.}}
In computer science, in particular in concurrency theory, a dependency relation is a binary relation on a finite domain ,{{cite journal | doi=10.1016/0304-3975(88)90051-5 | author=IJsbrand Jan Aalbersberg and Grzegorz Rozenberg | title=Theory of traces | journal=Theoretical Computer Science | volume=60 | number=1 | pages=1–82 | date=Mar 1988 | doi-access=free }}{{rp|4}} symmetric, and reflexive;{{rp|6}} i.e. a finite tolerance relation. That is, it is a finite set of ordered pairs , such that
- If then (symmetric)
- If , 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
:
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.{{cite thesis |last=Vasconcelos |first=Vasco Thudichum |date=1992 |title=Trace semantics for concurrent objects |degree=MsC |publisher=Keio University|citeseerx=10.1.1.47.7099}}{{rp|6}} The pair is called the independency alphabet or reliance alphabet, but this term may also refer to the triple (with induced by ).{{cite book |last1=Mazurkiewicz |first1=Antoni |editor1-last=Rozenberg |editor1-first=G. |editor2-last=Diekert |editor2-first=V. |title=The Book of Traces |date=1995 |publisher=World Scientific |location=Singapore |isbn=981-02-2058-8 |chapter-url=http://www.cas.mcmaster.ca/~cas724/2007/paper2.pdf |access-date=18 April 2021 |chapter=Introduction to Trace Theory}}{{rp|6}} Elements are called dependent if holds, and independent, else (i.e. if holds).{{rp|6}}
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,{{rp|7–8}} and are studied in trace theory.
Examples
file:Relación de dependencia.svg
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}}