X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Focaml%2Fcic_unification%2FcicMetaSubst.mli;h=14d6da3f6de183460f47bc909d223f0cdb917817;hb=741b3e9014f940fbbd34bee7b606ff7e72170452;hp=4f055f1f876631fbd8f282b849b0ab9f2acbea87;hpb=fb0f22004d533abca8d157ed89665dbf1041e0e2;p=helm.git diff --git a/helm/ocaml/cic_unification/cicMetaSubst.mli b/helm/ocaml/cic_unification/cicMetaSubst.mli index 4f055f1f8..14d6da3f6 100644 --- a/helm/ocaml/cic_unification/cicMetaSubst.mli +++ b/helm/ocaml/cic_unification/cicMetaSubst.mli @@ -27,9 +27,14 @@ exception MetaSubstFailure of string exception Uncertain of string exception AssertFailure of string +exception SubstNotFound of int + (* The entry (i,t) in a substitution means that *) (* (META i) have been instantiated with t. *) -type substitution = (int * Cic.term) list +type substitution = (int * (Cic.context * Cic.term)) list + + (** @raise SubstNotFound *) +val lookup_subst: int -> substitution -> Cic.context * Cic.term (* apply_subst subst t *) (* applies the substitution [subst] to [t] *) @@ -52,6 +57,7 @@ val type_of_aux': Cic.metasenv -> substitution -> Cic.context -> Cic.term -> Cic.term val tempi_type_of_aux : float ref +val tempi_subst : float ref val tempi_type_of_aux_subst : float ref (*** delifting ***) @@ -80,3 +86,9 @@ val fppsubst: Format.formatter -> substitution -> unit val fppterm: Format.formatter -> Cic.term -> unit val fppmetasenv: Format.formatter -> Cic.metasenv -> unit +(* +(* DEBUG *) +val print_counters: unit -> unit +val reset_counters: unit -> unit +*) +