Get the user name of the given metavariable.
Equations
- Lean.MVarId.getTag mvarId = do let __do_lift ← Lean.MVarId.getDecl mvarId pure __do_lift.userName
Instances For
@[deprecated Lean.MVarId.getTag]
Equations
- Lean.Meta.getMVarTag mvarId = Lean.MVarId.getTag mvarId
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[deprecated Lean.MVarId.setTag]
Equations
- Lean.Meta.setMVarTag mvarId tag = Lean.MVarId.setTag mvarId tag
Instances For
Equations
- Lean.Meta.appendTag tag suffix = Lean.Name.modifyBase tag fun (x : Lake.Name) => x ++ Lean.Name.eraseMacroScopes suffix
Instances For
Equations
- Lean.Meta.appendTagSuffix mvarId suffix = do let tag ← Lean.MVarId.getTag mvarId Lean.MVarId.setTag mvarId (Lean.Meta.appendTag tag suffix)
Instances For
def
Lean.Meta.mkFreshExprSyntheticOpaqueMVar
(type : Lean.Expr)
(tag : optParam Lake.Name Lean.Name.anonymous)
:
Equations
Instances For
def
Lean.Meta.throwTacticEx
{α : Type}
(tacticName : Lake.Name)
(mvarId : Lean.MVarId)
(msg : Lean.MessageData)
:
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
Throw a tactic exception with given tactic name if the given metavariable is assigned.
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[deprecated Lean.MVarId.checkNotAssigned]
Equations
- Lean.Meta.checkNotAssigned mvarId tacticName = Lean.MVarId.checkNotAssigned mvarId tacticName
Instances For
Get the type the given metavariable.
Equations
- Lean.MVarId.getType mvarId = do let __do_lift ← Lean.MVarId.getDecl mvarId pure __do_lift.type
Instances For
@[deprecated Lean.MVarId.getType]
Equations
- Lean.Meta.getMVarType mvarId = Lean.MVarId.getType mvarId
Instances For
Get the type the given metavariable after instantiating metavariables and reducing to weak head normal form.
Equations
- Lean.MVarId.getType' mvarId = do let __do_lift ← Lean.MVarId.getType mvarId let __do_lift ← Lean.Meta.whnf __do_lift Lean.instantiateMVars __do_lift
Instances For
@[deprecated Lean.MVarId.getType']
Equations
- Lean.Meta.getMVarType' mvarId = Lean.MVarId.getType' mvarId
Instances For
Assign mvarId
to sorryAx
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[deprecated Lean.MVarId.admit]
Equations
- Lean.Meta.admit mvarId synthetic = Lean.MVarId.admit mvarId synthetic
Instances For
Beta reduce the metavariable type head
Equations
- Lean.MVarId.headBetaType mvarId = do let __do_lift ← Lean.MVarId.getType mvarId Lean.MVarId.setType mvarId (Lean.Expr.headBeta __do_lift)
Instances For
@[deprecated Lean.MVarId.headBetaType]
Equations
- Lean.Meta.headBetaMVarType mvarId = Lean.MVarId.headBetaType mvarId
Instances For
Collect nondependent hypotheses that are propositions.
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[deprecated Lean.MVarId.getNondepPropHyps]
Equations
- Lean.Meta.getNondepPropHyps mvarId = Lean.MVarId.getNondepPropHyps mvarId
Instances For
def
Lean.Meta.saturate
(mvarId : Lean.MVarId)
(x : Lean.MVarId → Lean.MetaM (Option (List Lean.MVarId)))
:
Equations
- Lean.Meta.saturate mvarId x = do let __discr ← StateRefT'.run (Lean.Meta.saturate.go x mvarId) #[] match __discr with | (fst, r) => pure (Array.toList r)
Instances For
partial def
Lean.Meta.saturate.go
(x : Lean.MVarId → Lean.MetaM (Option (List Lean.MVarId)))
(mvarId : Lean.MVarId)
:
def
Lean.Meta.exactlyOne
(mvarIds : List Lean.MVarId)
(msg : optParam Lean.MessageData ((Lean.MessageData.ofFormat ∘ Std.format) "unexpected number of goals"))
:
Equations
- Lean.Meta.exactlyOne mvarIds msg = match mvarIds with | [mvarId] => pure mvarId | x => Lean.throwError msg
Instances For
def
Lean.Meta.ensureAtMostOne
(mvarIds : List Lean.MVarId)
(msg : optParam Lean.MessageData ((Lean.MessageData.ofFormat ∘ Std.format) "unexpected number of goals"))
:
Equations
- Lean.Meta.ensureAtMostOne mvarIds msg = match mvarIds with | [] => pure none | [mvarId] => pure (some mvarId) | x => Lean.throwError msg
Instances For
Return all propositions in the local context.
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
- closed: Lean.Meta.TacticResultCNM
- noChange: Lean.Meta.TacticResultCNM
- modified: Lean.MVarId → Lean.Meta.TacticResultCNM