X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Focaml%2Fparamodulation%2Finference.mli;h=0cc0fcb708d9f51be2a844a04fece6b5656e433a;hb=8aaf525856e25bcd8f355e505fd00f45c62bc18f;hp=4e1fe2c0adc5cc2d68fcacf75c545be274e7cea3;hpb=d8c8060ad0cfc9b93ce919b6662383a230192840;p=helm.git diff --git a/helm/ocaml/paramodulation/inference.mli b/helm/ocaml/paramodulation/inference.mli index 4e1fe2c0a..0cc0fcb70 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". @@ -63,4 +72,10 @@ val meta_convertibility_eq: equality -> equality -> bool 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