gapt.proofs.nd

package gapt.proofs.nd

Members list

Type members

Classlikes

case class AndElim1Rule(subProof: NDProof) extends UnaryNDProof, CommonRule

An NDProof ending with elimination of the right conjunct:

An NDProof ending with elimination of the right conjunct:

       (π)
    Γ :- A ∧ B
  --------------∧:e1
      Γ :- A

Value parameters

subProof

The subproof π.

Attributes

Source
nd.scala
Supertypes
trait Serializable
trait CommonRule
class UnaryNDProof
class NDProof
trait DagProof[NDProof]
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class AndElim2Rule(subProof: NDProof) extends UnaryNDProof, CommonRule

An NDProof ending with elimination of the left conjunct:

An NDProof ending with elimination of the left conjunct:

       (π)
    Γ :- A ∧ B
  --------------∧:e2
      Γ :- B

Value parameters

subProof

The subproof π.

Attributes

Source
nd.scala
Supertypes
trait Serializable
trait CommonRule
class UnaryNDProof
class NDProof
trait DagProof[NDProof]
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class AndIntroRule(leftSubProof: NDProof, rightSubProof: NDProof) extends BinaryNDProof, CommonRule

An NDProof ending with a conjunction on the right:

An NDProof ending with a conjunction on the right:

  (π1)      (π2)
 Γ :- A    Π :- B
--------------------∧:i
   Γ, Π :- A∧B

Value parameters

leftSubProof

The proof π,,1,,.

rightSubProof

The proof π,,2,,.

Attributes

Source
nd.scala
Supertypes
trait Serializable
trait CommonRule
class NDProof
trait DagProof[NDProof]
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
abstract class BinaryNDProof extends NDProof

An NDProof deriving a sequent from two other sequents:

An NDProof deriving a sequent from two other sequents:

   (π1)     (π2)
  Γ :- A   Γ' :- A'
 ------------------
      Π :- B

Attributes

Companion
object
Source
nd.scala
Supertypes
class NDProof
trait DagProof[NDProof]
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
object BinaryNDProof

Attributes

Companion
class
Source
nd.scala
Supertypes
class Object
trait Matchable
class Any
Self type
case class BottomElimRule(subProof: NDProof, mainFormula: Formula) extends UnaryNDProof, CommonRule

An NDProof eliminating ⊥:

An NDProof eliminating ⊥:

     (π)
   Γ :- ⊥
  --------⊥:e
   Γ :- A

Value parameters

mainFormula

The formula A.

subProof

The subproof π.

Attributes

Source
nd.scala
Supertypes
trait Serializable
trait CommonRule
class UnaryNDProof
class NDProof
trait DagProof[NDProof]
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Source
nd.scala
Supertypes
class NDProof
trait DagProof[NDProof]
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
case class ContractionRule(subProof: NDProof, aux1: SequentIndex, aux2: SequentIndex) extends UnaryNDProof, CommonRule

An NDProof ending with a contraction:

An NDProof ending with a contraction:

       (π)
   A, A, Γ :- B
  --------------ctr
    A, Γ :- B

Value parameters

aux1

The index of one occurrence of A.

aux2

The index of the other occurrence of A.

subProof

The subproof π.

Attributes

Companion
object
Source
nd.scala
Supertypes
trait Serializable
trait CommonRule
class UnaryNDProof
class NDProof
trait DagProof[NDProof]
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
nd.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Show all
Self type
class ConvenienceConstructor(val longName: String)

Class for reducing boilerplate code in ND companion objects.

Class for reducing boilerplate code in ND companion objects.

Value parameters

longName

The long name of the rule.

Attributes

Source
nd.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object ContractionRule.type
object EqualityElimRule.type
object ExistsElimRule.type
object ExistsIntroRule.type
object ForallIntroRule.type
object ImpIntroRule.type
object LogicalAxiom.type
object NegIntroRule.type
object OrElimRule.type
object WeakeningRule.type
Show all
case class DefinitionRule(subProof: NDProof, mainFormula: Formula) extends UnaryNDProof, CommonRule

An NDProof ending with a definition

An NDProof ending with a definition

     (π)
  Γ :- A[φ]
 -----------d
  Γ :- A[c]

Value parameters

mainFormula

The formula A[c].

subProof

The proof π.

Attributes

Source
nd.scala
Supertypes
trait Serializable
trait CommonRule
class UnaryNDProof
class NDProof
trait DagProof[NDProof]
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Use this trait for rules that use eigenvariables.

Use this trait for rules that use eigenvariables.

Attributes

Source
nd.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
case class EqualityElimRule(leftSubProof: NDProof, rightSubProof: NDProof, formulaA: Formula, variablex: Var) extends BinaryNDProof, CommonRule

An NDProof ending with elimination of equality:

