X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Focaml%2Flibrary%2FlibrarySync.ml;h=922955aa0af384c3e16716c8942c2097d225426a;hb=caa84292498037f8cadcb1d200a69dec3b66c0ea;hp=2690349bc06c6af0ab6dd4d0a1c5c319a5bbf8a9;hpb=f4f050696e66b8604d9f0ff8173afe03addf74d6;p=helm.git diff --git a/helm/ocaml/library/librarySync.ml b/helm/ocaml/library/librarySync.ml index 2690349bc..922955aa0 100644 --- a/helm/ocaml/library/librarySync.ml +++ b/helm/ocaml/library/librarySync.ml @@ -23,6 +23,8 @@ * http://helm.cs.unibo.it/ *) +(* $Id$ *) + exception AlreadyDefined of UriManager.uri let auxiliary_lemmas_hashtbl = UriManager.UriHashtbl.create 29 @@ -48,7 +50,7 @@ let merge_coercions obj = C.Lambda (name, aux so, aux dest) | C.LetIn (name,so,dest) -> C.LetIn (name, aux so, aux dest) - | (Cic.Appl [ c1 ; (Cic.Appl [c2; head]) ]) as t when + | (Cic.Appl [ c1 ; (Cic.Appl [c2; head]) ]) when CoercGraph.is_a_coercion c1 && CoercGraph.is_a_coercion c2 -> let source_carr = CoercGraph.source_of c2 in let tgt_carr = CoercGraph.target_of c1 in @@ -178,7 +180,7 @@ let index_obj = let add_single_obj uri obj ~basedir = let obj = - if List.mem `Generated (CicUtil.attributes_of_obj obj) && + if (*List.mem `Generated (CicUtil.attributes_of_obj obj) &&*) not (CoercGraph.is_a_coercion (Cic.Const (uri, []))) then merge_coercions obj @@ -251,7 +253,7 @@ let generate_elimination_principles ~basedir uri = List.iter remove_single_obj !uris; raise exn -(* COERICONS ***********************************************************) +(* COERCIONS ***********************************************************) let remove_all_coercions () = UriManager.UriHashtbl.clear coercion_hashtbl;