fix(library/blast/subst_action): do not apply subst to (H : a = a), let the discard_action to get rid of it

This commit is contained in:
Leonardo de Moura 2015-11-22 15:37:32 -08:00
parent 0537ef2bd9
commit f326e731a0

View file

@ -51,6 +51,8 @@ bool subst_core(hypothesis_idx hidx) {
expr type = h.get_type();
expr lhs, rhs;
lean_verify(is_eq(type, lhs, rhs));
if (is_def_eq(lhs, rhs))
return false;
lean_assert(is_href(rhs));
try {
hypothesis_idx_buffer_set to_revert;