Professional Documents
Culture Documents
DiscrMathLecture 2
DiscrMathLecture 2
Notion or Concept
A set is a collection of distinct objects called elements or members.
Notion or Concept
A set is a collection of distinct objects called elements or members.
Notion or Concept
A set is a collection of distinct objects called elements or members.
Examples
N a set of natural numbers. Its elements are 1, 2, 3, . . .
Z a set of integer numbers. Its elements are . . . − 2, −1, 0, 1, 2, . . .
Notion or Concept
A set is a collection of distinct objects called elements or members.
Examples
N a set of natural numbers. Its elements are 1, 2, 3, . . .
Z a set of integer numbers. Its elements are . . . − 2, −1, 0, 1, 2, . . .
There are two basic ways to describe sets. The first way is by listing elements
of a set within braces (when it is possible)
Notion or Concept
A set is a collection of distinct objects called elements or members.
Examples
N a set of natural numbers. Its elements are 1, 2, 3, . . .
Z a set of integer numbers. Its elements are . . . − 2, −1, 0, 1, 2, . . .
There are two basic ways to describe sets. The first way is by listing elements
of a set within braces (when it is possible)
Examples
A = {a, b, c, d} is a set denoted by A containing elements a, b, c, d.
Notion or Concept
A set is a collection of distinct objects called elements or members.
Examples
N a set of natural numbers. Its elements are 1, 2, 3, . . .
Z a set of integer numbers. Its elements are . . . − 2, −1, 0, 1, 2, . . .
There are two basic ways to describe sets. The first way is by listing elements
of a set within braces (when it is possible)
Examples
A = {a, b, c, d} is a set denoted by A containing elements a, b, c, d.
B = {x} is a set with one element x.
Notion or Concept
A set is a collection of distinct objects called elements or members.
Examples
N a set of natural numbers. Its elements are 1, 2, 3, . . .
Z a set of integer numbers. Its elements are . . . − 2, −1, 0, 1, 2, . . .
There are two basic ways to describe sets. The first way is by listing elements
of a set within braces (when it is possible)
Examples
A = {a, b, c, d} is a set denoted by A containing elements a, b, c, d.
B = {x} is a set with one element x.
N = {1, 2, 3, . . .} is the set of natural numbers.
Professor Askar Dzhumadil’daev Discrete Mathematics Lecture 2 - Sets and Relations 2 / 33
The second way is just giving description of a set. It has the following format
{x | x has certain properties}
which is read as ”the set of x such that x has certain properties”.
Examples
{1, 2, 1} = {1, 2} = {2, 1}
{ 12 , 42 } = { 12 }
{t | t = r − s, r, s ∈ {0, 1, 2}} = {−2, −1, 0, 1, 2}
Examples
{n ∈ N | 5n = 2}
{n ∈ N | n2 + 1 = 0}
Examples
{n ∈ N | 5n = 2}
{n ∈ N | n2 + 1 = 0}
Examples
{n ∈ N | 5n = 2}
{n ∈ N | n2 + 1 = 0}
Definition (Subset)
A set A is a subset of a set B if and only if every element of A is an element of
B, write it as A ⊆ B. If A ⊆ B but A 6= B, then A is called a proper subset of
B and write A $ B.
Definition (Subset)
A set A is a subset of a set B if and only if every element of A is an element of
B, write it as A ⊆ B. If A ⊆ B but A 6= B, then A is called a proper subset of
B and write A $ B.
Examples
{a, b} ⊆ {a, b, c}
{a, b} $ {a, b, c}
{a, b} $ {a, b, {a, b}}
{a, b} ∈ {a, b, {a, b}}
N$Z$Q$R$C
{a, b} $ {a, b, c} * {a, b, x}
Proof
If a ∈ A, then a ∈ A, so A ⊆ A. We prove the second part of proposition by
contradiction. Suppose the empty set ∅ is not a subset of A. Then there must
exist some x ∈ ∅ such that x ∈
/ A. However, it is impossible, since there is no
x∈∅
Proof
If a ∈ A, then a ∈ A, so A ⊆ A. We prove the second part of proposition by
contradiction. Suppose the empty set ∅ is not a subset of A. Then there must
exist some x ∈ ∅ such that x ∈
/ A. However, it is impossible, since there is no
x∈∅
Proof
If a ∈ A, then a ∈ A, so A ⊆ A. We prove the second part of proposition by
contradiction. Suppose the empty set ∅ is not a subset of A. Then there must
exist some x ∈ ∅ such that x ∈
/ A. However, it is impossible, since there is no
x∈∅
Proof
If a ∈ A, then a ∈ A, so A ⊆ A. We prove the second part of proposition by
contradiction. Suppose the empty set ∅ is not a subset of A. Then there must
exist some x ∈ ∅ such that x ∈
/ A. However, it is impossible, since there is no
x∈∅
Proof
If a ∈ A, then a ∈ A, so A ⊆ A. We prove the second part of proposition by
contradiction. Suppose the empty set ∅ is not a subset of A. Then there must
exist some x ∈ ∅ such that x ∈
/ A. However, it is impossible, since there is no
x∈∅
Proof
If a ∈ A, then a ∈ A, so A ⊆ A. We prove the second part of proposition by
contradiction. Suppose the empty set ∅ is not a subset of A. Then there must
exist some x ∈ ∅ such that x ∈
/ A. However, it is impossible, since there is no
x∈∅
Proposition (Easy)
A = B if and only if A ⊆ B and B ⊆ A
Example
If A = {a, b, c}, then its power set is
P(A) = {∅, {a}, {b}, {c}, {a, b}, {a, c}, {b, c}, {a, b, c}}
Example
If A = {a, b, c} and B = {a, x, y, b}, then
Example
If A = {a, b, c} and B = {a, x, y, b}, then
Proof.
Examples
{a, b, c}\{a, b} = {c}
{a, b, c}\{a, x} = {b, c}
{a, b, ∅}\∅ = {a, b, ∅}
{a, b, ∅}\{∅} = {a, b}
Let U be a set of days of week and
A = {Monday, Tuesday, Wednesday, Thursday, Friday}. Then
Ac = {Saturday, Sunday}
A = {x ∈ Z | x2 > 0}. Then Ac = {0}
Example
Let A = {a, b} and B = {x, y, z}. Then
A × B = {(a, x), (a, y), (a, z), (b, x), (b, y), (b, z)}
and
B × A = {(x, a), (x, b), (y, a), (y, b), (z, a), (z, b)}.
Examples
If A is the set of students who were registered at a University and
B = {Algorithms, Calculus, Discrete Mathematics, English}, then
R = {(a, b) | a ∈ A is enrolled in a course in subject b ∈ B in the third
semester }
is a binary relation from A to B
Examples
If A is the set of students who were registered at a University and
B = {Algorithms, Calculus, Discrete Mathematics, English}, then
R = {(a, b) | a ∈ A is enrolled in a course in subject b ∈ B in the third
semester }
is a binary relation from A to B
{(a, b) | a, b ∈ N, ab is an integer} and {(a, b) | a, b ∈ N, a − b = 2} are
binary relations on N
Examples
If A is the set of students who were registered at a University and
B = {Algorithms, Calculus, Discrete Mathematics, English}, then
R = {(a, b) | a ∈ A is enrolled in a course in subject b ∈ B in the third
semester }
is a binary relation from A to B
{(a, b) | a, b ∈ N, ab is an integer} and {(a, b) | a, b ∈ N, a − b = 2} are
binary relations on N
{(x, y) | y = x2 } is a binary relation on R whose graph is the parabola on
the plane R × R = R2
Examples
{(x, y) ∈ R2 | x ≤ y} is a reflexive relation on R since x ≤ x for any x ∈ R
Examples
{(x, y) ∈ R2 | x ≤ y} is a reflexive relation on R since x ≤ x for any x ∈ R
{(a, b) ∈ N2 | ab ∈ N} is a reflexive relation on N since a
a = 1 for any a ∈ N
Examples
{(x, y) ∈ R2 | x ≤ y} is a reflexive relation on R since x ≤ x for any x ∈ R
{(a, b) ∈ N2 | ab ∈ N} is a reflexive relation on N since a
a = 1 for any a ∈ N
2 2 2
{(x, y) ∈ R | x + y > 0} is not a reflexive relation on R since (0, 0) ∈
/R
Examples
R = {(x, y) ∈ R2 | x2 + y 2 = 1} is a symmetric relation on R since if
x2 + y 2 = 1, then y 2 + x2 = 1 too. If (x, y) ∈ R, then (y, x) ∈ R
Examples
R = {(x, y) ∈ R2 | x2 + y 2 = 1} is a symmetric relation on R since if
x2 + y 2 = 1, then y 2 + x2 = 1 too. If (x, y) ∈ R, then (y, x) ∈ R
{(x, y) ∈ Z2 | x − y is even} is a symmetric relation on Z since if x − y is
even so is y − x
Examples
R = {(x, y) ∈ R2 | x2 + y 2 = 1} is a symmetric relation on R since if
x2 + y 2 = 1, then y 2 + x2 = 1 too. If (x, y) ∈ R, then (y, x) ∈ R
{(x, y) ∈ Z2 | x − y is even} is a symmetric relation on Z since if x − y is
even so is y − x
R = {(x, y) ∈ R2 | x2 ≥ y} is not a symmetric relation on R. For example,
(2, 1) ∈ R because 22 ≥ 1, but (1, 2) ∈
/ R because 12 2
Examples
R = {(x, y) ∈ R2 | x ≤ y} is an antisymmetric relation on R since x ≤ y
and y ≤ x implies x = y; thus (x, y) ∈ R and (y, x) ∈ R implies x = y
Examples
R = {(x, y) ∈ R2 | x ≤ y} is an antisymmetric relation on R since x ≤ y
and y ≤ x implies x = y; thus (x, y) ∈ R and (y, x) ∈ R implies x = y
If S is a set and P(S) is a power set of S, then
{(X, Y ) | X, Y ∈ P(S), X ⊆ Y } is antisymmetric since X ⊆ Y and Y ⊆ X
implies X = Y
Examples
R = {(x, y) ∈ R2 | x ≤ y} is an antisymmetric relation on R since x ≤ y
and y ≤ x implies x = y; thus (x, y) ∈ R and (y, x) ∈ R implies x = y
If S is a set and P(S) is a power set of S, then
{(X, Y ) | X, Y ∈ P(S), X ⊆ Y } is antisymmetric since X ⊆ Y and Y ⊆ X
implies X = Y
R = {(1, 2), (2, 3), (3, 3), (2, 1)} is not antisymmetric relation on
A = {1, 2, 3} because (1, 2) ∈ R and (2, 1) ∈ R but 1 6= 2
Examples
R = {(x, y) ∈ R2 | x ≤ y} is an antisymmetric relation on R since x ≤ y
and y ≤ x implies x = y; thus (x, y) ∈ R and (y, x) ∈ R implies x = y
If S is a set and P(S) is a power set of S, then
{(X, Y ) | X, Y ∈ P(S), X ⊆ Y } is antisymmetric since X ⊆ Y and Y ⊆ X
implies X = Y
R = {(1, 2), (2, 3), (3, 3), (2, 1)} is not antisymmetric relation on
A = {1, 2, 3} because (1, 2) ∈ R and (2, 1) ∈ R but 1 6= 2
Remark
Note that “antisymmetric” is not the same as “not symmetric”. The last
relation in the preceding example is not symmetric but neither is it
antisymmetric.
Examples
R = {(x, y) ∈ R2 | x ≤ y} is transitive relation on R since x ≤ y and
y ≤ z, then x ≤ z; if (x, y) ∈ R and (y, z) ∈ R, then (x, z) ∈ R
Examples
R = {(x, y) ∈ R2 | x ≤ y} is transitive relation on R since x ≤ y and
y ≤ z, then x ≤ z; if (x, y) ∈ R and (y, z) ∈ R, then (x, z) ∈ R
{(a, b) ∈ Z2 | ab is an integer} is a transitive relation on Z since, if a
b and b
c
are integers, then so is ac because ac = ab · cb
Examples
R = {(x, y) ∈ R2 | x ≤ y} is transitive relation on R since x ≤ y and
y ≤ z, then x ≤ z; if (x, y) ∈ R and (y, z) ∈ R, then (x, z) ∈ R
{(a, b) ∈ Z2 | ab is an integer} is a transitive relation on Z since, if a
b and b
c
are integers, then so is ac because ac = ab · cb
R = {(x, y), (x, z), (y, u), (x, u)} is a transitive relation on {x, y, z, u}
because there is only one pair of the form (a, b), (b, c) belonging to R, that
is, (x, y) and (y, u) and, for this pair, it is true that (a, c) = (x, u) ∈ R
Examples
R = {(x, y) ∈ R2 | x ≤ y} is transitive relation on R since x ≤ y and
y ≤ z, then x ≤ z; if (x, y) ∈ R and (y, z) ∈ R, then (x, z) ∈ R
{(a, b) ∈ Z2 | ab is an integer} is a transitive relation on Z since, if a
b and b
c
are integers, then so is ac because ac = ab · cb
R = {(x, y), (x, z), (y, u), (x, u)} is a transitive relation on {x, y, z, u}
because there is only one pair of the form (a, b), (b, c) belonging to R, that
is, (x, y) and (y, u) and, for this pair, it is true that (a, c) = (x, u) ∈ R
R = {(a, b), (b, a), (a, a)} is not transitive on {a, b} since it contains the
pairs (b, a) and (a, b), but not the pair (b, b)
Examples
R = {(x, y) ∈ R2 | x ≤ y} is transitive relation on R since x ≤ y and
y ≤ z, then x ≤ z; if (x, y) ∈ R and (y, z) ∈ R, then (x, z) ∈ R
{(a, b) ∈ Z2 | ab is an integer} is a transitive relation on Z since, if a
b and b
c
are integers, then so is ac because ac = ab · cb
R = {(x, y), (x, z), (y, u), (x, u)} is a transitive relation on {x, y, z, u}
because there is only one pair of the form (a, b), (b, c) belonging to R, that
is, (x, y) and (y, u) and, for this pair, it is true that (a, c) = (x, u) ∈ R
R = {(a, b), (b, a), (a, a)} is not transitive on {a, b} since it contains the
pairs (b, a) and (a, b), but not the pair (b, b)
R = {(x, y) ∈ R2 | x2 ≥ y} is not transitive on R because (3, 4) ∈ R
(32 ≥ 4) and (4, 10) ∈ R(42 ≥ 10), but (3, 10) ∈ R (32 10)
Examples
Suppose A is the set of all people in the world and
R = {(a, b) ∈ A × A | a and b have the same parents} Then R is an
equivalence relation.
Examples
Suppose A is the set of all people in the world and
R = {(a, b) ∈ A × A | a and b have the same parents} Then R is an
equivalence relation.
{(a, b) ∈ Z2 | a − b is divisible by 3} is an equivalence relation
Examples
Suppose A is the set of all people in the world and
R = {(a, b) ∈ A × A | a and b have the same parents} Then R is an
equivalence relation.
{(a, b) ∈ Z2 | a − b is divisible by 3} is an equivalence relation
{(a, b) ∈ R2 | a ≤ b} is not an equivalence relation
Examples
Suppose A is the set of all people in the world and
R = {(a, b) ∈ A × A | a and b have the same parents} Then R is an
equivalence relation.
{(a, b) ∈ Z2 | a − b is divisible by 3} is an equivalence relation
{(a, b) ∈ R2 | a ≤ b} is not an equivalence relation
{(a, b) ∈ A2 | a = b} is an equivalence relation on any set A
Examples
Suppose A is the set of all people in the world and
R = {(a, b) ∈ A × A | a and b have the same parents} Then R is an
equivalence relation.
{(a, b) ∈ Z2 | a − b is divisible by 3} is an equivalence relation
{(a, b) ∈ R2 | a ≤ b} is not an equivalence relation
{(a, b) ∈ A2 | a = b} is an equivalence relation on any set A
Example
Let A be the set of all residents of Kazakhstan. Let a, b ∈ A. Call a and b are
related to each other by relation R, that is, (a, b) ∈ R if a and b are residents
of the same region of Kazakhstan. Then one can easily check that R is an
equivalence relation on A. The residents of Shymkent, for example, form one
equivalence class, as do the residents of Almaty, residents of Karaganda, and
so on. The quotient set is the set of all regions in Kazakhstan.
Example
Let R = {(x, y) ∈ Z2 | x − y is divisible by 3}. Then R =∼ on Z (Why?).
Example
Let R = {(x, y) ∈ Z2 | x − y is divisible by 3}. Then R =∼ on Z (Why?).
We will determine
equivalence classes of integer numbers
the quotient set Z/ ∼ in Z
with respect to the equivalence relation ∼.
Example
Let R = {(x, y) ∈ Z2 | x − y is divisible by 3}. Then R =∼ on Z (Why?).
We will determine
equivalence classes of integer numbers
the quotient set Z/ ∼ in Z
with respect to the equivalence relation ∼.
Let us first find the equivalence class of 0.
Example
Let R = {(x, y) ∈ Z2 | x − y is divisible by 3}. Then R =∼ on Z (Why?).
We will determine
equivalence classes of integer numbers
the quotient set Z/ ∼ in Z
with respect to the equivalence relation ∼.
Let us first find the equivalence class of 0. By definition we have
Example
Let R = {(x, y) ∈ Z2 | x − y is divisible by 3}. Then R =∼ on Z (Why?).
We will determine
equivalence classes of integer numbers
the quotient set Z/ ∼ in Z
with respect to the equivalence relation ∼.
Let us first find the equivalence class of 0. By definition we have
0 = {x ∈ Z | x ∼ 0}
Example
Let R = {(x, y) ∈ Z2 | x − y is divisible by 3}. Then R =∼ on Z (Why?).
We will determine
equivalence classes of integer numbers
the quotient set Z/ ∼ in Z
with respect to the equivalence relation ∼.
Let us first find the equivalence class of 0. By definition we have
0 = {x ∈ Z | x ∼ 0} = {x ∈ Z | x − 0 is divisible by 3}
Example
Let R = {(x, y) ∈ Z2 | x − y is divisible by 3}. Then R =∼ on Z (Why?).
We will determine
equivalence classes of integer numbers
the quotient set Z/ ∼ in Z
with respect to the equivalence relation ∼.
Let us first find the equivalence class of 0. By definition we have
0 = {x ∈ Z | x ∼ 0} = {x ∈ Z | x − 0 is divisible by 3} = {0, ±3, ±6, . . .}
Example
Let R = {(x, y) ∈ Z2 | x − y is divisible by 3}. Then R =∼ on Z (Why?).
We will determine
equivalence classes of integer numbers
the quotient set Z/ ∼ in Z
with respect to the equivalence relation ∼.
Let us first find the equivalence class of 0. By definition we have
0 = {x ∈ Z | x ∼ 0} = {x ∈ Z | x − 0 is divisible by 3} = {0, ±3, ±6, . . .}
= {3k | k ∈ Z}
Example
Let R = {(x, y) ∈ Z2 | x − y is divisible by 3}. Then R =∼ on Z (Why?).
We will determine
equivalence classes of integer numbers
the quotient set Z/ ∼ in Z
with respect to the equivalence relation ∼.
Let us first find the equivalence class of 0. By definition we have
0 = {x ∈ Z | x ∼ 0} = {x ∈ Z | x − 0 is divisible by 3} = {0, ±3, ±6, . . .}
= {3k | k ∈ Z} = 3Z.
Example
Let R = {(x, y) ∈ Z2 | x − y is divisible by 3}. Then R =∼ on Z (Why?).
We will determine
equivalence classes of integer numbers
the quotient set Z/ ∼ in Z
with respect to the equivalence relation ∼.
Let us first find the equivalence class of 0. By definition we have
0 = {x ∈ Z | x ∼ 0} = {x ∈ Z | x − 0 is divisible by 3} = {0, ±3, ±6, . . .}
= {3k | k ∈ Z} = 3Z.
1 = {x ∈ Z | x ∼ 1}
Example
Let R = {(x, y) ∈ Z2 | x − y is divisible by 3}. Then R =∼ on Z (Why?).
We will determine
equivalence classes of integer numbers
the quotient set Z/ ∼ in Z
with respect to the equivalence relation ∼.
Let us first find the equivalence class of 0. By definition we have
0 = {x ∈ Z | x ∼ 0} = {x ∈ Z | x − 0 is divisible by 3} = {0, ±3, ±6, . . .}
= {3k | k ∈ Z} = 3Z.
1 = {x ∈ Z | x ∼ 1} = {x ∈ Z | x − 1 is divisible by 3}
Example
Let R = {(x, y) ∈ Z2 | x − y is divisible by 3}. Then R =∼ on Z (Why?).
We will determine
equivalence classes of integer numbers
the quotient set Z/ ∼ in Z
with respect to the equivalence relation ∼.
Let us first find the equivalence class of 0. By definition we have
0 = {x ∈ Z | x ∼ 0} = {x ∈ Z | x − 0 is divisible by 3} = {0, ±3, ±6, . . .}
= {3k | k ∈ Z} = 3Z.
1 = {x ∈ Z | x ∼ 1} = {x ∈ Z | x − 1 is divisible by 3}
= {. . . − 5, −2, 1, 4, 7, . . .}
Example
Let R = {(x, y) ∈ Z2 | x − y is divisible by 3}. Then R =∼ on Z (Why?).
We will determine
equivalence classes of integer numbers
the quotient set Z/ ∼ in Z
with respect to the equivalence relation ∼.
Let us first find the equivalence class of 0. By definition we have
0 = {x ∈ Z | x ∼ 0} = {x ∈ Z | x − 0 is divisible by 3} = {0, ±3, ±6, . . .}
= {3k | k ∈ Z} = 3Z.
1 = {x ∈ Z | x ∼ 1} = {x ∈ Z | x − 1 is divisible by 3}
= {. . . − 5, −2, 1, 4, 7, . . .} = {3k + 1 | k ∈ Z}
Example
Let R = {(x, y) ∈ Z2 | x − y is divisible by 3}. Then R =∼ on Z (Why?).
We will determine
equivalence classes of integer numbers
the quotient set Z/ ∼ in Z
with respect to the equivalence relation ∼.
Let us first find the equivalence class of 0. By definition we have
0 = {x ∈ Z | x ∼ 0} = {x ∈ Z | x − 0 is divisible by 3} = {0, ±3, ±6, . . .}
= {3k | k ∈ Z} = 3Z.
1 = {x ∈ Z | x ∼ 1} = {x ∈ Z | x − 1 is divisible by 3}
= {. . . − 5, −2, 1, 4, 7, . . .} = {3k + 1 | k ∈ Z} = 3Z + 1.
Example
Let R = {(x, y) ∈ Z2 | x − y is divisible by 3}. Then R =∼ on Z (Why?).
We will determine
equivalence classes of integer numbers
the quotient set Z/ ∼ in Z
with respect to the equivalence relation ∼.
Let us first find the equivalence class of 0. By definition we have
0 = {x ∈ Z | x ∼ 0} = {x ∈ Z | x − 0 is divisible by 3} = {0, ±3, ±6, . . .}
= {3k | k ∈ Z} = 3Z.
1 = {x ∈ Z | x ∼ 1} = {x ∈ Z | x − 1 is divisible by 3}
= {. . . − 5, −2, 1, 4, 7, . . .} = {3k + 1 | k ∈ Z} = 3Z + 1.
2 = {x ∈ Z | x ∼ 2}
Example
Let R = {(x, y) ∈ Z2 | x − y is divisible by 3}. Then R =∼ on Z (Why?).
We will determine
equivalence classes of integer numbers
the quotient set Z/ ∼ in Z
with respect to the equivalence relation ∼.
Let us first find the equivalence class of 0. By definition we have
0 = {x ∈ Z | x ∼ 0} = {x ∈ Z | x − 0 is divisible by 3} = {0, ±3, ±6, . . .}
= {3k | k ∈ Z} = 3Z.
1 = {x ∈ Z | x ∼ 1} = {x ∈ Z | x − 1 is divisible by 3}
= {. . . − 5, −2, 1, 4, 7, . . .} = {3k + 1 | k ∈ Z} = 3Z + 1.
2 = {x ∈ Z | x ∼ 2} = {x ∈ Z | x − 2 is divisible by 3}
Example
Let R = {(x, y) ∈ Z2 | x − y is divisible by 3}. Then R =∼ on Z (Why?).
We will determine
equivalence classes of integer numbers
the quotient set Z/ ∼ in Z
with respect to the equivalence relation ∼.
Let us first find the equivalence class of 0. By definition we have
0 = {x ∈ Z | x ∼ 0} = {x ∈ Z | x − 0 is divisible by 3} = {0, ±3, ±6, . . .}
= {3k | k ∈ Z} = 3Z.
1 = {x ∈ Z | x ∼ 1} = {x ∈ Z | x − 1 is divisible by 3}
= {. . . − 5, −2, 1, 4, 7, . . .} = {3k + 1 | k ∈ Z} = 3Z + 1.
2 = {x ∈ Z | x ∼ 2} = {x ∈ Z | x − 2 is divisible by 3}
= {. . . − 4, −1, 2, 5, 8, . . .}
Example
Let R = {(x, y) ∈ Z2 | x − y is divisible by 3}. Then R =∼ on Z (Why?).
We will determine
equivalence classes of integer numbers
the quotient set Z/ ∼ in Z
with respect to the equivalence relation ∼.
Let us first find the equivalence class of 0. By definition we have
0 = {x ∈ Z | x ∼ 0} = {x ∈ Z | x − 0 is divisible by 3} = {0, ±3, ±6, . . .}
= {3k | k ∈ Z} = 3Z.
1 = {x ∈ Z | x ∼ 1} = {x ∈ Z | x − 1 is divisible by 3}
= {. . . − 5, −2, 1, 4, 7, . . .} = {3k + 1 | k ∈ Z} = 3Z + 1.
2 = {x ∈ Z | x ∼ 2} = {x ∈ Z | x − 2 is divisible by 3}
= {. . . − 4, −1, 2, 5, 8, . . .} = {3k + 2 | k ∈ Z}
Example
Let R = {(x, y) ∈ Z2 | x − y is divisible by 3}. Then R =∼ on Z (Why?).
We will determine
equivalence classes of integer numbers
the quotient set Z/ ∼ in Z
with respect to the equivalence relation ∼.
Let us first find the equivalence class of 0. By definition we have
0 = {x ∈ Z | x ∼ 0} = {x ∈ Z | x − 0 is divisible by 3} = {0, ±3, ±6, . . .}
= {3k | k ∈ Z} = 3Z.
1 = {x ∈ Z | x ∼ 1} = {x ∈ Z | x − 1 is divisible by 3}
= {. . . − 5, −2, 1, 4, 7, . . .} = {3k + 1 | k ∈ Z} = 3Z + 1.
2 = {x ∈ Z | x ∼ 2} = {x ∈ Z | x − 2 is divisible by 3}
= {. . . − 4, −1, 2, 5, 8, . . .} = {3k + 2 | k ∈ Z} = 3Z + 2.
Example
By similar way, we obtain
Example
By similar way, we obtain
3 = {3k + 3 | k ∈ Z}
Example
By similar way, we obtain
3 = {3k + 3 | k ∈ Z} = {3(k + 1) | k ∈ Z}
Example
By similar way, we obtain
3 = {3k + 3 | k ∈ Z} = {3(k + 1) | k ∈ Z} = {3k | k ∈ Z}
Example
By similar way, we obtain
3 = {3k + 3 | k ∈ Z} = {3(k + 1) | k ∈ Z} = {3k | k ∈ Z} = 0.
Example
By similar way, we obtain
3 = {3k + 3 | k ∈ Z} = {3(k + 1) | k ∈ Z} = {3k | k ∈ Z} = 0. Hence, 3 = 0.
Example
By similar way, we obtain
3 = {3k + 3 | k ∈ Z} = {3(k + 1) | k ∈ Z} = {3k | k ∈ Z} = 0. Hence, 3 = 0.
4 = {3k + 4 | k ∈ Z}
Example
By similar way, we obtain
3 = {3k + 3 | k ∈ Z} = {3(k + 1) | k ∈ Z} = {3k | k ∈ Z} = 0. Hence, 3 = 0.
4 = {3k + 4 | k ∈ Z} = {3(k + 1) + 1 | k ∈ Z}
Example
By similar way, we obtain
3 = {3k + 3 | k ∈ Z} = {3(k + 1) | k ∈ Z} = {3k | k ∈ Z} = 0. Hence, 3 = 0.
Example
By similar way, we obtain
3 = {3k + 3 | k ∈ Z} = {3(k + 1) | k ∈ Z} = {3k | k ∈ Z} = 0. Hence, 3 = 0.
Example
By similar way, we obtain
3 = {3k + 3 | k ∈ Z} = {3(k + 1) | k ∈ Z} = {3k | k ∈ Z} = 0. Hence, 3 = 0.
Example
By similar way, we obtain
3 = {3k + 3 | k ∈ Z} = {3(k + 1) | k ∈ Z} = {3k | k ∈ Z} = 0. Hence, 3 = 0.
Example
By similar way, we obtain
3 = {3k + 3 | k ∈ Z} = {3(k + 1) | k ∈ Z} = {3k | k ∈ Z} = 0. Hence, 3 = 0.
Example
By similar way, we obtain
3 = {3k + 3 | k ∈ Z} = {3(k + 1) | k ∈ Z} = {3k | k ∈ Z} = 0. Hence, 3 = 0.
Example
By similar way, we obtain
3 = {3k + 3 | k ∈ Z} = {3(k + 1) | k ∈ Z} = {3k | k ∈ Z} = 0. Hence, 3 = 0.
Additionally, we note that the equivalence classes are disjoint sets (they do
not have an common element) whose union is Z
Z = (3Z) ∪ (3Z + 1) ∪ (3Z + 2).
Proof
If a ∼ b, let x be any element of a. Then x ∼ a and so x ∼ b by
transitivity. Hence x ∈ b and a ⊆ b. The symmetry of ∼ implies that
b ∼ a, and an argument similar to the above shows that b ⊆ a. This
proves that a = b.
Proof
If a ∼ b, let x be any element of a. Then x ∼ a and so x ∼ b by
transitivity. Hence x ∈ b and a ⊆ b. The symmetry of ∼ implies that
b ∼ a, and an argument similar to the above shows that b ⊆ a. This
proves that a = b.
Suppose that a b. If there was an element x ∈ a ∩ b, then x ∼ a, x ∼ b,
so a ∼ b by symmetry and transitivity. Hence a ∩ b = ∅.
Proof
If a ∼ b, let x be any element of a. Then x ∼ a and so x ∼ b by
transitivity. Hence x ∈ b and a ⊆ b. The symmetry of ∼ implies that
b ∼ a, and an argument similar to the above shows that b ⊆ a. This
proves that a = b.
Suppose that a b. If there was an element x ∈ a ∩ b, then x ∼ a, x ∼ b,
so a ∼ b by symmetry and transitivity. Hence a ∩ b = ∅.
The first two parts of the theorem show that two equivalence classes are
either the same or disjoint. The reflexivity of ∼ implies that each element
a ∈ A is in the equivalence class a. Hence A is the disjoint union of all the
equivalence classes
Professor Askar Dzhumadil’daev Discrete Mathematics Lecture 2 - Sets and Relations 23 / 33
Examples
The binary relation ≤ on the real numbers is a partial order.
Examples
The binary relation ≤ on the real numbers is a partial order.
For any set S, the binary relation ⊆ on the power set P(S) is a partial
order.
Example
If X and Y are subsets of a set S, it need not be the case that X ⊆ Y or
Y ⊆ X; for example, {a} and {b, c} are not comparable.
Example
If X and Y are subsets of a set S, it need not be the case that X ⊆ Y or
Y ⊆ X; for example, {a} and {b, c} are not comparable.
Definition
If is a partial order on a set and every two elements of A are comparable,
then is called a total order and the pair (A, ) is called a totally ordered set.
Example
The real numbers are totally ordered set by ≤ because, for every pair a, b of
real numbers, either a ≤ b or b ≤ a. On the other hand, the sets of sets,
{{a}, {b}, {c}, {a, c}} is not totally ordered by ⊆ since neither {a} ⊆ {b} nor
{b} ⊆ {a}.
Example
In the poset (P({a, b, c}), ⊆), ∅ set is a minimum element and the set {a, b, c}
maximum element. In the poset {{a}, {b}, {c}, {a, c}} (with respect to ⊆),
there is neither a maximum nor a minimum because, for each of the elements
{a}, {b}, {c} and{a, c}, there is no another of these with which it is not
comparable.
If b ∈ A and b a, then b = a.
If b ∈ A and b a, then b = a.
Thus, a maximum element is “bigger” (in the sense of ) than every other
element in the set, while a maximal element is one that is not less than any
other. Considering again the poset {{a}, {b}, {c}, {a, c}}, while there is neither
a maximum nor a minimum, each of {a}, {b} and {c} is minimal, while {b}
and {a, c} are maximal.