2.1: Binary Relations
( \newcommand{\kernel}{\mathrm{null}\,}\)
Definition: Binary Relation
Let S be a non-empty set. Then any subset R of S×S is said to be a relation over S. In other words, a relation is a rule that is defined between any two elements in S. Intuitively, if R is a relation over S, then the statement aRb is either true or false for all a,b∈S.
If the statement aRb is false, we denote this by aR̸b.
Example 2.1.1:
Let S={1,2,3}. Define R by aRb if and only if a<b, for a,b∈S.
Then 1R2,1R3,2R3 and 2R̸1.
We can visualize the above binary relation as a graph, where the vertices are the elements of S, and there is an edge from a to b if and only if aRb, for ab∈S.
The following are some examples of relations defined on Z.
Example 2.1.2:
- Define R by aRb if and only if a<b, for a,b∈Z.
- Define R by aRb if and only if a>b, for a,b∈Z.
- Define R by aRb if and only if a≤b, for a,b∈Z.
- Define R by aRb if and only if a≥b, for a,b∈Z.
- Define R by aRb if and only if a=b, for a,b∈Z.
Multiples and divisors
Next, we will introduce the notion of "divides."
Definition: Divisor/Divides
Let a and b be integers. We say that a divides b is denoted a∣b, provided we have an integer m such that b=am. In this case we can also say the following:
- b is divisible by a
- a is a factor of b
- a is a divisor of b
- b is a multiple of a
If a does not divide b, then it is denoted by a∤b.
Example 2.1.3:
Find all positive integers divisible by 16.
Solution
Multiples of 16.
Example 2.1.4:
Find all positive integers divides 16.
Solution
1,2,4,8,16
Example 2.1.5:
4∣12 and 12∤4
Next, we will introduce the notion of "divides" for positive integers.
Definition: Divides
Let a and b be positive integers. We say that a divides b is denoted a∣b, there exists a positive integer m such that b=am.
Theorem 2.1.1: Divisibility inequality theorem
If a∣b, for a,b∈Z+ then a≤b,
- Proof
-
Let a,b∈Z+ such that a∣b, Since (a\mid b\), there is a positive integer m such that b=am. Since m≥1 and a is a positive integer, b=am≥(a)(1)=a.
Note that if a∣b, for a,b∈Z+ then a≤b, but the converse is not true. For example: 2<3, but 2∤3.
Example 2.1.6:
According to our definition 0∣0.
Definition: Even integer
An integer is even provided that it is divisible by 2.
Properties of binary relation:
Definition: Reflexive
Let S be a set and R be a binary relation on S. Then R is said to be reflexive if aRa,∀a∈S.
Example 2.1.5: Visually
∀a∈S,aRa holds.
We will follow the template below to answer the question about reflexive.

Example 2.1.7:
Define R by aRb if and only if a<b, for a,b∈Z. Is R reflexive?
Counterexample:
Choose a=2.
Since 2≮2, R is not reflexive.
Example 2.1.8:
Define R by aRb if and only if a∣b, for a,b∈Z. Is R reflexive?
Proof:
Let a∈Z. Since a=(1)(a), a∣a.
Thus R is reflexive. ◻
Definition: Symmetric
Let S be a set and R be a binary relation on S. Then R is said to be symmetric if the following statement is true:
∀a,b∈S, if aRb then bRa, in other words, ∀a,b∈S,aRb⟹bRa.
Example 2.1.8: Visually
∀a,b∈S,aRb⟹bRa. holds!
We will follow the template below to answer the question about symmetric.

Example 2.1.9:
Define R by aRb if and only if a<b, for a,b∈Z. Is R symmetric?
Counter Example:
1<2 but 2≮1.
Example 2.1.10:
Define R by aRb if and only if a∣b, for a,b∈Z. Is R symmetric?
Counterexample:
2∣4 but 4∤2.
Definition: Antisymmetric
Let S be a set and R be a binary relation on S. Then R is said to be antisymmetric if the following statement is true:
∀a,b∈S, if aRb and bRa, then a=b.
In other words, ∀a,b∈S, aRb∧bRa⟹a=b.
Example 2.1.11: VISUALLY
∀a,b∈S, aRb∧bRa⟹a=b holds!
We will follow the template below to answer the question about anti-symmetric.

Example 2.1.12:
Define R by aRb if and only if a<b, for a,b∈Z. Is R antisymmetric?
Example 2.1.13:
Define R by aRb if and only if a∣b, for a,b∈Z+. Is R antisymmetric?
Definition: Transitive
Let S be a set and R be a binary relation on S. Then R is said to be transitive if the following statement is true
∀a,b,c∈S, if aRb and bRc, then aRc.
In other words, ∀a,b,c∈S, aRb∧bRc⟹aRc.
Example 2.1.14: VISUALLY
∀a,b,c∈S, aRb∧bRc⟹aRc holds!
We will follow the template below to answer the question about transitive.

Example 2.1.15:
Define R by aRb if and only if a<b, for a,b∈Z. Is R transitive?
Example 2.1.16:
Define R by aRb if and only if a∣b, for a,b∈Z+. Is R transitive?
Summary:
In this section, we learned about binary relations and the following properties:
Reflexive
Symmetric
Antisymmetric
Transitive