]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/cic_proof_checking/cicUnivUtils.ml
new cicEnvironment implementation
[helm.git] / helm / ocaml / cic_proof_checking / cicUnivUtils.ml
index 1897772a8e869b16a8af8955e24ecd277abda242..c027194543abc4cc0d4bc5aa4aa448eb7d996bf4 100644 (file)
@@ -45,16 +45,14 @@ let universes_of_obj uri t =
     | C.Var (u,exp_named_subst) ->
         if List.mem u !don then [] else
         (don := u::!don;
-         aux_obj (CicEnvironment.get_obj ~not_jet_cooked:true u 
-                   CicUniv.empty_ugraph))
+         aux_obj (CicEnvironment.get_obj CicUniv.empty_ugraph u))
     | C.MutInd (u,_,exp_named_subst) ->
        if List.mem u !don || eq u uri then 
          [] 
        else
           begin
            don := u::!don;
-            (match fst(CicEnvironment.get_obj ~not_jet_cooked:true u  
-                         CicUniv.empty_ugraph)
+            (match fst(CicEnvironment.get_obj CicUniv.empty_ugraph u)
               with
                | C.InductiveDefinition (l,_,_) -> 
                   List.fold_left (
@@ -73,8 +71,7 @@ let universes_of_obj uri t =
        else
          begin
            don := u::!don;
-           (match fst(CicEnvironment.get_obj ~not_jet_cooked:true u 
-                        CicUniv.empty_ugraph) with
+           (match fst(CicEnvironment.get_obj CicUniv.empty_ugraph u) with
               | C.InductiveDefinition (l,_,_) -> 
                   List.fold_left (
                     fun x (_,_,_t,l') ->
@@ -120,36 +117,31 @@ let universes_of_obj uri t =
            List.fold_left (
              fun l u ->
                l @ if eq u uri then [] else 
-                 (aux_obj (CicEnvironment.get_obj ~not_jet_cooked:true u
-                              CicUniv.empty_ugraph)))
+                 (aux_obj (CicEnvironment.get_obj CicUniv.empty_ugraph u)))
           [] v
        | C.Constant (_,None,ty,v) -> aux ty @
            List.fold_left (
              fun l u ->
                l @ if eq u uri then [] else 
-                 (aux_obj (CicEnvironment.get_obj ~not_jet_cooked:true u
-                              CicUniv.empty_ugraph)))
+                 (aux_obj (CicEnvironment.get_obj CicUniv.empty_ugraph u)))
             [] v
        | C.CurrentProof (_,conjs,te,ty,v) -> aux te @ aux ty @
            List.fold_left (
              fun l u ->
                l @ if eq u uri then [] else 
-                 (aux_obj (CicEnvironment.get_obj ~not_jet_cooked:true u
-                              CicUniv.empty_ugraph)))
+                 (aux_obj (CicEnvironment.get_obj CicUniv.empty_ugraph u)))
             [] v
        | C.Variable (_,Some bo,ty,v) -> aux bo @ aux ty @
            List.fold_left (
              fun l u ->
                l @ if eq u uri then [] else 
-                 (aux_obj (CicEnvironment.get_obj ~not_jet_cooked:true u
-                              CicUniv.empty_ugraph)))
+                 (aux_obj (CicEnvironment.get_obj CicUniv.empty_ugraph u)))
             [] v
        | C.Variable (_,None ,ty,v) -> aux ty @ 
            List.fold_left (
              fun l u ->
                l @ if eq u uri then [] else 
-                 (aux_obj (CicEnvironment.get_obj ~not_jet_cooked:true u
-                              CicUniv.empty_ugraph)))
+                 (aux_obj (CicEnvironment.get_obj CicUniv.empty_ugraph u)))
             [] v
        | C.InductiveDefinition (l,v,_) -> 
           (List.fold_left (
@@ -161,8 +153,7 @@ let universes_of_obj uri t =
           (List.fold_left
               (fun l u -> 
               l @ if eq u uri then [] else 
-                 (aux_obj (CicEnvironment.get_obj ~not_jet_cooked:true u
-                             CicUniv.empty_ugraph)))
+                 (aux_obj (CicEnvironment.get_obj CicUniv.empty_ugraph u)))
              [] v)
     )
   in