Name____________________________ Set Theory Tutorial Definition: A set is simply a collection of object called members or elements. A set may consist of numbers, such as the set of positive, odd integers: {1, 3, 5, 7, … } or objects such as the days of the week: {Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday}. Let’s call the set of positive, odd integers set P. Then for an element in P we can represent its inclusion in the set with the symbol ∈, which is read, “is an element of.” So it is true that 1 ∈ π and 3 ∈ π, etc. Furthermore, it is true that a number such as 2 is not in the set, or 2ο π. In general, there are 3 ways to represent a set. 1. we can use words: 2. we can make a list in roster notation: 3. we can use set-builder notation: e.g. N is the set of natural numbers or counting numbers. e.g. N = {1, 2, 3, …} e.g. N = {x | x ο N}, read “the set of all x such that x is a natural number” Further examples of set-builder notation: (a) S, the set of awesome rock bands*: π = {π | π is an awesome rock band} (b) The number 3 is a positive integer: 3 ∈ {π₯ |π₯ is a positive integer} *by the way, Led Zeppelin ∈ π, Pink Floyd ∈ π, to name a few, but Kiss ο S The empty set (denoted ∅) has no elements but is still considered a set. Example: The set of teachers under 20 years of age is an empty set. Common number sets are listed below as reference: β β β β€ β€+ , β€− set of real numbers a set of rational numbers (can be written ) b set of Natural numbers (sometimes includes zero; we will use {1,2,3,…} set of integers positive/negative integers, etc. A finite set has a limited number of elements. e.g. The set of students in this class An infinite set has an unlimited number of elements. e.g. The set of real numbers The universe of a set or group of sets is the domain of allowable objects in a given situation. Any object in the universe (or “universe of discourse”) is either an element of a set or it is not. For example, to consider the set of students in this class who are juniors verses the set of students who are seniors, the universe would be all students in this class. Note that this example excludes freshman and sophomores from any set but they are still part of the universe. Usually the universe is clear from context, but sometimes it is helpful to define it explicitly. For instance, if the universe is the set of students in a class, then the students with blonde hair could be written {π₯ ∈ π | a student π₯ has blonde hair} (read, “the set of all students x in this class, such that each student has blonde hair”) Further example: Consider the statement π₯ 2 < 9. If the universe of discourse for this statement were the set of all real numbers, then we might represent the set of solutions as {π₯ ∈ β | π₯ 2 < 9}, or in other words, the set of all real numbers between -3 and 3. However, if the universe were the set of all integers, then the solution set could be represented as π₯ ∈ β€ | π₯ 2 < 9} = {−2, −1, 0, 1, 2} Thus, for example, 1.58 ∈ {π₯ ∈ β | π₯ 2 < 9} but 1.58 ∉ {π₯ ∈ make a large difference. β€ | π₯ 2 < 9} and so it should be clear that the choice of universe can Exercise 1: Represent each set below by using roster notation. (a) The set S, where S is all positive integers that are divisible by 4 (b) The set P, where P is all odd perfect squares (c) The set C, where C is all United States that begin with the letter A (d) The set W, where W is the set of all even prime numbers Exercise 2: Use set-builder notation to represent each set below: (a) π, where π is the set of all real numbers between -2 and 2. (b) π΅, where π΅ is the set of whole numbers greater than 5 (c) M, the set of countries that begin with the letter M. Definition: A conjunction (ο) is formed by joining two statements with the word “and.” Let A be the set of months with 30 days and let B be the set of months that end in “ember.” Then π΄ ο π΅ = {September, November} Definition: A disjunction (ο) is formed by joining two statements with the word “or.” Let π» = {π₯|π₯ is a person who ate steak at the wedding} and πΊ = {π¦|π¦ is a person who ate salmon at the wedding}. Then π»ο πΊ is the number of people who ate either steak or salmon Venn Diagrams: __________________________________________ One way to represent or visualize sets is to use Venn diagrams: Here we will build an example to introduce the next few terms. Suppose the universe of discourse is all students enrolled in a math class this year. Let M be the set of students enrolled in Multivariable Calculus/Linear Algebra and let S represent the set of all students enrolled in Statistics. Definition: For any two sets S and T, we call the set consisting of the elements belonging to both S and T, the intersection of S and T (in symbols, π ∩ π ). An intersection is also a conjunction. Thus, π ∩ π = {π | π ∈ π ππ§π π ∈ π} Example: Let π = {1, 3, 5, 7} and π = {7, 6, 5, 4}. Then π ∩ π = {5, 7} π ∩ π = the set of all students taking both Multivariable Calculus and Statistics. Definition: For any two sets S and T, we call the set consisting of the elements bellowing to at least one of the given sets, the union of S and T (in symbols, π ∪ π ). A union is also a disjunction. Thus, π ∪ π = {π | π ∈ π π¨π« π ∈ π} Example: Let πΆ = {0, 1, 2,3} πππ π· = {1, 3, 5}. Then πΆ ∪ π· = {0, 1, 2, 3, 5} π ∪ π = the set of all students taking either Multivariable Calculus or Statistics. Definition: the complement of a set consists of all objects not in the set, usually denoted π΄′ or ¬π΄ If A is the set of clothes that I wore this week, then ¬π΄ represents all the clothes I did not wear. Let C be the set of all students enrolled in a math class this year, but who are not taking multivariable calculus or statistics. Then πΆ = (π ∪ π)′ or πΆ = ¬(π ∪ π) Definition: the difference between sets, denoted π΄\π΅ Let π΄ = {1, 3, 5, 6, 9} and π΅ = {1, 5, 6}. Then π΄\π΅ = {3, 9}. π\π, for example, is the set of students taking multivariable calculus but who are not taking statistics. Exercise 3: Redraw the diagram below and shade the regions representing each of the following: (a) π ∩ π (e) (π\π) ∪ π (b) π ∪ π (f) (π\π) ∪ (π ∩ π) (c) π ∪ π (d) π ∩ π Exercise 4: Suppose π΄ = {1, 2, 3, 4, 5} and π΅ = {2, 4, 6, 8, 10}. List the elements of the following sets: 1. π΄ ∩ π΅ 2. π΄ ∪ π΅ 3. π΄\π΅ 4. (π΄ ∪ π΅)\(π΄ ∩ π΅) 5. (π΄\π΅) ∪ (π΅\π΄) Exercise 5: Redraw the diagram below and shade the regions representing each of the following: (π) π΄ ∩ πΆ (π) π΄ ∪ (π΅\πΆ) (π) ¬[(π΅ ∪ πΆ)\π΄] (π) (π΄\πΆ) ∪ (π΅ ∩ πΆ) Exercise 6: Let P stand for the statement “I will buy the pants” and S for the statement “I will buy the shirt.” What English sentences are represented by the following expressions? (π) ¬(π ο ¬π) (π) ¬π ο ¬π) (π) ¬π ο ¬π Exercise 7: Let S stand for the statement “Steve is happy,” and G for “George is happy.” What English sentences are represented by the following expressions? (a) (π ο πΊ) ο (¬π ο ¬πΊ) (b) [π ο (πΊο¬π)] ο ¬πΊ (c) π ο [G ο (¬π ο ¬πΊ)] Exercise 8: Let the universe U be the members of the United Federation of Planets’ Star Fleet. Assume that members are either terrestrial (Earth-men) or Vulcan. Let V be the set of Vulcan members of Star Fleet. Let A be the set of Star Fleet members who graduated from the Academy. Let O be the set of Star Fleet Officers. Let K be the set of Star Fleet members whose last names are “Kirk.” Translate the following descriptions into mathematical set notation: (a) Vulcans whose last names are “Kirk.” (b) Officers who graduated from the Academy. (c) Enlisted members (non-officers) whose last name is not “Kirk.” (d) Humans who did not graduate from the academy but became officers anyway. (e) Members who are either officers or Vulcans, but graduated from the academy. Subsets:_________________________________________________ If every element of a set A is also an element of the set B, we say that A is a subset of B and write π΄ ο π΅. If π΄ ο π΅ and π΅ ο π΄, then the sets contain the same elements and we can say that A and B are equal, or π΄ = π΅. If π΄ ο π΅ but π΄ ≠ π΅, then π΄ is called a proper subset of π΅ and we write π΄ ⊂ π΅. Example: π΄ = {π, π, π, π}, π΅ = {π, π, π} πΆ = {π, π, π, π} Since every element of B is also an element of A, then π΅ ο π΄. In fact, B is a proper subset of A since A is not a subset of B. Since π΄ ο πΆ and πΆ ο π΄ , then π΄ = πΆ. Glossary of Symbols Symbol −, ¬, ππ ~ ο ο ∩ ∪ → ↔ ∀ ο€ E! {} … {π₯| ___________} ∈ ο ο ∅ π΄∪π΅ π΄∩π΅ π΄\π΅ β β β β€ β€+ , β€− F P(A) Name of Symbol Negation (“is not”) Conjunction Disjunction Intersection Union Implies Equivalence (biconditional) Universal Quantifier (“for all/every”) Existential quantifier (“there exists/there is”) Uniqueness quantifier (“there exists a unique…) Set roster notation and so on; continues indefinitely set builder notation is an element of is not an element of is a subset of Empty set Union Intersection Difference set of real numbers a set of rational numbers (can be written b) set of Natural numbers (sometimes includes zero; we will use {1,2,3,…} set of integers positive/negative integers, etc. family of sets power set of A Suppes Exercise 3 solutions (a) (b) (c) (d) π∩π =∅ extras U S M U M S