fix(library/blast/strategies): constructor action was being applied too soon
This commit is contained in:
parent
20d7727a9c
commit
648f6c5f82
2 changed files with 8 additions and 1 deletions
|
@ -52,8 +52,8 @@ class simple_strategy_fn : public strategy_fn {
|
||||||
Try(trivial_action());
|
Try(trivial_action());
|
||||||
Try(assumption_action());
|
Try(assumption_action());
|
||||||
Try(recursor_action());
|
Try(recursor_action());
|
||||||
Try(constructor_action());
|
|
||||||
Try(ematch_action());
|
Try(ematch_action());
|
||||||
|
Try(constructor_action());
|
||||||
Try(by_contradiction_action());
|
Try(by_contradiction_action());
|
||||||
TryStrategy(mk_backward_strategy());
|
TryStrategy(mk_backward_strategy());
|
||||||
Try(qfc_action(list<gexpr>()));
|
Try(qfc_action(list<gexpr>()));
|
||||||
|
|
7
tests/lean/run/blast_meta_bug.lean
Normal file
7
tests/lean/run/blast_meta_bug.lean
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
constants {A : Type.{1}} (P : A → Prop) (Q : A → Prop)
|
||||||
|
definition H : ∀ a, (: P a :) → Exists Q := sorry
|
||||||
|
|
||||||
|
set_option blast.ematch true
|
||||||
|
|
||||||
|
example (a : A) : P a → Exists Q :=
|
||||||
|
by blast
|
Loading…
Reference in a new issue