From f02823d9f6de5a8e5706c8433b6e2445cb50222f Mon Sep 17 00:00:00 2001 From: Matthieu Sozeau Date: Tue, 10 Jun 2014 13:08:48 +0200 Subject: Cleanup in Univ, moving code for UniverseConstraints outside the kernel in Universes. Needed to exponse compare_head_gen(_leq) so that it could be reused in Universes. Remove unused functions from univ as well and refactor a little bit. Changed the syntax to Type@{} for explicit universe level specs, following the WG decision. --- kernel/reduction.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kernel/reduction.ml') diff --git a/kernel/reduction.ml b/kernel/reduction.ml index 6a8f3ddd7..a6e107d3f 100644 --- a/kernel/reduction.ml +++ b/kernel/reduction.ml @@ -664,7 +664,7 @@ let infer_conv_universes cv_pb l2r evars reds env univs t1 t2 = if cv_pb == CUMUL then Constr.leq_constr_univs_infer univs t1 t2 else Constr.eq_constr_univs_infer univs t1 t2 in - if b then (Univ.to_constraints univs cstrs) + if b then cstrs else let univs = ((univs, Univ.Constraint.empty), infered_universes) in let ((_,cstrs), _) = clos_fconv reds cv_pb l2r evars env univs t1 t2 in -- cgit v1.2.3