(Some may be familar in your Discrete Math course, but some else in here is beyond the scope of Discrete Math.)
Notion: "x ∈ A" means "x is an element of the set A" "A ⊆ B" means "A is a subset of the set B"
Definition: Let A and B be sets. A function f: A-->B is a rule assigning to each x∈A exactly one f(x) ∈ B. A is the domain, and B is the codomain.
Images and Inverse Images: Let f:A-->B be a function.
-
If A'⊆ A, we define the image of A' to be: f(A') = { b∈B | b = f(a) for some a∈A'} = { f(a) | a∈A'}
-
If B'⊆ B, the inverse image of B' is: f-1(B') = { a∈A | f(a)∈B'}
Note that the definition of inverse images always makes sense even if there's no inverse function.
Proposition: f(∪Ai) = ∪f(Ai) Pf: Practice
Definition: We say f is injective if ∀a,a'∈A, f(a) = f(a') --> a = a'
Definition: We say f is surjective if ∀b∈B, ∃a∈A s.t. b = f(a)
Definition: f is bijective if f is both injective and surjective
Note f is bijective if and only if it has an inverse function
Definition: We say A and B have the same cardinality if ∃ h: A-->B bijective.
Useful Theorem for cardinality: Schroder-Bernstein Theorem:
Suppose A and B are sets and ∃ f: A-->B injective and ∃g: B--A injective, then A and B have the same cardinality
Pf: Homework
Observation: If A is injective then ∃ an injective f: N --> A
Then, let A be an infinite set, the followings are equivalent (TFAE):
- A is countable
- ∃g: N --> A surjective
- ∃f: A --> N injective
Pf: TBD
Example: N * N is countable
Example: If A1, A2, ... are countable, then so is ∪Ai
Corollary: Z is countable; Q is countable
Definition: If A and B are sets, set AB = {f | f: B --> A}
Example: AN = {f | f: n --> A}. In this case, let a∈AN i.e a: N --> A. a(1)∈A, a(2)∈A, a(3)∈A ...
Really, a is a sequence in A: a(1)=a1, ..., a(n)=an
Proposition: {0,1}N is not countable.
Pf: TBD
TBC