I'm new in Category Theory and I just learned about epis and monos. I've been doing some exercises so far, but one of them is confusing me:
Let $i:\mathbb Z \to \mathbb Q$ be the inclusion of integers to rationals (equipped with the usual ring structure):
- Show that $i$ an epimorphism
- Show that it is not surjective
I tried to assume $g,h: \mathbb{Q} \to R$ and that $g \circ i = h \circ i$. But now I have no idea how to get $g=h$. It is clear for me that it has something to do with the fact $i$ is an inclusion, but I just can't construct any argument. I attempted proof by contrapositive as well, assuming $g\neq h$, but the difficulty persists.
Thanks in advance!