Finitary relation
A relation (Latin relatio "relation", "relationship") is generally a relationship that can exist between things. Relations in the sense of mathematics are exclusively those relationships for which it is always clear whether they exist or not; objects cannot therefore be in a relation to each other "to a certain degree". Thus, a simple set-theoretical definition of the term is possible: A relation is a set of -tuples. Things standing in relation each other form -tuples, which are elements of
Unless explicitly stated otherwise, a relation is commonly understood to be a two-digit or binary relation. In such a relation, two elements and form an ordered pair and originate from different basic sets and the relation is called heterogeneous or "relation between the sets and ." If the basic sets match ( ), then the relation is called homogeneous or "relation in or on the set ."
Important special cases, for example equivalence relations and order relations, are relations on a set.
Today, some authors do not necessarily consider the term relation to be restricted to sets, but allow any class consisting of ordered pairs to be considered a relation.
Definitions
Two-digit relation
A two-digit relation (also called binary relation) between two sets and is a subset of the Cartesian product
.
The set is called the source set (English: set of departure) of the relation set called the destination set (English: set of destination).
Sometimes, however, this definition is not precise enough and one includes the source and target set in the definition, the above subset is then called the graph the relation. A two-digit relation is then defined as a triple
with .
The knowledge of source and target set is particularly important when functions are considered as special (so-called functional) relations.
The primal, argument or definition or pre-region of a given two-digit relation is understood to be the smallest possible pre-region to the graph whose elements all actually occur on the left-hand side in the ordered pairs of in characters
.
In this sense, the value set, value or image or after-range denotes the smallest after-range to given whose elements thus all occur in the pairs of on the right-hand side, in characters
.
Occasionally, the term field (or node set) is used for the union set, in characters
.
In addition, the following designations can be found:
- Domain either for the (in principle arbitrarily large) source set or for the original image set (defined by the graph),
- Co-domain (English codomain, range) either for the target set or for the image set,
- Node set ( ) for the field of a relation.
If two relations match in their graphs, they are also said to be essentially the same.
Example: Any relation is essentially the same as and with the homogeneous relation .
n-digit relation
More generally, an -digit relation a subset of the Cartesian product of sets
with .
Here denotes the finite sequence of sets, and denotes the Cartesian product.
The more detailed definition can also be generalised to -digit relations and one then obtains the -tuple
with .
The sets called carrier sets of the relation with the minimal carrier sets to the graph , namely
.
The field of an -digit relation is given by
.
Substantial equality is defined analogously as for two-digit relations by correspondence of the graphs, in particular every } -digit relation substantially equal to and with the homogeneous relation .
One-digit and zero-digit relation
A one-digit relation on a set is thus simply a subset in the detailed definition with .
The zero-digit relations are therefore the subsets of the empty Cartesian product or , so and , detailed and .
Relations between or on real classes
Often the carrier areas a relation are not sets, but real classes, one then speaks of class relations. Occasionally, one can avoid set-theoretical problems arising from this by only considering the graph of the corresponding relation. The (minimal) carrier sets ( , in the two-digit case definition and value set ) are indeed sets, but it is not necessary to commit a priori to source set, target set, ... ( ) if the relations are essentially the same. This is not always possible, for example for the equivalence relation of equal power, see also: Cardinal numbers §Definition. Equality of relations in essence is another example.
A two-digit class relation with source class and target class is called predecessor-small if for all the class of predecessors (primal fibre of , see below) is a set (i.e. not a real class). The relation is called English right-narrow if for all the class of successors (image fibre of ) is a set. In the case of right uniqueness (partial mappings, mappings, see below), a class relation is always small, since there is (exactly or at most) one image value for each primal image, so the class of successors is a set of ones (or the empty set). Every injective class mapping is both small and predecessor-small. The containment relation ∈ is predecessor-small for any class since the cannot be real classes but are sets and so also a set. The terms predecessor and successor themselves are usually used in the context of order relations, see order relation §predecessor and successor.
Explanations and spellings
The Cartesian product of two sets and is the set of all ordered pairs of and where any element from the set and one from . In the ordered pair, the order is important, i.e. different from opposed to the unordered pair which is identical to For one also writes to make clear that that relation exists between the objects (as in The empty set as a subset of the Cartesian set product taken as a relation is called the null relation , the full product is called all-relation (also universal relation) (also called ).
Relations and functions
- A function is a special, namely a left-stotal and right-unique (two-digit) relation, for more details see below.
- A multifunction is a left-total relation .
- A partial function is a (generally non-left-total) right-unique relation .
In all cases, (or if the detailed definition is used).
The following applies to functions and multifunctions:
In the more detailed definition because is uniquely determined by (linkstotal), also be omitted and more simply taken.
The following applies to functions and partial functions:
For or also write (English: maplet), or .
In general:
- The zero-digit relations (as zero-digit null relations) and (as a zero-digit full relation) have as characteristic functions the Boolean or logical constants and , as always for zero relation and all relation.
- The case of single-digit relations is trivial.
- relation (or ) corresponds uniquely to a truth function χ . This function is also known as the indicator function or characteristic function of the subset (or ), where can be replaced by
- An -digit relation (or ) corresponds to the characteristic function χ
It applies:
- .
.
.
- relation also be understood as a mapping κ from into the power set of κ one then often speaks of a correspondence, and for transition relation.
Concatenation of relations
The forward concatenation of two two-digit relations is defined as follows:
Chaining in the reverse order is called backward chaining:
.
Some authors (W. v. O. Quine) use the notation an alternative for this.
The sequence is the same for backward chaining as for chaining functions (which can be understood as special relations).
The concatenation of two-digit relations is also called a relative product. In the case of concatenation, the simplest relation, the empty relation contained in every Cartesian product, can also occur. (empty set) can occur, namely when and are disjoint, in characters: .
Example: The relation "being sister-in-law of" is the union set
- of the relative product of the relation "being a brother of" and the relation "being a wife of" and
- of the relative product of the relation "being a spouse of" and the relation "being a sister of".
Reverse relation
The inverse relation (also called converse relation, converse or inverse relation) is defined for a two-digit relation as
.
Occasionally, this is also called a transposed relation, in characters .
- Example 1: The inverse relation of the relation "is descendant of" is the relation "is ancestor of".
- Example 2: The inverse relation of the relation "is less than" is the relation "is greater than".
- Example 3: The inverse relation of the relation "delivers to" is the relation "is delivered by".
The generalisation of the inverse relation (converse) to -digit relations is the permutation of the coordinates of the -tuples contained in it, specifically
- the interchanges of only 2 coordinates (transpositions) and
- the inversion of the sequence (mirroring),
both examples of (cyclic) self-inverse permutations.
Let π be a permutation (i. e. a bijective mapping from to itself), and let an -digit relation, then the relation resulting after applying the permutation π (understand as a family). In the case of the reflection
.
Image and archetype
Given a two-digit relation , the image of a set or class set or class
.
The archetype of a set or class is the set or class
.
Occasionally, the designation (sic!), often also written in square brackets as In correspondences, the notation κ {\displaystylealso in use for the image fibre of a singleton { , for which the notation with square brackets is also used in some cases, i.e. ; in the case of symmetrical relations, i.e. (possibly partial) equivalence or compatibility relations, the notation with square brackets is used. In the case of symmetrical relations, i.e. (partial) equivalence or compatibility relations, the notation and speaks of equivalence or compatibility or tolerance classes.
Restriction
Relations can be restricted in various ways to subsets of the carrier sets, for more information see Restriction of a relation.
Complementary relation
For two-digit relations with fixed pre- and post-range the complementary relation is given by
,
analogously for -digit relations with fixed carrier ranges . On the real numbers for example, ≤ {\displaystyleis the complementary relation to .
If the complex notation is used as a basis, then
,
where are now no longer external additions but components of the relation; analogously for -digit relations in this notation.
As for all sets, the complement is also involutive for relations:
.
Homogeneous relations
If so then the relation is called homogeneous. Some authors already define a general relation as a homogeneous relation, because a general relation can always be regarded as a restriction of a homogeneous one as well: .
Special homogeneous relations and operations on homogeneous relations
A special homogeneous relation in a set is the equality or identity relation or diagonal
Alternative notations for the diagonal are Δ or ; if already known, it is simply denoted by , Δ {\displaystyleor designated.
Another special homogeneous relation is the all relation or universal relation
(also referred toNabla as ).
If is already known, the index is omitted, as with the identity relation.
The all-relation plays a role in graph theory (see below). An example of its application is the following theorem:
If a directed graph with a set of vertices and an (associated) relation of edges, then is (strongly) connected if and only if the reflexive-transitive hull of the universal relation.
The formation of the reverse relation (converse relation) of a homogeneous two-digit relation yields again a homogeneous two-digit relation (closedness), twice execution yields again the initial relation (involutivity). The connection of any (also non-homogeneous) relation with its converse relation is symmetrical and reflexive, i.e. an equivalence relation, but generally not equal to the identity relation.
In the case of a homogeneous relation the concatenation is also a homogeneous relation, so that the homogeneous relations in a monoid with the multiplicative link and the neutral element . Thus, and, more generally, powers can be defined for be defined where _{A}}is therefore also called a one-relation on the set
Extending the notation instead of for the inverse relation, one denotes its powers with negative exponents:
.
Thus, any integers permissible as exponents.
Moreover, every monoid of homogeneous relations with the empty relation (zero relation) has
nor an absorbent element.
By uniting the different powers, the following relations arise
and .
Algebraic structures
All together, the two-digit relations on a set form a relation algebra
Using the notations .
Together with the constraints, the homogeneous relations form a (heterogeneous) Peirce algebra.
Homogeneous multi-digit relations
Homogeneous multi-digit relations are (with their graph) subsets of . For fixed the all-relation (also ) and the identity relation (diagonal) (also ) given by
.
The application of permutations to their -tuples, described as a generalisation of conversation, are of particular importance here, since in this way one always remains within the subsets of (closedness). In other words, these operations are bijective mappings in . Other notions known from two-digit relations such as reflexivity and symmetry etc. can also be extended in a canonical (natural) way to arbitrary multi-digit relations.
Graph theory and generalisations
→ Main article: Graph theory
Graph theory describes sets with a relation on them together with certain generalisations under a common umbrella term, the graph. The cases considered in graph theory are usually finite (unless otherwise stated).
A relational structure consisting of a set together with a relation on it is called a directed (also oriented) graph is called the node set of the graph, its elements are called nodes. edge set as a subset of }, its elements (ordered pairs from ) are called directed (i.e. oriented) edges.
2. symmetric graphs , i.e. sets with a symmetric relation are equivalent to an undirected graph whose edge set consists of (undirected) edges, namely the (disordered) sets with (here equivalent to ).
3. further generalisations concern so-called directed graphs with grouped multiple edges, where each edge has a natural number as multiplicity. The edges of such graphs can be represented by a multiset a mapping with a set and a mapping which assigns to each node a positive number called colour. Similarly, graphs with coloured nodes and/or edges.
4. weighted nodes and/or edges: We speak of weights instead of colours if the mapping is real-valued. For weighted nodes this corresponds to a fuzzy set , for is a real valued multiset. The same applies to weighted edges. For oriented graphs, this means in particular that the edge set (a relation, i.e. set of ordered node pairs) becomes a multiset or fuzzy set in an extension of the notion of relation.
Examples
·
All possible ordered pairs with and and a relation defined between and
·
Example of a relation "A person x studies subject y".
·
Example of a relation "person x loves person y". This two-digit relation is modelled over a set of ordered pairs.
·
The one-digit relation "person x is female" is modelled as a subset of the basic set.
·
The three-digit relation "Person x learns subject y from teacher z" is realised via a set of 3-tuples.
Properties of two-digit relations
General relations
Overview of the properties
The following relations are important for functions (represented as special relations). In general, the relation exists here between two different sets the case course also possible.
The relation is called | exactly when (predicate logic) | or equivalent (quantity notation) | and that means: |
left total or definal |
|
| Each element from has at least one partner in |
right-total or surjective |
|
| Each element from has at least one partner in |
left unambiguous or injective |
|
| Each element from has at most one partner in |
(right-) unique |
|
| Each element from has at most one partner in |
The relation is called | exactly when (predicate logic) | or equivalent (quantity notation) | and that means: |
bitotal |
|
| Every element from has at least one partner in and vice versa. |
one-to-one |
|
| Each element from has at most one partner in and vice versa. |
bijective |
|
| Each element from has exactly one partner in |
Illustration or function |
|
| Each element from has exactly one partner in |
Alternative ways of speaking
This article or section needs revision. More details should be given on the discussion page. Please help improve it and then remove this marker.
One also says
- left-complete in place of left-total,
- right-complete in place of right-total,
- preambiguous in place of leftambiguous,
- post-unambiguous in place of right-unambiguous,
A right unambiguous or functional relation is also called a partial function. If it is also left-total - i.e. a function - then it is also called a total function for clarification.
Functions
Overview of functional properties for relations
A relation is therefore a (total) function if it is left-total and right-unique. This means that every element in A has exactly one partner in B. The properties surjective, injective and bijective are usually used for functions and specify certain additional properties. For example, a function (and also any relation) is bijective if it is surjective and injective, i.e. if its inverse relation a function.
The relation is called | exactly when they have a | is or equivalent (quantity notation) | and that means: |
Surjection | surjective function |
| Each element from has exactly one partner in and each element from has at least one partner in |
Injection | injective function |
| Each element from has exactly one partner in and each element from has at most one partner in |
Bijection | bijective function |
| Each element from has exactly one partner in and vice versa. |
Reverse function
A mapping or function is also called
- reversible uniquely or reversible if it is bijective.
A function is always invertible as a relation, but as a function it is invertible exactly when its inverse relation is also a function, i.e. when there is an inverse function of it.
Homogeneous relations
The examples given in the following tables refer to the ordinary arrangement of real numbers when using the equals sign "=", the less-than sign "<" and the less-than-equal sign "≤".
The relation is called | exactly when (predicate logic) | or equivalent (quantity notation) | and that means: |
Right-comparative or third-comparative |
|
| If two elements are each related to an identical third element, then they are also related to each other. E.g. with and always |
left-hand comparative or Euclidean |
|
| If a first element is related to a second and a third element, these are also related to each other. For example, with and always applies as well |
transitive |
|
| If a first element is related to a second element and this in turn to a third element, the first element is also related to the third element. For example, < c result in a < . |
intransitive |
|
| If two elements are in relation and, in addition, the second element is in relation to a third element, then the first element is not in relation to the third element. For example, any natural number is the (immediate) predecessor of and the (immediate) predecessor of but is not the (immediate) predecessor of |
Non-transitivity (i.e. the relation is not transitive), intransitivity and negative transitivity are each different from each other.
The relation is called | exactly when (predicate logic) | or equivalent (quantity notation) | and that means: |
reflexive |
|
| Each element is in relation to itself, e.g. |
| |||
irreflexive |
|
| No element is in relation to itself, e.g. applies to no a . |
The relation is called | exactly when (predicate logic) | or equivalent (quantity notation) | and that means: |
symmetrical |
|
| The relation is undirected, e.g. from always follows (and vice versa) |
| |||
antisymmetrical or identitive |
|
| There are no two different elements that are related in both directions, e.g. it always follows from and |
asymmetric |
|
| There are no two elements that are related in both directions, e.g. it follows from b < a |
The relation is called | exactly when (predicate logic) | or equivalent (quantity notation) | and that means: |
total or complete |
|
| Two elements each are in relation, e.g. if or always holds. |
Connected |
|
| Two different elements are related, e.g. if < a if a ≤ b {\displaystyle {\displaystyle |
trichotome |
|
| Two different elements are always related in exactly one way, e.g. if either < a always |
The following relationships apply between the properties:
The following relationships exist between the properties of a relation and those of its complement
- is reflexive is irreflexive (and vice versa).
- is symmetrical is symmetrical.
- is antisymmetric is connex (and vice versa).
- is total is asymmetric (and vice versa).
Relation classes
Other important classes of relations and their properties:
- Quasi-order or pre-order: transitive and reflexive
- Compatibility relation or tolerance relation: compatible (reflexive and symmetrical) (English: in the finite case dependency relation, in the transfinite case tolerance relation).
- Equivalence relation: transitive, reflexive and symmetrical
- Half-order/partial order, partial order or order: transitive, reflexive and antisymmetrical.
- Full order/total order or linear order: transitive, reflexive, antisymmetrical and total
- Well-ordering: a linear ordering in which every non-empty subset of A has a smallest element.
- Strict order or strict half order/partial order: transitive, irreflexive and antisymmetrical (i.e. asymmetrical)
- Strict full order/total order or linear strict order: transitive, irreflexive, antisymmetrical and connective
Relationships between different two-digit relations
Relation sign
In elementary mathematics there are three basic comparative relations:
- (Example: is smaller than 3")
- (Example: "3 is equal to 3")
- (Example: is greater than 2")
with .
Two real numbers always stand in exactly one of these relations to each other. These relation signs can also be used to form others. The following applies:
- if = y (Example: "4 is not greater than 5")
- if = y (Example: "5 is not less than 5")
- if > y (Example: "4 is not equal to 5")
for all .
The above order relations do not exist for complex numbers.
Mathematicians also use the sign ≤ for abstract order relations (and ≥ for the associated inverse relation) while "<" is not an order relation in the sense of the mathematical definition.
For equivalence relations, "symmetrical" symbols such as ≈, ~, ≡ are preferred.
Category theory
For any half-ring with zero element and one element following is a category:
- .
- A morphism is a function .
- For objects following applies
This is identical to the Kronecker : .
- For objects and morphisms holds.
.
The morphisms are thus set-indexed matrices and their composition occurs as in matrix multiplication, corresponds to the unit matrix .
In the special case applies. i.e., is the category of relations.
Application
Operations on whole relations are studied in relational algebra. In computer science, relations are important when working with relational databases.
See also
- Congruence relation
- Predicate (logic)