# HG changeset patch # User bulwahn # Date 1269448843 -3600 # Node ID 5ad0af66b3c64e5e94b6ea3b7f144a02f8fc546a # Parent 791ce568d40a629347437692fb16f3d15aacb17f removing uncommented examples in setup theory of predicate compile quickcheck diff -r 791ce568d40a -r 5ad0af66b3c6 src/HOL/ex/Predicate_Compile_Quickcheck.thy --- a/src/HOL/ex/Predicate_Compile_Quickcheck.thy Wed Mar 24 17:40:43 2010 +0100 +++ b/src/HOL/ex/Predicate_Compile_Quickcheck.thy Wed Mar 24 17:40:43 2010 +0100 @@ -3,37 +3,12 @@ header {* A Prototype of Quickcheck based on the Predicate Compiler *} theory Predicate_Compile_Quickcheck -imports "../Predicate_Compile" Quickcheck Predicate_Compile_Alternative_Defs +imports Main Predicate_Compile_Alternative_Defs uses "../Tools/Predicate_Compile/predicate_compile_quickcheck.ML" begin -setup {* Quickcheck.add_generator ("predicate_compile_wo_ff", Predicate_Compile_Quickcheck.quickcheck_compile_term false true 8) *} -setup {* Quickcheck.add_generator ("predicate_compile_ff_fs", Predicate_Compile_Quickcheck.quickcheck_compile_term true true 8) *} -setup {* Quickcheck.add_generator ("predicate_compile_ff_nofs", Predicate_Compile_Quickcheck.quickcheck_compile_term true false 8) *} - -(* -datatype alphabet = a | b - -inductive_set S\<^isub>1 and A\<^isub>1 and B\<^isub>1 where - "[] \ S\<^isub>1" -| "w \ A\<^isub>1 \ b # w \ S\<^isub>1" -| "w \ B\<^isub>1 \ a # w \ S\<^isub>1" -| "w \ S\<^isub>1 \ a # w \ A\<^isub>1" -| "w \ S\<^isub>1 \ b # w \ S\<^isub>1" -| "\v \ B\<^isub>1; v \ B\<^isub>1\ \ a # v @ w \ B\<^isub>1" +setup {* Quickcheck.add_generator ("predicate_compile_wo_ff", Predicate_Compile_Quickcheck.quickcheck_compile_term false true 4) *} +setup {* Quickcheck.add_generator ("predicate_compile_ff_fs", Predicate_Compile_Quickcheck.quickcheck_compile_term true true 4) *} +setup {* Quickcheck.add_generator ("predicate_compile_ff_nofs", Predicate_Compile_Quickcheck.quickcheck_compile_term true false 4) *} -ML {* set Toplevel.debug *} - -declare mem_def[code_pred_inline] Collect_def[code_pred_inline] - -lemma - "w \ S\<^isub>1p \ w = []" -quickcheck[generator = predicate_compile, iterations=1] -oops - -theorem S\<^isub>1_sound: -"w \ S\<^isub>1p \ length [x \ w. x = a] = length [x \ w. x = b]" -quickcheck[generator=predicate_compile, size=15] -oops -*) end \ No newline at end of file