]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/paramodulation/inference.mli
cambiato il tipo equality, aggiunto l'ordinamento tra left e right
[helm.git] / helm / ocaml / paramodulation / inference.mli
index fab2026adf255443cacb4e58306a7c65fea51cd3..0cc0fcb708d9f51be2a844a04fece6b5656e433a 100644 (file)
@@ -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,7 @@ 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