Relation (mathematics) explained

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 and (denoted as), and likewise between and (denoted as), but not between the values and nor between and, that is, and 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.

Formally, a relation over a set can be seen as a set of ordered pairs of members of .The relation holds between and if is a member of .For example, the relation "is less than" on the natural numbers is an infinite set of pairs of natural numbers that contains both and, but neither nor .The relation "is a nontrivial divisor of on the set of one-digit natural numbers is sufficiently small to be shown here:

for example is a nontrivial divisor of, but not vice versa, hence, but .

If is a relation that holds for and one often writes . 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, "", " is less than ", and "" mean all the same; some authors also write "".

Various properties of relations are investigated.A relation is reflexive if holds for all, and irreflexive if holds for no .It is symmetric if always implies, and asymmetric if implies that is impossible.It is transitive if and always implies .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,an equivalence relation is a relation that is reflexive, symmetric, and transitive,a function is a relation that is right-unique and left-total (see below).[1]

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.[2] [3]

The above concept of relation 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 lives in town at time "), and relations between classes (like "is an element of on the class of all sets, see ).

Definition

Given a set, a relation over is a set of ordered pairs of elements from, formally: .

The statement reads " is -related to " and is written in infix notation as .[2] [3] The order of the elements is important; if then can be true or false independently of . For example, divides, but does not divide .

Representation of relations

A relation on a finite set may be represented as:

A transitive relation on a finite set may be also represented as

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

if is a divisor of and .Formally, and .The representation of 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 on by

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

Properties of relations

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

: for all, . For example, is a reflexive relation but is not.
(or): for all, not . For example, is an irreflexive relation, but is not.

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

: for all, if then . For example, "is a blood relative of" is a symmetric relation, because is a blood relative of if and only if is a blood relative of .
: for all, if and then . For example, is an antisymmetric relation; so is, but vacuously (the condition in the definition is always false).
: for all, if then not . A relation is asymmetric if and only if it is both antisymmetric and irreflexive. 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 defined by is neither symmetric (e.g., but not) nor antisymmetric (e.g., but also), let alone asymmetric.

: for all, if and then . A transitive relation is irreflexive if and only if it is asymmetric. For example, "is ancestor of" is a transitive relation, while "is parent of" is not.
: for all, if then or . For example, on the natural numbers, is connected, while "is a divisor of is not (e.g. neither nor).
: for all, or . 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.

Uniqueness properties:

Injective (also called left-unique) : For all, if and then . For example, the green and blue relations in the diagram are injective, but the red one is not (as it relates both and to), nor is the black one (as it relates both and to).
  • Functional[4] [5] [6] (also called right-unique,[7] right-definite or univalent) : For all, if and then . Such a relation is called a . For example, the red and green relations in the diagram are functional, but the blue one is not (as it relates to both and), nor is the black one (as it relates 0 to both −1 and 1).
  • Totality properties:

    (also called or): For all, there exists some such that . 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 to any real number), nor is the black one (as it does not relate 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 in the positive integers such that . However, is a serial relation over the positive integers, the rational numbers and the real numbers. Every reflexive relation is serial: for a given, choose .
    Surjective (also called right-total[7] or onto): For all, there exists an such that . 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), nor is the black one (as it does not relate any real number to).

    Combinations of properties

    Relations by property
    Partial orderSubset
    Strict partial orderStrict subset
    Total orderAlphabetical order
    Strict total orderStrict alphabetical order
    Equivalence relationEquality

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

    : 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:

    : A relation that is reflexive, antisymmetric, and transitive.
    : A relation that is irreflexive, asymmetric, and transitive.
    : A relation that is reflexive, antisymmetric, transitive and connected.
    : A relation that is irreflexive, asymmetric, transitive and connected.

    Uniqueness properties:

    One-to-one: Injective and functional. For example, the green relation in the diagram is one-to-one, but the red, blue and black ones are not.
  • One-to-many: Injective and not functional. For example, the blue relation in the diagram is one-to-many, but the red, green and black ones are not.
  • Many-to-one: Functional 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: Not injective nor functional. 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 : A relation that is functional and total. For example, the red and green relations in the diagram are functions, but the blue and black ones are not.
  • An : 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 : 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 : 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

    : If and are relations over then is the of and . The identity element of this operation is the empty relation. For example, is the union of and, and is the union of and .
    : If and are relations over then is the of and . 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".
    : If and are relations over then (also denoted by) is the relative product of and . The identity element is the identity relation. The order of and in the notation, 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 is the parent of and is the mother of, then is the maternal grandparent of .
    : If is a relation over sets and then is the converse relation of over and . For example, is the converse of itself, as is, and and are each other's converse, as are and .
    : If is a relation over then (also denoted by or) is the complementary relation of . 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 is the converse of the complement:

    \overline{RT

    } = \bar^\mathsf.
    : If is a relation over and is a subset of then is the of to . The expression is the of to ; the expression is called the of to . 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 " is parent of " to females yields the relation " is mother of the woman "; 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 over sets and is said to be a relation over and, written, if is a subset of, that is, for all and, if, then . If is contained in and is contained in, then and are called equal written . If is contained in but is not contained in, then is said to be than, written . 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 and, a heterogeneous relation over and is a subset of . When, the relation concept described above is obtained; it is often called homogeneous relation (or endorelation) to distinguish it from its generalization.The above properties and operations that are marked "" and "", respectively, generalize to heterogeneous relations.An example of a heterogeneous relation is "ocean borders continent ".The best-known examples are functions with distinct domains and ranges, such as .

    See also

    Bibliography

    Notes and References

    1. Web site: Relation definition – Math Insight. mathinsight.org. 2019-12-11.
    2. [Ernst Schröder (mathematician)|Ernst Schröder]
    3. [C. I. Lewis]
    4. Van Gasteren 1990, p. 45.
    5. Web site: Functional relation - Encyclopedia of Mathematics. 2024-06-13. encyclopediaofmath.org.
    6. Web site: functional relation in nLab. 2024-06-13. ncatlab.org.
    7. . The same four definitions appear in the following:,,