]> matita.cs.unibo.it Git - helm.git/blob - helm/ocaml/cic_unification/cicMkImplicit.mli
added MkImplicit module for meta handling
[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 (** as above but return both the index of the added conjecture (2nd index) and
18  * the index of its type (1st index) *)
19 val mk_implicit': Cic.metasenv -> Cic.context -> Cic.metasenv * int * int
20
21 (** as above, but the fresh metavariable represents a type *)
22 val mk_implicit_type: Cic.metasenv -> Cic.context -> Cic.metasenv * int
23
24 val expand_implicits:
25   Cic.metasenv -> Cic.context -> Cic.term ->
26     Cic.metasenv * Cic.term
27