gapt.proofs.expansion

Members list

Type members

Classlikes

Matches ETMerge, ETAnd, ETOr, or ETImp.

Matches ETMerge, ETAnd, ETOr, or ETImp.

Attributes

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

Expansion tree for ∧.

Expansion tree for ∧.

Attributes

Source
trees.scala
Supertypes
class Object
trait Matchable
class Any
Self type
ETAnd.type
object ETAtom

Expansion tree for an atom.

Expansion tree for an atom.

Attributes

Source
trees.scala
Supertypes
class Object
trait Matchable
class Any
Self type
ETAtom.type
object ETBottom

Expansion tree for ⊥.

Expansion tree for ⊥.

Attributes

Source
trees.scala
Supertypes
class Object
trait Matchable
class Any
Self type
ETBottom.type
object ETCut

Attributes

Source
macros.scala
Supertypes
class Object
trait Matchable
class Any
Self type
ETCut.type
object ETDefinition

Expansion tree for a definition node in an expansion tree.

Expansion tree for a definition node in an expansion tree.

It has the form φ +def E where φ is the shallow formula of the definition node. The formula φ should be definitionally equal to the shallow formula of E (i.e., equal after unfolding all definitions).

Attributes

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

Expansion tree for →.

Expansion tree for →.

Attributes

Source
trees.scala
Supertypes
class Object
trait Matchable
class Any
Self type
ETImp.type
object ETInduction

Attributes

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

Expansion tree merge node, representing a contraction inference.

Expansion tree merge node, representing a contraction inference.

Attributes

Source
trees.scala
Supertypes
class Object
trait Matchable
class Any
Self type
ETMerge.type
object ETMerges

Attributes

Source
trees.scala
Supertypes
class Object
trait Matchable
class Any
Self type
ETMerges.type
object ETNeg

Expansion tree for ¬.

Expansion tree for ¬.

Attributes

Source
trees.scala
Supertypes
class Object
trait Matchable
class Any
Self type
ETNeg.type
object ETOr

Expansion tree for ∨.

Expansion tree for ∨.

Attributes

Source
trees.scala
Supertypes
class Object
trait Matchable
class Any
Self type
ETOr.type

Expansion tree for a strong quantifier, containing a Skolem term.

Expansion tree for a strong quantifier, containing a Skolem term.

As an example let us consider an expansion proof of ∀z P(c,z) :- ∃x ∀y P(x,y). For Skolemization we introduce the Skolem function s_1 (for the single strong quantifier), this function has the Skolem definition λx ∀y P(x,y) (see gapt.logic.hol.SkolemFunctions for details). The natural expansion proof has the deep formula P(c,s_1(c)) :- P(c,s_1(c)), so we need a Skolem node with the shallow formula ∀y P(c,y), and deep formula P(c,s_1(c)). This Skolem node is constructed as ETSkolemQuantifier(∀y P(c,y), s_1(c), λx ∀y P(x,y), ETAtom(P(c,s_1(c)), InSuc)).

Attributes

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

Expansion tree for a strong quantifier, containing the eigenvariable.

Expansion tree for a strong quantifier, containing the eigenvariable.

It has the form Qx.A +^α^ E, where α is a variable (called the eigenvariable) and E is an expansion tree of A[x\α].

Attributes

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

Represents nested strong quantifier nodes in an expansion tree, collecting the eigenvariables for a block of strong quantifiers.

Represents nested strong quantifier nodes in an expansion tree, collecting the eigenvariables for a block of strong quantifiers.

Attributes

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

Expansion tree for ⊤.

Expansion tree for ⊤.

Attributes

Source
trees.scala
Supertypes
class Object
trait Matchable
class Any
Self type
ETTop.type

Expansion tree collecting the instances for a weak quantifier.

Expansion tree collecting the instances for a weak quantifier.

It has the form Qx.A +^t,,1,,^ E,,1,, + … +^t,,n,,^ E,,n,,, where t,,1,,,…,t,,n,, are lambda terms of the same type as x and E,,i,, is an expansion tree of A[x\t,,i,,].

