When constructing $\mathbb{Q}$ as equivalence classes containing pairs of integers, a natural inclusion of $\mathbb{Z}$ in $\mathbb{Q}$ arises: $$f: \mathbb{Z} \to \mathbb{Q}, \; n \to \frac{n}{1}. $$ This mapping is not surjective, but it is injective, and the function is well-defined. My question is: is injectivity required for us to conclude that $\mathbb{Z} \subset \mathbb{Q}$?
It seems to me that this isn't the case. I could assign two distinct integers to the same rational, and $\mathbb{Z}$ would still be embedded in $\mathbb{Q}$. I could assign every $n \in \mathbb{Z}$ to the rational $\frac{0}{1}$ and still prove the result.
Is this correct?
As a side question, when we talk about an inclusion map, must I map $\mathbb{Z}$ to $\mathbb{Q}$ or could I instead map $\mathbb{Q}$ to $\mathbb{Z}$ by the rule $\frac{n}{1} \to n$? In this case, perhaps it wouldn't work because the function would not be well-defined for all $\mathbb{Q}$. I'm interested in particular on how we defined an inclusion map.