X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fcomponents%2Fng_kernel%2FnCicEnvironment.mli;h=c4fa396cc1d6d493afb4d80644c3b818e0cc2eda;hb=df753672ee6c511b6ce721c2124e3294d0a28dbd;hp=05184bdf143386f1bfac0352a1112d6ea2298ec4;hpb=c622da7bd4b14f5953424e09f32c14f74d681a3f;p=helm.git diff --git a/helm/software/components/ng_kernel/nCicEnvironment.mli b/helm/software/components/ng_kernel/nCicEnvironment.mli index 05184bdf1..c4fa396cc 100644 --- a/helm/software/components/ng_kernel/nCicEnvironment.mli +++ b/helm/software/components/ng_kernel/nCicEnvironment.mli @@ -9,12 +9,32 @@ \ / This software is distributed as is, NO WARRANTY. V_______________________________________________________________ *) +(* $Id$ *) + exception CircularDependency of string Lazy.t;; exception ObjectNotFound of string Lazy.t;; -exception BadDependency of string Lazy.t;; +exception BadDependency of string Lazy.t * exn;; +exception BadConstraint of string Lazy.t;; val get_checked_obj: NUri.uri -> NCic.obj +val get_relevance: NReference.reference -> bool list + +val type0: NCic.universe +val max: NCic.universe -> NCic.universe -> NCic.universe +(* universe_* raise BadConstraints if the second arg. is an inferred universe *) +val universe_eq: NCic.universe -> NCic.universe -> bool +val universe_leq: NCic.universe -> NCic.universe -> bool +(* add_constraint raise BadConstraint in case of universe inconsistency + or if the second argument is an inferred universe + true -> strict check (<); false -> loose check (<=) +*) +val add_constraint: bool -> NCic.universe -> NCic.universe -> unit +val sup : NCic.universe -> NCic.universe option +val pp_constraints: unit -> string + +val resolve_universe: string -> NUri.uri option + val get_checked_def: NReference.reference -> NCic.relevance * string * NCic.term * NCic.term * NCic.c_attr * int @@ -28,8 +48,6 @@ val get_checked_fixes_or_cofixes: NReference.reference -> NCic.inductiveFun list * NCic.f_attr * int -val get_indty_leftno: NReference.reference -> int - val invalidate: unit -> unit val set_typecheck_obj: (NCic.obj -> unit) -> unit