ConceptComplete

Injections, Surjections, and Bijections

Functions can be classified according to how they map elements of their domain to their codomain. These classificationsβ€”injections, surjections, and bijectionsβ€”are fundamental to understanding cardinality and the structure of mathematical objects.

DefinitionInjection (One-to-One)

A function f:A→Bf: A \to B is injective (or one-to-one) if distinct elements of AA map to distinct elements of BB:

βˆ€x,y∈A(f(x)=f(y)β†’x=y)\forall x, y \in A(f(x) = f(y) \rightarrow x = y)

Equivalently, βˆ€x,y∈A(xβ‰ yβ†’f(x)β‰ f(y))\forall x, y \in A(x \neq y \rightarrow f(x) \neq f(y)).

We write f:Aβ†ͺBf: A \hookrightarrow B or f:A↣Bf: A \rightarrowtail B to denote that ff is injective.

Injections preserve distinctness: no two different inputs produce the same output. This means the function can be "inverted" on its range, though it may not cover all of the codomain.

ExampleInjective Functions
  1. The inclusion map i:Aβ†’Bi: A \to B for AβŠ†BA \subseteq B, defined by i(a)=ai(a) = a, is injective
  2. The function f:N→Zf: \mathbb{N} \to \mathbb{Z} defined by f(n)=nf(n) = n is injective
  3. The doubling function f:N→Nf: \mathbb{N} \to \mathbb{N} defined by f(n)=2nf(n) = 2n is injective
  4. The successor function S:Ο‰β†’Ο‰S: \omega \to \omega defined by S(n)=n+1S(n) = n + 1 is injective but not surjective (0 is not in the range)
DefinitionSurjection (Onto)

A function f:A→Bf: A \to B is surjective (or onto) if every element of BB is the image of at least one element of AA:

βˆ€b∈Bβ€‰βˆƒa∈A(f(a)=b)\forall b \in B \, \exists a \in A(f(a) = b)

Equivalently, f[A]=Bf[A] = B, meaning the range equals the codomain.

We write f:A↠Bf: A \twoheadrightarrow B to denote that ff is surjective.

Surjections cover the entire codomain. Every element of BB has at least one preimage in AA, though there may be many.

ExampleSurjective Functions
  1. The projection Ο€1:AΓ—Bβ†’A\pi_1: A \times B \to A defined by Ο€1(a,b)=a\pi_1(a, b) = a is surjective (assuming Bβ‰ βˆ…B \neq \emptyset)
  2. The absolute value function βˆ£β‹…βˆ£:Zβ†’N|\cdot|: \mathbb{Z} \to \mathbb{N} is surjective
  3. Any constant function f:A→{c}f: A \to \{c\} is surjective
  4. The function f:Zβ†’{0,1}f: \mathbb{Z} \to \{0, 1\} defined by f(n)=nβ€Šmodβ€Š2f(n) = n \bmod 2 is surjective
DefinitionBijection (One-to-One Correspondence)

A function f:Aβ†’Bf: A \to B is bijective (or a one-to-one correspondence) if it is both injective and surjective. Equivalently, for every b∈Bb \in B, there exists a unique a∈Aa \in A such that f(a)=bf(a) = b:

βˆ€b∈Bβ€‰βˆƒ!a∈A(f(a)=b)\forall b \in B \, \exists! a \in A(f(a) = b)

We write f:Aβ†’βˆΌBf: A \xrightarrow{\sim} B or f:Aβ‰…Bf: A \cong B to denote that ff is bijective.

Bijections establish a perfect pairing between sets: every element of AA corresponds to exactly one element of BB, and vice versa. Bijections are invertibleβ€”if f:Aβ†’Bf: A \to B is bijective, there exists a unique inverse function fβˆ’1:Bβ†’Af^{-1}: B \to A such that fβˆ’1(f(a))=af^{-1}(f(a)) = a for all a∈Aa \in A and f(fβˆ’1(b))=bf(f^{-1}(b)) = b for all b∈Bb \in B.

