fix(library/app_builder): bug in eq_drec

This commit is contained in:
Leonardo de Moura 2015-11-06 19:06:20 -08:00
parent 34d5882b9a
commit 2d04156959

View file

@ -440,7 +440,7 @@ struct app_builder::imp {
return none_expr();
expr A = m_ctx->infer(lhs);
auto A_lvl = get_level(A);
expr mtype = m_ctx->whnf(m_ctx->infer(H1));
expr mtype = m_ctx->whnf(m_ctx->infer(motive));
if (!is_pi(mtype) || !is_pi(binding_body(mtype)) || !is_sort(binding_body(binding_body(mtype))))
return none_expr();
level l_1 = sort_level(binding_body(binding_body(mtype)));