# HG changeset patch # User blanchet # Date 1387615470 -3600 # Node ID 10df188349b318caeb482d4979561a515c18aa8f # Parent 630ba4d8a20621070d517d9cd8eb16f8cc4f664f compile + reduce problem size by a notch diff -r 630ba4d8a206 -r 10df188349b3 src/HOL/Nitpick_Examples/Mini_Nits.thy --- a/src/HOL/Nitpick_Examples/Mini_Nits.thy Sat Dec 21 09:44:30 2013 +0100 +++ b/src/HOL/Nitpick_Examples/Mini_Nits.thy Sat Dec 21 09:44:30 2013 +0100 @@ -13,9 +13,8 @@ ML_file "minipick.ML" -nitpick_params [verbose, sat_solver = MiniSat_JNI, max_threads = 1] - -nitpick_params [total_consts = smart] +nitpick_params [verbose, sat_solver = MiniSat_JNI, max_threads = 1, + total_consts = smart] ML {* val check = Minipick.minipick @{context} @@ -34,8 +33,8 @@ ML_val {* genuine 1 @{prop False} *} ML_val {* genuine 1 @{prop "True \ False"} *} ML_val {* none 1 @{prop "True \ \ False"} *} -ML_val {* none 5 @{prop "\x. x = x"} *} -ML_val {* none 5 @{prop "\x. x = x"} *} +ML_val {* none 4 @{prop "\x. x = x"} *} +ML_val {* none 4 @{prop "\x. x = x"} *} ML_val {* none 1 @{prop "\x. x = y"} *} ML_val {* genuine 2 @{prop "\x. x = y"} *} ML_val {* none 2 @{prop "\x. x = y"} *} @@ -47,10 +46,10 @@ ML_val {* genuine 2 @{prop "All = Ex"} *} ML_val {* none 1 @{prop "All P = Ex P"} *} ML_val {* genuine 2 @{prop "All P = Ex P"} *} -ML_val {* none 5 @{prop "x = y \ P x = P y"} *} -ML_val {* none 5 @{prop "(x\'a \ 'a) = y \ P x = P y"} *} +ML_val {* none 4 @{prop "x = y \ P x = P y"} *} +ML_val {* none 4 @{prop "(x\'a \ 'a) = y \ P x = P y"} *} ML_val {* none 2 @{prop "(x\'a \ 'a) = y \ P x y = P y x"} *} -ML_val {* none 5 @{prop "\x\'a \ 'a. x = y \ P x = P y"} *} +ML_val {* none 4 @{prop "\x\'a \ 'a. x = y \ P x = P y"} *} ML_val {* none 2 @{prop "(x\'a \ 'a) = y \ P x = P y"} *} ML_val {* none 2 @{prop "\x\'a \ 'a. x = y \ P x = P y"} *} ML_val {* genuine 1 @{prop "(op =) X = Ex"} *} @@ -64,49 +63,49 @@ ML_val {* none 1 @{prop "P \ Q \ Q \ P"} *} ML_val {* genuine 1 @{prop "P \ Q \ P"} *} ML_val {* none 1 @{prop "(P \ Q) \ (\ P \ Q)"} *} -ML_val {* none 5 @{prop "{a} = {a, a}"} *} +ML_val {* none 4 @{prop "{a} = {a, a}"} *} ML_val {* genuine 2 @{prop "{a} = {a, b}"} *} ML_val {* genuine 1 @{prop "{a} \ {a, b}"} *} -ML_val {* none 5 @{prop "{}\<^sup>+ = {}"} *} -ML_val {* none 5 @{prop "UNIV\<^sup>+ = UNIV"} *} -ML_val {* none 5 @{prop "(UNIV \ ('a \ 'b) set) - {} = UNIV"} *} -ML_val {* none 5 @{prop "{} - (UNIV \ ('a \ 'b) set) = {}"} *} +ML_val {* none 4 @{prop "{}\<^sup>+ = {}"} *} +ML_val {* none 4 @{prop "UNIV\<^sup>+ = UNIV"} *} +ML_val {* none 4 @{prop "(UNIV \ ('a \ 'b) set) - {} = UNIV"} *} +ML_val {* none 4 @{prop "{} - (UNIV \ ('a \ 'b) set) = {}"} *} ML_val {* none 1 @{prop "{(a, b), (b, c)}\<^sup>+ = {(a, b), (a, c), (b, c)}"} *} ML_val {* genuine 2 @{prop "{(a, b), (b, c)}\<^sup>+ = {(a, b), (a, c), (b, c)}"} *} -ML_val {* none 5 @{prop "a \ c \ {(a, b), (b, c)}\<^sup>+ = {(a, b), (a, c), (b, c)}"} *} -ML_val {* none 5 @{prop "A \ B = {x. x \ A \ x \ B}"} *} -ML_val {* none 5 @{prop "A \ B = {x. x \ A \ x \ B}"} *} -ML_val {* none 5 @{prop "A - B = (\x. A x \ \ B x)"} *} -ML_val {* none 5 @{prop "\a b. (a, b) = (b, a)"} *} +ML_val {* none 4 @{prop "a \ c \ {(a, b), (b, c)}\<^sup>+ = {(a, b), (a, c), (b, c)}"} *} +ML_val {* none 4 @{prop "A \ B = {x. x \ A \ x \ B}"} *} +ML_val {* none 4 @{prop "A \ B = {x. x \ A \ x \ B}"} *} +ML_val {* none 4 @{prop "A - B = (\x. A x \ \ B x)"} *} +ML_val {* none 4 @{prop "\a b. (a, b) = (b, a)"} *} ML_val {* genuine 2 @{prop "(a, b) = (b, a)"} *} ML_val {* genuine 2 @{prop "(a, b) \ (b, a)"} *} -ML_val {* none 5 @{prop "\a b\'a \ 'a. (a, b) = (b, a)"} *} +ML_val {* none 4 @{prop "\a b\'a \ 'a. (a, b) = (b, a)"} *} ML_val {* genuine 2 @{prop "(a\'a \ 'a, b) = (b, a)"} *} -ML_val {* none 5 @{prop "\a b\'a \ 'a \ 'a. (a, b) = (b, a)"} *} +ML_val {* none 4 @{prop "\a b\'a \ 'a \ 'a. (a, b) = (b, a)"} *} ML_val {* genuine 2 @{prop "(a\'a \ 'a \ 'a, b) \ (b, a)"} *} -ML_val {* none 5 @{prop "\a b\'a \ 'a. (a, b) = (b, a)"} *} +ML_val {* none 4 @{prop "\a b\'a \ 'a. (a, b) = (b, a)"} *} ML_val {* genuine 1 @{prop "(a\'a \ 'a, b) \ (b, a)"} *} -ML_val {* none 5 @{prop "fst (a, b) = a"} *} +ML_val {* none 4 @{prop "fst (a, b) = a"} *} ML_val {* none 1 @{prop "fst (a, b) = b"} *} ML_val {* genuine 2 @{prop "fst (a, b) = b"} *} ML_val {* genuine 2 @{prop "fst (a, b) \ b"} *} ML_val {* genuine 2 @{prop "f ((x, z), y) = (x, z)"} *} ML_val {* none 2 @{prop "(ALL x. f x = fst x) \ f ((x, z), y) = (x, z)"} *} -ML_val {* none 5 @{prop "snd (a, b) = b"} *} +ML_val {* none 4 @{prop "snd (a, b) = b"} *} ML_val {* none 1 @{prop "snd (a, b) = a"} *} ML_val {* genuine 2 @{prop "snd (a, b) = a"} *} ML_val {* genuine 2 @{prop "snd (a, b) \ a"} *} ML_val {* genuine 1 @{prop P} *} ML_val {* genuine 1 @{prop "(\x. P) a"} *} ML_val {* genuine 1 @{prop "(\x y z. P y x z) a b c"} *} -ML_val {* none 5 @{prop "\f. f = (\x. x) \ f y = y"} *} +ML_val {* none 4 @{prop "\f. f = (\x. x) \ f y = y"} *} ML_val {* genuine 1 @{prop "\f. f p \ p \ (\a b. f (a, b) = (a, b))"} *} ML_val {* none 2 @{prop "\f. \a b. f (a, b) = (a, b)"} *} ML_val {* none 3 @{prop "f = (\a b. (b, a)) \ f x y = (y, x)"} *} ML_val {* genuine 2 @{prop "f = (\a b. (b, a)) \ f x y = (x, y)"} *} -ML_val {* none 5 @{prop "f = (\x. f x)"} *} -ML_val {* none 5 @{prop "f = (\x. f x\'a \ bool)"} *} -ML_val {* none 5 @{prop "f = (\x y. f x y)"} *} -ML_val {* none 5 @{prop "f = (\x y. f x y\'a \ bool)"} *} +ML_val {* none 4 @{prop "f = (\x. f x)"} *} +ML_val {* none 4 @{prop "f = (\x. f x\'a \ bool)"} *} +ML_val {* none 4 @{prop "f = (\x y. f x y)"} *} +ML_val {* none 4 @{prop "f = (\x y. f x y\'a \ bool)"} *} end diff -r 630ba4d8a206 -r 10df188349b3 src/HOL/Nitpick_Examples/minipick.ML --- a/src/HOL/Nitpick_Examples/minipick.ML Sat Dec 21 09:44:30 2013 +0100 +++ b/src/HOL/Nitpick_Examples/minipick.ML Sat Dec 21 09:44:30 2013 +0100 @@ -429,11 +429,11 @@ fun solve_any_kodkod_problem thy problems = let - val {debug, overlord, ...} = Nitpick_Isar.default_params thy [] + val {debug, overlord, timeout, ...} = Nitpick_Isar.default_params thy [] val max_threads = 1 val max_solutions = 1 in - case solve_any_problem debug overlord NONE max_threads max_solutions + case solve_any_problem debug overlord timeout max_threads max_solutions problems of JavaNotFound => "unknown" | JavaTooOld => "unknown"