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:
parent
0537ef2bd9
commit
f326e731a0
1 changed files with 2 additions and 0 deletions
|
@ -51,6 +51,8 @@ bool subst_core(hypothesis_idx hidx) {
|
||||||
expr type = h.get_type();
|
expr type = h.get_type();
|
||||||
expr lhs, rhs;
|
expr lhs, rhs;
|
||||||
lean_verify(is_eq(type, lhs, rhs));
|
lean_verify(is_eq(type, lhs, rhs));
|
||||||
|
if (is_def_eq(lhs, rhs))
|
||||||
|
return false;
|
||||||
lean_assert(is_href(rhs));
|
lean_assert(is_href(rhs));
|
||||||
try {
|
try {
|
||||||
hypothesis_idx_buffer_set to_revert;
|
hypothesis_idx_buffer_set to_revert;
|
||||||
|
|
Loading…
Reference in a new issue