Annotate e
with the LHS annotation. The delaborator displays
expressions of the form lhs = rhs
as lhs
when they have this annotation.
This is used to implement the infoview for the conv
mode.
Equations
- Lean.Elab.Tactic.Conv.mkLHSGoal e = match Lean.Expr.eq? e with | some val => pure (Lean.mkLHSGoalRaw e) | x => do let __do_lift ← Lean.Meta.whnf e pure (Lean.mkLHSGoalRaw __do_lift)
Instances For
def
Lean.Elab.Tactic.Conv.mkConvGoalFor
(lhs : Lean.Expr)
(tag : optParam Lake.Name Lean.Name.anonymous)
:
Given lhs
, returns a pair of metavariables (?rhs, ?newGoal)
where ?newGoal : lhs = ?rhs
. tag
is the name of newGoal
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Given lhs
, runs the conv
tactic with the goal ⊢ lhs = ?rhs
.
conv
should produce no remaining goals that are not solvable with refl.
Returns a pair of instantiated expressions (?rhs, ?p)
where ?p : lhs = ?rhs
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Lean.Elab.Tactic.Conv.getLhsRhs = do let __do_lift ← Lean.Elab.Tactic.getMainGoal liftM (Lean.Elab.Tactic.Conv.getLhsRhsCore __do_lift)
Instances For
Equations
- Lean.Elab.Tactic.Conv.getLhs = do let __do_lift ← Lean.Elab.Tactic.Conv.getLhsRhs pure __do_lift.fst
Instances For
Equations
- Lean.Elab.Tactic.Conv.getRhs = do let __do_lift ← Lean.Elab.Tactic.Conv.getLhsRhs pure __do_lift.snd
Instances For
⊢ lhs = rhs
~~> ⊢ lhs' = rhs
using h : lhs = lhs'
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Replace lhs
with the definitionally equal lhs'
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Evaluate `sepByIndent conv "; "
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
Instances For
Equations
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
Instances For
Mark goals of the form ⊢ a = ?m ..
with the conv goal annotation
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Lean.Elab.Tactic.Conv.evalNestedTacticCore stx = let seq := stx[2]; do Lean.Elab.Tactic.evalTactic seq Lean.Elab.Tactic.Conv.remarkAsConvGoal
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
Instances For
Equations
- One or more equations did not get rendered due to their size.