aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar notin <notin@85f007b7-540e-0410-9357-904b9bb8a0f7>2007-03-13 14:45:21 +0000
committerGravatar notin <notin@85f007b7-540e-0410-9357-904b9bb8a0f7>2007-03-13 14:45:21 +0000
commitd3ac30ae99a9e56bdf0718487a4607e1fae79242 (patch)
tree4bb58051a6162630439c3f39d90971980444feba
parent0b05b8de1bcb0716e1c6b19d265027da36b1c3cc (diff)
Correction bug #1439 (comportement de replace by)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@9699 85f007b7-540e-0410-9357-904b9bb8a0f7
-rw-r--r--doc/refman/RefMan-tac.tex8
-rw-r--r--tactics/equality.ml2
2 files changed, 5 insertions, 5 deletions
diff --git a/doc/refman/RefMan-tac.tex b/doc/refman/RefMan-tac.tex
index d7d51ab23..d2753371b 100644
--- a/doc/refman/RefMan-tac.tex
+++ b/doc/refman/RefMan-tac.tex
@@ -533,8 +533,8 @@ in the list of subgoals remaining to prove.
\item \texttt{assert {\form} by {\tac}}\tacindex{assert by}
- This tactic behaves like \texttt{assert} but tries to apply {\tac}
- to any subgoals generated by \texttt{assert}.
+ This tactic behaves like \texttt{assert} but applies {\tac}
+ to solve the subgoals generated by \texttt{assert}.
\item \texttt{assert {\form} as {\ident}\tacindex{assert as}}
@@ -1708,8 +1708,8 @@ n}| assumption || symmetry; try assumption]}.
\begin{Variants}
\item {\tt replace {\term$_1$} with {\term$_2$} by \tac}\\ This acts
- as {\tt replace {\term$_1$} with {\term$_2$}} but try to solve the
- generated subgoal {\tt \term$_2$=\term$_1$} using {\tt \tac}.
+ as {\tt replace {\term$_1$} with {\term$_2$}} but applies {\tt \tac}
+ to solve the generated subgoal {\tt \term$_2$=\term$_1$}.
\item {\tt replace {\term}}\\ Replace {\term} with {\term'} using the
first assumption which type has the form {\tt \term=\term'} or {\tt
\term'=\term}
diff --git a/tactics/equality.ml b/tactics/equality.ml
index a9a869d8f..9ca5dabdc 100644
--- a/tactics/equality.ml
+++ b/tactics/equality.ml
@@ -189,7 +189,7 @@ let multi_replace clause c2 c1 unsafe try_prove_eq_opt gl =
let try_prove_eq =
match try_prove_eq_opt with
| None -> tclIDTAC
- | Some tac -> tclTRY (tclCOMPLETE tac)
+ | Some tac -> tclCOMPLETE tac
in
let t1 = pf_apply get_type_of gl c1
and t2 = pf_apply get_type_of gl c2 in