]> matita.cs.unibo.it Git - helm.git/blob - components/ng_kernel/nCicUtils.mli
tagged 0.5.0-rc1
[helm.git] / components / ng_kernel / nCicUtils.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: nCicSubstitution.ml 8135 2008-02-13 15:35:43Z tassi $ *)
13
14 exception Subst_not_found of int
15 exception Meta_not_found of int
16
17 val sharing_map: ('a -> 'a) -> 'a list -> 'a list
18
19 val expand_local_context : NCic.lc_kind -> NCic.term list
20
21 val lookup_subst: int ->  NCic.substitution -> NCic.subst_entry
22 val lookup_meta: int ->  NCic.metasenv -> NCic.conjecture
23
24 (* both functions raise "assert false" when a Meta is found
25  * call the 'a->'a function when a binder is crossed *)
26 val fold:
27   (NCic.hypothesis -> 'k -> 'k) -> 'k ->
28   ('k -> 'a -> NCic.term -> 'a) -> 'a -> NCic.term -> 'a
29 val map:
30  (NCic.hypothesis -> 'k -> 'k) -> 'k ->
31  ('k -> NCic.term -> NCic.term) -> NCic.term -> NCic.term
32
33 val is_closed: NCic.term -> bool