X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fcomponents%2Fng_kernel%2FnCicTypeChecker.mli;h=df76faab71255607b1763621d755232a79565fe2;hb=5c8de084e314e41f3dc2f605f6242283e930b803;hp=021d321a1fa686aa7ba2fb7146682f3216498b89;hpb=c622da7bd4b14f5953424e09f32c14f74d681a3f;p=helm.git diff --git a/helm/software/components/ng_kernel/nCicTypeChecker.mli b/helm/software/components/ng_kernel/nCicTypeChecker.mli index 021d321a1..df76faab7 100644 --- a/helm/software/components/ng_kernel/nCicTypeChecker.mli +++ b/helm/software/components/ng_kernel/nCicTypeChecker.mli @@ -9,6 +9,8 @@ \ / This software is distributed as is, NO WARRANTY. V_______________________________________________________________ *) +(* $Id$ *) + (* These are the only exceptions that will be raised *) exception TypeCheckerFailure of string Lazy.t exception AssertFailure of string Lazy.t @@ -18,8 +20,11 @@ val set_logger: | `Type_checking_completed of NUri.uri | `Type_checking_interrupted of NUri.uri | `Type_checking_failed of NUri.uri + | `Trust_obj of NUri.uri ] -> unit) -> unit +val set_trust : (NCic.obj -> bool) -> unit + (* typechecks the object, raising an exception if illtyped *) val typecheck_obj : NCic.obj -> unit @@ -27,3 +32,31 @@ val typeof: subst:NCic.substitution -> metasenv:NCic.metasenv -> NCic.context -> NCic.term -> NCic.term + +val height_of_obj_kind: NUri.uri -> NCic.obj_kind -> int + +val get_relevance : + metasenv:NCic.metasenv -> subst:NCic.substitution -> + NCic.context -> NCic.term -> NCic.term list -> bool list + +(* type_of_branch subst context leftno outtype + * (constr @ lefts) (ty_constr @ lefts) *) +val type_of_branch : + subst:NCic.substitution -> + NCic.context -> int -> NCic.term -> NCic.term -> NCic.term -> + NCic.term + +(* ind = indtype @ lefts + * arity1 = constructor type @ lefts + * arity2 = outtype *) +val check_allowed_sort_elimination : + subst:NCic.substitution -> + metasenv:NCic.metasenv -> + NReference.reference -> NCic.context -> + NCic.term -> NCic.term -> NCic.term -> unit + +(* Functions to be used by the refiner *) +val debruijn: NUri.uri -> int -> NCic.context -> NCic.term -> NCic.term +val are_all_occurrences_positive: + subst:NCic.substitution -> + NCic.context -> NUri.uri -> int -> int -> int -> int -> NCic.term -> bool