Unificator

interface Unificator

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open fun match(term1: <ERROR CLASS>, term2: <ERROR CLASS>): Boolean

Tells whether two Terms match each other, that is there's a Most General Unifier for them. It performs unification with occur check

open fun match(    term1: <ERROR CLASS>,     term2: <ERROR CLASS>,     occurCheckEnabled: Boolean): Boolean

Tells whether two Terms match each other, that is there's a Most General Unifier for them

Link copied to clipboard
open fun merge(substitution1: <ERROR CLASS>, substitution2: <ERROR CLASS>): <ERROR CLASS>

Merges two Substitutions, with occurs check

abstract fun merge(    substitution1: <ERROR CLASS>,     substitution2: <ERROR CLASS>,     occurCheckEnabled: Boolean): <ERROR CLASS>

Merges two Substitutions

Link copied to clipboard
open fun mgu(term1: <ERROR CLASS>, term2: <ERROR CLASS>): <ERROR CLASS>

Calculates the Most General Unifier of given Terms, enabling occur-check

abstract fun mgu(    term1: <ERROR CLASS>,     term2: <ERROR CLASS>,     occurCheckEnabled: Boolean = true): <ERROR CLASS>

Calculates the Most General Unifier of given Terms, optionally enabling occur-check

Link copied to clipboard
open fun unify(term1: <ERROR CLASS>, term2: <ERROR CLASS>): <ERROR CLASS>?

Unifies two Terms if possible, with occurs check

open fun unify(    term1: <ERROR CLASS>,     term2: <ERROR CLASS>,     occurCheckEnabled: Boolean): <ERROR CLASS>?

Unifies two Terms if possible

Properties

Link copied to clipboard
abstract val context: <ERROR CLASS>

The context (in terms of already present bindings) in which the unification is performed

Inheritors

Link copied to clipboard
Link copied to clipboard