How do I prove set inequality: $(A-B)-C=(A-C)-(B-C)$












0












$begingroup$


We are letting A,B, and C be non-empty sets. My issue with this is that I do not know how to prove it formally. Intuitively I just say let $xin (A-B)-C$, so it is clear to me that $x$ is in $A$ but not in $B$ and then $x$ is in $A$ but not in $B$ and not in $C$. So I say $xin(A-C)$ and $xnotin(B-C)$ which makes me jump to the conclusion $xin(A-C)-(B-C)$ thus $(A-B)-Csubseteq(A-C)-(B-C)$.



The other way around is even more weird, I assume $xin(A-C)-(B-C)$ AND intuitively I know that if I break it down I get that $xin A,xnotin B,xnotin C$ but how do I get to this result I just end up writing the explanation. Is that perfectly fine? From there I say clearly $xnotin C$ and $xin(A-B)$ so $xin (A-B)-C$ and I have that they are both subsets of eachother hence equal.










share|cite|improve this question









$endgroup$












  • $begingroup$
    You can use a venn diagram with 3 circles.
    $endgroup$
    – Math Lover
    Jan 23 at 23:46
















0












$begingroup$


We are letting A,B, and C be non-empty sets. My issue with this is that I do not know how to prove it formally. Intuitively I just say let $xin (A-B)-C$, so it is clear to me that $x$ is in $A$ but not in $B$ and then $x$ is in $A$ but not in $B$ and not in $C$. So I say $xin(A-C)$ and $xnotin(B-C)$ which makes me jump to the conclusion $xin(A-C)-(B-C)$ thus $(A-B)-Csubseteq(A-C)-(B-C)$.



The other way around is even more weird, I assume $xin(A-C)-(B-C)$ AND intuitively I know that if I break it down I get that $xin A,xnotin B,xnotin C$ but how do I get to this result I just end up writing the explanation. Is that perfectly fine? From there I say clearly $xnotin C$ and $xin(A-B)$ so $xin (A-B)-C$ and I have that they are both subsets of eachother hence equal.










share|cite|improve this question









$endgroup$












  • $begingroup$
    You can use a venn diagram with 3 circles.
    $endgroup$
    – Math Lover
    Jan 23 at 23:46














0












0








0





$begingroup$


We are letting A,B, and C be non-empty sets. My issue with this is that I do not know how to prove it formally. Intuitively I just say let $xin (A-B)-C$, so it is clear to me that $x$ is in $A$ but not in $B$ and then $x$ is in $A$ but not in $B$ and not in $C$. So I say $xin(A-C)$ and $xnotin(B-C)$ which makes me jump to the conclusion $xin(A-C)-(B-C)$ thus $(A-B)-Csubseteq(A-C)-(B-C)$.



The other way around is even more weird, I assume $xin(A-C)-(B-C)$ AND intuitively I know that if I break it down I get that $xin A,xnotin B,xnotin C$ but how do I get to this result I just end up writing the explanation. Is that perfectly fine? From there I say clearly $xnotin C$ and $xin(A-B)$ so $xin (A-B)-C$ and I have that they are both subsets of eachother hence equal.










share|cite|improve this question









$endgroup$




We are letting A,B, and C be non-empty sets. My issue with this is that I do not know how to prove it formally. Intuitively I just say let $xin (A-B)-C$, so it is clear to me that $x$ is in $A$ but not in $B$ and then $x$ is in $A$ but not in $B$ and not in $C$. So I say $xin(A-C)$ and $xnotin(B-C)$ which makes me jump to the conclusion $xin(A-C)-(B-C)$ thus $(A-B)-Csubseteq(A-C)-(B-C)$.



The other way around is even more weird, I assume $xin(A-C)-(B-C)$ AND intuitively I know that if I break it down I get that $xin A,xnotin B,xnotin C$ but how do I get to this result I just end up writing the explanation. Is that perfectly fine? From there I say clearly $xnotin C$ and $xin(A-B)$ so $xin (A-B)-C$ and I have that they are both subsets of eachother hence equal.







elementary-set-theory






share|cite|improve this question













share|cite|improve this question











share|cite|improve this question




share|cite|improve this question










asked Jan 23 at 22:18









Albert DiazAlbert Diaz

1157




