Skip to content

Commit e34e604

Browse files
committed
fresh univs are flexible
1 parent 26d1b0c commit e34e604

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

src/rocq_elpi_HOAS.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ let add_universe_constraint state c =
127127
Feedback.msg_debug Pp.(str"UniversesDiffer");
128128
raise API.BuiltInPredicate.No_clause
129129

130-
let new_univ_level_variable ?(flexible=false) state =
130+
let new_univ_level_variable ?(flexible=true) state =
131131
S.update_return (Option.get !pre_engine) state (fun ({ sigma } as e) ->
132132
(* ~name: really mean the universe level is a binder as in Definition f@{x} *)
133133
let rigidity = if flexible then UState.univ_flexible else UState.univ_rigid in

src/rocq_elpi_builtins.ml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -164,11 +164,7 @@ let mk_algebraic_super x = Sorts.super x
164164

165165
(* I don't want the user to even know that algebraic universes exist *)
166166

167-
168-
[%%if coq = "9.1"]
169-
let univ_super state u v =
170-
add_universe_constraint state (constraint_eq (mk_algebraic_super u) v)
171-
[%%else]
167+
[%%if coq = "8.20" || coq = "9.0" || coq = "9.1" ]
172168
let univ_super state u v =
173169
let state, u = match u with
174170
| Sorts.Set | Sorts.Prop | Sorts.SProp -> state, u
@@ -180,6 +176,9 @@ let univ_super state u v =
180176
add_universe_constraint state (constraint_leq u w), w
181177
in
182178
add_universe_constraint state (constraint_leq (mk_algebraic_super u) v)
179+
[%%else]
180+
let univ_super state u v =
181+
add_universe_constraint state (constraint_eq (mk_algebraic_super u) v)
183182
[%%endif]
184183

185184
let univ_product state s1 s2 =

0 commit comments

Comments
 (0)