EscargotState
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:
- have derived the empty clause, or
- 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
- pick a "given" clause from usable (using the choose method)
- perform all inferences between the given clause and all clauses in workedOff 2a. add the given clause to workedOff (unless discarded by an inference)
- 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 Objecttrait Matchableclass Any
Members list
Value members
Concrete methods
Attributes
- Source
- state.scala
Attributes
- Source
- state.scala
Attributes
- Source
- state.scala
Attributes
- Source
- state.scala
Attributes
- Source
- state.scala
Attributes
- Source
- state.scala
Attributes
- Source
- state.scala
Chooses the next clause from usable.
Moves clauses from newlyDerived into usable and locked.
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
Attributes
- Source
- state.scala
Attributes
- Source
- state.scala
Is the assertion of cls true in the current model?
Is the assertion true in the current model?
Is the assertion true in the current model?
Main inference loop.
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.
Attributes
- Source
- state.scala
Attributes
- Source
- state.scala
Attributes
- Source
- state.scala
Concrete fields
Map from assertion atoms to SAT solver atoms
Current propositional Avatar model.
Attributes
- Source
- state.scala
Attributes
- Source
- state.scala
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
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.
Attributes
- Source
- state.scala
Attributes
- Source
- state.scala
SAT solver instance
Attributes
- Source
- state.scala
Attributes
- Source
- state.scala
We have not yet used these clauses in inferences.
All inferences between these clauses have already been applied.