fix: do not cache if term contains Expr-metavariables

This commit is contained in:
Leonardo de Moura 2020-09-13 13:13:05 -07:00
parent 98a8867d90
commit fd7dca9bc1

View file

@ -399,8 +399,8 @@ else match e with
@[inline] private def useWHNFCache (e : Expr) : MetaM Bool := do
-- We cache only closed terms
if e.hasFVar then pure false
-- We cache only closed terms without expr metavars
if e.hasFVar || e.hasExprMVar then pure false
else do
ctx ← read;
pure $ ctx.config.transparency != TransparencyMode.reducible