evaluation of THE with a non-singleton set raises a Match exception during the evaluation to yield a potential counterexample in quickcheck.
authorbulwahn
Thu, 26 Jan 2012 12:03:35 +0100
changeset 46336 39fe503602fb
parent 46335 0fd9ab902b5a
child 46337 54227223a8d4
evaluation of THE with a non-singleton set raises a Match exception during the evaluation to yield a potential counterexample in quickcheck.
src/HOL/Enum.thy
--- a/src/HOL/Enum.thy	Thu Jan 26 10:59:47 2012 +0100
+++ b/src/HOL/Enum.thy	Thu Jan 26 12:03:35 2012 +0100
@@ -777,6 +777,7 @@
 qed
 
 code_abort enum_the
+code_const enum_the (Eval "(fn p => raise Match)")
 
 subsection {* Further operations on finite types *}