Its deep formula is E,,1,,.deep ∨ … ∨ E,,n,,.deep (in the case of an existential) or E,,1,,.deep ∧ … ∧ E,,n,,.deep (in the case of a universal).

Attributes

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

Represents nested weak quantifier nodes in an expansion tree, collecting the instances for a block of weak quantifiers.

Represents nested weak quantifier nodes in an expansion tree, collecting the instances for a block of weak quantifiers.

Attributes

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

Expansion tree representing a weakening inference.

Expansion tree representing a weakening inference.

Attributes

Source
trees.scala
Supertypes
class Object
trait Matchable
class Any
Self type
sealed abstract class ETt

Expansion tree term.

Expansion tree term.

This is a compressed representation of expansion trees that does not store formulas or polarity information.

In contrast to expansion trees, expansion tree terms do not have shallow and deep formulas. Rather, there is a (partial) function from term and shallow formula (and polarity) to deep formula.

For example, instead of ETAtom(hof"P(a)", Polarity.Positive), we just store ETtAtom.

As a side effect, the deep methods checks whether an expansion tree term is correct for a given shallow formula (it throws an exception if the term is not correct).

Attributes

Companion
object
Source
terms.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object ETtAtom.type
class ETtBinary
class ETtDef
class ETtMerge
object ETtNullary.type
class ETtSkolem
class ETtStrong
class ETtUnary
class ETtWeak
object ETtWeakening.type
Show all
Self type
object ETt

Attributes

Companion
class
Source
terms.scala
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
ETt.type
case object ETtAtom extends ETt

Expansion tree term for an atom.

Expansion tree term for an atom.

Attributes

Source
terms.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class ETt
class Object
trait Matchable
class Any
Show all
Self type
ETtAtom.type
case class ETtBinary(child1: ETt, child2: ETt) extends ETt

Expansion tree term for binary connectives, i.e., ∧, ∨, and →.

Expansion tree term for binary connectives, i.e., ∧, ∨, and →.

Attributes

Source
terms.scala
Supertypes
trait Serializable
trait Product
trait Equals
class ETt
class Object
trait Matchable
class Any
Show all
case class ETtDef(shallow: Formula, child: ETt) extends ETt

Expansion tree term for definitions.

Expansion tree term for definitions.

Value parameters

shallow

The shallow formula for child

Attributes

Source
terms.scala
Supertypes
trait Serializable
trait Product
trait Equals
class ETt
class Object
trait Matchable
class Any
Show all
case class ETtMerge(child1: ETt, child2: ETt) extends ETt

Expansion tree term for a merge.

Expansion tree term for a merge.

Attributes

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

Attributes

Companion
class
Source
terms.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
ETtMerge.type
case object ETtNullary extends ETt

Expansion tree term for nullary connectives, i.e., ⊤ and ⊥.

Expansion tree term for nullary connectives, i.e., ⊤ and ⊥.

Attributes

Source
terms.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class ETt
class Object
trait Matchable
class Any
Show all
Self type
ETtNullary.type

Attributes

Source
ETtPrettyPrinter.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
case class ETtSkolem(skTerm: Expr, child: ETt) extends ETt

Expansion tree term for strong quantifiers with Skolem terms.

Expansion tree term for strong quantifiers with Skolem terms.

Attributes

Source
terms.scala
Supertypes
trait Serializable
trait Product
trait Equals
class ETt
class Object
trait Matchable
class Any
Show all
case class ETtStrong(eigenVar: Var, child: ETt) extends ETt

Expansion tree term for strong quantifiers with eigenvariables.

Expansion tree term for strong quantifiers with eigenvariables.

Attributes

Source
terms.scala
Supertypes
trait Serializable
trait Product
trait Equals
class ETt
class Object
trait Matchable
class Any
Show all
case class ETtUnary(child: ETt) extends ETt

Expansion tree term for unary connectives, i.e., ¬.

