gapt.provers.escargot.impl

Members list

Type members

Classlikes

Attributes

Source
inferences.scala
Supertypes
class Object
trait Matchable
class Any
Self type
case class ClauseFeatureVec(numLitsNeg: Int, numLitsPos: Int, featNeg: TermFeatureVec, featPos: TermFeatureVec)

Attributes

Companion
object
Source
features.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
features.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
class Cls(val state: EscargotState, val proof: ResolutionProof, val index: Int)

Data structure for clauses derived in Escargot.

Data structure for clauses derived in Escargot.

Value parameters

index

Serial number issued by the EscargotState. The index is a deterministic hash code, and also indicates how old the clause is.

proof

Resolution proof ending in this clause.

state

Prover state that "produced" this clause.

Attributes

Source
state.scala
Supertypes
class Object
trait Matchable
class Any
sealed trait DiscrTree[+T]

Attributes

Companion
object
Source
indexing.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Leaf[T]
class Node[T]
object DiscrTree

Attributes

Companion
trait
Source
indexing.scala
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
DiscrTree.type
object EscargotLogger extends Logger

Attributes

Source
state.scala
Supertypes
class Logger
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
class EscargotState(val ctx: MutableContext)

Main class of the Escargot superposition prover.

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
Supertypes
class Object
trait Matchable
class Any

Attributes

Source
inferences.scala
Supertypes
class Object
trait Matchable
class Any
Self type
final class Frequencies(arr: Array[Int]) extends AnyVal

Attributes

Companion
object
Source
features.scala
Supertypes
class AnyVal
trait Matchable
class Any
object Frequencies

Attributes

Companion
class
Source
features.scala
Supertypes
class Object
trait Matchable
class Any
Self type
class FrequenciesBuilder(var arr: Array[Int])

Attributes

Source
features.scala
Supertypes
class Object
trait Matchable
class Any
trait Index[T]

Attributes

Source
state.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object MaxPosLitIndex.type
object SelectedLitIndex.type
object ReflModEqIndex.type
object UnitRwrLhsIndex.type
Show all

Attributes

Companion
object
Source
state.scala
Supertypes
class Object
trait Matchable
class Any
object IndexedClsSet

Attributes

Companion
class
Source
state.scala
Supertypes
class Object
trait Matchable
class Any
Self type

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.

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.

Attributes

Source
inferences.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object ForwardSubsumption.type
object ReflModEqDeletion.type
object ReflexivityDeletion.type
object TautologyDeletion.type
object ClauseFactoring.type
object EqualityResolution.type
object ForwardUnitRewriting.type
object OrderEquations.type
object AvatarSplitting.type
object BackwardSubsumption.type
object BackwardUnitRewriting.type
object Clausification.type
object Factoring.type
object OrderedResolution.type
object Superposition.type
Show all

Attributes

Source
inferences.scala
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Source
inferences.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object ForwardSubsumption.type
object ReflModEqDeletion.type
object ReflexivityDeletion.type
object TautologyDeletion.type
object ClauseFactoring.type
object EqualityResolution.type
object ForwardUnitRewriting.type
object OrderEquations.type
object AvatarSplitting.type
object BackwardSubsumption.type
object BackwardUnitRewriting.type
object Clausification.type
object Factoring.type
object OrderedResolution.type
object Superposition.type
object DuplicateDeletion.type
Show all

Attributes

Source
inferences.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object ForwardSubsumption.type
object ReflModEqDeletion.type
object ReflexivityDeletion.type
object TautologyDeletion.type

Attributes

Source
inferences.scala
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Source
inferences.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object ClauseFactoring.type
object EqualityResolution.type
object ForwardUnitRewriting.type
object OrderEquations.type
class StandardInferences(state: EscargotState, propositional: Boolean)

Attributes

Source
inferences.scala
Supertypes
class Object
trait Matchable
class Any
case class TermFeatureVec(depth: Int, numConsts: Int, freqConsts: Frequencies)

Attributes

Companion
object
Source
features.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
features.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
final class TermString(stack: List[Any]) extends AnyVal

Attributes

Companion
object
Source
indexing.scala
Supertypes
class AnyVal
trait Matchable
class Any
object TermString

Attributes

Companion
class
Source
indexing.scala
Supertypes
class Object
trait Matchable
class Any
Self type
TermString.type

Attributes

Source
inferences.scala
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Source
features.scala
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Source
inferences.scala
Supertypes
class Object
trait Matchable
class Any
Self type