Compares two FOLExpressions and returns the list of outermost positions where they differ.
Compares two FOLExpressions and returns the list of outermost positions where they differ.
The first expression.
The second expression.
The list of outermost positions at which exp1 and exp2 differ.
Returns a list of positions of subexpressions that satisfy some predicate.
Returns a list of positions of subexpressions that satisfy some predicate.
This function is a wrapper around at.logic.gapt.expr.hol.HOLPosition.getPositions.
The expression under consideration.
The predicate to be evaluated. Defaults to "always true", i.e. if called without this argument, the function will return all positions.
Positions of subexpressions satisfying pred.
Replaces a a subexpression in a FOLExpression.
Replaces a a subexpression in a FOLExpression. This function is actually a wrapper around at.logic.gapt.expr.LambdaPosition.replace.
The expression in which to perform the replacement.
The position at which to replace.
The expression that f(pos) should be replaced with.
Replaces a a subexpression in a FOLFormula.
Replaces a a subexpression in a FOLFormula. This function is actually a wrapper around at.logic.gapt.expr.LambdaPosition.replace.
The formula in which to perform the replacement.
The position at which to replace.
The expression that f(pos) should be replaced with.