@@ -2280,29 +2280,35 @@ phase unnecessary.|};
22802280 MLCode(Pred(" coq .sort .leq ",
22812281 InOut(B.ioarg_flex sort, " S1",
22822282 InOut(B.ioarg_flex sort, " S2",
2283- Full(unit_ctx, " constrains S1 <= S2 " ))),
2284- (fun u1 u2 ~depth _ _ state ->
2283+ Full(global, " constrains S1 <= S2 " ))),
2284+ (fun u1 u2 ~depth { options } _ -> on_global_state " coq.sort.leq"
2285+ (fun state ->
22852286 match u1, u2 with
22862287 | Data u1, Data u2 ->
22872288 if Sorts.equal u1 u2 then state, !: u1 +! u2,[]
22882289 else
2289- (* let state, u2 = purge_algebraic_univs_sort state (EConstr.ESorts.make u2) in *)
2290- add_universe_constraint state (constraint_leq u1 u2), !: u1 +! u2,[]
2291- | _ -> err Pp.(str" coq.sort.leq: called with _ as argument" ))),
2290+ let state, u2 = if true (* options.algunivs != Some true *)
2291+ then purge_algebraic_univs_sort state (EConstr.ESorts.make u2)
2292+ else state, u2 in
2293+ add_universe_constraint state (constraint_leq u1 u2), !: u1 +! u2,[]
2294+ | _ -> err Pp.(str" coq.sort.leq: called with _ as argument" )))),
22922295 DocAbove);
22932296
22942297 MLCode(Pred(" coq.sort.eq" ,
22952298 InOut(B.ioarg_flex sort, " S1 " ,
22962299 InOut(B.ioarg_flex sort, " S2 " ,
2297- Full(unit_ctx, " constrains S1 = S2 " ))),
2298- (fun u1 u2 ~depth _ _ state ->
2300+ Full(global, " constrains S1 = S2 " ))),
2301+ (fun u1 u2 ~depth { options } _ -> on_global_state " coq.sort.eq"
2302+ (fun state ->
22992303 match u1, u2 with
23002304 | Data u1, Data u2 ->
23012305 if Sorts.equal u1 u2 then state, !: u1 +! u2,[]
23022306 else
2303- (* let state, u2 = purge_algebraic_univs_sort state (EConstr.ESorts.make u2) in *)
2307+ let state, u2 = if true (* options.algunivs != Some true *)
2308+ then purge_algebraic_univs_sort state (EConstr.ESorts.make u2)
2309+ else state, u2 in
23042310 add_universe_constraint state (constraint_eq u1 u2), !: u1 +! u2, []
2305- | _ -> err Pp.(str" coq.sort.eq: called with _ as argument" ))),
2311+ | _ -> err Pp.(str" coq.sort.eq: called with _ as argument" )))) ,
23062312 DocAbove);
23072313
23082314 MLCode(Pred(" coq.sort.sup" ,
0 commit comments