c

gapt.proofs.gaptic.tactics

EqualityTactic

case class EqualityTactic(equationLabel: String, formulaLabel: String, leftToRight: Option[Boolean] = None, targetFormula: Option[Formula] = None) extends Tactical1[Unit] with Product with Serializable

Applies an equation in a goal.

equationLabel

The label of the equation.

formulaLabel

The label of the formula the equation is to be used on.

leftToRight

If Some(true), the equation s = t will be used to rewrite s to t, and the other way around for Some(false). If None, the tactic will attempt to decide the direction automatically.

targetFormula

If Some(f), the tactic will attempt to produce f through application of the equality. Otherwise it will replace as many occurrences as possible according to leftToRight.

Source
lkTactics.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. EqualityTactic
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Tactical1
  7. Tactic
  8. AnyRef
  9. 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 EqualityTactic(equationLabel: String, formulaLabel: String, leftToRight: Option[Boolean] = None, targetFormula: Option[Formula] = None)

    equationLabel

    The label of the equation.

    formulaLabel

    The label of the formula the equation is to be used on.

    leftToRight

    If Some(true), the equation s = t will be used to rewrite s to t, and the other way around for Some(false). If None, the tactic will attempt to decide the direction automatically.

    targetFormula

    If Some(f), the tactic will attempt to produce f through application of the equality. Otherwise it will replace as many occurrences as possible according to leftToRight.

Type Members

  1. class FindFormula extends AnyRef
    Attributes
    protected
    Definition Classes
    Tactical1

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 EqualityTactic to any2stringadd[EqualityTactic] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (EqualityTactic, B)
    Implicit
    This member is added by an implicit conversion from EqualityTactic to ArrowAssoc[EqualityTactic] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. def aka(newName: ⇒ String): Tactic[Unit]
    Definition Classes
    Tactic
  7. def andThen[S](t2: ⇒ Tactic[S]): Tactic[S]
    Definition Classes
    Tactic
  8. def apply(goal: OpenAssumption): Tactic[Unit]
    Definition Classes
    EqualityTacticTactical1
  9. def apply(proofState: ProofState): Either[TacticFailure, (Unit, ProofState)]
    Definition Classes
    Tactical1Tactic
  10. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  11. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate() @throws( ... )
  12. def cut(errorMessage: String): Tactic[Unit]
    Definition Classes
    Tactic
  13. def ensuring(cond: (EqualityTactic) ⇒ Boolean, msg: ⇒ Any): EqualityTactic
    Implicit
    This member is added by an implicit conversion from EqualityTactic to Ensuring[EqualityTactic] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. def ensuring(cond: (EqualityTactic) ⇒ Boolean): EqualityTactic
    Implicit
    This member is added by an implicit conversion from EqualityTactic to Ensuring[EqualityTactic] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. def ensuring(cond: Boolean, msg: ⇒ Any): EqualityTactic
    Implicit
    This member is added by an implicit conversion from EqualityTactic to Ensuring[EqualityTactic] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. def ensuring(cond: Boolean): EqualityTactic
    Implicit
    This member is added by an implicit conversion from EqualityTactic to Ensuring[EqualityTactic] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  17. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. val equationLabel: String
  19. def findFormula(goal: OpenAssumption, mode: TacticApplyMode): FindFormula
    Attributes
    protected
    Definition Classes
    Tactical1
  20. def flatMap[S](f: (Unit) ⇒ Tactic[S])(implicit file: File, line: Line): Tactic[S]
    Definition Classes
    Tactic
  21. def focused: Tactic[Unit]
    Definition Classes
    Tactic
  22. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from EqualityTactic to StringFormat[EqualityTactic] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  23. val formulaLabel: String
  24. def fromLeftToRight: EqualityTactic
  25. def fromRightToLeft: EqualityTactic
  26. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  27. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  28. def map[S](f: (Unit) ⇒ S)(implicit file: File, line: Line): Tactic[S]
    Definition Classes
    Tactic
  29. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  30. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  31. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  32. def onAll[S](t2: ⇒ Tactic[S]): Tactic[Unit]
    Definition Classes
    Tactic
  33. def onAllSubGoals: Tactic[Unit]
    Definition Classes
    Tactic
  34. def onCurrentSubGoal: Tactic[Unit]
    Definition Classes
    Tactic
  35. def orElse[S >: Unit](t2: ⇒ Tactic[S]): Tactic[S]

    Returns result of first tactical, if there is any, else it returns the result of the second tactical, with the possibility of no result from either.

    Returns result of first tactical, if there is any, else it returns the result of the second tactical, with the possibility of no result from either.

    Definition Classes
    Tactic
  36. def quiet: Tactic[Unit]
    Definition Classes
    Tactic
  37. def quietOnly(loggers: Logger*): Tactic[Unit]
    Definition Classes
    Tactic
  38. def replace(proof: LKProof): Tactic[Unit]
    Attributes
    protected
    Definition Classes
    Tactical1
  39. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  40. def verbose: Tactic[Unit]
    Definition Classes
    Tactic
  41. def verboseOnly(loggers: Logger*): Tactic[Unit]
    Definition Classes
    Tactic
  42. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  44. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  45. def yielding(targetFormula: Formula): EqualityTactic
  46. def [B](y: B): (EqualityTactic, B)
    Implicit
    This member is added by an implicit conversion from EqualityTactic to ArrowAssoc[EqualityTactic] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Tactical1[Unit]

Inherited from Tactic[Unit]

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from EqualityTactic to any2stringadd[EqualityTactic]

Inherited by implicit conversion StringFormat from EqualityTactic to StringFormat[EqualityTactic]

Inherited by implicit conversion Ensuring from EqualityTactic to Ensuring[EqualityTactic]

Inherited by implicit conversion ArrowAssoc from EqualityTactic to ArrowAssoc[EqualityTactic]

Ungrouped