feat(library/blast/intros_action): apply head_beta_reduce at intros
This commit is contained in:
parent
2e057477ef
commit
a545860aa1
2 changed files with 7 additions and 2 deletions
|
@ -37,10 +37,11 @@ bool intros_action(unsigned max) {
|
|||
if (!is_pi(target))
|
||||
break;
|
||||
expr href;
|
||||
expr htype = head_beta_reduce(binding_domain(target));
|
||||
if (is_default_var_name(binding_name(target)) && closed(binding_body(target))) {
|
||||
href = s.mk_hypothesis(binding_domain(target));
|
||||
href = s.mk_hypothesis(htype);
|
||||
} else {
|
||||
href = s.mk_hypothesis(binding_name(target), binding_domain(target));
|
||||
href = s.mk_hypothesis(binding_name(target), htype);
|
||||
}
|
||||
new_hs.push_back(href);
|
||||
target = whnf(instantiate(binding_body(target), href));
|
||||
|
|
4
tests/lean/run/blast15.lean
Normal file
4
tests/lean/run/blast15.lean
Normal file
|
@ -0,0 +1,4 @@
|
|||
definition lemma1 (p : nat → Prop) (q : nat → nat → Prop) : (∃ x y, p x ∧ q x y) → q 0 0 ∧ q 1 1 → (∃ x, p x) :=
|
||||
by blast
|
||||
|
||||
print lemma1
|
Loading…
Reference in a new issue