Theorem.
Any Two Nondegenerate Closed Intervals Have the Same Cardinality
Theorem. Any Two Nondegenerate Closed Intervals Have the Same Cardinality
Let , with and . Then the closed intervals and have the same cardinality.
Define by
In particular, and . We check that is well-defined, injective, and surjective.
1. Well-definedness.
Let . Since ,
Multiplying by and adding gives
Thus , so the formula really does define a function with the required domain and codomain.
2. Injectivity (one-to-one).
Let and suppose . Then
Subtracting and dividing by the nonzero number yields
Therefore, is injective: distinct points cannot share a partner.
3. Surjectivity (onto).
Let be arbitrary. Choose
Since ,
Multiplying by and adding shows that
Hence . Substituting this choice into gives
Thus every has a preimage in , so is surjective.
Since is both injective and surjective, it is a bijection. Therefore,
The pairing can be reversed explicitly: