diff options
author | Arnaud Spiwack <arnaud@spiwack.net> | 2015-01-14 12:10:01 +0100 |
---|---|---|
committer | Arnaud Spiwack <arnaud@spiwack.net> | 2015-01-14 14:50:58 +0100 |
commit | b63549edce71492617db99a75410256f1b0239b0 (patch) | |
tree | 019137edfd4641b2aafc0be23d86ebb6456295b5 /doc/refman | |
parent | 1fab386bc1a96951da011de2a5490c6dbe1b7248 (diff) |
Reference manual: try and improve documentation for Ltac's match.
In particular document the "once" behaviour.
Diffstat (limited to 'doc/refman')
-rw-r--r-- | doc/refman/RefMan-ltac.tex | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/doc/refman/RefMan-ltac.tex b/doc/refman/RefMan-ltac.tex index 95467acd7..494905f22 100644 --- a/doc/refman/RefMan-ltac.tex +++ b/doc/refman/RefMan-ltac.tex @@ -685,6 +685,10 @@ pattern {\_} matches any term and shunts all remaining patterns if any. If all clauses fail (in particular, there is no pattern {\_}) then a no-matching-clause error is raised. +Failures in subsequent tactics do not cause backtracking to select new +branches or inside the right-hand side of the selected branch even if +it has backtracking points. + \begin{ErrMsgs} \item \errindex{No matching clauses for match} @@ -789,8 +793,12 @@ no other combination of hypotheses then the second proof context pattern is tried and so on. If the next to last proof context pattern fails then {\tacexpr}$_{n+1}$ is evaluated to $v_{n+1}$ and $v_{n+1}$ is applied. Note also that matching against subterms (using the {\tt -context} {\ident} {\tt [} {\cpattern} {\tt ]}) is available and may -itself induce extra backtrackings. +context} {\ident} {\tt [} {\cpattern} {\tt ]}) is available and is +also subject to yielding several matchings. + +Failures in subsequent tactics do not cause backtracking to select new +branches or combinations of hypotheses, or inside the right-hand side +of the selected branch even if it has backtracking points. \ErrMsg \errindex{No matching clauses for match goal} |