HOLPosition

gapt.expr.formula.hol.HOLPosition
See theHOLPosition companion object
case class HOLPosition(list: List[Int])

Represents a position in a gapt.expr.Expr.

Positions are represented by lists of Integers. The empty list denotes the expression itself. A nonempty list denotes a position in the left or right subexpression according to whether it starts with 1 or 2.

The difference between this and gapt.expr.util.LambdaPosition lies in the handling of quantifiers and binary logical connectives. LambdaPositions treat e.g. conjunctions like any other function, while HOLPositions treat them naturally, i.e. 1 denotes the left conjunct and 2 the right conjunct.

Note that this can cause unexpeted behavior: Say a variable of type o -> o -> o is substituted by ∧ in some expression. The LambdaPositions will stay the same, but the HOLPositions won't.

Value parameters

list

The list of integers describing the position.

Attributes

Companion
object
Source
HOLPosition.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def ::(x: Int): HOLPosition

Attributes

Source
HOLPosition.scala
def head: Int

Attributes

Source
HOLPosition.scala

Attributes

Source
HOLPosition.scala

Attributes

Source
HOLPosition.scala

Attributes

Source
HOLPosition.scala

Attributes

Source
HOLPosition.scala
def toList: List[Int]

Attributes

Source
HOLPosition.scala
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any
Source
HOLPosition.scala

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product