Relation (mathematics)

Last updated
Illustration of an example relation on a set A = { a, b, c, d }. An arrow from x to y indicates that the relation holds between x and y. The relation is represented by the set { (a,a), (a,b), (a,d), (b,a), (b,d), (c,b), (d,c), (d,d) } of ordered pairs. Relacion binaria 01.svg
Illustration of an example relation on a set A = { a, b, c, d }. An arrow from x to y indicates that the relation holds between x and y. The relation is represented by the set { (a,a),(a,b),(a,d),(b,a),(b,d),(c,b),(d,c),(d,d) } of ordered pairs.

In mathematics, a relation on a set may, or may not, hold between two given members of the set. As an example, "is less than" is a relation on the set of natural numbers; it holds, for instance, between the values 1 and 3 (denoted as 1 < 3), and likewise between 3 and 4 (denoted as 3 < 4), but not between the values 3 and 1 nor between 4 and 4, that is, 3 < 1 and 4 < 4 both evaluate to false. As another example, "is sister of" is a relation on the set of all people, it holds e.g. between Marie Curie and Bronisława Dłuska, and likewise vice versa. Set members may not be in relation "to a certain degree" – either they are in relation or they are not.

Contents

Formally, a relation R over a set X can be seen as a set of ordered pairs (x,y) of members of X. [1] The relation R holds between x and y if (x,y) is a member of R. For example, the relation "is less than" on the natural numbers is an infinite set Rless of pairs of natural numbers that contains both (1,3) and (3,4), but neither (3,1) nor (4,4). The relation "is a nontrivial divisor of" on the set of one-digit natural numbers is sufficiently small to be shown here: Rdv = { (2,4), (2,6), (2,8), (3,6), (3,9), (4,8) }; for example 2 is a nontrivial divisor of 8, but not vice versa, hence (2,8) ∈ Rdv, but (8,2) ∉ Rdv.

If R is a relation that holds for x and y one often writes xRy. For most common relations in mathematics, special symbols are introduced, like "<" for "is less than", and "|" for "is a nontrivial divisor of", and, most popular "=" for "is equal to". For example, "1 < 3", "1 is less than 3", and "(1,3) ∈ Rless" mean all the same; some authors also write "(1,3) ∈ (<)".

Various properties of relations are investigated. A relation R is reflexive if xRx holds for all x, and irreflexive if xRx holds for no x. It is symmetric if xRy always implies yRx, and asymmetric if xRy implies that yRx is impossible. It is transitive if xRy and yRz always implies xRz. For example, "is less than" is irreflexive, asymmetric, and transitive, but neither reflexive nor symmetric. "is sister of" is transitive, but neither reflexive (e.g. Pierre Curie is not a sister of himself), nor symmetric, nor asymmetric; while being irreflexive or not may be a matter of definition (is every woman a sister of herself?), "is ancestor of" is transitive, while "is parent of" is not. Mathematical theorems are known about combinations of relation properties, such as "a transitive relation is irreflexive if, and only if, it is asymmetric".

Of particular importance are relations that satisfy certain combinations of properties. A partial order is a relation that is reflexive, antisymmetric, and transitive, [2] an equivalence relation is a relation that is reflexive, symmetric, and transitive, [3] a function is a relation that is univalent and left-total (see below). [4] [5]

Since relations are sets, they can be manipulated using set operations, including union, intersection, and complementation, leading to the algebra of sets. Furthermore, the calculus of relations includes the operations of taking the converse and composing relations. [6] [7] [8]

The above concept of relation [lower-alpha 1] has been generalized to admit relations between members of two different sets ( heterogeneous relation , like "lies on" between the set of all points and that of all lines in geometry), relations between three or more sets ( finitary relation , like "person x lives in town y at time z"), and relations between classes [lower-alpha 2] (like "is an element of" on the class of all sets, see Binary relation § Sets versus classes ).

Definition

Given a set X, a relation R over X is a set of ordered pairs of elements from X, formally: R ⊆ { (x,y) | x, yX }. [1] [9]

The statement (x,y) ∈ R reads "x is R-related to y" and is written in infix notation as xRy. [6] [7] The order of the elements is important; if xy then yRx can be true or false independently of xRy. For example, 3 divides 9, but 9 does not divide 3.

Representation of relations

