Skip to content
Part IA Michaelmas, Lent Term

Injections and Countability

Injections

Definition

A function f:A→Bf : A \to B is injective if:

∀a1,a2∈A.(f(a1)=f(a2)⇒a1=a2)\forall a_1, a_2 \in A. (f(a_1) = f(a_2) \Rightarrow a_1 = a_2)

Equivalently: a1≠a2⇒f(a1)≠f(a2)a_1 \neq a_2 \Rightarrow f(a_1) \neq f(a_2).

Notation

Write f:A↪Bf : A \hookrightarrow B for an injection.

Injectivity and Cardinality

Intuition

An injection A↪BA \hookrightarrow B shows AA is “at most as large as” BB.

For finite sets: if there is an injection A↪BA \hookrightarrow B, then ∣A∣≤∣B∣|A| \leq |B|.

For Infinite Sets

An injection N↪A\mathbb{N} \hookrightarrow A shows AA is “at least as large as” N\mathbb{N}.

Definition

A set AA is countable if there exists an injection A↪NA \hookrightarrow \mathbb{N}.

Equivalence: If A≠∅A \neq \emptyset, this is equivalent to: there exists a surjection N↠A\mathbb{N} \twoheadrightarrow A.

Closure Properties

Composition of Injections

If f:A↪Bf : A \hookrightarrow B and g:B↪Cg : B \hookrightarrow C, then g∘f:A↪Cg \circ f : A \hookrightarrow C.

Proof: If (g∘f)(a1)=(g∘f)(a2)(g \circ f)(a_1) = (g \circ f)(a_2), then g(f(a1))=g(f(a2))g(f(a_1)) = g(f(a_2)). Since gg injective, f(a1)=f(a2)f(a_1) = f(a_2). Since ff injective, a1=a2a_1 = a_2.

Injections and Products

If f:A↪Bf : A \hookrightarrow B and g:C↪Dg : C \hookrightarrow D, then f×g:A×C↪B×Df \times g : A \times C \hookrightarrow B \times D.

Cantor-Bernstein-Schroeder Theorem

Statement

If there exist injections f:A↪Bf : A \hookrightarrow B and g:B↪Ag : B \hookrightarrow A, then A≅BA \cong 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 ff and gg, partition A=AA∪ABA = A_A \cup A_B and B=BA∪BBB = B_A \cup B_B such that:

  • ff bijects AA≅BAA_A \cong B_A
  • g−1g^{-1} bijects BB≅ABB_B \cong A_B

The union gives A≅BA \cong B.

Well-Ordering and Choice

Every Surjection Has a Section

Given f:A↠Bf : A \twoheadrightarrow B, for each b∈Bb \in B, the fibre f−1(b)⊆Af^{-1}(b) \subseteq 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→As : B \to A with f∘s=idBf \circ s = \text{id}_B, the section ss is injective.

Proof: If s(b1)=s(b2)s(b_1) = s(b_2), then b1=f(s(b1))=f(s(b2))=b2b_1 = f(s(b_1)) = f(s(b_2)) = b_2.

Enumeration via Injection

Theorem

For non-empty AA: AA is enumerable iff there exists an injection A↪NA \hookrightarrow \mathbb{N}.

Proof Sketch:

(⇒)(\Rightarrow): If e:N↠Ae : \mathbb{N} \twoheadrightarrow A is surjective, define s(a)=min⁡{n:e(n)=a}s(a) = \min\{n : e(n) = a\}. This is injective (the section).

(⇐)(\Leftarrow): If i:A↪Ni : A \hookrightarrow \mathbb{N} is injective, enumerate AA in order of increasing i(a)i(a).

Countability of Q\mathbb{Q}

Argument

An injection Q↪N×N\mathbb{Q} \hookrightarrow \mathbb{N} \times \mathbb{N}: send pq\frac{p}{q} (in lowest terms) to (p,q)(p, q).

An injection N×N↪N\mathbb{N} \times \mathbb{N} \hookrightarrow \mathbb{N}: Cantor pairing function.

Thus Q\mathbb{Q} is countable.

Explicit Enumeration

Enumration of positive rationals via Stern-Brocot tree or diagonal enumeration.


Summary

  • Injection: distinct inputs give distinct outputs
  • AA countable iff injection A↪NA \hookrightarrow \mathbb{N} exists
  • Cantor-Bernstein-Schroeder: injections both ways implies bijection
  • Every surjection has a section (Axiom of Choice)
  • Q\mathbb{Q} is countable via embedding into N×N\mathbb{N} \times \mathbb{N}