SlideShare a Scribd company logo
Discrete Mathematics
(Sets)
Pramod Ganapathi
Department of Computer Science
State University of New York at Stony Brook
January 24, 2021
What is a set?
Definition
A set is a collection of related items
Examples
A = {1, 2, 3, 4, 5}
P = {2, 3, 5, 7, 11, 13, 17, . . .}
S is a set of square numbers
B = {m ∈ Z | m = 7n + 100 for some n ∈ Z}
Subsets
Definitions
Subset. A ⊆ B ⇔ ∀x, if x ∈ A then x ∈ B
Not subset. A * B ⇔ ∃x such that x ∈ A and x 6∈ B
Proper subset. A ⊂ B ⇔
1. A ⊆ B
2. ∃x such that x ∈ B and x 6∈ A
Problems
Let A = {1} and B = {1, {1}}.
(a) Is A ⊆ B?
(b) Is A ⊂ B?
Let A = {m ∈ Z | m = 6r + 12 for some r ∈ Z} and
B = {n ∈ Z | n = 3s for some s ∈ Z}.
(a) Prove that A ⊆ B.
(b) Disprove that B ⊆ A.
Set equality
Definition
Given sets A and B, A equals B, written A = B, if, and only
if, every element of A is in B and every element of B is in A.
A = B ⇔ A ⊆ B and B ⊆ A.
Problems
A = {m ∈ Z | m = 2a for some integer a}
B = {n ∈ Z | n = 2b − 2 for some integer b}
Is A = B?
Venn diagrams
Definition
Relationship between a small number of sets can be represented
by pictures called Venn diagrams
Problems
Write a Venn diagram representing sets of numbers:
N, W, Q, R.
Operations on sets
Definition
Let A and B be subsets of a universal set U.
1. The union of A and B, denoted A∪B, is the set of all elements
that are in at least one of A or B.
A ∪ B = {x ∈ U | x ∈ A or x ∈ B}
2. The intersection of A and B, denoted A ∩ B, is the set of all
elements that are common to both A and B.
A ∩ B = {x ∈ U | x ∈ A and x ∈ B}
3. The difference of B minus A (or relative complement of A in
B), denoted B − A, is the set of all elements that are in B
and not A.
B − A = {x ∈ U | x ∈ B and x 6∈ A}
4. The complement of A, denoted A0, is the set of all elements
in U that are not in A.
A0 = {x ∈ U | x 6∈ A}
Operations on sets
Problems
Let the universal set U = {a, b, c, d, e, f, g}.
Let A = {a, c, e, g} and B = {d, e, f, g}.
Find A ∪ B, A ∩ B, B − A, and A0.
Operations on sets
Notations
Given real numbers a and b with a ≤ b:
(a, b) = {x ∈ R | a < x < b}
[a, b] = {x ∈ R | a ≤ x ≤ b}
(a, b] = {x ∈ R | a < x ≤ b}
[a, b) = {x ∈ R | a ≤ x < b}
The symbols ∞ and −∞ are used to indicate intervals that are
unbounded either on the right or on the left:
(a, ∞) = {x ∈ R | x > a}
[a, ∞) = {x ∈ R | x ≥ a}
(−∞, b) = {x ∈ R | x < b}
(−∞, b] = {x ∈ R | x ≤ b}
Problems
A = (−1, 0] = {x ∈ R | − 1 < x ≤ 0}
B = [0, 1) = {x ∈ R | 0 ≤ x < 1}.
Find A ∪ B, A ∩ B, B − A, and A0.
Operations on sets
Notations
Given sets A0, A1, A2, . . . that are subsets of a universal set U
and given a nonnegative integer n,
∪n
i=0Ai = {x ∈ U | x ∈ Ai for at least one i = 0, 1, 2, . . . , n}
∪∞
i=0Ai = {x ∈ U | x ∈ Ai for at least one whole number i}
∩n
i=0Ai = {x ∈ U | x ∈ Ai for all i = 0, 1, 2, . . . , n}
∩∞
i=0Ai = {x ∈ U | x ∈ Ai for all whole numbers i}
Problems
For each positive integer i, let
Ai = {x ∈ R | − 1
i < x < 1
i } =

−1
i , 1
i

Find A1 ∪ A2 ∪ A3 and A1 ∩ A2 ∩ A3
Find ∪∞
i=0Ai and ∩∞
i=0Ai
Empty set
Definition
Empty set, denoted by φ, is a set with no elements.
Examples
{1, 3} ∩ {2, 4} = φ
{x ∈ R | x2 = −1} = φ
{x ∈ R | 3  x  2} = φ
Disjoint sets
Definition
Two sets are called disjoint if, and only if, they have no elements
in common.
A and B are disjoint ⇔ A ∩ B = φ
Problems
Let A = {1, 3, 5} and B = {2, 4, 6}. Are A and B disjoint?
Mutually disjoint sets
Definition
Sets A1, A2, A3, . . . are mutually disjoint (or pairwise disjoint
or nonoverlapping) if, and only if, no two sets Ai and Aj with
distinct subscripts have any elements in common.
For all i, j = 1, 2, 3, . . .
Ai ∩ Aj = φ whenever i 6= j.
Problems
Are the following sets mutually disjoint?
A1 = {3, 5}, A2 = {1, 4, 6}, and A3 = {2}.
B1 = {2, 4, 6}, B2 = {3, 7}, and B3 = {4, 5}.
Partition of a set
Definition
A finite or infinite collection of nonempty sets {A1, A2, A3, . . .}
is a partition of a set A if, and only if,
1. A is the union of all the Ai
2. The sets A1, A2, A3, . . . are mutually disjoint.
Problems
Let A = {1, 2, 3, 4, 5, 6} A1 = {1, 2}, A2 = {3, 4}, and A3 =
{5, 6}. Is {A1, A2, A3} a partition of A?
Let Z be the set of all integers and let
T0 = {n ∈ Z | n = 3k, for some integer k},
T1 = {n ∈ Z | n = 3k + 1, for some integer k},
T2 = {n ∈ Z | n = 3k + 2, for some integer k},
Is {T0, T1, T2} a partition of Z?
Power set
Definition
Given a set A, the power set of A, denoted P(A), is the set of
all subsets of A.
Problems
Find the power set of the set {x, y}. That is, find P({x, y}).
Ordered n-tuple
Definition
Ordered n-tuple, (x1, x2, . . . , xn), consists of x1, x2, . . . , xn to-
gether with the ordering.
Ordered pair = ordered 2-tuple
Ordered triple = ordered 3-tuple
Two ordered n-tuples (x1, x2, . . . , xn) and (y1, y2, . . . , yn) are
equal if, and only if, x1 = y1, x2 = y2, . . . , xn = yn.
(x1, x2, . . . , xn) = (y1, y2, . . . , yn) ⇔ x1 = y1, . . . , xn = yn.
Problems
Is (1, 2, 3, 4) = (1, 2, 4, 3)?
Is

