]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/components/ng_kernel/nCicUtils.mli
added slim version of does_not_occur
[helm.git] / helm / software / components / ng_kernel / nCicUtils.mli
index 506af8c0b60773198190f0fca8492e9455c410a6..269603c65d0aa398f6a58f3b08817a065cae237f 100644 (file)
 (* $Id: nCicSubstitution.ml 8135 2008-02-13 15:35:43Z tassi $ *)
 
 exception Subst_not_found of int
+exception Meta_not_found of int
+
+val sharing_map: ('a -> 'a) -> 'a list -> 'a list
 
 val expand_local_context : NCic.lc_kind -> NCic.term list
 
 val lookup_subst: int ->  NCic.substitution -> NCic.subst_entry
+val lookup_meta: int ->  NCic.metasenv -> NCic.conjecture
 
-(* both Meta agnostic, map attempts to preserve sharing.
+(* both functions raise "assert false" when a Meta is found
  * call the 'a->'a function when a binder is crossed *)
-val fold: ('a -> NCic.term -> 'a) -> ('a -> 'a) -> 'a -> NCic.term -> 'a
-val map: ('a -> NCic.term -> NCic.term) -> ('a -> 'a) -> 'a -> NCic.term -> NCic.term
+val fold:
+  (NCic.hypothesis -> 'k -> 'k) -> 'k ->
+  ('k -> 'a -> NCic.term -> 'a) -> 'a -> NCic.term -> 'a
+val map:
+ (NCic.hypothesis -> 'k -> 'k) -> 'k ->
+ ('k -> NCic.term -> NCic.term) -> NCic.term -> NCic.term
+
+val is_closed: NCic.term -> bool