X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fcomponents%2Fng_refiner%2FnCicMetaSubst.mli;h=7bde2c1d6b2c7ea95e1a54ebd0c2d83880bae59f;hb=0ef9250d71eacd6b1022194128e6acfb74d52aac;hp=293e3a01f0b3d456a0110fd4daafe573fe0375a2;hpb=d7f32114f3806b51c2ee483dcb5a86e08d086a72;p=helm.git diff --git a/helm/software/components/ng_refiner/nCicMetaSubst.mli b/helm/software/components/ng_refiner/nCicMetaSubst.mli index 293e3a01f..7bde2c1d6 100644 --- a/helm/software/components/ng_refiner/nCicMetaSubst.mli +++ b/helm/software/components/ng_refiner/nCicMetaSubst.mli @@ -14,22 +14,12 @@ 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 index of the last created meta *) +val maxmeta: unit -> int (* 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 + * and a term t, and substitutes every subterm t' of t with its position + * (searched up-to unification) in * the local_context (which is the Rel moved to the canonical context). * Typically, the list of optional terms is the explicit * substitution that is applied to a metavariable occurrence and the result of @@ -67,3 +57,9 @@ val saturate: 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