fix: do not cache if term contains Expr-metavariables
This commit is contained in:
parent
98a8867d90
commit
fd7dca9bc1
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue