Propositional & Predicate Logic


Answer & solution
Answer: Counterexample p=false, q=true. (no official key was published)
An implication is false precisely when its antecedent is true and consequent false. Set p=false and q=true. Then ¬p ∨ q=true ∨ true=true, but q ⇒ p=true ⇒ false=false. The whole formula is therefore false. One counterexample suffices to refute a tautology; it need not be false on every valuation. Indeed the formula simplifies to p ∨ ¬q: ¬(¬p ∨ q) ∨ (¬q ∨ p)=(p ∧ ¬q) ∨ ¬q ∨ p=p ∨ ¬q. Its values for (p,q)=(F,F),(F,T),(T,F),(T,T) are T,F,T,T.