-terms.cmi:
pp.cmi: terms.cmi
founif.cmi: terms.cmi
index.cmi: terms.cmi
orderings.cmi: terms.cmi
+subst.cmi: terms.cmi
terms.cmo: terms.cmi
terms.cmx: terms.cmi
pp.cmo: pp.cmi
index.cmx: terms.cmx index.cmi
orderings.cmo: terms.cmi orderings.cmi
orderings.cmx: terms.cmx orderings.cmi
+subst.cmo: terms.cmi subst.cmi
+subst.cmx: terms.cmx subst.cmi
PACKAGE = ng_paramodulation
INTERFACE_FILES = \
- terms.mli pp.mli founif.mli index.mli orderings.mli
+ terms.mli pp.mli founif.mli index.mli orderings.mli subst.mli
IMPLEMENTATION_FILES = $(INTERFACE_FILES:%.mli=%.ml)
--- /dev/null
+(*
+ ||M|| This file is part of HELM, an Hypertextual, Electronic
+ ||A|| Library of Mathematics, developed at the Computer Science
+ ||T|| Department, University of Bologna, Italy.
+ ||I||
+ ||T|| HELM is free software; you can redistribute it and/or
+ ||A|| modify it under the terms of the GNU General Public License
+ \ / version 2 or (at your option) any later version.
+ \ / This software is distributed as is, NO WARRANTY.
+ V_______________________________________________________________ *)
+
+let empty_subst = [];;
+
+let buildsubst n t tail = (n,t) :: tail ;;
+
+let rec lookup_subst var subst =
+ match var with
+ | Terms.Var i ->
+ (try
+ lookup_subst (List.assoc i subst) subst
+ with
+ Not_found -> var)
+ | _ -> var
+;;
+
+let is_in_subst i subst = List.mem_assoc i subst;;
+
+(* filter out from metasenv the variables in substs *)
+let filter subst varlist =
+ List.filter
+ (fun m ->
+ not (is_in_subst m subst))
+ varlist
+;;
--- /dev/null
+(*
+ ||M|| This file is part of HELM, an Hypertextual, Electronic
+ ||A|| Library of Mathematics, developed at the Computer Science
+ ||T|| Department, University of Bologna, Italy.
+ ||I||
+ ||T|| HELM is free software; you can redistribute it and/or
+ ||A|| modify it under the terms of the GNU General Public License
+ \ / version 2 or (at your option) any later version.
+ \ / This software is distributed as is, NO WARRANTY.
+ V_______________________________________________________________ *)
+
+(* $Id: nCic.ml 9058 2008-10-13 17:42:30Z tassi $ *)
+
+val empty_subst : 'a Terms.substitution
+val buildsubst :
+ int -> 'a Terms.foterm -> 'a Terms.substitution -> 'a Terms.substitution
+val lookup_subst : 'a Terms.foterm -> 'a Terms.substitution -> 'a Terms.foterm
+val filter : 'a Terms.substitution -> Terms.varlist -> Terms.varlist