X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fcomponents%2Fng_refiner%2FnCicCoercion.mli;h=1d31d469f74dc6f32befa02f8404f823b3656ca9;hb=f4c17198d8afe7c8cd62dbab527d08902d891491;hp=d01e30a5ad9d286e3735a24e38ce0cb974cd6087;hpb=62f476a05884d451bfb90d845ea2b1c0a1c77f96;p=helm.git diff --git a/helm/software/components/ng_refiner/nCicCoercion.mli b/helm/software/components/ng_refiner/nCicCoercion.mli index d01e30a5a..1d31d469f 100644 --- a/helm/software/components/ng_refiner/nCicCoercion.mli +++ b/helm/software/components/ng_refiner/nCicCoercion.mli @@ -13,17 +13,27 @@ type db +class status : + object ('self) + method coerc_db: db + method set_coerc_db: db -> 'self + method set_coercion_status: -> 'self + end + +val empty_db: db + (* index (\x.c ?? x ??): A -> B index_coercion db c A B \arity_left(c ??x??) \position(x,??x??) *) val index_coercion: - db -> NCic.term -> NCic.term -> NCic.term -> int -> int -> db + #status as 'status -> + NCic.term -> NCic.term -> NCic.term -> int -> int -> 'status - (* gets the old imperative coercion DB *) -val db : unit -> db + (* gets the old imperative coercion DB (list format) *) +val index_old_db: CoercDb.coerc_db -> (#status as 'status) -> 'status val look_for_coercion: - db -> + #status -> NCic.metasenv -> NCic.substitution -> NCic.context -> (* inferred type, expected type *) NCic.term -> NCic.term ->