Set Theory: FC 01: Elementary Mathematics and Statistics Jaipuria Institute of Management Lucknow
Set Theory: FC 01: Elementary Mathematics and Statistics Jaipuria Institute of Management Lucknow
4
Definition of Set Equality
• Two sets are declared to be equal if and only if they contain
exactly the same elements.
• In particular, it does not matter how the set is defined or
denoted.
• For example: The set {1, 2, 3, 4} =
{x | x is an integer where x>0 and x<5 } =
{x | x is a positive integer whose square is >0 and <25}
5
Infinite Sets
• Conceptually, sets may be infinite (i.e., not finite, without end, unending).
• Symbols for some special infinite sets:
N = {0, 1, 2, …} The natural numbers.
Z = {…, -2, -1, 0, 1, 2, …} The integers.
R = The “real” numbers, such as
374.1828471929498181917281943125…
• Infinite sets come in different sizes!
6
Basic Set Relations: Member of
• xS (“x is in S”) is the proposition that object x is an element or
member of set S.
• e.g. 3N, “a”{x | x is a letter of the alphabet}
• Can define set equality in terms of relation:
S,T: S=T (x: xS xT)
“Two sets are equal iff they have all the same members.”
7
The Empty Set
• (“null”, “the empty set”) is the unique set that contains no elements
whatsoever.
• = {} = {x|False}
8
Subset and Superset Relations
• ST (“S is a subset of T”) means that every element of S is also an
element of T.
• ST x (xS xT)
• S, SS.
• ST (“S is a superset of T”) means TS.
• Note S=T ST & ST.
9
Venn Diagram
• ST (“S is a proper subset of T”) means that ST but TS
Example:
U {1,2} {1,2,3}
S
T
Venn Diagram equivalent of ST
S, T are U 10
Cardinality and Finiteness
• |S| or n(S) (read “the cardinality of S”) is a measure of how many different
elements S has.
• E.g., ||=0, |{1,2,3}| = 3, |{a,b}| = 2,
|{{1,2,3},{4,5}}| = ____
• We say S is infinite if it is not finite.
• What are some infinite sets we’ve seen?
• N, Z, R
11
The Union Operator
• For sets A, B, their union AB is the set containing all elements that are
either in A, or in B (or, of course, in both).
• Formally, A,B: AB = {x | xA or xB}.
• Note that AB contains all the elements of A or it contains all the
elements of B:
A, B: (AB A) or (AB B)
12
Union Examples
• {2,3,5}{3,5,7} = {2,3,5,3,5,7} ={2,3,5,7}
13
The Intersection Operator
• For sets A, B, their intersection AB is the set containing all elements that
are simultaneously in A and in B.
• Formally, A,B: AB{x | xA and xB}.
• Note that AB is a subset of A and it is a subset of B:
A, B: (AB A) and (AB B)
14
Intersection Examples
• {2,4,6}{3,4,5} = {4}
15
Venn Diagrams
16
Disjointedness
• Two sets A, B are called disjoint (i.e., unjoined) iff their intersection is
empty. (AB=)
• Example: the set of even integers is disjoint with the set of odd integers.
17
Set Identities
• Identity: A=A AU=A
• Domination: AU=U A=
• Idempotent: AA = A = AA
• Commutative: AB=BA AB=BA
• Associative: A(BC)=(AB)C
A(BC)=(AB)C
18
Proving Identity : Mutual subsets
Example: Show A(BC)=(AB)(AC).
• Show A(BC)(AB)(AC).
• Assume xA(BC), & show x(AB)(AC).
• We know that xA, and either xB or xC.
• Case 1: xB. Then xAB, so x(AB)(AC).
• Case 2: xC. Then xAC , so x(AB)(AC).
• Therefore, x(AB)(AC).
• Therefore, A(BC)(AB)(AC).
• Similarly show (AB)(AC) A(BC). …
19
Some Laws of set theory
• 𝑛(𝐴) = 𝑁𝑢𝑚𝑏𝑒𝑟 𝑜𝑓 𝑒𝑙𝑒𝑚𝑒𝑛𝑡 𝑖𝑛 𝑠𝑒𝑡 𝐴
• 𝑛 ( 𝐵 ) = 𝑁𝑢𝑚𝑏𝑒𝑟 𝑜𝑓 𝑒𝑙𝑒𝑚𝑒𝑛𝑡 𝑖𝑛 𝑠𝑒𝑡 𝐵
• 𝑛 ( 𝐴 ∩ 𝐵 ) = 𝑁𝑢𝑚𝑏𝑒𝑟 𝑜𝑓 𝑒𝑙𝑒𝑚𝑒𝑛𝑡 𝑖𝑛 𝑠𝑒𝑡 𝐴 𝑎𝑛𝑑 𝐵
• 𝑛 ( 𝐴 ∪ 𝐵 ) = 𝑁𝑢𝑚𝑏𝑒𝑟 𝑜𝑓 𝑒𝑙𝑒𝑚𝑒𝑛𝑡 𝑖𝑛 𝑠𝑒𝑡 𝐴 𝑜𝑟 𝐵
• When A and B are mutually non-exclusive sets:
• 𝑛 ( 𝐴 ∪ 𝐵 ) = 𝑛 ( 𝐴 ) + 𝑛 ( 𝐵 ) − 𝑛(𝐴 ∩ 𝐵)
• When A, B, are mutually non-exclusive sets:
• 𝑛 𝐴 ∪ 𝐵 ∪ 𝐶 ) = 𝑛 ( 𝐴 ) + 𝑛 ( 𝐵 ) + 𝑛 ( 𝐶 ) − 𝑛 ( 𝐴 ∩ 𝐵 ) − 𝑛 ( 𝐵 ∩ 𝐶 ) − 𝑛 ( 𝐴 ∩ 𝐶 ) + 𝑛(𝐴 ∩ 𝐵 ∩
𝐶)
20
Practice Problem
• Out of forty students, 14 are taking English Composition and 29 are
taking Chemistry.
• If five students are in both classes, how many students are in neither
class?
• How many are in either class?
21
Practice Problem
22
Practice Problem
23