corrected expectation; added an example for quickcheck
authorbulwahn
Fri, 27 Jan 2012 10:31:31 +0100
changeset 46344 b6fbdd3d0915
parent 46343 6d9535e52915
child 46345 202f8b8086a3
corrected expectation; added an example for quickcheck
src/HOL/ex/Quickcheck_Examples.thy
--- a/src/HOL/ex/Quickcheck_Examples.thy	Fri Jan 27 10:31:30 2012 +0100
+++ b/src/HOL/ex/Quickcheck_Examples.thy	Fri Jan 27 10:31:31 2012 +0100
@@ -414,7 +414,7 @@
 begin
 
 lemma "False"
-quickcheck[exhaustive, expect = no_counterexample]
+quickcheck[exhaustive, expect = counterexample]
 oops
 
 end
@@ -430,6 +430,19 @@
 
 end
 
+locale antisym =
+  fixes R
+  assumes "R x y --> R y x --> x = y"
+begin
+
+lemma
+  "R x y --> R y z --> R x z"
+quickcheck[exhaustive, finite_type_size = 2, expect = no_counterexample]
+quickcheck[exhaustive, expect = counterexample]
+oops
+
+end
+
 subsection {* Examples with HOL quantifiers *}
 
 lemma