Translate the following inference to logic notation: For all x, if y sleeps, then y is a carpenter. For all x, if y were a sailor, then y is a carpenter. For all x, if y were a carpenter, then y is sleeping. For all x, if y sleeps, then y is a sailor. Therefore for all x, if y were a sailor, then y is sleeping.
forall x: P(x) -> Q(x). forall x: R(x) -> Q(x). forall x: Q(x) -> P(x). forall x: P(x) -> R(x). Therefore forall x: R(x) -> P(x).