gapt.proofs.gaptic

Members list

Packages

Type members

Classlikes

case object AnyFormula extends TacticApplyMode

Apply a tactic if there is a formula that fits.

Apply a tactic if there is a formula that fits.

Attributes

Source
core.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
AnyFormula.type
trait BinaryTactic[+T] extends Tactic[T]

Trait for tactics that create two new subgoals. Provides the left and right methods.

Trait for tactics that create two new subgoals. Provides the left and right methods.

Attributes

Source
core.scala
Supertypes
trait Tactic[T]
class Object
trait Matchable
class Any
Known subtypes
final case class CanLabelledSequent(labelledSequent: Sequent[(String, Formula)]) extends AnyVal

Attributes

Companion
object
Source
language.scala
Supertypes
trait Serializable
trait Product
trait Equals
class AnyVal
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
language.scala
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Source
language.scala
Supertypes
class Object
trait Matchable
class Any
Self type
object Lemma

Attributes

Source
language.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Lemma.type
trait LemmaHelper[T]

Attributes

Source
macros.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Helper
class Helper
class Helper
object LemmaMacros

Attributes

Source
macros.scala
Supertypes
class Object
trait Matchable
class Any
Self type
object NewLabel

Attributes

Source
core.scala
Supertypes
class Object
trait Matchable
class Any
Self type
NewLabel.type
object NewLabels

Object that wraps helper function to generate new label from an existing one

Object that wraps helper function to generate new label from an existing one

Attributes

Source
core.scala
Supertypes
class Object
trait Matchable
class Any
Self type
NewLabels.type
case class OnLabel(label: String) extends TacticApplyMode

Apply a tactic to a specific label.

Apply a tactic to a specific label.

Value parameters

label

The label that the tactic should be applied to.

Attributes

Source
core.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class OpenAssumption(labelledSequent: Sequent[(String, Formula)], index: OpenAssumptionIndex) extends InitialSequent

Defines the case class open assumption which considers an arbitrary labelled sequence an axiom.

Defines the case class open assumption which considers an arbitrary labelled sequence an axiom.

Attributes

Source
core.scala
Supertypes
trait Serializable
class LKProof
trait DagProof[LKProof]
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

The globally unique index of an open assumption in a proof state.

The globally unique index of an open assumption in a proof state.

Attributes

Source
core.scala
Supertypes
class Object
trait Matchable
class Any
object Proof

Attributes

Source
language.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Proof.type
object ProofState

Attributes

Companion
class
Source
core.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
ProofState.type
case class ProofState

Attributes

Companion
object
Source
core.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
class QedFailureException(s: String) extends Exception

Attributes

Source
language.scala
Supertypes
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
trait SimpleLemmaHelper[T] extends LemmaHelper[T]

Attributes

Source
language.scala
Supertypes
trait LemmaHelper[T]
class Object
trait Matchable
class Any
Known subtypes
trait Tactic[+T]

Attributes

Companion
object
Source
core.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
Self type
Tactic[T]
object Tactic

Attributes

Companion
trait
Source
core.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Tactic.type
sealed abstract class TacticApplyMode

Class that describes how a tactic should be applied: to a label, to the unique fitting formula, or to any fitting formula.

Class that describes how a tactic should be applied: to a label, to the unique fitting formula, or to any fitting formula.

Attributes

Source
core.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object AnyFormula.type
class OnLabel
object UniqueFormula.type

Attributes

Source
language.scala
Supertypes
trait LemmaHelper[T]
class Object
trait Matchable
class Any

Predefined tactics in gaptic.

Predefined tactics in gaptic.

Attributes

Companion
trait
Source
TacticCommands.scala
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Companion
object
Source
TacticCommands.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object TacticCommands.type
final implicit class TacticEitherOps[T, E](either: Either[E, T]) extends AnyVal

Attributes

Source
package.scala
Supertypes
class AnyVal
trait Matchable
class Any
case class TacticFailure(tactic: Tactic[_], state: Option[ProofState], message: String)

Attributes

Companion
object
Source
core.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object TacticFailure

Attributes

Companion
class
Source
core.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
class TacticFailureException(s: String, cause: Throwable) extends Exception

