Translate the following inference to logic notation: Richard is not happy. Charles is a doctor if and only if Richard is happy. For all x, if x_17 were a doctor, then x_17 is making tea. For all x, if x_17 makes tea, then x_17 is a doctor. Barbara is a soldier. Therefore Charles is not making tea and Barbara is a soldier.
~p. P(a) <-> p. forall x: P(x) -> Q(x). forall x: Q(x) -> P(x). q. Therefore ~Q(a) and q.