gapt.proofs.expansion
Members list
Type members
Classlikes
Attributes
- Source
- trees.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
BinaryExpansionTree.type
Expansion tree for ∧.
Expansion tree for ∧.
Attributes
- Source
- trees.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ETAnd.type
Expansion tree for an atom.
Expansion tree for an atom.
Attributes
- Source
- trees.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ETAtom.type
Expansion tree for ⊥.
Expansion tree for ⊥.
Attributes
- Source
- trees.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ETBottom.type
Attributes
- Source
- macros.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ETCut.type
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 Objecttrait Matchableclass Any
- Self type
-
ETDefinition.type
Expansion tree for →.
Expansion tree for →.
Attributes
- Source
- trees.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ETImp.type
Attributes
- Source
- macros.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ETInduction.type
Expansion tree merge node, representing a contraction inference.
Expansion tree merge node, representing a contraction inference.
Attributes
- Source
- trees.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ETMerge.type
Attributes
- Source
- trees.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ETMerges.type
Expansion tree for ¬.
Expansion tree for ¬.
Attributes
- Source
- trees.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ETNeg.type
Expansion tree for ∨.
Expansion tree for ∨.
Attributes
- Source
- trees.scala
- Supertypes
-
class Objecttrait Matchableclass 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 Objecttrait Matchableclass Any
- Self type
-
ETSkolemQuantifier.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 Objecttrait Matchableclass Any
- Self type
-
ETStrongQuantifier.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 Objecttrait Matchableclass Any
- Self type
Expansion tree for ⊤.
Expansion tree for ⊤.
Attributes
- Source
- trees.scala
- Supertypes
-
class Objecttrait Matchableclass 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 Objecttrait Matchableclass Any
- Self type
-
ETWeakQuantifier.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 Objecttrait Matchableclass Any
- Self type
Expansion tree representing a weakening inference.
Expansion tree representing a weakening inference.
Attributes
- Source
- trees.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ETWeakening.type
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 Objecttrait Matchableclass Any
- Known subtypes
-
object ETtAtom.typeclass ETtBinaryclass ETtDefclass ETtMergeobject ETtNullary.typeclass ETtSkolemclass ETtStrongclass ETtUnaryclass ETtWeakobject ETtWeakening.typeShow all
- Self type
Attributes
- Companion
- class
- Source
- terms.scala
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
ETt.type
Expansion tree term for an atom.
Expansion tree term for binary connectives, i.e., ∧, ∨, and →.
Expansion tree term for binary connectives, i.e., ∧, ∨, and →.
Attributes
- Source
- terms.scala
- Supertypes
Expansion tree term for definitions.
Expansion tree term for definitions.
Value parameters
- shallow
-
The shallow formula for
child
Attributes
- Source
- terms.scala
- Supertypes
Expansion tree term for a merge.
Attributes
- Companion
- class
- Source
- terms.scala
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
ETtMerge.type
Expansion tree term for nullary connectives, i.e., ⊤ and ⊥.
Expansion tree term for nullary connectives, i.e., ⊤ and ⊥.
Attributes
- Source
- terms.scala
- Supertypes
- Self type
-
ETtNullary.type
Attributes
- Source
- ETtPrettyPrinter.scala
- Supertypes
- Known subtypes
Expansion tree term for strong quantifiers with Skolem terms.
Expansion tree term for strong quantifiers with Skolem terms.
Attributes
- Source
- terms.scala
- Supertypes
Expansion tree term for strong quantifiers with eigenvariables.
Expansion tree term for strong quantifiers with eigenvariables.
Attributes
- Source
- terms.scala
- Supertypes
Expansion tree term for unary connectives, i.e., ¬.
Expansion tree term for weak quantifiers instances.
Expansion tree term for weak quantifiers instances.
Attributes
- Companion
- object
- Source
- terms.scala
- Supertypes
Attributes
- Companion
- class
- Source
- terms.scala
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
ETtWeak.type
Expansion tree term for a weakening.
Expansion tree term for a weakening.
Attributes
- Source
- terms.scala
- Supertypes
- Self type
-
ETtWeakening.type
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
Attributes
- Companion
- class
- Source
- proofs.scala
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
ExpansionProof.type
Attributes
- Companion
- class
- Source
- ExpansionProofToLK.scala
- Supertypes
- Self type
-
ExpansionProofToLK.type
Attributes
- Companion
- object
- Source
- ExpansionProofToLK.scala
- Supertypes
- Known subtypes
-
object withIntuitionisticHeuristics.typeobject ExpansionProofToLK.typeobject PropositionalExpansionProofToLK.type
Attributes
- Companion
- class
- Source
- ExpansionProofToMG3i.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ExpansionProofToMG3i.type
Attributes
- Companion
- object
- Source
- ExpansionProofToMG3i.scala
- Supertypes
Attributes
- Companion
- object
- Source
- ExpansionProofToMG3iViaSAT.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Companion
- class
- Source
- ExpansionProofToMG3iViaSAT.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
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 Serializabletrait DagProof[ExpansionTree]trait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Source
- trees.scala
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
ExpansionTree.type
Attributes
- Source
- pretty.scala
- Supertypes
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 Objecttrait Matchableclass Any
Attributes
- Companion
- class
- Source
- termExtraction.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
InstanceTermEncoding.type
Attributes
- Source
- ExpansionProofToLK.scala
- Supertypes
- Self type
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 AnyValtrait Matchableclass Any
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 Objecttrait Matchableclass Any
- Self type
-
addSymmetry.type
Attributes
- Source
- atomicExpansionET.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
atomicExpansionET.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 Objecttrait Matchableclass Any
- Self type
-
cleanStructureET.type
Attributes
- Source
- positions.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
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 Objecttrait Matchableclass Any
- Self type
-
deskolemizeET.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 Objecttrait Matchableclass Any
- Self type
-
eigenVariablesET.type
Attributes
- Source
- eliminateCutsET.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
eliminateCutsET.type
Attributes
- Source
- eliminateDefsET.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
eliminateDefsET.type
Reduces merge nodes in an expansion proof.
Reduces merge nodes in an expansion proof.
Attributes
- Source
- merge.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
eliminateMerges.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 Objecttrait Matchableclass Any
- Self type
-
extractInstances.type
Extracts all merge ETs from an expansion proof.
Extracts all merge ETs from an expansion proof.
Attributes
- Source
- misc.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
findMerges.type
Attributes
- Source
- misc.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
Attributes
- Source
- proofs.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
freeVariablesET.type
Attributes
- Source
- positions.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
generalizeET.type
Attributes
- Source
- termExtraction.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
groundTerms.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 Objecttrait Matchableclass Any
- Self type
-
insertDefinition.type
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 Objecttrait Matchableclass Any
- Self type
-
instReplCtx.type
Attributes
- Source
- misc.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
isPropositionalET.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 Objecttrait Matchableclass 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 Objecttrait Matchableclass Any
- Self type
Attributes
- Source
- positions.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
moveDefsUpward.type
Attributes
- Source
- skolemNormalForm.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
Attributes
- Source
- skolemNormalForm.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
Attributes
- Source
- misc.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
numberOfInstancesET.type
Attributes
- Source
- prenexifyET.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
prenexifyET.type
Attributes
- Source
- misc.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
pushWeakeningsUp.type
Attributes
- Source
- removeSkolemCongruences.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
Attributes
- Source
- positions.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
replaceAtHOLPosition.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 Objecttrait Matchableclass Any
- Self type
-
replaceWithContext.type
Attributes
- Source
- skolemNormalForm.scala
- Supertypes
-
class Objecttrait Matchableclass 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 Objecttrait Matchableclass Any
- Self type
-
unifyInstancesET.type
Types
Attributes
- Source
- package.scala
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