Documentation

Mathlib.Lean.Meta

Additional utilities in Lean.MVarId #

def Lean.MVarId.let (g : MVarId) (h : Name) (v : Expr) (t : Option Expr := none) :

Add the hypothesis h : t, given v : t, and return the new FVarId.

Instances For

    Has the effect of refine ⟨e₁,e₂,⋯, ?_⟩.

    Instances For

      Applies intro repeatedly until it fails. We use this instead of Lean.MVarId.intros to allowing unfolding. For example, if we want to do introductions for propositions like ¬p, the ¬ needs to be unfolded into False, and intros does not do such unfolding.

      Instances For

        Get the type the given metavariable after instantiating metavariables and cleaning up annotations.

        Instances For

          Analogue of liftMetaTactic for tactics that return a single goal.

          Instances For

            Copy of Lean.Elab.Tactic.run that can return a value.

            Instances For