Relations
Contents
1.3. Relations#
Relations [89] between two sets
Relations on a set
In other words,
Definition 1.23 (Binary relation)
Given sets
If
A binary relation on a set
When
1.3.1. Types of relations#
Definition 1.24 (Injective relation)
A relation
If
A man may have multiple wives. Some men or women may be unmarried too.
Definition 1.25 (Functional relation)
A relation
We are saying that each man can have at most one wife.
A woman may have multiple husbands. Some men or women may be unmarried too.
Definition 1.26 (One-to-one relation)
A relation is called one-to-one if it is injective and functional.
We are saying that each woman can have at most one husband and each man can have at most one wife.
Some men or women may still be unmarried.
Definition 1.27 (One-to-many relation)
A relation is called one-to-many if it is injective but not functional.
While each woman has at most one husband, there are some men who have multiple wives.
Some men or women may still be unmarried.
Definition 1.28 (Many-to-one relation)
A relation is called many-to-one if it is functional but not injective.
While each man can have at most one wife, there are women who have multiple husbands.
Some men or women may still be unmarried.
Definition 1.29 (Many-to-many relation)
A relation is called many-to-many if it is neither injective nor functional.
No spouse, one spouse, multiple spouses, all are permitted.
Definition 1.30 (Serial relation)
A relation
Every man has at least one wife.
Some women may still be unmarried.
Definition 1.31 (Surjective relation)
A relation
Every woman has at least one husband.
Some men may still be unmarried.
1.3.2. Operations on Relations#
Let
Definition 1.32 (Union of relations)
Definition 1.33 (Intersection of relations)
Definition 1.34 (Composition of relations)
Let
1.3.3. Equivalence Relations#
An interesting type of relations are equivalence relations over a set
Definition 1.35 (Equivalence relation)
A relation
for each (reflexivity).If
then (symmetry).If
and then (transitivity).
We can now introduce equivalence classes on a set.
Definition 1.36 (Equivalence class)
Let
i.e. all elements in
We can now look at some properties of equivalence classes and relations.
Proposition 1.3
Any two equivalence classes are either disjoint or else they coincide.
Example 1.4 (Equivalent classes)
Let
i.e.
Clearly, the set of odd integers and the set of even integers forms two disjoint equivalent classes.
Proposition 1.4
Let
Definition 1.37 (Partition)
If a set
then we say that
A partition over a set
Proposition 1.5
If there exists a family
an equivalence relation is defined on
In words, the relation
1.3.4. Order#
Another important type of relation is an order relation over a set
Definition 1.38 (Partial order)
A relation, denoted by
holds for every (reflexivity).If
and , then (antisymmetry).If
and , then (transitivity).
An alternative notation for
Definition 1.39 (Partially ordered set)
A set equipped with a partial order is known as a partially ordered set (a.k.a poset).
Example 1.5 (Partially ordered set)
Consider a set
Define a relation
Clearly
.If
and then .If
and then .
Thus the relation
We can look at how elements are ordered within a set a bit more closely.
Definition 1.40 (Chain)
A subset
A chain is also known as totally ordered.
In a partially ordered set
, we don’t require that for every , either or should hold. Thus there could be elements which are not connected by the order relation.In a totally ordered set
, for every we require that either or holds.If a set is totally ordered, then it is partially ordered also.
Example 1.6 (Chain)
Continuing from previous example consider a subset
Clearly, for every
Hence
Definition 1.41 (Total order)
A relation, denoted by
holds for every (reflexivity).If
and , then (antisymmetry).If
and , then (transitivity). or holds for every (strongly connected).
Definition 1.42 (Totally ordered set)
A set equipped with a total order is known as a totally ordered set.
Example 1.7 (More ordered sets)
The set of natural numbers
is totally ordered.The set of integers
is totally ordered.The set of real numbers
is totally ordered.Suppose we define an order relation in the set of complex numbers as follows. Let
and be two complex numbers. We say thatWith this definition, the set of complex numbers
is partially ordered. is a totally ordered subset of since the imaginary component is 0 for all real numbers in the complex plane.In fact, any line or a ray or a line segment in the complex plane represents a totally ordered set in the complex plane.
1.3.4.1. Upper Bounds#
We can now define the notion of upper bounds in a partially ordered set.
Definition 1.43 (Upper bound)
If
Note that there can be more than one upper bounds of
Definition 1.44 (Maximal element)
An element
This means that there is no other element in
A maximal element need not be unique. A partially ordered set may contain more than one maximal element.
Example 1.8 (Maximal elements)
Consider the following set
The set is partially ordered w.r.t. the relation
There are three maximal elements in this set namely
Example 1.9 (Ordered sets without a maximal element)
The set of natural numbers
has no maximal element.
What are the conditions under which a maximal element is guaranteed
in a partially ordered set
Following statement known as Zorn’s lemma guarantees the existence of maximal elements in certain partially ordered sets.
Proposition 1.6
If a chain in a partially
ordered set
1.3.4.2. Lower Bounds#
Following is corresponding notion of lower bounds.
Definition 1.45 (Lower bound)
If
Definition 1.46 (Minimal element)
An element
As before there can be more than one minimal elements in a set.