It is my understanding that the cardinality of a set is the number of elements in a set. If I have a set $A = (0,1)$ and a set $B = [0,1]$, then how is it possible that $|A| = |B|$ if $A$ is missing two elements which are elements of B, namely 0 and 1?
The book I'm reading says it suffices to find two functions $f$ and $g$ such that $f: A \to B$ and $g : B \to A$. However, the example functions they give are $f(x)=x$ and $g(x) = \frac{x+1}{3}$. How can $f(x)$ map $(0,1) \to [0,1]$ if $0 \not\in (0,1)$?
Let, $S={1/n : n\in \mathbb{N}}$
$S\subset B$
Define a map, $f:B \to A $ by
$ f(x) = \left{ \begin{array}{ll} \frac{1}{2} & x= 0 \ \frac{1}{3} & x= 1 \ \frac{1}{n+2} & x= \frac{1}{n} ({n>1})\ x & x \in B\setminus S\ \end{array} \right. $
Now, study the map.
– Sourav Ghosh Nov 21 '21 at 06:33