X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Focaml%2Fparamodulation%2Finference.mli;h=5ced528bb81055550961d65e489068bded9c49cf;hb=fc9cad6c109e279130501114000edcfb9621075b;hp=fab2026adf255443cacb4e58306a7c65fea51cd3;hpb=c76c8c83852508d69e7765dc9e929cdcf34af57d;p=helm.git diff --git a/helm/ocaml/paramodulation/inference.mli b/helm/ocaml/paramodulation/inference.mli index fab2026ad..5ced528bb 100644 --- a/helm/ocaml/paramodulation/inference.mli +++ b/helm/ocaml/paramodulation/inference.mli @@ -1,15 +1,24 @@ type equality = - Cic.term * (* proof *) - (Cic.term * (* type *) - Cic.term * (* left side *) - Cic.term) * (* right side *) - Cic.metasenv * (* environment for metas *) - Cic.term list (* arguments *) + Cic.term * (* proof *) + (Cic.term * (* type *) + Cic.term * (* left side *) + Cic.term * (* right side *) + Utils.comparison) * (* ordering *) + Cic.metasenv * (* environment for metas *) + Cic.term list (* arguments *) ;; type environment = Cic.metasenv * Cic.context * CicUniv.universe_graph;; +exception MatchingFailure + +val matching: + Cic.metasenv -> Cic.context -> Cic.term -> Cic.term -> + CicUniv.universe_graph -> + Cic.substitution * Cic.metasenv * CicUniv.universe_graph + + (** Performs the beta expansion of the term "where" w.r.t. "what", i.e. returns the list of all the terms t s.t. "(t what) = where". @@ -66,3 +75,10 @@ val is_identity: environment -> equality -> bool val string_of_equality: ?env:environment -> equality -> string val subsumption: environment -> equality -> equality -> bool + +val metas_of_term: Cic.term -> int list + +val fix_metas: int -> equality -> int * equality + +val extract_differing_subterms: + Cic.term -> Cic.term -> (Cic.term * Cic.term) option