File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2682,17 +2682,17 @@ let lp2inductive_entry ~depth coq_ctx constraints state t =
26822682 lp2constr constraints coq_ctx ~depth state t in
26832683
26842684 let check_consistency_and_drop_nuparams sigma nuparams name params arity =
2685- let eq_param x y =
2685+ let eq_param ind_index x y =
26862686 Name. equal
26872687 (Context.Rel.Declaration. get_name x)
26882688 (Context.Rel.Declaration. get_name y) &&
26892689 EConstr. eq_constr_nounivs sigma
2690- (Context.Rel.Declaration. get_type x)
2690+ (EConstr.Vars. liftn 1 ind_index ( 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
26942694 | [] , params -> EC. it_mkProd_or_LetIn arity (List. rev params)
2695- | x :: nuparams , y :: params when eq_param x y ->
2695+ | x :: nuparams , y :: params when eq_param n x y ->
26962696 aux (succ n) nuparams params
26972697 | x :: _ , p -> err Pp. (pr_nth n ++ str" non uniform parameter, named " ++
26982698 Name. print (Context.Rel.Declaration. get_name x) ++
You can’t perform that action at this time.
0 commit comments