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=45c444ac4118dc926ef1e7b466493fcd4c330f37;hpb=b7387e01fb1ce2745a6df6ffc254dba7d13d35ac;p=helm.git diff --git a/helm/software/components/ng_kernel/nCicUtils.mli b/helm/software/components/ng_kernel/nCicUtils.mli index 45c444ac4..269603c65 100644 --- a/helm/software/components/ng_kernel/nCicUtils.mli +++ b/helm/software/components/ng_kernel/nCicUtils.mli @@ -25,5 +25,23 @@ (* $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 functions raise "assert false" when a Meta is found + * call the 'a->'a function when a binder is crossed *) +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