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
X
Y
L\subseteqX x Y
X
Y,
L\operatorname{T
yL\operatorname{T
xLy.
L\operatorname{T
Since a relation may be represented by a logical matrix, and the logical matrix of the converse relation is the transpose of the original, the converse relation[1] [2] [3] [4] is also called the transpose relation.[5] It has also been called the opposite or dual of the original relation,[6] the inverse of the original relation,[7] [8] [9] [10] or the reciprocal
L\circ
L.
Other notations for the converse relation include
L\operatorname{C
L\vee.
The notation is analogous with that for an inverse function. Although many functions do not have an inverse, every relation does have a unique converse. The unary operation that maps a relation to the converse relation is an involution, so it induces the structure of a semigroup with involution on the binary relations on a set, or, more generally, induces a dagger category on the category of relations as detailed below. As a unary operation, taking the converse (sometimes called conversion or transposition) commutes with the order-related operations of the calculus of relations, that is it commutes with union, intersection, and complement.
For the usual (maybe strict or partial) order relations, the converse is the naively expected "opposite" order, for examples,
{\leq\operatorname{T}}={\geq}, {<\operatorname{T}}={>}.
A relation may be represented by a logical matrix such as
Then the converse relation is represented by its transpose matrix:
The converse of kinship relations are named: "
A
B
B
A
A
B
B
A
A
B
In the monoid of binary endorelations on a set (with the binary operation on relations being the composition of relations), the converse relation does not satisfy the definition of an inverse from group theory, that is, if
L
X,
L\circL\operatorname{T
X
\left(L\operatorname{T
(L\circR)\operatorname{T
Since one may generally consider relations between different sets (which form a category rather than a monoid, namely the category of relations Rel), in this context the converse relation conforms to the axioms of a dagger category (aka category with involution). A relation equal to its converse is a symmetric relation; in the language of dagger categories, it is self-adjoint.
Furthermore, the semigroup of endorelations on a set is also a partially ordered structure (with inclusion of relations as sets), and actually an involutive quantale. Similarly, the category of heterogeneous relations, Rel is also an ordered category.[12]
In the calculus of relations, (the unary operation of taking the converse relation) commutes with other binary operations of union and intersection. Conversion also commutes with unary operation of complementation as well as with taking suprema and infima. Conversion is also compatible with the ordering of relations by inclusion.[5]
If a relation is reflexive, irreflexive, symmetric, antisymmetric, asymmetric, transitive, connected, trichotomous, a partial order, total order, strict weak order, total preorder (weak order), or an equivalence relation, its converse is too.
If
I
R
R
X,
R,
R\circX=I.
Y,
R,
Y\circR=I.
For an invertible homogeneous relation
R,
R-1.
R-1=R\operatorname{T
A function is invertible if and only if its converse relation is a function, in which case the converse relation is the inverse function.
The converse relation of a function
f:X\toY
f-1\subseteqY x X
\operatorname{graph}f-1=\{(y,x)\inY x X:y=f(x)\}.
This is not necessarily a function: One necessary condition is that
f
f-1
f-1
f-1
f
f
f-1
f.
For example, the function
f(x)=2x+2
f-1(x)=
x | |
2 |
-1.
However, the function
g(x)=x2
g-1(x)=\pm\sqrt{x},
Using composition of relations, the converse may be composed with the original relation. For example, the subset relation composed with its converse is always the universal relation:
∀A ∀B ∅ ⊂ A ∩B ⇔ A ⊃ ∅ ⊂ B ⇔ A ⊃ ⊂ B. Similarly,
For U = universe, A ∪ B ⊂ U ⇔ A ⊂ U ⊃ B ⇔ A ⊂ ⊃ B.
Now consider the set membership relation and its converse.
A\niz\inB\Leftrightarrowz\inA\capB\LeftrightarrowA\capB\ne\empty.
A\ni\inB\LeftrightarrowA\capB\ne\empty.
\in\ni
The compositions are used to classify relations according to type: for a relation Q, when the identity relation on the range of Q contains QTQ, then Q is called univalent. When the identity relation on the domain of Q is contained in Q QT, then Q is called total. When Q is both univalent and total then it is a function. When QT is univalent, then Q is termed injective. When QT is total, Q is termed surjective.[13]
If Q is univalent, then QQT is an equivalence relation on the domain of Q, see Transitive relation#Related properties.