checking validity of given first order logic

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












Apologies if this question is already posted.As it is hard to search $LaTeX$ in google and first order logic in nothing without $LaTeX$ .But i am sure i have different doubt than that of already posted one!



Question




Check if the given formula is valid or not.



$1.forall x exists y P(x,y) Rightarrow exists y forall x P(x,y)$



$2.forall x (P(x) Rightarrow Q(x))Rightarrow left ( forall x P(x) Rightarrow forall x Q(x) right )$




My Approach




$1.forall x exists y P(x,y) Rightarrow exists y forall x P(x,y)$




$x=textset of all boys$



$y=textset of all girls$



$P(x,y)=textx loves y$



LHS=All boys loves some girls



RHS=some girl is loved by every boy.
Hence $LHS rightarrow RHS $ is not valid as LHS=true and RHS=false




$2.forall x (P(x) Rightarrow Q(x))Rightarrow left ( forall x P(x) Rightarrow forall x Q(x) right )$




$x=textset of natural numbers$



$P(x)=x textwhich is multiple of 4$



$Q(x)= textEven natural numbers $



LHS= $forall x (P(x) Rightarrow Q(x))$ which is always true.



RHS=$left ( forall x P(x) Rightarrow forall x Q(x) right )$



which says that if everything is multiple of $4$ then everything is even which is not true.



Hence $LHS rightarrow RHS $ is not valid as LHS=true and RHS=false



But i feel that $2$ is incorrect.
Please help!







share|cite|improve this question





















  • Why you are using $ne$ ? In order to check if a FOL formula is valid or not you have to consider possible interpretation; more specifically, for a formula with a conditional ($Rightarrow$), if you can find an int where the LHS is TRUE and the RHS is FALSE, then you jave showed that the formula is not valid.
    – Mauro ALLEGRANZA
    Jul 20 at 8:19






  • 1




    Applying it to your example 2 above, we have that (in the RHS) $forall x P(x)$ is FALSE, because it is not true that every natural number is a multiple of $4$ and thus the RHS $forall x P(x) Rightarrow forall x Q(x)$ is TRUE.
    – Mauro ALLEGRANZA
    Jul 20 at 8:21










  • @MauroALLEGRANZA by $neq$ i meant $true Rightarrow false $ only ..thanks byw ...i updated it !
    – laura
    Jul 20 at 8:22







  • 1




    So again: in 2 the LHS is TRUE while the RHS is FALSE $Rightarrow$ FALSE, which is TRUE.
    – Mauro ALLEGRANZA
    Jul 20 at 8:26






  • 1




    By the way, 2 is valid: try with a proof by contradiction: assume LHS TRUE and assume that RHS is FALSE, that means: $forall x Px$ is TRUE and $forall x Qx$ is FALSE, and see what happens.
    – Mauro ALLEGRANZA
    Jul 20 at 8:27















up vote
0
down vote

favorite












Apologies if this question is already posted.As it is hard to search $LaTeX$ in google and first order logic in nothing without $LaTeX$ .But i am sure i have different doubt than that of already posted one!



Question




Check if the given formula is valid or not.



$1.forall x exists y P(x,y) Rightarrow exists y forall x P(x,y)$



$2.forall x (P(x) Rightarrow Q(x))Rightarrow left ( forall x P(x) Rightarrow forall x Q(x) right )$




My Approach




$1.forall x exists y P(x,y) Rightarrow exists y forall x P(x,y)$




$x=textset of all boys$



$y=textset of all girls$



$P(x,y)=textx loves y$



LHS=All boys loves some girls



RHS=some girl is loved by every boy.
Hence $LHS rightarrow RHS $ is not valid as LHS=true and RHS=false




$2.forall x (P(x) Rightarrow Q(x))Rightarrow left ( forall x P(x) Rightarrow forall x Q(x) right )$




$x=textset of natural numbers$



$P(x)=x textwhich is multiple of 4$



$Q(x)= textEven natural numbers $



LHS= $forall x (P(x) Rightarrow Q(x))$ which is always true.



RHS=$left ( forall x P(x) Rightarrow forall x Q(x) right )$



which says that if everything is multiple of $4$ then everything is even which is not true.



Hence $LHS rightarrow RHS $ is not valid as LHS=true and RHS=false



But i feel that $2$ is incorrect.
Please help!







