gapt.proofs

package gapt.proofs

Members list

Type members

Classlikes

case class Ant(k: Int) extends SequentIndex

Attributes

Source
sequents.scala
Supertypes
trait Serializable
trait Product
trait Equals
class SequentIndex
trait Comparable[SequentIndex]
class Object
trait Matchable
class Any
Show all
trait Checkable[-T]

Attributes

Companion
object
Source
Checkable.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object checkable.type
object checkable.type
object checkable.type
object expressionIsCheckable.type
object lkIsCheckable.type
object resolutionIsCheckable.type
object typeIsCheckable.type
Show all
object Checkable

Attributes

Companion
trait
Source
Checkable.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Checkable.type
trait ContextRule[Formula, This <: SequentProof[Formula, This]] extends SequentProof[Formula, This]

Attributes

Source
SequentProof.scala
Supertypes
trait SequentProof[Formula, This]
trait DagProof[This]
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
trait CommonRule
class AndLeftRule
class AndRightRule
class CutRule
class EqualityRule
class ImpLeftRule
class ImpRightRule
class NegLeftRule
class NegRightRule
class OrLeftRule
class OrRightRule
trait CommonRule
class AndElim1Rule
class AndElim2Rule
class AndIntroRule
class ImpElimRule
class ImpIntroRule
class NegElimRule
class NegIntroRule
class OrElimRule
class OrIntro1Rule
class OrIntro2Rule
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
Self type
This

Attributes

Source
section.scala
Supertypes
class Object
trait Matchable
class Any
trait DagProof[Proof <: DagProof[Proof]] extends Product

DAG-like proof.

DAG-like proof.

Proofs are recursive structures that are represented as case classes. Equality is standard case class equality (but implemented in such a way that it is efficient on DAGs).

Type parameters

Proof

The type of proof, e.g. gapt.proofs.lk.LKProof.

Attributes

Companion
object
Source
DagProof.scala
Supertypes
trait Product
trait Equals
class Object
trait Matchable
class Any
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
trait Res
class Input
class Resolve
class Taut
trait SequentProof[Formula, This]
class Flip
class Instantiate
class NewSymbol
class Resolution
class LKProof
class AndRightRule
class CutRule
class ImpLeftRule
class OrLeftRule
trait CommonRule
class AndLeftRule
class EqualityRule
class ImpRightRule
class NegLeftRule
class NegRightRule
class OrRightRule
object BottomAxiom.type
class LogicalAxiom
class ProofLink
object TopAxiom.type
class UnaryLKProof
class NDProof
class AndIntroRule
class ImpElimRule
class NegElimRule
trait CommonRule
class AndElim1Rule
class AndElim2Rule
class ImpIntroRule
class NegIntroRule
class OrElimRule
class OrIntro1Rule
class OrIntro2Rule
class LogicalAxiom
class TheoryAxiom
object TopIntroRule.type
class UnaryNDProof
class SketchAxiom
trait ContextRule[Formula, This]
Show all
Self type
Proof
object DagProof

Attributes

Companion
trait
Source
DagProof.scala
Supertypes
class Object
trait Matchable
class Any
Self type
DagProof.type
sealed trait IndexOrFormula

Attributes

Companion
object
Source
IndexOrFormula.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class IsFormula
class IsIndex

Attributes

Companion
trait
Source
IndexOrFormula.scala
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
case class NDSequent[+A](assumptions: Seq[A], conclusion: A)

Sequents for natural deduction.

Sequents for natural deduction.

They have the form A,,1,,,...,A,,m,, :- B (there is always exactly one element in the succedent).

Type parameters

A

The type of elements in the sequent.

Value parameters

assumptions

The elements A,,1,,,...,A,,m,,.

conclusion

The element B.

Attributes

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

Attributes

Companion
class
Source
NDSequent.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
NDSequent.type
class ProofBuilder[+Proof](proofStack: List[Proof])

Class for convenient construction of proofs. Allows you to write proofs post-order style (à la Bussproofs). Example:

Class for convenient construction of proofs. Allows you to write proofs post-order style (à la Bussproofs). Example:

