HOLPosition

gapt.expr.formula.hol.HOLPosition
See theHOLPosition companion class
object HOLPosition

Attributes

Companion
class
Source
HOLPosition.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
Source
Mirror.scala

The name of the type

The name of the type

Attributes

Inherited from:
Mirror
Source
Mirror.scala

Value members

Concrete methods

def apply(is: Int*): HOLPosition

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
def getPositions(exp: Expr, pred: Expr => Boolean): List[HOLPosition]

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
def replace(f: Formula, pos: HOLPosition, repTerm: Expr): Formula

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
def replace(exp: Expr, pos: HOLPosition, repTerm: Expr): Expr

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
def toList(pos: HOLPosition): List[Int]

Attributes

Source
HOLPosition.scala