Definitions:
- f:S→T is a “mapping” from elements in set S to elements in set T
- f is a relation on S and T such that for each s∈S, there exists a unique t∈T such that (s,t)∈R. S is the domain of f and T is range of f
- {y ∣ y=f(x) for some x∈S} is the image of f
- 1 x can only have 1 corresponding y
Types of function:
Composition function:
- For functions f:A→B and g:B→C, the composite g∘f, of g with f is defined be the function from A to C defined by the rule: (g∘f)(x)≜g(f(x))
Identity function of a set:
- The identity function of a set A(written idA or just id) is the function id:A→A given by idA(x)=x (for all x∈A)
Left inverse:
- f∘g=id, then f is the left inverse of g, and g is the right inverse of f
Right inverse:
- f∘g=id, then g is the right inverse of f
Two sided inverse:
- If f is both a left- and a right-inverse of g, then f and g are two-sided inverses (of each other)
Total function:
- The function f from A to B is total when f(x) exists for all x∈A
Claims:
- Let S and T be two potentially infinite sets
- S and T have the same cardinality, written as ∣S∣=∣T∣, if and only if there exists a bijection f:S→T
- T has cardinality at larger or equal to S, written as ∣S∣≤∣T∣, if and only if there exists an injection g:S→T
- equivalently, if and only if there exist a surjection g′:T→S
Countable set:
- A set S is countable if it is finite or has the same cardinality as N+.
- Equivalently, S is countable if ∣S∣≤∣N+∣