gapt.proofs.resolution

Members list

Type members

Classlikes

case class AllL(subProof: ResolutionProof, idx: SequentIndex, skolemTerm: Expr) extends SkolemQuantResolutionRule

Attributes

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

Attributes

Companion
class
Source
resolution.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Show all
Self type
AllL.type
case class AllR(subProof: ResolutionProof, idx: SequentIndex, variable: Var) extends WeakQuantResolutionRule

Attributes

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

Attributes

Companion
class
Source
resolution.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
AllR.type
case class AndL(subProof: ResolutionProof, idx: SequentIndex) extends PropositionalResolutionRule

Attributes

Source
resolution.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class AndR1(subProof: ResolutionProof, idx: SequentIndex) extends PropositionalResolutionRule

Attributes

Source
resolution.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class AndR2(subProof: ResolutionProof, idx: SequentIndex) extends PropositionalResolutionRule

Attributes

Source
resolution.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class AvatarComponent(component: AvatarDefinition) extends InitialClause

Introduces a clause component.

Introduces a clause component.

 ------
 C <- a

Attributes

Source
avatar.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Moves an assertion back to the sequent.

Moves an assertion back to the sequent.

   S <- A
 ------------
  S ++ ¬A <-

Attributes

Source
avatar.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Clause component together with its associated propositional atom.

Clause component together with its associated propositional atom.

Attributes

Source
avatar.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Attributes

Source
avatar.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
case class AvatarGroundComp(atom: Atom, polarity: Polarity) extends AvatarDefinition

Attributes

Source
avatar.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class AvatarNegNonGroundComp(atom: Atom, definition: Formula, vars: Seq[Var], idx: SequentIndex) extends AvatarGeneralNonGroundComp

Attributes

Source
avatar.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class AvatarNonGroundComp(atom: Atom, definition: Formula, vars: Seq[Var]) extends AvatarGeneralNonGroundComp

Attributes

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

Attributes

Companion
class
Source
avatar.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class AvatarSplit(subProof: ResolutionProof, indices: Set[SequentIndex], component: AvatarDefinition) extends LocalResolutionRule

Removes a clause component.

Removes a clause component.

 S ++ C <- A
 ----------------
    S   <- A ∧ ¬a

Attributes

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

Attributes

Companion
class
Source
avatar.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class BottomR(subProof: ResolutionProof, idx: SequentIndex) extends PropositionalResolutionRule

Attributes

Source
resolution.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
class Clausifier(propositional: Boolean, structural: Boolean, bidirectionalDefs: Boolean, cse: Boolean, ctx: MutableContext, nameGen: NameGenerator)

Attributes

Source
structuralCNF.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Clausification.type
case class DefIntro(subProof: ResolutionProof, idx: SequentIndex, definition: Definition, args: Seq[Expr]) extends PropositionalResolutionRule

Definition introduction.

Definition introduction.

 Γ :- Δ, φ(x)
 --------
 Γ :- Δ, D(x)

This inference should only be used on descendants of Input inferences.

Attributes

Source
resolution.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class Defn(defConst: HOLAtomConst, definition: Expr) extends InitialClause

Definition.

Definition.

 ---------------------
 :- ∀x (D(x) <-> φ(x))

Attributes

Source
resolution.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class ExL(subProof: ResolutionProof, idx: SequentIndex, variable: Var) extends WeakQuantResolutionRule

Attributes

Source
resolution.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class ExR(subProof: ResolutionProof, idx: SequentIndex, skolemTerm: Expr) extends SkolemQuantResolutionRule

Attributes

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

Attributes

Companion
class
Source
resolution.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Show all
Self type
ExR.type

Converts an expansion proof to a resolution proof.

Converts an expansion proof to a resolution proof.

Attributes

Source
ExpansionToResolutionProof.scala
Supertypes
class Object
trait Matchable
class Any
Self type
case class Factor(subProof: ResolutionProof, idx1: SequentIndex, idx2: SequentIndex) extends LocalResolutionRule

Factoring.

Factoring.

 l, l, Γ :- Δ
 -----------
 l, Γ :- Δ