3, (−2)2, 1
2

=
√
9, 4, 3
6

?
Is ((1, 2), 3) = (1, 2, 3)?
Cartesian product
Definition
Given sets A1, A2, . . . , An, the Cartesian product of
A1, A2, . . . , An denoted A1 × A2 × · · · × An, is the set of
all ordered n-tuples (a1, a2, . . . , an) where a1 ∈ A1, a2 ∈
A2, . . . , an ∈ An.
A1 × A2 × · · · × An = {(a1, a2, . . . , an) | a1 ∈ A1, a2 ∈
A2, . . . , an ∈ An}.
Problems
Let A1 = {x, y}, A2 = {1, 2, 3}, and A3 = {a, b}. Find:
(a) A1 × A2,
(b) (A1 × A2) × A3, and
(c) A1 × A2 × A3.
Properties of sets
Definition
Inclusion of intersection: For all sets A and B,
A ∩ B ⊆ A and A ∩ B ⊆ B.
Inclusion in union: For all sets A and B,
A ⊆ A ∪ B and B ⊆ A ∪ B.
Transitive property of subsets: For all sets A, B, and C,
if A ⊆ B and B ⊆ C, then A ⊆ C.
Procedural versions of set definitions
Definition
Let X and Y be subsets of a universal set U and suppose x and
y are elements of U.
x ∈ X ∪ Y ⇔ x ∈ X or x ∈ Y
x ∈ X ∩ Y ⇔ x ∈ X and x ∈ Y
x ∈ X − Y ⇔ x ∈ X and x 6∈ Y
x ∈ X0 ⇔ x 6∈ X
(x, y) ∈ X × Y ⇔ x ∈ X and y ∈ Y
Set identities
Laws Formula Formula
Commutative laws A ∪ B = B ∪ A A ∩ B = B ∩ A
Associative laws (A∪B)∪C = A∪(B∪C) (A∩B)∩C = A∩(B∩C)
Distributive laws A ∪ (B ∩ C) = (A ∪ B) ∩
(A ∪ C)
A ∩ (B ∪ C) = (A ∩ B) ∪
(A ∩ C)
Identity laws A ∪ φ = A A ∩ U = A
Complement laws A ∪ A0 = U A ∩ A0 = φ
Double comp. law (A0)0 = A
Idempotent laws A ∪ A = A A ∩ A = A
Uni. bound laws A ∪ U = U A ∩ φ = φ
De Morgan’s laws (A ∪ B)0 = A0 ∩ B0 (A ∩ B)0 = A0 ∪ B0
Absorption laws A ∪ (A ∩ B) = A A ∩ (A ∪ B) = A
Complements U0 = φ φ0 = U
Set diff. laws A − B = A ∩ B0
Element argument
Basic method for proving that a set is a subset of another
Let sets X and Y be given. To prove that X ⊆ Y ,
1. suppose that x is a particular but arbitrarily chosen element
of X.
2. show that x is an element of Y .
Element argument
Basic method for proving that two sets are equal
Let sets X and Y be given. To prove that X = Y ,
1. Prove that X ⊆ Y .
2. Prove that Y ⊆ X.
Element argument
Basic method for proving a set equals the empty set
To prove that a set X is equal to the empty set φ, prove that
X has no elements.
To do this, suppose X has an element and derive a contradic-
tion.
Proof by element argument: Example 1
Proposition
Prove that for all sets A, B, and C
A ∪ (B ∩ C) = (A ∪ B) ∩ (A ∪ C)
Proof by element argument: Example 1
Proposition
Prove that for all sets A, B, and C
A ∪ (B ∩ C) = (A ∪ B) ∩ (A ∪ C)
Proof
We need to prove:
1. A ∪ (B ∩ C) ⊆ (A ∪ B) ∩ (A ∪ C)
2. (A ∪ B) ∩ (A ∪ C) ⊆ A ∪ (B ∩ C)
Proof by element argument: Example 1
Proof (continued)
Proof that A ∪ (B ∩ C) ⊆ (A ∪ B) ∩ (A ∪ C).
Suppose x ∈ A ∪ (B ∩ C).
x ∈ A or x ∈ B ∩ C (∵ defn. of union)
Case 1. [x ∈ A.]
x ∈ A ∪ B (∵ defn. of union)
x ∈ A ∪ C (∵ defn. of union)
x ∈ (A ∪ B) ∩ (A ∪ C) (∵ defn. of intersection)
Case 2. [x ∈ B ∩ C.]
x ∈ B and x ∈ C (∵ defn. of intersection)
x ∈ A ∪ B (∵ defn. of union)
x ∈ A ∪ C (∵ defn. of union)
x ∈ (A ∪ B) ∩ (A ∪ C) (∵ defn. of intersection)
Proof by element argument: Example 1
Proof (continued)
Proof that (A ∪ B) ∩ (A ∪ C) ⊆ A ∪ (B ∩ C).
Suppose x ∈ (A ∪ B) ∩ (A ∪ C).
x ∈ A ∪ B and x ∈ A ∪ C (∵ defn. of intersection)
Case 1. [x ∈ A.]
x ∈ A ∪ (B ∩ C) (∵ defn. of union)
Case 2. [x 6∈ A.]
x ∈ A or x ∈ B (∵ defn. of union)
x ∈ B (∵ x 6∈ A)
x ∈ A or x ∈ C (∵ defn. of union)
x ∈ C (∵ x 6∈ A)
x ∈ B ∩ C (∵ defn. of intersection)
x ∈ A ∪ (B ∩ C) (∵ defn. of union)
Proof by element argument: Example 2
Proposition
Prove that for all sets A and B, (A ∪ B)0 = A0 ∩ B0.
Proof by element argument: Example 2
Proposition
Prove that for all sets A and B, (A ∪ B)0 = A0 ∩ B0.
Proof
We need to prove:
1. (A ∪ B)0 ⊆ A0 ∩ B0
2. A0 ∩ B0 ⊆ (A ∪ B)0
Proof by element argument: Example 2
Proof (continued)
Proof that (A ∪ B)0 ⊆ A0 ∩ B0.
Suppose x ∈ (A ∪ B)0.
x 6∈ A ∪ B (∵ defn. of complement)
It is false that (x is in A or x is in B).
x is not in A and x is not in B (∵ De Morgan’s law of logic)
x 6∈ A and x 6∈ B
x ∈ A0 and x ∈ B0 (∵ defn. of complement)
x ∈ (A0 ∩ B0) (∵ defn. of intersection)
Hence, (A ∪ B)0 ⊆ A0 ∩ B0 (∵ defn. of subset)
Proof by element argument: Example 2
Proof (continued)
Proof that A0 ∩ B0 ⊆ (A ∪ B)0.
Suppose x ∈ A0 ∩ B0.
x ∈ A0 and x ∈ B0 (∵ defn. of intersection)
x 6∈ A and x 6∈ B (∵ defn. of complement)
x is not in A and x is not in B
It is false that (x is in A or x is in B)
(∵ De Morgan’s law of logic)
x 6∈ A ∪ B
x ∈ (A ∪ B)0 (∵ defn. of complement)
Hence, A0 ∩ B0 ⊆ (A ∪ B)0 (∵ defn. of subset)
Proof by element argument: Example 3
Proposition
For any sets A and B, if A ⊆ B, then
(a) A ∩ B = A and (b) A ∪ B = B.
Proof by element argument: Example 3
Proposition
For any sets A and B, if A ⊆ B, then
(a) A ∩ B = A and (b) A ∪ B = B.
Proof
Part (a): We need to prove:
1. A ∩ B ⊆ A
2. A ⊆ A ∩ B
Part (b): We need to prove:
1. A ∪ B ⊆ B
2. B ⊆ A ∪ B
Proof by element argument: Example 3
Proof (continued)
Part (a).
1. Proof that A ∩ B ⊆ A.
A ∩ B ⊆ A (∵ inclusion of intersection)
2. Proof that A ⊆ A ∩ B.
Suppose x ∈ A
x ∈ B (∵ A ⊆ B)
x ∈ A and x ∈ B
x ∈ A ∩ B (∵ defn. of intersection)
Proof by element argument: Example 3
Proof (continued)
Part (b).
1. Proof that A ∪ B ⊆ B.
Suppose x ∈ A ∪ B
x ∈ A or x ∈ B (∵ defn. of union)
If x ∈ A, then x ∈ B (∵ A ⊆ B)
x ∈ B (∵ Modus Ponens and division into cases)
2. Proof that B ⊆ A ∪ B.
B ⊆ A ∪ B (∵ inclusion in union)
Proof by element argument: Example 4
Proposition
If E is a set with no elements and A is any set, then E ⊆ A.
Proof by element argument: Example 4
Proposition
If E is a set with no elements and A is any set, then E ⊆ A.
Proof
Proof by contradiction.
Suppose there exists a set E with no elements and a set A such
that E 6⊆ A.
∃x such that x ∈ E and x 6∈ A (∵ defn. of a subset)
But there can be no such element since E has no elements.
Contradiction!
Hence, if E is a set with no elements and A is any set, then
E ⊆ A.
Proof by element argument: Example 5
Proposition
There is only one set with no elements.
Proof by element argument: Example 5
Proposition
There is only one set with no elements.
Proof
Suppose E1 and E2 are both sets with no elements.
E1 ⊆ E2 (∵ previous proposition)
E2 ⊆ E1 (∵ previous proposition)
Thus, E1 = E2
Proof by element argument: Example 6
Proposition
Prove that for any set A, A ∩ φ = φ
Proof by element argument: Example 6
Proposition
Prove that for any set A, A ∩ φ = φ
Proof
Proof by contradiction.
Suppose there is an element x such that x ∈ A ∩ φ
x ∈ A and x ∈ φ (∵ defn. of intersection)
x ∈ φ
Impossible because φ cannot have any elements
Hence, the supposition is incorrect.
So, A ∩ φ = φ
Proof by element argument: Example 7
Proposition
For all sets A, B, and C, if A ⊆ B and B ⊆ C0, then A∩C = φ.
Proof by element argument: Example 7
Proposition
For all sets A, B, and C, if A ⊆ B and B ⊆ C0, then A∩C = φ.
Proof
Proof by contradiction.
Suppose there is an element x such that x ∈ A ∩ C
x ∈ A and x ∈ C (∵ defn. of intersection)
x ∈ A
x ∈ B (∵ x ∈ A and A ⊆ B)
x ∈ C0 (∵ x ∈ B and B ⊆ C0)
x 6∈ C (∵ defn. of complement)
x ∈ C and x 6∈ C
Contradiction!
Hence, the supposition is incorrect.
So, A ∩ C = φ
Proof by counterexample: Example 1
Proposition
For all sets A, B, and C, (A − B) ∪ (B − C) = A − C.
Proof by counterexample: Example 1
Proposition
For all sets A, B, and C, (A − B) ∪ (B − C) = A − C.
Proof by counterexample: Example 1
Proposition
For all sets A, B, and C, (A − B) ∪ (B − C) = A − C.
Disproof
(A − B) ∪ (B − C) 6= A − C
Draw Venn diagrams
Counterexample 1: A = {1}, B = φ, C = {1}
Counterexample 2: A = φ, B = {1}, C = φ
Proof by mathematical induction: Example 1
Proposition
For all integers n ≥ 0, if a set X has n elements, then P(X)
has 2n elements.
Proof by mathematical induction: Example 1
Proposition
For all integers n ≥ 0, if a set X has n elements, then P(X)
has 2n elements.
Proof
Let P(n) denote “Any set with n elements has 2n subsets.”
Basis step. P(0) is true.
The only set with zero elements is the empty set. The only
subset of the empty set is itself. Hence, 20 = 1.
Induction step. Suppose that P(k) is true for any k ≥ 0.
i.e., “Any set with k elements has 2k subsets.”
Now, we want to show that P(k + 1) is true.
i.e., “Any set with k + 1 elements has 2k+1 subsets.”
Proof by mathematical induction: Example 1
Proof (continued)
Suppose set X has k + 1 elements including element a.
#subsets of X
= #subsets of X without a + #subsets of X with a
= #subsets of (X − {a}) + #subsets of X with a
= #subsets of (X − {a}) + #subsets of (X − {a})
(∵ 1:1 correspondence)
= 2· #subsets of (X − {a})
= 2 · 2k
= 2k+1
Hence, P(k + 1) is true.
1:1 correspondence.
Any subset A of X − {a} can be matched up with a subset B,
equal to A ∪ {a}, of X that contains a.
Algebraic proof: Example 1
Proposition
Construct an algebraic proof that for all sets A, B, and C,
(A ∪ B) − C = (A − C) ∪ (B − C)
Algebraic proof: Example 1
Proposition
Construct an algebraic proof that for all sets A, B, and C,
(A ∪ B) − C = (A − C) ∪ (B − C)
Proof
(A ∪ B) − C
= (A ∪ B) ∩ C0 (∵ set difference law)
= C0 ∩ (A ∪ B) (∵ commutative law)
= (C0 ∩ A) ∪ (C0 ∩ B) (∵ distributive law)
= (A ∩ C0) ∪ (B ∩ C0) (∵ commutative law)
= (A − C) ∪ (B − C) (∵ set difference law)
Algebraic proof: Example 2
Proposition
Construct an algebraic proof that for all sets A and B, A −
(A ∩ B) = A − B
Algebraic proof: Example 2
Proposition
Construct an algebraic proof that for all sets A and B, A −
(A ∩ B) = A − B
Proof
A − (A ∩ B)
= A ∩ (A ∩ B)0 (∵ set difference law)
= A ∩ (A0 ∪ B0) (∵ De Morgan’s law)
= (A ∩ A0) ∪ (A ∩ B0) (∵ distributive law)
= φ ∪ (A ∩ B0) (∵ complement law)
= (A ∩ B0) ∪ φ (∵ commutative law)
= A ∩ B0 (∵ identity law)
= A − B (∵ set difference law)

