Interface TermUnifier
- All Superinterfaces:
Substitution
- All Known Implementing Classes:
UnionFindBasedUnifier
A substitution that allows a variable to be mapped to (i.e., unified with) multiple terms, as
long as no two of those terms are constants.
-
Method Summary
Methods inherited from interface edu.harvard.seas.pl.abcdatalog.util.substitution.Substitution
apply, get
-
Method Details
-
unify
Attempts to unify a variable with a term. Returns a boolean representing whether the unification was successful. Unification fails if it would lead to a variable being unified with two distinct constants.- Parameters:
u
- the variablev
- the term- Returns:
- whether the unification was successful
-