X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fcomponents%2Fcic_unification%2FcoercGraph.mli;h=3bc6273c34e44721dcf76ea85bfb0e16e3171db9;hb=d35aca0e979a9c7edbc60c44040360d52be8ca82;hp=ae2bd9233943c3d1993be89f0c05d1fb6a775396;hpb=e5bcf92808b75387ef4d4ff0f827bf07ad9af2f7;p=helm.git diff --git a/helm/software/components/cic_unification/coercGraph.mli b/helm/software/components/cic_unification/coercGraph.mli index ae2bd9233..3bc6273c3 100644 --- a/helm/software/components/cic_unification/coercGraph.mli +++ b/helm/software/components/cic_unification/coercGraph.mli @@ -32,33 +32,25 @@ type coercion_search_result = (* to apply the coercion it is sufficient to unify the last coercion argument (that is a Meta) with the term to be coerced *) | SomeCoercion of (Cic.metasenv * Cic.term * Cic.term) list + | SomeCoercionToTgt of (Cic.metasenv * Cic.term * Cic.term) list | NoCoercion - | NotMetaClosed - | NotHandled of string Lazy.t + | NotHandled val look_for_coercion : Cic.metasenv -> Cic.substitution -> Cic.context -> Cic.term -> Cic.term -> coercion_search_result -val look_for_coercion' : - Cic.metasenv -> Cic.substitution -> Cic.context -> - CoercDb.coerc_carr -> CoercDb.coerc_carr -> coercion_search_result - -(* 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 generate_dot_file: unit -> string (* given the Appl contents returns the argument of the head coercion *) -val coerced_arg: Cic.term list -> Cic.term option +val coerced_arg: Cic.term list -> (Cic.term * int) option (* returns: (carr,menv,(saturated coercion,last arg)option,idem) list *) val meets : Cic.metasenv -> Cic.substitution -> Cic.context -> - CoercDb.coerc_carr -> CoercDb.coerc_carr -> + bool * CoercDb.coerc_carr -> bool * CoercDb.coerc_carr -> (CoercDb.coerc_carr * Cic.metasenv * (Cic.term * Cic.term) option * (Cic.term * Cic.term) option) list