X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fcomponents%2Fng_refiner%2FnCicMetaSubst.mli;h=f7378d13becccd03eec9c4bf8ed2250662b279e8;hb=134014e54c374789b38b6c53945f63d21ddbacb0;hp=8f03ccb11110fcafb541995214572333e18cc4e5;hpb=ee2bbb5aa3f13fbea8cd758e69347d9f1f5ed6bb;p=helm.git diff --git a/helm/software/components/ng_refiner/nCicMetaSubst.mli b/helm/software/components/ng_refiner/nCicMetaSubst.mli index 8f03ccb11..f7378d13b 100644 --- a/helm/software/components/ng_refiner/nCicMetaSubst.mli +++ b/helm/software/components/ng_refiner/nCicMetaSubst.mli @@ -14,20 +14,6 @@ exception MetaSubstFailure of string Lazy.t exception Uncertain of string Lazy.t -(* -exception AssertFailure of string Lazy.t -exception DeliftingARelWouldCaptureAFreeVariable;; -val apply_subst : Cic.substitution -> Cic.term -> Cic.term -val apply_subst_context : Cic.substitution -> Cic.context -> Cic.context -val apply_subst_metasenv: Cic.substitution -> Cic.metasenv -> Cic.metasenv - -(*** delifting ***) - -val restrict : - Cic.substitution -> (int * int) list -> Cic.metasenv -> - Cic.metasenv * Cic.substitution -*) - (* the delift function takes in input a metavariable index, a local_context * and a term t, and substitutes every Rel in t with its position in * the local_context (which is the Rel moved to the canonical context). @@ -43,7 +29,33 @@ val restrict : * in the term (for occur check). *) val delift : + unify:(NCic.metasenv -> NCic.substitution -> NCic.context -> + NCic.term -> NCic.term -> (NCic.metasenv * NCic.substitution) option) -> NCic.metasenv -> NCic.substitution -> NCic.context -> int -> NCic.local_context -> NCic.term -> (NCic.metasenv * NCic.substitution) * NCic.term - + +val restrict: + NCic.metasenv -> + NCic.substitution -> + int -> int list -> NCic.metasenv * NCic.substitution * int + +(* bool = true if the type of the new meta is closed *) +val mk_meta: + ?name:string -> + NCic.metasenv -> NCic.context -> + [ `WithType of NCic.term | `Term | `Type | `Sort ] -> + NCic.metasenv * int * NCic.term * NCic.term (* menv,metano,instance,type *) + +(* returns the resulting type, the metasenv and the arguments *) +val saturate: + ?delta:int -> NCic.metasenv -> NCic.substitution -> + NCic.context -> NCic.term -> int -> + NCic.term * NCic.metasenv * NCic.term list + +val flexible: NCic.substitution -> NCic.term list -> bool + +val in_scope_tag : string +val out_scope_tag : int -> string +val is_out_scope_tag : string -> bool +val int_of_out_scope_tag : string -> int