]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/components/ng_kernel/nCicEnvironment.ml
...
[helm.git] / helm / software / components / ng_kernel / nCicEnvironment.ml
index 8f76f4a0f25628c0947617d0144091e871cdd7e3..de785bde8b4b009f5bc39526ec601ab43cbd8732 100644 (file)
@@ -38,12 +38,12 @@ let universe_leq a b =
      raise (BadConstraint
       (lazy "trying to check if a universe is less or equal than an inferred universe"))
 
-let universe_eq a b = universe_leq b a || universe_leq a b
+let universe_eq a b = universe_leq b a && universe_leq a b
 
-let add_le_constraint strict a b = 
+let add_constraint strict a b = 
   match a,b with
   | [false,a2],[false,b2] -> 
-      if not (NUri.eq a2 b2) then (
+      if not (le_path_uri [] strict a2 b2) then (
         if le_path_uri [] (not strict) b2 a2 then
          (raise (BadConstraint (lazy "universe inconsistency")));
         le_constraints := (strict,a2,b2) :: !le_constraints)