Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
kim-em committed Oct 2, 2024
1 parent 66a5a95 commit 62f7e75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Lean/Meta/Tactic/Clear.lean
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ appear in the local context.
def _root_.Lean.MVarId.tryClearMany' (goal : MVarId) (fvarIds : Array FVarId) :
MetaM (MVarId × Array FVarId) :=
goal.withContext do
let hyps ← sortFVarsByContextOrder hyps
hyps.foldrM (init := (goal, Array.mkEmpty hyps.size))
let fvarIds ← sortFVarsByContextOrder fvarIds
fvarIds.foldrM (init := (goal, Array.mkEmpty fvarIds.size))
fun h (goal, cleared) => do
let goal' ← goal.tryClear h
let cleared := if goal == goal' then cleared else cleared.push h
Expand Down

0 comments on commit 62f7e75

Please sign in to comment.