Stuck on this? Solve it with AI
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

[(A−B)∪(B−A)]‾−[(A∩B)−C‾]=[(A∩B)−C]∪(A∪B)‾\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 X−Y=X∩Y‾X-Y=X\cap\overline{Y} makes the whole statement mechanical:

    A−B=A∩B‾,B−A=B∩A‾A-B=A\cap\overline{B},\qquad B-A=B\cap\overline{A}

    so (A−B)∪(B−A)(A-B)\cup(B-A) is the symmetric difference A△BA\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:

    A△B‾=(A∩B)∪(A∪B)‾\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,

    (A∩B)−C‾=(A∩B)∩C‾‾=A∩B∩C(A\cap B)-\overline{C}=(A\cap B)\cap\overline{\overline{C}}=A\cap B\cap C

    So the left-hand side is

    [(A∩B)∪(A∪B)‾]−(A∩B∩C)\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, (X∪Y)−Z=(X−Z)∪(Y−Z)(X\cup Y)-Z=(X-Z)\cup(Y-Z), giving

    [(A∩B)−(A∩B∩C)]∪[(A∪B)‾−(A∩B∩C)]\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 A∩B∩CA\cap B\cap C from A∩BA\cap B removes exactly the part inside CC:

    (A∩B)−(A∩B∩C)=(A∩B)−C(A\cap B)-(A\cap B\cap C)=(A\cap B)-C

    For the second, (A∪B)‾\overline{(A\cup B)} is disjoint from A∩BA\cap B (and hence from A∩B∩CA\cap B\cap C), so removing that set changes nothing:

    (A∪B)‾−(A∩B∩C)=(A∪B)‾\overline{(A\cup B)}-(A\cap B\cap C)=\overline{(A\cup B)}

  6. Conclude. Putting the two pieces back together,

    LHS=[(A∩B)−C]∪(A∪B)‾=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 no extra hypothesis on the sets was 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 A∩BA\cap B belongs to both sides iff it is outside CC; an element outside A∪BA\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: (A△B)‾−[(A∩B)−C‾]=[(A∩B)−C]∪(A∪B)‾\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 →