Attributes

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

Attributes

Companion
class
Source
resolution.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Factor.type
case class Flip(subProof: ResolutionProof, idx: SequentIndex) extends PropositionalResolutionRule

Attributes

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

Attributes

Companion
class
Source
resolution.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Flip.type
case class ImpL1(subProof: ResolutionProof, idx: SequentIndex) extends PropositionalResolutionRule

Attributes

Source
resolution.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class ImpL2(subProof: ResolutionProof, idx: SequentIndex) extends PropositionalResolutionRule

Attributes

Source
resolution.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class ImpR(subProof: ResolutionProof, idx: SequentIndex) extends PropositionalResolutionRule

Attributes

Source
resolution.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
abstract class InitialClause extends LocalResolutionRule

Attributes

Source
resolution.scala
Supertypes
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
class Defn
class Input
class Refl
class Taut
case class Input(sequent: HOLSequent) extends InitialClause

Input sequent.

Input sequent.

 -------
 sequent

Attributes

Source
resolution.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Source
resolution.scala
Supertypes
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
class AvatarSplit
class Factor
class Defn
class Input
class Refl
class Taut
class Paramod
class AndL
class AndR1
class AndR2
class BottomR
class DefIntro
class Flip
class ImpL1
class ImpL2
class ImpR
class NegL
class NegR
class OrL1
class OrL2
class OrR
class AllL
class ExR
class TopL
class AllR
class ExL
class Resolution
Show all
object MguFactor

Attributes

Source
resolution.scala
Supertypes
class Object
trait Matchable
class Any
Self type
MguFactor.type
object MguResolution

Attributes

Source
resolution.scala
Supertypes
class Object
trait Matchable
class Any
Self type
case class NegL(subProof: ResolutionProof, idx: SequentIndex) extends PropositionalResolutionRule

Attributes

Source
resolution.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class NegR(subProof: ResolutionProof, idx: SequentIndex) extends PropositionalResolutionRule

Attributes

Source
resolution.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class OrL1(subProof: ResolutionProof, idx: SequentIndex) extends PropositionalResolutionRule

Attributes

Source
resolution.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class OrL2(subProof: ResolutionProof, idx: SequentIndex) extends PropositionalResolutionRule

Attributes

Source
resolution.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class OrR(subProof: ResolutionProof, idx: SequentIndex) extends PropositionalResolutionRule

Attributes

Source
resolution.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object PCNF

Given a sequent s and a clause a in CNF(-s), PCNF computes an LK proof of a subsequent of s ++ a containing at least a

Given a sequent s and a clause a in CNF(-s), PCNF computes an LK proof of a subsequent of s ++ a containing at least a

Attributes

Source
PCNF.scala
Supertypes
class Object
trait Matchable
class Any
Self type
PCNF.type
case class Paramod(subProof1: ResolutionProof, eqIdx: SequentIndex, leftToRight: Boolean, subProof2: ResolutionProof, auxIdx: SequentIndex, context: Expr) extends LocalResolutionRule

Paramodulation.

Paramodulation.

 Γ :- Δ, t=s     Π :- Λ, l[t]
 ----------------------------
      Γ, Π :- Δ, Λ, l[s]

Attributes

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

Attributes

Companion
class
Source
resolution.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Paramod.type

Attributes

Source
resolution.scala
Supertypes
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
class AndL
class AndR1
class AndR2
class BottomR
class DefIntro
class Flip
class ImpL1
class ImpL2
class ImpR
class NegL
class NegR
class OrL1
class OrL2
class OrR
class AllL
class ExR
class TopL
class AllR
class ExL
Show all
case class Refl(term: Expr) extends InitialClause

Reflexivity.

Reflexivity.

 --------------
 :- term = term

Attributes

Source
resolution.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class Resolution(subProof1: ResolutionProof, idx1: SequentIndex, subProof2: ResolutionProof, idx2: SequentIndex) extends LocalResolutionRule

Resolution.

Resolution.

 Γ :- Δ, a    a, Π :- Λ
 ----------------------
       Γ, Π :- Δ, Λ

Attributes

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

