replaceWithContext

gapt.proofs.expansion.replaceWithContext

Replaces terms in an expansion tree according to a replacement context.

Attributes

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

Members list

Value members

Concrete methods

def apply(et: ExpansionTree, replacementContext: Abs, exp: Expr)(implicit ctx: Context): ExpansionTree

Value parameters

et

An expansion tree.

exp

The term to insert for x.

replacementContext

A replacement context, i.e. a lambda expression of the form λx.E.

Attributes

Returns

A new expansion tree where x has been replaced with exp in every node.

Source
positions.scala