fix(library/definitional/equations): bug in "complete" transition
This commit is contained in:
parent
3889b60152
commit
eedc31f7e9
2 changed files with 6 additions and 1 deletions
|
@ -834,7 +834,7 @@ class equation_compiler_fn {
|
|||
expr c = mk_constructor(c_name, I_ls, I_params, new_args);
|
||||
list<expr> new_ctx = to_list(new_args.begin(), new_args.end(), rest_ctx);
|
||||
list<expr> new_patterns = cons(c, tail(e.m_patterns));
|
||||
new_eqns.push_back(eqn(e, new_ctx, new_patterns));
|
||||
new_eqns.push_back(replace(eqn(e, new_ctx, new_patterns), p, c));
|
||||
}
|
||||
} else {
|
||||
new_eqns.push_back(e);
|
||||
|
|
5
tests/lean/run/eq17.lean
Normal file
5
tests/lean/run/eq17.lean
Normal file
|
@ -0,0 +1,5 @@
|
|||
open nat
|
||||
|
||||
definition lt_of_succ : ∀ {a b : nat}, succ a < b → a < b,
|
||||
lt_of_succ (lt.base (succ a)) := lt.trans (lt.base a) (lt.base (succ a)),
|
||||
lt_of_succ (lt.step h) := lt.step (lt_of_succ h)
|
Loading…
Reference in a new issue