More Related Content

Similar to Sets.pdf

A
AA
Mathematics JEE quick revision notes pdf
Mathematics JEE quick revision notes pdfMathematics JEE quick revision notes pdf
Mathematics JEE quick revision notes pdf
gowhiksankar54
 
Mtk3013 chapter 2-3
Mtk3013   chapter 2-3Mtk3013   chapter 2-3
Mtk3013 chapter 2-3
khairunnasirahmad
 
Sets
SetsSets
Set Operations
Set OperationsSet Operations
Set Operations
Bilal Amjad
 
SETS
SETSSETS
SETS - Vedantu.pdf
SETS - Vedantu.pdfSETS - Vedantu.pdf
SETS - Vedantu.pdf
AneeshRenu
 
4898850.ppt
4898850.ppt4898850.ppt
4898850.ppt
UsamaManzoorLucky1
 
00_1 - Slide Pelengkap (dari Buku Neuro Fuzzy and Soft Computing).ppt
00_1 - Slide Pelengkap (dari Buku Neuro Fuzzy and Soft Computing).ppt00_1 - Slide Pelengkap (dari Buku Neuro Fuzzy and Soft Computing).ppt
00_1 - Slide Pelengkap (dari Buku Neuro Fuzzy and Soft Computing).ppt
DediTriLaksono1
 
