]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/components/ng_refiner/nCicRefiner.mli
some work to refine objs
[helm.git] / helm / software / components / ng_refiner / nCicRefiner.mli
index 5d845eb1fe1526d2e713df641c566498a48439be..d43a09f207a39b77aefedff4f2a0a814826c1e9d 100644 (file)
 
 (* $Id$ *)
 
-exception RefineFailure of Stdpp.location * (string Lazy.t);;
-exception Uncertain of Stdpp.location * (string Lazy.t);;
+exception RefineFailure of (Stdpp.location * string) Lazy.t;;
+exception Uncertain of (Stdpp.location * string) Lazy.t;;
 exception AssertFailure of string Lazy.t;;
 
 val typeof :
+ NCicUnifHint.db ->
  ?localise:(NCic.term -> Stdpp.location) ->
+ 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
+       * be unified with the old term *)
+      (NCic.metasenv * NCic.term * NCic.term * NCic.term) list
+  ) ->
   NCic.metasenv -> NCic.substitution -> NCic.context -> 
   NCic.term -> NCic.term option -> (* term, expected type *)
     NCic.metasenv * NCic.substitution * NCic.term * NCic.term
     (*  menv, subst,refined term, type *)
 
+val typeof_obj :
+ NCicUnifHint.db ->
+ ?localise:(NCic.term -> Stdpp.location) ->
+ 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
+       * be unified with the old term *)
+      (NCic.metasenv * NCic.term * NCic.term * NCic.term) list
+  ) ->
+  NCic.obj -> NCic.obj
+