Class/Object

at.logic.gapt.proofs

OccConnector

Related Docs: object OccConnector | package proofs

Permalink

case class OccConnector[+A](lowerSequent: Sequent[A], upperSequent: Sequent[A], parentsSequent: Sequent[Seq[SequentIndex]]) extends Product with Serializable

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 "lowerSequent" and "upperSequent".

A

The type of sequents that this connects.

lowerSequent

One of the two sequents to be connected.

upperSequent

The other of the two sequents to be connected.

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.

Source
OccConnector.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. OccConnector
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new OccConnector(lowerSequent: Sequent[A], upperSequent: Sequent[A], parentsSequent: Sequent[Seq[SequentIndex]])

    Permalink

    lowerSequent

    One of the two sequents to be connected.

    upperSequent

    The other of the two sequents to be connected.

    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.

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def *[B >: A](that: OccConnector[B]): OccConnector[B]

    Permalink

    Concatenates two OccConnectors.

    Concatenates two OccConnectors.

    B

    The type of that.

    that

    An OccConnector. upperSequent of this must have the same dimensions as lowerSequent of that.

    returns

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

  4. def +(child: SequentIndex, parent: SequentIndex): OccConnector[A]

    Permalink

    Adds a child/parent pair to an OccConnector.

    Adds a child/parent pair to an OccConnector.

    child

    An index of lowerSequent.

    parent

    An index of upperSequent.

    returns

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

  5. def +[B >: A](that: OccConnector[B]): OccConnector[A]

    Permalink

    Forms the union of two OccConnectors.

    Forms the union of two OccConnectors.

    B

    The type of B.

    that

    An OccConnector. Must have the same upper and lower sequent as this.

    returns

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

  6. def -(child: SequentIndex, parent: SequentIndex): OccConnector[A]

    Permalink

    Removes a child/parent pair from an OccConnector.

    Removes a child/parent pair from an OccConnector.

    child

    An index of lowerSequent.

    parent

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

    returns

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

  7. def ->[B](y: B): (OccConnector[A], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from OccConnector[A] to ArrowAssoc[OccConnector[A]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  8. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  10. def child(idx: SequentIndex): SequentIndex

    Permalink

    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).

    idx

    An index of upperSequent.

    returns

    The unique child of idx.

  11. def children(idx: SequentIndex): Seq[SequentIndex]

    Permalink

    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).

    idx

    An index of upperSequent.

    returns

    The list of children of idx.

  12. def childrenSequent: Sequent[Seq[SequentIndex]]

    Permalink

    Analogous to parentsSequent, but in the other direction.

    Analogous to parentsSequent, but in the other direction.

    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.

  13. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  14. def ensuring(cond: (OccConnector[A]) ⇒ Boolean, msg: ⇒ Any): OccConnector[A]

    Permalink
    Implicit information
    This member is added by an implicit conversion from OccConnector[A] to Ensuring[OccConnector[A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. def ensuring(cond: (OccConnector[A]) ⇒ Boolean): OccConnector[A]

    Permalink
    Implicit information
    This member is added by an implicit conversion from OccConnector[A] to Ensuring[OccConnector[A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. def ensuring(cond: Boolean, msg: ⇒ Any): OccConnector[A]

    Permalink
    Implicit information
    This member is added by an implicit conversion from OccConnector[A] to Ensuring[OccConnector[A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  17. def ensuring(cond: Boolean): OccConnector[A]

    Permalink
    Implicit information
    This member is added by an implicit conversion from OccConnector[A] to Ensuring[OccConnector[A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  18. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from OccConnector[A] to StringFormat[OccConnector[A]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  21. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  22. def inv: OccConnector[A]

    Permalink

    Inverts an OccConnector.

    Inverts an OccConnector.

    returns

    This OccConnector with its lower and upper sequents (and parents and children methods) switched around.

  23. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  24. val lowerSequent: Sequent[A]

    Permalink

    One of the two sequents to be connected.

  25. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  26. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  27. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  28. def parent[T](lowerTs: Sequent[T], default: ⇒ T = ???): Sequent[T]

    Permalink

    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.

  29. def parent(idx: SequentIndex): SequentIndex

    Permalink

    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).

    idx

    An index of lowerSequent.

    returns

    The unique parent of idx.

  30. def parents[T](lowerTs: Sequent[T]): Sequent[Seq[T]]

    Permalink

    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.

  31. def parents(idx: SequentIndex): Seq[SequentIndex]

    Permalink

    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).

    idx

    An index of lowerSequent.

    returns

    The list of parents of idx.

  32. val parentsSequent: Sequent[Seq[SequentIndex]]

    Permalink

    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.

  33. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  34. val upperSequent: Sequent[A]

    Permalink

    The other of the two sequents to be connected.

  35. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. def [B](y: B): (OccConnector[A], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from OccConnector[A] to ArrowAssoc[OccConnector[A]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Shadowed Implicit Value Members

  1. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from OccConnector[A] to any2stringadd[OccConnector[A]] performed by method any2stringadd in scala.Predef.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (occConnector: any2stringadd[OccConnector[A]]).+(other)
    Definition Classes
    any2stringadd

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from OccConnector[A] to any2stringadd[OccConnector[A]]

Inherited by implicit conversion StringFormat from OccConnector[A] to StringFormat[OccConnector[A]]

Inherited by implicit conversion Ensuring from OccConnector[A] to Ensuring[OccConnector[A]]

Inherited by implicit conversion ArrowAssoc from OccConnector[A] to ArrowAssoc[OccConnector[A]]

Ungrouped