Show that $(P to R) land (Q to R)$ is equivalent to $(P lor Q) to R$












1












$begingroup$


I have checked the answer, but do not understand one step.



$(P to R) land (Q to R)$ is equivalent to $(neg P lor R) land (neg Q lor R)$



which is equivalent to $(neg P land neg Q ) lor R$



I don't understand the second equivalent. How to arrive to this?










share|cite|improve this question











$endgroup$








  • 2




    $begingroup$
    As @DerekElkins pointed out, what you're trying to prove is false. Your attempt suggests that the problem actually involved $(Pto R)land (Qto R)$, which is equivalent to $(Plor Q)to R$.
    $endgroup$
    – Andreas Blass
    Feb 2 at 3:30










  • $begingroup$
    @AndreasBlass Sorry. I have a typo
    $endgroup$
    – JOHN
    Feb 2 at 6:25
















1












$begingroup$


I have checked the answer, but do not understand one step.



$(P to R) land (Q to R)$ is equivalent to $(neg P lor R) land (neg Q lor R)$



which is equivalent to $(neg P land neg Q ) lor R$



I don't understand the second equivalent. How to arrive to this?










share|cite|improve this question











$endgroup$








  • 2




    $begingroup$
    As @DerekElkins pointed out, what you're trying to prove is false. Your attempt suggests that the problem actually involved $(Pto R)land (Qto R)$, which is equivalent to $(Plor Q)to R$.
    $endgroup$
    – Andreas Blass
    Feb 2 at 3:30










  • $begingroup$
    @AndreasBlass Sorry. I have a typo
    $endgroup$
    – JOHN
    Feb 2 at 6:25














1












1








1





$begingroup$


I have checked the answer, but do not understand one step.



$(P to R) land (Q to R)$ is equivalent to $(neg P lor R) land (neg Q lor R)$



which is equivalent to $(neg P land neg Q ) lor R$



I don't understand the second equivalent. How to arrive to this?










share|cite|improve this question











$endgroup$




I have checked the answer, but do not understand one step.



$(P to R) land (Q to R)$ is equivalent to $(neg P lor R) land (neg Q lor R)$



which is equivalent to $(neg P land neg Q ) lor R$



I don't understand the second equivalent. How to arrive to this?







logic






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Feb 2 at 6:47







JOHN

















asked Feb 2 at 1:50









JOHN JOHN

4589




4589








  • 2




    $begingroup$
    As @DerekElkins pointed out, what you're trying to prove is false. Your attempt suggests that the problem actually involved $(Pto R)land (Qto R)$, which is equivalent to $(Plor Q)to R$.
    $endgroup$
    – Andreas Blass
    Feb 2 at 3:30










  • $begingroup$
    @AndreasBlass Sorry. I have a typo
    $endgroup$
    – JOHN
    Feb 2 at 6:25














  • 2




    $begingroup$
    As @DerekElkins pointed out, what you're trying to prove is false. Your attempt suggests that the problem actually involved $(Pto R)land (Qto R)$, which is equivalent to $(Plor Q)to R$.
    $endgroup$
    – Andreas Blass
    Feb 2 at 3:30










  • $begingroup$
    @AndreasBlass Sorry. I have a typo
    $endgroup$
    – JOHN
    Feb 2 at 6:25








2




2




$begingroup$
As @DerekElkins pointed out, what you're trying to prove is false. Your attempt suggests that the problem actually involved $(Pto R)land (Qto R)$, which is equivalent to $(Plor Q)to R$.
$endgroup$
– Andreas Blass
Feb 2 at 3:30




$begingroup$
As @DerekElkins pointed out, what you're trying to prove is false. Your attempt suggests that the problem actually involved $(Pto R)land (Qto R)$, which is equivalent to $(Plor Q)to R$.
$endgroup$
– Andreas Blass
Feb 2 at 3:30












$begingroup$
@AndreasBlass Sorry. I have a typo
$endgroup$
– JOHN
Feb 2 at 6:25




