X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fcomponents%2Ftactics%2Fparamodulation%2Futils.ml;h=542c2dd77d26e6c6bae42937abd63d9fc2257a72;hb=e31bb143e3a303321e509f415764338849b7e516;hp=c2b1905f89f4f313ae4e2cd230ec301e889f883f;hpb=08a92d276c5477968b02f31097b6ed03185f34eb;p=helm.git diff --git a/helm/software/components/tactics/paramodulation/utils.ml b/helm/software/components/tactics/paramodulation/utils.ml index c2b1905f8..542c2dd77 100644 --- a/helm/software/components/tactics/paramodulation/utils.ml +++ b/helm/software/components/tactics/paramodulation/utils.ml @@ -103,6 +103,13 @@ let metas_of_term term = aux term ;; +let rec remove_local_context = + function + | Cic.Meta (i,_) -> Cic.Meta (i,[]) + | Cic.Appl l -> + Cic.Appl(List.map remove_local_context l) + | t -> t + (************************* rpo ********************************) let number = [ @@ -724,19 +731,6 @@ let string_of_pos = function | Right -> "Right" ;; -let eq_URI () = - match LibraryObjects.eq_URI () with - None -> assert false - | Some uri -> uri - -let eq_ind_URI () = LibraryObjects.eq_ind_URI ~eq:(eq_URI ()) -let eq_ind_r_URI () = LibraryObjects.eq_ind_r_URI ~eq:(eq_URI ()) -let sym_eq_URI () = LibraryObjects.sym_eq_URI ~eq:(eq_URI ()) -let eq_XURI () = - let s = UriManager.string_of_uri (eq_URI ()) in - UriManager.uri_of_string (s ^ "#xpointer(1/1/1)") -let trans_eq_URI () = LibraryObjects.trans_eq_URI ~eq:(eq_URI ()) - let metas_of_term t = List.map fst (CicUtil.metas_of_term t) ;;