Expansion tree term for unary connectives, i.e., ¬.

Attributes

Source
terms.scala
Supertypes
trait Serializable
trait Product
trait Equals
class ETt
class Object
trait Matchable
class Any
Show all
case class ETtWeak(instances: Map[Expr, ETt]) extends ETt

Expansion tree term for weak quantifiers instances.

Expansion tree term for weak quantifiers instances.

Attributes

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

Attributes

Companion
class
Source
terms.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
ETtWeak.type
case object ETtWeakening extends ETt

Expansion tree term for a weakening.

Expansion tree term for a weakening.

Attributes

Source
terms.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class ETt
class Object
trait Matchable
class Any
Show all
Self type
case class ExpansionProof(expansionSequent: Sequent[ExpansionTree])

Expansion proof.

Expansion proof.

An expansion proof consists of a sequent of expansion trees without duplicate eigenvariable where the dependency relation of the eigenvariables is acyclic.

Attributes

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

Attributes

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

Attributes

Companion
class
Source
ExpansionProofToLK.scala
Supertypes
trait SolveUtils
class Object
trait Matchable
class Any
Self type
class ExpansionProofToLK(theorySolver: HOLClause => Option[LKProof], intuitionisticHeuristics: Boolean) extends SolveUtils

Attributes

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

Attributes

Companion
class
Source
ExpansionProofToMG3i.scala
Supertypes
class Object
trait Matchable
class Any
Self type
class ExpansionProofToMG3i(theorySolver: HOLClause => Option[LKProof])(implicit ctx: MutableContext) extends SolveUtils

Attributes

Companion
object
Source
ExpansionProofToMG3i.scala
Supertypes
trait SolveUtils
class Object
trait Matchable
class Any
class ExpansionProofToMG3iViaSAT(val expansionProof: ExpansionProof)

Attributes

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

Attributes

Companion
class
Source
ExpansionProofToMG3iViaSAT.scala
Supertypes
class Object
trait Matchable
class Any
Self type
case class ExpansionTree(term: ETt, polarity: Polarity, shallow: Formula) extends DagProof[ExpansionTree]

Expansion tree.

Expansion tree.

A tree collecting instances of a formula. See, e.g., M. Baaz, S. Hetzl, D. Weller: On the complexity of proof deskolemization, Journal of Symbolic Logic, 77(2), 2012 for a formulation close to the one implemented here.

ExpansionTree wraps an expansion tree term together with the intended shallow formula and polarity. The term may not be necessarily correct for this shallow formula (i.e., calling deep may produce an exception). Calling ExpansionTree.check validates the correctness of the expansion tree (also with respect to the given gapt.proofs.context.Context).

The constructors ETAtom, ETAnd, etc. ensure that the produced expansion trees are correct.

Attributes

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

Attributes

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

Attributes

Source
pretty.scala
Supertypes
class Object
trait Matchable
class Any

Encodes instances of an end-sequent as terms.

Encodes instances of an end-sequent as terms.

Only instances of weak quantifiers are recorded, instances of strong quantifiers or free variables are ignored.

The end-sequent will be internally transformed into one which is in variable normal form.

In the case of cut-introduction, the end-sequent has no free variables and no strong quantifiers and we're encoding a Herbrand sequent as a set of terms. A term r_i(t_1,...,t_n) encodes an instance of the formula "forall x_1 ... x_n, phi(x_1,...,x_n)" using the instances (t_1,...,t_n).

In the case of inductive proofs, the end-sequent contains strong quantifiers variable (alpha). Here, we consider proofs of instance sequents, which are obtained by e.g. substituting a numeral for alpha. Hence the formulas occurring in the end-sequents of instance proofs are substitution instances of endSequent; the encoded terms still only capture the instances used in the instance proofs--i.e. not alpha.

Attributes

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

Attributes

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

Attributes

Source
ExpansionProofToLK.scala
Supertypes
trait SolveUtils
class Object
trait Matchable
class Any
Self type
final implicit class RichExpansionSequent(sequent: ExpansionSequent) extends AnyVal

