This is the first sentence that I have to formalize:
"Every student likes at least one type of cake"
Let:
- $S(x)$ stands for 'x is a student'
- $C(x)$ stands for 'x is a type of cake'
- $L(x,y)$ stands for 'x likes y'
My formalisation is:
$\forall x (S(x)\rightarrow \exists y (C(y) \wedge L(x,y)))$
Is it correct? Or should I write:
$\forall x \exists y (S(x)\wedge C(y) \rightarrow L(x,y))$ ?
The second sentence is:
"There is a type of cake such that every student likes it"
Is the following formalisation correct?
$\exists x (C(x) \wedge \forall y (S(y) \rightarrow L(y,x)))$
Many thanks for the help
In short:
To give you some intuition:
$$\forall x \in S\ (\Phi)\quad \text{ is equivalent to } \quad\forall x \big(S(x) \to \Phi\big)$$ $$\exists x \in S\ (\Phi)\quad \text{ is equivalent to } \quad\exists x \big(S(x) \land \Phi\big)$$
I hope this helps $\ddot\smile$