replacementContext

gapt.expr.util.replacementContext

Creates capture avoiding replacement contexts.

Attributes

Source
replacementContext.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

Creates a replacement context.

Creates a replacement context.

Value parameters

exp

The expression φ for which a context is to be created.

t

The term t to be replaced by holes.

Attributes

Returns

An expression of the form λx.φ', where x is a fresh variable and φ' = φ[t/x].

Source
replacementContext.scala
def apply(ty: Ty, exp: Expr, positions: Iterable[LambdaPosition]): ReplacementContext

Creates a replacement context.

Creates a replacement context.

Value parameters

exp

An expression φ for which a context is to be created.

positions

A list of non-overlapping positions p_1, ..., p_n in φ.

ty

The type of the holes.

Attributes

Returns

An expression of the form λx.φ', where x is a fresh variable of type ty and φ' = φ[p_1/x, ..., p_n/x].

Source
replacementContext.scala
def apply(ty: Ty, exp: Expr, positions: Iterable[HOLPosition])(implicit d: DummyImplicit): ReplacementContext

Creates a replacement context.

Creates a replacement context.

Value parameters

exp

An expression φ for which a context is to be created.

positions

A list of non-overlapping positions p_1, ..., p_n in φ.

ty

The type of the holes.

Attributes

Returns

See replacementContext.apply().

Source
replacementContext.scala