gapt.proofs.gaptic.tactics

Members list

Type members

Classlikes

Attributes

Companion
class
Source
complexTactics.scala
Supertypes
class Object
trait Matchable
class Any
Self type
case class AnalyticInductionTactic(axioms: AxiomFactory, prover: ResolutionProver)(implicit ctx: MutableContext) extends Tactical1[Unit]

Calls the analytic induction prover on the subgoal

Calls the analytic induction prover on the subgoal

Attributes

Companion
object
Source
complexTactics.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Tactical1[Unit]
trait Tactic[Unit]
class Object
trait Matchable
class Any
Show all
case class AndLeftTactic(mode: TacticApplyMode) extends Tactical1[(String, String)]

Decomposes a conjunction in the antecedent of a goal.

Decomposes a conjunction in the antecedent of a goal.

Value parameters

mode

How to apply the tactic: To a specific label, to the only fitting formula, or to any fitting formula.

Attributes

Source
lkTactics.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Tactical1[(String, String)]
trait Tactic[(String, String)]
class Object
trait Matchable
class Any
Show all

Decomposes a conjunction in the succedent of a goal.

Decomposes a conjunction in the succedent of a goal.

Value parameters

mode

How to apply the tactic: To a specific label, to the only fitting formula, or to any fitting formula.

Attributes

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

Closes a goal of the form ⊥, Γ :- Δ

Closes a goal of the form ⊥, Γ :- Δ

Attributes

Source
lkTactics.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait Tactical1[Unit]
trait Tactic[Unit]
class Object
trait Matchable
class Any
Show all
Self type
case class ChainTactic(hyp: String, target: TacticApplyMode, substitution: Map[Var, Expr]) extends Tactical1[Unit]

Performs backwards chaining: A goal of the form ∀x (P(x) → Q(x)), Γ :- Δ, Q(t) is replaced by the goal ∀x (P(x) → Q(x)), Γ :- Δ, P(t).

Performs backwards chaining: A goal of the form ∀x (P(x) → Q(x)), Γ :- Δ, Q(t) is replaced by the goal ∀x (P(x) → Q(x)), Γ :- Δ, P(t).

Attributes

Source
complexTactics.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Tactical1[Unit]
trait Tactic[Unit]
class Object
trait Matchable
class Any
Show all
case class CutTactic(cutLabel: String, cutFormula: Formula) extends Tactical1[Unit], BinaryTactic[Unit]

Introduces a cut, creating two new subgoals.

Introduces a cut, creating two new subgoals.

Value parameters

cutFormula

The cut formula.

cutLabel

The label for the cut formula.

Attributes

Source
lkTactics.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Tactical1[Unit]
trait Tactic[Unit]
class Object
trait Matchable
class Any
Show all
case class EqualityTactic(equationLabel: String, formulaLabel: String, leftToRight: Option[Boolean], targetFormula: Option[Formula]) extends Tactical1[Unit]

Applies an equation in a goal.

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
Supertypes
trait Serializable
trait Product
trait Equals
trait Tactical1[Unit]
trait Tactic[Unit]
class Object
trait Matchable
class Any
Show all
case class ExistsLeftTactic(mode: TacticApplyMode, eigenVariable: Option[Var]) extends StrongQuantTactic

Decomposes an existential quantifier in the antecedent of a goal.

Decomposes an existential quantifier in the antecedent of a goal.

Value parameters

eigenVariable

If Some(v), the rule will attempt to use v as the eigenvariable. Otherwise it will automatically pick one.

mode

How to apply the tactic: To a specific label, to the only fitting formula, or to any fitting formula.

Attributes

Source
lkTactics.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Tactical1[Var]
trait Tactic[Var]
class Object
trait Matchable
class Any
Show all
case class ExistsRightTactic(mode: TacticApplyMode, terms: Seq[Expr], instantiateOnce: Boolean) extends Tactical1[String]

Decomposes a block of existential quantifiers in the antecedent of a goal.

Decomposes a block of existential quantifiers in the antecedent of a goal.

Value parameters

instantiateOnce

Whether the quantified formula should be forgotten after instantiating.

mode

How to apply the tactic: To a specific label, to the only fitting formula, or to any fitting formula.

terms

Instantiations for the quantifiers in the block.

Attributes

Source
lkTactics.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Tactical1[String]
trait Tactic[String]
class Object
trait Matchable
class Any
Show all
case class FocusTactic(index: Either[Int, OpenAssumptionIndex]) extends Tactic[Unit]

Attributes

Source
metaTactics.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Tactic[Unit]
class Object
trait Matchable
class Any
Show all
case class ForallLeftTactic(mode: TacticApplyMode, terms: Seq[Expr], instantiateOnce: Boolean) extends Tactical1[String]

Decomposes a block of universal quantifiers in the succedent of a goal.

Decomposes a block of universal quantifiers in the succedent of a goal.

Value parameters

instantiateOnce

Whether the quantified formula should be forgotten after instantiating.

mode

How to apply the tactic: To a specific label, to the only fitting formula, or to any fitting formula.

terms

Instantiations for the quantifiers in the block.