(ProofBuilder
c LogicalAxiom(A)
c LogicalAxiom(B)
u (WeakeningLeftRule(_, C))
b (AndRightRule(_,_, And(A, B))
qed)

The constructor is private, so the only way to instantiate this class is by using the ProofBuilder object. This means that the stack will always be empty in the beginning.

Attributes

Companion
object
Source
ProofBuilder.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object ProofBuilder.type
object ProofBuilder extends ProofBuilder[Nothing]

Attributes

Companion
class
Source
ProofBuilder.scala
Supertypes
class ProofBuilder[Nothing]
class Object
trait Matchable
class Any
Self type
final implicit class RichClause[+A](clause: Sequent[A]) extends AnyVal

Attributes

Source
package.scala
Supertypes
class AnyVal
trait Matchable
class Any
final implicit class RichFOLSequent(sequent: FOLSequent) extends AnyVal

Attributes

Source
package.scala
Supertypes
class AnyVal
trait Matchable
class Any
final implicit class RichFormulaSequent(sequent: HOLSequent) extends AnyVal

Attributes

Source
package.scala
Supertypes
class AnyVal
trait Matchable
class Any
final implicit class SeqWrapper[+A](s: Seq[A]) extends AnyVal

Attributes

Source
package.scala
Supertypes
class AnyVal
trait Matchable
class Any
case class Sequent[+A](antecedent: Vector[A], succedent: Vector[A])

A sequent is a pair of sequences of elements of type A, typically written as a,,1,,,…,a,,m,, :- b,,1,,,…,b,,n,,.

A sequent is a pair of sequences of elements of type A, typically written as a,,1,,,…,a,,m,, :- b,,1,,,…,b,,n,,.

Type parameters

A

The type of the elements of the sequent.

Value parameters

antecedent

The first list.

succedent

The second list.

Attributes

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

Attributes

Companion
class
Source
sequents.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Sequent.type
case class SequentConnector(lowerSizes: (Int, Int), upperSizes: (Int, Int), parentsSequent: Sequent[Seq[SequentIndex]])

This class models the connection of formula occurrences between two sequents in a proof.

This class models the connection of formula occurrences between two sequents in a proof.

The most basic use case is that of connecting the conclusion of an LK inference with one of the premises. This is the origin of the names "lowerSizes" and "upperSizes".

Value parameters

lowerSizes

The dimensions of the first ("lower") of the two connected sequents.

parentsSequent

A sequent of lists of indices such that for each index i of lowerSequent, parentsSequent(i) is the list of indices of the parents of i in upperSequent.

upperSizes

The dimensions of the second ("upper") of the two connected sequents.

Attributes

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

Attributes

Companion
class
Source
SequentConnector.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
final implicit class SequentFlatMapOp[A](collection: Iterable[A]) extends AnyVal

Attributes

Source
package.scala
Supertypes
class AnyVal
trait Matchable
class Any
final implicit class SequentFlattenOp[A](sequentCollection: Iterable[Sequent[A]]) extends AnyVal

Attributes

Source
package.scala
Supertypes
class AnyVal
trait Matchable
class Any
sealed abstract class SequentIndex extends Ordered[SequentIndex]

Represents an index of an element in a sequent.

Represents an index of an element in a sequent.

In a sequent, the elements have the following indices: Ant(0), Ant(1), ..., Ant(m) :- Suc(0), Suc(1), ..., Suc(n)

Attributes

Companion
object
Source
sequents.scala
Supertypes
trait Comparable[SequentIndex]
class Object
trait Matchable
class Any
Known subtypes
class Ant
class Suc
object SequentIndex

Attributes

Companion
class
Source
sequents.scala
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
trait SequentProof[+Formula, This <: SequentProof[Formula, This]] extends DagProof[This]

Attributes

Source
SequentProof.scala
Supertypes
trait DagProof[This]
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
class Flip
class Instantiate
class NewSymbol
class Resolution
class LKProof
class AndRightRule
class CutRule
class ImpLeftRule
class OrLeftRule
trait CommonRule
class AndLeftRule
class EqualityRule
class ImpRightRule
class NegLeftRule
class NegRightRule
class OrRightRule
object BottomAxiom.type
class LogicalAxiom
class ProofLink
object TopAxiom.type
class UnaryLKProof
class NDProof
class AndIntroRule
class ImpElimRule
class NegElimRule
trait CommonRule
class AndElim1Rule
class AndElim2Rule
class ImpIntroRule
class NegIntroRule
class OrElimRule
class OrIntro1Rule
class OrIntro2Rule
class LogicalAxiom
class TheoryAxiom
object TopIntroRule.type
class UnaryNDProof
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
class SketchAxiom
trait ContextRule[Formula, This]
Show all
Self type
This
case class SetSequent[+A](sequent: Sequent[A])

Used for clause set extraction

Used for clause set extraction

Value parameters

sequent

A sequent.

Attributes

Source
sequents.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class Suc(k: Int) extends SequentIndex

Attributes

Source
sequents.scala
Supertypes
trait Serializable
trait Product
trait Equals
class SequentIndex
trait Comparable[SequentIndex]
class Object
trait Matchable
class Any
Show all

Attributes

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

Attributes

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

Attributes

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

Types

type Clause[+A] = Sequent[A]

Attributes

Source
package.scala

Attributes

Source
package.scala

Attributes

Source
package.scala

Attributes

Source
package.scala

Attributes

Source
package.scala
type Label = String

Attributes

Source
package.scala

Attributes

Source
package.scala

Value members

Concrete fields

val Clause: Sequent.type

Attributes

Source
package.scala
val FOLClause: Sequent.type

Attributes

Source
package.scala
val HOLClause: Sequent.type

Attributes

Source
package.scala
val HOLSequent: Sequent.type

Attributes

Source
package.scala

Implicits

Implicits

final implicit def RichClause[A](clause: Sequent[A]): RichClause[A]

Attributes

Source
package.scala
final implicit def RichFOLSequent(sequent: FOLSequent): RichFOLSequent

Attributes

Source
package.scala
final implicit def RichFormulaSequent(sequent: HOLSequent): RichFormulaSequent

Attributes

Source
package.scala
final implicit def SeqWrapper[A](s: Seq[A]): SeqWrapper[A]

Attributes

Source
package.scala
final implicit def SequentFlatMapOp[A](collection: Iterable[A]): SequentFlatMapOp[A]

Attributes

Source
package.scala
final implicit def SequentFlattenOp[A](sequentCollection: Iterable[Sequent[A]]): SequentFlattenOp[A]

Attributes

Source
package.scala

Converts a labelled sequent to a sequent.

Converts a labelled sequent to a sequent.

Value parameters

sequent

The sequent to be converted.

Attributes

Returns

The sequent obtained from the given sequent by dropping the labels.

Source
package.scala