2022-binary-relations
2022-binary-relations
CHAPTER 3
Binary Relations
by 41.108.230.114 on 01/02/25. Re-use and distribution is strictly not permitted, except for Open Access articles.
3.1. Basics
DEFINITION 3.1.1. A binary relation R on a set X is a subset AR
of X × X. As it is customary, instead of writing (x, y) ∈ AR , we will
usually write xRy.
Basic Abstract Algebra Downloaded from www.worldscientific.com
72 3. RELATIONS
(3) True. Indeed, if xRy, then given the fact that the relation is
symmetric, we get yRx too. Since R is also anti-symmetric,
we obtain x = y.
(4) True. This is just a reformulation of the definition of an anti-
symmetric relation using the contrapositive.
(5) False! For example, define a relation R on R by: xRy ⇔
xy 6= 0. Then R is both symmetric and transitive, yet it is
not reflexive since for x = 0, it is seen that x6 R x.
74 3. RELATIONS
Solution 3.3.2.
(1) R is not reflexive for 36 R 3.
(2) R is not symmetric since 4R2 and 26 R 4!
(3) R is not anti-symmetric as
Basic Abstract Algebra Downloaded from www.worldscientific.com
y = −x + 1 and y = x + 2
define two distinct lines which are orthogonal.
(d) The relation is not transitive. Let’s give a counterexam-
ple. We need three lines ∆, ∆′ and ∆′′ such that
Basic Abstract Algebra Downloaded from www.worldscientific.com
76 3. RELATIONS
and so
cos2 z + sin2 x = 1,
i.e. xRz, i.e. R is transitive.
Exercise 3.3.4. Let E be the set of prime numbers greater than or
equal to 3. Let R be a relation defined over E by:
n+m
nRm ⇐⇒ ∈ E.
2
(1) Do we have 3R5? 3R11?
(2) Is R reflexive? Symmetric? Anti-symmetric? Transitive?
Solution 3.3.4.
(1) We do not have 3R5 because 3R5 ⇔ (3 + 5)/2 ∈ E and
3+5 8
= = 4 6∈ E.
2 2
We do have 3R11 because
3 + 11
= 7 ∈ E.
2
(2) (a) R is reflexive because
n+n
∀n ∈ E : nRn, since = n ∈ E.
2
December 17, 2021 14:20 BC: 12719 Basic Abstract Algebra: Exercises and Solutions
(b) R is symmetric as
∀n, m ∈ E : nRm =⇒ mRn
since (n + m)/2 = (m + n)/2 ∈ E.
(c) R is not anti-symmetric: First, 3 and 7 are in E. Besides,
3R7 since (3 + 7)/2 = 5 ∈ E, and 7R3 as (7 + 3)/2 =
5, and yet 3 6= 7.
by 41.108.230.114 on 01/02/25. Re-use and distribution is strictly not permitted, except for Open Access articles.
78 3. RELATIONS
k, k ′ ∈ Z. Hence
x − z = x − y + y − z = 4(k + k ′ ).
Since k + k ′ ∈ Z, it follows that x − z is divisible by 4 or that R is
transitive. Thus, R is an equivalence relation.
To find all equivalence classes, we first find equivalence classes of
some particular elements. Let’s start with 0 (for example). We have
by 41.108.230.114 on 01/02/25. Re-use and distribution is strictly not permitted, except for Open Access articles.
2 2
x − y = x − y ⇐⇒ (x − y)(x + y) = x − y ⇐⇒ (x − y)(x + y − 1) = 0,
and so
y = x or y = 1 − x.
Therefore,
ẋ = {x, 1 − x}.
Basic Abstract Algebra Downloaded from www.worldscientific.com
80 3. RELATIONS
These two classes patently cover all the integers without any
overlap. Since the union of these last two sets gives Z and their
intersection is empty, these two classes constitute a partition
of Z. Since the equivalence classes always form a partition of
the total set, 0̇ and 1̇ are the only equivalence classes with
respect to this equivalence relation.
by 41.108.230.114 on 01/02/25. Re-use and distribution is strictly not permitted, except for Open Access articles.
i.e.
∀(x, y) ∈ A : x ≤ m and y ≤ M.
Let’s find the set of upper bounds. Suppose that (m, M) is an
upper bound of A, then
∀(x, y) ∈ A : x ≤ m and y ≤ M.
In particular, for (0, 1) (which belongs to A) we have:
by 41.108.230.114 on 01/02/25. Re-use and distribution is strictly not permitted, except for Open Access articles.
m ≥ 1 and M ≥ 1.
Conversely, let’s show that if m ≥ 1 and M ≥ 1, then (m, M)
is an upper bound of A. Let (x, y) ∈ A, i.e. x2 + y 2 ≤ 1. So,
x ≤ 1 ≤ m and y ≤ 1 ≤ M. The set of upper bounds is then
given by:
{(m, M) ∈ R2 : m ≥ 1, M ≥ 1}.
The least upper bound of A, that is, sup A is (1, 1). In the
end, max A does not exists because sup A 6∈ A.
Exercise 3.3.10. Find the upper and lower bounds of B with re-
spect to - (the order relation defined in Exercise 3.3.9)
B = {(2, 3), (2, 1)}.
What is sup B? What is inf B? Does max B exist? Does min B exist?
Solution 3.3.10. Let (m, M) be an upper bound of B, so
∀(x, y) ∈ B : x ≤ m and y ≤ M.
That is
2 ≤ m, 3 ≤ M and 2 ≤ m, 1 ≤ M.
So, 2 ≤ m and 3 ≤ M. Hence, the set of upper bounds is given by:
{(m, M) ∈ R2 : m ≥ 2, M ≥ 3}.
The supremum of B, i.e. sup B is equal to (2, 3), and we clearly see
that sup B ∈ B. Thus, max B = (2, 3).
Let (m′ , M ′ ) be a lower bound of B, i.e.
∀(x, y) ∈ B : m′ ≤ x and M ′ ≤ y.
So, the set of lower bounds is:
{(m′ , M ′ ) ∈ R2 : m′ ≤ 2, M ′ ≤ 1}.
December 17, 2021 14:20 BC: 12719 Basic Abstract Algebra: Exercises and Solutions
82 3. RELATIONS
The infimum of B, i.e. inf B is equal to (2, 1). Since (2, 1) belongs to
B, we conclude that min B = (2, 1).
B = {4, 8, 16}.
Solution 3.3.11.
(1) Recall that x divides y in N if and only if there exists a certain
n ∈ N such that y = nx.
(a) The relation is reflexive because we can divide any natural
number by itself.
(b) To show that R is anti-symmetric, let x, y ∈ N and sup-
pose xRy and yRx, i.e. x divides y and y divides x,
i.e. there exist n, m ∈ N such that y = nx and x = my.
Hence,
y = nmy =⇒ 1 = nm because y 6= 0.
∀x ∈ A : x divides M.
December 17, 2021 14:20 BC: 12719 Basic Abstract Algebra: Exercises and Solutions
84 3. RELATIONS
relation.
Exercise 3.4.3. Is the relation R defined on R by
xRy ⇐⇒ |x| ≤ |y|
a total order?
Exercise 3.4.4. Determine whether the following relations (defined
on R) are order or equivalence relations:
(1) xRy ⇐⇒ [x] ≤ [y],
(2) xRy ⇐⇒ [x] = [y],
(3) xRy ⇐⇒ cos x = cos y,
where [·] is the usual greatest integer function.
Exercise 3.4.5. Let R be a relation defined over, N × N by
(a, b)R(c, d) ⇐⇒ ad = bc.
Prove that R is an equivalence relation on N × N.
Exercise 3.4.6. Consider the relation defined in Exercise 3.3.10,
then set
A = {(1, 2), (0, 4), (3, 1)}.
Find the upper and lower bounds of A. Find also sup A, inf A and
max A and min A (if they exist).
Exercise 3.4.7. Define on N a relation R by
nRm ⇐⇒ ∃p ∈ N : m = np .
(1) Check that R is an order relation on N.
(2) Let A = {2, 4, 16}. Find the upper and lower bounds of A.
Find sup A, inf A and max A and min A (if they exist).
(3) The same questions with B = {4, 8}.