open and closed intervals have the same cardinality
Proposition.
The sets of real numbers , , , and all have the same cardinality.
We give two proofs of this proposition.
Proof.
Define a map by . The map is strictly increasing, hence injective. Moreover, the image of is contained in the interval
, so the maps and obtained from by restricting the codomain are both injective. Since the inclusions into are also injective, the Cantor-Schröder-Bernstein theorem (http://planetmath.org/SchroederBernsteinTheorem) can be used to construct bijections
and . Finally, the map defined by is a bijection.
Since having the same cardinality is an equivalence relation, all four intervals have the same cardinality.∎
Proof.
Since is countable, there is a bijection . We may select so that and . The map defined by is a bijection because it is a composition of bijections. A bijection can be constructed by gluing the map to the identity map
on . The formula
for is
The other bijections can be constructed similarly.∎
The reasoning above can be extended to show that any two arbitrary intervals in have the same cardinality.