fix: assignDelayed misuse at intro

This commit is contained in:
Leonardo de Moura 2020-01-16 20:09:27 -08:00
parent 5a1221c491
commit 8f59d4a9e6

View file

@ -18,7 +18,8 @@ def introNCoreAux {σ} (mvarId : MVarId) (mkName : LocalContext → Name → σ
withNewLocalInstances isClassExpensive fvars j $ do
newMVar ← mkFreshExprSyntheticOpaqueMVar type;
lctx ← getLCtx;
modify $ fun s => { mctx := s.mctx.assignDelayed mvarId lctx fvars newMVar, .. s };
newVal ← mkLambda fvars newMVar;
modify $ fun s => { mctx := s.mctx.assignExpr mvarId newVal, .. s };
pure $ (fvars, newMVar.mvarId!)
| (i+1), lctx, fvars, j, s, Expr.letE n type val body _ => do
let type := type.instantiateRevRange j fvars.size fvars;