newmeta + 2, context, Cic.Meta (newmeta + 1,irl) ] @ metasenv,
newmeta + 2)
+let mk_implicit_type metasenv context =
+ let newmeta = new_meta metasenv in
+ ([ newmeta, [], Cic.Sort Cic.Type ;
+ newmeta + 1, context, Cic.Meta (newmeta, []) ] @metasenv,
+ newmeta + 1)
+
+let mk_implicit_sort metasenv =
+ let newmeta = new_meta metasenv in
+ ([ newmeta, [], Cic.Sort Cic.Type] @ metasenv, newmeta)
+
let n_fresh_metas metasenv context n =
if n = 0 then metasenv, []
else
(uri,Cic.Meta(newmeta+2,irl))::l in
aux newmeta uris
-let mk_implicit_type metasenv context =
- let newmeta = new_meta metasenv in
- ([ newmeta, [], Cic.Sort Cic.Type ;
- newmeta + 1, context, Cic.Meta (newmeta, []) ] @metasenv,
- newmeta + 1)
-
let expand_implicits metasenv context term =
let rec aux metasenv context = function
| (Cic.Rel _) as t -> metasenv, t
* @return the new metasenv and the index of the added conjecture *)
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
+
+
(** [mk_implicit metasenv context] create n fresh metavariables *)
val n_fresh_metas:
Cic.metasenv -> Cic.context -> int -> Cic.metasenv * Cic.term list
UriManager.uri list ->
Cic.metasenv * (Cic.term Cic.explicit_named_substitution)
-(** as above, but the fresh metavariable represents a type *)
-val mk_implicit_type: Cic.metasenv -> Cic.context -> Cic.metasenv * int
-
val expand_implicits:
Cic.metasenv -> Cic.context -> Cic.term ->
Cic.metasenv * Cic.term