trans
tactic #
This implements the trans
tactic, which can apply transitivity theorems with an optional middle
variable argument.
Alias of Trans.trans
.
Compose two proofs by transitivity, generalized over the relations involved.
Instances For
Discrimation tree settings for the trans
extension.
Equations
- Batteries.Tactic.transExt.config = { iota := true, beta := true, proj := Lean.Meta.ProjReductionKind.yesWithDelta, zeta := true, zetaDelta := true }
Instances For
Environment extension storing transitivity lemmas
solving e ← mkAppM' f #[x]
Equations
- One or more equations did not get rendered due to their size.
- Batteries.Tactic.getExplicitFuncArg? e = pure none
Instances For
solving tgt ← mkAppM' rel #[x, z]
given tgt = f z
Equations
- One or more equations did not get rendered due to their size.
- Batteries.Tactic.getExplicitRelArg? tgt f z = pure none
Instances For
refining tgt ← mkAppM' rel #[x, z]
dropping more arguments if possible
Equations
- One or more equations did not get rendered due to their size.
- Batteries.Tactic.getExplicitRelArgCore tgt rel x z = pure (rel, x)
Instances For
Internal definition for trans
tactic. Either a binary relation or a non-dependent
arrow.
- app: Lean.Expr → Batteries.Tactic.TransRelation
Expression for transitive relation.
- implies: Lean.Name → Lean.BinderInfo → Batteries.Tactic.TransRelation
Constant name for transitive relation.
Instances For
Finds an explicit binary relation in the argument, if possible.
Equations
- One or more equations did not get rendered due to their size.
- Batteries.Tactic.getRel (Lean.Expr.forallE name binderType body info) = pure (some (Batteries.Tactic.TransRelation.implies name info, binderType, body))
- Batteries.Tactic.getRel tgt = pure none
Instances For
trans
applies to a goal whose target has the form t ~ u
where ~
is a transitive relation,
that is, a relation which has a transitivity lemma tagged with the attribute [trans].
trans s
replaces the goal with the two subgoalst ~ s
ands ~ u
.- If
s
is omitted, then a metavariable is used instead.
Additionally, trans
also applies to a goal whose target has the form t → u
,
in which case it replaces the goal with t → s
and s → u
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Synonym for trans
tactic.
Equations
- One or more equations did not get rendered due to their size.