A Function f:X→Yf:X \to Yf:X→Y that is surjective and injective
A necessary and sufficient condition is that there exists a function f−1f^{-1}f−1 such that f∘f−1=idXf \circ f^{-1} = id_Xf∘f−1=idX (this guarantees it is injective) and f−1∘f=idYf^{-1} \circ f = id_Yf−1∘f=idY (which guarantees it is surjective), where idAid_AidA is the Identitiy map from AAA to itself.