]> matita.cs.unibo.it Git - helm.git/blob - helm/ocaml/cic_unification/cicMkImplicit.mli
First version of refine for MutCase, still largely incomplete.
[helm.git] / helm / ocaml / cic_unification / cicMkImplicit.mli
1
2 (* identity_relocation_list_for_metavariable i canonical_context         *)
3 (* returns the identity relocation list, which is the list               *)
4 (* [Rel 1 ; ... ; Rel n] where n = List.length [canonical_context]       *)
5 val identity_relocation_list_for_metavariable :
6   'a option list -> Cic.term option list
7
8 (* Returns the first meta whose number is above the *)
9 (* number of the higher meta.                       *)
10 val new_meta : Cic.metasenv -> int
11
12 (** [mk_implicit metasenv context]
13  * add a fresh metavariable to the given metasenv, using given context
14  * @return the new metasenv and the index of the added conjecture *)
15 val mk_implicit: Cic.metasenv -> Cic.context -> Cic.metasenv * int
16
17 (** [mk_implicit metasenv context] create n fresh metavariables *)
18 val n_fresh_metas:  
19   Cic.metasenv -> Cic.context -> int -> Cic.metasenv * Cic.term list
20
21 (** [mk_implicit metasenv context] takes in input a list of uri and
22 creates a fresh explicit substitution *)
23 val fresh_subst:  
24   Cic.metasenv -> 
25     Cic.context -> 
26       UriManager.uri list -> 
27         Cic.metasenv * (Cic.term Cic.explicit_named_substitution)
28
29 (** as above but return both the index of the added conjecture (2nd index) and
30  * the index of its type (1st index) *)
31 val mk_implicit': Cic.metasenv -> Cic.context -> Cic.metasenv * int * int
32
33 (** as above, but the fresh metavariable represents a type *)
34 val mk_implicit_type: Cic.metasenv -> Cic.context -> Cic.metasenv * int
35
36 val expand_implicits:
37   Cic.metasenv -> Cic.context -> Cic.term ->
38     Cic.metasenv * Cic.term
39