deactivating quickcheck_narrowing if Efficient_Nat theory is loaded
authorbulwahn
Fri, 09 Dec 2011 12:21:03 +0100
changeset 45793 331ebffe0593
parent 45792 4096351375cc
child 45794 16e8e4d33c42
child 45795 2d8949268303
deactivating quickcheck_narrowing if Efficient_Nat theory is loaded
src/HOL/Library/Efficient_Nat.thy
--- a/src/HOL/Library/Efficient_Nat.thy	Fri Dec 09 12:21:01 2011 +0100
+++ b/src/HOL/Library/Efficient_Nat.thy	Fri Dec 09 12:21:03 2011 +0100
@@ -412,6 +412,12 @@
 code_const "Code_Evaluation.term_of \<Colon> nat \<Rightarrow> term"
   (SML "HOLogic.mk'_number/ HOLogic.natT")
 
+text {* Evaluation with @{text "Quickcheck_Narrowing"} does not work, as
+  @{text "code_module"} is very aggressive leading to bad Haskell code.
+  Therefore, we simply deactivate the narrowing-based quickcheck from here on.
+*}
+
+declare [[quickcheck_narrowing_active = false]] 
 
 text {* Module names *}