@@ -19,13 +19,13 @@ type hole_mapping =
1919type uinstanceoption =
2020 | NoInstance
2121 (* the elpi command involved has to generate a fresh instance *)
22- | ConcreteInstance of Univ .Instance.t
22+ | ConcreteInstance of UVars .Instance.t
2323 (* a concrete instance was provided, the command will use it *)
2424 | VarInstance of (FlexibleData.Elpi .t * RawData .term list * inv_rel_key )
2525 (* a variable was provided, the command will compute the instance to unify with it *)
2626
2727type universe_decl = (Univ.Level .t list * bool ) * (Univ.Constraints .t * bool )
28- type universe_decl_cumul = ((Univ.Level .t * Univ .Variance.t option ) list * bool ) * (Univ.Constraints .t * bool )
28+ type universe_decl_cumul = ((Univ.Level .t * UVars .Variance.t option ) list * bool ) * (Univ.Constraints .t * bool )
2929type universe_decl_option =
3030 | NotUniversePolymorphic
3131 | Cumulative of universe_decl_cumul
@@ -45,7 +45,7 @@ type options = {
4545 universe_decl : universe_decl_option ;
4646 reversible : bool option ;
4747 keepunivs : bool option ;
48- redflags : CClosure. RedFlags.reds option ;
48+ redflags : RedFlags .reds option ;
4949 no_tc : bool option ;
5050}
5151
@@ -114,7 +114,7 @@ val lp2inductive_entry :
114114 State .t * (Entries .mutual_inductive_entry * Univ.ContextSet .t * UnivNames .universe_binders * (bool * record_field_spec list ) option * DeclareInd .one_inductive_impls list ) * Conversion .extra_goals
115115
116116val inductive_decl2lp :
117- depth :int -> empty coq_context -> constraints -> State .t -> (Names.MutInd .t * Univ .Instance.t * (Declarations .mutual_inductive_body * Declarations .one_inductive_body ) * (Glob_term .binding_kind list * Glob_term .binding_kind list list )) ->
117+ depth :int -> empty coq_context -> constraints -> State .t -> (Names.MutInd .t * UVars .Instance.t * (Declarations .mutual_inductive_body * Declarations .one_inductive_body ) * (Glob_term .binding_kind list * Glob_term .binding_kind list list )) ->
118118 State .t * term * Conversion .extra_goals
119119
120120val inductive_entry2lp :
@@ -145,7 +145,7 @@ val opt2unspec : 'a option -> 'a Elpi.Builtin.unspec
145145
146146val in_elpi_gr : depth :int -> State .t -> Names.GlobRef .t -> term
147147val in_elpi_poly_gr : depth :int -> State .t -> Names.GlobRef .t -> term -> term
148- val in_elpi_poly_gr_instance : depth :int -> State .t -> Names.GlobRef .t -> Univ .Instance.t -> term
148+ val in_elpi_poly_gr_instance : depth :int -> State .t -> Names.GlobRef .t -> UVars .Instance.t -> term
149149val in_elpi_flex_sort : term -> term
150150val in_elpi_sort : depth :int -> state -> Sorts .t -> state * term
151151val in_elpi_prod : Name .t -> term -> term -> term
@@ -183,10 +183,10 @@ type primitive_value =
183183 | Projection of Projection .t
184184val primitive_value : primitive_value Conversion .t
185185val in_elpi_primitive : depth :int -> state -> primitive_value -> state * term
186- val uinstance : Univ .Instance.t Conversion .t
186+ val uinstance : UVars .Instance.t Conversion .t
187187
188188val universe_constraint : Univ .univ_constraint Conversion .t
189- val universe_variance : (Univ.Level .t * Univ .Variance.t option ) Conversion .t
189+ val universe_variance : (Univ.Level .t * UVars .Variance.t option ) Conversion .t
190190val universe_decl : universe_decl Conversion .t
191191val universe_decl_cumul : universe_decl_cumul Conversion .t
192192
@@ -202,10 +202,10 @@ module UnivLevelSet : Elpi.API.Utils.Set.S with type elt = Univ.Level.t
202202
203203val compute_with_uinstance :
204204 depth :int -> options -> state ->
205- (state -> 'a -> Univ .Instance.t option -> state * 'c * Univ .Instance.t option ) ->
205+ (state -> 'a -> UVars .Instance.t option -> state * 'c * UVars .Instance.t option ) ->
206206 'a ->
207- Univ .Instance.t option ->
208- state * 'c * Univ .Instance.t option * Conversion .extra_goals
207+ UVars .Instance.t option ->
208+ state * 'c * UVars .Instance.t option * Conversion .extra_goals
209209
210210(* CData relevant for other modules, e.g the one exposing Coq's API *)
211211val universe_level_variable : Univ.Level .t Conversion .t
@@ -224,7 +224,7 @@ val name : Name.t Conversion.t
224224
225225type global_or_pglobal =
226226 | Global of term option
227- | PGlobal of term option * Univ .Instance.t option
227+ | PGlobal of term option * UVars .Instance.t option
228228 | NotGlobal
229229 | Var
230230val is_global_or_pglobal : depth :int -> term -> global_or_pglobal
@@ -236,7 +236,7 @@ val in_coq_modpath : depth:int -> term -> Names.ModPath.t
236236val modpath : Names.ModPath .t Conversion .t
237237val modtypath : Names.ModPath .t Conversion .t
238238val module_inline_default : Declaremods .inline Conversion .t
239- val reduction_flags : CClosure. RedFlags.reds Conversion .t
239+ val reduction_flags : RedFlags .reds Conversion .t
240240
241241type module_item =
242242 | Module of Names.ModPath .t * module_item list
@@ -255,12 +255,12 @@ type record_field_att =
255255val record_field_att : record_field_att Conversion .t
256256
257257val add_constraints : State .t -> UnivProblem.Set .t -> State .t
258- val mk_global : State .t -> Names.GlobRef .t -> Univ .Instance.t option ->
259- State .t * EConstr .t * Univ .Instance.t option
260- val poly_ctx_size_of_gref : Environ .env -> Names.GlobRef .t -> int
258+ val mk_global : State .t -> Names.GlobRef .t -> UVars .Instance.t option ->
259+ State .t * EConstr .t * UVars .Instance.t option
260+ val poly_ctx_size_of_gref : Environ .env -> Names.GlobRef .t -> int * int
261261val body_of_constant :
262- State .t -> Names.Constant .t -> Univ .Instance.t option ->
263- State .t * EConstr .t option * Univ .Instance.t option
262+ State .t -> Names.Constant .t -> UVars .Instance.t option ->
263+ State .t * EConstr .t option * UVars .Instance.t option
264264
265265val grab_global_env : State .t -> State .t
266266val grab_global_env_drop_univs_and_sigma : State .t -> State .t
@@ -289,7 +289,7 @@ val solution2evd : Evd.evar_map -> 'a Elpi.API.Data.solution -> Evar.Set.t -> Ev
289289val show_coq_engine : ?with_univs : bool -> State .t -> string
290290val show_coq_elpi_engine_mapping : State .t -> string
291291
292- val type_of_global : state -> GlobRef .t -> Univ .Instance.t option -> state * (EConstr .t * Univ .Instance.t )
292+ val type_of_global : state -> GlobRef .t -> UVars .Instance.t option -> state * (EConstr .t * UVars .Instance.t )
293293val minimize_universes : state -> state
294294val new_univ_level_variable : ?flexible : bool -> state -> state * (Univ.Level .t * Univ.Universe .t )
295295val constraint_eq : Sorts .t -> Sorts .t -> UnivProblem .t
0 commit comments