structurallyEquals

abstract infix fun structurallyEquals(other: Term): Boolean

Checks whether another term is structurally equals to the current one or not. Structural equivalence is a looser type of equivalence (w.r.t. term equivalence) where:

  • numbers are compared by value, e.g. 1 is structurally equal to 1.0

  • variables are always considered equal, e.g. f(X) is structurally equal to f(_)

Return

true if the two terms are structurally equal, or false, otherwise

Parameters

other

is the Term the current Term should be compared with