2 ||M|| This file is part of HELM, an Hypertextual, Electronic
3 ||A|| Library of Mathematics, developed at the Computer Science
4 ||T|| Department, University of Bologna, Italy.
6 ||T|| HELM is free software; you can redistribute it and/or
7 ||A|| modify it under the terms of the GNU General Public License
8 \ / version 2 or (at your option) any later version.
9 \ / This software is distributed as is, NO WARRANTY.
10 V_______________________________________________________________ *)
12 (* $Id: nCicSubstitution.ml 8135 2008-02-13 15:35:43Z tassi $ *)
14 exception Subst_not_found of int
15 exception Meta_not_found of int
17 val sharing_map: ('a -> 'a) -> 'a list -> 'a list
19 val expand_local_context : NCic.lc_kind -> NCic.term list
21 val lookup_subst: int -> NCic.substitution -> NCic.subst_entry
22 val lookup_meta: int -> NCic.metasenv -> NCic.conjecture
24 (* both functions raise "assert false" when a Meta is found
25 * call the 'a->'a function when a binder is crossed *)
27 (NCic.hypothesis -> 'k -> 'k) -> 'k ->
28 ('k -> 'a -> NCic.term -> 'a) -> 'a -> NCic.term -> 'a
30 (NCic.hypothesis -> 'k -> 'k) -> 'k ->
31 ('k -> NCic.term -> NCic.term) -> NCic.term -> NCic.term
33 val is_closed: NCic.term -> bool