I want to make sure I am understanding this correctly. If we have a function $f$ which maps $A$ to $B$, and $A$ is a subset or proper subset of $B$ then $f$ is one to one from $A$ to $B$? Is that true?
Or does that only hold in the case of $f(x)=x$?
My textbook is trying to show that the $|(0,1)| = |(0,1]|$. I sort of understand the first part:
1) Because $(0,1) ⊂ (0,1]$, $f(x)=x$ is a one to one function from $(0,1)$ to $(0,1]$.
Then it says:
2) The function $g(x)=x/2$ is clearly one-to-one and maps $(0,1] $to $(0, 1/2] ⊂ (0,1)$.
By Schroder-Bernstein theorem, $|(0,1)| = |(0,1]|$
Yet I don't get how the second part is sufficient as the function $g$ maps $(0,1]$ to a subset of $(0,1)$ but forgets about $[1/2, 1)$.
My instinct tells me that these two have different cardinalities, since one includes "1" while the other does not...