]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/cic_unification/cicMetaSubst.mli
New handling of substitution:
[helm.git] / helm / ocaml / cic_unification / cicMetaSubst.mli
index 546a71deacce2cc44b7ef50d4815a00da8086f79..46a50a63a522eed8c96860e33c8ab4e970c8d912 100644 (file)
@@ -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] *)
@@ -81,3 +86,7 @@ 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
+