aboutsummaryrefslogtreecommitdiff
path: root/doc/sphinx/language/extensions
diff options
context:
space:
mode:
authorcoqbot-app[bot]2020-08-26 17:28:04 +0000
committerGitHub2020-08-26 17:28:04 +0000
commit748299d286b575f749bf7f5d9c9b7d2842a281a7 (patch)
treea9a2527478ec271dfbe37c37c309dcade5ed382a /doc/sphinx/language/extensions
parent4e6b029805a74ea16166da2c5f59f9669fd34eb8 (diff)
parent4a7e39323bd57ac41ec90d4ea18f10423029e8b5 (diff)
Merge PR #12085: Convert ltac2 chapter to use prodn, update syntax
Reviewed-by: JasonGross Reviewed-by: Zimmi48 Ack-by: jfehrle Ack-by: ppedrot
Diffstat (limited to 'doc/sphinx/language/extensions')
-rw-r--r--doc/sphinx/language/extensions/match.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/sphinx/language/extensions/match.rst b/doc/sphinx/language/extensions/match.rst
index d6a828521f..34752a4c4d 100644
--- a/doc/sphinx/language/extensions/match.rst
+++ b/doc/sphinx/language/extensions/match.rst
@@ -90,6 +90,10 @@ constructions. There are two variants of them.
First destructuring let syntax
++++++++++++++++++++++++++++++
+.. todo explain that this applies to all of the "let" constructs (Gallina, Ltac1 and Ltac2)
+ also add "irrefutable pattern" to the glossary
+ note that in Ltac2 an upper case ident is a constructor, lower case is a variable
+
The expression :n:`let ( {*, @ident__i } ) := @term__0 in @term__1`
performs case analysis on :n:`@term__0` whose type must be an
inductive type with exactly one constructor. The number of variables