1

Show that $S\cap(T\,\cup \,T') = (S\,\cap\,T)\cup(S\,\cap\,T')$

I did this by creating 3 sets:

  • $S\,\,=\{a,b,c,d\}$

  • $T\,\,=\{c,d,e,f\}$

  • $T'=\{a,b,c,d\}$

And then I performed the operations and checked they are the same. Is there something else I should do or only this will suffice?

Asaf Karagila
  • 393,674
Red Banana
  • 23,956
  • 20
  • 91
  • 192

4 Answers4

6

Checking one example is insufficient in order to conclude a general proof.

You need to do this for abstract sets. Pick an element from $S\cap (T\cup T')$, using the definitions of $\cap,\cup$ conclude that it has to be in $(S\cap T)\cup (S\cap T')$, and then do the same thing from the other direction.

That would be a proof.

Asaf Karagila
  • 393,674
  • I'm not sure on how to do that. I'm unable to pick elements in that manner (Can you expand a little?) - but I've made a Venn diagram with it - I do undestand that the Venn diagram is the manifestation of such abstraction (?) but I'm still confused. – Red Banana May 25 '13 at 14:00
  • Wait. It's an element that is in both $S$ and $(T,\cup,T')$. I feel they are the same but I can't explain it. – Red Banana May 25 '13 at 14:07
  • 2
    @Gustavo: We pick an arbitrary $x\in S\cap (T\cup T')$, therefore $x\in S$ and $x\in T\cup T'$. So either $x\in T$ or $x\in T'$. If $x\in T$ then $x\in S$ and $x\in T$ so by definition of the intersection, $x\in S\cap T$ and so $x\in(S\cap T)\cup(S\cap T')$ ... $${}$$The key point is not to limit yourself to particular sets, or to particular elements. We pick arbitrary sets and arbitrary elements from these sets. Then we can conclude that the statement holds for every set. – Asaf Karagila May 25 '13 at 14:07
  • Oh, got it! Thanks Asaf. – Red Banana May 25 '13 at 14:08
3

A different approach: let $x$ be any element in the universe. The following equivalences hold:

$$\begin{align} x\in S\cap (T\cup T') &\iff x\in S\land x\in T\cup T'\\ &\iff x\in S\land (x\in T\lor x\in T')\\ &\iff (x\in S\land x\in T)\lor (x\in S\land x\in T')\\ &\iff x\in S\cap T\lor x\in S\cap T'\\ &\iff x\in (S\cap T)\cup (S\cap T').\end{align}$$

Git Gud
  • 31,356
  • Different from whose approach? – Asaf Karagila May 25 '13 at 14:13
  • @AsafKaragila Yours. – Git Gud May 25 '13 at 14:14
  • 1
    If the OP did not yet prove that $\land$ is distributive over $\lor$, then this proof is not a very good one. – Asaf Karagila May 25 '13 at 14:15
  • @AsafKaragila Feel free to downvote it. – Git Gud May 25 '13 at 14:17
  • 2
    It's not a bad proof per se, it just uses an assumption which may or may not be known to the OP. I find your comment unnecessary caustic, by the way. – Asaf Karagila May 25 '13 at 14:18
  • 1
    @AsafKaragila To be honest I don't even know how my answer differs from yours except for the fact that I didn't use words. How do you go from the second line in my proof to the third and back without using the aforementioned property? – Git Gud May 25 '13 at 14:21
  • So is the approach different or not? (In my answer one verifies that the Boolean truth table of the distributive law works, which is more or less the same thing as doing that for propositions first, and proving the equivalence later -- only without talking about propositional logic, which is something that the OP may or may not have worked with before.) – Asaf Karagila May 25 '13 at 14:22
  • @AsafKaragila Both answers would lead to the same formal proof. Does that make them equal? If it does, then they aren't different. Edit: How do you go from $x\in S\cap (T\cup T')$ to $x\in S$ without using propositional calculus? – Git Gud May 25 '13 at 14:24
  • 1
    @AsafKaragila: your answer —at least the expanded form you give in its comments—doesn’t quite (as I read it) “verify that the Boolean truth table of the distributive law works”; rather, it gets the distributive law from the “Frobenius law” of logic, that one can hold any assumption (in this case, $x \in S$) on the side, do some more reasoning (going from $x \in T \cap T'$ to the cases $x \in T$ or $x \in T'$), and then bring back the assumption in each case. This is somewhat stronger than the truth-table approach—it doesn’t depend on classicality—but is a bit subtler to formally explain. – Peter LeFanu Lumsdaine May 25 '13 at 18:30
