fix(library/tactic/rewrite_tactic): bug in rewrite hypothesis in HoTT mode

This commit is contained in:
Leonardo de Moura 2015-04-30 15:30:25 -07:00
parent 59b11c815c
commit 936e024128

View file

@ -1208,7 +1208,7 @@ class rewrite_fn {
level l2 = sort_level(m_tc->ensure_type(A).first);
expr H;
if (has_dep_elim) {
expr Haeqx = mk_app(mk_constant(get_eq_name(), {l1}), A, b, mk_var(0));
expr Haeqx = mk_app(mk_constant(get_eq_name(), {l1}), A, a, mk_var(0));
expr P = mk_lambda("x", A, mk_lambda("H", Haeqx, Px));
H = mk_app({mk_constant(get_eq_rec_name(), {l1, l2}), A, a, P, hyp, b, Heq});
} else {