$begingroup$
@AndreasBlass Sorry. I have a typo
$endgroup$
– JOHN
Feb 2 at 6:25










4 Answers
4






active

oldest

votes


















1












$begingroup$

A different approach for the problem is to convert P,Q,R to Boolean variables and form a truth table where $0$ represents False and $1$ represents True.
begin{array}{|c|c|} hline
P & Q & R & Prightarrow Q & Qrightarrow R & (Prightarrow Q)land(Q rightarrow R) &Plor Q &(P lor Q)rightarrow R\ hline
0 & 0 & 0& 1& 1& 1& 0& 1 \ hline
0 & 0 & 1& 1& 1& 1& 0& 1 \ hline
0 & 1 & 0& 1& 0& 0& 1& 0 \ hline
0 & 1 & 1& 1& 1& 1& 1& 1 \ hline
1 & 0 & 0& 0& 1& 0& 1& 0 \ hline
1 & 0 & 1& 0& 1& 0& 1& 0 \ hline
1 & 1 & 0& 1& 0& 0& 1& 0 \ hline
1 & 1 & 1& 1& 1& 1& 1& 1 \ hline
end{array}

So both the statements are equivalent. Hope this helps...
Another approach is to replace $Prightarrow Q$ by $neg P vee Q$ and solve the expression






share|cite|improve this answer