share|cite|improve this question





















  • Why you are using $ne$ ? In order to check if a FOL formula is valid or not you have to consider possible interpretation; more specifically, for a formula with a conditional ($Rightarrow$), if you can find an int where the LHS is TRUE and the RHS is FALSE, then you jave showed that the formula is not valid.
    – Mauro ALLEGRANZA
    Jul 20 at 8:19






  • 1




    Applying it to your example 2 above, we have that (in the RHS) $forall x P(x)$ is FALSE, because it is not true that every natural number is a multiple of $4$ and thus the RHS $forall x P(x) Rightarrow forall x Q(x)$ is TRUE.
    – Mauro ALLEGRANZA
    Jul 20 at 8:21










  • @MauroALLEGRANZA by $neq$ i meant $true Rightarrow false $ only ..thanks byw ...i updated it !
    – laura
    Jul 20 at 8:22







  • 1




    So again: in 2 the LHS is TRUE while the RHS is FALSE $Rightarrow$ FALSE, which is TRUE.
    – Mauro ALLEGRANZA
    Jul 20 at 8:26






  • 1




    By the way, 2 is valid: try with a proof by contradiction: assume LHS TRUE and assume that RHS is FALSE, that means: $forall x Px$ is TRUE and $forall x Qx$ is FALSE, and see what happens.
    – Mauro ALLEGRANZA
    Jul 20 at 8:27













up vote
0
down vote

favorite









up vote
0
down vote

favorite











Apologies if this question is already posted.As it is hard to search $LaTeX$ in google and first order logic in nothing without $LaTeX$ .But i am sure i have different doubt than that of already posted one!



Question




Check if the given formula is valid or not.



$1.forall x exists y P(x,y) Rightarrow exists y forall x P(x,y)$



$2.forall x (P(x) Rightarrow Q(x))Rightarrow left ( forall x P(x) Rightarrow forall x Q(x) right )$




My Approach




$1.forall x exists y P(x,y) Rightarrow exists y forall x P(x,y)$




$x=textset of all boys$



$y=textset of all girls$



$P(x,y)=textx loves y$



LHS=All boys loves some girls



RHS=some girl is loved by every boy.
Hence $LHS rightarrow RHS $ is not valid as LHS=true and RHS=false




$2.forall x (P(x) Rightarrow Q(x))Rightarrow left ( forall x P(x) Rightarrow forall x Q(x) right )$




$x=textset of natural numbers$



$P(x)=x textwhich is multiple of 4$



$Q(x)= textEven natural numbers $



LHS= $forall x (P(x) Rightarrow Q(x))$ which is always true.



RHS=$left ( forall x P(x) Rightarrow forall x Q(x) right )$



which says that if everything is multiple of $4$ then everything is even which is not true.



Hence $LHS rightarrow RHS $ is not valid as LHS=true and RHS=false



But i feel that $2$ is incorrect.
Please help!







share|cite|improve this question













Apologies if this question is already posted.As it is hard to search $LaTeX$ in google and first order logic in nothing without $LaTeX$ .But i am sure i have different doubt than that of already posted one!



Question




Check if the given formula is valid or not.



$1.forall x exists y P(x,y) Rightarrow exists y forall x P(x,y)$



$2.forall x (P(x) Rightarrow Q(x))Rightarrow left ( forall x P(x) Rightarrow forall x Q(x) right )$




My Approach




$1.forall x exists y P(x,y) Rightarrow exists y forall x P(x,y)$




$x=textset of all boys$



$y=textset of all girls$



$P(x,y)=textx loves y$



LHS=All boys loves some girls



RHS=some girl is loved by every boy.
Hence $LHS rightarrow RHS $ is not valid as LHS=true and RHS=false




$2.forall x (P(x) Rightarrow Q(x))Rightarrow left ( forall x P(x) Rightarrow forall x Q(x) right )$




$x=textset of natural numbers$



$P(x)=x textwhich is multiple of 4$



$Q(x)= textEven natural numbers $



LHS= $forall x (P(x) Rightarrow Q(x))$ which is always true.



RHS=$left ( forall x P(x) Rightarrow forall x Q(x) right )$



which says that if everything is multiple of $4$ then everything is even which is not true.



Hence $LHS rightarrow RHS $ is not valid as LHS=true and RHS=false



But i feel that $2$ is incorrect.
Please help!









share|cite|improve this question












share|cite|improve this question




share|cite|improve this question








edited Jul 20 at 9:32









Mauro ALLEGRANZA

60.7k346105




60.7k346105









asked Jul 20 at 8:13









laura

1,238521




