chore(library/rfl_lemmas): comment assertion

TODO: investigate why we have added it.
This commit is contained in:
Leonardo de Moura 2016-09-18 18:20:18 -07:00
parent 4e0e812811
commit 4ba9644bd7

View file

@ -203,7 +203,8 @@ static bool instantiate_emetas(type_context & ctx, list<expr> const & _emetas, l
expr m = emetas[i];
unsigned mvar_idx = emetas.size() - 1 - i;
expr m_type = ctx.instantiate_mvars(ctx.infer(m));
lean_assert(!has_metavar(m_type));
// TODO(Leo, Daniel): do we need the following assertion?
// lean_assert(!has_expr_metavar(m_type));
if (ctx.get_tmp_mvar_assignment(mvar_idx)) continue;
if (instances[i]) {
if (auto v = ctx.mk_class_instance(m_type)) {