Tests whether a LambdaPosition denotes a HOLPosition for the given expression.
Compares to LambdaExpressions and returns the list of outermost positions where they differ.
Compares to LambdaExpressions 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.LambdaPosition.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 LambdaExpression.
Replaces a a subexpression in a LambdaExpression. 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 exp(pos) should be replaced with.
Replaces a a subexpression in a HOLFormula.
Replaces a a subexpression in a HOLFormula. 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.
Converts a LambdaPosition into the corresponding HOLPosition.
Converts a LambdaPosition into the corresponding HOLPosition.
Note that position conversion is always relative to a given expression.
The relevant LambdaExpression.
The position to be converted.
The corresponding HOLPosition.
Converts a HOLPosition into the corresponding LambdaPosition.
Converts a HOLPosition into the corresponding LambdaPosition.
Note that position conversion is always relative to a given expression.
The relevant LambdaExpression.
The position to be converted.
The corresponding LambdaPosition.
Converts a HOLPosition into the corresponding LambdaPosition, if one exists.
Converts a HOLPosition into the corresponding LambdaPosition, if one exists.
Note that position conversion is always relative to a given expression.
The relevant LambdaExpression.
The position to be converted.
The corresponding LambdaPosition.