Propositional & Predicate Logic

Answer & solution
Official answer: C
Worked explanation
Rewrite implication first: p→W is ¬p∨W. Universal quantification then gives ∀x(¬p(x)∨W)≡(∀x¬p(x))∨W≡¬∃x p(x)∨W, which is (∃x p(x))→W, not the universal antecedent printed in C. A countermodel makes the failure tangible: p(u)=true,p(v)=false,W=false. C’s left side fails at u; its right side is true because ∀x p(x) is false. For D, existential quantification instead yields (∃x¬p(x))∨W≡¬∀x p(x)∨W, exactly the printed right side. The side condition that W has no free x is essential when moving W outside a quantifier.
Derivation and answer
Let the domain have two elements, let p be true at one and false at the other, and let W be false. Then ∀x(p(x)→W) is false, while(∀x p(x))→W is true because its antecedent is false. Thus C is not valid. A andB pull an x-independent formula across the corresponding quantifier. D follows from ∃x(¬p(x)∨W)≡¬∀x p(x)∨W in the standard nonempty-domain semantics.