operations on relations
Recall that an n-ary relation (n>0) is a subset of a product
of some n sets. In this definition, any n-ary relation for which n>1 is automatically an (n-1)-ary relation, and consequently a binary relation. On the other hand, a unary, or 1-ary relation, being the subset B of some set A, can be viewed as a binary relation (either realized as B×B or ΔB:={(b,b)∣b∈B}) on A. Hence, we shall concentrate our discussion on the most important kind of relations, the binary relations, in this entry.
Compositions, Inverses, and Complements
Let ρ⊆A×B and σ⊆B×C be two binary relations. We define the composition of ρ and σ, the inverse
(or converse
) and the complement
of ρ by
-
•
ρ∘σ:={(a,c)∣(a,b)∈ρ and (b,c)∈σ for some b∈B},
-
•
ρ-1:={(b,a)∣(a,b)∈ρ}, and
-
•
ρ′:={(a,b)∣(a,b)∉ρ}.
ρ∘σ,ρ-1 and ρ′ are binary relations of A×C,B×A and A×B respectively.
Properties. Suppose ρ,σ,τ are binary relations of A×B,B×C,C×D respectively.
-
1.
Associativity of relational compositions
: (ρ∘σ)∘τ=ρ∘(σ∘τ).
-
2.
(ρ∘σ)-1=σ-1∘ρ-1.
-
3.
For the rest of the remarks, we assume A=B. Define the power of ρ recursively by ρ1=ρ, and ρn+1=ρ∘ρn. By 1 above, ρn+m=ρn∘ρm for m,n∈ℕ.
-
4.
ρ-n may be also be defined, in terms of ρ-1 for n>0.
-
5.
However, ρn+m≠ρn∘ρm for all integers, since ρ-1∘ρ≠ρ∘ρ-1 in general.
-
6.
Nevertheless, we may define Δ:={(a,a)∣a∈A}. This is called the identity
or diagonal relation on A. It has the property that Δ∘ρ=ρ∘Δ=ρ. For this, we may define, for every relation ρ on A, ρ0:=Δ.
-
7.
Let ℛ be the set of all binary relations on a set A. Then (ℛ,∘) is a monoid (http://planetmath.org/Monoid) with Δ as the identity element
.
Let ρ be a binary relation on a set A, below are some special relations definable from ρ:
-
•
ρ is reflexive
if Δ⊆ρ;
-
•
ρ is symmetric
if ρ=ρ-1;
-
•
ρ is anti-symmetric if ρ∩ρ-1⊆Δ;
-
•
ρ is transitive
if ρ∘ρ⊆ρ;
-
•
ρ is a pre-order if it is reflexive and transitive
-
•
ρ is a partial order
if it is a pre-order and is anti-symmetric
-
•
ρ is an equivalence if it is a pre-order and is symmetric
Of these, only reflexivity is preserved by ∘ and both symmetry and anti-symmetry are preserved by the inverse operation
.
Other Operations
Some operations on binary relations yield unary relations. The most common ones are the following:
Given a binary relation ρ∈A×B, and an elements a∈A and b∈B, define
ρ(a,⋅):={y∣(a,y)∈ρ} |
is called the section of in based at , and is the section of in (based) at . When the base points are not mentioned, we simply say a section of in or , or an -section or a -section of .
Finally, we define the domain and range of a binary relation , to be
-
•
, and
-
•
respectively. When is a function, the domain and range of coincide with the domain of range of as a function.
Remarks. Given a binary relation .
-
1.
, realized as a binary relation can be viewed as the composition of , where . Similarly, .
-
2.
is the disjoint union
of -sections of and is the disjoint union of -sections of .
-
3.
and .
-
4.
and .
-
5.
If , then and .
-
6.
The composition of binary relations can be generalized: let be a subset of and be a subset of , where are positive integers. Further, we assume that . Define , as a subset of , to be the set
If , then we have the familiar composition of binary relations. If and , then . The case where and is similar
. If , then if . Otherwise, it is set to .
Title | operations on relations |
Canonical name | OperationsOnRelations |
Date of creation | 2013-03-22 16:26:40 |
Last modified on | 2013-03-22 16:26:40 |
Owner | CWoo (3771) |
Last modified by | CWoo (3771) |
Numerical id | 14 |
Author | CWoo (3771) |
Entry type | Definition |
Classification | msc 08A02 |
Classification | msc 03E20 |
Synonym | inverse relation |
Synonym | relation composition |
Synonym | converse of a relation |
Synonym | diagonal relation |
Related topic | GeneralAssociativity |
Related topic | RelationAlgebra |
Defines | power of a relation |
Defines | relational composition |
Defines | inverse of a relation |
Defines | section |
Defines | domain |
Defines | range |
Defines | identity relation |