object HOLPosition extends Serializable
- Source
- HOLPosition.scala
- Alphabetic
- By Inheritance
- HOLPosition
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def apply(is: Int*): HOLPosition
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate() @throws( ... )
-
def
definesHOLPosition(exp: Expr)(pos: LambdaPosition): Boolean
Tests whether a LambdaPosition denotes a HOLPosition for the given expression.
-
def
differingPositions(exp1: Expr, exp2: Expr): List[HOLPosition]
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.
- exp1
The first expression.
- exp2
The second expression.
- returns
The list of outermost positions at which exp1 and exp2 differ.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
getPositions(exp: Expr, pred: (Expr) ⇒ Boolean = _ => true): 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.LambdaPosition.getPositions.
- 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.
- returns
Positions of subexpressions satisfying pred.
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
replace(exp: Expr, pos: HOLPosition, repTerm: Expr): Expr
Replaces a a subexpression in a Expr.
Replaces a a subexpression in a Expr. This function is actually a wrapper around gapt.expr.LambdaPosition.replace.
- 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.
-
def
replace(f: Formula, pos: HOLPosition, repTerm: Expr): Formula
Replaces a a subexpression in a Formula.
Replaces a a subexpression in a Formula. This function is actually a wrapper around gapt.expr.LambdaPosition.replace.
- 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.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toHOLPosition(exp: Expr)(pos: LambdaPosition): HOLPosition
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.
- exp
The relevant Expr.
- pos
The position to be converted.
- returns
The corresponding HOLPosition.
-
def
toLambdaPosition(exp: Expr)(pos: HOLPosition): LambdaPosition
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.
- exp
The relevant Expr.
- pos
The position to be converted.
- returns
The corresponding LambdaPosition.
-
def
toLambdaPositionOption(exp: Expr)(pos: HOLPosition): Option[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.
- exp
The relevant Expr.
- pos
The position to be converted.
- returns
The corresponding LambdaPosition.
- def toList(pos: HOLPosition): List[Int]
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
This is the API documentation for GAPT.
The main package is gapt.