3

Let $X$ be a set. For every $A,B,C$ subsets of $X$, you can check that $$\frac{(A\cap B)\subseteq C}{B\subseteq (A\rightarrow C)}$$ where $A\rightarrow C$ is defined as $(A\rightarrow C):=(\mathscr{C}A)\cup C$ and $\mathscr{C}A$ is the complementary set of $A$ in $X$ and horizontal line means "if and only if", i.e. the line above is true if and only if the line below is true.

More concisely, $$A\cap (-)\dashv A\rightarrow (-)$$ where $\dashv$ means left adjoint, $A\cap(-)$ is the function sending a subset $B$ of $X$ to $A\cap B$ and $A\rightarrow (-)$ the function sending a subset $C$ of $X$ to $A\rightarrow C$.

Being a left adjoint, $A\cap (-)$ preservs colimits, in particular it preservs unions, hence your desidered distributive law.

$\textrm{EDIT}$: let $f:X\longrightarrow Y$ be a function, $X,Y$ sets, $A$ subset of $X$, $B$ subset of $Y$. Then you have $$\frac{f(A)\subset B}{A\subset f^{-1}(B)}$$ Proceeding as in the main part of this answer, you have that the direct image of $f$ is left-adjoint to the inverse image $f^{-1}$, thus, being a left adjoint, direct image preserves colimits, for example unions, so that you immediately prove that $f(A\cup C)=f(A)\cup f(C)$, without computing on elements ( pick an element in $A\cup C$, do the image under $f$, check this image is in the image of $A$ or in the image of $C$, conversely, pick an element which is in $f(A)$ or in $f(B)$, check that it comes from an element....), while inverse image $f^{-1}$, being a right-adjoint, preserve limits, for example intersections, so that you have an "automatic" proof that $f^{-1}(A\cap C)=f^{-1}(A)\cap f^{-1}(C)$

So two facts apparently different as your distributive law and these properties of $f$ and $f^{-1}$ appear in some sense as two different manifestations of the same phenomenon

Pedro
  • 122,002
  • 1
    Well, it may help me in the future. – Red Banana May 25 '13 at 17:49
  • @GustavoBandeira I've added a part with a simple example – Federica Maggioni May 25 '13 at 18:09
  • @FedericaMaggioni It looks even better now. +1 – Pedro May 25 '13 at 18:25
  • 2
    While I agree this categorical analysis of the logic is beautiful, in this case feels like using a sledgehammer to crack a nut, and a highly abstract and complicated sledgehammer at that — almost certainly over the head of anyone struggling with the original question. – Peter LeFanu Lumsdaine May 25 '13 at 18:30
  • 2
    @PeterLeFanuLumsdaine I don't completely agree with your remarks, the categorical/logic tools i used are all elementary, not advanced, and i'm pretty convinced that (maybe in the future) the OP will be able (if of some interest for him) to learn those tools in no more than one or two days – Federica Maggioni May 25 '13 at 18:42
  • 1
    @PeterLeFanuLumsdaine Yes, Peter. The answer is a great addendum to me. It may help me a lot in the near future. – Red Banana May 25 '13 at 20:08
1

HINT: is it possible to write the left hand side otherwise? Maybe draw it first, so you have a good idea.