Find the resolvent of the following clause with itself
$p(x) \lor \lnot p(f(a)) \lor q(x)$
Can someone verify if im doing this correct?
Step 1: rename variables
$p(x) \lor \lnot p(f(a)) \lor q(x) \land p(y) \lor \lnot p(f(a)) \lor q(y) $
Step 2: find most general unifier
replace y with f(a)
$p(x) \lor \lnot p(f(a)) \lor q(x) \land p(f(a)) \lor \lnot p(f(a)) \lor q(f(a)) $
step 3:
by resolution rule
$p(x) \lor \lnot p(f(a)) \lor q(x) \lor q(f(a)) $
and why isn't $p(f(a))$ included in the solution? is it because it's the same as $p(x)$ ?
Yes, that's correct.
$p(f(a))$ is not included since you resolved on that, removing $p(f(a))$ from the second clause, and $\neg p(f(a))$ from the first. If you are wondering why there still is a $\neg p(f(a))$ it's because that one was in the second clause as well.
For future efforts, it may be helpful to more clearly separate the clauses. That is, you have:
Clause 1: $p(x) \lor \neg p(f(a)) \lor q(x)$
Clause 2: $p(y) \lor \neg p(f(a)) \lor q(y)$
That way, the $\land$ isn't distracting you.