Sets
Based on 21-127 Concepts of Mathematics
H2 Defining Sets
- Informal: a set is a collection of objects called elements
- More formal: a set is a collections of objects from the universe of discourse called , which is supposedly the set of all mathematical objects but not itself.
- Note quantifiers in Pure Math - Logic refers to by default. So for example .
- Ways to specify a set
- Implied set - list some elements, hopefully readers learn the pattern. eg.
- Set builder notation - specify set using property. ex.
- Implied set - list some elements, hopefully readers learn the pattern. eg.
H3 Some Number Sets
- = set of natural numbers (includes 0)
- = set of integers (from german word)
- = set of rational numbers (from italian word) =
- = set of real numbers
- = set of complex numbers
Fun fact: the truth value of is unknown yet.
H3 Intervals
Let with , then:
- = - open interval
- = closed interval
Variants on notation
- mixing ${$ and $($ works.
- using infinity works
- but don’t do
H3 Membership of a set
- indicates is an element of the set
- indicates is not an element of the set
H3 Set being empty or non-empty
- A set is non-empty or inhabited iff . Otherwise, a set is empty and we write .
- There exists a unique empty set.
H2 Subsets
Given sets and , is a subset of if . We write .
It follows that is a subset of all sets because every element of the empty set is vacuously in another other set.
H3 Power Set
The power set of set denoted by is the set of all subsets of . That is, .
H3 Proof by Double Containment
Axiom: sets and are equal iff they are subset of each other viz. .
H3 Basic Operations
Let’s say we have sets and .
- The intersection .
- The union .
- The relative complement of in is .
H3 Indexed Operations
Let be a set. Let be a set for all .
- \displaystyle \bigcap_{i \in I} X_i =\left{a \mid \forall i \in I, a \in X_i\right}. Essentially it’s the set of things all sets have in common.
- \displaystyle \bigcup_{i \in I} X_i =\left{a \mid \exists i \in I, a \in X_i\right}. Essentially it’s the set of things that are in at least one of the sets.
Other notations:
H3 Cartesian Product
Let’s say we have sets and .
The cartesian product X \times Y={p \mid p=(x, y)$ for some $X \in X$ and $y \in Y} viz. the set of all ordered pairs of and with and .
The -fold cartesian product X^k = { t \mid t = (x_{1}, x_{2}, \dots, x_{k})$ for some elements $x_{1}, x_{2}, \dots, x_{k} \in X}.
H2 Partitions
A set can be divided into disjoint chunks. One definition of partition says that given set and , we consider to be a partition of if:
- Every set in is non-empty i.e. .
- Every element is in one and only one chunk. i.e. .
The consequences is that the intersection of any two chunks is empty, and that all the chunks in union to our big set .
Note that in Pure Math - Counting, we use finite partition, in which we are allowed to have empty partitions.