in Mathematical Logic
646 views
1 vote
1 vote

Que. Consider domain is the set of all people in the world.

$F(x,y) =x \text{ is the friend of y}.$ 

Represent each of the following sentences using first-order logic statements
$1.$ Every person has $at most \ 2$ friends.
$2.$ Every person has $exactly \ 2$ friends.
$3.$ Every person has $at least \ 2$ friends. 
 


My attempt –
$1. \forall x \exists y_1\exists y_2(F(x,y_1) \wedge F(x,y_2) \wedge \forall z(F(x,z) \implies ((z= y_1) \vee (z= y_2))))$
$2. \forall x \exists y_1\exists y_2(F(x,y_1) \wedge F(x,y_2) \wedge (y_1 \neq y_2) \wedge  \forall z(F(x,z) \implies ((z= y_1) \vee (z= y_2))))$
$3. \forall x \exists y_1\exists y_2(F(x,y_1) \wedge F(x,y_2) \wedge (y_1 \neq y_2))$


Please verify. 

 

in Mathematical Logic
646 views

4 Comments

Yes, it covers all the cases now. Thank you so much @Sachin   :)

1
1

@Deepak Poonia sir 

correct me If i am wrong 

in the above formula we have to include the condition (y1=y2) becoz it possible for me to have case like this 

when both y1=y2 and for z which not both y1 and y2 then the implication part results in false then whole stmt results in false but here I just have only 2frds for x 

so that's why we have to include the condition (y1=y2). Correct me If I am wrong sir.

 

1
1

@Lakshmi Narayana404

Yes, you are right. We have seen “At most two” Quantification in this lecture, in detail.

Correct expression will be:

For Statement 1:

 $\forall x \forall y_1 \forall y_2 \forall z (F(x,y_1) \wedge F(x,y_2) \wedge F(x,z) \implies ((z= y_1) \vee (y_1 = y_2) \vee (z= y_2)))$

We have seen ALL these Numerical Quantification in this playlist, in detail.

1
1

Please log in or register to answer this question.

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true