Set Theory
Jason Filippou
CMSC250 @ UMCP
06-20-2016
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 1 / 56 Outline
1 Branches of Set Theory
2 Basic Definitions Single sets Two or more sets
3 Proofs with sets
4 An application: Formal languages
5 Paradoxes in Set Theory
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 2 / 56 Branches of Set Theory
Branches of Set Theory
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 3 / 56 Formal Proofs!
Branches of Set Theory Naive
Naive set theory is typically taught even at elementary school nowadays. Only kind of set theory till the 1870s! Consists of applications of Venn Diagrams. Very intuitive, suitable for graphical applications Not an ounce of formality. Cannot be used for...
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 4 / 56 Branches of Set Theory Naive
Naive set theory is typically taught even at elementary school nowadays. Only kind of set theory till the 1870s! Consists of applications of Venn Diagrams. Very intuitive, suitable for graphical applications Not an ounce of formality. Cannot be used for... Formal Proofs!
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 4 / 56 Branches of Set Theory Naive
Based entirely on Venn Diagrams.
Ω
Α Β C
Figure 1: An example Venn Diagram.
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 5 / 56 Branches of Set Theory Axiomatic (Cantor & Dedekind)
First axiomatization of Set Theory. Understanding of infinite sets and their cardinality.
Figure 2: Georg Cantor, 1870s Figure 3: Richard Dedekind, 1900s
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 6 / 56 Also: Power set operation. Cantor’s paradise.
Branches of Set Theory Famous Result
1874 Cantor paper: “On a Property of the Collection of All Real Algebraic Numbers” The set of real numbers is uncountable.
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 7 / 56 Branches of Set Theory Famous Result
1874 Cantor paper: “On a Property of the Collection of All Real Algebraic Numbers” The set of real numbers is uncountable. Also: Power set operation. Cantor’s paradise.
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 7 / 56 Branches of Set Theory Russel’s Paradox
Consider the following set:
S = {x|x∈ / x}
Then, does S ∈ S ?
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 8 / 56 Branches of Set Theory So why do we care?
If Axiomatic (Cantorian) Set Theory is “broken”, why do we study it? Rough answer: Just because a theory is “broken” (i.e leads to contradictions) doesn’t mean we shouldn’t study it. Theories are specialized (more stuff is added to them) in order to avoid contradictions all the time. Non-Euclidean geometries. Zermello - Fraenkel Set Theory. Qualitative answer: it gives us background necessary to discuss: 1 Limitations of computers as a whole! 2 Some fundamental results on countability and uncountability of infinite sets.
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 9 / 56 Kripke-Platek Von Neumann - Bernays - G¨odel Morse-Kelley Tarski-Grothendieck ...
Branches of Set Theory Branches of Axiomatic Set Theory
Zermelo-Fraenkel (answers Russel’s paradox through the axiom of choice).
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 10 / 56 Von Neumann - Bernays - G¨odel Morse-Kelley Tarski-Grothendieck ...
Branches of Set Theory Branches of Axiomatic Set Theory
Zermelo-Fraenkel (answers Russel’s paradox through the axiom of choice). Kripke-Platek
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 10 / 56 Morse-Kelley Tarski-Grothendieck ...
Branches of Set Theory Branches of Axiomatic Set Theory
Zermelo-Fraenkel (answers Russel’s paradox through the axiom of choice). Kripke-Platek Von Neumann - Bernays - G¨odel
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 10 / 56 Tarski-Grothendieck ...
Branches of Set Theory Branches of Axiomatic Set Theory
Zermelo-Fraenkel (answers Russel’s paradox through the axiom of choice). Kripke-Platek Von Neumann - Bernays - G¨odel Morse-Kelley
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 10 / 56 ...
Branches of Set Theory Branches of Axiomatic Set Theory
Zermelo-Fraenkel (answers Russel’s paradox through the axiom of choice). Kripke-Platek Von Neumann - Bernays - G¨odel Morse-Kelley Tarski-Grothendieck
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 10 / 56 Branches of Set Theory Branches of Axiomatic Set Theory
Zermelo-Fraenkel (answers Russel’s paradox through the axiom of choice). Kripke-Platek Von Neumann - Bernays - G¨odel Morse-Kelley Tarski-Grothendieck ...
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 10 / 56 Basic Definitions
Basic Definitions
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 11 / 56 Basic Definitions Single sets
Single sets
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 12 / 56 Definition (Ordered Set) An ordered set is a pair (S, ≤), where S is a set and ≤ is a total order.
Total orders: binary relations that are antisymmetric, transitive and total. Examples: ≤, ⊆, lexicographic ordering.
Definition (Multiset) A multiset is a collection of objects with repetitions.
We won’t really care about those, or about ordered multisets.
Basic Definitions Single sets Definitions
Definition (Set) A set is a collection of objects without repetitions.
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 13 / 56 Definition (Multiset) A multiset is a collection of objects with repetitions.
We won’t really care about those, or about ordered multisets.
Basic Definitions Single sets Definitions
Definition (Set) A set is a collection of objects without repetitions.
Definition (Ordered Set) An ordered set is a pair (S, ≤), where S is a set and ≤ is a total order.
Total orders: binary relations that are antisymmetric, transitive and total. Examples: ≤, ⊆, lexicographic ordering.
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 13 / 56 Basic Definitions Single sets Definitions
Definition (Set) A set is a collection of objects without repetitions.
Definition (Ordered Set) An ordered set is a pair (S, ≤), where S is a set and ≤ is a total order.
Total orders: binary relations that are antisymmetric, transitive and total. Examples: ≤, ⊆, lexicographic ordering.
Definition (Multiset) A multiset is a collection of objects with repetitions.
We won’t really care about those, or about ordered multisets.
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 13 / 56 Since the chief operation is membership, and sets have unique elements, how would you implement them in computer memory?
Basic Definitions Single sets Membership
Chief operation on sets: membership (∈). If Ω is a domain of choice and S is a set, any element e of Ω can either belong to A (e ∈ A) or not (e∈ / A).
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 14 / 56 Basic Definitions Single sets Membership
Chief operation on sets: membership (∈). If Ω is a domain of choice and S is a set, any element e of Ω can either belong to A (e ∈ A) or not (e∈ / A). Since the chief operation is membership, and sets have unique elements, how would you implement them in computer memory?
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 14 / 56 1 Curly braces: S = {0, 2, 4, 6}, Z = {Ashley, John, Mark}, F = {1, 2, 3, 5, 8, 13, 21,... } 2 Definition: A = {z ∈ Z | z ≥ −2} 3 Agreed upon symbol: N, P, etc 4 An operation (union, superset, etc): C = A ∪ B, P({0, 1})
Basic Definitions Single sets Defining a set
Three ways.
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 15 / 56 2 Definition: A = {z ∈ Z | z ≥ −2} 3 Agreed upon symbol: N, P, etc 4 An operation (union, superset, etc): C = A ∪ B, P({0, 1})
Basic Definitions Single sets Defining a set
Three ways. 1 Curly braces: S = {0, 2, 4, 6}, Z = {Ashley, John, Mark}, F = {1, 2, 3, 5, 8, 13, 21,... }
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 15 / 56 3 Agreed upon symbol: N, P, etc 4 An operation (union, superset, etc): C = A ∪ B, P({0, 1})
Basic Definitions Single sets Defining a set
Three ways. 1 Curly braces: S = {0, 2, 4, 6}, Z = {Ashley, John, Mark}, F = {1, 2, 3, 5, 8, 13, 21,... } 2 Definition: A = {z ∈ Z | z ≥ −2}
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 15 / 56 4 An operation (union, superset, etc): C = A ∪ B, P({0, 1})
Basic Definitions Single sets Defining a set
Three ways. 1 Curly braces: S = {0, 2, 4, 6}, Z = {Ashley, John, Mark}, F = {1, 2, 3, 5, 8, 13, 21,... } 2 Definition: A = {z ∈ Z | z ≥ −2} 3 Agreed upon symbol: N, P, etc
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 15 / 56 Basic Definitions Single sets Defining a set
Three ways. 1 Curly braces: S = {0, 2, 4, 6}, Z = {Ashley, John, Mark}, F = {1, 2, 3, 5, 8, 13, 21,... } 2 Definition: A = {z ∈ Z | z ≥ −2} 3 Agreed upon symbol: N, P, etc 4 An operation (union, superset, etc): C = A ∪ B, P({0, 1})
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 15 / 56 Corollary ∀A ⊆ Ω, |A| ≥ 0
|{−10, 0, 10}| = ? 3 |{n ∈ N|n < 100}| = ? 100 ∗ |{n ∈ N |n < 100}| = ? 99 |N| = ? ℵ0 (???)
Basic Definitions Single sets Cardinality
Definition (Cardinality of a set) Let A be a finite set.a Then, the number of elements of the A, denoted |A| ∈ N is called the cardinality of A. aHold your horses, please.
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 16 / 56 |{−10, 0, 10}| = ? 3 |{n ∈ N|n < 100}| = ? 100 ∗ |{n ∈ N |n < 100}| = ? 99 |N| = ? ℵ0 (???)
Basic Definitions Single sets Cardinality
Definition (Cardinality of a set) Let A be a finite set.a Then, the number of elements of the A, denoted |A| ∈ N is called the cardinality of A. aHold your horses, please.
Corollary ∀A ⊆ Ω, |A| ≥ 0
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 16 / 56 3 |{n ∈ N|n < 100}| = ? 100 ∗ |{n ∈ N |n < 100}| = ? 99 |N| = ? ℵ0 (???)
Basic Definitions Single sets Cardinality
Definition (Cardinality of a set) Let A be a finite set.a Then, the number of elements of the A, denoted |A| ∈ N is called the cardinality of A. aHold your horses, please.
Corollary ∀A ⊆ Ω, |A| ≥ 0
|{−10, 0, 10}| = ?
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 16 / 56 |{n ∈ N|n < 100}| = ? 100 ∗ |{n ∈ N |n < 100}| = ? 99 |N| = ? ℵ0 (???)
Basic Definitions Single sets Cardinality
Definition (Cardinality of a set) Let A be a finite set.a Then, the number of elements of the A, denoted |A| ∈ N is called the cardinality of A. aHold your horses, please.
Corollary ∀A ⊆ Ω, |A| ≥ 0
|{−10, 0, 10}| = ? 3
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 16 / 56 100 ∗ |{n ∈ N |n < 100}| = ? 99 |N| = ? ℵ0 (???)
Basic Definitions Single sets Cardinality
Definition (Cardinality of a set) Let A be a finite set.a Then, the number of elements of the A, denoted |A| ∈ N is called the cardinality of A. aHold your horses, please.
Corollary ∀A ⊆ Ω, |A| ≥ 0
|{−10, 0, 10}| = ? 3 |{n ∈ N|n < 100}| = ?
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 16 / 56 ∗ |{n ∈ N |n < 100}| = ? 99 |N| = ? ℵ0 (???)
Basic Definitions Single sets Cardinality
Definition (Cardinality of a set) Let A be a finite set.a Then, the number of elements of the A, denoted |A| ∈ N is called the cardinality of A. aHold your horses, please.
Corollary ∀A ⊆ Ω, |A| ≥ 0
|{−10, 0, 10}| = ? 3 |{n ∈ N|n < 100}| = ? 100
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 16 / 56 99
|N| = ? ℵ0 (???)
Basic Definitions Single sets Cardinality
Definition (Cardinality of a set) Let A be a finite set.a Then, the number of elements of the A, denoted |A| ∈ N is called the cardinality of A. aHold your horses, please.
Corollary ∀A ⊆ Ω, |A| ≥ 0
|{−10, 0, 10}| = ? 3 |{n ∈ N|n < 100}| = ? 100 ∗ |{n ∈ N |n < 100}| = ?
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 16 / 56 |N| = ? ℵ0 (???)
Basic Definitions Single sets Cardinality
Definition (Cardinality of a set) Let A be a finite set.a Then, the number of elements of the A, denoted |A| ∈ N is called the cardinality of A. aHold your horses, please.
Corollary ∀A ⊆ Ω, |A| ≥ 0
|{−10, 0, 10}| = ? 3 |{n ∈ N|n < 100}| = ? 100 ∗ |{n ∈ N |n < 100}| = ? 99
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 16 / 56 ℵ0 (???)
Basic Definitions Single sets Cardinality
Definition (Cardinality of a set) Let A be a finite set.a Then, the number of elements of the A, denoted |A| ∈ N is called the cardinality of A. aHold your horses, please.
Corollary ∀A ⊆ Ω, |A| ≥ 0
|{−10, 0, 10}| = ? 3 |{n ∈ N|n < 100}| = ? 100 ∗ |{n ∈ N |n < 100}| = ? 99 |N| = ?
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 16 / 56 Basic Definitions Single sets Cardinality
Definition (Cardinality of a set) Let A be a finite set.a Then, the number of elements of the A, denoted |A| ∈ N is called the cardinality of A. aHold your horses, please.
Corollary ∀A ⊆ Ω, |A| ≥ 0
|{−10, 0, 10}| = ? 3 |{n ∈ N|n < 100}| = ? 100 ∗ |{n ∈ N |n < 100}| = ? 99 |N| = ? ℵ0 (???)
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 16 / 56 Basic Definitions Single sets Infinite sets
Certain sets are infinite! + 2 2 2 Examples: N, P, {(a, b, c) ∈ N |a + b = c } Their cardinality cannot be expressed in the same way as that of a finite set. To talk about cardinality of infinite sets, we need some function background... Namely, bijections, injections, surjections....
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 17 / 56 Corollary |∅| = 0
Corollary ∀A ⊆ Ω, ∅ ⊆ A
Basic Definitions Single sets The empty set
Definition (Empty set) There exists a unique set with no elements, denoted ∅ or {} and called the empty set.
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 18 / 56 Corollary ∀A ⊆ Ω, ∅ ⊆ A
Basic Definitions Single sets The empty set
Definition (Empty set) There exists a unique set with no elements, denoted ∅ or {} and called the empty set.
Corollary |∅| = 0
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 18 / 56 Basic Definitions Single sets The empty set
Definition (Empty set) There exists a unique set with no elements, denoted ∅ or {} and called the empty set.
Corollary |∅| = 0
Corollary ∀A ⊆ Ω, ∅ ⊆ A
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 18 / 56 1 ∅ 2 {∅} 3 {{}} 4 {{... {∅} ... }} 5 {{... {} ... }} 6 {{... {250} ... }} 7 {∅, {∅}}
Basic Definitions Single sets Some practice
How many elements do the following sets contain?
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 19 / 56 2 {∅} 3 {{}} 4 {{... {∅} ... }} 5 {{... {} ... }} 6 {{... {250} ... }} 7 {∅, {∅}}
Basic Definitions Single sets Some practice
How many elements do the following sets contain? 1 ∅
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 19 / 56 3 {{}} 4 {{... {∅} ... }} 5 {{... {} ... }} 6 {{... {250} ... }} 7 {∅, {∅}}
Basic Definitions Single sets Some practice
How many elements do the following sets contain? 1 ∅ 2 {∅}
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 19 / 56 4 {{... {∅} ... }} 5 {{... {} ... }} 6 {{... {250} ... }} 7 {∅, {∅}}
Basic Definitions Single sets Some practice
How many elements do the following sets contain? 1 ∅ 2 {∅} 3 {{}}
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 19 / 56 5 {{... {} ... }} 6 {{... {250} ... }} 7 {∅, {∅}}
Basic Definitions Single sets Some practice
How many elements do the following sets contain? 1 ∅ 2 {∅} 3 {{}} 4 {{... {∅} ... }}
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 19 / 56 6 {{... {250} ... }} 7 {∅, {∅}}
Basic Definitions Single sets Some practice
How many elements do the following sets contain? 1 ∅ 2 {∅} 3 {{}} 4 {{... {∅} ... }} 5 {{... {} ... }}
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 19 / 56 7 {∅, {∅}}
Basic Definitions Single sets Some practice
How many elements do the following sets contain? 1 ∅ 2 {∅} 3 {{}} 4 {{... {∅} ... }} 5 {{... {} ... }} 6 {{... {250} ... }}
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 19 / 56 Basic Definitions Single sets Some practice
How many elements do the following sets contain? 1 ∅ 2 {∅} 3 {{}} 4 {{... {∅} ... }} 5 {{... {} ... }} 6 {{... {250} ... }} 7 {∅, {∅}}
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 19 / 56 Corollary ∀A ⊆ Ω, ∅ ∈ P({A})
Corollary ∀A ⊆ Ω,A ∈ P({A})
Basic Definitions Single sets The powerset
Definition (Powerset) Let A be a set. The powerset of A, denoted P({A}), is the set of all subsets of A.
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 20 / 56 Corollary ∀A ⊆ Ω,A ∈ P({A})
Basic Definitions Single sets The powerset
Definition (Powerset) Let A be a set. The powerset of A, denoted P({A}), is the set of all subsets of A.
Corollary ∀A ⊆ Ω, ∅ ∈ P({A})
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 20 / 56 Basic Definitions Single sets The powerset
Definition (Powerset) Let A be a set. The powerset of A, denoted P({A}), is the set of all subsets of A.
Corollary ∀A ⊆ Ω, ∅ ∈ P({A})
Corollary ∀A ⊆ Ω,A ∈ P({A})
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 20 / 56 {∅, {a}, {b}, {c}, {a, b}, {b, c}, {a, c}, {a, b, c}} P({−1}) = ? {∅, {−1}} P({N}) = ? {∅, {1}, {2},..., {1, 2}{2, 3},... } P({∅}) = ? {∅} P({P({a, b})}) = ? Homework!
Basic Definitions Single sets Powerset examples
Examples: P({a, b, c}) = ?
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 21 / 56 P({−1}) = ? {∅, {−1}} P({N}) = ? {∅, {1}, {2},..., {1, 2}{2, 3},... } P({∅}) = ? {∅} P({P({a, b})}) = ? Homework!
Basic Definitions Single sets Powerset examples
Examples: P({a, b, c}) = ? {∅, {a}, {b}, {c}, {a, b}, {b, c}, {a, c}, {a, b, c}}
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 21 / 56 {∅, {−1}} P({N}) = ? {∅, {1}, {2},..., {1, 2}{2, 3},... } P({∅}) = ? {∅} P({P({a, b})}) = ? Homework!
Basic Definitions Single sets Powerset examples
Examples: P({a, b, c}) = ? {∅, {a}, {b}, {c}, {a, b}, {b, c}, {a, c}, {a, b, c}} P({−1}) = ?
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 21 / 56 P({N}) = ? {∅, {1}, {2},..., {1, 2}{2, 3},... } P({∅}) = ? {∅} P({P({a, b})}) = ? Homework!
Basic Definitions Single sets Powerset examples
Examples: P({a, b, c}) = ? {∅, {a}, {b}, {c}, {a, b}, {b, c}, {a, c}, {a, b, c}} P({−1}) = ? {∅, {−1}}
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 21 / 56 {∅, {1}, {2},..., {1, 2}{2, 3},... } P({∅}) = ? {∅} P({P({a, b})}) = ? Homework!
Basic Definitions Single sets Powerset examples
Examples: P({a, b, c}) = ? {∅, {a}, {b}, {c}, {a, b}, {b, c}, {a, c}, {a, b, c}} P({−1}) = ? {∅, {−1}} P({N}) = ?
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 21 / 56 P({∅}) = ? {∅} P({P({a, b})}) = ? Homework!
Basic Definitions Single sets Powerset examples
Examples: P({a, b, c}) = ? {∅, {a}, {b}, {c}, {a, b}, {b, c}, {a, c}, {a, b, c}} P({−1}) = ? {∅, {−1}} P({N}) = ? {∅, {1}, {2},..., {1, 2}{2, 3},... }
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 21 / 56 {∅} P({P({a, b})}) = ? Homework!
Basic Definitions Single sets Powerset examples
Examples: P({a, b, c}) = ? {∅, {a}, {b}, {c}, {a, b}, {b, c}, {a, c}, {a, b, c}} P({−1}) = ? {∅, {−1}} P({N}) = ? {∅, {1}, {2},..., {1, 2}{2, 3},... } P({∅}) = ?
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 21 / 56 P({P({a, b})}) = ? Homework!
Basic Definitions Single sets Powerset examples
Examples: P({a, b, c}) = ? {∅, {a}, {b}, {c}, {a, b}, {b, c}, {a, c}, {a, b, c}} P({−1}) = ? {∅, {−1}} P({N}) = ? {∅, {1}, {2},..., {1, 2}{2, 3},... } P({∅}) = ? {∅}
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 21 / 56 Homework!
Basic Definitions Single sets Powerset examples
Examples: P({a, b, c}) = ? {∅, {a}, {b}, {c}, {a, b}, {b, c}, {a, c}, {a, b, c}} P({−1}) = ? {∅, {−1}} P({N}) = ? {∅, {1}, {2},..., {1, 2}{2, 3},... } P({∅}) = ? {∅} P({P({a, b})}) = ?
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 21 / 56 Basic Definitions Single sets Powerset examples
Examples: P({a, b, c}) = ? {∅, {a}, {b}, {c}, {a, b}, {b, c}, {a, c}, {a, b, c}} P({−1}) = ? {∅, {−1}} P({N}) = ? {∅, {1}, {2},..., {1, 2}{2, 3},... } P({∅}) = ? {∅} P({P({a, b})}) = ? Homework!
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 21 / 56 Corollary (Complement of empty set) ∅0 = Ω
Corollary (Complement of universal domain) Ω0 = ∅
Basic Definitions Single sets (Absolute) Set complement
Definition (Set Complement) Let A be a set in the universal domain Ω. The absolute complement of A, denoted A0, is defined as the set: {x ∈ Ω | x∈ / A}.
Figure 4: Venn Diagram illustrating the absolute complement of a set.
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 22 / 56 Basic Definitions Single sets (Absolute) Set complement
Definition (Set Complement) Let A be a set in the universal domain Ω. The absolute complement of A, denoted A0, is defined as the set: {x ∈ Ω | x∈ / A}.
Corollary (Complement of empty set) ∅0 = Ω Figure 4: Venn Diagram illustrating the absolute complement of a set. Corollary (Complement of universal domain) Ω0 = ∅
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 22 / 56 Is not the same as this: [0,..., 10]. Intervals are sets, but sets are not intervals.
Basic Definitions Single sets Caution: Sets and intervals
This: {0, 1, 2,..., 10}
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 23 / 56 Basic Definitions Single sets Caution: Sets and intervals
This: {0, 1, 2,..., 10} Is not the same as this: [0,..., 10]. Intervals are sets, but sets are not intervals.
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 23 / 56 Basic Definitions Single sets Exercises
Provide the following sets in interval or set notation. Assume that Ω = R ∗ 0 (Z−) = ? (−1, 1] ∪ {−1} = ? [0, 10]0 = ?
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 24 / 56 Basic Definitions Two or more sets
Two or more sets
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 25 / 56 Examples: N ⊆ Z P ⊆ Q
{a ∈ Z 4|a} ⊆ Zeven
Definition (Superset) A set A is a superset of set B, denoted A ⊇ B, if and only if B ⊆ A.
Basic Definitions Two or more sets Subset
Definition (Subset) A set B is a subset of set A, denoted A ⊆ B, if and only if ∀x ∈ Ω, x ∈ B ⇒ x ∈ A
Figure 5: A subset of a set
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 26 / 56 P ⊆ Q
{a ∈ Z 4|a} ⊆ Zeven
Definition (Superset) A set A is a superset of set B, denoted A ⊇ B, if and only if B ⊆ A.
Basic Definitions Two or more sets Subset
Definition (Subset) A set B is a subset of set A, denoted A ⊆ B, if and only if ∀x ∈ Ω, x ∈ B ⇒ x ∈ A
Examples: N ⊆ Z
Figure 5: A subset of a set
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 26 / 56
{a ∈ Z 4|a} ⊆ Zeven
Definition (Superset) A set A is a superset of set B, denoted A ⊇ B, if and only if B ⊆ A.
Basic Definitions Two or more sets Subset
Definition (Subset) A set B is a subset of set A, denoted A ⊆ B, if and only if ∀x ∈ Ω, x ∈ B ⇒ x ∈ A
Examples: N ⊆ Z P ⊆ Q
Figure 5: A subset of a set
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 26 / 56 Definition (Superset) A set A is a superset of set B, denoted A ⊇ B, if and only if B ⊆ A.
Basic Definitions Two or more sets Subset
Definition (Subset) A set B is a subset of set A, denoted A ⊆ B, if and only if ∀x ∈ Ω, x ∈ B ⇒ x ∈ A
Examples: N ⊆ Z P ⊆ Q
{a ∈ Z 4|a} ⊆ Zeven Figure 5: A subset of a set
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 26 / 56 Basic Definitions Two or more sets Subset
Definition (Subset) A set B is a subset of set A, denoted A ⊆ B, if and only if ∀x ∈ Ω, x ∈ B ⇒ x ∈ A
Examples: N ⊆ Z P ⊆ Q
{a ∈ Z 4|a} ⊆ Zeven Figure 5: A subset of a set Definition (Superset) A set A is a superset of set B, denoted A ⊇ B, if and only if B ⊆ A.
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 26 / 56 Q ⊂ R {1} ⊂ {0, 1} {{}} ⊂ {∅, {{∅}}}
Definition (Proper superset) A set A is a proper superset of set B, denoted A ⊃ B, if and only if B ⊂ A.
Basic Definitions Two or more sets Proper subset
Definition (Proper subset) A set A is a proper subset of set B, denoted A ⊂ B, if it is a subset of set B and ∃x ∈ B : x∈ / A.
Examples:
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 27 / 56 {1} ⊂ {0, 1} {{}} ⊂ {∅, {{∅}}}
Definition (Proper superset) A set A is a proper superset of set B, denoted A ⊃ B, if and only if B ⊂ A.
Basic Definitions Two or more sets Proper subset
Definition (Proper subset) A set A is a proper subset of set B, denoted A ⊂ B, if it is a subset of set B and ∃x ∈ B : x∈ / A.
Examples: Q ⊂ R
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 27 / 56 {{}} ⊂ {∅, {{∅}}}
Definition (Proper superset) A set A is a proper superset of set B, denoted A ⊃ B, if and only if B ⊂ A.
Basic Definitions Two or more sets Proper subset
Definition (Proper subset) A set A is a proper subset of set B, denoted A ⊂ B, if it is a subset of set B and ∃x ∈ B : x∈ / A.
Examples: Q ⊂ R {1} ⊂ {0, 1}
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 27 / 56 Definition (Proper superset) A set A is a proper superset of set B, denoted A ⊃ B, if and only if B ⊂ A.
Basic Definitions Two or more sets Proper subset
Definition (Proper subset) A set A is a proper subset of set B, denoted A ⊂ B, if it is a subset of set B and ∃x ∈ B : x∈ / A.
Examples: Q ⊂ R {1} ⊂ {0, 1} {{}} ⊂ {∅, {{∅}}}
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 27 / 56 Basic Definitions Two or more sets Proper subset
Definition (Proper subset) A set A is a proper subset of set B, denoted A ⊂ B, if it is a subset of set B and ∃x ∈ B : x∈ / A.
Examples: Q ⊂ R {1} ⊂ {0, 1} {{}} ⊂ {∅, {{∅}}}
Definition (Proper superset) A set A is a proper superset of set B, denoted A ⊃ B, if and only if B ⊂ A.
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 27 / 56 Corollary (Any set is an element of its powerset) ∀S ⊆ Ω,S ∈ P({S})
Corollary ∀A, B such that A ⊂ B, A ⊆ B
Corollary ∀S, ∅ ⊆ S
Can we prove the latter corollary?
Basic Definitions Two or more sets Corollaries of subset definition
Corollary (Any set is a subset of itself) ∀S ⊆ Ω,S ⊆ S
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 28 / 56 Corollary ∀A, B such that A ⊂ B, A ⊆ B
Corollary ∀S, ∅ ⊆ S
Can we prove the latter corollary?
Basic Definitions Two or more sets Corollaries of subset definition
Corollary (Any set is a subset of itself) ∀S ⊆ Ω,S ⊆ S
Corollary (Any set is an element of its powerset) ∀S ⊆ Ω,S ∈ P({S})
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 28 / 56 Corollary ∀S, ∅ ⊆ S
Can we prove the latter corollary?
Basic Definitions Two or more sets Corollaries of subset definition
Corollary (Any set is a subset of itself) ∀S ⊆ Ω,S ⊆ S
Corollary (Any set is an element of its powerset) ∀S ⊆ Ω,S ∈ P({S})
Corollary ∀A, B such that A ⊂ B, A ⊆ B
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 28 / 56 Can we prove the latter corollary?
Basic Definitions Two or more sets Corollaries of subset definition
Corollary (Any set is a subset of itself) ∀S ⊆ Ω,S ⊆ S
Corollary (Any set is an element of its powerset) ∀S ⊆ Ω,S ∈ P({S})
Corollary ∀A, B such that A ⊂ B, A ⊆ B
Corollary ∀S, ∅ ⊆ S
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 28 / 56 Basic Definitions Two or more sets Corollaries of subset definition
Corollary (Any set is a subset of itself) ∀S ⊆ Ω,S ⊆ S
Corollary (Any set is an element of its powerset) ∀S ⊆ Ω,S ∈ P({S})
Corollary ∀A, B such that A ⊂ B, A ⊆ B
Corollary ∀S, ∅ ⊆ S
Can we prove the latter corollary?
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 28 / 56 T {{1}} ⊆ {1, 2, 3} ? F {{1}} ⊆ {{1}, 2, 3} ? T {{1}} ∈ {{1}, 2, 3} ? F {1} ∈ {{1}, 2, 3} ? T ∅ ⊆ Z ? T ∅ ⊆ { } ? T ∅ ∈ { } ? F ∅ ∈ {{}} ? T ∅ ∈ {{∅}} ? F Master those!
Basic Definitions Two or more sets Subset and membership
Apply care when distinguishing between membership and subset relationships, particularly when dealing with sets of sets. Are the following statements true or false? {1} ⊆ {1, 2, 3} ?
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 29 / 56 {{1}} ⊆ {1, 2, 3} ? F {{1}} ⊆ {{1}, 2, 3} ? T {{1}} ∈ {{1}, 2, 3} ? F {1} ∈ {{1}, 2, 3} ? T ∅ ⊆ Z ? T ∅ ⊆ { } ? T ∅ ∈ { } ? F ∅ ∈ {{}} ? T ∅ ∈ {{∅}} ? F Master those!
Basic Definitions Two or more sets Subset and membership
Apply care when distinguishing between membership and subset relationships, particularly when dealing with sets of sets. Are the following statements true or false? {1} ⊆ {1, 2, 3} ? T
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 29 / 56 F {{1}} ⊆ {{1}, 2, 3} ? T {{1}} ∈ {{1}, 2, 3} ? F {1} ∈ {{1}, 2, 3} ? T ∅ ⊆ Z ? T ∅ ⊆ { } ? T ∅ ∈ { } ? F ∅ ∈ {{}} ? T ∅ ∈ {{∅}} ? F Master those!
Basic Definitions Two or more sets Subset and membership
Apply care when distinguishing between membership and subset relationships, particularly when dealing with sets of sets. Are the following statements true or false? {1} ⊆ {1, 2, 3} ? T {{1}} ⊆ {1, 2, 3} ?
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 29 / 56 {{1}} ⊆ {{1}, 2, 3} ? T {{1}} ∈ {{1}, 2, 3} ? F {1} ∈ {{1}, 2, 3} ? T ∅ ⊆ Z ? T ∅ ⊆ { } ? T ∅ ∈ { } ? F ∅ ∈ {{}} ? T ∅ ∈ {{∅}} ? F Master those!
Basic Definitions Two or more sets Subset and membership
Apply care when distinguishing between membership and subset relationships, particularly when dealing with sets of sets. Are the following statements true or false? {1} ⊆ {1, 2, 3} ? T {{1}} ⊆ {1, 2, 3} ? F
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 29 / 56 T {{1}} ∈ {{1}, 2, 3} ? F {1} ∈ {{1}, 2, 3} ? T ∅ ⊆ Z ? T ∅ ⊆ { } ? T ∅ ∈ { } ? F ∅ ∈ {{}} ? T ∅ ∈ {{∅}} ? F Master those!
Basic Definitions Two or more sets Subset and membership
Apply care when distinguishing between membership and subset relationships, particularly when dealing with sets of sets. Are the following statements true or false? {1} ⊆ {1, 2, 3} ? T {{1}} ⊆ {1, 2, 3} ? F {{1}} ⊆ {{1}, 2, 3} ?
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 29 / 56 {{1}} ∈ {{1}, 2, 3} ? F {1} ∈ {{1}, 2, 3} ? T ∅ ⊆ Z ? T ∅ ⊆ { } ? T ∅ ∈ { } ? F ∅ ∈ {{}} ? T ∅ ∈ {{∅}} ? F Master those!
Basic Definitions Two or more sets Subset and membership
Apply care when distinguishing between membership and subset relationships, particularly when dealing with sets of sets. Are the following statements true or false? {1} ⊆ {1, 2, 3} ? T {{1}} ⊆ {1, 2, 3} ? F {{1}} ⊆ {{1}, 2, 3} ? T
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 29 / 56 F {1} ∈ {{1}, 2, 3} ? T ∅ ⊆ Z ? T ∅ ⊆ { } ? T ∅ ∈ { } ? F ∅ ∈ {{}} ? T ∅ ∈ {{∅}} ? F Master those!
Basic Definitions Two or more sets Subset and membership
Apply care when distinguishing between membership and subset relationships, particularly when dealing with sets of sets. Are the following statements true or false? {1} ⊆ {1, 2, 3} ? T {{1}} ⊆ {1, 2, 3} ? F {{1}} ⊆ {{1}, 2, 3} ? T {{1}} ∈ {{1}, 2, 3} ?
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 29 / 56 {1} ∈ {{1}, 2, 3} ? T ∅ ⊆ Z ? T ∅ ⊆ { } ? T ∅ ∈ { } ? F ∅ ∈ {{}} ? T ∅ ∈ {{∅}} ? F Master those!
Basic Definitions Two or more sets Subset and membership
Apply care when distinguishing between membership and subset relationships, particularly when dealing with sets of sets. Are the following statements true or false? {1} ⊆ {1, 2, 3} ? T {{1}} ⊆ {1, 2, 3} ? F {{1}} ⊆ {{1}, 2, 3} ? T {{1}} ∈ {{1}, 2, 3} ? F
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 29 / 56 T ∅ ⊆ Z ? T ∅ ⊆ { } ? T ∅ ∈ { } ? F ∅ ∈ {{}} ? T ∅ ∈ {{∅}} ? F Master those!
Basic Definitions Two or more sets Subset and membership
Apply care when distinguishing between membership and subset relationships, particularly when dealing with sets of sets. Are the following statements true or false? {1} ⊆ {1, 2, 3} ? T {{1}} ⊆ {1, 2, 3} ? F {{1}} ⊆ {{1}, 2, 3} ? T {{1}} ∈ {{1}, 2, 3} ? F {1} ∈ {{1}, 2, 3} ?
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 29 / 56 ∅ ⊆ Z ? T ∅ ⊆ { } ? T ∅ ∈ { } ? F ∅ ∈ {{}} ? T ∅ ∈ {{∅}} ? F Master those!
Basic Definitions Two or more sets Subset and membership
Apply care when distinguishing between membership and subset relationships, particularly when dealing with sets of sets. Are the following statements true or false? {1} ⊆ {1, 2, 3} ? T {{1}} ⊆ {1, 2, 3} ? F {{1}} ⊆ {{1}, 2, 3} ? T {{1}} ∈ {{1}, 2, 3} ? F {1} ∈ {{1}, 2, 3} ? T
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 29 / 56 T ∅ ⊆ { } ? T ∅ ∈ { } ? F ∅ ∈ {{}} ? T ∅ ∈ {{∅}} ? F Master those!
Basic Definitions Two or more sets Subset and membership
Apply care when distinguishing between membership and subset relationships, particularly when dealing with sets of sets. Are the following statements true or false? {1} ⊆ {1, 2, 3} ? T {{1}} ⊆ {1, 2, 3} ? F {{1}} ⊆ {{1}, 2, 3} ? T {{1}} ∈ {{1}, 2, 3} ? F {1} ∈ {{1}, 2, 3} ? T ∅ ⊆ Z ?
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 29 / 56 ∅ ⊆ { } ? T ∅ ∈ { } ? F ∅ ∈ {{}} ? T ∅ ∈ {{∅}} ? F Master those!
Basic Definitions Two or more sets Subset and membership
Apply care when distinguishing between membership and subset relationships, particularly when dealing with sets of sets. Are the following statements true or false? {1} ⊆ {1, 2, 3} ? T {{1}} ⊆ {1, 2, 3} ? F {{1}} ⊆ {{1}, 2, 3} ? T {{1}} ∈ {{1}, 2, 3} ? F {1} ∈ {{1}, 2, 3} ? T ∅ ⊆ Z ? T
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 29 / 56 T ∅ ∈ { } ? F ∅ ∈ {{}} ? T ∅ ∈ {{∅}} ? F Master those!
Basic Definitions Two or more sets Subset and membership
Apply care when distinguishing between membership and subset relationships, particularly when dealing with sets of sets. Are the following statements true or false? {1} ⊆ {1, 2, 3} ? T {{1}} ⊆ {1, 2, 3} ? F {{1}} ⊆ {{1}, 2, 3} ? T {{1}} ∈ {{1}, 2, 3} ? F {1} ∈ {{1}, 2, 3} ? T ∅ ⊆ Z ? T ∅ ⊆ { } ?
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 29 / 56 ∅ ∈ { } ? F ∅ ∈ {{}} ? T ∅ ∈ {{∅}} ? F Master those!
Basic Definitions Two or more sets Subset and membership
Apply care when distinguishing between membership and subset relationships, particularly when dealing with sets of sets. Are the following statements true or false? {1} ⊆ {1, 2, 3} ? T {{1}} ⊆ {1, 2, 3} ? F {{1}} ⊆ {{1}, 2, 3} ? T {{1}} ∈ {{1}, 2, 3} ? F {1} ∈ {{1}, 2, 3} ? T ∅ ⊆ Z ? T ∅ ⊆ { } ? T
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 29 / 56 F ∅ ∈ {{}} ? T ∅ ∈ {{∅}} ? F Master those!
Basic Definitions Two or more sets Subset and membership
Apply care when distinguishing between membership and subset relationships, particularly when dealing with sets of sets. Are the following statements true or false? {1} ⊆ {1, 2, 3} ? T {{1}} ⊆ {1, 2, 3} ? F {{1}} ⊆ {{1}, 2, 3} ? T {{1}} ∈ {{1}, 2, 3} ? F {1} ∈ {{1}, 2, 3} ? T ∅ ⊆ Z ? T ∅ ⊆ { } ? T ∅ ∈ { } ?
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 29 / 56 ∅ ∈ {{}} ? T ∅ ∈ {{∅}} ? F Master those!
Basic Definitions Two or more sets Subset and membership
Apply care when distinguishing between membership and subset relationships, particularly when dealing with sets of sets. Are the following statements true or false? {1} ⊆ {1, 2, 3} ? T {{1}} ⊆ {1, 2, 3} ? F {{1}} ⊆ {{1}, 2, 3} ? T {{1}} ∈ {{1}, 2, 3} ? F {1} ∈ {{1}, 2, 3} ? T ∅ ⊆ Z ? T ∅ ⊆ { } ? T ∅ ∈ { } ? F
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 29 / 56 T ∅ ∈ {{∅}} ? F Master those!
Basic Definitions Two or more sets Subset and membership
Apply care when distinguishing between membership and subset relationships, particularly when dealing with sets of sets. Are the following statements true or false? {1} ⊆ {1, 2, 3} ? T {{1}} ⊆ {1, 2, 3} ? F {{1}} ⊆ {{1}, 2, 3} ? T {{1}} ∈ {{1}, 2, 3} ? F {1} ∈ {{1}, 2, 3} ? T ∅ ⊆ Z ? T ∅ ⊆ { } ? T ∅ ∈ { } ? F ∅ ∈ {{}} ?
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 29 / 56 ∅ ∈ {{∅}} ? F Master those!
Basic Definitions Two or more sets Subset and membership
Apply care when distinguishing between membership and subset relationships, particularly when dealing with sets of sets. Are the following statements true or false? {1} ⊆ {1, 2, 3} ? T {{1}} ⊆ {1, 2, 3} ? F {{1}} ⊆ {{1}, 2, 3} ? T {{1}} ∈ {{1}, 2, 3} ? F {1} ∈ {{1}, 2, 3} ? T ∅ ⊆ Z ? T ∅ ⊆ { } ? T ∅ ∈ { } ? F ∅ ∈ {{}} ? T
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 29 / 56 F Master those!
Basic Definitions Two or more sets Subset and membership
Apply care when distinguishing between membership and subset relationships, particularly when dealing with sets of sets. Are the following statements true or false? {1} ⊆ {1, 2, 3} ? T {{1}} ⊆ {1, 2, 3} ? F {{1}} ⊆ {{1}, 2, 3} ? T {{1}} ∈ {{1}, 2, 3} ? F {1} ∈ {{1}, 2, 3} ? T ∅ ⊆ Z ? T ∅ ⊆ { } ? T ∅ ∈ { } ? F ∅ ∈ {{}} ? T ∅ ∈ {{∅}} ?
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 29 / 56 Basic Definitions Two or more sets Subset and membership
Apply care when distinguishing between membership and subset relationships, particularly when dealing with sets of sets. Are the following statements true or false? {1} ⊆ {1, 2, 3} ? T {{1}} ⊆ {1, 2, 3} ? F {{1}} ⊆ {{1}, 2, 3} ? T {{1}} ∈ {{1}, 2, 3} ? F {1} ∈ {{1}, 2, 3} ? T ∅ ⊆ Z ? T ∅ ⊆ { } ? T ∅ ∈ { } ? F ∅ ∈ {{}} ? T ∅ ∈ {{∅}} ? F Master those!
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 29 / 56 Examples: {−2, −8, 1} ∪ {0, 2} = {−8, −2, 1, 0, 2} {−4, 6, 7} ∪ {−10, 7} = {−10, −4, 6, 7} {{a}, b, c} ∪ {{b}, c}} = {{a}, b, {b}, c} R − Q ∪ Q = R
Basic Definitions Two or more sets Union
Definition (Union) Let A and B be two sets. Then, the union between those two sets, denoted A ∪ B is the set {x ∈ Ω | (x ∈ A) ∨ (x ∈ B)}.
Figure 6: Venn Diagram illustrating the union of two sets.
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 30 / 56 {−2, −8, 1} ∪ {0, 2} = {−8, −2, 1, 0, 2} {−4, 6, 7} ∪ {−10, 7} = {−10, −4, 6, 7} {{a}, b, c} ∪ {{b}, c}} = {{a}, b, {b}, c} R − Q ∪ Q = R
Basic Definitions Two or more sets Union
Definition (Union) Let A and B be two sets. Then, the union between those two sets, denoted A ∪ B is the set {x ∈ Ω | (x ∈ A) ∨ (x ∈ B)}.
Examples:
Figure 6: Venn Diagram illustrating the union of two sets.
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 30 / 56 {−4, 6, 7} ∪ {−10, 7} = {−10, −4, 6, 7} {{a}, b, c} ∪ {{b}, c}} = {{a}, b, {b}, c} R − Q ∪ Q = R
Basic Definitions Two or more sets Union
Definition (Union) Let A and B be two sets. Then, the union between those two sets, denoted A ∪ B is the set {x ∈ Ω | (x ∈ A) ∨ (x ∈ B)}.
Examples: {−2, −8, 1} ∪ {0, 2} = {−8, −2, 1, 0, 2} Figure 6: Venn Diagram illustrating the union of two sets.
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 30 / 56 {{a}, b, c} ∪ {{b}, c}} = {{a}, b, {b}, c} R − Q ∪ Q = R
Basic Definitions Two or more sets Union
Definition (Union) Let A and B be two sets. Then, the union between those two sets, denoted A ∪ B is the set {x ∈ Ω | (x ∈ A) ∨ (x ∈ B)}.
Examples: {−2, −8, 1} ∪ {0, 2} = {−8, −2, 1, 0, 2} Figure 6: Venn Diagram illustrating {−4, 6, 7} ∪ {−10, 7} = the union of two sets. {−10, −4, 6, 7}
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 30 / 56 R − Q ∪ Q = R
Basic Definitions Two or more sets Union
Definition (Union) Let A and B be two sets. Then, the union between those two sets, denoted A ∪ B is the set {x ∈ Ω | (x ∈ A) ∨ (x ∈ B)}.
Examples: {−2, −8, 1} ∪ {0, 2} = {−8, −2, 1, 0, 2} Figure 6: Venn Diagram illustrating {−4, 6, 7} ∪ {−10, 7} = the union of two sets. {−10, −4, 6, 7} {{a}, b, c} ∪ {{b}, c}} = {{a}, b, {b}, c}
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 30 / 56 Basic Definitions Two or more sets Union
Definition (Union) Let A and B be two sets. Then, the union between those two sets, denoted A ∪ B is the set {x ∈ Ω | (x ∈ A) ∨ (x ∈ B)}.
Examples: {−2, −8, 1} ∪ {0, 2} = {−8, −2, 1, 0, 2} Figure 6: Venn Diagram illustrating {−4, 6, 7} ∪ {−10, 7} = the union of two sets. {−10, −4, 6, 7} {{a}, b, c} ∪ {{b}, c}} = {{a}, b, {b}, c} R − Q ∪ Q = R
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 30 / 56 Corollary (Union of a set and its absolute complement) For every set A, A ∪ A0 = Ω
Corollary (Empty set is the neutral element of union) For every set A, A ∪ ∅ = A
Since A ∪ A = A ∪ ∅ = A, why don’t we call A a neutral element of union as well?
Basic Definitions Two or more sets Corollaries of union definition
Corollary (Union is reflexive) For every set A, A ∪ A = A
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 31 / 56 Corollary (Empty set is the neutral element of union) For every set A, A ∪ ∅ = A
Since A ∪ A = A ∪ ∅ = A, why don’t we call A a neutral element of union as well?
Basic Definitions Two or more sets Corollaries of union definition
Corollary (Union is reflexive) For every set A, A ∪ A = A
Corollary (Union of a set and its absolute complement) For every set A, A ∪ A0 = Ω
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 31 / 56 Since A ∪ A = A ∪ ∅ = A, why don’t we call A a neutral element of union as well?
Basic Definitions Two or more sets Corollaries of union definition
Corollary (Union is reflexive) For every set A, A ∪ A = A
Corollary (Union of a set and its absolute complement) For every set A, A ∪ A0 = Ω
Corollary (Empty set is the neutral element of union) For every set A, A ∪ ∅ = A
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 31 / 56 Basic Definitions Two or more sets Corollaries of union definition
Corollary (Union is reflexive) For every set A, A ∪ A = A
Corollary (Union of a set and its absolute complement) For every set A, A ∪ A0 = Ω
Corollary (Empty set is the neutral element of union) For every set A, A ∪ ∅ = A
Since A ∪ A = A ∪ ∅ = A, why don’t we call A a neutral element of union as well?
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 31 / 56 Examples: {12, −8, 11} ∩ {11, 2} = {11} {1, 3, 5, 8, 13,... } ∩ {−10, −20, −30 ... } = ∅ {{}} ∩ {} = ? ∅ (!) Z− ∩ P = ∅
Basic Definitions Two or more sets Intersection
Definition (Intersection) Let A and B be two sets. Then, the intersection between those two sets, denoted A ∩ B is the set {x ∈ Ω | (x ∈ A) ∧ (x ∈ B)}.
Figure 7: Venn Diagram illustrating the intersection of two sets.
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 32 / 56 {12, −8, 11} ∩ {11, 2} = {11} {1, 3, 5, 8, 13,... } ∩ {−10, −20, −30 ... } = ∅ {{}} ∩ {} = ? ∅ (!) Z− ∩ P = ∅
Basic Definitions Two or more sets Intersection
Definition (Intersection) Let A and B be two sets. Then, the intersection between those two sets, denoted A ∩ B is the set {x ∈ Ω | (x ∈ A) ∧ (x ∈ B)}.
Examples:
Figure 7: Venn Diagram illustrating the intersection of two sets.
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 32 / 56 {1, 3, 5, 8, 13,... } ∩ {−10, −20, −30 ... } = ∅ {{}} ∩ {} = ? ∅ (!) Z− ∩ P = ∅
Basic Definitions Two or more sets Intersection
Definition (Intersection) Let A and B be two sets. Then, the intersection between those two sets, denoted A ∩ B is the set {x ∈ Ω | (x ∈ A) ∧ (x ∈ B)}.
Examples: {12, −8, 11} ∩ {11, 2} = {11}
Figure 7: Venn Diagram illustrating the intersection of two sets.
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 32 / 56 {{}} ∩ {} = ? ∅ (!) Z− ∩ P = ∅
Basic Definitions Two or more sets Intersection
Definition (Intersection) Let A and B be two sets. Then, the intersection between those two sets, denoted A ∩ B is the set {x ∈ Ω | (x ∈ A) ∧ (x ∈ B)}.
Examples: {12, −8, 11} ∩ {11, 2} = {11} {1, 3, 5, 8, 13,... } ∩ Figure 7: Venn Diagram illustrating {−10, −20, −30 ... } = ∅ the intersection of two sets.
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 32 / 56 Z− ∩ P = ∅
Basic Definitions Two or more sets Intersection
Definition (Intersection) Let A and B be two sets. Then, the intersection between those two sets, denoted A ∩ B is the set {x ∈ Ω | (x ∈ A) ∧ (x ∈ B)}.
Examples: {12, −8, 11} ∩ {11, 2} = {11} {1, 3, 5, 8, 13,... } ∩ Figure 7: Venn Diagram illustrating {−10, −20, −30 ... } = ∅ the intersection of two sets. {{}} ∩ {} = ? ∅ (!)
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 32 / 56 Basic Definitions Two or more sets Intersection
Definition (Intersection) Let A and B be two sets. Then, the intersection between those two sets, denoted A ∩ B is the set {x ∈ Ω | (x ∈ A) ∧ (x ∈ B)}.
Examples: {12, −8, 11} ∩ {11, 2} = {11} {1, 3, 5, 8, 13,... } ∩ Figure 7: Venn Diagram illustrating {−10, −20, −30 ... } = ∅ the intersection of two sets. {{}} ∩ {} = ? ∅ (!) Z− ∩ P = ∅
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 32 / 56 Corollary (Intersection and subset) For all sets A, B such that A ⊆ B, A ∩ B = A.
Corollary (Identity law) ∀A ⊆ Ω,A ∩ Ω = A
Corollary (Domination law) ∀A ⊆ Ω,A ∩ ∅ = ∅
Basic Definitions Two or more sets Corollaries of intersection definition
Corollary (Reflexivity of intersection) For all sets A, A ∩ A = A
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 33 / 56 Corollary (Identity law) ∀A ⊆ Ω,A ∩ Ω = A
Corollary (Domination law) ∀A ⊆ Ω,A ∩ ∅ = ∅
Basic Definitions Two or more sets Corollaries of intersection definition
Corollary (Reflexivity of intersection) For all sets A, A ∩ A = A
Corollary (Intersection and subset) For all sets A, B such that A ⊆ B, A ∩ B = A.
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 33 / 56 Basic Definitions Two or more sets Corollaries of intersection definition
Corollary (Reflexivity of intersection) For all sets A, A ∩ A = A
Corollary (Intersection and subset) For all sets A, B such that A ⊆ B, A ∩ B = A.
Corollary (Identity law) ∀A ⊆ Ω,A ∩ Ω = A
Corollary (Domination law) ∀A ⊆ Ω,A ∩ ∅ = ∅
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 33 / 56 Examples: {12, −8, 11} − {11, 2} = {12, −8} {1, 3, 5, 8, 13,... } − {−10, −20, −30 ... } = 1, 3, 5, 8, 13 {0, 1} − {−1, 0, 1} = ? ∅
Basic Definitions Two or more sets (Relative) Complement
Definition (Relative complement) Let A and B be two sets. Then, the relative complement of A with respect to B between those denoted A − B or A \ B is the set {x ∈ Ω | (x ∈ A) ∧ (x∈ / B)}.
Figure 8: Venn Diagram illustrating the relative complement A − B between two sets.
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 34 / 56 {12, −8, 11} − {11, 2} = {12, −8} {1, 3, 5, 8, 13,... } − {−10, −20, −30 ... } = 1, 3, 5, 8, 13 {0, 1} − {−1, 0, 1} = ? ∅
Basic Definitions Two or more sets (Relative) Complement
Definition (Relative complement) Let A and B be two sets. Then, the relative complement of A with respect to B between those denoted A − B or A \ B is the set {x ∈ Ω | (x ∈ A) ∧ (x∈ / B)}.
Examples:
Figure 8: Venn Diagram illustrating the relative complement A − B between two sets.
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 34 / 56 {1, 3, 5, 8, 13,... } − {−10, −20, −30 ... } = 1, 3, 5, 8, 13 {0, 1} − {−1, 0, 1} = ? ∅
Basic Definitions Two or more sets (Relative) Complement
Definition (Relative complement) Let A and B be two sets. Then, the relative complement of A with respect to B between those denoted A − B or A \ B is the set {x ∈ Ω | (x ∈ A) ∧ (x∈ / B)}.
Examples: {12, −8, 11} − {11, 2} = Figure 8: Venn Diagram illustrating {12, −8} the relative complement A − B between two sets.
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 34 / 56 {0, 1} − {−1, 0, 1} = ? ∅
Basic Definitions Two or more sets (Relative) Complement
Definition (Relative complement) Let A and B be two sets. Then, the relative complement of A with respect to B between those denoted A − B or A \ B is the set {x ∈ Ω | (x ∈ A) ∧ (x∈ / B)}.
Examples: {12, −8, 11} − {11, 2} = Figure 8: Venn Diagram illustrating {12, −8} the relative complement A − B {1, 3, 5, 8, 13,... } − between two sets. {−10, −20, −30 ... } = 1, 3, 5, 8, 13
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 34 / 56 ∅
Basic Definitions Two or more sets (Relative) Complement
Definition (Relative complement) Let A and B be two sets. Then, the relative complement of A with respect to B between those denoted A − B or A \ B is the set {x ∈ Ω | (x ∈ A) ∧ (x∈ / B)}.
Examples: {12, −8, 11} − {11, 2} = Figure 8: Venn Diagram illustrating {12, −8} the relative complement A − B {1, 3, 5, 8, 13,... } − between two sets. {−10, −20, −30 ... } = 1, 3, 5, 8, 13 {0, 1} − {−1, 0, 1} = ?
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 34 / 56 Basic Definitions Two or more sets (Relative) Complement
Definition (Relative complement) Let A and B be two sets. Then, the relative complement of A with respect to B between those denoted A − B or A \ B is the set {x ∈ Ω | (x ∈ A) ∧ (x∈ / B)}.
Examples: {12, −8, 11} − {11, 2} = Figure 8: Venn Diagram illustrating {12, −8} the relative complement A − B {1, 3, 5, 8, 13,... } − between two sets. {−10, −20, −30 ... } = 1, 3, 5, 8, 13 {0, 1} − {−1, 0, 1} = ? ∅
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 34 / 56 Corollary ∀A ⊆ Ω,A and ∅ are disjoint.
Corollary ∀A ⊆ Ω,A and A0 are disjoint.
Corollary For all sets A, B, A − B and B are disjoint.
Corollary ∅ is the only set disjoint from Ω.
Basic Definitions Two or more sets Disjoint sets
Definition (Disjoint sets) Two sets A and B are called disjoint if and only if A ∩ B = ∅
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 35 / 56 Corollary ∀A ⊆ Ω,A and A0 are disjoint.
Corollary For all sets A, B, A − B and B are disjoint.
Corollary ∅ is the only set disjoint from Ω.
Basic Definitions Two or more sets Disjoint sets
Definition (Disjoint sets) Two sets A and B are called disjoint if and only if A ∩ B = ∅
Corollary ∀A ⊆ Ω,A and ∅ are disjoint.
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 35 / 56 Corollary For all sets A, B, A − B and B are disjoint.
Corollary ∅ is the only set disjoint from Ω.
Basic Definitions Two or more sets Disjoint sets
Definition (Disjoint sets) Two sets A and B are called disjoint if and only if A ∩ B = ∅
Corollary ∀A ⊆ Ω,A and ∅ are disjoint.
Corollary ∀A ⊆ Ω,A and A0 are disjoint.
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 35 / 56 Corollary ∅ is the only set disjoint from Ω.
Basic Definitions Two or more sets Disjoint sets
Definition (Disjoint sets) Two sets A and B are called disjoint if and only if A ∩ B = ∅
Corollary ∀A ⊆ Ω,A and ∅ are disjoint.
Corollary ∀A ⊆ Ω,A and A0 are disjoint.
Corollary For all sets A, B, A − B and B are disjoint.
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 35 / 56 Basic Definitions Two or more sets Disjoint sets
Definition (Disjoint sets) Two sets A and B are called disjoint if and only if A ∩ B = ∅
Corollary ∀A ⊆ Ω,A and ∅ are disjoint.
Corollary ∀A ⊆ Ω,A and A0 are disjoint.
Corollary For all sets A, B, A − B and B are disjoint.
Corollary ∅ is the only set disjoint from Ω.
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 35 / 56 Examples: R and {Z−, {0}, N+} {−10, −5, 6} and {{−10, −5}, {6} .
Basic Definitions Two or more sets Partition
Definition (Partition of a set) Let A be a set. The partition of A is a set of sets A1,A2,...,An which have the following properties:
1 Ai and Aj are disjoint for every i 6= j, 1 ≤ i, j ≤ n Figure 9: Venn Diagram illustrating a n 2 S partition of a set. k=1 Ak = A.
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 36 / 56 R and {Z−, {0}, N+} {−10, −5, 6} and {{−10, −5}, {6} .
Basic Definitions Two or more sets Partition
Definition (Partition of a set) Let A be a set. The partition of A is a set of sets A1,A2,...,An which have the following properties:
1 Ai and Aj are disjoint for every i 6= j, 1 ≤ i, j ≤ n Figure 9: Venn Diagram illustrating a n 2 S partition of a set. k=1 Ak = A.
Examples:
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 36 / 56 {−10, −5, 6} and {{−10, −5}, {6} .
Basic Definitions Two or more sets Partition
Definition (Partition of a set) Let A be a set. The partition of A is a set of sets A1,A2,...,An which have the following properties:
1 Ai and Aj are disjoint for every i 6= j, 1 ≤ i, j ≤ n Figure 9: Venn Diagram illustrating a n 2 S partition of a set. k=1 Ak = A.
Examples: R and {Z−, {0}, N+}
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 36 / 56 .
Basic Definitions Two or more sets Partition
Definition (Partition of a set) Let A be a set. The partition of A is a set of sets A1,A2,...,An which have the following properties:
1 Ai and Aj are disjoint for every i 6= j, 1 ≤ i, j ≤ n Figure 9: Venn Diagram illustrating a n 2 S partition of a set. k=1 Ak = A.
Examples: R and {Z−, {0}, N+} {−10, −5, 6} and {{−10, −5}, {6}
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 36 / 56 Basic Definitions Two or more sets Partition
Definition (Partition of a set) Let A be a set. The partition of A is a set of sets A1,A2,...,An which have the following properties:
1 Ai and Aj are disjoint for every i 6= j, 1 ≤ i, j ≤ n Figure 9: Venn Diagram illustrating a n 2 S partition of a set. k=1 Ak = A.
Examples: R and {Z−, {0}, N+} {−10, −5, 6} and {{−10, −5}, {6} .
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 36 / 56 Definition (n-tuple equality)
Let n, r ∈ N. Two tuples (x1, x2, . . . , xn), (y1, y2, . . . , yr) are equal iff: 1 n = r.
2 ∀i = 1, 2, . . . , n, xi = yi.
Are the following tuples according to the standard real number ordering ‘ ≤0? 1 (2, 8, 10, 34) ? YES 2 (−4√.5, −3.5, −2.5) ? YES 3 (−8 2, −16, −7, 0, 1) ? NO 4 (0) ? YES 5 () ? YES (Empty tuple) 6 (2, 3, 3,√5) ? YES√ 7 (0, 0.5, 2, 3, 4, 9) NO 8 (0, 1, 2,... ) NO
Basic Definitions Two or more sets Ordered n-tuples
Definition (Ordered n-tuple) a Let ≤ be some ordering of elements in Ω. For n ∈ N,(x1, x2,..., xn) is an ordered n-tuple (abbrv. tuple) if x1 ≤ x3 ≤ · · · ≤ xn.
aE.g a total order.
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 37 / 56 Are the following tuples according to the standard real number ordering ‘ ≤0? 1 (2, 8, 10, 34) ? YES 2 (−4√.5, −3.5, −2.5) ? YES 3 (−8 2, −16, −7, 0, 1) ? NO 4 (0) ? YES 5 () ? YES (Empty tuple) 6 (2, 3, 3,√5) ? YES√ 7 (0, 0.5, 2, 3, 4, 9) NO 8 (0, 1, 2,... ) NO
Basic Definitions Two or more sets Ordered n-tuples
Definition (Ordered n-tuple) a Let ≤ be some ordering of elements in Ω. For n ∈ N,(x1, x2,..., xn) is an ordered n-tuple (abbrv. tuple) if x1 ≤ x3 ≤ · · · ≤ xn.
aE.g a total order.
Definition (n-tuple equality)
Let n, r ∈ N. Two tuples (x1, x2, . . . , xn), (y1, y2, . . . , yr) are equal iff: 1 n = r.
2 ∀i = 1, 2, . . . , n, xi = yi.
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 37 / 56 YES 2 (−4√.5, −3.5, −2.5) ? YES 3 (−8 2, −16, −7, 0, 1) ? NO 4 (0) ? YES 5 () ? YES (Empty tuple) 6 (2, 3, 3,√5) ? YES√ 7 (0, 0.5, 2, 3, 4, 9) NO 8 (0, 1, 2,... ) NO
Basic Definitions Two or more sets Ordered n-tuples
Definition (Ordered n-tuple) a Let ≤ be some ordering of elements in Ω. For n ∈ N,(x1, x2,..., xn) is an ordered n-tuple (abbrv. tuple) if x1 ≤ x3 ≤ · · · ≤ xn.
aE.g a total order.
Definition (n-tuple equality)
Let n, r ∈ N. Two tuples (x1, x2, . . . , xn), (y1, y2, . . . , yr) are equal iff: 1 n = r.
2 ∀i = 1, 2, . . . , n, xi = yi.
Are the following tuples according to the standard real number ordering ‘ ≤0? 1 (2, 8, 10, 34) ?
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 37 / 56 2 (−4√.5, −3.5, −2.5) ? YES 3 (−8 2, −16, −7, 0, 1) ? NO 4 (0) ? YES 5 () ? YES (Empty tuple) 6 (2, 3, 3,√5) ? YES√ 7 (0, 0.5, 2, 3, 4, 9) NO 8 (0, 1, 2,... ) NO
Basic Definitions Two or more sets Ordered n-tuples
Definition (Ordered n-tuple) a Let ≤ be some ordering of elements in Ω. For n ∈ N,(x1, x2,..., xn) is an ordered n-tuple (abbrv. tuple) if x1 ≤ x3 ≤ · · · ≤ xn.
aE.g a total order.
Definition (n-tuple equality)
Let n, r ∈ N. Two tuples (x1, x2, . . . , xn), (y1, y2, . . . , yr) are equal iff: 1 n = r.
2 ∀i = 1, 2, . . . , n, xi = yi.
Are the following tuples according to the standard real number ordering ‘ ≤0? 1 (2, 8, 10, 34) ? YES
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 37 / 56 √ YES 3 (−8 2, −16, −7, 0, 1) ? NO 4 (0) ? YES 5 () ? YES (Empty tuple) 6 (2, 3, 3,√5) ? YES√ 7 (0, 0.5, 2, 3, 4, 9) NO 8 (0, 1, 2,... ) NO
Basic Definitions Two or more sets Ordered n-tuples
Definition (Ordered n-tuple) a Let ≤ be some ordering of elements in Ω. For n ∈ N,(x1, x2,..., xn) is an ordered n-tuple (abbrv. tuple) if x1 ≤ x3 ≤ · · · ≤ xn.
aE.g a total order.
Definition (n-tuple equality)
Let n, r ∈ N. Two tuples (x1, x2, . . . , xn), (y1, y2, . . . , yr) are equal iff: 1 n = r.
2 ∀i = 1, 2, . . . , n, xi = yi.
Are the following tuples according to the standard real number ordering ‘ ≤0? 1 (2, 8, 10, 34) ? YES 2 (−4.5, −3.5, −2.5) ?
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 37 / 56 √ 3 (−8 2, −16, −7, 0, 1) ? NO 4 (0) ? YES 5 () ? YES (Empty tuple) 6 (2, 3, 3,√5) ? YES√ 7 (0, 0.5, 2, 3, 4, 9) NO 8 (0, 1, 2,... ) NO
Basic Definitions Two or more sets Ordered n-tuples
Definition (Ordered n-tuple) a Let ≤ be some ordering of elements in Ω. For n ∈ N,(x1, x2,..., xn) is an ordered n-tuple (abbrv. tuple) if x1 ≤ x3 ≤ · · · ≤ xn.
aE.g a total order.
Definition (n-tuple equality)
Let n, r ∈ N. Two tuples (x1, x2, . . . , xn), (y1, y2, . . . , yr) are equal iff: 1 n = r.
2 ∀i = 1, 2, . . . , n, xi = yi.
Are the following tuples according to the standard real number ordering ‘ ≤0? 1 (2, 8, 10, 34) ? YES 2 (−4.5, −3.5, −2.5) ? YES
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 37 / 56 NO 4 (0) ? YES 5 () ? YES (Empty tuple) 6 (2, 3, 3,√5) ? YES√ 7 (0, 0.5, 2, 3, 4, 9) NO 8 (0, 1, 2,... ) NO
Basic Definitions Two or more sets Ordered n-tuples
Definition (Ordered n-tuple) a Let ≤ be some ordering of elements in Ω. For n ∈ N,(x1, x2,..., xn) is an ordered n-tuple (abbrv. tuple) if x1 ≤ x3 ≤ · · · ≤ xn.
aE.g a total order.
Definition (n-tuple equality)
Let n, r ∈ N. Two tuples (x1, x2, . . . , xn), (y1, y2, . . . , yr) are equal iff: 1 n = r.
2 ∀i = 1, 2, . . . , n, xi = yi.
Are the following tuples according to the standard real number ordering ‘ ≤0? 1 (2, 8, 10, 34) ? YES 2 (−4√.5, −3.5, −2.5) ? YES 3 (−8 2, −16, −7, 0, 1) ?
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 37 / 56 4 (0) ? YES 5 () ? YES (Empty tuple) 6 (2, 3, 3,√5) ? YES√ 7 (0, 0.5, 2, 3, 4, 9) NO 8 (0, 1, 2,... ) NO
Basic Definitions Two or more sets Ordered n-tuples
Definition (Ordered n-tuple) a Let ≤ be some ordering of elements in Ω. For n ∈ N,(x1, x2,..., xn) is an ordered n-tuple (abbrv. tuple) if x1 ≤ x3 ≤ · · · ≤ xn.
aE.g a total order.
Definition (n-tuple equality)
Let n, r ∈ N. Two tuples (x1, x2, . . . , xn), (y1, y2, . . . , yr) are equal iff: 1 n = r.
2 ∀i = 1, 2, . . . , n, xi = yi.
Are the following tuples according to the standard real number ordering ‘ ≤0? 1 (2, 8, 10, 34) ? YES 2 (−4√.5, −3.5, −2.5) ? YES 3 (−8 2, −16, −7, 0, 1) ? NO
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 37 / 56 YES 5 () ? YES (Empty tuple) 6 (2, 3, 3,√5) ? YES√ 7 (0, 0.5, 2, 3, 4, 9) NO 8 (0, 1, 2,... ) NO
Basic Definitions Two or more sets Ordered n-tuples
Definition (Ordered n-tuple) a Let ≤ be some ordering of elements in Ω. For n ∈ N,(x1, x2,..., xn) is an ordered n-tuple (abbrv. tuple) if x1 ≤ x3 ≤ · · · ≤ xn.
aE.g a total order.
Definition (n-tuple equality)
Let n, r ∈ N. Two tuples (x1, x2, . . . , xn), (y1, y2, . . . , yr) are equal iff: 1 n = r.
2 ∀i = 1, 2, . . . , n, xi = yi.
Are the following tuples according to the standard real number ordering ‘ ≤0? 1 (2, 8, 10, 34) ? YES 2 (−4√.5, −3.5, −2.5) ? YES 3 (−8 2, −16, −7, 0, 1) ? NO 4 (0) ?
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 37 / 56 5 () ? YES (Empty tuple) 6 (2, 3, 3,√5) ? YES√ 7 (0, 0.5, 2, 3, 4, 9) NO 8 (0, 1, 2,... ) NO
Basic Definitions Two or more sets Ordered n-tuples
Definition (Ordered n-tuple) a Let ≤ be some ordering of elements in Ω. For n ∈ N,(x1, x2,..., xn) is an ordered n-tuple (abbrv. tuple) if x1 ≤ x3 ≤ · · · ≤ xn.
aE.g a total order.
Definition (n-tuple equality)
Let n, r ∈ N. Two tuples (x1, x2, . . . , xn), (y1, y2, . . . , yr) are equal iff: 1 n = r.
2 ∀i = 1, 2, . . . , n, xi = yi.
Are the following tuples according to the standard real number ordering ‘ ≤0? 1 (2, 8, 10, 34) ? YES 2 (−4√.5, −3.5, −2.5) ? YES 3 (−8 2, −16, −7, 0, 1) ? NO 4 (0) ? YES
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 37 / 56 YES (Empty tuple) 6 (2, 3, 3,√5) ? YES√ 7 (0, 0.5, 2, 3, 4, 9) NO 8 (0, 1, 2,... ) NO
Basic Definitions Two or more sets Ordered n-tuples
Definition (Ordered n-tuple) a Let ≤ be some ordering of elements in Ω. For n ∈ N,(x1, x2,..., xn) is an ordered n-tuple (abbrv. tuple) if x1 ≤ x3 ≤ · · · ≤ xn.
aE.g a total order.
Definition (n-tuple equality)
Let n, r ∈ N. Two tuples (x1, x2, . . . , xn), (y1, y2, . . . , yr) are equal iff: 1 n = r.
2 ∀i = 1, 2, . . . , n, xi = yi.
Are the following tuples according to the standard real number ordering ‘ ≤0? 1 (2, 8, 10, 34) ? YES 2 (−4√.5, −3.5, −2.5) ? YES 3 (−8 2, −16, −7, 0, 1) ? NO 4 (0) ? YES 5 () ?
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 37 / 56 6 (2, 3, 3,√5) ? YES√ 7 (0, 0.5, 2, 3, 4, 9) NO 8 (0, 1, 2,... ) NO
Basic Definitions Two or more sets Ordered n-tuples
Definition (Ordered n-tuple) a Let ≤ be some ordering of elements in Ω. For n ∈ N,(x1, x2,..., xn) is an ordered n-tuple (abbrv. tuple) if x1 ≤ x3 ≤ · · · ≤ xn.
aE.g a total order.
Definition (n-tuple equality)
Let n, r ∈ N. Two tuples (x1, x2, . . . , xn), (y1, y2, . . . , yr) are equal iff: 1 n = r.
2 ∀i = 1, 2, . . . , n, xi = yi.
Are the following tuples according to the standard real number ordering ‘ ≤0? 1 (2, 8, 10, 34) ? YES 2 (−4√.5, −3.5, −2.5) ? YES 3 (−8 2, −16, −7, 0, 1) ? NO 4 (0) ? YES 5 () ? YES (Empty tuple)
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 37 / 56 √ YES√ 7 (0, 0.5, 2, 3, 4, 9) NO 8 (0, 1, 2,... ) NO
Basic Definitions Two or more sets Ordered n-tuples
Definition (Ordered n-tuple) a Let ≤ be some ordering of elements in Ω. For n ∈ N,(x1, x2,..., xn) is an ordered n-tuple (abbrv. tuple) if x1 ≤ x3 ≤ · · · ≤ xn.
aE.g a total order.
Definition (n-tuple equality)
Let n, r ∈ N. Two tuples (x1, x2, . . . , xn), (y1, y2, . . . , yr) are equal iff: 1 n = r.
2 ∀i = 1, 2, . . . , n, xi = yi.
Are the following tuples according to the standard real number ordering ‘ ≤0? 1 (2, 8, 10, 34) ? YES 2 (−4√.5, −3.5, −2.5) ? YES 3 (−8 2, −16, −7, 0, 1) ? NO 4 (0) ? YES 5 () ? YES (Empty tuple) 6 (2, 3, 3, 5) ?
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 37 / 56 √ √ 7 (0, 0.5, 2, 3, 4, 9) NO 8 (0, 1, 2,... ) NO
Basic Definitions Two or more sets Ordered n-tuples
Definition (Ordered n-tuple) a Let ≤ be some ordering of elements in Ω. For n ∈ N,(x1, x2,..., xn) is an ordered n-tuple (abbrv. tuple) if x1 ≤ x3 ≤ · · · ≤ xn.
aE.g a total order.
Definition (n-tuple equality)
Let n, r ∈ N. Two tuples (x1, x2, . . . , xn), (y1, y2, . . . , yr) are equal iff: 1 n = r.
2 ∀i = 1, 2, . . . , n, xi = yi.
Are the following tuples according to the standard real number ordering ‘ ≤0? 1 (2, 8, 10, 34) ? YES 2 (−4√.5, −3.5, −2.5) ? YES 3 (−8 2, −16, −7, 0, 1) ? NO 4 (0) ? YES 5 () ? YES (Empty tuple) 6 (2, 3, 3, 5) ? YES
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 37 / 56 NO 8 (0, 1, 2,... ) NO
Basic Definitions Two or more sets Ordered n-tuples
Definition (Ordered n-tuple) a Let ≤ be some ordering of elements in Ω. For n ∈ N,(x1, x2,..., xn) is an ordered n-tuple (abbrv. tuple) if x1 ≤ x3 ≤ · · · ≤ xn.
aE.g a total order.
Definition (n-tuple equality)
Let n, r ∈ N. Two tuples (x1, x2, . . . , xn), (y1, y2, . . . , yr) are equal iff: 1 n = r.
2 ∀i = 1, 2, . . . , n, xi = yi.
Are the following tuples according to the standard real number ordering ‘ ≤0? 1 (2, 8, 10, 34) ? YES 2 (−4√.5, −3.5, −2.5) ? YES 3 (−8 2, −16, −7, 0, 1) ? NO 4 (0) ? YES 5 () ? YES (Empty tuple) 6 (2, 3, 3,√5) ? YES√ 7 (0, 0.5, 2, 3, 4, 9)
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 37 / 56 8 (0, 1, 2,... ) NO
Basic Definitions Two or more sets Ordered n-tuples
Definition (Ordered n-tuple) a Let ≤ be some ordering of elements in Ω. For n ∈ N,(x1, x2,..., xn) is an ordered n-tuple (abbrv. tuple) if x1 ≤ x3 ≤ · · · ≤ xn.
aE.g a total order.
Definition (n-tuple equality)
Let n, r ∈ N. Two tuples (x1, x2, . . . , xn), (y1, y2, . . . , yr) are equal iff: 1 n = r.
2 ∀i = 1, 2, . . . , n, xi = yi.
Are the following tuples according to the standard real number ordering ‘ ≤0? 1 (2, 8, 10, 34) ? YES 2 (−4√.5, −3.5, −2.5) ? YES 3 (−8 2, −16, −7, 0, 1) ? NO 4 (0) ? YES 5 () ? YES (Empty tuple) 6 (2, 3, 3,√5) ? YES√ 7 (0, 0.5, 2, 3, 4, 9) NO
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 37 / 56 NO
Basic Definitions Two or more sets Ordered n-tuples
Definition (Ordered n-tuple) a Let ≤ be some ordering of elements in Ω. For n ∈ N,(x1, x2,..., xn) is an ordered n-tuple (abbrv. tuple) if x1 ≤ x3 ≤ · · · ≤ xn.
aE.g a total order.
Definition (n-tuple equality)
Let n, r ∈ N. Two tuples (x1, x2, . . . , xn), (y1, y2, . . . , yr) are equal iff: 1 n = r.
2 ∀i = 1, 2, . . . , n, xi = yi.
Are the following tuples according to the standard real number ordering ‘ ≤0? 1 (2, 8, 10, 34) ? YES 2 (−4√.5, −3.5, −2.5) ? YES 3 (−8 2, −16, −7, 0, 1) ? NO 4 (0) ? YES 5 () ? YES (Empty tuple) 6 (2, 3, 3,√5) ? YES√ 7 (0, 0.5, 2, 3, 4, 9) NO 8 (0, 1, 2,... ) Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 37 / 56 Basic Definitions Two or more sets Ordered n-tuples
Definition (Ordered n-tuple) a Let ≤ be some ordering of elements in Ω. For n ∈ N,(x1, x2,..., xn) is an ordered n-tuple (abbrv. tuple) if x1 ≤ x3 ≤ · · · ≤ xn.
aE.g a total order.
Definition (n-tuple equality)
Let n, r ∈ N. Two tuples (x1, x2, . . . , xn), (y1, y2, . . . , yr) are equal iff: 1 n = r.
2 ∀i = 1, 2, . . . , n, xi = yi.
Are the following tuples according to the standard real number ordering ‘ ≤0? 1 (2, 8, 10, 34) ? YES 2 (−4√.5, −3.5, −2.5) ? YES 3 (−8 2, −16, −7, 0, 1) ? NO 4 (0) ? YES 5 () ? YES (Empty tuple) 6 (2, 3, 3,√5) ? YES√ 7 (0, 0.5, 2, 3, 4, 9) NO 8 (0, 1, 2,... ) NO Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 37 / 56 Basic Definitions Two or more sets Ordered n-tuples
Definition (Ordered n-tuple) a Let ≤ be some ordering of elements in Ω. For n ∈ N,(x1, x2,..., xn) is an ordered n-tuple (abbrv. tuple) if x1 ≤ x3 ≤ · · · ≤ xn.
aE.g a total order.
Definition (n-tuple equality)
Let n, r ∈ N. Two tuples (x1, x2, . . . , xn), (y1, y2, . . . , yr) are equal iff: 1 n = r.
2 ∀i = 1, 2, . . . , n, xi = yi.
Are the following tuples according to the standard real number ordering ‘ ≤0? 1 (2, 8, 10, 34) ? YES 2 (−4√.5, −3.5, −2.5) ? YES 3 (−8 2, −16, −7, 0, 1) ? NO 4 (0) ? YES 5 () ? YES (Empty tuple) 6 (2, 3, 3,√5) ? YES√ 7 (0, 0.5, 2, 3, 4, 9) NO 8 (0, 1, 2,... ) NO Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 37 / 56 Examples: {0, 1} × {3, 4} = {(0, 3), (0, 4), (1, 3), (1, 4)} Suppose A = {Rachel, Mary, Katherine} and B = {Rick, Chris}, then A × B = {(Rachel, Rick), (Rachel, Chris), (Mary, Rick), (Mary, Chris), (Katherine, Rick), (Katherine, Chris)} N × N = {(0, 0), (0, 1), (0, 2),..., (1, 0), (1, 1), (1, 2),..., (2, 0), (2, 1),... } Order matters! (A × B) 6= (B × A) The elements of the Cartesian Product are ordered n-tuples!
Basic Definitions Two or more sets Cartesian Product
Definition (Cartesian Product) Let A and B be sets. Then, the Cartesian Product of A and B, denoted A × B, is the set: {(a, b)|a ∈ A, b ∈ B}
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 38 / 56 {0, 1} × {3, 4} = {(0, 3), (0, 4), (1, 3), (1, 4)} Suppose A = {Rachel, Mary, Katherine} and B = {Rick, Chris}, then A × B = {(Rachel, Rick), (Rachel, Chris), (Mary, Rick), (Mary, Chris), (Katherine, Rick), (Katherine, Chris)} N × N = {(0, 0), (0, 1), (0, 2),..., (1, 0), (1, 1), (1, 2),..., (2, 0), (2, 1),... } Order matters! (A × B) 6= (B × A) The elements of the Cartesian Product are ordered n-tuples!
Basic Definitions Two or more sets Cartesian Product
Definition (Cartesian Product) Let A and B be sets. Then, the Cartesian Product of A and B, denoted A × B, is the set: {(a, b)|a ∈ A, b ∈ B}
Examples:
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 38 / 56 Suppose A = {Rachel, Mary, Katherine} and B = {Rick, Chris}, then A × B = {(Rachel, Rick), (Rachel, Chris), (Mary, Rick), (Mary, Chris), (Katherine, Rick), (Katherine, Chris)} N × N = {(0, 0), (0, 1), (0, 2),..., (1, 0), (1, 1), (1, 2),..., (2, 0), (2, 1),... } Order matters! (A × B) 6= (B × A) The elements of the Cartesian Product are ordered n-tuples!
Basic Definitions Two or more sets Cartesian Product
Definition (Cartesian Product) Let A and B be sets. Then, the Cartesian Product of A and B, denoted A × B, is the set: {(a, b)|a ∈ A, b ∈ B}
Examples: {0, 1} × {3, 4} = {(0, 3), (0, 4), (1, 3), (1, 4)}
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 38 / 56 N × N = {(0, 0), (0, 1), (0, 2),..., (1, 0), (1, 1), (1, 2),..., (2, 0), (2, 1),... } Order matters! (A × B) 6= (B × A) The elements of the Cartesian Product are ordered n-tuples!
Basic Definitions Two or more sets Cartesian Product
Definition (Cartesian Product) Let A and B be sets. Then, the Cartesian Product of A and B, denoted A × B, is the set: {(a, b)|a ∈ A, b ∈ B}
Examples: {0, 1} × {3, 4} = {(0, 3), (0, 4), (1, 3), (1, 4)} Suppose A = {Rachel, Mary, Katherine} and B = {Rick, Chris}, then A × B = {(Rachel, Rick), (Rachel, Chris), (Mary, Rick), (Mary, Chris), (Katherine, Rick), (Katherine, Chris)}
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 38 / 56 Order matters! (A × B) 6= (B × A) The elements of the Cartesian Product are ordered n-tuples!
Basic Definitions Two or more sets Cartesian Product
Definition (Cartesian Product) Let A and B be sets. Then, the Cartesian Product of A and B, denoted A × B, is the set: {(a, b)|a ∈ A, b ∈ B}
Examples: {0, 1} × {3, 4} = {(0, 3), (0, 4), (1, 3), (1, 4)} Suppose A = {Rachel, Mary, Katherine} and B = {Rick, Chris}, then A × B = {(Rachel, Rick), (Rachel, Chris), (Mary, Rick), (Mary, Chris), (Katherine, Rick), (Katherine, Chris)} N × N = {(0, 0), (0, 1), (0, 2),..., (1, 0), (1, 1), (1, 2),..., (2, 0), (2, 1),... }
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 38 / 56 The elements of the Cartesian Product are ordered n-tuples!
Basic Definitions Two or more sets Cartesian Product
Definition (Cartesian Product) Let A and B be sets. Then, the Cartesian Product of A and B, denoted A × B, is the set: {(a, b)|a ∈ A, b ∈ B}
Examples: {0, 1} × {3, 4} = {(0, 3), (0, 4), (1, 3), (1, 4)} Suppose A = {Rachel, Mary, Katherine} and B = {Rick, Chris}, then A × B = {(Rachel, Rick), (Rachel, Chris), (Mary, Rick), (Mary, Chris), (Katherine, Rick), (Katherine, Chris)} N × N = {(0, 0), (0, 1), (0, 2),..., (1, 0), (1, 1), (1, 2),..., (2, 0), (2, 1),... } Order matters! (A × B) 6= (B × A)
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 38 / 56 Basic Definitions Two or more sets Cartesian Product
Definition (Cartesian Product) Let A and B be sets. Then, the Cartesian Product of A and B, denoted A × B, is the set: {(a, b)|a ∈ A, b ∈ B}
Examples: {0, 1} × {3, 4} = {(0, 3), (0, 4), (1, 3), (1, 4)} Suppose A = {Rachel, Mary, Katherine} and B = {Rick, Chris}, then A × B = {(Rachel, Rick), (Rachel, Chris), (Mary, Rick), (Mary, Chris), (Katherine, Rick), (Katherine, Chris)} N × N = {(0, 0), (0, 1), (0, 2),..., (1, 0), (1, 1), (1, 2),..., (2, 0), (2, 1),... } Order matters! (A × B) 6= (B × A) The elements of the Cartesian Product are ordered n-tuples!
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 38 / 56 Proofs with sets
Proofs with sets
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 39 / 56 Examples: N ⊆ Q {s | s is a student registered in 250 } ⊆ UMD Students Kansas Counties ⊆ USA Counties What kinds of proofs are required here?
Proofs with sets Proving subset relationships
One needs to prove that whenever an element belongs to a set x, it must belong to the other.
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 40 / 56 What kinds of proofs are required here?
Proofs with sets Proving subset relationships
One needs to prove that whenever an element belongs to a set x, it must belong to the other. Examples: N ⊆ Q {s | s is a student registered in 250 } ⊆ UMD Students Kansas Counties ⊆ USA Counties
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 40 / 56 Proofs with sets Proving subset relationships
One needs to prove that whenever an element belongs to a set x, it must belong to the other. Examples: N ⊆ Q {s | s is a student registered in 250 } ⊆ UMD Students Kansas Counties ⊆ USA Counties What kinds of proofs are required here?
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 40 / 56 Proof. Let M, N be generic particular sets. Then, by the definition of intersection, M ∩ N = {x|x ∈ M ∧ x ∈ N. So all those elements x belong in M as well, which means that M ∩ N ⊆ M by the definition of subset. Since M and N were chosen arbitrarily, the result holds for every pair of sets A, B.
Proofs with sets An example proof
Theorem For any sets A and B, A ∩ B ⊆ A
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 41 / 56 Proofs with sets An example proof
Theorem For any sets A and B, A ∩ B ⊆ A
Proof. Let M, N be generic particular sets. Then, by the definition of intersection, M ∩ N = {x|x ∈ M ∧ x ∈ N. So all those elements x belong in M as well, which means that M ∩ N ⊆ M by the definition of subset. Since M and N were chosen arbitrarily, the result holds for every pair of sets A, B.
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 41 / 56 So we need to prove the subset relationship both ways. Examples: Let A = Neven and B = (Z − Zodd) ∩ R+ Prove that A = B. Let A = {n2 |n is odd} and Zodd. Is A = B?
Proofs with sets Proving equality relationships
Definition (Set equality) Let A and B be sets. Then, A and B are equal, denoted A = B, if and only if A ⊆ B and B ⊆ A.
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 42 / 56 Examples: Let A = Neven and B = (Z − Zodd) ∩ R+ Prove that A = B. Let A = {n2 |n is odd} and Zodd. Is A = B?
Proofs with sets Proving equality relationships
Definition (Set equality) Let A and B be sets. Then, A and B are equal, denoted A = B, if and only if A ⊆ B and B ⊆ A.
So we need to prove the subset relationship both ways.
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 42 / 56 Let A = Neven and B = (Z − Zodd) ∩ R+ Prove that A = B. Let A = {n2 |n is odd} and Zodd. Is A = B?
Proofs with sets Proving equality relationships
Definition (Set equality) Let A and B be sets. Then, A and B are equal, denoted A = B, if and only if A ⊆ B and B ⊆ A.
So we need to prove the subset relationship both ways. Examples:
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 42 / 56 Proofs with sets Proving equality relationships
Definition (Set equality) Let A and B be sets. Then, A and B are equal, denoted A = B, if and only if A ⊆ B and B ⊆ A.
So we need to prove the subset relationship both ways. Examples: Let A = Neven and B = (Z − Zodd) ∩ R+ Prove that A = B. Let A = {n2 |n is odd} and Zodd. Is A = B?
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 42 / 56 Proofs with sets Take 5
Let’s split into teams and try to prove the following: 1 A ∪ (B ∩ C) = (A ∪ B) ∩ (A ∪ C) 2 (A ∪ B)0 = A0 ∩ B0 3 A ∪ (A ∩ B) = A
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 43 / 56 Proofs with sets Proving that a set is empty
Usually done via contradiction. Assume it is non-empty, so it must contain some element x, reach a contradiction. even odd Prove that Z and Z are disjoint for practice.
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 44 / 56 Proofs with sets Axioms of Classical Set Theory
For sets A, B and universal domain Ω: Commutativity A ∪ B = B ∪ A A ∩ B = B ∩ A Associativity of union (A ∩ B) ∩ C = A ∩ (B ∩ C) (A ∪ B) ∪ C = A ∪ (B ∪ C) & intersection Distributivity of A ∩ (B ∪ C) = (A ∩ B) ∪ (A ∩ C) A ∪ (B ∩ C) = (A ∪ B) ∩ (A ∪ C) union & intersection Identity laws A ∩ Ω = A A ∪ ∅ = A Inverse laws A ∪ A0 = Ω A ∩ A0 = ∅ Double complemen- (A0)0 = A tation Idempotence A ∩ A = A A ∪ A = A De Morgan’s axioms (A ∩ B)0 = A0 ∪ B0 (A ∪ B)0 = A0 ∩ B0 Universal bound A ∪ Ω = Ω A ∩ ∅ = ∅ (Domination) laws Absorption laws A ∪ (A ∩ B) = A A ∩ (A ∪ B) = A Absolute Comple- ∅0 = Ω Ω0 = ∅ ments of empty set / domain Unnamed #1 A ⊆ B ⇒ A ∩ B = A A ⊆ A ∪ B = B Unnamed #2 A ⊆ B ⇒ B0 Unnamed #3 A ⊕ B = A ∪ B − A ∩ B
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 45 / 56 Proofs with sets Applying the axioms
Now that we have the axioms of set theory set up, we can use them to derive new relationships! Let’s use the axioms to prove the following:
((A1 ∪ A2) ∪ A3) ∪ A4 = A1 ∪ ((A2 ∪ A3) ∪ A4) (A ∪ B) − C = (A − C) ∪ (B − C) As with the propositional logic exercises, be meticulous!
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 46 / 56 An application: Formal languages
An application: Formal languages
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 47 / 56 English alphabet: {a, b, c, . . . , z} Greek alphabet: {α, β, . . . , ω} Binary alphabet: {0, 1} Denoted Σ.
An application: Formal languages Alphabets
Any finite set can be considered an alphabet (sometimes called a vocabulary). Examples:
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 48 / 56 Denoted Σ.
An application: Formal languages Alphabets
Any finite set can be considered an alphabet (sometimes called a vocabulary). Examples: English alphabet: {a, b, c, . . . , z} Greek alphabet: {α, β, . . . , ω} Binary alphabet: {0, 1}
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 48 / 56 An application: Formal languages Alphabets
Any finite set can be considered an alphabet (sometimes called a vocabulary). Examples: English alphabet: {a, b, c, . . . , z} Greek alphabet: {α, β, . . . , ω} Binary alphabet: {0, 1} Denoted Σ.
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 48 / 56 Examples (Σ = {a, b, c, . . . , z}): a c aaaaccccaaaa bababaz jason madagascar charlie thissentencelooksthewayitlooksbecausemyalphabetonlycontainslowercas eenglishletters : The empty string `() = 0.
An application: Formal languages Strings
Any ordered n-tuple of symbols over an alphabet Σ. Usually denoted σ. Length of a string: `(σ) = the number of “characters” in σ.
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 49 / 56 a c aaaaccccaaaa bababaz jason madagascar charlie thissentencelooksthewayitlooksbecausemyalphabetonlycontainslowercas eenglishletters : The empty string `() = 0.
An application: Formal languages Strings
Any ordered n-tuple of symbols over an alphabet Σ. Usually denoted σ. Length of a string: `(σ) = the number of “characters” in σ. Examples (Σ = {a, b, c, . . . , z}):
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 49 / 56 c aaaaccccaaaa bababaz jason madagascar charlie thissentencelooksthewayitlooksbecausemyalphabetonlycontainslowercas eenglishletters : The empty string `() = 0.
An application: Formal languages Strings
Any ordered n-tuple of symbols over an alphabet Σ. Usually denoted σ. Length of a string: `(σ) = the number of “characters” in σ. Examples (Σ = {a, b, c, . . . , z}): a
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 49 / 56 aaaaccccaaaa bababaz jason madagascar charlie thissentencelooksthewayitlooksbecausemyalphabetonlycontainslowercas eenglishletters : The empty string `() = 0.
An application: Formal languages Strings
Any ordered n-tuple of symbols over an alphabet Σ. Usually denoted σ. Length of a string: `(σ) = the number of “characters” in σ. Examples (Σ = {a, b, c, . . . , z}): a c
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 49 / 56 bababaz jason madagascar charlie thissentencelooksthewayitlooksbecausemyalphabetonlycontainslowercas eenglishletters : The empty string `() = 0.
An application: Formal languages Strings
Any ordered n-tuple of symbols over an alphabet Σ. Usually denoted σ. Length of a string: `(σ) = the number of “characters” in σ. Examples (Σ = {a, b, c, . . . , z}): a c aaaaccccaaaa
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 49 / 56 jason madagascar charlie thissentencelooksthewayitlooksbecausemyalphabetonlycontainslowercas eenglishletters : The empty string `() = 0.
An application: Formal languages Strings
Any ordered n-tuple of symbols over an alphabet Σ. Usually denoted σ. Length of a string: `(σ) = the number of “characters” in σ. Examples (Σ = {a, b, c, . . . , z}): a c aaaaccccaaaa bababaz
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 49 / 56 madagascar charlie thissentencelooksthewayitlooksbecausemyalphabetonlycontainslowercas eenglishletters : The empty string `() = 0.
An application: Formal languages Strings
Any ordered n-tuple of symbols over an alphabet Σ. Usually denoted σ. Length of a string: `(σ) = the number of “characters” in σ. Examples (Σ = {a, b, c, . . . , z}): a c aaaaccccaaaa bababaz jason
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 49 / 56 charlie thissentencelooksthewayitlooksbecausemyalphabetonlycontainslowercas eenglishletters : The empty string `() = 0.
An application: Formal languages Strings
Any ordered n-tuple of symbols over an alphabet Σ. Usually denoted σ. Length of a string: `(σ) = the number of “characters” in σ. Examples (Σ = {a, b, c, . . . , z}): a c aaaaccccaaaa bababaz jason madagascar
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 49 / 56 thissentencelooksthewayitlooksbecausemyalphabetonlycontainslowercas eenglishletters : The empty string `() = 0.
An application: Formal languages Strings
Any ordered n-tuple of symbols over an alphabet Σ. Usually denoted σ. Length of a string: `(σ) = the number of “characters” in σ. Examples (Σ = {a, b, c, . . . , z}): a c aaaaccccaaaa bababaz jason madagascar charlie
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 49 / 56 : The empty string `() = 0.
An application: Formal languages Strings
Any ordered n-tuple of symbols over an alphabet Σ. Usually denoted σ. Length of a string: `(σ) = the number of “characters” in σ. Examples (Σ = {a, b, c, . . . , z}): a c aaaaccccaaaa bababaz jason madagascar charlie thissentencelooksthewayitlooksbecausemyalphabetonlycontainslowercas eenglishletters
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 49 / 56 `() = 0.
An application: Formal languages Strings
Any ordered n-tuple of symbols over an alphabet Σ. Usually denoted σ. Length of a string: `(σ) = the number of “characters” in σ. Examples (Σ = {a, b, c, . . . , z}): a c aaaaccccaaaa bababaz jason madagascar charlie thissentencelooksthewayitlooksbecausemyalphabetonlycontainslowercas eenglishletters : The empty string
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 49 / 56 An application: Formal languages Strings
Any ordered n-tuple of symbols over an alphabet Σ. Usually denoted σ. Length of a string: `(σ) = the number of “characters” in σ. Examples (Σ = {a, b, c, . . . , z}): a c aaaaccccaaaa bababaz jason madagascar charlie thissentencelooksthewayitlooksbecausemyalphabetonlycontainslowercas eenglishletters : The empty string `() = 0.
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 49 / 56 Nope. Some additional definitions: Σn, for n ∈ N: The set of strings made up of elements of Σ with length exactly n. Σ∗: The set of all strings made up of elements of Σ with finite length. Language L over Σ: any subset of Σ∗. Examples (whiteboard)
An application: Formal languages Σn,Σ∗ and Languages
Are we straying away from sets or something?
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 50 / 56 Some additional definitions: Σn, for n ∈ N: The set of strings made up of elements of Σ with length exactly n. Σ∗: The set of all strings made up of elements of Σ with finite length. Language L over Σ: any subset of Σ∗. Examples (whiteboard)
An application: Formal languages Σn,Σ∗ and Languages
Are we straying away from sets or something? Nope.
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 50 / 56 Examples (whiteboard)
An application: Formal languages Σn,Σ∗ and Languages
Are we straying away from sets or something? Nope. Some additional definitions: Σn, for n ∈ N: The set of strings made up of elements of Σ with length exactly n. Σ∗: The set of all strings made up of elements of Σ with finite length. Language L over Σ: any subset of Σ∗.
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 50 / 56 An application: Formal languages Σn,Σ∗ and Languages
Are we straying away from sets or something? Nope. Some additional definitions: Σn, for n ∈ N: The set of strings made up of elements of Σ with length exactly n. Σ∗: The set of all strings made up of elements of Σ with finite length. Language L over Σ: any subset of Σ∗. Examples (whiteboard)
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 50 / 56 Paradoxes in Set Theory
Paradoxes in Set Theory
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 51 / 56 Paradoxes in Set Theory The barber paradox
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 52 / 56 The barber is tasked with shaving those, and only those men who do not shave themselves (say, at home). Question: Who shaves the barber?
Paradoxes in Set Theory The barber paradox
In rural Cleanshaveville, it is illegal for guys to have facial hair. To accomplish this, the town employs a single barber.
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 53 / 56 Question: Who shaves the barber?
Paradoxes in Set Theory The barber paradox
In rural Cleanshaveville, it is illegal for guys to have facial hair. To accomplish this, the town employs a single barber. The barber is tasked with shaving those, and only those men who do not shave themselves (say, at home).
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 53 / 56 Paradoxes in Set Theory The barber paradox
In rural Cleanshaveville, it is illegal for guys to have facial hair. To accomplish this, the town employs a single barber. The barber is tasked with shaving those, and only those men who do not shave themselves (say, at home). Question: Who shaves the barber?
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 53 / 56 Let’s define a set S as the set of sets that are not members of themselves. Symbolically: S = {x | x is a set such that x∈ / x} Question: Is S ∈ S?
Paradoxes in Set Theory Russel’s paradox
We already know that a set can have sets as its elements.
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 54 / 56 Symbolically: S = {x | x is a set such that x∈ / x} Question: Is S ∈ S?
Paradoxes in Set Theory Russel’s paradox
We already know that a set can have sets as its elements. Let’s define a set S as the set of sets that are not members of themselves.
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 54 / 56 Question: Is S ∈ S?
Paradoxes in Set Theory Russel’s paradox
We already know that a set can have sets as its elements. Let’s define a set S as the set of sets that are not members of themselves. Symbolically: S = {x | x is a set such that x∈ / x}
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 54 / 56 Paradoxes in Set Theory Russel’s paradox
We already know that a set can have sets as its elements. Let’s define a set S as the set of sets that are not members of themselves. Symbolically: S = {x | x is a set such that x∈ / x} Question: Is S ∈ S?
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 54 / 56 Symbolically, our program would look like this:
PROGRAM HALTS(P , x) INPUTS: P , a program, x, a string fed as input to P . OUTPUTS: YES, if P terminates, NO, otherwise. BEGIN Run P on x If P terminates, output YES else, output NO END
Paradoxes in Set Theory The Halting Problem
Perhaps our most important result. Demonstrated by Alan Turing. Question: Can I write a computer program that takes another program as input and tells me if it terminates (in finite time) or not given some input?
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 55 / 56 PROGRAM HALTS(P , x) INPUTS: P , a program, x, a string fed as input to P . OUTPUTS: YES, if P terminates, NO, otherwise. BEGIN Run P on x If P terminates, output YES else, output NO END
Paradoxes in Set Theory The Halting Problem
Perhaps our most important result. Demonstrated by Alan Turing. Question: Can I write a computer program that takes another program as input and tells me if it terminates (in finite time) or not given some input? Symbolically, our program would look like this:
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 55 / 56 Paradoxes in Set Theory The Halting Problem
Perhaps our most important result. Demonstrated by Alan Turing. Question: Can I write a computer program that takes another program as input and tells me if it terminates (in finite time) or not given some input? Symbolically, our program would look like this:
PROGRAM HALTS(P , x) INPUTS: P , a program, x, a string fed as input to P . OUTPUTS: YES, if P terminates, NO, otherwise. BEGIN Run P on x If P terminates, output YES else, output NO END Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 55 / 56 Then, it is also possible to write a program called HALTS TESTER, as follows:
PROGRAM HALTS TESTER(P ) INPUTS: A program P OUTPUTS: YES or nothing (see below) BEGIN: If HALTS(P, P) outputs YES, then loop forever else, output YES END
Paradox. Upshot: The program HALTS does not exist!
Paradoxes in Set Theory The Halting Problem
Suppose that I can write HALTS.
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 56 / 56 PROGRAM HALTS TESTER(P ) INPUTS: A program P OUTPUTS: YES or nothing (see below) BEGIN: If HALTS(P, P) outputs YES, then loop forever else, output YES END
Paradox. Upshot: The program HALTS does not exist!
Paradoxes in Set Theory The Halting Problem
Suppose that I can write HALTS. Then, it is also possible to write a program called HALTS TESTER, as follows:
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 56 / 56 Paradox. Upshot: The program HALTS does not exist!
Paradoxes in Set Theory The Halting Problem
Suppose that I can write HALTS. Then, it is also possible to write a program called HALTS TESTER, as follows:
PROGRAM HALTS TESTER(P ) INPUTS: A program P OUTPUTS: YES or nothing (see below) BEGIN: If HALTS(P, P) outputs YES, then loop forever else, output YES END
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 56 / 56 Upshot: The program HALTS does not exist!
Paradoxes in Set Theory The Halting Problem
Suppose that I can write HALTS. Then, it is also possible to write a program called HALTS TESTER, as follows:
PROGRAM HALTS TESTER(P ) INPUTS: A program P OUTPUTS: YES or nothing (see below) BEGIN: If HALTS(P, P) outputs YES, then loop forever else, output YES END
Paradox.
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 56 / 56 Paradoxes in Set Theory The Halting Problem
Suppose that I can write HALTS. Then, it is also possible to write a program called HALTS TESTER, as follows:
PROGRAM HALTS TESTER(P ) INPUTS: A program P OUTPUTS: YES or nothing (see below) BEGIN: If HALTS(P, P) outputs YES, then loop forever else, output YES END
Paradox. Upshot: The program HALTS does not exist!
Jason Filippou (CMSC250 @ UMCP) Set Theory 06-20-2016 56 / 56