$endgroup$





















    1












    $begingroup$


    $(P to Q) land (Q to R)$ is equivalent to $(neg P lor R) land (neg Q lor R)$




    No, that is meant to be $(neg P lor Q) land (neg Q lor R)$ .




    which is equivalent to $(neg P land neg Q ) lor R$




    $$begin{align}&(neg P lor Q) land (neg Q lor R)
    \=~&((lnot Plor Q)landlnot Q)lor((lnot Plor Q)land R)\=~& (lnot Plandlnot Q)lor((lnot Plor Q)land R)\=&~ ((lnot Plandlnot Q)lor(lnot Plor Q))land((lnot Plandlnot Q)lor R)\=&~ (lnot Plandlnot Q)land((lnot Plandlnot Q)lor R)\=&~ (lnot Plandlnot Q)lor Rend{align}$$






    share|cite|improve this answer











    $endgroup$













    • $begingroup$
      I don't think the second line correct.
      $endgroup$
      – Doug Spoonwood
      Feb 2 at 5:52










    • $begingroup$
      Why the second line $(lnot Pland lnot Q)lor (Pland R)lor (Qlandlnot Q)lor(Rland R)\$ is so?
      $endgroup$
      – JOHN
      Feb 2 at 6:24










    • $begingroup$
      @GrahamKemp I am really sorry. I messed up the symbol in the question. Can you modify the answer again? It is close.
      $endgroup$
      – JOHN
      Feb 2 at 6:49



















    0












    $begingroup$

    One way is to take each pair of expressions and try to reconcile them using known rules, e.g. De Morgan's laws.



    The second approach is brute force, namely using truth tables. Not particularly elegant, but it works.



    In your case, the unknown variables are P, Q and R. You take 2^3 = 8 combinations of true/false for each variable, and check all your formulas yield the same answer.



    You may check this by hand. Example code for Mathematica



    formulaA[p_, q_, r_] := (p~Implies~q)~And~(q~Implies~r);
    formulaB[p_, q_, r_] := (Not[p]~And~r)~And~(Not[q]~Or~r);
    formulaC[p_, q_, r_] := (Not[p]~And~Nor[q])~Or~r;
    BooleanTable[{p, q, r} -> formulaA[p, q, r], {p, q, r}] // TableForm
    BooleanTable[{p, q, r} -> formulaB[p, q, r], {p, q, r}] // TableForm
    BooleanTable[{p, q, r} -> formulaC[p, q, r], {p, q, r}] // TableForm



    It yields something like this. Did you write your first formula correct?



    {p,q,r} -> result



    {True,True,True}->True
    {True,True,False}->False
    {True,False,True}->True
    {True,False,False}->False
    {False,True,True}->True
    {False,True,False}->False
    {False,False,True}->True
    {False,False,False}->True






    share|cite|improve this answer









    $endgroup$





















      0












      $begingroup$

      Work with truth values $1,,0$ instead of true, false, so $Plor Q=max{P,,Q}$. Then the claim is that $P,,Qle R$ is equivalent to $max{P,,Q}le R$, which is trivial.






      share|cite|improve this answer









      $endgroup$














        Your Answer








        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%2f3096945%2fshow-that-p-to-r-land-q-to-r-is-equivalent-to-p-lor-q-to-r%23new-answer', 'question_page');
        }
        );

        Post as a guest















        Required, but never shown

























        4 Answers
        4






        active

        oldest

        votes








        4 Answers
        4






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes









        1












        $begingroup$

        A different approach for the problem is to convert P,Q,R to Boolean variables and form a truth table where $0$ represents False and $1$ represents True.
        begin{array}{|c|c|} hline
        P & Q & R & Prightarrow Q & Qrightarrow R & (Prightarrow Q)land(Q rightarrow R) &Plor Q &(P lor Q)rightarrow R\ hline
        0 & 0 & 0& 1& 1& 1& 0& 1 \ hline
        0 & 0 & 1& 1& 1& 1& 0& 1 \ hline
        0 & 1 & 0& 1& 0& 0& 1& 0 \ hline
        0 & 1 & 1& 1& 1& 1& 1& 1 \ hline
        1 & 0 & 0& 0& 1& 0& 1& 0 \ hline
        1 & 0 & 1& 0& 1& 0& 1& 0 \ hline
        1 & 1 & 0& 1& 0& 0& 1& 0 \ hline
        1 & 1 & 1& 1& 1& 1& 1& 1 \ hline
        end{array}

        So both the statements are equivalent. Hope this helps...
        Another approach is to replace $Prightarrow Q$ by $neg P vee Q$ and solve the expression






        share|cite|improve this answer









        $endgroup$


















          1












          $begingroup$

          A different approach for the problem is to convert P,Q,R to Boolean variables and form a truth table where $0$ represents False and $1$ represents True.
          begin{array}{|c|c|} hline
          P & Q & R & Prightarrow Q & Qrightarrow R & (Prightarrow Q)land(Q rightarrow R) &Plor Q &(P lor Q)rightarrow R\ hline
          0 & 0 & 0& 1& 1& 1& 0& 1 \ hline
          0 & 0 & 1& 1& 1& 1& 0& 1 \ hline
          0 & 1 & 0& 1& 0& 0& 1& 0 \ hline
          0 & 1 & 1& 1& 1& 1& 1& 1 \ hline
          1 & 0 & 0& 0& 1& 0& 1& 0 \ hline
          1 & 0 & 1& 0& 1& 0& 1& 0 \ hline
          1 & 1 & 0& 1& 0& 0& 1& 0 \ hline
          1 & 1 & 1& 1& 1& 1& 1& 1 \ hline
          end{array}

          So both the statements are equivalent. Hope this helps...
          Another approach is to replace $Prightarrow Q$ by $neg P vee Q$ and solve the expression






          share|cite|improve this answer









          $endgroup$
















            1












            1








            1





            $begingroup$

            A different approach for the problem is to convert P,Q,R to Boolean variables and form a truth table where $0$ represents False and $1$ represents True.
            begin{array}{|c|c|} hline
            P & Q & R & Prightarrow Q & Qrightarrow R & (Prightarrow Q)land(Q rightarrow R) &Plor Q &(P lor Q)rightarrow R\ hline
            0 & 0 & 0& 1& 1& 1& 0& 1 \ hline
            0 & 0 & 1& 1& 1& 1& 0& 1 \ hline
            0 & 1 & 0& 1& 0& 0& 1& 0 \ hline
            0 & 1 & 1& 1& 1& 1& 1& 1 \ hline
            1 & 0 & 0& 0& 1& 0& 1& 0 \ hline
            1 & 0 & 1& 0& 1& 0& 1& 0 \ hline
            1 & 1 & 0& 1& 0& 0& 1& 0 \ hline
            1 & 1 & 1& 1& 1& 1& 1& 1 \ hline
            end{array}

            So both the statements are equivalent. Hope this helps...
            Another approach is to replace $Prightarrow Q$ by $neg P vee Q$ and solve the expression






            share|cite|improve this answer









            $endgroup$



            A different approach for the problem is to convert P,Q,R to Boolean variables and form a truth table where $0$ represents False and $1$ represents True.
            begin{array}{|c|c|} hline
            P & Q & R & Prightarrow Q & Qrightarrow R & (Prightarrow Q)land(Q rightarrow R) &Plor Q &(P lor Q)rightarrow R\ hline
            0 & 0 & 0& 1& 1& 1& 0& 1 \ hline
            0 & 0 & 1& 1& 1& 1& 0& 1 \ hline
            0 & 1 & 0& 1& 0& 0& 1& 0 \ hline
            0 & 1 & 1& 1& 1& 1& 1& 1 \ hline
            1 & 0 & 0& 0& 1& 0& 1& 0 \ hline
            1 & 0 & 1& 0& 1& 0& 1& 0 \ hline
            1 & 1 & 0& 1& 0& 0& 1& 0 \ hline
            1 & 1 & 1& 1& 1& 1& 1& 1 \ hline
            end{array}

            So both the statements are equivalent. Hope this helps...
            Another approach is to replace $Prightarrow Q$ by $neg P vee Q$ and solve the expression







            share|cite|improve this answer












            share|cite|improve this answer



            share|cite|improve this answer










            answered Feb 2 at 3:29









            SNEHIL SANYALSNEHIL SANYAL

            668110




            668110























                1












                $begingroup$


                $(P to Q) land (Q to R)$ is equivalent to $(neg P lor R) land (neg Q lor R)$




                No, that is meant to be $(neg P lor Q) land (neg Q lor R)$ .




                which is equivalent to $(neg P land neg Q ) lor R$




                $$begin{align}&(neg P lor Q) land (neg Q lor R)
                \=~&((lnot Plor Q)landlnot Q)lor((lnot Plor Q)land R)\=~& (lnot Plandlnot Q)lor((lnot Plor Q)land R)\=&~ ((lnot Plandlnot Q)lor(lnot Plor Q))land((lnot Plandlnot Q)lor R)\=&~ (lnot Plandlnot Q)land((lnot Plandlnot Q)lor R)\=&~ (lnot Plandlnot Q)lor Rend{align}$$






                share|cite|improve this answer











                $endgroup$













                • $begingroup$
                  I don't think the second line correct.
                  $endgroup$
                  – Doug Spoonwood
                  Feb 2 at 5:52










                • $begingroup$
                  Why the second line $(lnot Pland lnot Q)lor (Pland R)lor (Qlandlnot Q)lor(Rland R)\$ is so?
                  $endgroup$
                  – JOHN
                  Feb 2 at 6:24










                • $begingroup$
                  @GrahamKemp I am really sorry. I messed up the symbol in the question. Can you modify the answer again? It is close.
                  $endgroup$
                  – JOHN
                  Feb 2 at 6:49
















                1












                $begingroup$


                $(P to Q) land (Q to R)$ is equivalent to $(neg P lor R) land (neg Q lor R)$




                No, that is meant to be $(neg P lor Q) land (neg Q lor R)$ .




                which is equivalent to $(neg P land neg Q ) lor R$




                $$begin{align}&(neg P lor Q) land (neg Q lor R)
                \=~&((lnot Plor Q)landlnot Q)lor((lnot Plor Q)land R)\=~& (lnot Plandlnot Q)lor((lnot Plor Q)land R)\=&~ ((lnot Plandlnot Q)lor(lnot Plor Q))land((lnot Plandlnot Q)lor R)\=&~ (lnot Plandlnot Q)land((lnot Plandlnot Q)lor R)\=&~ (lnot Plandlnot Q)lor Rend{align}$$






                share|cite|improve this answer











                $endgroup$













                • $begingroup$
                  I don't think the second line correct.
                  $endgroup$
                  – Doug Spoonwood
                  Feb 2 at 5:52










                • $begingroup$
                  Why the second line $(lnot Pland lnot Q)lor (Pland R)lor (Qlandlnot Q)lor(Rland R)\$ is so?
                  $endgroup$
                  – JOHN
                  Feb 2 at 6:24










                • $begingroup$
                  @GrahamKemp I am really sorry. I messed up the symbol in the question. Can you modify the answer again? It is close.
                  $endgroup$
                  – JOHN
                  Feb 2 at 6:49














                1












                1








                1





                $begingroup$


                $(P to Q) land (Q to R)$ is equivalent to $(neg P lor R) land (neg Q lor R)$




                No, that is meant to be $(neg P lor Q) land (neg Q lor R)$ .




                which is equivalent to $(neg P land neg Q ) lor R$




                $$begin{align}&(neg P lor Q) land (neg Q lor R)
                \=~&((lnot Plor Q)landlnot Q)lor((lnot Plor Q)land R)\=~& (lnot Plandlnot Q)lor((lnot Plor Q)land R)\=&~ ((lnot Plandlnot Q)lor(lnot Plor Q))land((lnot Plandlnot Q)lor R)\=&~ (lnot Plandlnot Q)land((lnot Plandlnot Q)lor R)\=&~ (lnot Plandlnot Q)lor Rend{align}$$






                share|cite|improve this answer











                $endgroup$




                $(P to Q) land (Q to R)$ is equivalent to $(neg P lor R) land (neg Q lor R)$




                No, that is meant to be $(neg P lor Q) land (neg Q lor R)$ .




                which is equivalent to $(neg P land neg Q ) lor R$




                $$begin{align}&(neg P lor Q) land (neg Q lor R)
                \=~&((lnot Plor Q)landlnot Q)lor((lnot Plor Q)land R)\=~& (lnot Plandlnot Q)lor((lnot Plor Q)land R)\=&~ ((lnot Plandlnot Q)lor(lnot Plor Q))land((lnot Plandlnot Q)lor R)\=&~ (lnot Plandlnot Q)land((lnot Plandlnot Q)lor R)\=&~ (lnot Plandlnot Q)lor Rend{align}$$







                share|cite|improve this answer














                share|cite|improve this answer



                share|cite|improve this answer








                edited Feb 2 at 7:03

























                answered Feb 2 at 5:42









                Graham KempGraham Kemp

                87.9k43578




                87.9k43578












                • $begingroup$
                  I don't think the second line correct.
                  $endgroup$
                  – Doug Spoonwood
                  Feb 2 at 5:52










                • $begingroup$
                  Why the second line $(lnot Pland lnot Q)lor (Pland R)lor (Qlandlnot Q)lor(Rland R)\$ is so?
                  $endgroup$
                  – JOHN
                  Feb 2 at 6:24










                • $begingroup$
                  @GrahamKemp I am really sorry. I messed up the symbol in the question. Can you modify the answer again? It is close.
                  $endgroup$
                  – JOHN
                  Feb 2 at 6:49


















                • $begingroup$
                  I don't think the second line correct.
                  $endgroup$
                  – Doug Spoonwood
                  Feb 2 at 5:52










                • $begingroup$
                  Why the second line $(lnot Pland lnot Q)lor (Pland R)lor (Qlandlnot Q)lor(Rland R)\$ is so?
                  $endgroup$
                  – JOHN
                  Feb 2 at 6:24










                • $begingroup$
                  @GrahamKemp I am really sorry. I messed up the symbol in the question. Can you modify the answer again? It is close.
                  $endgroup$
                  – JOHN
                  Feb 2 at 6:49
















                $begingroup$
                I don't think the second line correct.
                $endgroup$
                – Doug Spoonwood
                Feb 2 at 5:52




                $begingroup$
                I don't think the second line correct.
                $endgroup$
                – Doug Spoonwood
                Feb 2 at 5:52












                $begingroup$
                Why the second line $(lnot Pland lnot Q)lor (Pland R)lor (Qlandlnot Q)lor(Rland R)\$ is so?
                $endgroup$
                – JOHN
                Feb 2 at 6:24




                $begingroup$
                Why the second line $(lnot Pland lnot Q)lor (Pland R)lor (Qlandlnot Q)lor(Rland R)\$ is so?
                $endgroup$
                – JOHN
                Feb 2 at 6:24












                $begingroup$
                @GrahamKemp I am really sorry. I messed up the symbol in the question. Can you modify the answer again? It is close.
                $endgroup$
                – JOHN
                Feb 2 at 6:49




                $begingroup$
                @GrahamKemp I am really sorry. I messed up the symbol in the question. Can you modify the answer again? It is close.
                $endgroup$
                – JOHN
                Feb 2 at 6:49











                0












                $begingroup$

                One way is to take each pair of expressions and try to reconcile them using known rules, e.g. De Morgan's laws.



                The second approach is brute force, namely using truth tables. Not particularly elegant, but it works.



                In your case, the unknown variables are P, Q and R. You take 2^3 = 8 combinations of true/false for each variable, and check all your formulas yield the same answer.



                You may check this by hand. Example code for Mathematica



                formulaA[p_, q_, r_] := (p~Implies~q)~And~(q~Implies~r);
                formulaB[p_, q_, r_] := (Not[p]~And~r)~And~(Not[q]~Or~r);
                formulaC[p_, q_, r_] := (Not[p]~And~Nor[q])~Or~r;
                BooleanTable[{p, q, r} -> formulaA[p, q, r], {p, q, r}] // TableForm
                BooleanTable[{p, q, r} -> formulaB[p, q, r], {p, q, r}] // TableForm
                BooleanTable[{p, q, r} -> formulaC[p, q, r], {p, q, r}] // TableForm



                It yields something like this. Did you write your first formula correct?



                {p,q,r} -> result



                {True,True,True}->True
                {True,True,False}->False
                {True,False,True}->True
                {True,False,False}->False
                {False,True,True}->True
                {False,True,False}->False
                {False,False,True}->True
                {False,False,False}->True






                share|cite|improve this answer









                $endgroup$


















                  0












                  $begingroup$

                  One way is to take each pair of expressions and try to reconcile them using known rules, e.g. De Morgan's laws.



                  The second approach is brute force, namely using truth tables. Not particularly elegant, but it works.



                  In your case, the unknown variables are P, Q and R. You take 2^3 = 8 combinations of true/false for each variable, and check all your formulas yield the same answer.



                  You may check this by hand. Example code for Mathematica



                  formulaA[p_, q_, r_] := (p~Implies~q)~And~(q~Implies~r);
                  formulaB[p_, q_, r_] := (Not[p]~And~r)~And~(Not[q]~Or~r);
                  formulaC[p_, q_, r_] := (Not[p]~And~Nor[q])~Or~r;
                  BooleanTable[{p, q, r} -> formulaA[p, q, r], {p, q, r}] // TableForm
                  BooleanTable[{p, q, r} -> formulaB[p, q, r], {p, q, r}] // TableForm
                  BooleanTable[{p, q, r} -> formulaC[p, q, r], {p, q, r}] // TableForm



                  It yields something like this. Did you write your first formula correct?



                  {p,q,r} -> result



                  {True,True,True}->True
                  {True,True,False}->False
                  {True,False,True}->True
                  {True,False,False}->False
                  {False,True,True}->True
                  {False,True,False}->False
                  {False,False,True}->True
                  {False,False,False}->True






                  share|cite|improve this answer









                  $endgroup$
















                    0












                    0








                    0





                    $begingroup$

                    One way is to take each pair of expressions and try to reconcile them using known rules, e.g. De Morgan's laws.



                    The second approach is brute force, namely using truth tables. Not particularly elegant, but it works.



                    In your case, the unknown variables are P, Q and R. You take 2^3 = 8 combinations of true/false for each variable, and check all your formulas yield the same answer.



                    You may check this by hand. Example code for Mathematica



                    formulaA[p_, q_, r_] := (p~Implies~q)~And~(q~Implies~r);
                    formulaB[p_, q_, r_] := (Not[p]~And~r)~And~(Not[q]~Or~r);
                    formulaC[p_, q_, r_] := (Not[p]~And~Nor[q])~Or~r;
                    BooleanTable[{p, q, r} -> formulaA[p, q, r], {p, q, r}] // TableForm
                    BooleanTable[{p, q, r} -> formulaB[p, q, r], {p, q, r}] // TableForm
                    BooleanTable[{p, q, r} -> formulaC[p, q, r], {p, q, r}] // TableForm



                    It yields something like this. Did you write your first formula correct?



                    {p,q,r} -> result



                    {True,True,True}->True
                    {True,True,False}->False
                    {True,False,True}->True
                    {True,False,False}->False
                    {False,True,True}->True
                    {False,True,False}->False
                    {False,False,True}->True
                    {False,False,False}->True






                    share|cite|improve this answer









                    $endgroup$



                    One way is to take each pair of expressions and try to reconcile them using known rules, e.g. De Morgan's laws.



                    The second approach is brute force, namely using truth tables. Not particularly elegant, but it works.



                    In your case, the unknown variables are P, Q and R. You take 2^3 = 8 combinations of true/false for each variable, and check all your formulas yield the same answer.



                    You may check this by hand. Example code for Mathematica



                    formulaA[p_, q_, r_] := (p~Implies~q)~And~(q~Implies~r);
                    formulaB[p_, q_, r_] := (Not[p]~And~r)~And~(Not[q]~Or~r);
                    formulaC[p_, q_, r_] := (Not[p]~And~Nor[q])~Or~r;
                    BooleanTable[{p, q, r} -> formulaA[p, q, r], {p, q, r}] // TableForm
                    BooleanTable[{p, q, r} -> formulaB[p, q, r], {p, q, r}] // TableForm
                    BooleanTable[{p, q, r} -> formulaC[p, q, r], {p, q, r}] // TableForm



                    It yields something like this. Did you write your first formula correct?



                    {p,q,r} -> result



                    {True,True,True}->True
                    {True,True,False}->False
                    {True,False,True}->True
                    {True,False,False}->False
                    {False,True,True}->True
                    {False,True,False}->False
                    {False,False,True}->True
                    {False,False,False}->True







                    share|cite|improve this answer












                    share|cite|improve this answer



                    share|cite|improve this answer










                    answered Feb 2 at 2:27









                    Mikhail DMikhail D

                    36326




                    36326























                        0












                        $begingroup$

                        Work with truth values $1,,0$ instead of true, false, so $Plor Q=max{P,,Q}$. Then the claim is that $P,,Qle R$ is equivalent to $max{P,,Q}le R$, which is trivial.






                        share|cite|improve this answer









                        $endgroup$


















                          0












                          $begingroup$

                          Work with truth values $1,,0$ instead of true, false, so $Plor Q=max{P,,Q}$. Then the claim is that $P,,Qle R$ is equivalent to $max{P,,Q}le R$, which is trivial.






                          share|cite|improve this answer









                          $endgroup$
















                            0












                            0








                            0





                            $begingroup$

                            Work with truth values $1,,0$ instead of true, false, so $Plor Q=max{P,,Q}$. Then the claim is that $P,,Qle R$ is equivalent to $max{P,,Q}le R$, which is trivial.






                            share|cite|improve this answer









                            $endgroup$



                            Work with truth values $1,,0$ instead of true, false, so $Plor Q=max{P,,Q}$. Then the claim is that $P,,Qle R$ is equivalent to $max{P,,Q}le R$, which is trivial.







                            share|cite|improve this answer












                            share|cite|improve this answer



                            share|cite|improve this answer










                            answered Feb 2 at 10:04









                            J.G.J.G.

                            33.3k23252




                            33.3k23252






























                                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%2f3096945%2fshow-that-p-to-r-land-q-to-r-is-equivalent-to-p-lor-q-to-r%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