1 Sets
1.1 Special Sets
1.2 Empty Set and Singleton Set
- Empty set ( or ) is a set with no elements
- Singleton set is a set with one element
1.3 Set Equality
1.4 Proper Subset
1.5 Power Set
is the set of all subsets of
There will be elements, including the empty set
Since for elements, number of subsets = the number of ways to permute the elements, just like the number of combination for a bit binary number when each element is represented by either 1 or 0
1.6 Ordered Tuple
Ordered 2-tuple is an ordered pair
Two ordered n-tuples are equal if and only if and for all
1.7 Cartesian Product
1.8 Relation
1.9 Union
is the set that contains elements from at least one set in the collection
1.10 Intersection
is the set that contains elements from all the sets in the collection
1.11 Cardinality
is the number of distinct elements in
Two sets have same cardinality if and only if there is a one-to-one correspondence from to
1.11.1 Cardinality of natural number
1.11.2 Countability
1.12 Difference and Complement
is the set that contains elements in but not in
1.13 Set Identities
- Associative Laws
- Distributive Laws
- De Morgan’s Laws
- Absorption Laws
- Complement Laws
2 Functions
2.1 Domain Codomain Range
If is a function from to and
is the domain
is the codomain
The set of all is the range
2.2 Function Types
- Injective
- One-to-one
- Surjective
- Every value on RHS has at least one mapping
- Not surjective
- Bijection
- Injective and surjective
- One-to-one correspondent
- , i.e. and has the same number of elements
2.3 Counting Functions
2.3.1 Generic Functions
For set and with size and , there are functions
Because for every value in , there are possible choices, i.e.
Applied in Ex 4
2.3.2 Injective Functions
For set and with size and
If , there is no injective function
If , there are functions