X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fcomponents%2Fng_kernel%2FnCicEnvironment.mli;h=862d7148432f5a6ba7525780d5e0b8d04f36b3f9;hb=8bc5bc0e8375a85736f6a5df317d129d5efa8de4;hp=048dd7b96a46bd8cde85da950bbe556b075214b4;hpb=cf4da27b865107f9b89f3d2726f14d6e2694c548;p=helm.git diff --git a/helm/software/components/ng_kernel/nCicEnvironment.mli b/helm/software/components/ng_kernel/nCicEnvironment.mli index 048dd7b96..862d71484 100644 --- a/helm/software/components/ng_kernel/nCicEnvironment.mli +++ b/helm/software/components/ng_kernel/nCicEnvironment.mli @@ -13,12 +13,28 @@ 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 set_get_obj: (NUri.uri -> NCic.obj) -> unit 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 get_checked_def: NReference.reference -> NCic.relevance * string * NCic.term * NCic.term * NCic.c_attr * int @@ -32,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