L1-Set Theory
L1-Set Theory
• The notation {a, b, c, d} represents the set with the four elements a,
b, c, and d. This way of describing a set is known as the roster
method.
• Another way to describe a set is to use set builder notation. We
characterize all those elements in the set by stating the property or
properties they must have to be members.
• The general form of this notation is {x ∣ x has property P} and is read
“the set of all x such that x has property P.”
• O = {x ∣ x is an odd positive integer less than 10}
• O = {x ∈ Z+ ∣ x is odd and x < 10}.
• Two sets are equal if and only if they have the same elements. If A
and B are sets, then A and B are equal if and only if ∀x(x ∈ A ↔ x ∈
B). We write A = B if A and B are equal sets.
• Are {1, 3, 5} and {3, 5, 1} equal?
• A = {9, 2, 7, -3}, B = {7, 9, -3, A=B
2} :
• A = {dog, cat, horse},
B = {cat, horse, squirrel, dog} A != B
:•
A = {dog, cat, horse},
B = {cat, horse, dog, dog} : A=B
• THE EMPTY SET: There is a special set that has no elements. This set is
called the empty set, or null set, and is denoted by ∅.
• A set with one element is called a singleton set.
• Is the set A={∅} empty? Or singleton?.
• The set A={∅} is a singleton set.
AB “A is a subset of B”
A B if and only if every element of A is also
an element of B.
We can write it as:
A B x (xA xB)
Examples:
A = {3, 9}, B = {5, 9, 1, 3}, A true
B?
A = {3, 3, 3, 9}, B = {5, 9, 1, 3}, A true
B?
A = {1, 2, 3}, B = {2, 3, 4}, A false
B?
Useful rules:
A = B (A B) (B A)
(A B) (B C) A C
A for any set A (but A may not hold for any set A)
A A for any set A
EXAMPLE
Let A = {1, 3, 5, 7, 9} and B = {2, 4, 6, 8, 10}. Because A ∩ B =
∅, A and B are disjoint.
• Let U be the universal set. The complement of the set A,
denoted by A’, is the complement of A with respect to U.
• Therefore, the complement of the set A is U − A.
EXAMPLE Let A = {a, e, i, o, u} (where the universal set is the set of letters of the English
alphabet). Then
A’ = {b, c, d, f, g, h, j, k, l, m, n, p, q, r, s, t, v, w, x, y, z}.
EXAMPLE Let A be the set of positive integers greater than 10 (with universal set the set
of all positive integers). Then A’ = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}.The set of positive integers
is infinite.
EXAMPLE Suppose a list A contains the 30 students in Discrete Mathematics class, and a
list B contains the 35 students in an Communication skills class, and suppose there are
20 names on both lists. Find the number of students:
(a) only on list A, (b) only on list B, (c) on list A or B (or both), (d) on exactly one list.
SOLUTION: (a) List A has 30 names and 20 are on BOTH lists, hence 30 − 20 = 10 names
are only on list A.
(b) Similarly, 35 − 20 = 15 are only on list B.
(c) We find n(A ∪ B).
By inclusion–exclusion,
n(A ∪ B) = n(A) + n(B) − n(A ∩ B) = 30 + 35 − 20 = 45.
In other words, we combine the two lists and then cross out the 20 names which appear
twice.
(d) By (a) and (b), 10 + 15 = 25 names are only on one list
VENN DIAGRAMS
A Venn diagram is a pictorial representation of sets in which
sets are represented by enclosed areas in the plane.
EXAMPLE
Infinite sets: We already know, that a set which is not finite is
called an infinite set.
2 4 6 8 10 12 14 .......
To confirm the one-to-one correspondence, we pair every n of N with 2n
set of even positive integers. By pairing each n in N with 2n in the said
set, we get pairs as (n and 2n) which is unique pair of each number in
set of even positive integers.
0 -2 2 -4 4 -6 6 .......
Principle of Mathematical Induction I: Let P be a proposition defined on the positive integers N; that is, P(n)
is either true or false for each n ∈ N. Suppose P has the following two properties:
(i) P (1) is true.
(ii) P (k + 1) is true whenever P(k) is true.
Then P is true for every positive integer n ∈ N.
Example 1: Let P be the proposition that the sum of the first n odd numbers is ; that is,
P(n) : 1 + 3 + 5+ ・ ・ ・ +(2n − 1) =
(The kth odd number is 2k −1, and the next odd number is 2k +1.)