An NDProof ending with elimination of equality:

     (π1)         (π2)
  Γ :- s = t    Π :- A[x\s]
 ------------------------------eq:e
        Γ,Π :- A[x\t]

Value parameters

formulaA

The formula A.

leftSubProof

The subproof π1.

rightSubProof

The subproof π2.

variablex

The variable x.

Attributes

Companion
object
Source
nd.scala
Supertypes
trait Serializable
trait CommonRule
class NDProof
trait DagProof[NDProof]
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
nd.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Show all
Self type
case class EqualityIntroRule(t: Expr) extends InitialSequent

An NDProof that consist of the introduction of an equality.

An NDProof that consist of the introduction of an equality.

  ----------eq:i
  :- t = t

Value parameters

t

The term t.

Attributes

Source
nd.scala
Supertypes
trait Serializable
class NDProof
trait DagProof[NDProof]
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class ExcludedMiddleRule(leftSubProof: NDProof, aux1: SequentIndex, rightSubProof: NDProof, aux2: SequentIndex) extends BinaryNDProof, CommonRule

An NDProof ending with excluded middle:

An NDProof ending with excluded middle:

     (π1)       (π2)
  Γ, A :- B   Π, ¬A :- B
-------------------------EM
        Γ, Π :- B

Value parameters

aux1

The index of A.

aux2

The index of ¬A.

leftSubProof

The proof π1.

rightSubProof

The proof π2.

Attributes

Source
nd.scala
Supertypes
trait Serializable
trait CommonRule
class NDProof
trait DagProof[NDProof]
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class ExistsElimRule(leftSubProof: NDProof, rightSubProof: NDProof, aux: SequentIndex, eigenVariable: Var) extends BinaryNDProof, CommonRule, Eigenvariable

An NDProof ending with an existential quantifier elimination:

An NDProof ending with an existential quantifier elimination:

       (π1)         (π2)
   Γ :- ∃x.A   Π, A[x\α] :- B
  ----------------------------∃:e
      Γ, Π :- B

This rule is only applicable if the eigenvariable condition is satisfied: α must not occur freely in Π, and B

Value parameters

aux

The index of A[x\α].

eigenVariable

The variable α.

leftSubProof

The proof π1.

rightSubProof

The proof π2.

Attributes

Companion
object
Source
nd.scala
Supertypes
trait Serializable
trait CommonRule
class NDProof
trait DagProof[NDProof]
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
nd.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Show all
Self type
case class ExistsIntroRule(subProof: NDProof, A: Formula, term: Expr, v: Var) extends UnaryNDProof, CommonRule

An NDProof ending with an existential quantifier introduction:

An NDProof ending with an existential quantifier introduction:

      (π)
    Γ :- A[x\t]
   ------------∃:i
    Γ :- ∃x.A

Value parameters

A

The formula A.

subProof

The proof π.

term

The term t.

v

The variable x.

Attributes

Companion
object
Source
nd.scala
Supertypes
trait Serializable
trait CommonRule
class UnaryNDProof
class NDProof
trait DagProof[NDProof]
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

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

Attributes

Source
nd.scala
Supertypes
class Object
trait Matchable
class Any
Self type
case class ForallElimRule(subProof: NDProof, term: Expr) extends UnaryNDProof, CommonRule

An NDProof ending with a universal quantifier elimination:

An NDProof ending with a universal quantifier elimination:

      (π)
    Γ :- ∀x.A
   -------------∀:e
    Γ :- A[x\t]

Value parameters

subProof

The proof π.

term

The term t.

Attributes

Source
nd.scala
Supertypes
trait Serializable
trait CommonRule
class UnaryNDProof
class NDProof
trait DagProof[NDProof]
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class ForallIntroRule(subProof: NDProof, eigenVariable: Var, quantifiedVariable: Var) extends UnaryNDProof, CommonRule, Eigenvariable

An NDProof ending with a universal quantifier introduction:

An NDProof ending with a universal quantifier introduction:

         (π)
    Γ :- A[x\α]
   -------------∀:i
    Γ :- ∀x.A

This rule is only applicable if the eigenvariable condition is satisfied: α must not occur freely in Γ.

Value parameters

eigenVariable

The variable α.

quantifiedVariable

The variable x.

subProof

The proof π.

Attributes

Companion
object
Source
nd.scala
Supertypes
trait Serializable
trait CommonRule
class UnaryNDProof
class NDProof
trait DagProof[NDProof]
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
nd.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Show all
Self type
case class ImpElimRule(leftSubProof: NDProof, rightSubProof: NDProof) extends BinaryNDProof, CommonRule

An NDProof ending with elimination of an implication:

An NDProof ending with elimination of an implication:

 (π1)        (π2)
Γ :- A→B    Π :- A
--------------------→:e
   Γ, Π :- B

Value parameters

leftSubProof

The proof π,,1,,.

rightSubProof

The proof π,,2,,.

Attributes

Source
nd.scala
Supertypes
trait Serializable
trait CommonRule
class NDProof
trait DagProof[NDProof]
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class ImpIntroRule(subProof: NDProof, aux: SequentIndex) extends UnaryNDProof, CommonRule

An NDProof ending with introduction of an implication:

An NDProof ending with introduction of an implication:

       (π)
    A, Γ :- B
  ------------→:i
   Γ :- A → B

Value parameters

aux

The index of A.

subProof

The subproof π.

Attributes

Companion
object
Source
nd.scala
Supertypes
trait Serializable
trait CommonRule
class UnaryNDProof
class NDProof
trait DagProof[NDProof]
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
nd.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Show all
Self type
case class InductionCase(proof: NDProof, constructor: Const, hypotheses: List[SequentIndex], eigenVars: List[Var])

Proof that a given data type constructor c preserves a formula F:

Proof that a given data type constructor c preserves a formula F:

                                (π)
F(x,,1,,), F(x,,2,,), ..., F(x,,n,,), Γ :- F(c(x,,1,,,...,x,,n,,,y,,1,,,...,y,,n,,))

The variables x,,i,, and y,,i,, are eigenvariables; x,,i,, are the eigenvariables of the same type as the inductive data type, y,,i,, are the other arguments of the constructor c. They can come in any order in the constructor.

Value parameters

constructor

The constructor c of the inductive data type that we're considering.

eigenVars

The eigenvariables of this case: x,,1,,, ..., x,,n,,, y,,1,,, ..., y,,n,, (these need to correspond to the order in c)

hypotheses

Indices of F(x,,1,,), ..., F(x,,n,,)

proof

The NDProof ending in the sequent of this case.

Attributes

Source
nd.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class InductionRule(cases: Seq[InductionCase], formula: Abs, term: Expr) extends CommonRule

An NDProof ending with an induction rule:

An NDProof ending with an induction rule:

 (π,,1,,)   (π,,2,,)           (π,,n,,)
case 1      case 2     ...     case n
-------------------------------------(ind)
Γ :- F(t: indTy)

This induction rule can handle inductive data types. The cases are proofs that the various type constructors preserve the formula we want to prove. They are provided via the InductionCase class.

Value parameters

cases

A sequence of proofs showing that each type constructor preserves the validity of the main formula.

formula

The formula we want to prove via induction.

Attributes

Source
nd.scala
Supertypes
trait Serializable
trait CommonRule
class NDProof
trait DagProof[NDProof]
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
abstract class InitialSequent extends NDProof

An NDProof consisting of a single sequent:

An NDProof consisting of a single sequent:

   --------ax
    Γ :- A

Attributes

Companion
object
Source
nd.scala
Supertypes
class NDProof
trait DagProof[NDProof]
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
class LogicalAxiom
class TheoryAxiom
object TopIntroRule.type

Attributes

Companion
class
Source
nd.scala
Supertypes
class Object
trait Matchable
class Any
Self type
case class LogicalAxiom(A: Formula) extends InitialSequent

An NDProof consisting of a logical axiom:

An NDProof consisting of a logical axiom:

  --------ax
   A :- A

Value parameters

A

The formula A.

Attributes

Companion
object
Source
nd.scala
Supertypes
trait Serializable
class NDProof
trait DagProof[NDProof]
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

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

Attributes

Source
m-realizability.scala
Supertypes
class Object
trait Matchable
class Any
Self type
abstract class NDProof extends SequentProof[Formula, NDProof]

Attributes

Source
nd.scala
Supertypes
trait DagProof[NDProof]
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
class NDRuleCreationException(name: String, message: String) extends Exception

Attributes

Source
nd.scala
Supertypes
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
case class NegElimRule(leftSubProof: NDProof, rightSubProof: NDProof) extends BinaryNDProof, CommonRule

An NDProof ending with elimination of a negation:

An NDProof ending with elimination of a negation:

 (π1)      (π2)
Γ :- ¬A    Π :- A
-------------------¬:e
   Γ, Π :- ⊥

Value parameters

leftSubProof

The proof π,,1,,.

rightSubProof

The proof π,,2,,.

Attributes

Source
nd.scala
Supertypes
trait Serializable
trait CommonRule
class NDProof
trait DagProof[NDProof]
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class NegIntroRule(subProof: NDProof, aux: SequentIndex) extends UnaryNDProof, CommonRule

An NDProof ending with introduction of a negation:

An NDProof ending with introduction of a negation:

       (π)
   A, Γ :- ⊥
  -----------¬:i
   Γ :- ¬A

Value parameters

aux

The index of A.

subProof

The subproof π.

Attributes

