Skip to content

Commit

Permalink
chore: upstream Lean.MVarId.applyConst (#458)
Browse files Browse the repository at this point in the history
  • Loading branch information
kim-em authored Dec 15, 2023
1 parent d76a7e6 commit 9f8e3f5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Std/Lean/Meta/Basic.lean
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,10 @@ annotations. -/
def getTypeCleanup (mvarId : MVarId) : MetaM Expr :=
return (← instantiateMVars (← mvarId.getType)).cleanupAnnotations

/-- Short-hand for applying a constant to the goal. -/
def applyConst (mvar : MVarId) (c : Name) (cfg : ApplyConfig := {}) : MetaM (List MVarId) := do
mvar.apply (← mkConstWithFreshMVarLevels c) cfg

end MVarId


Expand Down

0 comments on commit 9f8e3f5

Please sign in to comment.