01_Sets.pdf
01_Sets.pdf01_Sets.pdf
01_Sets.pdf
RAMESH Mojjada
 
Discrete Mathematics and Its Applications 7th Edition Rose Solutions Manual
Discrete Mathematics and Its Applications 7th Edition Rose Solutions ManualDiscrete Mathematics and Its Applications 7th Edition Rose Solutions Manual
Discrete Mathematics and Its Applications 7th Edition Rose Solutions Manual
TallulahTallulah
 
Sets
SetsSets
Sets functions-sequences-exercises
Sets functions-sequences-exercisesSets functions-sequences-exercises
Sets functions-sequences-exercises
Roshayu Mohamad
 
Set theory and relation
Set theory and relationSet theory and relation
Set theory and relation
ankush_kumar
 
6.1_set.pptx
6.1_set.pptx6.1_set.pptx
6.1_set.pptx
irrfanalikhan
 
POWERPOINT (SETS & FUNCTIONS).pdf
POWERPOINT (SETS & FUNCTIONS).pdfPOWERPOINT (SETS & FUNCTIONS).pdf
POWERPOINT (SETS & FUNCTIONS).pdf
MaryAnnBatac1
 
sets and their introduction and their exercises.pptx
sets and their introduction and their exercises.pptxsets and their introduction and their exercises.pptx
sets and their introduction and their exercises.pptx
ZenLooper
 
Introduction to set theory
Introduction to set theoryIntroduction to set theory
Introduction to set theory
Nittaya Noinan
 
Set theory
Set theorySet theory
Set theory
manikanta361
 
Truth, deduction, computation lecture h
Truth, deduction, computation   lecture hTruth, deduction, computation   lecture h
Truth, deduction, computation lecture h
Vlad Patryshev
 

Similar to Sets.pdf (20)

A
AA
A
 
Mathematics JEE quick revision notes pdf
Mathematics JEE quick revision notes pdfMathematics JEE quick revision notes pdf
Mathematics JEE quick revision notes pdf
 
Mtk3013 chapter 2-3
Mtk3013   chapter 2-3Mtk3013   chapter 2-3
Mtk3013 chapter 2-3
 
Sets
SetsSets
Sets
 
Set Operations
Set OperationsSet Operations
Set Operations
 
SETS
SETSSETS
SETS
 
SETS - Vedantu.pdf
SETS - Vedantu.pdfSETS - Vedantu.pdf
SETS - Vedantu.pdf
 
4898850.ppt
4898850.ppt4898850.ppt
4898850.ppt
 
00_1 - Slide Pelengkap (dari Buku Neuro Fuzzy and Soft Computing).ppt
00_1 - Slide Pelengkap (dari Buku Neuro Fuzzy and Soft Computing).ppt00_1 - Slide Pelengkap (dari Buku Neuro Fuzzy and Soft Computing).ppt
00_1 - Slide Pelengkap (dari Buku Neuro Fuzzy and Soft Computing).ppt
 
01_Sets.pdf
01_Sets.pdf01_Sets.pdf
01_Sets.pdf
 
