changeset 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 806420cf7a2f
children 6c6786a815dd
files src/MoreDep.v
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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 :=