fix(library/blast/grind/intro_elim_lemmas): need to copy expr
This commit is contained in:
parent
d12067193b
commit
753d5d0689
1 changed files with 1 additions and 1 deletions
|
@ -82,7 +82,7 @@ optional<name> get_intro_target(tmp_type_context & ctx, name const & c) {
|
|||
expr local = ctx.mk_tmp_local(binding_domain(type));
|
||||
type = ctx.try_to_pi(instantiate(binding_body(type), local));
|
||||
}
|
||||
expr const & fn = get_app_fn(ctx.whnf(type));
|
||||
expr const fn = get_app_fn(ctx.whnf(type));
|
||||
if (is_constant(fn))
|
||||
return optional<name>(const_name(fn));
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue