Skip to content

Commit 58bd1a1

Browse files
committed
Fix overlay for elimination-constraints
1 parent 10c0cf5 commit 58bd1a1

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

src/rocq_elpi_HOAS.ml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ let constraint_eq u1 u2 =
108108
let open UnivProblem in
109109
ULe (u1, u2)
110110

111-
[%%if coq = "9.0" || coq = "9.1" || coq = "9.2"]
111+
[%%if coq = "9.0" || coq = "9.1"]
112112
let add_constraints state c = S.update (Option.get !pre_engine) state (fun ({ sigma } as x) ->
113113
{ x with sigma = Evd.add_universe_constraints sigma c })
114114
[%%else]
@@ -208,7 +208,7 @@ let universe_level_variable =
208208
end
209209
}
210210

211-
[%%if coq = "9.0" || coq = "9.1" || coq = "9.2"]
211+
[%%if coq = "9.0" || coq = "9.1"]
212212
type univ_cst = Univ.univ_constraint
213213
type univ_csts = Univ.Constraints.t
214214
type univ_ctx_set = Univ.ContextSet.t
@@ -261,7 +261,7 @@ let univ_eq = Univ.UnivConstraint.Eq
261261
let univ_csts_of_list = Univ.UnivConstraints.of_list
262262
let univ_csts_to_list = Univ.UnivConstraints.elements
263263
let evd_merge_ctx_set rigid = Evd.merge_sort_context_set rigid QGraph.Internal
264-
let subst_univs_constraints x = UVars.subst_univ_constraints (Sorts.QVar.Map.empty,x)
264+
let subst_univs_constraints x = UVars.subst_univs_constraints (Sorts.QVar.Map.empty,x)
265265
let univs_of_csts x = PConstraints.univs @@ UVars.UContext.constraints x
266266
let mk_universe_decl sort_poly_decl_extensible_instance sort_poly_decl_extensible_constraints sort_poly_decl_univ_constraints sort_poly_decl_instance =
267267
let open UState in

src/rocq_elpi_HOAS.mli

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ type uinstanceoption =
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

27-
[%%if coq = "9.0" || coq = "9.1" || coq = "9.2"]
27+
[%%if coq = "9.0" || coq = "9.1"]
2828
type univ_cst = Univ.univ_constraint
2929
type univ_csts = Univ.Constraints.t
3030
type univ_ctx_set = Univ.ContextSet.t
@@ -122,7 +122,7 @@ val lp2skeleton :
122122
type coercion_status = Regular | Off | Reversible
123123
type record_field_spec = { name : Name.t; is_coercion : coercion_status; is_canonical : bool }
124124

125-
[%%if coq = "9.0" || coq = "9.1" || coq = "9.2"]
125+
[%%if coq = "9.0" || coq = "9.1"]
126126
val lp2inductive_entry :
127127
depth:int -> empty coq_context -> constraints -> State.t -> term ->
128128
State.t * (DeclareInd.default_dep_elim list * Entries.mutual_inductive_entry * Univ.ContextSet.t * UnivNames.universe_binders * (bool * record_field_spec list) option * DeclareInd.one_inductive_impls list) * Conversion.extra_goals
@@ -233,7 +233,7 @@ val in_elpiast_primitive : loc:Ast.Loc.t -> primitive_value -> Ast.Term.t
233233

234234
val uinstance : UVars.Instance.t Conversion.t
235235

236-
[%%if coq = "9.0" || coq = "9.1" || coq = "9.2"]
236+
[%%if coq = "9.0" || coq = "9.1"]
237237
val universe_constraint : Univ.univ_constraint Conversion.t
238238
[%%else]
239239
val universe_constraint : Univ.UnivConstraint.t Conversion.t
@@ -325,7 +325,7 @@ val body_of_constant :
325325
val grab_global_env_drop_univs_and_sigma : State.t -> State.t
326326
val grab_global_env_drop_sigma : State.t -> State.t
327327

328-
[%%if coq = "9.0" || coq = "9.1" || coq = "9.2"]
328+
[%%if coq = "9.0" || coq = "9.1"]
329329
val grab_global_env : uctx:Univ.ContextSet.t -> State.t -> State.t
330330
val grab_global_env_drop_sigma_keep_univs : uctx:Univ.ContextSet.t -> State.t -> State.t
331331
[%%else]
@@ -372,7 +372,7 @@ val merge_universe_context : state -> UState.t -> state
372372
val restricted_sigma_of : Univ.Level.Set.t -> state -> Evd.evar_map
373373
val universes_of_term : state -> EConstr.t -> Univ.Level.Set.t
374374

375-
[%%if coq = "9.0" || coq = "9.1" || coq = "9.2"]
375+
[%%if coq = "9.0" || coq = "9.1"]
376376
val poly_cumul_udecl_variance_of_options : state -> options -> state * bool * bool * UState.universe_decl * Entries.variance_entry
377377
val universes_of_udecl : state -> UState.universe_decl -> Univ.Level.Set.t
378378
[%%else]

src/rocq_elpi_arg_HOAS.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ type raw_red_expr = Genredexpr.raw_red_expr
138138
type raw_red_expr = Redexpr.raw_red_expr
139139
[%%endif]
140140

141-
[%%if coq = "9.0" || coq = "9.1" || coq = "9.2"]
141+
[%%if coq = "9.0" || coq = "9.1"]
142142
type raw_constant_decl = {
143143
name : qualified_name;
144144
atts : Attributes.vernac_flags;

src/rocq_elpi_arg_HOAS.mli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ type raw_red_expr = Genredexpr.raw_red_expr
3030
type raw_red_expr = Redexpr.raw_red_expr
3131
[%%endif]
3232

33-
[%%if coq = "9.0" || coq = "9.1" || coq = "9.2"]
33+
[%%if coq = "9.0" || coq = "9.1"]
3434
type raw_constant_decl = {
3535
name : qualified_name;
3636
atts : Attributes.vernac_flags;

src/rocq_elpi_arg_syntax.mlg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ let streamOk x = Ok x
4242
let streamFail () = Error ()
4343
[%%endif]
4444

45-
[%%if coq = "9.0" || coq = "9.1" || coq = "9.2"]
45+
[%%if coq = "9.0" || coq = "9.1"]
4646
let sort_poly_decl = Procq.Prim.univ_decl
4747
[%%else]
4848
let sort_poly_decl = Procq.Prim.sort_poly_decl

src/rocq_elpi_builtins.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ let is_mutual_inductive_entry_ground { Entries.mind_entry_params; mind_entry_ind
352352
List.for_all (is_ground_rel_ctx_entry sigma) mind_entry_params &&
353353
List.for_all (is_ground_one_inductive_entry sigma) mind_entry_inds
354354

355-
[%%if coq = "9.0" || coq = "9.1" || coq = "9.2"]
355+
[%%if coq = "9.0" || coq = "9.1"]
356356
let evd_merge_sort_context_set rigid = Evd.merge_sort_context_set rigid
357357
let global_push_context_set x = Global.push_context_set x
358358
let check_sort_poly_decl = UState.check_univ_decl

0 commit comments

Comments
 (0)