class Theory extends Theory0
Models a mathematical theory, i.e. definitions of data types, sorts, constants, etc. (contained in a gapt.proofs.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
- All
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[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
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: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- def formatted(fmtstr: String): String
-
def
fun(c: Const, equations: String*): Unit
- Attributes
- protected
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
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()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- 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(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- def →[B](y: B): (Theory, B)
- object LemmaHandle extends Serializable
This is the API documentation for GAPT.
The main package is gapt.