1157












  • $begingroup$
    You can use a venn diagram with 3 circles.
    $endgroup$
    – Math Lover
    Jan 23 at 23:46


















  • $begingroup$
    You can use a venn diagram with 3 circles.
    $endgroup$
    – Math Lover
    Jan 23 at 23:46
















$begingroup$
You can use a venn diagram with 3 circles.
$endgroup$
– Math Lover
Jan 23 at 23:46




$begingroup$
You can use a venn diagram with 3 circles.
$endgroup$
– Math Lover
Jan 23 at 23:46










3 Answers
3






active

oldest

votes


















0












$begingroup$

Turn $A-B$ into $A capbar{B}$ and use De Morgan's rules.






share|cite|improve this answer









$endgroup$





















    0












    $begingroup$

    Element chase:



    If $x in (A-B)-C$ then $x in A$ and $x not in C$ so $xin (A-C$.



    And if $x in (A-B) -C$ then $x not in B$ so $x not in B-C subset B$. So $x in (A-C) -(B-C)$.



    So $(A-B)-C subset (A-C) - (B-C)$.



    Likewise if $y in (A-C)-(B-C)$ then $x in A$. $x not in B-C$ so if $x in B$ then $x in C$. But $x in A-C$ so $x not in C$. So $x not in B$. So $x in A-B$. And $x not in C$ so $x in (A-B) -C$.



    So $(A-C) -(B-C) subset (A-B) -C$.



    So $(A-B) - C = (A-C) -(B-C)$.



    ... Another way is to consider which elements are in which sets based on whether they are or are not in $A,B$ or $C$:



    Take an element $x in (A-B) -C$.



    Is $x in A$? Yes. Is $xin B$? No. Is $x in C$? No.



    Take an element $y in (A-C) - (B-C)$.



    Is $x in A$? Yes. Is $x in B$? Hmmm. Not if it's not in $C$ But it could be that it is in $B$ and $C$. Is $x in C$. No.... Oh, wait, if it's not $C$ then it can't be in both $B$ and $C$ and since it can't be in $B-C$, it can't be in $B$ after all.



    So in both cases $(A-B)-C$ and $(A-C)-(B-C)$ are both precisely the elements in $A$ that aren't in $B$ or $C$.



    ...



    And if we want to do it formally:



    $(A-B) - C = (Acap B^c) cap C^c = Acap B^c cap C^c$



    whereas



    $(A-C) - (B-C) = (Acap C^c)cap (Bcap C^c)^c=$



    $(Acap C^c) cap (B^c cup C)= [(Acap C^c) cap B^c] cup [(Acap C^c) cap C] = $



    $(Acap B^c cap C^c) cup [Acap (C^c cap C)]=$



    $(Acap B^c cap C^c) cup [Acap emptyset]=$



    $(Acap B^c cap C^c) cup emptyset=$



    $Acap B^c cap C^c$ also.






    share|cite|improve this answer









    $endgroup$





















      0












      $begingroup$

      $(A-C)-(B-C)=(Acapbar C)capoverline{(Bcapbar C)}=(Acapbar C)cap(bar Bcup C)=underbrace{(Acapbar Ccapbar B)}_{(A-B)-C}cupunderbrace{(Acapunderbrace{bar Ccap C}_{varnothing})}_{varnothing}$






      share|cite|improve this answer









      $endgroup$













        Your Answer





        StackExchange.ifUsing("editor", function () {
        return StackExchange.using("mathjaxEditing", function () {
        StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
        StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
        });
        });
        }, "mathjax-editing");

        StackExchange.ready(function() {
        var channelOptions = {
        tags: "".split(" "),
        id: "69"
        };
        initTagRenderer("".split(" "), "".split(" "), channelOptions);

        StackExchange.using("externalEditor", function() {
        // Have to fire editor after snippets, if snippets enabled
        if (StackExchange.settings.snippets.snippetsEnabled) {
        StackExchange.using("snippets", function() {
        createEditor();
        });
        }
        else {
        createEditor();
        }
        });

        function createEditor() {
        StackExchange.prepareEditor({
        heartbeatType: 'answer',
        autoActivateHeartbeat: false,
        convertImagesToLinks: true,
        noModals: true,
        showLowRepImageUploadWarning: true,
        reputationToPostImages: 10,
        bindNavPrevention: true,
        postfix: "",
        imageUploader: {
        brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
        contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
        allowUrls: true
        },
        noCode: true, onDemand: true,
        discardSelector: ".discard-answer"
        ,immediatelyShowMarkdownHelp:true
        });


        }
        });














        draft saved

        draft discarded


















        StackExchange.ready(
        function () {
        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3085156%2fhow-do-i-prove-set-inequality-a-b-c-a-c-b-c%23new-answer', 'question_page');
        }
        );

        Post as a guest















        Required, but never shown

























        3 Answers
        3






        active

        oldest

        votes








        3 Answers
        3






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes









        0












        $begingroup$

        Turn $A-B$ into $A capbar{B}$ and use De Morgan's rules.






        share|cite|improve this answer









        $endgroup$


















          0












          $begingroup$

          Turn $A-B$ into $A capbar{B}$ and use De Morgan's rules.






          share|cite|improve this answer









          $endgroup$
















            0












            0








            0





            $begingroup$

            Turn $A-B$ into $A capbar{B}$ and use De Morgan's rules.






            share|cite|improve this answer









            $endgroup$



            Turn $A-B$ into $A capbar{B}$ and use De Morgan's rules.







            share|cite|improve this answer












            share|cite|improve this answer



            share|cite|improve this answer










            answered Jan 23 at 22:26









            lightxbulblightxbulb

            1,125311




            1,125311























                0












                $begingroup$

                Element chase:



                If $x in (A-B)-C$ then $x in A$ and $x not in C$ so $xin (A-C$.



                And if $x in (A-B) -C$ then $x not in B$ so $x not in B-C subset B$. So $x in (A-C) -(B-C)$.



                So $(A-B)-C subset (A-C) - (B-C)$.



                Likewise if $y in (A-C)-(B-C)$ then $x in A$. $x not in B-C$ so if $x in B$ then $x in C$. But $x in A-C$ so $x not in C$. So $x not in B$. So $x in A-B$. And $x not in C$ so $x in (A-B) -C$.



                So $(A-C) -(B-C) subset (A-B) -C$.



                So $(A-B) - C = (A-C) -(B-C)$.



                ... Another way is to consider which elements are in which sets based on whether they are or are not in $A,B$ or $C$:



                Take an element $x in (A-B) -C$.



                Is $x in A$? Yes. Is $xin B$? No. Is $x in C$? No.



                Take an element $y in (A-C) - (B-C)$.



                Is $x in A$? Yes. Is $x in B$? Hmmm. Not if it's not in $C$ But it could be that it is in $B$ and $C$. Is $x in C$. No.... Oh, wait, if it's not $C$ then it can't be in both $B$ and $C$ and since it can't be in $B-C$, it can't be in $B$ after all.



                So in both cases $(A-B)-C$ and $(A-C)-(B-C)$ are both precisely the elements in $A$ that aren't in $B$ or $C$.



                ...



                And if we want to do it formally:



                $(A-B) - C = (Acap B^c) cap C^c = Acap B^c cap C^c$



                whereas



                $(A-C) - (B-C) = (Acap C^c)cap (Bcap C^c)^c=$



                $(Acap C^c) cap (B^c cup C)= [(Acap C^c) cap B^c] cup [(Acap C^c) cap C] = $



                $(Acap B^c cap C^c) cup [Acap (C^c cap C)]=$



                $(Acap B^c cap C^c) cup [Acap emptyset]=$



                $(Acap B^c cap C^c) cup emptyset=$



                $Acap B^c cap C^c$ also.






                share|cite|improve this answer









                $endgroup$


















                  0












                  $begingroup$

                  Element chase:



                  If $x in (A-B)-C$ then $x in A$ and $x not in C$ so $xin (A-C$.



                  And if $x in (A-B) -C$ then $x not in B$ so $x not in B-C subset B$. So $x in (A-C) -(B-C)$.



                  So $(A-B)-C subset (A-C) - (B-C)$.



                  Likewise if $y in (A-C)-(B-C)$ then $x in A$. $x not in B-C$ so if $x in B$ then $x in C$. But $x in A-C$ so $x not in C$. So $x not in B$. So $x in A-B$. And $x not in C$ so $x in (A-B) -C$.



                  So $(A-C) -(B-C) subset (A-B) -C$.



                  So $(A-B) - C = (A-C) -(B-C)$.



                  ... Another way is to consider which elements are in which sets based on whether they are or are not in $A,B$ or $C$:



                  Take an element $x in (A-B) -C$.



                  Is $x in A$? Yes. Is $xin B$? No. Is $x in C$? No.



                  Take an element $y in (A-C) - (B-C)$.



                  Is $x in A$? Yes. Is $x in B$? Hmmm. Not if it's not in $C$ But it could be that it is in $B$ and $C$. Is $x in C$. No.... Oh, wait, if it's not $C$ then it can't be in both $B$ and $C$ and since it can't be in $B-C$, it can't be in $B$ after all.



                  So in both cases $(A-B)-C$ and $(A-C)-(B-C)$ are both precisely the elements in $A$ that aren't in $B$ or $C$.



                  ...



                  And if we want to do it formally:



                  $(A-B) - C = (Acap B^c) cap C^c = Acap B^c cap C^c$



                  whereas



                  $(A-C) - (B-C) = (Acap C^c)cap (Bcap C^c)^c=$



                  $(Acap C^c) cap (B^c cup C)= [(Acap C^c) cap B^c] cup [(Acap C^c) cap C] = $



                  $(Acap B^c cap C^c) cup [Acap (C^c cap C)]=$



                  $(Acap B^c cap C^c) cup [Acap emptyset]=$



                  $(Acap B^c cap C^c) cup emptyset=$



                  $Acap B^c cap C^c$ also.






                  share|cite|improve this answer









                  $endgroup$
















                    0












                    0








                    0





                    $begingroup$

                    Element chase:



                    If $x in (A-B)-C$ then $x in A$ and $x not in C$ so $xin (A-C$.



                    And if $x in (A-B) -C$ then $x not in B$ so $x not in B-C subset B$. So $x in (A-C) -(B-C)$.



                    So $(A-B)-C subset (A-C) - (B-C)$.



                    Likewise if $y in (A-C)-(B-C)$ then $x in A$. $x not in B-C$ so if $x in B$ then $x in C$. But $x in A-C$ so $x not in C$. So $x not in B$. So $x in A-B$. And $x not in C$ so $x in (A-B) -C$.



                    So $(A-C) -(B-C) subset (A-B) -C$.



                    So $(A-B) - C = (A-C) -(B-C)$.



                    ... Another way is to consider which elements are in which sets based on whether they are or are not in $A,B$ or $C$:



                    Take an element $x in (A-B) -C$.



                    Is $x in A$? Yes. Is $xin B$? No. Is $x in C$? No.



                    Take an element $y in (A-C) - (B-C)$.



                    Is $x in A$? Yes. Is $x in B$? Hmmm. Not if it's not in $C$ But it could be that it is in $B$ and $C$. Is $x in C$. No.... Oh, wait, if it's not $C$ then it can't be in both $B$ and $C$ and since it can't be in $B-C$, it can't be in $B$ after all.



                    So in both cases $(A-B)-C$ and $(A-C)-(B-C)$ are both precisely the elements in $A$ that aren't in $B$ or $C$.



                    ...



                    And if we want to do it formally:



                    $(A-B) - C = (Acap B^c) cap C^c = Acap B^c cap C^c$



                    whereas



                    $(A-C) - (B-C) = (Acap C^c)cap (Bcap C^c)^c=$



                    $(Acap C^c) cap (B^c cup C)= [(Acap C^c) cap B^c] cup [(Acap C^c) cap C] = $



                    $(Acap B^c cap C^c) cup [Acap (C^c cap C)]=$



                    $(Acap B^c cap C^c) cup [Acap emptyset]=$



                    $(Acap B^c cap C^c) cup emptyset=$



                    $Acap B^c cap C^c$ also.






                    share|cite|improve this answer









                    $endgroup$



                    Element chase:



                    If $x in (A-B)-C$ then $x in A$ and $x not in C$ so $xin (A-C$.



                    And if $x in (A-B) -C$ then $x not in B$ so $x not in B-C subset B$. So $x in (A-C) -(B-C)$.



                    So $(A-B)-C subset (A-C) - (B-C)$.



                    Likewise if $y in (A-C)-(B-C)$ then $x in A$. $x not in B-C$ so if $x in B$ then $x in C$. But $x in A-C$ so $x not in C$. So $x not in B$. So $x in A-B$. And $x not in C$ so $x in (A-B) -C$.



                    So $(A-C) -(B-C) subset (A-B) -C$.



                    So $(A-B) - C = (A-C) -(B-C)$.



                    ... Another way is to consider which elements are in which sets based on whether they are or are not in $A,B$ or $C$:



                    Take an element $x in (A-B) -C$.



                    Is $x in A$? Yes. Is $xin B$? No. Is $x in C$? No.



                    Take an element $y in (A-C) - (B-C)$.



                    Is $x in A$? Yes. Is $x in B$? Hmmm. Not if it's not in $C$ But it could be that it is in $B$ and $C$. Is $x in C$. No.... Oh, wait, if it's not $C$ then it can't be in both $B$ and $C$ and since it can't be in $B-C$, it can't be in $B$ after all.



                    So in both cases $(A-B)-C$ and $(A-C)-(B-C)$ are both precisely the elements in $A$ that aren't in $B$ or $C$.



                    ...



                    And if we want to do it formally:



                    $(A-B) - C = (Acap B^c) cap C^c = Acap B^c cap C^c$



                    whereas



                    $(A-C) - (B-C) = (Acap C^c)cap (Bcap C^c)^c=$



                    $(Acap C^c) cap (B^c cup C)= [(Acap C^c) cap B^c] cup [(Acap C^c) cap C] = $



                    $(Acap B^c cap C^c) cup [Acap (C^c cap C)]=$



                    $(Acap B^c cap C^c) cup [Acap emptyset]=$



                    $(Acap B^c cap C^c) cup emptyset=$



                    $Acap B^c cap C^c$ also.







                    share|cite|improve this answer












                    share|cite|improve this answer



                    share|cite|improve this answer










                    answered Jan 23 at 22:55









                    fleabloodfleablood

                    72.3k22687




                    72.3k22687























                        0












                        $begingroup$

                        $(A-C)-(B-C)=(Acapbar C)capoverline{(Bcapbar C)}=(Acapbar C)cap(bar Bcup C)=underbrace{(Acapbar Ccapbar B)}_{(A-B)-C}cupunderbrace{(Acapunderbrace{bar Ccap C}_{varnothing})}_{varnothing}$






                        share|cite|improve this answer









                        $endgroup$


















                          0












                          $begingroup$

                          $(A-C)-(B-C)=(Acapbar C)capoverline{(Bcapbar C)}=(Acapbar C)cap(bar Bcup C)=underbrace{(Acapbar Ccapbar B)}_{(A-B)-C}cupunderbrace{(Acapunderbrace{bar Ccap C}_{varnothing})}_{varnothing}$






                          share|cite|improve this answer









                          $endgroup$
















                            0












                            0








                            0





                            $begingroup$

                            $(A-C)-(B-C)=(Acapbar C)capoverline{(Bcapbar C)}=(Acapbar C)cap(bar Bcup C)=underbrace{(Acapbar Ccapbar B)}_{(A-B)-C}cupunderbrace{(Acapunderbrace{bar Ccap C}_{varnothing})}_{varnothing}$






                            share|cite|improve this answer









                            $endgroup$



                            $(A-C)-(B-C)=(Acapbar C)capoverline{(Bcapbar C)}=(Acapbar C)cap(bar Bcup C)=underbrace{(Acapbar Ccapbar B)}_{(A-B)-C}cupunderbrace{(Acapunderbrace{bar Ccap C}_{varnothing})}_{varnothing}$







                            share|cite|improve this answer












                            share|cite|improve this answer



                            share|cite|improve this answer










                            answered Jan 23 at 22:56









                            zwimzwim

                            12.5k831




                            12.5k831






























                                draft saved

                                draft discarded




















































                                Thanks for contributing an answer to Mathematics Stack Exchange!


                                • Please be sure to answer the question. Provide details and share your research!

                                But avoid



                                • Asking for help, clarification, or responding to other answers.

                                • Making statements based on opinion; back them up with references or personal experience.


                                Use MathJax to format equations. MathJax reference.


                                To learn more, see our tips on writing great answers.




                                draft saved


                                draft discarded














                                StackExchange.ready(
                                function () {
                                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3085156%2fhow-do-i-prove-set-inequality-a-b-c-a-c-b-c%23new-answer', 'question_page');
                                }
                                );

                                Post as a guest















                                Required, but never shown





















































                                Required, but never shown














                                Required, but never shown












                                Required, but never shown







                                Required, but never shown

































                                Required, but never shown














                                Required, but never shown












                                Required, but never shown







                                Required, but never shown







                                Popular posts from this blog

                                MongoDB - Not Authorized To Execute Command

                                Npm cannot find a required file even through it is in the searched directory

                                in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith