Pi2PreGrammar

gapt.grammars.Pi2PreGrammar
case class Pi2PreGrammar(startSymbol: Var, alpha: Var, betas: Vector[Var], productions: Vector[(Var, Expr)])

This is a slightly batshit insane and completely wrong formalization of grammars for proofs with a single Π₂-cut. (Should be isomorphic to the usual versions though.)

Say ∀x ∃y φ(x,y) is the cut-formula.

Then the left side of the cut has one strong quantifier inference (with eigenvariable α), and many weak quantifier inferences (with terms t). Each weak quantifier inference is stored as the production α → t (yes, yes, and also, t may contain α).

The right side of the cut has alternating weak and strong quantifier inferences. Say r is the term of the weak quantifier inference, then β is the eigenvariable such that φ(r,β). We store this as the production β → r. Additionally, we require that there is exactly one production for each β (this condition is missing from pre-grammars)

Attributes

Source
pi2.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
class Pi2Grammar

Members list

Value members

Concrete methods

def language: Set[Expr]

Attributes

Source
pi2.scala
def size: Int

Attributes

Source
pi2.scala
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any
Source
pi2.scala
def tratg: VTRATG

Attributes

Source
pi2.scala

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

Concrete fields

Attributes

Source
pi2.scala