aboutsummaryrefslogtreecommitdiff
path: root/pretyping/clenv.mli
diff options
context:
space:
mode:
authorbarras2004-09-12 11:38:09 +0000
committerbarras2004-09-12 11:38:09 +0000
commit34bc13e0ef3642244fe77fe8a8a7869fbc8d2fca (patch)
tree1b681cce520d8ba260651969ee96d0fb313ef166 /pretyping/clenv.mli
parent5cd3851617123736fafa3b81688bb63d850b9dd4 (diff)
inclusion de meta_map dans evar_defs
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@6099 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'pretyping/clenv.mli')
-rw-r--r--pretyping/clenv.mli35
1 files changed, 10 insertions, 25 deletions
diff --git a/pretyping/clenv.mli b/pretyping/clenv.mli
index 375d84eac2..30bc96338d 100644
--- a/pretyping/clenv.mli
+++ b/pretyping/clenv.mli
@@ -13,40 +13,31 @@ open Util
open Names
open Term
open Sign
+open Environ
open Evd
open Evarutil
(*i*)
-(* [new_meta] is a generator of unique meta variables *)
-val new_meta : unit -> metavariable
-
-(* [exist_to_meta] generates new metavariables for each existential
- and performs the replacement in the given constr *)
-val exist_to_meta :
- evar_map -> Pretyping.open_constr -> (Termops.metamap * constr)
-
(***************************************************************)
(* The Type of Constructions clausale environments. *)
-(* [templval] is the template which we are trying to fill out.
+(* [templenv] is the typing context
+ * [env] is the mapping from metavar and evar numbers to their types
+ * and values.
+ * [templval] is the template which we are trying to fill out.
* [templtyp] is its type.
* [namenv] is a mapping from metavar numbers to names, for
* use in instanciating metavars by name.
- * [evd] is the mapping from metavar and evar numbers to their types
- * and values.
- * [hook] is a signature (named_context) and a sigma: the
- * typing context
*)
-type wc = named_context sigma (* for a better reading of the following *)
type clausenv = {
+ templenv : env;
+ env : evar_defs;
templval : constr freelisted;
templtyp : constr freelisted;
- namenv : identifier Metamap.t;
- env : meta_map;
- hook : wc }
+ namenv : identifier Metamap.t }
-val subst_clenv :
- (substitution -> wc -> wc) -> substitution -> clausenv -> clausenv
+(* Substitution is not applied neither to the evar_map of evar_defs nor hook *)
+val subst_clenv : substitution -> clausenv -> clausenv
(* subject of clenv (instantiated) *)
val clenv_value : clausenv -> constr
@@ -118,9 +109,3 @@ val make_clenv_binding :
(* Pretty-print *)
val pr_clenv : clausenv -> Pp.std_ppcmds
-(***************************************************************)
-(* Old or unused stuff... *)
-
-val clenv_wtactic :
- (evar_defs * meta_map -> evar_defs * meta_map) -> clausenv -> clausenv
-