Skip to content

Commit aac0331

Browse files
authored
Merge pull request #133 from SkySkimmer/cominductive-lbound
Adapt to rocq-prover/rocq#19985 (template poly has pseudo sort poly)
2 parents 9c5fd9f + 84a85f3 commit aac0331

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/parametricity.ml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1175,7 +1175,7 @@ let rec translate_mind_body name order evdr env kn b inst =
11751175
| None -> None, mind_entry_params_R
11761176
| Some temp ->
11771177
let umap, univs, params = fix_template_params order evdr env temp b mind_entry_params_R in
1178-
Some (umap, univs), params
1178+
Some (umap, univs, temp.template_pseudo_sort_poly), params
11791179
in
11801180
debug_string [`Inductive] "translatation of inductive ...";
11811181
let mind_entry_inds_R =
@@ -1188,15 +1188,15 @@ let rec translate_mind_body name order evdr env kn b inst =
11881188
| Monomorphic ->
11891189
begin match template_univs with
11901190
| None -> Monomorphic_ind_entry
1191-
| Some (_, ctx) -> Template_ind_entry ctx
1191+
| Some (_, ctx, pseudo_sort_poly) -> Template_ind_entry { univs = ctx; pseudo_sort_poly }
11921192
end
11931193
| Polymorphic _ ->
11941194
let uctx, _ = (Evd.univ_entry ~poly:true !evdr) in
11951195
match uctx with Polymorphic_entry uctx -> Polymorphic_ind_entry uctx | _ -> assert false
11961196
in
11971197
let mind_entry_inds_R = match template_univs with
11981198
| None -> mind_entry_inds_R
1199-
| Some (umap, _) ->
1199+
| Some (umap, _, _) ->
12001200
let entry = match mind_entry_inds_R with
12011201
| [entry] -> entry
12021202
| _ -> assert false

0 commit comments

Comments
 (0)