]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/cic_unification/cicMetaSubst.mli
first moogle template checkin
[helm.git] / helm / ocaml / cic_unification / cicMetaSubst.mli
index 60228fe08cd5f1c9f3aafdedc13c51c7ec734a67..b1e34757ec6e0564b32f8d050215808f1dd65fe8 100644 (file)
  * http://helm.cs.unibo.it/
  *)
 
-exception AssertFailure of string
 exception MetaSubstFailure of string
+exception Uncertain of string
+exception AssertFailure of string
 
 (* The entry (i,t) in a substitution means that *)
 (* (META i) have been instantiated with t.      *)
 type substitution = (int * Cic.term) list
 
-val delift : 
-  int -> substitution -> Cic.context -> Cic.metasenv ->
-  (Cic.term option) list -> Cic.term ->
-    Cic.term * Cic.metasenv * substitution
-
 (* apply_subst subst t                     *)
 (* applies the substitution [subst] to [t] *)
 (* [subst] must be already unwinded        *)
@@ -56,6 +52,28 @@ val apply_subst_reducing :
 val apply_subst_context : substitution -> Cic.context -> Cic.context
 val apply_subst_metasenv: substitution -> Cic.metasenv -> Cic.metasenv
 
+(* {2 Kernel wrappers}
+ * From now on we recreate a kernel abstraction where substitutions are part of
+ * the calculus *)
+
+val lift : substitution -> int -> Cic.term -> Cic.term
+val subst: substitution -> Cic.term -> Cic.term -> Cic.term
+val whd: substitution -> Cic.context -> Cic.term -> Cic.term
+val are_convertible: substitution -> Cic.context -> Cic.term -> Cic.term -> bool
+
+val type_of_aux':
+  Cic.metasenv -> substitution -> Cic.context -> Cic.term -> Cic.term
+
+val tempi_type_of_aux : float ref
+val tempi_type_of_aux_subst : float ref
+
+(*** delifting ***)
+
+val delift : 
+  int -> substitution -> Cic.context -> Cic.metasenv ->
+  (Cic.term option) list -> Cic.term ->
+    Cic.term * Cic.metasenv * substitution
+
 (** {2 Pretty printers} *)
 
 val ppsubst: substitution -> string
@@ -75,15 +93,3 @@ val fppsubst: Format.formatter -> substitution -> unit
 val fppterm: Format.formatter -> Cic.term -> unit
 val fppmetasenv: Format.formatter -> Cic.metasenv -> unit
 
-(* {2 Kernel wrappers}
- * From now on we recreate a kernel abstraction where substitutions are part of
- * the calculus *)
-
-val lift : substitution -> int -> Cic.term -> Cic.term
-val subst: substitution -> Cic.term -> Cic.term -> Cic.term
-val whd: substitution -> Cic.context -> Cic.term -> Cic.term
-val are_convertible: substitution -> Cic.context -> Cic.term -> Cic.term -> bool
-
-val type_of_aux':
-  Cic.metasenv -> substitution -> Cic.context -> Cic.term -> Cic.term
-