X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fcomponents%2Fng_kernel%2FnCicUtils.mli;h=269603c65d0aa398f6a58f3b08817a065cae237f;hb=507636cbb473500f40d0969a30e7afc7ddd88f2d;hp=7a9ce090b8cd11773bd6492cea234e6d3f9eb2fc;hpb=613bc202d0810f4386b393bfb369c62dfc78c68c;p=helm.git diff --git a/helm/software/components/ng_kernel/nCicUtils.mli b/helm/software/components/ng_kernel/nCicUtils.mli index 7a9ce090b..269603c65 100644 --- a/helm/software/components/ng_kernel/nCicUtils.mli +++ b/helm/software/components/ng_kernel/nCicUtils.mli @@ -26,14 +26,22 @@ (* $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 -> 'b -> NCic.term -> 'b) -> ('a -> 'a) -> 'b -> 'a -> NCic.term -> 'b -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