how to prove injective and surjective