Attributes

Source
language.scala
Supertypes
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
Known subtypes

Attributes

Source
language.scala
Supertypes
trait Product
trait Equals
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
object TacticMonad extends Monad[Tactic]

Implementation of the cats.Monad typeclass for tactics.

Implementation of the cats.Monad typeclass for tactics.

Attributes

Source
package.scala
Supertypes
trait Monad[Tactic]
trait FlatMap[Tactic]
trait Apply[Tactic]
trait Functor[Tactic]
trait Invariant[Tactic]
trait Serializable
class Object
trait Matchable
class Any
Show all
Self type
final implicit class TacticOptionOps[T](option: Option[T]) extends AnyVal

Attributes

Source
package.scala
Supertypes
class AnyVal
trait Matchable
class Any
trait Tactical[+T] extends Tactic[T]

Attributes

Source
core.scala
Supertypes
trait Tactic[T]
class Object
trait Matchable
class Any
Self type
trait Tactical1[+T] extends Tactic[T]

Attributes

Source
core.scala
Supertypes
trait Tactic[T]
class Object
trait Matchable
class Any
Known subtypes
Self type
class TacticsProof(initialContext: ImmutableContext) extends TacticsProof0

Attributes

Source
TacticsProof.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object associativity.type
object comm.type
object evenodd.type
object factorial.type
object primeFactor.type
object proof.type
class euclid
object euclid3.type
class furstenberg
object furstenberg3.type
object LinearEqExampleProof.type
object simp_expr_unambig1.type
object prop_03.type
object prop_06.type
object prop_07.type
object prop_08.type
object prop_09.type
object prop_10.type
object prop_11.type
object prop_12.type
object prop_13.type
object prop_14.type
object prop_15.type
object prop_16.type
object prop_17.type
object prop_18.type
object prop_19.type
object prop_21.type
object prop_22.type
object prop_23.type
object prop_24.type
object prop_26.type
object prop_27.type
object prop_28.type
object prop_29.type
object prop_30.type
object prop_31.type
object prop_32.type
object prop_33.type
object prop_34.type
object prop_35.type
object prop_36.type
object prop_37.type
object prop_38.type
object prop_39.type
object prop_40.type
object prop_41.type
object prop_42.type
object prop_43.type
object prop_44.type
object prop_45.type
object prop_46.type
object prop_47.type
object prop_48.type
object prop_49.type
object prop_59.type
object prop_01.type
object prop_04.type
object prop_05.type
object prop_06.type
object prop_07.type
object prop_08.type
object prop_10.type
object prop_13.type
object prop_15.type
object prop_16.type
object prop_20.type
object prop_27.type
object prop_28.type
object prop_29.type
object prop_30.type
object prop_31.type
object prop_32.type
object prop_33.type
object prop_34.type
object prop_35.type
object ECSJumpSchema.type
object FirstSchema0.type
object FirstSchema1.type
object FirstSchema2.type
object FirstSchema3.type
object FirstSchema4.type
object FirstSchema5.type
object FirstSchema6.type
object FirstSchema7.type
object FirstSchema8.type
object FirstSchema9.type
object MonoidCancellation.type
object NdiffSchema.type
object NiaSchema.type
object NiaSchemaRefutation.type
object Pi2Pigeonhole.type
object Pi3Pigeonhole.type
object StrictMonotoneSchema.type
object VeryWeakPHPSeqSchema.type
object divisionByTwo.type
object drinker.type
object elemAtIndex.type
object fol1.type
object gniaSchema.type
object lattice.type
object primediv.type
object successor.type
object tape.type
object tapeUrban.type
object tautSchema.type
object tbillc.type
Show all
class TacticsProof0(initialContext: ImmutableContext)

Attributes

