Undocumented
Method | __add__ |
Undocumented |
Method | __getslice__ |
Undocumented |
Method | __init__ |
Undocumented |
Method | __repr__ |
Undocumented |
Method | __str__ |
Undocumented |
Method | __sub__ |
Undocumented |
Method | free |
Undocumented |
Method | is |
Self is a tautology if it contains ground terms P and -P. The ground term, P, must be an exact match, ie, not using unification. |
Method | is |
Return True iff every term in 'self' is a term in 'other'. |
Method | replace |
Replace every instance of variable with expression across every atom in the clause |
Method | substitute |
Replace every binding |
Method | subsumes |
Return True iff 'self' subsumes 'other', this is, if there is a substitution such that every term in 'self' can be unified with a term in 'other'. |
Method | unify |
Attempt to unify this Clause with the other, returning a list of resulting, unified, Clauses. |
Instance Variable | _is |
Undocumented |
Instance Variable | _parents |
Undocumented |
Self is a tautology if it contains ground terms P and -P. The ground term, P, must be an exact match, ie, not using unification.
Replace every instance of variable with expression across every atom in the clause
Parameters | |
variable | Variable |
expression | Expression |
Replace every binding
Expressions to which they are bound :return: Clause
Parameters | |
bindings | A list of tuples mapping Variable Expressions to the |
Return True iff 'self' subsumes 'other', this is, if there is a substitution such that every term in 'self' can be unified with a term in 'other'.
Parameters | |
other | Clause |
Returns | |
bool |
Attempt to unify this Clause with the other, returning a list of resulting, unified, Clauses.
during the unification :param used: tuple of two lists of atoms. The first lists the atoms from 'self' that were successfully unified with atoms from 'other'. The second lists the atoms from 'other' that were successfully unified with atoms from 'self'. :param skipped: tuple of two Clause objects. The first is a list of all the atoms from the 'self' Clause that have not been unified with anything on the path. The second is same thing for the 'other' Clause. :param debug: bool indicating whether debug statements should print :return: list containing all the resulting Clause objects that could be obtained by unification
Parameters | |
other | Clause with which to unify |
bindings | BindingDict containing bindings that should be used |
used | Undocumented |
skipped | Undocumented |
debug | Undocumented |