fix: bug at allGoals

This commit is contained in:
Leonardo de Moura 2021-03-12 17:48:33 -08:00
parent a7c5db6d21
commit 50fd39db89
2 changed files with 7 additions and 3 deletions

View file

@ -341,9 +341,10 @@ private def getOptRotation (stx : Syntax) : Nat :=
let gs ← getUnsolvedGoals
let mut gsNew := []
for g in gs do
setGoals [g]
evalTactic stx[1]
gsNew := gsNew ++ (← getUnsolvedGoals)
unless ← isExprMVarAssigned g do
setGoals [g]
evalTactic stx[1]
gsNew := gsNew ++ (← getUnsolvedGoals)
setGoals gsNew
@[builtinTactic tacticSeq] def evalTacticSeq : Tactic := fun stx =>

View file

@ -58,3 +58,6 @@ theorem Weekday.test2 (d : Weekday) : next (previous d) = id d := by
cases d <;> rw idEq
traceState
allGoals rfl
def bug {a b c : Nat} (h₁ : a = b) (h₂ : b = c) : a = c := by
apply Eq.trans <;> assumption