SETLecture 5
SETLecture 5
SETLecture 5
What is Set?
B
A
Fig: A Is a Subset of B.
Try Yourself
Let A = {1, 5, { { 1,2}, ø},{ø } }. State
whether the following statements are
true or not. Give reason.
{1, 3, ø} ⊆ A
{1, 5, ø} ⊆ A
{}⊆A
Proper subset
When we wish to emphasize that a
set A is a subset of a set B but that
A = B, we write A ⊂ B and say that A is
a proper subset of B.
∀x(x ∈ A → x ∈ B) ∧ ∃x(x ∈ B ∧ x ∈
A)
Try Yourself
A is the set of prime numbers less than 10 , B is the
set of odd numbers less than 10, C is the set of
even numbers less than 10.
How many of the following statements are true? Explain
i. A ⊂B Is ∀x(x ∈ A → x ∈ B) ∧ ∃x(x ∈ B ∧ x ∈ A) true?
ii. B ⊂ A
iii. A ⊂ C
iv. C ⊂ A
v. B ⊂ C
vi. C ⊂ A
Prime numbers less than 10 are: 2,3,5,7
Set Theory - Definitions and notation
A few more:
Is {a} {a}? No
Power set
The power set of S is denoted by
P(S).
The power set P({0, 1, 2}) is the set of all subsets of {0, 1,
2}. Hence,
P({0, 1, 2}) = {∅, {0}, {1}, {2}, {0, 1}, {0, 2}, {1, 2}, {0, 1, 2}}.
Note that the empty set and the set itself are members of
this set of subsets.
Examples
If S is a set, then the power set of S is 2S = { x : x S }.
Is {1,2,3}? No!
Is {,1,2,3}? Yes!
Is {,1,2,3}? Yes!
Set operators
The union of two sets A and B is:
A B = { x : x A v x B}
If A = {Charlie, Lucy, Linus}, and B = {Lucy, Desi},
then
B
A
Set Theory - Operators
The intersection of two sets A and B is:
A B = { x : x A x B}
If A = {Charlie, Lucy, Linus}, and B = {Lucy, Desi},
then
A B = {Lucy}
B
A
Set Theory - Operators
The intersection of two sets A and B is:
A B = { x : x A x B}
If A = {x : x is a US president}, and B = {x : x is in this room}, then
Sets whose
B
A intersection is
empty are called
disjoint sets
20
Set Theory - Operators
The complement of a set A is:
A = { x : x A}
If A = {x : x is bored}, then
A = {x : x is not bored}
U
A = U
and
U=