]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/cic/cicUniv.mli
version 0.7.1
[helm.git] / helm / ocaml / cic / cicUniv.mli
index 71ad1ef00b7b73f5e10092c97f723d4ffcfc50d7..3eec9b3bec9e2f858505935d2efb0a77d2df5eb2 100644 (file)
@@ -43,7 +43,9 @@ type universe_graph
   returns a fresh universe
 *)
 val fresh: 
-  unit -> universe
+  ?uri:UriManager.uri ->
+  unit -> 
+    universe
 
 (*
   really useful at the begin and in all the functions that don't care 
@@ -113,6 +115,21 @@ val ugraph_of_xml:
 val restart_numbering:
   unit -> unit
 
+  (** re-hash-cons URIs contained in the given universe so that phisicaly
+   * equality could be enforced. Mainly used by
+   * CicEnvironment.restore_from_channel *)
+val recons_graph: universe_graph -> universe_graph
+
+  (** re-hash-cons a single universe *)
+val recons_univ: universe -> universe
+
+  (** consistency chek that should be done before committin the graph to the
+   * cache *)
+val assert_univs_have_uri: universe_graph -> unit
+
+  (** asserts the univers is named *)
+val assert_univ: universe -> unit
+
 (*
   Benchmarking stuff
 *)