1,238521











  • Why you are using $ne$ ? In order to check if a FOL formula is valid or not you have to consider possible interpretation; more specifically, for a formula with a conditional ($Rightarrow$), if you can find an int where the LHS is TRUE and the RHS is FALSE, then you jave showed that the formula is not valid.
    – Mauro ALLEGRANZA
    Jul 20 at 8:19






  • 1




    Applying it to your example 2 above, we have that (in the RHS) $forall x P(x)$ is FALSE, because it is not true that every natural number is a multiple of $4$ and thus the RHS $forall x P(x) Rightarrow forall x Q(x)$ is TRUE.
    – Mauro ALLEGRANZA
    Jul 20 at 8:21










  • @MauroALLEGRANZA by $neq$ i meant $true Rightarrow false $ only ..thanks byw ...i updated it !
    – laura
    Jul 20 at 8:22







  • 1




    So again: in 2 the LHS is TRUE while the RHS is FALSE $Rightarrow$ FALSE, which is TRUE.
    – Mauro ALLEGRANZA
    Jul 20 at 8:26






  • 1




    By the way, 2 is valid: try with a proof by contradiction: assume LHS TRUE and assume that RHS is FALSE, that means: $forall x Px$ is TRUE and $forall x Qx$ is FALSE, and see what happens.
    – Mauro ALLEGRANZA
    Jul 20 at 8:27

















  • Why you are using $ne$ ? In order to check if a FOL formula is valid or not you have to consider possible interpretation; more specifically, for a formula with a conditional ($Rightarrow$), if you can find an int where the LHS is TRUE and the RHS is FALSE, then you jave showed that the formula is not valid.
    – Mauro ALLEGRANZA
    Jul 20 at 8:19






  • 1




    Applying it to your example 2 above, we have that (in the RHS) $forall x P(x)$ is FALSE, because it is not true that every natural number is a multiple of $4$ and thus the RHS $forall x P(x) Rightarrow forall x Q(x)$ is TRUE.
    – Mauro ALLEGRANZA
    Jul 20 at 8:21










  • @MauroALLEGRANZA by $neq$ i meant $true Rightarrow false $ only ..thanks byw ...i updated it !
    – laura
    Jul 20 at 8:22







  • 1




    So again: in 2 the LHS is TRUE while the RHS is FALSE $Rightarrow$ FALSE, which is TRUE.
    – Mauro ALLEGRANZA
    Jul 20 at 8:26






  • 1




    By the way, 2 is valid: try with a proof by contradiction: assume LHS TRUE and assume that RHS is FALSE, that means: $forall x Px$ is TRUE and $forall x Qx$ is FALSE, and see what happens.
    – Mauro ALLEGRANZA
    Jul 20 at 8:27
















Why you are using $ne$ ? In order to check if a FOL formula is valid or not you have to consider possible interpretation; more specifically, for a formula with a conditional ($Rightarrow$), if you can find an int where the LHS is TRUE and the RHS is FALSE, then you jave showed that the formula is not valid.
– Mauro ALLEGRANZA
Jul 20 at 8:19




Why you are using $ne$ ? In order to check if a FOL formula is valid or not you have to consider possible interpretation; more specifically, for a formula with a conditional ($Rightarrow$), if you can find an int where the LHS is TRUE and the RHS is FALSE, then you jave showed that the formula is not valid.
– Mauro ALLEGRANZA
Jul 20 at 8:19




1




1




Applying it to your example 2 above, we have that (in the RHS) $forall x P(x)$ is FALSE, because it is not true that every natural number is a multiple of $4$ and thus the RHS $forall x P(x) Rightarrow forall x Q(x)$ is TRUE.
– Mauro ALLEGRANZA
Jul 20 at 8:21




Applying it to your example 2 above, we have that (in the RHS) $forall x P(x)$ is FALSE, because it is not true that every natural number is a multiple of $4$ and thus the RHS $forall x P(x) Rightarrow forall x Q(x)$ is TRUE.
– Mauro ALLEGRANZA
Jul 20 at 8:21












@MauroALLEGRANZA by $neq$ i meant $true Rightarrow false $ only ..thanks byw ...i updated it !
– laura
Jul 20 at 8:22





@MauroALLEGRANZA by $neq$ i meant $true Rightarrow false $ only ..thanks byw ...i updated it !
– laura
Jul 20 at 8:22





1




1




So again: in 2 the LHS is TRUE while the RHS is FALSE $Rightarrow$ FALSE, which is TRUE.
– Mauro ALLEGRANZA
Jul 20 at 8:26




So again: in 2 the LHS is TRUE while the RHS is FALSE $Rightarrow$ FALSE, which is TRUE.
– Mauro ALLEGRANZA
Jul 20 at 8:26




1




1




By the way, 2 is valid: try with a proof by contradiction: assume LHS TRUE and assume that RHS is FALSE, that means: $forall x Px$ is TRUE and $forall x Qx$ is FALSE, and see what happens.
– Mauro ALLEGRANZA
Jul 20 at 8:27





By the way, 2 is valid: try with a proof by contradiction: assume LHS TRUE and assume that RHS is FALSE, that means: $forall x Px$ is TRUE and $forall x Qx$ is FALSE, and see what happens.
– Mauro ALLEGRANZA
Jul 20 at 8:27
















active

oldest

votes











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',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
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%2f2857410%2fchecking-validity-of-given-first-order-logic%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes










 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2857410%2fchecking-validity-of-given-first-order-logic%23new-answer', 'question_page');

);

Post as a guest













































































Comments

Popular posts from this blog

What is the equation of a 3D cone with generalised tilt?

Color the edges and diagonals of a regular polygon

Relationship between determinant of matrix and determinant of adjoint?