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_______________________________________________________________ *)
15 (NCic.hypothesis -> 'k -> 'k) -> 'k ->
16 ('k -> 'a -> NCic.term -> 'a * NCic.term) -> 'a -> NCic.term -> 'a * NCic.term
19 ?skip_body:bool -> (NCic.term -> NCic.term) -> NCic.obj_kind -> NCic.obj_kind
21 val metas_of_term : NCic.substitution -> NCic.context -> NCic.term -> int list
22 val sort_metasenv: NCic.substitution -> NCic.metasenv -> NCic.metasenv
24 type meta_kind = [ `IsSort | `IsType | `IsTerm ]
25 val kind_of_meta: NCic.meta_attrs -> meta_kind
26 val set_kind: meta_kind -> NCic.meta_attrs -> NCic.meta_attrs
27 val replace_in_metasenv:
28 int -> (NCic.conjecture -> NCic.conjecture) -> NCic.metasenv -> NCic.metasenv
30 int -> (NCic.subst_entry -> NCic.subst_entry) -> NCic.substitution ->
32 val max_kind: meta_kind -> meta_kind -> meta_kind
34 module NCicHash : Hashtbl.S with type key = NCic.term
36 val mk_appl : NCic.term -> NCic.term list -> NCic.term
38 (* the context is needed only to honour Barendregt's naming convention *)
39 val apply_subst : NCic.substitution -> NCic.context -> NCic.term -> NCic.term
40 val apply_subst_context : fix_projections:bool ->
41 NCic.substitution -> NCic.context -> NCic.context
42 val apply_subst_metasenv : NCic.substitution -> NCic.metasenv -> NCic.metasenv
44 val count_occurrences :
45 subst:NCic.substitution -> int -> NCic.term -> int
46 (* quick, but with false negatives (since no ~subst), check for closed terms *)
47 val looks_closed : NCic.term -> bool