1

For example:

Given $ A\subset B $ reduce $\left [ (B\triangle C )\bigcap (A-B)\bigcap (A \triangle B) \right ]\bigcup B $

$A \triangle B$ denotes the symmetric difference of the two sets.

Edit

Possible results

A, B, C, U, $ \phi $

lilo
  • 13
  • 4

1 Answers1

4

Set theory operations can be expressed through Boolean operations. Your expression is equivalent to

(Xor[b, c] && (a && ! b) && Xor[a, b]) || b

Think of a as standing for the statement $x \in A$, etc. Then e.g. $x \in (A - B)$ is equivalent to $x \in A \wedge x \notin B$. Thus for $A - B$ we write a && !b. Similarly, the symmetric difference is equivalent to Xor.

The expression above can be simplified to

Simplify[(Xor[b, c] && (a && ! b) && Xor[a, b]) || b]
(* (a && c) || b *)

We still need to use the fact that $A \subset B$. Think of this as $x \in A \Rightarrow x \in B$. Thus

Simplify[Implies[a, b] && %]
(* b *)

The result is b, i.e. $B$.

Szabolcs
  • 234,956
  • 30
  • 623
  • 1,263
  • I understood everything except the && % of the last line, you would be so kind To explain to me what is similar, thank you for your time $ \left ( A-B \right )^{c}-\left ( B-C \right )^{c}\Rightarrow (A-B-C)^{^{c}} $ the last – lilo Feb 16 '17 at 20:18
  • Select % and press F1, or see here: http://mathematica.stackexchange.com/a/25616/12 – Szabolcs Feb 16 '17 at 20:32
  • ok,I already understood, how could simplify that with complements and with implies – lilo Feb 17 '17 at 00:02