case class EqualityTactic(equationLabel: String, formulaLabel: String, leftToRight: Option[Boolean] = None, targetFormula: Option[HOLFormula] = None) extends Tactic[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 equations = t
will be used to rewrites
tot
, and the other way around for Some(false). IfNone
, the tactic will attempt to decide the direction automatically.- targetFormula
If
Some(f)
, the tactic will attempt to producef
through application of the equality. Otherwise it will replace as many occurrences as possible according toleftToRight
.
- Source
- lkTactics.scala
- Alphabetic
- By Inheritance
- EqualityTactic
- Serializable
- Serializable
- Product
- Equals
- Tactic
- Tactical
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
EqualityTactic(equationLabel: String, formulaLabel: String, leftToRight: Option[Boolean] = None, targetFormula: Option[HOLFormula] = 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 equations = t
will be used to rewrites
tot
, and the other way around for Some(false). IfNone
, the tactic will attempt to decide the direction automatically.- targetFormula
If
Some(f)
, the tactic will attempt to producef
through application of the equality. Otherwise it will replace as many occurrences as possible according toleftToRight
.
Type Members
-
class
FindFormula
extends AnyRef
- Attributes
- protected
- Definition Classes
- Tactic
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
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
-
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()
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def aka(newName: ⇒ String): Tactic[Unit]
-
def
andThen[S](t2: Tactical[S]): Tactical[S]
- Definition Classes
- Tactical
-
def
apply(goal: OpenAssumption): ValidationNel[TacticalFailure, (Unit, LKProof)]
- Definition Classes
- EqualityTactic → Tactic
- def apply(proofState: ProofState): ValidationNel[TacticalFailure, (Unit, ProofState)]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
asTactic: Tactic[Unit]
- Definition Classes
- Tactical
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
cut(errorMessage: String): Tactic[Unit]
- Definition Classes
- Tactic
-
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
-
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
-
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
-
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
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val equationLabel: String
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
findFormula(goal: OpenAssumption, mode: TacticApplyMode): FindFormula
- Attributes
- protected
- Definition Classes
- Tactic
-
def
flatMap[S](f: (Unit) ⇒ Tactical[S])(implicit file: File, line: Line): Tactical[S]
- Definition Classes
- Tactical
-
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()
- val formulaLabel: String
- def fromLeftToRight: EqualityTactic
- def fromRightToLeft: EqualityTactic
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val leftToRight: Option[Boolean]
-
def
map[S](f: (Unit) ⇒ S)(implicit file: File, line: Line): Tactical[S]
- Definition Classes
- Tactical
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
onAll[S](t2: Tactical[S]): Tactical[Unit]
- Definition Classes
- Tactic
-
def
onAllSubGoals: Tactical[Unit]
- Definition Classes
- Tactical
-
def
orElse[S >: Unit](t2: Tactic[S]): Tactic[S]
Returns result of first tactic, if there is any, else it returns the result of the second tactic, with the possibility of no result from either.
Returns result of first tactic, if there is any, else it returns the result of the second tactic, with the possibility of no result from either.
- Definition Classes
- Tactic
-
def
orElse[S >: Unit](t2: Tactical[S]): Tactical[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
- Tactical
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- val targetFormula: Option[HOLFormula]
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- def yielding(targetFormula: HOLFormula): EqualityTactic
-
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