The representation of the relation Rel = { (x,y) [?] R x R | x + xy + y = 1 } as a 2D-plot yields an ellipse. Rotated ellipse bg red.svg
The representation of the relation Rel ={ (x,y) ∈ R × R|x + xy + y = 1 } as a 2D-plot yields an ellipse.
y
x
1234612
1Dark Red x.svgYes check.svgYes check.svgYes check.svgYes check.svgYes check.svg
2Dark Red x.svgDark Red x.svgDark Red x.svgYes check.svgYes check.svgYes check.svg
3Dark Red x.svgDark Red x.svgDark Red x.svgDark Red x.svgYes check.svgYes check.svg
4Dark Red x.svgDark Red x.svgDark Red x.svgDark Red x.svgDark Red x.svgYes check.svg
6Dark Red x.svgDark Red x.svgDark Red x.svgDark Red x.svgDark Red x.svgYes check.svg
12Dark Red x.svgDark Red x.svgDark Red x.svgDark Red x.svgDark Red x.svgDark Red x.svg
Representation of Rdiv
as a Boolean matrix
Representation Rdiv as Hasse diagram (black lines) and directed graph (all lines) Relation repr 12div svg.svg
Representation Rdiv as Hasse diagram (black lines) and directed graph (all lines)

A relation R on a finite set X may be represented as:

A transitive [lower-alpha 3] relation R on a finite set X may be also represented as

For example, on the set of all divisors of 12, define the relation Rdiv by

xRdivy if x is a divisor of y and xy.

Formally, X = { 1, 2, 3, 4, 6, 12 } and Rdiv = { (1,2), (1,3), (1,4), (1,6), (1,12), (2,4), (2,6), (2,12), (3,6), (3,12), (4,12), (6,12) }. The representation of Rdiv as a Boolean matrix is shown in the middle table; the representation both as a Hasse diagram and as a directed graph is shown in the left picture.

The following are equivalent:

As another example, define the relation Rel on R by

xRely if x2 + xy + y2 = 1.

The representation of Rel as a 2D-plot obtains an ellipse, see right picture. Since R is not finite, neither a directed graph, nor a finite Boolean matrix, not a Hasse diagram can be used to depict Rel.

Properties of relations

Some important properties that a relation R over a set X may have are:

Reflexive
for all xX, xRx. For example, is a reflexive relation but > is not.
Irreflexive (or strict)
for all xX, not xRx. For example, > is an irreflexive relation, but is not.

The previous 2 alternatives are not exhaustive; e.g., the red relation y = x2 given in the diagram below is neither irreflexive, nor reflexive, since it contains the pair (0,0), but not (2,2), respectively.

Symmetric
for all x, yX, if xRy then yRx. For example, "is a blood relative of" is a symmetric relation, because x is a blood relative of y if and only if y is a blood relative of x.
Antisymmetric
for all x, yX, if xRy and yRx then x = y. For example, is an antisymmetric relation; so is >, but vacuously (the condition in the definition is always false). [10]
Asymmetric
for all x, yX, if xRy then not yRx. A relation is asymmetric if and only if it is both antisymmetric and irreflexive. [11] For example, > is an asymmetric relation, but is not.

Again, the previous 3 alternatives are far from being exhaustive; as an example over the natural numbers, the relation xRy defined by x > 2 is neither symmetric (e.g. 5R1, but not 1R5) nor antisymmetric (e.g. 6R4, but also 4R6), let alone asymmetric.

Transitive
for all x, y, zX, if xRy and yRz then xRz. A transitive relation is irreflexive if and only if it is asymmetric. [12] For example, "is ancestor of" is a transitive relation, while "is parent of" is not.
Connected
for all x, yX, if xy then xRy or yRx. For example, on the natural numbers, < is connected, while "is a divisor of" is not (e.g. neither 5R7 nor 7R5).
Strongly connected
for all x, yX, xRy or yRx. For example, on the natural numbers, is strongly connected, but < is not. A relation is strongly connected if, and only if, it is connected and reflexive.
Examples of four types of relations over the real numbers: one-to-one (in green), one-to-many (in blue), many-to-one (in red), many-to-many (in black). 2D-plot representation is used. The four types of binary relations.png
Examples of four types of relations over the real numbers: one-to-one (in green), one-to-many (in blue), many-to-one (in red), many-to-many (in black). 2D-plot representation is used.

Uniqueness properties:

