gapt.expr.subst

package gapt.expr.subst

Members list

Type members

Classlikes

Contains Substitutable instances for expressions that automatically perform β-reduction if the range of the substitution contains a λ-abstraction.

Contains Substitutable instances for expressions that automatically perform β-reduction if the range of the substitution contains a λ-abstraction.

Attributes

Source
ExprSubstWithβ.scala
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Source
ExprSubstWithβ0.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object ExprSubstWithβ.type

Attributes

Source
ExprSubstWithβ1.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object ExprSubstWithβ.type

Attributes

Source
ExprSubstitutable1.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Attributes

Source
ExprSubstitutable2.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Attributes

Source
ExprSubstitutable3.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Attributes

Source
ExprSubstitutable4.scala
Supertypes
class Object
trait Matchable
class Any
Show all
Known subtypes

Attributes

Source
ExprSubstitutable5.scala
Supertypes
class Object
trait Matchable
class Any
Show all
Known subtypes

Attributes

Source
ExprSubstitutable6.scala
Supertypes
class Object
trait Matchable
class Any
Show all
Known subtypes
object Substitutable.type

Attributes

Source
ExprSubstitutable7.scala
Supertypes
class Object
trait Matchable
class Any
Show all
Known subtypes
object Substitutable.type
class FOLSubstitution(val folmap: Map[FOLVar, FOLTerm]) extends Substitution

Attributes

Companion
object
Source
FOLSubstitution.scala
Supertypes
class Substitution
class Object
trait Matchable
class Any

Attributes

Companion
class
Source
FOLSubstitution.scala
Supertypes
class Object
trait Matchable
class Any
Self type
class PreSubstitution(val map: Map[Var, Expr], val typeMap: Map[TVar, Ty])

An unvalidated substitution, you should use Substitution instead.

An unvalidated substitution, you should use Substitution instead.

Attributes

Companion
object
Source
PreSubstitution.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Attributes

Companion
class
Source
PreSubstitution.scala
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Source
SeqSubstitutable.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Substitutable.type
trait Substitutable[-S <: Substitution, -T, +U]

Trait that describes the following relation between types S, T, U: If a substitution of type S is applied to an element of type T, the result will have type U.

Trait that describes the following relation between types S, T, U: If a substitution of type S is applied to an element of type T, the result will have type U.

Type parameters

S

A subtype of Substitution.

T

The input type.

U

The output type.

Attributes

Companion
object
Source
Substitutable.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Attributes

Companion
trait
Source
Substitutable.scala
Supertypes
class Object
trait Matchable
class Any
Show all
Self type
class Substitution(map: Map[Var, Expr], typeMap: Map[TVar, Ty]) extends PreSubstitution

A substitution is a mapping from variables to lambda-expressions which differs from the identity on finitely many variables. Therefore:

A substitution is a mapping from variables to lambda-expressions which differs from the identity on finitely many variables. Therefore:

  1. each variable is mapped to only one lambda expression
  2. the order of the variable-mappings is irrelevant
  3. all variable-mappings are applied simultaneously to a term i.e. {x |-> y, y |-> a}x = y and not a.

As the lambda calculus contains variable binders, substitution can only be defined up to alpha-equivalence. When applying a substitution, bound variables are renamed if needed.

Attributes

Companion
object
Source
Substitution.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Substitution

Attributes

Companion
class
Source
Substitution.scala
Supertypes
class Object
trait Matchable
class Any
Self type