]> matita.cs.unibo.it Git - helm.git/commitdiff
- Added mk_implicit_sort.
authorClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Sat, 7 Feb 2004 18:03:36 +0000 (18:03 +0000)
committerClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Sat, 7 Feb 2004 18:03:36 +0000 (18:03 +0000)
- Used in CicRefine.sort_of_prod.

helm/ocaml/cic_unification/cicMkImplicit.mli
helm/ocaml/cic_unification/cicRefine.ml

index 897367d6caf63f710ec1fef4fbf9a520fd4288b9..2ea1100bba802175c96d2abf959dccddcc46dfca 100644 (file)
@@ -17,6 +17,8 @@ val mk_implicit: Cic.metasenv -> Cic.context -> Cic.metasenv * int
 (** as above, but the fresh metavariable represents a type *)
 val mk_implicit_type: Cic.metasenv -> Cic.context -> Cic.metasenv * int
 
+(** as above, but the fresh metavariable represents a sort *)
+val mk_implicit_sort: Cic.metasenv -> Cic.metasenv * int
 
 (** [mk_implicit metasenv context] create n fresh metavariables *)
 val n_fresh_metas:  
index 42d792d98a71479285dcc06e5a9a0ff0b52209ed..338928e8d9fc723edcd188c9d43da186b424a141 100644 (file)
@@ -484,7 +484,7 @@ and type_of_aux' metasenv context t =
           * likely to know the exact value of the result e.g. if the rhs is a
           * Sort (Prop | Set | CProp) then the result is the rhs *)
          let (metasenv,idx) =
-          CicMkImplicit.mk_implicit metasenv [] in
+          CicMkImplicit.mk_implicit_sort metasenv in
          let (subst, metasenv) =
           CicUnification.fo_unif_subst subst context_for_t2 metasenv
            (C.Meta (idx,[])) t2''