aboutsummaryrefslogtreecommitdiffhomepage
path: root/tactics
diff options
context:
space:
mode:
authorGravatar herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7>2010-04-17 15:40:00 +0000
committerGravatar herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7>2010-04-17 15:40:00 +0000
commit4bca83aee3bb81949f0c820cc2b438af38ff6f26 (patch)
tree9ace708e149d8db5901c82148eb70791872eaa48 /tactics
parent456ff087953a62df0b46e76f16d0117363558b0d (diff)
Use nice "unfold" instead of ugly "change" to display calls to unfold hints
in "info auto". git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@12947 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'tactics')
-rw-r--r--tactics/auto.ml2
-rw-r--r--tactics/eauto.ml42
2 files changed, 2 insertions, 2 deletions
diff --git a/tactics/auto.ml b/tactics/auto.ml
index d805b3ac7..ec32c643b 100644
--- a/tactics/auto.ml
+++ b/tactics/auto.ml
@@ -914,7 +914,7 @@ and tac_of_hint db_list local_db concl (flags, {pat=p; code=t}) =
(trivial_fail_db (flags <> None) db_list local_db)
| Unfold_nth c -> (fun gl ->
if exists_evaluable_reference (pf_env gl) c then
- tclPROGRESS (unfold_in_concl [all_occurrences,c]) gl
+ tclPROGRESS (h_reduce (Unfold [all_occurrences_expr,c]) onConcl) gl
else tclFAIL 0 (str"Unbound reference") gl)
| Extern tacast -> conclPattern concl p tacast
diff --git a/tactics/eauto.ml4 b/tactics/eauto.ml4
index 0a5a9c481..b0fef2b71 100644
--- a/tactics/eauto.ml4
+++ b/tactics/eauto.ml4
@@ -134,7 +134,7 @@ and e_my_find_search db_list local_db hdc concl =
| Res_pf_THEN_trivial_fail (term,cl) ->
tclTHEN (unify_e_resolve st (term,cl))
(e_trivial_fail_db db_list local_db)
- | Unfold_nth c -> unfold_in_concl [all_occurrences,c]
+ | Unfold_nth c -> h_reduce (Unfold [all_occurrences_expr,c]) onConcl
| Extern tacast -> conclPattern concl p tacast
in
(tac,pr_autotactic t))