p implies (not q and p)