Hello I have the following formula that I need to transform to a normal form required for the resolution rule. I understand that this from is a sum of OR's as in: $(V1 \lor V2 ) \land ( V3 \lor V4 ) )$
The formula:
$\forall x \forall y \bigl[P(x,y) \Rightarrow \exists z [Q(y,z] \land \lnot R(x,z)]\bigl] \lor \forall z Q(x,y,z)$
so, I use Skolem to substitute $\exists z$ with a constant A, then removed the universal quantifiers and following the general logic rules I came up with this:
$\bigl( \lnot P(x,y) \lor Q(y,A) \lor Q(x,y,z) \bigl) \land \bigl( \lnot P(x,y) \lor R(x,A) \lor Q(x,y,z) \bigl)$
Or should I first move the right most $\forall z$ to the left and then through skolem substitute the $\exists z$ with a function f(z) ?
$\bigl( \lnot P(x,y) \lor Q(y,f(z)) \lor Q(x,y,f(z)) \bigl) \land \bigl( \lnot P(x,y) \lor R(x,f(z)) \lor Q(x,y,f(z)) \bigl)$
Which solution is correct?
The safe way to proceed is to rename one of the z's. Next notice that the choice of z in the existential quantifier depends on x and y. Hence you need a Skolem function of both x and y. so if we rename the right most z to v we get: ∀x∀y[P(x,y)⇒∃z[q(y,z)∧¬R(x,z)] ]∨∀vQ(x,y,v) and later substitute ∃z with f(x,y) the CNF that we get is [¬P(x,y)∨Q(y,f(x,y))∨q(x,y,v)]∧[¬P(x,y)∨R(x,f(x,y)∨Q(x,y,v)]