Compare commits

...

1 Commits

Author SHA1 Message Date
Leonardo de Moura
2b260efe07 perf: getStuckMVar? 2025-07-28 22:47:13 +02:00

View File

@@ -308,6 +308,7 @@ mutual
/-- Return `some (Expr.mvar mvarId)` if metavariable `mvarId` is blocking reduction. -/
partial def getStuckMVar? (e : Expr) : MetaM (Option MVarId) := do
unless e.hasExprMVar do return none
match e with
| .mdata _ e => getStuckMVar? e
| .proj _ _ e => getStuckMVar? ( whnf e)