I was trying to prove $(A\cup B)-(A\cap B)=(A-B)\cup(B-A)$ and came across issues in translating (pertaining to what I did with $\emptyset$) and got through the proof but was doubting its accuracy so if someone could please affirm or deny its accuracy that would be great. Also, I'm guessing there's much shorter ways of proving this and was thinking of what those ways might be and all I could come up with was set construction. Any ideas on others?
My proof is as follows:
Suppose $x\in(A\cup B)-(A\cap B)$.
Thus $x\in(A\cup B):x\notin(A\cap B)$.
Hence $x\in A$ or $x\in B:x\notin A$ or $x\notin B$.
This presents us with 4 cases:
- $x\in A:x\notin A$
- $x\in A:x\notin B$
- $x\in B:x\notin A$
- $x\in B:x\notin B$
Case 1 and 4 are $\emptyset$ however so we really have $x\in\emptyset$, or $x\in A:x\notin B$, or $x\in B:x\notin A$, or $x\in\emptyset$ which is equivalent to $x\in\emptyset$, or $x\in(A-B)$, or $x\in(B-A)$, or $x\in\emptyset$. Which is the same as $x\in\emptyset\cup(A-B)\cup(B-A)\cup\emptyset$ And since the union of the empty set with any set X is the set X itself, we have $x\in(A-B)\cup(B-A)$, which shows that $\forall x[x\in(A\cup B)-(A\cap B)\Rightarrow x\in(A-B)\cup(B-A)]$.
Alternatively, suppose that $x\in(A-B)\cup(B-A)$. Since the union of any set X is the set X itself, we can say that $x\in\emptyset_1\cup(A-B)\cup(B-A)\cup\emptyset_2$ where $\emptyset_1={x\in A:x\notin A}$ and $\emptyset_2={x\in B:x\notin B}$ so $x\in\emptyset_1$, or $x\in(A-B)$, or $x\in(B-A)$, or $x\in\emptyset_2$, thus $x\in [x\in A:x\notin A] $, or $x\in A:x\notin B$, or $x\in B:x\notin A$, or $x\in B:x\notin B$, hence $x\in A:x\notin A$, or $x\in A:x\notin B$, or $x\in B:x\notin A$, or $x\in B:x\notin B$, therefore $x\in A$ or $x\in B$, and $x\notin A$ or $x\notin B$ such that $x\in(A\cup B)$ and $x\notin(A\cap B)$ which means that $x\in(A\cup B)-(A\cap B)$.
The former shows that $\forall x[x\in(A-B)\cup(B-A)\Rightarrow x\in(A\cup B)-(A\cap B)]$ , and thus $(A-B)\cup(B-A)\subset(A\cup B)-(A\cap B)$ by the definition of a subset.
Since, as we showed earlier, $(A\cup B)-(A\cap B)\subset(A-B)\cup(B-A)$ and $(A-B)\cup(B-A)\subset(A\cup B)-(A\cap B)$, by the definition of set equality, $(A\cup B)-(A\cap B)=(A-B)\cup(B-A)$.
Thank you!