X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fcomponents%2Ftactics%2Fparamodulation%2Futils.ml;h=affd4897f5b7a351906554746b4debc93accb3c3;hb=cc23f034c9419186602d9250456241f2eba90d7c;hp=c6e64b898753f435e54a959a4d5c09dfc216e1c6;hpb=b109559ac6795075508fd5c231a1bf2a3223031a;p=helm.git diff --git a/helm/software/components/tactics/paramodulation/utils.ml b/helm/software/components/tactics/paramodulation/utils.ml index c6e64b898..affd4897f 100644 --- a/helm/software/components/tactics/paramodulation/utils.ml +++ b/helm/software/components/tactics/paramodulation/utils.ml @@ -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