diff options
| author | Théo Zimmermann | 2018-09-07 19:17:32 +0200 |
|---|---|---|
| committer | Théo Zimmermann | 2018-09-07 19:17:32 +0200 |
| commit | 69fb545f0fad2b356f5be1ce3e1a24b5afe26ce2 (patch) | |
| tree | 35992039843accc4b8074cc15f9720589d1df38b | |
| parent | de08e8bfcaa000b4dcee33f5bb10b17039727709 (diff) | |
| parent | 6d85d5e825f19f3e2103273648d8c7976d115ec9 (diff) | |
Merge PR #8437: Recover lost snippet
| -rw-r--r-- | doc/sphinx/addendum/extended-pattern-matching.rst | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/doc/sphinx/addendum/extended-pattern-matching.rst b/doc/sphinx/addendum/extended-pattern-matching.rst index f7fd4b9146..e507a224c6 100644 --- a/doc/sphinx/addendum/extended-pattern-matching.rst +++ b/doc/sphinx/addendum/extended-pattern-matching.rst @@ -407,12 +407,11 @@ length, by writing .. coqtop:: in - Fixpoint concat (n:nat) (l:listn n) (m:nat) (l':listn m) {struct l} : - listn (n + m) := - match l in listn n, l' return listn (n + m) with - | niln, x => x - | consn n' a y, x => consn (n' + m) a (concat n' y m x) - end. + Check (fun n (a b: listn n) => + match a, b with + | niln, b0 => tt + | consn n' a y, bS => tt + end). we have a copy of :g:`b` in type :g:`listn 0` resp. :g:`listn (S n')`. |