Attributes

Source
lkTactics.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Tactical1[String]
trait Tactic[String]
class Object
trait Matchable
class Any
Show all
case class ForallRightTactic(mode: TacticApplyMode, eigenVariable: Option[Var]) extends StrongQuantTactic

Decomposes a universal quantifier in the succedent of a goal.

Decomposes a universal quantifier in the succedent of a goal.

Value parameters

eigenVariable

If Some(v), the rule will attempt to use v as the eigenvariable. Otherwise it will automatically pick one.

mode

How to apply the tactic: To a specific label, to the only fitting formula, or to any fitting formula.

Attributes

Source
lkTactics.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Tactical1[Var]
trait Tactic[Var]
class Object
trait Matchable
class Any
Show all
case class ForwardChain(lemmaLabel: String, targetMode: TacticApplyMode, substitution: Map[Var, Expr]) extends Tactical1[Unit]

Creates forward chaining tactics.

Creates forward chaining tactics.

A forward chaining tactic replaces a goal of the form Γ, A(t), ∀x(A(t) → B(t)) ⇒ Δ by Γ, A(t), ∀x(A(t) → B(t)), B(t) ⇒ Δ.

Attributes

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

Decomposes an implication in the antecedent of a goal.

Decomposes an implication in the antecedent of a goal.

Value parameters

mode

How to apply the tactic: To a specific label, to the only fitting formula, or to any fitting formula.

Attributes

Source
lkTactics.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Tactical1[Unit]
trait Tactic[Unit]
class Object
trait Matchable
class Any
Show all
case class ImpRightTactic(mode: TacticApplyMode) extends Tactical1[(String, String)]

Decomposes an implication in the succedent of a goal.

Decomposes an implication in the succedent of a goal.

Value parameters

mode

How to apply the tactic: To a specific label, to the only fitting formula, or to any fitting formula.

Attributes

Source
lkTactics.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Tactical1[(String, String)]
trait Tactic[(String, String)]
class Object
trait Matchable
class Any
Show all
case class InductionTactic(mode: TacticApplyMode, v: Var, eigenVariables: Map[Const, Vector[Var]])(implicit ctx: Context) extends Tactical1[Unit]

Reduces a subgoal via induction.

Reduces a subgoal via induction.

Value parameters

ctx

A gapt.proofs.context.Context. Used to find the constructors of inductive types.

mode

How to apply the tactic: To a specific label, to the only fitting formula, or to any fitting formula.

Attributes

Source
complexTactics.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Tactical1[Unit]
trait Tactic[Unit]
class Object
trait Matchable
class Any
Show all
case class InsertTactic(insertion: LKProof) extends Tactical1[Unit]

Inserts an gapt.proofs.lk.LKProof if the insertion sequent subsumes the sequent of the subgoal.

Inserts an gapt.proofs.lk.LKProof if the insertion sequent subsumes the sequent of the subgoal.

Value parameters

insertion

The gapt.proofs.lk.LKProof to be inserted. Its end sequent must subsume the current goal.

Attributes

Source
metaTactics.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Tactical1[Unit]
trait Tactic[Unit]
class Object
trait Matchable
class Any
Show all
case object LogicalAxiomTactic extends Tactical1[Unit]

Closes a goal of the form A, Γ :- Γ, Δ

Closes a goal of the form A, Γ :- Γ, Δ

Attributes

Source
lkTactics.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait Tactical1[Unit]
trait Tactic[Unit]
class Object
trait Matchable
class Any
Show all
Self type
case class NegLeftTactic(mode: TacticApplyMode) extends Tactical1[String]

Decomposes a negation in the antecedent of a goal.

Decomposes a negation in the antecedent of a goal.

Value parameters

mode

How to apply the tactic: To a specific label, to the only fitting formula, or to any fitting formula.

Attributes

Source
lkTactics.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Tactical1[String]
trait Tactic[String]
class Object
trait Matchable
class Any
Show all
case class NegRightTactic(mode: TacticApplyMode) extends Tactical1[String]

Decomposes a negation in the succedent of a goal.

Decomposes a negation in the succedent of a goal.

Value parameters

mode

How to apply the tactic: To a specific label, to the only fitting formula, or to any fitting formula.

Attributes

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

Decomposes a disjunction in the antecedent of a goal.

Decomposes a disjunction in the antecedent of a goal.

Value parameters

mode

How to apply the tactic: To a specific label, to the only fitting formula, or to any fitting formula.

Attributes

Source
lkTactics.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Tactical1[Unit]
trait Tactic[Unit]
class Object
trait Matchable
class Any
Show all
case class OrRightTactic(mode: TacticApplyMode) extends Tactical1[(String, String)]

Decomposes a disjunction in the succedent of a goal.

Decomposes a disjunction in the succedent of a goal.

Value parameters

mode

How to apply the tactic: To a specific label, to the only fitting formula, or to any fitting formula.

Attributes

Source
lkTactics.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Tactical1[(String, String)]
trait Tactic[(String, String)]
class Object
trait Matchable
class Any
Show all
case class ProofLinkTactic(proofName: String)(implicit ctx: Context) extends Tactical1[Unit]

