X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fcomponents%2Fng_refiner%2FnCicMetaSubst.mli;h=1c96577a74121d90639bbc6905dd7345bd5d647a;hb=refs%2Fheads%2Fmatita-lablgtk3;hp=4cce960956f37a9eae86922aa3b5c2f4e823254d;hpb=2007402c996678701798d71124a1a255529061ee;p=helm.git diff --git a/helm/software/components/ng_refiner/nCicMetaSubst.mli b/helm/software/components/ng_refiner/nCicMetaSubst.mli index 4cce96095..1c96577a7 100644 --- a/helm/software/components/ng_refiner/nCicMetaSubst.mli +++ b/helm/software/components/ng_refiner/nCicMetaSubst.mli @@ -14,6 +14,8 @@ exception MetaSubstFailure of string Lazy.t exception Uncertain of string Lazy.t +val debug: bool ref + (* the index of the last created meta *) val maxmeta: unit -> int @@ -39,23 +41,35 @@ val delift : int -> NCic.local_context -> NCic.term -> (NCic.metasenv * NCic.substitution) * NCic.term +(* restrict metasenv subst n l + returns metasenv, subst, created meta and l' where l' is the list of + additional (i.e. l' does not intersects l) positions whose restriction was + forced because of type dependencies *) val restrict: NCic.metasenv -> NCic.substitution -> - int -> int list -> NCic.metasenv * NCic.substitution * int + int -> int list -> + NCic.metasenv * NCic.substitution * int * int list (* bool = true if the type of the new meta is closed *) val mk_meta: ?attrs:NCic.meta_attrs -> NCic.metasenv -> NCic.context -> - [ `WithType of NCic.term | `Term | `Type | `Sort ] -> + ?with_type:NCic.term -> NCicUntrusted.meta_kind -> NCic.metasenv * int * NCic.term * NCic.term (* menv,metano,instance,type *) +(* extend_meta m n: n must be in m *) +val extend_meta: NCic.metasenv -> int -> NCic.metasenv * NCic.term + (* 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 pack_lc : int * NCic.lc_kind -> int * NCic.lc_kind + val is_out_scope_tag : NCic.meta_attrs -> bool val int_of_out_scope_tag : NCic.meta_attrs -> int + +val is_flexible : NCic.context -> subst:NCic.substitution -> NCic.term -> bool