Skip to content

Commit bc60363

Browse files
committed
🐛 Fix non uniform parameter check in lp2inductive_entry
There was an unneeded lift in the function comparing the non uniform parameters with the first binders of the type of each constructor. When testing by printing the terms, it looks like they are identical without the lift. With the lift, the match takes the last branch and wrongly outputs an error.
1 parent e4bf0b0 commit bc60363

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/coq_elpi_HOAS.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2687,7 +2687,7 @@ let lp2inductive_entry ~depth coq_ctx constraints state t =
26872687
(Context.Rel.Declaration.get_name x)
26882688
(Context.Rel.Declaration.get_name y) &&
26892689
EConstr.eq_constr_nounivs sigma
2690-
(EConstr.Vars.lift 1 (Context.Rel.Declaration.get_type x))
2690+
(Context.Rel.Declaration.get_type x)
26912691
(Context.Rel.Declaration.get_type y) in
26922692
let rec aux n nuparams params =
26932693
match nuparams, params with

0 commit comments

Comments
 (0)