Injective [lower-alpha 4] (also called left-unique [13] )
For all x, y, zX, if xRy and zRy then x = z. For example, the green and blue relations in the diagram are injective, but the red one is not (as it relates both −1 and 1 to 1), nor is the black one (as it relates both −1 and 1 to 0).
Univalent [8] [lower-alpha 4] (also called right-unique, [13] right-definite [14] )
For all x, y, zX, if xRy and xRz then y = z. Such a relation is called a partial function . For example, the red and green relations in the diagram are functional, but the blue one is not (as it relates 1 to both −1 and 1), nor is the black one (as it relates 0 to both −1 and 1).

Totality properties:

Serial [lower-alpha 4] (also called total or left-total)
For all xX, there exists some yX such that xRy. Such a relation is called a multivalued function . For example, the red and green relations in the diagram are total, but the blue one is not (as it does not relate −1 to any real number), nor is the black one (as it does not relate 2 to any real number). As another example, > is a serial relation over the integers. But it is not a serial relation over the positive integers, because there is no y in the positive integers such that 1 > y. [15] However, < is a serial relation over the positive integers, the rational numbers and the real numbers. Every reflexive relation is serial: for a given x, choose y = x.
Surjective [lower-alpha 4] (also called right-total [13] or onto)
For all yY, there exists an xX such that xRy. For example, the green and blue relations in the diagram are surjective, but the red one is not (as it does not relate any real number to −1), nor is the black one (as it does not relate any real number to 2).

Combinations of properties

Relations by property
Example
Partial order ReflAntisymYes Subset
Strict partial order IrreflAsymYesStrict subset
Total order ReflAntisymYesYes Alphabetical order
Strict total order IrreflAsymYesYesStrict alphabetical order
Equivalence relation ReflSymYes Equality

Relations that satisfy certain combinations of the above properties are particularly useful, and thus have received names by their own.

Equivalence relation
A relation that is reflexive, symmetric, and transitive. It is also a relation that is symmetric, transitive, and serial, since these properties imply reflexivity.

Orderings:

Partial order
A relation that is reflexive, antisymmetric, and transitive.
Strict partial order
A relation that is irreflexive, asymmetric, and transitive.
Total order
A relation that is reflexive, antisymmetric, transitive and connected. [16]
Strict total order
A relation that is irreflexive, asymmetric, transitive and connected.

Uniqueness properties:

One-to-one [lower-alpha 4]
Injective and univalent. For example, the green relation in the diagram is one-to-one, but the red, blue and black ones are not.
One-to-many [lower-alpha 4]
Injective and not univalent. For example, the blue relation in the diagram is one-to-many, but the red, green and black ones are not.
Many-to-one [lower-alpha 4]
Univalent and not injective. For example, the red relation in the diagram is many-to-one, but the green, blue and black ones are not.
Many-to-many [lower-alpha 4]
Not injective nor univalent. For example, the black relation in the diagram is many-to-many, but the red, green and blue ones are not.

Uniqueness and totality properties:

A function [lower-alpha 4]
A relation that is univalent and total. For example, the red and green relations in the diagram are functions, but the blue and black ones are not.
An injection [lower-alpha 4]
A function that is injective. For example, the green relation in the diagram is an injection, but the red, blue and black ones are not.
A surjection [lower-alpha 4]
A function that is surjective. For example, the green relation in the diagram is a surjection, but the red, blue and black ones are not.
A bijection [lower-alpha 4]
A function that is injective and surjective. For example, the green relation in the diagram is a bijection, but the red, blue and black ones are not.

Operations on relations