ExampleBijective Functions
  1. The identity function idA:A→A\text{id}_A: A \to A is always bijective
  2. The function f:N→Zf: \mathbb{N} \to \mathbb{Z} defined by:
f(n)={n/2ifΒ nΒ isΒ evenβˆ’(n+1)/2ifΒ nΒ isΒ oddf(n) = \begin{cases} n/2 & \text{if } n \text{ is even} \\ -(n+1)/2 & \text{if } n \text{ is odd} \end{cases}

is bijective, showing ∣N∣=∣Z∣|\mathbb{N}| = |\mathbb{Z}|

  1. The function f:(0,1)β†’Rf: (0, 1) \to \mathbb{R} defined by f(x)=tan⁑(Ο€(xβˆ’1/2))f(x) = \tan(\pi(x - 1/2)) is bijective, showing that open intervals have the same cardinality as R\mathbb{R}

  2. The exponential function exp⁑:Rβ†’(0,∞)\exp: \mathbb{R} \to (0, \infty) is bijective

TheoremProperties of Function Types

Let f:A→Bf: A \to B and g:B→Cg: B \to C be functions.

  1. If ff and gg are injective, then g∘fg \circ f is injective
  2. If ff and gg are surjective, then g∘fg \circ f is surjective
  3. If ff and gg are bijective, then g∘fg \circ f is bijective, and (g∘f)βˆ’1=fβˆ’1∘gβˆ’1(g \circ f)^{-1} = f^{-1} \circ g^{-1}
  4. If g∘fg \circ f is injective, then ff is injective
  5. If g∘fg \circ f is surjective, then gg is surjective
Remark

The converse of (4) and (5) do not hold. For example, if f:{1}β†’{1,2}f: \{1\} \to \{1, 2\} is the inclusion and g:{1,2}β†’{3}g: \{1, 2\} \to \{3\} is the constant function, then g∘fg \circ f is bijective, but ff is not surjective and gg is not injective.

These function types are central to defining cardinality. We say two sets AA and BB have the same cardinality, written ∣A∣=∣B∣|A| = |B| or A∼BA \sim B, if there exists a bijection f:Aβ†’Bf: A \to B. This equipollence relation partitions all sets into equivalence classes called cardinal numbers.

DefinitionCardinality Comparisons

For sets AA and BB:

  1. ∣Aβˆ£β‰€βˆ£B∣|A| \leq |B| if there exists an injection f:Aβ†ͺBf: A \hookrightarrow B
  2. ∣A∣<∣B∣|A| < |B| if ∣Aβˆ£β‰€βˆ£B∣|A| \leq |B| and ∣Aβˆ£β‰ βˆ£B∣|A| \neq |B|

The SchrΓΆder-Bernstein theorem states that if ∣Aβˆ£β‰€βˆ£B∣|A| \leq |B| and ∣Bβˆ£β‰€βˆ£A∣|B| \leq |A|, then ∣A∣=∣B∣|A| = |B|.

ExampleCardinality of Natural Numbers

The following sets all have the same cardinality as N\mathbb{N}:

  1. The even natural numbers (bijection: n↦2nn \mapsto 2n)
  2. The integers Z\mathbb{Z} (interleaving bijection)
  3. The rational numbers Q\mathbb{Q} (Cantor's pairing function)
  4. Finite sequences of natural numbers

All these sets are countably infinite, denoted β„΅0=∣N∣\aleph_0 = |\mathbb{N}|. However, R\mathbb{R} is uncountable: ∣R∣=2β„΅0>β„΅0|\mathbb{R}| = 2^{\aleph_0} > \aleph_0 by Cantor's diagonal argument.

Understanding injections, surjections, and bijections is essential for working with infinite sets, where our finite intuitions often fail. These concepts provide the rigorous foundation for cardinality theory and the rich hierarchy of infinities discovered by Cantor.