X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fcomponents%2Fng_kernel%2FnCicEnvironment.mli;h=5252ddb8b5f271bd307cd36d4590b8dd8a0e91c2;hb=d35aca0e979a9c7edbc60c44040360d52be8ca82;hp=7fa352901fd63ea2b949d6d80a8a5262b315dd19;hpb=b5f64556ec797a92c2c79d9d1c6aefa4dcf880b1;p=helm.git diff --git a/helm/software/components/ng_kernel/nCicEnvironment.mli b/helm/software/components/ng_kernel/nCicEnvironment.mli index 7fa352901..5252ddb8b 100644 --- a/helm/software/components/ng_kernel/nCicEnvironment.mli +++ b/helm/software/components/ng_kernel/nCicEnvironment.mli @@ -13,22 +13,29 @@ 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 check_and_add_obj: NCic.obj -> unit + 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_le_constraint raise BadConstraint in case of universe inconsistency +(* 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_le_constraint: bool -> NCic.universe -> NCic.universe -> unit +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 -> @@ -43,7 +50,10 @@ val get_checked_fixes_or_cofixes: NReference.reference -> NCic.inductiveFun list * NCic.f_attr * int -val get_indty_leftno: NReference.reference -> int +(* invalidate the object and all those that entered the environment after it *) +val invalidate_item: + [ `Obj of NUri.uri * NCic.obj + | `Constr of bool * NCic.universe * NCic.universe ] -> unit val invalidate: unit -> unit