]> matita.cs.unibo.it Git - helm.git/blob - helm/software/components/ng_kernel/nCicUntrusted.mli
Release 0.5.9.
[helm.git] / helm / software / components / ng_kernel / nCicUntrusted.mli
1 (*
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.                     
5     ||I||                                                                
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_______________________________________________________________ *)
11
12 (* $Id$ *)
13
14 val map_term_fold_a:
15  (NCic.hypothesis -> 'k -> 'k) -> 'k ->
16  ('k -> 'a -> NCic.term -> 'a * NCic.term) -> 'a -> NCic.term -> 'a * NCic.term
17
18 val map_obj_kind: 
19   ?skip_body:bool -> (NCic.term -> NCic.term) -> NCic.obj_kind -> NCic.obj_kind
20
21 val metas_of_term : NCic.substitution -> NCic.context -> NCic.term -> int list
22
23 type meta_kind = [ `IsSort | `IsType | `IsTerm ]
24 val kind_of_meta: NCic.meta_attrs -> meta_kind
25 val set_kind: meta_kind -> NCic.meta_attrs -> NCic.meta_attrs 
26 val replace_in_metasenv: 
27   int -> (NCic.conjecture -> NCic.conjecture) -> NCic.metasenv -> NCic.metasenv
28 val replace_in_subst: 
29   int -> (NCic.subst_entry -> NCic.subst_entry) -> NCic.substitution ->
30    NCic.substitution
31 val max_kind: meta_kind -> meta_kind -> meta_kind
32
33 module NCicHash : Hashtbl.S with type key = NCic.term
34
35 val mk_appl : NCic.term -> NCic.term list -> NCic.term 
36
37 (* the context is needed only to honour Barendregt's naming convention *)
38 val apply_subst : NCic.substitution -> NCic.context -> NCic.term -> NCic.term
39 val apply_subst_context : fix_projections:bool -> 
40   NCic.substitution -> NCic.context -> NCic.context
41 val apply_subst_metasenv : NCic.substitution -> NCic.metasenv -> NCic.metasenv