Documentation

Lean.Meta.Tactic.Util

Get the user name of the given metavariable.

Equations
  • mvarId.getTag = do let __do_liftmvarId.getDecl pure __do_lift.userName
def Lean.MVarId.setTag (mvarId : MVarId) (tag : Name) :
Equations
  • One or more equations did not get rendered due to their size.
def Lean.Meta.appendTag (tag suffix : Name) :
Equations
def Lean.Meta.appendTagSuffix (mvarId : MVarId) (suffix : Name) :
Equations
def Lean.Meta.throwTacticEx {α : Type} (tacticName : Name) (mvarId : MVarId) (msg? : Option MessageData := none) :
Equations
  • One or more equations did not get rendered due to their size.
def Lean.Meta.throwNestedTacticEx {α : Type} (tacticName : Name) (ex : Exception) :
Equations
  • One or more equations did not get rendered due to their size.
def Lean.MVarId.checkNotAssigned (mvarId : MVarId) (tacticName : Name) :

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.

Get the type the given metavariable.

Equations
  • mvarId.getType = do let __do_liftmvarId.getDecl pure __do_lift.type

Get the type the given metavariable after instantiating metavariables and reducing to weak head normal form.

Equations
def Lean.MVarId.admit (mvarId : MVarId) (synthetic : Bool := true) :

Assign mvarId to sorryAx

Equations
  • One or more equations did not get rendered due to their size.

Beta reduce the metavariable type head

Equations
  • mvarId.headBetaType = do let __do_liftmvarId.getType mvarId.setType __do_lift.headBeta

Collect nondependent hypotheses that are propositions.

Equations
  • One or more equations did not get rendered due to their size.
Equations
def Lean.Meta.exactlyOne (mvarIds : List MVarId) (msg : MessageData := (MessageData.ofFormat format) "unexpected number of goals") :
Equations

Return all propositions in the local context.

Equations
  • One or more equations did not get rendered due to their size.
Equations
  • One or more equations did not get rendered due to their size.

Check if a goal is of a subsingleton type.

Equations
  • One or more equations did not get rendered due to their size.