Definition:Set Equality/Definition 1

Definition
Two sets are equal if and only if they have the same elements.

This can be defined rigorously as:
 * $S = T \iff \left({\forall x: x \in S \iff x \in T}\right)$

where $S$ and $T$ are both sets.

Also see

 * Equivalence of Definitions of Set Equality