fun y (_,t) -> y @ aux t)
[] l')
[] l) @
- (List.fold_left (
- fun l u ->
+ (List.fold_left
+ (fun l u ->
l @ aux_obj (CicEnvironment.get_obj ~not_jet_cooked:true u
CicUniv.empty_ugraph))
[] v)
in
aux_obj (t,CicUniv.empty_ugraph)
-
+let clean_and_fill uri obj ugraph =
+ let list_of_universes = universes_of_obj obj in
+ let ugraph = CicUniv.clean_ugraph ugraph list_of_universes in
+ let ugraph = CicUniv.fill_empty_nodes_with_uri ugraph uri in
+ ugraph
* For details, see the HELM World-Wide-Web page,
* http://cs.unibo.it/helm/.
*)
+
(* traverses recursively a type and lists the referenced universes *)
val universes_of_obj:
Cic.obj -> CicUniv.universe list
+
+ (** cleans the universe graph for a given object and fills universes with URI.
+ * to be used on qed
+ *)
+val clean_and_fill:
+ UriManager.uri -> Cic.obj -> CicUniv.universe_graph ->
+ CicUniv.universe_graph
+