X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Focaml%2Fcic_omdoc%2Fcic2content.ml;h=49e2e23ad11e738442faa10d8dca38c597ba937a;hb=bb236c2ac110124de92fa2d0fb2882d273a7f7eb;hp=61003f930fbca68abc1515a78acf92122659e9d2;hpb=e626927b4c1c77bdcd6b545203a0a9c17a9ff136;p=helm.git diff --git a/helm/ocaml/cic_omdoc/cic2content.ml b/helm/ocaml/cic_omdoc/cic2content.ml index 61003f930..49e2e23ad 100644 --- a/helm/ocaml/cic_omdoc/cic2content.ml +++ b/helm/ocaml/cic_omdoc/cic2content.ml @@ -678,10 +678,9 @@ and inductive seed name id li ~ids_to_inner_types ~ids_to_inner_sorts = if n<0 then raise NotApplicable else let method_name = - if (uri_str = "cic:/Coq/Init/Logic_Type/exT_ind.con" or - uri_str = "cic:/Coq/Init/Logic/ex_ind.con") then "Exists" - else if uri_str = "cic:/Coq/Init/Logic/and_ind.con" then "AndInd" - else if uri_str = "cic:/Coq/Init/Logic/False_ind.con" then "FalseInd" + if UriManager.eq uri HelmLibraryObjects.Logic.ex_ind_URI then "Exists" + else if UriManager.eq uri HelmLibraryObjects.Logic.and_ind_URI then "AndInd" + else if UriManager.eq uri HelmLibraryObjects.Logic.false_ind_URI then "FalseInd" else "ByInduction" in let prefix = String.sub uri_str 0 n in let ind_str = (prefix ^ ".ind") in @@ -790,9 +789,8 @@ and rewrite seed name id li ~ids_to_inner_types ~ids_to_inner_sorts = let module C = Cic in match li with C.AConst (sid,uri,exp_named_subst)::args -> - let uri_str = UriManager.string_of_uri uri in - if uri_str = "cic:/Coq/Init/Logic/eq_ind.con" or - uri_str = "cic:/Coq/Init/Logic/eq_ind_r.con" then + if UriManager.eq uri HelmLibraryObjects.Logic.eq_ind_URI or + UriManager.eq uri HelmLibraryObjects.Logic.eq_ind_r_URI then let subproofs,arg = (match build_subproofs_and_args