scan

gapt.logic.hol.scan
object scan

Attributes

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

Members list

Type members

Classlikes

A SCAN derivation

A SCAN derivation

Value parameters

derivationSteps

the derivation steps performed

from

the initial predicate elimination problem from which we start

Attributes

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

Attributes

Companion
class
Source
scan.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Derivation.type

One step of a SCAN derivation

One step of a SCAN derivation

Attributes

Source
scan.scala
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class PointedClause(clause: HOLClause, index: SequentIndex)

A pointed clause (in analogy to pointed sets in mathematics) is a clause together with a choice of one of its literals, called the designated literal.

A pointed clause (in analogy to pointed sets in mathematics) is a clause together with a choice of one of its literals, called the designated literal.

Value parameters

clause

the underlying clause

index

the index of the literal within the clause

Attributes

Source
scan.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class State(activeClauses: Set[HOLClause], derivation: Derivation, remainingAllowedInferences: Option[Int], oneSidedOnly: Boolean, allowResolutionOnBaseLiterals: Boolean)

Describes the state of the SCAN saturation process at any given time

Describes the state of the SCAN saturation process at any given time

Value parameters

activeClauses

the active clause set

allowResolutionOnBaseLiterals

@see allowResolutionOnBaseLiterals option of scsan

derivation

the current derivation we are at

oneSidedOnly

@see oneSidedOnly option of scan

remainingAllowedInferences

the remaining number of inference steps. If None, an arbitrary amount of inferences is allowed

Attributes

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

Attributes

Companion
class
Source
scan.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
State.type

Value members

Concrete methods

def addFactors(state: State): Either[State, State]

Attributes

Source
scan.scala
def apply(input: ClauseSetPredicateEliminationProblem, oneSidedOnly: Boolean, allowResolutionOnBaseLiterals: Boolean, derivationLimit: Option[Int], attemptLimit: Option[Int]): Option[Derivation]

Runs the SCAN algorithm on the input predicate elimination problem in clause form. If successful, returns a derivation whose conclusion does not contain any of the variables from the input predicate elimination problem.

Runs the SCAN algorithm on the input predicate elimination problem in clause form. If successful, returns a derivation whose conclusion does not contain any of the variables from the input predicate elimination problem.

Value parameters

allowResolutionOnBaseLiterals

controls whether resolution on base literals is allowed. Base literals are those literals whose predicate symbol is not in the variables of the input predicate elimination problem

attemptLimit

controls the maximum number of SCAN runs that are to be performed to find an eliminating derivation. If None is passed no limit is enforced, but note that this might cause non-termination.

derivationLimit

controls the maximum number of inferences that derivations should have and makes sure that only derivations are returned that satisfy this limit. A value of None means that no limit is enforced, but note that this might cause non-termination.

input

predicate elimination problem in clause form

oneSidedOnly

controls whether during the purification processes of SCAN only one-sided pointed clauses should be purified, i.e. pointed clauses P where the designated literal of P only occurs with a single polarity in P.

Attributes

Returns

If an eliminating deirvation D is found within the given attemptLimit whose size is within derivationLimit and which respects the options oneSidedOnly and allowResolutionOnBaseLiterals, then the result is Some(D). Returns None otherwise Otherwise Left(I) is returned where I is an iterator over the found derivations that do not the derivationLimit.

Source
scan.scala
def applyDerivationSteps(state: State, derivationSteps: Iterable[DerivationStep]): Either[State, State]

Attributes

Source
scan.scala

Attributes

Source
scan.scala
def derivationsFrom(input: ClauseSetPredicateEliminationProblem, oneSidedOnly: Boolean, allowResolutionOnBaseLiterals: Boolean, derivationLimit: Option[Int]): Iterator[Either[Derivation, Derivation]]

Runs the SCAN algorithm on the input predicate elimination problem in clause form and collects different possible derivations in an iterator.

Runs the SCAN algorithm on the input predicate elimination problem in clause form and collects different possible derivations in an iterator.

Value parameters

allowResolutionOnBaseLiterals

controls whether resolution on base literals is allowed. Base literals are those literals whose predicate symbol is not in the variables to be eliminated in the predicate elimination problem

derivationLimit

controls the maximum number of inferences that derivations should have and makes sure that only derivations are returned that satisfy this limit. A value of None means that no limit is enforced, but note that this might cause non-termination.

input

predicate elimination problem in clause form

oneSidedOnly

controls whether during the purification processes of SCAN only one-sided pointed clause should be purified, i.e. a pointed clause P where the designated literal of P only occurs with a single polarity in P.

Attributes

Returns

Returns an iterator of derivations found during backtracked runs of SCAN. Finding these multiple derivations is done by backtracking on the different choices of purified pointed clause during the purification process of SCAN. If a found derivation does not satisfy derivation limit, it is returned as Left, otherwise it is returned as Right.

Source
scan.scala
def eliminateConstraints(clause: HOLClause, keepVariables: Set[FOLVar]): HOLClause

Attributes

Source
scan.scala

Attributes

Source
scan.scala

Attributes

Source
scan.scala

Attributes

Source
scan.scala
def isFactorOf(clause: HOLClause, other: HOLClause): Boolean

Attributes

Source
scan.scala
def isOneSided(pointedClause: PointedClause): Boolean

Attributes

Source
scan.scala
def isRedundant(clauses: Set[HOLClause], clause: HOLClause): Boolean

Attributes

Source
scan.scala

Attributes

Source
scan.scala

Attributes

Source
scan.scala

Attributes

Source
scan.scala
def purifyPointedClause(state: State, pointedClause: PointedClause): Either[State, State]

Applies the SCAN purification process to a given state with a given pointed clause which need not necessarily be part of the active clauses the given state

Applies the SCAN purification process to a given state with a given pointed clause which need not necessarily be part of the active clauses the given state

Value parameters

pointedClause

pointed clause with respect to which to perform purification

state

state at which to perform purification

Attributes

Returns

if the purification process could be completed within the limits given in state, returns Right with the new state, otherwise returns Left with a state where the limit was reached

Source
scan.scala

Attributes

Source
scan.scala
def resolutionInferences(clauses: Set[HOLClause], resolutionCandidate: PointedClause): Set[ConstraintResolution]

Attributes

Source
scan.scala

Attributes

Source
scan.scala

Attributes

Source
scan.scala

Attributes

Source
scan.scala