Source
TacticsProof.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class TacticsProof
object associativity.type
object comm.type
object evenodd.type
object factorial.type
object primeFactor.type
object proof.type
class euclid
object euclid3.type
class furstenberg
object furstenberg3.type
object LinearEqExampleProof.type
object simp_expr_unambig1.type
object prop_03.type
object prop_06.type
object prop_07.type
object prop_08.type
object prop_09.type
object prop_10.type
object prop_11.type
object prop_12.type
object prop_13.type
object prop_14.type
object prop_15.type
object prop_16.type
object prop_17.type
object prop_18.type
object prop_19.type
object prop_21.type
object prop_22.type
object prop_23.type
object prop_24.type
object prop_26.type
object prop_27.type
object prop_28.type
object prop_29.type
object prop_30.type
object prop_31.type
object prop_32.type
object prop_33.type
object prop_34.type
object prop_35.type
object prop_36.type
object prop_37.type
object prop_38.type
object prop_39.type
object prop_40.type
object prop_41.type
object prop_42.type
object prop_43.type
object prop_44.type
object prop_45.type
object prop_46.type
object prop_47.type
object prop_48.type
object prop_49.type
object prop_59.type
object prop_01.type
object prop_04.type
object prop_05.type
object prop_06.type
object prop_07.type
object prop_08.type
object prop_10.type
object prop_13.type
object prop_15.type
object prop_16.type
object prop_20.type
object prop_27.type
object prop_28.type
object prop_29.type
object prop_30.type
object prop_31.type
object prop_32.type
object prop_33.type
object prop_34.type
object prop_35.type
object ECSJumpSchema.type
object FirstSchema0.type
object FirstSchema1.type
object FirstSchema2.type
object FirstSchema3.type
object FirstSchema4.type
object FirstSchema5.type
object FirstSchema6.type
object FirstSchema7.type
object FirstSchema8.type
object FirstSchema9.type
object MonoidCancellation.type
object NdiffSchema.type
object NiaSchema.type
object NiaSchemaRefutation.type
object Pi2Pigeonhole.type
object Pi3Pigeonhole.type
object StrictMonotoneSchema.type
object VeryWeakPHPSeqSchema.type
object divisionByTwo.type
object drinker.type
object elemAtIndex.type
object fol1.type
object gniaSchema.type
object lattice.type
object primediv.type
object successor.type
object tape.type
object tapeUrban.type
object tautSchema.type
object tbillc.type
Show all
case object UniqueFormula extends TacticApplyMode

Apply a tactic only if there is exactly one formula that fits.

Apply a tactic only if there is exactly one formula that fits.

Attributes

Source
core.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
object guessLabels

Attributes

Source
core.scala
Supertypes
class Object
trait Matchable
class Any
Self type

Inherited classlikes

case object currentGoal extends Tactical1[OpenAssumption]

Retrieves the current subgoal.

Retrieves the current subgoal.

Attributes

Inherited from:
TacticCommands
Source
TacticCommands.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Value members

Inherited methods

def allL(terms: Expr*): ForallLeftTactic

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
def allL(applyToLabel: String, terms: Expr*): ForallLeftTactic

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
def allR(applyToLabel: String): ForallRightTactic

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
def allR(eigenVariable: Var): ForallRightTactic

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
def allR(applyToLabel: String, eigenVariable: Var): ForallRightTactic

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
def anaInd(implicit ctx: Context): Tactic[Unit]

Attributes

Inherited from:
TacticCommands
Source
TacticCommands.scala
def anaIndG(implicit ctx: Context): Tactic[Unit]

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
def andL(applyToLabel: String): AndLeftTactic

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
def andR(applyToLabel: String): AndRightTactic

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
inline def by[T](inline tacticsProof: => Tactic[Unit]): Tactic[Unit]

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
def cases(lemma: String, terms: Expr*)(implicit ctx: Context): Tactic[Unit]

Attributes

Inherited from:
TacticCommands
Source
TacticCommands.scala
def casesW(label: String, lemma: String, terms: Expr*)(implicit ctx: Context): Tactic[Unit]

Attributes

Inherited from:
TacticCommands
Source
TacticCommands.scala

Attributes

Inherited from:
TacticCommands
Source
TacticCommands.scala
def cut(label: String, cutFormula: Formula): CutTactic

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:

  • ¬:l and ¬:r
  • ∧:l
  • ∨:r
  • →:r
  • ∀:r
  • ∃:l

Attributes

Inherited from:
TacticCommands
Source
TacticCommands.scala
def destruct(label: String): Tactic[Any]

