class Theory extends Theory0
Models a mathematical theory, i.e. definitions of data types, sorts, constants, etc. (contained in a Context), together with proofs about these objects.
- Source
- logic.scala
- Alphabetic
- By Inheritance
- Theory
- Theory0
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Instance Constructors
Type Members
- case class LemmaHandle(proofName: Expr) extends Product with Serializable
Captures an LKProof together with the set of previous lemmas used in it.
- case class indfn(constName: String, desc: Formula) extends LemmaHelper[Unit] with Product with Serializable
- Attributes
- protected
- case class lemma(openFormula: Formula, attributes: String*) extends LemmaHelper[LemmaHandle] with Product with Serializable
- Attributes
- protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- def ->[B](y: B): (Theory, B)
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def addNow(update: Update): Unit
- Attributes
- protected
- Definition Classes
- Theory0
- def addProof(name: Expr, proof: => LKProof): Unit
- Attributes
- protected
- Definition Classes
- Theory0
- def allProofs: Vector[(String, Eval[DelayedProofResult])]
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def attr(attrNames: String*)(lemmaNames: String*): Unit
Adds a list of attributes to a list of lemmas.
Adds a list of attributes to a list of lemmas.
- Attributes
- protected
- def axiom(f: Formula)(implicit name: Name): Unit
Adds a formula to this theory as an axiom.
Adds a formula to this theory as an axiom.
- Attributes
- protected
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- def const(c: Const): Unit
Adds a constant to this theory's context.
Adds a constant to this theory's context.
- Attributes
- protected
- implicit def ctx: Context
- Definition Classes
- Theory0
- def ctxWithProofDefinitions(): ImmutableContext
- implicit def curCtx: Context
- Attributes
- protected
- def dfn(eqn: Formula): Unit
- Attributes
- protected
- def ensuring(cond: (Theory) => Boolean, msg: => Any): Theory
- def ensuring(cond: (Theory) => Boolean): Theory
- def ensuring(cond: Boolean, msg: => Any): Theory
- def ensuring(cond: Boolean): Theory
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def fun(c: Const, equations: String*): Unit
- Attributes
- protected
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- val imports: List[Theory]
- Definition Classes
- Theory0
- def indTy(ty0: Ty, ctrs: Const*): Unit
- Attributes
- protected
- def infix(operator: String, precedence: Int, leftAssociative: Boolean = true, const: String = null): Unit
Adds an operator as infix notation for an existing constant.
Adds an operator as infix notation for an existing constant.
- operator
The operator to add.
- precedence
The precedence of the operator.
- leftAssociative
Whether the operator associates to the left.
- const
The constant which the operator denotes. If nothing is supplied, it will assumed to have the same name as the operator.
- Attributes
- protected
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def main(args: Array[String]): Unit
- 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()
- def proof(name: String): LKProof
- def proofsHere: Vector[(String, Eval[DelayedProofResult])]
- Definition Classes
- Theory0
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- val transitiveImports: Vector[Theory]
- 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])
- object LemmaHandle extends Serializable
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 Theory toStringFormat[Theory] 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): (Theory, B)
- Implicit
- This member is added by an implicit conversion from Theory toArrowAssoc[Theory] 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.