Skip to content

Commit cb405b5

Browse files
committed
fix: skip goals that were closed without applying any user-facing action
1 parent 3a76a36 commit cb405b5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Lean/Meta/Tactic/Grind/Split.lean

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,8 @@ private def splitCore (c : SplitInfo) (numCases : Nat) (isRec : Bool) (stopAtFir
315315
if let some falseProof ← getFalseProof? subgoal.mvarId then
316316
goal.mvarId.assignFalseProof falseProof
317317
return .closed seq
318-
else
318+
else if !seq.isEmpty then
319+
/- **Note**: if the sequence is empty, it means the user will never see this goal. -/
319320
seqNew := seqNew.push seq
320321
if (← goal.mvarId.getType).isFalse then
321322
/- **Note**: We add the marker to assist `getFalseExpr?` -/

0 commit comments

Comments
 (0)