]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/components/cic_unification/coercGraph.ml
oblivion ugraph everywhere outside the kernel
[helm.git] / helm / software / components / cic_unification / coercGraph.ml
index f12ea14b108e447951fe3691556d9ed760b88c8d..ac7441a4cdad4ee5f40fda81d3c0cf213cf7fb3e 100644 (file)
@@ -52,7 +52,7 @@ let saturate_coercion ul metasenv subst context =
     (fun arity (c,saturations) -> 
       let ty,_ =
        CicTypeChecker.type_of_aux' ~subst metasenv context c
-        CicUniv.empty_ugraph in
+        CicUniv.oblivion_ugraph in
       let _,metasenv,args,lastmeta =
        TermUtil.saturate_term ~delta:false freshmeta metasenv context ty arity in
       let irl =
@@ -158,7 +158,7 @@ let is_composite t =
       | Cic.Appl (he::_) -> CicUtil.uri_of_term he
       | _ -> CicUtil.uri_of_term t
     in
-    match CicEnvironment.get_obj CicUniv.empty_ugraph uri with
+    match CicEnvironment.get_obj CicUniv.oblivion_ugraph uri with
     | Cic.Constant (_,_, _, _, attrs),_  ->
         List.exists (function `Class (`Coercion _) -> true | _ -> false) attrs
     | _ -> false
@@ -182,7 +182,7 @@ let coerced_arg l =
         | _ -> 0
       in
       let uri = CicUtil.uri_of_term c in
-      match fst(CicEnvironment.get_obj CicUniv.empty_ugraph uri) with
+      match fst(CicEnvironment.get_obj CicUniv.oblivion_ugraph uri) with
       | Cic.Constant (_, _, ty, _, _) -> count_pi ty
       | _ -> assert false
     in