aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc
diff options
context:
space:
mode:
authorGravatar Maxime Dénès <mail@maximedenes.fr>2017-04-07 12:59:01 +0200
committerGravatar Maxime Dénès <mail@maximedenes.fr>2017-04-07 12:59:31 +0200
commitd0f9c9138fdc4cbf88f305ee7fa2395778bdb7cf (patch)
treebae453ce1577c6875204b5ceba9f4efd6d1b794f /doc
parent63c73f54023f53a790ef57c9afc22111b9b95412 (diff)
parentdab51c396e16fdcf8b96093c33feb2f67c53d94d (diff)
Merge PR#485: Document Show Match
Diffstat (limited to 'doc')
-rw-r--r--doc/refman/RefMan-ext.tex5
-rw-r--r--doc/refman/RefMan-pro.tex13
2 files changed, 18 insertions, 0 deletions
diff --git a/doc/refman/RefMan-ext.tex b/doc/refman/RefMan-ext.tex
index 1d423f8b1..1860c0465 100644
--- a/doc/refman/RefMan-ext.tex
+++ b/doc/refman/RefMan-ext.tex
@@ -651,6 +651,11 @@ Print snd.
Reset Initial.
\end{coq_eval}
+\subsection{Printing \mbox{\tt match} templates}
+
+The {\tt Show Match} vernacular command prints a {\tt match} template for
+a given type. See Section~\ref{Show}.
+
% \subsection{Still not dead old notations}
% The following variant of {\tt match} is inherited from older version
diff --git a/doc/refman/RefMan-pro.tex b/doc/refman/RefMan-pro.tex
index 16c822b6a..6d54b4de1 100644
--- a/doc/refman/RefMan-pro.tex
+++ b/doc/refman/RefMan-pro.tex
@@ -492,6 +492,19 @@ process of an {\tt intros}.
the set of all uninstantiated existential variables in the current proof tree,
along with the type and the context of each variable.
+\item{\tt Show Match {\ident}.\label{ShowMatch}}\comindex{Show Match}\\
+This variant displays a template of the Gallina {\tt match} construct
+with a branch for each constructor of the type {\ident}.
+
+Example:
+
+\begin{coq_example}
+Show Match nat.
+\end{coq_example}
+\begin{ErrMsgs}
+\item \errindex{Unknown inductive type}
+\end{ErrMsgs}
+
\item{\tt Show Universes.\label{ShowUniverses}}\comindex{Show Universes}
\\ It displays the set of all universe constraints and its
normalized form at the current stage of the proof, useful for