I'm trying to translate the following $3$ sentences from English to predicate logic.
If anyone on the plane is small, then everyone on the plane is not from USA.
- $A$ = on the plane
- $B$ = is small
- $C$ = from USA
$$\forall x \left( A(x) \to B(x) \to (\neg \square x A(x) \to C(x) )\right)$$
People on the plane don't like people on the ground.
- $A$ = people on the plane
- $B$ = don’t like
- $C$ = people on the ground
$$\forall x \exists y (A(x,y) \rightarrow B = C(x,y))$$
Everyone on the plane loves each other, but no one else.
- $A$ = Everyone on the plane
- $B$ = loves each other
- $C$ = but no one else
$$\forall x(A \ \mathrm { love } \ (B)\rightarrow \neg\exists x \ \mathrm { love } \ (C))$$
Is this correct? If not, what would the correct answers be? I've been trying for hours and this is the best I could come up with. Thank you!
You're very close on the first one, but it does have a few problems:
First, recognize that the statement is an 'if ... then ...' statement, where both the 'if' part and the 'then' part are quantificational statements. Also, 'if there is any one ...' means: 'If there is someone ...'. So, break it up as:
'Someone on the plane is small' $\rightarrow$ 'everyone on the plane is not from the USA'
Now, 'Someone on the plane is small' translates to:
$\exists x (A(x) \land B(x))$
the second subsentence is:
$\forall x (A(x) \rightarrow \neg C(x))$
OK, so plug those in and you get:
$\exists x (A(x) \land B(x)) \rightarrow \forall x (A(x) \rightarrow \neg C(x))$
Also, I would recommend that you use more 'informative' letters. For example, use:
$S(x)$: '$x$ is small'
$P(x)$: '$x$ is on the plane'
$U(x)$: '$x$ is from USA
So then the sentence becomes:
$\exists x (P(x) \land S(x)) \rightarrow \forall x (P(x) \rightarrow \neg U(x))$