diff --git a/src/Lean/Meta/Tactic/Apply.lean b/src/Lean/Meta/Tactic/Apply.lean index 23e21d9b20..c8c5532199 100644 --- a/src/Lean/Meta/Tactic/Apply.lean +++ b/src/Lean/Meta/Tactic/Apply.lean @@ -188,6 +188,10 @@ def _root_.Lean.MVarId.apply (mvarId : MVarId) (e : Expr) (cfg : ApplyConfig := def apply (mvarId : MVarId) (e : Expr) (cfg : ApplyConfig := {}) : MetaM (List MVarId) := mvarId.apply e cfg +/-- Short-hand for applying a constant to the goal. -/ +def _root_.Lean.MVarId.applyConst (mvar : MVarId) (c : Name) (cfg : ApplyConfig := {}) : MetaM (List MVarId) := do + mvar.apply (← mkConstWithFreshMVarLevels c) cfg + partial def splitAndCore (mvarId : MVarId) : MetaM (List MVarId) := mvarId.withContext do mvarId.checkNotAssigned `splitAnd