class Const extends Expr with VarOrConst
- Alphabetic
- By Inheritance
- Const
- VarOrConst
- Expr
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def !==(that: Expr): Formula
- Definition Classes
- Expr
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def &(that: Expr): Formula
- Definition Classes
- Expr
- def +(other: String): String
- def -->(that: Expr): Formula
- Definition Classes
- Expr
- def ->[B](y: B): (Const, B)
- def <->(that: Expr): Formula
- Definition Classes
- Expr
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def ===(that: Expr): Atom
- Definition Classes
- Expr
- def ^(n: Int)(that: Expr): Expr
- Definition Classes
- Expr
- def alphaEquals(that: Expr): Boolean
Alpha-equality.
Alpha-equality.
- that
Lambda expression to compare against.
- returns
whether this lambda expression is equal to that lambda expression modulo alpha-conversion.
- Definition Classes
- Expr
- def alphaEquivalentHashCode: Int
- def apply(that: Iterable[Expr]): Expr
- Definition Classes
- Expr
- def apply(that: Expr*): Expr
- Definition Classes
- Expr
- def apply(pos: HOLPosition): Expr
Retrieves this expression's subexpression at a given position.
Retrieves this expression's subexpression at a given position.
- pos
The position to be retrieved.
- returns
The subexpression at pos.
- Definition Classes
- Expr
- def apply(p: LambdaPosition): Expr
- Definition Classes
- Expr
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- def contains(exp: Expr): Boolean
Tests whether an expression is a subexpression.
Tests whether an expression is a subexpression.
- exp
The subexpression to be found.
- returns
A boolean that is true if exp is a subexpression
- Definition Classes
- Expr
- def ensuring(cond: (Const) => Boolean, msg: => Any): Const
- def ensuring(cond: (Const) => Boolean): Const
- def ensuring(cond: Boolean, msg: => Any): Const
- def ensuring(cond: Boolean): Const
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(a: Any): Boolean
- Definition Classes
- Expr → AnyRef → Any
- def find(exp: Expr): List[HOLPosition]
Finds all HOL positions of a subexpression in this expression.
Finds all HOL positions of a subexpression in this expression.
- exp
The subexpression to be found.
- returns
A list containing all positions where exp occurs.
- Definition Classes
- Expr
- def get(pos: HOLPosition): Option[Expr]
Retrieves this expression's subexpression at a given position, if there is one.
Retrieves this expression's subexpression at a given position, if there is one.
- pos
The position to be retrieved.
- returns
If there is a subexpression at that position, return Some(that expression). Otherwise None.
- Definition Classes
- Expr
- def get(p: LambdaPosition): Option[Expr]
Returns the subexpression at the given position, if it exists.
Returns the subexpression at the given position, if it exists.
- Definition Classes
- Expr
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- val hashCode: Int
- def isDefinedAt(pos: HOLPosition): Boolean
Tests whether this expression has a subexpression at a given position.
Tests whether this expression has a subexpression at a given position.
- pos
The position to be tested.
- returns
Whether this(pos) is defined.
- Definition Classes
- Expr
- def isDefinedAt(p: LambdaPosition): Boolean
Tests whether this Expression has a subexpression at the given position.
Tests whether this Expression has a subexpression at the given position.
- Definition Classes
- Expr
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val name: String
- Definition Classes
- Const → VarOrConst
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- val params: List[Ty]
- def replace(pos: HOLPosition, replacement: Expr): Expr
- Definition Classes
- Expr
- def replace(pos: LambdaPosition, replacement: Expr): Expr
- Definition Classes
- Expr
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def syntaxEquals(e: Expr): Boolean
Syntactic equality (takes names of variables in binders into account).
- def toAsciiString: String
Converts this expression into a 7-bit safe ASCII string.
Converts this expression into a 7-bit safe ASCII string.
The output can be parsed using e.g. the string interpolators, and we guarantee that the expression can be perfectly reconstructed from the string output.
- Definition Classes
- Expr
- def toRawAsciiString: String
- Definition Classes
- Expr
- def toRawString: String
- Definition Classes
- Expr
- def toSigRelativeString(implicit sig: BabelSignature): String
Converts this expression into a string, taking the signature into account.
Converts this expression into a string, taking the signature into account.
This produces a similar output as toString, but will use the variable convention indicated by the signature. That is, if sig defines x to be a constant, then we output just x instead of the default #c(x: i).
- Definition Classes
- Expr
- def toString(): String
Converts this expression into a string.
Converts this expression into a string.
The output can be parsed using e.g. the string interpolators, and we guarantee that the expression can be perfectly reconstructed from the string output.
- Definition Classes
- Expr → AnyRef → Any
- def toUntypedAsciiString(implicit sig: BabelSignature): String
- Definition Classes
- Expr
- def toUntypedString(implicit sig: BabelSignature): String
- Definition Classes
- Expr
- val ty: Ty
Type of this expression (e.g.
- def unary_-: Formula
- Definition Classes
- Expr
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def |(that: Expr): Formula
- Definition Classes
- Expr
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
- def formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from Const toStringFormat[Const] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.12.16) Use
formatString.format(value)
instead ofvalue.formatted(formatString)
, or use thef""
string interpolator. In Java 15 and later,formatted
resolves to the new method in String which has reversed parameters.
- def →[B](y: B): (Const, B)
- Implicit
- This member is added by an implicit conversion from Const toArrowAssoc[Const] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use
->
instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.
This is the API documentation for GAPT.
The main package is gapt.