src/Tools/quickcheck.ML
changeset 60094 96a4765ba7d1
parent 59936 b8ffc3dc9e24
child 60190 906de96ba68a
equal deleted inserted replaced
60093:c48d536231fe 60094:96a4765ba7d1
   531     (parse_args >> (fn args => Toplevel.theory (quickcheck_params_cmd args)));
   531     (parse_args >> (fn args => Toplevel.theory (quickcheck_params_cmd args)));
   532 
   532 
   533 val _ =
   533 val _ =
   534   Outer_Syntax.command @{command_keyword quickcheck}
   534   Outer_Syntax.command @{command_keyword quickcheck}
   535     "try to find counterexample for subgoal"
   535     "try to find counterexample for subgoal"
   536     (parse_args -- Scan.optional Parse.nat 1 >> (fn (args, i) =>
   536     (parse_args -- Scan.optional Parse.nat 1 >>
   537       Toplevel.unknown_proof o Toplevel.keep (quickcheck_cmd args i)));
   537       (fn (args, i) => Toplevel.keep (quickcheck_cmd args i)));
   538 
   538 
   539 
   539 
   540 (* automatic testing *)
   540 (* automatic testing *)
   541 
   541 
   542 fun try_quickcheck auto state =
   542 fun try_quickcheck auto state =