Union [lower-alpha 5]
If R and S are relations over X then RS = { (x, y) | xRy or xSy } is the union relation of R and S. The identity element of this operation is the empty relation. For example, is the union of < and =, and is the union of > and =.
Intersection [lower-alpha 5]
If R and S are relations over X then RS = { (x, y) | xRy and xSy } is the intersection relation of R and S. The identity element of this operation is the universal relation. For example, "is a lower card of the same suit as" is the intersection of "is a lower card than" and "belongs to the same suit as".
Composition [lower-alpha 5]
If R and S are relations over X then SR = { (x, z) | there exists yX such that xRy and ySz } (also denoted by R; S) is the relative product of R and S. The identity element is the identity relation. The order of R and S in the notation SR, used here agrees with the standard notational order for composition of functions. For example, the composition "is mother of" "is parent of" yields "is maternal grandparent of", while the composition "is parent of" "is mother of" yields "is grandmother of". For the former case, if x is the parent of y and y is the mother of z, then x is the maternal grandparent of z.
Converse [lower-alpha 5]
If R is a relation over sets X and Y then RT = { (y, x) | xRy } is the converse relation of R over Y and X. For example, = is the converse of itself, as is , and < and > are each other's converse, as are and .
Complement [lower-alpha 5]
If R is a relation over X then R = { (x, y) | x, yX and not xRy } (also denoted by R or ¬R) is the complementary relation of R. For example, = and are each other's complement, as are and , and , and and , and, for total orders, also < and , and > and . The complement of the converse relation RT is the converse of the complement:
Restriction [lower-alpha 5]
If R is a relation over X and S is a subset of X then R|S = { (x, y) | xRy and x, yS } is the restriction relation of R to S. The expression R|S = { (x, y) | xRy and xS } is the left-restriction relation of R to S; the expression R|S = { (x, y) | xRy and yS } is called the right-restriction relation of R to S. If a relation is reflexive, irreflexive, symmetric, antisymmetric, asymmetric, transitive, total, trichotomous, a partial order, total order, strict weak order, total preorder (weak order), or an equivalence relation, then so too are its restrictions. However, the transitive closure of a restriction is a subset of the restriction of the transitive closure, i.e., in general not equal. For example, restricting the relation "x is parent of y" to females yields the relation "x is mother of the woman y"; its transitive closure does not relate a woman with her paternal grandmother. On the other hand, the transitive closure of "is parent of" is "is ancestor of"; its restriction to females does relate a woman with her paternal grandmother.

A relation R over sets X and Y is said to be contained in a relation S over X and Y, written RS, if R is a subset of S, that is, for all xX and yY, if xRy, then xSy. If R is contained in S and S is contained in R, then R and S are called equal written R = S. If R is contained in S but S is not contained in R, then R is said to be smaller than S, written RS. For example, on the rational numbers, the relation > is smaller than , and equal to the composition > ∘ >.

Theorems about relations

Examples

Generalizations

The above concept of relation has been generalized to admit relations between members of two different sets. Given sets X and Y, a heterogeneous relation R over X and Y is a subset of { (x,y) | xX, yY }. [1] [18] When X = Y, the relation concept described above is obtained; it is often called homogeneous relation (or endorelation) [19] [20] to distinguish it from its generalization. The above properties and operations that are marked " [lower-alpha 4] " and " [lower-alpha 5] ", respectively, generalize to heterogeneous relations. An example of a heterogeneous relation is "ocean x borders continent y". The best-known examples are functions [lower-alpha 6] with distinct domains and ranges, such as sqrt : NR+.

See also

Notes

  1. called "homogeneous binary relation (on sets)" when delineation from its generalizations is important
  2. a generalization of sets
  3. see below
  4. 1 2 3 4 5 6 7 8 9 10 11 12 13 These properties also generalize to heterogeneous relations.
  5. 1 2 3 4 5 6 7 This operation also generalizes to heterogeneous relations.
  6. that is, right-unique and left-total heterogeneous relations

Related Research Articles

In mathematics, a binary relation on a set is antisymmetric if there is no pair of distinct elements of each of which is related by to the other. More formally, is antisymmetric precisely if for all

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 sets X and Y is a new set of ordered pairs (x, y) consisting of elements x from X and y from Y. It is a generalization of the more widely understood idea of a unary function. It encodes the common concept of relation: an element x is related to an element y, if and only if the pair (x, y) belongs to the set of ordered pairs that defines the binary relation. A binary relation is the most studied special case n = 2 of an n-ary relation over sets X1, ..., Xn, which is a subset of the Cartesian product

<span class="mw-page-title-main">Equivalence relation</span> Mathematical concept for comparing objects

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. A simpler example is equality. Any number is equal to itself (reflexive). If , then (symmetric). If and , then (transitive).

<span class="mw-page-title-main">Partially ordered set</span> Mathematical set with an ordering

In mathematics, especially order theory, a partial order on a set is an arrangement such that, for certain pairs of elements, one precedes the other. The word partial is used to indicate that not every pair of elements needs to be comparable; that is, there may be pairs for which neither element precedes the other. Partial orders thus generalize total orders, in which every pair is comparable.

<span class="mw-page-title-main">Preorder</span> Reflexive and transitive binary relation

In mathematics, especially in order theory, a preorder or quasiorder is a binary relation that is reflexive and transitive. Preorders are more general than equivalence relations and (non-strict) partial orders, both of which are special cases of a preorder: an antisymmetric preorder is a partial order, and a symmetric preorder is an equivalence relation.

In mathematics, a total order or linear order is a partial order in which any two elements are comparable. That is, a total order is a binary relation on some set , which satisfies the following for all and in :

  1. (reflexive).
  2. If and then (transitive).
  3. If and then (antisymmetric).
  4. or .

