Skip to content

Commit 02c1302

Browse files
committed
Adapt to rocq-prover/rocq#21395 (revert univ_decl name change)
1 parent 6aa10a0 commit 02c1302

File tree

8 files changed

+9
-9
lines changed

8 files changed

+9
-9
lines changed

src/equations.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ let define_by_eqs ~pm ~poly ~program_mode ~tactic ~open_proof opts eqs nt =
163163
let evm, udecl =
164164
match eqs with
165165
| (((loc, i), udecl, _, _, _, _), _) :: _ ->
166-
Constrintern.interp_sort_poly_decl_opt env udecl
166+
Constrintern.interp_univ_decl_opt env udecl
167167
| _ -> assert false
168168
in
169169
let evd = ref evm in

src/g_equations.mlg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ GRAMMAR EXTEND Gram
322322
] ]
323323
;
324324
proto:
325-
[ [ id = lident; d = OPT sort_poly_decl; l = binders2; ":"; t = Constr.lconstr;
325+
[ [ id = lident; d = OPT univ_decl; l = binders2; ":"; t = Constr.lconstr;
326326
reca = wf_annot; ":="; eqs = sub_equations -> { (fun r -> ((id, d, r, l, Some t, reca), eqs)) }
327327
] ]
328328
;

src/noconf_hom.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ let derive_no_confusion_hom ~pm env sigma0 ~poly (ind,u as indu) =
277277
~prefix:"Hom" ~tactic:(noconf_hom_tac ()) program_cst
278278
in
279279
let prog = Splitting.make_single_program env evd data.Covering.flags p ctxmap splitting None in
280-
Splitting.define_programs ~pm env evd UState.default_sort_poly_decl [None] [] data.Covering.flags [prog] hook
280+
Splitting.define_programs ~pm env evd UState.default_univ_decl [None] [] data.Covering.flags [prog] hook
281281

282282
let () =
283283
let derive_no_confusion_hom ~pm env sigma ~poly v =

src/principles.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1033,7 +1033,7 @@ let unfold_programs ~pm env evd flags rec_type progs =
10331033
in
10341034
let unfoldp = make_single_program env evd flags unfpi prob unfoldp.program_splitting None in
10351035
let (unfoldp, term_info), pm, _pstate = define_program_immediate ~pm env evd
1036-
UState.default_sort_poly_decl [None] [] flags ~unfold:true unfoldp in
1036+
UState.default_univ_decl [None] [] flags ~unfold:true unfoldp in
10371037
let eqninfo =
10381038
Principles_proofs.{ equations_id = i;
10391039
equations_where_map = where_map;

src/splitting.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1299,7 +1299,7 @@ let define_programs (type a) ~pm env evd udecl is_recursive fixprots flags ?(unf
12991299
let all_hook ~pm hook recobls sigma =
13001300
let sigma = Evd.minimize_universes sigma in
13011301
let sigma = Evarutil.nf_evar_map_undefined sigma in
1302-
let uentry = UState.check_sort_poly_decl ~poly:flags.polymorphic (Evd.ustate sigma) udecl in
1302+
let uentry = UState.check_univ_decl ~poly:flags.polymorphic (Evd.ustate sigma) udecl in
13031303
let () =
13041304
if !Equations_common.debug then
13051305
Feedback.msg_debug (str"Defining programs, before simplify_evars " ++ pr_programs env sigma programs);

src/splitting.mli

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ val define_programs :
214214
pm:Declare.OblState.t ->
215215
Environ.env ->
216216
Evd.evar_map ref ->
217-
UState.sort_poly_decl ->
217+
UState.universe_decl ->
218218
Syntax.rec_type ->
219219
EConstr.rel_context ->
220220
Equations_common.flags ->
@@ -227,7 +227,7 @@ val define_program_immediate :
227227
pm:Declare.OblState.t ->
228228
Environ.env ->
229229
Evd.evar_map ref ->
230-
UState.sort_poly_decl ->
230+
UState.universe_decl ->
231231
Syntax.rec_type ->
232232
EConstr.rel_context ->
233233
Equations_common.flags ->

src/syntax.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ and ('a,'b) rhs_aux =
8181
and ('a,'b) rhs = ('a, 'b) rhs_aux option (* Empty patterns allow empty r.h.s. *)
8282

8383
and pre_prototype =
84-
identifier with_loc * Constrexpr.sort_poly_decl_expr option * user_rec_annot *
84+
identifier with_loc * Constrexpr.universe_decl_expr option * user_rec_annot *
8585
Constrexpr.local_binder_expr list * Constrexpr.constr_expr option *
8686
(Id.t with_loc option, Constrexpr.constr_expr * Constrexpr.constr_expr option) by_annot option
8787

src/syntax.mli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ and ('a,'b) rhs_aux =
7272
| Refine of Constrexpr.constr_expr list * 'b list
7373
and ('a,'b) rhs = ('a, 'b) rhs_aux option
7474
and pre_prototype =
75-
identifier with_loc * Constrexpr.sort_poly_decl_expr option * user_rec_annot *
75+
identifier with_loc * Constrexpr.universe_decl_expr option * user_rec_annot *
7676
Constrexpr.local_binder_expr list * Constrexpr.constr_expr option *
7777
(Id.t with_loc option, Constrexpr.constr_expr * Constrexpr.constr_expr option) by_annot option
7878

0 commit comments

Comments
 (0)