This question is really about proof writing. I'm new and having trouble grasping it.
If I have two sets of the same cardinality. Say, $|A| = |B| = n$ and a function $A \to B$.
If the function is injective, how do I write a proof to show that it is also surjective? I really need to just see a template.
I completely understand the logic, I understand in this particular case why it's surjective if it's injective, I'm just very unsure on how to approach writing a proof and want to understand.