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.
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_______________________________________________________________ *)
15 exception RefineFailure of string Lazy.t;;
16 exception Uncertain of string Lazy.t;;
17 exception AssertFailure of string Lazy.t;;
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. *)
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
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 *)
32 localization_tbl:Stdpp.location Cic.CicHash.t ->
33 Cic.metasenv -> UriManager.uri option -> Cic.obj ->
34 Cic.obj * Cic.metasenv * CicUniv.universe_graph
36 val insert_coercions: bool ref (* initially true *)
38 val pack_coercion_obj: Cic.obj -> Cic.obj
40 val pack_coercion_metasenv: Cic.metasenv -> Cic.metasenv