Algebra · real student question

For arbitrary sets A, B and C, decide whether complement[(A − B) ∪ (B − A)] − [(A ∩ B) − complement(C)] equals [(A ∩ B) − C] ∪ complement(A ∪ B). Prove it or give a counterexample.

Question

Let A,B,CA,B,C be arbitrary sets. Decide whether

[(AB)(BA)][(AB)C]=[(AB)C](AB)\overline{\big[(A-B)\cup(B-A)\big]}-\big[(A\cap B)-\overline{C}\big]=\big[(A\cap B)-C\big]\cup\overline{(A\cup B)}

If it is true, prove it by set algebra; otherwise give a counterexample.

Step-by-step solution

  1. Rewrite every difference as an intersection with a complement. The single rule XY=XYX-Y=X\cap\overline{Y} makes the whole statement mechanical:

    AB=AB,BA=BAA-B=A\cap\overline{B},\qquad B-A=B\cap\overline{A}

    so (AB)(BA)(A-B)\cup(B-A) is the symmetric difference ABA\triangle B — the elements in exactly one of AA, BB.

  2. Complement the symmetric difference. An element fails to lie in exactly one of A,BA,B precisely when it lies in both or in neither:

    AB=(AB)(AB)\overline{A\triangle B}=(A\cap B)\cup\overline{(A\cup B)}

    This is the structural heart of the proof, and the two pieces on the right of the target identity are already visible here.

  3. Simplify the set being removed. Using C=C\overline{\overline{C}}=C,

    (AB)C=(AB)C=ABC(A\cap B)-\overline{C}=(A\cap B)\cap\overline{\overline{C}}=A\cap B\cap C

    So the left-hand side is

    [(AB)(AB)](ABC)\Big[(A\cap B)\cup\overline{(A\cup B)}\Big]-\big(A\cap B\cap C\big)

  4. Distribute the removal over the union. Set difference distributes over union, (XY)Z=(XZ)(YZ)(X\cup Y)-Z=(X-Z)\cup(Y-Z), giving

    [(AB)(ABC)][(AB)(ABC)]\big[(A\cap B)-(A\cap B\cap C)\big]\cup\big[\overline{(A\cup B)}-(A\cap B\cap C)\big]

  5. Simplify each piece. For the first, removing ABCA\cap B\cap C from ABA\cap B removes exactly the part inside CC:

    (AB)(ABC)=(AB)C(A\cap B)-(A\cap B\cap C)=(A\cap B)-C

    For the second, (AB)\overline{(A\cup B)} is disjoint from ABA\cap B (and hence from ABCA\cap B\cap C), so removing that set changes nothing:

    (AB)(ABC)=(AB)\overline{(A\cup B)}-(A\cap B\cap C)=\overline{(A\cup B)}

  6. Conclude. Putting the two pieces back together,

    LHS=[(AB)C](AB)=RHS\text{LHS}=\big[(A\cap B)-C\big]\cup\overline{(A\cup B)}=\text{RHS}

    The identity is true for all sets A,B,C\boxed{\text{The identity is true for all sets }A,B,C}

    Note that the hypothesis ABC=UA\cup B\cup C=U was never needed — the identity holds unconditionally.

  7. Verify by exhaustive membership check. Each element sits in one of 88 regions according to whether it is in AA, BB, CC. Testing all eight: an element in ABA\cap B belongs to both sides iff it is outside CC; an element outside ABA\cup B belongs to both sides always; an element in exactly one of A,BA,B belongs to neither side (it is excluded by the complemented symmetric difference on the left, and it is in neither piece on the right). All eight cases agree, confirming the algebra.

Answer

True: (AB)[(AB)C]=[(AB)C](AB)\text{True: }\overline{(A\triangle B)}-\big[(A\cap B)-\overline{C}\big]=\big[(A\cap B)-C\big]\cup\overline{(A\cup B)}

Need to solve a different problem like this? Open the solver →