Contents
Page-10
Prev
Next
Page+10
Index
Examples of Unification
Consider unifying the literal P(x, g(x)) with:
- P(z,y) : unifies with {x/z, g(x)/y}
- P(z, g(z)): unifies with {x/z} or {z/x}
- P(Socrates, g(Socrates)) : unifies, {Socrates/x}
- P(z, g(y)): unifies with {x/z, x/y} or {z/x, z/y}
- P(g(y), z): unifies with {g(y)/x, g(g(y))/z}
- P(Socrates, f(Socrates)) : does not unify: f and g do not match.
- P(g(y), y) : does not unify: no substitution works.