An injective (one-to-one) function is a function $f$ which satisfies the property that if $a_1 \neq a_2$, then $f(a_1) \neq f(a_2)$, or equivalently, the contrapositive $f(a_1) = f(a_2)$ implies $a_1 = a_2$.
My question is whether this property also holds for sets. Specifically, if we let $A_1$ and $A_2$ be sets, then does $f(A_1) = f(A_2)$ imply that $A_1 = A_2$?