EscargotState

gapt.provers.escargot.impl.EscargotState
class EscargotState(val ctx: MutableContext)

Main class of the Escargot superposition prover.

A practical introduction to superposition provers can be found in [1], Section 3.

Essentially, we start with a set of clauses and apply inferences until we either:

  1. have derived the empty clause, or
  2. applied all possible inferences without producing new clauses

The clauses are stored in various sets, the main two ones are:

  • workedOff: all inferences between clauses in this set have already been applied
  • usable: these clauses have not yet been used in inferences

In every iteration of the prover (see the loop method), we

  1. pick a "given" clause from usable (using the choose method)
  2. perform all inferences between the given clause and all clauses in workedOff 2a. add the given clause to workedOff (unless discarded by an inference)
  3. now newlyDerived contains the newly derived clauses, and we perform preprocessing on them 3a. the preprocessed clauses get moved to usable

(The names are non-standard and picked from different sources with no regard for consistency, sorry.)

Inferences: an InferenceRule is an operation that looks at the given clause, and the set of worked off clauses; it returns a set of new clauses, plus a set of clauses that should be discarded.

For example, StandardInferences.BackwardSubsumption is an inference rule: it returns no new clauses, but the subsumed clauses in usable are returned as discarded.

Avatar splitting: Escargot employs the Avatar splitting regime [2]. Clauses are annotated with propositional assertions, see gapt.proofs.resolution.ResolutionProof for the syntax. We always have a propositional model (avatarModel), and only consider clauses whose assertions are true in this model (called "active" here). Clauses whose assertions are false in the model are stored in locked. Whenever we derive an empty clause, we call the SAT solver to obtain a model in which every empty clause has a false assertion. If there is no such model, then we have found a proof!

[1] Weidenbach, Combining Superposition, Sorts and Splitting. Handbook of Automated Reasoning II, 2001 [2] Voronkov, AVATAR: The Architecture for first-order theorem provers. CAV 2014

Attributes

Source
state.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def DerivedCls(parent: Cls, newProof: ResolutionProof): Cls

Attributes

Source
state.scala
def DerivedCls(parent1: Cls, parent2: Cls, newProof: ResolutionProof): Cls

Attributes

Source
state.scala
def InputCls(clause: HOLSequent): Cls

Attributes

Source
state.scala

Attributes

Source
state.scala
def SimpCls(parent: Cls, newProof: ResolutionProof): Cls

Attributes

Source
state.scala
def addIndex[T <: AnyRef](idx: Index[T]): Unit

Attributes

Source
state.scala

Attributes

Source
state.scala
def choose(): Cls

Chooses the next clause from usable.

Chooses the next clause from usable.

Attributes

Source
state.scala

Moves clauses from newlyDerived into usable and locked.

Moves clauses from newlyDerived into usable and locked.

Attributes

Source
state.scala
def deintern(i: Int): Atom

Attributes

Source
state.scala

Attributes

Source
state.scala

Performs inferences between given and workedOff, and adds given to workedOff.

Performs inferences between given and workedOff, and adds given to workedOff.

Attributes

Source
state.scala
def intern(atom: Atom): Int

Attributes

Source
state.scala
def intern(assertions: HOLClause): Set[Int]

Attributes

Source
state.scala
def isActive(cls: Cls): Boolean

Is the assertion of cls true in the current model?

Is the assertion of cls true in the current model?

Attributes

Source
state.scala
def isActive(assertion: HOLClause): Boolean

Is the assertion true in the current model?

Is the assertion true in the current model?

Attributes

Source
state.scala
def isActive(assertion: Set[Int]): Boolean

Is the assertion true in the current model?

Is the assertion true in the current model?

Attributes

Source
state.scala

Main inference loop.

Main inference loop.

Attributes

Source
state.scala

Attributes

Source
state.scala

Pre-processes the clauses in newlyDerived. The result is again in newlyDerived.

Pre-processes the clauses in newlyDerived. The result is again in newlyDerived.

Attributes

Source
state.scala

This formula should always be unsatisfiable.

This formula should always be unsatisfiable.

Attributes

Source
state.scala

Attributes

Source
state.scala
def trySetAssertion(assertion: Set[Int], value: Boolean): Unit

Attributes

Source
state.scala
def trySetAvatarAtom(atom: Int): Unit

Attributes

Source
state.scala

Concrete fields

Map from assertion atoms to SAT solver atoms

Map from assertion atoms to SAT solver atoms

Attributes

Source
state.scala

Current propositional Avatar model.

Current propositional Avatar model.

Attributes

Source
state.scala

Attributes

Source
state.scala
val drup: Buffer[Line]

Attributes

Source
state.scala

Empty clauses that have already been derived. All assertions in the empty clauses are false.

Empty clauses that have already been derived. All assertions in the empty clauses are false.

Attributes

Source
state.scala

Attributes

Source
state.scala
val locked: Set[(Cls, Option[Set[Int]])]

Locked clauses have assertions that are false in the current model, or are subsumed by a clause whose assertion is true in the current model.

Locked clauses have assertions that are false in the current model, or are subsumed by a clause whose assertion is true in the current model.

The optional clause is the assertion of the subsuming clause.

Attributes

Source
state.scala

Attributes

Source
state.scala

Clauses that have been derived in the current iteration.

Clauses that have been derived in the current iteration.

Attributes

Source
state.scala

Attributes

Source
state.scala
val solver: ISolver

SAT solver instance

SAT solver instance

Attributes

Source
state.scala
var strategy: Int

Attributes

Source
state.scala

Attributes

Source
state.scala
val usable: Set[Cls]

We have not yet used these clauses in inferences.

We have not yet used these clauses in inferences.

Attributes

Source
state.scala

All inferences between these clauses have already been applied.

All inferences between these clauses have already been applied.

Attributes

Source
state.scala