gapt.expr.util

package gapt.expr.util

Members list

Type members

Classlikes

Attributes

Source
ConditionalNormalizer.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class ConditionalReductionRule(conditions: Seq[Formula], lhs: Expr, rhs: Expr)

A conditional rewrite rule.

A conditional rewrite rule.

An instance of this rule can be used to rewrite the left hand side into its right hand side only if the conditions all rewrite to ⊤.

The free variables of the conditions together with those of the right hand side must form a subset of the free variables of the left hand side. The left hand side must not be a variable.

Value parameters

conditions

The conditions of this rewrite rule.

lhs

The left hand side of this rewrite rule.

rhs

The right hand side of this rewrite rule.

Attributes

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

Attributes

Companion
class
Source
ConditionalReductionRule.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Attributes

Companion
class
Source
ExpressionParseHelper.scala
Supertypes
class Object
trait Matchable
class Any
Self type
class ExpressionParseHelper(sc: StringContext, file: File, line: Line, sig: BabelSignature)

Extension class that provides string interpolation functions for various expression types.

Extension class that provides string interpolation functions for various expression types.

Value parameters

sc

A StringContext

Attributes

Companion
object
Source
ExpressionParseHelper.scala
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion
class
Source
LambdaPosition.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class LambdaPosition(list: List[Choice])

Represents a position in a gapt.expr.Expr.

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.

Value parameters

list

The list of integers describing the position.

Attributes

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

Returns the set of all bound variables occurring in the given argument.

Returns the set of all bound variables occurring in the given argument.

Attributes

Source
utils.scala
Supertypes
class Object
trait Matchable
class Any
Self type
object constants

Attributes

Source
utils.scala
Supertypes
class Object
trait Matchable
class Any
Self type
constants.type

Attributes

Source
utils.scala
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Source
utils.scala
Supertypes
class Object
trait Matchable
class Any
Self type
object freeVariables

Returns the set of free variables in the given argument.

Returns the set of free variables in the given argument.

Attributes

Source
utils.scala
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Source
utils.scala
Supertypes
class Object
trait Matchable
class Any
Self type
object isGround

Attributes

Source
utils.scala
Supertypes
class Object
trait Matchable
class Any
Self type
isGround.type
object isInVNF

A lambda term is in variable-normal form (VNF) if different binders bind different variables, and bound variables are disjoint from the free ones.

A lambda term is in variable-normal form (VNF) if different binders bind different variables, and bound variables are disjoint from the free ones.

Attributes

Source
utils.scala
Supertypes
class Object
trait Matchable
class Any
Self type
isInVNF.type

If t = λx₁...λxₘ(y u₁ ... uₚ) is a normal term of type T₁ → ... → Tₙ → U, with U atomic and m ≤ n, then its long normal form is the term

If t = λx₁...λxₘ(y u₁ ... uₚ) is a normal term of type T₁ → ... → Tₙ → U, with U atomic and m ≤ n, then its long normal form is the term

λx₁...λxₘλxₘ₊₁...λxₙ(y u₁'... uₚ' xₘ₊₁' ... xₙ'),

where uᵢ' is the long normal form of uᵢ and xⱼ' is the long normal form of xⱼ.

Implemented according to Definition 2.25, Higher-Order Unification and Matching by Gilles Dowek.

Attributes

Source
longNormalForm.scala
Supertypes
class Object
trait Matchable
class Any
Self type
object rename

get a new variable/constant (similar to the current and) different from all variables/constants in the blackList, returns this variable if this variable is not in the blackList.

get a new variable/constant (similar to the current and) different from all variables/constants in the blackList, returns this variable if this variable is not in the blackList.

Attributes

Source
utils.scala
Supertypes
class Object
trait Matchable
class Any
Self type
rename.type

Creates capture avoiding replacement contexts.

Creates capture avoiding replacement contexts.

Attributes

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

Returns the set of all subterms of the given lambda term.

Returns the set of all subterms of the given lambda term.

Attributes

Source
utils.scala
Supertypes
class Object
trait Matchable
class Any
Self type
subTerms.type
object syntacticMGU

Attributes

Source
syntacticMGU.scala
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Source
syntacticMatching.scala
Supertypes
class Object
trait Matchable
class Any
Self type
object toVNF

Transforms an expression into an alpha-equivalent expression in variable-normal form, where no two binders bind the same variable, and the bound variables are disjoint from the free ones.

Transforms an expression into an alpha-equivalent expression in variable-normal form, where no two binders bind the same variable, and the bound variables are disjoint from the free ones.

Attributes

Source
utils.scala
Supertypes
class Object
trait Matchable
class Any
Self type
toVNF.type
object typeVariables

Attributes

Source
utils.scala
Supertypes
class Object
trait Matchable
class Any
Self type
object variables

Returns the set of all variables occurring in the given argument (including bound variables).

Returns the set of all variables occurring in the given argument (including bound variables).

Attributes

Source
utils.scala
Supertypes
class Object
trait Matchable
class Any
Self type
variables.type