In mathematics, a binary relation on a set is reflexive if it relates every element of to itself.

A symmetric relation is a type of binary relation. An example is the relation "is equal to", because if a = b is true then b = a is also true. Formally, a binary relation R over a set X is symmetric if:

In mathematics, a binary relation R on a set X is transitive if, for all elements a, b, c in X, whenever R relates a to b and b to c, then R also relates a to c.

This is a glossary of some terms used in various branches of mathematics that are related to the fields of order, lattice, and domain theory. Note that there is a structured list of order topics available as well. Other helpful resources might be the following overview articles:

<span class="mw-page-title-main">Weak ordering</span> Mathematical ranking of a set

In mathematics, especially order theory, a weak ordering is a mathematical formalization of the intuitive notion of a ranking of a set, some of whose members may be tied with each other. Weak orders are a generalization of totally ordered sets and are in turn generalized by (strictly) partially ordered sets and preorders.

In mathematics, an asymmetric relation is a binary relation on a set where for all if is related to then is not related to

In mathematics, a partial equivalence relation is a homogeneous binary relation that is symmetric and transitive. If the relation is also reflexive, then the relation is an equivalence relation.

In mathematics, the converse of a binary relation is the relation that occurs when the order of the elements is switched in the relation. For example, the converse of the relation 'child of' is the relation 'parent of'. In formal terms, if and are sets and is a relation from to then is the relation defined so that if and only if In set-builder notation,

<span class="mw-page-title-main">Quasitransitive relation</span>

The mathematical notion of quasitransitivity is a weakened version of transitivity that is used in social choice theory and microeconomics. Informally, a relation is quasitransitive if it is symmetric for some values and transitive elsewhere. The concept was introduced by Sen (1969) to study the consequences of Arrow's theorem.

In mathematics, Euclidean relations are a class of binary relations that formalize "Axiom 1" in Euclid's Elements: "Magnitudes which are equal to the same are equal to each other."

In mathematics, a homogeneous relation on a set X is a binary relation between X and itself, i.e. it is a subset of the Cartesian product X × X. This is commonly phrased as "a relation on X" or "a (binary) relation over X". An example of a homogeneous relation is the relation of kinship, where the relation is between people.

In mathematics, the symmetric closure of a binary relation on a set is the smallest symmetric relation on that contains

In order theory, the Szpilrajn extension theorem, proved by Edward Szpilrajn in 1930, states that every partial order is contained in a total order. Intuitively, the theorem says that any method of comparing elements that leaves some pairs incomparable can be extended in such a way that every pair becomes comparable. The theorem is one of many examples of the use of the axiom of choice in the form of Zorn's lemma to find a maximal set with certain properties.

<span class="mw-page-title-main">Rewrite order</span>

In theoretical computer science, in particular in automated reasoning about formal equations, reduction orderings are used to prevent endless loops. Rewrite orders, and, in turn, rewrite relations, are generalizations of this concept that have turned out to be useful in theoretical investigations.

References

  1. 1 2 3 Codd 1970
  2. Halmos 1968, Ch 14
  3. Halmos 1968, Ch 7
  4. "Relation definition – Math Insight". mathinsight.org. Retrieved 2019-12-11.
  5. Halmos 1968, Ch 8
  6. 1 2 Ernst Schröder (1895) Algebra und Logic der Relative, via Internet Archive
  7. 1 2 C. I. Lewis (1918) A Survey of Symbolic Logic, pp. 269–279, via internet Archive
  8. 1 2 Schmidt 2010, Chapt. 5
  9. Enderton 1977, Ch 3. p. 40
  10. Smith, Eggen & St. Andre 2006, p. 160
  11. Nievergelt 2002, p.  158
  12. Flaška et al. 2007, p.1 Lemma 1.1 (iv). This source refers to asymmetric relations as "strictly antisymmetric".
  13. 1 2 3 Kilp, Knauer & Mikhalev 2000 , p. 3. The same four definitions appear in the following: Pahl & Damrath 2001 , p. 506, Best 1996 , pp. 19–21, Riemann 1999 , pp. 21–22
  14. Mäs 2007
  15. Yao & Wong 1995
  16. Rosenstein 1982, p. 4
  17. Schmidt & Ströhlein 1993
  18. Enderton 1977 , Ch 3. p. 40
  19. Müller 2012, p. 22
  20. Pahl & Damrath 2001, p. 496

Bibliography