fix(frontends/lean/elaborator): get_elim_info_for_builtin
This commit is contained in:
parent
9765151156
commit
cf1c50f4e9
2 changed files with 9 additions and 0 deletions
|
|
@ -269,6 +269,11 @@ auto elaborator::get_elim_info_for_builtin(name const & fn) -> elim_info {
|
|||
r.m_arity = nparams + 1 /* motive */ + nindices + 1 /* major */ + nminors;
|
||||
}
|
||||
r.m_nexplicit = 1 /* major premise */ + nminors;
|
||||
if (nminors == 0) {
|
||||
/* The motive is marked as explicit in builtin recursors that do not have
|
||||
minor premises */
|
||||
r.m_nexplicit++;
|
||||
}
|
||||
r.m_motive_idx = nparams;
|
||||
unsigned major_idx;
|
||||
if (inductive::is_elim_rule(m_env, fn)) {
|
||||
|
|
|
|||
4
tests/lean/run/new_elab2.lean
Normal file
4
tests/lean/run/new_elab2.lean
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
set_option new_elaborator true
|
||||
|
||||
theorem ex {a : Prop} (H : ¬a) : a ↔ false :=
|
||||
iff.intro H (false.rec a)
|
||||
Loading…
Add table
Reference in a new issue