0

Let $A$ and $B$ be non-empty sets. Prove that $A \times B = B \times A$ if and only if $A = B$. Where do you use that $A$ and $B$ are non-empty?

2 Answers2

1

At some point, you'll want to use these two facts:

  1. $\forall a\in A,\exists p\in A\times B,\exists b\in B, p=(a,b)$
  2. $\forall b\in B,\exists p\in A\times B,\exists a\in A, p=(a,b)$

However, the first statement is false if $A\ne\emptyset$ and $B=\emptyset$, while the second one is false if $A=\emptyset$ and $B\ne\emptyset$.

The thesis is trivially true if $A=B=\emptyset$.

1

If a in A, there is some b in B with (a,b) in AxB.
Thus (a,b) in BxA and a in B. Whence A subset B.
As B subset A by symmetry, A = B.