abstract class TermBasedSaturationProcedure extends AbstractSaturationProcedure
Class to simplify the implementation of saturation procedures as part of theory plugins. A saturation procedure is a procedure waiting for patterns to occur in a proof goal (e.g., formulas of a certain shape), and can apply proof rules for every such occurrence. Saturation will be implemented by adding tasks to the task queue of every goal, so that the prover can globally schedule the different rules to be applied.
This version of a saturation procedure only supports rules whose application
points can be specified using a fixed-arity vector of terms, for instance
the arguments of certain atoms occurring in a proof goal. The procedure
takes simplification of terms occurring in the proof goal into account. It is
defined in such a way that application points that occur repeatedly can also
lead to repeated application of the rule. Application points are handled by
a single task (with priority basePriority) added to the task
queue, which will always pick the application point with the highest
priority and apply the defined handler to it. The flag
priorityUpdates enables continuous updates of the priority of
application points.
- Alphabetic
- By Inheritance
- TermBasedSaturationProcedure
- AbstractSaturationProcedure
- Theory
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new TermBasedSaturationProcedure(_name: String, arity: Int, basePriority: Int, priorityUpdates: Boolean = false)
Type Members
- type ApplicationPoint = Seq[LinearCombination]
Type representing the cases in which the saturation procedure applies.
Type representing the cases in which the saturation procedure applies. Those could be formulas or terms occurring in a goal, etc.
- Definition Classes
- TermBasedSaturationProcedure → AbstractSaturationProcedure
Abstract Value Members
- abstract def applicationPriority(goal: Goal, p: ApplicationPoint): Int
The priority of performing the given saturation.
The priority of performing the given saturation. Lower numbers represent higher priority.
- Definition Classes
- AbstractSaturationProcedure
- abstract def extractApplicationPoints(goal: Goal): Iterator[ApplicationPoint]
Determine all points at which this saturation procedure could be applied in a goal.
Determine all points at which this saturation procedure could be applied in a goal.
- Definition Classes
- AbstractSaturationProcedure
- abstract def handleApplicationPoint(goal: Goal, p: ApplicationPoint): Seq[Action]
Actions to be performed for one particular application point.
Actions to be performed for one particular application point. The method should check whether the application point still exists in the goal; in case the application point has already disappeared from the goal at the point of calling this method, the method should return an empty sequence.
- Definition Classes
- AbstractSaturationProcedure
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val axioms: Conjunction
Axioms defining the theory; such axioms are simply added as formulae to the problem to be proven, and thus handled using the standard reasoning techniques (including e-matching).
Axioms defining the theory; such axioms are simply added as formulae to the problem to be proven, and thus handled using the standard reasoning techniques (including e-matching).
- Definition Classes
- TermBasedSaturationProcedure → Theory
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
- val dependencies: Iterable[Theory]
Optionally, other theories that this theory depends on.
Optionally, other theories that this theory depends on. Specified dependencies will be loaded before this theory, but the preprocessors of the dependencies will be called after the preprocessor of this theory.
- Definition Classes
- Theory
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def evalFun(f: IFunApp): Option[ITerm]
Optionally, a function evaluating theory functions applied to concrete arguments, represented as constructor terms.
Optionally, a function evaluating theory functions applied to concrete arguments, represented as constructor terms.
- Definition Classes
- Theory
- def evalPred(p: IAtom): Option[Boolean]
Optionally, a function evaluating theory predicates applied to concrete arguments, represented as constructor terms.
Optionally, a function evaluating theory predicates applied to concrete arguments, represented as constructor terms.
- Definition Classes
- Theory
- def evaluatingSimplifier(t: IExpression): IExpression
A simplification function that applies the methods
evalFunandevalPredto some given expression (but not recursively).A simplification function that applies the methods
evalFunandevalPredto some given expression (but not recursively). This is used in theTheory.postSimplifiersmethods.- Definition Classes
- Theory
- def extend(order: TermOrder): TermOrder
Add the symbols defined by this theory to the
orderAdd the symbols defined by this theory to the
order- Definition Classes
- Theory
- val functionPredicateMapping: List[Nothing]
Mapping of interpreted functions to interpreted predicates, used translating input ASTs to internal ASTs (the latter only containing predicates).
Mapping of interpreted functions to interpreted predicates, used translating input ASTs to internal ASTs (the latter only containing predicates).
- Definition Classes
- TermBasedSaturationProcedure → Theory
- val functionalPredicates: Set[Predicate]
Information which of the predicates satisfy the functionality axiom; at some internal points, such predicates can be handled more efficiently
Information which of the predicates satisfy the functionality axiom; at some internal points, such predicates can be handled more efficiently
- Definition Classes
- TermBasedSaturationProcedure → Theory
- val functions: List[Nothing]
Interpreted functions of the theory
Interpreted functions of the theory
- Definition Classes
- TermBasedSaturationProcedure → Theory
- def generateDecoderData(model: Conjunction): Option[TheoryDecoderData]
If this theory defines any
Theory.Decoder, which can translate model data into some theory-specific representation, this function can be overridden to pre-compute required data from a model.If this theory defines any
Theory.Decoder, which can translate model data into some theory-specific representation, this function can be overridden to pre-compute required data from a model.- Definition Classes
- Theory
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def iPostprocess(f: IFormula, signature: Signature): IFormula
Optionally, a post-processor that is applied to formulas output by the prover, for instance to interpolants or the result of quantifier elimination.
Optionally, a post-processor that is applied to formulas output by the prover, for instance to interpolants or the result of quantifier elimination. This method will be applied to the formula after calling
Internal2Inputabsy.- Definition Classes
- Theory
- def iPreprocess(f: IFormula, signature: Signature): (IFormula, Signature)
Optionally, a pre-processor that is applied to formulas over this theory, prior to sending the formula to a prover.
Optionally, a pre-processor that is applied to formulas over this theory, prior to sending the formula to a prover. This method will be applied very early in the translation process.
- Definition Classes
- Theory
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isSoundForSat(theories: Seq[Theory], config: Theory.SatSoundnessConfig.Value): Boolean
Check whether we can tell that the given combination of theories is sound for checking satisfiability of a problem, i.e., if proof construction ends up in a dead end, can it be concluded that a problem is satisfiable.
Check whether we can tell that the given combination of theories is sound for checking satisfiability of a problem, i.e., if proof construction ends up in a dead end, can it be concluded that a problem is satisfiable.
- Definition Classes
- TermBasedSaturationProcedure → Theory
- val modelGenPredicates: Set[Predicate]
Optionally, a set of predicates used by the theory to tell the
PresburgerModelFinderabout terms that will be handled exclusively by this theory.Optionally, a set of predicates used by the theory to tell the
PresburgerModelFinderabout terms that will be handled exclusively by this theory. If a proof goal in model generation mode contains an atomp(x), forpin this set, then thePresburgerModelFinderwill ignorexwhen assigning concrete values to symbols.- Definition Classes
- Theory
- val name: String
- Definition Classes
- AbstractSaturationProcedure
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def plugin: Some[Plugin]
Optionally, a plug-in implementing reasoning in this theory
Optionally, a plug-in implementing reasoning in this theory
- Definition Classes
- TermBasedSaturationProcedure → Theory
- val pointPred: Predicate
Predicate to record, in a proof goal, that a vector of terms was identified as an application point.
Predicate to record, in a proof goal, that a vector of terms was identified as an application point. The predicate also stores the priority of the application point (first argument, lower number means higher priority) and the age of the application point (second argument).
- def postSimplifiers: Seq[(IExpression) => IExpression]
Optionally, simplifiers that are applied to formulas output by the prover, for instance to interpolants or the result of quantifier.
Optionally, simplifiers that are applied to formulas output by the prover, for instance to interpolants or the result of quantifier. Such simplifiers are invoked by
ap.parser.Simplifier. By default, this list will only include theevaluatingSimplifier.- Definition Classes
- Theory
- def postprocess(f: Conjunction, signature: Signature): Conjunction
Optionally, a post-processor that is applied to formulas output by the prover, for instance to interpolants or the result of quantifier elimination.
Optionally, a post-processor that is applied to formulas output by the prover, for instance to interpolants or the result of quantifier elimination. This method will be applied to the raw formulas, before calling
Internal2Inputabsy.- Definition Classes
- Theory
- val predicateMatchConfig: PredicateMatchConfig
Information how interpreted predicates should be handled for e-matching.
Information how interpreted predicates should be handled for e-matching.
- Definition Classes
- TermBasedSaturationProcedure → Theory
- val predicates: List[Predicate]
Interpreted predicates of the theory
Interpreted predicates of the theory
- Definition Classes
- TermBasedSaturationProcedure → Theory
- def preprocess(f: Conjunction, signature: Signature): Conjunction
Optionally, a pre-processor that is applied to formulas over this theory, prior to sending the formula to a prover.
Optionally, a pre-processor that is applied to formulas over this theory, prior to sending the formula to a prover.
- Definition Classes
- Theory
- val reducerPlugin: ReducerPluginFactory
Optionally, a plugin for the reducer applied to formulas both before and during proving.
Optionally, a plugin for the reducer applied to formulas both before and during proving.
- Definition Classes
- Theory
- val singleInstantiationPredicates: Set[Predicate]
When instantiating existentially quantifier formulas,
EX phi, at most one instantiation is necessary provided that all predicates inphiare contained in this set.When instantiating existentially quantifier formulas,
EX phi, at most one instantiation is necessary provided that all predicates inphiare contained in this set.- Definition Classes
- Theory
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- TermBasedSaturationProcedure → AnyRef → Any
- val totalityAxioms: Conjunction
Additional axioms that are included if the option
+genTotalityAxiomsis given to Princess.Additional axioms that are included if the option
+genTotalityAxiomsis given to Princess.- Definition Classes
- TermBasedSaturationProcedure → Theory
- lazy val transitiveDependencies: Iterable[Theory]
Dependencies closed under transitivity, i.e., also including the dependencies of dependencies.
Dependencies closed under transitivity, i.e., also including the dependencies of dependencies.
- Definition Classes
- Theory
- val triggerRelevantFunctions: Set[IFunction]
A list of functions that should be considered in automatic trigger generation
A list of functions that should be considered in automatic trigger generation
- Definition Classes
- TermBasedSaturationProcedure → Theory
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- object PointHandler extends TheoryProcedure
Scheduled tasks of the saturation procedure.
Scheduled tasks of the saturation procedure. Each of those tasks takes care of one application point.
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)