]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/components/ng_paramodulation/foSubst.ml
1) added simplification of actives w.r.t. selected
[helm.git] / helm / software / components / ng_paramodulation / foSubst.ml
index 1b9f2624c77760b88f6e59184ecafca0ff12da60..9053ec223a3a25fcac036746bb30e1e4bd5ea49d 100644 (file)
@@ -35,5 +35,17 @@ module Subst (B : Terms.Blob) = struct
          not (is_in_subst m subst))
       varlist
   ;;
+
+  let rec apply_subst subst = function
+    | (Terms.Leaf _) as t -> t
+    | Terms.Var i -> 
+        (match lookup_subst i subst with
+        | Terms.Node _ as t -> apply_subst subst t
+        | t -> t)
+    | (Terms.Node l) ->
+       Terms.Node (List.map (fun t -> apply_subst subst t) l)
+;;
+
+  let concat x y = x @ y;;
   
 end