diff options
| author | Théo Zimmermann | 2018-09-13 10:37:43 +0200 |
|---|---|---|
| committer | Théo Zimmermann | 2018-09-13 10:37:43 +0200 |
| commit | d3fee162c5e2f39b313cde1e1fa738480d960163 (patch) | |
| tree | 83605b102fb061645eb95f857b5250e392524a6d | |
| parent | 2a4f3a8a84b886ee8964744a66c39cc894a36993 (diff) | |
| parent | 896c974491488925d0f8401861bf716e2f9ead57 (diff) | |
Merge PR #8467: Manual: fix documentation of the “fresh” tactic
| -rw-r--r-- | doc/sphinx/proof-engine/ltac.rst | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/doc/sphinx/proof-engine/ltac.rst b/doc/sphinx/proof-engine/ltac.rst index 7608ea7245..70d46e034a 100644 --- a/doc/sphinx/proof-engine/ltac.rst +++ b/doc/sphinx/proof-engine/ltac.rst @@ -107,7 +107,7 @@ mode but it can also be used in toplevel definitions as shown below. : | solve [ `expr` | ... | `expr` ] : | idtac [ `message_token` ... `message_token`] : | fail [`natural`] [`message_token` ... `message_token`] - : | fresh | fresh `string` | fresh `qualid` + : | fresh [ `component` … `component` ] : | context `ident` [`term`] : | eval `redexpr` in `term` : | type of `term` @@ -125,6 +125,7 @@ mode but it can also be used in toplevel definitions as shown below. : | () : | `integer` : | ( `expr` ) + component : `string` | `qualid` message_token : `string` | `ident` | `integer` tacarg : `qualid` : | () @@ -946,12 +947,10 @@ expression returns an identifier: .. tacn:: fresh {* component} It evaluates to an identifier unbound in the goal. This fresh identifier - is obtained by concatenating the value of the :n:`@component`s (each of them + is obtained by concatenating the value of the :n:`@component`\ s (each of them is, either a :n:`@qualid` which has to refer to a (unqualified) name, or directly a name denoted by a :n:`@string`). - .. I don't understand this component thing. Couldn't we give the grammar? - If the resulting name is already used, it is padded with a number so that it becomes fresh. If no component is given, the name is a fresh derivative of the name ``H``. |
