The areas / V01. The language of Mathlib
Mathlib.Lean.Meta
6 declarations. Mathlib docs · Source
def Lean.MVarId.let E1 #
Lean.MVarId → Lean.Name → Lean.Expr → optParam (Option Lean.Expr) none → Lean.MetaM (Lean.FVarId × Lean.MVarId)
Add the hypothesis h : t, given v : t, and return the new FVarId.
def Lean.MVarId.existsi E1 #
Lean.MVarId → List Lean.Expr → Lean.MetaM Lean.MVarId
Has the effect of refine ⟨e₁,e₂,⋯, ?_⟩.
def Lean.MVarId.intros! E1 #
Lean.MVarId → Lean.MetaM (Array Lean.FVarId × Lean.MVarId)
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.
def Lean.MVarId.getType'' E1 #
Lean.MVarId → Lean.MetaM Lean.Expr
Get the type the given metavariable after instantiating metavariables and cleaning up annotations.
def Lean.Elab.Tactic.liftMetaTactic' E1 #
(Lean.MVarId → Lean.MetaM Lean.MVarId) → Lean.Elab.Tactic.TacticM Unit
Analogue of liftMetaTactic for tactics that return a single goal.
def Lean.Elab.Tactic.run_for E1 #
{α : Type} → Lean.MVarId → Lean.Elab.Tactic.TacticM α → Lean.Elab.TermElabM (Option α × List Lean.MVarId)
Copy of Lean.Elab.Tactic.run that can return a value.