Discrete Mathematics and Its Applications 7th Edition Rose Solutions Manual
Discrete Mathematics and Its Applications 7th Edition Rose Solutions ManualDiscrete Mathematics and Its Applications 7th Edition Rose Solutions Manual
Discrete Mathematics and Its Applications 7th Edition Rose Solutions Manual
 
Sets
SetsSets
Sets
 
Sets functions-sequences-exercises
Sets functions-sequences-exercisesSets functions-sequences-exercises
Sets functions-sequences-exercises
 
Set theory and relation
Set theory and relationSet theory and relation
Set theory and relation
 
6.1_set.pptx
6.1_set.pptx6.1_set.pptx
6.1_set.pptx
 
POWERPOINT (SETS & FUNCTIONS).pdf
POWERPOINT (SETS & FUNCTIONS).pdfPOWERPOINT (SETS & FUNCTIONS).pdf
POWERPOINT (SETS & FUNCTIONS).pdf
 
sets and their introduction and their exercises.pptx
sets and their introduction and their exercises.pptxsets and their introduction and their exercises.pptx
sets and their introduction and their exercises.pptx
 
Introduction to set theory
Introduction to set theoryIntroduction to set theory
Introduction to set theory
 
Set theory
Set theorySet theory
Set theory
 
Truth, deduction, computation lecture h
Truth, deduction, computation   lecture hTruth, deduction, computation   lecture h
Truth, deduction, computation lecture h
 

Recently uploaded

BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
Nguyen Thanh Tu Collection
 
Wound healing PPT
Wound healing PPTWound healing PPT
Wound healing PPT
Jyoti Chand
 
Standardized tool for Intelligence test.
Standardized tool for Intelligence test.Standardized tool for Intelligence test.
Standardized tool for Intelligence test.
deepaannamalai16
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
Nicholas Montgomery
 
SWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptxSWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptx
zuzanka
 
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skillsspot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
haiqairshad
 
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptxBeyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
EduSkills OECD
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
mulvey2
 
UGC NET Exam Paper 1- Unit 1:Teaching Aptitude
UGC NET Exam Paper 1- Unit 1:Teaching AptitudeUGC NET Exam Paper 1- Unit 1:Teaching Aptitude
UGC NET Exam Paper 1- Unit 1:Teaching Aptitude
S. Raj Kumar
 
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptxNEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
iammrhaywood
 
Temple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation resultsTemple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation results
Krassimira Luka
 
B. Ed Syllabus for babasaheb ambedkar education university.pdf
B. Ed Syllabus for babasaheb ambedkar education university.pdfB. Ed Syllabus for babasaheb ambedkar education university.pdf
B. Ed Syllabus for babasaheb ambedkar education university.pdf
BoudhayanBhattachari
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
PECB
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
Nicholas Montgomery
 
math operations ued in python and all used
math operations ued in python and all usedmath operations ued in python and all used
math operations ued in python and all used
ssuser13ffe4
 
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptxRESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
zuzanka
 
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdfREASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
giancarloi8888
 
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) CurriculumPhilippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
MJDuyan
 
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
Nguyen Thanh Tu Collection
 
A Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two HeartsA Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two Hearts
Steve Thomason
 

Recently uploaded (20)

BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
 
Wound healing PPT
Wound healing PPTWound healing PPT
Wound healing PPT
 
Standardized tool for Intelligence test.
Standardized tool for Intelligence test.Standardized tool for Intelligence test.
Standardized tool for Intelligence test.
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
 
SWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptxSWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptx
 
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skillsspot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
 
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptxBeyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
 
UGC NET Exam Paper 1- Unit 1:Teaching Aptitude
UGC NET Exam Paper 1- Unit 1:Teaching AptitudeUGC NET Exam Paper 1- Unit 1:Teaching Aptitude
UGC NET Exam Paper 1- Unit 1:Teaching Aptitude
 
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptxNEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
 
Temple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation resultsTemple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation results
 
B. Ed Syllabus for babasaheb ambedkar education university.pdf
B. Ed Syllabus for babasaheb ambedkar education university.pdfB. Ed Syllabus for babasaheb ambedkar education university.pdf
B. Ed Syllabus for babasaheb ambedkar education university.pdf
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
 
math operations ued in python and all used
math operations ued in python and all usedmath operations ued in python and all used
math operations ued in python and all used
 
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptxRESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
 
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdfREASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
 
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) CurriculumPhilippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
 
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
 
A Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two HeartsA Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two Hearts
 