Extension class that allows calling shallow and deep on sequents.

Extension class that allows calling shallow and deep on sequents.

Value parameters

sequent

The expansion sequent that this wraps around.

Attributes

Source
package.scala
Supertypes
class AnyVal
trait Matchable
class Any
object addSymmetry

Given an expansion sequent S which is a tautology modulo symmetry of equality, returns an expansion sequent S' which is S extended by the symmetry instances needed to make it a tautology.

Given an expansion sequent S which is a tautology modulo symmetry of equality, returns an expansion sequent S' which is S extended by the symmetry instances needed to make it a tautology.

Attributes

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

Attributes

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

Cleans up an expansion tree by introducing weakenings as late as possible.

Cleans up an expansion tree by introducing weakenings as late as possible.

Attributes

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

Attributes

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

Deskolemization of expansion trees.

Deskolemization of expansion trees.

We first gather the skolem terms in a given ExpansionProof from the ETSkolemQuantifiers. Then replace each ETSkolemQuantifier by ETStrongQuantifier, and each skolem term within, by a fresh eigenvariable.

Attributes

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

Returns the eigenvariables in an expansion tree or expansion sequent.

Returns the eigenvariables in an expansion tree or expansion sequent.

Attributes

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

Attributes

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

Attributes

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

Reduces merge nodes in an expansion proof.

Reduces merge nodes in an expansion proof.

Attributes

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

Extracts the instances used in a prenex FOL Pi_1 expansion tree / Sigma_1 expansion sequent.

Extracts the instances used in a prenex FOL Pi_1 expansion tree / Sigma_1 expansion sequent.

Each expansion tree is transformed into a list of instances of its shallow formula.

In contrast to ExpansionProof.deep, this function doesn't produce conjunctions of instances, but instead increases the number of formulas in the antecedent/succedent.

Attributes

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

Extracts all merge ETs from an expansion proof.

Extracts all merge ETs from an expansion proof.

Attributes

Source
misc.scala
Supertypes
class Object
trait Matchable
class Any
Self type
findMerges.type

Attributes

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

Attributes

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

Attributes

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

Attributes

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

Inserts a definition into an expansion tree by either creating an ETDefinition node at the appropriate place or else just replacing terms.

Inserts a definition into an expansion tree by either creating an ETDefinition node at the appropriate place or else just replacing terms.

Attributes

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

Instantiates the quantifier inside a replacement context.

Instantiates the quantifier inside a replacement context.

Given λx ∀y P(x,y) and f(c), it will return λx P(x,f(c)).

Attributes

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

Attributes

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

Given an expansion sequent S, this algorithm computes a single expansion sequents below S that is valid and minimal. This algorithm is considerably faster than the one implemented in minimalExpansionSequents.

Given an expansion sequent S, this algorithm computes a single expansion sequents below S that is valid and minimal. This algorithm is considerably faster than the one implemented in minimalExpansionSequents.

Attributes

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

Given an expansion sequent S, this algorithm computes the list of expansion sequents below S that are valid and minimal.

Given an expansion sequent S, this algorithm computes the list of expansion sequents below S that are valid and minimal.

Attributes

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

Attributes

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

Attributes

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

Attributes

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

Attributes

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

Attributes

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

Attributes

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

Attributes

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

Attributes

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

Replaces terms in an expansion tree according to a replacement context.

Replaces terms in an expansion tree according to a replacement context.

Attributes

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

Attributes

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

Decreases the number of instances in an expansion proof by unifying the instance terms.

Decreases the number of instances in an expansion proof by unifying the instance terms.

Attributes

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

Types

Value members

Concrete fields

Attributes

Source
package.scala

Implicits

Implicits

Extension class that allows calling shallow and deep on sequents.

Extension class that allows calling shallow and deep on sequents.

Value parameters

sequent

The expansion sequent that this wraps around.

Attributes

Source
package.scala