case class ReplaceTactic(target: String, u: Expr, v: Expr)(implicit ctx: Context) extends Tactical1[Unit] with Product with Serializable
Replaces all occurrences of a given term another term.
- 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.
- ctx
A context.
- Source
- ReplaceTactic.scala
- Alphabetic
- By Inheritance
- ReplaceTactic
- Serializable
- Product
- Equals
- Tactical1
- Tactic
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Instance Constructors
Type Members
- class FindFormula extends AnyRef
- Attributes
- protected
- Definition Classes
- Tactical1
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 ReplaceTactic toany2stringadd[ReplaceTactic] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
- def ->[B](y: B): (ReplaceTactic, B)
- Implicit
- This member is added by an implicit conversion from ReplaceTactic toArrowAssoc[ReplaceTactic] 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]
- Definition Classes
- Tactic
- def andThen[S](t2: => Tactic[S]): Tactic[S]
- Definition Classes
- Tactic
- 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 termsu
andv
are not definitionally equal in the contextctx
.- goal
A goal.
- 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
- ReplaceTactic → Tactical1
- def apply(proofState: ProofState): Either[TacticFailure, (Unit, ProofState)]
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- def cut(errorMessage: String): Tactic[Unit]
- Definition Classes
- Tactic
- def ensuring(cond: (ReplaceTactic) => Boolean, msg: => Any): ReplaceTactic
- Implicit
- This member is added by an implicit conversion from ReplaceTactic toEnsuring[ReplaceTactic] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: (ReplaceTactic) => Boolean): ReplaceTactic
- Implicit
- This member is added by an implicit conversion from ReplaceTactic toEnsuring[ReplaceTactic] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean, msg: => Any): ReplaceTactic
- Implicit
- This member is added by an implicit conversion from ReplaceTactic toEnsuring[ReplaceTactic] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean): ReplaceTactic
- Implicit
- This member is added by an implicit conversion from ReplaceTactic toEnsuring[ReplaceTactic] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def findFormula(goal: OpenAssumption, mode: TacticApplyMode): FindFormula
- Attributes
- protected
- Definition Classes
- Tactical1
- def flatMap[S](f: (Unit) => Tactic[S])(implicit file: File, line: Line): Tactic[S]
- Definition Classes
- Tactic
- def focused: Tactic[Unit]
- Definition Classes
- Tactic
- def formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from ReplaceTactic toStringFormat[ReplaceTactic] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def map[S](f: (Unit) => S)(implicit file: File, line: Line): Tactic[S]
- Definition Classes
- Tactic
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def onAll[S](t2: => Tactic[S]): Tactic[Unit]
- Definition Classes
- Tactic
- def onAllSubGoals: Tactic[Unit]
- Definition Classes
- Tactic
- def onCurrentSubGoal: Tactic[Unit]
- Definition Classes
- Tactic
- 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
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def quiet: Tactic[Unit]
- Definition Classes
- Tactic
- def quietOnly(loggers: Logger*): Tactic[Unit]
- Definition Classes
- Tactic
- def replace(proof: LKProof): Tactic[Unit]
- Attributes
- protected
- Definition Classes
- Tactical1
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val target: String
- val u: Expr
- val v: Expr
- def verbose: Tactic[Unit]
- Definition Classes
- Tactic
- def verboseOnly(loggers: Logger*): Tactic[Unit]
- Definition Classes
- Tactic
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated @deprecated
- Deprecated
(Since version ) see corresponding Javadoc for more information.
- def →[B](y: B): (ReplaceTactic, B)
- Implicit
- This member is added by an implicit conversion from ReplaceTactic toArrowAssoc[ReplaceTactic] 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.
This is the API documentation for GAPT.
The main package is gapt.