Mathematical Sets
Sets are often the bedrock when it comes to specifying the domain of any quantified statement.
Some terminology as we dive further in:
- Empty set - can either be denoted as or .
- Note that is not an empty set. It is a set containing an empty set!
- Cardinality - Refers to the number of items within a set.
Set Builder Notation#
While sets can be listed explicitly, often the sets being dealt with are too big.
In cases like those, we use set builder notations.
Two things are needed:
- Universe of discourse, , contains all the objects that we might be interest in
- Open sentence, , to specify if a particular is in our set or not.
With these two ingredients we have the first type of set builder notation:
The above notation describes a set containing all the object in where is true.
Sometimes, the is replaced with . Others, the is omitted.
Second type of set builder notation#
The next kind of set builder notation swaps out the open sentence for a function.
Here, we are specifying a set in the form of such that is in
Set Builder Notation with Open sentence and function#
The last kind of set builder notation combines the open sentence with a function.
This describes a set in the form of such that is true and in .
Pointers on Set Builder Notation#
In all three kinds of set builder notation, there is a left and right hand side.
The left hand side indicates typical element in the set.
The right hand side specifies the condition that has to be true for the element to be in the set.
If “extra” copies of a particular value is created, it is ignored (like sets in computer science).
In other words, each item in a set is unique.
Set Operations#
There are four main kinds of set Operations
Union#
Intersection#
Difference#
Complement#
Complement of is represented as .
With reference to the universe of discourse, the complement can be written as .
Or in terms of set builder notation
Disjoint sets#
When the intersection of two sets is an empty set, we say that they are disjoint, .
Note that any set intersecting an empty set is also disjoint. .
The intersection of a set and its complement is also disjoint. .
Subsets#
is a subset of when every set in is also in .
is a proper subset of when every element of is in and there exists objects in not in .
When a set is not a subset, we write .
Properties of Subsets#
- An empty set is a subset of every other set.
- A finite set of elements has subsets
- Proof by Mathematical Induction. (Rough outline)
- For the inductive conclusion, we split subsets into one with and ones without
- Every set in without will become a set with by adding
- the same applies for the converse, therefore, the number of subset without is equal to the number of subset with .
- This is the same as twice the number of element with elements.
- Proof by Mathematical Induction. (Rough outline)
Proving for Subsets#
To prove that , we prove the quantified statement .
When proving for we simply find a counter example such that the implication for is false.
To prove that two sets are equal, it is equivalent to proving that .
In quantified statement terms, .