X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fcomponents%2Fng_refiner%2FnCicCoercion.mli;h=0f514eef69ba86ed9dd33c245852f9c37f0b6780;hb=d6ba7f4b8fbd98f2f1c848857022ef5fba80db53;hp=1a31172d203e33f131ec9896055b0fa6c4986038;hpb=8bc5bc0e8375a85736f6a5df317d129d5efa8de4;p=helm.git diff --git a/helm/software/components/ng_refiner/nCicCoercion.mli b/helm/software/components/ng_refiner/nCicCoercion.mli index 1a31172d2..0f514eef6 100644 --- a/helm/software/components/ng_refiner/nCicCoercion.mli +++ b/helm/software/components/ng_refiner/nCicCoercion.mli @@ -13,10 +13,19 @@ type db +class type g_status = + object + inherit NCicUnifHint.g_status + method coerc_db: db + end + class status : object ('self) + inherit NCicUnifHint.status + inherit g_status method coerc_db: db method set_coerc_db: db -> 'self + method set_coercion_status: #g_status -> 'self end val empty_db: db @@ -25,7 +34,7 @@ val empty_db: db index_coercion db c A B \arity_left(c ??x??) \position(x,??x??) *) val index_coercion: - #status as 'status -> + #status as 'status -> string -> NCic.term -> NCic.term -> NCic.term -> int -> int -> 'status (* gets the old imperative coercion DB (list format) *) @@ -36,6 +45,13 @@ val look_for_coercion: NCic.metasenv -> NCic.substitution -> NCic.context -> (* inferred type, expected type *) NCic.term -> NCic.term -> - (* enriched metasenv, new term, its type, metavriable to + (* name, enriched metasenv, new term, its type, metavriable to * be unified with the old term *) - (NCic.metasenv * NCic.term * NCic.term * NCic.term) list + (string * NCic.metasenv * NCic.term * NCic.term * NCic.term) list + +(* returns (coercion,arity,arg) *) +val match_coercion: + #status -> metasenv:NCic.metasenv -> subst:NCic.substitution -> + context:NCic.context -> NCic.term -> (NCic.term * int * int) option + +val generate_dot_file: #status -> Format.formatter -> unit