feat(kernel/metavar): (re-)enable add_lift simplification

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
Leonardo de Moura 2013-12-12 09:27:25 -08:00
parent 64963bd9fb
commit 38a25a1bd2

View file

@ -319,9 +319,6 @@ bool has_assigned_metavar(expr const & e, metavar_env const & menv) {
local_context add_lift(local_context const & lctx, unsigned s, unsigned n) {
if (n == 0)
return lctx;
#if 0
// Remark: I disabled the following simplification.
// It impacts negatively the heuristics used in the elaborator.
if (lctx) {
local_entry e = head(lctx);
// Simplification rule
@ -330,7 +327,6 @@ local_context add_lift(local_context const & lctx, unsigned s, unsigned n) {
return add_lift(tail(lctx), e.s(), e.n() + n);
}
}
#endif
return cons(mk_lift(s, n), lctx);
}