EqualityTactic

gapt.proofs.gaptic.tactics.EqualityTactic
case class EqualityTactic(equationLabel: String, formulaLabel: String, leftToRight: Option[Boolean], targetFormula: Option[Formula]) extends Tactical1[Unit]

Applies an equation in a goal.

Value parameters

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.

Attributes

Source
lkTactics.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Tactical1[Unit]
trait Tactic[Unit]
class Object
trait Matchable
class Any
Show all

Members list

Type members

Inherited classlikes

protected class FindFormula(goal: OpenAssumption, mode: TacticApplyMode)

Attributes

Inherited from:
Tactical1
Source
core.scala
Supertypes
class Object
trait Matchable
class Any

Value members

Concrete methods

override def apply(goal: OpenAssumption): Tactic[Unit]

Attributes

Definition Classes
Source
lkTactics.scala
def yielding(targetFormula: Formula): EqualityTactic

Attributes

Source
lkTactics.scala

Inherited methods

def aka(newName: => String): Tactic[T]

Attributes

Inherited from:
Tactic
Source
core.scala
def andThen[S](t2: => Tactic[S]): Tactic[S]

Attributes

Inherited from:
Tactic
Source
core.scala
override def apply(proofState: ProofState): Either[TacticFailure, (T, ProofState)]

Attributes

Definition Classes
Inherited from:
Tactical1
Source
core.scala
def cut(errorMessage: String): Tactic[T]

Attributes

Inherited from:
Tactic
Source
core.scala
protected def findFormula(goal: OpenAssumption, mode: TacticApplyMode): FindFormula

Attributes

Inherited from:
Tactical1
Source
core.scala
def flatMap[S](f: Unit => Tactic[S])(implicit file: File, line: Line): Tactic[S]

Attributes

Inherited from:
Tactic
Source
core.scala
def focused: Tactic[T]

Attributes

Inherited from:
Tactic
Source
core.scala
def map[S](f: Unit => S)(implicit file: File, line: Line): Tactic[S]

Attributes

Inherited from:
Tactic
Source
core.scala
def onAll[S](t2: => Tactic[S]): Tactic[Unit]

Attributes

Inherited from:
Tactic
Source
core.scala

Attributes

Inherited from:
Tactic
Source
core.scala

Attributes

Inherited from:
Tactic
Source
core.scala
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.

Attributes

Inherited from:
Tactic
Source
core.scala

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product
def quiet: Tactic[T]

Attributes

Inherited from:
Tactic
Source
core.scala
def quietOnly(loggers: Logger*): Tactic[T]

Attributes

Inherited from:
Tactic
Source
core.scala
protected def replace(proof: LKProof): Tactic[Unit]

Attributes

Inherited from:
Tactical1
Source
core.scala
def verbose: Tactic[T]

Attributes

Inherited from:
Tactic
Source
core.scala
def verboseOnly(loggers: Logger*): Tactic[T]

Attributes

Inherited from:
Tactic
Source
core.scala