ReplaceTactic

gapt.proofs.gaptic.tactics.ReplaceTactic
case class ReplaceTactic(target: String, u: Expr, v: Expr)(implicit ctx: Context) extends Tactical1[Unit]

Replaces all occurrences of a given term another term.

Value parameters

ctx

A context.

target

The label of the formula in which to replace the terms.

u

The term to be replaced.

v

The term by which u is replaced.

Attributes

Source
ReplaceTactic.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]

Constructs a "replace" tactic.

Constructs a "replace" tactic.

The method fails if the given goal does not contain the label target or if the terms u and v are not definitionally equal in the context ctx.

Value parameters

goal

A goal.

Attributes

Returns

A tactic that replaces the given goal by a goal in which the formula indicated by the label target is replaced by the formula obtained by replacing all occurrences of the term u by the term v.

Definition Classes
Source
ReplaceTactic.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