Attributes

Inherited from:
TacticCommands
Source
TacticCommands.scala
def eql(eq: String, fm: String): EqualityTactic

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 of s will be replaced by t.
  • fromRightToLeft: Occurrences of t will be replaced by s.
  • yielding(f): The tactic will attempt to replace occurences in such a way that the end result is f.

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
def escrgt(implicit ctx: Context): Tactic[Unit]

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
def exL(applyToLabel: String): ExistsLeftTactic

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
def exL(eigenVariable: Var): ExistsLeftTactic

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
def exL(applyToLabel: String, eigenVariable: Var): ExistsLeftTactic

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
def exR(terms: Expr*): ExistsRightTactic

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
def exR(applyToLabel: String, terms: Expr*): ExistsRightTactic

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
def fail: Tactic[Nothing]

Tactic that immediately fails.

Tactic that immediately fails.

Attributes

Inherited from:
TacticCommands
Source
TacticCommands.scala
def foTheory(implicit ctx: Context): Tactic[Unit]

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
def focus(indexOfSubGoal: OpenAssumptionIndex): FocusTactic

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
def focus(indexOfSubGoal: Int): FocusTactic

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
def forget(pred: (String, Formula) => Boolean): Tactic[Unit]

Attributes

Inherited from:
TacticCommands
Source
TacticCommands.scala
def forget(ls: String*): Tactic[Unit]

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
def forwardChain(lemma: String, target: TacticApplyMode, substitution: Map[Var, Expr]): ForwardChain
def generalize(vs: Var*): Tactic[Unit]

Attributes

Inherited from:
TacticCommands
Source
TacticCommands.scala
def haveInstance(formula: Formula, polarity: Polarity): Tactic[String]

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
def impL(applyToLabel: String): ImpLeftTactic

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
def impR(applyToLabel: String): ImpRightTactic

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
def include(labels: String*)(implicit ctx: Context, dummyImplicit: DummyImplicit): Tactic[Unit]

Attributes

Inherited from:
TacticCommands
Source
TacticCommands.scala
def include(names: Expr*)(implicit ctx: Context): Tactic[Unit]

Attributes

Inherited from:
TacticCommands
Source
TacticCommands.scala
def include(label: String, proof: LKProof): Tactic[Unit]

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
def induction(on: Var, label: String)(implicit ctx: Context): InductionTactic

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
def induction(on: Var)(implicit ctx: Context): InductionTactic

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
def insert(proof: LKProof): InsertTactic

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
def negL(applyToLabel: String): NegLeftTactic

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
def negR(applyToLabel: String): NegRightTactic

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
def now: Tactic[Unit]

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
def orL(applyToLabel: String): OrLeftTactic

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
def orR(applyToLabel: String): OrRightTactic

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
def prop: Tactic[Unit]

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
def ref(proofName: String)(implicit ctx: Context): ProofLinkTactic

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.

Synonym for axiomRefl.

Attributes

Inherited from:
TacticCommands
Source
TacticCommands.scala
def renameLabel(oldLabel: String): RenameTactic

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
def repeat[T](t: Tactic[T]): RepeatTactic[T]

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
def revert(hyps: String*): Tactic[Unit]

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
def simp(implicit ctx: Context): SimpTactic

Attributes

Inherited from:
TacticCommands
Source
TacticCommands.scala
def skip: Tactic[Unit]

Does nothing.

Does nothing.

Attributes

Inherited from:
TacticCommands
Source
TacticCommands.scala
def subst(hyps: String*): Tactic[Unit]

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
def theory(implicit ctx: Context): Tactic[Unit]

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
def trace(implicit sig: BabelSignature): Tactic[Unit]

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
def unfold(definitions: String*)(implicit ctx: Context): UnfoldTacticHelper

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

def sorry: Tactic[Unit]

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

Implicits

Implicits

final implicit def TacticEitherOps[T, E](either: Either[E, T]): TacticEitherOps[T, E]

Attributes

Source
package.scala
final implicit def TacticOptionOps[T](option: Option[T]): TacticOptionOps[T]

Attributes

Source
package.scala