Mercurial > cpdt > repo
diff src/MoreDep.v @ 275:d63cb5fbdce0
A suggestion from sbriais: mention that Coq >=8.2 allows omitted match cases
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Mon, 28 Jun 2010 07:59:01 -0400 |
parents | d1e0a6d8eef1 |
children | 756ce68e42fb |
line wrap: on
line diff
--- a/src/MoreDep.v Sat May 15 06:44:41 2010 -0400 +++ b/src/MoreDep.v Mon Jun 28 07:59:01 2010 -0400 @@ -121,7 +121,7 @@ ]] -Unlike in ML, we cannot use inexhaustive pattern matching, because there is no conception of a %\texttt{%#<tt>#Match#</tt>#%}% exception to be thrown. We might try using an [in] clause somehow. +Unlike in ML, we cannot use inexhaustive pattern matching, because there is no conception of a %\texttt{%#<tt>#Match#</tt>#%}% exception to be thrown. In fact, recent versions of Coq %\textit{%#<i>#do#</i>#%}% allow this, by implicit translation to a [match] that considers all constructors. It is educational to discover that encoding ourselves directly. We might try using an [in] clause somehow. [[ Definition hd n (ls : ilist (S n)) : A :=