X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Focaml%2Fparamodulation%2Finference.mli;h=0cc0fcb708d9f51be2a844a04fece6b5656e433a;hb=8aaf525856e25bcd8f355e505fd00f45c62bc18f;hp=bc37d1a64c742357ead39a9ce066f3a067a6db3d;hpb=975da98810a335a759a3b5e5f96b1beb96c932d2;p=helm.git diff --git a/helm/ocaml/paramodulation/inference.mli b/helm/ocaml/paramodulation/inference.mli index bc37d1a64..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". @@ -65,5 +74,8 @@ 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