AbstractUnificator

abstract class AbstractUnificator @JvmOverloads() constructor(context: Substitution) : Unificator

Functions

match
Link copied to clipboard
open fun match(term1: Term, term2: Term): Boolean
Tells whether two Terms match each other, that is there's a Most General Unifier for them.
open fun match(term1: Term, term2: Term, occurCheckEnabled: Boolean): Boolean
Tells whether two Terms match each other, that is there's a Most General Unifier for them
merge
Link copied to clipboard
open fun merge(substitution1: Substitution, substitution2: Substitution): Substitution
Merges two Substitutions, with occurs check
open override fun merge(substitution1: Substitution, substitution2: Substitution, occurCheckEnabled: Boolean): Substitution
Merges two Substitutions
mgu
Link copied to clipboard
open fun mgu(term1: Term, term2: Term): Substitution
Calculates the Most General Unifier of given Terms, enabling occur-check
open override fun mgu(term1: Term, term2: Term, occurCheckEnabled: Boolean): Substitution
Calculates the Most General Unifier of given Terms, optionally enabling occur-check
unify
Link copied to clipboard
open fun unify(term1: Term, term2: Term): Term?
Unifies two Terms if possible, with occurs check
open fun unify(term1: Term, term2: Term, occurCheckEnabled: Boolean): Term?
Unifies two Terms if possible

Properties

context
Link copied to clipboard
open override val context: Substitution
The context (in terms of already present bindings) in which the unification is performed