Translate the following inference to logic notation: For all x, z will cook. William is playing tennis if and only if John is drinking water. For all x, if z drinks water, then z is not cooking. Therefore William is not playing tennis.
forall x: P(x). p <-> Q(a). forall x: Q(x) -> ~P(x). Therefore ~p.