CURIUM
How can we lodge tourists so each room has exactly one occupant?

Bijection

How can we lodge tourists so each room has exactly one occupant?

By assigning each tourist a room with no empty rooms and no shared rooms: this is a bijection between the set of tourists and the set of rooms. The hotelkeeper wants every room occupied — a surjection; the tourists each want their own room — an injection. Both wishes are compatible only if there are as many tourists as rooms.

MathsMathematical logic

The three levels

Beginner

How can we lodge tourists so each room has exactly one occupant?

By assigning each tourist a room with no empty rooms and no shared rooms: this is a bijection between the set of tourists and the set of rooms. The hotelkeeper wants every room occupied — a surjection; the tourists each want their own room — an injection. Both wishes are compatible only if there are as many tourists as rooms.

Intermediate

On what interval does sine become a bijection onto [−1, 1]?

On [−π/2, π/2], amongst others. From R to R, sine is neither injective, since 0 and π map to the same value, nor surjective, since 2 has no preimage. Restricted to [−π/2, π/2] with codomain [−1, 1], it becomes bijective, with inverse arc sine.

Expert

What does the Cantor-Bernstein theorem guarantee from two injections?

A bijection. If there exists an injection from E to F and an injection from F to E, with neither surjective, E and F are nevertheless equipotent: Cantor stated it, Bernstein proved it. This is the tool for comparing infinities. N and Q have the same size, whereas from N to R there exist injections but no surjection: R is strictly larger.