X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fcomponents%2Fng_paramodulation%2Findex.ml;h=4db4584a451494caf00bff8166a3a37f96d678dc;hb=c6c248e635ef35e9515ed981374ce2a0cef30e62;hp=5c085c5188db5a4473337995e167d17b290f5bfe;hpb=50ed5ab75a38693c7b7558ca9487998e81bb7f89;p=helm.git diff --git a/helm/software/components/ng_paramodulation/index.ml b/helm/software/components/ng_paramodulation/index.ml index 5c085c518..4db4584a4 100644 --- a/helm/software/components/ng_paramodulation/index.ml +++ b/helm/software/components/ng_paramodulation/index.ml @@ -80,12 +80,6 @@ module Index(B : Orderings.Blob) = struct type data = ClauseSet.elt and type dataset = ClauseSet.t = Make(FotermIndexable)(ClauseSet) - - let are_invertible maxvar varlist l r = - let _,_,subst = U.relocate maxvar varlist FoSubst.id_subst in - let l = FoSubst.apply_subst subst l in - try (ignore(Unif.alpha_eq l r);true) with - FoUnif.UnificationFailure _ -> false let index_unit_clause maxvar t = function | (_,Terms.Equation (l,_,_,Terms.Gt),_,_) as c -> @@ -93,14 +87,16 @@ module Index(B : Orderings.Blob) = struct | (_,Terms.Equation (_,r,_,Terms.Lt),_,_) as c -> DT.index t r (Terms.Right2Left, c) | (_,Terms.Equation (l,r,_,Terms.Incomparable),vl,_) as c -> - if are_invertible maxvar vl l r then +(* if are_invertible maxvar vl l r then (prerr_endline ("Invertible " ^ (Pp.pp_foterm l) ^ "=" ^ (Pp.pp_foterm r)); DT.index t l (Terms.Left2Right, c)) - else + else *) DT.index (DT.index t l (Terms.Left2Right, c)) r (Terms.Right2Left, c) + | (_,Terms.Equation (l,r,_,Terms.Invertible),vl,_) as c -> + DT.index t l (Terms.Left2Right, c) | (_,Terms.Equation (_,r,_,Terms.Eq),_,_) -> assert false | (_,Terms.Predicate p,_,_) as c -> DT.index t p (Terms.Nodir, c)