X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fcomponents%2Fng_kernel%2FnCicEnvironment.mli;h=029cd94d18818a0c3520f0ce0f2360f6829b56ae;hb=aa72d8d1a1c3986b41be8347ab4f236180eb1297;hp=9f828a11408cafb38136455c452798460699733e;hpb=e2381427bca733bd36a099002fa8b7140f7a20d0;p=helm.git diff --git a/helm/software/components/ng_kernel/nCicEnvironment.mli b/helm/software/components/ng_kernel/nCicEnvironment.mli index 9f828a114..029cd94d1 100644 --- a/helm/software/components/ng_kernel/nCicEnvironment.mli +++ b/helm/software/components/ng_kernel/nCicEnvironment.mli @@ -14,16 +14,22 @@ exception CircularDependency of string Lazy.t;; exception ObjectNotFound of string Lazy.t;; exception BadDependency of string Lazy.t;; +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 +(* 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 -val add_lt_constraint: NCic.universe -> NCic.universe -> unit -val add_leq_constraint: NCic.universe -> NCic.universe -> unit +(* 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 pp_constraints: unit -> string val get_checked_def: NReference.reference -> @@ -38,8 +44,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