]> matita.cs.unibo.it Git - helm.git/blob - helm/software/components/ng_refiner/nCicRefiner.mli
more push/pop to avoid confusion with imperative data structures employed by
[helm.git] / helm / software / components / ng_refiner / nCicRefiner.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 (*
15 exception RefineFailure of string Lazy.t;;
16 exception Uncertain of string Lazy.t;;
17 exception AssertFailure of string Lazy.t;;
18
19 (* type_of_aux' metasenv context term graph                *)
20 (* refines [term] and returns the refined form of [term],  *)
21 (* its type, the new metasenv and universe graph.          *)
22 val type_of_aux':
23  ?localization_tbl:Stdpp.location Cic.CicHash.t ->
24   Cic.metasenv -> Cic.context -> Cic.term -> CicUniv.universe_graph ->
25    Cic.term * Cic.term * Cic.metasenv * CicUniv.universe_graph
26
27 (* typecheck metasenv uri obj graph                     *)
28 (* refines [obj] and returns the refined form of [obj], *)
29 (* the new metasenv and universe graph.                 *)
30 (* the [uri] is required only for inductive definitions *)
31 val typecheck : 
32  localization_tbl:Stdpp.location Cic.CicHash.t ->
33   Cic.metasenv -> UriManager.uri option -> Cic.obj ->
34    Cic.obj * Cic.metasenv * CicUniv.universe_graph
35
36 val insert_coercions: bool ref (* initially true *)
37
38 val pack_coercion_obj: Cic.obj -> Cic.obj
39
40 val pack_coercion_metasenv: Cic.metasenv -> Cic.metasenv
41 *)