Attributes
- Companion
- class
- Source
- HOLPosition.scala
- Graph
-
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
HOLPosition.type
Members list
Type members
Inherited types
The names of the product elements
The name of the type
Value members
Concrete methods
Attributes
- Source
- HOLPosition.scala
Tests whether a LambdaPosition denotes a HOLPosition for the given expression.
Tests whether a LambdaPosition denotes a HOLPosition for the given expression.
Attributes
- Source
- HOLPosition.scala
Compares to Exprs and returns the list of outermost positions where they differ.
Compares to Exprs and returns the list of outermost positions where they differ.
Value parameters
- exp1
-
The first expression.
- exp2
-
The second expression.
Attributes
- Returns
-
The list of outermost positions at which exp1 and exp2 differ.
- Source
- HOLPosition.scala
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 gapt.expr.util.LambdaPosition.filterPositions.
Value parameters
- exp
-
The expression under consideration.
- pred
-
The predicate to be evaluated. Defaults to "always true", i.e. if called without this argument, the function will return all positions.
Attributes
- Returns
-
Positions of subexpressions satisfying pred.
- Source
- HOLPosition.scala
Replaces a a subexpression in a Formula. This function is actually a wrapper around util.LambdaPosition.replace.
Replaces a a subexpression in a Formula. This function is actually a wrapper around util.LambdaPosition.replace.
Value parameters
- f
-
The formula in which to perform the replacement.
- pos
-
The position at which to replace.
- repTerm
-
The expression that f(pos) should be replaced with.
Attributes
- Source
- HOLPosition.scala
Replaces a a subexpression in a Expr. This function is actually a wrapper around util.LambdaPosition.replace.
Replaces a a subexpression in a Expr. This function is actually a wrapper around util.LambdaPosition.replace.
Value parameters
- exp
-
The expression in which to perform the replacement.
- pos
-
The position at which to replace.
- repTerm
-
The expression that exp(pos) should be replaced with.
Attributes
- Source
- HOLPosition.scala
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.
Value parameters
- exp
-
The relevant Expr.
- pos
-
The position to be converted.
Attributes
- Returns
-
The corresponding HOLPosition.
- Source
- HOLPosition.scala
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.
Value parameters
- exp
-
The relevant Expr.
- pos
-
The position to be converted.
Attributes
- Returns
-
The corresponding LambdaPosition.
- Source
- HOLPosition.scala
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.
Value parameters
- exp
-
The relevant Expr.
- pos
-
The position to be converted.
Attributes
- Returns
-
The corresponding LambdaPosition.
- Source
- HOLPosition.scala
Attributes
- Source
- HOLPosition.scala