match

open fun match(term1: Term, term2: Term, occurCheckEnabled: Boolean): Boolean

Tells whether term1 and term2 match each other, that is, whether mgu would succeed for them, optionally enabling occurs-check.


open fun match(term1: Term, term2: Term): Boolean

Tells whether term1 and term2 match each other, that is, whether mgu would succeed for them. Performs unification with occurs-check enabled.