]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/components/tactics/paramodulation/utils.ml
Very experimental commit: the type of the source is now required in LetIns
[helm.git] / helm / software / components / tactics / paramodulation / utils.ml
index c6e64b898753f435e54a959a4d5c09dfc216e1c6..affd4897f5b7a351906554746b4debc93accb3c3 100644 (file)
@@ -102,8 +102,8 @@ let metas_of_term term =
        TermSet.union (aux s) (aux t)
     | C.Prod(n,s,t) ->
        TermSet.union (aux s) (aux t)
-    | C.LetIn(n,s,t) ->
-       TermSet.union (aux s) (aux t)
+    | C.LetIn(n,s,ty,t) ->
+       TermSet.union (aux s) (TermSet.union (aux ty) (aux t))
     | t -> TermSet.empty (* TODO: maybe add other cases? *)
   in
   aux term
@@ -265,7 +265,7 @@ let weight_of_term ?(consider_metas=true) ?(count_metas_occurrences=false) term
     | C.Cast (t1, t2)
     | C.Lambda (_, t1, t2)
     | C.Prod (_, t1, t2)
-    | C.LetIn (_, t1, t2) ->
+    | C.LetIn (_, t1, _, t2) ->
         let w1 = aux t1 in
         let w2 = aux t2 in
         w1 + w2 + 1