]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/components/ng_refiner/nCicCoercion.mli
milestone in basic_2, λδ-2A reconstructed
[helm.git] / helm / software / components / ng_refiner / nCicCoercion.mli
index 1d31d469f74dc6f32befa02f8404f823b3656ca9..ff6b439974c12f5dfc7b0eea9942629da09d9b93 100644 (file)
 
 type db
 
+val set_convert_term:
+ (UriManager.uri -> Cic.term -> NCic.term * NCic.obj list) -> unit
+
+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: <coerc_db: db; ..> -> 'self
+  method set_coercion_status: #g_status -> 'self
  end
 
 val empty_db: db
@@ -26,7 +37,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) *)
@@ -37,6 +48,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