fix(library/blast/forward/pattern): pattern inference bug
This commit is contained in:
parent
ae8efb684e
commit
20d7727a9c
3 changed files with 8 additions and 1 deletions
|
@ -550,9 +550,9 @@ struct mk_hi_lemma_fn {
|
|||
lean_assert(m_mvars.size() == inst_implicit_flags.size());
|
||||
buffer<expr> subst;
|
||||
buffer<expr> residue_locals;
|
||||
candidate_set hints = collect_pattern_hints(m_mvars, B);
|
||||
expr proof = mk_proof(residue_locals, subst);
|
||||
B = replace_mvars(B, subst);
|
||||
candidate_set hints = collect_pattern_hints(m_mvars, B);
|
||||
list<multi_pattern> mps;
|
||||
if (!hints.empty()) {
|
||||
mps = mk_multi_patterns_using(hints, false);
|
||||
|
|
3
tests/lean/pattern_bug1.lean
Normal file
3
tests/lean/pattern_bug1.lean
Normal file
|
@ -0,0 +1,3 @@
|
|||
constants {A : Type} (P : A → Prop) (R : A → A → Prop)
|
||||
definition H [forward] : ∀ a, (: P a :) → ∃ b, R a b := sorry
|
||||
print H
|
4
tests/lean/pattern_bug1.lean.expected.out
Normal file
4
tests/lean/pattern_bug1.lean.expected.out
Normal file
|
@ -0,0 +1,4 @@
|
|||
definition H [forward] : ∀ (a : A), (:P a:) → Exists (R a) :=
|
||||
sorry
|
||||
(multi-)patterns:
|
||||
{P ?M_1}
|
Loading…
Reference in a new issue