TermReplacement

gapt.expr.TermReplacement

A term replacement homomorphically extends a partial function on lambda expressions to all lambda expressions.

This is done on a "best effort" basis. Replacing constants by ground terms of the same type will usually work, anything beyond that might or might not work.

Attributes

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

Members list

Value members

Concrete methods

def apply(term: Expr, what: Expr, by: Expr): Expr

Attributes

Source
TermReplacement.scala
def apply(f: Formula, what: Expr, by: Expr): Formula

Attributes

Source
TermReplacement.scala
def apply[I, O](obj: I, p: PartialFunction[Expr, Expr])(implicit ev: Replaceable[I, O]): O

Attributes

Source
TermReplacement.scala
def apply[T : ClosedUnderReplacement](t: T, replacements: Map[Const, Expr], tyReplacements: Map[TBase, Ty]): T

Attributes

Source
TermReplacement.scala
def hygienic[I, O](obj: I, partialMap: Map[Const, Expr])(implicit ev: Replaceable[I, O]): O

Performs capture-avoiding term replacement.

Performs capture-avoiding term replacement.

If a constant or variable occurs both in the range of partialMap and obj, we rename the occurrence in obj first to something else.

Attributes

Source
TermReplacement.scala

Attributes

Source
TermReplacement.scala