SequentConnector

gapt.proofs.SequentConnector
See theSequentConnector companion object
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.

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
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

Concatenates two SequentConnectors.

Concatenates two SequentConnectors.

Value parameters

that

An SequentConnector. upperSizes of this must be the same as lowerSizes of that.

Attributes

Returns

An SequentConnector that connects the lower sequent of this with the upper sequent of that.

Source
SequentConnector.scala

Forms the union of two SequentConnectors.

Forms the union of two SequentConnectors.

Value parameters

that

An SequentConnector. Must have the same upper and lower sizes as this.

Attributes

Returns

A new SequentConnector o such that for any i, o.parents(i) = this.parents(i) ∪ that.parents(i).

Source
SequentConnector.scala

Adds a child/parent pair to an SequentConnector.

Adds a child/parent pair to an SequentConnector.

Value parameters

child

An index of lowerSequent.

parent

An index of upperSequent.

Attributes

Returns

A new SequentConnector in which parents(child) contains parent.

Source
SequentConnector.scala

Removes a child/parent pair from an SequentConnector.

Removes a child/parent pair from an SequentConnector.

Value parameters

child

An index of lowerSequent.

parent

An index of upperSequent. Must be a parent of child.

Attributes

Returns

A new SequentConnector in which parents(child) no longer contains parent.

Source
SequentConnector.scala
def child[T](upperTs: Sequent[T], default: => T): Sequent[T]

Attributes

Source
SequentConnector.scala

Given a SequentIndex for the upper sequent, this returns the child of that occurrence in the lower sequent (if there is exactly one).

Given a SequentIndex for the upper sequent, this returns the child of that occurrence in the lower sequent (if there is exactly one).

Value parameters

idx

An index of upperSequent.

Attributes

Returns

The unique child of idx.

Source
SequentConnector.scala

Given a SequentIndex for the upper sequent, this returns the list of children of that occurrence in the lower sequent (if defined).

Given a SequentIndex for the upper sequent, this returns the list of children of that occurrence in the lower sequent (if defined).

Value parameters

idx

An index of upperSequent.

Attributes

Returns

The list of children of idx.

Source
SequentConnector.scala
def children[T](upperTs: Sequent[T]): Sequent[Seq[T]]

Attributes

Source
SequentConnector.scala

Analogous to parentsSequent, but in the other direction.

Analogous to parentsSequent, but in the other direction.

Attributes

Returns

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

Source
SequentConnector.scala

Inverts an SequentConnector.

Inverts an SequentConnector.

Attributes

Returns

This SequentConnector with its lower and upper sizes (and parents and children methods) switched around.

Source
SequentConnector.scala

Given a SequentIndex for the lower sequent, this returns the parent of that occurrence in the upper sequent (if there is exactly one).

Given a SequentIndex for the lower sequent, this returns the parent of that occurrence in the upper sequent (if there is exactly one).

Value parameters

idx

An index of lowerSequent.

Attributes

Returns

The unique parent of idx.

Source
SequentConnector.scala
def parent[T](lowerTs: Sequent[T], default: => T): Sequent[T]

Given a sequent lowerTs of the same size as the lower sequent, return a sequent of the same size as the upper sequent that contains the unique parent of the Ts in lowerTs, or default otherwise.

Given a sequent lowerTs of the same size as the lower sequent, return a sequent of the same size as the upper sequent that contains the unique parent of the Ts in lowerTs, or default otherwise.

Attributes

Source
SequentConnector.scala

Given a SequentIndex for the lower sequent, this returns the parent of that occurrence in the upper sequent (if there is exactly one), and None otherwise.

Given a SequentIndex for the lower sequent, this returns the parent of that occurrence in the upper sequent (if there is exactly one), and None otherwise.

Value parameters

idx

An index of lowerSequent.

Attributes

Returns

The unique parent of idx.

Source
SequentConnector.scala

Given a SequentIndex for the lower sequent, this returns the list of parents of that occurrence in the upper sequent (if defined).

Given a SequentIndex for the lower sequent, this returns the list of parents of that occurrence in the upper sequent (if defined).

Value parameters

idx

An index of lowerSequent.

Attributes

Returns

The list of parents of idx.

Source
SequentConnector.scala
def parents[T](lowerTs: Sequent[T]): Sequent[Seq[T]]

Given a sequent lowerTs of the same size as the lower sequent, return a sequent of the same size as the upper sequent that contains the parents of the Ts in lowerTs.

Given a sequent lowerTs of the same size as the lower sequent, return a sequent of the same size as the upper sequent that contains the parents of the Ts in lowerTs.

If we call the returned sequent upperTs, then lowerTs(i) in upperTs(j) for all j in parents(i).

The intended use-case is that lowerTs is a sequent of labels for the formulas in the lower sequent. parents(lowerTs) will then contain the correct labels for the formulas in the upper sequent.

Attributes

Source
SequentConnector.scala

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

Concrete fields

val antL: Int

Attributes

Source
SequentConnector.scala
val antU: Int

Attributes

Source
SequentConnector.scala
val sucL: Int

Attributes

Source
SequentConnector.scala
val sucU: Int

Attributes

Source
SequentConnector.scala