feat(library/elaborator): process ho-match before normalizing
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
a299778c88
commit
b2a8f4118d
2 changed files with 2 additions and 2 deletions
|
@ -1318,7 +1318,7 @@ class elaborator::imp {
|
|||
r = process_metavar(c, b, a, false);
|
||||
if (r != Continue) { return r == Processed; }
|
||||
|
||||
if (normalize_head(a, b, c)) { return true; }
|
||||
if (!is_meta_app(a) && !is_meta_app(b) && normalize_head(a, b, c)) { return true; }
|
||||
|
||||
if (!eq) {
|
||||
// TODO(Leo): use is_actual_lower and is_actual_upper
|
||||
|
|
|
@ -10,4 +10,4 @@
|
|||
Set: lean::pp::notation
|
||||
Set: lean::pp::implicit
|
||||
Theorem T : @eq ℤ (Int::add (Int::add a (nat_to_int n)) a) (nat_to_int 10) :=
|
||||
@Subst ℤ a (nat_to_int n) (λ x : ℤ, Int::add (Int::add a x) a == nat_to_int 10) H1 H2
|
||||
@Subst ℤ a (nat_to_int n) (λ x : ℤ, @eq ℤ (Int::add (Int::add a x) a) (nat_to_int 10)) H1 H2
|
||||
|
|
Loading…
Reference in a new issue