Injections
Definition
A function f:A→B is injective if:
∀a1,a2∈A.(f(a1)=f(a2)⇒a1=a2)
Equivalently: a1=a2⇒f(a1)=f(a2).
Notation
Write f:A↪B for an injection.
Injectivity and Cardinality
Intuition
An injection A↪B shows A is “at most as large as” B.
For finite sets: if there is an injection A↪B, then ∣A∣≤∣B∣.
For Infinite Sets
An injection N↪A shows A is “at least as large as” N.
Definition
A set A is countable if there exists an injection A↪N.
Equivalence: If A=∅, this is equivalent to: there exists a surjection N↠A.
Closure Properties
Composition of Injections
If f:A↪B and g:B↪C, then g∘f:A↪C.
Proof: If (g∘f)(a1)=(g∘f)(a2), then g(f(a1))=g(f(a2)). Since g injective, f(a1)=f(a2). Since f injective, a1=a2.
Injections and Products
If f:A↪B and g:C↪D, then f×g:A×C↪B×D.
Cantor-Bernstein-Schroeder Theorem
Statement
If there exist injections f:A↪B and g:B↪A, then A≅B.
Significance
This allows us to prove two sets have the same cardinality by constructing injections in both directions, without explicitly building a bijection.
Proof Idea
Using f and g, partition A=AA∪AB and B=BA∪BB such that:
- f bijects AA≅BA
- g−1 bijects BB≅AB
The union gives A≅B.
Well-Ordering and Choice
Every Surjection Has a Section
Given f:A↠B, for each b∈B, the fibre f−1(b)⊆A is non-empty.
A section chooses one element from each fibre.
Axiom of Choice: Such a section exists for every surjection.
Injectivity from Choice
Given a section s:B→A with f∘s=idB, the section s is injective.
Proof: If s(b1)=s(b2), then b1=f(s(b1))=f(s(b2))=b2.
Enumeration via Injection
Theorem
For non-empty A: A is enumerable iff there exists an injection A↪N.
Proof Sketch:
(⇒): If e:N↠A is surjective, define s(a)=min{n:e(n)=a}. This is injective (the section).
(⇐): If i:A↪N is injective, enumerate A in order of increasing i(a).
Countability of Q
Argument
An injection Q↪N×N: send qp (in lowest terms) to (p,q).
An injection N×N↪N: Cantor pairing function.
Thus Q is countable.
Explicit Enumeration
Enumration of positive rationals via Stern-Brocot tree or diagonal enumeration.
Summary
- Injection: distinct inputs give distinct outputs
- A countable iff injection A↪N exists
- Cantor-Bernstein-Schroeder: injections both ways implies bijection
- Every surjection has a section (Axiom of Choice)
- Q is countable via embedding into N×N