aboutsummaryrefslogtreecommitdiff
path: root/proofs/tacinterp.ml
diff options
context:
space:
mode:
authorherbelin2000-10-18 14:37:44 +0000
committerherbelin2000-10-18 14:37:44 +0000
commitbedaec8452d0600ede52efeeac016c9d323c66de (patch)
tree7f056ffcd58f58167a0e813d5a8449eb950a8e23 /proofs/tacinterp.ml
parent9983a5754258f74293b77046986b698037902e2b (diff)
Renommage canonique :
declaration = definition | assumption mode de reference = named | rel Ex: push_named_decl : named_declaration -> env -> env lookup_named : identifier -> safe_environment -> constr option * typed_type add_named_assum : identifier * typed_type -> named_context -> named_context add_named_def : identifier*constr*typed_type -> named_context -> named_context git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@723 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'proofs/tacinterp.ml')
-rw-r--r--proofs/tacinterp.ml8
1 files changed, 4 insertions, 4 deletions
diff --git a/proofs/tacinterp.ml b/proofs/tacinterp.ml
index fe4ee94a47..209ea10f67 100644
--- a/proofs/tacinterp.ml
+++ b/proofs/tacinterp.ml
@@ -52,10 +52,10 @@ let constr_of_Constr_context = function
anomalylabstrm "constr_of_Constr_context" [<'sTR
"Not a Constr_context tactic_arg">]
-(* Transforms a var_context into a (string * constr) list *)
+(* Transforms a named_context into a (string * constr) list *)
let make_hyps = List.map (fun (id,_,typ) -> (string_of_id id,body_of_type typ))
-(* let lid = List.map string_of_id (ids_of_var_context hyps)
+(* let lid = List.map string_of_id (ids_of_named_context hyps)
and lhyp = List.map body_of_type (vals_of_sign hyps) in
List.rev (List.combine lid lhyp)*)
@@ -70,7 +70,7 @@ let rec constr_list goalopt = function
(match goalopt with
| None -> constr_list goalopt tl
| Some goal ->
- if mem_var_context id (pf_hyps goal) then
+ if mem_named_context id (pf_hyps goal) then
(id_of_string str,mkVar id)::(constr_list goalopt tl)
else
constr_list goalopt tl))
@@ -79,7 +79,7 @@ let rec constr_list goalopt = function
(* Signature for interpretation: val_interp and interpretation functions *)
type interp_sign =
- evar_declarations * Environ.env * (string * value) list *
+ enamed_declarations * Environ.env * (string * value) list *
(int * constr) list * goal sigma option
(* Table of interpretation functions *)