In order to prove the foregoing statement we use the next lemma:
For a set $A, A = A$.
Let $A$ and $B$ be a couple of sets. Assume that $A = B$. Notice we must show that $B = B$ for $A = B$. However we know by the stated lemma that $B = B$ is a true statement for an arbitrary set $B$. As a result, $B = A$ is trivially true.
Is this proof right?
Given that two sets are said to be equal if and only if for all elements of each set, those elements are in the other set, respectively
Then, if A=B,
it means that all elements of A are also elements of B AND all elements of B are also elements of A.
So, conversely, because AND is commutative,
all elements of B are also elements of A AND all elements of A are also elements of B,
thus B=A
Using math notation:
$ A=B \iff ((\forall a \in A \implies a \in B) \land (\forall b \in B \implies b \in A)) \iff ((\forall b \in B \implies b \in A) \land (\forall a \in A \implies a \in B)) \iff B=A $