diff options
| author | barras | 2004-09-12 11:38:09 +0000 |
|---|---|---|
| committer | barras | 2004-09-12 11:38:09 +0000 |
| commit | 34bc13e0ef3642244fe77fe8a8a7869fbc8d2fca (patch) | |
| tree | 1b681cce520d8ba260651969ee96d0fb313ef166 /tactics/setoid_replace.ml | |
| parent | 5cd3851617123736fafa3b81688bb63d850b9dd4 (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 'tactics/setoid_replace.ml')
| -rw-r--r-- | tactics/setoid_replace.ml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tactics/setoid_replace.ml b/tactics/setoid_replace.ml index 905ca60b45..853b4e2959 100644 --- a/tactics/setoid_replace.ml +++ b/tactics/setoid_replace.ml @@ -22,6 +22,8 @@ open Util open Pp open Printer open Environ +open Clenv +open Unification open Tactics open Tacticals open Vernacexpr @@ -919,7 +921,7 @@ let syntactic_but_representation_of_marked_but hole_relation = else let c_is_proper = let typ = mkApp (rel_out, [| c ; c |]) in - mkCast (mkMeta (Clenv.new_meta ()),typ) + mkCast (Evarutil.mk_new_meta (),typ) in mkApp ((Lazy.force coq_ProperElementToKeep), [| hole_relation ; Lazy.force coq_Left2Right; precise_out ; @@ -958,9 +960,7 @@ let relation_rewrite c1 c2 (lft2rgt,cl) gl = let but = pf_concl gl in let (hyp,c1,c2) = let cl' = - Clenv.clenv_wtactic - (fun evd-> fst (Unification.w_unify_to_subterm (pf_env gl) (c1,but) evd)) - cl in + {cl with env = fst (w_unify_to_subterm (pf_env gl) (c1,but) cl.env)} in let c1 = Clenv.clenv_nf_meta cl' c1 in let c2 = Clenv.clenv_nf_meta cl' c2 in (lft2rgt,Clenv.clenv_value cl'), c1, c2 @@ -974,7 +974,7 @@ let relation_rewrite c1 c2 (lft2rgt,cl) gl = let impl2 = mkProd (Anonymous, hyp1, lift 1 hyp2) in let th' = mkApp ((Lazy.force coq_proj2), [|impl1; impl2; th|]) in Tactics.refine - (mkApp (th', [| mkCast (mkMeta (Clenv.new_meta()), hyp1) |])) gl + (mkApp (th', [| mkCast (Evarutil.mk_new_meta(), hyp1) |])) gl let general_s_rewrite lft2rgt c gl = let ctype = pf_type_of gl c in |
