i am trying to find the most general unifier of the following:
1)Daughter(Uncle(y),y), Daughter(Uncle(x),emily)
2)Loves(cat(x),x), Loves(y,y)
what i think:
1)$\theta = [emily/y, x/y]$
2)$\theta = [cat(x)/y,x/y]$ - not sure about this one because of $Loves(cat(x),x), Loves(cat(x),cat(x))$, (would really appreciate help with this).
$s = \text{Daughter}(\text{Uncle}(y),y)$, $t = \text{Daughter}(\text{Uncle}(x),\text{emily})$
$s = \text{Loves}(\text{cat}(x),x)$, $t = \text{Loves}(y,y)$
The third kind of exit condition you could hit would be the clash error, when you have a difference between two non-variable terms, for example $\text{Loves(x,y)}$ vs. $\text{Hates(x,y)}$.