Skip to content
Part IA Michaelmas, Lent Term

Bijections and Indicator Functions

Surjections

Definition

A function f:ABf : A \to B is surjective (or onto) if:

bB.aA.f(a)=b\forall b \in B. \exists a \in A. f(a) = b

Every element of BB is the image of some element of AA.

Notation

Write f:ABf : A \twoheadrightarrow B for a surjection.

Examples

  • f:RR0,f(x)=x2f : \mathbb{R} \to \mathbb{R}_{\geq 0}, f(x) = x^2 is surjective
  • f:ZZ,f(n)=2nf : \mathbb{Z} \to \mathbb{Z}, f(n) = 2n is not surjective (odd numbers not in image)

Injections

Definition

A function f:ABf : A \to B is injective (or one-to-one) 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 or f:ABf : A \rightarrowtail B for an injection.

Examples

  • f:ZZ,f(n)=2nf : \mathbb{Z} \to \mathbb{Z}, f(n) = 2n is injective
  • f:RR,f(x)=x2f : \mathbb{R} \to \mathbb{R}, f(x) = x^2 is not injective (f(1)=f(1)f(1) = f(-1))

Bijections

Definition

A function is a bijection if it is both injective and surjective.

Equivalently: for all bBb \in B, there exists a unique aAa \in A with f(a)=bf(a) = b.

Inverse Function

If f:ABf : A \to B is bijective, there exists a unique f1:BAf^{-1} : B \to A such that:

f1(f(a))=aandf(f1(b))=bf^{-1}(f(a)) = a \quad \text{and} \quad f(f^{-1}(b)) = b

Notation

Write f:ABf : A \cong B or ABA \sim B to indicate a bijection exists between AA and BB.

Counting Bijections

For finite sets A,BA, B:

Iso(A,B)={0ABn!A=B=n|\text{Iso}(A, B)| = \begin{cases} 0 & |A| \neq |B| \\ n! & |A| = |B| = n \end{cases}

Reason: Build a bijection by successively assigning images. Round kk has nkn - k remaining choices.

Examinable Proof: Isomorphisms are Invertible

Theorem: For f:ABf : A \to B, TFAE:

  1. ff is invertible (there exists g:BAg : B \to A with gf=idAg \circ f = \text{id}_A and fg=idBf \circ g = \text{id}_B)
  2. bB.!aA.f(a)=b\forall b \in B. \exists! a \in A. f(a) = b
  3. ff is bijective

Proof sketch:

(12)(1 \Rightarrow 2): If gg is the inverse, take a=g(b)a = g(b). Uniqueness: if f(a1)=f(a2)=bf(a_1) = f(a_2) = b, then a1=g(f(a1))=g(b)=g(f(a2))=a2a_1 = g(f(a_1)) = g(b) = g(f(a_2)) = a_2.

(23)(2 \Rightarrow 3): Existence gives surjectivity; uniqueness gives injectivity.

(31)(3 \Rightarrow 1): Define f1(b)f^{-1}(b) as the unique aa with f(a)=bf(a) = b. Verify both compositions give identity.

Indicator Functions

Definition

For SAS \subseteq A, the indicator function (or characteristic function) χS:A{0,1}\chi_S : A \to \{0, 1\} is:

χS(a)={1aS0aS\chi_S(a) = \begin{cases} 1 & a \in S \\ 0 & a \notin S \end{cases}

Comprehension

Given ϕ:A{0,1}\phi : A \to \{0, 1\}, the comprehension is:

[ϕ]={aA:ϕ(a)=1}[\phi] = \{a \in A : \phi(a) = 1\}

Bijection

P(A)(A{0,1})\mathcal{P}(A) \cong (A \to \{0, 1\})

Every subset corresponds to a unique indicator function, and vice versa.

Finite Cardinality

Definition

A set AA is finite if there exists nNn \in \mathbb{N} and a bijection A[n]={0,1,,n1}A \cong [n] = \{0, 1, \ldots, n-1\}.

The cardinality of AA, written A|A|, is this unique nn.

Isomorphism as Equality of Cardinality

For finite sets: AB    A=BA \cong B \iff |A| = |B|.


Summary

  • Surjection: every bb is hit; injection: distinct inputs give distinct outputs
  • Bijection = invertible function
  • Iso(A,B)=n!|\text{Iso}(A, B)| = n! if A=B=n|A| = |B| = n
  • Indicator functions establish P(A)(A{0,1})\mathcal{P}(A) \cong (A \to \{0, 1\})