Surjections
Definition
A function f:A→B is surjective (or onto) if:
∀b∈B.∃a∈A.f(a)=b
Every element of B is the image of some element of A.
Notation
Write f:A↠B for a surjection.
Examples
- f:R→R≥0,f(x)=x2 is surjective
- f:Z→Z,f(n)=2n is not surjective (odd numbers not in image)
Injections
Definition
A function f:A→B is injective (or one-to-one) if:
∀a1,a2∈A.(f(a1)=f(a2)⇒a1=a2)
Equivalently: a1=a2⇒f(a1)=f(a2).
Notation
Write f:A↪B or f:A↣B for an injection.
Examples
- f:Z→Z,f(n)=2n is injective
- f:R→R,f(x)=x2 is not injective (f(1)=f(−1))
Bijections
Definition
A function is a bijection if it is both injective and surjective.
Equivalently: for all b∈B, there exists a unique a∈A with f(a)=b.
Inverse Function
If f:A→B is bijective, there exists a unique f−1:B→A such that:
f−1(f(a))=aandf(f−1(b))=b
Notation
Write f:A≅B or A∼B to indicate a bijection exists between A and B.
Counting Bijections
For finite sets A,B:
∣Iso(A,B)∣={0n!∣A∣=∣B∣∣A∣=∣B∣=n
Reason: Build a bijection by successively assigning images. Round k has n−k remaining choices.
Examinable Proof: Isomorphisms are Invertible
Theorem: For f:A→B, TFAE:
- f is invertible (there exists g:B→A with g∘f=idA and f∘g=idB)
- ∀b∈B.∃!a∈A.f(a)=b
- f is bijective
Proof sketch:
(1⇒2): If g is the inverse, take a=g(b). Uniqueness: if f(a1)=f(a2)=b, then a1=g(f(a1))=g(b)=g(f(a2))=a2.
(2⇒3): Existence gives surjectivity; uniqueness gives injectivity.
(3⇒1): Define f−1(b) as the unique a with f(a)=b. Verify both compositions give identity.
Indicator Functions
Definition
For S⊆A, the indicator function (or characteristic function) χS:A→{0,1} is:
χS(a)={10a∈Sa∈/S
Comprehension
Given ϕ:A→{0,1}, the comprehension is:
[ϕ]={a∈A:ϕ(a)=1}
Bijection
P(A)≅(A→{0,1})
Every subset corresponds to a unique indicator function, and vice versa.
Finite Cardinality
Definition
A set A is finite if there exists n∈N and a bijection A≅[n]={0,1,…,n−1}.
The cardinality of A, written ∣A∣, is this unique n.
Isomorphism as Equality of Cardinality
For finite sets: A≅B⟺∣A∣=∣B∣.
Summary
- Surjection: every b is hit; injection: distinct inputs give distinct outputs
- Bijection = invertible function
- ∣Iso(A,B)∣=n! if ∣A∣=∣B∣=n
- Indicator functions establish P(A)≅(A→{0,1})