I am a first year computer science student, learning discrete mathematics. Let p denote the statement:
p: for all sets A, B, C, D,
$(A\cup B) \cap(C\cup D) = (A\cap C) \cup(B\cap D)$
I would like to write down the negation of p by building a counter example. Hence, I did:
$A = \{a\},\ B = \{b\},\ C = \{c\},\ D = \{d\}$
$\{a, b\}\cap\{c, d\} = \emptyset\cup \emptyset$
$\emptyset = \emptyset$
I totally missed the target. My lack experience in the field still prevents me from finding a different approach. Any hint would be highly appreciated.
We need an example for either $$(A\cup B)\cap(C\cup D)\not\subseteq(A\cap C)\cup(B\cap D)\tag1$$ or $$(A\cup B)\cap(C\cup D)\not\supseteq(A\cap C)\cup(B\cap D)\tag2$$ Let's try for (1) first; if that doesn't work we'll try (2). (Or you may already have observed that $(A\cup B)\cap(C\cup D)\supseteq(A\cap C)\cup(B\cap D),$ so (1) is the only way to go.)
We need an element $x$ which belongs to LHS but not RHS. For $x\in\text{LHS}$, we need $x\in A\cup B$ and $x\in C\cup D.$
For $x\in A\cup B$ we need $x\in A$ or $x\in B.$ By symmetry, one choice is as good as another, so let's decide on $x\in A.$
Next we need $x\in C$ or $x\in D.$ The symmetry has been broken, so we have to choose wisely. If we put $x\in C$ then we have $x\in A\cap C\subseteq\text{RHS},$ which we don't want; so we put $x\in D.$
Now, with $x$ in $A$ and $D$ (and nothing else), we have $x\in\text{LHS}$ and $x\notin\text{RHS}.$ That is, with $A=D=\{x\}$ and $B=C=\emptyset,$ we have $$(A\cup B)\cap(C\cup D)=\{x\}$$ and $$(A\cap C)\cup(B\cap D)=\emptyset.$$ By the way, for a problem like this, we can always get our counterexample by setting each set-variable equal to $\emptyset$ or to $\{x\}.$