how to convert from english to predicate logic

44 Views Asked by At

I need help converting this sentence to predicate logic: 'Every boy who loves all girls does not love every boy'

1

There are 1 best solutions below

0
On

B is the set of all boys

G is the set of all girls

L(x, y) is read as "x likes y"

The statement will be:

$\forall x\in B(\forall y\in G:L(x, y)\implies\neg\forall z\in B:L(x, z))$

Or equivalently:

$\forall x\in B(\forall y\in G:L(x, y)\implies\exists z\in B:\neg L(x, z))$