Set theory is the mathematical idea of putting things into collections and seeing what properties may arrise from those collections. Let us define a simple set of numbers, , that contains the number :
We are now prepared to ask questions about this set. Lets ask a few questions.
- Is the number in the set ?
- Is the number in the set ?
- If any element of the set were to be squared, would that value be greater than or equal to ?
The first two questions are simple to answer, and we can do so with some simple notation. We use the symbol to mean “in”, so means “the number is in the set ”. Similarly we can put a strike (meaning “not”) through the symbol to mean “not in”, like .
The third question is a bit more abstract, because we want to answer a question about the entire set. To do this, we will use the symbol (an upside-down A) meaning “for all”. The answer, first in text, looks like this: For all members in the set , it is true that . With some mathematical notation is would look like this:
Again: For all in , . The colon is a seperator.
There is a similar operator to , which is “exists” . Instead of all members of a set needing to comply with a bound, only one or more members must comply. Try to understand this:
“There exists in that satisfies the condition ”. This of course is true, because and .
Set-Builder Notation
Set-builder notation is the general notation that we use to define a set, which was implied above. To define a set of elements, we use curly braces surrounding the elements. If a is present, that means that we intend the defined pattern to continue either indefinitely or to a point.
\begin{flalign} S_{1}=\left\{1,2,3\right\} \\ S_{2}=\left\{1,2,3,\dots\right\} \\ S_{3}=\left\{3,6,9,\dots,102,105\right\} \end{flalign}The set contains only . The set contains all positive integers incrementing by . The set contains the positive integers divisible by until .
The Empty Set
When we are defining sets, we must define what an empty set looks like. An empty set is a set with no elements, and is commonly denoted with the greek phi, .
Set Operators
There are many operators of sets which let us interact and modify sets.
Subsets
Let , and let be a subset of . This means that will have some combination of the elements of . For this example it is not important which elements, but it must only have elements from . This is handy because this guarentees that if element then . We again can show this with some new notation.
First we have the subset character, . We can show that is a subset of with this character.
The second character is the implies arrow, . This arrow means that “if the thing on the left is true, then the thing on the right must be true”. We can use it to show the above property of the element in the subset.
Proper Subsets
A proper subset is a subset of a set that is not equal to it.
Set Equality
Two sets are said to be equal if they are subsets of each other.
Unions of Sets
Two sets can be combined with the union operator, .
Intersection of Sets
The intersection of sets and is the following:
Set Difference
The set difference of with respect to is set of elements that are only found in .
Set Compliment
The compliment of a set is the set of all elements that are not in A.
You may also see the notation .
Sources
- https://www.youtube.com/watch?v=LY7YmuDbuW0&list=PLUl4u3cNGP61O7HkcF7UImpM0cR_L2gSw
- How to Prove It: A Structured Approach, Third Edition by Daniel J. Velleman