Sets.pdf

  • 1. Discrete Mathematics (Sets) Pramod Ganapathi Department of Computer Science State University of New York at Stony Brook January 24, 2021
  • 2. What is a set? Definition A set is a collection of related items Examples A = {1, 2, 3, 4, 5} P = {2, 3, 5, 7, 11, 13, 17, . . .} S is a set of square numbers B = {m ∈ Z | m = 7n + 100 for some n ∈ Z}
  • 3. Subsets Definitions Subset. A ⊆ B ⇔ ∀x, if x ∈ A then x ∈ B Not subset. A * B ⇔ ∃x such that x ∈ A and x 6∈ B Proper subset. A ⊂ B ⇔ 1. A ⊆ B 2. ∃x such that x ∈ B and x 6∈ A Problems Let A = {1} and B = {1, {1}}. (a) Is A ⊆ B? (b) Is A ⊂ B? Let A = {m ∈ Z | m = 6r + 12 for some r ∈ Z} and B = {n ∈ Z | n = 3s for some s ∈ Z}. (a) Prove that A ⊆ B. (b) Disprove that B ⊆ A.
  • 4. Set equality Definition Given sets A and B, A equals B, written A = B, if, and only if, every element of A is in B and every element of B is in A. A = B ⇔ A ⊆ B and B ⊆ A. Problems A = {m ∈ Z | m = 2a for some integer a} B = {n ∈ Z | n = 2b − 2 for some integer b} Is A = B?
  • 5. Venn diagrams Definition Relationship between a small number of sets can be represented by pictures called Venn diagrams Problems Write a Venn diagram representing sets of numbers: N, W, Q, R.
  • 6. Operations on sets Definition Let A and B be subsets of a universal set U. 1. The union of A and B, denoted A∪B, is the set of all elements that are in at least one of A or B. A ∪ B = {x ∈ U | x ∈ A or x ∈ B} 2. The intersection of A and B, denoted A ∩ B, is the set of all elements that are common to both A and B. A ∩ B = {x ∈ U | x ∈ A and x ∈ B} 3. The difference of B minus A (or relative complement of A in B), denoted B − A, is the set of all elements that are in B and not A. B − A = {x ∈ U | x ∈ B and x 6∈ A} 4. The complement of A, denoted A0, is the set of all elements in U that are not in A. A0 = {x ∈ U | x 6∈ A}
  • 7. Operations on sets Problems Let the universal set U = {a, b, c, d, e, f, g}. Let A = {a, c, e, g} and B = {d, e, f, g}. Find A ∪ B, A ∩ B, B − A, and A0.
  • 8. Operations on sets Notations Given real numbers a and b with a ≤ b: (a, b) = {x ∈ R | a < x < b} [a, b] = {x ∈ R | a ≤ x ≤ b} (a, b] = {x ∈ R | a < x ≤ b} [a, b) = {x ∈ R | a ≤ x < b} The symbols ∞ and −∞ are used to indicate intervals that are unbounded either on the right or on the left: (a, ∞) = {x ∈ R | x > a} [a, ∞) = {x ∈ R | x ≥ a} (−∞, b) = {x ∈ R | x < b} (−∞, b] = {x ∈ R | x ≤ b} Problems A = (−1, 0] = {x ∈ R | − 1 < x ≤ 0} B = [0, 1) = {x ∈ R | 0 ≤ x < 1}. Find A ∪ B, A ∩ B, B − A, and A0.
  • 9. Operations on sets Notations Given sets A0, A1, A2, . . . that are subsets of a universal set U and given a nonnegative integer n, ∪n i=0Ai = {x ∈ U | x ∈ Ai for at least one i = 0, 1, 2, . . . , n} ∪∞ i=0Ai = {x ∈ U | x ∈ Ai for at least one whole number i} ∩n i=0Ai = {x ∈ U | x ∈ Ai for all i = 0, 1, 2, . . . , n} ∩∞ i=0Ai = {x ∈ U | x ∈ Ai for all whole numbers i} Problems For each positive integer i, let Ai = {x ∈ R | − 1 i < x < 1 i } = −1 i , 1 i Find A1 ∪ A2 ∪ A3 and A1 ∩ A2 ∩ A3 Find ∪∞ i=0Ai and ∩∞ i=0Ai
  • 10. Empty set Definition Empty set, denoted by φ, is a set with no elements. Examples {1, 3} ∩ {2, 4} = φ {x ∈ R | x2 = −1} = φ {x ∈ R | 3 x 2} = φ
  • 11. Disjoint sets Definition Two sets are called disjoint if, and only if, they have no elements in common. A and B are disjoint ⇔ A ∩ B = φ Problems Let A = {1, 3, 5} and B = {2, 4, 6}. Are A and B disjoint?
  • 12. Mutually disjoint sets Definition Sets A1, A2, A3, . . . are mutually disjoint (or pairwise disjoint or nonoverlapping) if, and only if, no two sets Ai and Aj with distinct subscripts have any elements in common. For all i, j = 1, 2, 3, . . . Ai ∩ Aj = φ whenever i 6= j. Problems Are the following sets mutually disjoint? A1 = {3, 5}, A2 = {1, 4, 6}, and A3 = {2}. B1 = {2, 4, 6}, B2 = {3, 7}, and B3 = {4, 5}.
  • 13. Partition of a set Definition A finite or infinite collection of nonempty sets {A1, A2, A3, . . .} is a partition of a set A if, and only if, 1. A is the union of all the Ai 2. The sets A1, A2, A3, . . . are mutually disjoint. Problems Let A = {1, 2, 3, 4, 5, 6} A1 = {1, 2}, A2 = {3, 4}, and A3 = {5, 6}. Is {A1, A2, A3} a partition of A? Let Z be the set of all integers and let T0 = {n ∈ Z | n = 3k, for some integer k}, T1 = {n ∈ Z | n = 3k + 1, for some integer k}, T2 = {n ∈ Z | n = 3k + 2, for some integer k}, Is {T0, T1, T2} a partition of Z?
  • 14. Power set Definition Given a set A, the power set of A, denoted P(A), is the set of all subsets of A. Problems Find the power set of the set {x, y}. That is, find P({x, y}).
  • 15. Ordered n-tuple Definition Ordered n-tuple, (x1, x2, . . . , xn), consists of x1, x2, . . . , xn to- gether with the ordering. Ordered pair = ordered 2-tuple Ordered triple = ordered 3-tuple Two ordered n-tuples (x1, x2, . . . , xn) and (y1, y2, . . . , yn) are equal if, and only if, x1 = y1, x2 = y2, . . . , xn = yn. (x1, x2, . . . , xn) = (y1, y2, . . . , yn) ⇔ x1 = y1, . . . , xn = yn. Problems Is (1, 2, 3, 4) = (1, 2, 4, 3)? Is 3, (−2)2, 1 2 = √ 9, 4, 3 6 ? Is ((1, 2), 3) = (1, 2, 3)?
  • 16. Cartesian product Definition Given sets A1, A2, . . . , An, the Cartesian product of A1, A2, . . . , An denoted A1 × A2 × · · · × An, is the set of all ordered n-tuples (a1, a2, . . . , an) where a1 ∈ A1, a2 ∈ A2, . . . , an ∈ An. A1 × A2 × · · · × An = {(a1, a2, . . . , an) | a1 ∈ A1, a2 ∈ A2, . . . , an ∈ An}. Problems Let A1 = {x, y}, A2 = {1, 2, 3}, and A3 = {a, b}. Find: (a) A1 × A2, (b) (A1 × A2) × A3, and (c) A1 × A2 × A3.
  • 17. Properties of sets Definition Inclusion of intersection: For all sets A and B, A ∩ B ⊆ A and A ∩ B ⊆ B. Inclusion in union: For all sets A and B, A ⊆ A ∪ B and B ⊆ A ∪ B. Transitive property of subsets: For all sets A, B, and C, if A ⊆ B and B ⊆ C, then A ⊆ C.
  • 18. Procedural versions of set definitions Definition Let X and Y be subsets of a universal set U and suppose x and y are elements of U. x ∈ X ∪ Y ⇔ x ∈ X or x ∈ Y x ∈ X ∩ Y ⇔ x ∈ X and x ∈ Y x ∈ X − Y ⇔ x ∈ X and x 6∈ Y x ∈ X0 ⇔ x 6∈ X (x, y) ∈ X × Y ⇔ x ∈ X and y ∈ Y
  • 19. Set identities Laws Formula Formula Commutative laws A ∪ B = B ∪ A A ∩ B = B ∩ A Associative laws (A∪B)∪C = A∪(B∪C) (A∩B)∩C = A∩(B∩C) Distributive laws A ∪ (B ∩ C) = (A ∪ B) ∩ (A ∪ C) A ∩ (B ∪ C) = (A ∩ B) ∪ (A ∩ C) Identity laws A ∪ φ = A A ∩ U = A Complement laws A ∪ A0 = U A ∩ A0 = φ Double comp. law (A0)0 = A Idempotent laws A ∪ A = A A ∩ A = A Uni. bound laws A ∪ U = U A ∩ φ = φ De Morgan’s laws (A ∪ B)0 = A0 ∩ B0 (A ∩ B)0 = A0 ∪ B0 Absorption laws A ∪ (A ∩ B) = A A ∩ (A ∪ B) = A Complements U0 = φ φ0 = U Set diff. laws A − B = A ∩ B0
  • 20. Element argument Basic method for proving that a set is a subset of another Let sets X and Y be given. To prove that X ⊆ Y , 1. suppose that x is a particular but arbitrarily chosen element of X. 2. show that x is an element of Y .
  • 21. Element argument Basic method for proving that two sets are equal Let sets X and Y be given. To prove that X = Y , 1. Prove that X ⊆ Y . 2. Prove that Y ⊆ X.
  • 22. Element argument Basic method for proving a set equals the empty set To prove that a set X is equal to the empty set φ, prove that X has no elements. To do this, suppose X has an element and derive a contradic- tion.
  • 23. Proof by element argument: Example 1 Proposition Prove that for all sets A, B, and C A ∪ (B ∩ C) = (A ∪ B) ∩ (A ∪ C)
  • 24. Proof by element argument: Example 1 Proposition Prove that for all sets A, B, and C A ∪ (B ∩ C) = (A ∪ B) ∩ (A ∪ C) Proof We need to prove: 1. A ∪ (B ∩ C) ⊆ (A ∪ B) ∩ (A ∪ C) 2. (A ∪ B) ∩ (A ∪ C) ⊆ A ∪ (B ∩ C)
  • 25. Proof by element argument: Example 1 Proof (continued) Proof that A ∪ (B ∩ C) ⊆ (A ∪ B) ∩ (A ∪ C). Suppose x ∈ A ∪ (B ∩ C). x ∈ A or x ∈ B ∩ C (∵ defn. of union) Case 1. [x ∈ A.] x ∈ A ∪ B (∵ defn. of union) x ∈ A ∪ C (∵ defn. of union) x ∈ (A ∪ B) ∩ (A ∪ C) (∵ defn. of intersection) Case 2. [x ∈ B ∩ C.] x ∈ B and x ∈ C (∵ defn. of intersection) x ∈ A ∪ B (∵ defn. of union) x ∈ A ∪ C (∵ defn. of union) x ∈ (A ∪ B) ∩ (A ∪ C) (∵ defn. of intersection)
  • 26. Proof by element argument: Example 1 Proof (continued) Proof that (A ∪ B) ∩ (A ∪ C) ⊆ A ∪ (B ∩ C). Suppose x ∈ (A ∪ B) ∩ (A ∪ C). x ∈ A ∪ B and x ∈ A ∪ C (∵ defn. of intersection) Case 1. [x ∈ A.] x ∈ A ∪ (B ∩ C) (∵ defn. of union) Case 2. [x 6∈ A.] x ∈ A or x ∈ B (∵ defn. of union) x ∈ B (∵ x 6∈ A) x ∈ A or x ∈ C (∵ defn. of union) x ∈ C (∵ x 6∈ A) x ∈ B ∩ C (∵ defn. of intersection) x ∈ A ∪ (B ∩ C) (∵ defn. of union)
  • 27. Proof by element argument: Example 2 Proposition Prove that for all sets A and B, (A ∪ B)0 = A0 ∩ B0.
  • 28. Proof by element argument: Example 2 Proposition Prove that for all sets A and B, (A ∪ B)0 = A0 ∩ B0. Proof We need to prove: 1. (A ∪ B)0 ⊆ A0 ∩ B0 2. A0 ∩ B0 ⊆ (A ∪ B)0
  • 29. Proof by element argument: Example 2 Proof (continued) Proof that (A ∪ B)0 ⊆ A0 ∩ B0. Suppose x ∈ (A ∪ B)0. x 6∈ A ∪ B (∵ defn. of complement) It is false that (x is in A or x is in B). x is not in A and x is not in B (∵ De Morgan’s law of logic) x 6∈ A and x 6∈ B x ∈ A0 and x ∈ B0 (∵ defn. of complement) x ∈ (A0 ∩ B0) (∵ defn. of intersection) Hence, (A ∪ B)0 ⊆ A0 ∩ B0 (∵ defn. of subset)
  • 30. Proof by element argument: Example 2 Proof (continued) Proof that A0 ∩ B0 ⊆ (A ∪ B)0. Suppose x ∈ A0 ∩ B0. x ∈ A0 and x ∈ B0 (∵ defn. of intersection) x 6∈ A and x 6∈ B (∵ defn. of complement) x is not in A and x is not in B It is false that (x is in A or x is in B) (∵ De Morgan’s law of logic) x 6∈ A ∪ B x ∈ (A ∪ B)0 (∵ defn. of complement) Hence, A0 ∩ B0 ⊆ (A ∪ B)0 (∵ defn. of subset)
  • 31. Proof by element argument: Example 3 Proposition For any sets A and B, if A ⊆ B, then (a) A ∩ B = A and (b) A ∪ B = B.
  • 32. Proof by element argument: Example 3 Proposition For any sets A and B, if A ⊆ B, then (a) A ∩ B = A and (b) A ∪ B = B. Proof Part (a): We need to prove: 1. A ∩ B ⊆ A 2. A ⊆ A ∩ B Part (b): We need to prove: 1. A ∪ B ⊆ B 2. B ⊆ A ∪ B
  • 33. Proof by element argument: Example 3 Proof (continued) Part (a). 1. Proof that A ∩ B ⊆ A. A ∩ B ⊆ A (∵ inclusion of intersection) 2. Proof that A ⊆ A ∩ B. Suppose x ∈ A x ∈ B (∵ A ⊆ B) x ∈ A and x ∈ B x ∈ A ∩ B (∵ defn. of intersection)
  • 34. Proof by element argument: Example 3 Proof (continued) Part (b). 1. Proof that A ∪ B ⊆ B. Suppose x ∈ A ∪ B x ∈ A or x ∈ B (∵ defn. of union) If x ∈ A, then x ∈ B (∵ A ⊆ B) x ∈ B (∵ Modus Ponens and division into cases) 2. Proof that B ⊆ A ∪ B. B ⊆ A ∪ B (∵ inclusion in union)
  • 35. Proof by element argument: Example 4 Proposition If E is a set with no elements and A is any set, then E ⊆ A.
  • 36. Proof by element argument: Example 4 Proposition If E is a set with no elements and A is any set, then E ⊆ A. Proof Proof by contradiction. Suppose there exists a set E with no elements and a set A such that E 6⊆ A. ∃x such that x ∈ E and x 6∈ A (∵ defn. of a subset) But there can be no such element since E has no elements. Contradiction! Hence, if E is a set with no elements and A is any set, then E ⊆ A.
  • 37. Proof by element argument: Example 5 Proposition There is only one set with no elements.
  • 38. Proof by element argument: Example 5 Proposition There is only one set with no elements. Proof Suppose E1 and E2 are both sets with no elements. E1 ⊆ E2 (∵ previous proposition) E2 ⊆ E1 (∵ previous proposition) Thus, E1 = E2
  • 39. Proof by element argument: Example 6 Proposition Prove that for any set A, A ∩ φ = φ
  • 40. Proof by element argument: Example 6 Proposition Prove that for any set A, A ∩ φ = φ Proof Proof by contradiction. Suppose there is an element x such that x ∈ A ∩ φ x ∈ A and x ∈ φ (∵ defn. of intersection) x ∈ φ Impossible because φ cannot have any elements Hence, the supposition is incorrect. So, A ∩ φ = φ
  • 41. Proof by element argument: Example 7 Proposition For all sets A, B, and C, if A ⊆ B and B ⊆ C0, then A∩C = φ.
  • 42. Proof by element argument: Example 7 Proposition For all sets A, B, and C, if A ⊆ B and B ⊆ C0, then A∩C = φ. Proof Proof by contradiction. Suppose there is an element x such that x ∈ A ∩ C x ∈ A and x ∈ C (∵ defn. of intersection) x ∈ A x ∈ B (∵ x ∈ A and A ⊆ B) x ∈ C0 (∵ x ∈ B and B ⊆ C0) x 6∈ C (∵ defn. of complement) x ∈ C and x 6∈ C Contradiction! Hence, the supposition is incorrect. So, A ∩ C = φ
  • 43. Proof by counterexample: Example 1 Proposition For all sets A, B, and C, (A − B) ∪ (B − C) = A − C.
  • 44. Proof by counterexample: Example 1 Proposition For all sets A, B, and C, (A − B) ∪ (B − C) = A − C.
  • 45. Proof by counterexample: Example 1 Proposition For all sets A, B, and C, (A − B) ∪ (B − C) = A − C. Disproof (A − B) ∪ (B − C) 6= A − C Draw Venn diagrams Counterexample 1: A = {1}, B = φ, C = {1} Counterexample 2: A = φ, B = {1}, C = φ
  • 46. Proof by mathematical induction: Example 1 Proposition For all integers n ≥ 0, if a set X has n elements, then P(X) has 2n elements.
  • 47. Proof by mathematical induction: Example 1 Proposition For all integers n ≥ 0, if a set X has n elements, then P(X) has 2n elements. Proof Let P(n) denote “Any set with n elements has 2n subsets.” Basis step. P(0) is true. The only set with zero elements is the empty set. The only subset of the empty set is itself. Hence, 20 = 1. Induction step. Suppose that P(k) is true for any k ≥ 0. i.e., “Any set with k elements has 2k subsets.” Now, we want to show that P(k + 1) is true. i.e., “Any set with k + 1 elements has 2k+1 subsets.”
  • 48. Proof by mathematical induction: Example 1 Proof (continued) Suppose set X has k + 1 elements including element a. #subsets of X = #subsets of X without a + #subsets of X with a = #subsets of (X − {a}) + #subsets of X with a = #subsets of (X − {a}) + #subsets of (X − {a}) (∵ 1:1 correspondence) = 2· #subsets of (X − {a}) = 2 · 2k = 2k+1 Hence, P(k + 1) is true. 1:1 correspondence. Any subset A of X − {a} can be matched up with a subset B, equal to A ∪ {a}, of X that contains a.
  • 49. Algebraic proof: Example 1 Proposition Construct an algebraic proof that for all sets A, B, and C, (A ∪ B) − C = (A − C) ∪ (B − C)
  • 50. Algebraic proof: Example 1 Proposition Construct an algebraic proof that for all sets A, B, and C, (A ∪ B) − C = (A − C) ∪ (B − C) Proof (A ∪ B) − C = (A ∪ B) ∩ C0 (∵ set difference law) = C0 ∩ (A ∪ B) (∵ commutative law) = (C0 ∩ A) ∪ (C0 ∩ B) (∵ distributive law) = (A ∩ C0) ∪ (B ∩ C0) (∵ commutative law) = (A − C) ∪ (B − C) (∵ set difference law)
  • 51. Algebraic proof: Example 2 Proposition Construct an algebraic proof that for all sets A and B, A − (A ∩ B) = A − B
  • 52. Algebraic proof: Example 2 Proposition Construct an algebraic proof that for all sets A and B, A − (A ∩ B) = A − B Proof A − (A ∩ B) = A ∩ (A ∩ B)0 (∵ set difference law) = A ∩ (A0 ∪ B0) (∵ De Morgan’s law) = (A ∩ A0) ∪ (A ∩ B0) (∵ distributive law) = φ ∪ (A ∩ B0) (∵ complement law) = (A ∩ B0) ∪ φ (∵ commutative law) = A ∩ B0 (∵ identity law) = A − B (∵ set difference law)