]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/components/ng_refiner/nCicCoercion.mli
Objects are now used to represent also the tactic status.
[helm.git] / helm / software / components / ng_refiner / nCicCoercion.mli
index 5e60b7685c49e52a0288ed0ad6a0b244fde1d332..0d96a74074943192b3acf2859afc00cd6edda71d 100644 (file)
 
 type db
 
+class status :
+ object ('self)
+  method coerc_db: db
+  method set_coerc_db: db -> 'self
+  method set_coercion_status: 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
-
-  (* gets the old imperative coercion DB *)
-val db : unit -> db
+  #status as 'status ->
+   NCic.term -> NCic.term -> NCic.term -> int -> int -> 'status
 
-val empty_db : 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 ->