Skip to content
Part IA Michaelmas, Lent Term

Injections and Countability

Injections

Definition

A function f:ABf : A \to B is injective if:

a1,a2A.(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: a1a2f(a1)f(a2)a_1 \neq a_2 \Rightarrow f(a_1) \neq f(a_2).

Notation

Write f:ABf : A \hookrightarrow B for an injection.

Injectivity and Cardinality

Intuition

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

For finite sets: if there is an injection ABA \hookrightarrow B, then AB|A| \leq |B|.

For Infinite Sets

An injection NA\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 ANA \hookrightarrow \mathbb{N}.

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

Closure Properties

Composition of Injections

If f:ABf : A \hookrightarrow B and g:BCg : B \hookrightarrow C, then gf:ACg \circ f : A \hookrightarrow C.

Proof: If (gf)(a1)=(gf)(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:ABf : A \hookrightarrow B and g:CDg : C \hookrightarrow D, then f×g:A×CB×Df \times g : A \times C \hookrightarrow B \times D.

Cantor-Bernstein-Schroeder Theorem

Statement

If there exist injections f:ABf : A \hookrightarrow B and g:BAg : B \hookrightarrow A, then ABA \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=AAABA = A_A \cup A_B and B=BABBB = B_A \cup B_B such that:

  • ff bijects AABAA_A \cong B_A
  • g1g^{-1} bijects BBABB_B \cong A_B

The union gives ABA \cong B.

Well-Ordering and Choice

Every Surjection Has a Section

Given f:ABf : A \twoheadrightarrow B, for each bBb \in B, the fibre f1(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:BAs : B \to A with fs=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 ANA \hookrightarrow \mathbb{N}.

Proof Sketch:

()(\Rightarrow): If e:NAe : \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:ANi : A \hookrightarrow \mathbb{N} is injective, enumerate AA in order of increasing i(a)i(a).

Countability of Q\mathbb{Q}

Argument

An injection QN×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×NN\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 ANA \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}