Packages

t

gapt.proofs.lk

LKVisitor

trait LKVisitor[T] extends AnyRef

Implementation of the visitor pattern for gapt.proofs.lk.LKProof. Proof transformations can implement this trait to reduce boilerplate code.

T

Type of additional arguments that may be used in the transformation.

Source
LKVisitor.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LKVisitor
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from LKVisitor[T] toany2stringadd[LKVisitor[T]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (LKVisitor[T], B)
    Implicit
    This member is added by an implicit conversion from LKVisitor[T] toArrowAssoc[LKVisitor[T]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. final def apply(proof: LKProof, otherArg: T): LKProof

    Applies the proof transformation to an LKProof.

    Applies the proof transformation to an LKProof.

    proof

    The input proof.

    returns

    The transformed proof.

  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  9. def contractAfter[A](visitingFunction: (LKProof, A) => (LKProof, SequentConnector)): (LKProof, A) => (LKProof, SequentConnector)

    Transforms a visiting function by inserting contractions after it.

    Transforms a visiting function by inserting contractions after it. Only formula occurrences that were not in the old proof -- i.e., that have been added by the visitor -- are contracted.

    visitingFunction

    The visiting function after which contractions should be inserted. In most cases, just using recurse here should be fine.

    returns

    A new visiting function that behaves the same as the old one, but contracts all duplicate new formulas at the end.

  10. def ensuring(cond: (LKVisitor[T]) => Boolean, msg: => Any): LKVisitor[T]
    Implicit
    This member is added by an implicit conversion from LKVisitor[T] toEnsuring[LKVisitor[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: (LKVisitor[T]) => Boolean): LKVisitor[T]
    Implicit
    This member is added by an implicit conversion from LKVisitor[T] toEnsuring[LKVisitor[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: Boolean, msg: => Any): LKVisitor[T]
    Implicit
    This member is added by an implicit conversion from LKVisitor[T] toEnsuring[LKVisitor[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: Boolean): LKVisitor[T]
    Implicit
    This member is added by an implicit conversion from LKVisitor[T] toEnsuring[LKVisitor[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  16. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  17. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  22. def one2one(proof: LKProof, arg: T)(func: (Seq[(LKProof, SequentConnector)]) => LKProof): (LKProof, SequentConnector)
  23. def recurse(proof: LKProof, otherArg: T): (LKProof, SequentConnector)
    Attributes
    protected
  24. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  25. def toString(): String
    Definition Classes
    AnyRef → Any
  26. def transportToSubProof(arg: T, proof: LKProof, subProofIdx: Int): T
  27. def visitAndLeft(proof: AndLeftRule, otherArg: T): (LKProof, SequentConnector)
    Attributes
    protected
  28. def visitAndRight(proof: AndRightRule, otherArg: T): (LKProof, SequentConnector)
    Attributes
    protected
  29. def visitBottomAxiom(otherArg: T): (LKProof, SequentConnector)
    Attributes
    protected
  30. def visitContractionLeft(proof: ContractionLeftRule, otherArg: T): (LKProof, SequentConnector)
    Attributes
    protected
  31. def visitContractionRight(proof: ContractionRightRule, otherArg: T): (LKProof, SequentConnector)
    Attributes
    protected
  32. def visitCut(proof: CutRule, otherArg: T): (LKProof, SequentConnector)
    Attributes
    protected
  33. def visitDefinitionLeft(proof: ConversionLeftRule, otherArg: T): (LKProof, SequentConnector)
    Attributes
    protected
  34. def visitDefinitionRight(proof: ConversionRightRule, otherArg: T): (LKProof, SequentConnector)
    Attributes
    protected
  35. def visitEqualityLeft(proof: EqualityLeftRule, otherArg: T): (LKProof, SequentConnector)
    Attributes
    protected
  36. def visitEqualityRight(proof: EqualityRightRule, otherArg: T): (LKProof, SequentConnector)
    Attributes
    protected
  37. def visitExistsLeft(proof: ExistsLeftRule, otherArg: T): (LKProof, SequentConnector)
    Attributes
    protected
  38. def visitExistsRight(proof: ExistsRightRule, otherArg: T): (LKProof, SequentConnector)
    Attributes
    protected
  39. def visitExistsSkLeft(proof: ExistsSkLeftRule, otherArg: T): (LKProof, SequentConnector)
    Attributes
    protected
  40. def visitForallLeft(proof: ForallLeftRule, otherArg: T): (LKProof, SequentConnector)
    Attributes
    protected
  41. def visitForallRight(proof: ForallRightRule, otherArg: T): (LKProof, SequentConnector)
    Attributes
    protected
  42. def visitForallSkRight(proof: ForallSkRightRule, otherArg: T): (LKProof, SequentConnector)
    Attributes
    protected
  43. def visitImpLeft(proof: ImpLeftRule, otherArg: T): (LKProof, SequentConnector)
    Attributes
    protected
  44. def visitImpRight(proof: ImpRightRule, otherArg: T): (LKProof, SequentConnector)
    Attributes
    protected
  45. def visitInduction(proof: InductionRule, otherArg: T): (LKProof, SequentConnector)
    Attributes
    protected
  46. def visitLogicalAxiom(proof: LogicalAxiom, otherArg: T): (LKProof, SequentConnector)
    Attributes
    protected
  47. def visitNegLeft(proof: NegLeftRule, otherArg: T): (LKProof, SequentConnector)
    Attributes
    protected
  48. def visitNegRight(proof: NegRightRule, otherArg: T): (LKProof, SequentConnector)
    Attributes
    protected
  49. def visitOpenAssumption(proof: OpenAssumption, otherArg: T): (LKProof, SequentConnector)
    Attributes
    protected
  50. def visitOrLeft(proof: OrLeftRule, otherArg: T): (LKProof, SequentConnector)
    Attributes
    protected
  51. def visitOrRight(proof: OrRightRule, otherArg: T): (LKProof, SequentConnector)
    Attributes
    protected
  52. def visitProofLink(proof: ProofLink, otherArg: T): (LKProof, SequentConnector)
    Attributes
    protected
  53. def visitReflexivityAxiom(proof: ReflexivityAxiom, otherArg: T): (LKProof, SequentConnector)
    Attributes
    protected
  54. def visitTopAxiom(otherArg: T): (LKProof, SequentConnector)
    Attributes
    protected
  55. def visitWeakeningLeft(proof: WeakeningLeftRule, otherArg: T): (LKProof, SequentConnector)
    Attributes
    protected
  56. def visitWeakeningRight(proof: WeakeningRightRule, otherArg: T): (LKProof, SequentConnector)
    Attributes
    protected
  57. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  58. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  59. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  60. def withIdentitySequentConnector(proof: LKProof): (LKProof, SequentConnector)
  61. final def withSequentConnector(proof: LKProof, otherArg: T): (LKProof, SequentConnector)

    Applies the proof transformation to an LKProof.

    Applies the proof transformation to an LKProof.

    proof

    The input proof.

    returns

    Transformed proof, and the sequent connector with the new proof as lower sequent and the old proof as upper sequent.

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated
  2. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from LKVisitor[T] toStringFormat[LKVisitor[T]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.12.16) Use formatString.format(value) instead of value.formatted(formatString), or use the f"" string interpolator. In Java 15 and later, formatted resolves to the new method in String which has reversed parameters.

  3. def [B](y: B): (LKVisitor[T], B)
    Implicit
    This member is added by an implicit conversion from LKVisitor[T] toArrowAssoc[LKVisitor[T]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use -> instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd fromLKVisitor[T] to any2stringadd[LKVisitor[T]]

Inherited by implicit conversion StringFormat fromLKVisitor[T] to StringFormat[LKVisitor[T]]

Inherited by implicit conversion Ensuring fromLKVisitor[T] to Ensuring[LKVisitor[T]]

Inherited by implicit conversion ArrowAssoc fromLKVisitor[T] to ArrowAssoc[LKVisitor[T]]

Ungrouped