]> matita.cs.unibo.it Git - helm.git/blob - components/ng_kernel/nCicEnvironment.mli
matita 0.5.1 tagged
[helm.git] / components / ng_kernel / nCicEnvironment.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 exception CircularDependency of string Lazy.t;;
15 exception ObjectNotFound of string Lazy.t;;
16 exception BadDependency of string Lazy.t;;
17 exception BadConstraint of string Lazy.t;;
18
19 val get_checked_obj: NUri.uri -> NCic.obj
20
21 val get_relevance: NReference.reference -> bool list
22
23 val type0: NCic.universe
24 (* universe_* raise BadConstraints if the second arg. is an inferred universe *)
25 val universe_eq: NCic.universe -> NCic.universe -> bool
26 val universe_leq: NCic.universe -> NCic.universe -> bool
27 (* add_constraint raise BadConstraint in case of universe inconsistency
28    or if the second argument is an inferred universe
29    true -> strict check (<); false -> loose check (<=)
30 *)
31 val add_constraint: bool -> NCic.universe -> NCic.universe -> unit
32
33 val get_checked_def:
34   NReference.reference -> 
35     NCic.relevance * string * NCic.term * NCic.term * NCic.c_attr * int
36
37 (* the last integer is the index of the inductive type in the reference *)
38 val get_checked_indtys:
39   NReference.reference -> 
40     bool * int * NCic.inductiveType list * NCic.i_attr * int
41
42 val get_checked_fixes_or_cofixes:
43   NReference.reference -> 
44    NCic.inductiveFun list * NCic.f_attr * int
45
46 val invalidate: unit -> unit
47
48 val set_typecheck_obj: (NCic.obj -> unit) -> unit
49
50 (* EOF *)