X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fcomponents%2Flibrary%2FcoercGraph.mli;h=e6bc766df3d141ea3049789fd43c91bb6679c134;hb=4609a07e2fe4343d94832fcaf0936223f83ba71c;hp=283d8a4844f3d26198bb80e3fee1e65d555a792f;hpb=185bfc8f9c9ba49308477ee6769701f3e2977115;p=helm.git diff --git a/helm/software/components/library/coercGraph.mli b/helm/software/components/library/coercGraph.mli index 283d8a484..e6bc766df 100644 --- a/helm/software/components/library/coercGraph.mli +++ b/helm/software/components/library/coercGraph.mli @@ -23,10 +23,12 @@ * http://cs.unibo.it/helm/. *) +(* $Id$ *) + (* This module implements the Query interface to the Coercion Graph *) type coercion_search_result = - | SomeCoercion of Cic.term + | SomeCoercion of Cic.term list | NoCoercion | NotMetaClosed | NotHandled of string Lazy.t @@ -34,8 +36,21 @@ type coercion_search_result = val look_for_coercion : Cic.term -> Cic.term -> coercion_search_result +val look_for_coercion' : + CoercDb.coerc_carr -> CoercDb.coerc_carr -> coercion_search_result + val is_a_coercion: Cic.term -> bool +val is_a_coercion_to_funclass: Cic.term -> int option + +(* checks if term is a constant or + * a constant applyed that is marked with (`Class `Coercion) *) +val is_composite: Cic.term -> bool + val source_of: Cic.term -> Cic.term -val target_of: Cic.term -> Cic.term val generate_dot_file: unit -> string + +val meets : + CoercDb.coerc_carr -> CoercDb.coerc_carr -> + CoercDb.coerc_carr list +