fix: missing condition

This commit is contained in:
Leonardo de Moura 2021-07-21 07:36:35 -07:00
parent c5ffcc5dd6
commit a6af257b7a

View file

@ -62,7 +62,7 @@ def contradictionCore (mvarId : MVarId) (useDecide : Bool) (searchDepth : Nat) :
assignExprMVar mvarId (← mkNoConfusion (← getMVarType mvarId) localDecl.toExpr)
return true
-- (h : p) s.t. `decide p` evaluates to `false`
if useDecide && !localDecl.type.hasFVar then
if useDecide && !localDecl.type.hasFVar && !localDecl.type.hasMVar then
try
let d ← mkDecide localDecl.type
let r ← withDefault <| whnf d