]> matita.cs.unibo.it Git - helm.git/blob - helm/software/components/ng_kernel/nCicTypeChecker.mli
trust implemented, but in the nCicTypeChecker!
[helm.git] / helm / software / components / ng_kernel / nCicTypeChecker.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 (* These are the only exceptions that will be raised *)
13 exception TypeCheckerFailure of string Lazy.t
14 exception AssertFailure of string Lazy.t
15
16 val set_logger: 
17   ([ `Start_type_checking of NUri.uri 
18    | `Type_checking_completed of NUri.uri
19    | `Type_checking_interrupted of NUri.uri
20    | `Type_checking_failed of NUri.uri
21    | `Trust_obj of NUri.uri
22    ] -> unit) -> unit
23
24 val set_trust : (NCic.obj -> bool) -> unit
25
26 (* typechecks the object, raising an exception if illtyped *)
27 val typecheck_obj : NCic.obj -> unit
28
29 val typeof: 
30   subst:NCic.substitution -> metasenv:NCic.metasenv -> 
31   NCic.context -> NCic.term -> 
32     NCic.term