Session

gapt.provers.Session
object Session

Implementation of proof sessions via the cats free monad. See http://typelevel.org/cats/datatypes/freemonad.html.

Attributes

Source
Session.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Session.type

Members list

Type members

Classlikes

object Runners

Contains various functions for interpreting a value of type Session.

Contains various functions for interpreting a value of type Session.

A "runner" contains a natural transformation from SessionCommand to Id; i.e. a function that can transform any SessionCommand[A] to an Id[A] (= A).

Given such a transformation comp: SessionCommand ~> Id, you can use it to interpret a session program p via p.foldMap(comp).

Attributes

Source
Session.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Runners.type

Attributes

Companion
trait
Source
Session.scala
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
sealed trait SessionCommand[A]

Trait for individual session commands.

Trait for individual session commands.

Type parameters

A

The return type of the command.

Attributes

Companion
object
Source
Session.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Ask
class Assert
object CheckSat.type
class DeclareFun
class DeclareSort
object Pop.type
object Push.type
class SetLogic
class SetOption
class Tell
Show all

Types

type Session[A] = Free[SessionCommand, A]

Attributes

Source
Session.scala

Value members

Concrete methods

Submits an SExpression and receives one in return.

Submits an SExpression and receives one in return.

Attributes

Source
Session.scala

Asserts a formula.

Asserts a formula.

Attributes

Source
Session.scala

Asserts a formula with a label.

Asserts a formula with a label.

Attributes

Source
Session.scala
def assert(formulas: List[Formula]): Session[Unit]

Asserts a list of formulas.

Asserts a list of formulas.

Attributes

Source
Session.scala

Checks whether the current set of declarations and assertions is satisfiable.

Checks whether the current set of declarations and assertions is satisfiable.

Attributes

Source
Session.scala

Checks whether the current set of declarations and assertions is not satisfiable.

Checks whether the current set of declarations and assertions is not satisfiable.

Attributes

Source
Session.scala

Declares a function.

Declares a function.

Attributes

Source
Session.scala

Declares a sort.

Declares a sort.

Attributes

Source
Session.scala

Declares all symbols (sorts and functions) in a list of Exprs.

Declares all symbols (sorts and functions) in a list of Exprs.

Attributes

Source
Session.scala
def declareSymbolsIn(expressions: Expr*)(implicit d: DummyImplicit): Session[Unit]

Declares all symbols (sorts and functions) in a list of Exprs.

Declares all symbols (sorts and functions) in a list of Exprs.

Attributes

Source
Session.scala

Pops the stack, eliminating all assertions and declarations since the last push.

Pops the stack, eliminating all assertions and declarations since the last push.

Attributes

Source
Session.scala
def pure[T](t: T): Session[T]

Attributes

Source
Session.scala

Pushes the current assertions and declarations on the stack.

Pushes the current assertions and declarations on the stack.

Attributes

Source
Session.scala

Sets the logic to be used for the session.

Sets the logic to be used for the session.

Attributes

Source
Session.scala
def setOption(option: String, args: String*): Free[SessionCommand, Unit]

Sets an option to a value.

Sets an option to a value.

Attributes

Source
Session.scala
def skip: Session[Unit]

Attributes

Source
Session.scala

Submits an SExpression without a return.

Submits an SExpression without a return.

Attributes

Source
Session.scala
def when(p: Boolean)(s: Session[Unit]): Session[Unit]

Attributes

Source
Session.scala
def withScope[A](f: Session[A]): Session[A]

Pushes the stack, then runs f, then pops the stack.

Pushes the stack, then runs f, then pops the stack.

Attributes

Source
Session.scala
def wrap[A](before: Session[Unit], f: Session[A], after: Session[Unit]): Session[A]

Encloses the session f between before and after.

Encloses the session f between before and after.

Attributes

Source
Session.scala