diff options
| author | Hugo Herbelin | 2015-10-06 11:45:02 +0200 |
|---|---|---|
| committer | Hugo Herbelin | 2015-12-10 09:35:05 +0100 |
| commit | 779c314c28abbff3d9fc1fca9a2c75dc7e103a1c (patch) | |
| tree | b0e54d78aae68b70fea216d7b7274ffa93ca898c /doc/refman/Cases.tex | |
| parent | e7c38a5516246b751b89535594075f6f95a243fd (diff) | |
RefMan, ch. 4: Reference Manual: more on the "in pattern" clause and
"@qualid pattern".
Diffstat (limited to 'doc/refman/Cases.tex')
| -rw-r--r-- | doc/refman/Cases.tex | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/refman/Cases.tex b/doc/refman/Cases.tex index 4238bf6a57..a95d8114ff 100644 --- a/doc/refman/Cases.tex +++ b/doc/refman/Cases.tex @@ -521,6 +521,8 @@ I have a copy of {\tt b} in type {\tt listn 0} resp {\tt listn (S n')}. % \end{coq_example} \paragraph{Patterns in {\tt in}} +\label{match-in-patterns} + If the type of the matched term is more precise than an inductive applied to variables, arguments of the inductive in the {\tt in} branch can be more complicated patterns than a variable. @@ -530,7 +532,7 @@ become impossible branches. In an impossible branch, you can answer anything but {\tt False\_rect unit} has the advantage to be subterm of anything. % ??? -To be concrete: the tail function can be written: +To be concrete: the {\tt tail} function can be written: \begin{coq_example} Definition tail n (v: listn (S n)) := match v in listn (S m) return listn m with |
