File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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" ]
172168let 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
185184let univ_product state s1 s2 =
You can’t perform that action at this time.
0 commit comments