In mathematics, a binary relation (or a dyadic relation) is an arbitrary association of elements of one set with elements of another (perhaps the same) set.
An example is the "divides" relation between the set of prime numbers P and the set of integers Z, in which every prime p is associated to every integer z that is a multiple of p. In this relation, for instance, the prime 2 is associated to -4, 0, 6, 10, but not with 1 or 9; and the prime 3 is associated with 0, 6, and 9, but not with 4 or 13.
Binary relations are used in many branches of mathematics to model concepts like "is greater than", "is equal to", and "divides" in arithmetic, "is congruent to" in geometry, "is adjacent to" in graph theory, and many more. The all-important concept of function is defined as a special case of binary relation. Binary relations are also heavily used in computer science, especially within the relational model for databases.
A binary relation is a special case of a k-ary relation, that is, a set of k-tuples where the jth component of each k-tuple is taken from the jth domain Xj of the relation.
In some systems of axiomatic set theory, relations are extended to classes, which are generalizations of sets. This extension is needed for, among other things, modeling the concepts of "is an element of" or "is a subset of" in set theory, without running into logical inconsistencies such as Russell's paradox.
The statement (x,y) ∈ G is read "x is R-related to y", and is denoted by xRy or R(x,y). The latter notation corresponds to viewing R as the characteristic function of the set of pairs G.
The order of the elements in each pair of G is important: if a ≠ b, then aRb and bRa can be true or false, independently of each other.
Some mathematicians do not consider the sets X and Y to be part of the relation, and therefore define a binary relation as being a subset of X×Y, i.e. just the graph G. According to this view, the set of pairs {(1,2),(1,3),(2,7)} is a relation from any set that contains {1,2} to any set that contains {2,3,7}.
Either approach is adequate for most uses, provided that one attends to the necessary changes in language, notation, and the definitions of concepts like restrictions, composition, inverse relation, and so on. The choice between the two definitions usually matters only in very formal contexts, like category theory.
Example: Suppose there are four objects: {ball, car, doll, gun} and four persons: {John, Mary, So, Venus}. Suppose that John owns the ball, Mary owns the doll, and Venus owns the car. No one owns the gun and So owns nothing. Then the binary relation "is owned by" is given as
Thus the first element of R is the set of objects, the second is the set of people, and the last element is a set of ordered pairs of the form ( object, owner ).
The pair (ball, John), denoted by ballRJohn means that the ball is owned by John.
Two different relations could have the same graph. For example: the relation
Nevertheless, R is usually identified or even defined as G(R) and "an ordered pair (x, y) ∈ G(R)" is usually denoted as "(x, y) ∈ R".
A binary relation that is functional is called a partial function; a binary relation that is both left-total and functional is called a function.
If X = Y then we simply say that the binary relation is over X. Or it is an endorelation over X.
Some important classes of binary relations over a set X are:
A relation which is reflexive, symmetric and transitive is called an equivalence relation. A relation which is reflexive, antisymmetric and transitive is called a partial order. A partial order which is total is called a total order or a linear order or a chain. A linear order in which every nonempty set has the least element is called a well-order.
A relation which is symmetric, transitive, and extendable is also reflexive.
If R is a binary relation over X, then each of the following are binary relations over X:
If R, S are binary relations over X and Y, then each of the following are binary relations:
If R is a binary relation over X and Y, and S is a binary relation over Y and Z, then the following is a binary relation over X and Z:
For example, if we try to model the general concept of "equality" as a binary relation , we must take the domain and codomain to be the "set of all sets", which is not a set in the usual set theory. The usual work-around to this problem is to select a "large enough" set A, that contains all the objects of interest, and work with the restriction instead of .
Similarly, the "subset of" relation needs to be restricted to have domain and codomain P(A) (the power set of a specific set A): the resulting set relation can be denoted . Also, the "member of" relation needs to be restricted to have domain A and codomain P(A) to obtain a binary relation which is a set.
Another solution to this problem is to use a set theory with proper classes, such as NBG or Morse-Kelley set theory, and allow the domain and codomain (and so the graph) to be proper classes: in such a theory, equality, membership, and subset are binary relations without special comment. (A minor modification needs to be made to the concept of the ordered triple (X, Y, G), as normally a proper class cannot be a member of an ordered tuple; or of course one can identify the function with its graph in this context.)
In most mathematical contexts, references to the relations of equality, membership and subset are harmless because they can be understood implicitly to be restricted to some set in the context.
Binární relace | Binaarne seos | Relación binaria | Relation binaire | Relazione binaria | יחס | 二項関係 | Бинарное отношение | Бінарне відношення | 二元关系
This article is licensed under the GNU Free Documentation License.
It uses material from the
"Binary relation".
Home Page • arts • business • computers • games • health • hospitals • home • kids & teens • news • physicians • recreation• reference • regional • science • shopping • society • sports • world