Equation
A class representing an Equation of logic terms, to be unified;
LHS stands for Left-Hand side and RHS stands for Right-Hand side, of the Equation
Types
Link copied to clipboard
data class Assignment(val lhs: <ERROR CLASS>, val rhs: <ERROR CLASS>) : Equation
Content copied to clipboard
An equation stating Var = Term
Link copied to clipboard
data class Comparison(val lhs: <ERROR CLASS>, val rhs: <ERROR CLASS>) : Equation
Content copied to clipboard
An equation comparing Terms, possibly different
Link copied to clipboard
data class Contradiction(val lhs: <ERROR CLASS>, val rhs: <ERROR CLASS>) : Equation
Content copied to clipboard
A contradicting equation, trying to equate non equal Terms
Functions
Link copied to clipboard
fun apply(substitution: <ERROR CLASS>, equalityChecker: (<ERROR CLASS>, <ERROR CLASS>) -> Boolean = Term::equals): Equation
Content copied to clipboard
Applies given substitution to the Equation left-hand and right-hand sides, returning the new Equation
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Properties
Inheritors
Extensions
Link copied to clipboard
Link copied to clipboard
Transforms an Equation of a Var with a Term to the corresponding Substitution