gapt.expr

package gapt.expr

Members list

Packages

package gapt.expr.subst
package gapt.expr.ty
package gapt.expr.util

Type members

Classlikes

class Abs extends Expr

Attributes

Companion
object
Source
typedLambdaCalculus.scala
Supertypes
class Expr
class Object
trait Matchable
class Any
object Abs

Attributes

Companion
class
Source
typedLambdaCalculus.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Abs.type
class App extends Expr

Attributes

Companion
object
Source
typedLambdaCalculus.scala
Supertypes
class Expr
class Object
trait Matchable
class Any
object App

Attributes

Companion
class
Source
typedLambdaCalculus.scala
Supertypes
class Object
trait Matchable
class Any
Self type
App.type
object Apps

Attributes

Source
typedLambdaCalculus.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Apps.type
object BetaReduction extends Normalizer

Attributes

Source
BetaReduction.scala
Supertypes
class Normalizer
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
class Const extends VarOrConst

Attributes

Companion
object
Source
typedLambdaCalculus.scala
Supertypes
trait VarOrConst
class Expr
class Object
trait Matchable
class Any
Known subtypes
trait FOLConst
trait HOLAtomConst
trait FOLAtomConst
trait PropAtom
Show all
object Const

Attributes

Companion
class
Source
typedLambdaCalculus.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Const.type
abstract class Expr

Attributes

Source
typedLambdaCalculus.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait FOLFormula
trait FOLAtom
trait PropAtom
trait PropFormula
trait FOLTerm
trait FOLConst
trait FOLVar
trait FOLAtomConst
trait HOLAtomConst
trait Atom
trait Formula
class Abs
class App
trait VarOrConst
class Const
class Var
Show all
final implicit class ExprNameGenerator(nameGen: NameGenerator) extends AnyVal

Attributes

Source
package.scala
Supertypes
class AnyVal
trait Matchable
class Any
case class Normalizer(rules: Set[ReductionRule])

Attributes

Companion
object
Source
BetaReduction.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
object BetaReduction.type
object Normalizer

Attributes

Companion
class
Source
BetaReduction.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Normalizer.type
case class ReductionRule(lhs: Expr, rhs: Expr)

Attributes

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

Attributes

Companion
class
Source
BetaReduction.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
trait Replaceable[-I, +O]

Attributes

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

Attributes

Companion
trait
Source
TermReplacement.scala
Supertypes
class Object
trait Matchable
class Any
Show all
Self type

Attributes

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

Attributes

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

Attributes

Source
TermReplacement.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Replaceable.type

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

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
Supertypes
class Object
trait Matchable
class Any
Self type
class Var extends VarOrConst

Attributes

Companion
object
Source
typedLambdaCalculus.scala
Supertypes
trait VarOrConst
class Expr
class Object
trait Matchable
class Any
Known subtypes
trait FOLVar
object Var

Attributes

Companion
class
Source
typedLambdaCalculus.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Var.type
trait VarOrConst extends Expr

Attributes

Companion
object
Source
VarOrConst.scala
Supertypes
class Expr
class Object
trait Matchable
class Any
Known subtypes
class Const
trait FOLConst
trait HOLAtomConst
trait FOLAtomConst
trait PropAtom
class Var
trait FOLVar
Show all
object VarOrConst

Matches constants and variables, but nothing else.

Matches constants and variables, but nothing else.

Attributes

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

Attributes

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

Attributes

Source
BetaReduction.scala
Supertypes
class Object
trait Matchable
class Any
Self type
normalize.type
object preExpr

Intermediate representation for expressions without explicit types.

Intermediate representation for expressions without explicit types.

The main application is during parsing: the gapt.formats.babel.BabelParser produces pre-expressions.

This representation is intended to be as simple as possible, all higher-level constructs (such as <-> or ∀) are already desugared into simply-typed lambda terms.

It differs from the "real" lambda calculus in gapt.expr in three major ways:

  1. There are type meta-variables.
  2. There are type annotations.
  3. Free variables, bound variables, and constants are not distinguished; they are all stored as "identifiers".

Attributes

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

Types

Attributes

Source
package.scala

Attributes

Source
package.scala

Attributes

Source
package.scala

Attributes

Source
package.scala

Implicits

Implicits

final implicit def ExprNameGenerator(nameGen: NameGenerator): ExprNameGenerator

Attributes

Source
package.scala
implicit def stringInterpolationForExpressions(sc: StringContext)(implicit file: File, line: Line, sig: BabelSignature): ExpressionParseHelper

Attributes

Source
package.scala