Predefined tactics in gaptic.
Attributes
- Companion
- trait
- Source
- TacticCommands.scala
- Graph
-
- Supertypes
- Self type
-
TacticCommands.type
Members list
Type members
Inherited classlikes
Retrieves the current subgoal.
Retrieves the current subgoal.
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait Tactical1[OpenAssumption]trait Tactic[OpenAssumption]class Objecttrait Matchableclass AnyShow all
Value members
Inherited methods
Applies the ForallLeft tactic to the current subgoal: The goal
Applies the ForallLeft tactic to the current subgoal: The goal
∀x,,1,,,...,∀x,,n,,.A, Γ :- Δ
is reduced to
A[x,,1,,\t,,1,,,...,x,,n,,\t,,n,,], ∀x,,1,,,...,∀x,,n,,.A, Γ :- Δ.
This will only work if there is exactly one universal formula in the antecedent!
Value parameters
- terms
-
The terms
t,,1,,,...,t,,n,,.
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Applies the ForallLeft tactic to the current subgoal: The goal
Applies the ForallLeft tactic to the current subgoal: The goal
∀x,,1,,,...,∀x,,n,,.A, Γ :- Δ
is reduced to
A[x,,1,,\t,,1,,,...,x,,n,,\t,,n,,], ∀x,,1,,,...,∀x,,n,,.A, Γ :- Δ.
Value parameters
- applyToLabel
-
The label of the formula
∀x,,1,,,...,∀x,,n,,.A. - terms
-
The terms
t,,1,,,...,t,,n,,.
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Applies the ForallRight tactic to the current subgoal: The goal
Applies the ForallRight tactic to the current subgoal: The goal
Γ :- Δ, ∀x.A
is reduced to
Γ :- Δ, A.
This will only work if there is exactly one universal formula in the succedent!
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Applies the ForallRight tactic to the current subgoal: The goal
Applies the ForallRight tactic to the current subgoal: The goal
Γ :- Δ, ∀x.A
is reduced to
Γ :- Δ, A.
Value parameters
- applyToLabel
-
The label of the formula
∀x.A.
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Applies the ForallRight tactic to the current subgoal: The goal
Applies the ForallRight tactic to the current subgoal: The goal
Γ :- Δ, ∀x.A
is reduced to
Γ :- Δ, A[x\α].
This will only work if there is exactly one universal formula in the succedent!
Value parameters
- eigenVariable
-
The variable
α.
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Applies the ForallRight tactic to the current subgoal: The goal
Applies the ForallRight tactic to the current subgoal: The goal
Γ :- Δ, ∀x.A
is reduced to
Γ :- Δ, A[x\α].
Value parameters
- applyToLabel
-
The label of the formula
∀x.A. - eigenVariable
-
The variable
α.
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Applies the AndLeft tactic to the current subgoal: The goal
Applies the AndLeft tactic to the current subgoal: The goal
A ∧ B, Γ :- Δ
is reduced to
A, B, Γ :- Δ.
This will only work if there is exactly one conjunctive formula in the antecedent!
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Applies the AndLeft tactic to the current subgoal: The goal
Applies the AndLeft tactic to the current subgoal: The goal
A ∧ B, Γ :- Δ
is reduced to
A, B, Γ :- Δ.
Value parameters
- applyToLabel
-
The label of the formula
A ∧ B.
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Applies the AndRight tactic to the current subgoal: The goal
Applies the AndRight tactic to the current subgoal: The goal
Γ :- Δ, A ∧ B
is reduced to
Γ :- Δ, A and Γ :- Δ, B.
This will only work if there is exactly one conjunctive formula in the succedent!
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Applies the AndRight tactic to the current subgoal: The goal
Applies the AndRight tactic to the current subgoal: The goal
Γ :- Δ, A ∧ B
is reduced to
Γ :- Δ, A and Γ :- Δ, B.
Value parameters
- applyToLabel
-
The label of the formula
A ∧ B.
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Applies the BottomAxiom tactic to the current subgoal: A subgoal of the form ⊥, Γ :- Δ will be closed.
Applies the BottomAxiom tactic to the current subgoal: A subgoal of the form ⊥, Γ :- Δ will be closed.
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Applies the LogicalAxiom tactic to the current subgoal: A subgoal of the form A, Γ :- Δ, A will be closed.
Applies the LogicalAxiom tactic to the current subgoal: A subgoal of the form A, Γ :- Δ, A will be closed.
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Applies the ReflexivityAxiom tactic to the current subgoal: A subgoal of the form Γ :- Δ, s = s will be closed.
Applies the ReflexivityAxiom tactic to the current subgoal: A subgoal of the form Γ :- Δ, s = s will be closed.
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Applies the TopAxiom tactic to the current subgoal: A subgoal of the form Γ :- Δ, ⊤ will be closed.
Applies the TopAxiom tactic to the current subgoal: A subgoal of the form Γ :- Δ, ⊤ will be closed.
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
by { tac1; tac2; ...; tacn } solves the first goal using the provided tactic block, and fails otherwise
by { tac1; tac2; ...; tacn } solves the first goal using the provided tactic block, and fails otherwise
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Applies the Cut tactic to the current subgoal: The goal
Applies the Cut tactic to the current subgoal: The goal
Γ :- Δ
is reduced to
Γ :- Δ, C and C, Γ :- Δ.
Value parameters
- cutFormula
-
The formula
C. - label
-
The label of
C.
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Decomposes the current subgoal by applying all "simple" rules as often as possible. These rules are:
Decomposes the current subgoal by applying all "simple" rules as often as possible. These rules are:
¬:land¬:r∧:l∨:r→:r∀:r∃:l
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Applies the Equality tactic to the current subgoal: Given an equation s = t and a formula A, some occurrences of s in A are replaced by t or vice versa. The exact behavior can be controlled with additional commands:
Applies the Equality tactic to the current subgoal: Given an equation s = t and a formula A, some occurrences of s in A are replaced by t or vice versa. The exact behavior can be controlled with additional commands:
fromLeftToRight: Occurrences ofswill be replaced byt.fromRightToLeft: Occurrences oftwill be replaced bys.yielding(f): The tactic will attempt to replace occurences in such a way that the end result isf.
If neither fromLeftToRight nor fromRightToLeft is used, the direction of replacement needs to be unambiguous, i.e. s and t may not both occur in A.
Value parameters
- eq
-
The label of
s = t. - fm
-
The label of
A.
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Calls escargot on the current subgoal.
Calls escargot on the current subgoal.
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Applies the ExistsLeft tactic to the current subgoal: The goal
Applies the ExistsLeft tactic to the current subgoal: The goal
∃x.A, Γ :- Δ
is reduced to
A, Γ :- Δ.
This will only work if there is exactly one existential formula in the antecedent!
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Applies the ExistsLeft tactic to the current subgoal: The goal
Applies the ExistsLeft tactic to the current subgoal: The goal
∃x.A, Γ :- Δ
is reduced to
A, Γ :- Δ.
Value parameters
- applyToLabel
-
The label of the formula
∃x.A.
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Applies the ExistsLeft tactic to the current subgoal: The goal
Applies the ExistsLeft tactic to the current subgoal: The goal
∃x.A, Γ :- Δ
is reduced to
A[x\α], Γ :- Δ.
This will only work if there is exactly one existential formula in the antecedent!
Value parameters
- eigenVariable
-
The variable
α.
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Applies the ExistsLeft tactic to the current subgoal: The goal
Applies the ExistsLeft tactic to the current subgoal: The goal
∃x.A, Γ :- Δ
is reduced to
A[x\α], Γ :- Δ.
Value parameters
- applyToLabel
-
The label of the formula
∃x.A. - eigenVariable
-
The variable
α.
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Applies the ExistsRight tactic to the current subgoal: The goal
Applies the ExistsRight tactic to the current subgoal: The goal
Γ :- Δ, ∃x,,1,,...∃x,,n,,.A
is reduced to
Γ :- Δ, ∃x,,1,,...∃x,,n,,.A, A[x,,1,,\t,,1,,,...,x,,n,,\t,,n,,].
This will only work if there is exactly one existential formula in the succedent!
Value parameters
- terms
-
The terms
t,,1,,,...,t,,n,,.
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Applies the ExistsRight tactic to the current subgoal: The goal
Applies the ExistsRight tactic to the current subgoal: The goal
Γ :- Δ, ∃x,,1,,...∃x,,n,,.A
is reduced to
Γ :- Δ, ∃x,,1,,...∃x,,n,,.A, A[x,,1,,\t,,1,,,...,x,,n,,\t,,n,,].
Value parameters
- applyToLabel
-
The label of the formula
∃x,,1,,...∃x,,n,,.A. - terms
-
The terms
t,,1,,,...,t,,n,,.
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Tactic that immediately fails.
Tactic that immediately fails.
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Solves the current subgoal as a first-order consequence of the background theory. This closes the goal.
Solves the current subgoal as a first-order consequence of the background theory. This closes the goal.
Value parameters
- ctx
-
A gapt.proofs.context.Context. The current subgoal must be contained in its background theory.
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Moves the specified goal to the front of the goal list.
Moves the specified goal to the front of the goal list.
Value parameters
- indexOfSubGoal
-
The index of the goal.
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Moves the specified goal to the front of the goal list.
Moves the specified goal to the front of the goal list.
Value parameters
- indexOfSubGoal
-
The index of the goal.
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Lets you "forget" a sequence of formulas, i.e. the tactics version of the weakening rule. The formulas with labels L,,1,,,...,L,,n,, will be removed from the current goal.
Lets you "forget" a sequence of formulas, i.e. the tactics version of the weakening rule. The formulas with labels L,,1,,,...,L,,n,, will be removed from the current goal.
Value parameters
- ls
-
The labels
L,,1,,,...,,,Ln,,.
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Attributes
- See also
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Instantiates prenex quantifiers to obtain a formula in a given polarity.
Instantiates prenex quantifiers to obtain a formula in a given polarity.
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Applies the ImpLeft tactic to the current subgoal: The goal
Applies the ImpLeft tactic to the current subgoal: The goal
A → B, Γ :- Δ
is reduced to
Γ :- Δ, A and B, Γ :- Δ.
This will only work if there is exactly one implicative formula in the antecedent!
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Applies the ImpLeft tactic to the current subgoal: The goal
Applies the ImpLeft tactic to the current subgoal: The goal
A → B, Γ :- Δ
is reduced to
Γ :- Δ, A and B, Γ :- Δ.
Value parameters
- applyToLabel
-
The label of the formula
A → B.
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Applies the ImpRight tactic to the current subgoal: The goal
Applies the ImpRight tactic to the current subgoal: The goal
Γ :- Δ, A → B
is reduced to
A, Γ :- Δ, B.
This will only work if there is exactly one implicative formula in the succedent!
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Applies the ImpRight tactic to the current subgoal: The goal
Applies the ImpRight tactic to the current subgoal: The goal
Γ :- Δ, A → B
is reduced to
A, Γ :- Δ, B.
Value parameters
- applyToLabel
-
The label of the formula
A → B.
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Uses an LKProof as a lemma.
Uses an LKProof as a lemma.
If proof ends in Γ :- φ, then the current goal
Γ, Π :- Λ
is reduced to
Γ, Π, φ :- Λ
Value parameters
- label
-
the label for φ in the subgoal
- proof
-
The proof to insert as a lemma by a cut.
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Applies the Induction tactic to the current subgoal: The goal
Applies the Induction tactic to the current subgoal: The goal
Γ, :- Δ, ∀x.A
is reduced to n new subgoals, where n is the number of constructors of the type of x.
Value parameters
- ctx
-
A gapt.proofs.context.Context. It must contain an inductive definition of the type of
x. - label
-
The label of the formula
∀x.A.
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Applies the Induction tactic to the current subgoal: The goal
Applies the Induction tactic to the current subgoal: The goal
Γ, :- Δ, ∀x.A
is reduced to n new subgoals, where n is the number of constructors of the type of x.
This will only work if there is exactly one universal formula in the succedent!
Value parameters
- ctx
-
A gapt.proofs.context.Context. It must contain an inductive definition of the type of
x.
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Inserts an LKProof for the current subgoal.
Inserts an LKProof for the current subgoal.
Value parameters
- proof
-
The proof to be inserted. Its end-sequent must subsume the current goal.
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Applies the NegLeft tactic to the current subgoal: The goal
Applies the NegLeft tactic to the current subgoal: The goal
¬A, Γ :- Δ
is reduced to
Γ :- Δ, A.
This will only work if there is exactly one negated formula in the antecedent!
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Applies the NegLeft tactic to the current subgoal: The goal
Applies the NegLeft tactic to the current subgoal: The goal
¬A, Γ :- Δ
is reduced to
Γ :- Δ, A.
Value parameters
- applyToLabel
-
The label of the formula
¬A.
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Applies the NegRight tactic to the current subgoal: The goal
Applies the NegRight tactic to the current subgoal: The goal
Γ :- Δ, A
is reduced to
A, Γ :- Δ.
This will only work if there is exactly one negated formula in the succedent!
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Applies the NegRight tactic to the current subgoal: The goal
Applies the NegRight tactic to the current subgoal: The goal
Γ :- Δ, ¬A
is reduced to
A, Γ :- Δ.
Value parameters
- applyToLabel
-
The label of the formula
¬A.
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Applies the OrLeft tactic to the current subgoal: The goal
Applies the OrLeft tactic to the current subgoal: The goal
A ∨ B, Γ :- Δ
is reduced to
A, Γ :- Δ and B, Γ :- Δ.
This will only work if there is exactly one disjunctive formula in the antecedent!
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Applies the OrLeft tactic to the current subgoal: The goal
Applies the OrLeft tactic to the current subgoal: The goal
A ∨ B, Γ :- Δ
is reduced to
A, Γ :- Δ and B, Γ :- Δ.
Value parameters
- applyToLabel
-
The label of the formula
A ∨ B.
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Applies the OrRight tactic to the current subgoal: The goal
Applies the OrRight tactic to the current subgoal: The goal
Γ :- Δ, A ∨ B
is reduced to
Γ :- Δ, A, B.
This will only work if there is exactly one disjunctive formula in the succedent!
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Applies the OrRight tactic to the current subgoal: The goal
Applies the OrRight tactic to the current subgoal: The goal
Γ :- Δ, A ∨ B
is reduced to
Γ :- Δ, A, B.
Value parameters
- applyToLabel
-
The label of the formula
A ∨ B.
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Calls the builtin tableau prover on the current subgoal. If the goal is a tautology, a proof will automatically be found and inserted.
Calls the builtin tableau prover on the current subgoal. If the goal is a tautology, a proof will automatically be found and inserted.
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Calls prover9 on the current subgoal.
Calls prover9 on the current subgoal.
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Applies the LogicalAxiom tactic to the current subgoal: A subgoal of the form A, Γ :- Δ, A will be closed.
Applies the LogicalAxiom tactic to the current subgoal: A subgoal of the form A, Γ :- Δ, A will be closed.
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Synonym for axiomRefl.
Changes the provided label. Syntax:
Changes the provided label. Syntax:
renameLabel("foo") to "bar"
Value parameters
- oldLabel
-
The label to be renamed.
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Repeats a tactical until it fails.
Repeats a tactical until it fails.
Value parameters
- t
-
A tactical.
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Rewrites the formula specified by target using (possibly universally quantified) equations.
Rewrites the formula specified by target using (possibly universally quantified) equations.
rewrite.many ltr "equation1" in "target"
rewrite.many ltr ("equation1", "eq2") rtl ("eq3", "eq4") in "target" subst (hov"x" -> le"f(f(c))")
ltr: rewrite left-to-right using this equation rtl: rewrite right-to-left using this equation many: rewrite as long as possible (default is to only rewrite once)
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Does nothing.
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Declares the current subgoal as a theory axiom, i.e. a sequent that is contained in the background theory. This closes the goal.
Declares the current subgoal as a theory axiom, i.e. a sequent that is contained in the background theory. This closes the goal.
Value parameters
- ctx
-
A gapt.proofs.context.Context. The current subgoal must be contained in its background theory.
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Attempts to apply the tactics axiomTop, axiomBot, axiomRefl, and axiomLog.
Attempts to apply the tactics axiomTop, axiomBot, axiomRefl, and axiomLog.
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Replaces a defined constant with its definition. Syntax:
Replaces a defined constant with its definition. Syntax:
unfold("def1", "def2",...,"defn") in ("label1", "label2",...,"labelk")
NB: This will only replace the first definition it finds in each supplied formula. If you want to unfold all definitions, use repeat.
Value parameters
- ctx
-
A gapt.proofs.context.Context. The definitions you want to unfold need to be present in
ctx. - definitions
-
The definitions
def1,...,defn.
Attributes
- Inherited from:
- TacticCommands
- Source
- TacticCommands.scala
Deprecated and Inherited methods
Leaves a hole in the current proof by inserting a dummy proof of the empty sequent.
Leaves a hole in the current proof by inserting a dummy proof of the empty sequent.
Attributes
- Deprecated
-
[Since version the dawn of time] - Inherited from:
- TacticCommands
- Source
- TacticCommands.scala