Companion
object
Source
nd.scala
Supertypes
trait Serializable
trait CommonRule
class UnaryNDProof
class NDProof
trait DagProof[NDProof]
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
nd.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Show all
Self type
case class OrElimRule(leftSubProof: NDProof, middleSubProof: NDProof, aux1: SequentIndex, rightSubProof: NDProof, aux2: SequentIndex) extends TernaryNDProof, CommonRule

An NDProof ending with elimination of a disjunction:

An NDProof ending with elimination of a disjunction:

   (π1)         (π2)         (π3)
 Γ :- A∨B   Π, A :- C    Δ, B :- C
------------------------------------∨:e
         Γ, Π, Δ  :- C

Value parameters

aux1

The index of A.

aux2

The index of B.

leftSubProof

The proof π,,1,,.

middleSubProof

The proof π,,2,,.

rightSubProof

The proof π,,3,,.

Attributes

Companion
object
Source
nd.scala
Supertypes
trait Serializable
trait CommonRule
class NDProof
trait DagProof[NDProof]
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
nd.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Show all
Self type
OrElimRule.type
case class OrIntro1Rule(subProof: NDProof, rightDisjunct: Formula) extends UnaryNDProof, CommonRule

An NDProof ending with introduction of a disjunction, with a new formula as the right disjunct:

An NDProof ending with introduction of a disjunction, with a new formula as the right disjunct:

     (π)
    Γ :- A
  ------------∨:i1
   Γ :- A ∨ B

Value parameters

rightDisjunct

The formula B.

subProof

The subproof π.

Attributes

Source
nd.scala
Supertypes
trait Serializable
trait CommonRule
class UnaryNDProof
class NDProof
trait DagProof[NDProof]
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class OrIntro2Rule(subProof: NDProof, leftDisjunct: Formula) extends UnaryNDProof, CommonRule

An NDProof ending with introduction of a disjunction, with a new formula as the left disjunct:

An NDProof ending with introduction of a disjunction, with a new formula as the left disjunct:

     (π)
    Γ :- A
  ------------∨:i2
   Γ :- B ∨ A

Value parameters

leftDisjunct

The formula B.

subProof

The subproof π.

Attributes

Source
nd.scala
Supertypes
trait Serializable
trait CommonRule
class UnaryNDProof
class NDProof
trait DagProof[NDProof]
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
abstract class TernaryNDProof extends NDProof

An NDProof deriving a sequent from three other sequents:

An NDProof deriving a sequent from three other sequents:

   (π1)        (π2)        (π3)
  Γ1 :- A1   Γ2 :- A2   Γ3 :- A3
 --------------------------------
             Π :- B

Attributes

Companion
object
Source
nd.scala
Supertypes
class NDProof
trait DagProof[NDProof]
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
class OrElimRule

Attributes

Companion
class
Source
nd.scala
Supertypes
class Object
trait Matchable
class Any
Self type
case class TheoryAxiom(mainFormula: Formula) extends InitialSequent

An NDProof consisting of an axiom from a theory:

An NDProof consisting of an axiom from a theory:

  --------th
    :- A

Value parameters

mainFormula

The axiom A.

Attributes

Source
nd.scala
Supertypes
trait Serializable
class NDProof
trait DagProof[NDProof]
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case object TopIntroRule extends InitialSequent

An NDProof that is the introduction of ⊤:

An NDProof that is the introduction of ⊤:

  ------⊤:i
   :- ⊤

Attributes

Source
nd.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
class NDProof
trait DagProof[NDProof]
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
abstract class UnaryNDProof extends NDProof

An NDProof deriving a sequent from another sequent:

An NDProof deriving a sequent from another sequent:

      (π)
    Γ :- A
  ----------
   Γ' :- A'

Attributes

Companion
object
Source
nd.scala
Supertypes
class NDProof
trait DagProof[NDProof]
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
object UnaryNDProof

Attributes

Companion
class
Source
nd.scala
Supertypes
class Object
trait Matchable
class Any
Self type
case class WeakeningRule(subProof: NDProof, formula: Formula) extends UnaryNDProof, CommonRule

An NDProof ending with weakening:

An NDProof ending with weakening:

      (π)
     Γ :- B
   ---------wkn
   A, Γ :- B

Value parameters

formula

The formula A.

subProof

The subproof π.

Attributes

Companion
object
Source
nd.scala
Supertypes
trait Serializable
trait CommonRule
class UnaryNDProof
class NDProof
trait DagProof[NDProof]
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

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

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
object friedman

Attributes

Source
transformation.scala
Supertypes
class Object
trait Matchable
class Any
Self type
friedman.type
object kolmogorov

Attributes

Source
transformation.scala
Supertypes
class Object
trait Matchable
class Any
Self type
kolmogorov.type

Attributes

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

Implicits

Implicits

Attributes

Source
package.scala