Attributes

Companion
class
Source
resolution.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Resolution.type

A converter from resolution proofs to Ral proofs, which reintroduces the lambda abstractions which we removed for the fol export.

A converter from resolution proofs to Ral proofs, which reintroduces the lambda abstractions which we removed for the fol export.

Value parameters

cmap

The mapping of abstracted symbols to lambda terms. The abstracted symbols must be unique (i.e. cmap must be a bijection)

sig_consts

The signature of constants in the original proof

sig_vars

The signature of the variables in the original proof

Attributes

Companion
object
Source
ResolutionToRal.scala
Supertypes
class Object
trait Matchable
class Any

A converter from Robinson resolution proofs to Ral proofs, which reintroduces the lambda abstractions which we removed for the fol export.

A converter from Robinson resolution proofs to Ral proofs, which reintroduces the lambda abstractions which we removed for the fol export.

Attributes

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

Proof using resolution.

Proof using resolution.

Our resolution calculus integrates higher-order reasoning, structural clausification, and Avatar-style splitting as in [Vor14].

The judgments of this calculus are A-sequents. An A-sequent is a pair of a sequent of HOL formulas, and a conjunction of propositional literals---the assertion (that's where the "A" comes from).

 Γ :- Δ <- A

We store the sequent as a HOLSequent in ResolutionProof#conclusion, and the negation of the assertion as a HOLClause in ResolutionProof#assertions (as the negation of a conjunction of literals is a clause). The judgment is interpreted as one of the following equivalent formulas:

 assertions.toNegConjunction --> conclusion.toDisjunction
 (conclusion ++ assertions).toDisjunction   // equivalent to the first one

Inferences such as Resolution or Paramod do not operate on the assertions. Unless specified otherwise, assertions are inherited by default:

 Γ :- Δ, a <- A       a, Π :- Λ <- B
 --------------------------------
       Γ, Π :- Δ, Λ <- A ∧ B

There is no factoring on assertions, duplicate assertions are automatically removed.

Reading from top to bottom, a resolution proof is usually structured as follows:

Substitutions are not absorbed into resolution, factoring, and paramodulation; they are explicitly represented using Subst.

[Vor14] Andrei Voronkov, AVATAR: The Architecture for First-Order Theorem Provers. CAV 2014: pp. 696-710

Attributes

Source
resolution.scala
Supertypes
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
class AvatarSplit
class Factor
class Defn
class Input
class Refl
class Taut
class Paramod
class AndL
class AndR1
class AndR2
class BottomR
class DefIntro
class Flip
class ImpL1
class ImpL2
class ImpR
class NegL
class NegR
class OrL1
class OrL2
class OrR
class AllL
class ExR
class TopL
class AllR
class ExL
class Resolution
class Subst
Show all

Attributes

Source
ResolutionProofVisitor.scala
Supertypes
class Object
trait Matchable
class Any

Converts a resolution proof to an expansion proof. ResolutionToExpansionProof( rp ) will return the expansion proof of rp and ResolutionToExpansionProof( rp, input ) is used by the CERES method to return the expansion proof of the ACNF, which is extracted from the proof projections.

Converts a resolution proof to an expansion proof. ResolutionToExpansionProof( rp ) will return the expansion proof of rp and ResolutionToExpansionProof( rp, input ) is used by the CERES method to return the expansion proof of the ACNF, which is extracted from the proof projections.

Let us first ignore splitting and subformula definitions for simplicity. However we may still have clausification inferences. The conversion then proceeds bottom-up through the resolution proof (to be precise: in a reverse post-order traversal).

At each point in the algorithm, we associate with every subproof a set of expansion sequents and associated substitutions, i.e. we keep a Map[ResolutionProof, Set[(Substitution, ExpansionSequent)] ] with the following properties:

  1. the conjunction of all deep sequents (each interpreted as a disjunction) is unsatisfiable, and
  2. the substitution applied to the shallow sequent is always equal to the conclusion of the subproof.

In every step we consider a subproof, empty its Set[(Substitution, ExpansionSequent)], and add in exchange the appropriate sets to its premises, while keeping the invariant. In this manner, these sets propagate upwards through the proof to the input sequents.

Let us first consider the common case that the input sequents are ground unit sequents: i.e. if we obtained a resolution proof for ∀x A(x), ∀x B(x) :- ∀x C(x), then we would have the input sequents :- ∀x A(x), :- ∀x B(x), and ∀x C(x) :-. When we have finally propagated all the sets up to the input sequents, the invariant guarantees the following: we have expansion sequents with the input sequents as shallow sequents (at this point we use the requirement that the input sequents are ground), such that the conjunction of the deep sequents (interpreted as disjunctions) is unsatisfiable. This immediately implies that if we combine the expansions of the input sequents into a sequent, we get an expansion proof of ∀x A(x), ∀x B(x) :- ∀x C(x).

In the unlikely case that the resolution proof starts from clauses, we just pretend that the clauses are derived from formulas--that is, we instead of beginning with D(x), E(x,y) :- F(y) we just imagine the proof begins with :- ∀x ∀y (¬D(x) ∨ ¬E(x,y) ∨ F(y)).

Splitting inferences are converted to cuts in the expansion proof: formally, we can first skip all the splitting inferences in the resoltion proof; the assertions now become part of the clauses, and we get additional input sequents. For example, consider the clauses :- A(x), B(y), A(c) :-, and B(c) :-. The natural way to refute these clauses is to split the first clause into :- A(x) <-- s1 and :- B(y) <-- s2, then perform unit resolution twice, and then have a propositional contradiction. After skipping the splitting inferences we would get a proof starting from :- s1, s2, s1 :- A(x), s2 :- B(x), A(c) :-, and B(c) :-. If we replace s1 := ∀x A(x) and s2 := ∀x B(x) everywhere in the resulting expansion proof, then we can package up the expansions of s1 :- A(x) and s2 :- B(x) as cuts. The other clauses are then precisely the clause we had before splitting.

Subformula definitions are eliminated after the conversion to expansion proofs, see gapt.proofs.expansion.eliminateDefsET.

Attributes

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

Attributes

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

Attributes

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

Attributes

Companion
object
Source
ResolutionToRal.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Attributes

Source
resolution.scala
Supertypes
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
class AllL
class ExR

Attributes

Source
resolution.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object AllL.type
object ExR.type
case class Subst(subProof: ResolutionProof, substitution: Substitution) extends ResolutionProof

Substitution.

Substitution.

        Γ :- Δ
 ----------------------
 substitution(Γ :- Δ)

Attributes

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

Attributes

Companion
class
Source
resolution.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Subst.type
case class Taut(formula: Formula) extends InitialClause

Tautology.

Tautology.

 -------------------
 formula :- formula

Attributes

Source
resolution.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class TopL(subProof: ResolutionProof, idx: SequentIndex) extends PropositionalResolutionRule

Attributes

Source
resolution.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

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

Attributes

Source
resolution.scala
Supertypes
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
class AllR
class ExL

Attributes

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

Attributes

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

Eliminate AvatarSplit, AvatarComponent, AvatarContradiction splitting inferences from a resolution proof.

Eliminate AvatarSplit, AvatarComponent, AvatarContradiction splitting inferences from a resolution proof.

Attributes

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

Attributes

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

Attributes

Source
fixDerivation.scala
Supertypes
class Object
trait Matchable
class Any
Self type
object fixDerivation

Sometimes, we have a resolution refutation R of a set of clauses C and want a refutation R' of a set C' such that C implies C'.

Sometimes, we have a resolution refutation R of a set of clauses C and want a refutation R' of a set C' such that C implies C'.

This algorithm tries to obtain R' by trying to replace clauses c from C in R by derivations of C from C'.

In general, if R is a derivation of a clause c, the result R' of fixDerivation(R) is a derivation of a subclause of c.

Attributes

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

Attributes

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

Attributes

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

Attributes

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

Attributes

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

Attributes

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

Attributes

Source
simplifyResolutionProof.scala
Supertypes
class Object
trait Matchable
class Any
Self type
object structuralCNF

Attributes

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

Attributes

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