Ds Lecture 13
Ds Lecture 13
Ds Lecture 13
Lecture 13
Previous Lectures Summary
Direct Proof
Indirect Proof
Proof by Contradiction
Proof by Contra positive
Relation between them contra positive and
Contradiction
Classical Theorems
Introductions to Set Theory I
Today's Lecture
Sets
Operations on sets
Memberships
Notations
Venn diagrams
Why study Set Theory?
B = {2, 3, 4, 5, 6, 7} |B| = 6
A = {1, 2, 3, …} |A| = 0
Examples
A = {1,2,3,4}, B = {1,2,3,4,5,7}, and C = {7,9,3}, and
the universal set U = {1,2,3,4,5,6,7,8,9}.
Cont…
Super Set: if we can write B ⊇ A, read as B is a
superset of A, B includes A, or B contains A.
Proper Subset: If A is a subset of, but not equal to, B,
then A is called a proper subset of B, written A ⊂ B (A
is a proper subset of B) or B ⊃ A (B is a proper
superset of A).
Examples
The set of all men is a proper subset of the set of all
people.
{1, 3} ⊂ {1, 2, 3, 4}.
{1, 2, 3, 4} ⊆ {1, 2, 3, 4}.
Cont…
An obvious but useful identity, which can often be used to
show that two seemingly different sets are equal:
A = B if and only if A ⊆ B and B ⊆ A.
P(A)={{}, {a}, {b}, {c}, {d}, {a,b}, {a,c}, {a,d}, {b,c}, {b,d},
{c,d}, {a,b,c}, {a,b,d}, {a,c,d}, {b,c,d}, {a,b,c,d}}.
Subset Relationships
A = {x | x is a positive integer 8}
set A contains: 1, 2, 3, 4, 5, 6, 7, 8
B = {x | x is a positive even integer 10}
set B contains: 2, 4, 6, 8
C = {2, 4, 6, 8, 10}
set C contains: 2, 4, 6, 8, 10
The universal set U = {1,2,3,4,5,6,7,8,9,10}.
Subset Relationships
AA AB AC
BA BB BC
CA CB CC
Set Equality
Two sets are equal if and only if they contain precisely
the same elements. The order in which the elements
are listed is un important. Elements may be repeated in
set definitions without increasing the size of the sets.
Examples
A = {1, 2, 3, 4} B = {1, 4, 2, 3}
A B and B A; therefore, A = B and B = A.
A = {1, 2, 2, 3, 4, 1, 2} B = {1, 2, 3, 4}
A B and B A; therefore, A = B and B = A.
Notations
Symbol Meaning
Upper case designates set name
Lower case designates set elements
{ } enclose elements in set
(or ∉ ) is (or is not) an element of
is a subset of (includes equal sets)
is a proper subset of
is not a subset of
is a superset of
| or : such that (if a condition is true)
| | the cardinality of a set
Venn Diagrams
Venn diagrams or set diagrams are diagrams that show all
possible logical relations between a finite collection of sets. Venn
diagrams were conceived around 1880 by John Venn.
Venn diagrams show relationships between sets and their
elements.
Sets A & B
Universal Set
Examples
Set Definition Elements
A = {x | x Z+ and x 8} {1, 2 ,3, 4, 5, 6 ,7, 8}
B = {x | x Z+, x is even and 10} {2, 4, 6, 8, 10}
AB
BA
Cont…
Set Definition Elements
A = {x | x Z+ and x 9} {1, 2 ,3, 4, 5, 6 ,7, 8,9}
B = {x | x Z+ ; x is even and 8} {2, 4, 6, 8,}
AB
BA
AB
Cont…
Set Definition Elements
A = {x | x Z+ x is even and x 10} { 2 , 4, 6, 8, 9}
B = {x | x Z+ ; x is odd and 10} {1, 3, 5, 7, 9}
AB
BA
Set operations and Venn diagram
Set operations and Venn diagram
A∩B
A ∩ B = { x | x A and x B }
Set operations and Venn diagram
A ∪ B = { x | x A or x B }
Set operations and Venn diagram
B \ A = { x | x ∉ A and x B }
Set operations and Venn diagram
Ac = U-A = { x | x ∉ A and x U }
Sets and Universal Set
A = {1,2,3,4}, B = {1,3,5,7}, and C = {7,9,3}, and the
universal set U = {1,2,3,4,5,6,7,8,9}. Locate all this
information appropriately in a Venn diagram.
Sets and Universal Set
A = {1,2,3,4}, B = {1,3,5,7}, and C = {7,9,3}, and the
universal set U={1,2,3,4,5,6,7,8,9}. Locate all this
information appropriately in a Venn diagram.
Sketching Regions representing Sets
Sketch the region corresponding to the set
(A ∪ Bc) ∩ C
Sketching Regions representing Sets
Sketch the region corresponding to the set (A ∪ Bc) ∩ C
Sketching Regions representing Sets
Sketch the region corresponding to the set (A ∪ Bc) ∩ C
(A ∪ Bc) ∩ C
Lecture Summary
Sets
Operations on sets
Memberships
Notations
Venn diagrams