aboutsummaryrefslogtreecommitdiff
path: root/tactics/equality.ml
diff options
context:
space:
mode:
authorherbelin2000-03-28 16:30:04 +0000
committerherbelin2000-03-28 16:30:04 +0000
commited11f59ab67b0b6eb103d07386bf45ab2a8bede6 (patch)
tree78d2631a84485271c91909915dfa8f96f67d5ca0 /tactics/equality.ml
parentbc8d450ec17b6e9f40aae2ad040f296ed2f3419f (diff)
Nettoyage de l'interface d'Astterm; renommage des {pf_,}constr_of_com* en {pf_,}interp_constr*
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@357 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'tactics/equality.ml')
-rw-r--r--tactics/equality.ml12
1 files changed, 6 insertions, 6 deletions
diff --git a/tactics/equality.ml b/tactics/equality.ml
index b57be4b1a9..10bf2e53b6 100644
--- a/tactics/equality.ml
+++ b/tactics/equality.ml
@@ -119,7 +119,7 @@ let replace c2 c1 gl =
let dyn_replace args gl =
match args with
| [(Command c1);(Command c2)] ->
- replace (pf_constr_of_com gl c1) (pf_constr_of_com gl c2) gl
+ replace (pf_interp_constr gl c1) (pf_interp_constr gl c2) gl
| [(Constr c1);(Constr c2)] ->
replace c1 c2 gl
| _ -> assert false
@@ -1441,7 +1441,7 @@ let rewrite_in lR com id gls =
let _ = lookup_var id (pf_env gls) in ()
with Not_found ->
errorlabstrm "rewrite_in" [< 'sTR"No such hypothesis : " ;print_id id >]);
- let c = pf_constr_of_com gls com in
+ let c = pf_interp_constr gls com in
let eqn = pf_type_of gls c in
try
let _ = find_eq_data_decompose eqn in
@@ -1470,7 +1470,7 @@ let substConcl_LR_tac =
hide_tactic "SubstConcl_LR"
(function
| [Command eqn] ->
- (fun gls -> substConcl_LR (pf_constr_of_com gls eqn) gls)
+ (fun gls -> substConcl_LR (pf_interp_constr gls eqn) gls)
| _ -> assert false)
in
fun eqn -> gentac [Command eqn]
@@ -1524,7 +1524,7 @@ let substConcl_RL_tac =
hide_tactic "SubstConcl_RL"
(function
| [Command eqn] ->
- (fun gls -> substConcl_RL (pf_constr_of_com gls eqn) gls)
+ (fun gls -> substConcl_RL (pf_interp_constr gls eqn) gls)
| _ -> assert false)
in
fun eqn -> gentac [Command eqn]
@@ -1619,7 +1619,7 @@ let _ =
| [] -> lrl
| (VARG_VARGLIST [VARG_CONSTR rule; VARG_STRING ort])::a
when ort="LR" or ort="RL" ->
- lrules_arg (lrl@[(Astterm.constr_of_com Evd.empty
+ lrules_arg (lrl@[(Astterm.interp_constr Evd.empty
(Global.env()) rule,ort="LR")]) a
| _ -> bad_vernac_args "HintRewrite"
and lbases_arg lbs = function
@@ -1710,7 +1710,7 @@ let explicit_hint_base gl = function
| lbs -> lbs
end
| Explicit lbs ->
- List.map (fun (ast,b) -> (pf_constr_of_com gl ast, b)) lbs
+ List.map (fun (ast,b) -> (pf_interp_constr gl ast, b)) lbs
(*AutoRewrite cannot be expressed with a combination of tacticals (due to the
options). So, we make it in a primitive way*)