Closes a goal with a proof link

Closes a goal with a proof link

Value parameters

proofName

The name of the proof proving the goal.

Attributes

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

Calls the GAPT tableau prover on the subgoal.

Calls the GAPT tableau prover on the subgoal.

Attributes

Source
complexTactics.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait Tactical1[Unit]
trait Tactic[Unit]
class Object
trait Matchable
class Any
Show all
Self type
PropTactic.type
case object QuasiPropTactic extends Tactical1[Unit]

Attributes

Source
complexTactics.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait Tactical1[Unit]
trait Tactic[Unit]
class Object
trait Matchable
class Any
Show all
Self type
case object ReflexivityAxiomTactic extends Tactical1[Unit]

Closes a goal of the form Γ :- Δ, s = s

Closes a goal of the form Γ :- Δ, s = s

Attributes

Source
lkTactics.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait Tactical1[Unit]
trait Tactic[Unit]
class Object
trait Matchable
class Any
Show all
Self type
case class RenameTactic(oldLabel: String, newLabel: String) extends Tactical1[Unit]

Attributes

Source
metaTactics.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Tactical1[Unit]
trait Tactic[Unit]
class Object
trait Matchable
class Any
Show all
case class RepeatTactic[T](tact: Tactic[T]) extends Tactic[Unit]

Applies the given Tactic to the proof state until it fails.

Applies the given Tactic to the proof state until it fails.

Note that the tactical is not required to succeed at least once, i.e. it might fail immediately.

Value parameters

tact

The Tactic to be repeated.

Attributes

Source
metaTactics.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Tactic[Unit]
class Object
trait Matchable
class Any
Show all
case class ReplaceTactic(target: String, u: Expr, v: Expr)(implicit ctx: Context) extends Tactical1[Unit]

Replaces all occurrences of a given term another term.

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
Supertypes
trait Serializable
trait Product
trait Equals
trait Tactical1[Unit]
trait Tactic[Unit]
class Object
trait Matchable
class Any
Show all
case class ResolutionProverTactic(prover: Prover, viaExpansionProof: Boolean, deskolemize: Boolean)(implicit ctx: MutableContext) extends Tactical1[Unit]

Attributes

Source
complexTactics.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Tactical1[Unit]
trait Tactic[Unit]
class Object
trait Matchable
class Any
Show all
case class RewriteTactic(equations: Iterable[(String, Boolean)], target: Option[String], fixedSubst: Map[Var, Expr], once: Boolean) extends Tactical1[Unit]

Rewrites using the specified equations at the target, either once or as often as possible.

Rewrites using the specified equations at the target, either once or as often as possible.

Value parameters

equations

Universally quantified equations on the antecedent, with direction (left-to-right?)

once

Rewrite exactly once?

target

Formula to rewrite.

Attributes

Source
complexTactics.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Tactical1[Unit]
trait Tactic[Unit]
class Object
trait Matchable
class Any
Show all
abstract class StrongQuantTactic extends Tactical1[Var]

Attributes

Source
lkTactics.scala
Supertypes
trait Tactical1[Var]
trait Tactic[Var]
class Object
trait Matchable
class Any
Known subtypes
case class SubstTactic(mode: TacticApplyMode) extends Tactical1[Unit]

Attributes

Source
complexTactics.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Tactical1[Unit]
trait Tactic[Unit]
class Object
trait Matchable
class Any
Show all
case class SuperpositionInductionTactic(opts: SpinOptions)(implicit ctx: MutableContext) extends Tactical1[Unit]

Attributes

Source
complexTactics.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Tactical1[Unit]
trait Tactic[Unit]
class Object
trait Matchable
class Any
Show all
case object TopAxiomTactic extends Tactical1[Unit]

Closes a goal of the form Γ :- Δ, ⊤

Closes a goal of the form Γ :- Δ, ⊤

Attributes

Source
lkTactics.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait Tactical1[Unit]
trait Tactic[Unit]
class Object
trait Matchable
class Any
Show all
Self type
case class UnfoldTactic(target: String, definitions: Seq[String], maxSteps: Option[Int])(implicit ctx: Context) extends Tactical1[Unit]

Attributes

Source
complexTactics.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Tactical1[Unit]
trait Tactic[Unit]
class Object
trait Matchable
class Any
Show all
case class UnfoldTacticHelper(definitions: Seq[String], maxSteps: Option[Int])(implicit ctx: Context)

Attributes

Source
complexTactics.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class WeakeningLeftTactic(applyToLabel: String) extends Tactical1[Unit]

Removes a formula from the antecedent of a goal.

Removes a formula from the antecedent of a goal.

Value parameters

applyToLabel

The label of the formula to be removed.

Attributes

Source
lkTactics.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Tactical1[Unit]
trait Tactic[Unit]
class Object
trait Matchable
class Any
Show all
case class WeakeningRightTactic(applyToLabel: String) extends Tactical1[Unit]

Removes a formula from the succedent of a goal.

Removes a formula from the succedent of a goal.

Value parameters

applyToLabel

The label of the formula to be removed.

Attributes

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